From 3b4de1e431e324c6eb389953cbadea6bf936873f Mon Sep 17 00:00:00 2001 From: SEO Themes Date: Mon, 1 Jan 2024 11:37:18 +0800 Subject: [PATCH] calendar block, text shadow --- assets/css/block-styles/badge.css | 2 +- assets/css/block-styles/button-ghost.css | 2 +- assets/css/block-variations/icon.css | 2 +- assets/css/blocks/calendar.css | 1 + assets/css/blocks/post-excerpt.css | 2 +- assets/css/blocks/post-featured-image.css | 2 +- assets/css/blocks/query-pagination.css | 1 + assets/css/blocks/template-part.css | 2 +- assets/css/components/edit-link.css | 2 +- assets/css/editor.css | 2 +- assets/css/elements/button.css | 2 +- assets/css/extensions/shadow.css | 2 +- assets/css/extensions/transform.css | 2 +- assets/js/editor.asset.php | 2 +- assets/js/editor.js | 2 +- assets/js/typewriter.asset.php | 1 - assets/js/typewriter.js | 1 - functions.php | 3 +- includes/api/block-supports.php | 18 +- includes/blocks/calendar.php | 43 +++++ includes/blocks/image.php | 2 +- includes/blocks/post-excerpt.php | 5 +- includes/blocks/post-featured-image.php | 45 +++++ includes/blocks/post-terms.php | 41 +++-- includes/blocks/query-pagination.php | 9 +- includes/common/patterns.php | 22 +-- includes/common/styles.php | 38 +++-- includes/extensions/animation.php | 24 --- includes/extensions/dark-mode.php | 199 +++++++++++----------- includes/extensions/icon.php | 19 ++- includes/extensions/shadow.php | 71 +++++++- includes/extensions/template-tags.php | 9 +- includes/utility/color.php | 6 +- includes/utility/css.php | 5 +- includes/utility/helper.php | 85 --------- includes/utility/string.php | 13 ++ includes/utility/theme.php | 192 +++++++++++++++++++++ patterns/page/{landing.php => home.php} | 0 patterns/template/date.php | 10 ++ patterns/template/front-page.php | 2 +- readme.txt | 9 +- src/api/block-supports.tsx | 10 +- src/block-extensions/image.tsx | 20 +-- src/block-extensions/shadow.tsx | 28 +++ src/components/box-shadow-control.tsx | 127 +++++++++++++- src/public/typewriter.tsx | 119 ------------- src/scss/abstracts/ghost.scss | 15 -- src/scss/block-styles/button-ghost.scss | 11 -- src/scss/block-variations/icon.scss | 2 +- src/scss/blocks/calendar.scss | 82 +++++++++ src/scss/blocks/post-excerpt.scss | 8 + src/scss/blocks/post-featured-image.scss | 1 + src/scss/blocks/query-pagination.scss | 8 + src/scss/blocks/template-part.scss | 2 +- src/scss/editor.scss | 3 +- src/scss/extensions/shadow.scss | 4 + src/scss/extensions/transform.scss | 7 +- src/utility/types.tsx | 15 ++ templates/date.html | 1 + theme.json | 12 +- webpack.config.js | 1 - 61 files changed, 914 insertions(+), 462 deletions(-) create mode 100644 assets/css/blocks/calendar.css create mode 100644 assets/css/blocks/query-pagination.css delete mode 100644 assets/js/typewriter.asset.php delete mode 100644 assets/js/typewriter.js create mode 100644 includes/blocks/calendar.php delete mode 100644 includes/utility/helper.php create mode 100644 includes/utility/theme.php rename patterns/page/{landing.php => home.php} (100%) create mode 100644 patterns/template/date.php delete mode 100644 src/public/typewriter.tsx create mode 100644 src/scss/blocks/calendar.scss create mode 100644 src/scss/blocks/query-pagination.scss create mode 100644 templates/date.html diff --git a/assets/css/block-styles/badge.css b/assets/css/block-styles/badge.css index 2c09280..30eb900 100644 --- a/assets/css/block-styles/badge.css +++ b/assets/css/block-styles/badge.css @@ -1 +1 @@ -.is-style-badge,.is-style-badges>*:not(.wp-block-query-pagination-numbers),.is-style-badges .page-numbers{position:relative;padding:var(--wp--custom--badge--padding, 0.5em 0.75em);margin-left:0;margin-right:0;border-radius:var(--wp--custom--border--radius, 4px);text-decoration:none;line-height:1;background:transparent !important;position:relative;z-index:0}.is-style-badge:hover::before,.is-style-badges>*:not(.wp-block-query-pagination-numbers):hover::before,.is-style-badges .page-numbers:hover::before{opacity:var(--wp--custom--ghost--hover--opacity, 0.2)}.is-style-badge::before,.is-style-badges>*:not(.wp-block-query-pagination-numbers)::before,.is-style-badges .page-numbers::before{content:"";position:absolute;inset:0;background:currentcolor;opacity:var(--wp--custom--ghost--opacity, 0.1);transition:var(--wp--custom--transition);border-radius:inherit;z-index:-1}.is-style-dark .is-style-badge::before,.is-style-dark .is-style-badges>*:not(.wp-block-query-pagination-numbers)::before,.is-style-dark .is-style-badges .page-numbers::before{opacity:var(--wp--custom--dark-mode--ghost--opacity, 0.12)}@media (prefers-color-scheme: dark){.default-mode-auto:not(.is-style-light):not(.is-style-dark) .is-style-badge::before,.default-mode-auto:not(.is-style-light):not(.is-style-dark) .is-style-badges>*:not(.wp-block-query-pagination-numbers)::before,.default-mode-auto:not(.is-style-light):not(.is-style-dark) .is-style-badges .page-numbers::before{opacity:var(--wp--custom--dark-mode--ghost--opacity, 0.12)}.default-mode-light:not(.is-style-dark) .is-style-badge::before,.default-mode-light:not(.is-style-dark) .is-style-badges>*:not(.wp-block-query-pagination-numbers)::before,.default-mode-light:not(.is-style-dark) .is-style-badges .page-numbers::before{opacity:var(--wp--custom--ghost--opacity, 0.1)}}.is-style-badge:hover,.is-style-badges>*:not(.wp-block-query-pagination-numbers):hover,.is-style-badges .page-numbers:hover{--wp--custom--dark-mode--ghost--opacity: .12}.is-style-badges{display:flex;flex-wrap:wrap;gap:var(--wp--custom--button--gap, 8px)}.is-style-badges .wp-block-post-terms__separator,.is-style-badges .justify-center__separator{display:none}.is-style-badges.has-text-align-right{justify-content:flex-end}.is-style-badges .page-numbers{display:inline-flex}.is-style-badges .wp-block-query-pagination-numbers{display:flex;justify-content:space-between;gap:inherit} +.is-style-badge,.is-style-badges>*:not(.wp-block-query-pagination-numbers),.is-style-badges .page-numbers{position:relative;padding:var(--wp--custom--badge--padding, 0.5em 0.75em);margin-left:0;margin-right:0;border-radius:var(--wp--custom--border--radius, 4px);text-decoration:none;line-height:1;background:transparent !important;position:relative;z-index:0}.is-style-badge:hover::before,.is-style-badges>*:not(.wp-block-query-pagination-numbers):hover::before,.is-style-badges .page-numbers:hover::before{opacity:var(--wp--custom--ghost--hover--opacity, 0.2)}.is-style-badge::before,.is-style-badges>*:not(.wp-block-query-pagination-numbers)::before,.is-style-badges .page-numbers::before{content:"";position:absolute;inset:0;background:currentcolor;opacity:var(--wp--custom--ghost--opacity, 0.1);transition:var(--wp--custom--transition);border-radius:inherit;z-index:-1}.is-style-badge:hover,.is-style-badges>*:not(.wp-block-query-pagination-numbers):hover,.is-style-badges .page-numbers:hover{--wp--custom--dark-mode--ghost--opacity: .12}.is-style-badges{display:flex;flex-wrap:wrap;gap:var(--wp--custom--button--gap, 8px)}.is-style-badges .wp-block-post-terms__separator,.is-style-badges .justify-center__separator{display:none}.is-style-badges.has-text-align-right{justify-content:flex-end}.is-style-badges .page-numbers{display:inline-flex}.is-style-badges .wp-block-query-pagination-numbers{display:flex;justify-content:space-between;gap:inherit} diff --git a/assets/css/block-styles/button-ghost.css b/assets/css/block-styles/button-ghost.css index 69c9c2e..b88d80f 100644 --- a/assets/css/block-styles/button-ghost.css +++ b/assets/css/block-styles/button-ghost.css @@ -1 +1 @@ -.is-style-ghost:not(.wp-block-button){background:transparent !important;position:relative;z-index:0}.is-style-ghost:not(.wp-block-button):hover::before{opacity:var(--wp--custom--ghost--hover--opacity, 0.2)}.is-style-ghost:not(.wp-block-button)::before{content:"";position:absolute;inset:0;background:currentcolor;opacity:var(--wp--custom--ghost--opacity, 0.1);transition:var(--wp--custom--transition);border-radius:inherit;z-index:-1}.is-style-dark .is-style-ghost:not(.wp-block-button)::before{opacity:var(--wp--custom--dark-mode--ghost--opacity, 0.12)}@media (prefers-color-scheme: dark){.default-mode-auto:not(.is-style-light):not(.is-style-dark) .is-style-ghost:not(.wp-block-button)::before{opacity:var(--wp--custom--dark-mode--ghost--opacity, 0.12)}.default-mode-light:not(.is-style-dark) .is-style-ghost:not(.wp-block-button)::before{opacity:var(--wp--custom--ghost--opacity, 0.1)}}.is-style-ghost .wp-block-button__link{background:transparent !important;position:relative;z-index:0;color:var(--wp--custom--ghost--color, inherit)}.is-style-ghost .wp-block-button__link:hover::before{opacity:var(--wp--custom--ghost--hover--opacity, 0.2)}.is-style-ghost .wp-block-button__link::before{content:"";position:absolute;inset:0;background:currentcolor;opacity:var(--wp--custom--ghost--opacity, 0.1);transition:var(--wp--custom--transition);border-radius:inherit;z-index:-1}.is-style-dark .is-style-ghost .wp-block-button__link::before{opacity:var(--wp--custom--dark-mode--ghost--opacity, 0.12)}@media (prefers-color-scheme: dark){.default-mode-auto:not(.is-style-light):not(.is-style-dark) .is-style-ghost .wp-block-button__link::before{opacity:var(--wp--custom--dark-mode--ghost--opacity, 0.12)}.default-mode-light:not(.is-style-dark) .is-style-ghost .wp-block-button__link::before{opacity:var(--wp--custom--ghost--opacity, 0.1)}}.is-style-dark .is-style-ghost .wp-block-button__link{color:var(--wp--custom--dark-mode--ghost--color, inherit)}@media (prefers-color-scheme: dark){.default-mode-auto:not(.is-style-light):not(.is-style-dark) .is-style-ghost .wp-block-button__link{color:var(--wp--custom--dark-mode--ghost--color, inherit)}} +.is-style-ghost:not(.wp-block-button){background:transparent !important;position:relative;z-index:0}.is-style-ghost:not(.wp-block-button):hover::before{opacity:var(--wp--custom--ghost--hover--opacity, 0.2)}.is-style-ghost:not(.wp-block-button)::before{content:"";position:absolute;inset:0;background:currentcolor;opacity:var(--wp--custom--ghost--opacity, 0.1);transition:var(--wp--custom--transition);border-radius:inherit;z-index:-1}.is-style-ghost .wp-block-button__link{background:transparent !important;position:relative;z-index:0;color:var(--wp--custom--ghost--color, inherit)}.is-style-ghost .wp-block-button__link:hover::before{opacity:var(--wp--custom--ghost--hover--opacity, 0.2)}.is-style-ghost .wp-block-button__link::before{content:"";position:absolute;inset:0;background:currentcolor;opacity:var(--wp--custom--ghost--opacity, 0.1);transition:var(--wp--custom--transition);border-radius:inherit;z-index:-1} diff --git a/assets/css/block-variations/icon.css b/assets/css/block-variations/icon.css index fd0cb64..e5204df 100644 --- a/assets/css/block-variations/icon.css +++ b/assets/css/block-variations/icon.css @@ -1 +1 @@ -.is-nowrap{--wp--custom--icon-container--width: auto}.is-style-icon{line-height:1}.wp-block-image__icon{display:flex;width:var(--wp--custom--icon-container--width, auto);text-align:center;background:var(--wp--custom--icon--background, transparent);border-radius:inherit;border-color:var(--wp--custom--icon--color, currentColor);margin:var(--wp--custom--icon--margin, 0 auto);line-height:1;color:var(--wp--custom--icon--color, currentColor);justify-content:center;align-items:center;aspect-ratio:1}.alignleft .wp-block-image__icon{justify-content:flex-start}.aligncenter .wp-block-image__icon{justify-content:center}.alignright .wp-block-image__icon{justify-content:flex-end}.wp-block-image__icon.has-gradient::after{content:"";display:inline-block;position:relative;background:var(--wp--custom--icon--color);height:var(--wp--custom--icon--size, 1.5em);width:var(--wp--custom--icon--size, 1.5em);vertical-align:text-bottom;-webkit-mask-image:var(--wp--custom--icon--url);-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:cover !important}.wp-block-image__icon img:not([src*=""]){display:none}.wp-block-image__icon svg:not([width]){width:var(--wp--custom--icon--size, 1.5em)}.wp-block-image__icon svg:not([height]){height:var(--wp--custom--icon--size, 1.5em)}.is-style-icon.has-box-shadow{box-shadow:none}.is-style-icon.has-box-shadow>*:first-of-type{box-shadow:var(--wp--custom--box-shadow--inset) var(--wp--custom--box-shadow--x) var(--wp--custom--box-shadow--y) var(--wp--custom--box-shadow--blur) var(--wp--custom--box-shadow--spread) var(--wp--custom--box-shadow--color)}.wp-block-image.is-style-icon.alignleft,.wp-block-image.is-style-icon.alignright{float:none}.wp-block-image.is-style-icon{justify-content:center;align-items:center}.wp-block-image.is-style-icon svg{height:auto} +.is-nowrap{--wp--custom--icon-container--width: auto}.is-style-icon{line-height:1}.wp-block-image__icon{display:flex;width:var(--wp--custom--icon-container--width, auto);text-align:center;background:var(--wp--custom--icon--background, transparent);border-radius:inherit;border-color:var(--wp--custom--icon--color, currentColor);margin:var(--wp--custom--icon--margin, 0 auto);line-height:1;color:var(--wp--custom--icon--color, currentColor);justify-content:center;align-items:center;aspect-ratio:1}.alignleft .wp-block-image__icon{justify-content:flex-start}.aligncenter .wp-block-image__icon{justify-content:center}.alignright .wp-block-image__icon{justify-content:flex-end}.wp-block-image__icon.has-gradient::after{content:"";display:inline-block;position:relative;background:var(--wp--custom--icon--color);height:var(--wp--custom--icon--size, 1.5em);width:var(--wp--custom--icon--size, 1.5em);vertical-align:text-bottom;-webkit-mask-image:var(--wp--custom--icon--url);-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:cover !important}.wp-block-image__icon img:not([src*=""]){display:none}.wp-block-image__icon svg:not([width]){width:var(--wp--custom--icon--size, 1.5em)}.wp-block-image__icon svg:not([height]){height:var(--wp--custom--icon--size, 1.5em)}.is-style-icon.has-box-shadow{box-shadow:none !important}.is-style-icon.has-box-shadow>*:first-of-type{box-shadow:var(--wp--custom--box-shadow--inset) var(--wp--custom--box-shadow--x) var(--wp--custom--box-shadow--y) var(--wp--custom--box-shadow--blur) var(--wp--custom--box-shadow--spread) var(--wp--custom--box-shadow--color)}.wp-block-image.is-style-icon.alignleft,.wp-block-image.is-style-icon.alignright{float:none}.wp-block-image.is-style-icon{justify-content:center;align-items:center}.wp-block-image.is-style-icon svg{height:auto} diff --git a/assets/css/blocks/calendar.css b/assets/css/blocks/calendar.css new file mode 100644 index 0000000..9730943 --- /dev/null +++ b/assets/css/blocks/calendar.css @@ -0,0 +1 @@ +.wp-block-calendar{border:var(--wp--custom--border);border-radius:var(--wp--custom--border--radius);background:var(--wp--custom--calendar--background, var(--wp--custom--body--background))}.wp-block-calendar caption{padding:1em 0;font-weight:var(--wp--custom--font-weight--medium)}.wp-block-calendar table{border:0;line-height:1;text-align:center;background:transparent}.wp-block-calendar table:where(:not(.has-text-color)){color:inherit}.wp-block-calendar table:where(:not(.has-text-color)) td,.wp-block-calendar table:where(:not(.has-text-color)) th{border-color:var(--wp--custom--border--color)}.wp-block-calendar td,.wp-block-calendar th{padding:1em 0;text-align:center;background:transparent}.wp-block-calendar td a,.wp-block-calendar th a{padding:.5em;margin:-.5em;border-radius:99px;background:var(--wp--preset--color--primary-500);line-height:1;width:2em;background:transparent !important;position:relative;z-index:0}.wp-block-calendar td a:hover::before,.wp-block-calendar th a:hover::before{opacity:var(--wp--custom--ghost--hover--opacity, 0.2)}.wp-block-calendar td a::before,.wp-block-calendar th a::before{content:"";position:absolute;inset:0;background:currentcolor;opacity:var(--wp--custom--ghost--opacity, 0.1);transition:var(--wp--custom--transition);border-radius:inherit;z-index:-1}.wp-block-calendar a{display:inline-flex;justify-content:center;align-items:center;text-decoration:none}.wp-block-calendar thead th:first-of-type{border-top-left-radius:inherit}.wp-block-calendar thead th:last-of-type{border-top-right-radius:inherit}.wp-block-calendar nav{padding:1em 0}:where(.wp-block-calendar table:not(.has-background) th){background:transparent} diff --git a/assets/css/blocks/post-excerpt.css b/assets/css/blocks/post-excerpt.css index 74cc25e..79b9730 100644 --- a/assets/css/blocks/post-excerpt.css +++ b/assets/css/blocks/post-excerpt.css @@ -1 +1 @@ -.wp-block-post-excerpt__excerpt{margin:inherit}.wp-block-post-excerpt__more-text{margin-bottom:inherit}.hide-read-more .wp-block-post-excerpt__more-link{display:none} +.wp-block-post-excerpt__excerpt{margin:inherit}.wp-block-post-excerpt__more-text{margin-bottom:inherit}.hide-read-more .wp-block-post-excerpt__more-link{display:none}.wp-block-post-excerpt[class*="-gradient-background"]:not(.has-text-color),.wp-block-post-excerpt[style*="-gradient("]:not(.has-text-color){-webkit-background-clip:text !important;-webkit-text-fill-color:transparent;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:inherit;padding:0} diff --git a/assets/css/blocks/post-featured-image.css b/assets/css/blocks/post-featured-image.css index 0af24f5..7d5e699 100644 --- a/assets/css/blocks/post-featured-image.css +++ b/assets/css/blocks/post-featured-image.css @@ -1 +1 @@ -.wp-block-post-featured-image[style*="aspect-ratio:"] a,.wp-block-post-featured-image[style*="aspect-ratio:"] img{aspect-ratio:inherit;object-fit:cover}.wp-block-post-featured-image svg{max-width:100%;height:auto} +.wp-block-post-featured-image[style*="aspect-ratio:"] a,.wp-block-post-featured-image[style*="aspect-ratio:"] img{aspect-ratio:inherit;object-fit:cover;object-position:inherit}.wp-block-post-featured-image svg{max-width:100%;height:auto} diff --git a/assets/css/blocks/query-pagination.css b/assets/css/blocks/query-pagination.css new file mode 100644 index 0000000..3f307c9 --- /dev/null +++ b/assets/css/blocks/query-pagination.css @@ -0,0 +1 @@ +.wp-block-query-pagination.has-background>.wp-block-query-pagination-next,.wp-block-query-pagination.has-background>.wp-block-query-pagination-numbers,.wp-block-query-pagination.has-background>.wp-block-query-pagination-previous{margin:0} diff --git a/assets/css/blocks/template-part.css b/assets/css/blocks/template-part.css index f32669f..50e514d 100644 --- a/assets/css/blocks/template-part.css +++ b/assets/css/blocks/template-part.css @@ -1 +1 @@ -.wp-block-template-part{width:100%}header.wp-block-template-part:not(.has-z-index){z-index:3}header.wp-block-template-part:not([class*="has-position-"]){position:var(--wp--custom--header--position, relative);top:var(--wp--custom--header--top, 0)}footer.wp-block-template-part{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:center}footer.wp-block-template-part>*{width:100%}@media (min-width: 600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - (var(--wp--custom--spacing--gap) * 0.5))}} +.wp-block-template-part{width:100%}header.wp-block-template-part:not(.has-z-index){z-index:var(--wp--custom--header--z-index, initial)}header.wp-block-template-part:not([class*="has-position-"]){position:var(--wp--custom--header--position, relative);top:var(--wp--custom--header--top, 0)}footer.wp-block-template-part{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:center}footer.wp-block-template-part>*{width:100%}@media (min-width: 600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - (var(--wp--custom--spacing--gap) * 0.5))}} diff --git a/assets/css/components/edit-link.css b/assets/css/components/edit-link.css index 5cb5d89..0e8dfef 100644 --- a/assets/css/components/edit-link.css +++ b/assets/css/components/edit-link.css @@ -1 +1 @@ -.comment-edit-link{padding:4px 8px;border-radius:var(--wp--custom--border--radius);margin-left:0.5em;font-size:smaller;font-weight:var(--wp--custom--font-weight--semi-bold);color:inherit;background:transparent !important;position:relative;z-index:0}.comment-edit-link:hover::before{opacity:var(--wp--custom--ghost--hover--opacity, 0.2)}.comment-edit-link::before{content:"";position:absolute;inset:0;background:currentcolor;opacity:var(--wp--custom--ghost--opacity, 0.1);transition:var(--wp--custom--transition);border-radius:inherit;z-index:-1}.is-style-dark .comment-edit-link::before{opacity:var(--wp--custom--dark-mode--ghost--opacity, 0.12)}@media (prefers-color-scheme: dark){.default-mode-auto:not(.is-style-light):not(.is-style-dark) .comment-edit-link::before{opacity:var(--wp--custom--dark-mode--ghost--opacity, 0.12)}.default-mode-light:not(.is-style-dark) .comment-edit-link::before{opacity:var(--wp--custom--ghost--opacity, 0.1)}} +.comment-edit-link{padding:4px 8px;border-radius:var(--wp--custom--border--radius);margin-left:0.5em;font-size:smaller;font-weight:var(--wp--custom--font-weight--semi-bold);color:inherit;background:transparent !important;position:relative;z-index:0}.comment-edit-link:hover::before{opacity:var(--wp--custom--ghost--hover--opacity, 0.2)}.comment-edit-link::before{content:"";position:absolute;inset:0;background:currentcolor;opacity:var(--wp--custom--ghost--opacity, 0.1);transition:var(--wp--custom--transition);border-radius:inherit;z-index:-1} diff --git a/assets/css/editor.css b/assets/css/editor.css index 2fc850c..85a09ef 100644 --- a/assets/css/editor.css +++ b/assets/css/editor.css @@ -1 +1 @@ -code[class*="language-"],pre[class*="language-"]{text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;color:#c3cee3;background:#263238;font-family:Roboto Mono, monospace;font-size:1em;line-height:1.5em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*="language-"]::-moz-selection,pre[class*="language-"]::-moz-selection,code[class*="language-"] ::-moz-selection,pre[class*="language-"] ::-moz-selection{background:#363636}code[class*="language-"]::selection,pre[class*="language-"]::selection,code[class*="language-"] ::selection,pre[class*="language-"] ::selection{background:#363636}:not(pre)>code[class*="language-"]{white-space:normal;border-radius:0.2em;padding:0.1em}pre[class*="language-"]{overflow:auto;position:relative;margin:0.5em 0;padding:1.25em 1em}.language-css>code,.language-sass>code,.language-scss>code{color:#fd9170}[class*="language-"] .namespace{opacity:0.7}.token.atrule{color:#c792ea}.token.attr-name{color:#ffcb6b}.token.attr-value{color:#c3e88d}.token.attribute{color:#c3e88d}.token.boolean{color:#c792ea}.token.builtin{color:#ffcb6b}.token.cdata{color:#80cbc4}.token.char{color:#80cbc4}.token.class{color:#ffcb6b}.token.class-name{color:#f2ff00}.token.color{color:#f2ff00}.token.comment{color:#546e7a}.token.constant{color:#c792ea}.token.deleted{color:#f07178}.token.doctype{color:#546e7a}.token.entity{color:#f07178}.token.function{color:#c792ea}.token.hexcode{color:#f2ff00}.token.id{color:#c792ea;font-weight:bold}.token.important{color:#c792ea;font-weight:bold}.token.inserted{color:#80cbc4}.token.keyword{color:#c792ea;font-style:italic}.token.number{color:#fd9170}.token.operator{color:#89ddff}.token.prolog{color:#546e7a}.token.property{color:#80cbc4}.token.pseudo-class{color:#c3e88d}.token.pseudo-element{color:#c3e88d}.token.punctuation{color:#89ddff}.token.regex{color:#f2ff00}.token.selector{color:#f07178}.token.string{color:#c3e88d}.token.symbol{color:#c792ea}.token.tag{color:#f07178}.token.unit{color:#f07178}.token.url{color:#fd9170}.token.variable{color:#f07178}.edit-site-site-icon__image[src*=".svg"]{transform:scale(0.55);background:transparent}.npm__react-simple-code-editor__textarea:focus{outline:none;box-shadow:none}html .editor-styles-wrapper{--wp--custom--html--width: auto}html .editor-styles-wrapper .wp-site-blocks{display:flow-root}html .editor-styles-wrapper .wp-block-image img{max-width:100% !important}html .editor-styles-wrapper .wp-block-image[style*="--min-width:"]>div{min-width:100% !important}html .editor-styles-wrapper [src*=".svg"]{width:100%}html .editor-styles-wrapper .wp-block-button:not(.is-style-outline){border:0 !important}.edit-post-visual-editor__post-title-wrapper{text-align:center;margin-bottom:calc(var(--wp--style--block-gap) * 2);position:relative;z-index:99}.hide-title .edit-post-visual-editor__post-title-wrapper{display:none}.is-cover-template .edit-post-visual-editor__post-title-wrapper{margin-top:0;padding-top:4rem;padding-bottom:var(--wp--style--block-gap);background-color:red}.edit-post-post-schedule ~ .components-panel__row{flex-wrap:wrap}.edit-post-post-schedule ~ .components-panel__row .components-base-control{width:100%;margin:0.5em 0}.blockify-page-title-setting{width:100%}.editor-styles-wrapper.wp-embed-responsive>div,.editor-styles-wrapper.wp-embed-responsive>iframe{pointer-events:all !important}.blockify-template-parts .components-base-control{width:100%}.blockify-controls{order:2}.blockify-controls .components-panel__row,.blockify-controls .components-base-control{width:100%}.blockify-controls .components-panel__row label,.blockify-controls .components-base-control label{width:100% !important}.blockify-controls.is-opened .components-panel__body-title{margin-bottom:1em}.blockify-controls .block-editor-panel-color-gradient-settings{border:0;padding:0}.blockify-controls .block-editor-tools-panel-color-gradient-settings__item.first{margin-top:0}.blockify-gradient-text-control .components-popover__content{padding:0.5em}.block-editor-block-inspector>div:not([class*=""]){display:flex;flex-wrap:wrap}.block-editor-block-inspector>div:not([class*=""])>*{width:100%}.is-style-toggle input{display:none}.editor-styles-wrapper .is-style-toggle .wp-block-search__inside-wrapper{background:transparent !important;min-width:0 !important}header.wp-block-template-part{z-index:3}.is-transparent-header{position:absolute}.editor-styles-wrapper .is-layout-flow>p{margin-top:var(--wp--style--block-gap, 1em)}.blockify-min-height-control{border-top:0 !important}.block-editor-block-preview__live-content .components-placeholder{display:flex !important}[class*="has-aspect-ratio-"] .components-placeholder{min-height:1em}[class*="has-aspect-ratio-"] .components-placeholder__fieldset{height:0}.is-placeholder.is-selected .components-placeholder__fieldset,.is-placeholder.has-child-selected .components-placeholder__fieldset{height:auto}.blockify-settings .components-base-control__help{margin-top:8px}.blockify-settings .block-editor-panel-color-gradient-settings{padding:8px 0 0;border:0}div:has(>.blockify-icon-settings){display:flex;flex-wrap:wrap}div:has(>.blockify-icon-settings)>div{width:100%}div:has(>.blockify-icon-settings) .components-tools-panel{display:none}.blockify-icon-settings{order:-1}.blockify-icon-settings select{text-transform:capitalize}.blockify-icon-settings div[role="listbox"]{display:grid;grid-template-columns:repeat(5, minmax(0, 1fr))}.blockify-icon-setting .components-input-control__container{width:100%}.blockify-icon-setting svg{width:2em;height:2em}.blockify-icon-setting .components-custom-select-control__button{width:100%}.blockify-icon-setting .components-custom-select-control__menu[aria-hidden="false"]{display:flex;flex-wrap:wrap}.blockify-icon-setting .components-custom-select-control__item{width:42px}.blockify-icon-setting .components-custom-select-control__item-icon{display:none}.blockify-icon-preview{margin-top:27px;position:absolute;width:220px;display:flex;flex-wrap:wrap;align-items:center;text-transform:capitalize;z-index:9;pointer-events:none}.blockify-icon-preview svg{width:24px;margin:0 8px}.is-style-icon .components-placeholder__illustration,.is-style-icon .components-placeholder__instructions{display:none !important}.is-style-icon.wp-block-site-logo .components-placeholder{min-width:0;min-height:0}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"]{background:transparent !important;float:none !important;padding:0 !important;border:0 !important;margin-left:0 !important;margin-right:0 !important;box-shadow:none !important}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"].wp-block-button [data-rich-text-placeholder]{display:none}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"] .components-placeholder__illustration,.editor-styles-wrapper div [style*="--wp--custom--icon--url:"] img,.editor-styles-wrapper div [style*="--wp--custom--icon--url:"] figcaption,.editor-styles-wrapper div [style*="--wp--custom--icon--url:"] iframe,.editor-styles-wrapper div [style*="--wp--custom--icon--url:"] fieldset,.editor-styles-wrapper div [style*="--wp--custom--icon--url:"] .components-placeholder__label{display:none !important}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"].alignleft>div:first-of-type{margin-left:0}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"].alignright>div:first-of-type{margin-right:0}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"]>div:first-of-type:not(.wp-block-button__link){border-radius:inherit !important;border-width:var(--wp--custom--icon--border-width, 0) !important;border-style:var(--wp--custom--icon--border-style, solid) !important;border-color:var(--wp--custom--icon--border-color, currentColor) !important;background:var(--wp--custom--icon--background, transparent) !important;color:inherit !important;box-shadow:none;background-color:var(--wp--custom--icon--background, transparent) !important;padding:var(--wp--custom--icon--padding, 0)}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"]>div:first-of-type{display:inline-flex;position:relative;margin-left:auto;margin-right:auto;width:auto !important;height:auto !important;min-height:0;min-width:var(--wp--custom--icon--size, 30px)}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"]>div:first-of-type::after{content:"";display:inline-block;position:relative;background:var(--wp--custom--icon--color, currentColor);width:var(--wp--custom--icon--size, 1em);height:var(--wp--custom--icon--size, 1em);margin:auto;vertical-align:text-bottom;order:var(--wp--custom--icon--order, 0);-webkit-mask-image:var(--wp--custom--icon--url);-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:cover !important}.wp-block-image.wp-block-image.is-selected .components-placeholder{box-shadow:none;background-color:transparent}.blockify-icon-popover>div>div{padding:16px;width:260px}.blockify-icon-color.is-opened{padding:0;border:0}.blockify-icon-color.is-opened .components-panel__body-title{margin:0}.blockify-icon-color.is-opened .components-panel__body-title button{padding:0 0 10px}.blockify-icon-color.is-opened .components-panel__body-title svg{display:none}.blockify-overflow-control{align-content:flex-start;align-items:flex-start;gap:8px}.blockify-icon-color{padding:0 !important;border-top:0 !important}.blockify-icon-color h2,.blockify-icon-color .components-dropdown-menu{display:none}.wp-block-video>div,.components-placeholder{border-radius:inherit !important}.is-layout-constrained>.wp-block-video:not([class*="align"]){max-width:100%}.blockify-animation-format>div,.blockify-underline-format>div{padding:1em;display:flex;flex-wrap:wrap;width:20em;gap:1em}.blockify-animation-format>div>div,.blockify-animation-format>div select,.blockify-underline-format>div>div,.blockify-underline-format>div select{width:100%}.blockify-conic-gradient-settings{padding:1.5em 0 0 !important;border:0 !important}.blockify-conic-gradient-settings h2{margin-bottom:1em !important}.blockify-conic-gradient-settings .components-dropdown-menu__toggle{display:none}.blockify-conic-gradient-settings>div{margin-top:0 !important}[aria-label="Gradient: Conic"]{background:var(--wp--preset--gradient--conic) !important}div .wp-block-navigation__responsive-close{max-width:none}.block-editor-block-preview__container{background:var(--wp--custom--body--background, var(--wp--preset--color--white, #fff))}.edit-site-global-styles-preview__iframe{pointer-events:none}.editor-styles-wrapper .wp-block-navigation.is-vertical{margin-top:var(--wp--style--block-gap, 1em)}.wp-block-navigation:not(.is-vertical) .wp-block-navigation-item__content{white-space:nowrap}.is-dark-theme .components-placeholder.has-illustration,.components-placeholder.has-illustration::before{opacity:1;background:transparent}.is-style-icon .is-dark-theme .components-placeholder.has-illustration,.is-style-icon .components-placeholder.has-illustration::before{display:none}.components-placeholder__illustration{stroke-width:var(--wp--custom--border--width);stroke-opacity:1;border-width:var(--wp--custom--border--width, 1px);border-style:var(--wp--custom--placeholder--border-style, dashed);stroke-dasharray:3;border-color:var(--wp--custom--border--color, currentColor);stroke:var(--wp--custom--border--color, currentColor);border-radius:var(--wp--custom--border--radius, 0);color:var(--wp--preset--color--outline);opacity:0}.components-placeholder.has-illustration{backdrop-filter:none;border:0;overflow:inherit;background:var(--wp--custom--placeholder--background, var(--wp--custom--surface--background))}.has-background>.components-placeholder.has-illustration{background:transparent}.blockify-width-control .components-flex-item{width:50%}.blockify-width-control .components-flex-item .components-flex-item{width:100%}.blockify-font-size-control>div,.blockify-font-family-control>div{width:240px;padding:1em}.blockify-controls-tabs .components-tab-panel__tabs{margin:-16px -16px 16px;box-shadow:inset 0 -1px 0 0 #e0e0e0}.blockify-controls-tabs svg{height:24px}.blockify-controls-tabs small{display:block;font-size:12px;font-style:normal;color:#757575}.blockify-svg-control>div{padding:16px}.blockify-svg-controls{order:-1}.is-style-svg>div{display:flex}.blockify-control-label{font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase;display:inline-flex;align-items:center;gap:4px;margin:8px 0;padding:0}.blockify-control-label+.components-button-group{display:flex}.blockify-animate-controls .components-flex-item:last-of-type>div{margin-bottom:0}.blockify-controls hr+.components-panel__row{margin-top:-6px}.is-selected.is-marquee>*,.has-child-selected.is-marquee>*{animation:0 !important;animation-direction:normal !important;transform:none !important}.is-marquee.wp-block{flex-direction:row !important}@media (prefers-reduced-motion){.is-marquee.wp-block>*{animation-direction:normal !important}}.is-marquee.is-selected,.is-marquee.has-child-selected{animation:0 !important;animation-direction:normal !important;transform:none !important}body .is-marquee{min-width:100%}img[style*="toggle-switch"]{position:absolute;left:4px}.inherit-layout>*:not(.alignfull,.alignwide){max-width:var(--wp--custom--layout--content-size)}.is-layout-constrained>.alignwide{max-width:100%}.wp-block-post-content:not(.is-root-container)>.alignwide{width:100%;min-width:var(--wp--style--global--wide-size) !important;margin-left:50%;transform:translateX(-50%)}.is-style-accordion{list-style:none;padding:0;margin:0}.is-style-accordion ul{list-style:none}.is-style-accordion li{width:100%;position:relative}.is-style-accordion li div{position:relative}.is-style-accordion li div::after,.is-style-accordion li div::before{content:"";margin:0.75em 0 0 0;width:12px;height:1.5px;display:inline-block !important;background:currentcolor;position:absolute;right:0;top:0}.is-style-accordion li div::after{transform:rotate(90deg)}.blockify-filter-settings{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px 8px}.blockify-filter-settings .components-input-control{margin-bottom:0 !important}.blockify-flex-controls{margin-bottom:16px !important}.blockify-flex-controls:last-of-type{margin-bottom:0 !important}.blockify-flex-controls .components-flex-item{flex:1;max-width:100%}.blockify-flex-controls .components-flex-item label{display:flex !important}.blockify-animate-controls .blockify-flex-controls{align-items:flex-start}.blockify-flex-controls .block-editor-panel-color-gradient-settings{padding:0}.blockify-flex-controls .block-editor-tools-panel-color-gradient-settings__item{margin:0 !important;padding:0 !important;border-top:0}.blockify-filter-settings .components-flex-item{max-width:100%}.blockify-filter-settings .components-flex-item label{display:flex !important}.blockify-tools-panel .components-button-group{display:flex}.blockify-tools-panel input[type="number"]::-webkit-inner-spin-button,.blockify-tools-panel input[type="number"]::-webkit-outer-spin-button{opacity:1}.blockify-tools-panel .components-button{min-width:30px !important}.blockify-tools-panel .components-tools-panel-item{padding-top:16px;margin-top:8px;position:relative}.blockify-tools-panel .components-tools-panel-item::before{content:"";display:block;position:absolute;top:0;left:-16px;right:-16px;border-top:1px solid #e0e0e0}.blockify-tools-panel .components-tools-panel-item:first-of-type::before{display:none}.blockify-tools-panel .components-tools-panel-header+.components-tools-panel-item{padding-top:0;margin-top:0}.blockify-tools-panel .components-tools-panel-header+.components-tools-panel-item::before{display:none}.blockify-display-controls,.blockify-animate-controls{flex-wrap:wrap}.entities-saved-states__text-prompt+.is-opened strong{text-transform:capitalize}.blockify-shadow-presets{display:grid;grid-template-columns:repeat(4, 1fr);justify-content:space-between;gap:12px;width:100%;margin-bottom:16px}.blockify-shadow-presets .components-button{display:flex;justify-content:center;height:54px;width:54px;border-radius:60px !important;font-size:10px !important;box-shadow:var(--wp--custom--button--box-shadow)}.blockify-shadow-presets .has-xxs-shadow,.blockify-shadow-presets .has-xxs-shadow-hover{box-shadow:var(--wp--preset--shadow--xxs)}.blockify-shadow-presets .has-xxs-shadow-hover:hover,.blockify-shadow-presets .has-xxs-shadow-hover:focus{box-shadow:var(--wp--preset--shadow--xxs)}.blockify-shadow-presets .has-xs-shadow,.blockify-shadow-presets .has-xs-shadow-hover{box-shadow:var(--wp--preset--shadow--xs)}.blockify-shadow-presets .has-xs-shadow-hover:hover,.blockify-shadow-presets .has-xs-shadow-hover:focus{box-shadow:var(--wp--preset--shadow--xs)}.blockify-shadow-presets .has-sm-shadow,.blockify-shadow-presets .has-sm-shadow-hover{box-shadow:var(--wp--preset--shadow--sm)}.blockify-shadow-presets .has-sm-shadow-hover:hover,.blockify-shadow-presets .has-sm-shadow-hover:focus{box-shadow:var(--wp--preset--shadow--sm)}.blockify-shadow-presets .has-md-shadow,.blockify-shadow-presets .has-md-shadow-hover{box-shadow:var(--wp--preset--shadow--md)}.blockify-shadow-presets .has-md-shadow-hover:hover,.blockify-shadow-presets .has-md-shadow-hover:focus{box-shadow:var(--wp--preset--shadow--md)}.blockify-shadow-presets .has-lg-shadow,.blockify-shadow-presets .has-lg-shadow-hover{box-shadow:var(--wp--preset--shadow--lg)}.blockify-shadow-presets .has-lg-shadow-hover:hover,.blockify-shadow-presets .has-lg-shadow-hover:focus{box-shadow:var(--wp--preset--shadow--lg)}.blockify-shadow-presets .has-xl-shadow,.blockify-shadow-presets .has-xl-shadow-hover{box-shadow:var(--wp--preset--shadow--xl)}.blockify-shadow-presets .has-xl-shadow-hover:hover,.blockify-shadow-presets .has-xl-shadow-hover:focus{box-shadow:var(--wp--preset--shadow--xl)}.blockify-shadow-presets .has-xxl-shadow,.blockify-shadow-presets .has-xxl-shadow-hover{box-shadow:var(--wp--preset--shadow--xxl)}.blockify-shadow-presets .has-xxl-shadow-hover:hover,.blockify-shadow-presets .has-xxl-shadow-hover:focus{box-shadow:var(--wp--preset--shadow--xxl)}.block-editor-link-control__search-item-top{flex-wrap:wrap}.block-editor-link-control__search-item-action.block-editor-link-control__unlink{margin-left:0}.post-type-download .is-root-container.wp-block-post-content{max-width:var(--wp--style--global--content-size, 90%);margin-bottom:var(--wp--style--block-gap, 1em)}.edit-site-visual-editor>.components-resizable-box__container{height:100% !important}.is-selected.is-style-surface::after{backdrop-filter:none !important;pointer-events:none}.post-type-wp_block .alignfull .alignfull{max-width:100%;margin-left:auto !important;margin-right:auto !important} +code[class*="language-"],pre[class*="language-"]{text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;color:#c3cee3;background:#263238;font-family:Roboto Mono, monospace;font-size:1em;line-height:1.5em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*="language-"]::-moz-selection,pre[class*="language-"]::-moz-selection,code[class*="language-"] ::-moz-selection,pre[class*="language-"] ::-moz-selection{background:#363636}code[class*="language-"]::selection,pre[class*="language-"]::selection,code[class*="language-"] ::selection,pre[class*="language-"] ::selection{background:#363636}:not(pre)>code[class*="language-"]{white-space:normal;border-radius:0.2em;padding:0.1em}pre[class*="language-"]{overflow:auto;position:relative;margin:0.5em 0;padding:1.25em 1em}.language-css>code,.language-sass>code,.language-scss>code{color:#fd9170}[class*="language-"] .namespace{opacity:0.7}.token.atrule{color:#c792ea}.token.attr-name{color:#ffcb6b}.token.attr-value{color:#c3e88d}.token.attribute{color:#c3e88d}.token.boolean{color:#c792ea}.token.builtin{color:#ffcb6b}.token.cdata{color:#80cbc4}.token.char{color:#80cbc4}.token.class{color:#ffcb6b}.token.class-name{color:#f2ff00}.token.color{color:#f2ff00}.token.comment{color:#546e7a}.token.constant{color:#c792ea}.token.deleted{color:#f07178}.token.doctype{color:#546e7a}.token.entity{color:#f07178}.token.function{color:#c792ea}.token.hexcode{color:#f2ff00}.token.id{color:#c792ea;font-weight:bold}.token.important{color:#c792ea;font-weight:bold}.token.inserted{color:#80cbc4}.token.keyword{color:#c792ea;font-style:italic}.token.number{color:#fd9170}.token.operator{color:#89ddff}.token.prolog{color:#546e7a}.token.property{color:#80cbc4}.token.pseudo-class{color:#c3e88d}.token.pseudo-element{color:#c3e88d}.token.punctuation{color:#89ddff}.token.regex{color:#f2ff00}.token.selector{color:#f07178}.token.string{color:#c3e88d}.token.symbol{color:#c792ea}.token.tag{color:#f07178}.token.unit{color:#f07178}.token.url{color:#fd9170}.token.variable{color:#f07178}body.is-style-dark .hide-dark-mode{display:none}body.is-style-light:not(.is-style-dark) .hide-light-mode{display:none}.default-mode-light:not(.is-style-dark) .hide-light-mode{display:none}.default-mode-dark:not(.is-style-light) .hide-dark-mode{display:none}.default-mode-auto:not(.is-style-light):not(.is-style-dark) .hide-light-mode{display:none}@media (prefers-color-scheme: dark){.default-mode-auto:not(.is-style-light):not(.is-style-dark) .hide-dark-mode{display:none}.default-mode-auto:not(.is-style-light):not(.is-style-dark) .hide-light-mode{display:flex}}.edit-site-site-icon__image[src*=".svg"]{transform:scale(0.55);background:transparent}.npm__react-simple-code-editor__textarea:focus{outline:none;box-shadow:none}html .editor-styles-wrapper{--wp--custom--html--width: auto}html .editor-styles-wrapper .wp-site-blocks{display:flow-root}html .editor-styles-wrapper .wp-block-image img{max-width:100% !important}html .editor-styles-wrapper .wp-block-image[style*="--min-width:"]>div{min-width:100% !important}html .editor-styles-wrapper [src*=".svg"]{width:100%}html .editor-styles-wrapper .wp-block-button:not(.is-style-outline){border:0 !important}.edit-post-visual-editor__post-title-wrapper{text-align:center;margin-bottom:calc(var(--wp--style--block-gap) * 2);position:relative;z-index:10}.hide-title .edit-post-visual-editor__post-title-wrapper{display:none}.is-cover-template .edit-post-visual-editor__post-title-wrapper{margin-top:0;padding-top:4rem;padding-bottom:var(--wp--style--block-gap);background-color:red}.edit-post-post-schedule ~ .components-panel__row{flex-wrap:wrap}.edit-post-post-schedule ~ .components-panel__row .components-base-control{width:100%;margin:0.5em 0}.blockify-page-title-setting{width:100%}.editor-styles-wrapper.wp-embed-responsive>div,.editor-styles-wrapper.wp-embed-responsive>iframe{pointer-events:all !important}.blockify-template-parts .components-base-control{width:100%}.blockify-controls{order:2}.blockify-controls .components-panel__row,.blockify-controls .components-base-control{width:100%}.blockify-controls .components-panel__row label,.blockify-controls .components-base-control label{width:100% !important}.blockify-controls.is-opened .components-panel__body-title{margin-bottom:1em}.blockify-controls .block-editor-panel-color-gradient-settings{border:0;padding:0}.blockify-controls .block-editor-tools-panel-color-gradient-settings__item.first{margin-top:0}.blockify-gradient-text-control .components-popover__content{padding:0.5em}.block-editor-block-inspector>div:not([class*=""]){display:flex;flex-wrap:wrap}.block-editor-block-inspector>div:not([class*=""])>*{width:100%}.is-style-toggle input{display:none}.editor-styles-wrapper .is-style-toggle .wp-block-search__inside-wrapper{background:transparent !important;min-width:0 !important}header.wp-block-template-part{z-index:3}.is-transparent-header{position:absolute}.editor-styles-wrapper .is-layout-flow>p{margin-top:var(--wp--style--block-gap, 1em)}.blockify-min-height-control{border-top:0 !important}.block-editor-block-preview__live-content .components-placeholder{display:flex !important}[class*="has-aspect-ratio-"] .components-placeholder{min-height:1em}[class*="has-aspect-ratio-"] .components-placeholder__fieldset{height:0}.is-placeholder.is-selected .components-placeholder__fieldset,.is-placeholder.has-child-selected .components-placeholder__fieldset{height:auto}.blockify-settings .components-base-control__help{margin-top:8px}.blockify-settings .block-editor-panel-color-gradient-settings{padding:8px 0 0;border:0}div:has(>.blockify-icon-settings){display:flex;flex-wrap:wrap}div:has(>.blockify-icon-settings)>div{width:100%}div:has(>.blockify-icon-settings) .components-tools-panel{display:none}.blockify-icon-settings{order:-1}.blockify-icon-settings select{text-transform:capitalize}.blockify-icon-settings div[role="listbox"]{display:grid;grid-template-columns:repeat(5, minmax(0, 1fr))}.blockify-icon-setting .components-input-control__container{width:100%}.blockify-icon-setting svg{width:2em;height:2em}.blockify-icon-setting .components-custom-select-control__button{width:100%}.blockify-icon-setting .components-custom-select-control__menu[aria-hidden="false"]{display:flex;flex-wrap:wrap}.blockify-icon-setting .components-custom-select-control__item{width:42px}.blockify-icon-setting .components-custom-select-control__item-icon{display:none}.blockify-icon-preview{margin-top:27px;position:absolute;width:220px;display:flex;flex-wrap:wrap;align-items:center;text-transform:capitalize;z-index:9;pointer-events:none}.blockify-icon-preview svg{width:24px;margin:0 8px}.is-style-icon .components-placeholder__illustration,.is-style-icon .components-placeholder__instructions{display:none !important}.is-style-icon.wp-block-site-logo .components-placeholder{min-width:0;min-height:0}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"]{background:transparent !important;float:none !important;padding:0 !important;border:0 !important;margin-left:0 !important;margin-right:0 !important;box-shadow:none !important}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"].wp-block-button [data-rich-text-placeholder]{display:none}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"] .components-placeholder__illustration,.editor-styles-wrapper div [style*="--wp--custom--icon--url:"] img,.editor-styles-wrapper div [style*="--wp--custom--icon--url:"] figcaption,.editor-styles-wrapper div [style*="--wp--custom--icon--url:"] iframe,.editor-styles-wrapper div [style*="--wp--custom--icon--url:"] fieldset,.editor-styles-wrapper div [style*="--wp--custom--icon--url:"] .components-placeholder__label{display:none !important}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"].alignleft>div:first-of-type{margin-left:0}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"].alignright>div:first-of-type{margin-right:0}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"]>div:first-of-type:not(.wp-block-button__link){border-radius:inherit !important;border-width:var(--wp--custom--icon--border-width, 0) !important;border-style:var(--wp--custom--icon--border-style, solid) !important;border-color:var(--wp--custom--icon--border-color, currentColor) !important;background:var(--wp--custom--icon--background, transparent) !important;color:inherit !important;box-shadow:none;background-color:var(--wp--custom--icon--background, transparent) !important;padding:var(--wp--custom--icon--padding, 0)}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"]>div:first-of-type{display:inline-flex;position:relative;margin-left:auto;margin-right:auto;width:auto !important;height:auto !important;min-height:0;min-width:var(--wp--custom--icon--size, 30px)}.editor-styles-wrapper div [style*="--wp--custom--icon--url:"]>div:first-of-type::after{content:"";display:inline-block;position:relative;background:var(--wp--custom--icon--color, currentColor);width:var(--wp--custom--icon--size, 1em);height:var(--wp--custom--icon--size, 1em);margin:auto;vertical-align:text-bottom;order:var(--wp--custom--icon--order, 0);-webkit-mask-image:var(--wp--custom--icon--url);-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:cover !important}.wp-block-image.wp-block-image.is-selected .components-placeholder{box-shadow:none;background-color:transparent}.blockify-icon-popover>div>div{padding:16px;width:260px}.blockify-icon-color.is-opened{padding:0;border:0}.blockify-icon-color.is-opened .components-panel__body-title{margin:0}.blockify-icon-color.is-opened .components-panel__body-title button{padding:0 0 10px}.blockify-icon-color.is-opened .components-panel__body-title svg{display:none}.blockify-overflow-control{align-content:flex-start;align-items:flex-start;gap:8px}.blockify-icon-color{padding:0 !important;border-top:0 !important}.blockify-icon-color h2,.blockify-icon-color .components-dropdown-menu{display:none}.wp-block-video>div,.components-placeholder{border-radius:inherit !important}.is-layout-constrained>.wp-block-video:not([class*="align"]){max-width:100%}.blockify-animation-format>div,.blockify-underline-format>div{padding:1em;display:flex;flex-wrap:wrap;width:20em;gap:1em}.blockify-animation-format>div>div,.blockify-animation-format>div select,.blockify-underline-format>div>div,.blockify-underline-format>div select{width:100%}.blockify-conic-gradient-settings{padding:1.5em 0 0 !important;border:0 !important}.blockify-conic-gradient-settings h2{margin-bottom:1em !important}.blockify-conic-gradient-settings .components-dropdown-menu__toggle{display:none}.blockify-conic-gradient-settings>div{margin-top:0 !important}[aria-label="Gradient: Conic"]{background:var(--wp--preset--gradient--conic) !important}div .wp-block-navigation__responsive-close{max-width:none}.block-editor-block-preview__container{background:var(--wp--custom--body--background, var(--wp--preset--color--white, #fff))}.edit-site-global-styles-preview__iframe{pointer-events:none}.editor-styles-wrapper .wp-block-navigation.is-vertical{margin-top:var(--wp--style--block-gap, 1em)}.wp-block-navigation:not(.is-vertical) .wp-block-navigation-item__content{white-space:nowrap}.is-dark-theme .components-placeholder.has-illustration,.components-placeholder.has-illustration::before{opacity:1;background:transparent}.is-style-icon .is-dark-theme .components-placeholder.has-illustration,.is-style-icon .components-placeholder.has-illustration::before{display:none}.components-placeholder__illustration{stroke-width:var(--wp--custom--border--width);stroke-opacity:1;border-width:var(--wp--custom--border--width, 1px);border-style:var(--wp--custom--placeholder--border-style, dashed);stroke-dasharray:3;border-color:var(--wp--custom--border--color, currentColor);stroke:var(--wp--custom--border--color, currentColor);border-radius:var(--wp--custom--border--radius, 0);color:var(--wp--preset--color--outline);opacity:0}.components-placeholder.has-illustration{backdrop-filter:none;border:0;overflow:inherit;background:var(--wp--custom--placeholder--background, var(--wp--custom--surface--background))}.has-background>.components-placeholder.has-illustration{background:transparent}.blockify-width-control .components-flex-item{width:50%}.blockify-width-control .components-flex-item .components-flex-item{width:100%}.blockify-font-size-control>div,.blockify-font-family-control>div{width:240px;padding:1em}.blockify-controls-tabs .components-tab-panel__tabs{margin:-16px -16px 16px;box-shadow:inset 0 -1px 0 0 #e0e0e0}.blockify-controls-tabs svg{height:24px}.blockify-controls-tabs small{display:block;font-size:12px;font-style:normal;color:#757575}.blockify-svg-control>div{padding:16px}.blockify-svg-controls{order:-1}.is-style-svg>div{display:flex}.blockify-control-label{font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase;display:inline-flex;align-items:center;gap:4px;margin:8px 0;padding:0}.blockify-control-label+.components-button-group{display:flex}.blockify-animate-controls .components-flex-item:last-of-type>div{margin-bottom:0}.blockify-controls hr+.components-panel__row{margin-top:-6px}.is-selected.is-marquee>*,.has-child-selected.is-marquee>*{animation:0 !important;animation-direction:normal !important;transform:none !important}.is-marquee.wp-block{flex-direction:row !important}@media (prefers-reduced-motion){.is-marquee.wp-block>*{animation-direction:normal !important}}.is-marquee.is-selected,.is-marquee.has-child-selected{animation:0 !important;animation-direction:normal !important;transform:none !important}body .is-marquee{min-width:100%}img[style*="toggle-switch"]{position:absolute;left:4px}.inherit-layout>*:not(.alignfull,.alignwide){max-width:var(--wp--custom--layout--content-size)}.is-layout-constrained>.alignwide{max-width:100%}.wp-block-post-content:not(.is-root-container)>.alignwide{width:100%;min-width:var(--wp--style--global--wide-size) !important;margin-left:50%;transform:translateX(-50%)}.is-style-accordion{list-style:none;padding:0;margin:0}.is-style-accordion ul{list-style:none}.is-style-accordion li{width:100%;position:relative}.is-style-accordion li div{position:relative}.is-style-accordion li div::after,.is-style-accordion li div::before{content:"";margin:0.75em 0 0 0;width:12px;height:1.5px;display:inline-block !important;background:currentcolor;position:absolute;right:0;top:0}.is-style-accordion li div::after{transform:rotate(90deg)}.blockify-filter-settings{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px 8px}.blockify-filter-settings .components-input-control{margin-bottom:0 !important}.blockify-flex-controls{margin-bottom:16px !important}.blockify-flex-controls:last-of-type{margin-bottom:0 !important}.blockify-flex-controls .components-flex-item{flex:1;max-width:100%}.blockify-flex-controls .components-flex-item label{display:flex !important}.blockify-animate-controls .blockify-flex-controls{align-items:flex-start}.blockify-flex-controls .block-editor-panel-color-gradient-settings{padding:0}.blockify-flex-controls .block-editor-tools-panel-color-gradient-settings__item{margin:0 !important;padding:0 !important;border-top:0}.blockify-filter-settings .components-flex-item{max-width:100%}.blockify-filter-settings .components-flex-item label{display:flex !important}.blockify-tools-panel .components-button-group{display:flex}.blockify-tools-panel input[type="number"]::-webkit-inner-spin-button,.blockify-tools-panel input[type="number"]::-webkit-outer-spin-button{opacity:1}.blockify-tools-panel .components-button{min-width:30px !important}.blockify-tools-panel .components-tools-panel-item{padding-top:16px;margin-top:8px;position:relative}.blockify-tools-panel .components-tools-panel-item::before{content:"";display:block;position:absolute;top:0;left:-16px;right:-16px;border-top:1px solid #e0e0e0}.blockify-tools-panel .components-tools-panel-item:first-of-type::before{display:none}.blockify-tools-panel .components-tools-panel-header+.components-tools-panel-item{padding-top:0;margin-top:0}.blockify-tools-panel .components-tools-panel-header+.components-tools-panel-item::before{display:none}.blockify-display-controls,.blockify-animate-controls{flex-wrap:wrap}.entities-saved-states__text-prompt+.is-opened strong{text-transform:capitalize}.blockify-shadow-presets{display:grid;grid-template-columns:repeat(4, 1fr);justify-content:space-between;gap:12px;width:100%;margin-bottom:16px}.blockify-shadow-presets .components-button{display:flex;justify-content:center;height:54px;width:54px;border-radius:60px !important;font-size:10px !important;box-shadow:var(--wp--custom--button--box-shadow)}.blockify-shadow-presets .has-xxs-shadow,.blockify-shadow-presets .has-xxs-shadow-hover{box-shadow:var(--wp--preset--shadow--xxs)}.blockify-shadow-presets .has-xxs-shadow-hover:hover,.blockify-shadow-presets .has-xxs-shadow-hover:focus{box-shadow:var(--wp--preset--shadow--xxs)}.blockify-shadow-presets .has-xs-shadow,.blockify-shadow-presets .has-xs-shadow-hover{box-shadow:var(--wp--preset--shadow--xs)}.blockify-shadow-presets .has-xs-shadow-hover:hover,.blockify-shadow-presets .has-xs-shadow-hover:focus{box-shadow:var(--wp--preset--shadow--xs)}.blockify-shadow-presets .has-sm-shadow,.blockify-shadow-presets .has-sm-shadow-hover{box-shadow:var(--wp--preset--shadow--sm)}.blockify-shadow-presets .has-sm-shadow-hover:hover,.blockify-shadow-presets .has-sm-shadow-hover:focus{box-shadow:var(--wp--preset--shadow--sm)}.blockify-shadow-presets .has-md-shadow,.blockify-shadow-presets .has-md-shadow-hover{box-shadow:var(--wp--preset--shadow--md)}.blockify-shadow-presets .has-md-shadow-hover:hover,.blockify-shadow-presets .has-md-shadow-hover:focus{box-shadow:var(--wp--preset--shadow--md)}.blockify-shadow-presets .has-lg-shadow,.blockify-shadow-presets .has-lg-shadow-hover{box-shadow:var(--wp--preset--shadow--lg)}.blockify-shadow-presets .has-lg-shadow-hover:hover,.blockify-shadow-presets .has-lg-shadow-hover:focus{box-shadow:var(--wp--preset--shadow--lg)}.blockify-shadow-presets .has-xl-shadow,.blockify-shadow-presets .has-xl-shadow-hover{box-shadow:var(--wp--preset--shadow--xl)}.blockify-shadow-presets .has-xl-shadow-hover:hover,.blockify-shadow-presets .has-xl-shadow-hover:focus{box-shadow:var(--wp--preset--shadow--xl)}.blockify-shadow-presets .has-xxl-shadow,.blockify-shadow-presets .has-xxl-shadow-hover{box-shadow:var(--wp--preset--shadow--xxl)}.blockify-shadow-presets .has-xxl-shadow-hover:hover,.blockify-shadow-presets .has-xxl-shadow-hover:focus{box-shadow:var(--wp--preset--shadow--xxl)}.block-editor-link-control__search-item-top{flex-wrap:wrap}.block-editor-link-control__search-item-action.block-editor-link-control__unlink{margin-left:0}.post-type-download .is-root-container.wp-block-post-content{max-width:var(--wp--style--global--content-size, 90%);margin-bottom:var(--wp--style--block-gap, 1em)}.edit-site-visual-editor>.components-resizable-box__container{height:100% !important}.is-selected.is-style-surface::after{backdrop-filter:none !important;pointer-events:none}.post-type-wp_block .alignfull .alignfull{max-width:100%;margin-left:auto !important;margin-right:auto !important} diff --git a/assets/css/elements/button.css b/assets/css/elements/button.css index 100b14e..b55a166 100644 --- a/assets/css/elements/button.css +++ b/assets/css/elements/button.css @@ -1 +1 @@ -.wp-element-button,.is-style-button,.button:not(.components-button),[type="submit"]{height:auto;color:var(--wp--custom--button--color, inherit);padding:var(--wp--custom--button--padding-top, 8px) var(--wp--custom--button--padding-right, 16px) var(--wp--custom--button--padding-bottom, 8px) var(--wp--custom--button--padding-left, 16px);border-radius:var(--wp--custom--button--border-radius, inherit);border-width:var(--wp--custom--button--border-width);font-size:var(--wp--custom--button--font-size);font-weight:var(--wp--custom--button--font-weight);font-variation-settings:var(--wp--custom--button--font-variation-settings);text-decoration:none;box-shadow:var(--wp--custom--button--box-shadow);cursor:pointer;-webkit-appearance:none;display:inline-flex;position:relative;flex-wrap:wrap;justify-content:center;align-items:center;align-content:center;transition:var(--wp--custom--transition, inherit);background-clip:padding-box !important}.wp-element-button:hover,.wp-element-button:focus,.is-style-button:hover,.is-style-button:focus,.button:not(.components-button):hover,.button:not(.components-button):focus,[type="submit"]:hover,[type="submit"]:focus{box-shadow:var(--wp--custom--button--box-shadow--hover)}.is-style-dark .wp-element-button:not(.has-background),.is-style-dark .is-style-button:not(.has-background),.is-style-dark .button:not(.components-button):not(.has-background),.is-style-dark [type="submit"]:not(.has-background){background:var(--wp--custom--dark-mode--button--background, var(--wp--custom--button--background))}@media (prefers-color-scheme: dark){.default-mode-auto:not(.is-style-light):not(.is-style-dark) .wp-element-button:not(.has-background),.default-mode-auto:not(.is-style-light):not(.is-style-dark) .is-style-button:not(.has-background),.default-mode-auto:not(.is-style-light):not(.is-style-dark) .button:not(.components-button):not(.has-background),.default-mode-auto:not(.is-style-light):not(.is-style-dark) [type="submit"]:not(.has-background){background:var(--wp--custom--dark-mode--ghost--color, var(--wp--custom--button--background))}}.wp-element-button br+span,.is-style-button br+span,.button:not(.components-button) br+span,[type="submit"] br+span{width:100%;margin-top:0.5em}.wp-element-button:active,.wp-element-button:hover,.wp-element-button:focus,.wp-element-button.is-focus,.is-style-button:active,.is-style-button:hover,.is-style-button:focus,.is-style-button.is-focus,.button:not(.components-button):active,.button:not(.components-button):hover,.button:not(.components-button):focus,.button:not(.components-button).is-focus,[type="submit"]:active,[type="submit"]:hover,[type="submit"]:focus,[type="submit"].is-focus{opacity:var(--wp--custom--button--hover-opacity, 0.82)}.nowrap .wp-element-button,.nowrap .is-style-button,.nowrap .button:not(.components-button),.nowrap [type="submit"]{flex-wrap:nowrap}.wp-element-button:not(.has-background),.is-style-button:not(.has-background),.button:not(.components-button):not(.has-background),[type="submit"]:not(.has-background){background:var(--wp--custom--button--background)}.wp-element-button.is-style-ghost,.is-style-button.is-style-ghost,.button:not(.components-button).is-style-ghost,[type="submit"].is-style-ghost{background:transparent !important;position:relative;z-index:0;color:var(--wp--custom--ghost--color, inherit)}.wp-element-button.is-style-ghost:hover::before,.is-style-button.is-style-ghost:hover::before,.button:not(.components-button).is-style-ghost:hover::before,[type="submit"].is-style-ghost:hover::before{opacity:var(--wp--custom--ghost--hover--opacity, 0.2)}.wp-element-button.is-style-ghost::before,.is-style-button.is-style-ghost::before,.button:not(.components-button).is-style-ghost::before,[type="submit"].is-style-ghost::before{content:"";position:absolute;inset:0;background:currentcolor;opacity:var(--wp--custom--ghost--opacity, 0.1);transition:var(--wp--custom--transition);border-radius:inherit;z-index:-1}.is-style-dark .wp-element-button.is-style-ghost::before,.is-style-dark .is-style-button.is-style-ghost::before,.is-style-dark .button:not(.components-button).is-style-ghost::before,.is-style-dark [type="submit"].is-style-ghost::before{opacity:var(--wp--custom--dark-mode--ghost--opacity, 0.12)}@media (prefers-color-scheme: dark){.default-mode-auto:not(.is-style-light):not(.is-style-dark) .wp-element-button.is-style-ghost::before,.default-mode-auto:not(.is-style-light):not(.is-style-dark) .is-style-button.is-style-ghost::before,.default-mode-auto:not(.is-style-light):not(.is-style-dark) .button:not(.components-button).is-style-ghost::before,.default-mode-auto:not(.is-style-light):not(.is-style-dark) [type="submit"].is-style-ghost::before{opacity:var(--wp--custom--dark-mode--ghost--opacity, 0.12)}.default-mode-light:not(.is-style-dark) .wp-element-button.is-style-ghost::before,.default-mode-light:not(.is-style-dark) .is-style-button.is-style-ghost::before,.default-mode-light:not(.is-style-dark) .button:not(.components-button).is-style-ghost::before,.default-mode-light:not(.is-style-dark) [type="submit"].is-style-ghost::before{opacity:var(--wp--custom--ghost--opacity, 0.1)}}.is-style-dark .wp-element-button.is-style-ghost,.is-style-dark .is-style-button.is-style-ghost,.is-style-dark .button:not(.components-button).is-style-ghost,.is-style-dark [type="submit"].is-style-ghost{color:var(--wp--custom--dark-mode--ghost--color, inherit)}@media (prefers-color-scheme: dark){.default-mode-auto:not(.is-style-light):not(.is-style-dark) .wp-element-button.is-style-ghost,.default-mode-auto:not(.is-style-light):not(.is-style-dark) .is-style-button.is-style-ghost,.default-mode-auto:not(.is-style-light):not(.is-style-dark) .button:not(.components-button).is-style-ghost,.default-mode-auto:not(.is-style-light):not(.is-style-dark) [type="submit"].is-style-ghost{color:var(--wp--custom--dark-mode--ghost--color, inherit)}}.is-style-badges,.is-style-small{--wp--custom--button--font-size: 12px;--wp--custom--button--padding-top: 6px;--wp--custom--button--padding-right: 12px;--wp--custom--button--padding-bottom: 6px;--wp--custom--button--padding-left: 12px;--wp--custom--button--gap: 6px}.is-style-large{--wp--custom--button--font-size: 16px;--wp--custom--button--padding-top: 12px;--wp--custom--button--padding-right: 20px;--wp--custom--button--padding-bottom: 12px;--wp--custom--button--padding-left: 20px;--wp--custom--button--gap: 8px}[type="reset"]{background:var(--wp--preset--color--surface);color:inherit;margin-bottom:1em;width:auto} +.wp-element-button,.is-style-button,.button:not(.components-button),[type="submit"]{height:auto;color:var(--wp--custom--button--color, inherit);padding:var(--wp--custom--button--padding-top, 8px) var(--wp--custom--button--padding-right, 16px) var(--wp--custom--button--padding-bottom, 8px) var(--wp--custom--button--padding-left, 16px);border-radius:var(--wp--custom--button--border-radius, inherit);border-width:var(--wp--custom--button--border-width);font-size:var(--wp--custom--button--font-size);font-weight:var(--wp--custom--button--font-weight);font-variation-settings:var(--wp--custom--button--font-variation-settings);text-decoration:none;box-shadow:var(--wp--custom--button--box-shadow);cursor:pointer;-webkit-appearance:none;display:inline-flex;position:relative;flex-wrap:wrap;justify-content:center;align-items:center;align-content:center;transition:var(--wp--custom--transition, inherit);background-clip:padding-box !important}.wp-element-button:hover,.wp-element-button:focus,.is-style-button:hover,.is-style-button:focus,.button:not(.components-button):hover,.button:not(.components-button):focus,[type="submit"]:hover,[type="submit"]:focus{box-shadow:var(--wp--custom--button--box-shadow--hover)}.is-style-dark .wp-element-button:not(.has-background),.is-style-dark .is-style-button:not(.has-background),.is-style-dark .button:not(.components-button):not(.has-background),.is-style-dark [type="submit"]:not(.has-background){background:var(--wp--custom--dark-mode--button--background, var(--wp--custom--button--background))}@media (prefers-color-scheme: dark){.default-mode-auto:not(.is-style-light):not(.is-style-dark) .wp-element-button:not(.has-background),.default-mode-auto:not(.is-style-light):not(.is-style-dark) .is-style-button:not(.has-background),.default-mode-auto:not(.is-style-light):not(.is-style-dark) .button:not(.components-button):not(.has-background),.default-mode-auto:not(.is-style-light):not(.is-style-dark) [type="submit"]:not(.has-background){background:var(--wp--custom--dark-mode--ghost--color, var(--wp--custom--button--background))}}.wp-element-button br+span,.is-style-button br+span,.button:not(.components-button) br+span,[type="submit"] br+span{width:100%;margin-top:0.5em}.wp-element-button:active,.wp-element-button:hover,.wp-element-button:focus,.wp-element-button.is-focus,.is-style-button:active,.is-style-button:hover,.is-style-button:focus,.is-style-button.is-focus,.button:not(.components-button):active,.button:not(.components-button):hover,.button:not(.components-button):focus,.button:not(.components-button).is-focus,[type="submit"]:active,[type="submit"]:hover,[type="submit"]:focus,[type="submit"].is-focus{opacity:var(--wp--custom--button--hover-opacity, 0.82)}.nowrap .wp-element-button,.nowrap .is-style-button,.nowrap .button:not(.components-button),.nowrap [type="submit"]{flex-wrap:nowrap}.wp-element-button:not(.has-background),.is-style-button:not(.has-background),.button:not(.components-button):not(.has-background),[type="submit"]:not(.has-background){background:var(--wp--custom--button--background)}.wp-element-button.is-style-ghost,.is-style-button.is-style-ghost,.button:not(.components-button).is-style-ghost,[type="submit"].is-style-ghost{background:transparent !important;position:relative;z-index:0;color:var(--wp--custom--ghost--color, inherit)}.wp-element-button.is-style-ghost:hover::before,.is-style-button.is-style-ghost:hover::before,.button:not(.components-button).is-style-ghost:hover::before,[type="submit"].is-style-ghost:hover::before{opacity:var(--wp--custom--ghost--hover--opacity, 0.2)}.wp-element-button.is-style-ghost::before,.is-style-button.is-style-ghost::before,.button:not(.components-button).is-style-ghost::before,[type="submit"].is-style-ghost::before{content:"";position:absolute;inset:0;background:currentcolor;opacity:var(--wp--custom--ghost--opacity, 0.1);transition:var(--wp--custom--transition);border-radius:inherit;z-index:-1}.is-style-dark .wp-element-button.is-style-ghost,.is-style-dark .is-style-button.is-style-ghost,.is-style-dark .button:not(.components-button).is-style-ghost,.is-style-dark [type="submit"].is-style-ghost{color:var(--wp--custom--dark-mode--ghost--color, inherit)}@media (prefers-color-scheme: dark){.default-mode-auto:not(.is-style-light):not(.is-style-dark) .wp-element-button.is-style-ghost,.default-mode-auto:not(.is-style-light):not(.is-style-dark) .is-style-button.is-style-ghost,.default-mode-auto:not(.is-style-light):not(.is-style-dark) .button:not(.components-button).is-style-ghost,.default-mode-auto:not(.is-style-light):not(.is-style-dark) [type="submit"].is-style-ghost{color:var(--wp--custom--dark-mode--ghost--color, inherit)}}.is-style-badges,.is-style-small{--wp--custom--button--font-size: 12px;--wp--custom--button--padding-top: 6px;--wp--custom--button--padding-right: 12px;--wp--custom--button--padding-bottom: 6px;--wp--custom--button--padding-left: 12px;--wp--custom--button--gap: 6px}.is-style-large{--wp--custom--button--font-size: 16px;--wp--custom--button--padding-top: 12px;--wp--custom--button--padding-right: 20px;--wp--custom--button--padding-bottom: 12px;--wp--custom--button--padding-left: 20px;--wp--custom--button--gap: 8px}[type="reset"]{background:var(--wp--preset--color--surface);color:inherit;margin-bottom:1em;width:auto} diff --git a/assets/css/extensions/shadow.css b/assets/css/extensions/shadow.css index 083ff03..4648959 100644 --- a/assets/css/extensions/shadow.css +++ b/assets/css/extensions/shadow.css @@ -1 +1 @@ -.has-shadow{box-shadow:var(--wp--custom--box-shadow);transition:var(--wp--custom--transition)}.has-none-shadow:not(.wp-block-button),.has-none-shadow-hover:not(.wp-block-button):hover,.has-none-shadow-hover:not(.wp-block-button):focus{box-shadow:none}.has-xxs-shadow{box-shadow:var(--wp--preset--shadow--xxs)}.has-xxs-shadow:not(.wp-block-button){box-shadow:var(--wp--preset--shadow--xxs)}.has-xxs-shadow-hover:not(.wp-block-button):hover,.has-xxs-shadow-hover:not(.wp-block-button):focus{box-shadow:var(--wp--preset--shadow--xxs--hover) !important}.has-xxs-shadow.wp-block-button{--wp--custom--button--box-shadow: var(--wp--preset--shadow--xxs)}.has-xxs-shadow-hover.wp-block-button{--wp--custom--button--box-shadow--hover: var(--wp--preset--shadow--xxs)}.has-xs-shadow{box-shadow:var(--wp--preset--shadow--xs)}.has-xs-shadow:not(.wp-block-button){box-shadow:var(--wp--preset--shadow--xs)}.has-xs-shadow-hover:not(.wp-block-button):hover,.has-xs-shadow-hover:not(.wp-block-button):focus{box-shadow:var(--wp--preset--shadow--xs--hover) !important}.has-xs-shadow.wp-block-button{--wp--custom--button--box-shadow: var(--wp--preset--shadow--xs)}.has-xs-shadow-hover.wp-block-button{--wp--custom--button--box-shadow--hover: var(--wp--preset--shadow--xs)}.has-sm-shadow{box-shadow:var(--wp--preset--shadow--sm)}.has-sm-shadow:not(.wp-block-button){box-shadow:var(--wp--preset--shadow--sm)}.has-sm-shadow-hover:not(.wp-block-button):hover,.has-sm-shadow-hover:not(.wp-block-button):focus{box-shadow:var(--wp--preset--shadow--sm--hover) !important}.has-sm-shadow.wp-block-button{--wp--custom--button--box-shadow: var(--wp--preset--shadow--sm)}.has-sm-shadow-hover.wp-block-button{--wp--custom--button--box-shadow--hover: var(--wp--preset--shadow--sm)}.has-md-shadow{box-shadow:var(--wp--preset--shadow--md)}.has-md-shadow:not(.wp-block-button){box-shadow:var(--wp--preset--shadow--md)}.has-md-shadow-hover:not(.wp-block-button):hover,.has-md-shadow-hover:not(.wp-block-button):focus{box-shadow:var(--wp--preset--shadow--md--hover) !important}.has-md-shadow.wp-block-button{--wp--custom--button--box-shadow: var(--wp--preset--shadow--md)}.has-md-shadow-hover.wp-block-button{--wp--custom--button--box-shadow--hover: var(--wp--preset--shadow--md)}.has-lg-shadow{box-shadow:var(--wp--preset--shadow--lg)}.has-lg-shadow:not(.wp-block-button){box-shadow:var(--wp--preset--shadow--lg)}.has-lg-shadow-hover:not(.wp-block-button):hover,.has-lg-shadow-hover:not(.wp-block-button):focus{box-shadow:var(--wp--preset--shadow--lg--hover) !important}.has-lg-shadow.wp-block-button{--wp--custom--button--box-shadow: var(--wp--preset--shadow--lg)}.has-lg-shadow-hover.wp-block-button{--wp--custom--button--box-shadow--hover: var(--wp--preset--shadow--lg)}.has-xl-shadow{box-shadow:var(--wp--preset--shadow--xl)}.has-xl-shadow:not(.wp-block-button){box-shadow:var(--wp--preset--shadow--xl)}.has-xl-shadow-hover:not(.wp-block-button):hover,.has-xl-shadow-hover:not(.wp-block-button):focus{box-shadow:var(--wp--preset--shadow--xl--hover) !important}.has-xl-shadow.wp-block-button{--wp--custom--button--box-shadow: var(--wp--preset--shadow--xl)}.has-xl-shadow-hover.wp-block-button{--wp--custom--button--box-shadow--hover: var(--wp--preset--shadow--xl)}.has-xxl-shadow{box-shadow:var(--wp--preset--shadow--xxl)}.has-xxl-shadow:not(.wp-block-button){box-shadow:var(--wp--preset--shadow--xxl)}.has-xxl-shadow-hover:not(.wp-block-button):hover,.has-xxl-shadow-hover:not(.wp-block-button):focus{box-shadow:var(--wp--preset--shadow--xxl--hover) !important}.has-xxl-shadow.wp-block-button{--wp--custom--button--box-shadow: var(--wp--preset--shadow--xxl)}.has-xxl-shadow-hover.wp-block-button{--wp--custom--button--box-shadow--hover: var(--wp--preset--shadow--xxl)} +.has-shadow{box-shadow:var(--wp--custom--box-shadow);transition:var(--wp--custom--transition)}.has-text-shadow{text-shadow:var(--wp--custom--text-shadow--x, 0) var(--wp--custom--text-shadow--y, 0) var(--wp--custom--text-shadow--blur, 0) var(--wp--custom--text-shadow--color, transparent)}.has-none-shadow:not(.wp-block-button),.has-none-shadow-hover:not(.wp-block-button):hover,.has-none-shadow-hover:not(.wp-block-button):focus{box-shadow:none}.has-xxs-shadow{box-shadow:var(--wp--preset--shadow--xxs)}.has-xxs-shadow:not(.wp-block-button){box-shadow:var(--wp--preset--shadow--xxs)}.has-xxs-shadow-hover:not(.wp-block-button):hover,.has-xxs-shadow-hover:not(.wp-block-button):focus{box-shadow:var(--wp--preset--shadow--xxs--hover) !important}.has-xxs-shadow.wp-block-button{--wp--custom--button--box-shadow: var(--wp--preset--shadow--xxs)}.has-xxs-shadow-hover.wp-block-button{--wp--custom--button--box-shadow--hover: var(--wp--preset--shadow--xxs)}.has-xs-shadow{box-shadow:var(--wp--preset--shadow--xs)}.has-xs-shadow:not(.wp-block-button){box-shadow:var(--wp--preset--shadow--xs)}.has-xs-shadow-hover:not(.wp-block-button):hover,.has-xs-shadow-hover:not(.wp-block-button):focus{box-shadow:var(--wp--preset--shadow--xs--hover) !important}.has-xs-shadow.wp-block-button{--wp--custom--button--box-shadow: var(--wp--preset--shadow--xs)}.has-xs-shadow-hover.wp-block-button{--wp--custom--button--box-shadow--hover: var(--wp--preset--shadow--xs)}.has-sm-shadow{box-shadow:var(--wp--preset--shadow--sm)}.has-sm-shadow:not(.wp-block-button){box-shadow:var(--wp--preset--shadow--sm)}.has-sm-shadow-hover:not(.wp-block-button):hover,.has-sm-shadow-hover:not(.wp-block-button):focus{box-shadow:var(--wp--preset--shadow--sm--hover) !important}.has-sm-shadow.wp-block-button{--wp--custom--button--box-shadow: var(--wp--preset--shadow--sm)}.has-sm-shadow-hover.wp-block-button{--wp--custom--button--box-shadow--hover: var(--wp--preset--shadow--sm)}.has-md-shadow{box-shadow:var(--wp--preset--shadow--md)}.has-md-shadow:not(.wp-block-button){box-shadow:var(--wp--preset--shadow--md)}.has-md-shadow-hover:not(.wp-block-button):hover,.has-md-shadow-hover:not(.wp-block-button):focus{box-shadow:var(--wp--preset--shadow--md--hover) !important}.has-md-shadow.wp-block-button{--wp--custom--button--box-shadow: var(--wp--preset--shadow--md)}.has-md-shadow-hover.wp-block-button{--wp--custom--button--box-shadow--hover: var(--wp--preset--shadow--md)}.has-lg-shadow{box-shadow:var(--wp--preset--shadow--lg)}.has-lg-shadow:not(.wp-block-button){box-shadow:var(--wp--preset--shadow--lg)}.has-lg-shadow-hover:not(.wp-block-button):hover,.has-lg-shadow-hover:not(.wp-block-button):focus{box-shadow:var(--wp--preset--shadow--lg--hover) !important}.has-lg-shadow.wp-block-button{--wp--custom--button--box-shadow: var(--wp--preset--shadow--lg)}.has-lg-shadow-hover.wp-block-button{--wp--custom--button--box-shadow--hover: var(--wp--preset--shadow--lg)}.has-xl-shadow{box-shadow:var(--wp--preset--shadow--xl)}.has-xl-shadow:not(.wp-block-button){box-shadow:var(--wp--preset--shadow--xl)}.has-xl-shadow-hover:not(.wp-block-button):hover,.has-xl-shadow-hover:not(.wp-block-button):focus{box-shadow:var(--wp--preset--shadow--xl--hover) !important}.has-xl-shadow.wp-block-button{--wp--custom--button--box-shadow: var(--wp--preset--shadow--xl)}.has-xl-shadow-hover.wp-block-button{--wp--custom--button--box-shadow--hover: var(--wp--preset--shadow--xl)}.has-xxl-shadow{box-shadow:var(--wp--preset--shadow--xxl)}.has-xxl-shadow:not(.wp-block-button){box-shadow:var(--wp--preset--shadow--xxl)}.has-xxl-shadow-hover:not(.wp-block-button):hover,.has-xxl-shadow-hover:not(.wp-block-button):focus{box-shadow:var(--wp--preset--shadow--xxl--hover) !important}.has-xxl-shadow.wp-block-button{--wp--custom--button--box-shadow: var(--wp--preset--shadow--xxl)}.has-xxl-shadow-hover.wp-block-button{--wp--custom--button--box-shadow--hover: var(--wp--preset--shadow--xxl)} diff --git a/assets/css/extensions/transform.css b/assets/css/extensions/transform.css index 0a1bacc..8da7f41 100644 --- a/assets/css/extensions/transform.css +++ b/assets/css/extensions/transform.css @@ -1 +1 @@ -.has-transform{transform:var(--transform);transition:transform var(--wp--custom--transition--duration) var(--wp--custom--transition--timing-function)}.has-transform:hover{transform:var(--transform-hover, var(--transform))} +.has-transform{transform:var(--transform);transition:transform var(--wp--custom--transition--duration) var(--wp--custom--transition--timing-function)}@media (prefers-reduced-motion: no-preference){.has-transform:hover{transform:var(--transform-hover, var(--transform))}} diff --git a/assets/js/editor.asset.php b/assets/js/editor.asset.php index 095e948..ac2029b 100644 --- a/assets/js/editor.asset.php +++ b/assets/js/editor.asset.php @@ -1 +1 @@ - array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives', 'wp-rich-text'), 'version' => '02968632255710881c9a'); + array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives', 'wp-rich-text'), 'version' => '149bc0434de63b6e69d5'); diff --git a/assets/js/editor.js b/assets/js/editor.js index f798042..c0fae88 100644 --- a/assets/js/editor.js +++ b/assets/js/editor.js @@ -1 +1 @@ -(()=>{var e={960:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},915:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(960),a=n(790);o(n(790),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},790:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=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])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=p;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=m;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var h=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function b(e){return e.type===a.ElementType.Text}function y(e){return e.type===a.ElementType.Comment}function k(e){return e.type===a.ElementType.Directive}function w(e){return e.type===a.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),b(e))n=new c(e.data);else if(y(e))n=new u(e.data);else if(g(e)){var r=t?x(e.children):[],o=new h(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(v(e)){r=t?x(e.children):[];var a=new m(r);r.forEach((function(e){return e.parent=a})),n=a}else if(w(e)){r=t?x(e.children):[];var l=new f(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!k(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n{"use strict";var r=n(296),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},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=m(n);o&&o!==f&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var l=s(t),h=s(n),g=0;g{"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,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=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,m=n?Symbol.for("react.suspense"):60113,f=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,k=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 l:case a:case m:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case h:case s: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=s,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=l,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)===s},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)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},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===l||e===a||e===m||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===k||e.$$typeof===v)},t.typeOf=w},296:(e,t,n)=>{"use strict";e.exports=n(103)},885:(e,t)=>{t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},276:e=>{var t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,i=//i,a=//i,l=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},s=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;l=s=function(e,t){return t&&(e="<"+t+">"+e+""),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();l=function(e,t){return t?(d.documentElement.querySelector(t).innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var p,m="object"==typeof document?document.createElement("template"):{};m.content&&(p=function(e){return m.innerHTML=e,m.content.childNodes}),e.exports=function(e){var c,u,d,m,f=e.match(o);switch(f&&f[1]&&(c=f[1].toLowerCase()),c){case t:return u=s(e),i.test(e)||(d=u.querySelector(n))&&d.parentNode.removeChild(d),a.test(e)||(d=u.querySelector(r))&&d.parentNode.removeChild(d),u.querySelectorAll(t);case n:case r:return m=(u=l(e)).querySelectorAll(c),a.test(e)&&i.test(e)?m[0].parentNode.childNodes:m;default:return p?p(e):(d=l(e,r).querySelector(r)).childNodes}}},152:(e,t,n)=>{var r=n(276),o=n(507).formatDOM,i=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(i);return n&&n[1]&&(t=n[1]),o(r(e),null,t)}},507:(e,t,n)=>{for(var r,o=n(915),i=n(885).CASE_SENSITIVE_TAG_NAMES,a=o.Comment,l=o.Element,s=o.ProcessingInstruction,c=o.Text,u={},d=0,p=i.length;d{var r=n(915),o=n(152),i=n(484),a=n(670);o="function"==typeof o.default?o.default:o;var l={lowerCaseAttributeNames:!1};function s(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:a(o(e,(t=t||{}).htmlparser2||l),t)}s.domToReact=a,s.htmlToDOM=o,s.attributesToProps=i,s.Comment=r.Comment,s.Element=r.Element,s.ProcessingInstruction=r.ProcessingInstruction,s.Text=r.Text,e.exports=s,s.default=s},484:(e,t,n)=>{var r=n(726),o=n(606),i=["checked","value"],a=["input","select","textarea"],l={reset:!0,submit:!0};function s(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,c,u,d,p,m={},f=(e=e||{}).type&&l[e.type];for(n in e)if(u=e[n],r.isCustomAttribute(n))m[n]=u;else if(d=s(c=n.toLowerCase()))switch(p=r.getPropertyInfo(d),-1===i.indexOf(d)||-1===a.indexOf(t)||f||(d=s("default"+c)),m[d]=u,p&&p.type){case r.BOOLEAN:m[d]=!0;break;case r.OVERLOADED_BOOLEAN:""===u&&(m[d]=!0)}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(m[n]=u);return o.setStyleProp(e.style,m),m}},670:(e,t,n)=>{var r=n(196),o=n(484),i=n(606),a=i.setStyleProp,l=i.canTextBeChildOfNode;function s(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&i.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var i,c,u,d,p,m=(n=n||{}).library||r,f=m.cloneElement,h=m.createElement,g=m.isValidElement,v=[],b="function"==typeof n.replace,y=n.trim,k=0,w=t.length;k1&&(u=f(u,{key:u.key||k})),v.push(u);else if("text"!==i.type){switch(d=i.attribs,s(i)?a(d.style,d):d&&(d=o(d,i.name)),p=null,i.type){case"script":case"style":i.children[0]&&(d.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?d.defaultValue=i.children[0].data:i.children&&i.children.length&&(p=e(i.children,n));break;default:continue}w>1&&(d.key=k),v.push(h(i.name,d,p))}else{if((c=!i.data.trim().length)&&i.parent&&!l(i.parent))continue;if(y&&c)continue;v.push(i.data)}return 1===v.length?v[0]:v}},606:(e,t,n)=>{var r=n(196),o=n(476).default,i={reactCompat:!0},a=r.version.split(".")[0]>=16,l=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,o="function"==typeof t,i={},a={};for(n in e)r=e[n],o&&(i=t(n,r))&&2===i.length?a[i[0]]=i[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.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}},setStyleProp:function(e,t){if(null!=e)try{t.style=o(e,i)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!l.has(e.name)},elementsWithNoTextChildren:l}},139:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,p=1;function m(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new h(e),y(),t}}function h(e){this.start=e,this.end={line:d,column:p},this.source=s.source}h.prototype.content=e;var g=[];function v(t){var n=new Error(s.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=p,n.source=e,!s.silent)throw n;g.push(n)}function b(t){var n=t.exec(e);if(n){var r=n[0];return m(r),e=e.slice(r.length),n}}function y(){b(r)}function k(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return p+=2,m(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function E(){var e=f(),n=b(o);if(n){if(w(),!b(i))return v("property missing ':'");var r=b(a),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return b(l),s}}return y(),function(){var e,t=[];for(k(t);e=E();)!1!==e&&(t.push(e),k(t));return t}()}},433:()=>{Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},325:(e,t,n)=>{var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=d.reach);x+=E.value.length,E=E.next){var C=E.value;if(t.length>e.length)return;if(!(C instanceof i)){var S,_=1;if(b){if(!(S=a(w,x,e,v))||S.index>=e.length)break;var O=S.index,F=S.index+S[0].length,P=x;for(P+=E.value.length;O>=P;)P+=(E=E.next).value.length;if(x=P-=E.value.length,E.value instanceof i)continue;for(var I=E;I!==t.tail&&(Pd.reach&&(d.reach=M);var R=E.prev;if(A&&(R=c(t,R,A),x+=A.length),u(t,R,_),E=c(t,R,new i(p,g?o.tokenize(T,g):T,y,T)),N&&c(t,E,N),_>1){var B={cause:p+","+f,reach:M};l(e,t,n,E.prev,x,B),d&&B.reach>d.reach&&(d.reach=B.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o"+i.content+""},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var d=o.util.currentScript();function p(){o.manual||o.highlightAll()}if(d&&(o.filename=d.src,d.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var m=document.readyState;"loading"===m||"interactive"===m&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},980:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},726:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},460:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=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])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1){t._history.stack=s.slice(0,c+1);var u=t._history.stack.length;if(u>100){var d=u-100;t._history.stack=s.slice(d,u),t._history.offset=Math.max(t._history.offset-d,0)}}var p=Date.now();if(n){var m=t._history.stack[t._history.offset];if(m&&p-m.timestamp<3e3){var f=/[^a-z0-9]([a-z0-9]+)$/i,h=null===(r=t._getLines(m.value,m.selectionStart).pop())||void 0===r?void 0:r.match(f),g=null===(o=t._getLines(e.value,e.selectionStart).pop())||void 0===o?void 0:o.match(f);if((null==h?void 0:h[1])&&(null===(a=null==g?void 0:g[1])||void 0===a?void 0:a.startsWith(h[1])))return void(t._history.stack[t._history.offset]=i(i({},e),{timestamp:p}))}}t._history.stack.push(i(i({},e),{timestamp:p})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,r=t._history.stack[t._history.offset];r&&n&&(t._history.stack[t._history.offset]=i(i({},r),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.stack,r=e.offset,o=n[r-1];o&&(t._updateInput(o),t._history.offset=Math.max(r-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,r=e.offset,o=n[r+1];o&&(t._updateInput(o),t._history.offset=Math.min(r+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,r=n.tabSize,o=n.insertSpaces,i=n.ignoreTabKey,a=n.onKeyDown;if(!a||(a(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var l=e.currentTarget,s=l.value,c=l.selectionStart,u=l.selectionEnd,m=(o?" ":"\t").repeat(r);if(9===e.keyCode&&!i&&t.state.capture)if(e.preventDefault(),e.shiftKey){var f=(b=t._getLines(s,c)).length-1,h=t._getLines(s,u).length-1,g=s.split("\n").map((function(e,t){return t>=f&&t<=h&&e.startsWith(m)?e.substring(m.length):e})).join("\n");if(s!==g){var v=b[f];t._applyEdits({value:g,selectionStart:(null==v?void 0:v.startsWith(m))?c-m.length:c,selectionEnd:u-(s.length-g.length)})}}else if(c!==u){var b,y=(b=t._getLines(s,c)).length-1,k=t._getLines(s,u).length-1;v=b[y],t._applyEdits({value:s.split("\n").map((function(e,t){return t>=y&&t<=k?m+e:e})).join("\n"),selectionStart:v&&/\S/.test(v)?c+m.length:c,selectionEnd:u+m.length*(k-y+1)})}else{var w=c+m.length;t._applyEdits({value:s.substring(0,c)+m+s.substring(u),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var E=c!==u;s.substring(0,c).endsWith(m)&&!E&&(e.preventDefault(),w=c-m.length,t._applyEdits({value:s.substring(0,c-m.length)+s.substring(u),selectionStart:w,selectionEnd:w}))}else if(13===e.keyCode){if(c===u){var x=t._getLines(s,c).pop(),C=null==x?void 0:x.match(/^\s+/);if(null==C?void 0:C[0]){e.preventDefault();var S="\n"+C[0];w=c+S.length,t._applyEdits({value:s.substring(0,c)+S+s.substring(u),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var _=void 0;57===e.keyCode&&e.shiftKey?_=["(",")"]:219===e.keyCode?_=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?_=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(_=["`","`"]),c!==u&&_&&(e.preventDefault(),t._applyEdits({value:s.substring(0,c)+_[0]+s.substring(c,u)+_[1]+s.substring(u),selectionStart:c,selectionEnd:u+2}))}else!(p?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(p?e.metaKey&&90===e.keyCode&&e.shiftKey:d?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||p&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,r=n.value,o=n.selectionStart,i=n.selectionEnd;t._recordChange({value:r,selectionStart:o,selectionEnd:i},!0),t.props.onValueChange(r)},t._history={stack:[],offset:-1},t._input=null,t}return o(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.style,o=t.padding,a=t.highlight,l=t.textareaId,s=t.textareaClassName,d=t.autoFocus,p=t.disabled,h=t.form,v=t.maxLength,b=t.minLength,y=t.name,k=t.placeholder,w=t.readOnly,E=t.required,x=t.onClick,C=t.onFocus,S=t.onBlur,_=t.onKeyUp,O=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,t.preClassName),F=c(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),P={paddingTop:"object"==typeof o?o.top:o,paddingRight:"object"==typeof o?o.right:o,paddingBottom:"object"==typeof o?o.bottom:o,paddingLeft:"object"==typeof o?o.left:o},I=a(n);return u.createElement("div",i({},F,{style:i(i({},g.container),r)}),u.createElement("pre",i({className:O,"aria-hidden":"true",style:i(i(i({},g.editor),g.highlight),P)},"string"==typeof I?{dangerouslySetInnerHTML:{__html:I+"
"}}:{children:I})),u.createElement("textarea",{ref:function(t){return e._input=t},style:i(i(i({},g.editor),g.textarea),P),className:m+(s?" ".concat(s):""),id:l,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:x,onKeyUp:_,onFocus:C,onBlur:S,disabled:p,form:h,maxLength:v,minLength:b,name:y,placeholder:k,readOnly:w,required:E,autoFocus:d,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),u.createElement("style",{dangerouslySetInnerHTML:{__html:f}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(u.Component);t.default=h;var g={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},476:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=r(n(848)),i=n(678);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)})),n):n}},678:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,s):e.replace(i,s)).replace(r,l))}},848:(e,t,n)=>{var r=n(139);function o(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var i,a,l=r(e),s="function"==typeof t,c=0,u=l.length;c{"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(196);const t=window.wp.hooks,r=window.wp.compose,o=e=>e?e?.toLowerCase()?.replace(/(?<= )[^\s]|^./g,(e=>e?.toUpperCase())):"",i=e=>{var t;return e&&null!==(t=e?.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.join("-")?.toLowerCase())&&void 0!==t?t:""},a=(e="",t,n)=>{if("string"==typeof t)return e?.split(t)?.join(n);for(const r of t)e=a(e,r,n);return e},l=e=>o(a((e=>{const t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)})(e),["-","_"]," "));var s,c;const u=null!==(s=window?.blockify?.blockSupports)&&void 0!==s?s:{},d=e=>{var t;return null!==(t=u?.[e]?.blockifyPosition)&&void 0!==t&&t},p=null!==(c=window?.blockify?.extensionOptions)&&void 0!==c?c:{};(0,t.addFilter)("blocks.registerBlockType","blockify/add-position-attributes",((e,t)=>{if(d(t)){var n;const t={};Object.keys(p).forEach((e=>{t[e]={type:"object"}})),e.attributes={...e.attributes,style:{...t,...null!==(n=e?.attributes?.style)&&void 0!==n?n:{}}}}return e}),0);const m=e=>{var t;const n=[],r=null!==(t=e?.style)&&void 0!==t?t:{};return Object.keys(p).forEach((e=>{var t;const o=i(e);var a,l,s,c,u,d;p?.[e]?.options?(null!==(a=r?.[e]?.all)&&void 0!==a&&a&&n.push(`has-${o}-${i(null!==(c=r?.[e]?.all)&&void 0!==c?c:"")}`),null!==(l=r?.[e]?.mobile)&&void 0!==l&&l&&n.push(`has-${o}-${i(null!==(u=r?.[e]?.mobile)&&void 0!==u?u:"")}-mobile`),null!==(s=r?.[e]?.desktop)&&void 0!==s&&s&&n.push(`has-${o}-${i(null!==(d=r?.[e]?.desktop)&&void 0!==d?d:"")}-desktop`)):null!==(t=r?.[e])&&void 0!==t&&t&&n.push(`has-${o}`)})),n},f=e=>{var t;const n={},r=null!==(t=e?.style)&&void 0!==t?t:{};return Object.keys(p).forEach((e=>{var t,o,a;if(p?.[e]?.options)return;const l=i(e);null!==(t=r?.[e]?.all)&&void 0!==t&&t&&(n[`--${l}`]=r?.[e]?.all),null!==(o=r?.[e]?.mobile)&&void 0!==o&&o&&(n[`--${l}-mobile`]=r?.[e]?.mobile),null!==(a=r?.[e]?.desktop)&&void 0!==a&&a&&(n[`--${l}-desktop`]=r?.[e]?.desktop)})),n};(0,t.addFilter)("editor.BlockListBlock","blockify/with-position-style",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{name:o,attributes:i}=n;if(!d(o))return(0,e.createElement)(t,{...n});const a=m(i),l=f(i),s=null!==(r=n?.wrapperProps)&&void 0!==r?r:{};return n={...n,style:{...n?.style,...l}},s&&(s.style={...s?.style,...l}),a.forEach((e=>{n?.className?.includes(e)||(n.className=n?.className+" "+e)})),n.wrapperProps=s,(0,e.createElement)(t,{...n})}),"withPositionStyle")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/save-position-style",(e=>{const{name:t,attributes:n}=e;if(!u?.[t]?.blockifyPosition)return e;const r=m(n),o=f(n);return r.forEach((t=>{e?.className?.includes(t)||(e.className=e?.className+" "+t)})),e={...e,style:{...e?.style,...o}}}),11);const h=window.wp.domReady;var g=n.n(h);const v=window.wp.blocks;g()((()=>{var e,t,n;const r=null!==(e=window?.blockify?.blockStyles)&&void 0!==e?e:{unregister:{},register:{}},i=null!==(t=r?.unregister)&&void 0!==t?t:{},l=null!==(n=r?.register)&&void 0!==n?n:{};Object.keys(i).forEach((e=>{i[e].forEach((t=>{(0,v.unregisterBlockStyle)(e,t)}))})),Object.keys(l).forEach((e=>{l[e].forEach((t=>{let n="",r="";"string"==typeof t?(n=t,r=o(a(t,"-"," "))):(n=Object.keys(t)[0],r=Object.values(t)[0]),(0,v.registerBlockStyle)(e,{name:n,label:r})}))}))}));const b=e=>Object.keys(e).map((t=>`${t?.includes("-")?t:i(t)}:${e[t]};`)).join(" "),y=e=>{const t={};return e.split(";").map((e=>{const[n,r]=e.split(":");return n&&(t[n]=r),null})),t},k=e=>e.includes("var:")?(e=e.replace("var:","var(--wp--"),(e=a(e,"|","--"))+")"):e,w=(e="",t="")=>{if(!t)return e;const n=e.trim().split(" ");return t.trim().split(" ").forEach((e=>{n.includes(e)||n.push(e)})),n.join(" ")},E=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"},{value:"vh",label:"vh"},{value:"auto",label:"auto"}];var x;(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2000 2000"},(0,e.createElement)("path",{fill:"currentColor",d:"m1729.66 534.39-691.26-399.1a76.814 76.814 0 0 0-76.81 0l-691.26 399.1a76.818 76.818 0 0 0-38.4 66.52v798.19c0 27.44 14.64 52.8 38.4 66.52l691.26 399.1c11.88 6.86 25.14 10.29 38.4 10.29s26.52-3.43 38.4-10.29l691.26-399.1a76.818 76.818 0 0 0 38.4-66.52V600.9c.01-27.44-14.63-52.79-38.39-66.51zm-115.21 820.36-539.18 311.3V998.46c0-27.45-14.65-52.81-38.43-66.53l-574.18-331.2L1000 290.49l614.45 354.75v709.51z"}));const C=null!==(x=window?.blockify?.defaultIcon)&&void 0!==x?x:{set:"wordpress",name:"star-empty",string:' '},S=e=>{var t,n;const r={};let o="";const i=e?.className?.includes("is-style-icon");if(!(e?.iconSet&&e?.iconName||i))return r;e?.style?.color?.background&&(o=e.style.color.background),e?.backgroundColor&&(o="var(--wp--preset--color--"+e.backgroundColor+", currentColor)"),"start"===e?.iconPosition&&(r["--wp--custom--icon--order"]="-1");let a="";e?.style?.color?.gradient&&(a=e?.style?.color?.gradient),e?.gradient&&(a="var(--wp--preset--gradient--"+e.gradient+",currentColor)");let l="";if(e?.style?.color?.text&&(l=e?.style?.color?.text),e?.textColor&&(l="var(--wp--preset--color--"+e.textColor+",currentColor)"),""!==o&&(r["--wp--custom--icon--background"]=o),l?(r["--wp--custom--icon--color"]=l,a&&(r["--wp--custom--icon--background"]=a)):a&&(r["--wp--custom--icon--color"]=a),e?.style?.spacing?.padding){var s,c,u,d;const t=e.style.spacing.padding,n={top:null!==(s=t?.top)&&void 0!==s?s:"0",right:null!==(c=t?.right)&&void 0!==c?c:"0",bottom:null!==(u=t?.bottom)&&void 0!==u?u:"0",left:null!==(d=t?.left)&&void 0!==d?d:"0"};Object.keys(n).forEach((e=>{var t;const r=null!==(t=n?.[e])&&void 0!==t?t:"";r&&r?.includes("var:preset")&&(n[e]="var(--wp--preset--spacing--"+r.replace("var:preset|spacing|","")+")")})),r["--wp--custom--icon--padding"]=Object.values(n).join(" ")}if(e?.style?.spacing?.margin){var p,m,f,h;const t=e.style.spacing.margin,n={top:null!==(p=t?.top)&&void 0!==p?p:"",right:null!==(m=t?.right)&&void 0!==m?m:"",bottom:null!==(f=t?.bottom)&&void 0!==f?f:"",left:null!==(h=t?.left)&&void 0!==h?h:""};Object.keys(n).forEach((e=>{var t;const r=null!==(t=n?.[e])&&void 0!==t?t:"";r?.includes("var:preset")&&(n[e]="var(--wp--preset--spacing--"+r?.replace("var:preset|spacing|","")+")")})),r["--wp--custom--icon--margin"]=Object.values(n).join(" ")}let g="";var v,b;e?.borderColor&&(g="var(--wp--preset--color--"+e?.borderColor+")"),e?.style?.border?.width&&(r["--wp--custom--icon--border-width"]=e.style.border.width,r["--wp--custom--icon--border-style"]=null!==(v=e.style.border?.style)&&void 0!==v?v:"solid",r["--wp--custom--icon--border-color"]=null!==(b=e.style.border?.color)&&void 0!==b?b:g);let y=null!==(t=e?.iconSize)&&void 0!==t?t:"";if(""!==y){const e=["px","em","rem","vh","vw","%"].some((e=>y?.includes(e)));y=e?y:y+"px",r["--wp--custom--icon--size"]=y}const k=null!==(n=e?.iconSvgString)&&void 0!==n?n:"";return k&&(r["--wp--custom--icon--url"]="url('data:image/svg+xml;utf8,"+k+"')"),r};var _;const O=null!==(_=window?.blockify?.blockSupports)&&void 0!==_?_:{};(0,t.addFilter)("blocks.registerBlockType","blockify/block-supports",((e,t)=>(Object.keys(O).includes(t)&&(e.supports={...e.supports,...O[t]}),e)),0),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/alignment-class",((e,t,n)=>(Object.keys(O).includes(t.name)&&n?.align&&!e.className.includes(" align")&&(e.className+=" align"+n.align),e))),(0,t.addFilter)("editor.BlockListBlock","blockify/with-block-gap-css",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const i=(0,e.createElement)(t,{...n});if("core/page-list"!==n.name&&"core/button"!==n.name)return i;const a=null!==(r=n?.attributes?.style?.spacing?.blockGap)&&void 0!==r?r:"";if(!a)return i;const l={...(n={...n,style:{...null!==(o=n.style)&&void 0!==o?o:{},"--wp--style--block-gap":k(a)}}).wrapperProps,style:{...n.wrapperProps?.style,"--wp--style--block-gap":k(a)}};return(0,e.createElement)(t,{...n,wrapperProps:l})}),"withBlockGapCss")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/with-no-spacer-height",((e,t,n)=>{var r;return"core/spacer"!==t.name||(null!==(r=n?.height)&&void 0!==r?r:"")||(e.style={...e.style,height:""}),e}));const F=window.wp.apiFetch;var P=n.n(F);const I=window.wp.data,T={icons:{social:{},wordpress:{}}},A={setIcons:e=>({type:"SET_ICONS",icons:e}),getIcons:e=>({type:"GET_ICONS",path:e})},N={getIcons(e){const{icons:t}=e;return t}},M={GET_ICONS:e=>P()({path:e.path})},R={*getIcons(){const e=yield A.getIcons("/blockify/v1/icons/");return A.setIcons(e)}},B="blockify/icons";(0,I.select)("blockify/icons")?.getIcons()||(0,I.register)((0,I.createReduxStore)(B,{reducer:(e=T,t)=>"SET_ICONS"===t.type?{...e,icons:t.icons}:e,actions:A,selectors:N,controls:M,resolvers:R}));const D=window.wp.components,L=window.wp.i18n,V=window.wp.primitives,j=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.Path,{d:"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z"})),z=({children:t,style:n})=>(0,e.createElement)("p",{className:"blockify-control-label",style:{margin:"8px 0",...n}},t),H=({children:t,style:n})=>(0,e.createElement)("p",{style:{fontSize:"12px",color:"rgb(117, 117, 117)",...n}},t);var $=n(460),U=n.n($),G=n(325);n(433),n(980);const W=window.wp.element,q=({code:t,onChange:n,rows:r=32,language:i="html"})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(U(),{highlight:e=>{var t;return(0,G.highlight)(e,null!==(t=G.languages?.[i])&&void 0!==t?t:"html")},placeholder:(0,L.__)("Please enter ","blockify")+o(i)+(0,L.__)(" code here…","blockify"),value:a(t,'"',"'"),onValueChange:e=>{n(a(e,'"',"'"))},padding:10,style:{fontSize:12,fontFamily:"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",height:r.toString()+"em",maxHeight:"100%",borderRadius:"2px",color:"#c3cee3",background:"#263238"}})),Y=t=>{const[n,r]=(0,W.useState)(!1),{title:o,description:i}=t;return(0,e.createElement)("div",{className:"blockify-code-editor-modal",style:{width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"column",alignItems:"flex-start"}},(0,e.createElement)(z,null,null!=o?o:""),(0,e.createElement)(H,null,null!=i?i:""),(0,e.createElement)(D.Button,{isSecondary:!0,onClick:()=>r(!0)},o),n&&(0,e.createElement)(D.Modal,{title:null!=o?o:"",onRequestClose:()=>r(!1),style:{width:"80%"}},(0,e.createElement)(q,{...t})))},X=()=>(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 120 120",xmlSpace:"preserve"},(0,e.createElement)(V.Path,{d:"M15 0h35v120H15zm55 0h35v120H70z"})),K=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:"currentColor",width:"1em",height:"1em"},(0,e.createElement)("polygon",{points:"10,5 0,10 0,0"})),Z=window.wp.blockEditor,J=t=>{const{boxShadow:n,setBoxShadow:r,changeColor:i,tab:a}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,null,["x","y","blur","spread"].map((t=>(0,e.createElement)(D.FlexItem,{key:t},(0,e.createElement)(D.__experimentalNumberControl,{label:o(t),value:"default"===a?n[t]:n?.hover?.[t],onChange:e=>{e&&r({[t]:e})}})))))),(0,e.createElement)("br",null),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,{style:{flex:1.5}},(0,e.createElement)(Z.__experimentalPanelColorGradientSettings,{title:(0,L.__)("Color","blockify"),showTitle:!1,enableAlpha:!0,settings:[{enableAlpha:!0,colorValue:"default"===a?n?.color:n?.[a]?.color,label:(0,L.__)("Color ","blockify")+("hover"===a?(0,L.__)(" Hover","blockify"):""),onColorChange:i}]})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Inset","blockify"),checked:"default"===a?n?.inset:n?.[a]?.inset,onChange:e=>{r({inset:e?"inset":""})}})))))},Q=(t,n)=>{var r,o;const{attributes:i,setAttributes:a}=t,{style:l}=i,s=null!==(r=l?.boxShadow)&&void 0!==r?r:{},c=null!==(o=(0,I.select)("core/block-editor").getSettings().colors)&&void 0!==o?o:[],u=e=>{let t;t="default"===n?{...e}:{hover:{...s?.hover,...e}},a({...i,style:{...l,boxShadow:{...s,...t}}})},d=(0,I.select)("core/block-editor")?.getSettings()?.__experimentalFeatures?.shadow?.presets?.theme;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)((()=>{const t="hover"===n?"-hover":"";return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ButtonGroup,{className:"blockify-shadow-presets"},d.map((r=>{const o="default"===n&&i.shadowPreset===r.slug||"hover"===n&&i.shadowPresetHover===r.slug;return(0,e.createElement)(D.Button,{key:r.slug+t,className:`has-${r.slug}-shadow`+t,isSmall:!0,variant:o?"primary":"secondary",onClick:()=>{a("hover"===n?{shadowPresetHover:"none"===r.slug?"":r.slug}:{shadowPreset:"none"===r.slug?"":r.slug})}},r.name)})))),(0,e.createElement)("br",null),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Custom box shadow","blockify"),checked:i?.useCustomBoxShadow,onChange:e=>{a({useCustomBoxShadow:e})}})))}),null),i?.useCustomBoxShadow&&(0,e.createElement)(J,{boxShadow:s,setBoxShadow:u,changeColor:e=>{for(const t of c)t.color===e&&(e="var(--wp--preset--color--"+t.slug+")");u({color:e})},tab:n}))},ee=t=>{const{attributes:n,setAttributes:r}=t,[o,i]=(0,W.useState)("default");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,L.__)("Shadow","blockify"),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{r({shadowPreset:"",shadowPresetHover:"",useCustomBoxShadow:!1,style:{...n?.style,boxShadow:""}})},icon:j,iconSize:16,"aria-label":(0,L.__)("Clear Shadow","blockify")}))),(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{isSmall:!0,variant:"default"===o?"primary":"secondary",onClick:()=>i("default")},(0,L.__)("Default","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,variant:"hover"===o?"primary":"secondary",onClick:()=>i("hover")},(0,L.__)("Hover","blockify")))),"default"===o&&Q(t,o),"hover"===o&&Q(t,o))},te=[{value:"ease",label:(0,L.__)("Ease","blockify")},{value:"ease-in",label:(0,L.__)("Ease In","blockify")},{value:"ease-out",label:(0,L.__)("Ease Out","blockify"),isDefault:!0},{value:"ease-in-out",label:(0,L.__)("Ease In Out","blockify")},{value:"linear",label:(0,L.__)("Linear","blockify")}],ne=[{value:"",label:""}];window?.blockify?.animations?.forEach((e=>{ne.push({value:e,label:o(e?.replace(/-/g," "))})}));const re=[{value:"enter",label:(0,L.__)("Enter","blockify"),isDefault:!0},{value:"exit",label:(0,L.__)("Exit","blockify")},{value:"infinite",label:(0,L.__)("Infinite","blockify")},{value:"scroll",label:(0,L.__)("Scroll","blockify")}],oe=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyAnimation)&&void 0!==t&&t};(0,t.addFilter)("blocks.registerBlockType","blockify/add-animation-attributes",((e,t)=>(oe(t)&&(e.attributes={...e.attributes,animation:{type:"object"}}),e)),0);const ie=e=>{const t={};var n,r,o,i,a,l,s;return e?.event&&(t["--animation-event"]=null!==(n=e.event)&&void 0!==n?n:"enter","infinite"===e.event&&(t.animationIterationCount="infinite")),e?.name&&(t.animationName=null!==(r=e.name)&&void 0!==r?r:""),e?.duration&&(t.animationDuration=(null!==(o=e.duration)&&void 0!==o?o:"1")+"s"),e?.delay&&(t.animationDelay=(null!==(i=e.delay)&&void 0!==i?i:"0")+"s"),e?.timingFunction&&(t.animationTimingFunction=null!==(a=e?.timingFunction)&&void 0!==a?a:"ease-in-out"),t?.animationIterationCount||(t.animationIterationCount=null!==(l=e?.iterationCount)&&void 0!==l?l:"1"),e?.playState&&(t.animationPlayState=null!==(s=e?.playState)&&void 0!==s?s:"running"),t};(0,t.addFilter)("editor.BlockListBlock","blockify/with-animation-props",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o}=n,i=null!==(r=o?.animation)&&void 0!==r?r:{};if(!i||!Object?.keys(i)?.length)return(0,e.createElement)(t,{...n});const a=ie(i),l=n?.className?.trim()+" has-animation";n={...n,className:l};const s={...n?.wrapperProps,className:l,style:{...n?.wrapperProps?.style,...a}};return(0,e.createElement)(t,{...n,wrapperProps:s})}),"withAnimation")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-animation-styles",((e,t,n)=>{var r;const o=null!==(r=n?.animation)&&void 0!==r?r:{};if(!o||!Object?.keys(o)?.length)return e;e.className=e?.className?.trim()+" has-animation";const i=ie(o);return{...e,style:{...e?.style,...i}}}));const ae=({attributes:t,setAttributes:n})=>{var r,o,i,a,l,s,c,u;const d=null!==(r=t?.animation)&&void 0!==r?r:{};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",null,(0,L.__)("Animation","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>n({animation:{}}),icon:j,iconSize:16,"aria-label":(0,L.__)("Clear Animation","blockify")}))),(0,e.createElement)(D.Flex,{justify:"flex-end"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.Button,{variant:"secondary",isSmall:!0,icon:"running"===d?.playState?X:K,iconSize:10,onClick:()=>{n({animation:{...d,playState:"running"===d?.playState?"paused":"running"}})}},"running"===d?.playState?(0,L.__)("Pause","blockify"):(0,L.__)("Run","blockify"))))),(0,e.createElement)(D.PanelRow,{className:"blockify-animate-controls"},(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Effect","blockify"),value:null!==(o=d?.name)&&void 0!==o?o:"",options:ne,onChange:e=>{var t;n({animation:{...d,name:e,duration:null!==(t=d?.duration)&&void 0!==t?t:1}})}}))),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Easing","blockify"),value:null!==(i=d?.timingFunction)&&void 0!==i?i:"",options:te,onChange:e=>{n({animation:{...d,timingFunction:e}})}}))),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Event","blockify"),value:null!==(a=d?.event)&&void 0!==a?a:"enter",options:re,onChange:e=>{n({animation:{...d,event:e,iterationCount:"-1"===("infinite"===e?"-1":d?.iterationCount)?"1":d?.iterationCount}})}})))),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Duration","blockify"),value:null!==(l=d?.duration)&&void 0!==l?l:1,onChange:e=>{n({animation:{...d,duration:e}})},min:0,max:100,step:.1,shiftStep:10,allowReset:!0})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Delay","blockify"),value:null!==(s=d?.delay)&&void 0!==s?s:0,onChange:e=>{n({animation:{...d,delay:e}})},min:0,max:100,step:.1,shiftStep:10,allowReset:!0})),"infinite"!==d?.event&&(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Repeat","blockify"),value:"infinite"===d?.event?-1:null!==(c=d?.iterationCount)&&void 0!==c?c:1,onChange:e=>{n({animation:{...d,iterationCount:e}})},min:-1,max:100,step:1,allowReset:!0})),"scroll"===d?.event&&(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Offset","blockify"),value:parseInt(null!==(u=d?.offset)&&void 0!==u?u:"50"),onChange:e=>{n({animation:{...d,offset:e.toString()}})},min:-1,max:200,step:1,allowReset:!0})))))};(0,t.addFilter)("editor.BlockEdit","blockify/animation-controls",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o,isSelected:i,name:a}=n;return oe(a)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),i&&(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{initialOpen:null!==(r=o?.animation)&&void 0!==r&&r,title:(0,L.__)("Animation","blockify")},(0,e.createElement)(ae,{...n})))):(0,e.createElement)(t,{...n})}),"withAnimation"));const le=["chevron","plus"];(0,t.addFilter)("blocks.registerBlockType","blockify/details-icon-attributes",((e,t)=>("core/details"===t&&(e={...e,attributes:{...e.attributes,expandIcon:{type:"string"},closeOthers:{type:"boolean"}}}),e))),(0,t.addFilter)("editor.BlockEdit","blockify/with-details-icon-controls",(0,r.createHigherOrderComponent)((t=>n=>{const{attributes:r,setAttributes:i,name:a}=n;return"core/details"!==a?(0,e.createElement)(t,{...n}):(r?.expandIcon||(r.expandIcon="chevron"),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{title:(0,L.__)("Expand Icon","blockify")},(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ButtonGroup,null,le.map((t=>(0,e.createElement)(D.Button,{key:t,variant:r.expandIcon===t?"primary":"secondary",onClick:()=>i({expandIcon:t})},o(t)))))))),(0,e.createElement)(t,{...n})))}),"withExpandIconControls")),(0,t.addFilter)("editor.BlockListBlock","blockify/with-details-icon",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{name:o,attributes:i}=n;if("core/details"!==o||!i?.expandIcon)return(0,e.createElement)(t,{...n});const a=null!==(r=n.wrapperProps)&&void 0!==r?r:{},l="is-style-"+i.expandIcon;return a.className=w(a?.className,l),(0,e.createElement)(t,{...n,wrapperProps:a})}),"withExpandIcon")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/details-icon-save",(e=>{const{name:t,attributes:n}=e;if("core/details"!==t||!n?.expandIcon)return e;const r="is-style-"+n.expandIcon;return e.className=w(e?.className,r),e}));const se=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"})),ce=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"})),ue={name:"group-grid",icon:(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"})),title:(0,L.__)("Grid","blockify"),isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"design",scope:["inserter","transform","block"],description:(0,L.__)("Arrange blocks in a grid.","blockify"),attributes:{layout:{type:"flex",orientation:"grid"},style:{display:{all:"grid"},gridTemplateColumns:{all:"repeat(3,1fr)"},gridTemplateRows:{all:"repeat(3,1fr)"}}},isActive:e=>"grid"===e?.layout?.orientation};(0,v.registerBlockVariation)("core/group",ue);const de=["grid","inline-grid"],pe=(t,n,r,o)=>{var i,a,l,s;const{attributes:c,setAttributes:u}=t,{style:d}=c,p=d?.gridTemplateColumns?.[n],m=d?.gridTemplateRows?.[n],f=p?p?.replace(/repeat\((\d+),1fr\)/,"$1"):"",h=m?m?.replace(/repeat\((\d+),1fr\)/,"$1"):"";return(0,e.createElement)(e.Fragment,null,r&&(0,e.createElement)(D.PanelRow,{className:"blockify-grid-controls"},(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Columns","blockify"),value:f,onChange:e=>{u({style:{...d,gridTemplateColumns:{...d?.gridTemplateColumns,[n]:e?"repeat("+e+",1fr)":""}}})},min:1,max:12,step:1})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Rows","blockify"),value:h,onChange:e=>{u({style:{...d,gridTemplateRows:{...d?.gridTemplateRows,[n]:e?"repeat("+e+",1fr)":""}}})},min:1,max:12,step:1})))),o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,{className:"blockify-grid-controls"},(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Column Start","blockify"),value:null!==(i=d?.gridColumnStart?.[n])&&void 0!==i?i:"",onChange:e=>{u({style:{...d,gridColumnStart:{...d?.gridColumnStart,[n]:e}}})},min:1,max:12,step:1})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Column End","blockify"),value:null!==(a=d?.gridColumnEnd?.[n])&&void 0!==a?a:"",onChange:e=>{u({style:{...d,gridColumnEnd:{...d?.gridColumnEnd,[n]:e}}})},min:1,max:12,step:1})))),(0,e.createElement)(D.PanelRow,{className:"blockify-grid-controls"},(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Row Start","blockify"),value:null!==(l=d?.gridRowStart?.[n])&&void 0!==l?l:"",onChange:e=>{u({style:{...d,gridRowStart:{...d?.gridRowStart,[n]:e}}})},min:1,max:12,step:1})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Row End","blockify"),value:null!==(s=d?.gridRowEnd?.[n])&&void 0!==s?s:"",onChange:e=>{u({style:{...d,gridRowEnd:{...d?.gridRowEnd,[n]:e}}})},min:1,max:12,step:1}))))))},me=t=>{var n,r;const{attributes:o,setAttributes:i,name:a,clientId:l}=t,[s,c]=(0,W.useState)("all"),{style:u}=o,d="core/group"===a&&(de.includes(u?.display?.all)||de.includes(u?.display?.mobile)||de.includes(u?.display?.desktop)),p=null!==(n=(0,I.select)("core/block-editor")?.getBlockParents(l))&&void 0!==n?n:[],m=p[p.length-1],f=null!==(r=(0,I.select)("core/block-editor")?.getBlockAttributes(m))&&void 0!==r?r:null,h=de.includes(f?.style?.display?.all)||de.includes(f?.style?.display?.mobile)||de.includes(f?.style?.display?.desktop);return d||h?(0,e.createElement)(D.PanelBody,{initialOpen:"grid"===o?.display?.all||"grid"===o?.display?.mobile||"grid"===o?.display?.desktop,title:(0,L.__)("Grid","blockify")},(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,L.__)("Grid","blockify"),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{i({style:{...o?.style,gridTemplateColumns:"",gridTemplateRows:"",gridColumnStart:"",gridColumnEnd:"",gridRowStart:"",gridRowEnd:""}})},icon:j,iconSize:16,"aria-label":(0,L.__)("Reset Grid","blockify")}))),(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{isSmall:!0,variant:"all"===s?"primary":"secondary",onClick:()=>c("all")},(0,L.__)("All","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,variant:"mobile"===s?"primary":"secondary",onClick:()=>c("mobile"),icon:se}),(0,e.createElement)(D.Button,{isSmall:!0,variant:"desktop"===s?"primary":"secondary",onClick:()=>c("desktop"),icon:ce}))),"all"===s&&pe(t,s,d,h),"mobile"===s&&pe(t,s,d,h),"desktop"===s&&pe(t,s,d,h)):(0,e.createElement)(e.Fragment,null)};var fe;(0,t.addFilter)("editor.BlockEdit","blockify/grid-controls",(0,r.createHigherOrderComponent)((t=>n=>{const{isSelected:r,attributes:o,name:i}=n;if(!ge(i))return(0,e.createElement)(t,{...n});const a="grid"===o?.layout?.orientation&&!o?.layout?.verticalAlignment;return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)((()=>(0,e.createElement)("style",null,".has-display-grid{align-items:normal !important}")),null),(0,e.createElement)(t,{...n}),r&&(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(me,{...n})))}),"withDisplay"));const he=null!==(fe=window?.blockify?.blockSupports)&&void 0!==fe?fe:{},ge=e=>{var t;return null!==(t=he?.[e]?.blockifyPosition)&&void 0!==t&&t},ve=t=>{var n,r,o;const{attributes:i,setAttributes:a,screen:l}=t,{style:s}=i;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,{className:"blockify-display-controls"},(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Display","blockify"),value:null!==(n=s?.display?.[l])&&void 0!==n?n:"",options:null!==(r=window?.blockify?.extensionOptions?.display?.options)&&void 0!==r?r:[],onChange:e=>{a({style:{...s,display:{...s?.display,[l]:e}}}),de.includes(e)?a({layout:{...i?.layout,type:"flex",flexWrap:"nowrap",orientation:"grid"}}):a({layout:{...i?.layout,orientation:"horizontal"}})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Order","blockify"),value:null!==(o=s?.order?.[l])&&void 0!==o?o:"",onChange:e=>{a({style:{...s,order:{...s?.order,[l]:e}}})},min:-10,max:10,step:1,allowReset:!0}))),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Width","blockify"),value:s?.width?.[l]?.includes("auto")?"":s?.width?.[l],units:E,onChange:e=>{a({style:{...s,width:{...s?.width,[l]:e?.includes("auto")?"auto":e}}})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Min Width","blockify"),value:s?.minWidth?.[l],onChange:e=>{a({style:{...s,minWidth:{...s?.minWidth,[l]:e}}})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Max Width","blockify"),value:s?.maxWidth?.[l],onChange:e=>{a({style:{...s,maxWidth:{...s?.maxWidth,[l]:e}}})}})))))},be=t=>{const{attributes:n,setAttributes:r}=t,[o,i]=(0,W.useState)("all");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,L.__)("Display","blockify"),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{r({style:{...n?.style,display:void 0,order:void 0,width:void 0,maxWidth:void 0}})},icon:j,iconSize:16,"aria-label":(0,L.__)("Reset Display","blockify")}))),(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{isSmall:!0,variant:"all"===o?"primary":"secondary",onClick:()=>i("all")},(0,L.__)("All","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,variant:"mobile"===o?"primary":"secondary",onClick:()=>i("mobile"),icon:se}),(0,e.createElement)(D.Button,{isSmall:!0,variant:"desktop"===o?"primary":"secondary",onClick:()=>i("desktop"),icon:ce}))),"all"===o&&(0,e.createElement)(ve,{...t,screen:o}),"mobile"===o&&(0,e.createElement)(ve,{...t,screen:o}),"desktop"===o&&(0,e.createElement)(ve,{...t,screen:o}))};var ye;(0,t.addFilter)("editor.BlockEdit","blockify/display-controls",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const{attributes:i,isSelected:a,name:l}=n;return ge(l)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),a&&(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{initialOpen:null!==(r=(null!==(o=i?.style?.display?.all?.length)&&void 0!==o?o:{})>0)&&void 0!==r&&r,title:(0,L.__)("Display","blockify")},(0,e.createElement)(be,{...n})))):(0,e.createElement)(t,{...n})}),"withDisplay")),(0,t.addFilter)("blocks.registerBlockType","blockify/content-limit-attributes",((e,t)=>("core/post-excerpt"===t&&(e={...e,attributes:{...e.attributes,defaultExcerpt:{type:"string"},hideReadMore:{type:"boolean"}}}),"core/post-content"===t&&(e={...e,attributes:{...e.attributes,contentLimit:{type:"number"}}}),e))),(0,t.addFilter)("editor.BlockEdit","blockify/with-content-limit-controls",(0,r.createHigherOrderComponent)((t=>n=>{const{attributes:r,setAttributes:o,name:i}=n;return"core/post-excerpt"!==i&&"core/post-content"!==i?(0,e.createElement)(t,{...n}):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{title:(0,L.__)("Content","blockify")},"core/post-excerpt"===i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.TextareaControl,{label:(0,L.__)("Default Content","blockify"),value:r.defaultExcerpt,onChange:e=>{o({defaultExcerpt:e})}})),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Hide Read More Link","blockify"),checked:r.hideReadMore,onChange:e=>{o({hideReadMore:e})}}))),"core/post-content"===i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Content Limit","blockify"),help:(0,L.__)("Limit content to specific number of words.","blockify"),value:r?.contentLimit,onChange:e=>{o({contentLimit:e})}}))))),(0,e.createElement)(t,{...n}))}),"withContentLimitControls")),(0,t.addFilter)("editor.BlockListBlock","blockify/with-content-limit",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const{name:i,attributes:a}=n;if("core/post-excerpt"!==i)return(0,e.createElement)(t,{...n});if(!a?.hideReadMore)return(0,e.createElement)(t,{...n});const l=null!==(r=n.wrapperProps)&&void 0!==r?r:{},s="hide-read-more";return l.className=w(l?.className,s),(0,e.createElement)(t,{...n,className:(null!==(o=n?.className)&&void 0!==o?o:"")+" "+s,wrapperProps:l})}),"withContentLimit")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/content-limit-save",(e=>{const{name:t,attributes:n}=e;if("core/post-excerpt"===t&&n?.hideReadMore){const t="hide-read-more";e.className=a(e?.className,t,"")+" "+t}return e}));const ke=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyFilter)&&void 0!==t&&t},we=null!==(ye=window?.blockify?.filterOptions)&&void 0!==ye?ye:{};(0,t.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>{var n;return ke(t)?(e.attributes={...e.attributes,style:{...null!==(n=e?.attributes?.style)&&void 0!==n?n:{},filter:{type:"string"}}},e):e}));const Ee=e=>{let t="";return we?.blur?(Object.keys(we).forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&void 0!==e[n]&&(t+=" "+i(n)+"("+e[n]+we?.[n]?.unit+")")})),t?{[e?.backdrop?"backdropFilter":"filter"]:t.trim()}:{}):{}};(0,t.addFilter)("editor.BlockListBlock","blockify/with-css-filter",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const i=null!==(r=n?.attributes?.style?.filter)&&void 0!==r?r:{},a=(0,e.createElement)(t,{...n});if(0===Object.getOwnPropertyNames(i).length)return a;const l=Ee(i);if(!Object.keys(l).length)return a;const s={...(n={...n,style:{...null!==(o=n?.style)&&void 0!==o?o:{},...l}}).wrapperProps,style:{...n.wrapperProps?.style,...l}};return(0,e.createElement)(t,{...n,wrapperProps:s})}),"withCssFilter")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-filter-styles",((e,t,n)=>{var r;const o=null!==(r=n?.style?.filter)&&void 0!==r?r:{};if(0===Object.getOwnPropertyNames(o).length)return e;const i=Ee(o);return Object.keys(i).length?{...e,style:{...e?.style,...i}}:e}));const xe=t=>{const{attributes:n,setAttributes:r}=t,{style:i}=n;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,L.__)("Filter","blockify"),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{r({style:{...n?.style,filter:{}}})},icon:j,iconSize:16,"aria-label":(0,L.__)("Clear Filters","blockify")}))),(0,e.createElement)(D.PanelRow,{className:"blockify-filter-settings"},Object.keys(we).map((t=>{var n,a;return(0,e.createElement)(D.__experimentalNumberControl,{key:t,label:"hueRotate"===t?(0,L.__)("Hue Rotate","blockify"):o(t),value:i?.filter?.[t],onChange:e=>{var n;r({style:{...i,filter:{...null!==(n=i?.filter)&&void 0!==n?n:{},[t]:e}}})},min:null!==(n=we?.[t]?.min)&&void 0!==n?n:0,max:we?.[t]?.max,step:null!==(a=we?.[t]?.step)&&void 0!==a?a:1,allowReset:!0})}))),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Use as backdrop filter","blockify"),checked:i?.filter?.backdrop,onChange:e=>{r({style:{...i,filter:{...i?.filter,backdrop:e}}})}})))};(0,t.addFilter)("editor.BlockEdit","blockify/filter-controls",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o,isSelected:i,name:a}=n;return ke(a)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),i&&(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{initialOpen:null!==(r=o?.filter)&&void 0!==r&&r,title:(0,L.__)("Filter","blockify")},(0,e.createElement)(xe,{...n})))):(0,e.createElement)(t,{...n})}),"withFilter"));const Ce=e=>["core/image","core/post-featured-image",["blockify/image-compare"]].includes(e);(0,t.addFilter)("blocks.registerBlockType","blockify/image-attributes",((e,t)=>Ce(t)?(e.attributes={...e.attributes,usePlaceholder:{type:"string"}},e?.attributes?.style||(e.attributes.style={type:"object"}),e):e));const Se=(t,n)=>{var r;const{attributes:o,setAttributes:i}=t,{style:a}=o,[l,s]=(0,W.useState)(null!==(r=a?.height?.[n])&&void 0!==r?r:"");return(0,e.createElement)(D.PanelRow,{className:"blockify-image-controls blockify-display-controls"},(c=t?.name,["core/image","blockify/image-compare"].includes(c)&&(0,e.createElement)((()=>{var t,r,o,c,u,d;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Aspect Ratio","blockify"),value:null!==(t=a?.aspectRatio?.[n])&&void 0!==t?t:"",options:null!==(r=window?.blockify?.imageOptions?.aspectRatio?.options)&&void 0!==r?r:[],onChange:e=>{i({style:{...a,aspectRatio:{...a?.aspectRatio,[n]:e}}})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Height","blockify"),value:l?.[n]?.includes("auto")?"":l[n],onChange:e=>{s({...l,[n]:e?.includes("auto")?"":e}),i({style:{...a,height:{...a?.height,[n]:e?.includes("auto")?"auto":e}}})},min:0,step:1,units:E,allowReset:!0}))),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Object Fit","blockify"),value:null!==(o=a?.objectFit?.[n])&&void 0!==o?o:"",placeholder:(0,L.__)("","blockify"),options:null!==(c=window?.blockify?.imageOptions?.objectFit?.options)&&void 0!==c?c:[],onChange:e=>{i({style:{...a,objectFit:{...a?.objectFit,[n]:e}}})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Object Position","blockify"),value:null!==(u=a?.objectPosition?.[n])&&void 0!==u?u:"",placeholder:(0,L.__)("","blockify"),options:null!==(d=window?.blockify?.imageOptions?.objectPosition?.options)&&void 0!==d?d:[],onChange:e=>{i({style:{...a,objectPosition:{...a?.objectPosition,[n]:e}}})}}))))}),null)),(0,e.createElement)(z,{style:{marginTop:"0"}},(0,L.__)("Placeholder Image","blockify")),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{isSmall:!0,variant:o?.usePlaceholder&&"default"!==o?.usePlaceholder?"secondary":"primary",onClick:()=>{i({usePlaceholder:"default"})}},(0,L.__)("Default","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,variant:"none"===o?.usePlaceholder?"primary":"secondary",onClick:()=>{i({usePlaceholder:"none"})}},(0,L.__)("None","blockify")))));var c},_e=t=>{const{attributes:n,setAttributes:r,name:o}=t;if(!Ce(o))return(0,e.createElement)(e.Fragment,null);const[i,a]=(0,W.useState)("all");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,L.__)("Image","blockify"),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{r({style:{...n?.style,objectFit:null,objectPosition:null,aspectRatio:null,height:null}})},icon:j,iconSize:16,"aria-label":(0,L.__)("Reset Image","blockify")}))),(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{isSmall:!0,variant:"all"===i?"primary":"secondary",onClick:()=>a("all")},(0,L.__)("All","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,variant:"mobile"===i?"primary":"secondary",onClick:()=>a("mobile"),icon:se}),(0,e.createElement)(D.Button,{isSmall:!0,variant:"desktop"===i?"primary":"secondary",onClick:()=>a("desktop"),icon:ce}))),"all"===i&&Se(t,i),"mobile"===i&&Se(t,i),"desktop"===i&&Se(t,i))};(0,t.addFilter)("editor.BlockEdit","blockify/image-controls",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o,isSelected:i,name:a}=n;return Ce(a)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),i&&(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{initialOpen:null!==(r=o?.image)&&void 0!==r&&r,title:(0,L.__)("Image","blockify")},(0,e.createElement)(_e,{...n})))):(0,e.createElement)(t,{...n})}),"withImage")),(0,t.addFilter)("editor.BlockListBlock","blockify/image-attribute",(0,r.createHigherOrderComponent)((t=>n=>{var r,o,i,a,l,s,c,u,d,p,m,f,h,g,v,b,y;const{attributes:k,name:w}=n;if(!Ce(w))return(0,e.createElement)(t,{...n});const E=null!==(r=n?.className?.split(" "))&&void 0!==r?r:[];E.push("is-placeholder"),E.push("has-placeholder-icon");const x=null!==(o=k?.style?.aspectRatio)&&void 0!==o?o:{},C=null!==(i=null!==(a=null!==(l=x?.all)&&void 0!==l?l:x?.desktop)&&void 0!==a?a:x?.mobile)&&void 0!==i?i:"";var S;C&&(E.forEach((e=>{e.includes("has-aspect-ratio-")&&E.splice(E.indexOf(e),1)})),E.push(`has-aspect-ratio-${C}`),n={...n,className:null!==(S=E?.join(" "))&&void 0!==S?S:""});const _=null!==(s=k?.style?.objectFit)&&void 0!==s?s:{},O=null!==(c=null!==(u=null!==(d=_?.all)&&void 0!==d?d:_?.desktop)&&void 0!==u?u:_?.mobile)&&void 0!==c?c:"";var F;O&&(E.forEach((e=>{e.includes("has-object-fit-")&&E.splice(E.indexOf(e),1)})),E.push(`has-object-fit-${O}`),n={...n,className:null!==(F=E?.join(" "))&&void 0!==F?F:""});const P=null!==(p=k?.style?.objectPosition)&&void 0!==p?p:{},I=null!==(m=null!==(f=null!==(h=P?.all)&&void 0!==h?h:P?.desktop)&&void 0!==f?f:P?.mobile)&&void 0!==m?m:"";var T;I&&(E.forEach((e=>{e.includes("has-object-position-")&&E.splice(E.indexOf(e),1)})),E.push(`has-object-position-${I}`),n={...n,className:null!==(T=E?.join(" "))&&void 0!==T?T:""});const A=null!==(g=k?.style?.height)&&void 0!==g?g:{},N=null!==(v=null!==(b=null!==(y=A?.all)&&void 0!==y?y:A?.desktop)&&void 0!==b?b:A?.mobile)&&void 0!==v?v:"";if(N){var M;const e=null!==(M=n?.style)&&void 0!==M?M:{};e.height=N,n={...n,style:e}}return(0,e.createElement)(t,{...n})}),"withImageAttribute"));const Oe=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyInlineCss)&&void 0!==t&&t};var Fe;(0,t.addFilter)("blocks.registerBlockType","blockify/add-inline-css-attribute",((e,t)=>Oe(t)?(e.attributes={...e.attributes,inlineCss:{type:"string"}},e):e),0),(0,t.addFilter)("editor.BlockEdit","blockify/with-inline-css-attribute",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o,setAttributes:i,name:a}=n;if(!Oe(a))return(0,e.createElement)(t,{...n});const l=(0,I.useSelect)((e=>{const t=e("core")?.getCurrentUser(),n=e("core")?.getUser(t?.id);return n?.roles}),[]);return l?.includes("administrator")?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(Z.InspectorAdvancedControls,null,(0,e.createElement)(Y,{code:null!==(r=o?.inlineCss)&&void 0!==r?r:"",language:"css",onChange:e=>{i({inlineCss:e})},title:(0,L.__)("Edit Inline CSS","blockify"),description:(0,L.__)("Add custom CSS to this block.","blockify")}))):(0,e.createElement)(t,{...n})}),"inlineCssAttribute"),99);const Pe=null!==(Fe=window?.blockify?.blockSupports)&&void 0!==Fe?Fe:{};(0,t.addFilter)("editor.BlockEdit","blockify/with-negative-margin",(0,r.createHigherOrderComponent)((t=>n=>{if(r=n?.name,null!==(o=Pe?.[r]?.blockifyNegativeMargin)&&void 0!==o&&o){const e=document.querySelector('.components-input-control__input[min="0"]');e&&e.setAttribute("min","-999")}var r,o;return(0,e.createElement)(t,{...n})}),"withMinHeightSettings"));const Ie=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyOnclick)&&void 0!==t&&t};var Te;(0,t.addFilter)("blocks.registerBlockType","blockify/add-onclick-attribute",((e,t)=>Ie(t)?(e.attributes={...e.attributes,onclick:{type:"string"}},e):e),0),(0,t.addFilter)("editor.BlockEdit","blockify/with-onclick-attribute",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o,setAttributes:i,name:a}=n;if(!Ie(a))return(0,e.createElement)(t,{...n});const l=(0,I.useSelect)((e=>{const t=e("core")?.getCurrentUser(),n=e("core")?.getUser(t?.id);return n?.roles}),[]);return l?.includes("administrator")?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(Z.InspectorAdvancedControls,null,(0,e.createElement)(Y,{code:null!==(r=o?.onclick)&&void 0!==r?r:"",language:"js",onChange:e=>{i({onclick:e})},title:(0,L.__)("Edit On-Click Event","blockify"),description:(0,L.__)("Add custom JavaScript to the onclick event for this block.","blockify")}))):(0,e.createElement)(t,{...n})}),"onclickAttribute"),99);const Ae=null!==(Te=window?.blockify?.blockSupports)&&void 0!==Te?Te:{},Ne=(t,n)=>{var r,o,i,a,l,s,c,u;const{attributes:d,setAttributes:p}=t,m=null!==(r=d?.style)&&void 0!==r?r:{},f=e=>{const t={};Object.keys(e).forEach((r=>{t[r]={...m?.[r],[n]:e[r]}})),p({style:{...m,...t}})};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Position","blockify"),value:null!==(o=m?.position?.[n])&&void 0!==o?o:"",options:window?.blockify?.extensionOptions?.position?.options,onChange:e=>{f({position:e})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:window?.blockify?.extensionOptions?.zIndex?.label,value:m?.zIndex?.[n],onChange:e=>{f({zIndex:e})},min:-100,max:100,step:1,allowReset:!0})))),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Overflow","blockify"),value:null!==(i=m?.overflow?.[n])&&void 0!==i?i:"",options:window?.blockify?.extensionOptions?.overflow?.options,onChange:e=>{f({overflow:e})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Pointer Events","blockify"),value:null!==(a=m?.pointerEvents?.[n])&&void 0!==a?a:"",options:window?.blockify?.extensionOptions?.pointerEvents?.options,onChange:e=>{f({pointerEvents:e})}})))),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.__experimentalBoxControl,{className:"blockify-box-control",label:(0,L.__)("Inset","blockify"),values:{top:null!==(l=m?.top?.[n])&&void 0!==l?l:"",right:null!==(s=m?.right?.[n])&&void 0!==s?s:"",bottom:null!==(c=m?.bottom?.[n])&&void 0!==c?c:"",left:null!==(u=m?.left?.[n])&&void 0!==u?u:""},onChange:e=>{var t,n,r,o;f({top:null!==(t=e?.top)&&void 0!==t?t:"",right:null!==(n=e?.right)&&void 0!==n?n:"",bottom:null!==(r=e?.bottom)&&void 0!==r?r:"",left:null!==(o=e?.left)&&void 0!==o?o:""})},inputProps:{min:-999}})))},Me=t=>{const{attributes:n,setAttributes:r}=t,[o,i]=(0,W.useState)("all");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",null,(0,L.__)("Position","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{r({style:{...n?.style,position:void 0,zIndex:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0,overflow:void 0}})},icon:j,iconSize:16,"aria-label":(0,L.__)("Reset Position","blockify")}))),(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{isSmall:!0,variant:"all"===o?"primary":"tertiary",onClick:()=>i("all")},(0,L.__)("All","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,variant:"mobile"===o?"primary":"tertiary",onClick:()=>i("mobile"),icon:se}),(0,e.createElement)(D.Button,{isSmall:!0,variant:"desktop"===o?"primary":"tertiary",onClick:()=>i("desktop"),icon:ce}))),"all"===o&&Ne(t,o),"mobile"===o&&Ne(t,o),"desktop"===o&&Ne(t,o))};(0,t.addFilter)("editor.BlockEdit","blockify/position-controls",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o,isSelected:i,name:a}=n;return(e=>{var t;return null!==(t=Ae?.[e]?.blockifyPosition)&&void 0!==t&&t})(a)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),i&&(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{initialOpen:null!==(r=o?.position)&&void 0!==r&&r,title:(0,L.__)("Position","blockify")},(0,e.createElement)(Me,{...n})))):(0,e.createElement)(t,{...n})}),"withPosition")),(0,t.addFilter)("editor.BlockListBlock","blockify/with-block-gap",(0,r.createHigherOrderComponent)((t=>n=>{var r;if("core/post-template"!==n?.name)return(0,e.createElement)(t,{...n});if(!n?.attributes?.style?.spacing?.blockGap)return(0,e.createElement)(t,{...n});const o=null!==(r=n.wrapperProps)&&void 0!==r?r:{};return o.style={...o.style,"--wp--style--block-gap":k(n.attributes.style.spacing.blockGap)},(0,e.createElement)(t,{...n,wrapperProps:o})}),"withBlockGap")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-block-gap",((e,t,n)=>("core/post-template"===t&&n?.style?.spacing?.blockGap&&(e={...e,style:{...e.style,"--wp--style--block-gap":k(n.style.spacing.blockGap)}}),e))),D.ColorPalette.Color;const Re=e=>{var t,n;const r=(null!==(t=(0,I.select)("core/block-editor")?.getSettings().colors)&&void 0!==t?t:[]).find((t=>t.slug===e));return null!==(n=r?.color)&&void 0!==n?n:""};(0,t.addFilter)("blocks.registerBlockType","blockify/search-input-colors",((e,t)=>("core/search"!==t||(e.attributes={...e.attributes,inputBackgroundColor:{type:"string"}}),e))),(0,t.addFilter)("editor.BlockEdit","blockify/search-input-colors",(0,r.createHigherOrderComponent)((t=>n=>{const r=(0,e.createElement)(t,{...n}),o=(0,Z.__experimentalUseMultipleOriginColorsAndGradients)();if("core/search"!==n.name)return r;const{attributes:i,setAttributes:a,clientId:l}=n,{inputBackgroundColor:s}=i,c=[{label:(0,L.__)("Input Background","blockify"),colorValue:"string"==typeof s&&s?.includes("-")?Re(s):s,onColorChange:e=>{const t=(e=>{var t,n;const r=(null!==(t=(0,I.select)("core/block-editor")?.getSettings().colors)&&void 0!==t?t:[]).find((t=>t.color===e));return null!==(n=r?.slug)&&void 0!==n?n:""})(e);a({inputBackgroundColor:t||e})}}];return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(Z.InspectorControls,{group:"color"},(0,e.createElement)(Z.__experimentalColorGradientSettingsDropdown,{settings:c,panelId:l,hasColorsOrGradients:!0,disableCustomColors:!1,__experimentalIsRenderedInSidebar:!0,...o})))}),"withSearchInputColors")),(0,t.addFilter)("editor.BlockListBlock","blockify/search-input-colors",(0,r.createHigherOrderComponent)((t=>n=>{const r=(0,e.createElement)(t,{...n});if("core/search"!==n.name)return r;const{attributes:o,wrapperProps:i={}}=n,{inputBackgroundColor:a,borderColor:l}=o;if(a){const e=a?.includes("-")?`var(--wp--preset--color--${a})`:a;i.style={...i.style,"--wp--custom--input--background":e}}if(l){const e=l?.includes("-")?`var(--wp--preset--color--${l})`:l;i.style={...i.style,"--wp--custom--input--border":`var(--wp--custom--border--width,1px) var(--wp--custom--border--style,solid) ${e}`}}return(0,e.createElement)(t,{...n,wrapperProps:i})}),"withSearchInputColors")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/search-input-colors",((e,t,n)=>{if("core/search"!==t.name)return e;const{inputBackgroundColor:r}=n;if(r){const t=r?.includes("-")?`var(--wp--preset--color--${r})`:r;e.style={...e.style,"--wp--custom--input--background":t}}return e}));const Be=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyBoxShadow)&&void 0!==t&&t};(0,t.addFilter)("blocks.registerBlockType","blockify/add-box-shadow-attributes",((e,t)=>{var n;return Be(t)&&(e.attributes={...e.attributes,shadowPreset:{type:"string"},shadowPresetHover:{type:"string"},useCustomBoxShadow:{type:"boolean"},style:{...null!==(n=e?.attributes?.style)&&void 0!==n?n:{},boxShadow:{type:"object"}}}),e}),0);const De=e=>{var t;const n=null!==(t=e?.style?.boxShadow)&&void 0!==t?t:{},r={},o=((0,I.select)("core/block-editor").getSettings().colors,{inset:"",x:"px",y:"px",blur:"px",spread:"px",color:""});return Object.keys(o).map((e=>((n?.[e]||"0"===n?.[e]?.toString())&&(r["--wp--custom--box-shadow--"+e]=n?.[e]+o?.[e]),(n?.hover?.[e]||"0"===n?.hover?.[e]?.toString())&&(r["--wp--custom--box-shadow--hover--"+e]=n?.hover?.[e]+o?.[e]),!0))),r};(0,t.addFilter)("editor.BlockListBlock","blockify/edit-box-shadow-styles",(0,r.createHigherOrderComponent)((t=>n=>{const{attributes:r,name:o}=n;if(!Be(o))return(0,e.createElement)(t,{...n});const i=De(r),a=r?.shadowPreset||r?.shadowPresetHover;if(!a&&!Object.keys(i).length)return(0,e.createElement)(t,{...n});const l={...n.wrapperProps};let s=n.className;return s=w(s,l.className),s=w(s,"has-box-shadow"),a&&(s=w(s,"has-shadow").replace("has-box-shadow","")),r?.shadowPreset&&(s=w(s,`has-${r.shadowPreset}-shadow`)),r?.shadowPresetHover&&(s=w(s,`has-${r.shadowPresetHover}-shadow-hover`)),n={...n,className:w(n?.className,s),style:{...n.style,...i}},l.className=s,l.style={...l.style,...i},(0,e.createElement)(t,{...n,wrapperProps:l})}),"withBoxShadow")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/save-box-shadow-styles",((e,t,n)=>{const{name:r}=t;if(!Be(r))return e;const o=De(n),i=n?.shadowPreset||n?.shadowPresetHover;if(!i&&!Object.keys(o).length)return e;let a=w(e?.className,"has-box-shadow");return i&&(a=w(a,"has-shadow").replace("has-box-shadow","")),n?.shadowPreset&&(a=w(a,`has-${n.shadowPreset}-shadow`)),n?.shadowPresetHover&&(a=w(a,`has-${n.shadowPresetHover}-shadow-hover`)),{...e,style:{...e.style,...o},className:a}}));const Le=t=>{var n;return(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{initialOpen:null!==(n=t?.attributes?.shadow)&&void 0!==n&&n,title:(0,L.__)("Shadow","blockify")},(0,e.createElement)(ee,{...t})))};var Ve;(0,t.addFilter)("editor.BlockEdit","blockify/shadow-controls",(0,r.createHigherOrderComponent)((t=>n=>{const{isSelected:r,name:o}=n;return Be(o)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),r&&(0,e.createElement)(Le,{...n})):(0,e.createElement)(t,{...n})}),"withShadow"));const je=null!==(Ve=window?.blockify?.blockSupports)&&void 0!==Ve?Ve:{},ze=e=>{var t;return null!==(t=je?.[e]?.blockifySize)&&void 0!==t&&t},He=t=>{const{attributes:n,setAttributes:r}=t,{size:o}=n,i=[{key:"large",label:(0,L.__)("Large","blockify")},{key:"medium",label:(0,L.__)("Medium","blockify")},{key:"small",label:(0,L.__)("Small","blockify")}];return(0,e.createElement)(Z.BlockControls,null,(0,e.createElement)(D.ToolbarGroup,null,(0,e.createElement)(D.DropdownMenu,{icon:(0,e.createElement)("span",null,(0,L.__)("Size","blockify")),label:(0,L.__)("Switch Size","blockify")},(({onClose:t})=>(0,e.createElement)(D.MenuGroup,null,i.map((n=>(0,e.createElement)(D.MenuItem,{key:n.key,icon:o===n.key?"yes":"",onClick:()=>{if(o===n.key)return r({size:""}),void t();r({size:n.key}),t()}},n.label))))))))};(0,t.addFilter)("blocks.registerBlockType","blockify/add-size-attribute",(e=>(e?.attributes&&ze(e?.name)&&(e.attributes={...e.attributes,size:{type:"string",default:"20px"}}),e))),(0,t.addFilter)("editor.BlockEdit","blockify/add-size-block-controls",(0,r.createHigherOrderComponent)((t=>n=>{const{name:r,isSelected:o}=n;return ze(r)?(0,e.createElement)(W.Fragment,null,o&&(0,e.createElement)(He,{...n}),(0,e.createElement)(t,{...n})):(0,e.createElement)(t,{...n})}),"addSizeBlockControls")),(0,t.addFilter)("editor.BlockListBlock","blockify/with-size",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const{name:i,attributes:a}=n;if(!ze(i))return(0,e.createElement)(t,{...n});if(!a?.size)return(0,e.createElement)(t,{...n});const l=null!==(r=n.wrapperProps)&&void 0!==r?r:{},s="is-style-"+a.size;return l.className=w(l?.className,s),(0,e.createElement)(t,{...n,className:(null!==(o=n?.className)&&void 0!==o?o:"")+" "+s,wrapperProps:l})}),"withSizeClass")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/size-save",(e=>{const{name:t,attributes:n}=e;if(ze(t)&&n?.size){const t="is-style-"+n.size;e.className=a(e?.className,t,"")+" "+t}return e}));const $e=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyTransform)&&void 0!==t&&t},Ue={rotate:"deg",rotateX:"deg",rotateY:"deg",scale:"",scaleX:"",scaleY:"",skew:"deg",skewX:"deg",skewY:"deg",translateX:"",translateY:"",translateZ:""};(0,t.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>{var n;return $e(t)?(e.attributes={...e.attributes,style:{...null!==(n=e?.attributes?.style)&&void 0!==n?n:{},transform:{type:"string"},transformHover:{type:"string"}}},e):e}));const Ge=(e,t)=>{const n={};let r="",o="";return Object.keys(Ue).forEach((n=>{if(e?.[n]){const t=e[n];r+=` ${n}(${t}${Ue[n]})`}if(t?.[n]){const e=t[n];o+=` ${n}(${e}${Ue[n]})`}})),r&&(n["--transform"]=r.trim()),o&&(n["--transform-hover"]=o.trim()),null!=n?n:{}};(0,t.addFilter)("editor.BlockListBlock","blockify/with-css-transform",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const{attributes:i,name:a}=n,l=(0,e.createElement)(t,{...n});if(!$e(a))return l;const{style:s}=i,c=null!==(r=s?.transform)&&void 0!==r?r:{},u=null!==(o=s?.transformHover)&&void 0!==o?o:{};if(!c&&!u)return l;const d=Ge(c,u);if(!Object.keys(d).length)return l;const p={...(n={...n,style:{...n?.style,...d},className:w(n?.className,"has-transform")}).wrapperProps,style:{...n.wrapperProps?.style,...d},className:w(n?.wrapperProps?.className,"has-transform")};return(0,e.createElement)(t,{...n,wrapperProps:p})}),"withCssTransform")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-css-transform-styles",((e,t,n)=>{var r,o;const{name:i}=t;if(!$e(i))return e;const{style:a}=n,l=null!==(r=a?.transform)&&void 0!==r?r:{},s=null!==(o=a?.transformHover)&&void 0!==o?o:{};if(!l&&!s)return e;const c=Ge(l,s);return Object.keys(c).length?{...e,style:{...e?.style,...c},className:w(e?.className,"has-transform")}:e}));const We=t=>{var n,r;const{attributes:o,setAttributes:i}=t,{style:a}=o,l=null!==(n=a?.transform)&&void 0!==n?n:{},s=null!==(r=a?.transformHover)&&void 0!==r?r:{},[c,u]=(0,W.useState)("default"),d="default"===c?l:s,p=e=>{const t="default"===c?"transform":"transformHover";i({style:{...a,[t]:{...d,...e}}})};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,L.__)("Transform","blockify"),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{i({style:{...o?.style,transform:"",transformHover:""}})},icon:j,iconSize:16,"aria-label":(0,L.__)("Clear Transforms","blockify")}))),(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{isSmall:!0,variant:"default"===c?"primary":"secondary",onClick:()=>u("default")},(0,L.__)("Default","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,variant:"hover"===c?"primary":"secondary",onClick:()=>u("hover")},(0,L.__)("Hover","blockify")))),(0,e.createElement)("br",null),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Rotate","blockify"),value:d?.rotate,onChange:e=>{p({rotate:e})},min:-360,max:360,step:1})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Rotate X","blockify"),value:d?.rotateX,onChange:e=>{p({rotateX:e})},min:-360,max:360,step:1})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Rotate Y","blockify"),value:d?.rotateY,onChange:e=>{p({rotateY:e})},min:-360,max:360,step:1}))),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Scale","blockify"),value:d?.scale,onChange:e=>{p({scale:e})},min:0,max:10,step:.01})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Scale X","blockify"),value:d?.scaleX,onChange:e=>{p({scaleX:e})},min:0,max:10,step:.01})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Scale Y","blockify"),value:d?.scaleY,onChange:e=>{p({scaleY:e})},min:0,max:10,step:.01}))),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Skew","blockify"),value:d?.skew,onChange:e=>{p({skew:e})},min:-360,max:360,step:1})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Skew X","blockify"),value:d?.skewX,onChange:e=>{p({skewX:e})},min:-360,max:360,step:1})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Skew Y","blockify"),value:d?.skewY,onChange:e=>{p({skewY:e})},min:-360,max:360,step:1}))),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Translate X","blockify"),value:d?.translateX,onChange:e=>{p({translateX:e})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Translate Y","blockify"),value:d?.translateY,onChange:e=>{p({translateY:e})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Translate Z","blockify"),value:d?.translateZ,onChange:e=>{p({translateZ:e})}}))),(0,e.createElement)("br",null))};(0,t.addFilter)("editor.BlockEdit","blockify/transform-controls",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o,isSelected:i,name:a}=n;return $e(a)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),i&&(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{initialOpen:null!==(r=o?.transform)&&void 0!==r&&r,title:(0,L.__)("Transform","blockify")},(0,e.createElement)(We,{...n})))):(0,e.createElement)(t,{...n})}),"withTransform"));const qe=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));(0,v.registerBlockVariation)("core/list",{name:"accordion",title:(0,L.__)("Accordion","blockify"),description:(0,L.__)("Add a collapsible accordion list.","blockify"),category:window?.blockify?.isPlugin?"blockify":"text",scope:[],icon:qe,attributes:{className:"is-style-accordion"},isDefault:!1,isActive:(e,t)=>e&&e?.className?.includes(t.className)});const Ye=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"})),Xe={content:(0,L.__)("Curved text. Curved text. Curved text.","blockify"),containerSize:"160",pathSize:"120"},Ke={name:"curved-text",title:(0,L.__)("Curved Text","blockify"),icon:Ye,isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"text",scope:["inserter"],description:(0,L.__)("Insert curved text around circular SVG path.","blockify"),attributes:{className:"is-style-curved-text"},isActive:e=>e?.className?.includes("is-style-curved-text")};g()((()=>{(0,v.registerBlockVariation)("core/paragraph",Ke)})),(0,t.addFilter)("blocks.registerBlockType","blockify/curved-text-attributes",((e,t)=>("core/paragraph"===t&&(e={...e,attributes:{...e?.attributes,curvedText:{type:"object"}}}),e)));const Ze=(t={})=>{var n,r,o;const{curvedText:i=Xe}=t,a=null!==(n=i?.content)&&void 0!==n?n:Xe.content,l=null!==(r=i?.containerSize)&&void 0!==r?r:Xe.containerSize,s=null!==(o=i?.pathSize)&&void 0!==o?o:Xe.pathSize,c=parseInt(l)/2,u=parseInt(s)/2,d={viewBox:`0 0 ${l} ${l}`,xmlns:"http://www.w3.org/2000/svg",enableBackground:`new 0 0 ${l} ${l}`,xmlSpace:"preserve",width:l,height:l,contentEditable:!1,x:0,y:0},p=Date.now()+Math.random(),m={id:"circle-"+p,d:`M ${c}, ${c} m -${u}, 0 a ${u},${u} 0 0,1 ${s},0 a ${u},${u} 0 0,1 -${s},0`,fill:"transparent"};return(0,e.createElement)("svg",{...d},(0,e.createElement)("path",{...m}," "),(0,e.createElement)("text",{fill:"currentColor"},(0,e.createElement)("textPath",{xlinkHref:"#circle-"+p},a)))};(0,t.addFilter)("editor.BlockEdit","blockify/with-curved-text-css",(0,r.createHigherOrderComponent)((t=>n=>{var r,o,i;const{attributes:a,setAttributes:l}=n;if(!(e=>!(!e?.className||"string"!=typeof e?.className)&&e?.className?.includes("is-style-curved-text"))(a))return(0,e.createElement)(t,{...n});const s=document.getElementsByClassName("edit-site-visual-editor__editor-canvas")?.item(0),c=document.getElementsByName("editor-canvas")?.item(0);let u;if(u=s?s.contentDocument:c?c.contentDocument:document,!u)return(0,e.createElement)(t,{...n});const d=u?.getElementById("block-"+n?.clientId);d&&(d.innerHTML=(0,W.renderToString)(Ze({...a,clientId:n.clientId})));const{curvedText:p=Xe}=a,m=t=>{var r;const o={...t,svgString:(0,W.renderToString)((0,e.createElement)(Ze,{...a,...t,clientId:null!==(r=n.clientId)&&void 0!==r?r:"1"}))};l({curvedText:{...p,...o}})};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{className:"blockify-controls",title:(0,L.__)("Curved Text","blockify")},(0,e.createElement)(D.TextareaControl,{label:(0,L.__)("Content","blockify"),value:null!==(r=p?.content)&&void 0!==r?r:Xe.content,onChange:e=>{m({content:e})}}),(0,e.createElement)("p",null,(0,L.__)("Size","blockify")),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)("br",null),(0,e.createElement)(D.Flex,null,(0,e.createElement)(D.FlexItem,{style:{width:"50%"}},(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Container","blockify"),value:null!==(o=p?.containerSize)&&void 0!==o?o:Xe.containerSize,onChange:e=>{m({containerSize:e})}})),(0,e.createElement)(D.FlexBlock,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Path","blockify"),value:null!==(i=p?.pathSize)&&void 0!==i?i:Xe.pathSize,onChange:e=>{m({pathSize:e})}})))))))}),"withCurvedTextSettings"),1);const Je=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"})),Qe={start:"0",end:"100",duration:"2",delay:"0",prefix:"",suffix:""},et={name:"counter",title:(0,L.__)("Counter","blockify"),keywords:["counter","number","count","stats"],icon:Je,isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"text",scope:["inserter"],description:(0,L.__)("Insert counter animation.","blockify"),attributes:{className:"is-style-counter"},isActive:e=>e&&e?.className?.includes("is-style-counter")};g()((()=>{(0,v.registerBlockVariation)("core/paragraph",et)})),(0,t.addFilter)("editor.BlockEdit","blockify/with-counter-controls",(0,r.createHigherOrderComponent)((t=>n=>{const{attributes:r,setAttributes:o}=n,i=(0,e.createElement)(t,{...n});if(!r?.className?.includes("is-style-counter"))return i;const{style:a}=r;let l=Qe;return a?.counter?l=a.counter:o({style:{...a,counter:Qe}}),(0,W.useEffect)((()=>{if(!l?.prefix&&!l?.end&&!l?.suffix)return;let e=l?.end;"string"==typeof l?.prefix&&(e=l?.prefix+e),"string"==typeof l?.suffix&&(e+=l?.suffix),o({content:e})}),[l?.prefix,l?.end,l?.suffix,o]),(0,e.createElement)(e.Fragment,null,i,(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{title:(0,L.__)("Counter Settings","blockify"),initialOpen:!0,className:"blockify-counter-settings"},(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Start","blockify"),value:l?.start,onChange:e=>{o({style:{...a,counter:{...l,start:e}}})},step:1,shiftStep:10,isDragEnabled:!0,isShiftStepEnabled:!0})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("End","blockify"),value:l?.end,onChange:e=>{o({style:{...a,counter:{...l,end:e}}})},step:1,shiftStep:10,isDragEnabled:!0,isShiftStepEnabled:!0})))),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Duration (seconds)","blockify"),value:l?.duration,onChange:e=>{o({style:{...a,counter:{...l,duration:e}}})},step:.1,shiftStep:1,isDragEnabled:!0,isShiftStepEnabled:!0})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Delay (seconds)","blockify"),value:l?.delay,onChange:e=>{o({style:{...a,counter:{...l,delay:e}}})},step:.1,shiftStep:1,isDragEnabled:!0,isShiftStepEnabled:!0})))),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.TextControl,{label:(0,L.__)("Prefix","blockify"),value:l?.prefix,onChange:e=>{o({style:{...a,counter:{...l,prefix:e}}})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.TextControl,{label:(0,L.__)("Suffix","blockify"),value:l?.suffix,onChange:e=>{o({style:{...a,counter:{...l,suffix:e}}})}})))))))}),"withCounterControls"),9);const tt=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"}));var nt=n(488);nt.domToReact,nt.htmlToDOM,nt.attributesToProps,nt.Comment,nt.Element,nt.ProcessingInstruction,nt.Text;const rt=nt;function ot(e){return ot="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},ot(e)}function it(e){var t=function(e,t){if("object"!==ot(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ot(t)?t:String(t)}function at(e,t,n){return(t=it(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t0?vt(Ot,--St):0,xt--,10===_t&&(xt=1,Et--),_t}function Tt(){return _t=St2||Rt(_t)>3?"":" "}function jt(e,t){for(;--t&&Tt()&&!(_t<48||_t>102||_t>57&&_t<65||_t>70&&_t<97););return Mt(e,Nt()+(t<6&&32==At()&&32==Tt()))}function zt(e){for(;Tt();)switch(_t){case e:return St;case 34:case 39:34!==e&&39!==e&&zt(_t);break;case 40:41===e&&zt(e);break;case 92:Tt()}return St}function Ht(e,t){for(;Tt()&&e+_t!==57&&(e+_t!==84||47!==At()););return"/*"+Mt(t,St-1)+"*"+pt(47===e?e:Tt())}function $t(e){for(;!Rt(At());)Tt();return Mt(e,St)}var Ut="-ms-",Gt="-moz-",Wt="-webkit-",qt="comm",Yt="rule",Xt="decl",Kt="@keyframes";function Zt(e,t){for(var n="",r=kt(e),o=0;o0&&yt(x)-d&&wt(m>32?rn(x+";",r,n,d-1):rn(ht(x," ","")+";",r,n,d-2),s);break;case 59:x+=";";default:if(wt(E=tn(x,t,n,c,u,o,l,y,k=[],w=[],d),i),123===b)if(0===u)en(x,t,E,E,k,i,d,l,w);else switch(99===p&&110===vt(x,3)?100:p){case 100:case 108:case 109:case 115:en(e,E,E,r&&wt(tn(e,E,E,0,0,o,l,y,o,k=[],d),w),o,w,d,l,r?k:w);break;default:en(x,E,E,E,[""],w,0,l,w)}}c=u=m=0,h=v=1,y=x="",d=a;break;case 58:d=1+yt(x),m=f;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==It())continue;switch(x+=pt(b),b*h){case 38:v=u>0?1:(x+="\f",-1);break;case 44:l[c++]=(yt(x)-1)*v,v=1;break;case 64:45===At()&&(x+=Lt(Tt())),p=At(),u=d=yt(y=x+=$t(Nt())),b++;break;case 45:45===f&&2==yt(x)&&(h=0)}}return i}function tn(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,p=0===o?i:[""],m=kt(p),f=0,h=0,g=0;f0?p[v]+" "+b:ht(b,/&\f/g,p[v])))&&(s[g++]=y);return Ft(e,t,n,0===o?Yt:l,s,c,u)}function nn(e,t,n){return Ft(e,t,n,qt,pt(_t),bt(e,2,-2),0)}function rn(e,t,n,r){return Ft(e,t,n,Xt,bt(e,0,r),bt(e,r+1,-1),r)}var on=function(e,t,n){for(var r=0,o=0;r=o,o=At(),38===r&&12===o&&(t[n]=1),!Rt(o);)Tt();return Mt(e,St)},an=new WeakMap,ln=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)||an.get(n))&&!r){an.set(e,!0);for(var o=[],i=function(e,t){return Dt(function(e,t){var n=-1,r=44;do{switch(Rt(r)){case 0:38===r&&12===At()&&(t[n]=1),e[n]+=on(St-1,t,n);break;case 2:e[n]+=Lt(r);break;case 4:if(44===r){e[++n]=58===At()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=pt(r)}}while(r=Tt());return e}(Bt(e),t))}(t,o),a=n.props,l=0,s=0;l6)switch(vt(e,t+1)){case 109:if(45!==vt(e,t+4))break;case 102:return ht(e,/(.+:)(.+)-([^]+)/,"$1"+Wt+"$2-$3$1"+Gt+(108==vt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~gt(e,"stretch")?cn(ht(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==vt(e,t+1))break;case 6444:switch(vt(e,yt(e)-3-(~gt(e,"!important")&&10))){case 107:return ht(e,":",":"+Wt)+e;case 101:return ht(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Wt+(45===vt(e,14)?"inline-":"")+"box$3$1"+Wt+"$2$3$1"+Ut+"$2box$3")+e}break;case 5936:switch(vt(e,t+11)){case 114:return Wt+e+Ut+ht(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Wt+e+Ut+ht(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Wt+e+Ut+ht(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Wt+e+Ut+e+e}return e}var un=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Xt:e.return=cn(e.value,e.length);break;case Kt:return Zt([Pt(e,{value:ht(e.value,"@","@"+Wt)})],r);case Yt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Zt([Pt(e,{props:[ht(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Zt([Pt(e,{props:[ht(t,/:(plac\w+)/,":"+Wt+"input-$1")]}),Pt(e,{props:[ht(t,/:(plac\w+)/,":-moz-$1")]}),Pt(e,{props:[ht(t,/:(plac\w+)/,Ut+"input-$1")]})],r)}return""}))}}],dn=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,o,i=e.stylisPlugins||un,a={},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=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)}(o)+s;return{name:c,styles:o,next:En}},Sn=!!e.useInsertionEffect&&e.useInsertionEffect,On=Sn||function(e){return e()},Fn=(Sn||e.useLayoutEffect,{}.hasOwnProperty),Pn=e.createContext("undefined"!=typeof HTMLElement?dn({key:"css"}):null);Pn.Provider;var In=function(t){return(0,e.forwardRef)((function(n,r){var o=(0,e.useContext)(Pn);return t(n,o,r)}))},Tn=e.createContext({}),An="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Nn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return pn(t,n,r),On((function(){return function(e,t,n){pn(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)}}(t,n,r)})),null},Mn=In((function(t,n,r){var o=t.css;"string"==typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var i=t[An],a=[o],l="";"string"==typeof t.className?l=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(n.registered,a,t.className):null!=t.className&&(l=t.className+" ");var s=Cn(a,void 0,e.useContext(Tn));l+=n.key+"-"+s.name;var c={};for(var u in t)Fn.call(t,u)&&"css"!==u&&u!==An&&(c[u]=t[u]);return c.ref=r,c.className=l,e.createElement(e.Fragment,null,e.createElement(Nn,{cache:n,serialized:s,isStringTag:"string"==typeof i}),e.createElement(i,c))})),Rn=Mn,Bn=(n(679),function(t,n){var r=arguments;if(null==n||!Fn.call(n,"css"))return e.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=Rn,i[1]=function(e,t){var n={};for(var r in t)Fn.call(t,r)&&(n[r]=t[r]);return n[An]=e,n}(t,n);for(var a=2;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Hn=window.ReactDOM,$n=Math.min,Un=Math.max,Gn=Math.round,Wn=Math.floor,qn=e=>({x:e,y:e});function Yn(e){return Zn(e)?(e.nodeName||"").toLowerCase():"#document"}function Xn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Kn(e){var t;return null==(t=(Zn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Zn(e){return e instanceof Node||e instanceof Xn(e).Node}function Jn(e){return e instanceof Element||e instanceof Xn(e).Element}function Qn(e){return e instanceof HTMLElement||e instanceof Xn(e).HTMLElement}function er(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Xn(e).ShadowRoot)}function tr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=nr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function nr(e){return Xn(e).getComputedStyle(e)}function rr(e){const t=function(e){if("html"===Yn(e))return e;const t=e.assignedSlot||e.parentNode||er(e)&&e.host||Kn(e);return er(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Yn(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qn(t)&&tr(t)?t:rr(t)}function or(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=rr(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Xn(o);return i?t.concat(a,a.visualViewport||[],tr(o)?o:[],a.frameElement&&n?or(a.frameElement):[]):t.concat(o,or(o,[],n))}function ir(e){return Jn(e)?e:e.contextElement}function ar(e){const t=ir(e);if(!Qn(t))return qn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=nr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Qn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Gn(n)!==i||Gn(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}(t);let a=(i?Gn(n.width):n.width)/r,l=(i?Gn(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const lr=qn(0);function sr(e){const t=Xn(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:lr}function cr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ir(e);let a=qn(1);t&&(r?Jn(r)&&(a=ar(r)):a=ar(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Xn(e))&&t}(i,n,r)?sr(i):qn(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Xn(i),t=r&&Jn(r)?Xn(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=ar(n),t=n.getBoundingClientRect(),r=nr(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=o,c+=i,n=Xn(n).frameElement}}return p={width:u,height:d,x:s,y:c},{...p,top:p.y,left:p.x,right:p.x+p.width,bottom:p.y+p.height};var p}const ur=e.useLayoutEffect;var dr=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],pr=function(){};function mr(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function fr(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o-1}function yr(e){return br(e)?window.pageYOffset:e.scrollTop}function kr(e,t){br(e)?window.scrollTo(0,t):e.scrollTop=t}function wr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:pr,o=yr(e),i=t-o,a=0;!function t(){var l,s=i*((l=(l=a+=10)/n-1)*l*l+1)+o;kr(e,s),an.bottom?kr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o=f)return{placement:"bottom",maxHeight:t};if(C>=f&&!a)return i&&wr(s,S,O),{placement:"bottom",maxHeight:t};if(!a&&C>=r||a&&E>=r)return i&&wr(s,S,O),{placement:"bottom",maxHeight:a?E-y:C-y};if("auto"===o||a){var F=t,P=a?w:x;return P>=r&&(F=Math.min(P-y-l,t)),{placement:"top",maxHeight:F}}if("bottom"===o)return i&&kr(s,S),{placement:"bottom",maxHeight:t};break;case"top":if(w>=f)return{placement:"top",maxHeight:t};if(x>=f&&!a)return i&&wr(s,_,O),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&w>=r){var I=t;return(!a&&x>=r||a&&w>=r)&&(I=a?w-k:x-k),i&&wr(s,_,O),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:v});m(n.maxHeight),g(n.placement),null==c||c(n.placement)}}),[o,i,a,l,r,c,v]),n({ref:u,placerProps:st(st({},t),{},{placement:h||Rr(i),maxHeight:p})})},Lr=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return st({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Vr=Lr,jr=Lr,zr=["size"],Hr=["innerProps","isRtl","size"],$r={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ur=function(e){var t=e.size,n=zn(e,zr);return Bn("svg",ct({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:$r},n))},Gr=function(e){return Bn(Ur,ct({size:20},e),Bn("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Wr=function(e){return Bn(Ur,ct({size:20},e),Bn("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},qr=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return st({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Yr=qr,Xr=qr,Kr=function(){var e=Dn.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_"}}}(Ar||(Nr=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Mr||(Mr=Nr.slice(0)),Ar=Object.freeze(Object.defineProperties(Nr,{raw:{value:Object.freeze(Mr)}})))),Zr=function(e){var t=e.delay,n=e.offset;return Bn("span",{css:Dn({animation:"".concat(Kr," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Jr=["data"],Qr=["innerRef","isDisabled","isHidden","inputClassName"],eo={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},to={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":st({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},eo)},no=function(e){return st({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},eo)},ro=function(e){var t=e.children,n=e.innerProps;return Bn("div",n,t)},oo={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Bn("div",ct({},vr(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Bn(Gr,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Bn("div",ct({ref:o},vr(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Bn("div",ct({},vr(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Bn(Wr,null))},DownChevron:Wr,CrossIcon:Gr,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,l=e.innerProps,s=e.label,c=e.theme,u=e.selectProps;return Bn("div",ct({},vr(e,"group",{group:!0}),l),Bn(i,ct({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),s),Bn("div",null,t))},GroupHeading:function(e){var t=gr(e);t.data;var n=zn(t,Jr);return Bn("div",ct({},vr(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Bn("div",ct({},vr(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Bn("span",ct({},t,vr(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=gr(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,l=r.inputClassName,s=zn(r,Qr);return Bn("div",ct({},vr(e,"input",{"input-container":!0}),{"data-value":n||""}),Bn("input",ct({className:t({input:!0},l),ref:o,style:no(a),disabled:i},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=zn(e,Hr);return Bn("div",ct({},vr(st(st({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Bn(Zr,{delay:0,offset:n}),Bn(Zr,{delay:160,offset:!0}),Bn(Zr,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Bn("div",ct({},vr(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Bn("div",ct({},vr(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,l=t.menuPosition,s=(0,e.useRef)(null),c=(0,e.useRef)(null),u=jn((0,e.useState)(Rr(a)),2),d=u[0],p=u[1],m=(0,e.useMemo)((function(){return{setPortalPlacement:p}}),[]),f=jn((0,e.useState)(null),2),h=f[0],g=f[1],v=(0,e.useCallback)((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===l?0:window.pageYOffset,n=e[d]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||g({offset:n,rect:e})}}),[o,l,d,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);ur((function(){v()}),[v]);var b=(0,e.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),o&&s.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=ir(e),u=o||i?[...c?or(c):[],...or(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const o=Kn(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(l||t(),!d||!p)return;const m={rootMargin:-Wn(u)+"px "+-Wn(o.clientWidth-(c+d))+"px "+-Wn(o.clientHeight-(u+p))+"px "+-Wn(c)+"px",threshold:Un(0,$n(1,s))||1};let f=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!f)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}f=!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 p,m=-1,f=null;a&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{f&&f.observe(t)}))),n()})),c&&!s&&f.observe(c),f.observe(t));let h=s?cr(e):null;return s&&function t(){const r=cr(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n(),h=r,p=requestAnimationFrame(t)}(),n(),()=>{u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),f&&f.disconnect(),f=null,s&&cancelAnimationFrame(p)}}(o,s.current,v,{elementResize:"ResizeObserver"in window}))}),[o,v]);ur((function(){b()}),[b]);var y=(0,e.useCallback)((function(e){s.current=e,b()}),[b]);if(!n&&"fixed"!==l||!h)return null;var k=Bn("div",ct({ref:y},vr(st(st({},t),{},{offset:h.offset,position:l,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),r);return Bn(Br.Provider,{value:m},n?(0,Hn.createPortal)(k,n):k)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=zn(e,Tr);return Bn("div",ct({},vr(st(st({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=zn(e,Ir);return Bn("div",ct({},vr(st(st({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,l=e.selectProps,s=n.Container,c=n.Label,u=n.Remove;return Bn(s,{data:r,innerProps:st(st({},vr(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:l},Bn(c,{data:r,innerProps:st({},vr(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),Bn(u,{data:r,innerProps:st(st({},vr(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},MultiValueContainer:ro,MultiValueLabel:ro,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Bn("div",ct({role:"button"},n),t||Bn(Gr,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Bn("div",ct({},vr(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Bn("div",ct({},vr(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Bn("div",ct({},vr(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Bn("div",ct({},vr(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Bn("div",ct({},vr(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},io=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ao(e,t){for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,l=e.isDisabled,s=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=l?" disabled":"",p="".concat(s?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},vo=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,l=t.selectValue,s=t.selectProps,c=t.id,u=t.isAppleDevice,d=s.ariaLiveMessages,p=s.getOptionLabel,m=s.inputValue,f=s.isMulti,h=s.isOptionDisabled,g=s.isSearchable,v=s.menuIsOpen,b=s.options,y=s.screenReaderStatus,k=s.tabSelectsValue,w=s.isLoading,E=s["aria-label"],x=s["aria-live"],C=(0,e.useMemo)((function(){return st(st({},go),d||{})}),[d]),S=(0,e.useMemo)((function(){var e,t="";if(n&&C.onChange){var r=n.option,o=n.options,i=n.removedValue,a=n.removedValues,s=n.value,c=i||r||(e=s,Array.isArray(e)?null:e),u=c?p(c):"",d=o||a||void 0,m=d?d.map(p):[],f=st({isDisabled:c&&h(c,l),label:u,labels:m},n);t=C.onChange(f)}return t}),[n,C,h,l,p]),_=(0,e.useMemo)((function(){var e="",t=r||o,n=!!(r&&l&&l.includes(r));if(t&&C.onFocus){var a={focused:t,label:p(t),isDisabled:h(t,l),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:l,isAppleDevice:u};e=C.onFocus(a)}return e}),[r,o,p,h,C,i,l,u]),O=(0,e.useMemo)((function(){var e="";if(v&&b.length&&!w&&C.onFilter){var t=y({count:i.length});e=C.onFilter({inputValue:m,resultsMessage:t})}return e}),[i,m,v,C,b,y,w]),F="initial-input-focus"===(null==n?void 0:n.action),P=(0,e.useMemo)((function(){var e="";if(C.guidance){var t=o?"value":v?"menu":"input";e=C.guidance({"aria-label":E,context:t,isDisabled:r&&h(r,l),isMulti:f,isSearchable:g,tabSelectsValue:k,isInitialFocus:F})}return e}),[E,r,o,f,h,g,v,C,l,k,F]),I=Bn(e.Fragment,null,Bn("span",{id:"aria-selection"},S),Bn("span",{id:"aria-focused"},_),Bn("span",{id:"aria-results"},O),Bn("span",{id:"aria-guidance"},P));return Bn(e.Fragment,null,Bn(ho,{id:c},F&&I),Bn(ho,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!F&&I))},bo=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],yo=new RegExp("["+bo.map((function(e){return e.letters})).join("")+"]","g"),ko={},wo=0;wo1?t-1:0),r=1;r0,h=d-p-c,g=!1;h>t&&l.current&&(o&&o(e),l.current=!1),f&&s.current&&(a&&a(e),s.current=!1),f&&t>h?(r&&!l.current&&r(e),m.scrollTop=d,g=!0,l.current=!0):!f&&-t>c&&(i&&!s.current&&i(e),m.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[r,o,i,a]),p=(0,e.useCallback)((function(e){d(e,e.deltaY)}),[d]),m=(0,e.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),f=(0,e.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),h=(0,e.useCallback)((function(e){if(e){var t=!!Or&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",m,t),e.addEventListener("touchmove",f,t)}}),[f,m,p]),g=(0,e.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",m,!1),e.removeEventListener("touchmove",f,!1))}),[f,m,p]);return(0,e.useEffect)((function(){if(n){var e=u.current;return h(e),function(){g(e)}}}),[n,h,g]),function(e){u.current=e}}({isEnabled:void 0===o||o,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,r=t.accountForScrollbars,o=void 0===r||r,i=(0,e.useRef)({}),a=(0,e.useRef)(null),l=(0,e.useCallback)((function(e){if(Bo){var t=document.body,n=t&&t.style;if(o&&Io.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&Do<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+r||0;Object.keys(To).forEach((function(e){var t=To[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&Ro()&&(t.addEventListener("touchmove",Ao,Lo),e&&(e.addEventListener("touchstart",Mo,Lo),e.addEventListener("touchmove",No,Lo))),Do+=1}}),[o]),s=(0,e.useCallback)((function(e){if(Bo){var t=document.body,n=t&&t.style;Do=Math.max(Do-1,0),o&&Do<1&&Io.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Ro()&&(t.removeEventListener("touchmove",Ao,Lo),e&&(e.removeEventListener("touchstart",Mo,Lo),e.removeEventListener("touchmove",No,Lo)))}}),[o]);return(0,e.useEffect)((function(){if(n){var e=a.current;return l(e),function(){s(e)}}}),[n,l,s]),function(e){a.current=e}}({isEnabled:r});return Bn(e.Fragment,null,r&&Bn("div",{onClick:Vo,css:jo}),n((function(e){i(e),a(e)})))}var Ho={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},$o=function(e){var t=e.name,n=e.onFocus;return Bn("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ho,value:"",onChange:function(){}})};function Uo(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Go(){return Uo(/^Mac/i)}var Wo={clearIndicator:Xr,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return st({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Yr,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return st({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return st({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return st(st({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},to),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return st({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:jr,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,l=o.colors;return st((at(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),at(n,"position","absolute"),at(n,"width","100%"),at(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return st({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return st({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return st({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return st({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Vr,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,l=i.colors;return st({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return st({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return st({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return st({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},qo={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Yo={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:xr(),captureMenuScroll:!xr(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=st({ignoreCase:!0,ignoreAccents:!0,stringify:Oo,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,l=n.matchFrom,s=a?_o(t):t,c=a?_o(i(e)):i(e);return r&&(s=s.toLowerCase(),c=c.toLowerCase()),o&&(s=So(s),c=Co(c)),"start"===l?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Xo(e,t,n,r){return{type:"option",data:t,isDisabled:ri(e,t,n),isSelected:oi(e,t,n),label:ti(e,t),value:ni(e,t),index:r}}function Ko(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Xo(e,n,t,r)})).filter((function(t){return Qo(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Xo(e,n,t,r);return Qo(e,i)?i:void 0})).filter(Fr)}function Zo(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,uo(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Jo(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,uo(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Qo(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!ai(e)||!i)&&ii(e,{label:a,value:l,data:o},r)}var ei=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},ti=function(e,t){return e.getOptionLabel(t)},ni=function(e,t){return e.getOptionValue(t)};function ri(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function oi(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ni(e,t);return n.some((function(t){return ni(e,t)===r}))}function ii(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ai=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},li=1,si=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lo(e,t)}(a,t);var n,r,o,i=co(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Go()||Uo(/^iPhone/i)||Uo(/^iPad/i)||Go()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,l=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:l}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,l=o&&t.isOptionSelected(e,a),s=t.isOptionDisabled(e,a);if(l){var c=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(uo(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=Pr(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Pr(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=Pr(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return ei(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Jo(Ko(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return ai(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,l=n.isClearable,s=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,m=t.state,f=m.focusedOption,h=m.focusedValue,g=m.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)t.removeValue(h);else{if(!o)return;r?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!f||p&&t.isOptionSelected(f,g))return;t.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(c){if(!f)return;if(t.isComposing)return;t.selectOption(f);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):l&&i&&t.clearValue();break;case" ":if(a)return;if(!c){t.openMenu("first");break}if(!f)return;t.selectOption(f);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++li),t.state.selectValue=hr(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),o=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[o],t.state.focusedOptionId=ei(n,r[o])}return t}return n=a,r=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Er(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Er(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var l=i.indexOf(r[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(qo):st(st({},qo),this.props.theme):qo}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,l=this.props,s=l.isMulti,c=l.isRtl,u=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:u,selectOption:i,selectProps:l,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return ri(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return oi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ii(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,o=t.inputId,i=t.inputValue,a=t.tabIndex,l=t.form,s=t.menuIsOpen,c=t.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,m=d.ariaSelection,f=this.commonProps,h=o||this.getElementId("input"),g=st(st(st({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?e.createElement(u,ct({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:n,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:l,type:"text",value:i},g)):e.createElement(Po,ct({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:pr,onFocus:this.onInputFocus,disabled:n,tabIndex:a,inputMode:"none",form:l,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,o=n.MultiValueContainer,i=n.MultiValueLabel,a=n.MultiValueRemove,l=n.SingleValue,s=n.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,m=u.isMulti,f=u.inputValue,h=u.placeholder,g=this.state,v=g.selectValue,b=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return f?null:e.createElement(s,ct({},c,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(m)return v.map((function(n,l){var s=n===b,u="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(r,ct({},c,{components:{Container:o,Label:i,Remove:a},isFocused:s,isDisabled:p,key:u,index:l,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(f)return null;var k=v[0];return e.createElement(l,ct({},c,{data:k,isDisabled:p}),this.formatOptionLabel(k,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!t||o||!this.hasValue()||i)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,ct({},n,{innerProps:l,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;return t&&i?e.createElement(t,ct({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return e.createElement(r,ct({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,ct({},n,{innerProps:i,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,o=n.GroupHeading,i=n.Menu,a=n.MenuList,l=n.MenuPortal,s=n.LoadingMessage,c=n.NoOptionsMessage,u=n.Option,d=this.commonProps,p=this.state.focusedOption,m=this.props,f=m.captureMenuScroll,h=m.inputValue,g=m.isLoading,v=m.loadingMessage,b=m.minMenuHeight,y=m.maxMenuHeight,k=m.menuIsOpen,w=m.menuPlacement,E=m.menuPosition,x=m.menuPortalTarget,C=m.menuShouldBlockScroll,S=m.menuShouldScrollIntoView,_=m.noOptionsMessage,O=m.onMenuScrollToTop,F=m.onMenuScrollToBottom;if(!k)return null;var P,I=function(n,r){var o=n.type,i=n.data,a=n.isDisabled,l=n.isSelected,s=n.label,c=n.value,m=p===i,f=a?void 0:function(){return t.onOptionHover(i)},h=a?void 0:function(){return t.selectOption(i)},g="".concat(t.getElementId("option"),"-").concat(r),v={id:g,onClick:h,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:l};return e.createElement(u,ct({},d,{innerProps:v,data:i,isDisabled:a,isSelected:l,key:g,label:s,type:o,value:c,isFocused:m,innerRef:m?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(n){if("group"===n.type){var i=n.data,a=n.options,l=n.index,s="".concat(t.getElementId("group"),"-").concat(l),c="".concat(s,"-heading");return e.createElement(r,ct({},d,{key:s,data:i,options:a,Heading:o,headingProps:{id:c,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return I(e,"".concat(l,"-").concat(e.index))})))}if("option"===n.type)return I(n,"".concat(n.index))}));else if(g){var T=v({inputValue:h});if(null===T)return null;P=e.createElement(s,d,T)}else{var A=_({inputValue:h});if(null===A)return null;P=e.createElement(c,d,A)}var N={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:E,menuShouldScrollIntoView:S},M=e.createElement(Dr,ct({},d,N),(function(n){var r=n.ref,o=n.placerProps,l=o.placement,s=o.maxHeight;return e.createElement(i,ct({},d,N,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:l}),e.createElement(zo,{captureEnabled:f,onTopArrive:O,onBottomArrive:F,lockEnabled:C},(function(n){return e.createElement(a,ct({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:t.getElementId("listbox")},isLoading:g,maxHeight:s,focusedOption:p}),P)})))}));return x||"fixed"===E?e.createElement(l,ct({},d,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:E}),M):M}},{key:"renderFormField",value:function(){var t=this,n=this.props,r=n.delimiter,o=n.isDisabled,i=n.isMulti,a=n.name,l=n.required,s=this.state.selectValue;if(l&&!this.hasValue()&&!o)return e.createElement($o,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(i){if(r){var c=s.map((function(e){return t.getOptionValue(e)})).join(r);return e.createElement("input",{name:a,type:"hidden",value:c})}var u=s.length>0?s.map((function(n,r){return e.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:a,type:"hidden",value:""});return e.createElement("div",null,u)}var d=s[0]?this.getOptionValue(s[0]):"";return e.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,o=n.focusedOption,i=n.focusedValue,a=n.isFocused,l=n.selectValue,s=this.getFocusableOptions();return e.createElement(vo,ct({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:o,focusedValue:i,isFocused:a,selectValue:l,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,o=t.SelectContainer,i=t.ValueContainer,a=this.props,l=a.className,s=a.id,c=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return e.createElement(o,ct({},p,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),e.createElement(n,ct({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),e.createElement(i,ct({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,ct({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,l=t.prevWasFocused,s=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,m=e.isMulti,f=hr(u),h={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return Zo(Ko(e,t))}(e,f):[],v=d?Jo(Ko(e,f),"".concat(s,"-option")):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r-1?n:t[0]}(t,g);h={selectValue:f,focusedOption:y,focusedOptionId:ei(v,y),focusableOptionsWithIds:v,focusedValue:b,clearFocusValueOnUpdate:!1}}var k=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},w=i,E=a&&l;return a&&!E&&(w={value:Pr(m,f,f[0]||null),options:f,action:"initial-input-focus"},E=!l),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),st(st(st({},h),k),{},{prevProps:e,ariaSelection:w,prevWasFocused:E})}}],r&&ao(n.prototype,r),o&&ao(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);si.defaultProps=Yo;var ci=(0,e.forwardRef)((function(t,n){var r=function(t){var n=t.defaultInputValue,r=void 0===n?"":n,o=t.defaultMenuIsOpen,i=void 0!==o&&o,a=t.defaultValue,l=void 0===a?null:a,s=t.inputValue,c=t.menuIsOpen,u=t.onChange,d=t.onInputChange,p=t.onMenuClose,m=t.onMenuOpen,f=t.value,h=zn(t,io),g=jn((0,e.useState)(void 0!==s?s:r),2),v=g[0],b=g[1],y=jn((0,e.useState)(void 0!==c?c:i),2),k=y[0],w=y[1],E=jn((0,e.useState)(void 0!==f?f:l),2),x=E[0],C=E[1],S=(0,e.useCallback)((function(e,t){"function"==typeof u&&u(e,t),C(e)}),[u]),_=(0,e.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),b(void 0!==n?n:e)}),[d]),O=(0,e.useCallback)((function(){"function"==typeof m&&m(),w(!0)}),[m]),F=(0,e.useCallback)((function(){"function"==typeof p&&p(),w(!1)}),[p]),P=void 0!==s?s:v,I=void 0!==c?c:k,T=void 0!==f?f:x;return st(st({},h),{},{inputValue:P,menuIsOpen:I,onChange:S,onInputChange:_,onMenuClose:F,onMenuOpen:O,value:T})}(t);return e.createElement(si,ct({ref:n},r))})),ui=ci;D.CustomSelectControl.Option;const{Option:di}=oo,pi=e=>["core/image","core/button","blockify/tab"].includes(e),mi={iconSet:{type:"string",default:C.set},iconName:{type:"string",default:C.name},iconColor:{type:"string"},iconGradient:{type:"string"},iconSize:{type:"string"},iconPosition:{type:"string"},iconSvgString:{type:"string",default:C.string}},fi={name:"icon",icon:tt,title:(0,L.__)("Icon","blockify"),isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"media",scope:["inserter"],description:(0,L.__)("Insert a customizable SVG icon.","blockify"),attributes:{className:"is-style-icon",iconSet:C.set,iconName:C.name,iconSvgString:C.string},isActive:e=>e&&e?.className?.includes("is-style-icon")};g()((()=>{(0,v.registerBlockVariation)("core/image",fi)})),(0,t.addFilter)("blocks.registerBlockType","blockify/add-icon-attributes",((e,t)=>{if(pi(t)){for(const[t,n]of Object.entries(mi))e.attributes[t]={type:n.type};"core/button"===t&&(delete mi?.iconSet?.default,delete mi?.iconName?.default),e.attributes={...e.attributes,...mi}}return e}),99);const hi=t=>{var n,r,o,i,a,s,c,u;const{attributes:d,setAttributes:p,isButton:m}=t,f=[{label:(0,L.__)("None","blockify"),value:""}],h=null!==(n=(0,I.useSelect)((e=>e(B)?.getIcons()),[]))&&void 0!==n?n:T,g={wordpress:[{value:mi?.iconName?.default,label:l(null!==(r=mi?.iconName?.default)&&void 0!==r?r:""),icon:rt(null!==(o=mi?.iconSvgString?.default)&&void 0!==o?o:"")}]};return Object.keys(h).forEach((e=>{var t;let n=e.split("-").join(" ");var r,o,i;n="wordpress"===n?"WordPress":n,f.push({label:n,value:e}),g[e]=[],Object.keys(h[e]).forEach((t=>{t!==d?.iconName&&g[e].push({icon:rt(h?.[e]?.[t]),value:t,label:l(null!=t?t:"")})})),h?.[e]?.[null!==(t=d?.iconName)&&void 0!==t?t:""]&&g[e].unshift({icon:rt(h?.[e]?.[null!==(r=d?.iconName)&&void 0!==r?r:""]),value:null!==(o=d?.iconName)&&void 0!==o?o:"",label:l(null!==(i=d?.iconName)&&void 0!==i?i:"")})})),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Select Icon Set","blockify"),value:null!==(i=d?.iconSet)&&void 0!==i?i:mi?.iconSet.default,options:f,onChange:e=>p({iconSet:e})}),(0,e.createElement)(z,{style:{marginTop:0}},(0,L.__)("Select Icon","blockify")),(0,e.createElement)(ui,{isMulti:!1,isSearchable:!0,placeholder:(0,L.__)("Select icon","blockify-pro"),options:null!==(a=g?.[null!==(s=d?.iconSet)&&void 0!==s?s:""])&&void 0!==a?a:g?.wordpress,value:{value:d?.iconName,label:l(null!==(c=d?.iconName)&&void 0!==c?c:""),icon:null!==(u=d.iconSvgString)&&void 0!==u?u:""},onChange:e=>{var t,n,r;p({iconName:e?.value,iconSvgString:null!==(t=h?.[null!==(n=d?.iconSet)&&void 0!==n?n:""]?.[null!==(r=e?.value)&&void 0!==r?r:""])&&void 0!==t?t:""})},components:{Option:t=>{var n,r;return(0,e.createElement)(di,{...t,key:t.data?.value,label:t.data?.label},null!==(n=t.data?.icon)&&void 0!==n?n:"",(0,e.createElement)("span",{className:"screen-reader-text"},null!==(r=t.data?.value)&&void 0!==r?r:""))}},isClearable:!0}),(0,e.createElement)("br",null),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,{align:"top",justify:"space-between",wrap:!1,style:{alignItems:"top",alignContent:"top"}},(0,e.createElement)(D.FlexItem,{style:{flexBasis:"100%"}},(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Icon Width","blockify"),value:d?.iconSize,onChange:e=>{p({iconSize:e})}})),m&&(0,e.createElement)((()=>{const t={height:"30px"};return(0,e.createElement)(D.FlexItem,{style:{flexBasis:"100%"}},(0,e.createElement)(z,{style:{margin:"0 0 5px"}},(0,L.__)("Icon Position","blockify")),(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{variant:"start"===d?.iconPosition?"primary":"secondary",onClick:()=>{p({iconPosition:"start"})},style:t},(0,L.__)("Start","blockify")),(0,e.createElement)(D.Button,{variant:"end"===d?.iconPosition?"primary":"secondary",onClick:()=>{p({iconPosition:"end"})},style:t},(0,L.__)("End","blockify"))))}),null))))};(0,t.addFilter)("editor.BlockEdit","blockify/with-icon",(0,r.createHigherOrderComponent)((t=>n=>{const{name:r,attributes:o,isSelected:i}=n,{className:a}=o,l=["core/button","blockify/tab"].includes(r);return(a?.includes("is-style-icon")||l)&&pi(r)?(i&&(()=>{var e;if(null!==(e=window?.blockify?.isPlugin)&&void 0!==e&&e)return;const t=document.getElementsByClassName("block-editor-block-card__description").item(0);t&&(document.getElementsByClassName("blockify-pro-icon-link").item(0)||(t.innerHTML=t.innerHTML+(0,L.__)(" Get more icons with ","blockify")+'Blockify Pro ↗'))})(),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{title:(0,L.__)("Icon Settings","blockify"),initialOpen:!0,className:"blockify-icon-settings"},!window?.blockify?.isPlugin&&(0,e.createElement)("p",null,(0,L.__)("More icons available with Blockify Pro! ","blockify"),(0,e.createElement)("a",{href:"https://blockifywp.com/pro",target:"_blank",rel:"noreferrer"},(0,L.__)("Learn more ↗","blockify"))),(0,e.createElement)(hi,{...n,isButton:l}))))):(0,e.createElement)(t,{...n})}),"iconEdit"),0),(0,t.addFilter)("editor.BlockListBlock","blockify/edit-icon-styles",(0,r.createHigherOrderComponent)((t=>n=>{let{attributes:r,wrapperProps:o,name:i,clientId:a}=n;const l=["core/button"].includes(i);if(!r?.className&&!l)return(0,e.createElement)(t,{...n});if(!r?.className?.includes("is-style-icon")&&!l)return(0,e.createElement)(t,{...n});if(!pi(i))return(0,e.createElement)(t,{...n});o||(o={style:{}}),o.style={...o?.style,...S(r)};const s={};return r.iconSvgString&&(s["--wp--custom--icon--url"]="url('data:image/svg+xml;utf8,"+r.iconSvgString+"')"),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("style",null,"#block-"+a+"{"+b(s)+"}"),(0,e.createElement)(t,{...n,wrapperProps:o}))}),"withIcon")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/save-icon-styles",((e,t,n)=>{if(!n?.className)return e;const{name:r}=t,o="core/button"===r;return(n?.className?.includes("is-style-icon")||o)&&pi(r)?e={...e,style:{...e?.style,...S(n)}}:e}));const gi=(0,e.createElement)(V.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(V.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"})),vi={name:"svg",title:(0,L.__)("SVG","blockify"),icon:gi,isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"media",scope:[],description:(0,L.__)("Insert an inline SVG.","blockify"),attributes:{className:"is-style-svg"},isActive:e=>!!e?.className&&e?.className&&e?.className?.includes("is-style-svg")};g()((()=>{(0,v.registerBlockVariation)("core/image",vi)}));const bi=e=>"url('data:image/svg+xml;utf8,"+encodeURIComponent(e)+"')",yi=e=>"data:image/svg+xml;utf8,"+encodeURIComponent(e);(0,t.addFilter)("editor.BlockEdit","blockify/with-svg-controls",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const{attributes:i,setAttributes:a}=n;if(!i?.className?.includes("is-style-svg"))return(0,e.createElement)(t,{...n});const{style:l}=i,s=null!==(r=l?.svgString)&&void 0!==r?r:"",c=null!==(o=l?.maskSvg)&&void 0!==o&&o;i?.url||a({url:c?"#":yi(s)}),c&&"#"!==i?.url&&a({url:"#"}),c||i?.url?.includes("data:image/svg+xml;utf8,")||a({url:yi(s)});let u="var(--width,1em)",d="";var p;i?.width&&(u=i.width+"px"),i?.height&&(d=(null!==(p=i.height)&&void 0!==p?p:"")+"px"),d=""===d?u:d;const m={width:u,height:d,display:"inline-flex",background:"currentColor",overflow:"hidden","-webkit-mask-repeat":"no-repeat","-mask-repeat":"no-repeat","-webkit-mask-size":"100% 100%","-mask-size":"100% 100%","-webkit-mask-position":"center","-mask-position":"center bottom","-webkit-mask-image":bi(s),"-mask-image":bi(s)};let f="";return s&&(f=Object.entries(m).map((([e,t])=>`${e}:${t};`)).join("")),(0,e.createElement)(e.Fragment,null,c&&(0,e.createElement)("style",null,"#block-"+n?.clientId+">div:first-of-type{"+f+"}"),(0,e.createElement)(t,{...n}),(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{title:(0,L.__)("SVG Settings","blockify-pro"),className:(0,L.__)("blockify-svg-controls","blockify-pro")},(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.TextareaControl,{label:(0,L.__)("SVG String","blockify"),help:(0,L.__)("Paste your SVG string in the field above. It is recommended to format your SVG with an optimization tool ","blockify"),value:null!=s?s:"",rows:20,onChange:e=>{const t={style:{...l,svgString:e}};t.url=c?"#":yi(e),a(t)},style:{fontFamily:"var(--wp--preset--font-family--monospace, monospace)"}})),(0,e.createElement)(D.ExternalLink,{href:"https://jakearchibald.github.io/svgomg/",target:"_blank"},"https://jakearchibald.github.io/svgomg/"),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Mask with text color","blockify"),help:(0,L.__)("If enabled, the SVG will be masked with the text color. (Renders inline SVG on front end).","blockify"),checked:c,onChange:e=>{const t={style:{...l,maskSvg:e}};t.url=c?"#":yi(s),a(t)}})))))}),"withSvgControls"),9);const ki=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.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.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"})),wi="60",Ei="90",xi={name:"marquee",icon:ki,title:(0,L.__)("Marquee","blockify"),isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"design",scope:["inserter"],description:(0,L.__)("Adds a horizontal infinite scrolling marquee banner.","blockify"),innerBlocks:[["core/group",{layout:{type:"flex",flexWrap:"nowrap",orientation:"horizontal",justifyContent:"center"}},[["core/paragraph"]]]],attributes:{marquee:{},align:"full",speedMobile:wi,speedDesktop:Ei,pauseOnHover:!0,reverse:!1,fadeEdges:!1,direction:"horizontal",spacing:{padding:{right:"0",left:"0"}},layout:{type:"flex",flexWrap:"nowrap",orientation:"marquee",justifyContent:"center"}},isActive:(e,t)=>e.layout?.orientation===t.layout?.orientation};(0,v.registerBlockVariation)("core/group",xi);const Ci=e=>{var t,n;return{"--marquee-speed-mobile":(null!==(t=e?.speedMobile)&&void 0!==t?t:wi)+"s","--marquee-speed-desktop":(null!==(n=e?.speedDesktop)&&void 0!==n?n:Ei)+"s","--marquee-direction":e?.reverse?"reverse":"forwards","--marquee-pause":e?.pauseOnHover?"paused":"running"}};(0,t.addFilter)("blocks.registerBlockType","blockify/marquee-attributes",((e,t)=>("core/group"===t&&(e={...e,attributes:{...e.attributes,speedMobile:{type:"string"},speedDesktop:{type:"string"},reverse:{type:"boolean"},pauseOnHover:{type:"boolean"},repeatItems:{type:"number"},fadeEdges:{type:"boolean"}}}),e)),0),(0,t.addFilter)("editor.BlockEdit","blockify/with-marquee-controls",(0,r.createHigherOrderComponent)((t=>n=>{const{attributes:r,setAttributes:o}=n;return"marquee"!==r?.layout?.orientation?(0,e.createElement)(t,{...n}):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{title:(0,L.__)("Marquee Settings","blockify-pro"),className:"blockify-width-control"},(0,e.createElement)((()=>{var t,n,i;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.__experimentalVStack,null,(0,e.createElement)(z,null,(0,L.__)("Scroll Speed (seconds)","blockify")),(0,e.createElement)(D.Flex,null,(0,e.createElement)(D.FlexItem,{style:{width:"50%"}},(0,e.createElement)(D.__experimentalNumberControl,{isShiftStepEnabled:!0,label:(0,L.__)("Mobile","blockify"),onChange:(e,t)=>{t?.event?.target?.validity?.valid&&o({speedMobile:e})},value:null!==(t=r?.speedMobile)&&void 0!==t?t:wi})),(0,e.createElement)(D.FlexBlock,null,(0,e.createElement)(D.__experimentalNumberControl,{isShiftStepEnabled:!0,label:(0,L.__)("Desktop","blockify-pro"),onChange:(e,t)=>{t?.event?.target?.validity?.valid&&o({speedDesktop:e})},value:null!==(n=r?.speedDesktop)&&void 0!==n?n:Ei}))))),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.RangeControl,{label:(0,L.__)("Repeat Items","blockify"),help:(0,L.__)("How many times should the items be duplicated/cloned.","blockify"),value:null!==(i=r?.repeatItems)&&void 0!==i?i:2,onChange:e=>{o({repeatItems:e})},min:0,max:10,step:1,allowReset:!0})),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Pause on hover","blockify-pro"),checked:r?.pauseOnHover,onChange:()=>o({pauseOnHover:!r?.pauseOnHover})})),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Reverse direction","blockify-pro"),checked:r?.reverse,onChange:()=>o({reverse:!r?.reverse})})),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Fade Edges","blockify-pro"),checked:r?.fadeEdges,onChange:()=>o({fadeEdges:!r?.fadeEdges})})))}),null))),(0,e.createElement)(t,{...n}))}),"withInspectorControl"),9),(0,t.addFilter)("editor.BlockListBlock","blockify/with-marquee",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const{attributes:i}=n;if("marquee"!==i?.layout?.orientation)return(0,e.createElement)(t,{...n});n.attributes.style={...null!==(r=i.style)&&void 0!==r?r:{},...Ci(i)};const a={...n.wrapperProps,style:{...null!==(o=n.wrapperProps?.style)&&void 0!==o?o:{},...Ci(i)}};let l=n.className;return i?.fadeEdges&&(l=w(l,"fade-edges"),a.className=l),(0,e.createElement)(t,{...n,className:l,wrapperProps:a})}),"withMarquee")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/save-marquee-styles",((e,t,n)=>("marquee"!==n?.layout?.orientation||(e={...e,style:{...e?.style,...Ci(n)}},n?.fadeEdges&&(e.className=w(e.className,"fade-edges"))),e)));const Si=(0,e.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"},(0,e.createElement)(D.Path,{d:"M126.12 315.1A47.06 47.06 0 1 1 79.06 268h47.06Zm23.72 0a47.06 47.06 0 0 1 94.12 0v117.84a47.06 47.06 0 1 1-94.12 0Zm47.06-188.98A47.06 47.06 0 1 1 244 79.06v47.06Zm0 23.72a47.06 47.06 0 0 1 0 94.12H79.06a47.06 47.06 0 0 1 0-94.12Zm188.98 47.06a47.06 47.06 0 1 1 47.06 47.1h-47.06Zm-23.72 0a47.06 47.06 0 0 1-94.12 0V79.06a47.06 47.06 0 1 1 94.12 0ZM315.1 385.88a47.06 47.06 0 1 1-47.1 47.06v-47.06Zm0-23.72a47.06 47.06 0 0 1 0-94.12h117.84a47.06 47.06 0 1 1 0 94.12Z"})),_i={name:"slack",title:(0,L.__)("Slack","blockify"),icon:Si,attributes:{service:"slack"},isActive:(e,t)=>e.service===t.service};(0,v.registerBlockVariation)("core/social-link",_i);const Oi=window.wp.richText;(0,Oi.registerFormatType)("blockify/clear-formatting",{title:(0,L.__)("Clear","blockify"),tagName:"span",className:"clear",edit:t=>{const{value:n,isActive:r,onChange:o}=t,{formatTypes:i}=(0,I.useSelect)((e=>({formatTypes:e("core/rich-text").getFormatTypes()})),[]);return(0,e.createElement)(Z.RichTextToolbarButton,{icon:"editor-removeformatting",title:(0,L.__)("Clear Formatting","blockify"),onClick:()=>{if(i.length>0){let e=n;i.map((t=>{e=(0,Oi.removeFormat)(e,t.name)})),o({...e})}},isActive:r})}});const Fi=(0,e.createElement)(V.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(V.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"})),Pi="blockify/gradient";(0,Oi.registerFormatType)(Pi,{title:(0,L.__)("Gradient","blockify"),tagName:"span",className:"has-text-gradient",attributes:{style:"style",class:"class"},edit:({isActive:t,value:n,onChange:r})=>{const[o,i]=(0,W.useState)(""),[a,l]=(0,W.useState)(!1),{gradients:s}=(0,I.useSelect)((e=>({gradients:e("core/block-editor").getSettings()?.gradients})),[]);let c="",u="";return n?.formats&&n.formats.forEach((e=>{const t=e?.find((e=>e?.type===Pi));t?.type===Pi&&(c+=";"+t?.attributes?.style,u+=t?.attributes?.class)})),(0,e.createElement)(Z.BlockControls,null,(0,e.createElement)(Z.RichTextToolbarButton,{icon:Fi,title:(0,L.__)("Gradient","blockify"),isActive:t,shortcutType:"primary",shortcutCharacter:"g",onClick:()=>l(!a)}),a&&(0,e.createElement)(D.Toolbar,{className:"blockify-components-toolbar"},(0,e.createElement)(D.Popover,{position:"bottom center",className:"blockify-gradient-text-control",focusOnMount:"container",onFocusOutside:()=>l(!1)},(0,e.createElement)(D.GradientPicker,{value:null!=o?o:"",gradients:s,onChange:e=>{i(e);let t=c,o=u;s.forEach((t=>{t.gradient===e&&(o+=(o?" ":"")+"has-"+t.slug+"-gradient-background")})),e&&!o.includes("-gradient-background")&&(t+=(t?t+";":"")+"background:"+e),o?.includes("has-text-gradient")&&(o=o?.replace("has-text-gradient","")?.trim()+" has-text-gradient"),r((0,Oi.applyFormat)(n,{type:Pi,attributes:{style:t,class:o}}))}}))))}});const Ii=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"}));D.CustomSelectControl.Option;const Ti="blockify/typography",Ai=[{key:"Default",name:"Default",style:{}},{key:"Thin",name:"Thin",style:{fontStyle:"normal",fontWeight:100}},{key:"Extra Light",name:"Extra Light",style:{fontStyle:"normal",fontWeight:200}},{key:"Light",name:"Light",style:{fontStyle:"normal",fontWeight:300}},{key:"Regular",name:"Regular",style:{fontStyle:"normal",fontWeight:400}},{key:"Medium",name:"Medium",style:{fontStyle:"normal",fontWeight:500}},{key:"Semi Bold",name:"Semi Bold",style:{fontStyle:"normal",fontWeight:600}},{key:"Bold",name:"Bold",style:{fontStyle:"normal",fontWeight:700}},{key:"Extra Bold",name:"Extra Bold",style:{fontStyle:"normal",fontWeight:800}},{key:"Black",name:"Black",style:{fontStyle:"normal",fontWeight:900}},{key:"Thin Italic",name:"Thin Italic",style:{fontStyle:"italic",fontWeight:100}},{key:"Extra Light Italic",name:"Extra Light Italic",style:{fontStyle:"italic",fontWeight:200}},{key:"Light Italic",name:"Light Italic",style:{fontStyle:"italic",fontWeight:300}},{key:"Regular Italic",name:"Regular Italic",style:{fontStyle:"italic",fontWeight:400}},{key:"Medium Italic",name:"Medium Italic",style:{fontStyle:"italic",fontWeight:500}},{key:"Semi Bold Italic",name:"Semi Bold Italic",style:{fontStyle:"italic",fontWeight:600}},{key:"Bold Italic",name:"Bold Italic",style:{fontStyle:"italic",fontWeight:700}},{key:"Extra Bold Italic",name:"Extra Bold Italic",style:{fontStyle:"italic",fontWeight:800}},{key:"Black Italic",name:"Black Italic",style:{fontStyle:"italic",fontWeight:900}}];(0,Oi.registerFormatType)(Ti,{title:(0,L.__)("Typography","blockify"),tagName:"span",className:"has-font",edit:t=>{var n;const{isActive:r,value:i,onChange:a}=t,{fontSizes:l}=(0,I.useSelect)((e=>({fontSizes:e("core/block-editor")?.getSettings()?.fontSizes})),[]),s=null!==(n=window?.blockify?.selectedFonts)&&void 0!==n?n:[],c=s?.map((e=>({label:o(e?.replace("-"," ")),value:e})));let u="",d="";i?.formats&&i.formats.forEach((e=>{e&&e.forEach((e=>{var t,n;e?.type===Ti&&(u=null!==(t=e?.attributes?.style)&&void 0!==t?t:"",d=null!==(n=e?.attributes?.class)&&void 0!==n?n:"")}))}));const[p,m]=(0,W.useState)({style:y(u),class:d.split(" "),fontFamily:"",fontSize:"",fontAppearance:Ai[0],isOpen:!1});return(0,e.createElement)(Z.BlockControls,null,(0,e.createElement)(Z.RichTextToolbarButton,{icon:Ii,title:(0,L.__)("Typography","blockify"),isActive:r,shortcutType:"primary",shortcutCharacter:"f",onClick:()=>m({...p,isOpen:!p.isOpen})}),p?.isOpen&&(0,e.createElement)(D.Toolbar,{className:"blockify-components-toolbar"},(0,e.createElement)(D.Popover,{position:"bottom center",className:"blockify-font-family-control",focusOnMount:"container",onFocusOutside:()=>m({...p,isOpen:!1})},(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Select Font Family","blockify"),value:p?.fontFamily,options:c,onChange:e=>{m({...p,fontFamily:e});const t="has-"+e+"-font-family";p?.class?.includes(t)||p?.class?.push(t),a((0,Oi.applyFormat)(i,{type:Ti,attributes:{style:b(p?.style),class:p?.class?.join(" ")}}))}}),(0,e.createElement)(D.FontSizePicker,{fontSizes:l,fallbackFontSize:20,value:parseInt(p?.fontSize),withSlider:!0,onChange:e=>{m({...p,fontSize:e.toString()}),e&&(p.style["--wp--custom--font-size"]=e.toString()),p?.class?.includes("has-inline-font-size")||p.class.push("has-inline-font-size"),a((0,Oi.applyFormat)(i,{type:Ti,attributes:{style:b(p?.style),class:p?.class?.join(" ")}}))}}),(0,e.createElement)(D.CustomSelectControl,{label:(0,L.__)("Appearance","blockify"),value:Ai.find((e=>e.key===p?.fontAppearance?.key)),options:null!=Ai?Ai:[],onChange:({selectedItem:e})=>{e&&m({...p,fontAppearance:e}),e?.style?.fontStyle&&(p.style["font-style"]=e?.style?.fontStyle),e?.style?.fontWeight&&(p.style["font-weight"]=e?.style?.fontWeight?.toString()),a((0,Oi.applyFormat)(i,{type:Ti,attributes:{style:b(p?.style),class:p?.class?.join(" ")}}))}}))))}});const Ni=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"})),Mi="blockify/inline-svg";(0,Oi.registerFormatType)(Mi,{title:(0,L.__)("Inline SVG","blockify"),object:!0,tagName:"img",className:"has-inline-svg",edit:t=>{const{isActive:n,onChange:r,value:o}=t,[i,a]=(0,W.useState)(!1),[l,s]=(0,W.useState)({string:"",width:"1em",widthDesktop:"1em",alt:"",src:""});return(0,e.createElement)(Z.BlockControls,null,(0,e.createElement)(Z.RichTextToolbarButton,{icon:Ni,title:(0,L.__)("Inline SVG","blockify"),isActive:n,shortcutType:"primary",shortcutCharacter:"v",onClick:()=>a(!i)}),i&&(0,e.createElement)(D.Toolbar,{className:"blockify-components-toolbar"},(0,e.createElement)(D.Popover,{position:"bottom center",className:"blockify-svg-control",focusOnMount:"container",onFocusOutside:()=>a(!1)},(0,e.createElement)((()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.TextareaControl,{label:(0,L.__)("SVG String","blockify"),help:(0,L.__)("Paste your SVG string in the field above and then click the button below to insert your image.","blockify"),value:l?.string,placeholder:(0,L.__)("Paste your SVG string here","blockify"),rows:20,onChange:e=>{s({...l,string:e.replace(/'/g,'"')})},style:{fontFamily:"var(--wp--preset--font-family--monospace, monospace)",width:"300px"}}),(0,e.createElement)("br",null),(0,e.createElement)(D.TextareaControl,{label:(0,L.__)("Alt Text","blockify"),placeholder:(0,L.__)("SVG description","blockify"),value:l?.alt,rows:2,onChange:e=>{s({...l,alt:e})},style:{width:"300px"}}),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,null,(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Width Mobile","blockify"),value:l?.width,onChange:e=>{s({...l,width:e})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Width Desktop","blockify"),value:l?.widthDesktop,onChange:e=>{s({...l,widthDesktop:e})}})))),(0,e.createElement)("br",null),(0,e.createElement)(D.Button,{variant:"primary",text:(0,L.__)("Insert SVG","blockify"),onClick:()=>(e=>{const t={};e?.string&&(t["-webkit-mask-image"]="url(data:image/svg+xml;utf8,"+encodeURIComponent(e.string)+")"),e?.width&&(t["--width"]=e.width),e?.widthDesktop&&(t["--width-desktop"]=e.widthDesktop);const n={type:Mi,attributes:{alt:e?.alt,role:"presentation",src:"",style:b(t)}};r((0,Oi.insertObject)(o,n)),a(!1)})(l)}))),null))))}});const Ri=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"})),Bi="blockify/underline",Di=["none","solid","wavy","dashed","dotted","double","brush","circle","scribble"];(0,Oi.registerFormatType)(Bi,{title:(0,L.__)("Underline","blockify"),tagName:"u",className:"has-text-underline",attributes:{style:"style",class:"class"},edit:({isActive:t,value:n,onChange:r})=>{const[o,i]=(0,W.useState)(""),[a,l]=(0,W.useState)(!1);let s=[],c=[];return n?.formats&&n.formats.forEach((e=>{e&&e.forEach((e=>{e.type===Bi&&(e.attributes?.style&&(s=e.attributes.style.split(";")),e.attributes?.class&&(c=e.attributes.class.split(" ")))}))})),(0,e.createElement)(Z.BlockControls,null,(0,e.createElement)(Z.RichTextShortcut,{type:"primary",character:"u",onUse:()=>{r((0,Oi.toggleFormat)(n,{type:Bi}))}}),(0,e.createElement)(Z.RichTextToolbarButton,{icon:Ri,title:(0,L.__)("Underline","blockify"),isActive:t,shortcutType:"primary",shortcutCharacter:"u",onClick:()=>l(!a)}),a&&(0,e.createElement)(D.Toolbar,{className:"blockify-components-toolbar"},(0,e.createElement)(D.Popover,{position:"bottom center",className:"blockify-underline-format",focusOnMount:"container",onFocusOutside:()=>l(!1)},(0,e.createElement)(D.__experimentalText,null,(0,L.__)("Underline style","blockify")),(0,e.createElement)("br",null),(0,e.createElement)(D.SelectControl,{onChange:e=>{var t,o;"none"===e&&r((0,Oi.removeFormat)(n,Bi)),i(e);const a=null!==(t=c)&&void 0!==t?t:[];a.forEach(((e,t)=>{e.includes("is-underline-")&&delete l.classes[t]}));const l={classes:[...a,"is-underline-"+e],styles:[...null!==(o=s)&&void 0!==o?o:[],"--wp--custom--underline--style:"+e]};r((0,Oi.applyFormat)(n,{type:Bi,attributes:{class:l.classes.join(" "),style:l.styles.join(";")}}))},value:o,options:Di.map((e=>{return{label:(t=e,t.charAt(0).toUpperCase()+t.slice(1)),value:e};var t}))}))))}})})()})(); \ No newline at end of file +(()=>{var e={960:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},915:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(960),a=n(790);o(n(790),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},790:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=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])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=p;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=m;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var h=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,a.isTag)(e)}function b(e){return e.type===a.ElementType.CDATA}function v(e){return e.type===a.ElementType.Text}function y(e){return e.type===a.ElementType.Comment}function k(e){return e.type===a.ElementType.Directive}function w(e){return e.type===a.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new c(e.data);else if(y(e))n=new u(e.data);else if(g(e)){var r=t?x(e.children):[],o=new h(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(b(e)){r=t?x(e.children):[];var a=new m(r);r.forEach((function(e){return e.parent=a})),n=a}else if(w(e)){r=t?x(e.children):[];var l=new f(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!k(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n{"use strict";var r=n(296),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},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=m(n);o&&o!==f&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var l=s(t),h=s(n),g=0;g{"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,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=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,m=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,k=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 l:case a:case m:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case h:case s: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=s,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=l,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)===s},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)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},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===l||e===a||e===m||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===k||e.$$typeof===b)},t.typeOf=w},296:(e,t,n)=>{"use strict";e.exports=n(103)},885:(e,t)=>{t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},276:e=>{var t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,i=//i,a=//i,l=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},s=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;l=s=function(e,t){return t&&(e="<"+t+">"+e+""),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();l=function(e,t){return t?(d.documentElement.querySelector(t).innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var p,m="object"==typeof document?document.createElement("template"):{};m.content&&(p=function(e){return m.innerHTML=e,m.content.childNodes}),e.exports=function(e){var c,u,d,m,f=e.match(o);switch(f&&f[1]&&(c=f[1].toLowerCase()),c){case t:return u=s(e),i.test(e)||(d=u.querySelector(n))&&d.parentNode.removeChild(d),a.test(e)||(d=u.querySelector(r))&&d.parentNode.removeChild(d),u.querySelectorAll(t);case n:case r:return m=(u=l(e)).querySelectorAll(c),a.test(e)&&i.test(e)?m[0].parentNode.childNodes:m;default:return p?p(e):(d=l(e,r).querySelector(r)).childNodes}}},152:(e,t,n)=>{var r=n(276),o=n(507).formatDOM,i=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(i);return n&&n[1]&&(t=n[1]),o(r(e),null,t)}},507:(e,t,n)=>{for(var r,o=n(915),i=n(885).CASE_SENSITIVE_TAG_NAMES,a=o.Comment,l=o.Element,s=o.ProcessingInstruction,c=o.Text,u={},d=0,p=i.length;d{var r=n(915),o=n(152),i=n(484),a=n(670);o="function"==typeof o.default?o.default:o;var l={lowerCaseAttributeNames:!1};function s(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:a(o(e,(t=t||{}).htmlparser2||l),t)}s.domToReact=a,s.htmlToDOM=o,s.attributesToProps=i,s.Comment=r.Comment,s.Element=r.Element,s.ProcessingInstruction=r.ProcessingInstruction,s.Text=r.Text,e.exports=s,s.default=s},484:(e,t,n)=>{var r=n(726),o=n(606),i=["checked","value"],a=["input","select","textarea"],l={reset:!0,submit:!0};function s(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,c,u,d,p,m={},f=(e=e||{}).type&&l[e.type];for(n in e)if(u=e[n],r.isCustomAttribute(n))m[n]=u;else if(d=s(c=n.toLowerCase()))switch(p=r.getPropertyInfo(d),-1===i.indexOf(d)||-1===a.indexOf(t)||f||(d=s("default"+c)),m[d]=u,p&&p.type){case r.BOOLEAN:m[d]=!0;break;case r.OVERLOADED_BOOLEAN:""===u&&(m[d]=!0)}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(m[n]=u);return o.setStyleProp(e.style,m),m}},670:(e,t,n)=>{var r=n(196),o=n(484),i=n(606),a=i.setStyleProp,l=i.canTextBeChildOfNode;function s(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&i.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var i,c,u,d,p,m=(n=n||{}).library||r,f=m.cloneElement,h=m.createElement,g=m.isValidElement,b=[],v="function"==typeof n.replace,y=n.trim,k=0,w=t.length;k1&&(u=f(u,{key:u.key||k})),b.push(u);else if("text"!==i.type){switch(d=i.attribs,s(i)?a(d.style,d):d&&(d=o(d,i.name)),p=null,i.type){case"script":case"style":i.children[0]&&(d.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?d.defaultValue=i.children[0].data:i.children&&i.children.length&&(p=e(i.children,n));break;default:continue}w>1&&(d.key=k),b.push(h(i.name,d,p))}else{if((c=!i.data.trim().length)&&i.parent&&!l(i.parent))continue;if(y&&c)continue;b.push(i.data)}return 1===b.length?b[0]:b}},606:(e,t,n)=>{var r=n(196),o=n(476).default,i={reactCompat:!0},a=r.version.split(".")[0]>=16,l=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,o="function"==typeof t,i={},a={};for(n in e)r=e[n],o&&(i=t(n,r))&&2===i.length?a[i[0]]=i[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.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}},setStyleProp:function(e,t){if(null!=e)try{t.style=o(e,i)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!l.has(e.name)},elementsWithNoTextChildren:l}},139:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,p=1;function m(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new h(e),y(),t}}function h(e){this.start=e,this.end={line:d,column:p},this.source=s.source}h.prototype.content=e;var g=[];function b(t){var n=new Error(s.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=p,n.source=e,!s.silent)throw n;g.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return m(r),e=e.slice(r.length),n}}function y(){v(r)}function k(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return b("End of comment missing");var r=e.slice(2,n-2);return p+=2,m(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function E(){var e=f(),n=v(o);if(n){if(w(),!v(i))return b("property missing ':'");var r=v(a),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(l),s}}return y(),function(){var e,t=[];for(k(t);e=E();)!1!==e&&(t.push(e),k(t));return t}()}},433:()=>{Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},325:(e,t,n)=>{var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=d.reach);x+=E.value.length,E=E.next){var C=E.value;if(t.length>e.length)return;if(!(C instanceof i)){var S,_=1;if(v){if(!(S=a(w,x,e,b))||S.index>=e.length)break;var O=S.index,F=S.index+S[0].length,P=x;for(P+=E.value.length;O>=P;)P+=(E=E.next).value.length;if(x=P-=E.value.length,E.value instanceof i)continue;for(var I=E;I!==t.tail&&(Pd.reach&&(d.reach=M);var R=E.prev;if(A&&(R=c(t,R,A),x+=A.length),u(t,R,_),E=c(t,R,new i(p,g?o.tokenize(T,g):T,y,T)),N&&c(t,E,N),_>1){var B={cause:p+","+f,reach:M};l(e,t,n,E.prev,x,B),d&&B.reach>d.reach&&(d.reach=B.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o"+i.content+""},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var d=o.util.currentScript();function p(){o.manual||o.highlightAll()}if(d&&(o.filename=d.src,d.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var m=document.readyState;"loading"===m||"interactive"===m&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},980:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},726:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},460:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=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])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1){t._history.stack=s.slice(0,c+1);var u=t._history.stack.length;if(u>100){var d=u-100;t._history.stack=s.slice(d,u),t._history.offset=Math.max(t._history.offset-d,0)}}var p=Date.now();if(n){var m=t._history.stack[t._history.offset];if(m&&p-m.timestamp<3e3){var f=/[^a-z0-9]([a-z0-9]+)$/i,h=null===(r=t._getLines(m.value,m.selectionStart).pop())||void 0===r?void 0:r.match(f),g=null===(o=t._getLines(e.value,e.selectionStart).pop())||void 0===o?void 0:o.match(f);if((null==h?void 0:h[1])&&(null===(a=null==g?void 0:g[1])||void 0===a?void 0:a.startsWith(h[1])))return void(t._history.stack[t._history.offset]=i(i({},e),{timestamp:p}))}}t._history.stack.push(i(i({},e),{timestamp:p})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,r=t._history.stack[t._history.offset];r&&n&&(t._history.stack[t._history.offset]=i(i({},r),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.stack,r=e.offset,o=n[r-1];o&&(t._updateInput(o),t._history.offset=Math.max(r-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,r=e.offset,o=n[r+1];o&&(t._updateInput(o),t._history.offset=Math.min(r+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,r=n.tabSize,o=n.insertSpaces,i=n.ignoreTabKey,a=n.onKeyDown;if(!a||(a(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var l=e.currentTarget,s=l.value,c=l.selectionStart,u=l.selectionEnd,m=(o?" ":"\t").repeat(r);if(9===e.keyCode&&!i&&t.state.capture)if(e.preventDefault(),e.shiftKey){var f=(v=t._getLines(s,c)).length-1,h=t._getLines(s,u).length-1,g=s.split("\n").map((function(e,t){return t>=f&&t<=h&&e.startsWith(m)?e.substring(m.length):e})).join("\n");if(s!==g){var b=v[f];t._applyEdits({value:g,selectionStart:(null==b?void 0:b.startsWith(m))?c-m.length:c,selectionEnd:u-(s.length-g.length)})}}else if(c!==u){var v,y=(v=t._getLines(s,c)).length-1,k=t._getLines(s,u).length-1;b=v[y],t._applyEdits({value:s.split("\n").map((function(e,t){return t>=y&&t<=k?m+e:e})).join("\n"),selectionStart:b&&/\S/.test(b)?c+m.length:c,selectionEnd:u+m.length*(k-y+1)})}else{var w=c+m.length;t._applyEdits({value:s.substring(0,c)+m+s.substring(u),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var E=c!==u;s.substring(0,c).endsWith(m)&&!E&&(e.preventDefault(),w=c-m.length,t._applyEdits({value:s.substring(0,c-m.length)+s.substring(u),selectionStart:w,selectionEnd:w}))}else if(13===e.keyCode){if(c===u){var x=t._getLines(s,c).pop(),C=null==x?void 0:x.match(/^\s+/);if(null==C?void 0:C[0]){e.preventDefault();var S="\n"+C[0];w=c+S.length,t._applyEdits({value:s.substring(0,c)+S+s.substring(u),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var _=void 0;57===e.keyCode&&e.shiftKey?_=["(",")"]:219===e.keyCode?_=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?_=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(_=["`","`"]),c!==u&&_&&(e.preventDefault(),t._applyEdits({value:s.substring(0,c)+_[0]+s.substring(c,u)+_[1]+s.substring(u),selectionStart:c,selectionEnd:u+2}))}else!(p?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(p?e.metaKey&&90===e.keyCode&&e.shiftKey:d?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||p&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,r=n.value,o=n.selectionStart,i=n.selectionEnd;t._recordChange({value:r,selectionStart:o,selectionEnd:i},!0),t.props.onValueChange(r)},t._history={stack:[],offset:-1},t._input=null,t}return o(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.style,o=t.padding,a=t.highlight,l=t.textareaId,s=t.textareaClassName,d=t.autoFocus,p=t.disabled,h=t.form,b=t.maxLength,v=t.minLength,y=t.name,k=t.placeholder,w=t.readOnly,E=t.required,x=t.onClick,C=t.onFocus,S=t.onBlur,_=t.onKeyUp,O=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,t.preClassName),F=c(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),P={paddingTop:"object"==typeof o?o.top:o,paddingRight:"object"==typeof o?o.right:o,paddingBottom:"object"==typeof o?o.bottom:o,paddingLeft:"object"==typeof o?o.left:o},I=a(n);return u.createElement("div",i({},F,{style:i(i({},g.container),r)}),u.createElement("pre",i({className:O,"aria-hidden":"true",style:i(i(i({},g.editor),g.highlight),P)},"string"==typeof I?{dangerouslySetInnerHTML:{__html:I+"
"}}:{children:I})),u.createElement("textarea",{ref:function(t){return e._input=t},style:i(i(i({},g.editor),g.textarea),P),className:m+(s?" ".concat(s):""),id:l,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:x,onKeyUp:_,onFocus:C,onBlur:S,disabled:p,form:h,maxLength:b,minLength:v,name:y,placeholder:k,readOnly:w,required:E,autoFocus:d,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),u.createElement("style",{dangerouslySetInnerHTML:{__html:f}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(u.Component);t.default=h;var g={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},476:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=r(n(848)),i=n(678);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)})),n):n}},678:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,s):e.replace(i,s)).replace(r,l))}},848:(e,t,n)=>{var r=n(139);function o(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var i,a,l=r(e),s="function"==typeof t,c=0,u=l.length;c{"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(196);const t=window.wp.hooks,r=window.wp.compose,o=e=>e?e?.toLowerCase()?.replace(/(?<= )[^\s]|^./g,(e=>e?.toUpperCase())):"",i=e=>{var t;return e&&null!==(t=e?.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.join("-")?.toLowerCase())&&void 0!==t?t:""},a=(e="",t,n)=>{if("string"==typeof t)return e?.split(t)?.join(n);for(const r of t)e=a(e,r,n);return e},l=e=>o(a((e=>{const t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)})(e),["-","_"]," "));var s,c;const u=null!==(s=window?.blockify?.blockSupports)&&void 0!==s?s:{},d=e=>{var t;return null!==(t=u?.[e]?.blockifyPosition)&&void 0!==t&&t},p=null!==(c=window?.blockify?.extensionOptions)&&void 0!==c?c:{};(0,t.addFilter)("blocks.registerBlockType","blockify/add-position-attributes",((e,t)=>{if(d(t)){var n;const t={};Object.keys(p).forEach((e=>{t[e]={type:"object"}})),e.attributes={...e.attributes,style:{...t,...null!==(n=e?.attributes?.style)&&void 0!==n?n:{}}}}return e}),0);const m=e=>{var t;const n=[],r=null!==(t=e?.style)&&void 0!==t?t:{};return Object.keys(p).forEach((e=>{var t;const o=i(e);var a,l,s,c,u,d;p?.[e]?.options?(null!==(a=r?.[e]?.all)&&void 0!==a&&a&&n.push(`has-${o}-${i(null!==(c=r?.[e]?.all)&&void 0!==c?c:"")}`),null!==(l=r?.[e]?.mobile)&&void 0!==l&&l&&n.push(`has-${o}-${i(null!==(u=r?.[e]?.mobile)&&void 0!==u?u:"")}-mobile`),null!==(s=r?.[e]?.desktop)&&void 0!==s&&s&&n.push(`has-${o}-${i(null!==(d=r?.[e]?.desktop)&&void 0!==d?d:"")}-desktop`)):null!==(t=r?.[e])&&void 0!==t&&t&&n.push(`has-${o}`)})),n},f=e=>{var t;const n={},r=null!==(t=e?.style)&&void 0!==t?t:{};return Object.keys(p).forEach((e=>{var t,o,a;if(p?.[e]?.options)return;const l=i(e);null!==(t=r?.[e]?.all)&&void 0!==t&&t&&(n[`--${l}`]=r?.[e]?.all),null!==(o=r?.[e]?.mobile)&&void 0!==o&&o&&(n[`--${l}-mobile`]=r?.[e]?.mobile),null!==(a=r?.[e]?.desktop)&&void 0!==a&&a&&(n[`--${l}-desktop`]=r?.[e]?.desktop)})),n};(0,t.addFilter)("editor.BlockListBlock","blockify/with-position-style",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{name:o,attributes:i}=n;if(!d(o))return(0,e.createElement)(t,{...n});const a=m(i),l=f(i),s=null!==(r=n?.wrapperProps)&&void 0!==r?r:{};return n={...n,style:{...n?.style,...l}},s&&(s.style={...s?.style,...l}),a.forEach((e=>{n?.className?.includes(e)||(n.className=n?.className+" "+e)})),n.wrapperProps=s,(0,e.createElement)(t,{...n})}),"withPositionStyle")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/save-position-style",(e=>{const{name:t,attributes:n}=e;if(!u?.[t]?.blockifyPosition)return e;const r=m(n),o=f(n);return r.forEach((t=>{e?.className?.includes(t)||(e.className=e?.className+" "+t)})),e={...e,style:{...e?.style,...o}}}),11);const h=window.wp.domReady;var g=n.n(h);const b=window.wp.blocks;g()((()=>{var e,t,n;const r=null!==(e=window?.blockify?.blockStyles)&&void 0!==e?e:{unregister:{},register:{}},i=null!==(t=r?.unregister)&&void 0!==t?t:{},l=null!==(n=r?.register)&&void 0!==n?n:{};Object.keys(i).forEach((e=>{i[e].forEach((t=>{(0,b.unregisterBlockStyle)(e,t)}))})),Object.keys(l).forEach((e=>{l[e].forEach((t=>{let n="",r="";"string"==typeof t?(n=t,r=o(a(t,"-"," "))):(n=Object.keys(t)[0],r=Object.values(t)[0]),(0,b.registerBlockStyle)(e,{name:n,label:r})}))}))}));const v=e=>Object.keys(e).map((t=>`${t?.includes("-")?t:i(t)}:${e[t]};`)).join(" "),y=e=>{const t={};return e.split(";").map((e=>{const[n,r]=e.split(":");return n&&(t[n]=r),null})),t},k=e=>e.includes("var:")?(e=e.replace("var:","var(--wp--"),(e=a(e,"|","--"))+")"):e,w=(e="",t="")=>{if(!t)return e;const n=e.trim().split(" ");return t.trim().split(" ").forEach((e=>{n.includes(e)||n.push(e)})),n.join(" ")},E=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"},{value:"vh",label:"vh"},{value:"auto",label:"auto"}];var x;(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2000 2000"},(0,e.createElement)("path",{fill:"currentColor",d:"m1729.66 534.39-691.26-399.1a76.814 76.814 0 0 0-76.81 0l-691.26 399.1a76.818 76.818 0 0 0-38.4 66.52v798.19c0 27.44 14.64 52.8 38.4 66.52l691.26 399.1c11.88 6.86 25.14 10.29 38.4 10.29s26.52-3.43 38.4-10.29l691.26-399.1a76.818 76.818 0 0 0 38.4-66.52V600.9c.01-27.44-14.63-52.79-38.39-66.51zm-115.21 820.36-539.18 311.3V998.46c0-27.45-14.65-52.81-38.43-66.53l-574.18-331.2L1000 290.49l614.45 354.75v709.51z"}));const C=null!==(x=window?.blockify?.defaultIcon)&&void 0!==x?x:{set:"wordpress",name:"star-empty",string:' '},S=e=>{var t,n;const r={};let o="";const i=e?.className?.includes("is-style-icon");if(!(e?.iconSet&&e?.iconName||i))return r;e?.style?.color?.background&&(o=e.style.color.background),e?.backgroundColor&&(o="var(--wp--preset--color--"+e.backgroundColor+", currentColor)"),"start"===e?.iconPosition&&(r["--wp--custom--icon--order"]="-1");let a="";e?.style?.color?.gradient&&(a=e?.style?.color?.gradient),e?.gradient&&(a="var(--wp--preset--gradient--"+e.gradient+",currentColor)");let l="";if(e?.style?.color?.text&&(l=e?.style?.color?.text),e?.textColor&&(l="var(--wp--preset--color--"+e.textColor+",currentColor)"),""!==o&&(r["--wp--custom--icon--background"]=o),l?(r["--wp--custom--icon--color"]=l,a&&(r["--wp--custom--icon--background"]=a)):a&&(r["--wp--custom--icon--color"]=a),e?.style?.spacing?.padding){var s,c,u,d;const t=e.style.spacing.padding,n={top:null!==(s=t?.top)&&void 0!==s?s:"0",right:null!==(c=t?.right)&&void 0!==c?c:"0",bottom:null!==(u=t?.bottom)&&void 0!==u?u:"0",left:null!==(d=t?.left)&&void 0!==d?d:"0"};Object.keys(n).forEach((e=>{var t;const r=null!==(t=n?.[e])&&void 0!==t?t:"";r&&r?.includes("var:preset")&&(n[e]="var(--wp--preset--spacing--"+r.replace("var:preset|spacing|","")+")")})),r["--wp--custom--icon--padding"]=Object.values(n).join(" ")}if(e?.style?.spacing?.margin){var p,m,f,h;const t=e.style.spacing.margin,n={top:null!==(p=t?.top)&&void 0!==p?p:"",right:null!==(m=t?.right)&&void 0!==m?m:"",bottom:null!==(f=t?.bottom)&&void 0!==f?f:"",left:null!==(h=t?.left)&&void 0!==h?h:""};Object.keys(n).forEach((e=>{var t;const r=null!==(t=n?.[e])&&void 0!==t?t:"";r?.includes("var:preset")&&(n[e]="var(--wp--preset--spacing--"+r?.replace("var:preset|spacing|","")+")")})),r["--wp--custom--icon--margin"]=Object.values(n).join(" ")}let g="";var b,v;e?.borderColor&&(g="var(--wp--preset--color--"+e?.borderColor+")"),e?.style?.border?.width&&(r["--wp--custom--icon--border-width"]=e.style.border.width,r["--wp--custom--icon--border-style"]=null!==(b=e.style.border?.style)&&void 0!==b?b:"solid",r["--wp--custom--icon--border-color"]=null!==(v=e.style.border?.color)&&void 0!==v?v:g);let y=null!==(t=e?.iconSize)&&void 0!==t?t:"";if(""!==y){const e=["px","em","rem","vh","vw","%"].some((e=>y?.includes(e)));y=e?y:y+"px",r["--wp--custom--icon--size"]=y}const k=null!==(n=e?.iconSvgString)&&void 0!==n?n:"";return k&&(r["--wp--custom--icon--url"]="url('data:image/svg+xml;utf8,"+k+"')"),r};var _;const O=null!==(_=window?.blockify?.blockSupports)&&void 0!==_?_:{};(0,t.addFilter)("blocks.registerBlockType","blockify/block-supports",((e,t)=>(Object.keys(O).includes(t)&&(e.supports={...e.supports,...O[t]}),e)),0),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/alignment-class",((e,t,n)=>(Object.keys(O).includes(t.name)&&n?.align&&!e.className.includes(" align")&&(e.className+=" align"+n.align),e))),(0,t.addFilter)("editor.BlockListBlock","blockify/with-block-gap-css",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const{name:i}=n,a=(0,e.createElement)(t,{...n});if(!["core/page-list","core/button","core/post-author"].includes(i))return a;const l=null!==(r=n?.attributes?.style?.spacing?.blockGap)&&void 0!==r?r:"";if(!l)return a;const s={...(n={...n,style:{...null!==(o=n.style)&&void 0!==o?o:{},"--wp--style--block-gap":k(l)}}).wrapperProps,style:{...n.wrapperProps?.style,"--wp--style--block-gap":k(l)}};return(0,e.createElement)(t,{...n,wrapperProps:s})}),"withBlockGapCss")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/with-no-spacer-height",((e,t,n)=>{var r;return"core/spacer"!==t.name||(null!==(r=n?.height)&&void 0!==r?r:"")||(e.style={...e.style,height:""}),e}));const F=window.wp.apiFetch;var P=n.n(F);const I=window.wp.data,T={icons:{social:{},wordpress:{}}},A={setIcons:e=>({type:"SET_ICONS",icons:e}),getIcons:e=>({type:"GET_ICONS",path:e})},N={getIcons(e){const{icons:t}=e;return t}},M={GET_ICONS:e=>P()({path:e.path})},R={*getIcons(){const e=yield A.getIcons("/blockify/v1/icons/");return A.setIcons(e)}},B="blockify/icons";(0,I.select)("blockify/icons")?.getIcons()||(0,I.register)((0,I.createReduxStore)(B,{reducer:(e=T,t)=>"SET_ICONS"===t.type?{...e,icons:t.icons}:e,actions:A,selectors:N,controls:M,resolvers:R}));const D=window.wp.components,L=window.wp.i18n,V=window.wp.primitives,j=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.Path,{d:"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z"})),z=({children:t,style:n})=>(0,e.createElement)("p",{className:"blockify-control-label",style:{margin:"8px 0",...n}},t),H=({children:t,style:n})=>(0,e.createElement)("p",{style:{fontSize:"12px",color:"rgb(117, 117, 117)",...n}},t);var $=n(460),U=n.n($),G=n(325);n(433),n(980);const W=window.wp.element,q=({code:t,onChange:n,rows:r=32,language:i="html"})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(U(),{highlight:e=>{var t;return(0,G.highlight)(e,null!==(t=G.languages?.[i])&&void 0!==t?t:"html")},placeholder:(0,L.__)("Please enter ","blockify")+o(i)+(0,L.__)(" code here…","blockify"),value:a(t,'"',"'"),onValueChange:e=>{n(a(e,'"',"'"))},padding:10,style:{fontSize:12,fontFamily:"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",height:r.toString()+"em",maxHeight:"100%",borderRadius:"2px",color:"#c3cee3",background:"#263238"}})),Y=t=>{const[n,r]=(0,W.useState)(!1),{title:o,description:i}=t;return(0,e.createElement)("div",{className:"blockify-code-editor-modal",style:{width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"column",alignItems:"flex-start"}},(0,e.createElement)(z,null,null!=o?o:""),(0,e.createElement)(H,null,null!=i?i:""),(0,e.createElement)(D.Button,{isSecondary:!0,onClick:()=>r(!0)},o),n&&(0,e.createElement)(D.Modal,{title:null!=o?o:"",onRequestClose:()=>r(!1),style:{width:"80%"}},(0,e.createElement)(q,{...t})))},X=()=>(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 120 120",xmlSpace:"preserve"},(0,e.createElement)(V.Path,{d:"M15 0h35v120H15zm55 0h35v120H70z"})),K=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:"currentColor",width:"1em",height:"1em"},(0,e.createElement)("polygon",{points:"10,5 0,10 0,0"})),Z=window.wp.blockEditor,J=t=>{const{attributes:n,setAttributes:r,colorPalette:i}=t,{style:a}=n,{textShadow:l}=a;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,null,["x","y","blur"].map((t=>{var n;return(0,e.createElement)(D.FlexItem,{key:t},(0,e.createElement)(D.__experimentalNumberControl,{label:o(t),value:null!==(n=l?.[null!=t?t:""])&&void 0!==n?n:"",onChange:e=>{r({style:{...a,textShadow:{...l,[t]:e}}})}}))})))),(0,e.createElement)(Z.__experimentalPanelColorGradientSettings,{title:(0,L.__)("Color","blockify"),showTitle:!1,enableAlpha:!0,settings:[{enableAlpha:!0,colorValue:l?.color,label:(0,L.__)("Color","blockify"),onColorChange:e=>{for(const t of i)t.color===e&&(e="var(--wp--preset--color--"+t.slug+")");r({style:{...a,textShadow:{...l,color:e}}})}}]}))},Q=t=>{const{boxShadow:n,setBoxShadow:r,changeColor:i,tab:a}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,null,["x","y","blur","spread"].map((t=>(0,e.createElement)(D.FlexItem,{key:t},(0,e.createElement)(D.__experimentalNumberControl,{label:o(t),value:"default"===a?n[t]:n?.hover?.[t],onChange:e=>{e&&r({[t]:e})}})))),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(Z.__experimentalPanelColorGradientSettings,{title:(0,L.__)("Color","blockify"),showTitle:!1,enableAlpha:!0,settings:[{enableAlpha:!0,colorValue:"default"===a?n?.color:n?.[a]?.color,label:(0,L.__)("Color ","blockify")+("hover"===a?(0,L.__)(" Hover","blockify"):""),onColorChange:i}]})))),(0,e.createElement)("br",null),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,{style:{flex:1.5}},(0,e.createElement)(Z.__experimentalPanelColorGradientSettings,{title:(0,L.__)("Color","blockify"),showTitle:!1,enableAlpha:!0,settings:[{enableAlpha:!0,colorValue:"default"===a?n?.color:n?.[a]?.color,label:(0,L.__)("Color ","blockify")+("hover"===a?(0,L.__)(" Hover","blockify"):""),onColorChange:i}]})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Inset","blockify"),checked:"default"===a?n?.inset:n?.[a]?.inset,onChange:e=>{r({inset:e?"inset":""})}})))))},ee=(t,n)=>{var r,o;const{attributes:i,setAttributes:a}=t,{style:l}=i,s=null!==(r=l?.boxShadow)&&void 0!==r?r:{},c=(l?.textShadow,null!==(o=(0,I.select)("core/block-editor").getSettings().colors)&&void 0!==o?o:[]),u=e=>{let t;t="default"===n?{...e}:{hover:{...s?.hover,...e}},a({...i,style:{...l,boxShadow:{...s,...t}}})},d=(0,I.select)("core/block-editor")?.getSettings()?.__experimentalFeatures?.shadow?.presets?.theme;return(0,e.createElement)(e.Fragment,null,"text"===n&&(0,e.createElement)(J,{attributes:i,setAttributes:a,colorPalette:c}),"text"!==n&&(0,e.createElement)((()=>{const t="hover"===n?"-hover":"";return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ButtonGroup,{className:"blockify-shadow-presets"},d.map((r=>{const o="default"===n&&i.shadowPreset===r.slug||"hover"===n&&i.shadowPresetHover===r.slug;return(0,e.createElement)(D.Button,{key:r.slug+t,className:`has-${r.slug}-shadow`+t,isSmall:!0,variant:o?"primary":"secondary",onClick:()=>{a("hover"===n?{shadowPresetHover:"none"===r.slug?"":r.slug}:{shadowPreset:"none"===r.slug?"":r.slug})}},r.name)})))),(0,e.createElement)("br",null),(0,e.createElement)(D.PanelRow,null,"text"!==n&&(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Custom box shadow","blockify"),checked:i?.useCustomBoxShadow,onChange:e=>{a({useCustomBoxShadow:e})}})))}),null),i?.useCustomBoxShadow&&"text"!==n&&(0,e.createElement)(Q,{boxShadow:s,setBoxShadow:u,changeColor:e=>{for(const t of c)t.color===e&&(e="var(--wp--preset--color--"+t.slug+")");u({color:e})},tab:n}))},te=t=>{const{attributes:n,setAttributes:r}=t,[o,i]=(0,W.useState)("default");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,L.__)("Shadow","blockify"),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{r({shadowPreset:"",shadowPresetHover:"",useCustomBoxShadow:!1,style:{...n?.style,boxShadow:"",textShadow:""}})},icon:j,iconSize:16,"aria-label":(0,L.__)("Clear Shadow","blockify")}))),(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{isSmall:!0,variant:"default"===o?"primary":"secondary",onClick:()=>i("default")},(0,L.__)("Default","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,variant:"hover"===o?"primary":"secondary",onClick:()=>i("hover")},(0,L.__)("Hover","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,variant:"text"===o?"primary":"secondary",onClick:()=>i("text")},(0,L.__)("Text","blockify")))),"default"===o&&ee(t,o),"hover"===o&&ee(t,o),"text"===o&&ee(t,o))},ne=[{value:"ease",label:(0,L.__)("Ease","blockify")},{value:"ease-in",label:(0,L.__)("Ease In","blockify")},{value:"ease-out",label:(0,L.__)("Ease Out","blockify"),isDefault:!0},{value:"ease-in-out",label:(0,L.__)("Ease In Out","blockify")},{value:"linear",label:(0,L.__)("Linear","blockify")}],re=[{value:"",label:""}];window?.blockify?.animations?.forEach((e=>{re.push({value:e,label:o(e?.replace(/-/g," "))})}));const oe=[{value:"enter",label:(0,L.__)("Enter","blockify"),isDefault:!0},{value:"exit",label:(0,L.__)("Exit","blockify")},{value:"infinite",label:(0,L.__)("Infinite","blockify")},{value:"scroll",label:(0,L.__)("Scroll","blockify")}],ie=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyAnimation)&&void 0!==t&&t};(0,t.addFilter)("blocks.registerBlockType","blockify/add-animation-attributes",((e,t)=>(ie(t)&&(e.attributes={...e.attributes,animation:{type:"object"}}),e)),0);const ae=e=>{const t={};var n,r,o,i,a,l,s;return e?.event&&(t["--animation-event"]=null!==(n=e.event)&&void 0!==n?n:"enter","infinite"===e.event&&(t.animationIterationCount="infinite")),e?.name&&(t.animationName=null!==(r=e.name)&&void 0!==r?r:""),e?.duration&&(t.animationDuration=(null!==(o=e.duration)&&void 0!==o?o:"1")+"s"),e?.delay&&(t.animationDelay=(null!==(i=e.delay)&&void 0!==i?i:"0")+"s"),e?.timingFunction&&(t.animationTimingFunction=null!==(a=e?.timingFunction)&&void 0!==a?a:"ease-in-out"),t?.animationIterationCount||(t.animationIterationCount=null!==(l=e?.iterationCount)&&void 0!==l?l:"1"),e?.playState&&(t.animationPlayState=null!==(s=e?.playState)&&void 0!==s?s:"running"),t};(0,t.addFilter)("editor.BlockListBlock","blockify/with-animation-props",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o}=n,i=null!==(r=o?.animation)&&void 0!==r?r:{};if(!i||!Object?.keys(i)?.length)return(0,e.createElement)(t,{...n});const a=ae(i),l=n?.className?.trim()+" has-animation";n={...n,className:l};const s={...n?.wrapperProps,className:l,style:{...n?.wrapperProps?.style,...a}};return(0,e.createElement)(t,{...n,wrapperProps:s})}),"withAnimation")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-animation-styles",((e,t,n)=>{var r;const o=null!==(r=n?.animation)&&void 0!==r?r:{};if(!o||!Object?.keys(o)?.length)return e;e.className=e?.className?.trim()+" has-animation";const i=ae(o);return{...e,style:{...e?.style,...i}}}));const le=({attributes:t,setAttributes:n})=>{var r,o,i,a,l,s,c,u;const d=null!==(r=t?.animation)&&void 0!==r?r:{};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",null,(0,L.__)("Animation","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>n({animation:{}}),icon:j,iconSize:16,"aria-label":(0,L.__)("Clear Animation","blockify")}))),(0,e.createElement)(D.Flex,{justify:"flex-end"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.Button,{variant:"secondary",isSmall:!0,icon:"running"===d?.playState?X:K,iconSize:10,onClick:()=>{n({animation:{...d,playState:"running"===d?.playState?"paused":"running"}})}},"running"===d?.playState?(0,L.__)("Pause","blockify"):(0,L.__)("Run","blockify"))))),(0,e.createElement)(D.PanelRow,{className:"blockify-animate-controls"},(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Effect","blockify"),value:null!==(o=d?.name)&&void 0!==o?o:"",options:re,onChange:e=>{var t;n({animation:{...d,name:e,duration:null!==(t=d?.duration)&&void 0!==t?t:1}})}}))),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Easing","blockify"),value:null!==(i=d?.timingFunction)&&void 0!==i?i:"",options:ne,onChange:e=>{n({animation:{...d,timingFunction:e}})}}))),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Event","blockify"),value:null!==(a=d?.event)&&void 0!==a?a:"enter",options:oe,onChange:e=>{n({animation:{...d,event:e,iterationCount:"-1"===("infinite"===e?"-1":d?.iterationCount)?"1":d?.iterationCount}})}})))),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Duration","blockify"),value:null!==(l=d?.duration)&&void 0!==l?l:1,onChange:e=>{n({animation:{...d,duration:e}})},min:0,max:100,step:.1,shiftStep:10,allowReset:!0})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Delay","blockify"),value:null!==(s=d?.delay)&&void 0!==s?s:0,onChange:e=>{n({animation:{...d,delay:e}})},min:0,max:100,step:.1,shiftStep:10,allowReset:!0})),"infinite"!==d?.event&&(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Repeat","blockify"),value:"infinite"===d?.event?-1:null!==(c=d?.iterationCount)&&void 0!==c?c:1,onChange:e=>{n({animation:{...d,iterationCount:e}})},min:-1,max:100,step:1,allowReset:!0})),"scroll"===d?.event&&(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Offset","blockify"),value:parseInt(null!==(u=d?.offset)&&void 0!==u?u:"50"),onChange:e=>{n({animation:{...d,offset:e.toString()}})},min:-1,max:200,step:1,allowReset:!0})))))};(0,t.addFilter)("editor.BlockEdit","blockify/animation-controls",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o,isSelected:i,name:a}=n;return ie(a)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),i&&(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{initialOpen:null!==(r=o?.animation)&&void 0!==r&&r,title:(0,L.__)("Animation","blockify")},(0,e.createElement)(le,{...n})))):(0,e.createElement)(t,{...n})}),"withAnimation"));const se=["chevron","plus"];(0,t.addFilter)("blocks.registerBlockType","blockify/details-icon-attributes",((e,t)=>("core/details"===t&&(e={...e,attributes:{...e.attributes,expandIcon:{type:"string"},closeOthers:{type:"boolean"}}}),e))),(0,t.addFilter)("editor.BlockEdit","blockify/with-details-icon-controls",(0,r.createHigherOrderComponent)((t=>n=>{const{attributes:r,setAttributes:i,name:a}=n;return"core/details"!==a?(0,e.createElement)(t,{...n}):(r?.expandIcon||(r.expandIcon="chevron"),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{title:(0,L.__)("Expand Icon","blockify")},(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ButtonGroup,null,se.map((t=>(0,e.createElement)(D.Button,{key:t,variant:r.expandIcon===t?"primary":"secondary",onClick:()=>i({expandIcon:t})},o(t)))))))),(0,e.createElement)(t,{...n})))}),"withExpandIconControls")),(0,t.addFilter)("editor.BlockListBlock","blockify/with-details-icon",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{name:o,attributes:i}=n;if("core/details"!==o||!i?.expandIcon)return(0,e.createElement)(t,{...n});const a=null!==(r=n.wrapperProps)&&void 0!==r?r:{},l="is-style-"+i.expandIcon;return a.className=w(a?.className,l),(0,e.createElement)(t,{...n,wrapperProps:a})}),"withExpandIcon")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/details-icon-save",(e=>{const{name:t,attributes:n}=e;if("core/details"!==t||!n?.expandIcon)return e;const r="is-style-"+n.expandIcon;return e.className=w(e?.className,r),e}));const ce=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"})),ue=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"})),de={name:"group-grid",icon:(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"})),title:(0,L.__)("Grid","blockify"),isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"design",scope:["inserter","transform","block"],description:(0,L.__)("Arrange blocks in a grid.","blockify"),attributes:{layout:{type:"flex",orientation:"grid"},style:{display:{all:"grid"},gridTemplateColumns:{all:"repeat(3,1fr)"},gridTemplateRows:{all:"repeat(3,1fr)"}}},isActive:e=>"grid"===e?.layout?.orientation};(0,b.registerBlockVariation)("core/group",de);const pe=["grid","inline-grid"],me=(t,n,r,o)=>{var i,a,l,s;const{attributes:c,setAttributes:u}=t,{style:d}=c,p=d?.gridTemplateColumns?.[n],m=d?.gridTemplateRows?.[n],f=p?p?.replace(/repeat\((\d+),1fr\)/,"$1"):"",h=m?m?.replace(/repeat\((\d+),1fr\)/,"$1"):"";return(0,e.createElement)(e.Fragment,null,r&&(0,e.createElement)(D.PanelRow,{className:"blockify-grid-controls"},(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Columns","blockify"),value:f,onChange:e=>{u({style:{...d,gridTemplateColumns:{...d?.gridTemplateColumns,[n]:e?"repeat("+e+",1fr)":""}}})},min:1,max:12,step:1})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Rows","blockify"),value:h,onChange:e=>{u({style:{...d,gridTemplateRows:{...d?.gridTemplateRows,[n]:e?"repeat("+e+",1fr)":""}}})},min:1,max:12,step:1})))),o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,{className:"blockify-grid-controls"},(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Column Start","blockify"),value:null!==(i=d?.gridColumnStart?.[n])&&void 0!==i?i:"",onChange:e=>{u({style:{...d,gridColumnStart:{...d?.gridColumnStart,[n]:e}}})},min:1,max:12,step:1})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Column End","blockify"),value:null!==(a=d?.gridColumnEnd?.[n])&&void 0!==a?a:"",onChange:e=>{u({style:{...d,gridColumnEnd:{...d?.gridColumnEnd,[n]:e}}})},min:1,max:12,step:1})))),(0,e.createElement)(D.PanelRow,{className:"blockify-grid-controls"},(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Row Start","blockify"),value:null!==(l=d?.gridRowStart?.[n])&&void 0!==l?l:"",onChange:e=>{u({style:{...d,gridRowStart:{...d?.gridRowStart,[n]:e}}})},min:1,max:12,step:1})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Row End","blockify"),value:null!==(s=d?.gridRowEnd?.[n])&&void 0!==s?s:"",onChange:e=>{u({style:{...d,gridRowEnd:{...d?.gridRowEnd,[n]:e}}})},min:1,max:12,step:1}))))))},fe=t=>{var n,r;const{attributes:o,setAttributes:i,name:a,clientId:l}=t,[s,c]=(0,W.useState)("all"),{style:u}=o,d="core/group"===a&&(pe.includes(u?.display?.all)||pe.includes(u?.display?.mobile)||pe.includes(u?.display?.desktop)),p=null!==(n=(0,I.select)("core/block-editor")?.getBlockParents(l))&&void 0!==n?n:[],m=p[p.length-1],f=null!==(r=(0,I.select)("core/block-editor")?.getBlockAttributes(m))&&void 0!==r?r:null,h=pe.includes(f?.style?.display?.all)||pe.includes(f?.style?.display?.mobile)||pe.includes(f?.style?.display?.desktop);return d||h?(0,e.createElement)(D.PanelBody,{initialOpen:"grid"===o?.display?.all||"grid"===o?.display?.mobile||"grid"===o?.display?.desktop,title:(0,L.__)("Grid","blockify")},(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,L.__)("Grid","blockify"),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{i({style:{...o?.style,gridTemplateColumns:"",gridTemplateRows:"",gridColumnStart:"",gridColumnEnd:"",gridRowStart:"",gridRowEnd:""}})},icon:j,iconSize:16,"aria-label":(0,L.__)("Reset Grid","blockify")}))),(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{isSmall:!0,variant:"all"===s?"primary":"secondary",onClick:()=>c("all")},(0,L.__)("All","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,variant:"mobile"===s?"primary":"secondary",onClick:()=>c("mobile"),icon:ce}),(0,e.createElement)(D.Button,{isSmall:!0,variant:"desktop"===s?"primary":"secondary",onClick:()=>c("desktop"),icon:ue}))),"all"===s&&me(t,s,d,h),"mobile"===s&&me(t,s,d,h),"desktop"===s&&me(t,s,d,h)):(0,e.createElement)(e.Fragment,null)};var he;(0,t.addFilter)("editor.BlockEdit","blockify/grid-controls",(0,r.createHigherOrderComponent)((t=>n=>{const{isSelected:r,attributes:o,name:i}=n;if(!be(i))return(0,e.createElement)(t,{...n});const a="grid"===o?.layout?.orientation&&!o?.layout?.verticalAlignment;return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)((()=>(0,e.createElement)("style",null,".has-display-grid{align-items:normal !important}")),null),(0,e.createElement)(t,{...n}),r&&(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(fe,{...n})))}),"withDisplay"));const ge=null!==(he=window?.blockify?.blockSupports)&&void 0!==he?he:{},be=e=>{var t;return null!==(t=ge?.[e]?.blockifyPosition)&&void 0!==t&&t},ve=t=>{var n,r,o;const{attributes:i,setAttributes:a,screen:l}=t,{style:s}=i;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,{className:"blockify-display-controls"},(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Display","blockify"),value:null!==(n=s?.display?.[l])&&void 0!==n?n:"",options:null!==(r=window?.blockify?.extensionOptions?.display?.options)&&void 0!==r?r:[],onChange:e=>{a({style:{...s,display:{...s?.display,[l]:e}}}),pe.includes(e)?a({layout:{...i?.layout,type:"flex",flexWrap:"nowrap",orientation:"grid"}}):a({layout:{...i?.layout,orientation:"horizontal"}})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Order","blockify"),value:null!==(o=s?.order?.[l])&&void 0!==o?o:"",onChange:e=>{a({style:{...s,order:{...s?.order,[l]:e}}})},min:-10,max:10,step:1,allowReset:!0}))),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Width","blockify"),value:s?.width?.[l]?.includes("auto")?"":s?.width?.[l],units:E,onChange:e=>{a({style:{...s,width:{...s?.width,[l]:e?.includes("auto")?"auto":e}}})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Min Width","blockify"),value:s?.minWidth?.[l],onChange:e=>{a({style:{...s,minWidth:{...s?.minWidth,[l]:e}}})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Max Width","blockify"),value:s?.maxWidth?.[l],onChange:e=>{a({style:{...s,maxWidth:{...s?.maxWidth,[l]:e}}})}})))))},ye=t=>{const{attributes:n,setAttributes:r}=t,[o,i]=(0,W.useState)("all");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,L.__)("Display","blockify"),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{r({style:{...n?.style,display:void 0,order:void 0,width:void 0,maxWidth:void 0}})},icon:j,iconSize:16,"aria-label":(0,L.__)("Reset Display","blockify")}))),(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{isSmall:!0,variant:"all"===o?"primary":"secondary",onClick:()=>i("all")},(0,L.__)("All","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,variant:"mobile"===o?"primary":"secondary",onClick:()=>i("mobile"),icon:ce}),(0,e.createElement)(D.Button,{isSmall:!0,variant:"desktop"===o?"primary":"secondary",onClick:()=>i("desktop"),icon:ue}))),"all"===o&&(0,e.createElement)(ve,{...t,screen:o}),"mobile"===o&&(0,e.createElement)(ve,{...t,screen:o}),"desktop"===o&&(0,e.createElement)(ve,{...t,screen:o}))};var ke;(0,t.addFilter)("editor.BlockEdit","blockify/display-controls",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const{attributes:i,isSelected:a,name:l}=n;return be(l)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),a&&(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{initialOpen:null!==(r=(null!==(o=i?.style?.display?.all?.length)&&void 0!==o?o:{})>0)&&void 0!==r&&r,title:(0,L.__)("Display","blockify")},(0,e.createElement)(ye,{...n})))):(0,e.createElement)(t,{...n})}),"withDisplay")),(0,t.addFilter)("blocks.registerBlockType","blockify/content-limit-attributes",((e,t)=>("core/post-excerpt"===t&&(e={...e,attributes:{...e.attributes,defaultExcerpt:{type:"string"},hideReadMore:{type:"boolean"}}}),"core/post-content"===t&&(e={...e,attributes:{...e.attributes,contentLimit:{type:"number"}}}),e))),(0,t.addFilter)("editor.BlockEdit","blockify/with-content-limit-controls",(0,r.createHigherOrderComponent)((t=>n=>{const{attributes:r,setAttributes:o,name:i}=n;return"core/post-excerpt"!==i&&"core/post-content"!==i?(0,e.createElement)(t,{...n}):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{title:(0,L.__)("Content","blockify")},"core/post-excerpt"===i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.TextareaControl,{label:(0,L.__)("Default Content","blockify"),value:r.defaultExcerpt,onChange:e=>{o({defaultExcerpt:e})}})),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Hide Read More Link","blockify"),checked:r.hideReadMore,onChange:e=>{o({hideReadMore:e})}}))),"core/post-content"===i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Content Limit","blockify"),help:(0,L.__)("Limit content to specific number of words.","blockify"),value:r?.contentLimit,onChange:e=>{o({contentLimit:e})}}))))),(0,e.createElement)(t,{...n}))}),"withContentLimitControls")),(0,t.addFilter)("editor.BlockListBlock","blockify/with-content-limit",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const{name:i,attributes:a}=n;if("core/post-excerpt"!==i)return(0,e.createElement)(t,{...n});if(!a?.hideReadMore)return(0,e.createElement)(t,{...n});const l=null!==(r=n.wrapperProps)&&void 0!==r?r:{},s="hide-read-more";return l.className=w(l?.className,s),(0,e.createElement)(t,{...n,className:(null!==(o=n?.className)&&void 0!==o?o:"")+" "+s,wrapperProps:l})}),"withContentLimit")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/content-limit-save",(e=>{const{name:t,attributes:n}=e;if("core/post-excerpt"===t&&n?.hideReadMore){const t="hide-read-more";e.className=a(e?.className,t,"")+" "+t}return e}));const we=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyFilter)&&void 0!==t&&t},Ee=null!==(ke=window?.blockify?.filterOptions)&&void 0!==ke?ke:{};(0,t.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>{var n;return we(t)?(e.attributes={...e.attributes,style:{...null!==(n=e?.attributes?.style)&&void 0!==n?n:{},filter:{type:"string"}}},e):e}));const xe=e=>{let t="";return Ee?.blur?(Object.keys(Ee).forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&void 0!==e[n]&&(t+=" "+i(n)+"("+e[n]+Ee?.[n]?.unit+")")})),t?{[e?.backdrop?"backdropFilter":"filter"]:t.trim()}:{}):{}};(0,t.addFilter)("editor.BlockListBlock","blockify/with-css-filter",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const i=null!==(r=n?.attributes?.style?.filter)&&void 0!==r?r:{},a=(0,e.createElement)(t,{...n});if(0===Object.getOwnPropertyNames(i).length)return a;const l=xe(i);if(!Object.keys(l).length)return a;const s={...(n={...n,style:{...null!==(o=n?.style)&&void 0!==o?o:{},...l}}).wrapperProps,style:{...n.wrapperProps?.style,...l}};return(0,e.createElement)(t,{...n,wrapperProps:s})}),"withCssFilter")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-filter-styles",((e,t,n)=>{var r;const o=null!==(r=n?.style?.filter)&&void 0!==r?r:{};if(0===Object.getOwnPropertyNames(o).length)return e;const i=xe(o);return Object.keys(i).length?{...e,style:{...e?.style,...i}}:e}));const Ce=t=>{const{attributes:n,setAttributes:r}=t,{style:i}=n;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,L.__)("Filter","blockify"),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{r({style:{...n?.style,filter:{}}})},icon:j,iconSize:16,"aria-label":(0,L.__)("Clear Filters","blockify")}))),(0,e.createElement)(D.PanelRow,{className:"blockify-filter-settings"},Object.keys(Ee).map((t=>{var n,a;return(0,e.createElement)(D.__experimentalNumberControl,{key:t,label:"hueRotate"===t?(0,L.__)("Hue Rotate","blockify"):o(t),value:i?.filter?.[t],onChange:e=>{var n;r({style:{...i,filter:{...null!==(n=i?.filter)&&void 0!==n?n:{},[t]:e}}})},min:null!==(n=Ee?.[t]?.min)&&void 0!==n?n:0,max:Ee?.[t]?.max,step:null!==(a=Ee?.[t]?.step)&&void 0!==a?a:1,allowReset:!0})}))),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Use as backdrop filter","blockify"),checked:i?.filter?.backdrop,onChange:e=>{r({style:{...i,filter:{...i?.filter,backdrop:e}}})}})))};(0,t.addFilter)("editor.BlockEdit","blockify/filter-controls",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o,isSelected:i,name:a}=n;return we(a)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),i&&(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{initialOpen:null!==(r=o?.filter)&&void 0!==r&&r,title:(0,L.__)("Filter","blockify")},(0,e.createElement)(Ce,{...n})))):(0,e.createElement)(t,{...n})}),"withFilter"));const Se=e=>["core/image","core/post-featured-image",["blockify/image-compare"]].includes(e);(0,t.addFilter)("blocks.registerBlockType","blockify/image-attributes",((e,t)=>Se(t)?(e.attributes={...e.attributes,usePlaceholder:{type:"string"}},e?.attributes?.style||(e.attributes.style={type:"object"}),e):e));const _e=(t,n)=>{var r;const{attributes:o,setAttributes:i}=t,{style:a}=o,[l,s]=(0,W.useState)(null!==(r=a?.height?.[n])&&void 0!==r?r:"");return(0,e.createElement)(D.PanelRow,{className:"blockify-image-controls blockify-display-controls"},(c=t?.name,["core/image","core/post-featured-image","blockify/image-compare"].includes(c)&&(0,e.createElement)((()=>{var t,r,o,c,u,d;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Aspect Ratio","blockify"),value:null!==(t=a?.aspectRatio?.[n])&&void 0!==t?t:"",options:null!==(r=window?.blockify?.imageOptions?.aspectRatio?.options)&&void 0!==r?r:[],onChange:e=>{i({style:{...a,aspectRatio:{...a?.aspectRatio,[n]:e}}})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Height","blockify"),value:l?.[n]?.includes("auto")?"":l[n],onChange:e=>{s({...l,[n]:e?.includes("auto")?"":e}),i({style:{...a,height:{...a?.height,[n]:e?.includes("auto")?"auto":e}}})},min:0,step:1,units:E,allowReset:!0}))),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Object Fit","blockify"),value:null!==(o=a?.objectFit?.[n])&&void 0!==o?o:"",placeholder:(0,L.__)("","blockify"),options:null!==(c=window?.blockify?.imageOptions?.objectFit?.options)&&void 0!==c?c:[],onChange:e=>{i({style:{...a,objectFit:{...a?.objectFit,[n]:e}}})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Object Position","blockify"),value:null!==(u=a?.objectPosition?.[n])&&void 0!==u?u:"",placeholder:(0,L.__)("","blockify"),options:null!==(d=window?.blockify?.imageOptions?.objectPosition?.options)&&void 0!==d?d:[],onChange:e=>{i({style:{...a,objectPosition:{...a?.objectPosition,[n]:e}}})}}))))}),null)),(0,e.createElement)(z,{style:{marginTop:"0"}},(0,L.__)("Placeholder Image","blockify")),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{isSmall:!0,variant:o?.usePlaceholder&&"default"!==o?.usePlaceholder?"secondary":"primary",onClick:()=>{i({usePlaceholder:"default"})}},(0,L.__)("Default","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,variant:"none"===o?.usePlaceholder?"primary":"secondary",onClick:()=>{i({usePlaceholder:"none"})}},(0,L.__)("None","blockify")))));var c},Oe=t=>{const{attributes:n,setAttributes:r,name:o}=t;if(!Se(o))return(0,e.createElement)(e.Fragment,null);const[i,a]=(0,W.useState)("all");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,L.__)("Image","blockify"),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{r({style:{...n?.style,objectFit:null,objectPosition:null,aspectRatio:null,height:null}})},icon:j,iconSize:16,"aria-label":(0,L.__)("Reset Image","blockify")}))),(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{isSmall:!0,variant:"all"===i?"primary":"secondary",onClick:()=>a("all")},(0,L.__)("All","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,variant:"mobile"===i?"primary":"secondary",onClick:()=>a("mobile"),icon:ce}),(0,e.createElement)(D.Button,{isSmall:!0,variant:"desktop"===i?"primary":"secondary",onClick:()=>a("desktop"),icon:ue}))),"all"===i&&_e(t,i),"mobile"===i&&_e(t,i),"desktop"===i&&_e(t,i))};(0,t.addFilter)("editor.BlockEdit","blockify/image-controls",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o,isSelected:i,name:a}=n;return Se(a)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),i&&(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{initialOpen:null!==(r=o?.image)&&void 0!==r&&r,title:(0,L.__)("Image","blockify")},(0,e.createElement)(Oe,{...n})))):(0,e.createElement)(t,{...n})}),"withImage")),(0,t.addFilter)("editor.BlockListBlock","blockify/image-attribute",(0,r.createHigherOrderComponent)((t=>n=>{var r,o,i,a,l,s,c,u,d,p,m,f,h,g,b,v,y;const{attributes:k,name:w}=n;if(!Se(w))return(0,e.createElement)(t,{...n});const E=null!==(r=n?.className?.split(" "))&&void 0!==r?r:[];E.push("is-placeholder"),E.push("has-placeholder-icon");const x=null!==(o=k?.style?.aspectRatio)&&void 0!==o?o:{},C=null!==(i=null!==(a=null!==(l=x?.all)&&void 0!==l?l:x?.desktop)&&void 0!==a?a:x?.mobile)&&void 0!==i?i:"";var S;C&&(E.forEach((e=>{e.includes("has-aspect-ratio-")&&E.splice(E.indexOf(e),1)})),E.push(`has-aspect-ratio-${C}`),n={...n,className:null!==(S=E?.join(" "))&&void 0!==S?S:""});const _=null!==(s=k?.style?.objectFit)&&void 0!==s?s:{},O=null!==(c=null!==(u=null!==(d=_?.all)&&void 0!==d?d:_?.desktop)&&void 0!==u?u:_?.mobile)&&void 0!==c?c:"";var F;O&&(E.forEach((e=>{e.includes("has-object-fit-")&&E.splice(E.indexOf(e),1)})),E.push(`has-object-fit-${O}`),n={...n,className:null!==(F=E?.join(" "))&&void 0!==F?F:""});const P=null!==(p=k?.style?.objectPosition)&&void 0!==p?p:{},I=null!==(m=null!==(f=null!==(h=P?.all)&&void 0!==h?h:P?.desktop)&&void 0!==f?f:P?.mobile)&&void 0!==m?m:"";var T;I&&(E.forEach((e=>{e.includes("has-object-position-")&&E.splice(E.indexOf(e),1)})),E.push(`has-object-position-${I}`),n={...n,className:null!==(T=E?.join(" "))&&void 0!==T?T:""});const A=null!==(g=k?.style?.height)&&void 0!==g?g:{},N=null!==(b=null!==(v=null!==(y=A?.all)&&void 0!==y?y:A?.desktop)&&void 0!==v?v:A?.mobile)&&void 0!==b?b:"";if(N){var M;const e=null!==(M=n?.style)&&void 0!==M?M:{};e.height=N,n={...n,style:e}}return(0,e.createElement)(t,{...n})}),"withImageAttribute"));const Fe=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyInlineCss)&&void 0!==t&&t};var Pe;(0,t.addFilter)("blocks.registerBlockType","blockify/add-inline-css-attribute",((e,t)=>Fe(t)?(e.attributes={...e.attributes,inlineCss:{type:"string"}},e):e),0),(0,t.addFilter)("editor.BlockEdit","blockify/with-inline-css-attribute",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o,setAttributes:i,name:a}=n;if(!Fe(a))return(0,e.createElement)(t,{...n});const l=(0,I.useSelect)((e=>{const t=e("core")?.getCurrentUser(),n=e("core")?.getUser(t?.id);return n?.roles}),[]);return l?.includes("administrator")?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(Z.InspectorAdvancedControls,null,(0,e.createElement)(Y,{code:null!==(r=o?.inlineCss)&&void 0!==r?r:"",language:"css",onChange:e=>{i({inlineCss:e})},title:(0,L.__)("Edit Inline CSS","blockify"),description:(0,L.__)("Add custom CSS to this block.","blockify")}))):(0,e.createElement)(t,{...n})}),"inlineCssAttribute"),99);const Ie=null!==(Pe=window?.blockify?.blockSupports)&&void 0!==Pe?Pe:{};(0,t.addFilter)("editor.BlockEdit","blockify/with-negative-margin",(0,r.createHigherOrderComponent)((t=>n=>{if(r=n?.name,null!==(o=Ie?.[r]?.blockifyNegativeMargin)&&void 0!==o&&o){const e=document.querySelector('.components-input-control__input[min="0"]');e&&e.setAttribute("min","-999")}var r,o;return(0,e.createElement)(t,{...n})}),"withMinHeightSettings"));const Te=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyOnclick)&&void 0!==t&&t};var Ae;(0,t.addFilter)("blocks.registerBlockType","blockify/add-onclick-attribute",((e,t)=>Te(t)?(e.attributes={...e.attributes,onclick:{type:"string"}},e):e),0),(0,t.addFilter)("editor.BlockEdit","blockify/with-onclick-attribute",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o,setAttributes:i,name:a}=n;if(!Te(a))return(0,e.createElement)(t,{...n});const l=(0,I.useSelect)((e=>{const t=e("core")?.getCurrentUser(),n=e("core")?.getUser(t?.id);return n?.roles}),[]);return l?.includes("administrator")?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(Z.InspectorAdvancedControls,null,(0,e.createElement)(Y,{code:null!==(r=o?.onclick)&&void 0!==r?r:"",language:"js",onChange:e=>{i({onclick:e})},title:(0,L.__)("Edit On-Click Event","blockify"),description:(0,L.__)("Add custom JavaScript to the onclick event for this block.","blockify")}))):(0,e.createElement)(t,{...n})}),"onclickAttribute"),99);const Ne=null!==(Ae=window?.blockify?.blockSupports)&&void 0!==Ae?Ae:{},Me=(t,n)=>{var r,o,i,a,l,s,c,u;const{attributes:d,setAttributes:p}=t,m=null!==(r=d?.style)&&void 0!==r?r:{},f=e=>{const t={};Object.keys(e).forEach((r=>{t[r]={...m?.[r],[n]:e[r]}})),p({style:{...m,...t}})};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Position","blockify"),value:null!==(o=m?.position?.[n])&&void 0!==o?o:"",options:window?.blockify?.extensionOptions?.position?.options,onChange:e=>{f({position:e})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:window?.blockify?.extensionOptions?.zIndex?.label,value:m?.zIndex?.[n],onChange:e=>{f({zIndex:e})},min:-100,max:100,step:1,allowReset:!0})))),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Overflow","blockify"),value:null!==(i=m?.overflow?.[n])&&void 0!==i?i:"",options:window?.blockify?.extensionOptions?.overflow?.options,onChange:e=>{f({overflow:e})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Pointer Events","blockify"),value:null!==(a=m?.pointerEvents?.[n])&&void 0!==a?a:"",options:window?.blockify?.extensionOptions?.pointerEvents?.options,onChange:e=>{f({pointerEvents:e})}})))),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.__experimentalBoxControl,{className:"blockify-box-control",label:(0,L.__)("Inset","blockify"),values:{top:null!==(l=m?.top?.[n])&&void 0!==l?l:"",right:null!==(s=m?.right?.[n])&&void 0!==s?s:"",bottom:null!==(c=m?.bottom?.[n])&&void 0!==c?c:"",left:null!==(u=m?.left?.[n])&&void 0!==u?u:""},onChange:e=>{var t,n,r,o;f({top:null!==(t=e?.top)&&void 0!==t?t:"",right:null!==(n=e?.right)&&void 0!==n?n:"",bottom:null!==(r=e?.bottom)&&void 0!==r?r:"",left:null!==(o=e?.left)&&void 0!==o?o:""})},inputProps:{min:-999}})))},Re=t=>{const{attributes:n,setAttributes:r}=t,[o,i]=(0,W.useState)("all");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",null,(0,L.__)("Position","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{r({style:{...n?.style,position:void 0,zIndex:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0,overflow:void 0}})},icon:j,iconSize:16,"aria-label":(0,L.__)("Reset Position","blockify")}))),(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{isSmall:!0,variant:"all"===o?"primary":"tertiary",onClick:()=>i("all")},(0,L.__)("All","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,variant:"mobile"===o?"primary":"tertiary",onClick:()=>i("mobile"),icon:ce}),(0,e.createElement)(D.Button,{isSmall:!0,variant:"desktop"===o?"primary":"tertiary",onClick:()=>i("desktop"),icon:ue}))),"all"===o&&Me(t,o),"mobile"===o&&Me(t,o),"desktop"===o&&Me(t,o))};(0,t.addFilter)("editor.BlockEdit","blockify/position-controls",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o,isSelected:i,name:a}=n;return(e=>{var t;return null!==(t=Ne?.[e]?.blockifyPosition)&&void 0!==t&&t})(a)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),i&&(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{initialOpen:null!==(r=o?.position)&&void 0!==r&&r,title:(0,L.__)("Position","blockify")},(0,e.createElement)(Re,{...n})))):(0,e.createElement)(t,{...n})}),"withPosition")),(0,t.addFilter)("editor.BlockListBlock","blockify/with-block-gap",(0,r.createHigherOrderComponent)((t=>n=>{var r;if("core/post-template"!==n?.name)return(0,e.createElement)(t,{...n});if(!n?.attributes?.style?.spacing?.blockGap)return(0,e.createElement)(t,{...n});const o=null!==(r=n.wrapperProps)&&void 0!==r?r:{};return o.style={...o.style,"--wp--style--block-gap":k(n.attributes.style.spacing.blockGap)},(0,e.createElement)(t,{...n,wrapperProps:o})}),"withBlockGap")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-block-gap",((e,t,n)=>("core/post-template"===t&&n?.style?.spacing?.blockGap&&(e={...e,style:{...e.style,"--wp--style--block-gap":k(n.style.spacing.blockGap)}}),e))),D.ColorPalette.Color;const Be=e=>{var t,n;const r=(null!==(t=(0,I.select)("core/block-editor")?.getSettings().colors)&&void 0!==t?t:[]).find((t=>t.slug===e));return null!==(n=r?.color)&&void 0!==n?n:""};(0,t.addFilter)("blocks.registerBlockType","blockify/search-input-colors",((e,t)=>("core/search"!==t||(e.attributes={...e.attributes,inputBackgroundColor:{type:"string"}}),e))),(0,t.addFilter)("editor.BlockEdit","blockify/search-input-colors",(0,r.createHigherOrderComponent)((t=>n=>{const r=(0,e.createElement)(t,{...n}),o=(0,Z.__experimentalUseMultipleOriginColorsAndGradients)();if("core/search"!==n.name)return r;const{attributes:i,setAttributes:a,clientId:l}=n,{inputBackgroundColor:s}=i,c=[{label:(0,L.__)("Input Background","blockify"),colorValue:"string"==typeof s&&s?.includes("-")?Be(s):s,onColorChange:e=>{const t=(e=>{var t,n;const r=(null!==(t=(0,I.select)("core/block-editor")?.getSettings().colors)&&void 0!==t?t:[]).find((t=>t.color===e));return null!==(n=r?.slug)&&void 0!==n?n:""})(e);a({inputBackgroundColor:t||e})}}];return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(Z.InspectorControls,{group:"color"},(0,e.createElement)(Z.__experimentalColorGradientSettingsDropdown,{settings:c,panelId:l,hasColorsOrGradients:!0,disableCustomColors:!1,__experimentalIsRenderedInSidebar:!0,...o})))}),"withSearchInputColors")),(0,t.addFilter)("editor.BlockListBlock","blockify/search-input-colors",(0,r.createHigherOrderComponent)((t=>n=>{const r=(0,e.createElement)(t,{...n});if("core/search"!==n.name)return r;const{attributes:o,wrapperProps:i={}}=n,{inputBackgroundColor:a,borderColor:l}=o;if(a){const e=a?.includes("-")?`var(--wp--preset--color--${a})`:a;i.style={...i.style,"--wp--custom--input--background":e}}if(l){const e=l?.includes("-")?`var(--wp--preset--color--${l})`:l;i.style={...i.style,"--wp--custom--input--border":`var(--wp--custom--border--width,1px) var(--wp--custom--border--style,solid) ${e}`}}return(0,e.createElement)(t,{...n,wrapperProps:i})}),"withSearchInputColors")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/search-input-colors",((e,t,n)=>{if("core/search"!==t.name)return e;const{inputBackgroundColor:r}=n;if(r){const t=r?.includes("-")?`var(--wp--preset--color--${r})`:r;e.style={...e.style,"--wp--custom--input--background":t}}return e}));const De=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyBoxShadow)&&void 0!==t&&t};(0,t.addFilter)("blocks.registerBlockType","blockify/add-box-shadow-attributes",((e,t)=>{var n;return De(t)&&(e.attributes={...e.attributes,shadowPreset:{type:"string"},shadowPresetHover:{type:"string"},useCustomBoxShadow:{type:"boolean"},style:{...null!==(n=e?.attributes?.style)&&void 0!==n?n:{},boxShadow:{type:"object"},textShadow:{type:"object"}}}),e}),0);const Le=e=>{var t,n;const r=null!==(t=e?.style?.boxShadow)&&void 0!==t?t:{},o=null!==(n=e?.style?.textShadow)&&void 0!==n?n:{},i={},a=((0,I.select)("core/block-editor").getSettings().colors,{inset:"",x:"px",y:"px",blur:"px",spread:"px",color:""}),l={x:"px",y:"px",blur:"px",color:""};return Object.keys(a).map((e=>((r?.[e]||"0"===r?.[e]?.toString())&&(i["--wp--custom--box-shadow--"+e]=r?.[e]+a?.[e]),(r?.hover?.[e]||"0"===r?.hover?.[e]?.toString())&&(i["--wp--custom--box-shadow--hover--"+e]=r?.hover?.[e]+a?.[e]),!0))),Object.keys(l).map((e=>{(o?.[e]||"0"===o?.[e]?.toString())&&(i["--wp--custom--text-shadow--"+e]=o?.[e]+l?.[e])})),i};(0,t.addFilter)("editor.BlockListBlock","blockify/edit-box-shadow-styles",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o,name:i}=n;if(!De(i))return(0,e.createElement)(t,{...n});const a=Le(o),l=o?.shadowPreset||o?.shadowPresetHover,s=Object.keys(null!==(r=o?.style?.textShadow)&&void 0!==r?r:{}).length>0;if(!l&&!Object.keys(a).length)return(0,e.createElement)(t,{...n});const c={...n.wrapperProps};let u=n.className;return u=w(u,c.className),u=w(u,"has-box-shadow"),l&&(u=w(u,"has-shadow").replace("has-box-shadow","")),s&&(u=w(u,"has-text-shadow")),o?.shadowPreset&&(u=w(u,`has-${o.shadowPreset}-shadow`)),o?.shadowPresetHover&&(u=w(u,`has-${o.shadowPresetHover}-shadow-hover`)),n={...n,className:w(n?.className,u),style:{...n.style,...a}},c.className=u,c.style={...c.style,...a},(0,e.createElement)(t,{...n,wrapperProps:c})}),"withBoxShadow")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/save-box-shadow-styles",((e,t,n)=>{var r;const{name:o}=t;if(!De(o))return e;const i=Le(n),a=n?.shadowPreset||n?.shadowPresetHover,l=Object.keys(null!==(r=n?.style?.textShadow)&&void 0!==r?r:{}).length>0;if(!a&&!Object.keys(i).length)return e;let s=w(e?.className,"has-box-shadow");return l&&(s=w(s,"has-text-shadow")),a&&(s=w(s,"has-shadow").replace("has-box-shadow","")),n?.shadowPreset&&(s=w(s,`has-${n.shadowPreset}-shadow`)),n?.shadowPresetHover&&(s=w(s,`has-${n.shadowPresetHover}-shadow-hover`)),{...e,style:{...e.style,...i},className:s}}));const Ve=t=>{var n;return(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{initialOpen:null!==(n=t?.attributes?.shadow)&&void 0!==n&&n,title:(0,L.__)("Shadow","blockify")},(0,e.createElement)(te,{...t})))};var je;(0,t.addFilter)("editor.BlockEdit","blockify/shadow-controls",(0,r.createHigherOrderComponent)((t=>n=>{const{isSelected:r,name:o}=n;return De(o)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),r&&(0,e.createElement)(Ve,{...n})):(0,e.createElement)(t,{...n})}),"withShadow"));const ze=null!==(je=window?.blockify?.blockSupports)&&void 0!==je?je:{},He=e=>{var t;return null!==(t=ze?.[e]?.blockifySize)&&void 0!==t&&t},$e=t=>{const{attributes:n,setAttributes:r}=t,{size:o}=n,i=[{key:"large",label:(0,L.__)("Large","blockify")},{key:"medium",label:(0,L.__)("Medium","blockify")},{key:"small",label:(0,L.__)("Small","blockify")}];return(0,e.createElement)(Z.BlockControls,null,(0,e.createElement)(D.ToolbarGroup,null,(0,e.createElement)(D.DropdownMenu,{icon:(0,e.createElement)("span",null,(0,L.__)("Size","blockify")),label:(0,L.__)("Switch Size","blockify")},(({onClose:t})=>(0,e.createElement)(D.MenuGroup,null,i.map((n=>(0,e.createElement)(D.MenuItem,{key:n.key,icon:o===n.key?"yes":"",onClick:()=>{if(o===n.key)return r({size:""}),void t();r({size:n.key}),t()}},n.label))))))))};(0,t.addFilter)("blocks.registerBlockType","blockify/add-size-attribute",(e=>(e?.attributes&&He(e?.name)&&(e.attributes={...e.attributes,size:{type:"string",default:"20px"}}),e))),(0,t.addFilter)("editor.BlockEdit","blockify/add-size-block-controls",(0,r.createHigherOrderComponent)((t=>n=>{const{name:r,isSelected:o}=n;return He(r)?(0,e.createElement)(W.Fragment,null,o&&(0,e.createElement)($e,{...n}),(0,e.createElement)(t,{...n})):(0,e.createElement)(t,{...n})}),"addSizeBlockControls")),(0,t.addFilter)("editor.BlockListBlock","blockify/with-size",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const{name:i,attributes:a}=n;if(!He(i))return(0,e.createElement)(t,{...n});if(!a?.size)return(0,e.createElement)(t,{...n});const l=null!==(r=n.wrapperProps)&&void 0!==r?r:{},s="is-style-"+a.size;return l.className=w(l?.className,s),(0,e.createElement)(t,{...n,className:(null!==(o=n?.className)&&void 0!==o?o:"")+" "+s,wrapperProps:l})}),"withSizeClass")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/size-save",(e=>{const{name:t,attributes:n}=e;if(He(t)&&n?.size){const t="is-style-"+n.size;e.className=a(e?.className,t,"")+" "+t}return e}));const Ue=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyTransform)&&void 0!==t&&t},Ge={rotate:"deg",rotateX:"deg",rotateY:"deg",scale:"",scaleX:"",scaleY:"",skew:"deg",skewX:"deg",skewY:"deg",translateX:"",translateY:"",translateZ:""};(0,t.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>{var n;return Ue(t)?(e.attributes={...e.attributes,style:{...null!==(n=e?.attributes?.style)&&void 0!==n?n:{},transform:{type:"string"},transformHover:{type:"string"}}},e):e}));const We=(e,t)=>{const n={};let r="",o="";return Object.keys(Ge).forEach((n=>{if(e?.[n]){const t=e[n];r+=` ${n}(${t}${Ge[n]})`}if(t?.[n]){const e=t[n];o+=` ${n}(${e}${Ge[n]})`}})),r&&(n["--transform"]=r.trim()),o&&(n["--transform-hover"]=o.trim()),null!=n?n:{}};(0,t.addFilter)("editor.BlockListBlock","blockify/with-css-transform",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const{attributes:i,name:a}=n,l=(0,e.createElement)(t,{...n});if(!Ue(a))return l;const{style:s}=i,c=null!==(r=s?.transform)&&void 0!==r?r:{},u=null!==(o=s?.transformHover)&&void 0!==o?o:{};if(!c&&!u)return l;const d=We(c,u);if(!Object.keys(d).length)return l;const p={...(n={...n,style:{...n?.style,...d},className:w(n?.className,"has-transform")}).wrapperProps,style:{...n.wrapperProps?.style,...d},className:w(n?.wrapperProps?.className,"has-transform")};return(0,e.createElement)(t,{...n,wrapperProps:p})}),"withCssTransform")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-css-transform-styles",((e,t,n)=>{var r,o;const{name:i}=t;if(!Ue(i))return e;const{style:a}=n,l=null!==(r=a?.transform)&&void 0!==r?r:{},s=null!==(o=a?.transformHover)&&void 0!==o?o:{};if(!l&&!s)return e;const c=We(l,s);return Object.keys(c).length?{...e,style:{...e?.style,...c},className:w(e?.className,"has-transform")}:e}));const qe=t=>{var n,r;const{attributes:o,setAttributes:i}=t,{style:a}=o,l=null!==(n=a?.transform)&&void 0!==n?n:{},s=null!==(r=a?.transformHover)&&void 0!==r?r:{},[c,u]=(0,W.useState)("default"),d="default"===c?l:s,p=e=>{const t="default"===c?"transform":"transformHover";i({style:{...a,[t]:{...d,...e}}})};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(z,null,(0,e.createElement)(e.Fragment,null,(0,L.__)("Transform","blockify"),(0,e.createElement)(D.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{i({style:{...o?.style,transform:"",transformHover:""}})},icon:j,iconSize:16,"aria-label":(0,L.__)("Clear Transforms","blockify")}))),(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{isSmall:!0,variant:"default"===c?"primary":"secondary",onClick:()=>u("default")},(0,L.__)("Default","blockify")),(0,e.createElement)(D.Button,{isSmall:!0,variant:"hover"===c?"primary":"secondary",onClick:()=>u("hover")},(0,L.__)("Hover","blockify")))),(0,e.createElement)("br",null),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Rotate","blockify"),value:d?.rotate,onChange:e=>{p({rotate:e})},min:-360,max:360,step:1})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Rotate X","blockify"),value:d?.rotateX,onChange:e=>{p({rotateX:e})},min:-360,max:360,step:1})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Rotate Y","blockify"),value:d?.rotateY,onChange:e=>{p({rotateY:e})},min:-360,max:360,step:1}))),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Scale","blockify"),value:d?.scale,onChange:e=>{p({scale:e})},min:0,max:10,step:.01})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Scale X","blockify"),value:d?.scaleX,onChange:e=>{p({scaleX:e})},min:0,max:10,step:.01})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Scale Y","blockify"),value:d?.scaleY,onChange:e=>{p({scaleY:e})},min:0,max:10,step:.01}))),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Skew","blockify"),value:d?.skew,onChange:e=>{p({skew:e})},min:-360,max:360,step:1})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Skew X","blockify"),value:d?.skewX,onChange:e=>{p({skewX:e})},min:-360,max:360,step:1})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Skew Y","blockify"),value:d?.skewY,onChange:e=>{p({skewY:e})},min:-360,max:360,step:1}))),(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Translate X","blockify"),value:d?.translateX,onChange:e=>{p({translateX:e})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Translate Y","blockify"),value:d?.translateY,onChange:e=>{p({translateY:e})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Translate Z","blockify"),value:d?.translateZ,onChange:e=>{p({translateZ:e})}}))),(0,e.createElement)("br",null))};(0,t.addFilter)("editor.BlockEdit","blockify/transform-controls",(0,r.createHigherOrderComponent)((t=>n=>{var r;const{attributes:o,isSelected:i,name:a}=n;return Ue(a)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),i&&(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{initialOpen:null!==(r=o?.transform)&&void 0!==r&&r,title:(0,L.__)("Transform","blockify")},(0,e.createElement)(qe,{...n})))):(0,e.createElement)(t,{...n})}),"withTransform"));const Ye=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));(0,b.registerBlockVariation)("core/list",{name:"accordion",title:(0,L.__)("Accordion","blockify"),description:(0,L.__)("Add a collapsible accordion list.","blockify"),category:window?.blockify?.isPlugin?"blockify":"text",scope:[],icon:Ye,attributes:{className:"is-style-accordion"},isDefault:!1,isActive:(e,t)=>e&&e?.className?.includes(t.className)});const Xe=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"})),Ke={content:(0,L.__)("Curved text. Curved text. Curved text.","blockify"),containerSize:"160",pathSize:"120"},Ze={name:"curved-text",title:(0,L.__)("Curved Text","blockify"),icon:Xe,isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"text",scope:["inserter"],description:(0,L.__)("Insert curved text around circular SVG path.","blockify"),attributes:{className:"is-style-curved-text"},isActive:e=>e?.className?.includes("is-style-curved-text")};g()((()=>{(0,b.registerBlockVariation)("core/paragraph",Ze)})),(0,t.addFilter)("blocks.registerBlockType","blockify/curved-text-attributes",((e,t)=>("core/paragraph"===t&&(e={...e,attributes:{...e?.attributes,curvedText:{type:"object"}}}),e)));const Je=(t={})=>{var n,r,o;const{curvedText:i=Ke}=t,a=null!==(n=i?.content)&&void 0!==n?n:Ke.content,l=null!==(r=i?.containerSize)&&void 0!==r?r:Ke.containerSize,s=null!==(o=i?.pathSize)&&void 0!==o?o:Ke.pathSize,c=parseInt(l)/2,u=parseInt(s)/2,d={viewBox:`0 0 ${l} ${l}`,xmlns:"http://www.w3.org/2000/svg",enableBackground:`new 0 0 ${l} ${l}`,xmlSpace:"preserve",width:l,height:l,contentEditable:!1,x:0,y:0},p=Date.now()+Math.random(),m={id:"circle-"+p,d:`M ${c}, ${c} m -${u}, 0 a ${u},${u} 0 0,1 ${s},0 a ${u},${u} 0 0,1 -${s},0`,fill:"transparent"};return(0,e.createElement)("svg",{...d},(0,e.createElement)("path",{...m}," "),(0,e.createElement)("text",{fill:"currentColor"},(0,e.createElement)("textPath",{xlinkHref:"#circle-"+p},a)))};(0,t.addFilter)("editor.BlockEdit","blockify/with-curved-text-css",(0,r.createHigherOrderComponent)((t=>n=>{var r,o,i;const{attributes:a,setAttributes:l}=n;if(!(e=>!(!e?.className||"string"!=typeof e?.className)&&e?.className?.includes("is-style-curved-text"))(a))return(0,e.createElement)(t,{...n});const s=document.getElementsByClassName("edit-site-visual-editor__editor-canvas")?.item(0),c=document.getElementsByName("editor-canvas")?.item(0);let u;if(u=s?s.contentDocument:c?c.contentDocument:document,!u)return(0,e.createElement)(t,{...n});const d=u?.getElementById("block-"+n?.clientId);d&&(d.innerHTML=(0,W.renderToString)(Je({...a,clientId:n.clientId})));const{curvedText:p=Ke}=a,m=t=>{var r;const o={...t,svgString:(0,W.renderToString)((0,e.createElement)(Je,{...a,...t,clientId:null!==(r=n.clientId)&&void 0!==r?r:"1"}))};l({curvedText:{...p,...o}})};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{className:"blockify-controls",title:(0,L.__)("Curved Text","blockify")},(0,e.createElement)(D.TextareaControl,{label:(0,L.__)("Content","blockify"),value:null!==(r=p?.content)&&void 0!==r?r:Ke.content,onChange:e=>{m({content:e})}}),(0,e.createElement)("p",null,(0,L.__)("Size","blockify")),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)("br",null),(0,e.createElement)(D.Flex,null,(0,e.createElement)(D.FlexItem,{style:{width:"50%"}},(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Container","blockify"),value:null!==(o=p?.containerSize)&&void 0!==o?o:Ke.containerSize,onChange:e=>{m({containerSize:e})}})),(0,e.createElement)(D.FlexBlock,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Path","blockify"),value:null!==(i=p?.pathSize)&&void 0!==i?i:Ke.pathSize,onChange:e=>{m({pathSize:e})}})))))))}),"withCurvedTextSettings"),1);const Qe=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"})),et={start:"0",end:"100",duration:"2",delay:"0",prefix:"",suffix:""},tt={name:"counter",title:(0,L.__)("Counter","blockify"),keywords:["counter","number","count","stats"],icon:Qe,isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"text",scope:["inserter"],description:(0,L.__)("Insert counter animation.","blockify"),attributes:{className:"is-style-counter"},isActive:e=>e&&e?.className?.includes("is-style-counter")};g()((()=>{(0,b.registerBlockVariation)("core/paragraph",tt)})),(0,t.addFilter)("editor.BlockEdit","blockify/with-counter-controls",(0,r.createHigherOrderComponent)((t=>n=>{const{attributes:r,setAttributes:o}=n,i=(0,e.createElement)(t,{...n});if(!r?.className?.includes("is-style-counter"))return i;const{style:a}=r;let l=et;return a?.counter?l=a.counter:o({style:{...a,counter:et}}),(0,W.useEffect)((()=>{if(!l?.prefix&&!l?.end&&!l?.suffix)return;let e=l?.end;"string"==typeof l?.prefix&&(e=l?.prefix+e),"string"==typeof l?.suffix&&(e+=l?.suffix),o({content:e})}),[l?.prefix,l?.end,l?.suffix,o]),(0,e.createElement)(e.Fragment,null,i,(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{title:(0,L.__)("Counter Settings","blockify"),initialOpen:!0,className:"blockify-counter-settings"},(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Start","blockify"),value:l?.start,onChange:e=>{o({style:{...a,counter:{...l,start:e}}})},step:1,shiftStep:10,isDragEnabled:!0,isShiftStepEnabled:!0})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("End","blockify"),value:l?.end,onChange:e=>{o({style:{...a,counter:{...l,end:e}}})},step:1,shiftStep:10,isDragEnabled:!0,isShiftStepEnabled:!0})))),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Duration (seconds)","blockify"),value:l?.duration,onChange:e=>{o({style:{...a,counter:{...l,duration:e}}})},step:.1,shiftStep:1,isDragEnabled:!0,isShiftStepEnabled:!0})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalNumberControl,{label:(0,L.__)("Delay (seconds)","blockify"),value:l?.delay,onChange:e=>{o({style:{...a,counter:{...l,delay:e}}})},step:.1,shiftStep:1,isDragEnabled:!0,isShiftStepEnabled:!0})))),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.TextControl,{label:(0,L.__)("Prefix","blockify"),value:l?.prefix,onChange:e=>{o({style:{...a,counter:{...l,prefix:e}}})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.TextControl,{label:(0,L.__)("Suffix","blockify"),value:l?.suffix,onChange:e=>{o({style:{...a,counter:{...l,suffix:e}}})}})))))))}),"withCounterControls"),9);const nt=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"}));var rt=n(488);rt.domToReact,rt.htmlToDOM,rt.attributesToProps,rt.Comment,rt.Element,rt.ProcessingInstruction,rt.Text;const ot=rt;function it(e){return it="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},it(e)}function at(e){var t=function(e,t){if("object"!==it(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===it(t)?t:String(t)}function lt(e,t,n){return(t=at(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function st(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 ct(e){for(var t=1;t0?vt(Ft,--_t):0,Ct--,10===Ot&&(Ct=1,xt--),Ot}function At(){return Ot=_t2||Bt(Ot)>3?"":" "}function zt(e,t){for(;--t&&At()&&!(Ot<48||Ot>102||Ot>57&&Ot<65||Ot>70&&Ot<97););return Rt(e,Mt()+(t<6&&32==Nt()&&32==At()))}function Ht(e){for(;At();)switch(Ot){case e:return _t;case 34:case 39:34!==e&&39!==e&&Ht(Ot);break;case 40:41===e&&Ht(e);break;case 92:At()}return _t}function $t(e,t){for(;At()&&e+Ot!==57&&(e+Ot!==84||47!==Nt()););return"/*"+Rt(t,_t-1)+"*"+mt(47===e?e:At())}function Ut(e){for(;!Bt(Nt());)At();return Rt(e,_t)}var Gt="-ms-",Wt="-moz-",qt="-webkit-",Yt="comm",Xt="rule",Kt="decl",Zt="@keyframes";function Jt(e,t){for(var n="",r=wt(e),o=0;o0&&kt(x)-d&&Et(m>32?on(x+";",r,n,d-1):on(gt(x," ","")+";",r,n,d-2),s);break;case 59:x+=";";default:if(Et(E=nn(x,t,n,c,u,o,l,y,k=[],w=[],d),i),123===v)if(0===u)tn(x,t,E,E,k,i,d,l,w);else switch(99===p&&110===vt(x,3)?100:p){case 100:case 108:case 109:case 115:tn(e,E,E,r&&Et(nn(e,E,E,0,0,o,l,y,o,k=[],d),w),o,w,d,l,r?k:w);break;default:tn(x,E,E,E,[""],w,0,l,w)}}c=u=m=0,h=b=1,y=x="",d=a;break;case 58:d=1+kt(x),m=f;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Tt())continue;switch(x+=mt(v),v*h){case 38:b=u>0?1:(x+="\f",-1);break;case 44:l[c++]=(kt(x)-1)*b,b=1;break;case 64:45===Nt()&&(x+=Vt(At())),p=Nt(),u=d=kt(y=x+=Ut(Mt())),v++;break;case 45:45===f&&2==kt(x)&&(h=0)}}return i}function nn(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,p=0===o?i:[""],m=wt(p),f=0,h=0,g=0;f0?p[b]+" "+v:gt(v,/&\f/g,p[b])))&&(s[g++]=y);return Pt(e,t,n,0===o?Xt:l,s,c,u)}function rn(e,t,n){return Pt(e,t,n,Yt,mt(Ot),yt(e,2,-2),0)}function on(e,t,n,r){return Pt(e,t,n,Kt,yt(e,0,r),yt(e,r+1,-1),r)}var an=function(e,t,n){for(var r=0,o=0;r=o,o=Nt(),38===r&&12===o&&(t[n]=1),!Bt(o);)At();return Rt(e,_t)},ln=new WeakMap,sn=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)||ln.get(n))&&!r){ln.set(e,!0);for(var o=[],i=function(e,t){return Lt(function(e,t){var n=-1,r=44;do{switch(Bt(r)){case 0:38===r&&12===Nt()&&(t[n]=1),e[n]+=an(_t-1,t,n);break;case 2:e[n]+=Vt(r);break;case 4:if(44===r){e[++n]=58===Nt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=mt(r)}}while(r=At());return e}(Dt(e),t))}(t,o),a=n.props,l=0,s=0;l6)switch(vt(e,t+1)){case 109:if(45!==vt(e,t+4))break;case 102:return gt(e,/(.+:)(.+)-([^]+)/,"$1"+qt+"$2-$3$1"+Wt+(108==vt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~bt(e,"stretch")?un(gt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==vt(e,t+1))break;case 6444:switch(vt(e,kt(e)-3-(~bt(e,"!important")&&10))){case 107:return gt(e,":",":"+qt)+e;case 101:return gt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qt+(45===vt(e,14)?"inline-":"")+"box$3$1"+qt+"$2$3$1"+Gt+"$2box$3")+e}break;case 5936:switch(vt(e,t+11)){case 114:return qt+e+Gt+gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qt+e+Gt+gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qt+e+Gt+gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qt+e+Gt+e+e}return e}var dn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Kt:e.return=un(e.value,e.length);break;case Zt:return Jt([It(e,{value:gt(e.value,"@","@"+qt)})],r);case Xt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Jt([It(e,{props:[gt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Jt([It(e,{props:[gt(t,/:(plac\w+)/,":"+qt+"input-$1")]}),It(e,{props:[gt(t,/:(plac\w+)/,":-moz-$1")]}),It(e,{props:[gt(t,/:(plac\w+)/,Gt+"input-$1")]})],r)}return""}))}}],pn=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,o,i=e.stylisPlugins||dn,a={},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=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)}(o)+s;return{name:c,styles:o,next:xn}},On=!!e.useInsertionEffect&&e.useInsertionEffect,Fn=On||function(e){return e()},Pn=(On||e.useLayoutEffect,{}.hasOwnProperty),In=e.createContext("undefined"!=typeof HTMLElement?pn({key:"css"}):null);In.Provider;var Tn=function(t){return(0,e.forwardRef)((function(n,r){var o=(0,e.useContext)(In);return t(n,o,r)}))},An=e.createContext({}),Nn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Mn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return mn(t,n,r),Fn((function(){return function(e,t,n){mn(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)}}(t,n,r)})),null},Rn=Tn((function(t,n,r){var o=t.css;"string"==typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var i=t[Nn],a=[o],l="";"string"==typeof t.className?l=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(n.registered,a,t.className):null!=t.className&&(l=t.className+" ");var s=Sn(a,void 0,e.useContext(An));l+=n.key+"-"+s.name;var c={};for(var u in t)Pn.call(t,u)&&"css"!==u&&u!==Nn&&(c[u]=t[u]);return c.ref=r,c.className=l,e.createElement(e.Fragment,null,e.createElement(Mn,{cache:n,serialized:s,isStringTag:"string"==typeof i}),e.createElement(i,c))})),Bn=Rn,Dn=(n(679),function(t,n){var r=arguments;if(null==n||!Pn.call(n,"css"))return e.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=Bn,i[1]=function(e,t){var n={};for(var r in t)Pn.call(t,r)&&(n[r]=t[r]);return n[Nn]=e,n}(t,n);for(var a=2;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const $n=window.ReactDOM,Un=Math.min,Gn=Math.max,Wn=Math.round,qn=Math.floor,Yn=e=>({x:e,y:e});function Xn(e){return Jn(e)?(e.nodeName||"").toLowerCase():"#document"}function Kn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Zn(e){var t;return null==(t=(Jn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Jn(e){return e instanceof Node||e instanceof Kn(e).Node}function Qn(e){return e instanceof Element||e instanceof Kn(e).Element}function er(e){return e instanceof HTMLElement||e instanceof Kn(e).HTMLElement}function tr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Kn(e).ShadowRoot)}function nr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=rr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function rr(e){return Kn(e).getComputedStyle(e)}function or(e){const t=function(e){if("html"===Xn(e))return e;const t=e.assignedSlot||e.parentNode||tr(e)&&e.host||Zn(e);return tr(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Xn(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:er(t)&&nr(t)?t:or(t)}function ir(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=or(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Kn(o);return i?t.concat(a,a.visualViewport||[],nr(o)?o:[],a.frameElement&&n?ir(a.frameElement):[]):t.concat(o,ir(o,[],n))}function ar(e){return Qn(e)?e:e.contextElement}function lr(e){const t=ar(e);if(!er(t))return Yn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=rr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=er(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Wn(n)!==i||Wn(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}(t);let a=(i?Wn(n.width):n.width)/r,l=(i?Wn(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const sr=Yn(0);function cr(e){const t=Kn(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:sr}function ur(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ar(e);let a=Yn(1);t&&(r?Qn(r)&&(a=lr(r)):a=lr(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Kn(e))&&t}(i,n,r)?cr(i):Yn(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Kn(i),t=r&&Qn(r)?Kn(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=lr(n),t=n.getBoundingClientRect(),r=rr(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=o,c+=i,n=Kn(n).frameElement}}return p={width:u,height:d,x:s,y:c},{...p,top:p.y,left:p.x,right:p.x+p.width,bottom:p.y+p.height};var p}const dr=e.useLayoutEffect;var pr=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],mr=function(){};function fr(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function hr(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o-1}function kr(e){return yr(e)?window.pageYOffset:e.scrollTop}function wr(e,t){yr(e)?window.scrollTo(0,t):e.scrollTop=t}function Er(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:mr,o=kr(e),i=t-o,a=0;!function t(){var l,s=i*((l=(l=a+=10)/n-1)*l*l+1)+o;wr(e,s),an.bottom?wr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o=f)return{placement:"bottom",maxHeight:t};if(C>=f&&!a)return i&&Er(s,S,O),{placement:"bottom",maxHeight:t};if(!a&&C>=r||a&&E>=r)return i&&Er(s,S,O),{placement:"bottom",maxHeight:a?E-y:C-y};if("auto"===o||a){var F=t,P=a?w:x;return P>=r&&(F=Math.min(P-y-l,t)),{placement:"top",maxHeight:F}}if("bottom"===o)return i&&wr(s,S),{placement:"bottom",maxHeight:t};break;case"top":if(w>=f)return{placement:"top",maxHeight:t};if(x>=f&&!a)return i&&Er(s,_,O),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&w>=r){var I=t;return(!a&&x>=r||a&&w>=r)&&(I=a?w-k:x-k),i&&Er(s,_,O),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:b});m(n.maxHeight),g(n.placement),null==c||c(n.placement)}}),[o,i,a,l,r,c,b]),n({ref:u,placerProps:ct(ct({},t),{},{placement:h||Br(i),maxHeight:p})})},Vr=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return ct({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},jr=Vr,zr=Vr,Hr=["size"],$r=["innerProps","isRtl","size"],Ur={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Gr=function(e){var t=e.size,n=Hn(e,Hr);return Dn("svg",ut({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ur},n))},Wr=function(e){return Dn(Gr,ut({size:20},e),Dn("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},qr=function(e){return Dn(Gr,ut({size:20},e),Dn("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Yr=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return ct({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Xr=Yr,Kr=Yr,Zr=function(){var e=Ln.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_"}}}(Nr||(Mr=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Rr||(Rr=Mr.slice(0)),Nr=Object.freeze(Object.defineProperties(Mr,{raw:{value:Object.freeze(Rr)}})))),Jr=function(e){var t=e.delay,n=e.offset;return Dn("span",{css:Ln({animation:"".concat(Zr," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Qr=["data"],eo=["innerRef","isDisabled","isHidden","inputClassName"],to={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},no={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ct({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},to)},ro=function(e){return ct({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},to)},oo=function(e){var t=e.children,n=e.innerProps;return Dn("div",n,t)},io={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Dn("div",ut({},vr(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Dn(Wr,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Dn("div",ut({ref:o},vr(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Dn("div",ut({},vr(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Dn(qr,null))},DownChevron:qr,CrossIcon:Wr,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,l=e.innerProps,s=e.label,c=e.theme,u=e.selectProps;return Dn("div",ut({},vr(e,"group",{group:!0}),l),Dn(i,ut({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),s),Dn("div",null,t))},GroupHeading:function(e){var t=br(e);t.data;var n=Hn(t,Qr);return Dn("div",ut({},vr(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Dn("div",ut({},vr(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Dn("span",ut({},t,vr(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=br(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,l=r.inputClassName,s=Hn(r,eo);return Dn("div",ut({},vr(e,"input",{"input-container":!0}),{"data-value":n||""}),Dn("input",ut({className:t({input:!0},l),ref:o,style:ro(a),disabled:i},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=Hn(e,$r);return Dn("div",ut({},vr(ct(ct({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Dn(Jr,{delay:0,offset:n}),Dn(Jr,{delay:160,offset:!0}),Dn(Jr,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Dn("div",ut({},vr(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Dn("div",ut({},vr(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,l=t.menuPosition,s=(0,e.useRef)(null),c=(0,e.useRef)(null),u=zn((0,e.useState)(Br(a)),2),d=u[0],p=u[1],m=(0,e.useMemo)((function(){return{setPortalPlacement:p}}),[]),f=zn((0,e.useState)(null),2),h=f[0],g=f[1],b=(0,e.useCallback)((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===l?0:window.pageYOffset,n=e[d]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||g({offset:n,rect:e})}}),[o,l,d,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);dr((function(){b()}),[b]);var v=(0,e.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),o&&s.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=ar(e),u=o||i?[...c?ir(c):[],...ir(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const o=Zn(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(l||t(),!d||!p)return;const m={rootMargin:-qn(u)+"px "+-qn(o.clientWidth-(c+d))+"px "+-qn(o.clientHeight-(u+p))+"px "+-qn(c)+"px",threshold:Gn(0,Un(1,s))||1};let f=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!f)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}f=!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 p,m=-1,f=null;a&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{f&&f.observe(t)}))),n()})),c&&!s&&f.observe(c),f.observe(t));let h=s?ur(e):null;return s&&function t(){const r=ur(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n(),h=r,p=requestAnimationFrame(t)}(),n(),()=>{u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),f&&f.disconnect(),f=null,s&&cancelAnimationFrame(p)}}(o,s.current,b,{elementResize:"ResizeObserver"in window}))}),[o,b]);dr((function(){v()}),[v]);var y=(0,e.useCallback)((function(e){s.current=e,v()}),[v]);if(!n&&"fixed"!==l||!h)return null;var k=Dn("div",ut({ref:y},vr(ct(ct({},t),{},{offset:h.offset,position:l,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),r);return Dn(Dr.Provider,{value:m},n?(0,$n.createPortal)(k,n):k)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Hn(e,Ar);return Dn("div",ut({},vr(ct(ct({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=Hn(e,Tr);return Dn("div",ut({},vr(ct(ct({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,l=e.selectProps,s=n.Container,c=n.Label,u=n.Remove;return Dn(s,{data:r,innerProps:ct(ct({},vr(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:l},Dn(c,{data:r,innerProps:ct({},vr(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),Dn(u,{data:r,innerProps:ct(ct({},vr(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},MultiValueContainer:oo,MultiValueLabel:oo,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Dn("div",ut({role:"button"},n),t||Dn(Wr,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Dn("div",ut({},vr(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Dn("div",ut({},vr(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Dn("div",ut({},vr(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Dn("div",ut({},vr(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Dn("div",ut({},vr(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},ao=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function lo(e,t){for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,l=e.isDisabled,s=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=l?" disabled":"",p="".concat(s?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},vo=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,l=t.selectValue,s=t.selectProps,c=t.id,u=t.isAppleDevice,d=s.ariaLiveMessages,p=s.getOptionLabel,m=s.inputValue,f=s.isMulti,h=s.isOptionDisabled,g=s.isSearchable,b=s.menuIsOpen,v=s.options,y=s.screenReaderStatus,k=s.tabSelectsValue,w=s.isLoading,E=s["aria-label"],x=s["aria-live"],C=(0,e.useMemo)((function(){return ct(ct({},bo),d||{})}),[d]),S=(0,e.useMemo)((function(){var e,t="";if(n&&C.onChange){var r=n.option,o=n.options,i=n.removedValue,a=n.removedValues,s=n.value,c=i||r||(e=s,Array.isArray(e)?null:e),u=c?p(c):"",d=o||a||void 0,m=d?d.map(p):[],f=ct({isDisabled:c&&h(c,l),label:u,labels:m},n);t=C.onChange(f)}return t}),[n,C,h,l,p]),_=(0,e.useMemo)((function(){var e="",t=r||o,n=!!(r&&l&&l.includes(r));if(t&&C.onFocus){var a={focused:t,label:p(t),isDisabled:h(t,l),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:l,isAppleDevice:u};e=C.onFocus(a)}return e}),[r,o,p,h,C,i,l,u]),O=(0,e.useMemo)((function(){var e="";if(b&&v.length&&!w&&C.onFilter){var t=y({count:i.length});e=C.onFilter({inputValue:m,resultsMessage:t})}return e}),[i,m,b,C,v,y,w]),F="initial-input-focus"===(null==n?void 0:n.action),P=(0,e.useMemo)((function(){var e="";if(C.guidance){var t=o?"value":b?"menu":"input";e=C.guidance({"aria-label":E,context:t,isDisabled:r&&h(r,l),isMulti:f,isSearchable:g,tabSelectsValue:k,isInitialFocus:F})}return e}),[E,r,o,f,h,g,b,C,l,k,F]),I=Dn(e.Fragment,null,Dn("span",{id:"aria-selection"},S),Dn("span",{id:"aria-focused"},_),Dn("span",{id:"aria-results"},O),Dn("span",{id:"aria-guidance"},P));return Dn(e.Fragment,null,Dn(go,{id:c},F&&I),Dn(go,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!F&&I))},yo=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ko=new RegExp("["+yo.map((function(e){return e.letters})).join("")+"]","g"),wo={},Eo=0;Eo1?t-1:0),r=1;r0,h=d-p-c,g=!1;h>t&&l.current&&(o&&o(e),l.current=!1),f&&s.current&&(a&&a(e),s.current=!1),f&&t>h?(r&&!l.current&&r(e),m.scrollTop=d,g=!0,l.current=!0):!f&&-t>c&&(i&&!s.current&&i(e),m.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[r,o,i,a]),p=(0,e.useCallback)((function(e){d(e,e.deltaY)}),[d]),m=(0,e.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),f=(0,e.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),h=(0,e.useCallback)((function(e){if(e){var t=!!Fr&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",m,t),e.addEventListener("touchmove",f,t)}}),[f,m,p]),g=(0,e.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",m,!1),e.removeEventListener("touchmove",f,!1))}),[f,m,p]);return(0,e.useEffect)((function(){if(n){var e=u.current;return h(e),function(){g(e)}}}),[n,h,g]),function(e){u.current=e}}({isEnabled:void 0===o||o,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,r=t.accountForScrollbars,o=void 0===r||r,i=(0,e.useRef)({}),a=(0,e.useRef)(null),l=(0,e.useCallback)((function(e){if(Do){var t=document.body,n=t&&t.style;if(o&&To.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&Lo<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+r||0;Object.keys(Ao).forEach((function(e){var t=Ao[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&Bo()&&(t.addEventListener("touchmove",No,Vo),e&&(e.addEventListener("touchstart",Ro,Vo),e.addEventListener("touchmove",Mo,Vo))),Lo+=1}}),[o]),s=(0,e.useCallback)((function(e){if(Do){var t=document.body,n=t&&t.style;Lo=Math.max(Lo-1,0),o&&Lo<1&&To.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Bo()&&(t.removeEventListener("touchmove",No,Vo),e&&(e.removeEventListener("touchstart",Ro,Vo),e.removeEventListener("touchmove",Mo,Vo)))}}),[o]);return(0,e.useEffect)((function(){if(n){var e=a.current;return l(e),function(){s(e)}}}),[n,l,s]),function(e){a.current=e}}({isEnabled:r});return Dn(e.Fragment,null,r&&Dn("div",{onClick:jo,css:zo}),n((function(e){i(e),a(e)})))}var $o={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Uo=function(e){var t=e.name,n=e.onFocus;return Dn("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:$o,value:"",onChange:function(){}})};function Go(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Wo(){return Go(/^Mac/i)}var qo={clearIndicator:Kr,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return ct({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Xr,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return ct({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return ct({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return ct(ct({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},no),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return ct({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:zr,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,l=o.colors;return ct((lt(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),lt(n,"position","absolute"),lt(n,"width","100%"),lt(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return ct({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return ct({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return ct({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return ct({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:jr,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,l=i.colors;return ct({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return ct({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return ct({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return ct({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Yo={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Xo={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Cr(),captureMenuScroll:!Cr(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=ct({ignoreCase:!0,ignoreAccents:!0,stringify:Fo,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,l=n.matchFrom,s=a?Oo(t):t,c=a?Oo(i(e)):i(e);return r&&(s=s.toLowerCase(),c=c.toLowerCase()),o&&(s=_o(s),c=So(c)),"start"===l?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ko(e,t,n,r){return{type:"option",data:t,isDisabled:oi(e,t,n),isSelected:ii(e,t,n),label:ni(e,t),value:ri(e,t),index:r}}function Zo(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Ko(e,n,t,r)})).filter((function(t){return ei(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Ko(e,n,t,r);return ei(e,i)?i:void 0})).filter(Pr)}function Jo(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,po(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Qo(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,po(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function ei(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!li(e)||!i)&&ai(e,{label:a,value:l,data:o},r)}var ti=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},ni=function(e,t){return e.getOptionLabel(t)},ri=function(e,t){return e.getOptionValue(t)};function oi(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ii(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ri(e,t);return n.some((function(t){return ri(e,t)===r}))}function ai(e,t,n){return!e.filterOption||e.filterOption(t,n)}var li=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},si=1,ci=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&so(e,t)}(a,t);var n,r,o,i=uo(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Wo()||Go(/^iPhone/i)||Go(/^iPad/i)||Wo()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,l=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:l}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,l=o&&t.isOptionSelected(e,a),s=t.isOptionDisabled(e,a);if(l){var c=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(po(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=Ir(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Ir(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=Ir(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return ti(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Qo(Zo(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return li(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,l=n.isClearable,s=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,m=t.state,f=m.focusedOption,h=m.focusedValue,g=m.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)t.removeValue(h);else{if(!o)return;r?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!f||p&&t.isOptionSelected(f,g))return;t.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(c){if(!f)return;if(t.isComposing)return;t.selectOption(f);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):l&&i&&t.clearValue();break;case" ":if(a)return;if(!c){t.openMenu("first");break}if(!f)return;t.selectOption(f);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++si),t.state.selectValue=gr(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),o=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[o],t.state.focusedOptionId=ti(n,r[o])}return t}return n=a,r=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&xr(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(xr(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var l=i.indexOf(r[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Yo):ct(ct({},Yo),this.props.theme):Yo}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,l=this.props,s=l.isMulti,c=l.isRtl,u=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:u,selectOption:i,selectProps:l,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return oi(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ii(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ai(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,o=t.inputId,i=t.inputValue,a=t.tabIndex,l=t.form,s=t.menuIsOpen,c=t.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,m=d.ariaSelection,f=this.commonProps,h=o||this.getElementId("input"),g=ct(ct(ct({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?e.createElement(u,ut({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:n,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:l,type:"text",value:i},g)):e.createElement(Io,ut({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:mr,onFocus:this.onInputFocus,disabled:n,tabIndex:a,inputMode:"none",form:l,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,o=n.MultiValueContainer,i=n.MultiValueLabel,a=n.MultiValueRemove,l=n.SingleValue,s=n.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,m=u.isMulti,f=u.inputValue,h=u.placeholder,g=this.state,b=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return f?null:e.createElement(s,ut({},c,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(m)return b.map((function(n,l){var s=n===v,u="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(r,ut({},c,{components:{Container:o,Label:i,Remove:a},isFocused:s,isDisabled:p,key:u,index:l,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(f)return null;var k=b[0];return e.createElement(l,ut({},c,{data:k,isDisabled:p}),this.formatOptionLabel(k,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!t||o||!this.hasValue()||i)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,ut({},n,{innerProps:l,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;return t&&i?e.createElement(t,ut({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return e.createElement(r,ut({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,ut({},n,{innerProps:i,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,o=n.GroupHeading,i=n.Menu,a=n.MenuList,l=n.MenuPortal,s=n.LoadingMessage,c=n.NoOptionsMessage,u=n.Option,d=this.commonProps,p=this.state.focusedOption,m=this.props,f=m.captureMenuScroll,h=m.inputValue,g=m.isLoading,b=m.loadingMessage,v=m.minMenuHeight,y=m.maxMenuHeight,k=m.menuIsOpen,w=m.menuPlacement,E=m.menuPosition,x=m.menuPortalTarget,C=m.menuShouldBlockScroll,S=m.menuShouldScrollIntoView,_=m.noOptionsMessage,O=m.onMenuScrollToTop,F=m.onMenuScrollToBottom;if(!k)return null;var P,I=function(n,r){var o=n.type,i=n.data,a=n.isDisabled,l=n.isSelected,s=n.label,c=n.value,m=p===i,f=a?void 0:function(){return t.onOptionHover(i)},h=a?void 0:function(){return t.selectOption(i)},g="".concat(t.getElementId("option"),"-").concat(r),b={id:g,onClick:h,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:l};return e.createElement(u,ut({},d,{innerProps:b,data:i,isDisabled:a,isSelected:l,key:g,label:s,type:o,value:c,isFocused:m,innerRef:m?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(n){if("group"===n.type){var i=n.data,a=n.options,l=n.index,s="".concat(t.getElementId("group"),"-").concat(l),c="".concat(s,"-heading");return e.createElement(r,ut({},d,{key:s,data:i,options:a,Heading:o,headingProps:{id:c,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return I(e,"".concat(l,"-").concat(e.index))})))}if("option"===n.type)return I(n,"".concat(n.index))}));else if(g){var T=b({inputValue:h});if(null===T)return null;P=e.createElement(s,d,T)}else{var A=_({inputValue:h});if(null===A)return null;P=e.createElement(c,d,A)}var N={minMenuHeight:v,maxMenuHeight:y,menuPlacement:w,menuPosition:E,menuShouldScrollIntoView:S},M=e.createElement(Lr,ut({},d,N),(function(n){var r=n.ref,o=n.placerProps,l=o.placement,s=o.maxHeight;return e.createElement(i,ut({},d,N,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:l}),e.createElement(Ho,{captureEnabled:f,onTopArrive:O,onBottomArrive:F,lockEnabled:C},(function(n){return e.createElement(a,ut({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:t.getElementId("listbox")},isLoading:g,maxHeight:s,focusedOption:p}),P)})))}));return x||"fixed"===E?e.createElement(l,ut({},d,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:E}),M):M}},{key:"renderFormField",value:function(){var t=this,n=this.props,r=n.delimiter,o=n.isDisabled,i=n.isMulti,a=n.name,l=n.required,s=this.state.selectValue;if(l&&!this.hasValue()&&!o)return e.createElement(Uo,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(i){if(r){var c=s.map((function(e){return t.getOptionValue(e)})).join(r);return e.createElement("input",{name:a,type:"hidden",value:c})}var u=s.length>0?s.map((function(n,r){return e.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:a,type:"hidden",value:""});return e.createElement("div",null,u)}var d=s[0]?this.getOptionValue(s[0]):"";return e.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,o=n.focusedOption,i=n.focusedValue,a=n.isFocused,l=n.selectValue,s=this.getFocusableOptions();return e.createElement(vo,ut({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:o,focusedValue:i,isFocused:a,selectValue:l,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,o=t.SelectContainer,i=t.ValueContainer,a=this.props,l=a.className,s=a.id,c=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return e.createElement(o,ut({},p,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),e.createElement(n,ut({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),e.createElement(i,ut({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,ut({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,l=t.prevWasFocused,s=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,m=e.isMulti,f=gr(u),h={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return Jo(Zo(e,t))}(e,f):[],b=d?Qo(Zo(e,f),"".concat(s,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r-1?n:t[0]}(t,g);h={selectValue:f,focusedOption:y,focusedOptionId:ti(b,y),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var k=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},w=i,E=a&&l;return a&&!E&&(w={value:Ir(m,f,f[0]||null),options:f,action:"initial-input-focus"},E=!l),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),ct(ct(ct({},h),k),{},{prevProps:e,ariaSelection:w,prevWasFocused:E})}}],r&&lo(n.prototype,r),o&&lo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}(e.Component);ci.defaultProps=Xo;var ui=(0,e.forwardRef)((function(t,n){var r=function(t){var n=t.defaultInputValue,r=void 0===n?"":n,o=t.defaultMenuIsOpen,i=void 0!==o&&o,a=t.defaultValue,l=void 0===a?null:a,s=t.inputValue,c=t.menuIsOpen,u=t.onChange,d=t.onInputChange,p=t.onMenuClose,m=t.onMenuOpen,f=t.value,h=Hn(t,ao),g=zn((0,e.useState)(void 0!==s?s:r),2),b=g[0],v=g[1],y=zn((0,e.useState)(void 0!==c?c:i),2),k=y[0],w=y[1],E=zn((0,e.useState)(void 0!==f?f:l),2),x=E[0],C=E[1],S=(0,e.useCallback)((function(e,t){"function"==typeof u&&u(e,t),C(e)}),[u]),_=(0,e.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),v(void 0!==n?n:e)}),[d]),O=(0,e.useCallback)((function(){"function"==typeof m&&m(),w(!0)}),[m]),F=(0,e.useCallback)((function(){"function"==typeof p&&p(),w(!1)}),[p]),P=void 0!==s?s:b,I=void 0!==c?c:k,T=void 0!==f?f:x;return ct(ct({},h),{},{inputValue:P,menuIsOpen:I,onChange:S,onInputChange:_,onMenuClose:F,onMenuOpen:O,value:T})}(t);return e.createElement(ci,ut({ref:n},r))})),di=ui;D.CustomSelectControl.Option;const{Option:pi}=io,mi=e=>["core/image","core/button","blockify/tab"].includes(e),fi={iconSet:{type:"string",default:C.set},iconName:{type:"string",default:C.name},iconColor:{type:"string"},iconGradient:{type:"string"},iconSize:{type:"string"},iconPosition:{type:"string"},iconSvgString:{type:"string",default:C.string}},hi={name:"icon",icon:nt,title:(0,L.__)("Icon","blockify"),isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"media",scope:["inserter"],description:(0,L.__)("Insert a customizable SVG icon.","blockify"),attributes:{className:"is-style-icon",iconSet:C.set,iconName:C.name,iconSvgString:C.string},isActive:e=>e&&e?.className?.includes("is-style-icon")};g()((()=>{(0,b.registerBlockVariation)("core/image",hi)})),(0,t.addFilter)("blocks.registerBlockType","blockify/add-icon-attributes",((e,t)=>{if(mi(t)){for(const[t,n]of Object.entries(fi))e.attributes[t]={type:n.type};"core/button"===t&&(delete fi?.iconSet?.default,delete fi?.iconName?.default),e.attributes={...e.attributes,...fi}}return e}),99);const gi=t=>{var n,r,o,i,a,s,c,u;const{attributes:d,setAttributes:p,isButton:m}=t,f=[{label:(0,L.__)("None","blockify"),value:""}],h=null!==(n=(0,I.useSelect)((e=>e(B)?.getIcons()),[]))&&void 0!==n?n:T,g={wordpress:[{value:fi?.iconName?.default,label:l(null!==(r=fi?.iconName?.default)&&void 0!==r?r:""),icon:ot(null!==(o=fi?.iconSvgString?.default)&&void 0!==o?o:"")}]};return Object.keys(h).forEach((e=>{var t;let n=e.split("-").join(" ");var r,o,i;n="wordpress"===n?"WordPress":n,f.push({label:n,value:e}),g[e]=[],Object.keys(h[e]).forEach((t=>{t!==d?.iconName&&g[e].push({icon:ot(h?.[e]?.[t]),value:t,label:l(null!=t?t:"")})})),h?.[e]?.[null!==(t=d?.iconName)&&void 0!==t?t:""]&&g[e].unshift({icon:ot(h?.[e]?.[null!==(r=d?.iconName)&&void 0!==r?r:""]),value:null!==(o=d?.iconName)&&void 0!==o?o:"",label:l(null!==(i=d?.iconName)&&void 0!==i?i:"")})})),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Select Icon Set","blockify"),value:null!==(i=d?.iconSet)&&void 0!==i?i:fi?.iconSet.default,options:f,onChange:e=>p({iconSet:e})}),(0,e.createElement)(z,{style:{marginTop:0}},(0,L.__)("Select Icon","blockify")),(0,e.createElement)(di,{isMulti:!1,isSearchable:!0,placeholder:(0,L.__)("Select icon","blockify-pro"),options:null!==(a=g?.[null!==(s=d?.iconSet)&&void 0!==s?s:""])&&void 0!==a?a:g?.wordpress,value:{value:d?.iconName,label:l(null!==(c=d?.iconName)&&void 0!==c?c:""),icon:null!==(u=d.iconSvgString)&&void 0!==u?u:""},onChange:e=>{var t,n,r;p({iconName:e?.value,iconSvgString:null!==(t=h?.[null!==(n=d?.iconSet)&&void 0!==n?n:""]?.[null!==(r=e?.value)&&void 0!==r?r:""])&&void 0!==t?t:""})},components:{Option:t=>{var n,r;return(0,e.createElement)(pi,{...t,key:t.data?.value,label:t.data?.label},null!==(n=t.data?.icon)&&void 0!==n?n:"",(0,e.createElement)("span",{className:"screen-reader-text"},null!==(r=t.data?.value)&&void 0!==r?r:""))}},isClearable:!0}),(0,e.createElement)("br",null),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,{align:"top",justify:"space-between",wrap:!1,style:{alignItems:"top",alignContent:"top"}},(0,e.createElement)(D.FlexItem,{style:{flexBasis:"100%"}},(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Icon Width","blockify"),value:d?.iconSize,onChange:e=>{p({iconSize:e})}})),m&&(0,e.createElement)((()=>{const t={height:"30px"};return(0,e.createElement)(D.FlexItem,{style:{flexBasis:"100%"}},(0,e.createElement)(z,{style:{margin:"0 0 5px"}},(0,L.__)("Icon Position","blockify")),(0,e.createElement)(D.ButtonGroup,null,(0,e.createElement)(D.Button,{variant:"start"===d?.iconPosition?"primary":"secondary",onClick:()=>{p({iconPosition:"start"})},style:t},(0,L.__)("Start","blockify")),(0,e.createElement)(D.Button,{variant:"end"===d?.iconPosition?"primary":"secondary",onClick:()=>{p({iconPosition:"end"})},style:t},(0,L.__)("End","blockify"))))}),null))))};(0,t.addFilter)("editor.BlockEdit","blockify/with-icon",(0,r.createHigherOrderComponent)((t=>n=>{const{name:r,attributes:o,isSelected:i}=n,{className:a}=o,l=["core/button","blockify/tab"].includes(r);return(a?.includes("is-style-icon")||l)&&mi(r)?(i&&(()=>{var e;if(null!==(e=window?.blockify?.isPlugin)&&void 0!==e&&e)return;const t=document.getElementsByClassName("block-editor-block-card__description").item(0);t&&(document.getElementsByClassName("blockify-pro-icon-link").item(0)||(t.innerHTML=t.innerHTML+(0,L.__)(" Get more icons with ","blockify")+'Blockify Pro ↗'))})(),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{title:(0,L.__)("Icon Settings","blockify"),initialOpen:!0,className:"blockify-icon-settings"},!window?.blockify?.isPlugin&&(0,e.createElement)("p",null,(0,L.__)("More icons available with Blockify Pro! ","blockify"),(0,e.createElement)("a",{href:"https://blockifywp.com/pro",target:"_blank",rel:"noreferrer"},(0,L.__)("Learn more ↗","blockify"))),(0,e.createElement)(gi,{...n,isButton:l}))))):(0,e.createElement)(t,{...n})}),"iconEdit"),0),(0,t.addFilter)("editor.BlockListBlock","blockify/edit-icon-styles",(0,r.createHigherOrderComponent)((t=>n=>{let{attributes:r,wrapperProps:o,name:i,clientId:a}=n;const l=["core/button"].includes(i);if(!r?.className&&!l)return(0,e.createElement)(t,{...n});if(!r?.className?.includes("is-style-icon")&&!l)return(0,e.createElement)(t,{...n});if(!mi(i))return(0,e.createElement)(t,{...n});o||(o={style:{}}),o.style={...o?.style,...S(r)};const s={};return r.iconSvgString&&(s["--wp--custom--icon--url"]="url('data:image/svg+xml;utf8,"+r.iconSvgString+"')"),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("style",null,"#block-"+a+"{"+v(s)+"}"),(0,e.createElement)(t,{...n,wrapperProps:o}))}),"withIcon")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/save-icon-styles",((e,t,n)=>{if(!n?.className)return e;const{name:r}=t,o="core/button"===r;return(n?.className?.includes("is-style-icon")||o)&&mi(r)?e={...e,style:{...e?.style,...S(n)}}:e}));const bi=(0,e.createElement)(V.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(V.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"})),vi={name:"svg",title:(0,L.__)("SVG","blockify"),icon:bi,isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"media",scope:[],description:(0,L.__)("Insert an inline SVG.","blockify"),attributes:{className:"is-style-svg"},isActive:e=>!!e?.className&&e?.className&&e?.className?.includes("is-style-svg")};g()((()=>{(0,b.registerBlockVariation)("core/image",vi)}));const yi=e=>"url('data:image/svg+xml;utf8,"+encodeURIComponent(e)+"')",ki=e=>"data:image/svg+xml;utf8,"+encodeURIComponent(e);(0,t.addFilter)("editor.BlockEdit","blockify/with-svg-controls",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const{attributes:i,setAttributes:a}=n;if(!i?.className?.includes("is-style-svg"))return(0,e.createElement)(t,{...n});const{style:l}=i,s=null!==(r=l?.svgString)&&void 0!==r?r:"",c=null!==(o=l?.maskSvg)&&void 0!==o&&o;i?.url||a({url:c?"#":ki(s)}),c&&"#"!==i?.url&&a({url:"#"}),c||i?.url?.includes("data:image/svg+xml;utf8,")||a({url:ki(s)});let u="var(--width,1em)",d="";var p;i?.width&&(u=i.width+"px"),i?.height&&(d=(null!==(p=i.height)&&void 0!==p?p:"")+"px"),d=""===d?u:d;const m={width:u,height:d,display:"inline-flex",background:"currentColor",overflow:"hidden","-webkit-mask-repeat":"no-repeat","-mask-repeat":"no-repeat","-webkit-mask-size":"100% 100%","-mask-size":"100% 100%","-webkit-mask-position":"center","-mask-position":"center bottom","-webkit-mask-image":yi(s),"-mask-image":yi(s)};let f="";return s&&(f=Object.entries(m).map((([e,t])=>`${e}:${t};`)).join("")),(0,e.createElement)(e.Fragment,null,c&&(0,e.createElement)("style",null,"#block-"+n?.clientId+">div:first-of-type{"+f+"}"),(0,e.createElement)(t,{...n}),(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{title:(0,L.__)("SVG Settings","blockify-pro"),className:(0,L.__)("blockify-svg-controls","blockify-pro")},(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.TextareaControl,{label:(0,L.__)("SVG String","blockify"),help:(0,L.__)("Paste your SVG string in the field above. It is recommended to format your SVG with an optimization tool ","blockify"),value:null!=s?s:"",rows:20,onChange:e=>{const t={style:{...l,svgString:e}};t.url=c?"#":ki(e),a(t)},style:{fontFamily:"var(--wp--preset--font-family--monospace, monospace)"}})),(0,e.createElement)(D.ExternalLink,{href:"https://jakearchibald.github.io/svgomg/",target:"_blank"},"https://jakearchibald.github.io/svgomg/"),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Mask with text color","blockify"),help:(0,L.__)("If enabled, the SVG will be masked with the text color. (Renders inline SVG on front end).","blockify"),checked:c,onChange:e=>{const t={style:{...l,maskSvg:e}};t.url=c?"#":ki(s),a(t)}})))))}),"withSvgControls"),9);const wi=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.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.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"})),Ei="60",xi="90",Ci={name:"marquee",icon:wi,title:(0,L.__)("Marquee","blockify"),isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"design",scope:["inserter"],description:(0,L.__)("Adds a horizontal infinite scrolling marquee banner.","blockify"),innerBlocks:[["core/group",{layout:{type:"flex",flexWrap:"nowrap",orientation:"horizontal",justifyContent:"center"}},[["core/paragraph"]]]],attributes:{marquee:{},align:"full",speedMobile:Ei,speedDesktop:xi,pauseOnHover:!0,reverse:!1,fadeEdges:!1,direction:"horizontal",spacing:{padding:{right:"0",left:"0"}},layout:{type:"flex",flexWrap:"nowrap",orientation:"marquee",justifyContent:"center"}},isActive:(e,t)=>e.layout?.orientation===t.layout?.orientation};(0,b.registerBlockVariation)("core/group",Ci);const Si=e=>{var t,n;return{"--marquee-speed-mobile":(null!==(t=e?.speedMobile)&&void 0!==t?t:Ei)+"s","--marquee-speed-desktop":(null!==(n=e?.speedDesktop)&&void 0!==n?n:xi)+"s","--marquee-direction":e?.reverse?"reverse":"forwards","--marquee-pause":e?.pauseOnHover?"paused":"running"}};(0,t.addFilter)("blocks.registerBlockType","blockify/marquee-attributes",((e,t)=>("core/group"===t&&(e={...e,attributes:{...e.attributes,speedMobile:{type:"string"},speedDesktop:{type:"string"},reverse:{type:"boolean"},pauseOnHover:{type:"boolean"},repeatItems:{type:"number"},fadeEdges:{type:"boolean"}}}),e)),0),(0,t.addFilter)("editor.BlockEdit","blockify/with-marquee-controls",(0,r.createHigherOrderComponent)((t=>n=>{const{attributes:r,setAttributes:o}=n;return"marquee"!==r?.layout?.orientation?(0,e.createElement)(t,{...n}):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Z.InspectorControls,null,(0,e.createElement)(D.PanelBody,{title:(0,L.__)("Marquee Settings","blockify-pro"),className:"blockify-width-control"},(0,e.createElement)((()=>{var t,n,i;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.__experimentalVStack,null,(0,e.createElement)(z,null,(0,L.__)("Scroll Speed (seconds)","blockify")),(0,e.createElement)(D.Flex,null,(0,e.createElement)(D.FlexItem,{style:{width:"50%"}},(0,e.createElement)(D.__experimentalNumberControl,{isShiftStepEnabled:!0,label:(0,L.__)("Mobile","blockify"),onChange:(e,t)=>{t?.event?.target?.validity?.valid&&o({speedMobile:e})},value:null!==(t=r?.speedMobile)&&void 0!==t?t:Ei})),(0,e.createElement)(D.FlexBlock,null,(0,e.createElement)(D.__experimentalNumberControl,{isShiftStepEnabled:!0,label:(0,L.__)("Desktop","blockify-pro"),onChange:(e,t)=>{t?.event?.target?.validity?.valid&&o({speedDesktop:e})},value:null!==(n=r?.speedDesktop)&&void 0!==n?n:xi}))))),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.RangeControl,{label:(0,L.__)("Repeat Items","blockify"),help:(0,L.__)("How many times should the items be duplicated/cloned.","blockify"),value:null!==(i=r?.repeatItems)&&void 0!==i?i:2,onChange:e=>{o({repeatItems:e})},min:0,max:10,step:1,allowReset:!0})),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Pause on hover","blockify-pro"),checked:r?.pauseOnHover,onChange:()=>o({pauseOnHover:!r?.pauseOnHover})})),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Reverse direction","blockify-pro"),checked:r?.reverse,onChange:()=>o({reverse:!r?.reverse})})),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.ToggleControl,{label:(0,L.__)("Fade Edges","blockify-pro"),checked:r?.fadeEdges,onChange:()=>o({fadeEdges:!r?.fadeEdges})})))}),null))),(0,e.createElement)(t,{...n}))}),"withInspectorControl"),9),(0,t.addFilter)("editor.BlockListBlock","blockify/with-marquee",(0,r.createHigherOrderComponent)((t=>n=>{var r,o;const{attributes:i}=n;if("marquee"!==i?.layout?.orientation)return(0,e.createElement)(t,{...n});n.attributes.style={...null!==(r=i.style)&&void 0!==r?r:{},...Si(i)};const a={...n.wrapperProps,style:{...null!==(o=n.wrapperProps?.style)&&void 0!==o?o:{},...Si(i)}};let l=n.className;return i?.fadeEdges&&(l=w(l,"fade-edges"),a.className=l),(0,e.createElement)(t,{...n,className:l,wrapperProps:a})}),"withMarquee")),(0,t.addFilter)("blocks.getSaveContent.extraProps","blockify/save-marquee-styles",((e,t,n)=>("marquee"!==n?.layout?.orientation||(e={...e,style:{...e?.style,...Si(n)}},n?.fadeEdges&&(e.className=w(e.className,"fade-edges"))),e)));const _i=(0,e.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"},(0,e.createElement)(D.Path,{d:"M126.12 315.1A47.06 47.06 0 1 1 79.06 268h47.06Zm23.72 0a47.06 47.06 0 0 1 94.12 0v117.84a47.06 47.06 0 1 1-94.12 0Zm47.06-188.98A47.06 47.06 0 1 1 244 79.06v47.06Zm0 23.72a47.06 47.06 0 0 1 0 94.12H79.06a47.06 47.06 0 0 1 0-94.12Zm188.98 47.06a47.06 47.06 0 1 1 47.06 47.1h-47.06Zm-23.72 0a47.06 47.06 0 0 1-94.12 0V79.06a47.06 47.06 0 1 1 94.12 0ZM315.1 385.88a47.06 47.06 0 1 1-47.1 47.06v-47.06Zm0-23.72a47.06 47.06 0 0 1 0-94.12h117.84a47.06 47.06 0 1 1 0 94.12Z"})),Oi={name:"slack",title:(0,L.__)("Slack","blockify"),icon:_i,attributes:{service:"slack"},isActive:(e,t)=>e.service===t.service};(0,b.registerBlockVariation)("core/social-link",Oi);const Fi=window.wp.richText;(0,Fi.registerFormatType)("blockify/clear-formatting",{title:(0,L.__)("Clear","blockify"),tagName:"span",className:"clear",edit:t=>{const{value:n,isActive:r,onChange:o}=t,{formatTypes:i}=(0,I.useSelect)((e=>({formatTypes:e("core/rich-text").getFormatTypes()})),[]);return(0,e.createElement)(Z.RichTextToolbarButton,{icon:"editor-removeformatting",title:(0,L.__)("Clear Formatting","blockify"),onClick:()=>{if(i.length>0){let e=n;i.map((t=>{e=(0,Fi.removeFormat)(e,t.name)})),o({...e})}},isActive:r})}});const Pi=(0,e.createElement)(V.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(V.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"})),Ii="blockify/gradient";(0,Fi.registerFormatType)(Ii,{title:(0,L.__)("Gradient","blockify"),tagName:"span",className:"has-text-gradient",attributes:{style:"style",class:"class"},edit:({isActive:t,value:n,onChange:r})=>{const[o,i]=(0,W.useState)(""),[a,l]=(0,W.useState)(!1),{gradients:s}=(0,I.useSelect)((e=>({gradients:e("core/block-editor").getSettings()?.gradients})),[]);let c="",u="";return n?.formats&&n.formats.forEach((e=>{const t=e?.find((e=>e?.type===Ii));t?.type===Ii&&(c+=";"+t?.attributes?.style,u+=t?.attributes?.class)})),(0,e.createElement)(Z.BlockControls,null,(0,e.createElement)(Z.RichTextToolbarButton,{icon:Pi,title:(0,L.__)("Gradient","blockify"),isActive:t,shortcutType:"primary",shortcutCharacter:"g",onClick:()=>l(!a)}),a&&(0,e.createElement)(D.Toolbar,{className:"blockify-components-toolbar"},(0,e.createElement)(D.Popover,{position:"bottom center",className:"blockify-gradient-text-control",focusOnMount:"container",onFocusOutside:()=>l(!1)},(0,e.createElement)(D.GradientPicker,{value:null!=o?o:"",gradients:s,onChange:e=>{i(e);let t=c,o=u;s.forEach((t=>{t.gradient===e&&(o+=(o?" ":"")+"has-"+t.slug+"-gradient-background")})),e&&!o.includes("-gradient-background")&&(t+=(t?t+";":"")+"background:"+e),o?.includes("has-text-gradient")&&(o=o?.replace("has-text-gradient","")?.trim()+" has-text-gradient"),r((0,Fi.applyFormat)(n,{type:Ii,attributes:{style:t,class:o}}))}}))))}});const Ti=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"}));D.CustomSelectControl.Option;const Ai="blockify/typography",Ni=[{key:"Default",name:"Default",style:{}},{key:"Thin",name:"Thin",style:{fontStyle:"normal",fontWeight:100}},{key:"Extra Light",name:"Extra Light",style:{fontStyle:"normal",fontWeight:200}},{key:"Light",name:"Light",style:{fontStyle:"normal",fontWeight:300}},{key:"Regular",name:"Regular",style:{fontStyle:"normal",fontWeight:400}},{key:"Medium",name:"Medium",style:{fontStyle:"normal",fontWeight:500}},{key:"Semi Bold",name:"Semi Bold",style:{fontStyle:"normal",fontWeight:600}},{key:"Bold",name:"Bold",style:{fontStyle:"normal",fontWeight:700}},{key:"Extra Bold",name:"Extra Bold",style:{fontStyle:"normal",fontWeight:800}},{key:"Black",name:"Black",style:{fontStyle:"normal",fontWeight:900}},{key:"Thin Italic",name:"Thin Italic",style:{fontStyle:"italic",fontWeight:100}},{key:"Extra Light Italic",name:"Extra Light Italic",style:{fontStyle:"italic",fontWeight:200}},{key:"Light Italic",name:"Light Italic",style:{fontStyle:"italic",fontWeight:300}},{key:"Regular Italic",name:"Regular Italic",style:{fontStyle:"italic",fontWeight:400}},{key:"Medium Italic",name:"Medium Italic",style:{fontStyle:"italic",fontWeight:500}},{key:"Semi Bold Italic",name:"Semi Bold Italic",style:{fontStyle:"italic",fontWeight:600}},{key:"Bold Italic",name:"Bold Italic",style:{fontStyle:"italic",fontWeight:700}},{key:"Extra Bold Italic",name:"Extra Bold Italic",style:{fontStyle:"italic",fontWeight:800}},{key:"Black Italic",name:"Black Italic",style:{fontStyle:"italic",fontWeight:900}}];(0,Fi.registerFormatType)(Ai,{title:(0,L.__)("Typography","blockify"),tagName:"span",className:"has-font",edit:t=>{var n;const{isActive:r,value:i,onChange:a}=t,{fontSizes:l}=(0,I.useSelect)((e=>({fontSizes:e("core/block-editor")?.getSettings()?.fontSizes})),[]),s=null!==(n=window?.blockify?.selectedFonts)&&void 0!==n?n:[],c=s?.map((e=>({label:o(e?.replace("-"," ")),value:e})));let u="",d="";i?.formats&&i.formats.forEach((e=>{e&&e.forEach((e=>{var t,n;e?.type===Ai&&(u=null!==(t=e?.attributes?.style)&&void 0!==t?t:"",d=null!==(n=e?.attributes?.class)&&void 0!==n?n:"")}))}));const[p,m]=(0,W.useState)({style:y(u),class:d.split(" "),fontFamily:"",fontSize:"",fontAppearance:Ni[0],isOpen:!1});return(0,e.createElement)(Z.BlockControls,null,(0,e.createElement)(Z.RichTextToolbarButton,{icon:Ti,title:(0,L.__)("Typography","blockify"),isActive:r,shortcutType:"primary",shortcutCharacter:"f",onClick:()=>m({...p,isOpen:!p.isOpen})}),p?.isOpen&&(0,e.createElement)(D.Toolbar,{className:"blockify-components-toolbar"},(0,e.createElement)(D.Popover,{position:"bottom center",className:"blockify-font-family-control",focusOnMount:"container",onFocusOutside:()=>m({...p,isOpen:!1})},(0,e.createElement)(D.SelectControl,{label:(0,L.__)("Select Font Family","blockify"),value:p?.fontFamily,options:c,onChange:e=>{m({...p,fontFamily:e});const t="has-"+e+"-font-family";p?.class?.includes(t)||p?.class?.push(t),a((0,Fi.applyFormat)(i,{type:Ai,attributes:{style:v(p?.style),class:p?.class?.join(" ")}}))}}),(0,e.createElement)(D.FontSizePicker,{fontSizes:l,fallbackFontSize:20,value:parseInt(p?.fontSize),withSlider:!0,onChange:e=>{m({...p,fontSize:e.toString()}),e&&(p.style["--wp--custom--font-size"]=e.toString()),p?.class?.includes("has-inline-font-size")||p.class.push("has-inline-font-size"),a((0,Fi.applyFormat)(i,{type:Ai,attributes:{style:v(p?.style),class:p?.class?.join(" ")}}))}}),(0,e.createElement)(D.CustomSelectControl,{label:(0,L.__)("Appearance","blockify"),value:Ni.find((e=>e.key===p?.fontAppearance?.key)),options:null!=Ni?Ni:[],onChange:({selectedItem:e})=>{e&&m({...p,fontAppearance:e}),e?.style?.fontStyle&&(p.style["font-style"]=e?.style?.fontStyle),e?.style?.fontWeight&&(p.style["font-weight"]=e?.style?.fontWeight?.toString()),a((0,Fi.applyFormat)(i,{type:Ai,attributes:{style:v(p?.style),class:p?.class?.join(" ")}}))}}))))}});const Mi=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"})),Ri="blockify/inline-svg";(0,Fi.registerFormatType)(Ri,{title:(0,L.__)("Inline SVG","blockify"),object:!0,tagName:"img",className:"has-inline-svg",edit:t=>{const{isActive:n,onChange:r,value:o}=t,[i,a]=(0,W.useState)(!1),[l,s]=(0,W.useState)({string:"",width:"1em",widthDesktop:"1em",alt:"",src:""});return(0,e.createElement)(Z.BlockControls,null,(0,e.createElement)(Z.RichTextToolbarButton,{icon:Mi,title:(0,L.__)("Inline SVG","blockify"),isActive:n,shortcutType:"primary",shortcutCharacter:"v",onClick:()=>a(!i)}),i&&(0,e.createElement)(D.Toolbar,{className:"blockify-components-toolbar"},(0,e.createElement)(D.Popover,{position:"bottom center",className:"blockify-svg-control",focusOnMount:"container",onFocusOutside:()=>a(!1)},(0,e.createElement)((()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(D.TextareaControl,{label:(0,L.__)("SVG String","blockify"),help:(0,L.__)("Paste your SVG string in the field above and then click the button below to insert your image.","blockify"),value:l?.string,placeholder:(0,L.__)("Paste your SVG string here","blockify"),rows:20,onChange:e=>{s({...l,string:e.replace(/'/g,'"')})},style:{fontFamily:"var(--wp--preset--font-family--monospace, monospace)",width:"300px"}}),(0,e.createElement)("br",null),(0,e.createElement)(D.TextareaControl,{label:(0,L.__)("Alt Text","blockify"),placeholder:(0,L.__)("SVG description","blockify"),value:l?.alt,rows:2,onChange:e=>{s({...l,alt:e})},style:{width:"300px"}}),(0,e.createElement)(D.PanelRow,null,(0,e.createElement)(D.Flex,null,(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Width Mobile","blockify"),value:l?.width,onChange:e=>{s({...l,width:e})}})),(0,e.createElement)(D.FlexItem,null,(0,e.createElement)(D.__experimentalUnitControl,{label:(0,L.__)("Width Desktop","blockify"),value:l?.widthDesktop,onChange:e=>{s({...l,widthDesktop:e})}})))),(0,e.createElement)("br",null),(0,e.createElement)(D.Button,{variant:"primary",text:(0,L.__)("Insert SVG","blockify"),onClick:()=>(e=>{const t={};e?.string&&(t["-webkit-mask-image"]="url(data:image/svg+xml;utf8,"+encodeURIComponent(e.string)+")"),e?.width&&(t["--width"]=e.width),e?.widthDesktop&&(t["--width-desktop"]=e.widthDesktop);const n={type:Ri,attributes:{alt:e?.alt,role:"presentation",src:"",style:v(t)}};r((0,Fi.insertObject)(o,n)),a(!1)})(l)}))),null))))}});const Bi=(0,e.createElement)(V.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(V.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"})),Di="blockify/underline",Li=["none","solid","wavy","dashed","dotted","double","brush","circle","scribble"];(0,Fi.registerFormatType)(Di,{title:(0,L.__)("Underline","blockify"),tagName:"u",className:"has-text-underline",attributes:{style:"style",class:"class"},edit:({isActive:t,value:n,onChange:r})=>{const[o,i]=(0,W.useState)(""),[a,l]=(0,W.useState)(!1);let s=[],c=[];return n?.formats&&n.formats.forEach((e=>{e&&e.forEach((e=>{e.type===Di&&(e.attributes?.style&&(s=e.attributes.style.split(";")),e.attributes?.class&&(c=e.attributes.class.split(" ")))}))})),(0,e.createElement)(Z.BlockControls,null,(0,e.createElement)(Z.RichTextShortcut,{type:"primary",character:"u",onUse:()=>{r((0,Fi.toggleFormat)(n,{type:Di}))}}),(0,e.createElement)(Z.RichTextToolbarButton,{icon:Bi,title:(0,L.__)("Underline","blockify"),isActive:t,shortcutType:"primary",shortcutCharacter:"u",onClick:()=>l(!a)}),a&&(0,e.createElement)(D.Toolbar,{className:"blockify-components-toolbar"},(0,e.createElement)(D.Popover,{position:"bottom center",className:"blockify-underline-format",focusOnMount:"container",onFocusOutside:()=>l(!1)},(0,e.createElement)(D.__experimentalText,null,(0,L.__)("Underline style","blockify")),(0,e.createElement)("br",null),(0,e.createElement)(D.SelectControl,{onChange:e=>{var t,o;"none"===e&&r((0,Fi.removeFormat)(n,Di)),i(e);const a=null!==(t=c)&&void 0!==t?t:[];a.forEach(((e,t)=>{e.includes("is-underline-")&&delete l.classes[t]}));const l={classes:[...a,"is-underline-"+e],styles:[...null!==(o=s)&&void 0!==o?o:[],"--wp--custom--underline--style:"+e]};r((0,Fi.applyFormat)(n,{type:Di,attributes:{class:l.classes.join(" "),style:l.styles.join(";")}}))},value:o,options:Li.map((e=>{return{label:(t=e,t.charAt(0).toUpperCase()+t.slice(1)),value:e};var t}))}))))}})})()})(); \ No newline at end of file diff --git a/assets/js/typewriter.asset.php b/assets/js/typewriter.asset.php deleted file mode 100644 index aed5fff..0000000 --- a/assets/js/typewriter.asset.php +++ /dev/null @@ -1 +0,0 @@ - array(), 'version' => 'c653c94d291054308fe4'); diff --git a/assets/js/typewriter.js b/assets/js/typewriter.js deleted file mode 100644 index 273a976..0000000 --- a/assets/js/typewriter.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{function e(t,n=[]){return t.childNodes.forEach((o=>{o.nodeType===Node.TEXT_NODE&&o.textContent&&o.textContent.trim().length>0?n.push({node:o,parent:t,nextSibling:o.nextSibling}):o.nodeType===Node.ELEMENT_NODE&&e(o,n)})),n}function t(e,t){setTimeout((()=>{const t=document.createElement("span");t.appendChild(e.node),t.style.opacity="0",e.parent.insertBefore(t,e.nextSibling);let n=0;setInterval((()=>{n<1&&(n+=.1,t.style.opacity=n.toString())}),10)}),t)}function n(e,n,o,i,r){const c=n.split(r);return c.forEach(((n,l)=>{const s=document.createTextNode(n);o+=i,t({node:s,parent:e.parent,nextSibling:e.nextSibling},o),l{o.forEach((o=>{const r=e(o.target);o.isIntersecting&&(function(e,o){let i=0;const r=200,c=e.offsetHeight;e.style.minHeight=c+"px",o.forEach((e=>{var o;e.parent.removeChild(e.node),i+=r;const c=null!==(o=e.node.textContent)&&void 0!==o?o:"";c&&c.trim().includes(" ")?i=n(e,c,i,r," "):c&&c.trim().includes(".")?i=n(e,c,i,r,"."):c&&c.trim().includes(":")?i=n(e,c,i,r,":"):t(e,i)}))}(o.target,r),i.unobserve(o.target))}))}),{root:null,threshold:.1});o.forEach((e=>{i.observe(e)}))}(o)})(); \ No newline at end of file diff --git a/functions.php b/functions.php index 05f3aab..4c6b9be 100644 --- a/functions.php +++ b/functions.php @@ -30,10 +30,10 @@ function setup(): void { 'utility/color', 'utility/css', 'utility/dom', - 'utility/helper', 'utility/icon', 'utility/image', 'utility/string', + 'utility/theme', 'api/block-extensions', 'api/block-styles', 'api/block-supports', @@ -58,6 +58,7 @@ function setup(): void { 'blocks/avatar', 'blocks/button', 'blocks/buttons', + 'blocks/calendar', 'blocks/code', 'blocks/columns', 'blocks/cover', diff --git a/includes/api/block-supports.php b/includes/api/block-supports.php index 321d2dc..1d6a17f 100644 --- a/includes/api/block-supports.php +++ b/includes/api/block-supports.php @@ -27,7 +27,8 @@ function register_block_supports( array $data = [] ): array { 'blockifyPosition' => true, ], 'blockify/post-content' => [ - 'blockifyPosition' => true, + 'blockifyPosition' => true, + 'blockifyBoxShadow' => true, ], 'blockify/template-part' => [ 'blockifyPosition' => true, @@ -474,7 +475,9 @@ function register_block_supports( array $data = [] ): array { 'padding' => true, ], 'blockifyBoxShadow' => true, + 'blockifyFilter' => true, 'blockifyPosition' => true, + 'blockifyTransform' => true, ], 'core/post-terms' => [ 'align' => [ @@ -537,10 +540,21 @@ function register_block_supports( array $data = [] ): array { 'blockifyPosition' => true, ], 'core/query-pagination' => [ - 'spacing' => [ + 'spacing' => [ 'margin' => true, 'padding' => true, ], + '__experimentalBorder' => [ + 'radius' => true, + 'width' => true, + 'color' => true, + 'style' => true, + '__experimentalDefaultControls' => [ + 'width' => true, + 'color' => true, + 'radius' => true, + ], + ], ], 'core/quote' => [ 'spacing' => [ diff --git a/includes/blocks/calendar.php b/includes/blocks/calendar.php new file mode 100644 index 0000000..22a2c84 --- /dev/null +++ b/includes/blocks/calendar.php @@ -0,0 +1,43 @@ +getAttribute( 'class' ) ); + $table_classes = explode( ' ', $table->getAttribute( 'class' ) ); + + foreach ( $table_classes as $index => $table_class ) { + if ( str_contains_any( $table_class, 'background', 'color' ) ) { + $div_classes[] = $table_class; + unset( $table_classes[ $index ] ); + } + } + + $div->setAttribute( 'class', implode( ' ', $div_classes ) ); + $table->setAttribute( 'class', implode( ' ', $table_classes ) ); + + return $dom->saveHTML(); +} diff --git a/includes/blocks/image.php b/includes/blocks/image.php index 7e47fd9..1c1ec5a 100644 --- a/includes/blocks/image.php +++ b/includes/blocks/image.php @@ -51,7 +51,7 @@ function render_image_block( string $html, array $block, WP_Block $object ): str $html = add_responsive_classes( $html, $block, get_image_options(), (bool) $id ); } - if ( $name === 'core/post-featured-image' && ! $html ) { + if ( $name === 'core/post-featured-image' ) { $html = add_responsive_classes( $html, $block, get_image_options(), (bool) $id ); } } diff --git a/includes/blocks/post-excerpt.php b/includes/blocks/post-excerpt.php index 5797ba4..f371542 100644 --- a/includes/blocks/post-excerpt.php +++ b/includes/blocks/post-excerpt.php @@ -5,6 +5,7 @@ namespace Blockify\Theme; use WP_Block; +use WP_Block_Supports; use function add_action; use function add_filter; use function add_post_type_support; @@ -36,11 +37,11 @@ * @return string */ function render_post_excerpt( string $block_content, array $block, WP_Block $object ): string { - $query_id = $object->context['queryId'] ?? false; $query_post_id = $object->context['postId'] ?? false; $custom_excerpt = get_post_field( 'post_excerpt', $query_post_id ?? get_the_ID() ); + $is_query_loop = ( WP_Block_Supports::$block_to_render['blockName'] ?? '' ) === 'core/post-template'; - if ( is_singular() && ! $custom_excerpt && ! $query_id ) { + if ( is_singular() && ! $custom_excerpt && ! $is_query_loop ) { return ''; } diff --git a/includes/blocks/post-featured-image.php b/includes/blocks/post-featured-image.php index ea80239..4fe8ef1 100644 --- a/includes/blocks/post-featured-image.php +++ b/includes/blocks/post-featured-image.php @@ -23,6 +23,7 @@ function render_post_featured_image_block( string $html, array $block ): string { $dom = dom( $html ); $figure = get_dom_element( 'figure', $dom ); + $img = get_dom_element( 'img', $figure ); if ( ! $figure ) { return $html; @@ -35,6 +36,7 @@ function render_post_featured_image_block( string $html, array $block ): string $use_custom = $attrs['useCustomBoxShadow'] ?? null; $shadow_custom = $attrs['style']['boxShadow'] ?? null; $hover_custom = $attrs['style']['boxShadow']['hover'] ?? null; + $border_radius = $attrs['style']['border']['radius'] ?? null; if ( $shadow_preset ) { $figure_classes[] = 'has-shadow'; @@ -65,6 +67,49 @@ function render_post_featured_image_block( string $html, array $block ): string } } + if ( $border_radius ) { + $figure_styles['border-radius'] = $border_radius; + } + + $img_classes = $img ? explode( ' ', $img->getAttribute( 'class' ) ) : []; + + $transform = $attrs['style']['transform'] ?? []; + $transform_units = [ + 'rotate' => 'deg', + 'skew' => 'deg', + 'scale' => '', + 'translate' => '', + ]; + + if ( ! empty( $transform ) && is_array( $transform ) ) { + $transform_value = ''; + + foreach ( $transform as $key => $value ) { + $unit = $transform_units[ $key ] ?? ''; + $transform_value .= "{$key}({$value}{$unit}) "; + } + + if ( ! in_array( 'has-transform', $img_classes, true ) ) { + $figure_styles['transform'] = $transform_value; + } + } + + $filter = $attrs['style']['filter'] ?? []; + + if ( ! empty( $filter ) && is_array( $filter ) ) { + $filter_options = get_filter_options(); + $filter_value = ''; + + foreach ( $filter as $key => $value ) { + $unit = $filter_options[ $key ]['unit'] ?? ''; + $filter_value .= "{$key}({$value}{$unit}) "; + } + + if ( ! in_array( 'has-filter', $img_classes, true ) ) { + $figure_styles['filter'] = $filter_value; + } + } + if ( $figure_styles ) { $figure->setAttribute( 'style', css_array_to_string( $figure_styles ) ); } diff --git a/includes/blocks/post-terms.php b/includes/blocks/post-terms.php index dc7ebcb..5687d30 100644 --- a/includes/blocks/post-terms.php +++ b/includes/blocks/post-terms.php @@ -33,8 +33,9 @@ * @return string */ function render_post_terms_block( string $html, array $block ): string { + $attrs = $block['attrs'] ?? []; - if ( $block['attrs']['align'] ?? null ) { + if ( $attrs['align'] ?? null ) { $dom = dom( $html ); $div = get_dom_element( 'div', $dom ); @@ -43,7 +44,7 @@ function render_post_terms_block( string $html, array $block ): string { 'wp-block-post-terms', 'flex', 'wrap', - 'justify-' . esc_attr( $block['attrs']['align'] ?? 'left' ), + 'justify-' . esc_attr( $attrs['align'] ?? 'left' ), ...( explode( ' ', $div->getAttribute( 'class' ) ) ), ] ); @@ -53,14 +54,14 @@ function render_post_terms_block( string $html, array $block ): string { $html = $dom->saveHTML(); } - $term = $block['attrs']['term'] ?? ''; + $term = $attrs['term'] ?? ''; if ( ! $term ) { return $html; } // Remove empty separator elements. - $separator = $block['attrs']['separator'] ?? null; + $separator = $attrs['separator'] ?? null; if ( $separator === '' ) { $dom = dom( $html ); @@ -79,25 +80,25 @@ function render_post_terms_block( string $html, array $block ): string { } } - $show_all = $block['attrs']['showAll'] ?? false; + $show_all = $attrs['showAll'] ?? false; if ( ! $html || $show_all ) { $dom = dom( '
' ); $div = get_dom_element( 'div', $dom ); $div_classes = [ - ...( explode( ' ', $block['attrs']['className'] ?? '' ) ), + ...( explode( ' ', $attrs['className'] ?? '' ) ), 'wp-block-post-terms', 'taxonomy-' . $term, ]; - $text_align = esc_attr( $block['attrs']['textAlign'] ?? '' ); + $text_align = esc_attr( $attrs['textAlign'] ?? '' ); if ( $text_align ) { $div_classes[] = 'has-text-align-' . $text_align; $div_classes[] = 'justify-' . $text_align; } - $text_color = esc_attr( $block['attrs']['textColor'] ?? '' ); + $text_color = esc_attr( $attrs['textColor'] ?? '' ); if ( $text_color ) { $div_classes[] = 'has-' . $text_color . '-color'; @@ -106,7 +107,7 @@ function render_post_terms_block( string $html, array $block ): string { $taxonomy = get_taxonomy( $term ); $post_type = $taxonomy->object_type[0] ?? get_post_type(); - if ( ( is_singular() && ! is_front_page() ) || ! $show_all ) { + if ( ( is_singular() && ! is_front_page() && ! $show_all ) || ! $show_all ) { $p = create_element( 'p', $dom ); $p->nodeValue = esc_html( $taxonomy->labels->not_found ?? '' ); @@ -166,32 +167,30 @@ function render_post_terms_block( string $html, array $block ): string { } $styles = []; - - // TODO: Is 0 intentional? - $margin = $block['attrs']['style']['spacing']['margin'] ?? 0; + $margin = $attrs['style']['spacing']['margin'] ?? null; $styles = add_shorthand_property( $styles, 'margin', $margin ); - $text_decoration = esc_attr( $block['attrs']['style']['typography']['textDecoration'] ?? '' ); + $text_decoration = esc_attr( $attrs['style']['typography']['textDecoration'] ?? '' ); if ( $text_decoration ) { $styles['text-decoration'] = $text_decoration; } - $font_size = esc_attr( $block['attrs']['fontSize'] ?? '' ); + $font_size = esc_attr( $attrs['fontSize'] ?? '' ); if ( $font_size ) { $div_classes[] = 'has-font-size'; $div_classes[] = 'has-' . $font_size . '-font-size'; } - $font_size_custom = esc_attr( $block['attrs']['style']['typography']['fontSize'] ?? '' ); + $font_size_custom = esc_attr( $attrs['style']['typography']['fontSize'] ?? '' ); if ( $font_size_custom ) { $styles['font-size'] = format_custom_property( $font_size_custom ); $div_classes[] = 'has-font-size'; } - $padding = $block['attrs']['style']['spacing']['padding'] ?? null; + $padding = $attrs['style']['spacing']['padding'] ?? null; $styles = add_shorthand_property( $styles, 'padding', $padding ); $div->setAttribute( 'class', implode( ' ', $div_classes ) ); @@ -211,19 +210,19 @@ function render_post_terms_block( string $html, array $block ): string { if ( $first ) { $styles = css_string_to_array( $first->getAttribute( 'style' ) ); - $gap = $block['attrs']['style']['spacing']['blockGap'] ?? ''; + $gap = $attrs['style']['spacing']['blockGap'] ?? ''; if ( $gap ) { $styles['gap'] = format_custom_property( $gap ); } - $font_weight = esc_attr( $block['attrs']['style']['typography']['fontWeight'] ?? '' ); + $font_weight = esc_attr( $attrs['style']['typography']['fontWeight'] ?? '' ); if ( $font_weight ) { $styles['font-weight'] = $font_weight; } - $border = $block['attrs']['style']['border'] ?? null; + $border = $attrs['style']['border'] ?? null; $radius = $border['radius'] ?? null; if ( $radius ) { @@ -235,10 +234,10 @@ function render_post_terms_block( string $html, array $block ): string { } } - $class_names = explode( ' ', $block['attrs']['className'] ?? '' ); + $class_names = explode( ' ', $attrs['className'] ?? '' ); if ( in_array( 'is-style-badges', $class_names, true ) ) { - $padding = $block['attrs']['style']['spacing']['padding'] ?? null; + $padding = $attrs['style']['spacing']['padding'] ?? null; if ( $padding && $first ) { $styles = css_string_to_array( $first->getAttribute( 'style' ) ); diff --git a/includes/blocks/query-pagination.php b/includes/blocks/query-pagination.php index 9abcdc3..d5db4f8 100644 --- a/includes/blocks/query-pagination.php +++ b/includes/blocks/query-pagination.php @@ -26,8 +26,7 @@ function render_query_pagination_block( string $html, array $block ): string { return $html; } - $styles = css_string_to_array( $nav->getAttribute( 'style' ) ); - + $styles = css_string_to_array( $nav->getAttribute( 'style' ) ); $margin = $block['attrs']['style']['spacing']['margin'] ?? null; $padding = $block['attrs']['style']['spacing']['padding'] ?? null; $styles = add_shorthand_property( $styles, 'margin', $margin ); @@ -44,6 +43,12 @@ function render_query_pagination_block( string $html, array $block ): string { } } + $border_radius = $block['attrs']['style']['border']['radius'] ?? null; + + if ( $border_radius ) { + $styles['border-radius'] = $border_radius; + } + $nav->setAttribute( 'style', css_array_to_string( $styles ) ); return $dom->saveHTML(); diff --git a/includes/common/patterns.php b/includes/common/patterns.php index 351d58a..8366bfe 100644 --- a/includes/common/patterns.php +++ b/includes/common/patterns.php @@ -8,6 +8,7 @@ use function _cleanup_header_comment; use function add_action; use function apply_filters; +use function array_unique; use function basename; use function explode; use function get_file_data; @@ -61,11 +62,11 @@ function get_pattern_dirs(): array { $template = get_template_directory() . '/patterns/*'; $stylesheet = get_stylesheet_directory() . '/patterns/*'; - return apply_filters( 'blockify_pattern_dirs', [ + return array_unique( apply_filters( 'blockify_pattern_dirs', [ ...glob( $default, GLOB_ONLYDIR ), ...glob( $template, GLOB_ONLYDIR ), ...glob( $stylesheet, GLOB_ONLYDIR ), - ] ); + ] ) ); } add_action( 'init', NS . 'register_default_patterns' ); @@ -219,19 +220,18 @@ function parse_pattern_file( string $file ): array { } $pattern = [ - 'slug' => $categories[0] . '-' . $headers['slug'], - 'title' => $headers['title'], - 'content' => str_replace_first( + 'slug' => $categories[0] . '-' . $headers['slug'], + 'title' => $headers['title'], + 'content' => str_replace_first( str_between( '', $content ), '', $content ), - 'categories' => [ ...$categories ], - 'description' => $headers['description'] ?? '', - 'viewportWidth' => $headers['viewport_width'] ?? null, - 'blockTypes' => $headers['block_types'] ?? [], - 'ID' => $headers['ID'] ?? null, - 'theme' => $theme, + 'categories' => [ ...$categories ], + 'description' => $headers['description'] ?? '', + 'blockTypes' => explode( ',', $headers['block_types'] ?? [] ), + 'ID' => $headers['ID'] ?? null, + 'theme' => $theme, ]; if ( ( $headers['inserter'] ?? null ) === 'false' ) { diff --git a/includes/common/styles.php b/includes/common/styles.php index 8bbfc2c..8a9abf5 100644 --- a/includes/common/styles.php +++ b/includes/common/styles.php @@ -99,17 +99,14 @@ function enqueue_styles(): void { wp_enqueue_style( $handle ); } -add_filter( 'blockify_inline_css', NS . 'get_dynamic_custom_properties', 8 ); /** - * Add dynamic custom properties. + * Gets dynamic custom properties. * * @since 0.9.19 * - * @param string $css Inline CSS. - * - * @return string + * @return array */ -function get_dynamic_custom_properties( string $css = '' ): string { +function get_dynamic_custom_properties(): array { $global_settings = wp_get_global_settings(); $global_styles = wp_get_global_styles(); $custom = $global_settings['custom'] ?? []; @@ -151,6 +148,8 @@ function get_dynamic_custom_properties( string $css = '' ): string { $link_hover_color = $global_styles['elements']['link'][':hover']['color']['text'] ?? null; + $calendar_background = $global_styles['blocks']['core/calendar']['color']['background'] ?? null; + $styles = [ '--scroll' => '0', '--breakpoint' => '782px', // Only used by JS. @@ -195,6 +194,10 @@ function get_dynamic_custom_properties( string $css = '' ): string { $styles['--wp--custom--list--gap'] = $list_gap; } + if ( $calendar_background ) { + $styles['--wp--custom--calendar--background'] = $calendar_background; + } + $inset = $box_shadow['inset'] ?? ' '; $x = $box_shadow['x'] ?? '0px'; $y = $box_shadow['y'] ?? '0px'; @@ -224,9 +227,21 @@ function get_dynamic_custom_properties( string $css = '' ): string { * @param array $styles Dynamic custom properties. * @param array $global_styles Global styles. */ - $styles = apply_filters( 'blockify_dynamic_custom_properties', $styles, $global_styles ); + return apply_filters( 'blockify_dynamic_custom_properties', $styles, $global_styles ); +} - return $css . 'body{' . css_array_to_string( $styles ) . '}'; +add_filter( 'blockify_inline_css', NS . 'add_dynamic_custom_properties', 8 ); +/** + * Adds dynamic custom properties. + * + * @since 0.9.19 + * + * @param string $css Inline CSS. + * + * @return string + */ +function add_dynamic_custom_properties( string $css = '' ): string { + return $css . 'body{' . css_array_to_string( get_dynamic_custom_properties() ) . '}'; } add_filter( 'blockify_inline_css', NS . 'get_conditional_stylesheets', 10, 3 ); @@ -348,11 +363,12 @@ function get_conditional_stylesheets( string $css, string $content, bool $all ): 'animation' => str_contains_any( $content, 'has-animation', 'will-animate' ), 'aspect-ratio' => str_contains( $content, 'has-aspect-ratio-' ), 'box-shadow' => str_contains( $content, 'has-box-shadow' ), + 'dark-mode' => str_contains_any( $content, 'hide-dark-mode', 'hide-light-mode' ), 'dark-mode-toggle' => str_contains( $content, 'toggle-switch' ), 'filter' => str_contains( $content, 'has-filter' ), 'gradient-mask' => str_contains( $content, '-gradient-background' ), 'grid-pattern' => str_contains( $content, 'has-grid-gradient-' ), - 'shadow' => str_contains_any( $content, 'has-shadow', 'has-box-shadow' ), + 'shadow' => str_contains_any( $content, 'has-shadow', 'has-box-shadow', 'has-text-shadow' ), 'transform' => str_contains( $content, 'has-transform' ), ]; @@ -469,9 +485,11 @@ function enqueue_editor_only_styles(): void { wp_enqueue_style( $handle ); + $dark_mode_css = get_dark_mode_styles( '' ); + wp_add_inline_style( $handle, - add_dark_mode_styles( '' ) + $dark_mode_css ); } diff --git a/includes/extensions/animation.php b/includes/extensions/animation.php index 8f6c3f2..70034a3 100644 --- a/includes/extensions/animation.php +++ b/includes/extensions/animation.php @@ -217,30 +217,6 @@ function add_scroll_js( string $js, string $content, bool $all ): string { return $js; } -add_filter( 'blockify_inline_js', NS . 'add_typewriter_js', 10, 3 ); -/** - * Adds scroll JS to the inline JS. - * - * @since 0.0.14 - * - * @param string $js Inline JS. - * @param string $content Page content. - * @param bool $all Whether to add all JS. - * - * @return string - */ -function add_typewriter_js( string $js, string $content, bool $all ): string { - if ( $all || str_contains_any( $content, 'hljs', 'typewriter' ) ) { - $file = get_dir() . 'assets/js/typewriter.js'; - - if ( file_exists( $file ) ) { - $js .= file_get_contents( $file ); - } - } - - return $js; -} - add_filter( 'blockify_inline_js', NS . 'add_packery_js', 10, 3 ); /** * Adds packery JS to the inline JS. diff --git a/includes/extensions/dark-mode.php b/includes/extensions/dark-mode.php index d3b87ce..2d55399 100644 --- a/includes/extensions/dark-mode.php +++ b/includes/extensions/dark-mode.php @@ -4,22 +4,21 @@ namespace Blockify\Theme; -use WP_Theme_JSON_Resolver; -use function _wp_to_kebab_case; use function add_filter; use function array_diff; -use function array_replace_recursive; -use function file_exists; +use function array_replace; +use function array_unique; use function filter_input; -use function get_template_directory; use function in_array; -use function strlen; -use function wp_json_file_decode; +use function is_null; +use function is_string; +use function wp_get_global_settings; use const FILTER_SANITIZE_FULL_SPECIAL_CHARS; use const INPUT_COOKIE; use const INPUT_GET; add_filter( 'body_class', NS . 'add_dark_mode_body_class' ); +//add_filter( 'language_attributes', NS . 'add_dark_mode_body_class' ); /** * Sets default body class. * @@ -30,11 +29,12 @@ * @return array */ function add_dark_mode_body_class( array $classes ): array { - $cookie = filter_input( INPUT_COOKIE, 'blockifyDarkMode', FILTER_SANITIZE_FULL_SPECIAL_CHARS ); - $url_param = filter_input( INPUT_GET, 'dark_mode', FILTER_SANITIZE_FULL_SPECIAL_CHARS ); - $stylesheet_dir = get_stylesheet_directory(); - $default_mode = file_exists( $stylesheet_dir . '/styles/light.json' ) ? 'dark' : 'light'; - $both_classes = [ 'is-style-light', 'is-style-dark' ]; + $cookie = filter_input( INPUT_COOKIE, 'blockifyDarkMode', FILTER_SANITIZE_FULL_SPECIAL_CHARS ); + $url_param = filter_input( INPUT_GET, 'dark_mode', FILTER_SANITIZE_FULL_SPECIAL_CHARS ); + $stylesheet_dir = get_stylesheet_directory(); + $global_settings = wp_get_global_settings(); + $default_mode = $global_settings['custom']['darkMode']['defaultMode'] ?? 'light'; + $both_classes = [ 'is-style-light', 'is-style-dark' ]; $classes[] = 'default-mode-' . $default_mode; @@ -58,10 +58,10 @@ function add_dark_mode_body_class( array $classes ): array { $classes[] = $url_param === 'true' ? 'is-style-dark' : 'is-style-light'; } - return $classes; + return array_unique( $classes ); } -add_filter( 'blockify_inline_css', NS . 'add_dark_mode_styles' ); +add_filter( 'blockify_inline_css', NS . 'get_dark_mode_styles' ); /** * Adds dark mode styles. * @@ -71,105 +71,100 @@ function add_dark_mode_body_class( array $classes ): array { * * @return string */ -function add_dark_mode_styles( string $css ): string { - $variations = WP_Theme_JSON_Resolver::get_style_variations(); - $user_data = WP_Theme_JSON_Resolver::get_user_data(); - $theme_data = WP_Theme_JSON_Resolver::get_theme_data(); - $theme_title = $theme_data->get_data()['title'] ?? ''; - $theme_settings = $theme_data->get_settings(); - $file_data = wp_json_file_decode( get_template_directory() . '/theme.json', [ 'associative' => true ] ); - $file_colors = get_color_values( $file_data['settings']['color']['palette'] ?? [] ); - $theme_colors = get_color_values( $theme_settings['color']['palette']['theme'] ?? [] ); - $user_colors = get_color_values( $user_data->get_settings()['color']['palette']['theme'] ?? [] ); - $changed_colors = array_diff( $user_colors, $theme_colors ); - $system_colors = get_system_colors(); - $replacements = get_replacement_colors( array_replace_recursive( $file_data['settings'], $theme_settings ) ); - $flipped = array_flip( $replacements ); - - if ( $theme_title ) { - $variations[] = [ - 'title' => $theme_title, - 'settings' => [ - 'color' => [ - 'palette' => [ - 'theme' => $theme_settings['color']['palette']['theme'] ?? [], - ], - 'gradients' => [ - 'theme' => $theme_settings['color']['gradients']['theme'] ?? [], - ], - ], - ], - ]; - } - - $modes = []; - - foreach ( $variations as $variation ) { - $mode = _wp_to_kebab_case( $variation['title'] ?? '' ); - - if ( ! $mode || in_array( $mode, $modes, true ) ) { - continue; - } - - if ( ! in_array( $mode, [ 'light', 'dark' ], true ) ) { - unset( $variations[0] ); +function get_dark_mode_styles( string $css ): string { + $settings = wp_get_global_settings(); + $palette = $settings['color']['palette']['theme'] ?? []; + $custom = array_replace( + compute_theme_vars( $settings['custom'] ?? [] ), + get_dynamic_custom_properties() + ); + $colors = get_color_values( $palette ); + $gradients = get_color_values( $settings['color']['gradients']['theme'] ?? [], 'gradient' ); + $system = get_system_colors(); + $default_mode = $settings['custom']['darkMode']['defaultMode'] ?? 'light'; + $opposite_mode = $default_mode === 'light' ? 'dark' : 'light'; + $default_styles = []; + $opposite_styles = []; + + $maps = [ + 'primary' => [ + 950 => 25, + 900 => 50, + 800 => 100, + 700 => 200, + 600 => 300, + 500 => 400, + 400 => 500, + 300 => 600, + 200 => 700, + 100 => 800, + 50 => 900, + 25 => 950, + ], + 'neutral' => [ + 950 => 0, + 900 => 50, + 800 => 100, + 700 => 200, + 600 => 300, + 500 => 400, + 400 => 500, + 300 => 600, + 200 => 700, + 100 => 800, + 50 => 900, + 0 => 950, + ], + 'success' => [ + 600 => 100, + 500 => 500, + 100 => 600, + ], + 'warning' => [ + 600 => 100, + 500 => 500, + 100 => 600, + ], + 'error' => [ + 600 => 100, + 500 => 500, + 100 => 600, + ], + ]; + + foreach ( $colors as $slug => $value ) { + $explode = explode( '-', $slug ); + $name = $explode[0] ?? ''; + $shade = $explode[1] ?? ''; + + if ( is_null( $shade ) || in_array( $slug, $system, true ) ) { continue; } - $modes[] = $mode; + $default_styles["--wp--preset--color--{$slug}"] = $value; - $palette = get_color_values( $variation['settings']['color']['palette']['theme'] ?? [] ); + $opposite_shade = $maps[ $name ][ $shade ] ?? ''; + $opposite_value = $colors[ $name . '-' . $opposite_shade ] ?? ''; - if ( ! $palette ) { - continue; + if ( $opposite_value ) { + $opposite_styles["--wp--preset--color--{$slug}"] = $opposite_value; } + } - $styles = []; - - foreach ( $palette as $slug => $value ) { - if ( array_contains_any( $system_colors, [ $slug, $value ] ) ) { - continue; - } - - $new_value = ''; - - if ( isset( $changed_colors[ $slug ] ) ) { - $reversed = reverse_color_shade( $slug ); - $new_value = $changed_colors[ $reversed ] ?? $user_colors[ $reversed ] ?? $file_colors[ $reversed ] ?? $value; - } - - if ( isset( $replacements[ $slug ] ) ) { - $new_slug = $flipped[ reverse_color_shade( $replacements[ $slug ] ) ] ?? ''; - $new_value = $changed_colors[ $new_slug ] ?? $user_colors[ $new_slug ] ?? ( $changed_colors[ $slug ] ?? '' ? $user_colors[ $slug ] : '' ) ?? $file_colors[ $new_slug ] ?? ''; - - if ( strlen( $new_value ) > 7 && ! isset( $changed_colors[ $slug ] ) ) { - $new_value = $value; - } - } - - if ( $new_value ) { - $value = $new_value; - } - - $styles["--wp--preset--color--{$slug}"] = "var(--wp--preset--color--custom-dark-mode-{$slug},{$value});"; - } - - $gradients = get_color_values( $variation['settings']['color']['gradients']['theme'] ?? [], 'gradient' ); - - foreach ( $gradients as $slug => $value ) { - $styles["--wp--preset--gradient--{$slug}"] = "var(--wp--preset--gradient--custom-dark-mode-{$slug},{$value});"; - } + foreach ( $gradients as $slug => $value ) { + $default_styles["--wp--preset--gradient--{$slug}"] = $value; + $opposite_styles["--wp--preset--gradient--{$slug}"] = $value; + } - if ( ! empty( $styles ) ) { - $css .= ".is-style-{$mode}:not(.default-mode-{$mode}){" . css_array_to_string( $styles ) . '}'; + foreach ( $custom as $name => $value ) { + if ( is_string( $value ) && str_contains_any( $value, '--wp--preset--color--', '--wp--preset--gradient--' ) ) { + $default_styles[ $name ] = $value; + $opposite_styles[ $name ] = $value; } } - $file = get_dir() . 'assets/css/extensions/dark-mode.css'; - - if ( file_exists( $file ) ) { - $css .= file_get_contents( $file ); - } + $css .= "html .is-style-{$default_mode}{" . css_array_to_string( $default_styles ) . '}'; + $css .= "html .is-style-{$opposite_mode}{" . css_array_to_string( $opposite_styles ) . '}'; return $css; } diff --git a/includes/extensions/icon.php b/includes/extensions/icon.php index 8955c3e..060b2a2 100644 --- a/includes/extensions/icon.php +++ b/includes/extensions/icon.php @@ -222,11 +222,24 @@ function get_icon_html( string $content, array $block ): string { ]; if ( ! empty( $transform ) && is_array( $transform ) ) { - $transform_value = ''; + $figure_classes[] = 'has-transform'; + $transform_value = ''; foreach ( $transform as $key => $value ) { - $unit = $transform_units[ $key ] ?? ''; - $transform_value .= "{$key}({$value}{$unit}) "; + if ( $key === 'hover' ) { + $hover_transform = ''; + + foreach ( $value as $hover_key => $hover_value ) { + $unit = $transform_units[ $hover_key ] ?? ''; + $hover_transform .= "{$hover_key}({$hover_value}{$unit}) "; + } + + $figure_styles['--transform-hover'] = $hover_transform; + + } else { + $unit = $transform_units[ $key ] ?? ''; + $transform_value .= "{$key}({$value}{$unit}) "; + } } if ( ! in_array( 'has-transform', $span_classes, true ) ) { diff --git a/includes/extensions/shadow.php b/includes/extensions/shadow.php index cc7f379..bf4a7cf 100644 --- a/includes/extensions/shadow.php +++ b/includes/extensions/shadow.php @@ -6,12 +6,13 @@ use function add_filter; use function array_diff; +use function array_unique; use function esc_attr; use function in_array; use function str_contains; use function wp_get_global_settings; -add_filter( 'render_block', NS . 'render_box_shadow', 10, 2 ); +add_filter( 'render_block', NS . 'render_box_shadow', 13, 2 ); /** * Adds box shadow to blocks. * @@ -137,6 +138,74 @@ function render_box_shadow( string $html, array $block ): string { return $dom->saveHTML(); } +add_filter( 'render_block', NS . 'render_text_shadow', 10, 2 ); +/** + * Adds text shadow to blocks. + * + * @param string $html The block content. + * @param array $block The block. + * + * @return string + */ +function render_text_shadow( string $html, array $block ): string { + $text_shadow = $block['attrs']['style']['textShadow'] ?? []; + + if ( ! $text_shadow ) { + return $html; + } + + $dom = dom( $html ); + $first = get_dom_element( '*', $dom ); + + if ( ! $first ) { + return $html; + } + + $first_classes = explode( ' ', $first->getAttribute( 'class' ) ); + + $text_classes = array_unique( [ + ...$first_classes, + 'has-text-shadow', + ] ); + + $first->setAttribute( 'class', implode( ' ', $text_classes ) ); + + $first_styles = css_string_to_array( $first->getAttribute( 'style' ) ); + + $x = $text_shadow['x'] ?? null; + $y = $text_shadow['y'] ?? null; + $blur = $text_shadow['blur'] ?? null; + $color = $text_shadow['color'] ?? null; + + if ( $x ) { + $first_styles['--wp--custom--text-shadow--x'] = esc_attr( $x ) . 'px'; + } + + if ( $y ) { + $first_styles['--wp--custom--text-shadow--y'] = esc_attr( $y ) . 'px'; + } + + if ( $blur ) { + $first_styles['--wp--custom--text-shadow--blur'] = esc_attr( $blur ) . 'px'; + } + + if ( $color ) { + $palette = wp_get_global_settings()['color']['palette']['theme'] ?? []; + + $first_styles['--wp--custom--text-shadow--color'] = esc_attr( $color ); + + foreach ( $palette as $theme_color ) { + if ( $theme_color['color'] === $color ) { + $first_styles['--wp--custom--text-shadow--color'] = "var(--wp--preset--color--{$theme_color['slug']})"; + } + } + } + + $first->setAttribute( 'style', css_array_to_string( $first_styles ) ); + + return $dom->saveHTML(); +} + add_filter( 'blockify_dynamic_custom_properties', NS . 'add_shadow_custom_properties', 10, 2 ); /** * Adds box shadow custom properties. diff --git a/includes/extensions/template-tags.php b/includes/extensions/template-tags.php index 342fc90..1efcdc6 100644 --- a/includes/extensions/template-tags.php +++ b/includes/extensions/template-tags.php @@ -175,12 +175,15 @@ function add_post_template_tags( array $tags, ?int $post_id ): array { return $tags; } + $tags['post_id'] = $post_id; + $tags['permalink'] = get_permalink( $post_id ); + $post_type = get_post_type( $post_id ); $post_type_object = get_post_type_object( $post_type ); - $tags['post_id'] = $post_id; - $tags['post_type_label'] = $post_type_object->label; - $tags['permalink'] = get_permalink( $post_id ); + if ( $post_type_object ) { + $tags['post_type_label'] = $post_type_object->label; + } return $tags; } diff --git a/includes/utility/color.php b/includes/utility/color.php index 02d971f..4bde85c 100644 --- a/includes/utility/color.php +++ b/includes/utility/color.php @@ -22,6 +22,7 @@ */ function get_system_colors(): array { return [ + 'current', 'currentcolor', 'currentColor', 'inherit', @@ -57,6 +58,7 @@ function get_shade_scales( ?string $color = null ): array { 0 => 950, ], 'primary' => [ + 950 => 25, 900 => 100, 700 => 300, 600 => 500, @@ -93,7 +95,7 @@ function get_shade_scales( ?string $color = null ): array { } /** - * Gets color shades. + * Reverses color shade. * * @since 1.3.2 * @@ -101,7 +103,7 @@ function get_shade_scales( ?string $color = null ): array { * * @return string */ -function reverse_color_shade( string $slug ): string { +function get_reverse_color_shade( string $slug ): string { $explode = explode( '-', $slug ); $color = $explode[0] ?? ''; $shade = $explode[1] ?? ''; diff --git a/includes/utility/css.php b/includes/utility/css.php index d9aa5db..0568468 100644 --- a/includes/utility/css.php +++ b/includes/utility/css.php @@ -10,6 +10,7 @@ use function explode; use function file_exists; use function get_template_directory; +use function is_array; use function is_null; use function is_string; use function rtrim; @@ -31,7 +32,7 @@ function css_array_to_string( array $styles, bool $trim = false ): string { $css = ''; foreach ( $styles as $property => $value ) { - if ( is_null( $value ) ) { + if ( is_null( $value ) || is_array( $value ) ) { continue; } @@ -108,7 +109,7 @@ function format_custom_property( string $custom_property ): string { (array) ( $global_settings['color']['palette']['theme'] ?? [] ), (array) $theme_json->settings->color->palette ); - + $color_slugs = array_diff( wp_list_pluck( $colors, 'slug' ), get_system_colors() diff --git a/includes/utility/helper.php b/includes/utility/helper.php deleted file mode 100644 index 402ee02..0000000 --- a/includes/utility/helper.php +++ /dev/null @@ -1,85 +0,0 @@ - 'property_value, + * ) + * + * This is slightly different from the implementation in + * wp-includes/class-wp-theme-json.php which is: + * + * array( + * 'name' => 'property_name', + * 'value' => 'property_value, + * ) + * + * @since 5.8.0 + * + * @param array $custom_values Settings to process. + * + * @see WP_Theme_JSON::compute_theme_vars() + * + * @return array The modified $declarations. + */ +function compute_theme_vars( array $custom_values ): array { + $declarations = []; + $css_vars = flatten_tree( $custom_values ); + + foreach ( $css_vars as $key => $value ) { + $declarations[ '--wp--custom--' . $key ] = $value; + } + + return $declarations; +} + +/** + * Given a tree, it creates a flattened one + * by merging the keys and binding the leaf values + * to the new keys. + * + * It also transforms camelCase names into kebab-case + * and substitutes '/' by '-'. + * + * This is thought to be useful to generate + * CSS Custom Properties from a tree, + * although there's nothing in the implementation + * of this function that requires that format. + * + * For example, assuming the given prefix is '--wp' + * and the token is '--', for this input tree: + * + * { + * 'some/property': 'value', + * 'nestedProperty': { + * 'sub-property': 'value' + * } + * } + * + * it'll return this output: + * + * { + * '--wp--some-property': 'value', + * '--wp--nested-property--sub-property': 'value' + * } + * + * @since 5.8.0 + * + * @param array $tree Input tree to process. + * @param string $prefix Optional. Prefix to prepend to each variable. Default + * empty string. + * @param string $token Optional. Token to use between levels. Default '--'. + * + * @see WP_Theme_JSON::flatten_tree() + * + * @return array The flattened tree. + */ +function flatten_tree( array $tree, string $prefix = '', string $token = '--' ): array { + $result = []; + + foreach ( $tree as $property => $value ) { + $new_key = $prefix . str_replace( + '/', + '-', + strtolower( _wp_to_kebab_case( $property ) ) + ); + + if ( is_array( $value ) ) { + $new_prefix = $new_key . $token; + $flattened_subtree = flatten_tree( $value, $new_prefix, $token ); + + foreach ( $flattened_subtree as $subtree_key => $subtree_value ) { + $result[ $subtree_key ] = $subtree_value; + } + + } else { + $result[ $new_key ] = $value; + } + } + + return $result; +} diff --git a/patterns/page/landing.php b/patterns/page/home.php similarity index 100% rename from patterns/page/landing.php rename to patterns/page/home.php diff --git a/patterns/template/date.php b/patterns/template/date.php new file mode 100644 index 0000000..f14196a --- /dev/null +++ b/patterns/template/date.php @@ -0,0 +1,10 @@ + + diff --git a/patterns/template/front-page.php b/patterns/template/front-page.php index 8b2159a..1ccc697 100644 --- a/patterns/template/front-page.php +++ b/patterns/template/front-page.php @@ -11,7 +11,7 @@
- +
diff --git a/readme.txt b/readme.txt index 1faf9d0..77fc3ba 100644 --- a/readme.txt +++ b/readme.txt @@ -59,13 +59,18 @@ https://stocksnap.io/photo/girl-portrait_LMKLOZE1TO.jpg == Changelog == -= 1.3.1 - * 8 November 2023 = += 1.3.2 - 27 December 2023 = + +* Add: Text shadow controls +* Fix: Icon performance + += 1.3.1 - 8 November 2023 = * Remove: Use of `get_bloginfo( 'url' )` in favor of `home_url()` * Remove: #wpadminbar styling * Remove: Blog comments pattern -= 1.3.0 - * 8 November 2023 = += 1.3.0 - 8 November 2023 = * Add: Complete rebuild. See https://blockifywp.com/changelog for full details. diff --git a/src/api/block-supports.tsx b/src/api/block-supports.tsx index 656e04e..05efd0c 100644 --- a/src/api/block-supports.tsx +++ b/src/api/block-supports.tsx @@ -43,9 +43,17 @@ addFilter( createHigherOrderComponent( ( BlockListBlock ) => { return ( props: blockProps ) => { + const { name } = props; + + const blocksWithBlockGap = [ + 'core/page-list', + 'core/button', + 'core/post-author', + ]; + const defaultReturn = ; - if ( props.name !== 'core/page-list' && props.name !== 'core/button' ) { + if ( ! blocksWithBlockGap.includes( name ) ) { return defaultReturn; } diff --git a/src/block-extensions/image.tsx b/src/block-extensions/image.tsx index 78bf970..89b297b 100644 --- a/src/block-extensions/image.tsx +++ b/src/block-extensions/image.tsx @@ -18,7 +18,7 @@ import { Label } from '../components'; import { unitsWithAuto } from '../utility'; export const supportsImage = ( name: string ): boolean => [ 'core/image', 'core/post-featured-image', [ 'blockify/image-compare' ] ].includes( name ); -export const supportsAspectRatio = ( name: string ): boolean => [ 'core/image', 'blockify/image-compare' ].includes( name ); +export const supportsAspectRatio = ( name: string ): boolean => [ 'core/image', 'core/post-featured-image', 'blockify/image-compare' ].includes( name ); addFilter( 'blocks.registerBlockType', @@ -147,7 +147,7 @@ const ImageControl = ( props: blockProps, screen: string ) => { className={ 'blockify-image-controls blockify-display-controls' } > { supportsAspectRatio( props?.name ) && - + }