From 5995a0f4ed136d6f398bb017b04cd152313d8e3c Mon Sep 17 00:00:00 2001 From: Ronald Huereca Date: Sun, 25 Aug 2024 23:49:20 -0500 Subject: [PATCH] Doing prod build. --- build/index.asset.php | 2 +- build/index.css | 4607 +--- build/index.css.map | 1 - build/index.js | 50596 +--------------------------------------- build/index.js.map | 1 - 5 files changed, 42 insertions(+), 55165 deletions(-) delete mode 100644 build/index.css.map delete mode 100644 build/index.js.map diff --git a/build/index.asset.php b/build/index.asset.php index 79afaad..b2c643c 100644 --- a/build/index.asset.php +++ b/build/index.asset.php @@ -1 +1 @@ - array('react', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-url'), 'version' => '9470ae8721cc410b116a'); + array('react', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-url'), 'version' => '28b2989e9163f99263b7'); diff --git a/build/index.css b/build/index.css index a6a2ce9..2250048 100644 --- a/build/index.css +++ b/build/index.css @@ -1,4569 +1,38 @@ -/*!*********************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/scss/block-backend-frontend.scss ***! - \*********************************************************************************************************************************************************************************************************************************************************************************************/ -/* - * - * photo-block-aden - * - */ -.photo-block-aden { - position: relative; - filter: hue-rotate(-20deg) contrast(0.9) saturate(0.85) brightness(1.2); - --photo-block-image-filter: hue-rotate(-20deg) contrast(.9) saturate(.85) brightness(1.2)blur(var(--photo-block-blur, 0)); -} -.photo-block-aden img { - width: 100%; - z-index: 1; -} -.photo-block-aden:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-aden:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-aden::after { - background: linear-gradient(to right, rgba(66, 10, 14, 0.2), transparent); - mix-blend-mode: darken; -} - -/* - * - * photo-block-inkwell - * - */ -.photo-block-inkwell { - position: relative; - filter: sepia(0.3) contrast(1.1) brightness(1.1) grayscale(1); - --photo-block-image-filter: sepia(.3) contrast(1.1) brightness(1.1) grayscale(1) blur(var(--photo-block-blur, 0)); -} -.photo-block-inkwell img { - width: 100%; - z-index: 1; -} -.photo-block-inkwell:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-inkwell:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} - -/* - * - * photo-block-perpetua - * - */ -.photo-block-perpetua { - position: relative; -} -.photo-block-perpetua img { - width: 100%; - z-index: 1; -} -.photo-block-perpetua:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-perpetua:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-perpetua::after { - background: linear-gradient(to bottom, rgb(0, 91, 154), rgb(230, 193, 61)); - mix-blend-mode: soft-light; - opacity: 0.5; -} - -/* - * - * photo-block-reyes - * - */ -.photo-block-reyes { - position: relative; - filter: sepia(0.22) brightness(1.1) contrast(0.85) saturate(0.75); - --photo-block-image-filter: sepia(.22) brightness(1.1) contrast(.85) saturate(.75) blur(var(--photo-block-blur, 0)); -} -.photo-block-reyes img { - width: 100%; - z-index: 1; -} -.photo-block-reyes:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-reyes:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-reyes::after { - background: rgb(239, 205, 173); - mix-blend-mode: soft-light; - opacity: 0.5; -} - -/* - * - * photo-block-gingham - * - */ -.photo-block-gingham { - position: relative; - filter: brightness(1.05) hue-rotate(-10deg); - --photo-block-image-filter: brightness(1.05) hue-rotate(-10deg) blur(var(--photo-block-blur, 0)); -} -.photo-block-gingham img { - width: 100%; - z-index: 1; -} -.photo-block-gingham:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-gingham:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-gingham::after { - background: rgb(230, 230, 250); - mix-blend-mode: soft-light; -} - -/* - * - * photo-block-toaster - * - */ -.photo-block-toaster { - position: relative; - filter: contrast(1.5) brightness(0.9); - --photo-block-image-filter: contrast(1.5) brightness(.9) blur(var(--photo-block-blur, 0)); -} -.photo-block-toaster img { - width: 100%; - z-index: 1; -} -.photo-block-toaster:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-toaster:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-toaster::after { - background: radial-gradient(circle, rgb(128, 78, 15), rgb(59, 0, 59)); - mix-blend-mode: screen; -} - -/* - * - * photo-block-walden - * - */ -.photo-block-walden { - position: relative; - filter: brightness(1.1) hue-rotate(-10deg) sepia(0.3) saturate(1.6); - --photo-block-image-filter: brightness(1.1) hue-rotate(-10deg) sepia(.3) saturate(1.6) blur(var(--photo-block-blur, 0)); -} -.photo-block-walden img { - width: 100%; - z-index: 1; -} -.photo-block-walden:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-walden:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-walden::after { - background: rgb(0, 68, 204); - mix-blend-mode: screen; - opacity: 0.3; -} - -/* - * - * photo-block-hudson - * - */ -.photo-block-hudson { - position: relative; - filter: brightness(1.2) contrast(0.9) saturate(1.1); - --photo-block-image-filter: brightness(1.2) contrast(.9) saturate(1.1) blur(var(--photo-block-blur, 0)); -} -.photo-block-hudson img { - width: 100%; - z-index: 1; -} -.photo-block-hudson:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-hudson:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-hudson::after { - background: radial-gradient(circle, rgb(166, 177, 255) 50%, rgb(52, 33, 52)); - mix-blend-mode: multiply; - opacity: 0.5; -} - -/* - * - * photo-block-earlybird - * - */ -.photo-block-earlybird { - position: relative; - filter: contrast(0.9) sepia(0.2); - --photo-block-image-filter: contrast(.9) sepia(.2) blur(var(--photo-block-blur, 0)); -} -.photo-block-earlybird img { - width: 100%; - z-index: 1; -} -.photo-block-earlybird:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-earlybird:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-earlybird::after { - background: radial-gradient(circle, rgb(208, 186, 142) 20%, rgb(54, 3, 9) 85%, rgb(29, 2, 16) 100%); - mix-blend-mode: overlay; -} - -/* - * - * photo-block-mayfair - * - */ -.photo-block-mayfair { - position: relative; - filter: contrast(1.1) saturate(1.1); - --photo-block-image-filter: contrast(1.1) saturate(1.1) blur(var(--photo-block-blur, 0)); -} -.photo-block-mayfair img { - width: 100%; - z-index: 1; -} -.photo-block-mayfair:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-mayfair:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-mayfair::after { - background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.8), rgba(255, 200, 200, 0.6), rgb(17, 17, 17) 60%); - mix-blend-mode: overlay; - opacity: 0.4; -} - -/* - * Lo-fi - * - */ -.photo-block-lofi { - position: relative; - filter: saturate(1.1) contrast(1.5); - --photo-block-image-filter: saturate(1.1) contrast(1.5) blur(var(--photo-block-blur, 0)); -} -.photo-block-lofi img { - width: 100%; - z-index: 1; -} -.photo-block-lofi:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-lofi:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-lofi::after { - background: radial-gradient(circle, transparent 70%, rgb(34, 34, 34) 150%); - mix-blend-mode: multiply; -} - -/* - * 1977 - * - */ -.photo-block-1977 { - position: relative; - filter: contrast(1.1) brightness(1.1) saturate(1.3); - --photo-block-image-filter: contrast(1.1) brightness(1.1) saturate(1.3) blur(var(--photo-block-blur, 0)); -} -.photo-block-1977 img { - width: 100%; - z-index: 1; -} -.photo-block-1977:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-1977:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-1977:after { - background: rgba(243, 106, 188, 0.3); - mix-blend-mode: screen; -} - -/* - * - * photo-block-brooklyn - * - */ -.photo-block-brooklyn { - position: relative; - filter: contrast(0.9) brightness(1.1); - --photo-block-image-filter: contrast(.9) brightness(1.1) blur(var(--photo-block-blur, 0)); -} -.photo-block-brooklyn img { - width: 100%; - z-index: 1; -} -.photo-block-brooklyn:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-brooklyn:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-brooklyn::after { - background: radial-gradient(circle, rgba(168, 223, 193, 0.4) 70%, rgb(196, 183, 200)); - mix-blend-mode: overlay; -} - -/* - * - * X-Pro II - * - */ -.photo-block-xpro2 { - position: relative; - filter: sepia(0.3); - --photo-block-image-filter: sepia(.3) blur(var(--photo-block-blur, 0)); -} -.photo-block-xpro2 img { - width: 100%; - z-index: 1; -} -.photo-block-xpro2:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-xpro2:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-xpro2::after { - background: radial-gradient(circle, rgb(230, 231, 224) 40%, rgba(43, 42, 161, 0.6) 110%); - mix-blend-mode: color-burn; -} - -/* - * - * photo-block-nashville - * - */ -.photo-block-nashville { - position: relative; - filter: sepia(0.2) contrast(1.2) brightness(1.05) saturate(1.2); - --photo-block-image-filter: sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2) blur(var(--photo-block-blur, 0)); -} -.photo-block-nashville img { - width: 100%; - z-index: 1; -} -.photo-block-nashville:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-nashville:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-nashville::after { - background: rgba(0, 70, 150, 0.4); - mix-blend-mode: lighten; -} -.photo-block-nashville::before { - background: rgba(247, 176, 153, 0.56); - mix-blend-mode: darken; -} - -/* - * photo-block-lark - * - */ -.photo-block-lark { - position: relative; - filter: contrast(0.9); - --photo-block-image-filter: contrast(.9) blur(var(--photo-block-blur, 0)); -} -.photo-block-lark img { - width: 100%; - z-index: 1; -} -.photo-block-lark:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-lark:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-lark::after { - background: rgba(242, 242, 242, 0.8); - mix-blend-mode: darken; -} -.photo-block-lark::before { - background: rgb(34, 37, 63); - mix-blend-mode: color-dodge; -} - -/* - * photo-block-moon - * - */ -.photo-block-moon { - position: relative; - filter: grayscale(1) contrast(1.1) brightness(1.1); - --photo-block-image-filter: grayscale(1) contrast(1.1) brightness(1.1) blur(var(--photo-block-blur, 0)); -} -.photo-block-moon img { - width: 100%; - z-index: 1; -} -.photo-block-moon:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-moon:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-moon::before { - background: rgb(160, 160, 160); - mix-blend-mode: soft-light; -} -.photo-block-moon::after { - background: rgb(56, 56, 56); - mix-blend-mode: lighten; -} - -/* - * photo-block-clarendon - * - */ -.photo-block-clarendon { - position: relative; - filter: contrast(1.2) saturate(1.35); - --photo-block-image-filter: contrast(1.2) saturate(1.35) blur(var(--photo-block-blur, 0)); -} -.photo-block-clarendon img { - width: 100%; - z-index: 1; -} -.photo-block-clarendon:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-clarendon:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-clarendon:before { - background: rgba(127, 187, 227, 0.2); - mix-blend-mode: overlay; -} - -/* - * photo-block-willow - * - */ -.photo-block-willow { - position: relative; - filter: grayscale(0.5) contrast(0.95) brightness(0.9); - --photo-block-image-filter: grayscale(.5) contrast(.95) brightness(.9) blur(var(--photo-block-blur, 0)); -} -.photo-block-willow img { - width: 100%; - z-index: 1; -} -.photo-block-willow:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-willow:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-willow::before { - background-color: radial-gradient(40%, circle, rgb(212, 169, 175) 55%, black 150%); - mix-blend-mode: overlay; -} -.photo-block-willow::after { - background-color: rgb(216, 205, 203); - mix-blend-mode: color; -} - -/* - * - * photo-block-rise - * - */ -.photo-block-rise { - position: relative; - filter: brightness(1.05) sepia(0.2) contrast(0.9) saturate(0.9); - --photo-block-image-filter: brightness(1.05) sepia(.2) contrast(.9) saturate(.9) blur(var(--photo-block-blur, 0)); -} -.photo-block-rise img { - width: 100%; - z-index: 1; -} -.photo-block-rise:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-rise:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-rise::after { - background: radial-gradient(circle, rgba(232, 197, 152, 0.8), transparent 90%); - mix-blend-mode: overlay; - opacity: 0.6; -} -.photo-block-rise::before { - background: radial-gradient(circle, rgba(236, 205, 169, 0.15) 55%, rgba(50, 30, 7, 0.4)); - mix-blend-mode: multiply; -} - -/* - * - * photo-block-slumber - * - */ -.photo-block-slumber { - position: relative; - filter: saturate(0.66) brightness(1.05); - --photo-block-image-filter: saturate(.66) brightness(1.05) blur(var(--photo-block-blur, 0)); -} -.photo-block-slumber img { - width: 100%; - z-index: 1; -} -.photo-block-slumber:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-slumber:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-slumber::after { - background: rgba(125, 105, 24, 0.5); - mix-blend-mode: soft-light; -} -.photo-block-slumber::before { - background: rgba(69, 41, 12, 0.4); - mix-blend-mode: lighten; -} - -/* - * - * photo-block-brannan - * - */ -.photo-block-brannan { - position: relative; - filter: sepia(0.5) contrast(1.4); - --photo-block-image-filter: sepia(0.5) contrast(1.4) blur(var(--photo-block-blur, 0)); -} -.photo-block-brannan img { - width: 100%; - z-index: 1; -} -.photo-block-brannan:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-brannan:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-brannan::after { - background-color: rgba(161, 44, 199, 0.31); - mix-blend-mode: lighten; -} - -/* - * - * photo-block-valencia - * - */ -.photo-block-valencia { - position: relative; - filter: contrast(1.08) brightness(1.08) sepia(0.08); - --photo-block-image-filter: contrast(1.08) brightness(1.08) sepia(0.08) blur(var(--photo-block-blur, 0)); -} -.photo-block-valencia img { - width: 100%; - z-index: 1; -} -.photo-block-valencia:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-valencia:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-valencia::after { - background: rgb(58, 3, 57); - mix-blend-mode: exclusion; - opacity: 0.5; -} - -/* - * photo-block-kelvin - * - */ -.photo-block-kelvin { - position: relative; -} -.photo-block-kelvin img { - width: 100%; - z-index: 1; -} -.photo-block-kelvin:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-kelvin:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-kelvin::after { - background: rgb(183, 125, 33); - mix-blend-mode: overlay; -} -.photo-block-kelvin::before { - background: rgb(56, 44, 52); - mix-blend-mode: color-dodge; -} - -/* - * - * photo-block-maven - * - */ -.photo-block-maven { - position: relative; - filter: sepia(0.25) brightness(0.95) contrast(0.95) saturate(1.5); - --photo-block-image-filter: sepia(.25) brightness(.95) contrast(.95) saturate(1.5) blur(var(--photo-block-blur, 0)); -} -.photo-block-maven img { - width: 100%; - z-index: 1; -} -.photo-block-maven:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-maven:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-maven:after { - background: rgba(3, 230, 26, 0.2); - mix-blend-mode: hue; -} - -/* - * - * photo-block-stinson - * - */ -.photo-block-stinson { - position: relative; - filter: contrast(0.75) saturate(0.85) brightness(1.15); - --photo-block-image-filter: contrast(0.75) saturate(0.85) brightness(1.15) blur(var(--photo-block-blur, 0)); -} -.photo-block-stinson img { - width: 100%; - z-index: 1; -} -.photo-block-stinson:before { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.photo-block-stinson:after { - content: ""; - display: block; - height: 100%; - width: 100%; - top: 0; - left: 0; - position: absolute; - pointer-events: none; - z-index: 3; -} -.photo-block-stinson::before { - background: rgba(240, 149, 128, 0.2); - mix-blend-mode: soft-light; -} - -@keyframes photo-block-spin { - 100% { - transform: rotate(360deg); - } -} -/** - * Base Figure styles. - */ -.wp-block.dlx-photo-block { - margin-top: 0; - margin-bottom: 0; -} - -.dlx-photo-block__image-wrapper a { - line-height: 0; - display: inline-flex; -} - -.dlx-photo-block__figure, -.dlx-photo-block__screen-edit-image-wrapper { - position: relative; - display: flex; - flex-wrap: wrap; - flex-direction: column; - align-items: center; -} - -.dlx-photo-block__image { - box-sizing: border-box; -} - -.dlx-photo-block__figure > .dlx-photo-block__caption { - width: 100%; -} - -figcaption.dlx-photo-block__caption { - position: relative; - z-index: 2; /* this is to make sure the caption is on top of the overlay */ - box-sizing: border-box; - font-style: var(--photo-block__caption-font-style, normal); -} - -.dlx-photo-block__caption-wrapper .dlx-photo-block__caption-overlay figcaption.dlx-photo-block__caption { - display: flex; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} - -figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner { - align-items: center; -} -figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner.aligncenter { - justify-content: center; -} -figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner.alignleft { - justify-content: flex-start; -} -figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner.alignright { - justify-content: flex-end; -} -figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner > em, -figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner > strong, -figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner > a, -figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner > sub, -figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner > sup, -figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner > s, -figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner > code, -figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner > span { - flex-shrink: 0; -} - -/** - * Smart Styles. - */ -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner { - font-size: var(--photo-block__caption-font-size); - font-style: var(--photo-block__caption-font-style, normal); - /* Strip Margin and padding from first and last elements */ - /* if first and only paragraph child */ - /* Set color for common elements */ - /* Set font family / size for common elements.*/ - /* Add a little bit of margin left to the list items. - * This is to make the list items look like they are - * indented. */ - /* Set font family / size for heading elements.*/ - /* Set margins for common elements */ - /* Set Button Styles */ - /* Get child block that might have text alignment */ -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner > :first-child { - margin-top: 0; - padding-top: 0; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner > :last-child { - margin-bottom: 0; - padding-bottom: 0; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner > p:nth-child(1) { - margin-top: 0; - padding-top: 0; - margin-bottom: 0; - padding-bottom: 0; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block { - margin-left: unset; - margin-right: unset; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner p, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h1, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h2, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h3, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h4, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h5, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h6, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner blockquote, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner cite, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner ul, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner li, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-verse { - color: var(--photo-block__caption-text-color); -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner p a, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h1 a, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h2 a, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h3 a, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h4 a, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h5 a, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h6 a, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner blockquote a, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner cite a, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner ul a, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner li a, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-verse a { - color: var(--photo-block-caption-link-color); -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner p a:hover, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h1 a:hover, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h2 a:hover, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h3 a:hover, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h4 a:hover, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h5 a:hover, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h6 a:hover, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner blockquote a:hover, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner cite a:hover, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner ul a:hover, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner li a:hover, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-verse a:hover { - color: var(--photo-block-caption-link-color-hover); -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner p, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner li, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-verse { - font-family: var(--photo-block-caption-font-family); - font-size: 1.25em; - line-height: 1.35; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner blockquote { - font-size: var(--photo-block-caption-font-size); -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner blockquote p { - font-family: var(--photo-block-caption-font-family); - font-size: 1.3em; - line-height: 1.35; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner blockquote cite { - font-family: var(--photo-block-caption-font-family); - font-size: 1.5em; - line-height: 1.4; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner li { - margin-left: 1.5em; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h1 { - font-family: var(--photo-block-caption-headings-font-family); - font-size: 2.5em; - line-height: 1.2; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h2 { - font-family: var(--photo-block-caption-headings-font-family); - font-size: 2em; - line-height: 1.25; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h3 { - font-family: var(--photo-block-caption-headings-font-family); - font-size: 1.75em; - line-height: 1.3; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h4 { - font-family: var(--photo-block-caption-headings-font-family); - font-size: 1.5em; - line-height: 1.35; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h5 { - font-family: var(--photo-block-caption-headings-font-family); - font-size: 1.25em; - line-height: 1.4; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h6 { - font-family: var(--photo-block-caption-headings-font-family); - font-size: 1.1em; - line-height: 1.45; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner p, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner li { - margin-top: 0; - margin-bottom: 0.6em; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h1, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h2, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h3, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h4, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h5, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h6 { - margin-top: 0; - margin-bottom: 0.8em; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-button { - font-size: var(--photo-block-caption-font-size); -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner button, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-button .wp-element-button { - font-family: var(--photo-block-caption-font-family); - font-size: 1.25em; - line-height: 1.35; - background: var(--photo-block-caption-link-color); - color: var(--photo-block-caption-link-color-hover); - transition: all 0.3s ease-in-out; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner button:hover, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-button .wp-element-button:hover { - background: var(--photo-block-caption-link-color); - color: var(--photo-block-caption-link-color-hover); -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner button, -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-button { - margin-bottom: 0.6em; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-button:has(.has-text-align-center) { - margin: 0 auto; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-button:has(.has-text-align-right) { - margin-left: auto; -} -figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-button:has(.has-text-align-left) { - margin-right: auto; -} - -/* Container Styles on the frontend */ -.dlx-photo-block__container { - position: relative; - display: flex; -} -.dlx-photo-block__container.alignleft { - justify-content: flex-start; -} -.dlx-photo-block__container.alignright { - justify-content: flex-end; -} -.dlx-photo-block__container.aligncenter { - justify-content: center; -} -.dlx-photo-block__container.alignwide { - justify-content: center; -} -.dlx-photo-block__container.alignfull { - justify-content: center; -} - -/** Block Editor Styles */ -.alignleft .dlx-photo-block__container { - justify-content: flex-start; -} - -.alignright .dlx-photo-block__container { - justify-content: flex-end; -} - -.aligncenter .dlx-photo-block__container { - justify-content: center; -} - -.alignwide .dlx-photo-block__container { - justify-content: center; -} - -.alignfull .dlx-photo-block__container { - justify-content: center; -} - -/** - * Caption Overlay Styles. - */ -.dlx-photo-block__image-wrapper, -.dlx-photo-block-caption-wrapper { - position: relative; -} - -.dlx-photo-block__image-wrapper { - display: inline-flex; - justify-content: center; - background-color: var(--photo-block-photo-background-color); - width: var(--photo-block-image-width); - height: var(--photo-block-image-height); - min-width: var(--photo-block-image-min-width); - min-height: var(--photo-block-image-min-height); - max-width: var(--photo-block-image-max-width); - max-height: var(--photo-block-image-max-height); - border-radius: var(--photo-block-photo-border-radius); - margin: var(--photo-block-image-margin, 0); - box-sizing: border-box; -} - -.dlx-photo-block__image-wrapper img { - opacity: var(--photo-block-image-opacity, 1); - -o-object-fit: var(--photo-block-image-object-fit, unset); - object-fit: var(--photo-block-image-object-fit, unset); - filter: var(--photo-block-image-filter, unset); - -o-object-position: var(--photo-block-image-object-position, center); - object-position: var(--photo-block-image-object-position, center); - padding: var(--photo-block-image-padding, 0); - border-radius: var(--photo-block-photo-border-radius, 0); - border-top: var(--photo-block-image-border-top, 0); - border-right: var(--photo-block-image-border-right, 0); - border-bottom: var(--photo-block-image-border-bottom, 0); - border-left: var(--photo-block-image-border-left, 0); -} - -.dlx-photo-block__caption-wrapper.overlay-display-hover:before { - display: none; -} - -.dlx-caption-position-overlay .dlx-photo-block__image-wrapper { - position: relative; - display: inline-flex; - box-sizing: border-box; - padding: var(--photo-block-image-padding, 0); - margin: var(--photo-block-image-margin, 0); - border-radius: var(--photo-block-photo-border-radius, 0); - border-top: var(--photo-block-image-border-top, 0); - border-right: var(--photo-block-image-border-right, 0); - border-bottom: var(--photo-block-image-border-bottom, 0); - border-left: var(--photo-block-image-border-left, 0); - box-shadow: var(--photo-block-image-drop-shadow-horizontal, 0) var(--photo-block-image-drop-shadow-vertical, 0) var(--photo-block-image-drop-shadow-blur, 0) var(--photo-block-image-drop-shadow-spread, 0) var(--photo-block-image-drop-shadow-color, #000000); -} - -.dlx-photo-block__screen-edit-image-inner { - position: relative; - display: inline-flex; -} - -.dlx-photo-block__image-wrapper img { - max-width: 100%; - height: auto; -} - -.dlx-caption-position-overlay .dlx-photo-block__image-wrapper img { - padding: unset; - margin: unset; - border-radius: var(--photo-block-photo-border-radius, var(--photo-block-photo-border-radius, unset)); - border-top: unset; - border-right: unset; - border-bottom: unset; - border-left: unset; - max-width: 100%; - height: auto; -} - -.dlx-photo-block__figure { - margin: var(--photo-block-figure-margin, 0); - width: 100%; -} - -.dlx-photo-block.dlx-has-drop-shadow img { - box-sizing: border-box; - box-shadow: var(--photo-block-image-drop-shadow-horizontal, 0) var(--photo-block-image-drop-shadow-vertical, 0) var(--photo-block-image-drop-shadow-blur, 0) var(--photo-block-image-drop-shadow-spread, 0) var(--photo-block-image-drop-shadow-color, #000000); -} - -.dlx-caption-position-overlay.dlx-photo-block.dlx-has-drop-shadow img { - box-shadow: unset; -} - -.dlx-photo-block__caption-wrapper { - box-sizing: border-box; - position: relative; - width: 100%; -} - -.dlx-photo-block__caption--has-overlay { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} -.dlx-photo-block__caption--has-overlay .dlx-photo-caption-block { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - margin-top: 0; - margin-right: 0; - margin-bottom: 0; - margin-left: 0; -} -.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper { - position: absolute; - width: 100%; - height: 100%; -} -.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover .dlx-photo-block__caption-overlay, -.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover:hover .dlx-photo-block__caption-overlay { - transition: all 0.5s ease-in-out; -} -.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover .dlx-photo-block__caption-overlay { - opacity: 0; -} -.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover:hover .dlx-photo-block__caption-overlay { - opacity: 1; -} -.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-down .dlx-photo-block__caption-overlay { - height: 0; - overflow: hidden; -} -.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-down:hover .dlx-photo-block__caption-overlay { - height: 100%; -} -.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-up .dlx-photo-block__caption-overlay { - top: unset; - bottom: 0; - height: 0; - overflow: hidden; -} -.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-up:hover .dlx-photo-block__caption-overlay { - height: 100%; -} -.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-left .dlx-photo-block__caption-overlay { - left: unset; - right: 0; - width: 0; - overflow: hidden; -} -.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-left:hover .dlx-photo-block__caption-overlay { - width: 100%; -} -.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-right .dlx-photo-block__caption-overlay { - right: unset; - left: 0; - width: 0; - overflow: hidden; -} -.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-right:hover .dlx-photo-block__caption-overlay { - width: 100%; -} - -.dlx-photo-block__caption--has-overlay figcaption { - display: flex; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} -.dlx-photo-block__caption--has-overlay figcaption .dlx-photo-block__caption-inner { - display: flex; - flex-direction: column; -} -.dlx-photo-block__caption--has-overlay .overlay-vertical-middle figcaption { - align-items: center; -} -.dlx-photo-block__caption--has-overlay .overlay-vertical-top figcaption { - align-items: flex-start; -} -.dlx-photo-block__caption--has-overlay .overlay-vertical-bottom figcaption { - align-items: flex-end; -} -.dlx-photo-block__caption--has-overlay .overlay-horizontal-center figcaption { - justify-content: center; -} -.dlx-photo-block__caption--has-overlay .overlay-horizontal-left figcaption { - justify-content: flex-start; -} -.dlx-photo-block__caption--has-overlay .overlay-horizontal-right figcaption { - justify-content: flex-end; -} -.dlx-photo-block__caption--has-overlay .caption-vertical-middle figcaption .dlx-photo-block__caption-inner { - justify-content: center; -} -.dlx-photo-block__caption--has-overlay .caption-vertical-top figcaption .dlx-photo-block__caption-inner { - justify-content: flex-start; -} -.dlx-photo-block__caption--has-overlay .caption-vertical-bottom figcaption .dlx-photo-block__caption-inner { - justify-content: flex-end; -} -.dlx-photo-block__caption--has-overlay .caption-horizontal-center figcaption .dlx-photo-block__caption-inner { - align-items: center; - text-align: center; -} -.dlx-photo-block__caption--has-overlay .caption-horizontal-left figcaption .dlx-photo-block__caption-inner { - align-items: flex-start; - text-align: left; -} -.dlx-photo-block__caption--has-overlay .caption-horizontal-right figcaption .dlx-photo-block__caption-inner { - align-items: flex-end; - text-align: right; -} - -.dlx-photo-block__caption-wrapper figcaption.dlx-photo-block__caption { - display: flex; - box-sizing: border-box; - margin-block: 0; - /* Set color for Text elements */ - color: var(--photo-block-caption-text-color, inherit); - font-family: var(--photo-block-caption-font-family, inherit); - font-size: var(--photo-block-caption-font-size, inherit); - font-weight: var(--photo-block-caption-font-weight, inherit); - line-height: var(--photo-block-caption-line-height, inherit); - text-transform: var(--photo-block-caption-text-transform, inherit); - letter-spacing: var(--photo-block-caption-letter-spacing, inherit); - text-align: var(--photo-block-caption-text-align, center); -} -.dlx-photo-block__caption-wrapper figcaption.dlx-photo-block__caption a { - color: var(--photo-block-caption-link-color, inherit); -} -.dlx-photo-block__caption-wrapper figcaption.dlx-photo-block__caption a:hover { - color: var(--photo-block-caption-link-color-hover, inherit); -} - -.dlx-photo-caption-block__inner-blocks { - z-index: 20; -} - -.dlx-photo-block__caption-wrapper figcaption.dlx-photo-block__caption .dlx-photo-block__caption-inner { - box-sizing: border-box; - width: var(--photo-block-caption-width, 100%); - height: var(--photo-block-caption-height, unset); - min-width: var(--photo-block-caption-min-width, unset); - min-height: var(--photo-block-caption-min-height, unset); - max-width: var(--photo-block-caption-max-width, unset); - max-height: var(--photo-block-caption-max-height, unset); - background: var(--photo-block-caption-background-color); - padding: var(--photo-block-caption-padding, 0); - margin: var(--photo-block-caption-margin, 0); - border-radius: var(--photo-block-caption-border-radius, 0); - border-top: var(--photo-block-caption-border-top, 0); - border-right: var(--photo-block-caption-border-right, 0); - border-bottom: var(--photo-block-caption-border-bottom, 0); - border-left: var(--photo-block-caption-border-left, 0); - z-index: 10; -} - -.dlx-photo-caption-block.wp-block { - margin-top: 0; - margin-right: 0; - margin-bottom: 0; - margin-left: 0; -} - -.dlx-photo-block__caption-wrapper .aligncenter .dlx-photo-block__caption-inner { - justify-content: center; -} - -.dlx-photo-block__caption-wrapper .alignleft .dlx-photo-block__caption-inner { - justify-content: flex-start; -} - -.dlx-photo-block__caption-wrapper .alignright .dlx-photo-block__caption-inner { - justify-content: flex-end; -} - -.dlx-photo-block__caption-overlay { - box-sizing: border-box; - border-top: var(--photo-block-caption-border-top, 0); - border-right: var(--photo-block-caption-border-right, 0); - border-bottom: var(--photo-block-caption-border-bottom, 0); - border-left: var(--photo-block-caption-border-left, 0); - overflow: hidden; -} - -.dlx-photo-block__caption-overlay:before { - transition: background 0.35s ease-in-out; - display: block; - content: ""; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 1; - background: var(--photo-block-caption-overlay-background-color); - border-radius: var(--photo-block-caption-overlay-border-radius, 0); -} - -.dlx-photo-block__caption-wrapper:hover figcaption:before { - background: var(--photo-block-caption-overlay-background-color-hover); -} - -.dlx-photo-block__caption-overlay.overlay-type-gradient figcaption:before { - transition: opacity 0.35s ease-in-out; - display: block; - content: ""; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 1; - background-image: var(--photo-block-caption-overlay-background-gradient); - opacity: var(--photo-block-caption-overlay-background-gradient-opacity); -} - -.dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-type-gradient:hover figcaption:before { - transition: opacity 0.35s ease-in-out; - display: block; - content: ""; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 1; - background-image: var(--photo-block-caption-overlay-background-gradient); - opacity: var(--photo-block-caption-overlay-background-gradient-opacity); -} - -.dlx-photo-block__caption-overlay.overlay-type-gradient:hover:before { - opacity: var(--photo-block-caption-overlay-background-gradient-opacity-hover); -} - -.dlx-photo-block__caption-overlay.overlay-type-image figcaption:before { - transition: opacity 0.35s ease-in-out; - display: block; - content: ""; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 1; - background-color: var(--photo-block-caption-overlay-background-image-color); - background-image: var(--photo-block-caption-overlay-background-image-url, unset); - background-position: var(--photo-block-caption-overlay-background-image-position, center); - background-repeat: var(--photo-block-caption-overlay-background-image-repeat, no-repeat); - background-size: var(--photo-block-caption-overlay-background-size, cover); - opacity: var(--photo-block-caption-overlay-background-image-opacity, 1); -} - -.dlx-photo-block__caption-overlay.overlay-type-image:hover figcaption:before { - opacity: var(--photo-block-caption-overlay-background-image-opacity-hover); -} - -/* Set a min-width for the photo container */ -.wp-block .filepond--wrapper, -.dlx-photo-block__block-wrapper { - justify-content: center; - margin: 0 auto; -} - -.is-layout-small .dlx-photo-block__upload-types__container { - display: flex; - flex-wrap: wrap; - justify-content: center; - row-gap: 15px; -} -.is-layout-small .dlx-photo-block__upload-types__container button { - width: 100%; - margin-right: 0 !important; - justify-content: center !important; -} -.is-layout-small .dlx-photo-block__upload-target__container { - display: none !important; -} -.is-layout-small .dlx-photo-block__upload-types-url__container { - display: grid; - grid-template-columns: 1fr; -} - -.dlx-photo-block__screen-initial { - width: 100%; - max-width: 800px; - border: 1px solid #333; - padding: 35px; -} - -.dlx-photo-block__image:not(.has-css-gram) { - filter: blur(var(--photo-block-blur, 0)); -} - -/* Hide on Desktop */ -@media (max-width: 768px) { - .dlx-photo-block__container.hide-on-mobile { - display: none; - } -} - -@media (min-width: 769px) { - .dlx-photo-block__container.hide-on-desktop { - display: none; - } -} - -@media (min-width: 769px) and (max-width: 1024px) { - .dlx-photo-block__container.hide-on-tablet { - display: none; - } -} - -@media (max-width: 768px) { - .dlx-photo-block__caption-wrapper.hide-on-mobile { - display: none; - } -} - -@media (min-width: 769px) { - .dlx-photo-block__caption-wrapper.hide-on-desktop { - display: none; - } -} - -@media (min-width: 769px) and (max-width: 1024px) { - .dlx-photo-block__caption-wrapper.hide-on-tablet { - display: none; - } -} -/*!*******************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/blocks/photo-block/editor.scss ***! - \*******************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__container { - font-size: 16px; -} - -.block-editor-block-icon svg.lucide, -svg.lucide { - fill: none; - color: currentColor; -} -.block-editor-block-icon svg.lucide *, -svg.lucide * { - color: currentColor; -} - -.dlx-photo-block__container .PinturaRootWrapper { - height: 100vh; - max-height: 650px; -} -.dlx-photo-block__container button.PinturaButton.PinturaButtonExport { - box-shadow: unset; - background: var(--wp-admin-theme-color); - color: #fff; - font-size: 16px; - font-weight: 600; -} -.dlx-photo-block__container .PinturaRoot .PinturaStage { - min-width: 80%; - max-width: 80%; - width: 100%; - align-self: center; -} -.dlx-photo-block__container .PinturaUtilMain { - justify-content: center; - align-items: center; -} -.dlx-photo-block__container .PinturaUtilMain > div { - width: 100%; -} - -.dlx-screen-initial .dlx-photo-block__container { - padding: 15px; - padding-right: 25px; -} -/*!***********************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/UploadTypes/editor.scss ***! - \***********************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__upload-types__container button.components-button { - margin-right: 8px; -} -.dlx-photo-block__upload-types__container button.components-button.has-icon { - padding: 15px 20px; -} -.dlx-photo-block__upload-types__container button.components-button:last-of-type { - margin-right: 0; -} -.dlx-photo-block__upload-types__container button.dlx-photo-block__upload-types__back.components-button { - color: #FFF; -} - -.dlx-photo-block__upload-types-url__container { - display: grid; - grid-template-columns: 1fr 75px 75px; - grid-gap: 8px; -} -.dlx-photo-block__upload-types-url__container input[type=url] { - display: inline-block; - min-height: 40px; -} -.dlx-photo-block__upload-types-url__container label { - position: absolute; - left: -9999px; - clip: rect(0 0 0 0); -} -.dlx-photo-block__upload-types-url__container button.components-button { - margin-right: 8px; - min-width: unset; - height: 30px; - margin-left: 4px; - padding-left: 15px; - padding-right: 15px; - width: 100%; -} -.dlx-photo-block__upload-types-url__container button.components-button.has-icon { - padding: 20px 20px; -} -.dlx-photo-block__upload-types-url__container button.components-button.dlx-photo-block__upload-types-url__upload { - color: #FFFFFF; -} -.dlx-photo-block__upload-types-url__container button.components-button:last-of-type { - margin-right: 0; -} -.dlx-photo-block__upload-types-url__container button.components-button.is-url-saving svg { - animation: photo-block-spin 1s linear infinite; -} -/*!******************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/Notice/editor.scss ***! - \******************************************************************************************************************************************************************************************************************************************************************************************/ -:root { - --photo-block-admin--color-notice--info: #e3f3f7; - --photo-block-admin--color-notice--info-alt: #3a8dc4; - --photo-block-admin--color-notice--success: #eaf5ea; - --photo-block-admin--color-notice--success-alt: #49a939; - --photo-block-admin--color-notice--warning: #fef6e1; - --photo-block-admin--color-notice--warning-alt: #e8a931; - --photo-block-admin--color-notice--error: #f5e5e4; - --photo-block-admin--color-notice--error-alt: #bc2b2c; - --photo-block-admin--color-notice--secondary: #e2e3e5; - --photo-block-admin--color-notice--secondary-alt: #41464b; -} - -.photo-block-admin__notice { - margin: 10px 0; -} -.photo-block-admin__notice.photo-block-admin__notice--photo-block-icon .components-notice__content { - display: grid; - grid-template-columns: 32px 1fr 1px; - align-items: center; -} -.photo-block-admin__notice.photo-block-admin__notice--photo-block-icon.photo-block-admin__notice-appearance--inline .components-notice__content { - display: flex; -} -.photo-block-admin__notice.photo-block-admin__notice--photo-block-icon.photo-block-admin__notice-appearance--inline .components-notice__content .photo-block-admin__notice-icon { - margin-right: 8px; -} -.photo-block-admin__notice .photo-block-admin__notice-message { - color: var(--photo-block-admin--color-dark); - font-size: 1.1em; - line-height: 1.2; - font-weight: 500; -} -.photo-block-admin__notice.photo-block-admin__notice-appearance--block .components-notice { - border-left: 4px solid transparent; - padding: 15px 0px; - padding-left: 15px; - margin: 0 0 15px 0; -} -.photo-block-admin__notice.photo-block-admin__notice-appearance--inline .components-notice { - padding-left: 0; -} -.photo-block-admin__notice svg { - display: flex; - align-items: center; - width: 20px; - height: 20px; -} -.photo-block-admin__notice.photo-block-admin__notice-type--error:not(.photo-block-admin__notice-appearance--inline) { - background-color: var(--photo-block-admin--color-notice--error) !important; -} -.photo-block-admin__notice.photo-block-admin__notice-type--error:not(.photo-block-admin__notice-appearance--inline) .components-notice { - background-color: var(--photo-block-admin--color-notice--error) !important; - border-left-color: var(--photo-block-admin--color-notice--error-alt); -} -.photo-block-admin__notice.photo-block-admin__notice-type--error:not(.photo-block-admin__notice-appearance--inline) svg path { - fill: var(--photo-block-admin--color-notice--error-alt); -} -.photo-block-admin__notice.photo-block-admin__notice-type--error.photo-block-admin__notice-appearance--inline .photo-block-admin__notice-message { - color: var(--photo-block-admin--color-notice--error-alt); -} -.photo-block-admin__notice.photo-block-admin__notice-type--error.photo-block-admin__notice-appearance--inline .photo-block-admin__notice-message { - font-size: 0.9em; -} -.photo-block-admin__notice.photo-block-admin__notice-type--error.photo-block-admin__notice-appearance--inline svg { - width: 16px; - height: 16px; -} -.photo-block-admin__notice.photo-block-admin__notice-type--error.photo-block-admin__notice-appearance--inline svg path { - fill: var(--photo-block-admin--color-notice--error-alt); -} -.photo-block-admin__notice.photo-block-admin__notice-type--success { - background-color: var(--photo-block-admin--color-notice--success); -} -.photo-block-admin__notice.photo-block-admin__notice-type--success .components-notice { - border-left-color: var(--photo-block-admin--color-notice--success-alt); -} -.photo-block-admin__notice.photo-block-admin__notice-type--success svg path { - fill: var(--photo-block-admin--color-notice--success-alt); -} -.photo-block-admin__notice.photo-block-admin__notice-type--info { - background-color: var(--photo-block-admin--color-notice--info); -} -.photo-block-admin__notice.photo-block-admin__notice-type--info .components-notice { - border-left-color: var(--photo-block-admin--color-notice--info-alt); -} -.photo-block-admin__notice.photo-block-admin__notice-type--info svg path { - fill: var(--photo-block-admin--color-notice--info-alt); -} -.photo-block-admin__notice.photo-block-admin__notice-type--warning { - background-color: var(--photo-block-admin--color-notice--warning); -} -.photo-block-admin__notice.photo-block-admin__notice-type--warning .components-notice { - border-left-color: var(--photo-block-admin--color-notice--warning-alt); -} -.photo-block-admin__notice.photo-block-admin__notice-type--warning svg path { - fill: var(--photo-block-admin--color-notice--warning-alt); -} -/*!************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/UploadTarget/editor.scss ***! - \************************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__upload-target__container { - position: relative; - display: flex; - justify-content: center; - align-items: center; - min-height: 250px; - width: 100%; - border: 4px dashed #c3c4c7; - margin-top: 15px; -} -.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__label { - display: flex; - justify-content: center; - align-items: center; - flex-wrap: wrap; -} -.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__label-svg { - margin-bottom: 15px; -} -.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__label-svg svg { - height: 36px; - width: 36px; -} -.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__label-text { - width: 100%; - text-align: center; - font-size: 1.2em; -} -.dlx-photo-block__upload-target__container .filepond--browser { - display: none; -} -.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__filepond { - display: flex; - position: absolute; - justify-content: center; - align-items: center; - z-index: 1; - width: 100%; - height: 100%; -} -.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__filepond__loading-overlay { - position: absolute; - z-index: 2; - width: 100%; - height: 100%; - background: rgba(255, 255, 255, 0.8); - display: flex; - flex-flow: column; - flex-wrap: wrap; - justify-content: center; - align-items: center; -} -.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__filepond__loading { - display: flex; - width: 100%; - justify-content: center; - margin-bottom: 15px; -} -.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__filepond__loading svg { - width: 36px; - height: 36px; -} -.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__filepond__loading-label { - margin-bottom: 15px; - font-size: 1.3em; -} -.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__filepond__loading-progress { - display: inline-flex; - justify-content: flex-start; - align-items: center; - min-width: 420px; - background: #ddd; - height: 12px; - border-radius: 5px; - padding: 0 3px; - transition: all 0.5s ease-in-out; -} -.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__filepond__loading-progress-bar { - background: var(--wp-admin-theme-color, #007cba); - height: 5px; - border-radius: 5px; -} -.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__label { - position: relative; - z-index: 2; - pointer-events: none; -} -.dlx-photo-block__upload-target__container .filepond--wrapper { - position: absolute; - width: 100%; - height: 100%; -} -.dlx-photo-block__upload-target__container .filepond--drop-label { - position: absolute; - cursor: pointer; - width: 100%; - height: 100%; -} -.dlx-photo-block__upload-target__container ul.filepond--list { - margin: 0; - padding: 0; - list-style-type: none; - background: #FFF; -} -/*!***************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./node_modules/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css ***! - \***************************************************************************************************************************************************************************************************************************************/ -/*! - * FilePondPluginImagePreview 4.6.12 - * Licensed under MIT, https://opensource.org/licenses/MIT/ - * Please visit https://pqina.nl/filepond/ for details. - */ - -/* eslint-disable */ -.filepond--image-preview-markup { - position: absolute; - left: 0; - top: 0; -} -.filepond--image-preview-wrapper { - z-index: 2; -} -.filepond--image-preview-overlay { - display: block; - position: absolute; - left: 0; - top: 0; - width: 100%; - min-height: 5rem; - max-height: 7rem; - margin: 0; - opacity: 0; - z-index: 2; - pointer-events: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; -} -.filepond--image-preview-overlay svg { - width: 100%; - height: auto; - color: inherit; - max-height: inherit; -} -.filepond--image-preview-overlay-idle { - mix-blend-mode: multiply; - color: rgba(40, 40, 40, 0.85); -} -.filepond--image-preview-overlay-success { - mix-blend-mode: normal; - color: rgba(54, 151, 99, 1); -} -.filepond--image-preview-overlay-failure { - mix-blend-mode: normal; - color: rgba(196, 78, 71, 1); -} -/* disable for Safari as mix-blend-mode causes the overflow:hidden of the parent container to not work */ -@supports (-webkit-marquee-repetition: infinite) and - ((-o-object-fit: fill) or (object-fit: fill)) { - .filepond--image-preview-overlay-idle { - mix-blend-mode: normal; - } -} -.filepond--image-preview-wrapper { - /* no interaction */ - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - - /* have preview fill up all available space */ - position: absolute; - left: 0; - top: 0; - right: 0; - height: 100%; - margin: 0; - - /* radius is .05em less to prevent the panel background color from shining through */ - border-radius: 0.45em; - overflow: hidden; - - /* this seems to prevent Chrome from redrawing this layer constantly */ - background: rgba(0, 0, 0, 0.01); -} -.filepond--image-preview { - position: absolute; - left: 0; - top: 0; - z-index: 1; - display: flex; /* this aligns the graphic vertically if the panel is higher than the image */ - align-items: center; - height: 100%; - width: 100%; - pointer-events: none; - background: #222; - - /* will be animated */ - will-change: transform, opacity; -} -.filepond--image-clip { - position: relative; - overflow: hidden; - margin: 0 auto; - - /* transparency indicator (currently only supports grid or basic color) */ -} -.filepond--image-clip[data-transparency-indicator='grid'] img, -.filepond--image-clip[data-transparency-indicator='grid'] canvas { - background-color: #fff; - background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 100 100%27 xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23eee%27%3E%3Cpath d=%27M0 0 H50 V50 H0%27/%3E%3Cpath d=%27M50 50 H100 V100 H50%27/%3E%3C/svg%3E"); - background-size: 1.25em 1.25em; -} -.filepond--image-bitmap, -.filepond--image-vector { - position: absolute; - left: 0; - top: 0; - will-change: transform; -} -.filepond--root[data-style-panel-layout~='integrated'] - .filepond--image-preview-wrapper { - border-radius: 0; -} -.filepond--root[data-style-panel-layout~='integrated'] - .filepond--image-preview { - height: 100%; - display: flex; - justify-content: center; - align-items: center; -} -.filepond--root[data-style-panel-layout~='circle'] - .filepond--image-preview-wrapper { - border-radius: 99999rem; -} -.filepond--root[data-style-panel-layout~='circle'] - .filepond--image-preview-overlay { - top: auto; - bottom: 0; - -webkit-transform: scaleY(-1); - transform: scaleY(-1); -} -.filepond--root[data-style-panel-layout~='circle'] - .filepond--file - .filepond--file-action-button[data-align*='bottom']:not([data-align*='center']) { - margin-bottom: 0.325em; -} -.filepond--root[data-style-panel-layout~='circle'] - .filepond--file - [data-align*='left'] { - left: calc(50% - 3em); -} -.filepond--root[data-style-panel-layout~='circle'] - .filepond--file - [data-align*='right'] { - right: calc(50% - 3em); -} -.filepond--root[data-style-panel-layout~='circle'] - .filepond--progress-indicator[data-align*='bottom'][data-align*='left'], -.filepond--root[data-style-panel-layout~='circle'] - .filepond--progress-indicator[data-align*='bottom'][data-align*='right'] { - margin-bottom: calc(0.325em + 0.1875em); -} -.filepond--root[data-style-panel-layout~='circle'] - .filepond--progress-indicator[data-align*='bottom'][data-align*='center'] { - margin-top: 0; - margin-bottom: 0.1875em; - margin-left: 0.1875em; -} - -/*!*************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./node_modules/filepond/dist/filepond.min.css ***! - \*************************************************************************************************************************************************************************************************/ -/*! - * FilePond 4.31.1 - * Licensed under MIT, https://opensource.org/licenses/MIT/ - * Please visit https://pqina.nl/filepond/ for details. - */ - -/* eslint-disable */ -.filepond--assistant{position:absolute;overflow:hidden;height:1px;width:1px;padding:0;border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}.filepond--browser.filepond--browser{position:absolute;margin:0;padding:0;left:1em;top:1.75em;width:calc(100% - 2em);opacity:0;font-size:0}.filepond--data{position:absolute;width:0;height:0;padding:0;margin:0;border:none;visibility:hidden;pointer-events:none;contain:strict}.filepond--drip{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;opacity:.1;pointer-events:none;border-radius:.5em;background:rgba(0,0,0,.01)}.filepond--drip-blob{-webkit-transform-origin:center center;transform-origin:center center;width:8em;height:8em;margin-left:-4em;margin-top:-4em;background:#292625;border-radius:50%}.filepond--drip-blob,.filepond--drop-label{position:absolute;top:0;left:0;will-change:transform,opacity}.filepond--drop-label{right:0;margin:0;color:#4f4f4f;display:flex;justify-content:center;align-items:center;height:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.filepond--drop-label.filepond--drop-label label{display:block;margin:0;padding:.5em}.filepond--drop-label label{cursor:default;font-size:.875em;font-weight:400;text-align:center;line-height:1.5}.filepond--label-action{text-decoration:underline;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;-webkit-text-decoration-color:#a7a4a4;text-decoration-color:#a7a4a4;cursor:pointer}.filepond--root[data-disabled] .filepond--drop-label label{opacity:.5}.filepond--file-action-button.filepond--file-action-button{font-size:1em;width:1.625em;height:1.625em;font-family:inherit;line-height:inherit;margin:0;padding:0;border:none;outline:none;will-change:transform,opacity}.filepond--file-action-button.filepond--file-action-button span{position:absolute;overflow:hidden;height:1px;width:1px;padding:0;border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}.filepond--file-action-button.filepond--file-action-button svg{width:100%;height:100%}.filepond--file-action-button.filepond--file-action-button:after{position:absolute;left:-.75em;right:-.75em;top:-.75em;bottom:-.75em;content:""}.filepond--file-action-button{cursor:auto;color:#fff;border-radius:50%;background-color:rgba(0,0,0,.5);background-image:none;box-shadow:0 0 0 0 hsla(0,0%,100%,0);transition:box-shadow .25s ease-in}.filepond--file-action-button:focus,.filepond--file-action-button:hover{box-shadow:0 0 0 .125em hsla(0,0%,100%,.9)}.filepond--file-action-button[disabled]{color:hsla(0,0%,100%,.5);background-color:rgba(0,0,0,.25)}.filepond--file-action-button[hidden]{display:none}.filepond--action-edit-item.filepond--action-edit-item{width:2em;height:2em;padding:.1875em}.filepond--action-edit-item.filepond--action-edit-item[data-align*=center]{margin-left:-.1875em}.filepond--action-edit-item.filepond--action-edit-item[data-align*=bottom]{margin-bottom:-.1875em}.filepond--action-edit-item-alt{border:none;line-height:inherit;background:transparent;font-family:inherit;color:inherit;outline:none;padding:0;margin:0 0 0 .25em;pointer-events:all;position:absolute}.filepond--action-edit-item-alt svg{width:1.3125em;height:1.3125em}.filepond--action-edit-item-alt span{font-size:0;opacity:0}.filepond--file-info{position:static;display:flex;flex-direction:column;align-items:flex-start;flex:1;margin:0 .5em 0 0;min-width:0;will-change:transform,opacity;pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.filepond--file-info *{margin:0}.filepond--file-info .filepond--file-info-main{font-size:.75em;line-height:1.2;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.filepond--file-info .filepond--file-info-sub{font-size:.625em;opacity:.5;transition:opacity .25s ease-in-out;white-space:nowrap}.filepond--file-info .filepond--file-info-sub:empty{display:none}.filepond--file-status{position:static;display:flex;flex-direction:column;align-items:flex-end;flex-grow:0;flex-shrink:0;margin:0;min-width:2.25em;text-align:right;will-change:transform,opacity;pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.filepond--file-status *{margin:0;white-space:nowrap}.filepond--file-status .filepond--file-status-main{font-size:.75em;line-height:1.2}.filepond--file-status .filepond--file-status-sub{font-size:.625em;opacity:.5;transition:opacity .25s ease-in-out}.filepond--file-wrapper.filepond--file-wrapper{border:none;margin:0;padding:0;min-width:0;height:100%}.filepond--file-wrapper.filepond--file-wrapper>legend{position:absolute;overflow:hidden;height:1px;width:1px;padding:0;border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}.filepond--file{position:static;display:flex;height:100%;align-items:flex-start;padding:.5625em;color:#fff;border-radius:.5em}.filepond--file .filepond--file-status{margin-left:auto;margin-right:2.25em}.filepond--file .filepond--processing-complete-indicator{pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;z-index:3}.filepond--file .filepond--file-action-button,.filepond--file .filepond--processing-complete-indicator,.filepond--file .filepond--progress-indicator{position:absolute}.filepond--file [data-align*=left]{left:.5625em}.filepond--file [data-align*=right]{right:.5625em}.filepond--file [data-align*=center]{left:calc(50% - .8125em)}.filepond--file [data-align*=bottom]{bottom:1.125em}.filepond--file [data-align=center]{top:calc(50% - .8125em)}.filepond--file .filepond--progress-indicator{margin-top:.1875em}.filepond--file .filepond--progress-indicator[data-align*=right]{margin-right:.1875em}.filepond--file .filepond--progress-indicator[data-align*=left]{margin-left:.1875em}[data-filepond-item-state*=error] .filepond--file-info,[data-filepond-item-state*=invalid] .filepond--file-info,[data-filepond-item-state=cancelled] .filepond--file-info{margin-right:2.25em}[data-filepond-item-state~=processing] .filepond--file-status-sub{opacity:0}[data-filepond-item-state~=processing] .filepond--action-abort-item-processing~.filepond--file-status .filepond--file-status-sub{opacity:.5}[data-filepond-item-state=processing-error] .filepond--file-status-sub{opacity:0}[data-filepond-item-state=processing-error] .filepond--action-retry-item-processing~.filepond--file-status .filepond--file-status-sub{opacity:.5}[data-filepond-item-state=processing-complete] .filepond--action-revert-item-processing svg{-webkit-animation:fall .5s linear .125s both;animation:fall .5s linear .125s both}[data-filepond-item-state=processing-complete] .filepond--file-status-sub{opacity:.5}[data-filepond-item-state=processing-complete] .filepond--file-info-sub,[data-filepond-item-state=processing-complete] .filepond--processing-complete-indicator:not([style*=hidden])~.filepond--file-status .filepond--file-status-sub{opacity:0}[data-filepond-item-state=processing-complete] .filepond--action-revert-item-processing~.filepond--file-info .filepond--file-info-sub{opacity:.5}[data-filepond-item-state*=error] .filepond--file-wrapper,[data-filepond-item-state*=error] .filepond--panel,[data-filepond-item-state*=invalid] .filepond--file-wrapper,[data-filepond-item-state*=invalid] .filepond--panel{-webkit-animation:shake .65s linear both;animation:shake .65s linear both}[data-filepond-item-state*=busy] .filepond--progress-indicator svg{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes shake{10%,90%{-webkit-transform:translateX(-.0625em);transform:translateX(-.0625em)}20%,80%{-webkit-transform:translateX(.125em);transform:translateX(.125em)}30%,50%,70%{-webkit-transform:translateX(-.25em);transform:translateX(-.25em)}40%,60%{-webkit-transform:translateX(.25em);transform:translateX(.25em)}}@keyframes shake{10%,90%{-webkit-transform:translateX(-.0625em);transform:translateX(-.0625em)}20%,80%{-webkit-transform:translateX(.125em);transform:translateX(.125em)}30%,50%,70%{-webkit-transform:translateX(-.25em);transform:translateX(-.25em)}40%,60%{-webkit-transform:translateX(.25em);transform:translateX(.25em)}}@-webkit-keyframes fall{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}70%{opacity:1;-webkit-transform:scale(1.1);transform:scale(1.1);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}to{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes fall{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}70%{opacity:1;-webkit-transform:scale(1.1);transform:scale(1.1);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}to{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.filepond--hopper[data-hopper-state=drag-over]>*{pointer-events:none}.filepond--hopper[data-hopper-state=drag-over]:after{content:"";position:absolute;left:0;top:0;right:0;bottom:0;z-index:100}.filepond--progress-indicator{z-index:103}.filepond--file-action-button{z-index:102}.filepond--file-status{z-index:101}.filepond--file-info{z-index:100}.filepond--item{position:absolute;top:0;left:0;right:0;z-index:1;padding:0;margin:.25em;will-change:transform,opacity;touch-action:none}.filepond--item>.filepond--panel{z-index:-1}.filepond--item>.filepond--panel .filepond--panel-bottom{box-shadow:0 .0625em .125em -.0625em rgba(0,0,0,.25)}.filepond--item>.filepond--file-wrapper,.filepond--item>.filepond--panel{transition:opacity .15s ease-out}.filepond--item[data-drag-state]{cursor:-webkit-grab;cursor:grab}.filepond--item[data-drag-state]>.filepond--panel{transition:box-shadow .125s ease-in-out;box-shadow:0 0 0 transparent}.filepond--item[data-drag-state=drag]{cursor:-webkit-grabbing;cursor:grabbing}.filepond--item[data-drag-state=drag]>.filepond--panel{box-shadow:0 .125em .3125em rgba(0,0,0,.325)}.filepond--item[data-drag-state]:not([data-drag-state=idle]){z-index:2}.filepond--item-panel{background-color:#64605e}[data-filepond-item-state=processing-complete] .filepond--item-panel{background-color:#369763}[data-filepond-item-state*=error] .filepond--item-panel,[data-filepond-item-state*=invalid] .filepond--item-panel{background-color:#c44e47}.filepond--item-panel{border-radius:.5em;transition:background-color .25s}.filepond--list-scroller{position:absolute;top:0;left:0;right:0;margin:0;will-change:transform}.filepond--list-scroller[data-state=overflow] .filepond--list{bottom:0;right:0}.filepond--list-scroller[data-state=overflow]{overflow-y:scroll;overflow-x:hidden;-webkit-overflow-scrolling:touch;-webkit-mask:linear-gradient(180deg,#000 calc(100% - .5em),transparent);mask:linear-gradient(180deg,#000 calc(100% - .5em),transparent)}.filepond--list-scroller::-webkit-scrollbar{background:transparent}.filepond--list-scroller::-webkit-scrollbar:vertical{width:1em}.filepond--list-scroller::-webkit-scrollbar:horizontal{height:0}.filepond--list-scroller::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.3);border-radius:99999px;border:.3125em solid transparent;background-clip:content-box}.filepond--list.filepond--list{position:absolute;top:0;margin:0;padding:0;list-style-type:none;will-change:transform}.filepond--list{left:.75em;right:.75em}.filepond--root[data-style-panel-layout~=integrated]{width:100%;height:100%;max-width:none;margin:0}.filepond--root[data-style-panel-layout~=circle] .filepond--panel-root,.filepond--root[data-style-panel-layout~=integrated] .filepond--panel-root{border-radius:0}.filepond--root[data-style-panel-layout~=circle] .filepond--panel-root>*,.filepond--root[data-style-panel-layout~=integrated] .filepond--panel-root>*{display:none}.filepond--root[data-style-panel-layout~=circle] .filepond--drop-label,.filepond--root[data-style-panel-layout~=integrated] .filepond--drop-label{bottom:0;height:auto;display:flex;justify-content:center;align-items:center;z-index:7}.filepond--root[data-style-panel-layout~=circle] .filepond--item-panel,.filepond--root[data-style-panel-layout~=integrated] .filepond--item-panel{display:none}.filepond--root[data-style-panel-layout~=compact] .filepond--list-scroller,.filepond--root[data-style-panel-layout~=integrated] .filepond--list-scroller{overflow:hidden;height:100%;margin-top:0;margin-bottom:0}.filepond--root[data-style-panel-layout~=compact] .filepond--list,.filepond--root[data-style-panel-layout~=integrated] .filepond--list{left:0;right:0;height:100%}.filepond--root[data-style-panel-layout~=compact] .filepond--item,.filepond--root[data-style-panel-layout~=integrated] .filepond--item{margin:0}.filepond--root[data-style-panel-layout~=compact] .filepond--file-wrapper,.filepond--root[data-style-panel-layout~=integrated] .filepond--file-wrapper{height:100%}.filepond--root[data-style-panel-layout~=compact] .filepond--drop-label,.filepond--root[data-style-panel-layout~=integrated] .filepond--drop-label{z-index:7}.filepond--root[data-style-panel-layout~=circle]{border-radius:99999rem;overflow:hidden}.filepond--root[data-style-panel-layout~=circle]>.filepond--panel{border-radius:inherit}.filepond--root[data-style-panel-layout~=circle]>.filepond--panel>*{display:none}.filepond--root[data-style-panel-layout~=circle] .filepond--file-info,.filepond--root[data-style-panel-layout~=circle] .filepond--file-status{display:none}.filepond--root[data-style-panel-layout~=circle] .filepond--action-edit-item{opacity:1!important;visibility:visible!important}@media not all and (-webkit-min-device-pixel-ratio:0), not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent){.filepond--root[data-style-panel-layout~=circle]{will-change:transform}}}.filepond--panel-root{border-radius:.5em;background-color:#f1f0ef}.filepond--panel{position:absolute;left:0;top:0;right:0;margin:0;height:100%!important;pointer-events:none}.filepond-panel:not([data-scalable=false]){height:auto!important}.filepond--panel[data-scalable=false]>div{display:none}.filepond--panel[data-scalable=true]{-webkit-transform-style:preserve-3d;transform-style:preserve-3d;background-color:transparent!important;border:none!important}.filepond--panel-bottom,.filepond--panel-center,.filepond--panel-top{position:absolute;left:0;top:0;right:0;margin:0;padding:0}.filepond--panel-bottom,.filepond--panel-top{height:.5em}.filepond--panel-top{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;border-bottom:none!important}.filepond--panel-top:after{content:"";position:absolute;height:2px;left:0;right:0;bottom:-1px;background-color:inherit}.filepond--panel-bottom,.filepond--panel-center{will-change:transform;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-origin:left top;transform-origin:left top;-webkit-transform:translate3d(0,.5em,0);transform:translate3d(0,.5em,0)}.filepond--panel-bottom{border-top-left-radius:0!important;border-top-right-radius:0!important;border-top:none!important}.filepond--panel-bottom:before{content:"";position:absolute;height:2px;left:0;right:0;top:-1px;background-color:inherit}.filepond--panel-center{height:100px!important;border-top:none!important;border-bottom:none!important;border-radius:0!important}.filepond--panel-center:not([style]){visibility:hidden}.filepond--progress-indicator{position:static;width:1.25em;height:1.25em;color:#fff;margin:0;pointer-events:none;will-change:transform,opacity}.filepond--progress-indicator svg{width:100%;height:100%;vertical-align:top;transform-box:fill-box}.filepond--progress-indicator path{fill:none;stroke:currentColor}.filepond--list-scroller{z-index:6}.filepond--drop-label{z-index:5}.filepond--drip{z-index:3}.filepond--root>.filepond--panel{z-index:2}.filepond--browser{z-index:1}.filepond--root{box-sizing:border-box;position:relative;margin-bottom:1em;font-size:1rem;line-height:normal;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-weight:450;text-align:left;text-rendering:optimizeLegibility;direction:ltr;contain:layout style size}.filepond--root *{box-sizing:inherit;line-height:inherit}.filepond--root :not(text){font-size:inherit}.filepond--root[data-disabled]{pointer-events:none}.filepond--root[data-disabled] .filepond--list-scroller{pointer-events:all}.filepond--root[data-disabled] .filepond--list{pointer-events:none}.filepond--root .filepond--drop-label{min-height:4.75em}.filepond--root .filepond--list-scroller{margin-top:1em;margin-bottom:1em}.filepond--root .filepond--credits{position:absolute;right:0;opacity:.175;line-height:.85;font-size:11px;color:inherit;text-decoration:none;z-index:3;bottom:-14px}.filepond--root .filepond--credits[style]{top:0;bottom:auto;margin-top:14px} -/*!************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/UploadStatus/editor.scss ***! - \************************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__upload-status button.components-button { - margin-right: 8px; -} -.dlx-photo-block__upload-status button.components-button.has-icon { - padding: 15px 20px; -} -.dlx-photo-block__upload-status button.components-button:last-of-type { - margin-right: 0; -} -/*!***************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/CaptionAppender/editor.scss ***! - \***************************************************************************************************************************************************************************************************************************************************************************************************/ -.block-list-appender .photo-block-admin__caption-appender > button.components-button { - color: #FFF; - padding: 25px 20px; -} -.block-list-appender .photo-block-admin__caption-appender > button.components-button svg { - color: #FFF; -} -/*!*************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/screens/Edit/editor.scss ***! - \*************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__screen-edit { - display: flex; - flex-wrap: wrap; -} -.dlx-photo-block__screen-edit .dlx-photo-block__screen-edit-spinner { - width: 100%; - text-align: center; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; -} -.dlx-photo-block__screen-edit .dlx-photo-block__screen-edit-spinner__logo { - width: 100%; - text-align: center; - margin: 0 0 16px 0; -} -.dlx-photo-block__screen-edit .dlx-photo-block__screen-edit-spinner__logo svg { - width: 72px; - height: 72px; -} -.dlx-photo-block__screen-edit .dlx-photo-block__screen-edit-spinner__label { - margin: 0; - padding: 0; -} -.dlx-photo-block__screen-edit svg.components-spinner { - width: 48px; - height: 48px; -} - -.dlx-photo-block__screen-edit { - width: 100%; -} - -.aligncenter .dlx-photo-block__screen-edit { - justify-content: center; -} - -.alignleft .dlx-photo-block__screen-edit { - justify-content: flex-start; -} - -.alignright .dlx-photo-block__screen-edit { - justify-content: flex-end; -} - -.dlx-photo-block__a11y-popover { - min-width: 325px; - padding: 15px; - padding-top: 0; -} - -.dlx-photo-block__inspector-tabs button.components-tab-panel__tabs-item { - flex: 1 1 0px; -} -.dlx-photo-block__inspector-tabs button.components-tab-panel__tabs-item:after { - background: #DDD; - border-radius: 0; - bottom: 0; - content: ""; - height: 1.5px; - left: 0; - pointer-events: none; - position: absolute; - right: 0; - transition: all 0.1s linear; -} -.dlx-photo-block__inspector-tabs button.components-tab-panel__tabs-item.active-tab:after { - background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba)); -} - -.dlx-photo-block__image-dimensions-row h3 { - margin: 0; - margin-bottom: 8px; -} -.dlx-photo-block__image-dimensions-row p { - margin-bottom: 0; -} - -.photo-block__inspector-panel .components-panel__body-title svg { - fill: none; - margin: 0; - margin-right: 8px; -} -.photo-block__inspector-panel .components-panel__body-title > .components-button { - justify-content: flex-end; - flex-direction: row-reverse; -} - -.dlx-photo-block__image-dimensions-row { - display: block; -} -.dlx-photo-block__image-dimensions-row h2 { - width: 100%; - margin: 0; - margin-bottom: 8px; -} -.dlx-photo-block__image-dimensions-row .dlx-photo-block__image-dimensions { - display: grid; - grid-template-columns: 1fr 1fr; - grid-gap: 15px; - margin-bottom: 15px; -} -.dlx-photo-block__image-dimensions-row .dlx-photo-block__image-dimensions .components-base-control { - margin-bottom: 0; -} -.dlx-photo-block__image-dimensions-row .dlx-photo-block__image-dimensions .components-base-control__field { - margin-bottom: 0; -} - -.photo-block__alt-text.components-base-control.is-saving { - margin-bottom: 0; -} -.photo-block__alt-text.components-base-control.is-saving p { - margin-bottom: 0; -} - -.photo-block__text-saving { - display: flex; - align-items: center; - justify-content: flex-start; - font-size: 16px; - margin-bottom: 16px; -} -.photo-block__text-saving svg { - margin: 0; - margin-right: 12px; -} - -.photo-block__title-text.components-base-control.is-saving { - margin-bottom: 0; -} -.photo-block__title-text.components-base-control.is-saving p { - margin-bottom: 0; -} - -.photo-block__text-saving { - display: flex; - align-items: center; - justify-content: flex-start; -} -/*!*********************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/MediaLink/editor.scss ***! - \*********************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__media-link-popover .components-popover__content { - padding: 15px; - min-width: 400px; -} -.dlx-photo-block__media-link-popover .components-base-control { - margin-bottom: 0; -} -.dlx-photo-block__media-link-popover .components-base-control__field { - margin-bottom: 0; -} -.dlx-photo-block__media-link-popover .components-base-control__help { - margin-bottom: 0; -} - -.dlx-photo-block__media-link-container h2 { - margin-top: 0; -} - -.dlx-photo-block__media-link-button-group { - display: grid; - grid-template-columns: 1fr 1fr; - grid-gap: 8px; - align-items: center; - margin-bottom: 15px; -} -.dlx-photo-block__media-link-button-group .components-button.has-icon { - display: grid; - grid-template-columns: 1fr auto; - grid-gap: 8px; - align-items: center; - text-align: left; - padding: 0 15px; -} -.dlx-photo-block__media-link-button-group .components-button.has-icon .dlx-photo-block__media-link-button-text { - order: 1; -} -.dlx-photo-block__media-link-button-group .components-button.has-icon svg { - margin: 0; - order: 2; -} -/*!*********************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/URLPicker/editor.scss ***! - \*********************************************************************************************************************************************************************************************************************************************************************************************/ -@keyframes photo-block-pub-spin { - 100% { - transform: rotate(360deg); - } -} -/* Admin Interface Wrapper */ -#photo-block-pub-content { - padding-top: 18px; -} - -/* Admin loading icon */ -.photo-block-pub-load-static-svg svg { - animation: photo-block-pub-spin; - animation-duration: 1.5s; - animation-iteration-count: infinite; - animation-timing-function: linear; -} - -/* Url Wrapper Input */ -.photo-block-url-input { - display: inline-block; - max-width: 400px; - width: 100%; - flex-wrap: wrap; - position: relative; -} -.photo-block-url-input .components-base-control .components-base-control__label { - font-size: 16px; - display: block; - width: 100%; -} -.photo-block-url-input .photo-block-suggestions-wrapper { - width: 100%; - position: relative; - top: 100%; - left: 0; - max-height: 250px; - overflow-y: auto; -} -.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion { - position: relative; - border: 1px solid #ddd; - border-radius: 0; - width: 100%; - height: auto; - background: #FFF; - display: flex; - justify-content: flex-start; - align-items: center; - text-align: left; - padding: 5px 20px 5px 40px; - transition: all 0.4s ease-in-out; -} -.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion svg { - position: absolute; - width: 24px; - height: 24px; - top: calc(50% - 8px); - left: 10px; -} -.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion svg path { - fill: unset; -} -.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion:hover { - background: #f1f1f1; - border-color: var(--wp-admin-theme-color); -} -.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion.is-selected { - background: #f1f1f1; - border-color: var(--wp-admin-theme-color); -} -.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion .photo-block-search-item { - display: block; - margin-right: 8px; - white-space: pre-wrap; - overflow-wrap: break-word; -} -.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion .photo-block-search-item-title { - display: block; - margin-bottom: 0.2em; - font-weight: 500; - position: relative; - overflow: hidden; - text-overflow: ellipsis; -} -.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion .photo-block-search-item-info { - word-break: break-all; - display: block; - color: #757575; - font-size: 0.9em; - line-height: 1.3; -} - -.photo-block-pub-url-search-wrapper { - position: relative; -} -.photo-block-pub-url-search-wrapper .photo-block-pub-url-input__search-button.components-button { - position: absolute; - right: 0; - top: calc(50% - 18px); -} -.photo-block-pub-url-search-wrapper .photo-block-pub-url-input__apply-button.components-button { - position: absolute; - right: 0; - top: calc(50% - 18px); -} - -.photo-block-pub-url-input__wrapper label { - display: block; - width: 100%; - font-weight: 600; - margin-bottom: 5px; -} -.photo-block-pub-url-input__wrapper .photo-block-pub-url-input__suggestion-item .components-button { - margin-left: 8px; -} -.photo-block-pub-url-input__wrapper .photo-block-pub-url-input__input-wrapper { - position: relative; - display: grid; - grid-template-columns: 1fr; - grid-gap: 10px; - width: 100%; - margin-bottom: 10px; -} -.photo-block-pub-url-input__wrapper .photo-block-pub-url-input__input-wrapper input[type=text] { - border: 1px solid #ddd; - border-radius: 3px; - font-size: 13px; - padding: 11px 36px 11px 16px; - width: 100%; - margin: 0; -} -.photo-block-pub-url-input__wrapper .photo-block-pub-url-input__input-wrapper .photo-block-pub-url-input__input { - line-height: 1; -} -.photo-block-pub-url-input__wrapper .photo-block-pub-url-input__input-wrapper .components-spinner { - position: absolute; - right: 14px; - height: 24px; - top: calc(50% - 12px); - margin: 0; -} -.photo-block-pub-url-input__wrapper .photo-block-pub-url-input__input-wrapper .photo-block-pub-url-input__input ~ .components-button { - box-shadow: unset; - border: unset; - background: unset; -} - -.photo-block-pub-url-input__input ~ .components-button, -.photo-block-pub-url-input__suggestion-item .components-button { - position: relative; -} -.photo-block-pub-url-input__input ~ .components-button .components-tooltip, -.photo-block-pub-url-input__suggestion-item .components-button .components-tooltip { - display: inline-block; - background: #333; - color: #FFF; - padding: 8px 12px; - border-radius: 3px; - font-size: 12px; - position: absolute; - top: calc(50% - 8px); - right: 10px; - min-width: 150px; - height: auto; - transition: opacity 0.2s ease-in-out; - cursor: pointer; -} -/*!*********************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/PanelBody/editor.scss ***! - \*********************************************************************************************************************************************************************************************************************************************************************************************/ - -/*!****************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/SidebarImageInspectorControl/editor.scss ***! - \****************************************************************************************************************************************************************************************************************************************************************************************************************/ - -/*!***********************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/ColorPicker/editor.scss ***! - \***********************************************************************************************************************************************************************************************************************************************************************************************/ -/* Color Component (forked from @GenerateBlocks) */ -.photo-block-component-color-picker-wrapper, -.qdlx-admin__tabs--content-inner .components-base-control.photo-block-component-color-picker-wrapper { - text-align: left; - margin-bottom: 16px; - margin-top: 2px; -} -.photo-block-component-color-picker-wrapper > .components-base-control__field, -.qdlx-admin__tabs--content-inner .components-base-control.photo-block-component-color-picker-wrapper > .components-base-control__field { - position: relative; - display: grid; - grid-template-columns: 1fr 30px; - row-gap: 2; - margin: 0 auto; - justify-content: space-between; - text-align: left; - font-weight: 600; - align-items: center; -} -.photo-block-component-color-picker-wrapper > .components-base-control__field .components-color-palette__item-wrapper, -.qdlx-admin__tabs--content-inner .components-base-control.photo-block-component-color-picker-wrapper > .components-base-control__field .components-color-palette__item-wrapper { - margin: 0; -} -.photo-block-component-color-picker-wrapper .photo-block-color-component-label, -.qdlx-admin__tabs--content-inner .components-base-control.photo-block-component-color-picker-wrapper .photo-block-color-component-label { - line-height: 1.2; - padding: 0; - margin: 0; -} - -.components-popover.photo-block-component-color-picker .photo-block-component-color-picker-palette { - padding: 0 16px; -} -.components-popover.photo-block-component-color-picker .photo-block-component-color-picker-palette button.components-circular-option-picker__option { - border-radius: 50%; - width: 100%; - height: 100%; -} -.components-popover.photo-block-component-color-picker .photo-block-component-color-picker-palette button.components-circular-option-picker__option .components-popover { - display: none; -} -.components-popover.photo-block-component-color-picker .photo-block-component-color-picker-palette .components-circular-option-picker__swatches { - display: flex; - flex-wrap: wrap; - gap: 12px; -} -.components-popover.photo-block-component-color-picker .photo-block-component-color-picker-palette .components-circular-option-picker__option-wrapper { - display: inline-block; - height: 28px; - width: 28px; - vertical-align: top; - transition: 100ms transform ease; -} -.components-popover.photo-block-component-color-picker .components-base-control__field, -.components-popover.photo-block-component-color-picker .components-color-palette { - margin: 0; -} -.components-popover.photo-block-component-color-picker .react-colorful { - width: unset !important; /* Override inline style */ -} -.components-popover.photo-block-component-color-picker .components-color-picker { - padding: 5px; - width: unset !important; /* Override inline style */ -} -.components-popover.photo-block-component-color-picker .components-color-picker__inputs-toggle { - display: none; -} -.components-popover.photo-block-component-color-picker .components-color-picker__body { - padding-bottom: 0; -} -.components-popover.photo-block-component-color-picker .components-popover__content { - padding: 10px; - width: 300px; -} -.components-popover.photo-block-component-color-picker .components-color-picker__inputs-fields { - margin-right: 0; -} -.components-popover.photo-block-component-color-picker .components-color-clear-color { - text-align: right; - padding: 0 16px; - color: var(--quotes-dlx-admin--color-dark); -} - -.components-circular-option-picker__option.is-pressed { - box-shadow: inset 0 0 0 4px !important; -} - -.photo-block-component-color-opacity { - display: flex; - padding: 0 16px; - margin: 10px 0; -} -.photo-block-component-color-opacity svg { - width: 28px; - height: 28px; -} -.photo-block-component-color-opacity .components-range-control { - flex-grow: 1; - padding-left: 5px; -} -/*!**********************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/DropShadow/editor.scss ***! - \**********************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__drop-shadow-control__settings__offset h3 { - margin-top: 0; - margin-bottom: 10px; -} - -.dlx-photo-block__drop-shadow-control__settings__offset__wrapper { - display: grid; - grid-template-columns: 1fr 1fr; - grid-gap: 15px; -} -.dlx-photo-block__drop-shadow-control__settings__offset__wrapper .components-base-control__field { - position: relative; - margin-bottom: 0; -} -/*!******************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/CSSGramButtonGroup/editor.scss ***! - \******************************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__css-gram-image-popover-wrapper { - min-width: 400px; - padding: 15px; - border: 1px solid #ddd; -} - -.dlx-photo-block__css-gram-button-group { - position: relative; - padding-right: 25px; -} -.dlx-photo-block__css-gram-button-group .components-button-group { - display: grid; - grid-template-columns: 50% 50%; - grid-gap: 15px; - row-gap: 15px; -} -/*!********************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/CSSGramButtonPreview/editor.scss ***! - \********************************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__css-gram-image-popover-wrapper { - min-width: 400px; - padding: 15px; - border: 1px solid #ddd; -} - -.dlx-photo-block__css-gram-button-group { - padding-right: 25px; -} -.dlx-photo-block__css-gram-button-group .components-button-group { - display: grid; - grid-template-columns: 50% 50%; - grid-gap: 15px; - row-gap: 15px; -} - -.dlx-photo-block__css-gram-image-popover { - position: absolute !important; -} -/*!**************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/SizeResponsive/editor.scss ***! - \**************************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__image-max-width { - margin: 0; - margin-bottom: 16px; -} -/*!**********************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/UnitPicker/editor.scss ***! - \**********************************************************************************************************************************************************************************************************************************************************************************************/ -/* Unit Picker Component - Forked from @GenerateBlocks */ -.components-photo-block-units-control-header__units { - display: flex; - justify-content: flex-end; - margin-bottom: 5px; - align-items: center; -} - -.components-photo-block-control__units .components-photo-block-control-buttons__units button.components-button { - background: #fff; - box-shadow: none !important; - color: #929da7; - font-size: 10px; - padding: 0 5px; - position: relative; - text-align: center; - text-shadow: none; - border: 0; - border-radius: 0 !important; - line-height: 20px; - padding: 0 5px; - height: auto; -} -.components-photo-block-control__units .components-photo-block-control-buttons__units button.components-button.is-primary { - background: #fff !important; - color: #000 !important; - cursor: default; - z-index: 1; - font-weight: bold; -} -/*!*********************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/HeadingIconResponsive/editor.scss ***! - \*********************************************************************************************************************************************************************************************************************************************************************************************************/ -.components-base-control .dlx-photo-block__heading-icon-responsive-wrapper { - display: flex; - align-items: center; - justify-content: space-between; -} -.components-base-control .dlx-photo-block__heading-icon-responsive { - display: flex; - align-items: center; - justify-content: flex-start; - margin: 0; - padding: 0; -} -.components-base-control .dlx-photo-block__heading-icon svg { - font-size: inherit; - width: 14px; - height: 14px; - margin-right: 8px; - vertical-align: middle; -} -.components-base-control .dlx-photo-block__heading { - line-height: 1; -} -.components-base-control .dlx-photo-block__heading-icon-responsive-icons .components-button.has-icon { - position: relative; - min-width: unset; - box-shadow: unset; -} -.components-base-control .dlx-photo-block__heading-icon-responsive-icons .components-button.has-icon.is-active:after { - position: absolute; - content: ""; - width: 100%; - height: 2px; - background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba)); - bottom: -2px; - left: 0; -} -.components-base-control .dlx-photo-block__heading-icon-responsive-icons svg { - width: 14px; - height: 14px; -} -/*!********************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/DimensionsResponsive/editor.scss ***! - \********************************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__dimensions-responsive-sync-interface { - display: flex; - align-items: center; - justify-content: flex-start; - margin-top: 15px; -} -.dlx-photo-block__dimensions-responsive-sync-interface .components-base-control { - margin: 0; - padding: 0; -} -.dlx-photo-block__dimensions-responsive-sync-interface .dlx-photo-block__dimensions-responsive-sync-interface-unit { - display: flex; - max-width: 50%; - align-items: center; - justify-content: flex-start; - border: 1px solid rgb(148, 148, 148); - padding: 0 8px; -} -.dlx-photo-block__dimensions-responsive-sync-interface .dlx-photo-block__dimensions-responsive-sync-interface-unit .components-base-control__field, -.dlx-photo-block__dimensions-responsive-sync-interface .dlx-photo-block__dimensions-responsive-sync-interface-unit .components-base-control { - padding: 0; - margin: 0; -} -.dlx-photo-block__dimensions-responsive-sync-interface .dlx-photo-block__dimensions-responsive-sync-interface-range-sync { - display: flex; - flex: 1; -} -.dlx-photo-block__dimensions-responsive-sync-interface .dlx-photo-block__dimensions-responsive-sync-interface-range-sync .components-range-control { - display: flex; - align-items: center; - padding-left: 8px; - padding-right: 8px; - flex: 1; -} -.dlx-photo-block__dimensions-responsive-sync-interface .dlx-photo-block__dimensions-responsive-sync-interface-range-sync .components-range-control .components-base-control__field { - flex: 1; -} -.dlx-photo-block__dimensions-responsive-sync-interface .dlx-photo-block__dimensions-responsive-sync-interface-range-sync .components-base-control__field { - margin: 0; - padding: 0; -} -.dlx-photo-block__dimensions-responsive-sync-interface .components-input-control__suffix, -.dlx-photo-block__dimensions-responsive-sync-interface .components-input-control__backdrop { - display: none; -} - -.dlx-photo-block__dimensions-responsive-sync-interface input[type=text], -.dlx-photo-block__dimensions-responsive-manual-interface-item input[type=text], -.dlx-photo-block__border-responsive-sync-interface-input input[type=text] { - max-width: 28px; - height: 40px; - border: none; - outline: none; - padding: 0; - box-shadow: none !important; - -webkit-appearance: auto; - appearance: auto; - -moz-appearance: textfield; - margin: 0; - background: none; -} -.dlx-photo-block__dimensions-responsive-sync-interface input[type=text]::-webkit-outer-spin-button, .dlx-photo-block__dimensions-responsive-sync-interface input[type=text]::-webkit-inner-spin-button, -.dlx-photo-block__dimensions-responsive-manual-interface-item input[type=text]::-webkit-outer-spin-button, -.dlx-photo-block__dimensions-responsive-manual-interface-item input[type=text]::-webkit-inner-spin-button, -.dlx-photo-block__border-responsive-sync-interface-input input[type=text]::-webkit-outer-spin-button, -.dlx-photo-block__border-responsive-sync-interface-input input[type=text]::-webkit-inner-spin-button { - -webkit-appearance: none; - margin: 0; -} -.dlx-photo-block__dimensions-responsive-sync-interface select, -.dlx-photo-block__dimensions-responsive-manual-interface-item select, -.dlx-photo-block__border-responsive-sync-interface-input select { - color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba)) !important; - -o-appearance: none; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background: transparent; - border-radius: 2px; - border: 1px solid transparent !important; - padding: 4px; - min-height: 40px; - outline: none; - margin: 0; - padding: 0 !important; - padding-left: 4px !important; - padding-right: 4px !important; - min-height: auto; - width: 100%; - max-width: 42px !important; - white-space: nowrap; - text-overflow: ellipsis; - display: block; - text-align: center; - box-shadow: none; - text-transform: lowercase; - box-sizing: border-box; -} -.dlx-photo-block__dimensions-responsive-sync-interface select:hover, -.dlx-photo-block__dimensions-responsive-manual-interface-item select:hover, -.dlx-photo-block__border-responsive-sync-interface-input select:hover { - cursor: pointer; - border: 1px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba)) !important; -} -.dlx-photo-block__dimensions-responsive-sync-interface .components-input-control__suffix, -.dlx-photo-block__dimensions-responsive-sync-interface .components-input-control__backdrop, -.dlx-photo-block__dimensions-responsive-manual-interface-item .components-input-control__suffix, -.dlx-photo-block__dimensions-responsive-manual-interface-item .components-input-control__backdrop, -.dlx-photo-block__border-responsive-sync-interface-input .components-input-control__suffix, -.dlx-photo-block__border-responsive-sync-interface-input .components-input-control__backdrop { - display: none; -} - -.dlx-photo-block__dimensions-responsive-manual-interface-item { - display: inline-flex; - align-items: center; - justify-content: flex-start; - border: 1px solid rgb(148, 148, 148); - padding: 0 8px; -} -.dlx-photo-block__dimensions-responsive-manual-interface-item .components-base-control { - margin: 0 !important; - padding: 0; -} -.dlx-photo-block__dimensions-responsive-manual-interface-item .components-base-control__field, -.dlx-photo-block__dimensions-responsive-manual-interface-item .components-base-control { - padding: 0 !important; - margin: 0 !important; -} - -.dlx-photo-block__dimensions-responsive-manual-interface { - display: grid; - grid-template-columns: 1fr 1fr 1fr; - grid-template-rows: auto; - grid-template-areas: "topLeft topCenter topRight" "middleLeft middleCenter middleRight" "bottomLeft bottomCenter bottomRight"; - grid-gap: 10px; - row-gap: 10px; - align-items: center; - justify-content: center; - margin-top: 15px; -} -.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-top { - -ms-grid-row: 1; - -ms-grid-column: 3; - position: relative; - grid-area: topCenter; -} -.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-top:before { - content: ""; - display: block; - width: 100%; - height: 2px; - background: #333; - position: absolute; - top: -8px; - left: 0; -} -.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-left { - -ms-grid-row: 3; - -ms-grid-column: 1; - position: relative; - grid-area: middleLeft; -} -.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-left:before { - content: ""; - display: block; - width: 2px; - height: 100%; - background: #333; - position: absolute; - left: -8px; - top: 0; -} -.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-right { - -ms-grid-row: 3; - -ms-grid-column: 5; - position: relative; - grid-area: middleRight; -} -.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-right:before { - content: ""; - display: block; - width: 2px; - height: 100%; - background: #333; - position: absolute; - right: -8px; - top: 0; -} -.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-bottom { - -ms-grid-row: 5; - -ms-grid-column: 3; - position: relative; - grid-area: bottomCenter; -} -.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-bottom:before { - content: ""; - display: block; - width: 100%; - height: 2px; - background: #333; - position: absolute; - bottom: -8px; - left: 0; -} -.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-sync-manual-button { - -ms-grid-row: 3; - -ms-grid-column: 3; - display: inline-flex; - grid-area: middleCenter; - justify-content: center; - padding: 8px; - max-width: 50px; - margin: 0 auto; - box-sizing: border-box; -} -.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-top { - -ms-grid-row: 1; - -ms-grid-column: 1; - position: relative; - grid-area: topLeft; -} -.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-top:before { - content: ""; - display: block; - width: calc(100% + 8px); - height: 2px; - background: #333; - position: absolute; - top: -8px; - right: 0; -} -.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-top:after { - content: ""; - display: block; - width: 2px; - height: calc(100% + 8px); - background: #333; - position: absolute; - bottom: 0; - left: -8px; -} -.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-left { - -ms-grid-row: 5; - -ms-grid-column: 1; - position: relative; - grid-area: bottomLeft; -} -.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-left:before { - content: ""; - display: block; - width: 2px; - height: calc(100% + 8px); - background: #333; - position: absolute; - left: -8px; - top: 0; -} -.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-left:after { - content: ""; - display: block; - width: calc(100% + 8px); - height: 2px; - background: #333; - position: absolute; - bottom: -8px; - right: 0; -} -.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-right { - -ms-grid-row: 1; - -ms-grid-column: 5; - position: relative; - grid-area: topRight; -} -.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-right:before { - content: ""; - display: block; - width: 2px; - height: calc(100% + 8px); - background: #333; - position: absolute; - right: -8px; - bottom: 0; -} -.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-right:after { - content: ""; - display: block; - width: calc(100% + 8px); - height: 2px; - background: #333; - position: absolute; - top: -8px; - left: 0; -} -.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-bottom { - -ms-grid-row: 5; - -ms-grid-column: 5; - position: relative; - grid-area: bottomRight; -} -.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-bottom:before { - content: ""; - display: block; - width: calc(100% + 8px); - height: 2px; - background: #333; - position: absolute; - bottom: -8px; - left: 0; -} -.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-bottom:after { - content: ""; - display: block; - width: 2px; - height: calc(100% + 8px); - background: #333; - position: absolute; - right: -8px; - top: 0; -} -.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-sync-manual-button { - -ms-grid-row: 3; - -ms-grid-column: 3; - display: inline-flex; - grid-area: middleCenter; - justify-content: center; - padding: 8px; - max-width: 50px; - margin: 0 auto; - box-sizing: border-box; -} -/*!****************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/BorderResponsive/editor.scss ***! - \****************************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__border-responsive-sync-interface { - display: flex; - align-items: center; - justify-content: flex-start; - margin-top: 22px; -} -.dlx-photo-block__border-responsive-sync-interface .components-base-control { - margin: 0; - padding: 0; -} -.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-unit { - display: flex; - max-width: 50%; - align-items: center; - justify-content: flex-start; - border: 1px solid rgb(148, 148, 148); - padding: 0 8px; -} -.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-unit .components-base-control__field, -.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-unit .components-base-control { - padding: 0; - margin: 0; -} -.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-range-sync { - display: flex; - flex: 1; -} -.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-range-sync .components-range-control { - display: flex; - align-items: center; - padding-left: 8px; - padding-right: 8px; - flex: 1; -} -.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-range-sync .components-range-control .components-base-control__field { - flex: 1; -} -.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-range-sync .components-base-control__field { - margin: 0; - padding: 0; -} -.dlx-photo-block__border-responsive-sync-interface .components-input-control__suffix, -.dlx-photo-block__border-responsive-sync-interface .components-input-control__backdrop { - display: none; -} - -.dlx-photo-block__border-responsive-sync-interface input[type=number], -.dlx-photo-block__border-responsive-manual-interface-item input[type=number] { - max-width: 28px; - height: 40px; - border: none; - outline: none; - padding: 0; - box-shadow: none !important; - -webkit-appearance: auto; - appearance: auto; - -moz-appearance: textfield; - margin: 0; - background: none; -} -.dlx-photo-block__border-responsive-sync-interface input[type=number]::-webkit-outer-spin-button, .dlx-photo-block__border-responsive-sync-interface input[type=number]::-webkit-inner-spin-button, -.dlx-photo-block__border-responsive-manual-interface-item input[type=number]::-webkit-outer-spin-button, -.dlx-photo-block__border-responsive-manual-interface-item input[type=number]::-webkit-inner-spin-button { - -webkit-appearance: none; - margin: 0; -} -.dlx-photo-block__border-responsive-sync-interface select, -.dlx-photo-block__border-responsive-manual-interface-item select { - color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba)) !important; - -o-appearance: none; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background: transparent; - border-radius: 2px; - border: 1px solid transparent !important; - padding: 4px; - min-height: 40px; - outline: none; - margin: 0; - padding: 0 !important; - padding-left: 4px !important; - padding-right: 4px !important; - min-height: auto; - width: 100%; - max-width: 42px !important; - white-space: nowrap; - text-overflow: ellipsis; - display: block; - text-align: center; - box-shadow: none; - text-transform: lowercase; - box-sizing: border-box; -} -.dlx-photo-block__border-responsive-sync-interface select:hover, -.dlx-photo-block__border-responsive-manual-interface-item select:hover { - cursor: pointer; - border: 1px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba)) !important; -} -.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-border-style, -.dlx-photo-block__border-responsive-manual-interface-item .dlx-photo-block__border-responsive-sync-interface-border-style { - max-width: 12px; - min-width: unset; - margin-right: 8px; - padding: 0; -} -.dlx-photo-block__border-responsive-sync-interface .components-input-control__suffix, -.dlx-photo-block__border-responsive-sync-interface .components-input-control__backdrop, -.dlx-photo-block__border-responsive-manual-interface-item .components-input-control__suffix, -.dlx-photo-block__border-responsive-manual-interface-item .components-input-control__backdrop { - display: none; -} -.dlx-photo-block__border-responsive-sync-interface .photo-block-component-color-picker > .photo-block-color-picker-area.photo-block-component-color-picker-palette, -.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-border-style, -.dlx-photo-block__border-responsive-manual-interface-item .photo-block-component-color-picker > .photo-block-color-picker-area.photo-block-component-color-picker-palette, -.dlx-photo-block__border-responsive-manual-interface-item .dlx-photo-block__border-responsive-sync-interface-border-style { - margin-right: 2px; -} - -.dlx-photo-block__border-responsive-manual-interface-item { - display: inline-flex; - align-items: center; - justify-content: flex-start; - border: 1px solid rgb(148, 148, 148); - padding: 0 8px; -} -.dlx-photo-block__border-responsive-manual-interface-item .components-base-control { - margin: 0 !important; - padding: 0; -} -.dlx-photo-block__border-responsive-manual-interface-item .components-base-control__field, -.dlx-photo-block__border-responsive-manual-interface-item .components-base-control { - padding: 0 !important; - margin: 0 !important; -} - -.dlx-photo-block__border-responsive-manual-interface { - display: grid; - grid-template-columns: 1fr 1fr 1fr 1fr; - grid-template-rows: auto; - grid-template-areas: "topLeft topCenterLeft topCenterRight topRight" "middleLeft middleCenterLeft middleCenterRight middleRight" "bottomLeft bottomCenterLeft bottomCenterRight bottomRight"; - grid-gap: 15px; - row-gap: 15px; - align-items: center; - justify-content: center; - margin-top: 22px; -} -.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-top { - position: relative; - grid-column: topCenterLeft/topCenterRight; - grid-row: 1; -} -.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-top:before { - content: ""; - display: block; - width: 100%; - height: 2px; - background: #333; - position: absolute; - top: -8px; - left: 0; -} -.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-left { - position: relative; - grid-column: middleLeft/middleCenterLeft; - grid-row: 2; -} -.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-left:before { - content: ""; - display: block; - width: 2px; - height: 100%; - background: #333; - position: absolute; - left: -8px; - top: 0; -} -.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-right { - position: relative; - grid-column: middleCenterRight/middleRight; - grid-row: 2; -} -.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-right:before { - content: ""; - display: block; - width: 2px; - height: 100%; - background: #333; - position: absolute; - right: -8px; - top: 0; -} -.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-bottom { - position: relative; - grid-column: bottomCenterLeft/bottomCenterRight; - grid-row: 3; -} -.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-bottom:before { - content: ""; - display: block; - width: 100%; - height: 2px; - background: #333; - position: absolute; - bottom: -8px; - left: 0; -} -.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-sync-manual-button { - display: inline-flex; - grid-column: topRight; - grid-row: 1; - justify-content: center; - padding: 8px; - max-width: 50px; - margin: 0 auto; - box-sizing: border-box; -} -.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-top { - -ms-grid-row: 1; - -ms-grid-column: 1; - position: relative; - grid-area: topLeft; -} -.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-top:before { - content: ""; - display: block; - width: calc(100% + 8px); - height: 2px; - background: #333; - position: absolute; - top: -8px; - right: 0; -} -.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-top:after { - content: ""; - display: block; - width: 2px; - height: calc(100% + 8px); - background: #333; - position: absolute; - bottom: 0; - left: -8px; -} -.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-left { - -ms-grid-row: 5; - -ms-grid-column: 1; - position: relative; - grid-area: bottomLeft; -} -.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-left:before { - content: ""; - display: block; - width: 2px; - height: calc(100% + 8px); - background: #333; - position: absolute; - left: -8px; - top: 0; -} -.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-left:after { - content: ""; - display: block; - width: calc(100% + 8px); - height: 2px; - background: #333; - position: absolute; - bottom: -8px; - right: 0; -} -.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-right { - -ms-grid-row: 1; - -ms-grid-column: 7; - position: relative; - grid-area: topRight; -} -.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-right:before { - content: ""; - display: block; - width: 2px; - height: calc(100% + 8px); - background: #333; - position: absolute; - right: -8px; - bottom: 0; -} -.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-right:after { - content: ""; - display: block; - width: calc(100% + 8px); - height: 2px; - background: #333; - position: absolute; - top: -8px; - left: 0; -} -.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-bottom { - -ms-grid-row: 5; - -ms-grid-column: 7; - position: relative; - grid-area: bottomRight; -} -.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-bottom:before { - content: ""; - display: block; - width: calc(100% + 8px); - height: 2px; - background: #333; - position: absolute; - bottom: -8px; - left: 0; -} -.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-bottom:after { - content: ""; - display: block; - width: 2px; - height: calc(100% + 8px); - background: #333; - position: absolute; - right: -8px; - top: 0; -} -.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-sync-manual-button { - display: inline-flex; - grid-area: middleCenter; - justify-content: center; - padding: 8px; - max-width: 50px; - margin: 0 auto; - box-sizing: border-box; -} - -.dlx-photo-block__border-responsive .photo-block-component-color-picker-wrapper > .components-base-control__field { - display: inline-block; -} -.dlx-photo-block__border-responsive .photo-block-component-color-picker-palette { - margin-right: 8px; -} - -/** - * Popover border style. - */ -.dlx-photo-block__border-responsive-sync-interface-border-style-popover { - padding: 15px 20px; - min-width: 240px; - /* Give h3 same style as basecontrol styles */ -} -.dlx-photo-block__border-responsive-sync-interface-border-style-popover h3 { - font-size: 13px; - font-weight: 600; - margin: 0 0 8px; - text-transform: uppercase; -} -.dlx-photo-block__border-responsive-sync-interface-border-style-popover .dlx-photo-block__border-responsive-sync-interface-border-style-popover-buttons { - display: grid; - grid-template-columns: 1fr 1fr; - grid-gap: 8px; -} -.dlx-photo-block__border-responsive-sync-interface-border-style-popover .dlx-photo-block__border-responsive-sync-interface-border-style-popover-buttons button { - display: flex; - align-items: center; - text-align: left; -} -/*!************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/GlobalStyles/editor.scss ***! - \************************************************************************************************************************************************************************************************************************************************************************************************/ -/* Popover container */ -.photo-block-global-styles-popover { - position: relative; - padding: 25px; - top: 24px !important; -} - -.photo-block-presets-panel .components-panel__row { - width: 100%; -} - -.photo-block-presets { - display: block; - width: 100%; - margin-bottom: 15px; -} -.photo-block-presets .components-button-group { - display: grid; - grid-template-columns: 50% 50%; - grid-gap: 15px; - row-gap: 15px; - padding-right: 15px; -} -.photo-block-presets .components-button-group button.photo-block-global-styles-button { - display: block; - width: 100%; - text-align: center; - white-space: normal; - min-height: 36px; - height: auto; -} - -/* Preset Modal Button */ -.photo-block-global-styles-modal-button-group { - display: flex; - align-items: center; - justify-content: flex-start; -} - -.photo-block-global-styles-modal-apply-button { - margin-right: 8px; -} - -/* Preset Modal */ -.photo-block-global-styles-modal-radio-control { - margin-bottom: 15px; -} -.photo-block-global-styles-modal-radio-control .components-flex { - flex-direction: row; - justify-content: flex-start; -} -.photo-block-global-styles-modal-radio-control .components-flex .components-radio-control__option:first-child { - margin-right: 8px; -} - -.photo-block-global-styles-modal-new-preset { - margin-bottom: 15px; -} - -.photo-block-custom-global-styles-actions { - display: flex; - flex-wrap: wrap; -} -.photo-block-custom-global-styles-actions button.components-button, -.photo-block-custom-global-styles-actions button.components-button.has-icon { - width: 100%; - text-align: center; - justify-content: center; -} -.photo-block-custom-global-styles-actions button.components-button:first-of-type, -.photo-block-custom-global-styles-actions button.components-button.has-icon:first-of-type { - margin-bottom: 15px; -} - -/* Preset buttons */ -.photo-block-presets button.components-button.photo-block-global-styles-button { - display: flex; - align-items: center; - justify-content: center; - background: #FEFEFE; - color: #333; - border: 1px solid #333; - box-shadow: inset 0 0 0 1px #ccc; - transition: all 200ms ease-in-out; -} -.photo-block-presets button.components-button.photo-block-global-styles-button:hover, .photo-block-presets button.components-button.photo-block-global-styles-button:hover:not(:disabled) { - background: #333; - color: #FFF; -} -.photo-block-presets button.components-button.photo-block-global-styles-button:active, .photo-block-presets button.components-button.photo-block-global-styles-button:active:not(:disabled) { - background: #333; - color: #FFF; -} - -.photo-block-global-styles-edit-container--edit button.components-button.photo-block-global-styles-button { - background: #FEFEFE; - color: #333; - border: 0; -} -.photo-block-global-styles-edit-container--edit button.components-button.photo-block-global-styles-button:hover, .photo-block-global-styles-edit-container--edit button.components-button.photo-block-global-styles-button:hover:not(:disabled) { - background: #FEFEFE; - color: #333; -} -.photo-block-global-styles-edit-container--edit button.components-button.photo-block-global-styles-button:active, .photo-block-global-styles-edit-container--edit button.components-button.photo-block-global-styles-button:active:not(:disabled) { - background: #FEFEFE; - color: #333; -} - -.photo-block-presets .photo-block-global-styles-edit-buttons { - display: grid; - grid-template-columns: 1fr 1fr; -} -.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button { - border: 1px solid #333 !important; - box-shadow: inset 0 0 0 1px #333; - max-height: 28px; -} -.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-edit-button { - background: var(--wp-admin-theme-color, var(--quotes-dlx-admin--color-green, #007cba)); - color: #FFF; - border: 0; - box-shadow: unset; -} -.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-edit-button:hover { - background: var(--wp-admin-theme-color-darker-20, var(--quotes-dlx-admin--color-green-dark, #005a87)); -} -.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-delete-button { - background: var(--quotes-dlx-admin--color-red--required); - color: #FFF; - border: 0; - box-shadow: unset; -} -.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-delete-button:hover { - background: var(--quotes-dlx-admin--color-red-alt); - border: 0; - box-shadow: unset; -} - -.photo-block-global-styles-modal-override-preset { - margin-bottom: 15px; -} -.photo-block-global-styles-modal-override-preset .components-radio-control__option { - margin-bottom: 6px; -} - -.has-error input.components-text-control__input { - border-color: #bc2b2c; - background-color: #f5e5e4; -} - -/* Is required notice */ -.is-required { - position: relative; -} -.is-required label { - position: relative; - display: inline-block !important; -} -.is-required input:not(.components-radio-control__input) { - display: block !important; -} -.is-required label::after { - position: absolute; - display: inline-block; - vertical-align: middle; - content: "*"; - top: 0; - right: -12px; - color: #bc2b2c; - font-size: 1.4em; - line-height: 1.3; -} -.is-required .components-radio-control__option label::after { - display: none; -} -.is-required .not-is-required::after { - display: none; -} - -.photo-block-presets .photo-block-global-styles-edit-buttons { - display: grid; - grid-template-columns: 1fr 1fr; -} -.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button { - border: 1px solid #333 !important; - box-shadow: inset 0 0 0 1px #333; - max-height: 28px; - padding: 12px 10px; - box-sizing: border-box; -} -.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-edit-button { - background: var(--wp-admin-theme-color, #006400); - color: #FFF; - border: 0; - box-shadow: unset; -} -.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-edit-button:hover { - background: var(--wp-admin-theme-color-darker-20, #005200); -} -.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-delete-button { - background: #b53b07; - color: #FFF; - border: 0; - box-shadow: unset; -} -.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-delete-button:hover { - background: #822700; - border: 0; - box-shadow: unset; -} -.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button svg { - width: 20px; - height: 20px; -} - -.photo-block-global-styles-modal-override-preset { - margin-bottom: 15px; -} -.photo-block-global-styles-modal-override-preset .components-radio-control__option { - margin-bottom: 6px; -} - -.photo-block-global-styles-actions { - display: flex; - flex-wrap: wrap; - box-sizing: border-box; -} -.photo-block-global-styles-actions .photo-block-global-styles-save-button { - width: 100%; - justify-content: center; -} -.photo-block-global-styles-actions .photo-block-global-styles-edit-button { - width: 100%; - margin-top: 16px; - justify-content: center; -} -.photo-block-global-styles-actions .photo-block-global-styles-refresh-button { - width: 100%; - margin-top: 12px; - justify-content: center; - background: #333; - color: #FFF; -} -.photo-block-global-styles-actions .photo-block-global-styles-refresh-button:hover { - background: #444; - color: #FFF; -} -.photo-block-global-styles-actions .photo-block-global-styles-exit-button { - width: 100%; - margin-top: 12px; - justify-content: center; -} - -.photo-block-global-styles { - width: 100%; -} - -.photo-block-global-styles-edit-item { - display: grid; - grid-template-columns: 1fr 64px; - box-sizing: border-box; - background: #f9f9f9; - border: 1px solid #ccc; - border-radius: 4px; - margin-bottom: 8px; - padding: 12px 16px; -} - -.photo-block-global-styles-edit-item-actions .components-button-group { - display: grid; - grid-template-columns: 1fr 1fr; -} - -.photo-block-global-styles-modal-radio-control { - padding: 8px 0 12px 0; -} - -.photo-block-global-styles-modal .components-base-control__field > label { - font-weight: 600; -} -/*!************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/SidebarImageAdvancedInspectorControl/editor.scss ***! - \************************************************************************************************************************************************************************************************************************************************************************************************************************/ - -/*!****************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/CustomAttributes/editor.scss ***! - \****************************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__custom-attributes-control__attribute { - display: grid; - grid-template-columns: 1fr 1fr 32px; - grid-gap: 4px; - align-items: end; - margin-top: 10px; - margin-bottom: 10px; -} -.dlx-photo-block__custom-attributes-control__attribute:last-child { - margin-bottom: 0; -} -.dlx-photo-block__custom-attributes-control__attribute .components-base-control { - margin-bottom: 0; -} -.dlx-photo-block__custom-attributes-control__attribute .components-base-control__field { - margin-bottom: 0; -} -.dlx-photo-block__custom-attributes-control__attribute .components-button { - max-height: 30px; -} -/*!******************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/GlobalStylesPicker/editor.scss ***! - \******************************************************************************************************************************************************************************************************************************************************************************************************/ -.photo-block-global-styles-selected { - background: #f5f5f5; - border: 1px solid #e0e0e0; - border-radius: 4px; - display: grid; - grid-template-columns: 1fr 36px; - align-items: center; - box-sizing: border-box; -} - -.photo-block-global-styles-selected-title { - padding: 16px 8px; -} - -.photo-block-global-styles-picker-button-group { - display: grid; - box-sizing: border-box; - grid-template-columns: 1fr; - -moz-column-gap: 12px; - column-gap: 12px; - row-gap: 12px; -} -.photo-block-global-styles-picker-button-group button { - justify-content: center; -} -/*!********************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/GlobalStylesPicker/ButtonPreview/editor.scss ***! - \********************************************************************************************************************************************************************************************************************************************************************************************************************/ -#photo-block-preview .dlx-photo-block__screen-edit-image-wrapper { - display: block; -} -/*!****************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/AlignmentToolbar/editor.scss ***! - \****************************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__alignment-dropdown-group .is-active .dashicons:before { - background: #333; - color: #FFF; - padding: 1px 3px; -} -/*!*************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/screens/Crop/editor.scss ***! - \*************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__aspect-ratio-group svg { - fill: none; -} - -.dlx-photo-block__lock-crop-button.is-pressed svg { - color: #FFFFFF; -} - -.dlx-photo-block__zoom-popover .components-popover__content { - min-width: 250px; - padding: 15px; -} - -.dlx-photo-block__save-button.is-saving svg { - animation: photo-block-pub-spin; - animation-duration: 1.5s; - animation-iteration-count: infinite; - animation-timing-function: linear; -} - -.dlx-photo-block__toolbar-back-button { - box-shadow: none !important; /* override core style */ - border-right: 1px solid #333; - height: unset; - display: flex; - align-items: center; - height: 100%; -} - -.dlx-photo-block__aspect-ratio-dropdown button { - height: 100%; -} - -.dlx-photo-block__aspect-ratio-dropdown button:after { - content: attr(aria-label); - display: block; - align-items: center; - margin-left: 8px; -} - -.dlx-photo-block__aspect-ratio-dropdown button { - text-transform: capitalize; -} -/*!*********************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./node_modules/react-image-crop/src/ReactCrop.scss ***! - \*********************************************************************************************************************************************************************************************************************************************************************************************************/ -@-webkit-keyframes marching-ants { - 0% { - background-position: 0 0, 0 100%, 0 0, 100% 0; - } - 100% { - background-position: 20px 0, -20px 100%, 0 -20px, 100% 20px; - } -} -@keyframes marching-ants { - 0% { - background-position: 0 0, 0 100%, 0 0, 100% 0; - } - 100% { - background-position: 20px 0, -20px 100%, 0 -20px, 100% 20px; - } -} -:root { - --rc-drag-handle-size: 12px; - --rc-drag-handle-mobile-size: 24px; - --rc-drag-handle-bg-colour: rgba(0, 0, 0, 0.2); - --rc-drag-bar-size: 6px; - --rc-border-color: rgba(255, 255, 255, 0.7); - --rc-focus-color: #0088ff; -} - -.ReactCrop { - position: relative; - display: inline-block; - cursor: crosshair; - max-width: 100%; -} -.ReactCrop *, .ReactCrop *::before, .ReactCrop *::after { - -webkit-box-sizing: border-box; - box-sizing: border-box; -} -.ReactCrop--disabled, .ReactCrop--locked { - cursor: inherit; -} -.ReactCrop__child-wrapper { - overflow: hidden; - max-height: inherit; -} -.ReactCrop__child-wrapper > img, .ReactCrop__child-wrapper > video { - display: block; - max-width: 100%; - max-height: inherit; -} -.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper > img, .ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper > video { - -ms-touch-action: none; - touch-action: none; -} -.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__crop-selection { - -ms-touch-action: none; - touch-action: none; -} -.ReactCrop__crop-mask { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - pointer-events: none; -} -.ReactCrop__crop-selection { - position: absolute; - top: 0; - left: 0; - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - cursor: move; -} -.ReactCrop--disabled .ReactCrop__crop-selection { - cursor: inherit; -} -.ReactCrop--circular-crop .ReactCrop__crop-selection { - border-radius: 50%; -} -.ReactCrop--circular-crop .ReactCrop__crop-selection::after { - pointer-events: none; - content: ""; - position: absolute; - top: -1px; - right: -1px; - bottom: -1px; - left: -1px; - border: 1px solid var(--rc-border-color); - opacity: 0.3; -} -.ReactCrop--no-animate .ReactCrop__crop-selection { - outline: 1px dashed white; -} -.ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection) { - -webkit-animation: marching-ants 1s; - animation: marching-ants 1s; - background-image: -webkit-gradient(linear, left top, right top, color-stop(50%, #fff), color-stop(50%, #444)), -webkit-gradient(linear, left top, right top, color-stop(50%, #fff), color-stop(50%, #444)), -webkit-gradient(linear, left top, left bottom, color-stop(50%, #fff), color-stop(50%, #444)), -webkit-gradient(linear, left top, left bottom, color-stop(50%, #fff), color-stop(50%, #444)); - background-image: linear-gradient(to right, #fff 50%, #444 50%), linear-gradient(to right, #fff 50%, #444 50%), linear-gradient(to bottom, #fff 50%, #444 50%), linear-gradient(to bottom, #fff 50%, #444 50%); - background-size: 10px 1px, 10px 1px, 1px 10px, 1px 10px; - background-position: 0 0, 0 100%, 0 0, 100% 0; - background-repeat: repeat-x, repeat-x, repeat-y, repeat-y; - color: #fff; - -webkit-animation-play-state: running; - animation-play-state: running; - -webkit-animation-timing-function: linear; - animation-timing-function: linear; - -webkit-animation-iteration-count: infinite; - animation-iteration-count: infinite; -} -.ReactCrop__crop-selection:focus { - outline: 2px solid var(--rc-focus-color); - outline-offset: -1px; -} -.ReactCrop--invisible-crop .ReactCrop__crop-mask, .ReactCrop--invisible-crop .ReactCrop__crop-selection { - display: none; -} -.ReactCrop__rule-of-thirds-vt::before, .ReactCrop__rule-of-thirds-vt::after, .ReactCrop__rule-of-thirds-hz::before, .ReactCrop__rule-of-thirds-hz::after { - content: ""; - display: block; - position: absolute; - background-color: rgba(255, 255, 255, 0.4); -} -.ReactCrop__rule-of-thirds-vt::before, .ReactCrop__rule-of-thirds-vt::after { - width: 1px; - height: 100%; -} -.ReactCrop__rule-of-thirds-vt::before { - left: 33.3333%; - left: 33.3333333333%; -} -.ReactCrop__rule-of-thirds-vt::after { - left: 66.6666%; - left: 66.6666666667%; -} -.ReactCrop__rule-of-thirds-hz::before, .ReactCrop__rule-of-thirds-hz::after { - width: 100%; - height: 1px; -} -.ReactCrop__rule-of-thirds-hz::before { - top: 33.3333%; - top: 33.3333333333%; -} -.ReactCrop__rule-of-thirds-hz::after { - top: 66.6666%; - top: 66.6666666667%; -} -.ReactCrop__drag-handle { - position: absolute; - width: var(--rc-drag-handle-size); - height: var(--rc-drag-handle-size); - background-color: var(--rc-drag-handle-bg-colour); - border: 1px solid var(--rc-border-color); -} -.ReactCrop__drag-handle:focus { - background: var(--rc-focus-color); -} -.ReactCrop .ord-nw { - top: 0; - left: 0; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - cursor: nw-resize; -} -.ReactCrop .ord-n { - top: 0; - left: 50%; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - cursor: n-resize; -} -.ReactCrop .ord-ne { - top: 0; - right: 0; - -webkit-transform: translate(50%, -50%); - transform: translate(50%, -50%); - cursor: ne-resize; -} -.ReactCrop .ord-e { - top: 50%; - right: 0; - -webkit-transform: translate(50%, -50%); - transform: translate(50%, -50%); - cursor: e-resize; -} -.ReactCrop .ord-se { - bottom: 0; - right: 0; - -webkit-transform: translate(50%, 50%); - transform: translate(50%, 50%); - cursor: se-resize; -} -.ReactCrop .ord-s { - bottom: 0; - left: 50%; - -webkit-transform: translate(-50%, 50%); - transform: translate(-50%, 50%); - cursor: s-resize; -} -.ReactCrop .ord-sw { - bottom: 0; - left: 0; - -webkit-transform: translate(-50%, 50%); - transform: translate(-50%, 50%); - cursor: sw-resize; -} -.ReactCrop .ord-w { - top: 50%; - left: 0; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - cursor: w-resize; -} -.ReactCrop__disabled .ReactCrop__drag-handle { - cursor: inherit; -} -.ReactCrop__drag-bar { - position: absolute; -} -.ReactCrop__drag-bar.ord-n { - top: 0; - left: 0; - width: 100%; - height: var(--rc-drag-bar-size); - -webkit-transform: translateY(-50%); - transform: translateY(-50%); -} -.ReactCrop__drag-bar.ord-e { - right: 0; - top: 0; - width: var(--rc-drag-bar-size); - height: 100%; - -webkit-transform: translateX(50%); - transform: translateX(50%); -} -.ReactCrop__drag-bar.ord-s { - bottom: 0; - left: 0; - width: 100%; - height: var(--rc-drag-bar-size); - -webkit-transform: translateY(50%); - transform: translateY(50%); -} -.ReactCrop__drag-bar.ord-w { - top: 0; - left: 0; - width: var(--rc-drag-bar-size); - height: 100%; - -webkit-transform: translateX(-50%); - transform: translateX(-50%); -} -.ReactCrop--new-crop .ReactCrop__drag-bar, .ReactCrop--new-crop .ReactCrop__drag-handle, .ReactCrop--fixed-aspect .ReactCrop__drag-bar { - display: none; -} -.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n, .ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e, .ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s, .ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w { - display: none; -} -@media (pointer: coarse) { - .ReactCrop .ord-n, - .ReactCrop .ord-e, - .ReactCrop .ord-s, - .ReactCrop .ord-w { - display: none; - } - .ReactCrop__drag-handle { - width: var(--rc-drag-handle-mobile-size); - height: var(--rc-drag-handle-mobile-size); - } -} -/*!******************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/ToolbarAspectRatio/editor.scss ***! - \******************************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__component-aspect-ratio { - display: flex; - height: 100%; - justify-content: flex-start; - align-items: center; - padding: 10px 8px; - box-sizing: border-box; - text-align: center; -} -.dlx-photo-block__component-aspect-ratio .components-base-control__field { - margin: 0; -} -.dlx-photo-block__component-aspect-ratio .components-text-control__input { - display: inline-block; - max-width: 72px; -} -.dlx-photo-block__component-aspect-ratio.dlx-photo-block__component-aspect-ratio--active .components-text-control__input { - max-width: 48px; -} -.dlx-photo-block__component-aspect-ratio label { - position: absolute; - left: -9999px; - clip: rect(0 0 0 0); -} -.dlx-photo-block__component-aspect-ratio button.dlx-photo-block__component-aspect-ratio-switch { - min-width: unset; - height: 30px; - margin-left: 4px; - padding-left: 15px; - padding-right: 15px; -} -.dlx-photo-block__component-aspect-ratio .dlx-photo-block__component-aspect-ratio-splitter button { - min-width: unset; - height: 30px; - margin-left: 4px; - margin-right: 4px; -} -.dlx-photo-block__component-aspect-ratio button.dlx-photo-block__component-aspect-ratio-apply.components-button { - margin-left: 8px; - max-height: 30px; -} -/*!**************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/screens/FeaturedImageEdit/editor.scss ***! - \**************************************************************************************************************************************************************************************************************************************************************************************************/ - -/*!***************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/blocks/photo-caption-block/editor.scss ***! - \***************************************************************************************************************************************************************************************************************************************************************************************************/ -.photo-block__caption-position-popover svg { - fill: none; -} - -.photo-block__remove-caption-modal button { - margin-right: 8px; -} -.photo-block__remove-caption-modal button:last-child { - margin-right: 0; -} - -.dlx-photo-block__caption-align-toolbar-buttons .is-pressed svg { - color: #FFFFFF; -} - -.dlx-photo-block__overlay-background-gradient-randomize { - margin-bottom: 10px; - width: 100%; - justify-content: center; -} -/*!**********************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/Typography/editor.scss ***! - \**********************************************************************************************************************************************************************************************************************************************************************************************/ -/* Typography Control */ -.photo-block-typography-picker { - padding: 0; -} -.photo-block-typography-picker > .components-base-control__field { - overflow: hidden; -} -.photo-block-typography-picker .components-base-control { - padding-bottom: 0 !important; - margin-bottom: 0 !important; -} -.photo-block-typography-picker .components-base-control__field { - padding-bottom: 0; - margin-bottom: 0; -} -.photo-block-typography-picker .photo-block-typography-picker__row { - margin-bottom: 10px; -} -.photo-block-typography-picker .photo-block-typography-picker__row__col-2 { /* there's a hidden div that has zero space */ - display: grid; - grid-template-columns: 1fr 1fr; - grid-gap: 10px; - align-items: end; -} -.photo-block-typography-picker .photo-block-typography-picker__row__col-2 .photo-block-typography-picker__row_item.photo-block-units { - display: grid; - grid-template-columns: 75px 0 36px; - -moz-column-gap: 0; - column-gap: 0; - align-items: end; -} -.photo-block-typography-picker .photo-block-typography-picker__row__col-2 .photo-block-typography-picker__row_item.photo-block-units .components-button { - font-size: 13px; - line-height: normal; - padding: 6px 8px; - max-height: 30px; -} - -/* Popover unit picker for typography */ -.photo-block-component-font-unit-picker .components-popover__content { - min-width: 48px; - background: #FFF; - outline: unset; - border: 1px solid #333; -} -.photo-block-component-font-unit-picker .components-popover__content .components-button { - width: 100%; - font-size: 13px; - padding: 6px 8px; - margin: 0; - box-shadow: unset; - justify-content: center; - border-bottom: 1px solid #dadada; - outline: unset; -} -.photo-block-component-font-unit-picker .components-popover__content .components-button:last-child, .photo-block-component-font-unit-picker .components-popover__content .components-button.is-primary { - border-bottom: 0; -} - -/* Typography row */ -.photo-block-typography-panel-row { - display: block; -} - -.photo-block-typography-picker-wrapper > div .photo-block-typography-component-label { - font-size: 13px; -} -.photo-block-typography-picker-wrapper > div .photo-block-typography-component-settings { - display: flex; - justify-content: flex-end; -} -.photo-block-typography-picker-wrapper > div .components-button:not(.dlx-photo-block__heading-icon-responsive-icon) { - font-size: 13px; - padding: 6px 8px; - margin: 0; - margin-top: 16px; - outline: unset; -} -.photo-block-typography-picker-wrapper > div .dashicon { - display: flex; - width: 25px; - justify-content: center; - align-items: center; -} -.photo-block-typography-picker-wrapper > div .dashicon:before { - font-size: 1.4rem; -} - -.photo-block-component-typography-popup { - min-width: 250px; - max-width: 250px; -} -.photo-block-component-typography-popup .components-popover__content { - width: unset; -} -/*!**************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/GradientPicker/editor.scss ***! - \**************************************************************************************************************************************************************************************************************************************************************************************************/ -.photo-block-background-gradient, -.photo-block-background-gradient-sync, -.photo-block-background-gradient-generator { - display: block; -} - -.photo-block-component-gradient-picker-wrapper > div, -.photo-block-component-gradient-sync-wrapper > div, -.photo-block-component-gradient-generator-wrapper > div { - display: grid; - grid-template-columns: 1fr 30px; - align-items: center; -} -.photo-block-component-gradient-picker-wrapper > div h3, -.photo-block-component-gradient-sync-wrapper > div h3, -.photo-block-component-gradient-generator-wrapper > div h3 { - margin-bottom: 0; -} - -.photo-block-component-gradient-picker { - display: inline-block; - height: 28px; - width: 28px; - vertical-align: top; - transition: 100ms transform ease; - border-radius: 50%; - box-shadow: inset 0 0 0 1px !important; -} -.photo-block-component-gradient-picker:hover { - transform: scale(1.1); -} - -.photo-block-component-gradient-picker-popover .components-popover__content { - min-width: 300px; - padding: 10px; -} -/*!***************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/RangeResponsive/editor.scss ***! - \***************************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__image-max-width { - margin: 0; - margin-bottom: 16px; -} -/*!******************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/BackgroundSelector/editor.scss ***! - \******************************************************************************************************************************************************************************************************************************************************************************************************/ -/* Background Image Uploader/Selector */ -.photo-block-background-selector-upload-row { - display: grid; - grid-template-columns: 1fr 30px; - align-items: end; - -moz-column-gap: 15px; - column-gap: 15px; -} -.photo-block-background-selector-upload-row .photo-block-background-selector-upload-button button { - max-height: 30px; - max-width: 30px; -} -.photo-block-background-selector-upload-row .components-base-control__field, -.photo-block-background-selector-upload-row .components-base-control { - margin-bottom: 0 !important; -} - -.photo-block-component-background-settings-popup .components-popover__content { - width: 250px; - padding: 10px; -} - -.photo-block-background-selector__row_item { - margin-bottom: 20px; -} -.photo-block-background-selector__row_item.photo-block-background-selector__row_item-2 { - display: grid; - grid-template-columns: 1fr 30px; - align-items: center; - -moz-column-gap: 15px; - column-gap: 15px; -} -.photo-block-background-selector__row_item.photo-block-background-selector__row_item-2 h3 { - margin-bottom: 0; -} -.photo-block-background-selector__row_item.photo-block-background-selector__row_item-2 button { - max-height: 30px; - max-width: 30px; -} - -.photo-block-background-selector-image-button-error { - color: #bc2b2c !important; - background: #f5e5e4 !important; - border-color: #bc2b2c !important; - box-shadow: inset 0 0 0 1px #bc2b2c !important; -} - -/*# sourceMappingURL=index.css.map*/ \ No newline at end of file +.photo-block-aden{filter:hue-rotate(-20deg) contrast(.9) saturate(.85) brightness(1.2);position:relative;--photo-block-image-filter:hue-rotate(-20deg) contrast(.9) saturate(.85) brightness(1.2)blur(var(--photo-block-blur,0))}.photo-block-aden img{width:100%;z-index:1}.photo-block-aden:before{z-index:2}.photo-block-aden:after,.photo-block-aden:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-aden:after{background:linear-gradient(90deg,rgba(66,10,14,.2),transparent);mix-blend-mode:darken;z-index:3}.photo-block-inkwell{filter:sepia(.3) contrast(1.1) brightness(1.1) grayscale(1);position:relative;--photo-block-image-filter:sepia(.3) contrast(1.1) brightness(1.1) grayscale(1) blur(var(--photo-block-blur,0))}.photo-block-inkwell img{width:100%;z-index:1}.photo-block-inkwell:before{z-index:2}.photo-block-inkwell:after,.photo-block-inkwell:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-inkwell:after{z-index:3}.photo-block-perpetua{position:relative}.photo-block-perpetua img{width:100%;z-index:1}.photo-block-perpetua:before{z-index:2}.photo-block-perpetua:after,.photo-block-perpetua:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-perpetua:after{background:linear-gradient(180deg,#005b9a,#e6c13d);mix-blend-mode:soft-light;opacity:.5;z-index:3}.photo-block-reyes{filter:sepia(.22) brightness(1.1) contrast(.85) saturate(.75);position:relative;--photo-block-image-filter:sepia(.22) brightness(1.1) contrast(.85) saturate(.75) blur(var(--photo-block-blur,0))}.photo-block-reyes img{width:100%;z-index:1}.photo-block-reyes:before{z-index:2}.photo-block-reyes:after,.photo-block-reyes:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-reyes:after{background:#efcdad;mix-blend-mode:soft-light;opacity:.5;z-index:3}.photo-block-gingham{filter:brightness(1.05) hue-rotate(-10deg);position:relative;--photo-block-image-filter:brightness(1.05) hue-rotate(-10deg) blur(var(--photo-block-blur,0))}.photo-block-gingham img{width:100%;z-index:1}.photo-block-gingham:before{z-index:2}.photo-block-gingham:after,.photo-block-gingham:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-gingham:after{background:#e6e6fa;mix-blend-mode:soft-light;z-index:3}.photo-block-toaster{filter:contrast(1.5) brightness(.9);position:relative;--photo-block-image-filter:contrast(1.5) brightness(.9) blur(var(--photo-block-blur,0))}.photo-block-toaster img{width:100%;z-index:1}.photo-block-toaster:before{z-index:2}.photo-block-toaster:after,.photo-block-toaster:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-toaster:after{background:radial-gradient(circle,#804e0f,#3b003b);mix-blend-mode:screen;z-index:3}.photo-block-walden{filter:brightness(1.1) hue-rotate(-10deg) sepia(.3) saturate(1.6);position:relative;--photo-block-image-filter:brightness(1.1) hue-rotate(-10deg) sepia(.3) saturate(1.6) blur(var(--photo-block-blur,0))}.photo-block-walden img{width:100%;z-index:1}.photo-block-walden:before{z-index:2}.photo-block-walden:after,.photo-block-walden:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-walden:after{background:#04c;mix-blend-mode:screen;opacity:.3;z-index:3}.photo-block-hudson{filter:brightness(1.2) contrast(.9) saturate(1.1);position:relative;--photo-block-image-filter:brightness(1.2) contrast(.9) saturate(1.1) blur(var(--photo-block-blur,0))}.photo-block-hudson img{width:100%;z-index:1}.photo-block-hudson:before{z-index:2}.photo-block-hudson:after,.photo-block-hudson:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-hudson:after{background:radial-gradient(circle,#a6b1ff 50%,#342134);mix-blend-mode:multiply;opacity:.5;z-index:3}.photo-block-earlybird{filter:contrast(.9) sepia(.2);position:relative;--photo-block-image-filter:contrast(.9) sepia(.2) blur(var(--photo-block-blur,0))}.photo-block-earlybird img{width:100%;z-index:1}.photo-block-earlybird:before{z-index:2}.photo-block-earlybird:after,.photo-block-earlybird:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-earlybird:after{background:radial-gradient(circle,#d0ba8e 20%,#360309 85%,#1d0210 100%);mix-blend-mode:overlay;z-index:3}.photo-block-mayfair{filter:contrast(1.1) saturate(1.1);position:relative;--photo-block-image-filter:contrast(1.1) saturate(1.1) blur(var(--photo-block-blur,0))}.photo-block-mayfair img{width:100%;z-index:1}.photo-block-mayfair:before{z-index:2}.photo-block-mayfair:after,.photo-block-mayfair:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-mayfair:after{background:radial-gradient(circle at 40% 40%,hsla(0,0%,100%,.8),hsla(0,100%,89%,.6),#111 60%);mix-blend-mode:overlay;opacity:.4;z-index:3}.photo-block-lofi{filter:saturate(1.1) contrast(1.5);position:relative;--photo-block-image-filter:saturate(1.1) contrast(1.5) blur(var(--photo-block-blur,0))}.photo-block-lofi img{width:100%;z-index:1}.photo-block-lofi:before{z-index:2}.photo-block-lofi:after,.photo-block-lofi:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-lofi:after{background:radial-gradient(circle,transparent 70%,#222 150%);mix-blend-mode:multiply;z-index:3}.photo-block-1977{filter:contrast(1.1) brightness(1.1) saturate(1.3);position:relative;--photo-block-image-filter:contrast(1.1) brightness(1.1) saturate(1.3) blur(var(--photo-block-blur,0))}.photo-block-1977 img{width:100%;z-index:1}.photo-block-1977:before{z-index:2}.photo-block-1977:after,.photo-block-1977:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-1977:after{background:rgba(243,106,188,.3);mix-blend-mode:screen;z-index:3}.photo-block-brooklyn{filter:contrast(.9) brightness(1.1);position:relative;--photo-block-image-filter:contrast(.9) brightness(1.1) blur(var(--photo-block-blur,0))}.photo-block-brooklyn img{width:100%;z-index:1}.photo-block-brooklyn:before{z-index:2}.photo-block-brooklyn:after,.photo-block-brooklyn:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-brooklyn:after{background:radial-gradient(circle,rgba(168,223,193,.4) 70%,#c4b7c8);mix-blend-mode:overlay;z-index:3}.photo-block-xpro2{filter:sepia(.3);position:relative;--photo-block-image-filter:sepia(.3) blur(var(--photo-block-blur,0))}.photo-block-xpro2 img{width:100%;z-index:1}.photo-block-xpro2:before{z-index:2}.photo-block-xpro2:after,.photo-block-xpro2:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-xpro2:after{background:radial-gradient(circle,#e6e7e0 40%,rgba(43,42,161,.6) 110%);mix-blend-mode:color-burn;z-index:3}.photo-block-nashville{filter:sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2);position:relative;--photo-block-image-filter:sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2) blur(var(--photo-block-blur,0))}.photo-block-nashville img{width:100%;z-index:1}.photo-block-nashville:before{z-index:2}.photo-block-nashville:after,.photo-block-nashville:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-nashville:after{background:rgba(0,70,150,.4);mix-blend-mode:lighten;z-index:3}.photo-block-nashville:before{background:hsla(15,85%,78%,.56);mix-blend-mode:darken}.photo-block-lark{filter:contrast(.9);position:relative;--photo-block-image-filter:contrast(.9) blur(var(--photo-block-blur,0))}.photo-block-lark img{width:100%;z-index:1}.photo-block-lark:before{z-index:2}.photo-block-lark:after,.photo-block-lark:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-lark:after{background:hsla(0,0%,95%,.8);mix-blend-mode:darken;z-index:3}.photo-block-lark:before{background:#22253f;mix-blend-mode:color-dodge}.photo-block-moon{filter:grayscale(1) contrast(1.1) brightness(1.1);position:relative;--photo-block-image-filter:grayscale(1) contrast(1.1) brightness(1.1) blur(var(--photo-block-blur,0))}.photo-block-moon img{width:100%;z-index:1}.photo-block-moon:before{z-index:2}.photo-block-moon:after,.photo-block-moon:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-moon:after{z-index:3}.photo-block-moon:before{background:#a0a0a0;mix-blend-mode:soft-light}.photo-block-moon:after{background:#383838;mix-blend-mode:lighten}.photo-block-clarendon{filter:contrast(1.2) saturate(1.35);position:relative;--photo-block-image-filter:contrast(1.2) saturate(1.35) blur(var(--photo-block-blur,0))}.photo-block-clarendon img{width:100%;z-index:1}.photo-block-clarendon:before{z-index:2}.photo-block-clarendon:after,.photo-block-clarendon:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-clarendon:after{z-index:3}.photo-block-clarendon:before{background:rgba(127,187,227,.2);mix-blend-mode:overlay}.photo-block-willow{filter:grayscale(.5) contrast(.95) brightness(.9);position:relative;--photo-block-image-filter:grayscale(.5) contrast(.95) brightness(.9) blur(var(--photo-block-blur,0))}.photo-block-willow img{width:100%;z-index:1}.photo-block-willow:before{z-index:2}.photo-block-willow:after,.photo-block-willow:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-willow:after{z-index:3}.photo-block-willow:before{background-color:radial-gradient(40%,circle,#d4a9af 55%,#000 150%);mix-blend-mode:overlay}.photo-block-willow:after{background-color:#d8cdcb;mix-blend-mode:color}.photo-block-rise{filter:brightness(1.05) sepia(.2) contrast(.9) saturate(.9);position:relative;--photo-block-image-filter:brightness(1.05) sepia(.2) contrast(.9) saturate(.9) blur(var(--photo-block-blur,0))}.photo-block-rise img{width:100%;z-index:1}.photo-block-rise:before{z-index:2}.photo-block-rise:after,.photo-block-rise:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-rise:after{background:radial-gradient(circle,hsla(34,63%,75%,.8),transparent 90%);mix-blend-mode:overlay;opacity:.6;z-index:3}.photo-block-rise:before{background:radial-gradient(circle,hsla(32,64%,79%,.15) 55%,rgba(50,30,7,.4));mix-blend-mode:multiply}.photo-block-slumber{filter:saturate(.66) brightness(1.05);position:relative;--photo-block-image-filter:saturate(.66) brightness(1.05) blur(var(--photo-block-blur,0))}.photo-block-slumber img{width:100%;z-index:1}.photo-block-slumber:before{z-index:2}.photo-block-slumber:after,.photo-block-slumber:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-slumber:after{background:rgba(125,105,24,.5);mix-blend-mode:soft-light;z-index:3}.photo-block-slumber:before{background:rgba(69,41,12,.4);mix-blend-mode:lighten}.photo-block-brannan{filter:sepia(.5) contrast(1.4);position:relative;--photo-block-image-filter:sepia(0.5) contrast(1.4) blur(var(--photo-block-blur,0))}.photo-block-brannan img{width:100%;z-index:1}.photo-block-brannan:before{z-index:2}.photo-block-brannan:after,.photo-block-brannan:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-brannan:after{background-color:rgba(161,44,199,.31);mix-blend-mode:lighten;z-index:3}.photo-block-valencia{filter:contrast(1.08) brightness(1.08) sepia(.08);position:relative;--photo-block-image-filter:contrast(1.08) brightness(1.08) sepia(0.08) blur(var(--photo-block-blur,0))}.photo-block-valencia img{width:100%;z-index:1}.photo-block-valencia:before{z-index:2}.photo-block-valencia:after,.photo-block-valencia:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-valencia:after{background:#3a0339;mix-blend-mode:exclusion;opacity:.5;z-index:3}.photo-block-kelvin{position:relative}.photo-block-kelvin img{width:100%;z-index:1}.photo-block-kelvin:before{z-index:2}.photo-block-kelvin:after,.photo-block-kelvin:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-kelvin:after{background:#b77d21;mix-blend-mode:overlay;z-index:3}.photo-block-kelvin:before{background:#382c34;mix-blend-mode:color-dodge}.photo-block-maven{filter:sepia(.25) brightness(.95) contrast(.95) saturate(1.5);position:relative;--photo-block-image-filter:sepia(.25) brightness(.95) contrast(.95) saturate(1.5) blur(var(--photo-block-blur,0))}.photo-block-maven img{width:100%;z-index:1}.photo-block-maven:before{z-index:2}.photo-block-maven:after,.photo-block-maven:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-maven:after{background:rgba(3,230,26,.2);mix-blend-mode:hue;z-index:3}.photo-block-stinson{filter:contrast(.75) saturate(.85) brightness(1.15);position:relative;--photo-block-image-filter:contrast(0.75) saturate(0.85) brightness(1.15) blur(var(--photo-block-blur,0))}.photo-block-stinson img{width:100%;z-index:1}.photo-block-stinson:before{z-index:2}.photo-block-stinson:after,.photo-block-stinson:before{content:"";display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.photo-block-stinson:after{z-index:3}.photo-block-stinson:before{background:hsla(11,79%,72%,.2);mix-blend-mode:soft-light}@keyframes photo-block-spin{to{transform:rotate(1turn)}}.wp-block.dlx-photo-block{margin-bottom:0;margin-top:0}.dlx-photo-block__image-wrapper a{display:inline-flex;line-height:0}.dlx-photo-block__figure,.dlx-photo-block__screen-edit-image-wrapper{align-items:center;display:flex;flex-direction:column;flex-wrap:wrap;position:relative}.dlx-photo-block__image{box-sizing:border-box}.dlx-photo-block__figure>.dlx-photo-block__caption{width:100%}figcaption.dlx-photo-block__caption{box-sizing:border-box;font-style:var(--photo-block__caption-font-style,normal);position:relative;z-index:2}.dlx-photo-block__caption-wrapper .dlx-photo-block__caption-overlay figcaption.dlx-photo-block__caption{display:flex;height:100%;left:0;position:absolute;top:0;width:100%}figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner{align-items:center}figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner.aligncenter{justify-content:center}figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner.alignleft{justify-content:flex-start}figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner.alignright{justify-content:flex-end}figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner>a,figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner>code,figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner>em,figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner>s,figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner>span,figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner>strong,figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner>sub,figcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner>sup{flex-shrink:0}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner{font-size:var(--photo-block__caption-font-size);font-style:var(--photo-block__caption-font-style,normal)}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner>:first-child{margin-top:0;padding-top:0}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner>:last-child{margin-bottom:0;padding-bottom:0}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner>p:first-child{margin-bottom:0;margin-top:0;padding-bottom:0;padding-top:0}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block{margin-left:unset;margin-right:unset}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-verse,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner blockquote,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner cite,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h1,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h2,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h3,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h4,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h5,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h6,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner li,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner p,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner ul{color:var(--photo-block__caption-text-color)}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-verse a,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner blockquote a,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner cite a,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h1 a,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h2 a,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h3 a,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h4 a,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h5 a,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h6 a,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner li a,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner p a,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner ul a{color:var(--photo-block-caption-link-color)}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-verse a:hover,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner blockquote a:hover,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner cite a:hover,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h1 a:hover,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h2 a:hover,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h3 a:hover,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h4 a:hover,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h5 a:hover,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h6 a:hover,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner li a:hover,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner p a:hover,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner ul a:hover{color:var(--photo-block-caption-link-color-hover)}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-verse,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner li,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner p{font-family:var(--photo-block-caption-font-family);font-size:1.25em;line-height:1.35}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner blockquote{font-size:var(--photo-block-caption-font-size)}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner blockquote p{font-family:var(--photo-block-caption-font-family);font-size:1.3em;line-height:1.35}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner blockquote cite{font-family:var(--photo-block-caption-font-family);font-size:1.5em;line-height:1.4}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner li{margin-left:1.5em}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h1{font-family:var(--photo-block-caption-headings-font-family);font-size:2.5em;line-height:1.2}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h2{font-family:var(--photo-block-caption-headings-font-family);font-size:2em;line-height:1.25}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h3{font-family:var(--photo-block-caption-headings-font-family);font-size:1.75em;line-height:1.3}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h4{font-family:var(--photo-block-caption-headings-font-family);font-size:1.5em;line-height:1.35}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h5{font-family:var(--photo-block-caption-headings-font-family);font-size:1.25em;line-height:1.4}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h6{font-family:var(--photo-block-caption-headings-font-family);font-size:1.1em;line-height:1.45}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner li,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner p{margin-bottom:.6em;margin-top:0}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h1,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h2,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h3,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h4,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h5,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner h6{margin-bottom:.8em;margin-top:0}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-button{font-size:var(--photo-block-caption-font-size)}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-button .wp-element-button,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner button{background:var(--photo-block-caption-link-color);color:var(--photo-block-caption-link-color-hover);font-family:var(--photo-block-caption-font-family);font-size:1.25em;line-height:1.35;transition:all .3s ease-in-out}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-button .wp-element-button:hover,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner button:hover{background:var(--photo-block-caption-link-color);color:var(--photo-block-caption-link-color-hover)}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-button,figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner button{margin-bottom:.6em}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-button:has(.has-text-align-center){margin:0 auto}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-button:has(.has-text-align-right){margin-left:auto}figcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner .wp-block-button:has(.has-text-align-left){margin-right:auto}.dlx-photo-block__container{display:flex;position:relative}.dlx-photo-block__container.alignleft{justify-content:flex-start}.dlx-photo-block__container.alignright{justify-content:flex-end}.dlx-photo-block__container.aligncenter,.dlx-photo-block__container.alignfull,.dlx-photo-block__container.alignwide{justify-content:center}.alignleft .dlx-photo-block__container{justify-content:flex-start}.alignright .dlx-photo-block__container{justify-content:flex-end}.aligncenter .dlx-photo-block__container,.alignfull .dlx-photo-block__container,.alignwide .dlx-photo-block__container{justify-content:center}.dlx-photo-block-caption-wrapper,.dlx-photo-block__image-wrapper{position:relative}.dlx-photo-block__image-wrapper{background-color:var(--photo-block-photo-background-color);border-radius:var(--photo-block-photo-border-radius);box-sizing:border-box;display:inline-flex;height:var(--photo-block-image-height);justify-content:center;margin:var(--photo-block-image-margin,0);max-height:var(--photo-block-image-max-height);max-width:var(--photo-block-image-max-width);min-height:var(--photo-block-image-min-height);min-width:var(--photo-block-image-min-width);width:var(--photo-block-image-width)}.dlx-photo-block__image-wrapper img{border-bottom:var(--photo-block-image-border-bottom,0);border-left:var(--photo-block-image-border-left,0);border-radius:var(--photo-block-photo-border-radius,0);border-right:var(--photo-block-image-border-right,0);border-top:var(--photo-block-image-border-top,0);filter:var(--photo-block-image-filter,unset);-o-object-fit:var(--photo-block-image-object-fit,unset);object-fit:var(--photo-block-image-object-fit,unset);-o-object-position:var(--photo-block-image-object-position,center);object-position:var(--photo-block-image-object-position,center);opacity:var(--photo-block-image-opacity,1);padding:var(--photo-block-image-padding,0)}.dlx-photo-block__caption-wrapper.overlay-display-hover:before{display:none}.dlx-caption-position-overlay .dlx-photo-block__image-wrapper{border-bottom:var(--photo-block-image-border-bottom,0);border-left:var(--photo-block-image-border-left,0);border-radius:var(--photo-block-photo-border-radius,0);border-right:var(--photo-block-image-border-right,0);border-top:var(--photo-block-image-border-top,0);box-shadow:var(--photo-block-image-drop-shadow-horizontal,0) var(--photo-block-image-drop-shadow-vertical,0) var(--photo-block-image-drop-shadow-blur,0) var(--photo-block-image-drop-shadow-spread,0) var(--photo-block-image-drop-shadow-color,#000);box-sizing:border-box;display:inline-flex;margin:var(--photo-block-image-margin,0);padding:var(--photo-block-image-padding,0);position:relative}.dlx-photo-block__screen-edit-image-inner{display:inline-flex;position:relative}.dlx-photo-block__image-wrapper img{height:auto;max-width:100%}.dlx-caption-position-overlay .dlx-photo-block__image-wrapper img{border:unset;border-radius:var(--photo-block-photo-border-radius,var(--photo-block-photo-border-radius,unset));height:auto;margin:unset;max-width:100%;padding:unset}.dlx-photo-block__figure{margin:var(--photo-block-figure-margin,0);width:100%}.dlx-photo-block.dlx-has-drop-shadow img{box-shadow:var(--photo-block-image-drop-shadow-horizontal,0) var(--photo-block-image-drop-shadow-vertical,0) var(--photo-block-image-drop-shadow-blur,0) var(--photo-block-image-drop-shadow-spread,0) var(--photo-block-image-drop-shadow-color,#000);box-sizing:border-box}.dlx-caption-position-overlay.dlx-photo-block.dlx-has-drop-shadow img{box-shadow:unset}.dlx-photo-block__caption-wrapper{box-sizing:border-box;position:relative;width:100%}.dlx-photo-block__caption--has-overlay{height:100%;left:0;position:absolute;top:0;width:100%}.dlx-photo-block__caption--has-overlay .dlx-photo-caption-block{height:100%;left:0;margin:0;position:absolute;top:0;width:100%}.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper{height:100%;position:absolute;width:100%}.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover .dlx-photo-block__caption-overlay,.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover:hover .dlx-photo-block__caption-overlay{transition:all .5s ease-in-out}.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover .dlx-photo-block__caption-overlay{opacity:0}.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover:hover .dlx-photo-block__caption-overlay{opacity:1}.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-down .dlx-photo-block__caption-overlay{height:0;overflow:hidden}.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-down:hover .dlx-photo-block__caption-overlay{height:100%}.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-up .dlx-photo-block__caption-overlay{bottom:0;height:0;overflow:hidden;top:unset}.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-up:hover .dlx-photo-block__caption-overlay{height:100%}.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-left .dlx-photo-block__caption-overlay{left:unset;overflow:hidden;right:0;width:0}.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-left:hover .dlx-photo-block__caption-overlay{width:100%}.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-right .dlx-photo-block__caption-overlay{left:0;overflow:hidden;right:unset;width:0}.dlx-photo-block__caption--has-overlay .dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-right:hover .dlx-photo-block__caption-overlay{width:100%}.dlx-photo-block__caption--has-overlay figcaption{display:flex;height:100%;left:0;position:absolute;top:0;width:100%}.dlx-photo-block__caption--has-overlay figcaption .dlx-photo-block__caption-inner{display:flex;flex-direction:column}.dlx-photo-block__caption--has-overlay .overlay-vertical-middle figcaption{align-items:center}.dlx-photo-block__caption--has-overlay .overlay-vertical-top figcaption{align-items:flex-start}.dlx-photo-block__caption--has-overlay .overlay-vertical-bottom figcaption{align-items:flex-end}.dlx-photo-block__caption--has-overlay .overlay-horizontal-center figcaption{justify-content:center}.dlx-photo-block__caption--has-overlay .overlay-horizontal-left figcaption{justify-content:flex-start}.dlx-photo-block__caption--has-overlay .overlay-horizontal-right figcaption{justify-content:flex-end}.dlx-photo-block__caption--has-overlay .caption-vertical-middle figcaption .dlx-photo-block__caption-inner{justify-content:center}.dlx-photo-block__caption--has-overlay .caption-vertical-top figcaption .dlx-photo-block__caption-inner{justify-content:flex-start}.dlx-photo-block__caption--has-overlay .caption-vertical-bottom figcaption .dlx-photo-block__caption-inner{justify-content:flex-end}.dlx-photo-block__caption--has-overlay .caption-horizontal-center figcaption .dlx-photo-block__caption-inner{align-items:center;text-align:center}.dlx-photo-block__caption--has-overlay .caption-horizontal-left figcaption .dlx-photo-block__caption-inner{align-items:flex-start;text-align:left}.dlx-photo-block__caption--has-overlay .caption-horizontal-right figcaption .dlx-photo-block__caption-inner{align-items:flex-end;text-align:right}.dlx-photo-block__caption-wrapper figcaption.dlx-photo-block__caption{box-sizing:border-box;color:var(--photo-block-caption-text-color,inherit);display:flex;font-family:var(--photo-block-caption-font-family,inherit);font-size:var(--photo-block-caption-font-size,inherit);font-weight:var(--photo-block-caption-font-weight,inherit);letter-spacing:var(--photo-block-caption-letter-spacing,inherit);line-height:var(--photo-block-caption-line-height,inherit);margin-block:0;text-align:var(--photo-block-caption-text-align,center);text-transform:var(--photo-block-caption-text-transform,inherit)}.dlx-photo-block__caption-wrapper figcaption.dlx-photo-block__caption a{color:var(--photo-block-caption-link-color,inherit)}.dlx-photo-block__caption-wrapper figcaption.dlx-photo-block__caption a:hover{color:var(--photo-block-caption-link-color-hover,inherit)}.dlx-photo-caption-block__inner-blocks{z-index:20}.dlx-photo-block__caption-wrapper figcaption.dlx-photo-block__caption .dlx-photo-block__caption-inner{background:var(--photo-block-caption-background-color);border-bottom:var(--photo-block-caption-border-bottom,0);border-left:var(--photo-block-caption-border-left,0);border-radius:var(--photo-block-caption-border-radius,0);border-right:var(--photo-block-caption-border-right,0);border-top:var(--photo-block-caption-border-top,0);box-sizing:border-box;height:var(--photo-block-caption-height,unset);margin:var(--photo-block-caption-margin,0);max-height:var(--photo-block-caption-max-height,unset);max-width:var(--photo-block-caption-max-width,unset);min-height:var(--photo-block-caption-min-height,unset);min-width:var(--photo-block-caption-min-width,unset);padding:var(--photo-block-caption-padding,0);width:var(--photo-block-caption-width,100%);z-index:10}.dlx-photo-caption-block.wp-block{margin:0}.dlx-photo-block__caption-wrapper .aligncenter .dlx-photo-block__caption-inner{justify-content:center}.dlx-photo-block__caption-wrapper .alignleft .dlx-photo-block__caption-inner{justify-content:flex-start}.dlx-photo-block__caption-wrapper .alignright .dlx-photo-block__caption-inner{justify-content:flex-end}.dlx-photo-block__caption-overlay{border-bottom:var(--photo-block-caption-border-bottom,0);border-left:var(--photo-block-caption-border-left,0);border-right:var(--photo-block-caption-border-right,0);border-top:var(--photo-block-caption-border-top,0);box-sizing:border-box;overflow:hidden}.dlx-photo-block__caption-overlay:before{background:var(--photo-block-caption-overlay-background-color);border-radius:var(--photo-block-caption-overlay-border-radius,0);bottom:0;content:"";display:block;height:100%;left:0;position:absolute;right:0;top:0;transition:background .35s ease-in-out;width:100%;z-index:1}.dlx-photo-block__caption-wrapper:hover figcaption:before{background:var(--photo-block-caption-overlay-background-color-hover)}.dlx-photo-block__caption-overlay.overlay-type-gradient figcaption:before,.dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-type-gradient:hover figcaption:before{background-image:var(--photo-block-caption-overlay-background-gradient);bottom:0;content:"";display:block;height:100%;left:0;opacity:var(--photo-block-caption-overlay-background-gradient-opacity);position:absolute;right:0;top:0;transition:opacity .35s ease-in-out;width:100%;z-index:1}.dlx-photo-block__caption-overlay.overlay-type-gradient:hover:before{opacity:var(--photo-block-caption-overlay-background-gradient-opacity-hover)}.dlx-photo-block__caption-overlay.overlay-type-image figcaption:before{background-color:var(--photo-block-caption-overlay-background-image-color);background-image:var(--photo-block-caption-overlay-background-image-url,unset);background-position:var(--photo-block-caption-overlay-background-image-position,center);background-repeat:var(--photo-block-caption-overlay-background-image-repeat,no-repeat);background-size:var(--photo-block-caption-overlay-background-size,cover);bottom:0;content:"";display:block;height:100%;left:0;opacity:var(--photo-block-caption-overlay-background-image-opacity,1);position:absolute;right:0;top:0;transition:opacity .35s ease-in-out;width:100%;z-index:1}.dlx-photo-block__caption-overlay.overlay-type-image:hover figcaption:before{opacity:var(--photo-block-caption-overlay-background-image-opacity-hover)}.dlx-photo-block__block-wrapper,.wp-block .filepond--wrapper{justify-content:center;margin:0 auto}.is-layout-small .dlx-photo-block__upload-types__container{display:flex;flex-wrap:wrap;justify-content:center;row-gap:15px}.is-layout-small .dlx-photo-block__upload-types__container button{justify-content:center!important;margin-right:0!important;width:100%}.is-layout-small .dlx-photo-block__upload-target__container{display:none!important}.is-layout-small .dlx-photo-block__upload-types-url__container{display:grid;grid-template-columns:1fr}.dlx-photo-block__screen-initial{border:1px solid #333;max-width:800px;padding:35px;width:100%}.dlx-photo-block__image:not(.has-css-gram){filter:blur(var(--photo-block-blur,0))}@media(max-width:768px){.dlx-photo-block__container.hide-on-mobile{display:none}}@media(min-width:769px){.dlx-photo-block__container.hide-on-desktop{display:none}}@media(min-width:769px)and (max-width:1024px){.dlx-photo-block__container.hide-on-tablet{display:none}}@media(max-width:768px){.dlx-photo-block__caption-wrapper.hide-on-mobile{display:none}}@media(min-width:769px){.dlx-photo-block__caption-wrapper.hide-on-desktop{display:none}}@media(min-width:769px)and (max-width:1024px){.dlx-photo-block__caption-wrapper.hide-on-tablet{display:none}} +.dlx-photo-block__container{font-size:16px}.block-editor-block-icon svg.lucide,svg.lucide{fill:none;color:currentColor}.block-editor-block-icon svg.lucide *,svg.lucide *{color:currentColor}.dlx-photo-block__container .PinturaRootWrapper{height:100vh;max-height:650px}.dlx-photo-block__container button.PinturaButton.PinturaButtonExport{background:var(--wp-admin-theme-color);box-shadow:unset;color:#fff;font-size:16px;font-weight:600}.dlx-photo-block__container .PinturaRoot .PinturaStage{align-self:center;max-width:80%;min-width:80%;width:100%}.dlx-photo-block__container .PinturaUtilMain{align-items:center;justify-content:center}.dlx-photo-block__container .PinturaUtilMain>div{width:100%}.dlx-screen-initial .dlx-photo-block__container{padding:15px 25px 15px 15px} +.dlx-photo-block__upload-types__container button.components-button{margin-right:8px}.dlx-photo-block__upload-types__container button.components-button.has-icon{padding:15px 20px}.dlx-photo-block__upload-types__container button.components-button:last-of-type{margin-right:0}.dlx-photo-block__upload-types__container button.dlx-photo-block__upload-types__back.components-button{color:#fff}.dlx-photo-block__upload-types-url__container{display:grid;grid-template-columns:1fr 75px 75px;grid-gap:8px}.dlx-photo-block__upload-types-url__container input[type=url]{display:inline-block;min-height:40px}.dlx-photo-block__upload-types-url__container label{left:-9999px;position:absolute;clip:rect(0 0 0 0)}.dlx-photo-block__upload-types-url__container button.components-button{height:30px;margin-left:4px;margin-right:8px;min-width:unset;padding-left:15px;padding-right:15px;width:100%}.dlx-photo-block__upload-types-url__container button.components-button.has-icon{padding:20px}.dlx-photo-block__upload-types-url__container button.components-button.dlx-photo-block__upload-types-url__upload{color:#fff}.dlx-photo-block__upload-types-url__container button.components-button:last-of-type{margin-right:0}.dlx-photo-block__upload-types-url__container button.components-button.is-url-saving svg{animation:photo-block-spin 1s linear infinite} +:root{--photo-block-admin--color-notice--info:#e3f3f7;--photo-block-admin--color-notice--info-alt:#3a8dc4;--photo-block-admin--color-notice--success:#eaf5ea;--photo-block-admin--color-notice--success-alt:#49a939;--photo-block-admin--color-notice--warning:#fef6e1;--photo-block-admin--color-notice--warning-alt:#e8a931;--photo-block-admin--color-notice--error:#f5e5e4;--photo-block-admin--color-notice--error-alt:#bc2b2c;--photo-block-admin--color-notice--secondary:#e2e3e5;--photo-block-admin--color-notice--secondary-alt:#41464b}.photo-block-admin__notice{margin:10px 0}.photo-block-admin__notice.photo-block-admin__notice--photo-block-icon .components-notice__content{align-items:center;display:grid;grid-template-columns:32px 1fr 1px}.photo-block-admin__notice.photo-block-admin__notice--photo-block-icon.photo-block-admin__notice-appearance--inline .components-notice__content{display:flex}.photo-block-admin__notice.photo-block-admin__notice--photo-block-icon.photo-block-admin__notice-appearance--inline .components-notice__content .photo-block-admin__notice-icon{margin-right:8px}.photo-block-admin__notice .photo-block-admin__notice-message{color:var(--photo-block-admin--color-dark);font-size:1.1em;font-weight:500;line-height:1.2}.photo-block-admin__notice.photo-block-admin__notice-appearance--block .components-notice{border-left:4px solid transparent;margin:0 0 15px;padding:15px 0 15px 15px}.photo-block-admin__notice.photo-block-admin__notice-appearance--inline .components-notice{padding-left:0}.photo-block-admin__notice svg{align-items:center;display:flex;height:20px;width:20px}.photo-block-admin__notice.photo-block-admin__notice-type--error:not(.photo-block-admin__notice-appearance--inline){background-color:var(--photo-block-admin--color-notice--error)!important}.photo-block-admin__notice.photo-block-admin__notice-type--error:not(.photo-block-admin__notice-appearance--inline) .components-notice{background-color:var(--photo-block-admin--color-notice--error)!important;border-left-color:var(--photo-block-admin--color-notice--error-alt)}.photo-block-admin__notice.photo-block-admin__notice-type--error:not(.photo-block-admin__notice-appearance--inline) svg path{fill:var(--photo-block-admin--color-notice--error-alt)}.photo-block-admin__notice.photo-block-admin__notice-type--error.photo-block-admin__notice-appearance--inline .photo-block-admin__notice-message{color:var(--photo-block-admin--color-notice--error-alt);font-size:.9em}.photo-block-admin__notice.photo-block-admin__notice-type--error.photo-block-admin__notice-appearance--inline svg{height:16px;width:16px}.photo-block-admin__notice.photo-block-admin__notice-type--error.photo-block-admin__notice-appearance--inline svg path{fill:var(--photo-block-admin--color-notice--error-alt)}.photo-block-admin__notice.photo-block-admin__notice-type--success{background-color:var(--photo-block-admin--color-notice--success)}.photo-block-admin__notice.photo-block-admin__notice-type--success .components-notice{border-left-color:var(--photo-block-admin--color-notice--success-alt)}.photo-block-admin__notice.photo-block-admin__notice-type--success svg path{fill:var(--photo-block-admin--color-notice--success-alt)}.photo-block-admin__notice.photo-block-admin__notice-type--info{background-color:var(--photo-block-admin--color-notice--info)}.photo-block-admin__notice.photo-block-admin__notice-type--info .components-notice{border-left-color:var(--photo-block-admin--color-notice--info-alt)}.photo-block-admin__notice.photo-block-admin__notice-type--info svg path{fill:var(--photo-block-admin--color-notice--info-alt)}.photo-block-admin__notice.photo-block-admin__notice-type--warning{background-color:var(--photo-block-admin--color-notice--warning)}.photo-block-admin__notice.photo-block-admin__notice-type--warning .components-notice{border-left-color:var(--photo-block-admin--color-notice--warning-alt)}.photo-block-admin__notice.photo-block-admin__notice-type--warning svg path{fill:var(--photo-block-admin--color-notice--warning-alt)} +.dlx-photo-block__upload-target__container{align-items:center;border:4px dashed #c3c4c7;display:flex;justify-content:center;margin-top:15px;min-height:250px;position:relative;width:100%}.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__label{align-items:center;display:flex;flex-wrap:wrap;justify-content:center}.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__label-svg{margin-bottom:15px}.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__label-svg svg{height:36px;width:36px}.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__label-text{font-size:1.2em;text-align:center;width:100%}.dlx-photo-block__upload-target__container .filepond--browser{display:none}.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__filepond{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;width:100%;z-index:1}.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__filepond__loading-overlay{align-items:center;background:hsla(0,0%,100%,.8);display:flex;flex-flow:column;flex-wrap:wrap;height:100%;justify-content:center;position:absolute;width:100%;z-index:2}.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__filepond__loading{display:flex;justify-content:center;margin-bottom:15px;width:100%}.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__filepond__loading svg{height:36px;width:36px}.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__filepond__loading-label{font-size:1.3em;margin-bottom:15px}.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__filepond__loading-progress{align-items:center;background:#ddd;border-radius:5px;display:inline-flex;height:12px;justify-content:flex-start;min-width:420px;padding:0 3px;transition:all .5s ease-in-out}.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__filepond__loading-progress-bar{background:var(--wp-admin-theme-color,#007cba);border-radius:5px;height:5px}.dlx-photo-block__upload-target__container .dlx-photo-block__upload-target__label{pointer-events:none;position:relative;z-index:2}.dlx-photo-block__upload-target__container .filepond--wrapper{height:100%;position:absolute;width:100%}.dlx-photo-block__upload-target__container .filepond--drop-label{cursor:pointer;height:100%;position:absolute;width:100%}.dlx-photo-block__upload-target__container ul.filepond--list{background:#fff;list-style-type:none;margin:0;padding:0} +.filepond--image-preview-markup{left:0;position:absolute;top:0}.filepond--image-preview-wrapper{z-index:2}.filepond--image-preview-overlay{display:block;left:0;margin:0;max-height:7rem;min-height:5rem;opacity:0;pointer-events:none;position:absolute;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%;z-index:2}.filepond--image-preview-overlay svg{color:inherit;height:auto;max-height:inherit;width:100%}.filepond--image-preview-overlay-idle{color:rgba(40,40,40,.85);mix-blend-mode:multiply}.filepond--image-preview-overlay-success{color:#369763;mix-blend-mode:normal}.filepond--image-preview-overlay-failure{color:#c44e47;mix-blend-mode:normal}@supports (-webkit-marquee-repetition:infinite) and ((-o-object-fit:fill) or (object-fit:fill)){.filepond--image-preview-overlay-idle{mix-blend-mode:normal}}.filepond--image-preview-wrapper{background:rgba(0,0,0,.01);border-radius:.45em;height:100%;left:0;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.filepond--image-preview{align-items:center;background:#222;display:flex;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;will-change:transform,opacity;z-index:1}.filepond--image-clip{margin:0 auto;overflow:hidden;position:relative}.filepond--image-clip[data-transparency-indicator=grid] canvas,.filepond--image-clip[data-transparency-indicator=grid] img{background-color:#fff;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23eee%27 viewBox=%270 0 100 100%27%3E%3Cpath d=%27M0 0h50v50H0M50 50h50v50H50%27/%3E%3C/svg%3E");background-size:1.25em 1.25em}.filepond--image-bitmap,.filepond--image-vector{left:0;position:absolute;top:0;will-change:transform}.filepond--root[data-style-panel-layout~=integrated] .filepond--image-preview-wrapper{border-radius:0}.filepond--root[data-style-panel-layout~=integrated] .filepond--image-preview{align-items:center;display:flex;height:100%;justify-content:center}.filepond--root[data-style-panel-layout~=circle] .filepond--image-preview-wrapper{border-radius:99999rem}.filepond--root[data-style-panel-layout~=circle] .filepond--image-preview-overlay{bottom:0;top:auto;-webkit-transform:scaleY(-1);transform:scaleY(-1)}.filepond--root[data-style-panel-layout~=circle] .filepond--file .filepond--file-action-button[data-align*=bottom]:not([data-align*=center]){margin-bottom:.325em}.filepond--root[data-style-panel-layout~=circle] .filepond--file [data-align*=left]{left:calc(50% - 3em)}.filepond--root[data-style-panel-layout~=circle] .filepond--file [data-align*=right]{right:calc(50% - 3em)}.filepond--root[data-style-panel-layout~=circle] .filepond--progress-indicator[data-align*=bottom][data-align*=left],.filepond--root[data-style-panel-layout~=circle] .filepond--progress-indicator[data-align*=bottom][data-align*=right]{margin-bottom:.5125em}.filepond--root[data-style-panel-layout~=circle] .filepond--progress-indicator[data-align*=bottom][data-align*=center]{margin-bottom:.1875em;margin-left:.1875em;margin-top:0} +.filepond--assistant{border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}.filepond--browser.filepond--browser{font-size:0;left:1em;margin:0;opacity:0;padding:0;position:absolute;top:1.75em;width:calc(100% - 2em)}.filepond--data{border:none;contain:strict;height:0;margin:0;padding:0;visibility:hidden;width:0}.filepond--data,.filepond--drip{pointer-events:none;position:absolute}.filepond--drip{background:rgba(0,0,0,.01);border-radius:.5em;bottom:0;left:0;opacity:.1;overflow:hidden;right:0;top:0}.filepond--drip-blob{background:#292625;border-radius:50%;height:8em;margin-left:-4em;margin-top:-4em;-webkit-transform-origin:center center;transform-origin:center center;width:8em}.filepond--drip-blob,.filepond--drop-label{left:0;position:absolute;top:0;will-change:transform,opacity}.filepond--drop-label{align-items:center;color:#4f4f4f;display:flex;height:0;justify-content:center;margin:0;right:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.filepond--drop-label.filepond--drop-label label{display:block;margin:0;padding:.5em}.filepond--drop-label label{cursor:default;font-size:.875em;font-weight:400;line-height:1.5;text-align:center}.filepond--label-action{text-decoration:underline;-webkit-text-decoration-skip:ink;cursor:pointer;-webkit-text-decoration-color:#a7a4a4;text-decoration-color:#a7a4a4;text-decoration-skip-ink:auto}.filepond--root[data-disabled] .filepond--drop-label label{opacity:.5}.filepond--file-action-button.filepond--file-action-button{border:none;font-family:inherit;font-size:1em;height:1.625em;line-height:inherit;margin:0;outline:none;padding:0;width:1.625em;will-change:transform,opacity}.filepond--file-action-button.filepond--file-action-button span{border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}.filepond--file-action-button.filepond--file-action-button svg{height:100%;width:100%}.filepond--file-action-button.filepond--file-action-button:after{bottom:-.75em;content:"";left:-.75em;position:absolute;right:-.75em;top:-.75em}.filepond--file-action-button{background-color:rgba(0,0,0,.5);background-image:none;border-radius:50%;box-shadow:0 0 0 0 hsla(0,0%,100%,0);color:#fff;cursor:auto;transition:box-shadow .25s ease-in}.filepond--file-action-button:focus,.filepond--file-action-button:hover{box-shadow:0 0 0 .125em hsla(0,0%,100%,.9)}.filepond--file-action-button[disabled]{background-color:rgba(0,0,0,.25);color:hsla(0,0%,100%,.5)}.filepond--file-action-button[hidden]{display:none}.filepond--action-edit-item.filepond--action-edit-item{height:2em;padding:.1875em;width:2em}.filepond--action-edit-item.filepond--action-edit-item[data-align*=center]{margin-left:-.1875em}.filepond--action-edit-item.filepond--action-edit-item[data-align*=bottom]{margin-bottom:-.1875em}.filepond--action-edit-item-alt{background:transparent;border:none;color:inherit;font-family:inherit;line-height:inherit;margin:0 0 0 .25em;outline:none;padding:0;pointer-events:all;position:absolute}.filepond--action-edit-item-alt svg{height:1.3125em;width:1.3125em}.filepond--action-edit-item-alt span{font-size:0;opacity:0}.filepond--file-info{align-items:flex-start;display:flex;flex:1;flex-direction:column;margin:0 .5em 0 0;min-width:0;pointer-events:none;position:static;-webkit-user-select:none;-ms-user-select:none;user-select:none;will-change:transform,opacity}.filepond--file-info *{margin:0}.filepond--file-info .filepond--file-info-main{font-size:.75em;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.filepond--file-info .filepond--file-info-sub{font-size:.625em;opacity:.5;transition:opacity .25s ease-in-out;white-space:nowrap}.filepond--file-info .filepond--file-info-sub:empty{display:none}.filepond--file-status{align-items:flex-end;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;margin:0;min-width:2.25em;pointer-events:none;position:static;text-align:right;-webkit-user-select:none;-ms-user-select:none;user-select:none;will-change:transform,opacity}.filepond--file-status *{margin:0;white-space:nowrap}.filepond--file-status .filepond--file-status-main{font-size:.75em;line-height:1.2}.filepond--file-status .filepond--file-status-sub{font-size:.625em;opacity:.5;transition:opacity .25s ease-in-out}.filepond--file-wrapper.filepond--file-wrapper{border:none;height:100%;margin:0;min-width:0;padding:0}.filepond--file-wrapper.filepond--file-wrapper>legend{border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}.filepond--file{align-items:flex-start;border-radius:.5em;color:#fff;display:flex;height:100%;padding:.5625em;position:static}.filepond--file .filepond--file-status{margin-left:auto;margin-right:2.25em}.filepond--file .filepond--processing-complete-indicator{pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;z-index:3}.filepond--file .filepond--file-action-button,.filepond--file .filepond--processing-complete-indicator,.filepond--file .filepond--progress-indicator{position:absolute}.filepond--file [data-align*=left]{left:.5625em}.filepond--file [data-align*=right]{right:.5625em}.filepond--file [data-align*=center]{left:calc(50% - .8125em)}.filepond--file [data-align*=bottom]{bottom:1.125em}.filepond--file [data-align=center]{top:calc(50% - .8125em)}.filepond--file .filepond--progress-indicator{margin-top:.1875em}.filepond--file .filepond--progress-indicator[data-align*=right]{margin-right:.1875em}.filepond--file .filepond--progress-indicator[data-align*=left]{margin-left:.1875em}[data-filepond-item-state*=error] .filepond--file-info,[data-filepond-item-state*=invalid] .filepond--file-info,[data-filepond-item-state=cancelled] .filepond--file-info{margin-right:2.25em}[data-filepond-item-state~=processing] .filepond--file-status-sub{opacity:0}[data-filepond-item-state~=processing] .filepond--action-abort-item-processing~.filepond--file-status .filepond--file-status-sub{opacity:.5}[data-filepond-item-state=processing-error] .filepond--file-status-sub{opacity:0}[data-filepond-item-state=processing-error] .filepond--action-retry-item-processing~.filepond--file-status .filepond--file-status-sub{opacity:.5}[data-filepond-item-state=processing-complete] .filepond--action-revert-item-processing svg{-webkit-animation:fall .5s linear .125s both;animation:fall .5s linear .125s both}[data-filepond-item-state=processing-complete] .filepond--file-status-sub{opacity:.5}[data-filepond-item-state=processing-complete] .filepond--file-info-sub,[data-filepond-item-state=processing-complete] .filepond--processing-complete-indicator:not([style*=hidden])~.filepond--file-status .filepond--file-status-sub{opacity:0}[data-filepond-item-state=processing-complete] .filepond--action-revert-item-processing~.filepond--file-info .filepond--file-info-sub{opacity:.5}[data-filepond-item-state*=error] .filepond--file-wrapper,[data-filepond-item-state*=error] .filepond--panel,[data-filepond-item-state*=invalid] .filepond--file-wrapper,[data-filepond-item-state*=invalid] .filepond--panel{-webkit-animation:shake .65s linear both;animation:shake .65s linear both}[data-filepond-item-state*=busy] .filepond--progress-indicator svg{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes shake{10%,90%{-webkit-transform:translateX(-.0625em);transform:translateX(-.0625em)}20%,80%{-webkit-transform:translateX(.125em);transform:translateX(.125em)}30%,50%,70%{-webkit-transform:translateX(-.25em);transform:translateX(-.25em)}40%,60%{-webkit-transform:translateX(.25em);transform:translateX(.25em)}}@keyframes shake{10%,90%{-webkit-transform:translateX(-.0625em);transform:translateX(-.0625em)}20%,80%{-webkit-transform:translateX(.125em);transform:translateX(.125em)}30%,50%,70%{-webkit-transform:translateX(-.25em);transform:translateX(-.25em)}40%,60%{-webkit-transform:translateX(.25em);transform:translateX(.25em)}}@-webkit-keyframes fall{0%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}70%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1;-webkit-transform:scale(1.1);transform:scale(1.1)}to{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-transform:scale(1);transform:scale(1)}}@keyframes fall{0%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}70%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1;-webkit-transform:scale(1.1);transform:scale(1.1)}to{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-transform:scale(1);transform:scale(1)}}.filepond--hopper[data-hopper-state=drag-over]>*{pointer-events:none}.filepond--hopper[data-hopper-state=drag-over]:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.filepond--progress-indicator{z-index:103}.filepond--file-action-button{z-index:102}.filepond--file-status{z-index:101}.filepond--file-info{z-index:100}.filepond--item{left:0;margin:.25em;padding:0;position:absolute;right:0;top:0;touch-action:none;will-change:transform,opacity;z-index:1}.filepond--item>.filepond--panel{z-index:-1}.filepond--item>.filepond--panel .filepond--panel-bottom{box-shadow:0 .0625em .125em -.0625em rgba(0,0,0,.25)}.filepond--item>.filepond--file-wrapper,.filepond--item>.filepond--panel{transition:opacity .15s ease-out}.filepond--item[data-drag-state]{cursor:-webkit-grab;cursor:grab}.filepond--item[data-drag-state]>.filepond--panel{box-shadow:0 0 0 transparent;transition:box-shadow .125s ease-in-out}.filepond--item[data-drag-state=drag]{cursor:-webkit-grabbing;cursor:grabbing}.filepond--item[data-drag-state=drag]>.filepond--panel{box-shadow:0 .125em .3125em rgba(0,0,0,.325)}.filepond--item[data-drag-state]:not([data-drag-state=idle]){z-index:2}.filepond--item-panel{background-color:#64605e}[data-filepond-item-state=processing-complete] .filepond--item-panel{background-color:#369763}[data-filepond-item-state*=error] .filepond--item-panel,[data-filepond-item-state*=invalid] .filepond--item-panel{background-color:#c44e47}.filepond--item-panel{border-radius:.5em;transition:background-color .25s}.filepond--list-scroller{left:0;margin:0;position:absolute;right:0;top:0;will-change:transform}.filepond--list-scroller[data-state=overflow] .filepond--list{bottom:0;right:0}.filepond--list-scroller[data-state=overflow]{overflow-x:hidden;overflow-y:scroll;-webkit-overflow-scrolling:touch;-webkit-mask:linear-gradient(180deg,#000 calc(100% - .5em),transparent);mask:linear-gradient(180deg,#000 calc(100% - .5em),transparent)}.filepond--list-scroller::-webkit-scrollbar{background:transparent}.filepond--list-scroller::-webkit-scrollbar:vertical{width:1em}.filepond--list-scroller::-webkit-scrollbar:horizontal{height:0}.filepond--list-scroller::-webkit-scrollbar-thumb{background-clip:content-box;background-color:rgba(0,0,0,.3);border:.3125em solid transparent;border-radius:99999px}.filepond--list.filepond--list{list-style-type:none;margin:0;padding:0;position:absolute;top:0;will-change:transform}.filepond--list{left:.75em;right:.75em}.filepond--root[data-style-panel-layout~=integrated]{height:100%;margin:0;max-width:none;width:100%}.filepond--root[data-style-panel-layout~=circle] .filepond--panel-root,.filepond--root[data-style-panel-layout~=integrated] .filepond--panel-root{border-radius:0}.filepond--root[data-style-panel-layout~=circle] .filepond--panel-root>*,.filepond--root[data-style-panel-layout~=integrated] .filepond--panel-root>*{display:none}.filepond--root[data-style-panel-layout~=circle] .filepond--drop-label,.filepond--root[data-style-panel-layout~=integrated] .filepond--drop-label{align-items:center;bottom:0;display:flex;height:auto;justify-content:center;z-index:7}.filepond--root[data-style-panel-layout~=circle] .filepond--item-panel,.filepond--root[data-style-panel-layout~=integrated] .filepond--item-panel{display:none}.filepond--root[data-style-panel-layout~=compact] .filepond--list-scroller,.filepond--root[data-style-panel-layout~=integrated] .filepond--list-scroller{height:100%;margin-bottom:0;margin-top:0;overflow:hidden}.filepond--root[data-style-panel-layout~=compact] .filepond--list,.filepond--root[data-style-panel-layout~=integrated] .filepond--list{height:100%;left:0;right:0}.filepond--root[data-style-panel-layout~=compact] .filepond--item,.filepond--root[data-style-panel-layout~=integrated] .filepond--item{margin:0}.filepond--root[data-style-panel-layout~=compact] .filepond--file-wrapper,.filepond--root[data-style-panel-layout~=integrated] .filepond--file-wrapper{height:100%}.filepond--root[data-style-panel-layout~=compact] .filepond--drop-label,.filepond--root[data-style-panel-layout~=integrated] .filepond--drop-label{z-index:7}.filepond--root[data-style-panel-layout~=circle]{border-radius:99999rem;overflow:hidden}.filepond--root[data-style-panel-layout~=circle]>.filepond--panel{border-radius:inherit}.filepond--root[data-style-panel-layout~=circle] .filepond--file-info,.filepond--root[data-style-panel-layout~=circle] .filepond--file-status,.filepond--root[data-style-panel-layout~=circle]>.filepond--panel>*{display:none}.filepond--root[data-style-panel-layout~=circle] .filepond--action-edit-item{opacity:1!important;visibility:visible!important}@media not all and (-webkit-min-device-pixel-ratio:0),not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent){.filepond--root[data-style-panel-layout~=circle]{will-change:transform}}}.filepond--panel-root{background-color:#f1f0ef;border-radius:.5em}.filepond--panel{height:100%!important;left:0;margin:0;pointer-events:none;position:absolute;right:0;top:0}.filepond-panel:not([data-scalable=false]){height:auto!important}.filepond--panel[data-scalable=false]>div{display:none}.filepond--panel[data-scalable=true]{background-color:transparent!important;border:none!important;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.filepond--panel-bottom,.filepond--panel-center,.filepond--panel-top{left:0;margin:0;padding:0;position:absolute;right:0;top:0}.filepond--panel-bottom,.filepond--panel-top{height:.5em}.filepond--panel-top{border-bottom:none!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.filepond--panel-top:after{background-color:inherit;bottom:-1px;content:"";height:2px;left:0;position:absolute;right:0}.filepond--panel-bottom,.filepond--panel-center{-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:translate3d(0,.5em,0);transform:translate3d(0,.5em,0);-webkit-transform-origin:left top;transform-origin:left top;will-change:transform}.filepond--panel-bottom{border-top:none!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.filepond--panel-bottom:before{background-color:inherit;content:"";height:2px;left:0;position:absolute;right:0;top:-1px}.filepond--panel-center{border-bottom:none!important;border-radius:0!important;border-top:none!important;height:100px!important}.filepond--panel-center:not([style]){visibility:hidden}.filepond--progress-indicator{color:#fff;height:1.25em;margin:0;pointer-events:none;position:static;width:1.25em;will-change:transform,opacity}.filepond--progress-indicator svg{height:100%;transform-box:fill-box;vertical-align:top;width:100%}.filepond--progress-indicator path{fill:none;stroke:currentColor}.filepond--list-scroller{z-index:6}.filepond--drop-label{z-index:5}.filepond--drip{z-index:3}.filepond--root>.filepond--panel{z-index:2}.filepond--browser{z-index:1}.filepond--root{box-sizing:border-box;contain:layout style size;direction:ltr;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:450;line-height:normal;margin-bottom:1em;position:relative;text-align:left;text-rendering:optimizeLegibility}.filepond--root *{box-sizing:inherit;line-height:inherit}.filepond--root :not(text){font-size:inherit}.filepond--root[data-disabled]{pointer-events:none}.filepond--root[data-disabled] .filepond--list-scroller{pointer-events:all}.filepond--root[data-disabled] .filepond--list{pointer-events:none}.filepond--root .filepond--drop-label{min-height:4.75em}.filepond--root .filepond--list-scroller{margin-bottom:1em;margin-top:1em}.filepond--root .filepond--credits{bottom:-14px;color:inherit;font-size:11px;line-height:.85;opacity:.175;position:absolute;right:0;text-decoration:none;z-index:3}.filepond--root .filepond--credits[style]{bottom:auto;margin-top:14px;top:0} +.dlx-photo-block__upload-status button.components-button{margin-right:8px}.dlx-photo-block__upload-status button.components-button.has-icon{padding:15px 20px}.dlx-photo-block__upload-status button.components-button:last-of-type{margin-right:0} +.block-list-appender .photo-block-admin__caption-appender>button.components-button{color:#fff;padding:25px 20px}.block-list-appender .photo-block-admin__caption-appender>button.components-button svg{color:#fff} +.dlx-photo-block__screen-edit{display:flex;flex-wrap:wrap}.dlx-photo-block__screen-edit .dlx-photo-block__screen-edit-spinner{align-items:center;display:flex;flex-direction:column;justify-content:center;text-align:center;width:100%}.dlx-photo-block__screen-edit .dlx-photo-block__screen-edit-spinner__logo{margin:0 0 16px;text-align:center;width:100%}.dlx-photo-block__screen-edit .dlx-photo-block__screen-edit-spinner__logo svg{height:72px;width:72px}.dlx-photo-block__screen-edit .dlx-photo-block__screen-edit-spinner__label{margin:0;padding:0}.dlx-photo-block__screen-edit svg.components-spinner{height:48px;width:48px}.dlx-photo-block__screen-edit{width:100%}.aligncenter .dlx-photo-block__screen-edit{justify-content:center}.alignleft .dlx-photo-block__screen-edit{justify-content:flex-start}.alignright .dlx-photo-block__screen-edit{justify-content:flex-end}.dlx-photo-block__a11y-popover{min-width:325px;padding:0 15px 15px}.dlx-photo-block__inspector-tabs button.components-tab-panel__tabs-item{flex:1 1 0px}.dlx-photo-block__inspector-tabs button.components-tab-panel__tabs-item:after{background:#ddd;border-radius:0;bottom:0;content:"";height:1.5px;left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}.dlx-photo-block__inspector-tabs button.components-tab-panel__tabs-item.active-tab:after{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.dlx-photo-block__image-dimensions-row h3{margin:0 0 8px}.dlx-photo-block__image-dimensions-row p{margin-bottom:0}.photo-block__inspector-panel .components-panel__body-title svg{fill:none;margin:0 8px 0 0}.photo-block__inspector-panel .components-panel__body-title>.components-button{flex-direction:row-reverse;justify-content:flex-end}.dlx-photo-block__image-dimensions-row{display:block}.dlx-photo-block__image-dimensions-row h2{margin:0 0 8px;width:100%}.dlx-photo-block__image-dimensions-row .dlx-photo-block__image-dimensions{display:grid;grid-template-columns:1fr 1fr;grid-gap:15px;margin-bottom:15px}.dlx-photo-block__image-dimensions-row .dlx-photo-block__image-dimensions .components-base-control,.dlx-photo-block__image-dimensions-row .dlx-photo-block__image-dimensions .components-base-control__field,.photo-block__alt-text.components-base-control.is-saving,.photo-block__alt-text.components-base-control.is-saving p{margin-bottom:0}.photo-block__text-saving{font-size:16px;margin-bottom:16px}.photo-block__text-saving svg{margin:0 12px 0 0}.photo-block__title-text.components-base-control.is-saving,.photo-block__title-text.components-base-control.is-saving p{margin-bottom:0}.photo-block__text-saving{align-items:center;display:flex;justify-content:flex-start} +.dlx-photo-block__media-link-popover .components-popover__content{min-width:400px;padding:15px}.dlx-photo-block__media-link-popover .components-base-control,.dlx-photo-block__media-link-popover .components-base-control__field,.dlx-photo-block__media-link-popover .components-base-control__help{margin-bottom:0}.dlx-photo-block__media-link-container h2{margin-top:0}.dlx-photo-block__media-link-button-group{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;align-items:center;margin-bottom:15px}.dlx-photo-block__media-link-button-group .components-button.has-icon{display:grid;grid-template-columns:1fr auto;grid-gap:8px;align-items:center;padding:0 15px;text-align:left}.dlx-photo-block__media-link-button-group .components-button.has-icon .dlx-photo-block__media-link-button-text{order:1}.dlx-photo-block__media-link-button-group .components-button.has-icon svg{margin:0;order:2} +@keyframes photo-block-pub-spin{to{transform:rotate(1turn)}}#photo-block-pub-content{padding-top:18px}.photo-block-pub-load-static-svg svg{animation:photo-block-pub-spin;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}.photo-block-url-input{display:inline-block;flex-wrap:wrap;max-width:400px;position:relative;width:100%}.photo-block-url-input .components-base-control .components-base-control__label{display:block;font-size:16px;width:100%}.photo-block-url-input .photo-block-suggestions-wrapper{left:0;max-height:250px;overflow-y:auto;position:relative;top:100%;width:100%}.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion{align-items:center;background:#fff;border:1px solid #ddd;border-radius:0;display:flex;height:auto;justify-content:flex-start;padding:5px 20px 5px 40px;position:relative;text-align:left;transition:all .4s ease-in-out;width:100%}.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion svg{height:24px;left:10px;position:absolute;top:calc(50% - 8px);width:24px}.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion svg path{fill:unset}.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion.is-selected,.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion:hover{background:#f1f1f1;border-color:var(--wp-admin-theme-color)}.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion .photo-block-search-item{display:block;margin-right:8px;overflow-wrap:break-word;white-space:pre-wrap}.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion .photo-block-search-item-title{display:block;font-weight:500;margin-bottom:.2em;overflow:hidden;position:relative;text-overflow:ellipsis}.photo-block-url-input .photo-block-suggestions-wrapper .photo-block-url-input__suggestion .photo-block-search-item-info{color:#757575;display:block;font-size:.9em;line-height:1.3;word-break:break-all}.photo-block-pub-url-search-wrapper{position:relative}.photo-block-pub-url-search-wrapper .photo-block-pub-url-input__apply-button.components-button,.photo-block-pub-url-search-wrapper .photo-block-pub-url-input__search-button.components-button{position:absolute;right:0;top:calc(50% - 18px)}.photo-block-pub-url-input__wrapper label{display:block;font-weight:600;margin-bottom:5px;width:100%}.photo-block-pub-url-input__wrapper .photo-block-pub-url-input__suggestion-item .components-button{margin-left:8px}.photo-block-pub-url-input__wrapper .photo-block-pub-url-input__input-wrapper{display:grid;grid-template-columns:1fr;position:relative;grid-gap:10px;margin-bottom:10px;width:100%}.photo-block-pub-url-input__wrapper .photo-block-pub-url-input__input-wrapper input[type=text]{border:1px solid #ddd;border-radius:3px;font-size:13px;margin:0;padding:11px 36px 11px 16px;width:100%}.photo-block-pub-url-input__wrapper .photo-block-pub-url-input__input-wrapper .photo-block-pub-url-input__input{line-height:1}.photo-block-pub-url-input__wrapper .photo-block-pub-url-input__input-wrapper .components-spinner{height:24px;margin:0;position:absolute;right:14px;top:calc(50% - 12px)}.photo-block-pub-url-input__wrapper .photo-block-pub-url-input__input-wrapper .photo-block-pub-url-input__input~.components-button{background:unset;border:unset;box-shadow:unset}.photo-block-pub-url-input__input~.components-button,.photo-block-pub-url-input__suggestion-item .components-button{position:relative}.photo-block-pub-url-input__input~.components-button .components-tooltip,.photo-block-pub-url-input__suggestion-item .components-button .components-tooltip{background:#333;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:12px;height:auto;min-width:150px;padding:8px 12px;position:absolute;right:10px;top:calc(50% - 8px);transition:opacity .2s ease-in-out} + + +.photo-block-component-color-picker-wrapper,.qdlx-admin__tabs--content-inner .components-base-control.photo-block-component-color-picker-wrapper{margin-bottom:16px;margin-top:2px;text-align:left}.photo-block-component-color-picker-wrapper>.components-base-control__field,.qdlx-admin__tabs--content-inner .components-base-control.photo-block-component-color-picker-wrapper>.components-base-control__field{align-items:center;display:grid;font-weight:600;grid-template-columns:1fr 30px;justify-content:space-between;margin:0 auto;position:relative;row-gap:2;text-align:left}.photo-block-component-color-picker-wrapper>.components-base-control__field .components-color-palette__item-wrapper,.qdlx-admin__tabs--content-inner .components-base-control.photo-block-component-color-picker-wrapper>.components-base-control__field .components-color-palette__item-wrapper{margin:0}.photo-block-component-color-picker-wrapper .photo-block-color-component-label,.qdlx-admin__tabs--content-inner .components-base-control.photo-block-component-color-picker-wrapper .photo-block-color-component-label{line-height:1.2;margin:0;padding:0}.components-popover.photo-block-component-color-picker .photo-block-component-color-picker-palette{padding:0 16px}.components-popover.photo-block-component-color-picker .photo-block-component-color-picker-palette button.components-circular-option-picker__option{border-radius:50%;height:100%;width:100%}.components-popover.photo-block-component-color-picker .photo-block-component-color-picker-palette button.components-circular-option-picker__option .components-popover{display:none}.components-popover.photo-block-component-color-picker .photo-block-component-color-picker-palette .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px}.components-popover.photo-block-component-color-picker .photo-block-component-color-picker-palette .components-circular-option-picker__option-wrapper{display:inline-block;height:28px;transition:transform .1s ease;vertical-align:top;width:28px}.components-popover.photo-block-component-color-picker .components-base-control__field,.components-popover.photo-block-component-color-picker .components-color-palette{margin:0}.components-popover.photo-block-component-color-picker .react-colorful{width:unset!important}.components-popover.photo-block-component-color-picker .components-color-picker{padding:5px;width:unset!important}.components-popover.photo-block-component-color-picker .components-color-picker__inputs-toggle{display:none}.components-popover.photo-block-component-color-picker .components-color-picker__body{padding-bottom:0}.components-popover.photo-block-component-color-picker .components-popover__content{padding:10px;width:300px}.components-popover.photo-block-component-color-picker .components-color-picker__inputs-fields{margin-right:0}.components-popover.photo-block-component-color-picker .components-color-clear-color{color:var(--quotes-dlx-admin--color-dark);padding:0 16px;text-align:right}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px!important}.photo-block-component-color-opacity{display:flex;margin:10px 0;padding:0 16px}.photo-block-component-color-opacity svg{height:28px;width:28px}.photo-block-component-color-opacity .components-range-control{flex-grow:1;padding-left:5px} +.dlx-photo-block__drop-shadow-control__settings__offset h3{margin-bottom:10px;margin-top:0}.dlx-photo-block__drop-shadow-control__settings__offset__wrapper{display:grid;grid-template-columns:1fr 1fr;grid-gap:15px}.dlx-photo-block__drop-shadow-control__settings__offset__wrapper .components-base-control__field{margin-bottom:0;position:relative} +.dlx-photo-block__css-gram-image-popover-wrapper{border:1px solid #ddd;min-width:400px;padding:15px}.dlx-photo-block__css-gram-button-group{padding-right:25px;position:relative}.dlx-photo-block__css-gram-button-group .components-button-group{display:grid;grid-template-columns:50% 50%;grid-gap:15px;row-gap:15px} +.dlx-photo-block__css-gram-image-popover-wrapper{border:1px solid #ddd;min-width:400px;padding:15px}.dlx-photo-block__css-gram-button-group{padding-right:25px}.dlx-photo-block__css-gram-button-group .components-button-group{display:grid;grid-template-columns:50% 50%;grid-gap:15px;row-gap:15px}.dlx-photo-block__css-gram-image-popover{position:absolute!important} +.dlx-photo-block__image-max-width{margin:0 0 16px} +.components-photo-block-units-control-header__units{align-items:center;display:flex;justify-content:flex-end;margin-bottom:5px}.components-photo-block-control__units .components-photo-block-control-buttons__units button.components-button{background:#fff;border:0;border-radius:0!important;box-shadow:none!important;color:#929da7;font-size:10px;height:auto;line-height:20px;padding:0 5px;position:relative;text-align:center;text-shadow:none}.components-photo-block-control__units .components-photo-block-control-buttons__units button.components-button.is-primary{background:#fff!important;color:#000!important;cursor:default;font-weight:700;z-index:1} +.components-base-control .dlx-photo-block__heading-icon-responsive-wrapper{align-items:center;display:flex;justify-content:space-between}.components-base-control .dlx-photo-block__heading-icon-responsive{align-items:center;display:flex;justify-content:flex-start;margin:0;padding:0}.components-base-control .dlx-photo-block__heading-icon svg{font-size:inherit;height:14px;margin-right:8px;vertical-align:middle;width:14px}.components-base-control .dlx-photo-block__heading{line-height:1}.components-base-control .dlx-photo-block__heading-icon-responsive-icons .components-button.has-icon{box-shadow:unset;min-width:unset;position:relative}.components-base-control .dlx-photo-block__heading-icon-responsive-icons .components-button.has-icon.is-active:after{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));bottom:-2px;content:"";height:2px;left:0;position:absolute;width:100%}.components-base-control .dlx-photo-block__heading-icon-responsive-icons svg{height:14px;width:14px} +.dlx-photo-block__dimensions-responsive-sync-interface{align-items:center;display:flex;justify-content:flex-start;margin-top:15px}.dlx-photo-block__dimensions-responsive-sync-interface .components-base-control{margin:0;padding:0}.dlx-photo-block__dimensions-responsive-sync-interface .dlx-photo-block__dimensions-responsive-sync-interface-unit{align-items:center;border:1px solid #949494;display:flex;justify-content:flex-start;max-width:50%;padding:0 8px}.dlx-photo-block__dimensions-responsive-sync-interface .dlx-photo-block__dimensions-responsive-sync-interface-unit .components-base-control,.dlx-photo-block__dimensions-responsive-sync-interface .dlx-photo-block__dimensions-responsive-sync-interface-unit .components-base-control__field{margin:0;padding:0}.dlx-photo-block__dimensions-responsive-sync-interface .dlx-photo-block__dimensions-responsive-sync-interface-range-sync{display:flex;flex:1}.dlx-photo-block__dimensions-responsive-sync-interface .dlx-photo-block__dimensions-responsive-sync-interface-range-sync .components-range-control{align-items:center;display:flex;flex:1;padding-left:8px;padding-right:8px}.dlx-photo-block__dimensions-responsive-sync-interface .dlx-photo-block__dimensions-responsive-sync-interface-range-sync .components-range-control .components-base-control__field{flex:1}.dlx-photo-block__dimensions-responsive-sync-interface .dlx-photo-block__dimensions-responsive-sync-interface-range-sync .components-base-control__field{margin:0;padding:0}.dlx-photo-block__dimensions-responsive-sync-interface .components-input-control__backdrop,.dlx-photo-block__dimensions-responsive-sync-interface .components-input-control__suffix{display:none}.dlx-photo-block__border-responsive-sync-interface-input input[type=text],.dlx-photo-block__dimensions-responsive-manual-interface-item input[type=text],.dlx-photo-block__dimensions-responsive-sync-interface input[type=text]{-webkit-appearance:auto;appearance:auto;-moz-appearance:textfield;background:none;border:none;box-shadow:none!important;height:40px;margin:0;max-width:28px;outline:none;padding:0}.dlx-photo-block__border-responsive-sync-interface-input input[type=text]::-webkit-inner-spin-button,.dlx-photo-block__border-responsive-sync-interface-input input[type=text]::-webkit-outer-spin-button,.dlx-photo-block__dimensions-responsive-manual-interface-item input[type=text]::-webkit-inner-spin-button,.dlx-photo-block__dimensions-responsive-manual-interface-item input[type=text]::-webkit-outer-spin-button,.dlx-photo-block__dimensions-responsive-sync-interface input[type=text]::-webkit-inner-spin-button,.dlx-photo-block__dimensions-responsive-sync-interface input[type=text]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.dlx-photo-block__border-responsive-sync-interface-input select,.dlx-photo-block__dimensions-responsive-manual-interface-item select,.dlx-photo-block__dimensions-responsive-sync-interface select{-o-appearance:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:1px solid transparent!important;border-radius:2px;box-shadow:none;box-sizing:border-box;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))!important;display:block;margin:0;max-width:42px!important;min-height:40px;min-height:auto;outline:none;padding:4px;padding:0 4px!important;text-align:center;text-overflow:ellipsis;text-transform:lowercase;white-space:nowrap;width:100%}.dlx-photo-block__border-responsive-sync-interface-input select:hover,.dlx-photo-block__dimensions-responsive-manual-interface-item select:hover,.dlx-photo-block__dimensions-responsive-sync-interface select:hover{border:1px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))!important;cursor:pointer}.dlx-photo-block__border-responsive-sync-interface-input .components-input-control__backdrop,.dlx-photo-block__border-responsive-sync-interface-input .components-input-control__suffix,.dlx-photo-block__dimensions-responsive-manual-interface-item .components-input-control__backdrop,.dlx-photo-block__dimensions-responsive-manual-interface-item .components-input-control__suffix,.dlx-photo-block__dimensions-responsive-sync-interface .components-input-control__backdrop,.dlx-photo-block__dimensions-responsive-sync-interface .components-input-control__suffix{display:none}.dlx-photo-block__dimensions-responsive-manual-interface-item{align-items:center;border:1px solid #949494;display:inline-flex;justify-content:flex-start;padding:0 8px}.dlx-photo-block__dimensions-responsive-manual-interface-item .components-base-control{margin:0!important;padding:0}.dlx-photo-block__dimensions-responsive-manual-interface-item .components-base-control,.dlx-photo-block__dimensions-responsive-manual-interface-item .components-base-control__field{margin:0!important;padding:0!important}.dlx-photo-block__dimensions-responsive-manual-interface{display:grid;grid-template-areas:"topLeft topCenter topRight" "middleLeft middleCenter middleRight" "bottomLeft bottomCenter bottomRight";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto;grid-gap:10px;align-items:center;justify-content:center;margin-top:15px;row-gap:10px}.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-top{grid-area:topCenter;-ms-grid-column:3;-ms-grid-row:1;position:relative}.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-top:before{background:#333;content:"";display:block;height:2px;left:0;position:absolute;top:-8px;width:100%}.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-left{grid-area:middleLeft;-ms-grid-column:1;-ms-grid-row:3;position:relative}.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-left:before{background:#333;content:"";display:block;height:100%;left:-8px;position:absolute;top:0;width:2px}.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-right{grid-area:middleRight;-ms-grid-column:5;-ms-grid-row:3;position:relative}.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-right:before{background:#333;content:"";display:block;height:100%;position:absolute;right:-8px;top:0;width:2px}.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-bottom{grid-area:bottomCenter;-ms-grid-column:3;-ms-grid-row:5;position:relative}.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-manual-interface-item-bottom:before{background:#333;bottom:-8px;content:"";display:block;height:2px;left:0;position:absolute;width:100%}.dlx-photo-block__dimensions-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__dimensions-responsive-sync-manual-button{box-sizing:border-box;display:inline-flex;grid-area:middleCenter;-ms-grid-column:3;-ms-grid-row:3;justify-content:center;margin:0 auto;max-width:50px;padding:8px}.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-top{grid-area:topLeft;-ms-grid-column:1;-ms-grid-row:1;position:relative}.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-top:before{background:#333;content:"";display:block;height:2px;position:absolute;right:0;top:-8px;width:calc(100% + 8px)}.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-top:after{background:#333;bottom:0;content:"";display:block;height:calc(100% + 8px);left:-8px;position:absolute;width:2px}.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-left{grid-area:bottomLeft;-ms-grid-column:1;-ms-grid-row:5;position:relative}.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-left:before{background:#333;content:"";display:block;height:calc(100% + 8px);left:-8px;position:absolute;top:0;width:2px}.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-left:after{background:#333;bottom:-8px;content:"";display:block;height:2px;position:absolute;right:0;width:calc(100% + 8px)}.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-right{grid-area:topRight;-ms-grid-column:5;-ms-grid-row:1;position:relative}.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-right:before{background:#333;bottom:0;content:"";display:block;height:calc(100% + 8px);position:absolute;right:-8px;width:2px}.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-right:after{background:#333;content:"";display:block;height:2px;left:0;position:absolute;top:-8px;width:calc(100% + 8px)}.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-bottom{grid-area:bottomRight;-ms-grid-column:5;-ms-grid-row:5;position:relative}.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-bottom:before{background:#333;bottom:-8px;content:"";display:block;height:2px;left:0;position:absolute;width:calc(100% + 8px)}.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-manual-interface-item-bottom:after{background:#333;content:"";display:block;height:calc(100% + 8px);position:absolute;right:-8px;top:0;width:2px}.dlx-photo-block__dimensions-responsive-manual-interface.is-border-radius .dlx-photo-block__dimensions-responsive-sync-manual-button{box-sizing:border-box;display:inline-flex;grid-area:middleCenter;-ms-grid-column:3;-ms-grid-row:3;justify-content:center;margin:0 auto;max-width:50px;padding:8px} +.dlx-photo-block__border-responsive-sync-interface{align-items:center;display:flex;justify-content:flex-start;margin-top:22px}.dlx-photo-block__border-responsive-sync-interface .components-base-control{margin:0;padding:0}.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-unit{align-items:center;border:1px solid #949494;display:flex;justify-content:flex-start;max-width:50%;padding:0 8px}.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-unit .components-base-control,.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-unit .components-base-control__field{margin:0;padding:0}.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-range-sync{display:flex;flex:1}.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-range-sync .components-range-control{align-items:center;display:flex;flex:1;padding-left:8px;padding-right:8px}.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-range-sync .components-range-control .components-base-control__field{flex:1}.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-range-sync .components-base-control__field{margin:0;padding:0}.dlx-photo-block__border-responsive-sync-interface .components-input-control__backdrop,.dlx-photo-block__border-responsive-sync-interface .components-input-control__suffix{display:none}.dlx-photo-block__border-responsive-manual-interface-item input[type=number],.dlx-photo-block__border-responsive-sync-interface input[type=number]{-webkit-appearance:auto;appearance:auto;-moz-appearance:textfield;background:none;border:none;box-shadow:none!important;height:40px;margin:0;max-width:28px;outline:none;padding:0}.dlx-photo-block__border-responsive-manual-interface-item input[type=number]::-webkit-inner-spin-button,.dlx-photo-block__border-responsive-manual-interface-item input[type=number]::-webkit-outer-spin-button,.dlx-photo-block__border-responsive-sync-interface input[type=number]::-webkit-inner-spin-button,.dlx-photo-block__border-responsive-sync-interface input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.dlx-photo-block__border-responsive-manual-interface-item select,.dlx-photo-block__border-responsive-sync-interface select{-o-appearance:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:1px solid transparent!important;border-radius:2px;box-shadow:none;box-sizing:border-box;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))!important;display:block;margin:0;max-width:42px!important;min-height:40px;min-height:auto;outline:none;padding:4px;padding:0 4px!important;text-align:center;text-overflow:ellipsis;text-transform:lowercase;white-space:nowrap;width:100%}.dlx-photo-block__border-responsive-manual-interface-item select:hover,.dlx-photo-block__border-responsive-sync-interface select:hover{border:1px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))!important;cursor:pointer}.dlx-photo-block__border-responsive-manual-interface-item .dlx-photo-block__border-responsive-sync-interface-border-style,.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-border-style{margin-right:8px;max-width:12px;min-width:unset;padding:0}.dlx-photo-block__border-responsive-manual-interface-item .components-input-control__backdrop,.dlx-photo-block__border-responsive-manual-interface-item .components-input-control__suffix,.dlx-photo-block__border-responsive-sync-interface .components-input-control__backdrop,.dlx-photo-block__border-responsive-sync-interface .components-input-control__suffix{display:none}.dlx-photo-block__border-responsive-manual-interface-item .dlx-photo-block__border-responsive-sync-interface-border-style,.dlx-photo-block__border-responsive-manual-interface-item .photo-block-component-color-picker>.photo-block-color-picker-area.photo-block-component-color-picker-palette,.dlx-photo-block__border-responsive-sync-interface .dlx-photo-block__border-responsive-sync-interface-border-style,.dlx-photo-block__border-responsive-sync-interface .photo-block-component-color-picker>.photo-block-color-picker-area.photo-block-component-color-picker-palette{margin-right:2px}.dlx-photo-block__border-responsive-manual-interface-item{align-items:center;border:1px solid #949494;display:inline-flex;justify-content:flex-start;padding:0 8px}.dlx-photo-block__border-responsive-manual-interface-item .components-base-control{margin:0!important;padding:0}.dlx-photo-block__border-responsive-manual-interface-item .components-base-control,.dlx-photo-block__border-responsive-manual-interface-item .components-base-control__field{margin:0!important;padding:0!important}.dlx-photo-block__border-responsive-manual-interface{display:grid;grid-template-areas:"topLeft topCenterLeft topCenterRight topRight" "middleLeft middleCenterLeft middleCenterRight middleRight" "bottomLeft bottomCenterLeft bottomCenterRight bottomRight";grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:auto;grid-gap:15px;align-items:center;justify-content:center;margin-top:22px;row-gap:15px}.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-top{grid-column:topCenterLeft/topCenterRight;grid-row:1;position:relative}.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-top:before{background:#333;content:"";display:block;height:2px;left:0;position:absolute;top:-8px;width:100%}.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-left{grid-column:middleLeft/middleCenterLeft;grid-row:2;position:relative}.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-left:before{background:#333;content:"";display:block;height:100%;left:-8px;position:absolute;top:0;width:2px}.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-right{grid-column:middleCenterRight/middleRight;grid-row:2;position:relative}.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-right:before{background:#333;content:"";display:block;height:100%;position:absolute;right:-8px;top:0;width:2px}.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-bottom{grid-column:bottomCenterLeft/bottomCenterRight;grid-row:3;position:relative}.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-manual-interface-item-bottom:before{background:#333;bottom:-8px;content:"";display:block;height:2px;left:0;position:absolute;width:100%}.dlx-photo-block__border-responsive-manual-interface:not(.is-border-radius) .dlx-photo-block__border-responsive-sync-manual-button{box-sizing:border-box;display:inline-flex;grid-column:topRight;grid-row:1;justify-content:center;margin:0 auto;max-width:50px;padding:8px}.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-top{grid-area:topLeft;-ms-grid-column:1;-ms-grid-row:1;position:relative}.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-top:before{background:#333;content:"";display:block;height:2px;position:absolute;right:0;top:-8px;width:calc(100% + 8px)}.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-top:after{background:#333;bottom:0;content:"";display:block;height:calc(100% + 8px);left:-8px;position:absolute;width:2px}.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-left{grid-area:bottomLeft;-ms-grid-column:1;-ms-grid-row:5;position:relative}.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-left:before{background:#333;content:"";display:block;height:calc(100% + 8px);left:-8px;position:absolute;top:0;width:2px}.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-left:after{background:#333;bottom:-8px;content:"";display:block;height:2px;position:absolute;right:0;width:calc(100% + 8px)}.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-right{grid-area:topRight;-ms-grid-column:7;-ms-grid-row:1;position:relative}.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-right:before{background:#333;bottom:0;content:"";display:block;height:calc(100% + 8px);position:absolute;right:-8px;width:2px}.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-right:after{background:#333;content:"";display:block;height:2px;left:0;position:absolute;top:-8px;width:calc(100% + 8px)}.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-bottom{grid-area:bottomRight;-ms-grid-column:7;-ms-grid-row:5;position:relative}.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-bottom:before{background:#333;bottom:-8px;content:"";display:block;height:2px;left:0;position:absolute;width:calc(100% + 8px)}.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-manual-interface-item-bottom:after{background:#333;content:"";display:block;height:calc(100% + 8px);position:absolute;right:-8px;top:0;width:2px}.dlx-photo-block__border-responsive-manual-interface.is-border-radius .dlx-photo-block__border-responsive-sync-manual-button{box-sizing:border-box;display:inline-flex;grid-area:middleCenter;justify-content:center;margin:0 auto;max-width:50px;padding:8px}.dlx-photo-block__border-responsive .photo-block-component-color-picker-wrapper>.components-base-control__field{display:inline-block}.dlx-photo-block__border-responsive .photo-block-component-color-picker-palette{margin-right:8px}.dlx-photo-block__border-responsive-sync-interface-border-style-popover{min-width:240px;padding:15px 20px}.dlx-photo-block__border-responsive-sync-interface-border-style-popover h3{font-size:13px;font-weight:600;margin:0 0 8px;text-transform:uppercase}.dlx-photo-block__border-responsive-sync-interface-border-style-popover .dlx-photo-block__border-responsive-sync-interface-border-style-popover-buttons{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px}.dlx-photo-block__border-responsive-sync-interface-border-style-popover .dlx-photo-block__border-responsive-sync-interface-border-style-popover-buttons button{align-items:center;display:flex;text-align:left} +.photo-block-global-styles-popover{padding:25px;position:relative;top:24px!important}.photo-block-presets-panel .components-panel__row{width:100%}.photo-block-presets{display:block;margin-bottom:15px;width:100%}.photo-block-presets .components-button-group{display:grid;grid-template-columns:50% 50%;grid-gap:15px;padding-right:15px;row-gap:15px}.photo-block-presets .components-button-group button.photo-block-global-styles-button{display:block;height:auto;min-height:36px;text-align:center;white-space:normal;width:100%}.photo-block-global-styles-modal-button-group{align-items:center;display:flex;justify-content:flex-start}.photo-block-global-styles-modal-apply-button{margin-right:8px}.photo-block-global-styles-modal-radio-control{margin-bottom:15px}.photo-block-global-styles-modal-radio-control .components-flex{flex-direction:row;justify-content:flex-start}.photo-block-global-styles-modal-radio-control .components-flex .components-radio-control__option:first-child{margin-right:8px}.photo-block-global-styles-modal-new-preset{margin-bottom:15px}.photo-block-custom-global-styles-actions{display:flex;flex-wrap:wrap}.photo-block-custom-global-styles-actions button.components-button,.photo-block-custom-global-styles-actions button.components-button.has-icon{justify-content:center;text-align:center;width:100%}.photo-block-custom-global-styles-actions button.components-button.has-icon:first-of-type,.photo-block-custom-global-styles-actions button.components-button:first-of-type{margin-bottom:15px}.photo-block-presets button.components-button.photo-block-global-styles-button{align-items:center;background:#fefefe;border:1px solid #333;box-shadow:inset 0 0 0 1px #ccc;color:#333;display:flex;justify-content:center;transition:all .2s ease-in-out}.photo-block-presets button.components-button.photo-block-global-styles-button:active,.photo-block-presets button.components-button.photo-block-global-styles-button:active:not(:disabled),.photo-block-presets button.components-button.photo-block-global-styles-button:hover,.photo-block-presets button.components-button.photo-block-global-styles-button:hover:not(:disabled){background:#333;color:#fff}.photo-block-global-styles-edit-container--edit button.components-button.photo-block-global-styles-button{background:#fefefe;border:0;color:#333}.photo-block-global-styles-edit-container--edit button.components-button.photo-block-global-styles-button:active,.photo-block-global-styles-edit-container--edit button.components-button.photo-block-global-styles-button:active:not(:disabled),.photo-block-global-styles-edit-container--edit button.components-button.photo-block-global-styles-button:hover,.photo-block-global-styles-edit-container--edit button.components-button.photo-block-global-styles-button:hover:not(:disabled){background:#fefefe;color:#333}.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-edit-button{background:var(--wp-admin-theme-color,var(--quotes-dlx-admin--color-green,#007cba))}.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-edit-button:hover{background:var(--wp-admin-theme-color-darker-20,var(--quotes-dlx-admin--color-green-dark,#005a87))}.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-delete-button{background:var(--quotes-dlx-admin--color-red--required)}.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-delete-button:hover{background:var(--quotes-dlx-admin--color-red-alt)}.has-error input.components-text-control__input{background-color:#f5e5e4;border-color:#bc2b2c}.is-required{position:relative}.is-required label{display:inline-block!important;position:relative}.is-required input:not(.components-radio-control__input){display:block!important}.is-required label:after{color:#bc2b2c;content:"*";display:inline-block;font-size:1.4em;line-height:1.3;position:absolute;right:-12px;top:0;vertical-align:middle}.is-required .components-radio-control__option label:after,.is-required .not-is-required:after{display:none}.photo-block-presets .photo-block-global-styles-edit-buttons{display:grid;grid-template-columns:1fr 1fr}.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button{border:1px solid #333!important;box-shadow:inset 0 0 0 1px #333;box-sizing:border-box;max-height:28px;padding:12px 10px}.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-edit-button{background:var(--wp-admin-theme-color,#006400);border:0;box-shadow:unset;color:#fff}.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-edit-button:hover{background:var(--wp-admin-theme-color-darker-20,#005200)}.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-delete-button{background:#b53b07;border:0;box-shadow:unset;color:#fff}.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button.photo-block-global-styles-delete-button:hover{background:#822700;border:0;box-shadow:unset}.photo-block-presets .photo-block-global-styles-edit-buttons button.components-button svg{height:20px;width:20px}.photo-block-global-styles-modal-override-preset{margin-bottom:15px}.photo-block-global-styles-modal-override-preset .components-radio-control__option{margin-bottom:6px}.photo-block-global-styles-actions{box-sizing:border-box;display:flex;flex-wrap:wrap}.photo-block-global-styles-actions .photo-block-global-styles-save-button{justify-content:center;width:100%}.photo-block-global-styles-actions .photo-block-global-styles-edit-button{justify-content:center;margin-top:16px;width:100%}.photo-block-global-styles-actions .photo-block-global-styles-refresh-button{background:#333;color:#fff;justify-content:center;margin-top:12px;width:100%}.photo-block-global-styles-actions .photo-block-global-styles-refresh-button:hover{background:#444;color:#fff}.photo-block-global-styles-actions .photo-block-global-styles-exit-button{justify-content:center;margin-top:12px;width:100%}.photo-block-global-styles{width:100%}.photo-block-global-styles-edit-item{background:#f9f9f9;border:1px solid #ccc;border-radius:4px;box-sizing:border-box;display:grid;grid-template-columns:1fr 64px;margin-bottom:8px;padding:12px 16px}.photo-block-global-styles-edit-item-actions .components-button-group{display:grid;grid-template-columns:1fr 1fr}.photo-block-global-styles-modal-radio-control{padding:8px 0 12px}.photo-block-global-styles-modal .components-base-control__field>label{font-weight:600} + +.dlx-photo-block__custom-attributes-control__attribute{display:grid;grid-template-columns:1fr 1fr 32px;grid-gap:4px;align-items:end;margin-bottom:10px;margin-top:10px}.dlx-photo-block__custom-attributes-control__attribute .components-base-control,.dlx-photo-block__custom-attributes-control__attribute .components-base-control__field,.dlx-photo-block__custom-attributes-control__attribute:last-child{margin-bottom:0}.dlx-photo-block__custom-attributes-control__attribute .components-button{max-height:30px} +.photo-block-global-styles-selected{align-items:center;background:#f5f5f5;border:1px solid #e0e0e0;border-radius:4px;box-sizing:border-box;display:grid;grid-template-columns:1fr 36px}.photo-block-global-styles-selected-title{padding:16px 8px}.photo-block-global-styles-picker-button-group{box-sizing:border-box;-moz-column-gap:12px;column-gap:12px;display:grid;grid-template-columns:1fr;row-gap:12px}.photo-block-global-styles-picker-button-group button{justify-content:center} +#photo-block-preview .dlx-photo-block__screen-edit-image-wrapper{display:block} +.dlx-photo-block__alignment-dropdown-group .is-active .dashicons:before{background:#333;color:#fff;padding:1px 3px} +.dlx-photo-block__aspect-ratio-group svg{fill:none}.dlx-photo-block__lock-crop-button.is-pressed svg{color:#fff}.dlx-photo-block__zoom-popover .components-popover__content{min-width:250px;padding:15px}.dlx-photo-block__save-button.is-saving svg{animation:photo-block-pub-spin;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}.dlx-photo-block__toolbar-back-button{align-items:center;border-right:1px solid #333;box-shadow:none!important;display:flex;height:unset;height:100%}.dlx-photo-block__aspect-ratio-dropdown button{height:100%}.dlx-photo-block__aspect-ratio-dropdown button:after{align-items:center;content:attr(aria-label);display:block;margin-left:8px}.dlx-photo-block__aspect-ratio-dropdown button{text-transform:capitalize} +@-webkit-keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}@keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}:root{--rc-drag-handle-size:12px;--rc-drag-handle-mobile-size:24px;--rc-drag-handle-bg-colour:rgba(0,0,0,.2);--rc-drag-bar-size:6px;--rc-border-color:hsla(0,0%,100%,.7);--rc-focus-color:#08f}.ReactCrop{cursor:crosshair;display:inline-block;max-width:100%;position:relative}.ReactCrop *,.ReactCrop :after,.ReactCrop :before{-webkit-box-sizing:border-box;box-sizing:border-box}.ReactCrop--disabled,.ReactCrop--locked{cursor:inherit}.ReactCrop__child-wrapper{max-height:inherit;overflow:hidden}.ReactCrop__child-wrapper>img,.ReactCrop__child-wrapper>video{display:block;max-height:inherit;max-width:100%}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>img,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>video,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__crop-selection{-ms-touch-action:none;touch-action:none}.ReactCrop__crop-mask{bottom:0;left:0;pointer-events:none;position:absolute;right:0;top:0}.ReactCrop__crop-selection{cursor:move;left:0;position:absolute;top:0;-webkit-transform:translateZ(0);transform:translateZ(0)}.ReactCrop--disabled .ReactCrop__crop-selection{cursor:inherit}.ReactCrop--circular-crop .ReactCrop__crop-selection{border-radius:50%}.ReactCrop--circular-crop .ReactCrop__crop-selection:after{border:1px solid var(--rc-border-color);bottom:-1px;content:"";left:-1px;opacity:.3;pointer-events:none;position:absolute;right:-1px;top:-1px}.ReactCrop--no-animate .ReactCrop__crop-selection{outline:1px dashed #fff}.ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection){-webkit-animation:marching-ants 1s;animation:marching-ants 1s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-play-state:running;animation-play-state:running;-webkit-animation-timing-function:linear;animation-timing-function:linear;background-image:-webkit-gradient(linear,left top,right top,color-stop(50%,#fff),color-stop(50%,#444)),-webkit-gradient(linear,left top,right top,color-stop(50%,#fff),color-stop(50%,#444)),-webkit-gradient(linear,left top,left bottom,color-stop(50%,#fff),color-stop(50%,#444)),-webkit-gradient(linear,left top,left bottom,color-stop(50%,#fff),color-stop(50%,#444));background-image:linear-gradient(90deg,#fff 50%,#444 0),linear-gradient(90deg,#fff 50%,#444 0),linear-gradient(180deg,#fff 50%,#444 0),linear-gradient(180deg,#fff 50%,#444 0);background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;background-size:10px 1px,10px 1px,1px 10px,1px 10px;color:#fff}.ReactCrop__crop-selection:focus{outline:2px solid var(--rc-focus-color);outline-offset:-1px}.ReactCrop--invisible-crop .ReactCrop__crop-mask,.ReactCrop--invisible-crop .ReactCrop__crop-selection{display:none}.ReactCrop__rule-of-thirds-hz:after,.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-vt:after,.ReactCrop__rule-of-thirds-vt:before{background-color:hsla(0,0%,100%,.4);content:"";display:block;position:absolute}.ReactCrop__rule-of-thirds-vt:after,.ReactCrop__rule-of-thirds-vt:before{height:100%;width:1px}.ReactCrop__rule-of-thirds-vt:before{left:33.3333%;left:33.3333333333%}.ReactCrop__rule-of-thirds-vt:after{left:66.6666%;left:66.6666666667%}.ReactCrop__rule-of-thirds-hz:after,.ReactCrop__rule-of-thirds-hz:before{height:1px;width:100%}.ReactCrop__rule-of-thirds-hz:before{top:33.3333%;top:33.3333333333%}.ReactCrop__rule-of-thirds-hz:after{top:66.6666%;top:66.6666666667%}.ReactCrop__drag-handle{background-color:var(--rc-drag-handle-bg-colour);border:1px solid var(--rc-border-color);height:var(--rc-drag-handle-size);position:absolute;width:var(--rc-drag-handle-size)}.ReactCrop__drag-handle:focus{background:var(--rc-focus-color)}.ReactCrop .ord-nw{cursor:nw-resize;left:0}.ReactCrop .ord-n,.ReactCrop .ord-nw{top:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ReactCrop .ord-n{cursor:n-resize;left:50%}.ReactCrop .ord-ne{cursor:ne-resize;top:0}.ReactCrop .ord-e,.ReactCrop .ord-ne{right:0;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.ReactCrop .ord-e{cursor:e-resize;top:50%}.ReactCrop .ord-se{bottom:0;cursor:se-resize;right:0;-webkit-transform:translate(50%,50%);transform:translate(50%,50%)}.ReactCrop .ord-s{cursor:s-resize;left:50%}.ReactCrop .ord-s,.ReactCrop .ord-sw{bottom:0;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.ReactCrop .ord-sw{cursor:sw-resize;left:0}.ReactCrop .ord-w{cursor:w-resize;left:0;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{height:var(--rc-drag-bar-size);left:0;top:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:100%}.ReactCrop__drag-bar.ord-e{height:100%;right:0;top:0;-webkit-transform:translateX(50%);transform:translateX(50%);width:var(--rc-drag-bar-size)}.ReactCrop__drag-bar.ord-s{bottom:0;height:var(--rc-drag-bar-size);left:0;-webkit-transform:translateY(50%);transform:translateY(50%);width:100%}.ReactCrop__drag-bar.ord-w{height:100%;left:0;top:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--rc-drag-bar-size)}.ReactCrop--fixed-aspect .ReactCrop__drag-bar,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w,.ReactCrop--new-crop .ReactCrop__drag-bar,.ReactCrop--new-crop .ReactCrop__drag-handle{display:none}@media(pointer:coarse){.ReactCrop .ord-e,.ReactCrop .ord-n,.ReactCrop .ord-s,.ReactCrop .ord-w{display:none}.ReactCrop__drag-handle{height:var(--rc-drag-handle-mobile-size);width:var(--rc-drag-handle-mobile-size)}} +.dlx-photo-block__component-aspect-ratio{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:flex-start;padding:10px 8px;text-align:center}.dlx-photo-block__component-aspect-ratio .components-base-control__field{margin:0}.dlx-photo-block__component-aspect-ratio .components-text-control__input{display:inline-block;max-width:72px}.dlx-photo-block__component-aspect-ratio.dlx-photo-block__component-aspect-ratio--active .components-text-control__input{max-width:48px}.dlx-photo-block__component-aspect-ratio label{left:-9999px;position:absolute;clip:rect(0 0 0 0)}.dlx-photo-block__component-aspect-ratio button.dlx-photo-block__component-aspect-ratio-switch{height:30px;margin-left:4px;min-width:unset;padding-left:15px;padding-right:15px}.dlx-photo-block__component-aspect-ratio .dlx-photo-block__component-aspect-ratio-splitter button{height:30px;margin-left:4px;margin-right:4px;min-width:unset}.dlx-photo-block__component-aspect-ratio button.dlx-photo-block__component-aspect-ratio-apply.components-button{margin-left:8px;max-height:30px} + +.photo-block__caption-position-popover svg{fill:none}.photo-block__remove-caption-modal button{margin-right:8px}.photo-block__remove-caption-modal button:last-child{margin-right:0}.dlx-photo-block__caption-align-toolbar-buttons .is-pressed svg{color:#fff}.dlx-photo-block__overlay-background-gradient-randomize{justify-content:center;margin-bottom:10px;width:100%} +.photo-block-typography-picker{padding:0}.photo-block-typography-picker>.components-base-control__field{overflow:hidden}.photo-block-typography-picker .components-base-control{margin-bottom:0!important;padding-bottom:0!important}.photo-block-typography-picker .components-base-control__field{margin-bottom:0;padding-bottom:0}.photo-block-typography-picker .photo-block-typography-picker__row{margin-bottom:10px}.photo-block-typography-picker .photo-block-typography-picker__row__col-2{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;align-items:end}.photo-block-typography-picker .photo-block-typography-picker__row__col-2 .photo-block-typography-picker__row_item.photo-block-units{align-items:end;-moz-column-gap:0;column-gap:0;display:grid;grid-template-columns:75px 0 36px}.photo-block-typography-picker .photo-block-typography-picker__row__col-2 .photo-block-typography-picker__row_item.photo-block-units .components-button{font-size:13px;line-height:normal;max-height:30px;padding:6px 8px}.photo-block-component-font-unit-picker .components-popover__content{background:#fff;border:1px solid #333;min-width:48px;outline:unset}.photo-block-component-font-unit-picker .components-popover__content .components-button{border-bottom:1px solid #dadada;box-shadow:unset;font-size:13px;justify-content:center;margin:0;outline:unset;padding:6px 8px;width:100%}.photo-block-component-font-unit-picker .components-popover__content .components-button.is-primary,.photo-block-component-font-unit-picker .components-popover__content .components-button:last-child{border-bottom:0}.photo-block-typography-panel-row{display:block}.photo-block-typography-picker-wrapper>div .photo-block-typography-component-label{font-size:13px}.photo-block-typography-picker-wrapper>div .photo-block-typography-component-settings{display:flex;justify-content:flex-end}.photo-block-typography-picker-wrapper>div .components-button:not(.dlx-photo-block__heading-icon-responsive-icon){font-size:13px;margin:16px 0 0;outline:unset;padding:6px 8px}.photo-block-typography-picker-wrapper>div .dashicon{align-items:center;display:flex;justify-content:center;width:25px}.photo-block-typography-picker-wrapper>div .dashicon:before{font-size:1.4rem}.photo-block-component-typography-popup{max-width:250px;min-width:250px}.photo-block-component-typography-popup .components-popover__content{width:unset} +.photo-block-background-gradient,.photo-block-background-gradient-generator,.photo-block-background-gradient-sync{display:block}.photo-block-component-gradient-generator-wrapper>div,.photo-block-component-gradient-picker-wrapper>div,.photo-block-component-gradient-sync-wrapper>div{align-items:center;display:grid;grid-template-columns:1fr 30px}.photo-block-component-gradient-generator-wrapper>div h3,.photo-block-component-gradient-picker-wrapper>div h3,.photo-block-component-gradient-sync-wrapper>div h3{margin-bottom:0}.photo-block-component-gradient-picker{border-radius:50%;box-shadow:inset 0 0 0 1px!important;display:inline-block;height:28px;transition:transform .1s ease;vertical-align:top;width:28px}.photo-block-component-gradient-picker:hover{transform:scale(1.1)}.photo-block-component-gradient-picker-popover .components-popover__content{min-width:300px;padding:10px} +.dlx-photo-block__image-max-width{margin:0 0 16px} +.photo-block-background-selector-upload-row{align-items:end;-moz-column-gap:15px;column-gap:15px;display:grid;grid-template-columns:1fr 30px}.photo-block-background-selector-upload-row .photo-block-background-selector-upload-button button{max-height:30px;max-width:30px}.photo-block-background-selector-upload-row .components-base-control,.photo-block-background-selector-upload-row .components-base-control__field{margin-bottom:0!important}.photo-block-component-background-settings-popup .components-popover__content{padding:10px;width:250px}.photo-block-background-selector__row_item{margin-bottom:20px}.photo-block-background-selector__row_item.photo-block-background-selector__row_item-2{align-items:center;-moz-column-gap:15px;column-gap:15px;display:grid;grid-template-columns:1fr 30px}.photo-block-background-selector__row_item.photo-block-background-selector__row_item-2 h3{margin-bottom:0}.photo-block-background-selector__row_item.photo-block-background-selector__row_item-2 button{max-height:30px;max-width:30px}.photo-block-background-selector-image-button-error{background:#f5e5e4!important;border-color:#bc2b2c!important;box-shadow:inset 0 0 0 1px #bc2b2c!important;color:#bc2b2c!important} diff --git a/build/index.css.map b/build/index.css.map deleted file mode 100644 index f069727..0000000 --- a/build/index.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.css","mappings":";;;AAAA;;;;EAAA;AAuCA;EC3BE;EDeA;EACA;AEnBF;ADKE;EACE;EACA;ACHJ;ADME;EAlBA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAaE;ACGJ;ADAE;EAvBA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAkBE;ACSJ;AFLE;EACE;EACA;AEOJ;;ACvCA;;;;EAAA;AAiCA;EFrBE;EEcA;EACA;ADuBF;ADpCE;EACE;EACA;ACsCJ;ADnCE;EAlBA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAaE;AC4CJ;ADzCE;EAvBA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAkBE;ACkDJ;;AE5EA;;;;EAAA;AAwCA;EH5BE;ACyEF;ADvEE;EACE;EACA;ACyEJ;ADtEE;EAlBA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAaE;AC+EJ;AD5EE;EAvBA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAkBE;ACqFJ;AEjFE;EACE;EACA;EACA;AFmFJ;;AGpHA;;;;EAAA;AAuCA;EJ3BE;EIcA;EACA;AHoGF;ADjHE;EACE;EACA;ACmHJ;ADhHE;EAlBA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAaE;ACyHJ;ADtHE;EAvBA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAkBE;AC+HJ;AG5HG;EACC;EACA;EACA;AH8HJ;;AI9JA;;;;EAAA;AAsCA;EL1BE;EKcA;EACA;AJ8IF;AD3JE;EACE;EACA;AC6JJ;AD1JE;EAlBA;EACA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F;AAplCC;EACC;EACA;EACA;AAslCF;AAplCC;EACC;EACA;EACA;AAslCF;AAplCC;EACC;EACA;EACA;AAslCF;AAplCC;EACC;EACA;EACA;AAslCF;AAplCC;EACC;EACA;EACA;AAslCF;AAplCC;EACC;EACA;EACA;AAslCF;AAllCC;;EAEC;EACA;AAolCF;AAllCC;;;;;;EAMC;EACA;AAolCF;AAhlCC;EACC;AAklCF;AAhlCC;;EAEC;EACA;EACA;EACA;EACA;EACA;AAklCF;AAhlCE;;EACC;EACA;AAmlCH;AAhlCC;;EAEC;AAklCF;AA/kCC;EACC;AAilCF;AA/kCC;EACC;AAilCF;AA/kCC;EACC;AAilCF;;AA3kCA;AACA;EACC;EACA;AA8kCD;AA5kCC;EACC;AA8kCF;AA5kCC;EACC;AA8kCF;AA5kCC;EACC;AA8kCF;AA5kCC;EACC;AA8kCF;AA5kCC;EACC;AA8kCF;;AA3kCA;AACA;EACC;AA8kCD;;AA5kCA;EACC;AA+kCD;;AA7kCA;EACC;AAglCD;;AA9kCA;EACC;AAilCD;;AA/kCA;EACC;AAklCD;;AAhlCA;;EAAA;AAGA;;EAEC;AAmlCD;;AAjlCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAolCD;;AAllCA;EACC;EACA;KAAA;EACA;EACA;KAAA;EACA;EACA;EACA;EACA;EACA;EACA;AAqlCD;;AAnlCA;EACC;AAslCD;;AAplCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAulCD;;AArlCA;EACC;EACA;AAwlCD;;AAtlCA;EACC;EACA;AAylCD;;AAvlCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AA0lCD;;AAxlCA;EACC;EACA;AA2lCD;;AAzlCA;EACC;EACA;AA4lCD;;AA1lCA;EACC;AA6lCD;;AA3lCA;EACC;EACA;EACA;AA8lCD;;AA5lCA;EACC;EACA;EACA;EACA;EACA;AA+lCD;AA7lCC;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AA+lCF;AA5lCC;EACC;EACA;EACA;AA8lCF;AA5lCC;;EAEC;AA8lCF;AA5lCC;EACC;AA8lCF;AA5lCC;EACC;AA8lCF;AA5lCC;EACC;EACA;AA8lCF;AA5lCC;EACC;AA8lCF;AA5lCC;EACC;EACA;EACA;EACA;AA8lCF;AA5lCC;EACC;AA8lCF;AA5lCC;EACC;EACA;EACA;EACA;AA8lCF;AA5lCC;EACC;AA8lCF;AA5lCC;EACC;EACA;EACA;EACA;AA8lCF;AA5lCC;EACC;AA8lCF;;AAzlCC;EACC;EACA;EACA;EACA;EACA;EACA;AA4lCF;AAzlCC;EACC;EACA;AA2lCF;AAxlCC;EACC;AA0lCF;AAxlCC;EACC;AA0lCF;AAxlCC;EACC;AA0lCF;AAxlCC;EACC;AA0lCF;AAxlCC;EACC;AA0lCF;AAxlCC;EACC;AA0lCF;AAxlCC;EACC;AA0lCF;AAxlCC;EACC;AA0lCF;AAxlCC;EACC;AA0lCF;AAxlCC;EACC;EACA;AA0lCF;AAxlCC;EACC;EACA;AA0lCF;AAxlCC;EACC;EACA;AA0lCF;;AAvlCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AA0lCD;AAxlCC;EACC;AA0lCF;AAxlCE;EACC;AA0lCH;;AArlCA;EACC;AAwlCD;;AAtlCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAylCD;;AAvlCA;EACC;EACA;EACA;EACA;AA0lCD;;AAxlCA;EACC;AA2lCD;;AAzlCA;EACC;AA4lCD;;AA1lCA;EACC;AA6lCD;;AA3lCA;EACC;EACA;EACA;EACA;EACA;EACA;AA8lCD;;AA5lCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AA+lCD;;AA7lCA;EACC;AAgmCD;;AA9lCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAimCD;;AA/lCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAkmCD;;AAhmCA;EACC;AAmmCD;;AAhmCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;AAkmCD;;AAhmCA;EACC;AAmmCD;;AAhmCA;AACA;;EAEC;EACA;AAmmCD;;AAhmCC;EACC;EACA;EACA;EACA;AAmmCF;AAjmCE;EACC;EACA;EACA;AAmmCH;AAhmCC;EACC;AAkmCF;AAhmCC;EACC;EACA;AAkmCF;;AA9lCA;EACC;EACA;EACA;EACA;AAimCD;;AA/lCA;EACC;AAkmCD;;AA/lCA;AAEC;EADD;IAEE;EAkmCA;AACF;;AA/lCC;EADD;IAEE;EAmmCA;AACF;;AAhmCC;EADD;IAEE;EAomCA;AACF;;AAjmCC;EADD;IAEE;EAqmCA;AACF;;AAlmCC;EADD;IAEE;EAsmCA;AACF;;AAnmCC;EADD;IAEE;EAumCA;AACF,C;;;;A0B1xDA;EACC;AACD;;AACA;;EAEC;EACA;AAED;AAAC;;EACE;AAGH;;AAEC;EACC;EACA;AACF;AACC;EACC;EACA;EACA;EACA;EACA;AACF;AACC;EACC;EACA;EACA;EACA;AACF;AACC;EACC;EACA;AACF;AACC;EACC;AACF;;AAKC;EACC;EACA;AAFF,C;;;;ACzCC;EACC;AAAF;AAEE;EACC;AAAH;AAIE;EACC;AAFH;AAKC;EACC;AAHF;;AAOA;EACC;EACA;EACA;AAJD;AAMC;EACC;EACA;AAJF;AAOC;EACC;EACA;EACA;AALF;AAOC;EACC;EACA;EACA;EACA;EACA;EACA;EACA;AALF;AAME;EACC;AAJH;AAOE;EACC;AALH;AASE;EACC;AAPH;AAUE;EACC;AARH,C;;;;AC/CA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACD;;AAEA;EACC;AACD;AACE;EACC;EACA;EACA;AACH;AAEE;EACC;AAAH;AAEG;EACC;AAAJ;AAIC;EACC;EACA;EACA;EACA;AAFF;AAIC;EACC;EACA;EACA;EACA;AAFF;AAIC;EACC;AAFF;AAKC;EACC;EACA;EACA;EACA;AAHF;AAMC;EACC;AAJF;AAKE;EACC;EACA;AAHH;AAKE;EACC;AAHH;AAOE;EACC;AALH;AAOE;EACC;AALH;AAQE;EACC;EACA;AANH;AAOG;EACC;AALJ;AASC;EACC;AAPF;AAQE;EACC;AANH;AAQE;EACC;AANH;AASC;EACC;AAPF;AAQE;EACC;AANH;AAQE;EACC;AANH;AASC;EACC;AAPF;AAQE;EACC;AANH;AAQE;EACC;AANH,C;;;;ACjGA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACD;AACC;EACC;EACA;EACA;EACA;AACF;AACC;EACC;AACF;AAAE;EACC;EACA;AAEH;AACC;EACC;EACA;EACA;AACF;AAEC;EACC;AAAF;AAEC;EACC;EACA;EACA;EACA;EACA;EACA;EACA;AAAF;AAEC;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAAF;AAEC;EACC;EACA;EACA;EACA;AAAF;AAEE;EACC;EACA;AAAH;AAGC;EACC;EACA;AADF;AAGC;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AADF;AAGC;EACC;EACA;EACA;AADF;AAGC;EACC;EACA;EACA;AADF;AAGC;EACC;EACA;EACA;AADF;AAGC;EACC;EACA;EACA;EACA;AADF;AAIC;EACC;EACA;EACA;EACA;AAFF,C;;;;ACvGA;;;;EAIE;;AAEF,mBAAmB;AACnB;EACE,kBAAkB;EAClB,OAAO;EACP,MAAM;AACR;AACA;EACE,UAAU;AACZ;AACA;EACE,cAAc;EACd,kBAAkB;EAClB,OAAO;EACP,MAAM;EACN,WAAW;EACX,gBAAgB;EAChB,gBAAgB;EAChB,SAAS;EACT,UAAU;EACV,UAAU;EACV,oBAAoB;EACpB,yBAAy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AC,wIAAwI,CAAC,eAAe,CAAC,eAAe,CAAC,iCAAiC,CAAC,aAAa,CAAC,yBAAyB,CAAC,kBAAkB,kBAAkB,CAAC,mBAAmB,CAAC,2BAA2B,iBAAiB,CAAC,+BAA+B,mBAAmB,CAAC,wDAAwD,kBAAkB,CAAC,+CAA+C,mBAAmB,CAAC,sCAAsC,iBAAiB,CAAC,yCAAyC,cAAc,CAAC,iBAAiB,CAAC,mCAAmC,iBAAiB,CAAC,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,cAAc,CAAC,aAAa,CAAC,oBAAoB,CAAC,SAAS,CAAC,YAAY,CAAC,0CAA0C,KAAK,CAAC,WAAW,CAAC,eAAe,C;;;;ACNl5hB;EACC;AAAF;AAEE;EACC;AAAH;AAIE;EACC;AAFH,C;;;;ACPC;EACC;EACA;AAAF;AAEE;EACC;AAAH,C;;;;ACNA;EACC;EACA;AACD;AACC;EACC;EACA;EACA;EACA;EACA;EACA;AACF;AACC;EACC;EACA;EACA;AACF;AACE;EACC;EACA;AACH;AAEC;EACC;EACA;AAAF;AAEC;EACC;EACA;AAAF;;AAGA;EACC;AAAD;;AAEA;EACC;AACD;;AACA;EACC;AAED;;AAAA;EACC;AAGD;;AAAA;EACC;EACA;EACA;AAGD;;AAAC;EACC;AAGF;AADE;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAGH;AAAG;EACC;AAEJ;;AAIC;EACC;EACA;AADF;AAGC;EACC;AADF;;AAME;EACC;EACA;EACA;AAHH;AAME;EACC;EACA;AAJH;;AASA;EACC;AAND;AAOC;EACC;EACA;EACA;AALF;AAOC;EACC;EACA;EACA;EACA;AALF;AAOE;EACC;AALH;AAOE;EACC;AALH;;AASA;EACC;AAND;AAQC;EACC;AANF;;AASA;EACC;EACA;EACA;EACA;EACA;AAND;AAOC;EACC;EACA;AALF;;AAQA;EACC;AALD;AAOC;EACC;AALF;;AAQA;EACC;EACA;EACA;AALD,C;;;;ACzIC;EACC;EACA;AAFF;AAIC;EACC;AAFF;AAIC;EACC;AAFF;AAIC;EACC;AAFF;;AAMC;EACC;AAHF;;AAOA;EACC;EACA;EACA;EACA;EACA;AAJD;AAMC;EACC;EACA;EACA;EACA;EACA;EACA;AAJF;AAME;EACC;AAJH;AAME;EACC;EACA;AAJH,C;;;;ACvCA;EACC;IACC;EACA;AACF;AACA;AACA;EACC;AACD;;AACA;AAEC;EACC;EACA;EACA;EACA;AACF;;AAGA;AACA;EACC;EACA;EACA;EACA;EACA;AAAD;AAEE;EACC;EACA;EACA;AAAH;AAGC;EACC;EACA;EACA;EACA;EACA;EACA;AADF;AAEE;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAAH;AAEG;EACC;EACA;EACA;EACA;EACA;AAAJ;AACI;EACC;AACL;AAGG;EACC;EACA;AADJ;AAIG;EACC;EACA;AAFJ;AAKG;EACC;EACA;EACA;EACA;AAHJ;AAKG;EACC;EACA;EACA;EACA;EACA;EACG;AAHP;AAKG;EACC;EACA;EACA;EACA;EACA;AAHJ;;AAQA;EACC;AALD;AAOC;EACC;EACA;EACA;AALF;AAOC;EACC;EACA;EACA;AALF;;AAUC;EACC;EACA;EACA;EACA;AAPF;AAaE;EACC;AAXH;AAcC;EACC;EACA;EACA;EACA;EACA;EACA;AAZF;AAaE;EACC;EACA;EACA;EACA;EACA;EACA;AAXH;AAaE;EACC;AAXH;AAaE;EACC;EACA;EACA;EACA;EACA;AAXH;AAaE;EACC;EACA;EACA;AAXH;;AAgBA;;EAEC;AAbD;AAeC;;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAZF,C;;;;;;;;;;;;ACvKA;AACA;;EAGC;EACA;EACA;AAAD;AAEC;;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACF;AACE;;EACC;AAEH;AACC;;EACC;EACA;EACA;AAEF;;AAEC;EACC;AACF;AACE;EACC;EACA;EACA;AACH;AACG;EACC;AACJ;AAEE;EACC;EACA;EACA;AAAH;AAEE;EACC;EACA;EACA;EACA;EACA;AAAH;AAIC;;EAEC;AAFF;AAKC;EACC;AAHF;AAKC;EACC;EACA;AAHF;AAMC;EACC;AAJF;AAOC;EACC;AALF;AAQC;EACC;EACA;AANF;AASC;EACC;AAPF;AAUC;EACC;EACA;EACA;AARF;;AAYA;EACC;AATD;;AAYA;EACC;EACA;EACA;AATD;AAWC;EACC;EACA;AATF;AAYC;EACC;EACA;AAVF,C;;;;AClGC;EACC;EACA;AAAF;;AAGA;EACC;EACA;EACA;AAAD;AAEC;EACC;EACA;AAAF,C;;;;ACbA;EACC;EACA;EACA;AACD;;AACA;EACC;EACA;AAED;AADC;EACC;EACA;EACA;EACA;AAGF,C;;;;ACfA;EACC;EACA;EACA;AACD;;AACA;EACC;AAED;AADC;EACC;EACA;EACA;EACA;AAGF;;AAAA;EACC;AAGD,C;;;;AClBA;EACC;EACA;AACD,C;;;;ACHA;AACA;EACC;EACA;EACA;EACA;AACD;;AAIE;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AADH;AAGG;EACC;EACA;EACA;EACA;EACA;AADJ,C;;;;AC5BC;EACC;EACA;EACA;AAAF;AAEC;EACC;EACA;EACA;EACA;EACA;AAAF;AAEC;EACC;EACA;EACA;EACA;EACA;AAAF;AAEC;EACC;AAAF;AAIE;EACC;EACA;EACA;AAFH;AAKI;EACC;EACA;EACA;EACA;EACA;EACA;EACA;AAHL;AAOE;EACC;EACA;AALH,C;;;;ACvCA;EACC;EACA;EACA;EACA;AACD;AACC;EACC;EACA;AACF;AACC;EACC;EACA;EACA;EACA;EACA;EACA;AACF;AACE;;EAEC;EACA;AACH;AAEC;EACC;EACA;AAAF;AAEE;EACC;EACA;EACA;EACA;EACA;AAAH;AAEG;EACC;AAAJ;AAGE;EACC;EACA;AADH;AAKC;;EAEC;AAHF;;AASC;;;EACC;EACA;EACA;EACA;EACA;EACA;EACA;UAAA;EACA;EACA;EACA;AAJF;AAKE;;;;;EAEC;EACA;AAAH;AAGC;;;EACC;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACF;AACE;;;EACC;EACA;AAGH;AACC;;;;;;EAEC;AAKF;;AAFA;EACC;EACA;EACA;EACA;EACA;AAKD;AAHC;EACC;EACA;AAKF;AAHC;;EAEC;EACA;AAKF;;AADA;EACC;EACA;EACA;EACA,6HACC;EAGD;EACA;EACA;EACA;EACA;AACD;AAEE;EC9IF;EAAA;ED+IG;EACA;AAAH;AACG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACJ;AAEE;EC5JF;EAAA;ED6JG;EACA;AAAH;AACG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACJ;AAEE;EC1KF;EAAA;ED2KG;EACA;AAAH;AACG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACJ;AAEE;ECxLF;EAAA;EDyLG;EACA;AAAH;AACG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACJ;AAEE;ECtMF;EAAA;EDuMG;EACA;EACA;EACA;EACA;EACA;EACA;AAAH;AAIE;ECjNF;EAAA;EDkNG;EACA;AAFH;AAGG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AADJ;AAGG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AADJ;AAIE;ECzOF;EAAA;ED0OG;EACA;AAFH;AAGG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AADJ;AAGG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AADJ;AAIE;ECjQF;EAAA;EDkQG;EACA;AAFH;AAGG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AADJ;AAGG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AADJ;AAIE;ECzRF;EAAA;ED0RG;EACA;AAFH;AAGG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AADJ;AAGG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AADJ;AAIE;ECjTF;EAAA;EDkTG;EACA;EACA;EACA;EACA;EACA;EACA;AAFH,C;;;;AEtTA;EACC;EACA;EACA;EACA;AACD;AACC;EACC;EACA;AACF;AACC;EACC;EACA;EACA;EACA;EACA;EACA;AACF;AACE;;EAEC;EACA;AACH;AAEC;EACC;EACA;AAAF;AAEE;EACC;EACA;EACA;EACA;EACA;AAAH;AAEG;EACC;AAAJ;AAGE;EACC;EACA;AADH;AAKC;;EAEC;AAHF;;AAQC;;EACC;EACA;EACA;EACA;EACA;EACA;EACA;UAAA;EACA;EACA;EACA;AAJF;AAKE;;;EAEC;EACA;AAFH;AAKC;;EACC;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAFF;AAIE;;EACC;EACA;AADH;AAKC;;EACC;EACA;EACA;EACA;AAFF;AAIC;;;;EAEC;AAAF;AAGC;;;;EAEC;AACF;;AAEA;EACC;EACA;EACA;EACA;EACA;AACD;AACC;EACC;EACA;AACF;AACC;;EAEC;EACA;AACF;;AAGA;EACC;EACA;EACA;EACA,4LACC;EAGD;EACA;EACA;EACA;EACA;AAHD;AAME;EACC;EACA;EACA;AAJH;AAKG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAHJ;AAME;EACC;EACA;EACA;AAJH;AAKG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAHJ;AAME;EACC;EACA;EACA;AAJH;AAKG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAHJ;AAME;EACC;EACA;EACA;AAJH;AAKG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAHJ;AAME;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAJH;AAQE;EDhOF;EAAA;ECiOG;EACA;AANH;AAOG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AALJ;AAOG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AALJ;AAQE;EDxPF;EAAA;ECyPG;EACA;AANH;AAOG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AALJ;AAOG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AALJ;AAQE;EDhRF;EAAA;ECiRG;EACA;AANH;AAOG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AALJ;AAOG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AALJ;AAQE;EDxSF;EAAA;ECySG;EACA;AANH;AAOG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AALJ;AAOG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AALJ;AAQE;EACC;EACA;EACA;EACA;EACA;EACA;EACA;AANH;;AAYC;EACC;AATF;AAWC;EACC;AATF;;AAaA;;EAAA;AAGA;EACC;EACA;EACA;AAVD;AAWC;EACC;EACA;EACA;EACA;AATF;AAWC;EACC;EACA;EACA;AATF;AAWE;EACC;EACA;EACA;AATH,C;;;;ACjWA;AACA;EACC;EACA;EACA;AACD;;AAIC;EACC;AADF;;AAIA;EACC;EACA;EACA;AADD;AAGC;EACC;EACA;EACA;EACA;EACA;AADF;AAGE;EACC;EACA;EACA;EACA;EACA;EACA;AADH;;AAMA;AACA;EACC;EACA;EACA;AAHD;;AAKA;EACC;AAFD;;AAKA;AACA;EAQC;AATD;AAEC;EACC;EACA;AAAF;AACE;EACC;AACH;;AAIA;EACC;AADD;;AAGA;EACC;EACA;AAAD;AAEC;;EAEC;EACA;EACA;AAAF;AAEE;;EACC;AACH;;AAIA;AACA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AADD;AAEC;EAEC;EACA;AADF;AAGC;EAEC;EACA;AAFF;;AAMC;EACC;EACA;EACA;AAHF;AAKE;EAEC;EACA;AAJH;AAME;EAEC;EACA;AALH;;AAUA;EACC;EACA;AAPD;AASC;EACC;EACA;EACA;AAPF;AAQE;EACC;EACA;EACA;EACA;AANH;AAQE;EACC;AANH;AAQE;EACC;EACA;EACA;EACA;AANH;AAQE;EACC;EACA;EACA;AANH;;AAUA;EACC;AAPD;AASC;EACC;AAPF;;AAWC;EACC;EACA;AARF;;AAYA;AACA;EACC;AATD;AAWC;EACC;EACA;AATF;AAWC;EACC;AATF;AAYC;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAVF;AAaC;EACC;AAXF;AAcC;EACC;AAZF;;AAeA;EACC;EACA;AAZD;AAcC;EACC;EACA;EACA;EACA;EACA;AAZF;AAaE;EACC;EACA;EACA;EACA;AAXH;AAaE;EACC;AAXH;AAaE;EACC;EACA;EACA;EACA;AAXH;AAaE;EACC;EACA;EACA;AAXH;AAcE;EACC;EACA;AAZH;;AAgBA;EACC;AAbD;AAeC;EACC;AAbF;;AAgBA;EACC;EACA;EACA;AAbD;AAeC;EACC;EACA;AAbF;AAeC;EACC;EACA;EACA;AAbF;AAeC;EACC;EACA;EACA;EACA;EACA;AAbF;AAcE;EACC;EACA;AAZH;AAeC;EACC;EACA;EACA;AAbF;;AAgBA;EACC;AAbD;;AAeA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAZD;;AAcA;EACC;EACA;AAXD;;AAaA;EACC;AAVD;;AAYA;EACC;AATD,C;;;;;;;;ACvRA;EACC;EACA;EACA;EACA;EACA;EACA;AACD;AACC;EACC;AACF;AAEC;EACC;AAAF;AAEC;EACC;AAAF;AAEC;EACC;AAAF,C;;;;ACnBA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;AACD;;AACA;EACC;AAED;;AAAA;EACC;EACA;EACA;EACA;OAAA;EACA;AAGD;AADC;EACC;AAGF,C;;;;ACtBC;EACC;AAAF,C;;;;ACAE;EACC;EACA;EACA;AADH,C;;;;ACHC;EACC;AAAF;;AAGA;EACC;AAAD;;AAGA;EACC;EACA;AAAD;;AAIC;EACC;EACA;EACA;EACA;AADF;;AAIA;EACC;EACA;EACA;EACA;EACA;EACA;AADD;;AAGA;EACC;AAAD;;AAEA;EACC;EACA;EACA;EACA;AACD;;AACA;EACC;AAED,C;;;;AChCA;EACE;IACE;EATF;EAWA;IACE;EATF;AACF;AAGA;EACE;IACE;EATF;EAWA;IACE;EATF;AACF;AAYA;EACE;EACA;EACA;EACA;EACA;EACA;AAVF;;AAaA;EAGE;EACA;EACA;EACA;AAZF;AAcE;EAGE;UAAA;AAdJ;AAiBE;EAEE;AAhBJ;AAmBE;EACE;EACA;AAjBJ;AAmBI;EAEE;EACA;EACA;AAlBN;AAwBM;EAEE;MAAA;AAvBR;AA0BI;EACE;MAAA;AAxBN;AA4BE;EACE;EACA;EACA;EACA;EACA;EACA;AA1BJ;AA6BE;EACE;EACA;EACA;EACA;UAAA;EACA;AA3BJ;AA6BI;EACE;AA3BN;AA8BI;EACE;AA5BN;AA8BM;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AA5BR;AAgCI;EAEE;AA/BN;AAiCI;EACE;UAAA;EACA;EAAA;EAEA;EACA;EACA;EACA;EACA;UAAA;EACA;UAAA;EACA;UAAA;AAhCN;AAmCI;EACE;EACA;AAjCN;AAoCE;EAEE;AAnCJ;AAsCE;EAIE;EACA;EACA;EACA;AAvCJ;AA2CI;EAEE;EACA;AA1CN;AA6CI;EACE;EACA;AA3CN;AA8CI;EACE;EACA;AA5CN;AAiDI;EAEE;EACA;AAhDN;AAmDI;EACE;EACA;AAjDN;AAoDI;EACE;EACA;AAlDN;AAsDE;EACE;EACA;EACA;EACA;EACA;AApDJ;AAsDI;EACE;AApDN;AAwDE;EACE;EACA;EACA;UAAA;EACA;AAtDJ;AAwDE;EACE;EACA;EACA;UAAA;EACA;AAtDJ;AAwDE;EACE;EACA;EACA;UAAA;EACA;AAtDJ;AAwDE;EACE;EACA;EACA;UAAA;EACA;AAtDJ;AAwDE;EACE;EACA;EACA;UAAA;EACA;AAtDJ;AAwDE;EACE;EACA;EACA;UAAA;EACA;AAtDJ;AAwDE;EACE;EACA;EACA;UAAA;EACA;AAtDJ;AAwDE;EACE;EACA;EACA;UAAA;EACA;AAtDJ;AA2DE;EACE;AAzDJ;AA4DE;EACE;AA1DJ;AA4DI;EACE;EACA;EACA;EACA;EACA;UAAA;AA1DN;AA4DI;EACE;EACA;EACA;EACA;EACA;UAAA;AA1DN;AA4DI;EACE;EACA;EACA;EACA;EACA;UAAA;AA1DN;AA4DI;EACE;EACA;EACA;EACA;EACA;UAAA;AA1DN;AA8DE;EAGE;AA9DJ;AAiEE;EAIE;AAlEJ;AAqEE;EACE;;;;IAIE;EAnEJ;EAsEE;IACE;IACA;EApEJ;AACF,C;;;;AC5OA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;AACD;AACC;EACC;AACF;AACC;EACC;EACA;AACF;AAEE;EACC;AAAH;AAGC;EACC;EACA;EACA;AADF;AAIC;EACC;EACA;EACA;EACA;EACA;AAFF;AAKE;EACC;EACA;EACA;EACA;AAHH;AAMC;EACC;EACA;AAJF,C;;;;;;;;ACvCC;EACC;AAAF;;AAIC;EACC;AADF;AAEE;EACC;AAAH;;AAME;EACC;AAHH;;AAOA;EACC;EACA;EACA;AAJD,C;;;;ACnBA;AACA;EACC;AACD;AACC;EACC;AACF;AAEC;EACC;EACA;AAAF;AAEC;EACC;EACA;AAAF;AAGC;EACC;AADF;AAIC;EACC;EACA;EACA;EACA;AAFF;AAIE;EACC;EACA;EACA;OAAA;EACA;AAFH;AAIG;EACC;EACA;EACA;EACA;AAFJ;;AASA;AAEC;EACC;EACA;EACA;EACA;AAPF;AASE;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAPH;AASG;EAEC;AARJ;;AAcA;AACA;EACC;AAXD;;AAgBC;EACC;AAbF;AAgBC;EACC;EACA;AAdF;AAiBC;EACC;EACA;EACA;EACA;EACA;AAfF;AAkBC;EACC;EACA;EACA;EACA;AAhBF;AAkBE;EACC;AAhBH;;AAoBA;EACC;EACA;AAjBD;AAmBC;EACC;AAjBF,C;;;;AC7FA;;;EAGC;AACD;;AACA;;;EAGC;EACA;EACA;AAED;AAAC;;;EACC;AAIF;;AADA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;AAID;AAFC;EACC;AAIF;;AAAC;EACC;EACA;AAGF,C;;;;ACnCA;EACC;EACA;AACD,C;;;;ACHA;AACA;EACC;EACA;EACA;EACA;OAAA;AACD;AACC;EACC;EACA;AACF;AAEC;;EAEC;AAAF;;AAIC;EACC;EACA;AADF;;AAIA;EACC;AADD;AAGC;EACC;EACA;EACA;EACA;OAAA;AADF;AAGE;EACC;AADH;AAIE;EACC;EACA;AAFH;;AAMA;EACC;EACA;EACA;EACA;AAHD,C","sources":["webpack://photo-block/./src/scss/cssgram/aden.scss","webpack://photo-block/./src/scss/cssgram/_shared.scss","webpack://photo-block/./src/scss/block-backend-frontend.scss","webpack://photo-block/./src/scss/cssgram/inkwell.scss","webpack://photo-block/./src/scss/cssgram/perpetua.scss","webpack://photo-block/./src/scss/cssgram/reyes.scss","webpack://photo-block/./src/scss/cssgram/gingham.scss","webpack://photo-block/./src/scss/cssgram/toaster.scss","webpack://photo-block/./src/scss/cssgram/walden.scss","webpack://photo-block/./src/scss/cssgram/hudson.scss","webpack://photo-block/./src/scss/cssgram/earlybird.scss","webpack://photo-block/./src/scss/cssgram/mayfair.scss","webpack://photo-block/./src/scss/cssgram/lofi.scss","webpack://photo-block/./src/scss/cssgram/1977.scss","webpack://photo-block/./src/scss/cssgram/brooklyn.scss","webpack://photo-block/./src/scss/cssgram/xpro2.scss","webpack://photo-block/./src/scss/cssgram/nashville.scss","webpack://photo-block/./src/scss/cssgram/lark.scss","webpack://photo-block/./src/scss/cssgram/moon.scss","webpack://photo-block/./src/scss/cssgram/clarendon.scss","webpack://photo-block/./src/scss/cssgram/willow.scss","webpack://photo-block/./src/scss/cssgram/rise.scss","webpack://photo-block/./src/scss/cssgram/slumber.scss","webpack://photo-block/./src/scss/cssgram/brannan.scss","webpack://photo-block/./src/scss/cssgram/valencia.scss","webpack://photo-block/./src/scss/cssgram/kelvin.scss","webpack://photo-block/./src/scss/cssgram/maven.scss","webpack://photo-block/./src/scss/cssgram/stinson.scss","webpack://photo-block/./src/blocks/photo-block/editor.scss","webpack://photo-block/./src/components/UploadTypes/editor.scss","webpack://photo-block/./src/components/Notice/editor.scss","webpack://photo-block/./src/components/UploadTarget/editor.scss","webpack://photo-block/./node_modules/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css","webpack://photo-block/./node_modules/filepond/dist/filepond.min.css","webpack://photo-block/./src/components/UploadStatus/editor.scss","webpack://photo-block/./src/components/CaptionAppender/editor.scss","webpack://photo-block/./src/screens/Edit/editor.scss","webpack://photo-block/./src/components/MediaLink/editor.scss","webpack://photo-block/./src/components/URLPicker/editor.scss","webpack://photo-block/./src/components/ColorPicker/editor.scss","webpack://photo-block/./src/components/DropShadow/editor.scss","webpack://photo-block/./src/components/CSSGramButtonGroup/editor.scss","webpack://photo-block/./src/components/CSSGramButtonPreview/editor.scss","webpack://photo-block/./src/components/SizeResponsive/editor.scss","webpack://photo-block/./src/components/UnitPicker/editor.scss","webpack://photo-block/./src/components/HeadingIconResponsive/editor.scss","webpack://photo-block/./src/components/DimensionsResponsive/editor.scss","webpack://photo-block/","webpack://photo-block/./src/components/BorderResponsive/editor.scss","webpack://photo-block/./src/components/GlobalStyles/editor.scss","webpack://photo-block/./src/components/CustomAttributes/editor.scss","webpack://photo-block/./src/components/GlobalStylesPicker/editor.scss","webpack://photo-block/./src/components/GlobalStylesPicker/ButtonPreview/editor.scss","webpack://photo-block/./src/components/AlignmentToolbar/editor.scss","webpack://photo-block/./src/screens/Crop/editor.scss","webpack://photo-block/./node_modules/react-image-crop/src/ReactCrop.scss","webpack://photo-block/./src/components/ToolbarAspectRatio/editor.scss","webpack://photo-block/./src/blocks/photo-caption-block/editor.scss","webpack://photo-block/./src/components/Typography/editor.scss","webpack://photo-block/./src/components/GradientPicker/editor.scss","webpack://photo-block/./src/components/RangeResponsive/editor.scss","webpack://photo-block/./src/components/BackgroundSelector/editor.scss"],"sourcesContent":["/*\n *\n * photo-block-aden\n *\n */\n\n@import 'shared';\n\n// mixin to extend photo-block-aden filter\n// @mixin photo-block-aden\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-aden;\n// }\n// or\n// img {\n// @include photo-block-aden(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-aden(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-aden($filters...) {\n @include filter-base;\n filter: hue-rotate(-20deg) contrast(.9) saturate(.85) brightness(1.2) $filters;\n --photo-block-image-filter: hue-rotate(-20deg) contrast(.9) saturate(.85) brightness(1.2)blur(var(--photo-block-blur, 0));\n\n &::after {\n background: linear-gradient(to right, rgba(66, 10, 14, .2), transparent);\n mix-blend-mode: darken;\n }\n\n @content;\n}\n\n// photo-block-aden Instagram filter\n%photo-block-aden,\n.photo-block-aden {\n @include photo-block-aden;\n}\n","@mixin pseudo-elem {\n content: '';\n display: block;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n position: absolute;\n pointer-events: none;\n}\n\n@mixin filter-base {\n position: relative;\n\n img {\n width: 100%;\n z-index: 1;\n }\n\n &:before {\n @include pseudo-elem;\n z-index: 2;\n }\n\n &:after {\n @include pseudo-elem;\n z-index: 3;\n }\n}\n","@import 'cssgram/cssgram.scss';\n@keyframes photo-block-spin {\n\t100% {\n\t\ttransform: rotate(360deg);\n\t}\n}\n\n/**\n * Base Figure styles.\n */\n.wp-block.dlx-photo-block {\n\tmargin-top: 0;\n\tmargin-bottom: 0;\n}\n.dlx-photo-block__image-wrapper a {\n\tline-height: 0;\n\tdisplay: inline-flex;\n}\n.dlx-photo-block__figure,\n.dlx-photo-block__screen-edit-image-wrapper {\n\tposition: relative;\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tflex-direction: column;\n\talign-items: center;\n}\n.dlx-photo-block__image {\n\tbox-sizing: border-box;\n}\n.dlx-photo-block__figure > .dlx-photo-block__caption {\n\twidth: 100%;\n}\nfigcaption.dlx-photo-block__caption {\n\tposition: relative;\n\tz-index: 2; /* this is to make sure the caption is on top of the overlay */\n\tbox-sizing: border-box;\n\tfont-style: var( --photo-block__caption-font-style, normal );\n}\n.dlx-photo-block__caption-wrapper .dlx-photo-block__caption-overlay figcaption.dlx-photo-block__caption {\n\tdisplay: flex;\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n}\nfigcaption.dlx-photo-block__caption:not(.has-smart-styles) .dlx-photo-block__caption-inner {\n\talign-items: center;\n\n\t&.aligncenter {\n\t\tjustify-content: center;\n\t}\n\t&.alignleft {\n\t\tjustify-content: flex-start;\n\t}\n\t&.alignright {\n\t\tjustify-content: flex-end;\n\t}\n\n\t> em,\n\t> strong,\n\t> a,\n\t> sub,\n\t> sup,\n\t> s,\n\t> code,\n\t> span {\n\t\tflex-shrink: 0;\n\n\t}\n}\n/**\n * Smart Styles.\n */\nfigcaption.dlx-photo-block__caption.has-smart-styles .dlx-photo-block__caption-inner {\n\tfont-size: var( --photo-block__caption-font-size );\n\tfont-style: var( --photo-block__caption-font-style, normal );\n\t/* Strip Margin and padding from first and last elements */\n\t& > :first-child {\n\t\tmargin-top: 0;\n\t\tpadding-top: 0;\n\t}\n\t& > :last-child {\n\t\tmargin-bottom: 0;\n\t\tpadding-bottom: 0;\n\t}\n\n\t/* if first and only paragraph child */\n\t& > p:nth-child(1) {\n\t\tmargin-top: 0;\n\t\tpadding-top: 0;\n\t\tmargin-bottom: 0;\n\t\tpadding-bottom: 0;\n\t}\n\t.wp-block {\n\t\tmargin-left: unset;\n\t\tmargin-right: unset;\n\t}\n\n\t/* Set color for common elements */\n\tp,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tblockquote,\n\tcite,\n\tul,\n\tli,\n\t.wp-block-verse {\n\t\tcolor: var( --photo-block__caption-text-color );\n\t\t\n\t\ta {\n\t\t\tcolor: var( --photo-block-caption-link-color );\n\t\t\t&:hover {\n\t\t\t\tcolor: var( --photo-block-caption-link-color-hover );\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Set font family / size for common elements.*/\n\tp,\n\tli,\n\t.wp-block-verse {\n\t\tfont-family: var( --photo-block-caption-font-family );\n\t\tfont-size: 1.25em;\n\t\tline-height: 1.35;\n\t}\n\tblockquote {\n\t\tfont-size: var( --photo-block-caption-font-size );\n\t\tp {\n\t\t\tfont-family: var( --photo-block-caption-font-family );\n\t\t\tfont-size: 1.3em;\n\t\t\tline-height: 1.35;\n\t\t}\n\t\tcite {\n\t\t\tfont-family: var( --photo-block-caption-font-family );\n\t\t\tfont-size: 1.5em;\n\t\t\tline-height: 1.4;\n\t\t}\n\t}\n\n\t/* Add a little bit of margin left to the list items.\n\t * This is to make the list items look like they are\n\t * indented. */\n\tli {\n\t\tmargin-left: 1.5em;\n\t}\n\n\t/* Set font family / size for heading elements.*/\n\th1 {\n\t\tfont-family: var( --photo-block-caption-headings-font-family );\n\t\tfont-size: 2.5em;\n\t\tline-height: 1.2;\n\t}\n\th2 {\n\t\tfont-family: var( --photo-block-caption-headings-font-family );\n\t\tfont-size: 2em;\n\t\tline-height: 1.25;\n\t}\n\th3 {\n\t\tfont-family: var( --photo-block-caption-headings-font-family );\n\t\tfont-size: 1.75em;\n\t\tline-height: 1.3;\n\t}\n\th4 {\n\t\tfont-family: var( --photo-block-caption-headings-font-family );\n\t\tfont-size: 1.5em;\n\t\tline-height: 1.35;\n\t}\n\th5 {\n\t\tfont-family: var( --photo-block-caption-headings-font-family );\n\t\tfont-size: 1.25em;\n\t\tline-height: 1.4;\n\t}\n\th6 {\n\t\tfont-family: var( --photo-block-caption-headings-font-family );\n\t\tfont-size: 1.1em;\n\t\tline-height: 1.45;\n\t}\n\n\t/* Set margins for common elements */\n\tp,\n\tli {\n\t\tmargin-top: 0;\n\t\tmargin-bottom: 0.6em;\n\t}\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tmargin-top: 0;\n\t\tmargin-bottom: 0.8em;\n\t}\n\n\t/* Set Button Styles */\n\t.wp-block-button {\n\t\tfont-size: var( --photo-block-caption-font-size );\n\t}\n\tbutton,\n\t.wp-block-button .wp-element-button {\n\t\tfont-family: var( --photo-block-caption-font-family );\n\t\tfont-size: 1.25em;\n\t\tline-height: 1.35;\n\t\tbackground: var( --photo-block-caption-link-color );\n\t\tcolor: var( --photo-block-caption-link-color-hover );\n\t\ttransition: all 0.3s ease-in-out;\n\n\t\t&:hover {\n\t\t\tbackground: var( --photo-block-caption-link-color );\n\t\t\tcolor: var( --photo-block-caption-link-color-hover );\n\t\t}\n\t}\n\tbutton,\n\t.wp-block-button {\n\t\tmargin-bottom: 0.6em;\n\t}\n\t/* Get child block that might have text alignment */\n\t.wp-block-button:has( .has-text-align-center ) {\n\t\tmargin: 0 auto;\n\t}\n\t.wp-block-button:has( .has-text-align-right ) {\n\t\tmargin-left: auto;\n\t}\n\t.wp-block-button:has( .has-text-align-left ) {\n\t\tmargin-right: auto;\n\t}\n\t\n\n}\n\n/* Container Styles on the frontend */\n.dlx-photo-block__container {\n\tposition: relative;\n\tdisplay: flex;\n\n\t&.alignleft {\n\t\tjustify-content: flex-start;\n\t}\n\t&.alignright {\n\t\tjustify-content: flex-end;\n\t}\n\t&.aligncenter {\n\t\tjustify-content: center;\n\t}\n\t&.alignwide {\n\t\tjustify-content: center;\n\t}\n\t&.alignfull {\n\t\tjustify-content: center;\n\t}\n}\n/** Block Editor Styles */\n.alignleft .dlx-photo-block__container {\n\tjustify-content: flex-start;\n}\n.alignright .dlx-photo-block__container {\n\tjustify-content: flex-end;\n}\n.aligncenter .dlx-photo-block__container {\n\tjustify-content: center;\n}\n.alignwide .dlx-photo-block__container {\n\tjustify-content: center;\n}\n.alignfull .dlx-photo-block__container {\n\tjustify-content: center;\n}\n/**\n * Caption Overlay Styles.\n */\n.dlx-photo-block__image-wrapper,\n.dlx-photo-block-caption-wrapper {\n\tposition: relative;\n}\n.dlx-photo-block__image-wrapper {\n\tdisplay: inline-flex;\n\tjustify-content: center;\n\tbackground-color: var( --photo-block-photo-background-color );\n\twidth: var( --photo-block-image-width );\n\theight: var( --photo-block-image-height );\n\tmin-width: var( --photo-block-image-min-width );\n\tmin-height: var( --photo-block-image-min-height );\n\tmax-width: var( --photo-block-image-max-width );\n\tmax-height: var( --photo-block-image-max-height );\n\tborder-radius: var( --photo-block-photo-border-radius );\n\tmargin: var( --photo-block-image-margin, 0 );\n\tbox-sizing: border-box;\n}\n.dlx-photo-block__image-wrapper img {\n\topacity: var( --photo-block-image-opacity, 1 );\n\tobject-fit: var( --photo-block-image-object-fit, unset );\n\tfilter: var( --photo-block-image-filter, unset );\n\tobject-position: var( --photo-block-image-object-position, center );\n\tpadding: var( --photo-block-image-padding, 0 );\n\tborder-radius: var( --photo-block-photo-border-radius, 0 );\n\tborder-top: var( --photo-block-image-border-top, 0 );\n\tborder-right: var( --photo-block-image-border-right, 0 );\n\tborder-bottom: var( --photo-block-image-border-bottom, 0 );\n\tborder-left: var( --photo-block-image-border-left, 0 );\n}\n.dlx-photo-block__caption-wrapper.overlay-display-hover:before {\n\tdisplay: none;\n}\n.dlx-caption-position-overlay .dlx-photo-block__image-wrapper {\n\tposition: relative;\n\tdisplay: inline-flex;\n\tbox-sizing: border-box;\n\tpadding: var( --photo-block-image-padding, 0 );\n\tmargin: var( --photo-block-image-margin, 0 );\n\tborder-radius: var( --photo-block-photo-border-radius, 0 );\n\tborder-top: var( --photo-block-image-border-top, 0 );\n\tborder-right: var( --photo-block-image-border-right, 0 );\n\tborder-bottom: var( --photo-block-image-border-bottom, 0 );\n\tborder-left: var( --photo-block-image-border-left, 0 );\n\tbox-shadow: var( --photo-block-image-drop-shadow-horizontal, 0 ) var( --photo-block-image-drop-shadow-vertical, 0 ) var( --photo-block-image-drop-shadow-blur, 0 ) var( --photo-block-image-drop-shadow-spread, 0 ) var( --photo-block-image-drop-shadow-color, #000000 );\n}\n.dlx-photo-block__screen-edit-image-inner {\n\tposition: relative;\n\tdisplay: inline-flex;\n}\n.dlx-photo-block__image-wrapper img {\n\tmax-width: 100%;\n\theight: auto;\n}\n.dlx-caption-position-overlay .dlx-photo-block__image-wrapper img {\n\tpadding: unset;\n\tmargin: unset;\n\tborder-radius: var(--photo-block-photo-border-radius, var(--photo-block-photo-border-radius, unset) );\n\tborder-top: unset;\n\tborder-right: unset;\n\tborder-bottom: unset;\n\tborder-left: unset;\n\tmax-width: 100%;\n\theight: auto;\n}\n.dlx-photo-block__figure {\n\tmargin: var( --photo-block-figure-margin, 0 ); \n\twidth: 100%;\n}\n.dlx-photo-block.dlx-has-drop-shadow img {\n\tbox-sizing: border-box;\n\tbox-shadow: var( --photo-block-image-drop-shadow-horizontal, 0 ) var( --photo-block-image-drop-shadow-vertical, 0 ) var( --photo-block-image-drop-shadow-blur, 0 ) var( --photo-block-image-drop-shadow-spread, 0 ) var( --photo-block-image-drop-shadow-color, #000000 );\n}\n.dlx-caption-position-overlay.dlx-photo-block.dlx-has-drop-shadow img {\n\tbox-shadow: unset;\n}\n.dlx-photo-block__caption-wrapper {\n\tbox-sizing: border-box;\n\tposition: relative;\n\twidth: 100%;\n}\n.dlx-photo-block__caption--has-overlay {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\n\t.dlx-photo-caption-block {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tmargin-top: 0;\n\t\tmargin-right: 0;\n\t\tmargin-bottom: 0;\n\t\tmargin-left: 0;\n\t}\n\n\t.dlx-photo-block__caption-wrapper {\n\t\tposition: absolute;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\t.dlx-photo-block__caption-wrapper.overlay-display-hover .dlx-photo-block__caption-overlay,\n\t.dlx-photo-block__caption-wrapper.overlay-display-hover:hover .dlx-photo-block__caption-overlay{\n\t\ttransition: all 0.5s ease-in-out;\n\t}\n\t.dlx-photo-block__caption-wrapper.overlay-display-hover .dlx-photo-block__caption-overlay {\n\t\topacity: 0;\n\t}\n\t.dlx-photo-block__caption-wrapper.overlay-display-hover:hover .dlx-photo-block__caption-overlay {\n\t\topacity: 1;\n\t}\n\t.dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-down .dlx-photo-block__caption-overlay {\n\t\theight: 0;\n\t\toverflow: hidden;\n\t}\n\t.dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-down:hover .dlx-photo-block__caption-overlay {\n\t\theight: 100%;\n\t}\n\t.dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-up .dlx-photo-block__caption-overlay {\n\t\ttop: unset;\n\t\tbottom: 0;\n\t\theight: 0;\n\t\toverflow: hidden;\n\t}\n\t.dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-up:hover .dlx-photo-block__caption-overlay {\n\t\theight: 100%;\n\t}\n\t.dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-left .dlx-photo-block__caption-overlay {\n\t\tleft: unset;\n\t\tright: 0;\n\t\twidth: 0;\n\t\toverflow: hidden;\n\t}\n\t.dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-left:hover .dlx-photo-block__caption-overlay {\n\t\twidth: 100%;\n\t}\n\t.dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-right .dlx-photo-block__caption-overlay {\n\t\tright: unset;\n\t\tleft: 0;\n\t\twidth: 0;\n\t\toverflow: hidden;\n\t}\n\t.dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-slide-right:hover .dlx-photo-block__caption-overlay {\n\t\twidth: 100%;\n\t}\n}\n.dlx-photo-block__caption--has-overlay {\n\n\tfigcaption {\n\t\tdisplay: flex;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\tfigcaption .dlx-photo-block__caption-inner {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t}\n\n\t.overlay-vertical-middle figcaption {\n\t\talign-items: center;\n\t}\n\t.overlay-vertical-top figcaption {\n\t\talign-items: flex-start;\n\t}\n\t.overlay-vertical-bottom figcaption {\n\t\talign-items: flex-end;\n\t}\n\t.overlay-horizontal-center figcaption {\n\t\tjustify-content: center;\n\t}\n\t.overlay-horizontal-left figcaption {\n\t\tjustify-content: flex-start;\n\t}\n\t.overlay-horizontal-right figcaption {\n\t\tjustify-content: flex-end;\n\t}\n\t.caption-vertical-middle figcaption .dlx-photo-block__caption-inner {\n\t\tjustify-content: center;\n\t}\n\t.caption-vertical-top figcaption .dlx-photo-block__caption-inner {\n\t\tjustify-content: flex-start;\n\t}\n\t.caption-vertical-bottom figcaption .dlx-photo-block__caption-inner {\n\t\tjustify-content: flex-end;\n\t}\n\t.caption-horizontal-center figcaption .dlx-photo-block__caption-inner{\n\t\talign-items: center;\n\t\ttext-align: center;\n\t}\n\t.caption-horizontal-left figcaption .dlx-photo-block__caption-inner {\n\t\talign-items: flex-start;\n\t\ttext-align: left;\n\t}\n\t.caption-horizontal-right figcaption .dlx-photo-block__caption-inner {\n\t\talign-items: flex-end;\n\t\ttext-align: right;\n\t}\n}\n.dlx-photo-block__caption-wrapper figcaption.dlx-photo-block__caption {\n\tdisplay: flex;\n\tbox-sizing: border-box;\n\tmargin-block: 0;\n\t/* Set color for Text elements */\n\tcolor: var( --photo-block-caption-text-color, inherit );\n\tfont-family: var( --photo-block-caption-font-family, inherit );\n\tfont-size: var( --photo-block-caption-font-size, inherit );\n\tfont-weight: var( --photo-block-caption-font-weight, inherit );\n\tline-height: var( --photo-block-caption-line-height, inherit );\n\ttext-transform: var( --photo-block-caption-text-transform, inherit );\n\tletter-spacing: var( --photo-block-caption-letter-spacing, inherit );\n\ttext-align: var( --photo-block-caption-text-align, center );\n\n\ta {\n\t\tcolor: var( --photo-block-caption-link-color, inherit );\n\n\t\t&:hover {\n\t\t\tcolor: var( --photo-block-caption-link-color-hover, inherit )\n\t\t\n\t\t}\n\t}\n}\n.dlx-photo-caption-block__inner-blocks {\n\tz-index: 20;\n}\n.dlx-photo-block__caption-wrapper figcaption.dlx-photo-block__caption .dlx-photo-block__caption-inner {\n\tbox-sizing: border-box;\n\twidth: var( --photo-block-caption-width, 100% );\n\theight: var( --photo-block-caption-height, unset );\n\tmin-width: var( --photo-block-caption-min-width, unset );\n\tmin-height: var( --photo-block-caption-min-height, unset );\n\tmax-width: var( --photo-block-caption-max-width, unset );\n\tmax-height: var( --photo-block-caption-max-height, unset );\n\tbackground: var( --photo-block-caption-background-color );\n\tpadding: var( --photo-block-caption-padding, 0 );\n\tmargin: var( --photo-block-caption-margin, 0 );\n\tborder-radius: var( --photo-block-caption-border-radius, 0 );\n\tborder-top: var( --photo-block-caption-border-top, 0 );\n\tborder-right: var( --photo-block-caption-border-right, 0 );\n\tborder-bottom: var( --photo-block-caption-border-bottom, 0 );\n\tborder-left: var( --photo-block-caption-border-left, 0 );\n\tz-index: 10;\n}\n.dlx-photo-caption-block.wp-block {\n\tmargin-top: 0;\n\tmargin-right: 0;\n\tmargin-bottom: 0;\n\tmargin-left: 0;\n}\n.dlx-photo-block__caption-wrapper .aligncenter .dlx-photo-block__caption-inner {\n\tjustify-content: center;\n}\n.dlx-photo-block__caption-wrapper .alignleft .dlx-photo-block__caption-inner {\n\tjustify-content: flex-start;\n}\n.dlx-photo-block__caption-wrapper .alignright .dlx-photo-block__caption-inner {\n\tjustify-content: flex-end;\n}\n.dlx-photo-block__caption-overlay {\n\tbox-sizing: border-box;\n\tborder-top: var( --photo-block-caption-border-top, 0 );\n\tborder-right: var( --photo-block-caption-border-right, 0 );\n\tborder-bottom: var( --photo-block-caption-border-bottom, 0 );\n\tborder-left: var( --photo-block-caption-border-left, 0 );\n\toverflow: hidden;\n}\n.dlx-photo-block__caption-overlay:before {\n\ttransition: background 0.35s ease-in-out;\n\tdisplay: block;\n\tcontent: '';\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: 1;\n\tbackground: var( --photo-block-caption-overlay-background-color );\n\tborder-radius: var( --photo-block-caption-overlay-border-radius, 0 );\n}\n.dlx-photo-block__caption-wrapper:hover figcaption:before {\n\tbackground: var( --photo-block-caption-overlay-background-color-hover );\n}\n.dlx-photo-block__caption-overlay.overlay-type-gradient figcaption:before {\n\ttransition: opacity 0.35s ease-in-out;\n\tdisplay: block;\n\tcontent: '';\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: 1;\n\tbackground-image: var( --photo-block-caption-overlay-background-gradient );\n\topacity: var( --photo-block-caption-overlay-background-gradient-opacity );\n}\n.dlx-photo-block__caption-wrapper.overlay-display-hover.overlay-type-gradient:hover figcaption:before {\n\ttransition: opacity 0.35s ease-in-out;\n\tdisplay: block;\n\tcontent: '';\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: 1;\n\tbackground-image: var( --photo-block-caption-overlay-background-gradient );\n\topacity: var( --photo-block-caption-overlay-background-gradient-opacity );\n}\n.dlx-photo-block__caption-overlay.overlay-type-gradient:hover:before {\n\topacity: var( --photo-block-caption-overlay-background-gradient-opacity-hover );\n}\n\n.dlx-photo-block__caption-overlay.overlay-type-image figcaption:before {\n\ttransition: opacity 0.35s ease-in-out;\n\tdisplay: block;\n\tcontent: '';\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: 1;\n\n\tbackground-color: var( --photo-block-caption-overlay-background-image-color );\n\tbackground-image: var( --photo-block-caption-overlay-background-image-url, unset );\n\tbackground-position: var( --photo-block-caption-overlay-background-image-position, center );\n\tbackground-repeat: var( --photo-block-caption-overlay-background-image-repeat, no-repeat );\n\tbackground-size: var( --photo-block-caption-overlay-background-size, cover );\n\topacity: var( --photo-block-caption-overlay-background-image-opacity, 1 );\n}\n.dlx-photo-block__caption-overlay.overlay-type-image:hover figcaption:before {\n\topacity: var( --photo-block-caption-overlay-background-image-opacity-hover );\n}\n\n/* Set a min-width for the photo container */\n.wp-block .filepond--wrapper,\n.dlx-photo-block__block-wrapper {\n\tjustify-content: center;\n\tmargin: 0 auto;\n}\n.is-layout-small {\n\t.dlx-photo-block__upload-types__container {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tjustify-content: center;\n\t\trow-gap: 15px;\n\t\n\t\tbutton {\n\t\t\twidth: 100%;\n\t\t\tmargin-right: 0 !important;\n\t\t\tjustify-content: center !important;\n\t\t}\n\t}\n\t.dlx-photo-block__upload-target__container {\n\t\tdisplay: none !important;\n\t}\n\t.dlx-photo-block__upload-types-url__container {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: 1fr;\n\t}\n}\n\n.dlx-photo-block__screen-initial {\n\twidth: 100%;\n\tmax-width: 800px;\n\tborder: 1px solid #333;\n\tpadding: 35px;\n}\n.dlx-photo-block__image:not(.has-css-gram) {\n\tfilter: blur( var( --photo-block-blur, 0 ) );\n}\n\n/* Hide on Desktop */\n.dlx-photo-block__container.hide-on-mobile {\n\t@media (max-width: 768px) {\n\t\tdisplay: none;\n\t}\n}\n.dlx-photo-block__container.hide-on-desktop {\n\t@media (min-width: 769px) {\n\t\tdisplay: none;\n\t}\n}\n.dlx-photo-block__container.hide-on-tablet {\n\t@media (min-width: 769px) and (max-width: 1024px) {\n\t\tdisplay: none;\n\t}\n}\n.dlx-photo-block__caption-wrapper.hide-on-mobile {\n\t@media (max-width: 768px) {\n\t\tdisplay: none;\n\t}\n}\n.dlx-photo-block__caption-wrapper.hide-on-desktop {\n\t@media (min-width: 769px) {\n\t\tdisplay: none;\n\t}\n}\n.dlx-photo-block__caption-wrapper.hide-on-tablet {\n\t@media (min-width: 769px) and (max-width: 1024px) {\n\t\tdisplay: none;\n\t}\n}","/*\n *\n * photo-block-inkwell\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-inkwell filter\n// @mixin photo-block-inkwell\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-inkwell;\n// }\n// or\n// img {\n// @include photo-block-inkwell(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-inkwell(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-inkwell($filters...) {\n @include filter-base;\n filter: sepia(.3) contrast(1.1) brightness(1.1) grayscale(1) $filters;\n --photo-block-image-filter: sepia(.3) contrast(1.1) brightness(1.1) grayscale(1) blur(var(--photo-block-blur, 0));\n\n @content;\n}\n\n// photo-block-inkwell Instagram filter\n%photo-block-inkwell,\n.photo-block-inkwell {\n @include photo-block-inkwell;\n}\n","/*\n *\n * photo-block-perpetua\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-perpetua filter\n// @mixin photo-block-perpetua\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-perpetua;\n// }\n// or\n// img {\n// @include photo-block-perpetua(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-perpetua(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-perpetua($filters...) {\n @include filter-base;\n @if length($filters) > 0 {\n filter: $filters;\n }\n\n &::after {\n background: linear-gradient(to bottom, rgb(0, 91, 154), rgb(230, 193, 61));\n mix-blend-mode: soft-light;\n opacity: .5;\n }\n\n @content;\n}\n\n// photo-block-perpetua Instagram filter\n%photo-block-perpetua,\n.photo-block-perpetua {\n @include photo-block-perpetua;\n}\n","/*\n *\n * photo-block-reyes\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-reyes filter\n// @mixin photo-block-reyes\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-reyes;\n// }\n// or\n// img {\n// @include photo-block-reyes(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-reyes(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-reyes($filters...) {\n @include filter-base;\n filter: sepia(.22) brightness(1.1) contrast(.85) saturate(.75) $filters;\n --photo-block-image-filter: sepia(.22) brightness(1.1) contrast(.85) saturate(.75) blur(var(--photo-block-blur, 0));\n\n &::after {\n background: rgb(239, 205, 173);\n mix-blend-mode: soft-light;\n opacity: .5;\n }\n \n @content;\n}\n\n// photo-block-reyes Instagram filter\n%photo-block-reyes,\n.photo-block-reyes {\n @include photo-block-reyes;\n}\n","/*\n *\n * photo-block-gingham\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-gingham filter\n// @mixin photo-block-gingham\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-gingham;\n// }\n// or\n// img {\n// @include photo-block-gingham(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-gingham(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-gingham($filters...) {\n @include filter-base;\n filter: brightness(1.05) hue-rotate(-10deg) $filters;\n --photo-block-image-filter: brightness(1.05) hue-rotate(-10deg) blur(var(--photo-block-blur, 0));\n\n &::after {\n background: rgb(230, 230, 250);\n mix-blend-mode: soft-light;\n }\n\n @content;\n}\n\n// photo-block-gingham Instagram filter\n%photo-block-gingham,\n.photo-block-gingham {\n @include photo-block-gingham;\n}\n","/*\n *\n * photo-block-toaster\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-toaster filter\n// @mixin photo-block-toaster\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-toaster;\n// }\n// or\n// img {\n// @include photo-block-toaster(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-toaster(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-toaster($filters...) {\n @include filter-base;\n filter: contrast(1.5) brightness(.9) $filters;\n --photo-block-image-filter: contrast(1.5) brightness(.9) blur(var(--photo-block-blur, 0));\n\n &::after {\n background: radial-gradient(circle, rgb(128, 78, 15), rgb(59, 0, 59));\n mix-blend-mode: screen;\n }\n\n @content;\n}\n\n// photo-block-toaster Instagram filter\n%photo-block-toaster,\n.photo-block-toaster {\n @include photo-block-toaster;\n}\n","/*\n *\n * photo-block-walden\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-walden filter\n// @mixin photo-block-walden\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-walden;\n// }\n// or\n// img {\n// @include photo-block-walden(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-walden(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-walden($filters...) {\n @include filter-base;\n filter: brightness(1.1) hue-rotate(-10deg) sepia(.3) saturate(1.6) $filters;\n --photo-block-image-filter: brightness(1.1) hue-rotate(-10deg) sepia(.3) saturate(1.6) blur(var(--photo-block-blur, 0));\n\n &::after {\n background: rgb(0, 68, 204);\n mix-blend-mode: screen;\n opacity: .3;\n }\n\n @content;\n}\n\n// photo-block-walden Instagram filter\n%photo-block-walden,\n.photo-block-walden {\n @include photo-block-walden;\n}\n","/*\n *\n * photo-block-hudson\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-hudson filter\n// @mixin photo-block-hudson\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-hudson;\n// }\n// or\n// img {\n// @include photo-block-hudson(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-hudson(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-hudson($filters...) {\n @include filter-base;\n filter: brightness(1.2) contrast(.9) saturate(1.1) $filters;\n --photo-block-image-filter: brightness(1.2) contrast(.9) saturate(1.1) blur(var(--photo-block-blur, 0));\n\n &::after {\n background: radial-gradient(circle, rgb(166, 177, 255) 50%, rgb(52, 33, 52));\n mix-blend-mode: multiply;\n opacity: .5;\n }\n\n @content;\n}\n\n// photo-block-hudson Instagram filter\n%photo-block-hudson,\n.photo-block-hudson {\n @include photo-block-hudson;\n}\n","/*\n *\n * photo-block-earlybird\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-earlybird filter\n// @mixin photo-block-earlybird\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-earlybird;\n// }\n// or\n// img {\n// @include photo-block-earlybird(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-earlybird(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-earlybird($filters...) {\n @include filter-base;\n filter: contrast(.9) sepia(.2) $filters;\n --photo-block-image-filter: contrast(.9) sepia(.2) blur(var(--photo-block-blur, 0));\n\n &::after {\n background: radial-gradient(circle, rgb(208, 186, 142) 20%, rgb(54, 3, 9) 85%, rgb(29, 2, 16) 100%);\n mix-blend-mode: overlay;\n }\n\n @content;\n}\n\n// photo-block-earlybird Instagram filter\n%photo-block-earlybird,\n.photo-block-earlybird {\n @include photo-block-earlybird;\n}\n","/*\n *\n * photo-block-mayfair\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-mayfair filter\n// @mixin photo-block-mayfair\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-mayfair;\n// }\n// or\n// img {\n// @include photo-block-mayfair(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-mayfair(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-mayfair($filters...) {\n @include filter-base;\n filter: contrast(1.1) saturate(1.1) $filters;\n --photo-block-image-filter: contrast(1.1) saturate(1.1) blur(var(--photo-block-blur, 0));\n\n &::after {\n background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, .8), rgba(255, 200, 200, .6), rgb(17, 17, 17) 60%);\n mix-blend-mode: overlay;\n opacity: .4;\n }\n\n @content;\n}\n\n// photo-block-mayfair Instagram filter\n%photo-block-mayfair,\n.photo-block-mayfair {\n @include photo-block-mayfair;\n}\n","/*\n * Lo-fi\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-lofi filter\n// @mixin photo-block-lofi\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-lofi;\n// }\n// or\n// img {\n// @include photo-block-lofi(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-lofi(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-lofi($filters...) {\n @include filter-base;\n filter: saturate(1.1) contrast(1.5) $filters;\n --photo-block-image-filter: saturate(1.1) contrast(1.5) blur(var(--photo-block-blur, 0));\n\n &::after {\n background: radial-gradient(circle, transparent 70%, rgb(34, 34, 34) 150%);\n mix-blend-mode: multiply;\n }\n\n @content;\n}\n\n// photo-block-lofi Instagram filter\n%photo-block-lofi,\n.photo-block-lofi {\n @include photo-block-lofi;\n}\n","/*\n * 1977\n *\n */\n@import 'shared';\n\n// mixin to extend 1977 filter\n// @mixin photo-block-1977\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-1977;\n// }\n// or\n// img {\n// @include photo-block-1977(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-1977(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-1977($filters...) {\n @include filter-base;\n filter: contrast(1.1) brightness(1.1) saturate(1.3) $filters;\n --photo-block-image-filter: contrast(1.1) brightness(1.1) saturate(1.3) blur(var(--photo-block-blur, 0));\n\n &:after{\n background: rgba(243, 106, 188, .3);\n mix-blend-mode: screen;\n }\n @content;\n}\n\n// 1977 Instagram filter\n%photo-block-1977,\n.photo-block-1977 {\n @include photo-block-1977;\n}\n","/*\n *\n * photo-block-brooklyn\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-brooklyn filter\n// @mixin photo-block-brooklyn\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-brooklyn;\n// }\n// or\n// img {\n// @include photo-block-brooklyn(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-brooklyn(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-brooklyn($filters...) {\n @include filter-base;\n filter: contrast(.9) brightness(1.1) $filters;\n --photo-block-image-filter: contrast(.9) brightness(1.1) blur(var(--photo-block-blur, 0));\n\n &::after {\n background: radial-gradient(circle, rgba(168, 223, 193, .4) 70%, rgb(196, 183, 200));\n mix-blend-mode: overlay;\n }\n\n @content;\n}\n\n// photo-block-brooklyn Instagram filter\n%photo-block-brooklyn,\n.photo-block-brooklyn {\n @include photo-block-brooklyn;\n}\n","/*\n *\n * X-Pro II\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-xpro2 filter\n// @mixin photo-block-xpro2\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-xpro2;\n// }\n// or\n// img {\n// @include photo-block-xpro2(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-xpro2(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-xpro2($filters...) {\n @include filter-base;\n filter: sepia(.3) $filters;\n --photo-block-image-filter: sepia(.3) blur(var(--photo-block-blur, 0));\n\n &::after {\n background: radial-gradient(circle, rgb(230, 231, 224) 40%, rgba(43, 42, 161, .6) 110%);\n mix-blend-mode: color-burn;\n }\n\n @content;\n}\n\n// photo-block-xpro2 Instagram filter\n%photo-block-xpro2,\n.photo-block-xpro2 {\n @include photo-block-xpro2;\n}\n","/*\n *\n * photo-block-nashville\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-nashville filter\n// @mixin photo-block-nashville\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-nashville;\n// }\n// or\n// img {\n// @include photo-block-nashville(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-nashville(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-nashville($filters...) {\n @include filter-base;\n filter: sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2) $filters;\n --photo-block-image-filter: sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2) blur(var(--photo-block-blur, 0));\n\n &::after {\n background: rgba(0, 70, 150, .4);\n mix-blend-mode: lighten;\n }\n\n &::before {\n background: rgba(247, 176, 153, .56);\n mix-blend-mode: darken;\n }\n\n @content;\n}\n\n// photo-block-nashville Instagram filter\n%photo-block-nashville,\n.photo-block-nashville {\n @include photo-block-nashville;\n}\n","/*\n * photo-block-lark\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-lark filter\n// @mixin photo-block-lark\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-lark;\n// }\n// or\n// img {\n// @include photo-block-lark(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-lark(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-lark($filters...) {\n @include filter-base;\n filter: contrast(.9) $filters;\n --photo-block-image-filter: contrast(.9) blur(var(--photo-block-blur, 0));\n\n &::after {\n background: rgba(242, 242, 242, .8);\n mix-blend-mode: darken;\n }\n\n &::before {\n background: rgb(34, 37, 63);\n mix-blend-mode: color-dodge;\n }\n\n @content;\n}\n\n// photo-block-lark Instagram filter\n%photo-block-lark,\n.photo-block-lark {\n @include photo-block-lark;\n}\n","/*\n * photo-block-moon\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-moon filter\n// @mixin photo-block-moon\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-moon;\n// }\n// or\n// img {\n// @include photo-block-moon(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-moon(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-moon($filters...) {\n @include filter-base;\n filter: grayscale(1) contrast(1.1) brightness(1.1) $filters;\n --photo-block-image-filter: grayscale(1) contrast(1.1) brightness(1.1) blur(var(--photo-block-blur, 0));\n\n &::before {\n background: rgb(160, 160, 160);\n mix-blend-mode: soft-light;\n }\n\n &::after {\n background: rgb(56, 56, 56);\n mix-blend-mode: lighten;\n }\n\n @content;\n}\n\n// photo-block-moon Instagram filter\n%photo-block-moon,\n.photo-block-moon {\n @include photo-block-moon;\n}\n","/*\n * photo-block-clarendon\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-clarendon filter\n// @mixin photo-block-clarendon\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-clarendon;\n// }\n// or\n// img {\n// @include photo-block-clarendon(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-clarendon(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-clarendon($filters...) {\n @include filter-base;\n filter: contrast(1.2) saturate(1.35) $filters;\n --photo-block-image-filter: contrast(1.2) saturate(1.35) blur(var(--photo-block-blur, 0));\n\n &:before {\n background: rgba(127, 187, 227, .2);\n mix-blend-mode: overlay;\n }\n\n @content;\n}\n\n// photo-block-clarendon Instagram filter\n%photo-block-clarendon,\n.photo-block-clarendon {\n @include photo-block-clarendon;\n}\n","/*\n * photo-block-willow\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-willow filter\n// @mixin photo-block-willow\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-willow;\n// }\n// or\n// img {\n// @include photo-block-willow(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-willow(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-willow($filters...) {\n @include filter-base;\n filter: grayscale(.5) contrast(.95) brightness(.9) $filters;\n --photo-block-image-filter: grayscale(.5) contrast(.95) brightness(.9) blur(var(--photo-block-blur, 0));\n\n &::before {\n background-color: radial-gradient(40%, circle, rgb(212, 169, 175) 55%, black 150%);\n mix-blend-mode: overlay;\n }\n\n &::after {\n background-color: rgb(216, 205, 203);\n mix-blend-mode: color;\n }\n\n @content;\n}\n\n// photo-block-willow Instagram filter\n%photo-block-willow,\n.photo-block-willow {\n @include photo-block-willow;\n}\n@mixin photo-block-willow($filters...) {\n\n}\n","/*\n *\n * photo-block-rise\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-rise filter\n// @mixin photo-block-rise\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-rise;\n// }\n// or\n// img {\n// @include photo-block-rise(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-rise(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-rise($filters...) {\n @include filter-base;\n filter: brightness(1.05) sepia(.2) contrast(.9) saturate(.9) $filters;\n --photo-block-image-filter: brightness(1.05) sepia(.2) contrast(.9) saturate(.9) blur(var(--photo-block-blur, 0));\n\n &::after{\n background: radial-gradient(circle, rgba(232, 197, 152, .8), transparent 90%);\n mix-blend-mode: overlay;\n opacity: .6;\n }\n\n &::before{\n background: radial-gradient(circle, rgba(236, 205, 169, .15) 55%, rgba(50, 30, 7, .4));\n mix-blend-mode: multiply;\n }\n\n @content;\n}\n\n// photo-block-rise Instagram filter\n%photo-block-rise,\n.photo-block-rise {\n @include photo-block-rise;\n}\n","/*\n *\n * photo-block-slumber\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-slumber filter\n// @mixin photo-block-slumber\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-slumber;\n// }\n// or\n// img {\n// @include photo-block-slumber(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-slumber(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-slumber($filters...) {\n @include filter-base;\n filter: saturate(.66) brightness(1.05) $filters;\n --photo-block-image-filter: saturate(.66) brightness(1.05) blur(var(--photo-block-blur, 0));\n\n &::after {\n background: rgba(125, 105, 24, 0.5);\n mix-blend-mode: soft-light;\n }\n\n &::before {\n background: rgba(69, 41, 12, .4);\n mix-blend-mode: lighten;\n }\n\n @content;\n}\n\n// photo-block-slumber Instagram filter\n%photo-block-slumber,\n.photo-block-slumber {\n @include photo-block-slumber;\n}\n","/*\n *\n * photo-block-brannan\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-brannan filter\n// @mixin photo-block-brannan\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-brannan;\n// }\n// or\n// img {\n// @include photo-block-brannan(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-brannan(blur(2px)) {\n// /*...*/\n// };\n// }\n\n@mixin photo-block-brannan($filters...) {\n @include filter-base;\n filter: sepia(0.5) contrast(1.4) $filters;\n --photo-block-image-filter: sepia(0.5) contrast(1.4) blur(var(--photo-block-blur, 0));\n\n &::after {\n background-color: rgba(161, 44, 199, .31);\n mix-blend-mode: lighten;\n }\n\n @content;\n}\n\n// photo-block-brannan Instagram filter\n%photo-block-brannan,\n.photo-block-brannan {\n @include photo-block-brannan;\n}\n","/*\n *\n * photo-block-valencia\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-valencia filter\n// @mixin photo-block-valencia\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-valencia;\n// }\n// or\n// img {\n// @include photo-block-valencia(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-valencia(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-valencia($filters...) {\n @include filter-base;\n filter: contrast(1.08) brightness(1.08) sepia(0.08) $filters;\n --photo-block-image-filter: contrast(1.08) brightness(1.08) sepia(0.08) blur(var(--photo-block-blur, 0));\n\n &::after {\n background: rgb(58, 3, 57);\n mix-blend-mode: exclusion;\n opacity: .5;\n }\n\n @content;\n}\n\n// photo-block-valencia Instagram filter\n%photo-block-valencia,\n.photo-block-valencia {\n @include photo-block-valencia;\n}\n","/*\n * photo-block-kelvin\n *\n */\n@import 'shared';\n\n// mixin to extend photo-block-kelvin filter\n// @mixin photo-block-kelvin\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-kelvin;\n// }\n// or\n// img {\n// @include photo-block-kelvin(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-kelvin(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-kelvin($filters...) {\n @include filter-base;\n\n @if length($filters) > 0 {\n filter: $filters blur(var(--photo-block-blur, 0));\n }\n\n &::after{\n background: rgb(183, 125, 33);\n mix-blend-mode: overlay;\n }\n\n &::before {\n background: rgb(56, 44, 52);\n mix-blend-mode: color-dodge;\n }\n\n @content;\n}\n\n// photo-block-kelvin Instagram filter\n%photo-block-kelvin,\n.photo-block-kelvin {\n @include photo-block-kelvin;\n}\n","/*\n *\n * photo-block-maven\n *\n */\n\n@import 'shared';\n\n// mixin to extend photo-block-maven filter\n// @mixin photo-block-maven\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-maven;\n// }\n// or\n// img {\n// @include photo-block-maven(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-maven(blur(2px)) {\n// /*...*/\n// };\n// }\n\n@mixin photo-block-maven($filters...) {\n @include filter-base;\n filter: sepia(.25) brightness(.95) contrast(.95) saturate(1.5) $filters;\n --photo-block-image-filter: sepia(.25) brightness(.95) contrast(.95) saturate(1.5) blur(var(--photo-block-blur, 0));\n\n &:after{\n background: rgba(3, 230, 26, .20);\n mix-blend-mode: hue;\n }\n\n @content;\n}\n\n// photo-block-maven Instagram filter\n%photo-block-maven,\n.photo-block-maven {\n @include photo-block-maven;\n}\n","/*\n *\n * photo-block-stinson\n *\n */\n\n@import 'shared';\n\n// mixin to extend photo-block-stinson filter\n// @mixin photo-block-stinson\n// @param $filters... {filter} - Zero to many css filters to be added\n// @example\n// img {\n// @include photo-block-stinson;\n// }\n// or\n// img {\n// @include photo-block-stinson(blur(2px));\n// }\n// or\n// img {\n// @include photo-block-stinson(blur(2px)) {\n// /*...*/\n// };\n// }\n@mixin photo-block-stinson($filters...) {\n @include filter-base;\n filter: contrast(0.75) saturate(0.85) brightness(1.15) $filters;\n --photo-block-image-filter: contrast(0.75) saturate(0.85) brightness(1.15) blur(var(--photo-block-blur, 0));\n\n &::before {\n background: rgba(240, 149, 128, .2);\n mix-blend-mode: soft-light;\n }\n\n @content;\n}\n\n// photo-block-stinson Instagram filter\n%photo-block-stinson,\n.photo-block-stinson {\n @include photo-block-stinson;\n}\n",".dlx-photo-block__container {\n\tfont-size: 16px;\n}\n.block-editor-block-icon svg.lucide,\nsvg.lucide {\n\tfill: none;\n\tcolor: currentColor;\n\n\t* {\n\t\t color: currentColor;\n\t}\n}\n.dlx-photo-block__container {\n\t\n\t.PinturaRootWrapper {\n\t\theight: 100vh;\n\t\tmax-height: 650px;\n\t}\n\tbutton.PinturaButton.PinturaButtonExport {\n\t\tbox-shadow: unset;\n\t\tbackground: var( --wp-admin-theme-color );\n\t\tcolor: #fff;\n\t\tfont-size: 16px;\n\t\tfont-weight: 600;\n\t}\n\t.PinturaRoot .PinturaStage {\n\t\tmin-width: 80%;\n\t\tmax-width: 80%;\n\t\twidth: 100%;\n\t\talign-self: center;\n\t}\n\t.PinturaUtilMain {\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t}\n\t.PinturaUtilMain > div {\n\t\twidth: 100%;\n\t}\n}\n\n.dlx-screen-initial {\n\n\t.dlx-photo-block__container {\n\t\tpadding: 15px;\n\t\tpadding-right: 25px;\n\t}\n}",".dlx-photo-block__upload-types__container {\n\tbutton.components-button {\n\t\tmargin-right: 8px;\n\n\t\t&.has-icon {\n\t\t\tpadding: 15px 20px;\n\t\t}\n\t\t\n\n\t\t&:last-of-type {\n\t\t\tmargin-right: 0;\n\t\t}\n\t}\n\tbutton.dlx-photo-block__upload-types__back.components-button {\n\t\tcolor: #FFF;\n\t}\n}\n\n.dlx-photo-block__upload-types-url__container {\n\tdisplay: grid;\n\tgrid-template-columns: 1fr 75px 75px;\n\tgrid-gap: 8px;\n\n\tinput[type=\"url\"] {\n\t\tdisplay: inline-block;\n\t\tmin-height: 40px;\n\t}\n\n\tlabel {\n\t\tposition: absolute;\n\t\tleft: -9999px;\n\t\tclip: rect( 0 0 0 0 );\n\t}\n\tbutton.components-button {\n\t\tmargin-right: 8px;\n\t\tmin-width: unset;\n\t\theight: 30px;\n\t\tmargin-left: 4px;\n\t\tpadding-left: 15px;\n\t\tpadding-right: 15px;\n\t\twidth: 100%;\n\t\t&.has-icon {\n\t\t\tpadding: 20px 20px;\n\t\t}\n\n\t\t&.dlx-photo-block__upload-types-url__upload {\n\t\t\tcolor: #FFFFFF;\n\t\t}\n\t\t\n\n\t\t&:last-of-type {\n\t\t\tmargin-right: 0;\n\t\t}\n\n\t\t&.is-url-saving svg {\n\t\t\tanimation: photo-block-spin 1s linear infinite;\n\t\t}\n\t}\n}\n\n\n\n",":root {\n\t--photo-block-admin--color-notice--info: #e3f3f7;\n\t--photo-block-admin--color-notice--info-alt: #3a8dc4;\n\t--photo-block-admin--color-notice--success: #eaf5ea;\n\t--photo-block-admin--color-notice--success-alt: #49a939;\n\t--photo-block-admin--color-notice--warning: #fef6e1;\n\t--photo-block-admin--color-notice--warning-alt: #e8a931;\n\t--photo-block-admin--color-notice--error: #f5e5e4;\n\t--photo-block-admin--color-notice--error-alt: #bc2b2c;\n\t--photo-block-admin--color-notice--secondary: #e2e3e5;\n\t--photo-block-admin--color-notice--secondary-alt: #41464b;\n}\n\n.photo-block-admin__notice {\n\tmargin: 10px 0;\n\t&.photo-block-admin__notice--photo-block-icon {\n\t\t.components-notice__content {\n\t\t\tdisplay: grid;\n\t\t\tgrid-template-columns: 32px 1fr 1px;\n\t\t\talign-items: center;\n\t\t}\n\n\t\t&.photo-block-admin__notice-appearance--inline .components-notice__content {\n\t\t\tdisplay: flex;\n\n\t\t\t.photo-block-admin__notice-icon {\n\t\t\t\tmargin-right: 8px;\n\t\t\t}\n\t\t}\n\t}\n\t.photo-block-admin__notice-message {\n\t\tcolor: var(--photo-block-admin--color-dark);\n\t\tfont-size: 1.1em;\n\t\tline-height: 1.2;\n\t\tfont-weight: 500;\n\t}\n\t&.photo-block-admin__notice-appearance--block .components-notice {\n\t\tborder-left: 4px solid transparent;\n\t\tpadding: 15px 0px;\n\t\tpadding-left: 15px;\n\t\tmargin: 0 0 15px 0;\n\t}\n\t&.photo-block-admin__notice-appearance--inline .components-notice {\n\t\tpadding-left: 0;\n\t}\n\n\tsvg {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\twidth: 20px;\n\t\theight: 20px;\n\t}\n\n\t&.photo-block-admin__notice-type--error:not(.photo-block-admin__notice-appearance--inline) {\n\t\tbackground-color: var(--photo-block-admin--color-notice--error) !important;\n\t\t.components-notice {\n\t\t\tbackground-color: var(--photo-block-admin--color-notice--error) !important;\n\t\t\tborder-left-color: var(--photo-block-admin--color-notice--error-alt);\n\t\t}\n\t\tsvg path {\n\t\t\tfill: var(--photo-block-admin--color-notice--error-alt);\n\t\t}\n\t}\n\t&.photo-block-admin__notice-type--error.photo-block-admin__notice-appearance--inline {\n\t\t.photo-block-admin__notice-message {\n\t\t\tcolor: var(--photo-block-admin--color-notice--error-alt);\n\t\t}\n\t\t.photo-block-admin__notice-message {\n\t\t\tfont-size: 0.9em;\n\t\t}\n\n\t\tsvg {\n\t\t\twidth: 16px;\n\t\t\theight: 16px;\n\t\t\tpath {\n\t\t\t\tfill: var(--photo-block-admin--color-notice--error-alt);\n\t\t\t}\n\t\t}\n\t}\n\t&.photo-block-admin__notice-type--success {\n\t\tbackground-color: var(--photo-block-admin--color-notice--success);\n\t\t.components-notice {\n\t\t\tborder-left-color: var(--photo-block-admin--color-notice--success-alt);\n\t\t}\n\t\tsvg path {\n\t\t\tfill: var(--photo-block-admin--color-notice--success-alt);\n\t\t}\n\t}\n\t&.photo-block-admin__notice-type--info {\n\t\tbackground-color: var(--photo-block-admin--color-notice--info);\n\t\t.components-notice {\n\t\t\tborder-left-color: var(--photo-block-admin--color-notice--info-alt);\n\t\t}\n\t\tsvg path {\n\t\t\tfill: var(--photo-block-admin--color-notice--info-alt);\n\t\t}\n\t}\n\t&.photo-block-admin__notice-type--warning {\n\t\tbackground-color: var(--photo-block-admin--color-notice--warning);\n\t\t.components-notice {\n\t\t\tborder-left-color: var(--photo-block-admin--color-notice--warning-alt);\n\t\t}\n\t\tsvg path {\n\t\t\tfill: var(--photo-block-admin--color-notice--warning-alt);\n\t\t}\n\t}\n}",".dlx-photo-block__upload-target__container {\n\tposition: relative;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tmin-height: 250px;\n\twidth: 100%;\n\tborder: 4px dashed #c3c4c7;\n\tmargin-top: 15px;\n\n\t.dlx-photo-block__upload-target__label {\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tflex-wrap: wrap;\n\t}\n\t.dlx-photo-block__upload-target__label-svg {\n\t\tmargin-bottom: 15px;\n\t\tsvg {\n\t\t\theight: 36px;\n\t\t\twidth: 36px;\n\t\t}\n\t}\n\t.dlx-photo-block__upload-target__label-text {\n\t\twidth: 100%;\n\t\ttext-align: center;\n\t\tfont-size: 1.2em;\n\t}\n\n\t.filepond--browser {\n\t\tdisplay: none;\n\t}\n\t.dlx-photo-block__upload-target__filepond {\n\t\tdisplay: flex;\n\t\tposition: absolute;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tz-index: 1;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\t.dlx-photo-block__upload-target__filepond__loading-overlay {\n\t\tposition: absolute;\n\t\tz-index: 2;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground: rgba(255, 255, 255, 0.8);\n\t\tdisplay: flex;\n\t\tflex-flow: column;\n\t\tflex-wrap: wrap;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t}\n\t.dlx-photo-block__upload-target__filepond__loading {\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\tjustify-content: center;\n\t\tmargin-bottom: 15px;\n\n\t\tsvg {\n\t\t\twidth: 36px;\n\t\t\theight: 36px;\n\t\t}\n\t}\n\t.dlx-photo-block__upload-target__filepond__loading-label {\n\t\tmargin-bottom: 15px;\n\t\tfont-size: 1.3em;\n\t}\n\t.dlx-photo-block__upload-target__filepond__loading-progress {\n\t\tdisplay: inline-flex;\n\t\tjustify-content: flex-start;\n\t\talign-items: center;\n\t\tmin-width: 420px;\n\t\tbackground: #ddd;\n\t\theight: 12px;\n\t\tborder-radius: 5px;\n\t\tpadding: 0 3px;\n\t\ttransition: all 0.5s ease-in-out;\n\t}\n\t.dlx-photo-block__upload-target__filepond__loading-progress-bar {\n\t\tbackground: var(--wp-admin-theme-color, #007cba);\n\t\theight: 5px;\n\t\tborder-radius: 5px;\n\t}\n\t.dlx-photo-block__upload-target__label {\n\t\tposition: relative;\n\t\tz-index: 2;\n\t\tpointer-events: none;\n\t}\n\t.filepond--wrapper {\n\t\tposition: absolute;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\t.filepond--drop-label {\n\t\tposition: absolute;\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\tul.filepond--list {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\tlist-style-type: none;\n\t\tbackground: #FFF;\n\t}\n}","/*!\n * FilePondPluginImagePreview 4.6.12\n * Licensed under MIT, https://opensource.org/licenses/MIT/\n * Please visit https://pqina.nl/filepond/ for details.\n */\n\n/* eslint-disable */\n.filepond--image-preview-markup {\n position: absolute;\n left: 0;\n top: 0;\n}\n.filepond--image-preview-wrapper {\n z-index: 2;\n}\n.filepond--image-preview-overlay {\n display: block;\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n min-height: 5rem;\n max-height: 7rem;\n margin: 0;\n opacity: 0;\n z-index: 2;\n pointer-events: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.filepond--image-preview-overlay svg {\n width: 100%;\n height: auto;\n color: inherit;\n max-height: inherit;\n}\n.filepond--image-preview-overlay-idle {\n mix-blend-mode: multiply;\n color: rgba(40, 40, 40, 0.85);\n}\n.filepond--image-preview-overlay-success {\n mix-blend-mode: normal;\n color: rgba(54, 151, 99, 1);\n}\n.filepond--image-preview-overlay-failure {\n mix-blend-mode: normal;\n color: rgba(196, 78, 71, 1);\n}\n/* disable for Safari as mix-blend-mode causes the overflow:hidden of the parent container to not work */\n@supports (-webkit-marquee-repetition: infinite) and\n ((-o-object-fit: fill) or (object-fit: fill)) {\n .filepond--image-preview-overlay-idle {\n mix-blend-mode: normal;\n }\n}\n.filepond--image-preview-wrapper {\n /* no interaction */\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n\n /* have preview fill up all available space */\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n height: 100%;\n margin: 0;\n\n /* radius is .05em less to prevent the panel background color from shining through */\n border-radius: 0.45em;\n overflow: hidden;\n\n /* this seems to prevent Chrome from redrawing this layer constantly */\n background: rgba(0, 0, 0, 0.01);\n}\n.filepond--image-preview {\n position: absolute;\n left: 0;\n top: 0;\n z-index: 1;\n display: flex; /* this aligns the graphic vertically if the panel is higher than the image */\n align-items: center;\n height: 100%;\n width: 100%;\n pointer-events: none;\n background: #222;\n\n /* will be animated */\n will-change: transform, opacity;\n}\n.filepond--image-clip {\n position: relative;\n overflow: hidden;\n margin: 0 auto;\n\n /* transparency indicator (currently only supports grid or basic color) */\n}\n.filepond--image-clip[data-transparency-indicator='grid'] img,\n.filepond--image-clip[data-transparency-indicator='grid'] canvas {\n background-color: #fff;\n background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' fill='%23eee'%3E%3Cpath d='M0 0 H50 V50 H0'/%3E%3Cpath d='M50 50 H100 V100 H50'/%3E%3C/svg%3E\");\n background-size: 1.25em 1.25em;\n}\n.filepond--image-bitmap,\n.filepond--image-vector {\n position: absolute;\n left: 0;\n top: 0;\n will-change: transform;\n}\n.filepond--root[data-style-panel-layout~='integrated']\n .filepond--image-preview-wrapper {\n border-radius: 0;\n}\n.filepond--root[data-style-panel-layout~='integrated']\n .filepond--image-preview {\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.filepond--root[data-style-panel-layout~='circle']\n .filepond--image-preview-wrapper {\n border-radius: 99999rem;\n}\n.filepond--root[data-style-panel-layout~='circle']\n .filepond--image-preview-overlay {\n top: auto;\n bottom: 0;\n -webkit-transform: scaleY(-1);\n transform: scaleY(-1);\n}\n.filepond--root[data-style-panel-layout~='circle']\n .filepond--file\n .filepond--file-action-button[data-align*='bottom']:not([data-align*='center']) {\n margin-bottom: 0.325em;\n}\n.filepond--root[data-style-panel-layout~='circle']\n .filepond--file\n [data-align*='left'] {\n left: calc(50% - 3em);\n}\n.filepond--root[data-style-panel-layout~='circle']\n .filepond--file\n [data-align*='right'] {\n right: calc(50% - 3em);\n}\n.filepond--root[data-style-panel-layout~='circle']\n .filepond--progress-indicator[data-align*='bottom'][data-align*='left'],\n.filepond--root[data-style-panel-layout~='circle']\n .filepond--progress-indicator[data-align*='bottom'][data-align*='right'] {\n margin-bottom: calc(0.325em + 0.1875em);\n}\n.filepond--root[data-style-panel-layout~='circle']\n .filepond--progress-indicator[data-align*='bottom'][data-align*='center'] {\n margin-top: 0;\n margin-bottom: 0.1875em;\n margin-left: 0.1875em;\n}\n","/*!\n * FilePond 4.31.1\n * Licensed under MIT, https://opensource.org/licenses/MIT/\n * Please visit https://pqina.nl/filepond/ for details.\n */\n\n/* eslint-disable */\n.filepond--assistant{position:absolute;overflow:hidden;height:1px;width:1px;padding:0;border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}.filepond--browser.filepond--browser{position:absolute;margin:0;padding:0;left:1em;top:1.75em;width:calc(100% - 2em);opacity:0;font-size:0}.filepond--data{position:absolute;width:0;height:0;padding:0;margin:0;border:none;visibility:hidden;pointer-events:none;contain:strict}.filepond--drip{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;opacity:.1;pointer-events:none;border-radius:.5em;background:rgba(0,0,0,.01)}.filepond--drip-blob{-webkit-transform-origin:center center;transform-origin:center center;width:8em;height:8em;margin-left:-4em;margin-top:-4em;background:#292625;border-radius:50%}.filepond--drip-blob,.filepond--drop-label{position:absolute;top:0;left:0;will-change:transform,opacity}.filepond--drop-label{right:0;margin:0;color:#4f4f4f;display:flex;justify-content:center;align-items:center;height:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.filepond--drop-label.filepond--drop-label label{display:block;margin:0;padding:.5em}.filepond--drop-label label{cursor:default;font-size:.875em;font-weight:400;text-align:center;line-height:1.5}.filepond--label-action{text-decoration:underline;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;-webkit-text-decoration-color:#a7a4a4;text-decoration-color:#a7a4a4;cursor:pointer}.filepond--root[data-disabled] .filepond--drop-label label{opacity:.5}.filepond--file-action-button.filepond--file-action-button{font-size:1em;width:1.625em;height:1.625em;font-family:inherit;line-height:inherit;margin:0;padding:0;border:none;outline:none;will-change:transform,opacity}.filepond--file-action-button.filepond--file-action-button span{position:absolute;overflow:hidden;height:1px;width:1px;padding:0;border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}.filepond--file-action-button.filepond--file-action-button svg{width:100%;height:100%}.filepond--file-action-button.filepond--file-action-button:after{position:absolute;left:-.75em;right:-.75em;top:-.75em;bottom:-.75em;content:\"\"}.filepond--file-action-button{cursor:auto;color:#fff;border-radius:50%;background-color:rgba(0,0,0,.5);background-image:none;box-shadow:0 0 0 0 hsla(0,0%,100%,0);transition:box-shadow .25s ease-in}.filepond--file-action-button:focus,.filepond--file-action-button:hover{box-shadow:0 0 0 .125em hsla(0,0%,100%,.9)}.filepond--file-action-button[disabled]{color:hsla(0,0%,100%,.5);background-color:rgba(0,0,0,.25)}.filepond--file-action-button[hidden]{display:none}.filepond--action-edit-item.filepond--action-edit-item{width:2em;height:2em;padding:.1875em}.filepond--action-edit-item.filepond--action-edit-item[data-align*=center]{margin-left:-.1875em}.filepond--action-edit-item.filepond--action-edit-item[data-align*=bottom]{margin-bottom:-.1875em}.filepond--action-edit-item-alt{border:none;line-height:inherit;background:transparent;font-family:inherit;color:inherit;outline:none;padding:0;margin:0 0 0 .25em;pointer-events:all;position:absolute}.filepond--action-edit-item-alt svg{width:1.3125em;height:1.3125em}.filepond--action-edit-item-alt span{font-size:0;opacity:0}.filepond--file-info{position:static;display:flex;flex-direction:column;align-items:flex-start;flex:1;margin:0 .5em 0 0;min-width:0;will-change:transform,opacity;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.filepond--file-info *{margin:0}.filepond--file-info .filepond--file-info-main{font-size:.75em;line-height:1.2;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.filepond--file-info .filepond--file-info-sub{font-size:.625em;opacity:.5;transition:opacity .25s ease-in-out;white-space:nowrap}.filepond--file-info .filepond--file-info-sub:empty{display:none}.filepond--file-status{position:static;display:flex;flex-direction:column;align-items:flex-end;flex-grow:0;flex-shrink:0;margin:0;min-width:2.25em;text-align:right;will-change:transform,opacity;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.filepond--file-status *{margin:0;white-space:nowrap}.filepond--file-status .filepond--file-status-main{font-size:.75em;line-height:1.2}.filepond--file-status .filepond--file-status-sub{font-size:.625em;opacity:.5;transition:opacity .25s ease-in-out}.filepond--file-wrapper.filepond--file-wrapper{border:none;margin:0;padding:0;min-width:0;height:100%}.filepond--file-wrapper.filepond--file-wrapper>legend{position:absolute;overflow:hidden;height:1px;width:1px;padding:0;border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}.filepond--file{position:static;display:flex;height:100%;align-items:flex-start;padding:.5625em;color:#fff;border-radius:.5em}.filepond--file .filepond--file-status{margin-left:auto;margin-right:2.25em}.filepond--file .filepond--processing-complete-indicator{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:3}.filepond--file .filepond--file-action-button,.filepond--file .filepond--processing-complete-indicator,.filepond--file .filepond--progress-indicator{position:absolute}.filepond--file [data-align*=left]{left:.5625em}.filepond--file [data-align*=right]{right:.5625em}.filepond--file [data-align*=center]{left:calc(50% - .8125em)}.filepond--file [data-align*=bottom]{bottom:1.125em}.filepond--file [data-align=center]{top:calc(50% - .8125em)}.filepond--file .filepond--progress-indicator{margin-top:.1875em}.filepond--file .filepond--progress-indicator[data-align*=right]{margin-right:.1875em}.filepond--file .filepond--progress-indicator[data-align*=left]{margin-left:.1875em}[data-filepond-item-state*=error] .filepond--file-info,[data-filepond-item-state*=invalid] .filepond--file-info,[data-filepond-item-state=cancelled] .filepond--file-info{margin-right:2.25em}[data-filepond-item-state~=processing] .filepond--file-status-sub{opacity:0}[data-filepond-item-state~=processing] .filepond--action-abort-item-processing~.filepond--file-status .filepond--file-status-sub{opacity:.5}[data-filepond-item-state=processing-error] .filepond--file-status-sub{opacity:0}[data-filepond-item-state=processing-error] .filepond--action-retry-item-processing~.filepond--file-status .filepond--file-status-sub{opacity:.5}[data-filepond-item-state=processing-complete] .filepond--action-revert-item-processing svg{-webkit-animation:fall .5s linear .125s both;animation:fall .5s linear .125s both}[data-filepond-item-state=processing-complete] .filepond--file-status-sub{opacity:.5}[data-filepond-item-state=processing-complete] .filepond--file-info-sub,[data-filepond-item-state=processing-complete] .filepond--processing-complete-indicator:not([style*=hidden])~.filepond--file-status .filepond--file-status-sub{opacity:0}[data-filepond-item-state=processing-complete] .filepond--action-revert-item-processing~.filepond--file-info .filepond--file-info-sub{opacity:.5}[data-filepond-item-state*=error] .filepond--file-wrapper,[data-filepond-item-state*=error] .filepond--panel,[data-filepond-item-state*=invalid] .filepond--file-wrapper,[data-filepond-item-state*=invalid] .filepond--panel{-webkit-animation:shake .65s linear both;animation:shake .65s linear both}[data-filepond-item-state*=busy] .filepond--progress-indicator svg{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes shake{10%,90%{-webkit-transform:translateX(-.0625em);transform:translateX(-.0625em)}20%,80%{-webkit-transform:translateX(.125em);transform:translateX(.125em)}30%,50%,70%{-webkit-transform:translateX(-.25em);transform:translateX(-.25em)}40%,60%{-webkit-transform:translateX(.25em);transform:translateX(.25em)}}@keyframes shake{10%,90%{-webkit-transform:translateX(-.0625em);transform:translateX(-.0625em)}20%,80%{-webkit-transform:translateX(.125em);transform:translateX(.125em)}30%,50%,70%{-webkit-transform:translateX(-.25em);transform:translateX(-.25em)}40%,60%{-webkit-transform:translateX(.25em);transform:translateX(.25em)}}@-webkit-keyframes fall{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}70%{opacity:1;-webkit-transform:scale(1.1);transform:scale(1.1);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}to{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes fall{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}70%{opacity:1;-webkit-transform:scale(1.1);transform:scale(1.1);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}to{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.filepond--hopper[data-hopper-state=drag-over]>*{pointer-events:none}.filepond--hopper[data-hopper-state=drag-over]:after{content:\"\";position:absolute;left:0;top:0;right:0;bottom:0;z-index:100}.filepond--progress-indicator{z-index:103}.filepond--file-action-button{z-index:102}.filepond--file-status{z-index:101}.filepond--file-info{z-index:100}.filepond--item{position:absolute;top:0;left:0;right:0;z-index:1;padding:0;margin:.25em;will-change:transform,opacity;touch-action:none}.filepond--item>.filepond--panel{z-index:-1}.filepond--item>.filepond--panel .filepond--panel-bottom{box-shadow:0 .0625em .125em -.0625em rgba(0,0,0,.25)}.filepond--item>.filepond--file-wrapper,.filepond--item>.filepond--panel{transition:opacity .15s ease-out}.filepond--item[data-drag-state]{cursor:-webkit-grab;cursor:grab}.filepond--item[data-drag-state]>.filepond--panel{transition:box-shadow .125s ease-in-out;box-shadow:0 0 0 transparent}.filepond--item[data-drag-state=drag]{cursor:-webkit-grabbing;cursor:grabbing}.filepond--item[data-drag-state=drag]>.filepond--panel{box-shadow:0 .125em .3125em rgba(0,0,0,.325)}.filepond--item[data-drag-state]:not([data-drag-state=idle]){z-index:2}.filepond--item-panel{background-color:#64605e}[data-filepond-item-state=processing-complete] .filepond--item-panel{background-color:#369763}[data-filepond-item-state*=error] .filepond--item-panel,[data-filepond-item-state*=invalid] .filepond--item-panel{background-color:#c44e47}.filepond--item-panel{border-radius:.5em;transition:background-color .25s}.filepond--list-scroller{position:absolute;top:0;left:0;right:0;margin:0;will-change:transform}.filepond--list-scroller[data-state=overflow] .filepond--list{bottom:0;right:0}.filepond--list-scroller[data-state=overflow]{overflow-y:scroll;overflow-x:hidden;-webkit-overflow-scrolling:touch;-webkit-mask:linear-gradient(180deg,#000 calc(100% - .5em),transparent);mask:linear-gradient(180deg,#000 calc(100% - .5em),transparent)}.filepond--list-scroller::-webkit-scrollbar{background:transparent}.filepond--list-scroller::-webkit-scrollbar:vertical{width:1em}.filepond--list-scroller::-webkit-scrollbar:horizontal{height:0}.filepond--list-scroller::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.3);border-radius:99999px;border:.3125em solid transparent;background-clip:content-box}.filepond--list.filepond--list{position:absolute;top:0;margin:0;padding:0;list-style-type:none;will-change:transform}.filepond--list{left:.75em;right:.75em}.filepond--root[data-style-panel-layout~=integrated]{width:100%;height:100%;max-width:none;margin:0}.filepond--root[data-style-panel-layout~=circle] .filepond--panel-root,.filepond--root[data-style-panel-layout~=integrated] .filepond--panel-root{border-radius:0}.filepond--root[data-style-panel-layout~=circle] .filepond--panel-root>*,.filepond--root[data-style-panel-layout~=integrated] .filepond--panel-root>*{display:none}.filepond--root[data-style-panel-layout~=circle] .filepond--drop-label,.filepond--root[data-style-panel-layout~=integrated] .filepond--drop-label{bottom:0;height:auto;display:flex;justify-content:center;align-items:center;z-index:7}.filepond--root[data-style-panel-layout~=circle] .filepond--item-panel,.filepond--root[data-style-panel-layout~=integrated] .filepond--item-panel{display:none}.filepond--root[data-style-panel-layout~=compact] .filepond--list-scroller,.filepond--root[data-style-panel-layout~=integrated] .filepond--list-scroller{overflow:hidden;height:100%;margin-top:0;margin-bottom:0}.filepond--root[data-style-panel-layout~=compact] .filepond--list,.filepond--root[data-style-panel-layout~=integrated] .filepond--list{left:0;right:0;height:100%}.filepond--root[data-style-panel-layout~=compact] .filepond--item,.filepond--root[data-style-panel-layout~=integrated] .filepond--item{margin:0}.filepond--root[data-style-panel-layout~=compact] .filepond--file-wrapper,.filepond--root[data-style-panel-layout~=integrated] .filepond--file-wrapper{height:100%}.filepond--root[data-style-panel-layout~=compact] .filepond--drop-label,.filepond--root[data-style-panel-layout~=integrated] .filepond--drop-label{z-index:7}.filepond--root[data-style-panel-layout~=circle]{border-radius:99999rem;overflow:hidden}.filepond--root[data-style-panel-layout~=circle]>.filepond--panel{border-radius:inherit}.filepond--root[data-style-panel-layout~=circle]>.filepond--panel>*{display:none}.filepond--root[data-style-panel-layout~=circle] .filepond--file-info,.filepond--root[data-style-panel-layout~=circle] .filepond--file-status{display:none}.filepond--root[data-style-panel-layout~=circle] .filepond--action-edit-item{opacity:1!important;visibility:visible!important}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent){.filepond--root[data-style-panel-layout~=circle]{will-change:transform}}}.filepond--panel-root{border-radius:.5em;background-color:#f1f0ef}.filepond--panel{position:absolute;left:0;top:0;right:0;margin:0;height:100%!important;pointer-events:none}.filepond-panel:not([data-scalable=false]){height:auto!important}.filepond--panel[data-scalable=false]>div{display:none}.filepond--panel[data-scalable=true]{-webkit-transform-style:preserve-3d;transform-style:preserve-3d;background-color:transparent!important;border:none!important}.filepond--panel-bottom,.filepond--panel-center,.filepond--panel-top{position:absolute;left:0;top:0;right:0;margin:0;padding:0}.filepond--panel-bottom,.filepond--panel-top{height:.5em}.filepond--panel-top{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;border-bottom:none!important}.filepond--panel-top:after{content:\"\";position:absolute;height:2px;left:0;right:0;bottom:-1px;background-color:inherit}.filepond--panel-bottom,.filepond--panel-center{will-change:transform;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-origin:left top;transform-origin:left top;-webkit-transform:translate3d(0,.5em,0);transform:translate3d(0,.5em,0)}.filepond--panel-bottom{border-top-left-radius:0!important;border-top-right-radius:0!important;border-top:none!important}.filepond--panel-bottom:before{content:\"\";position:absolute;height:2px;left:0;right:0;top:-1px;background-color:inherit}.filepond--panel-center{height:100px!important;border-top:none!important;border-bottom:none!important;border-radius:0!important}.filepond--panel-center:not([style]){visibility:hidden}.filepond--progress-indicator{position:static;width:1.25em;height:1.25em;color:#fff;margin:0;pointer-events:none;will-change:transform,opacity}.filepond--progress-indicator svg{width:100%;height:100%;vertical-align:top;transform-box:fill-box}.filepond--progress-indicator path{fill:none;stroke:currentColor}.filepond--list-scroller{z-index:6}.filepond--drop-label{z-index:5}.filepond--drip{z-index:3}.filepond--root>.filepond--panel{z-index:2}.filepond--browser{z-index:1}.filepond--root{box-sizing:border-box;position:relative;margin-bottom:1em;font-size:1rem;line-height:normal;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-weight:450;text-align:left;text-rendering:optimizeLegibility;direction:ltr;contain:layout style size}.filepond--root *{box-sizing:inherit;line-height:inherit}.filepond--root :not(text){font-size:inherit}.filepond--root[data-disabled]{pointer-events:none}.filepond--root[data-disabled] .filepond--list-scroller{pointer-events:all}.filepond--root[data-disabled] .filepond--list{pointer-events:none}.filepond--root .filepond--drop-label{min-height:4.75em}.filepond--root .filepond--list-scroller{margin-top:1em;margin-bottom:1em}.filepond--root .filepond--credits{position:absolute;right:0;opacity:.175;line-height:.85;font-size:11px;color:inherit;text-decoration:none;z-index:3;bottom:-14px}.filepond--root .filepond--credits[style]{top:0;bottom:auto;margin-top:14px}",".dlx-photo-block__upload-status {\n\tbutton.components-button {\n\t\tmargin-right: 8px;\n\n\t\t&.has-icon {\n\t\t\tpadding: 15px 20px;\n\t\t}\n\t\t\n\n\t\t&:last-of-type {\n\t\t\tmargin-right: 0;\n\t\t}\n\t}\n}",".block-list-appender .photo-block-admin__caption-appender {\n\t& > button.components-button {\n\t\tcolor: #FFF;\n\t\tpadding: 25px 20px;\n\n\t\tsvg {\n\t\t\tcolor: #FFF;\n\t\t}\n\t}\n}",".dlx-photo-block__screen-edit {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\n\t.dlx-photo-block__screen-edit-spinner {\n\t\twidth: 100%;\n\t\ttext-align: center;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t}\n\t.dlx-photo-block__screen-edit-spinner__logo {\n\t\twidth: 100%;\n\t\ttext-align: center;\n\t\tmargin: 0 0 16px 0;\n\n\t\tsvg {\n\t\t\twidth: 72px;\n\t\t\theight: 72px;\n\t\t}\n\t}\n\t.dlx-photo-block__screen-edit-spinner__label {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\tsvg.components-spinner {\n\t\twidth: 48px;\n\t\theight: 48px;\n\t}\n}\n.dlx-photo-block__screen-edit {\n\twidth: 100%;\n}\n.aligncenter .dlx-photo-block__screen-edit {\n\tjustify-content: center;\n}\n.alignleft .dlx-photo-block__screen-edit {\n\tjustify-content: flex-start;\n}\n.alignright .dlx-photo-block__screen-edit {\n\tjustify-content: flex-end;\n}\n\n.dlx-photo-block__a11y-popover {\n\tmin-width: 325px;\n\tpadding: 15px;\n\tpadding-top: 0;\n}\n.dlx-photo-block__inspector-tabs {\n\tbutton.components-tab-panel__tabs-item {\n\t\tflex: 1 1 0px;\n\n\t\t&:after {\n\t\t\tbackground: #DDD;\n\t\t\tborder-radius: 0;\n\t\t\tbottom: 0;\n\t\t\tcontent: \"\";\n\t\t\theight: 1.5px;\n\t\t\tleft: 0;\n\t\t\tpointer-events: none;\n\t\t\tposition: absolute;\n\t\t\tright: 0;\n\t\t\ttransition: all .1s linear;\n\t\t}\n\t\t&.active-tab {\n\t\t\t&:after {\n\t\t\t\tbackground: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t\t\t}\n\t\t}\n\t}\n}\n.dlx-photo-block__image-dimensions-row {\n\th3 {\n\t\tmargin: 0;\n\t\tmargin-bottom: 8px;\n\t}\n\tp {\n\t\tmargin-bottom: 0;\n\t}\n}\n.photo-block__inspector-panel {\n\t.components-panel__body-title {\n\t\tsvg {\n\t\t\tfill: none;\n\t\t\tmargin: 0;\n\t\t\tmargin-right: 8px;\n\t\t}\n\n\t\t& > .components-button {\n\t\t\tjustify-content: flex-end;\n\t\t\tflex-direction: row-reverse;\n\t\t}\n\t}\n\t\n}\n.dlx-photo-block__image-dimensions-row {\n\tdisplay: block;\n\th2 {\n\t\twidth: 100%;\n\t\tmargin: 0;\n\t\tmargin-bottom: 8px;\n\t}\n\t.dlx-photo-block__image-dimensions {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: 1fr 1fr;\n\t\tgrid-gap: 15px;\n\t\tmargin-bottom: 15px;\n\n\t\t.components-base-control {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t\t.components-base-control__field {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t}\n}\n.photo-block__alt-text.components-base-control.is-saving {\n\tmargin-bottom: 0;\n\n\tp {\n\t\tmargin-bottom: 0;\n\t}\n}\n.photo-block__text-saving {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-start;\n\tfont-size: 16px;\n\tmargin-bottom: 16px;\n\tsvg {\n\t\tmargin: 0;\n\t\tmargin-right: 12px;\n\t}\n}\n.photo-block__title-text.components-base-control.is-saving {\n\tmargin-bottom: 0;\n\n\tp {\n\t\tmargin-bottom: 0;\n\t}\n}\n.photo-block__text-saving {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-start;\n}",".dlx-photo-block__media-link-popover {\n\t\n\n\t.components-popover__content {\n\t\tpadding: 15px;\n\t\tmin-width: 400px;\n\t}\n\t.components-base-control {\n\t\tmargin-bottom: 0;\n\t}\n\t.components-base-control__field {\n\t\tmargin-bottom: 0;\n\t}\n\t.components-base-control__help {\n\t\tmargin-bottom: 0;\n\t}\n}\n.dlx-photo-block__media-link-container {\n\th2 {\n\t\tmargin-top: 0;\n\t}\n}\n\n.dlx-photo-block__media-link-button-group {\n\tdisplay: grid;\n\tgrid-template-columns: 1fr 1fr;\n\tgrid-gap: 8px;\n\talign-items: center;\n\tmargin-bottom: 15px;\n\t\n\t.components-button.has-icon {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: 1fr auto;\n\t\tgrid-gap: 8px;\n\t\talign-items: center;\n\t\ttext-align: left;\n\t\tpadding: 0 15px;\n\n\t\t.dlx-photo-block__media-link-button-text {\n\t\t\torder: 1;\n\t\t}\n\t\tsvg {\n\t\t\tmargin: 0;\n\t\t\torder: 2;\n\t\t}\n\t}\n}","@keyframes photo-block-pub-spin {\n\t100% {\n\t\ttransform: rotate(360deg);\n\t}\n}\n/* Admin Interface Wrapper */\n#photo-block-pub-content {\n\tpadding-top: 18px;\n}\n/* Admin loading icon */\n.photo-block-pub-load-static-svg {\n\tsvg {\n\t\tanimation: photo-block-pub-spin;\n\t\tanimation-duration: 1.5s;\n\t\tanimation-iteration-count: infinite;\n\t\tanimation-timing-function: linear;\n\t}\n}\n\n/* Url Wrapper Input */\n.photo-block-url-input {\n\tdisplay: inline-block;\n\tmax-width: 400px;\n\twidth: 100%;\n\tflex-wrap: wrap;\n\tposition: relative;\n\t.components-base-control {\n\t\t.components-base-control__label {\n\t\t\tfont-size: 16px;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\t.photo-block-suggestions-wrapper {\n\t\twidth: 100%;\n\t\tposition: relative;\n\t\ttop: 100%;\n\t\tleft: 0;\n\t\tmax-height: 250px;\n\t\toverflow-y: auto;\n\t\t.photo-block-url-input__suggestion {\n\t\t\tposition: relative;\n\t\t\tborder: 1px solid #ddd;\n\t\t\tborder-radius: 0;\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t\tbackground: #FFF;\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: flex-start;\n\t\t\talign-items: center;\n\t\t\ttext-align: left;\n\t\t\tpadding: 5px 20px 5px 40px;\n\t\t\ttransition: all 0.4s ease-in-out;\n\n\t\t\tsvg {\n\t\t\t\tposition: absolute;\n\t\t\t\twidth: 24px;\n\t\t\t\theight: 24px;\n\t\t\t\ttop: calc(50% - 8px);\n\t\t\t\tleft: 10px;\n\t\t\t\tpath {\n\t\t\t\t\tfill: unset;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&:hover {\n\t\t\t\tbackground: #f1f1f1;\n\t\t\t\tborder-color: var( --wp-admin-theme-color );\n\t\t\t}\n\n\t\t\t&.is-selected {\n\t\t\t\tbackground: #f1f1f1;\n\t\t\t\tborder-color: var( --wp-admin-theme-color );\n\t\t\t}\n\n\t\t\t.photo-block-search-item {\n\t\t\t\tdisplay: block;\n\t\t\t\tmargin-right: 8px;\n\t\t\t\twhite-space: pre-wrap;\n\t\t\t\toverflow-wrap: break-word;\n\t\t\t}\n\t\t\t.photo-block-search-item-title {\n\t\t\t\tdisplay: block;\n\t\t\t\tmargin-bottom: 0.2em;\n\t\t\t\tfont-weight: 500;\n\t\t\t\tposition: relative;\n\t\t\t\toverflow: hidden;\n \t\t\t\ttext-overflow: ellipsis;\n\t\t\t}\n\t\t\t.photo-block-search-item-info {\n\t\t\t\tword-break: break-all;\n\t\t\t\tdisplay: block;\n\t\t\t\tcolor: #757575;\n\t\t\t\tfont-size: .9em;\n\t\t\t\tline-height: 1.3;\n\t\t\t}\n\t\t}\n\t}\n}\n.photo-block-pub-url-search-wrapper {\n\tposition: relative;\n\n\t.photo-block-pub-url-input__search-button.components-button {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: calc(50% - 18px);\n\t}\n\t.photo-block-pub-url-input__apply-button.components-button {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: calc(50% - 18px);\n\t}\n}\n.photo-block-pub-url-input__wrapper {\n\t\n\tlabel {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\tfont-weight: 600;\n\t\tmargin-bottom: 5px;\n\t}\n\t.photo-block-pub-url-input__suggestion {\n\t\t\n\t}\n\t.photo-block-pub-url-input__suggestion-item {\n\t\t.components-button {\n\t\t\tmargin-left: 8px;\n\t\t}\n\t}\n\t.photo-block-pub-url-input__input-wrapper {\n\t\tposition: relative;\n\t\tdisplay: grid;\n\t\tgrid-template-columns: 1fr;\n\t\tgrid-gap: 10px;\n\t\twidth: 100%;\n\t\tmargin-bottom: 10px;\n\t\tinput[type=\"text\"] {\n\t\t\tborder: 1px solid #ddd;\n\t\t\tborder-radius: 3px;\n\t\t\tfont-size: 13px;\n\t\t\tpadding: 11px 36px 11px 16px;\n\t\t\twidth: 100%;\n\t\t\tmargin: 0;\n\t\t}\n\t\t.photo-block-pub-url-input__input {\n\t\t\tline-height: 1;\n\t\t}\n\t\t.components-spinner {\n\t\t\tposition: absolute;\n\t\t\tright: 14px;\n\t\t\theight: 24px;\n\t\t\ttop: calc(50% - 12px);\n\t\t\tmargin: 0;\n\t\t}\n\t\t.photo-block-pub-url-input__input ~ .components-button {\n\t\t\tbox-shadow: unset;\n\t\t\tborder: unset;\n\t\t\tbackground: unset;\n\t\t}\n\t}\n}\n\n.photo-block-pub-url-input__input ~ .components-button,\n.photo-block-pub-url-input__suggestion-item .components-button {\n\tposition: relative;\n\n\t.components-tooltip {\n\t\tdisplay: inline-block;\n\t\tbackground: #333;\n\t\tcolor: #FFF;\n\t\tpadding: 8px 12px;\n\t\tborder-radius: 3px;\n\t\tfont-size: 12px;\n\t\tposition: absolute;\n\t\ttop: calc(50% - 8px);\n\t\tright: 10px;\n\t\tmin-width: 150px;\n\t\theight: auto;\n\t\ttransition: opacity .2s ease-in-out;\n\t\tcursor: pointer;\n\t}\n}\n","/* Color Component (forked from @GenerateBlocks) */\n.photo-block-component-color-picker-wrapper,\n.qdlx-admin__tabs--content-inner\n\t.components-base-control.photo-block-component-color-picker-wrapper {\n\ttext-align: left;\n\tmargin-bottom: 16px;\n\tmargin-top: 2px;\n\n\t> .components-base-control__field {\n\t\tposition: relative;\n\t\tdisplay: grid;\n\t\tgrid-template-columns: 1fr 30px;\n\t\trow-gap: 2;\n\t\tmargin: 0 auto;\n\t\tjustify-content: space-between;\n\t\ttext-align: left;\n\t\tfont-weight: 600;\n\t\talign-items: center;\n\n\t\t.components-color-palette__item-wrapper {\n\t\t\tmargin: 0;\n\t\t}\n\t}\n\t.photo-block-color-component-label {\n\t\tline-height: 1.2;\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t}\n}\n.components-popover.photo-block-component-color-picker {\n\t.photo-block-component-color-picker-palette {\n\t\tpadding: 0 16px;\n\n\t\tbutton.components-circular-option-picker__option {\n\t\t\tborder-radius: 50%;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\n\t\t\t.components-popover {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t\t.components-circular-option-picker__swatches {\n\t\t\tdisplay: flex;\n\t\t\tflex-wrap: wrap;\n\t\t\tgap: 12px;\n\t\t}\n\t\t.components-circular-option-picker__option-wrapper {\n\t\t\tdisplay: inline-block;\n\t\t\theight: 28px;\n\t\t\twidth: 28px;\n\t\t\tvertical-align: top;\n\t\t\ttransition: 100ms transform ease;\n\t\t}\n\t}\n\n\t.components-base-control__field,\n\t.components-color-palette {\n\t\tmargin: 0;\n\t}\n\n\t.react-colorful {\n\t\twidth: unset !important; /* Override inline style */\n\t}\n\t.components-color-picker {\n\t\tpadding: 5px;\n\t\twidth: unset !important; /* Override inline style */\n\t}\n\n\t.components-color-picker__inputs-toggle {\n\t\tdisplay: none;\n\t}\n\n\t.components-color-picker__body {\n\t\tpadding-bottom: 0;\n\t}\n\n\t.components-popover__content {\n\t\tpadding: 10px;\n\t\twidth: 300px;\n\t}\n\n\t.components-color-picker__inputs-fields {\n\t\tmargin-right: 0;\n\t}\n\n\t.components-color-clear-color {\n\t\ttext-align: right;\n\t\tpadding: 0 16px;\n\t\tcolor: var(--quotes-dlx-admin--color-dark);\n\t}\n}\n\n.components-circular-option-picker__option.is-pressed {\n\tbox-shadow: inset 0 0 0 4px !important;\n}\n\n.photo-block-component-color-opacity {\n\tdisplay: flex;\n\tpadding: 0 16px;\n\tmargin: 10px 0;\n\n\tsvg {\n\t\twidth: 28px;\n\t\theight: 28px;\n\t}\n\n\t.components-range-control {\n\t\tflex-grow: 1;\n\t\tpadding-left: 5px;\n\t}\n}",".dlx-photo-block__drop-shadow-control__settings__offset {\n\th3 {\n\t\tmargin-top: 0;\n\t\tmargin-bottom: 10px;\n\t}\n}\n.dlx-photo-block__drop-shadow-control__settings__offset__wrapper {\n\tdisplay: grid;\n\tgrid-template-columns: 1fr 1fr;\n\tgrid-gap: 15px;\n\n\t.components-base-control__field {\n\t\tposition: relative;\n\t\tmargin-bottom: 0;\n\t}\n}",".dlx-photo-block__css-gram-image-popover-wrapper {\n\tmin-width: 400px;\n\tpadding: 15px;\n\tborder: 1px solid #ddd;\n}\n.dlx-photo-block__css-gram-button-group {\n\tposition: relative;\n\tpadding-right: 25px;\n\t.components-button-group {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: 50% 50%;\n\t\tgrid-gap: 15px;\n\t\trow-gap: 15px;\n\t}\n}",".dlx-photo-block__css-gram-image-popover-wrapper {\n\tmin-width: 400px;\n\tpadding: 15px;\n\tborder: 1px solid #ddd;\n}\n.dlx-photo-block__css-gram-button-group {\n\tpadding-right: 25px;\n\t.components-button-group {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: 50% 50%;\n\t\tgrid-gap: 15px;\n\t\trow-gap: 15px;\n\t}\n}\n.dlx-photo-block__css-gram-image-popover {\n\tposition: absolute !important;\n}",".dlx-photo-block__image-max-width {\n\tmargin: 0;\n\tmargin-bottom: 16px;\n}","/* Unit Picker Component - Forked from @GenerateBlocks */\n.components-photo-block-units-control-header__units {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\tmargin-bottom: 5px;\n\talign-items: center;\n}\n\n.components-photo-block-control__units {\n\t.components-photo-block-control-buttons__units {\n\t\tbutton.components-button {\n\t\t\tbackground: #fff;\n\t\t\tbox-shadow: none !important;\n\t\t\tcolor: #929da7;\n\t\t\tfont-size: 10px;\n\t\t\tpadding: 0 5px;\n\t\t\tposition: relative;\n\t\t\ttext-align: center;\n\t\t\ttext-shadow: none;\n\t\t\tborder: 0;\n\t\t\tborder-radius: 0 !important;\n\t\t\tline-height: 20px;\n\t\t\tpadding: 0 5px;\n\t\t\theight: auto;\n\n\t\t\t&.is-primary {\n\t\t\t\tbackground: #fff !important;\n\t\t\t\tcolor: #000 !important;\n\t\t\t\tcursor: default;\n\t\t\t\tz-index: 1;\n\t\t\t\tfont-weight: bold;\n\t\t\t}\n\t\t}\n\t}\n}",".components-base-control {\n\t.dlx-photo-block__heading-icon-responsive-wrapper {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: space-between;\n\t}\n\t.dlx-photo-block__heading-icon-responsive {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: flex-start;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\t.dlx-photo-block__heading-icon svg {\n\t\tfont-size: inherit;\n\t\twidth: 14px;\n\t\theight: 14px;\n\t\tmargin-right: 8px;\n\t\tvertical-align: middle;\n\t}\n\t.dlx-photo-block__heading {\n\t\tline-height: 1;\n\t}\n\n\t.dlx-photo-block__heading-icon-responsive-icons {\n\t\t.components-button.has-icon {\n\t\t\tposition: relative;\n\t\t\tmin-width: unset;\n\t\t\tbox-shadow: unset;\n\t\t\t\n\t\t\t&.is-active {\n\t\t\t\t&:after {\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tcontent: \"\";\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\theight: 2px;\n\t\t\t\t\tbackground: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t\t\t\t\tbottom: -2px;\n\t\t\t\t\tleft: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsvg {\n\t\t\twidth: 14px;\n\t\t\theight: 14px;\n\t\t}\n\t}\n\t\n}",".dlx-photo-block__dimensions-responsive-sync-interface {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-start;\n\tmargin-top: 15px;\n\n\t.components-base-control {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\t.dlx-photo-block__dimensions-responsive-sync-interface-unit {\n\t\tdisplay: flex;\n\t\tmax-width: 50%;\n\t\talign-items: center;\n\t\tjustify-content: flex-start;\n\t\tborder: 1px solid rgb(148, 148, 148);\n\t\tpadding: 0 8px;\n\n\t\t.components-base-control__field,\n\t\t.components-base-control {\n\t\t\tpadding: 0;\n\t\t\tmargin: 0;\n\t\t}\n\t}\n\t.dlx-photo-block__dimensions-responsive-sync-interface-range-sync {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\t.components-range-control {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tpadding-left: 8px;\n\t\t\tpadding-right: 8px;\n\t\t\tflex: 1;\n\n\t\t\t.components-base-control__field {\n\t\t\t\tflex: 1;\n\t\t\t}\n\t\t}\n\t\t.components-base-control__field {\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\t\n\t.components-input-control__suffix,\n\t.components-input-control__backdrop {\n\t\tdisplay: none;\n\t}\n}\n.dlx-photo-block__dimensions-responsive-sync-interface,\n.dlx-photo-block__dimensions-responsive-manual-interface-item,\n.dlx-photo-block__border-responsive-sync-interface-input {\n\tinput[type=\"text\"] {\n\t\tmax-width: 28px;\n\t\theight: 40px;\n\t\tborder: none;\n\t\toutline: none;\n\t\tpadding: 0;\n\t\tbox-shadow: none !important;\n\t\tappearance: auto;\n\t\t-moz-appearance: textfield;\n\t\tmargin: 0;\n\t\tbackground: none;\n\t\t&::-webkit-outer-spin-button,\n\t\t&::-webkit-inner-spin-button {\n\t\t\t-webkit-appearance: none;\n\t\t\tmargin: 0;\n\t\t}\n\t}\n\tselect {\n\t\tcolor: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba)) !important;\n\t\t-o-appearance: none;\n\t\t-ms-appearance: none;\n\t\t-webkit-appearance: none;\n\t\t-moz-appearance: none;\n\t\tappearance: none;\n\t\tbackground: transparent;\n\t\tborder-radius: 2px;\n\t\tborder: 1px solid transparent !important;\n\t\tpadding: 4px;\n\t\tmin-height: 40px;\n\t\toutline: none;\n\t\tmargin: 0;\n\t\tpadding: 0 !important;\n\t\tpadding-left: 4px !important;\n\t\tpadding-right: 4px !important;\n\t\tmin-height: auto;\n\t\twidth: 100%;\n\t\tmax-width: 42px !important;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t\tdisplay: block;\n\t\ttext-align: center;\n\t\tbox-shadow: none;\n\t\ttext-transform: lowercase;\n\t\tbox-sizing: border-box;\n\n\t\t&:hover {\n\t\t\tcursor: pointer;\n\t\t\tborder: 1px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba)) !important;\n\t\t}\n\t\t\n\t}\n\t.components-input-control__suffix,\n\t.components-input-control__backdrop {\n\t\tdisplay: none;\n\t}\n}\n.dlx-photo-block__dimensions-responsive-manual-interface-item {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: flex-start;\n\tborder: 1px solid rgb(148, 148, 148);\n\tpadding: 0 8px;\n\n\t.components-base-control {\n\t\tmargin: 0 !important;\n\t\tpadding: 0;\n\t}\n\t.components-base-control__field,\n\t.components-base-control {\n\t\tpadding: 0 !important;\n\t\tmargin: 0 !important;\n\t}\n}\n\n.dlx-photo-block__dimensions-responsive-manual-interface {\n\tdisplay: grid;\n\tgrid-template-columns: 1fr 1fr 1fr;\n\tgrid-template-rows: auto;\n\tgrid-template-areas:\n\t\t\"topLeft topCenter topRight\"\n\t\t\"middleLeft middleCenter middleRight\"\n\t\t\"bottomLeft bottomCenter bottomRight\";\n\tgrid-gap: 10px;\n\trow-gap: 10px;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-top: 15px;\n\n\t&:not(.is-border-radius) {\n\t\t.dlx-photo-block__dimensions-responsive-manual-interface-item-top {\n\t\t\tposition: relative;\n\t\t\tgrid-area: topCenter;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 2px;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: -8px;\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__dimensions-responsive-manual-interface-item-left {\n\t\t\tposition: relative;\n\t\t\tgrid-area: middleLeft;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 2px;\n\t\t\t\theight: 100%;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: -8px;\n\t\t\t\ttop: 0;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__dimensions-responsive-manual-interface-item-right {\n\t\t\tposition: relative;\n\t\t\tgrid-area: middleRight;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 2px;\n\t\t\t\theight: 100%;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -8px;\n\t\t\t\ttop: 0;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__dimensions-responsive-manual-interface-item-bottom {\n\t\t\tposition: relative;\n\t\t\tgrid-area: bottomCenter;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 2px;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: -8px;\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__dimensions-responsive-sync-manual-button {\n\t\t\tdisplay: inline-flex;\n\t\t\tgrid-area: middleCenter;\n\t\t\tjustify-content: center;\n\t\t\tpadding: 8px;\n\t\t\tmax-width: 50px;\n\t\t\tmargin: 0 auto;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t}\n\t&.is-border-radius {\n\t\t.dlx-photo-block__dimensions-responsive-manual-interface-item-top {\n\t\t\tposition: relative;\n\t\t\tgrid-area: topLeft;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: calc( 100% + 8px );\n\t\t\t\theight: 2px;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: -8px;\n\t\t\t\tright: 0;\n\t\t\t}\n\t\t\t&:after {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 2px;\n\t\t\t\theight: calc( 100% + 8px );\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: 0;\n\t\t\t\tleft: -8px;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__dimensions-responsive-manual-interface-item-left {\n\t\t\tposition: relative;\n\t\t\tgrid-area: bottomLeft;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 2px;\n\t\t\t\theight: calc( 100% + 8px );\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: -8px;\n\t\t\t\ttop: 0;\n\t\t\t}\n\t\t\t&:after {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: calc( 100% + 8px );\n\t\t\t\theight: 2px;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: -8px;\n\t\t\t\tright: 0;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__dimensions-responsive-manual-interface-item-right {\n\t\t\tposition: relative;\n\t\t\tgrid-area: topRight;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 2px;\n\t\t\t\theight: calc( 100% + 8px );\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -8px;\n\t\t\t\tbottom: 0;\n\t\t\t}\n\t\t\t&:after {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: calc( 100% + 8px );\n\t\t\t\theight: 2px;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: -8px;\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__dimensions-responsive-manual-interface-item-bottom {\n\t\t\tposition: relative;\n\t\t\tgrid-area: bottomRight;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: calc( 100% + 8px );\n\t\t\t\theight: 2px;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: -8px;\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t\t&:after {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 2px;\n\t\t\t\theight: calc( 100% + 8px );\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -8px;\n\t\t\t\ttop: 0;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__dimensions-responsive-sync-manual-button {\n\t\t\tdisplay: inline-flex;\n\t\t\tgrid-area: middleCenter;\n\t\t\tjustify-content: center;\n\t\t\tpadding: 8px;\n\t\t\tmax-width: 50px;\n\t\t\tmargin: 0 auto;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t}\n\n\t\n}",null,".dlx-photo-block__border-responsive-sync-interface {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-start;\n\tmargin-top: 22px;\n\n\t.components-base-control {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\t.dlx-photo-block__border-responsive-sync-interface-unit {\n\t\tdisplay: flex;\n\t\tmax-width: 50%;\n\t\talign-items: center;\n\t\tjustify-content: flex-start;\n\t\tborder: 1px solid rgb(148, 148, 148);\n\t\tpadding: 0 8px;\n\n\t\t.components-base-control__field,\n\t\t.components-base-control {\n\t\t\tpadding: 0;\n\t\t\tmargin: 0;\n\t\t}\n\t}\n\t.dlx-photo-block__border-responsive-sync-interface-range-sync {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\t.components-range-control {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tpadding-left: 8px;\n\t\t\tpadding-right: 8px;\n\t\t\tflex: 1;\n\n\t\t\t.components-base-control__field {\n\t\t\t\tflex: 1;\n\t\t\t}\n\t\t}\n\t\t.components-base-control__field {\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\t\n\t.components-input-control__suffix,\n\t.components-input-control__backdrop {\n\t\tdisplay: none;\n\t}\n}\n.dlx-photo-block__border-responsive-sync-interface,\n.dlx-photo-block__border-responsive-manual-interface-item {\n\tinput[type=\"number\"] {\n\t\tmax-width: 28px;\n\t\theight: 40px;\n\t\tborder: none;\n\t\toutline: none;\n\t\tpadding: 0;\n\t\tbox-shadow: none !important;\n\t\tappearance: auto;\n\t\t-moz-appearance: textfield;\n\t\tmargin: 0;\n\t\tbackground: none;\n\t\t&::-webkit-outer-spin-button,\n\t\t&::-webkit-inner-spin-button {\n\t\t\t-webkit-appearance: none;\n\t\t\tmargin: 0;\n\t\t}\n\t}\n\tselect {\n\t\tcolor: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba)) !important;\n\t\t-o-appearance: none;\n\t\t-ms-appearance: none;\n\t\t-webkit-appearance: none;\n\t\t-moz-appearance: none;\n\t\tappearance: none;\n\t\tbackground: transparent;\n\t\tborder-radius: 2px;\n\t\tborder: 1px solid transparent !important;\n\t\tpadding: 4px;\n\t\tmin-height: 40px;\n\t\toutline: none;\n\t\tmargin: 0;\n\t\tpadding: 0 !important;\n\t\tpadding-left: 4px !important;\n\t\tpadding-right: 4px !important;\n\t\tmin-height: auto;\n\t\twidth: 100%;\n\t\tmax-width: 42px !important;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t\tdisplay: block;\n\t\ttext-align: center;\n\t\tbox-shadow: none;\n\t\ttext-transform: lowercase;\n\t\tbox-sizing: border-box;\n\n\t\t&:hover {\n\t\t\tcursor: pointer;\n\t\t\tborder: 1px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba)) !important;\n\t\t}\n\t\t\n\t}\n\t.dlx-photo-block__border-responsive-sync-interface-border-style {\n\t\tmax-width: 12px;\n\t\tmin-width: unset;\n\t\tmargin-right: 8px;\n\t\tpadding: 0;\n\t}\n\t.components-input-control__suffix,\n\t.components-input-control__backdrop {\n\t\tdisplay: none;\n\t}\n\n\t.photo-block-component-color-picker > .photo-block-color-picker-area.photo-block-component-color-picker-palette,\n\t.dlx-photo-block__border-responsive-sync-interface-border-style {\n\t\tmargin-right: 2px;\n\t}\n}\n.dlx-photo-block__border-responsive-manual-interface-item {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: flex-start;\n\tborder: 1px solid rgb(148, 148, 148);\n\tpadding: 0 8px;\n\n\t.components-base-control {\n\t\tmargin: 0 !important;\n\t\tpadding: 0;\n\t}\n\t.components-base-control__field,\n\t.components-base-control {\n\t\tpadding: 0 !important;\n\t\tmargin: 0 !important;\n\t}\n}\n\n.dlx-photo-block__border-responsive-manual-interface {\n\tdisplay: grid;\n\tgrid-template-columns: 1fr 1fr 1fr 1fr;\n\tgrid-template-rows: auto;\n\tgrid-template-areas:\n\t\t\"topLeft topCenterLeft topCenterRight topRight\"\n\t\t\"middleLeft middleCenterLeft middleCenterRight middleRight\"\n\t\t\"bottomLeft bottomCenterLeft bottomCenterRight bottomRight\";\n\tgrid-gap: 15px;\n\trow-gap: 15px;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-top: 22px;\n\n\t&:not(.is-border-radius) {\n\t\t.dlx-photo-block__border-responsive-manual-interface-item-top {\n\t\t\tposition: relative;\n\t\t\tgrid-column: topCenterLeft / topCenterRight;\n\t\t\tgrid-row: 1;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 2px;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: -8px;\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__border-responsive-manual-interface-item-left {\n\t\t\tposition: relative;\n\t\t\tgrid-column: middleLeft / middleCenterLeft;\n\t\t\tgrid-row: 2;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 2px;\n\t\t\t\theight: 100%;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: -8px;\n\t\t\t\ttop: 0;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__border-responsive-manual-interface-item-right {\n\t\t\tposition: relative;\n\t\t\tgrid-column: middleCenterRight / middleRight;\n\t\t\tgrid-row: 2;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 2px;\n\t\t\t\theight: 100%;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -8px;\n\t\t\t\ttop: 0;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__border-responsive-manual-interface-item-bottom {\n\t\t\tposition: relative;\n\t\t\tgrid-column: bottomCenterLeft / bottomCenterRight;\n\t\t\tgrid-row: 3;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 2px;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: -8px;\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__border-responsive-sync-manual-button {\n\t\t\tdisplay: inline-flex;\n\t\t\tgrid-column: topRight;\n\t\t\tgrid-row: 1;\n\t\t\tjustify-content: center;\n\t\t\tpadding: 8px;\n\t\t\tmax-width: 50px;\n\t\t\tmargin: 0 auto;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t}\n\t&.is-border-radius {\n\t\t.dlx-photo-block__border-responsive-manual-interface-item-top {\n\t\t\tposition: relative;\n\t\t\tgrid-area: topLeft;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: calc( 100% + 8px );\n\t\t\t\theight: 2px;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: -8px;\n\t\t\t\tright: 0;\n\t\t\t}\n\t\t\t&:after {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 2px;\n\t\t\t\theight: calc( 100% + 8px );\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: 0;\n\t\t\t\tleft: -8px;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__border-responsive-manual-interface-item-left {\n\t\t\tposition: relative;\n\t\t\tgrid-area: bottomLeft;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 2px;\n\t\t\t\theight: calc( 100% + 8px );\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: -8px;\n\t\t\t\ttop: 0;\n\t\t\t}\n\t\t\t&:after {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: calc( 100% + 8px );\n\t\t\t\theight: 2px;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: -8px;\n\t\t\t\tright: 0;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__border-responsive-manual-interface-item-right {\n\t\t\tposition: relative;\n\t\t\tgrid-area: topRight;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 2px;\n\t\t\t\theight: calc( 100% + 8px );\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -8px;\n\t\t\t\tbottom: 0;\n\t\t\t}\n\t\t\t&:after {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: calc( 100% + 8px );\n\t\t\t\theight: 2px;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: -8px;\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__border-responsive-manual-interface-item-bottom {\n\t\t\tposition: relative;\n\t\t\tgrid-area: bottomRight;\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: calc( 100% + 8px );\n\t\t\t\theight: 2px;\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: -8px;\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t\t&:after {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 2px;\n\t\t\t\theight: calc( 100% + 8px );\n\t\t\t\tbackground: #333;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -8px;\n\t\t\t\ttop: 0;\n\t\t\t}\n\t\t}\n\t\t.dlx-photo-block__border-responsive-sync-manual-button {\n\t\t\tdisplay: inline-flex;\n\t\t\tgrid-area: middleCenter;\n\t\t\tjustify-content: center;\n\t\t\tpadding: 8px;\n\t\t\tmax-width: 50px;\n\t\t\tmargin: 0 auto;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t}\n}\n\n.dlx-photo-block__border-responsive {\n\t.photo-block-component-color-picker-wrapper > .components-base-control__field {\n\t\tdisplay: inline-block;\n\t}\n\t.photo-block-component-color-picker-palette {\n\t\tmargin-right: 8px;\n\t}\n}\n\n/**\n * Popover border style.\n */\n.dlx-photo-block__border-responsive-sync-interface-border-style-popover {\n\tpadding: 15px 20px;\n\tmin-width: 240px;\n\t/* Give h3 same style as basecontrol styles */\n\th3 {\n\t\tfont-size: 13px;\n\t\tfont-weight: 600;\n\t\tmargin: 0 0 8px;\n\t\ttext-transform: uppercase;\n\t}\n\t.dlx-photo-block__border-responsive-sync-interface-border-style-popover-buttons {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: 1fr 1fr;\n\t\tgrid-gap: 8px;\n\n\t\tbutton {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\ttext-align: left;\n\t\t}\n\t}\n}","/* Popover container */\n.photo-block-global-styles-popover {\n\tposition: relative;\n\tpadding: 25px;\n\ttop: 24px !important;\n\t\n}\n\n.photo-block-presets-panel {\n\t.components-panel__row {\n\t\twidth: 100%;\n\t}\n}\n.photo-block-presets {\n\tdisplay: block;\n\twidth: 100%;\n\tmargin-bottom: 15px;\n\n\t.components-button-group {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: 50% 50%;\n\t\tgrid-gap: 15px;\n\t\trow-gap: 15px;\n\t\tpadding-right: 15px;\n\n\t\tbutton.photo-block-global-styles-button {\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\ttext-align: center;\n\t\t\twhite-space: normal;\n\t\t\tmin-height: 36px;\n\t\t\theight: auto;\n\t\t}\n\t}\n}\n\n/* Preset Modal Button */\n.photo-block-global-styles-modal-button-group {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-start;\n}\n.photo-block-global-styles-modal-apply-button {\n\tmargin-right: 8px;\n}\n\n/* Preset Modal */\n.photo-block-global-styles-modal-radio-control {\n\t.components-flex {\n\t\tflex-direction: row;\n\t\tjustify-content: flex-start;\n\t\t.components-radio-control__option:first-child {\n\t\t\tmargin-right: 8px;\n\t\t}\n\t}\n\tmargin-bottom: 15px;\n}\n.photo-block-global-styles-modal-new-preset {\n\tmargin-bottom: 15px;\n}\n.photo-block-custom-global-styles-actions {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\n\tbutton.components-button,\n\tbutton.components-button.has-icon {\n\t\twidth: 100%;\n\t\ttext-align: center;\n\t\tjustify-content: center;\n\n\t\t&:first-of-type {\n\t\t\tmargin-bottom: 15px;\n\t\t}\n\t}\n}\n\n/* Preset buttons */\n.photo-block-presets button.components-button.photo-block-global-styles-button {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tbackground: #FEFEFE;\n\tcolor: #333;\n\tborder: 1px solid #333;\n\tbox-shadow: inset 0 0 0 1px #ccc;\n\ttransition: all 200ms ease-in-out;\n\t&:hover,\n\t&:hover:not(:disabled) {\n\t\tbackground: #333;\n\t\tcolor: #FFF;\n\t}\n\t&:active,\n\t&:active:not(:disabled) {\n\t\tbackground: #333;\n\t\tcolor: #FFF;\n\t}\n}\n.photo-block-global-styles-edit-container--edit {\n\tbutton.components-button.photo-block-global-styles-button {\n\t\tbackground: #FEFEFE;\n\t\tcolor: #333;\n\t\tborder: 0;\n\n\t\t&:hover,\n\t\t&:hover:not(:disabled) {\n\t\t\tbackground: #FEFEFE;\n\t\t\tcolor: #333;\n\t\t}\n\t\t&:active,\n\t\t&:active:not(:disabled) {\n\t\t\tbackground: #FEFEFE;\n\t\t\tcolor: #333;\n\t\t}\n\t}\n\t\n}\n.photo-block-presets .photo-block-global-styles-edit-buttons {\n\tdisplay: grid;\n\tgrid-template-columns: 1fr 1fr;\n\n\tbutton.components-button {\n\t\tborder: 1px solid #333 !important;\n\t\tbox-shadow: inset 0 0 0 1px #333;\n\t\tmax-height: 28px;\n\t\t&.photo-block-global-styles-edit-button {\n\t\t\tbackground: var( --wp-admin-theme-color, var( --quotes-dlx-admin--color-green, #007cba ) );\n\t\t\tcolor: #FFF;\n\t\t\tborder: 0;\n\t\t\tbox-shadow: unset;\n\t\t}\n\t\t&.photo-block-global-styles-edit-button:hover {\n\t\t\tbackground: var( --wp-admin-theme-color-darker-20, var( --quotes-dlx-admin--color-green-dark, #005a87 ) );\n\t\t}\n\t\t&.photo-block-global-styles-delete-button {\n\t\t\tbackground: var( --quotes-dlx-admin--color-red--required );\n\t\t\tcolor: #FFF;\n\t\t\tborder: 0;\n\t\t\tbox-shadow: unset;\n\t\t}\n\t\t&.photo-block-global-styles-delete-button:hover {\n\t\t\tbackground: var( --quotes-dlx-admin--color-red-alt );\n\t\t\tborder: 0;\n\t\t\tbox-shadow: unset;\n\t\t}\n\t}\t\n}\n.photo-block-global-styles-modal-override-preset {\n\tmargin-bottom: 15px;\n\n\t.components-radio-control__option {\n\t\tmargin-bottom: 6px;\n\t}\n}\n.has-error {\n\tinput.components-text-control__input {\n\t\tborder-color: #bc2b2c;\n\t\tbackground-color: #f5e5e4;\n\t}\n}\n\n/* Is required notice */\n.is-required {\n\tposition: relative;\n\n\tlabel {\n\t\tposition: relative;\n\t\tdisplay: inline-block !important;\n\t}\n\tinput:not(.components-radio-control__input) {\n\t\tdisplay: block !important;\n\t}\n\n\tlabel::after {\n\t\tposition: absolute;\n\t\tdisplay: inline-block;\n\t\tvertical-align: middle;\n\t\tcontent: '*';\n\t\ttop: 0;\n\t\tright: -12px;\n\t\tcolor: #bc2b2c;\n\t\tfont-size: 1.4em;\n\t\tline-height: 1.3;\n\t}\n\n\t.components-radio-control__option label::after {\n\t\tdisplay: none;\n\t}\n\n\t.not-is-required::after {\n\t\tdisplay: none;\n\t}\n}\n.photo-block-presets .photo-block-global-styles-edit-buttons {\n\tdisplay: grid;\n\tgrid-template-columns: 1fr 1fr;\n\n\tbutton.components-button {\n\t\tborder: 1px solid #333 !important;\n\t\tbox-shadow: inset 0 0 0 1px #333;\n\t\tmax-height: 28px;\n\t\tpadding: 12px 10px;\n\t\tbox-sizing: border-box;\n\t\t&.photo-block-global-styles-edit-button {\n\t\t\tbackground: var( --wp-admin-theme-color, #006400 );\n\t\t\tcolor: #FFF;\n\t\t\tborder: 0;\n\t\t\tbox-shadow: unset;\n\t\t}\n\t\t&.photo-block-global-styles-edit-button:hover {\n\t\t\tbackground: var( --wp-admin-theme-color-darker-20, #005200 );\n\t\t}\n\t\t&.photo-block-global-styles-delete-button {\n\t\t\tbackground: #b53b07;\n\t\t\tcolor: #FFF;\n\t\t\tborder: 0;\n\t\t\tbox-shadow: unset;\n\t\t}\n\t\t&.photo-block-global-styles-delete-button:hover {\n\t\t\tbackground: #822700;\n\t\t\tborder: 0;\n\t\t\tbox-shadow: unset;\n\t\t}\n\n\t\tsvg {\n\t\t\twidth: 20px;\n\t\t\theight: 20px;\n\t\t}\n\t}\t\n}\n.photo-block-global-styles-modal-override-preset {\n\tmargin-bottom: 15px;\n\n\t.components-radio-control__option {\n\t\tmargin-bottom: 6px;\n\t}\n}\n.photo-block-global-styles-actions {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tbox-sizing: border-box;\n\n\t.photo-block-global-styles-save-button {\n\t\twidth: 100%;\n\t\tjustify-content: center;\n\t}\n\t.photo-block-global-styles-edit-button {\n\t\twidth: 100%;\n\t\tmargin-top: 16px;\n\t\tjustify-content: center;\n\t}\n\t.photo-block-global-styles-refresh-button {\n\t\twidth: 100%;\n\t\tmargin-top: 12px;\n\t\tjustify-content: center;\n\t\tbackground: #333;\n\t\tcolor: #FFF;\n\t\t&:hover {\n\t\t\tbackground: #444;\n\t\t\tcolor: #FFF;\n\t\t}\n\t}\n\t.photo-block-global-styles-exit-button {\n\t\twidth: 100%;\n\t\tmargin-top: 12px;\n\t\tjustify-content: center;\n\t}\n}\n.photo-block-global-styles {\n\twidth: 100%;\n}\n.photo-block-global-styles-edit-item {\n\tdisplay: grid;\n\tgrid-template-columns: 1fr 64px;\n\tbox-sizing: border-box;\n\tbackground: #f9f9f9;\n\tborder: 1px solid #ccc;\n\tborder-radius: 4px;\n\tmargin-bottom: 8px;\n\tpadding: 12px 16px;\n}\n.photo-block-global-styles-edit-item-actions .components-button-group {\n\tdisplay: grid;\n\tgrid-template-columns: 1fr 1fr;\n}\n.photo-block-global-styles-modal-radio-control {\n\tpadding: 8px 0 12px 0;\n}\n.photo-block-global-styles-modal .components-base-control__field > label {\n\tfont-weight: 600;\n}",".dlx-photo-block__custom-attributes-control__attribute {\n\tdisplay: grid;\n\tgrid-template-columns: 1fr 1fr 32px;\n\tgrid-gap: 4px;\n\talign-items: end;\n\tmargin-top: 10px;\n\tmargin-bottom: 10px;\n\n\t&:last-child {\n\t\tmargin-bottom: 0;\n\t}\n\n\t.components-base-control {\n\t\tmargin-bottom: 0;\n\t}\n\t.components-base-control__field {\n\t\tmargin-bottom: 0;\n\t}\n\t.components-button {\n\t\tmax-height: 30px;\n\t}\n}",".photo-block-global-styles-selected {\n\tbackground: #f5f5f5;\n\tborder: 1px solid #e0e0e0;\n\tborder-radius: 4px;\n\tdisplay: grid;\n\tgrid-template-columns: 1fr 36px;\n\talign-items: center;\n\tbox-sizing: border-box;\n}\n.photo-block-global-styles-selected-title {\n\tpadding: 16px 8px;\n}\n.photo-block-global-styles-picker-button-group {\n\tdisplay: grid;\n\tbox-sizing: border-box;\n\tgrid-template-columns: 1fr;\n\tcolumn-gap: 12px;\n\trow-gap: 12px;\n\n\tbutton {\n\t\tjustify-content: center;\n\t}\n}","#photo-block-preview {\n\t.dlx-photo-block__screen-edit-image-wrapper {\n\t\tdisplay: block;\n\t}\n}",".dlx-photo-block__alignment-dropdown-group {\n\t.is-active {\n\t\t.dashicons:before {\n\t\t\tbackground: #333;\n\t\t\tcolor: #FFF;\n\t\t\tpadding: 1px 3px;\n\t\t}\n\t}\n}",".dlx-photo-block__aspect-ratio-group {\n\tsvg {\n\t\tfill: none;\n\t}\n}\n.dlx-photo-block__lock-crop-button.is-pressed svg {\n\tcolor: #FFFFFF;\n}\n\n.dlx-photo-block__zoom-popover .components-popover__content {\n\tmin-width: 250px;\n\tpadding: 15px;\n}\n\n.dlx-photo-block__save-button.is-saving {\n\tsvg {\n\t\tanimation: photo-block-pub-spin;\n\t\tanimation-duration: 1.5s;\n\t\tanimation-iteration-count: infinite;\n\t\tanimation-timing-function: linear;\n\t}\n}\n.dlx-photo-block__toolbar-back-button {\n\tbox-shadow: none !important; /* override core style */\n\tborder-right: 1px solid #333;\n\theight: unset;\n\tdisplay: flex;\n\talign-items: center;\n\theight: 100%;\n}\n.dlx-photo-block__aspect-ratio-dropdown button {\n\theight: 100%;\n}\n.dlx-photo-block__aspect-ratio-dropdown button:after {\n\tcontent: attr(aria-label);\n\tdisplay: block;\n\talign-items: center;\n\tmargin-left: 8px;\n}\n.dlx-photo-block__aspect-ratio-dropdown button {\n\ttext-transform: capitalize;\n}","@use 'sass:math';\n\n// Query to kick us into \"mobile\" mode with larger drag handles/bars.\n// See: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer\n$mobile-media-query: '(pointer: coarse)' !default;\n\n// Moved to resolve SASS 1.77.7 deprecation warnings\n$antWidth: 10px;\n$doubleAntWidth: 10px * 2;\n\n@keyframes marching-ants {\n 0% {\n background-position: 0 0, 0 100%, 0 0, 100% 0;\n }\n 100% {\n background-position: $doubleAntWidth 0, (-$doubleAntWidth) 100%, 0 (-$doubleAntWidth), 100% $doubleAntWidth;\n }\n}\n\n:root {\n --rc-drag-handle-size: 12px;\n --rc-drag-handle-mobile-size: 24px;\n --rc-drag-handle-bg-colour: rgba(0, 0, 0, 0.2);\n --rc-drag-bar-size: 6px; // The invisible grip size of the crop selection edges\n --rc-border-color: rgba(255, 255, 255, 0.7);\n --rc-focus-color: #0088ff;\n}\n\n.ReactCrop {\n $root: &;\n\n position: relative;\n display: inline-block;\n cursor: crosshair;\n max-width: 100%;\n\n & *,\n & *::before,\n & *::after {\n box-sizing: border-box;\n }\n\n &--disabled,\n &--locked {\n cursor: inherit;\n }\n\n &__child-wrapper {\n overflow: hidden;\n max-height: inherit;\n\n & > img,\n & > video {\n display: block;\n max-width: 100%;\n max-height: inherit;\n }\n }\n\n &:not(#{$root}--disabled) {\n #{$root}__child-wrapper {\n & > img,\n & > video {\n touch-action: none;\n }\n }\n #{$root}__crop-selection {\n touch-action: none;\n }\n }\n\n &__crop-mask {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n pointer-events: none;\n }\n\n &__crop-selection {\n position: absolute;\n top: 0;\n left: 0;\n transform: translate3d(0, 0, 0);\n cursor: move;\n\n .ReactCrop--disabled & {\n cursor: inherit;\n }\n\n .ReactCrop--circular-crop & {\n border-radius: 50%;\n\n &::after {\n pointer-events: none;\n content: '';\n position: absolute;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n border: 1px solid var(--rc-border-color);\n opacity: 0.3;\n }\n }\n\n .ReactCrop--no-animate & {\n // border: 1px dashed white;\n outline: 1px dashed white;\n }\n &:not(.ReactCrop--no-animate &) {\n animation: marching-ants 1s;\n background-image: linear-gradient(to right, #fff 50%, #444 50%), linear-gradient(to right, #fff 50%, #444 50%),\n linear-gradient(to bottom, #fff 50%, #444 50%), linear-gradient(to bottom, #fff 50%, #444 50%);\n background-size: $antWidth 1px, $antWidth 1px, 1px $antWidth, 1px $antWidth;\n background-position: 0 0, 0 100%, 0 0, 100% 0;\n background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;\n color: #fff;\n animation-play-state: running;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n }\n\n &:focus {\n outline: 2px solid var(--rc-focus-color);\n outline-offset: -1px;\n }\n }\n &--invisible-crop &__crop-mask,\n &--invisible-crop &__crop-selection {\n display: none;\n }\n\n &__rule-of-thirds-vt::before,\n &__rule-of-thirds-vt::after,\n &__rule-of-thirds-hz::before,\n &__rule-of-thirds-hz::after {\n content: '';\n display: block;\n position: absolute;\n background-color: rgba(255, 255, 255, 0.4);\n }\n\n &__rule-of-thirds-vt {\n &::before,\n &::after {\n width: 1px;\n height: 100%;\n }\n\n &::before {\n left: 33.3333%;\n left: calc(100% / 3);\n }\n\n &::after {\n left: 66.6666%;\n left: calc(100% / 3 * 2);\n }\n }\n\n &__rule-of-thirds-hz {\n &::before,\n &::after {\n width: 100%;\n height: 1px;\n }\n\n &::before {\n top: 33.3333%;\n top: calc(100% / 3);\n }\n\n &::after {\n top: 66.6666%;\n top: calc(100% / 3 * 2);\n }\n }\n\n &__drag-handle {\n position: absolute;\n width: var(--rc-drag-handle-size);\n height: var(--rc-drag-handle-size);\n background-color: var(--rc-drag-handle-bg-colour);\n border: 1px solid var(--rc-border-color);\n\n &:focus {\n background: var(--rc-focus-color);\n }\n }\n\n .ord-nw {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n }\n .ord-n {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n }\n .ord-ne {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n }\n .ord-e {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n }\n .ord-se {\n bottom: 0;\n right: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n }\n .ord-s {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n }\n .ord-sw {\n bottom: 0;\n left: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n }\n .ord-w {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n }\n\n // Use the same specificity as the ords above but just\n // come after.\n &__disabled &__drag-handle {\n cursor: inherit;\n }\n\n &__drag-bar {\n position: absolute;\n\n &.ord-n {\n top: 0;\n left: 0;\n width: 100%;\n height: var(--rc-drag-bar-size);\n transform: translateY(-50%);\n }\n &.ord-e {\n right: 0;\n top: 0;\n width: var(--rc-drag-bar-size);\n height: 100%;\n transform: translateX(50%);\n }\n &.ord-s {\n bottom: 0;\n left: 0;\n width: 100%;\n height: var(--rc-drag-bar-size);\n transform: translateY(50%);\n }\n &.ord-w {\n top: 0;\n left: 0;\n width: var(--rc-drag-bar-size);\n height: 100%;\n transform: translateX(-50%);\n }\n }\n\n &--new-crop &__drag-bar,\n &--new-crop &__drag-handle,\n &--fixed-aspect &__drag-bar {\n display: none;\n }\n\n &--fixed-aspect &__drag-handle.ord-n,\n &--fixed-aspect &__drag-handle.ord-e,\n &--fixed-aspect &__drag-handle.ord-s,\n &--fixed-aspect &__drag-handle.ord-w {\n display: none;\n }\n\n @media #{$mobile-media-query} {\n .ord-n,\n .ord-e,\n .ord-s,\n .ord-w {\n display: none;\n }\n\n &__drag-handle {\n width: var(--rc-drag-handle-mobile-size);\n height: var(--rc-drag-handle-mobile-size);\n }\n }\n}\n",".dlx-photo-block__component-aspect-ratio {\n\tdisplay: flex;\n\theight: 100%;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tpadding: 10px 8px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\n\t.components-base-control__field {\n\t\tmargin: 0;\n\t}\n\t.components-text-control__input {\n\t\tdisplay: inline-block;\n\t\tmax-width: 72px;\n\t}\n\t&.dlx-photo-block__component-aspect-ratio--active {\n\t\t.components-text-control__input {\n\t\t\tmax-width: 48px;\n\t\t}\n\t}\n\tlabel {\n\t\tposition: absolute;\n\t\tleft: -9999px;\n\t\tclip: rect( 0 0 0 0 );\n\t}\n\n\tbutton.dlx-photo-block__component-aspect-ratio-switch {\n\t\tmin-width: unset;\n\t\theight: 30px;\n\t\tmargin-left: 4px;\n\t\tpadding-left: 15px;\n\t\tpadding-right: 15px;\n\t}\n\t.dlx-photo-block__component-aspect-ratio-splitter {\n\t\tbutton {\n\t\t\tmin-width: unset;\n\t\t\theight: 30px;\n\t\t\tmargin-left: 4px;\n\t\t\tmargin-right: 4px;\n\t\t}\n\t}\n\tbutton.dlx-photo-block__component-aspect-ratio-apply.components-button {\n\t\tmargin-left: 8px;\n\t\tmax-height: 30px;\n\t}\n}",".photo-block__caption-position-popover {\n\tsvg {\n\t\tfill: none;\n\t}\n}\n.photo-block__remove-caption-modal {\n\tbutton {\n\t\tmargin-right: 8px;\n\t\t&:last-child {\n\t\t\tmargin-right: 0;\n\t\t}\n\t}\n}\n.dlx-photo-block__caption-align-toolbar-buttons {\n\t.is-pressed {\n\t\tsvg {\n\t\t\tcolor: #FFFFFF;\n\t\t}\n\t}\n}\n.dlx-photo-block__overlay-background-gradient-randomize {\n\tmargin-bottom: 10px;\n\twidth: 100%;\n\tjustify-content: center;\n}","/* Typography Control */\n.photo-block-typography-picker {\n\tpadding: 0;\n\n\t> .components-base-control__field {\n\t\toverflow: hidden;\n\t}\n\n\t.components-base-control {\n\t\tpadding-bottom: 0 !important; // override core styles.\n\t\tmargin-bottom: 0 !important; // override core styles.\n\t}\n\t.components-base-control__field {\n\t\tpadding-bottom: 0;\n\t\tmargin-bottom: 0;\n\t}\n\n\t.photo-block-typography-picker__row {\n\t\tmargin-bottom: 10px;\n\t}\n\n\t.photo-block-typography-picker__row__col-2 { /* there's a hidden div that has zero space */\n\t\tdisplay: grid;\n\t\tgrid-template-columns: 1fr 1fr;\n\t\tgrid-gap: 10px;\n\t\talign-items: end;\n\n\t\t.photo-block-typography-picker__row_item.photo-block-units {\n\t\t\tdisplay: grid;\n\t\t\tgrid-template-columns: 75px 0 36px;\n\t\t\tcolumn-gap: 0;\n\t\t\talign-items: end;\n\n\t\t\t.components-button {\n\t\t\t\tfont-size: 13px;\n\t\t\t\tline-height: normal;\n\t\t\t\tpadding: 6px 8px;\n\t\t\t\tmax-height: 30px;\n\t\t\t}\n\t\t}\n\t\t\n\t}\n}\n\n/* Popover unit picker for typography */\n.photo-block-component-font-unit-picker {\n\t.components-popover__content {\n\t\tmin-width: 48px;\n\t\tbackground: #FFF;\n\t\toutline: unset;\n\t\tborder: 1px solid #333;\n\n\t\t.components-button {\n\t\t\twidth: 100%;\n\t\t\tfont-size: 13px;\n\t\t\tpadding: 6px 8px;\n\t\t\tmargin: 0;\n\t\t\tbox-shadow: unset;\n\t\t\tjustify-content: center;\n\t\t\tborder-bottom: 1px solid #dadada;\n\t\t\toutline: unset;\n\n\t\t\t&:last-child,\n\t\t\t&.is-primary {\n\t\t\t\tborder-bottom: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Typography row */\n.photo-block-typography-panel-row {\n\tdisplay: block;\n}\n.photo-block-typography-picker-wrapper > div {\n\t\n\n\t.photo-block-typography-component-label {\n\t\tfont-size: 13px;\n\t}\n\n\t.photo-block-typography-component-settings {\n\t\tdisplay: flex;\n\t\tjustify-content: flex-end;\n\t}\n\n\t.components-button:not(.dlx-photo-block__heading-icon-responsive-icon) {\n\t\tfont-size: 13px;\n\t\tpadding: 6px 8px;\n\t\tmargin: 0;\n\t\tmargin-top: 16px;\n\t\toutline: unset;\n\t}\n\n\t.dashicon {\n\t\tdisplay: flex;\n\t\twidth: 25px;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\n\t\t&:before {\n\t\t\tfont-size: 1.4rem;\n\t\t}\n\t}\n}\n.photo-block-component-typography-popup {\n\tmin-width: 250px;\n\tmax-width: 250px;\n\n\t.components-popover__content {\n\t\twidth: unset;\n\t}\n}",".photo-block-background-gradient,\n.photo-block-background-gradient-sync,\n.photo-block-background-gradient-generator{\n\tdisplay: block;\n}\n.photo-block-component-gradient-picker-wrapper > div,\n.photo-block-component-gradient-sync-wrapper > div,\n.photo-block-component-gradient-generator-wrapper > div{\n\tdisplay: grid;\n\tgrid-template-columns: 1fr 30px;\n\talign-items: center;\n\n\th3 {\n\t\tmargin-bottom: 0;\n\t}\n}\n.photo-block-component-gradient-picker {\n\tdisplay: inline-block;\n\theight: 28px;\n\twidth: 28px;\n\tvertical-align: top;\n\ttransition: 100ms transform ease;\n\tborder-radius: 50%;\n\tbox-shadow: inset 0 0 0 1px !important;\n\n\t&:hover {\n\t\ttransform: scale(1.1);\n\t}\n}\n.photo-block-component-gradient-picker-popover {\n\t.components-popover__content {\n\t\tmin-width: 300px;\n\t\tpadding: 10px;\n\t}\n}",".dlx-photo-block__image-max-width {\n\tmargin: 0;\n\tmargin-bottom: 16px;\n}","/* Background Image Uploader/Selector */\n.photo-block-background-selector-upload-row {\n\tdisplay: grid;\n\tgrid-template-columns: 1fr 30px;\n\talign-items: end;\n\tcolumn-gap: 15px;\n\n\t.photo-block-background-selector-upload-button button {\n\t\tmax-height: 30px;\n\t\tmax-width: 30px;\n\t}\n\n\t.components-base-control__field,\n\t.components-base-control {\n\t\tmargin-bottom: 0 !important; // override core styles.\n\t}\n}\n.photo-block-component-background-settings-popup {\n\t.components-popover__content {\n\t\twidth: 250px;\n\t\tpadding: 10px;\n\t}\n}\n.photo-block-background-selector__row_item {\n\tmargin-bottom: 20px;\n\n\t&.photo-block-background-selector__row_item-2 {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: 1fr 30px;\n\t\talign-items: center;\n\t\tcolumn-gap: 15px;\n\n\t\th3 {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\n\t\tbutton { \n\t\t\tmax-height: 30px;\n\t\t\tmax-width: 30px;\n\t\t}\n\t}\n}\n.photo-block-background-selector-image-button-error {\n\tcolor: #bc2b2c !important; // override core styles.\n\tbackground: #f5e5e4 !important; // override core styles.\n\tborder-color: #bc2b2c !important; // override core styles.\n\tbox-shadow: inset 0 0 0 1px #bc2b2c !important; // override core styles.\n}"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/build/index.js b/build/index.js index 11ff562..e310358 100644 --- a/build/index.js +++ b/build/index.js @@ -1,50593 +1,3 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ "./src/blocks/photo-block/block-styles.js": -/*!************************************************!*\ - !*** ./src/blocks/photo-block/block-styles.js ***! - \************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/TypographyHelper */ "./src/utils/TypographyHelper.js"); -/* harmony import */ var hex_to_rgba__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! hex-to-rgba */ "./node_modules/hex-to-rgba/build/index.js"); -/* harmony import */ var hex_to_rgba__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(hex_to_rgba__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var rgb2hex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rgb2hex */ "./node_modules/rgb2hex/index.js"); -/* harmony import */ var rgb2hex__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(rgb2hex__WEBPACK_IMPORTED_MODULE_2__); - - - - -/** - * Return a color based on passed alpha value. - * - * @param {string} colorValue hex, rgb, rgba, or CSS var. - * @param {number} opacityValue The opacity (from 0 - 1). - * @return {string} The color in hex, rgba, or CSS var format. - */ -var getColor = function getColor(colorValue) { - var opacityValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; - // Test for CSS var values in color value. - if (colorValue.indexOf('var(') === 0) { - return colorValue; - } - - // Test for RGBA at the beginning, and return value. - if (colorValue.indexOf('rgba') === 0) { - // Calculate hex value from rgba. - var hex = rgb2hex__WEBPACK_IMPORTED_MODULE_2___default()(colorValue).hex; - return hex_to_rgba__WEBPACK_IMPORTED_MODULE_1___default()(hex, opacityValue); - } - - // Test for RGB at the beginning, and return hex if found. - if (colorValue.indexOf('rgb') === 0) { - return hex_to_rgba__WEBPACK_IMPORTED_MODULE_1___default()(rgb2hex__WEBPACK_IMPORTED_MODULE_2___default()(colorValue).hex, opacityValue); - } - if (opacityValue < 1) { - return hex_to_rgba__WEBPACK_IMPORTED_MODULE_1___default()(colorValue, opacityValue); - } - return colorValue; -}; -var getStyles = function getStyles(attributes, deviceType, uniqueId) { - var useClass = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; - // If attributes are empty, return empty string. - if (attributes.length === 0) { - return ''; - } - var containerWidth = attributes.containerWidth, - containerHeight = attributes.containerHeight, - containerMinWidth = attributes.containerMinWidth, - containerMinHeight = attributes.containerMinHeight, - containerMaxWidth = attributes.containerMaxWidth, - containerMaxHeight = attributes.containerMaxHeight, - captionPosition = attributes.captionPosition, - photoPaddingSize = attributes.photoPaddingSize, - photoMarginSize = attributes.photoMarginSize, - photoBorderRadius = attributes.photoBorderRadius, - photoDropShadow = attributes.photoDropShadow, - photoObjectPosition = attributes.photoObjectPosition, - photoOpacity = attributes.photoOpacity, - photoBackgroundColor = attributes.photoBackgroundColor, - photoBackgroundColorOpacity = attributes.photoBackgroundColorOpacity, - photoObjectPositionCustom = attributes.photoObjectPositionCustom, - photoBorder = attributes.photoBorder, - photoBlur = attributes.photoBlur, - photoObjectFit = attributes.photoObjectFit, - captionCustomTypography = attributes.captionCustomTypography; - var styles = ''; - if ('overlay' === captionPosition) { - styles += "\n\t\t\t".concat(useClass ? '.' : '#').concat(uniqueId, " .dlx-photo-block__image-wrapper {\n\t\t\t\t--photo-block-photo-background-color: ").concat(photoBackgroundColor, ";\n\t\t\t\t--photo-block-photo-background-Color-opacity: ").concat(photoBackgroundColorOpacity, ";\n\t\t\t\t--photo-block-image-width: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerWidth, 'width'), "\n\t\t\t\t--photo-block-image-height: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerHeight, 'height'), "\n\t\t\t\t--photo-block-image-min-width: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerMinWidth, 'min-width'), "\n\t\t\t\t--photo-block-image-min-height: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerMinHeight, 'min-height'), "\n\t\t\t\t--photo-block-image-max-width: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerMaxWidth, 'max-width'), "\n\t\t\t\t--photo-block-image-max-height: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerMaxHeight, 'max-height'), "\n\t\t\t\t--photo-block-image-padding: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(photoPaddingSize, deviceType), ";\n\t\t\t\t--photo-block-image-margin: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(photoMarginSize, deviceType), ";\n\t\t\t\t").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildBorderCSS)(photoBorder, deviceType, '--photo-block-image'), ";\n\t\t\t\t--photo-block-photo-border-radius: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(photoBorderRadius, deviceType), ";\n\t\t\t}\n\t\t\t").concat(useClass ? '.' : '#').concat(uniqueId, " .dlx-photo-block__image-wrapper img {\n\t\t\t\t--photo-block-image-opacity: ").concat(photoOpacity, ";\n\t\t\t\t--photo-block-image-object-fit: ").concat(photoObjectFit, ";\n\t\t\t\t--photo-block-blur: ").concat(photoBlur, "px;\n\t\t\t\t--photo-block-image-width: ").concat('none' !== photoObjectFit ? '100%' : 'unset', ";\n\t\t\t\t--photo-block-image-height: ").concat('none' !== photoObjectFit ? '100%' : 'unset', ";\n\t\t\t\t--photo-block-image-object-position: ").concat('custom' === photoObjectPosition ? photoObjectPositionCustom : photoObjectPosition, ";\n\t\t\t}\n\t\t"); - if (photoDropShadow.enabled) { - styles += "\n\t\t\t\t".concat(useClass ? '.' : '#').concat(uniqueId, " .dlx-photo-block__image-wrapper {\n\t\t\t\t\t--photo-block-image-drop-shadow-horizontal: ").concat(photoDropShadow.horizontal, "px;\n\t\t\t\t\t--photo-block-image-drop-shadow-vertical: ").concat(photoDropShadow.vertical, "px;\n\t\t\t\t\t--photo-block-image-drop-shadow-blur: ").concat(photoDropShadow.blur, "px;\n\t\t\t\t\t--photo-block-image-drop-shadow-spread: ").concat(photoDropShadow.spread, "px;\n\t\t\t\t\t--photo-block-image-drop-shadow-color: ").concat(getColor(photoDropShadow.color, photoDropShadow.opacity), ";\n\t\t\t\t}\n\t\t\t"); - } - } else { - styles += "\n\t\t\t".concat(useClass ? '.' : '#').concat(uniqueId, " .dlx-photo-block__image-wrapper {\n\t\t\t\t--photo-block-photo-background-color: ").concat(photoBackgroundColor, ";\n\t\t\t\t--photo-block-image-width: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerWidth, 'width'), "\n\t\t\t\t--photo-block-image-height: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerHeight, 'height'), "\n\t\t\t\t--photo-block-image-min-width: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerMinWidth, 'min-width'), "\n\t\t\t\t--photo-block-image-min-height: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerMinHeight, 'min-height'), "\n\t\t\t\t--photo-block-image-max-width: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerMaxWidth, 'max-width'), "\n\t\t\t\t--photo-block-image-max-height: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerMaxHeight, 'max-height'), "\n\t\t\t\t--photo-block-photo-border-radius: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(photoBorderRadius, deviceType), ";\n\t\t\t}\n\t\t\t").concat(useClass ? '.' : '#').concat(uniqueId, " .dlx-photo-block__image-wrapper img {\n\t\t\t\t--photo-block-image-opacity: ").concat(photoOpacity, ";\n\t\t\t\t--photo-block-image-object-fit: ").concat(photoObjectFit, ";\n\t\t\t\t--photo-block-blur: ").concat(photoBlur, "px;\n\t\t\t\t--photo-block-image-width: ").concat('none' !== photoObjectFit ? '100%' : 'unset', ";\n\t\t\t\t--photo-block-image-height: ").concat('none' !== photoObjectFit ? '100%' : 'unset', ";\n\t\t\t\t--photo-block-image-object-position: ").concat('custom' === photoObjectPosition ? photoObjectPositionCustom : photoObjectPosition, ";\n\t\t\t\t--photo-block-image-padding: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(photoPaddingSize, deviceType), ";\n\t\t\t\t--photo-block-image-margin: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(photoMarginSize, deviceType), ";\n\t\t\t\t").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildBorderCSS)(photoBorder, deviceType, '--photo-block-image'), ";\n\t\t\t\t--photo-block-photo-border-radius: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(photoBorderRadius, deviceType), ";\n\t\t\t}\n\t\t"); - } - - // Apply outer margin to container. - styles += "".concat(useClass ? '.' : '#').concat(uniqueId, " .dlx-photo-block__figure { --photo-block-figure-margin: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(photoMarginSize, deviceType), "; }"); - if (photoDropShadow.enabled) { - styles += "\n\t\t\t.dlx-has-drop-shadow ".concat(useClass ? '.' : '#').concat(uniqueId, " img {\n\t\t\t\t--photo-block-image-drop-shadow-horizontal: ").concat(photoDropShadow.horizontal, "px;\n\t\t\t\t--photo-block-image-drop-shadow-vertical: ").concat(photoDropShadow.vertical, "px;\n\t\t\t\t--photo-block-image-drop-shadow-blur: ").concat(photoDropShadow.blur, "px;\n\t\t\t\t--photo-block-image-drop-shadow-spread: ").concat(photoDropShadow.spread, "px;\n\t\t\t\t--photo-block-image-drop-shadow-color: ").concat(getColor(photoDropShadow.color, photoDropShadow.opacity), ";\n\t\t\t}\n\t\t"); - } - return styles; -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getStyles); - -/***/ }), - -/***/ "./src/blocks/photo-block/edit.js": -/*!****************************************!*\ - !*** ./src/blocks/photo-block/edit.js ***! - \****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/blocks/photo-block/editor.scss"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose"); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/hooks */ "@wordpress/hooks"); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/* harmony import */ var _screens_Initial__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../screens/Initial */ "./src/screens/Initial/index.js"); -/* harmony import */ var _components_CaptionAppender__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../components/CaptionAppender */ "./src/components/CaptionAppender/index.js"); -/* harmony import */ var _screens_Edit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../screens/Edit */ "./src/screens/Edit/index.js"); -/* harmony import */ var _screens_Crop__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../screens/Crop */ "./src/screens/Crop/index.js"); -/* harmony import */ var _screens_Loading__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../screens/Loading */ "./src/screens/Loading/index.js"); -/* harmony import */ var _screens_FeaturedImageEdit__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../screens/FeaturedImageEdit */ "./src/screens/FeaturedImageEdit/index.js"); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../store/global-styles */ "./src/store/global-styles.js"); -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - - - - - - - - - -//import EffectsScreen from '../../screens/Effects'; - - - - - - - -// For storing unique IDs. -var uniqueIds = []; -var PhotoBlock = function PhotoBlock(props) { - var attributes = props.attributes, - setAttributes = props.setAttributes, - clientId = props.clientId, - context = props.context, - isSelected = props.isSelected; - var innerBlockCount = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useSelect)(function (coreSelect) { - return coreSelect('core/block-editor').getBlock(clientId).innerBlocks; - }).length; - var newUniqueId = 'photo-block-' + clientId.substr(2, 9).replace('-', ''); - var _useResizeObserver = (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__.useResizeObserver)(), - _useResizeObserver2 = _slicedToArray(_useResizeObserver, 2), - resizeListener = _useResizeObserver2[0], - width = _useResizeObserver2[1].width; - var modifierClassNames; - if (typeof width === 'number') { - modifierClassNames = { - 'is-layout-large': width >= 700, - 'is-layout-medium': width >= 450 && width < 700, - 'is-layout-small': width < 450 - }; - } - - /** - * Get a unique ID for the block for inline styling if necessary. - */ - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () { - // Check context to see if we're in a query loop. - var pid = (context === null || context === void 0 ? void 0 : context.postId) || null; - var queryLoop = context.query; - if (0 !== pid && null !== pid && 'none' !== queryLoop && typeof queryLoop !== 'undefined') { - setInQueryLoop(true); - } - var realUniqueId = null; - if ((null === uniqueId || uniqueIds.includes(uniqueId)) && !inQueryLoop) { - var permUniqueId = newUniqueId; - - // If block is duplicated, set new store defaults. - if (uniqueIds.includes(uniqueId)) { - var oldStore = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.select)((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(uniqueId)); - if (oldStore) { - // Duplicate the store and set defaults. - var newBlockStore = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.dispatch)((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(permUniqueId)); - newBlockStore.setBlockUniqueId(permUniqueId); - newBlockStore.setPhotoMode(oldStore.getPhotoMode()); - newBlockStore.setCaptionPosition(oldStore.getCaptionPosition()); - newBlockStore.setHasCaption(oldStore.hasCaption()); - newBlockStore.setInQueryLoop(oldStore.inQueryLoop()); - newBlockStore.setImageData(oldStore.getImageData()); - - // Get the old screen, and if it's not edit, set new screen to initial. - var oldScreen = oldStore.getCurrentScreen(); - var newScreen = 'initial'; - switch (oldScreen) { - case 'edit': - case 'crop': - newScreen = 'edit'; - break; - default: - break; - } - newBlockStore.setScreen(newScreen); - props.attributes.screen = newScreen; - setAttributes({ - screen: newScreen - }); - } - } - // If we're a brand new block, set the unique ID. - if (null === uniqueId) { - setBlockUniqueId(permUniqueId); - } - // We need this for duplicated state so one block doesn't affect another. - props.attributes.uniqueId = permUniqueId; - setAttributes({ - uniqueId: permUniqueId - }); - uniqueIds.push(permUniqueId); - realUniqueId = permUniqueId; - } else { - setBlockUniqueId(uniqueId); - uniqueIds.push(uniqueId); - realUniqueId = uniqueId; - } - - /** - * Action: dlx_photo_block_has_loaded - * - * Fires after the block has loaded and after unique ID has been set. - */ - (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_6__.doAction)('dlx_photo_block_has_loaded', realUniqueId); - - // Set initial state of the block. - setImageData(attributes.imageData); - setHasCaption(attributes.hasCaption); - setCaptionPosition(attributes.captionPosition); - setPhotoMode(attributes.photoMode); - }, []); - var _props$attributes = props.attributes, - uniqueId = _props$attributes.uniqueId, - align = _props$attributes.align, - globalStyle = _props$attributes.globalStyle, - photoDropShadow = _props$attributes.photoDropShadow; - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useSelect)(function (newSelect) { - var maybeGlobalStyle = newSelect(_store_global_styles__WEBPACK_IMPORTED_MODULE_15__["default"]).getGlobalStyleBySlug(globalStyle); - if (Object.keys(maybeGlobalStyle).length === 0) { - return ''; - } - return { - globalStyleCSSClassName: maybeGlobalStyle.css_class - }; - }), - globalStyleCSSClassName = _useSelect.globalStyleCSSClassName; - - // Read in context values. - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useDispatch)((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(uniqueId ? uniqueId : newUniqueId)), - setBlockUniqueId = _useDispatch.setBlockUniqueId, - setCaptionPosition = _useDispatch.setCaptionPosition, - setHasCaption = _useDispatch.setHasCaption, - setImageData = _useDispatch.setImageData, - setPhotoMode = _useDispatch.setPhotoMode, - setInQueryLoop = _useDispatch.setInQueryLoop; - - // Get current block data. - var _useSelect2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useSelect)(function (select) { - return { - currentScreen: select((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(uniqueId ? uniqueId : newUniqueId)).getCurrentScreen(), - isUploading: select((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(uniqueId ? uniqueId : newUniqueId)).isUploading(), - isProcessingUpload: select((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(uniqueId ? uniqueId : newUniqueId)).isProcessingUpload(), - isUploadError: select((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(uniqueId ? uniqueId : newUniqueId)).isUploadError(), - filepondInstance: select((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(uniqueId ? uniqueId : newUniqueId)).getFilepondInstance(), - hasCaption: select((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(uniqueId ? uniqueId : newUniqueId)).hasCaption(), - captionPosition: select((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(uniqueId ? uniqueId : newUniqueId)).getCaptionPosition(), - inQueryLoop: select((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(uniqueId ? uniqueId : newUniqueId)).inQueryLoop(), - photoMode: select((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(uniqueId ? uniqueId : newUniqueId)).getPhotoMode(), - blockUniqueId: select((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(uniqueId ? uniqueId : newUniqueId)).getBlockUniqueId() - }; - }), - currentScreen = _useSelect2.currentScreen, - isUploading = _useSelect2.isUploading, - isProcessingUpload = _useSelect2.isProcessingUpload, - isUploadError = _useSelect2.isUploadError, - filepondInstance = _useSelect2.filepondInstance, - hasCaption = _useSelect2.hasCaption, - captionPosition = _useSelect2.captionPosition, - inQueryLoop = _useSelect2.inQueryLoop, - photoMode = _useSelect2.photoMode, - blockUniqueId = _useSelect2.blockUniqueId; - var blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.useBlockProps)({ - className: classnames__WEBPACK_IMPORTED_MODULE_1___default()("dlx-photo-block", "align".concat(align), "dlx-screen-".concat(currentScreen), "dlx-caption-position-".concat(captionPosition), globalStyleCSSClassName, { - 'dlx-has-drop-shadow': photoDropShadow.enabled - }, modifierClassNames) - }); - - // Set caption position attribute as captionPosition context is updated so the parent knows the caption position. - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () { - if (props.attributes.captionPosition !== captionPosition) { - props.setAttributes({ - captionPosition: captionPosition - }); - } - }, [captionPosition]); - - // Store the filepond upload ref. - var imageRef = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useRef)(null); - - // Set caption innerblocks classes. - var captionInnerBlocksClasses = classnames__WEBPACK_IMPORTED_MODULE_1___default()('dlx-photo-block__caption', { - 'dlx-photo-block__caption--has-overlay': 'overlay' === captionPosition - }); - var captionInnerBlockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.useInnerBlocksProps)({ - className: captionInnerBlocksClasses - }, { - allowedBlocks: ['dlxplugins/photo-caption-block'], - templateInsertUpdatesSelection: true, - renderAppender: function renderAppender() { - return isSelected ? /*#__PURE__*/React.createElement(_components_CaptionAppender__WEBPACK_IMPORTED_MODULE_10__["default"], { - numBlocks: innerBlockCount, - clientId: clientId, - blockUniqueId: blockUniqueId - }) : null; - } - }); - - // Set data mode when setting or exiting data mode. - // useEffect( () => { - // setAttributes( { - // photoMode, - // } ); - // }, [ photoMode ] ); - - /** - * Get the screen to display. - * - * @return {Element} The screen to display. - */ - var initCurrentScreen = function initCurrentScreen() { - // Don't load interface until uniqueId's are set. We need this to get block state later. - if (null === uniqueId || null === blockUniqueId) { - return null; - } - // Otherwise get the screen based on the current screen. - switch (currentScreen) { - case 'loading': - return /*#__PURE__*/React.createElement(_screens_Loading__WEBPACK_IMPORTED_MODULE_13__["default"], _extends({}, props, { - blockUniqueId: blockUniqueId - })); - case 'initial': - return /*#__PURE__*/React.createElement(_screens_Initial__WEBPACK_IMPORTED_MODULE_9__["default"], { - attributes: attributes, - setAttributes: setAttributes, - blockUniqueId: blockUniqueId, - clientId: clientId - }); - case 'edit': - return /*#__PURE__*/React.createElement(_screens_Edit__WEBPACK_IMPORTED_MODULE_11__["default"], { - attributes: attributes, - setAttributes: setAttributes, - ref: imageRef, - innerBlockProps: captionInnerBlockProps, - clientId: clientId, - blockUniqueId: blockUniqueId - }); - case 'crop': - return /*#__PURE__*/React.createElement(_screens_Crop__WEBPACK_IMPORTED_MODULE_12__["default"], { - attributes: attributes, - setAttributes: setAttributes, - blockUniqueId: blockUniqueId - }); - case 'featuredImage': - return /*#__PURE__*/React.createElement(_screens_FeaturedImageEdit__WEBPACK_IMPORTED_MODULE_14__["default"], { - attributes: attributes, - setAttributes: setAttributes, - context: context, - innerBlockProps: captionInnerBlockProps, - blockUniqueId: blockUniqueId, - clientId: clientId - }); - case 'effects': - return null; - // return ( - // - // ); - } - return null; - }; - var preview = attributes.preview; - if (preview) { - return /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__preview" - }, /*#__PURE__*/React.createElement("img", { - src: photoBlock.blockPreviewImage, - alt: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Block Preview', 'photo-block'), - style: { - maxWidth: '100%', - height: 'auto' - } - })); - } - var block = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("section", { - className: "dlx-photo-block__container dlx-photo-block__block-wrapper", - id: uniqueId - }, resizeListener, initCurrentScreen())); - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", blockProps, block)); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PhotoBlock); - -/***/ }), - -/***/ "./src/blocks/photo-block/icons/filepond.js": -/*!**************************************************!*\ - !*** ./src/blocks/photo-block/icons/filepond.js ***! - \**************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ processSvg: () => (/* binding */ processSvg), -/* harmony export */ redoSvg: () => (/* binding */ redoSvg) -/* harmony export */ }); -var redoSvg = ''; -var processSvg = ''; - -/***/ }), - -/***/ "./src/blocks/photo-block/index.js": -/*!*****************************************!*\ - !*** ./src/blocks/photo-block/index.js ***! - \*****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./block.json */ "./src/blocks/photo-block/block.json"); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./edit */ "./src/blocks/photo-block/edit.js"); -/* harmony import */ var _components_Icons_PhotoBlockIcon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../components/Icons/PhotoBlockIcon */ "./src/components/Icons/PhotoBlockIcon.js"); - - - - - -(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_0__, { - icon: _components_Icons_PhotoBlockIcon__WEBPACK_IMPORTED_MODULE_4__["default"], - edit: _edit__WEBPACK_IMPORTED_MODULE_3__["default"], - // Render via PHP - save: function save() { - return /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.InnerBlocks.Content, null); - }, - transforms: { - from: [{ - type: 'enter', - regExp: /^photoblock$/, - transform: function transform() { - return (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__.createBlock)('dlxplugins/photo-block'); - } - }, { - type: 'block', - blocks: ['core/image'], - transform: function transform(attributes) { - var imageData = { - id: attributes.id, - url: attributes.url, - alt: attributes.alt, - full: attributes.url, - width: attributes.width, - height: attributes.height, - title: '', - caption: attributes.caption - }; - var imageAttributes = { - photoMode: 'photo', - screen: 'loading', - imageData: imageData - }; - return (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__.createBlock)('dlxplugins/photo-block', imageAttributes); - } - }], - to: [] - } -}); - -/***/ }), - -/***/ "./src/blocks/photo-caption-block/block-styles.js": -/*!********************************************************!*\ - !*** ./src/blocks/photo-caption-block/block-styles.js ***! - \********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/TypographyHelper */ "./src/utils/TypographyHelper.js"); -/* harmony import */ var hex_to_rgba__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! hex-to-rgba */ "./node_modules/hex-to-rgba/build/index.js"); -/* harmony import */ var hex_to_rgba__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(hex_to_rgba__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var rgb2hex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rgb2hex */ "./node_modules/rgb2hex/index.js"); -/* harmony import */ var rgb2hex__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(rgb2hex__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/escape-html */ "@wordpress/escape-html"); -/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/url */ "@wordpress/url"); -/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_url__WEBPACK_IMPORTED_MODULE_4__); - - - - - -var getCaptionStyles = function getCaptionStyles(attributes, deviceType, uniqueId) { - var useClass = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; - // If attributes are empty, return empty string. - if (attributes.length === 0) { - return ''; - } - var containerWidth = attributes.containerWidth, - containerHeight = attributes.containerHeight, - containerMinWidth = attributes.containerMinWidth, - containerMinHeight = attributes.containerMinHeight, - containerMaxWidth = attributes.containerMaxWidth, - captionBackgroundColor = attributes.captionBackgroundColor, - captionPaddingSize = attributes.captionPaddingSize, - captionMarginSize = attributes.captionMarginSize, - captionBorderRadius = attributes.captionBorderRadius, - captionBorder = attributes.captionBorder, - captionTextColor = attributes.captionTextColor, - captionTypography = attributes.captionTypography, - captionAlign = attributes.captionAlign, - captionLinkColor = attributes.captionLinkColor, - captionLinkHoverColor = attributes.captionLinkHoverColor, - captionAccentColor = attributes.captionAccentColor, - captionSecondaryColor = attributes.captionSecondaryColor, - captionTextFontFamily = attributes.captionTextFontFamily, - captionHeadingsFontFamily = attributes.captionHeadingsFontFamily, - captionBaseFontSize = attributes.captionBaseFontSize, - overlayBackgroundType = attributes.overlayBackgroundType, - overlayBackgroundColor = attributes.overlayBackgroundColor, - overlayBackgroundColorHover = attributes.overlayBackgroundColorHover, - overlayBackgroundGradient = attributes.overlayBackgroundGradient, - overlayBackgroundGradientOpacity = attributes.overlayBackgroundGradientOpacity, - overlayBackgroundGradientOpacityHover = attributes.overlayBackgroundGradientOpacityHover, - overlayBackgroundImage = attributes.overlayBackgroundImage, - overlayBorderRadius = attributes.overlayBorderRadius, - overlayBorder = attributes.overlayBorder, - mode = attributes.mode, - photoMode = attributes.photoMode, - captionPosition = attributes.captionPosition, - enableSmartStyles = attributes.enableSmartStyles; - var styles = "\n\t\tfigcaption".concat(useClass ? '.' : '#').concat(uniqueId, " {\n\t\t\t--photo-block-caption-width: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerWidth, 'width'), "\n\t\t\t--photo-block-caption-height: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerHeight, 'height'), "\n\t\t\t--photo-block-caption-min-width: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerMinWidth, 'min-width'), "\n\t\t\t--photo-block-caption-min-height: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerMinHeight, 'min-height'), "\n\t\t\t--photo-block-caption-max-width: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getValueWithUnit)(deviceType, containerMaxWidth, 'max-width'), "\n\t\t}\n\t\tfigcaption").concat(useClass ? '.' : '#').concat(uniqueId, " {\n\t\t\t--photo-block-caption-padding: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(captionPaddingSize, deviceType), ";\n\t\t\t--photo-block-caption-margin: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(captionMarginSize, deviceType), ";\n\t\t\t--photo-block-caption-border-radius: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(captionBorderRadius, deviceType), ";\n\t\t\t--photo-block-caption-padding: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(captionPaddingSize, deviceType), ";\n\t\t\t--photo-block-caption-margin: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(captionMarginSize, deviceType), ";\n\t\t\t--photo-block-caption-border-radius: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(captionBorderRadius, deviceType), ";\n\t\t\t").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildBorderCSS)(captionBorder, deviceType, '--photo-block-caption'), ";\n\t\t}\n\t"); - if (enableSmartStyles || 'single' === mode || 'data' === photoMode || 'featuredImage' === photoMode) { - styles += "\n\t\t\tfigcaption".concat(useClass ? '.' : '#').concat(uniqueId, " {\n\t\t\t\t--photo-block-caption-background-color: ").concat(captionBackgroundColor, ";\n\t\t\t}"); - } - - // Set colors and typography for single caption mode and data mode. - if ('single' === mode || 'data' === photoMode || 'featuredImage' === photoMode) { - styles += "\n\t\t\tfigcaption".concat(useClass ? '.' : '#').concat(uniqueId, " {\n\t\t\t\t--photo-block-caption-text-color: ").concat(captionTextColor, ";\n\t\t\t\t--photo-block-caption-font-size: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.geHierarchicalPlaceholderValue)(captionTypography, deviceType, captionTypography[deviceType].fontSize, 'fontSize')).concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getHierarchicalValueUnit)(captionTypography, deviceType, captionTypography[deviceType].fontSizeUnit, 'fontSizeUnit'), ";\n\t\t\t\t--photo-block-caption-font-weight: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.geHierarchicalPlaceholderValue)(captionTypography, deviceType, captionTypography[deviceType].fontWeight, 'fontWeight'), ";\n\t\t\t\t--photo-block-caption-line-height: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.geHierarchicalPlaceholderValue)(captionTypography, deviceType, captionTypography[deviceType].lineHeight, 'lineHeight')).concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getHierarchicalValueUnit)(captionTypography, deviceType, captionTypography[deviceType].lineHeightUnit, 'lineHeightUnit'), ";\n\t\t\t\t--photo-block-caption-text-transform: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.geHierarchicalPlaceholderValue)(captionTypography, deviceType, captionTypography[deviceType].textTransform, 'textTransform'), ";\n\t\t\t\t--photo-block-caption-letter-spacing: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.geHierarchicalPlaceholderValue)(captionTypography, deviceType, captionTypography[deviceType].letterSpacing, 'letterSpacing')).concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getHierarchicalValueUnit)(captionTypography, deviceType, captionTypography[deviceType].letterSpacingUnit, 'letterSpacingUnit'), ";\n\t\t\t\t--photo-block-caption-text-align: ").concat(captionAlign, ";\n\t\t\t}\n\t\t\tfigcaption").concat(useClass ? '.' : '#').concat(uniqueId, " a {\n\t\t\t\t--photo-block-caption-link-color: ").concat(captionLinkColor, ";\n\t\t\t}\n\t\t\tfigcaption").concat(useClass ? '.' : '#').concat(uniqueId, " a:hover {\n\t\t\t\t--photo-block-caption-link-color-hover: ").concat(captionLinkHoverColor, ";\n\t\t\t}\n\t\t"); - } - // Add custom caption. - if ('custom' === captionTypography[deviceType].fontFamilySlug) { - styles += "\n\t\t\tfigcaption".concat(useClass ? '.' : '#').concat(uniqueId, " {\n\t\t\t\t--photo-block-caption-font-family: ").concat(captionTypography === null || captionTypography === void 0 ? void 0 : captionTypography.captionCustomTypography, ";\n\t\t\t}\n\t\t"); - } else { - styles += "\n\t\t\tfigcaption".concat(useClass ? '.' : '#').concat(uniqueId, " {\n\t\t\t\t--photo-block-caption-font-family: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.geHierarchicalPlaceholderValue)(captionTypography, deviceType, captionTypography[deviceType].fontFamily, 'fontFamily'), ";\n\t\t\t}\n\t\t"); - } - - // Set colors and typography for advanced caption mode. - if ('advanced' === mode && 'data' !== photoMode && 'featuredImage' !== photoMode && enableSmartStyles) { - styles += "\n\t\t\tfigcaption".concat(useClass ? '.' : '#').concat(uniqueId, " {\n\t\t\t\t--photo-block-caption-text-color: ").concat(captionTextColor, ";\n\t\t\t\t--photo-block-caption-link-color: ").concat(captionAccentColor, ";\n\t\t\t\t--photo-block-caption-link-color-hover: ").concat(captionSecondaryColor, ";\n\t\t\t\t--photo-block-caption-font-family: ").concat(captionTextFontFamily, ";\n\t\t\t\t--photo-block-caption-headings-font-family: ").concat(captionHeadingsFontFamily, ";\n\t\t\t\t--photo-block-caption-font-size: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.geHierarchicalPlaceholderValue)(captionBaseFontSize, deviceType, captionBaseFontSize[deviceType].value, 'value')).concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.getHierarchicalValueUnit)(captionBaseFontSize, deviceType, captionBaseFontSize[deviceType].unit, 'unit'), ";\n\t\t\t}\n\t\t"); - } - - // Set overlay background color if gradient. - if ('overlay' === captionPosition && 'solid' === overlayBackgroundType) { - styles += "\n\t\t\t".concat(useClass ? '.' : '#').concat(uniqueId, ".dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-background-color: ").concat(overlayBackgroundColor, ";\n\t\t\t}\n\t\t\t").concat(useClass ? '.' : '#').concat(uniqueId, ".dlx-photo-block__caption-overlay:hover:before {\n\t\t\t\t--photo-block-caption-overlay-background-color-hover: ").concat(overlayBackgroundColorHover, ";\n\t\t\t}\n\t\t"); - - // The overlay background container needs to match overlay border radius in order to simulate masking. - styles += "\n\t\t\t".concat(useClass ? '.' : '#').concat(uniqueId, ".dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-border-radius: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(overlayBorderRadius, deviceType), ";\n\t\t\t}\n\t\t"); - } - - // Set overlay background color if gradient. - if ('overlay' === captionPosition && 'gradient' === overlayBackgroundType) { - styles += "\n\t\t\t".concat(useClass ? '.' : '#').concat(uniqueId, ".dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-background-gradient: ").concat(overlayBackgroundGradient, ";\n\t\t\t\t--photo-block-caption-overlay-background-gradient-opacity: ").concat(overlayBackgroundGradientOpacity, ";\n\t\t\t\tz-index: 1;\n\t\t\t}\n\t\t\t").concat(useClass ? '.' : '#').concat(uniqueId, ".dlx-photo-block__caption-overlay:hover:before {\n\t\t\t\t--photo-block-caption-overlay-background-gradient-opacity-hover: ").concat(overlayBackgroundGradientOpacityHover, ";\n\t\t\t}\n\t\t"); - - // The overlay background container needs to match overlay border radius in order to simulate masking. - styles += "\n\t\t\t".concat(useClass ? '.' : '#').concat(uniqueId, ".dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-border-radius: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(overlayBorderRadius, deviceType), ";\n\t\t\t}\n\t\t"); - } - - // Set overlay background color if background image. - if ('overlay' === captionPosition && 'image' === overlayBackgroundType && (0,_wordpress_url__WEBPACK_IMPORTED_MODULE_4__.isURL)(overlayBackgroundImage.url)) { - styles += "\n\t\t\t".concat(useClass ? '.' : '#').concat(uniqueId, ".dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-background-color: ").concat(overlayBackgroundImage.backgroundColor, ";\n\t\t\t\t--photo-block-caption-overlay-background-image-url: url('").concat(decodeURIComponent(encodeURIComponent(overlayBackgroundImage.url)), " ');\n\t\t\t\t--photo-block-caption-overlay-background-image-position: ").concat((0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeEditableHTML)(overlayBackgroundImage.backgroundPosition), ";\n\t\t\t\t--photo-block-caption-overlay-background-image-repeat: ").concat((0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeEditableHTML)(overlayBackgroundImage.backgroundRepeat), ";\n\t\t\t\t--photo-block-caption-overlay-background-image-size: ").concat((0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeEditableHTML)(overlayBackgroundImage.backgroundSize), ";\n\t\t\t\t--photo-block-caption-overlay-background-image-opacity: ").concat(parseFloat(overlayBackgroundImage.backgroundOpacity), ";\n\t\t\t}\n\t\t\t").concat(useClass ? '.' : '#').concat(uniqueId, ".dlx-photo-block__caption-overlay:hover:before {\n\t\t\t\t--photo-block-caption-overlay-background-image-opacity-hover: ").concat(parseFloat(overlayBackgroundImage.backgroundOpacityHover), ";\n\t\t\t}\n\t\t"); - // The overlay background container needs to match overlay border radius in order to simulate masking. - styles += "\n\t\t\t".concat(useClass ? '.' : '#').concat(uniqueId, ".dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-border-radius: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(overlayBorderRadius, deviceType), ";\n\t\t\t}\n\t\t"); - } - - // Set overlay padding, border, and border radius. - if ('overlay' === captionPosition) { - styles += "\n\t\t\t".concat(useClass ? '.' : '#').concat(uniqueId, ".dlx-photo-block__caption-overlay {\n\t\t\t\t--photo-block-caption-overlay-border-radius: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(captionBorderRadius, deviceType), ";\n\t\t\t\t").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildBorderCSS)(overlayBorder, deviceType, '--photo-block-caption'), "\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\t\t"); - } - return styles; -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getCaptionStyles); - -/***/ }), - -/***/ "./src/blocks/photo-caption-block/edit.js": -/*!************************************************!*\ - !*** ./src/blocks/photo-caption-block/edit.js ***! - \************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/blocks/photo-caption-block/editor.scss"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/escape-html */ "@wordpress/escape-html"); -/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/hooks */ "@wordpress/hooks"); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/shuffle.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/maximize.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/shrink.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/info.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/align-left.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/align-center.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/align-right.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/separator-horizontal.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/rectangle-ellipsis.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/trash-2.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/check.js"); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/* harmony import */ var _components_DimensionsResponsive__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../components/DimensionsResponsive */ "./src/components/DimensionsResponsive/index.js"); -/* harmony import */ var _components_BorderResponsive__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../components/BorderResponsive */ "./src/components/BorderResponsive/index.js"); -/* harmony import */ var _components_SizeResponsive__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../components/SizeResponsive */ "./src/components/SizeResponsive/index.js"); -/* harmony import */ var _hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../hooks/useDeviceType */ "./src/hooks/useDeviceType.js"); -/* harmony import */ var _utils_SendCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../utils/SendCommand */ "./src/utils/SendCommand.js"); -/* harmony import */ var _components_Typography__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../components/Typography */ "./src/components/Typography/index.js"); -/* harmony import */ var _components_ColorPicker__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../components/ColorPicker */ "./src/components/ColorPicker/index.js"); -/* harmony import */ var _components_GradientPicker__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../components/GradientPicker */ "./src/components/GradientPicker/index.js"); -/* harmony import */ var _utils_GetRandomGradient__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../utils/GetRandomGradient */ "./src/utils/GetRandomGradient.js"); -/* harmony import */ var _components_RangeResponsive__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../components/RangeResponsive */ "./src/components/RangeResponsive/index.js"); -/* harmony import */ var _components_BackgroundSelector__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../components/BackgroundSelector */ "./src/components/BackgroundSelector/index.js"); -/* harmony import */ var _components_CustomAttributes__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../components/CustomAttributes */ "./src/components/CustomAttributes/index.js"); -/* harmony import */ var _block_styles__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./block-styles */ "./src/blocks/photo-caption-block/block-styles.js"); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../store/global-styles */ "./src/store/global-styles.js"); -/* harmony import */ var _components_Notice__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../components/Notice */ "./src/components/Notice/index.js"); -/* harmony import */ var _components_GlobalStyles__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../components/GlobalStyles */ "./src/components/GlobalStyles/index.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - - - - - - - -var HtmlToReactParser = (__webpack_require__(/*! html-to-react */ "./node_modules/html-to-react/index.js").Parser); - - - - - - - - - - - - - - - - - -var canSavePresets = photoBlockUser.canSavePresets; - -/** - * Height units. - */ -var heightUnits = ['px', 'em', 'rem', '%', 'vh']; -var fontFamilies = [{ - label: 'Arial', - family: 'Arial, sans-serif', - slug: 'arial', - fallback: 'sans-serif', - type: 'web' -}, { - label: 'Courier New', - family: 'Courier New, monospace', - slug: 'courier-new', - fallback: 'monospace', - type: 'web' -}, { - label: 'Garamond', - family: 'Garamond, serif', - slug: 'garamond', - fallback: 'serif', - type: 'web' -}, { - label: 'Georgia', - family: 'Georgia, serif', - slug: 'georgia', - fallback: 'serif', - type: 'web' -}, { - label: 'Helvetica', - family: 'Helvetica, sans-serif', - slug: 'helvetica', - fallback: 'sans-serif', - type: 'web' -}, { - label: 'Lucida Console', - family: 'Lucida Console, monospace', - slug: 'lucida-console', - fallback: 'monospace', - type: 'web' -}, { - label: 'Tahoma', - family: 'Tahoma, sans-serif', - slug: 'tahoma', - fallback: 'sans-serif', - type: 'web' -}, { - label: 'Times New Roman', - family: 'Times New Roman, serif', - slug: 'times-new-roman', - fallback: 'serif', - type: 'web' -}, { - label: 'Trebuchet MS', - family: 'Trebuchet MS, sans-serif', - slug: 'trebuchet-ms', - fallback: 'sans-serif', - type: 'web' -}, { - label: 'Verdana', - family: 'Verdana, sans-serif', - slug: 'verdana', - fallback: 'sans-serif', - type: 'web' -}]; -var PhotoCaptionBlock = function PhotoCaptionBlock(props) { - var setAttributes = props.setAttributes, - clientId = props.clientId, - context = props.context, - isSelected = props.isSelected; - var blockUniqueId = context['photo-block/uniqueId']; - var globalStyle = context['photo-block/globalStyle']; - var attributes = props.attributes || {}; - - // Apply filters to attributes. - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () { - var oldAttrs = _objectSpread({}, props.attributes); - attributes = (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_5__.applyFilters)('dlx_photo_block_attributes', props.attributes, globalStyle, clientId, 'caption'); - - // Determine if caption position changed. - if (oldAttrs.captionPosition !== attributes.captionPosition) { - setCaptionPosition(attributes.captionPosition); - } - // Determine if mode has changed. - if (oldAttrs.mode !== attributes.mode) { - setAttributes({ - mode: attributes.mode - }); - } - }, [props.attributes, globalStyle]); - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_8__.useDispatch)((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)), - setCaptionPosition = _useDispatch.setCaptionPosition, - setHasCaption = _useDispatch.setHasCaption; - - // Get current block data. - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_8__.useSelect)(function (select) { - return { - imageData: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)).getImageData(), - captionPosition: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)).getCaptionPosition(), - inQueryLoop: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)).inQueryLoop(), - photoMode: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)).getPhotoMode(), - currentScreen: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)).getCurrentScreen() - }; - }), - imageData = _useSelect.imageData, - captionPosition = _useSelect.captionPosition, - inQueryLoop = _useSelect.inQueryLoop, - photoMode = _useSelect.photoMode, - currentScreen = _useSelect.currentScreen; - var globalStyleCSSClassName = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_8__.useSelect)(function (select) { - var maybeGlobalStyle = select(_store_global_styles__WEBPACK_IMPORTED_MODULE_23__["default"]).getGlobalStyleBySlug(globalStyle); - if (Object.keys(maybeGlobalStyle).length === 0) { - return ''; - } - return { - globalStyleCSSClassName: (maybeGlobalStyle === null || maybeGlobalStyle === void 0 ? void 0 : maybeGlobalStyle.css_class) || '' - }; - }); - - // Get global style data. - var _useSelect2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_8__.useSelect)(function (select) { - return { - hasGlobalStyle: select(_store_global_styles__WEBPACK_IMPORTED_MODULE_23__["default"]).hasGlobalStyle - }; - }), - hasGlobalStyle = _useSelect2.hasGlobalStyle; - var _useState = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(''), - _useState2 = _slicedToArray(_useState, 2), - caption = _useState2[0], - setCaption = _useState2[1]; // Only applicable if in data mode. - var _useState3 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState4 = _slicedToArray(_useState3, 2), - captionLoading = _useState4[0], - setCaptionLoading = _useState4[1]; // Only applicable if in data mode. - var _useState5 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState6 = _slicedToArray(_useState5, 2), - captionPositionPopoverVisible = _useState6[0], - setCaptionPositionPopoverVisible = _useState6[1]; - var _useState7 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(null), - _useState8 = _slicedToArray(_useState7, 2), - captionPopoverRef = _useState8[0], - setCaptionPopoverRef = _useState8[1]; - var _useState9 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(null), - _useState10 = _slicedToArray(_useState9, 2), - modePopoverRef = _useState10[0], - setModePopoverRef = _useState10[1]; - var _useState11 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState12 = _slicedToArray(_useState11, 2), - modePopoverVisible = _useState12[0], - setModePopoverVisible = _useState12[1]; - var _useState13 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState14 = _slicedToArray(_useState13, 2), - removeCaptionModalVisible = _useState14[0], - setRemoveCaptionModalVisible = _useState14[1]; // only applicable if in data mode. - var _useState15 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState16 = _slicedToArray(_useState15, 2), - dataModalVisible = _useState16[0], - setDataModalVisible = _useState16[1]; // only applicable if in data mode. - var _useState17 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState18 = _slicedToArray(_useState17, 2), - switchModeModalVisible = _useState18[0], - setSwitchModeModalVisible = _useState18[1]; // only applicable if in data mode. - var _useState19 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState20 = _slicedToArray(_useState19, 2), - isCaptionVisible = _useState20[0], - setIsCaptionVisible = _useState20[1]; // Make sure caption is positioned correctly before visible render. - var _useState21 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(null), - _useState22 = _slicedToArray(_useState21, 2), - captionInputRef = _useState22[0], - setCaptionInputRef = _useState22[1]; - - // Set caption position context based on captionPosition attribute. After setting, show the caption. - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () { - setCaptionPosition(attributes.captionPosition); // Caption position can be top|bottom|overlay - setIsCaptionVisible(true); - }, [attributes.captionPosition]); - var _useDispatch2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_8__.useDispatch)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.store), - removeBlocks = _useDispatch2.removeBlocks; - - // Get device. - var _useDeviceType = (0,_hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_13__["default"])('Desktop'), - _useDeviceType2 = _slicedToArray(_useDeviceType, 2), - deviceType = _useDeviceType2[0], - setDeviceType = _useDeviceType2[1]; - var blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.useBlockProps)({ - className: classnames__WEBPACK_IMPORTED_MODULE_1___default()("dlx-photo-caption-block") - }); - - // Get query loop vars. - var postId = context.postId; - var uniqueId = blockUniqueId; - var _attributes = attributes, - mode = _attributes.mode, - captionManual = _attributes.captionManual, - enableSmartStyles = _attributes.enableSmartStyles, - captionBaseFontSize = _attributes.captionBaseFontSize, - captionBackgroundColor = _attributes.captionBackgroundColor, - captionBackgroundColorOpacity = _attributes.captionBackgroundColorOpacity, - captionTextColor = _attributes.captionTextColor, - captionAccentColor = _attributes.captionAccentColor, - captionSecondaryColor = _attributes.captionSecondaryColor, - captionLinkColor = _attributes.captionLinkColor, - captionLinkHoverColor = _attributes.captionLinkHoverColor, - captionAlign = _attributes.captionAlign, - captionPaddingSize = _attributes.captionPaddingSize, - captionMarginSize = _attributes.captionMarginSize, - captionTextFontFamily = _attributes.captionTextFontFamily, - captionHeadingsFontFamily = _attributes.captionHeadingsFontFamily, - captionTypography = _attributes.captionTypography, - captionCustomTypography = _attributes.captionCustomTypography, - captionBorder = _attributes.captionBorder, - captionBorderRadius = _attributes.captionBorderRadius, - containerWidth = _attributes.containerWidth, - containerHeight = _attributes.containerHeight, - containerMaxWidth = _attributes.containerMaxWidth, - containerMinWidth = _attributes.containerMinWidth, - containerMaxHeight = _attributes.containerMaxHeight, - containerMinHeight = _attributes.containerMinHeight, - overlayVerticalPosition = _attributes.overlayVerticalPosition, - overlayCaptionVerticalPosition = _attributes.overlayCaptionVerticalPosition, - overlayHorizontalPosition = _attributes.overlayHorizontalPosition, - overlayCaptionHorizontalPosition = _attributes.overlayCaptionHorizontalPosition, - overlayBackgroundType = _attributes.overlayBackgroundType, - overlayBackgroundColor = _attributes.overlayBackgroundColor, - overlayBackgroundColorHover = _attributes.overlayBackgroundColorHover, - overlayBackgroundColorOpacity = _attributes.overlayBackgroundColorOpacity, - overlayBackgroundColorOpacityHover = _attributes.overlayBackgroundColorOpacityHover, - overlayBorder = _attributes.overlayBorder, - overlayBorderRadius = _attributes.overlayBorderRadius, - overlayBackgroundGradient = _attributes.overlayBackgroundGradient, - overlayBackgroundGradientOpacity = _attributes.overlayBackgroundGradientOpacity, - overlayBackgroundGradientOpacityHover = _attributes.overlayBackgroundGradientOpacityHover, - overlayBackgroundImage = _attributes.overlayBackgroundImage, - overlayDisplayOnHover = _attributes.overlayDisplayOnHover, - overlayDisplayAnimation = _attributes.overlayDisplayAnimation, - htmlAnchor = _attributes.htmlAnchor, - captionCSSClasses = _attributes.captionCSSClasses, - hideOnMobile = _attributes.hideOnMobile, - hideOnTablet = _attributes.hideOnTablet, - hideOnDesktop = _attributes.hideOnDesktop; - var innerBlockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.useInnerBlocksProps)({ - className: classnames__WEBPACK_IMPORTED_MODULE_1___default()("dlx-photo-caption-block__inner-blocks dlx-photo-block__caption-inner dlx-photo-block__caption ".concat(globalStyle), { - 'has-smart-styles': 'advanced' === mode && 'data' !== photoMode && 'featuredImage' !== photoMode && enableSmartStyles - }) - }, { - allowedBlocks: photoBlock.captionInnerBlocks, - template: [['core/paragraph', { - align: 'center', - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Enter your caption here.', 'photo-block') - }]], - templateInsertUpdatesSelection: true, - templateLock: false, - renderAppender: _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.InnerBlocks.DefaultBlockAppender - }); - /** - * Get a post ID either from the block or attribute. - * - * @return {number} The post ID. - */ - var getPostId = function getPostId() { - var currentPostId = 0; - if (inQueryLoop) { - currentPostId = postId; - } else { - currentPostId = wp.data.select('core/editor').getCurrentPostId(); - } - return currentPostId; - }; - - /** - * Retrieve a caption from data. - */ - var getCaptionFromData = function getCaptionFromData() { - setCaptionLoading(true); - (0,_utils_SendCommand__WEBPACK_IMPORTED_MODULE_14__["default"])(photoBlock.restNonce, { - postId: getPostId() - }, "".concat(photoBlock.restUrl + '/get-caption-by-post-id'), 'POST').then(function (response) { - var _response$data = response.data, - data = _response$data.data, - success = _response$data.success; - if (!success) { - return; - } - setCaption(data.caption); - })["catch"](function (error) { - // todo: error checking/display. - }).then(function () { - setCaptionLoading(false); - }); - }; - - // Do REST request to get dynamic caption if needed. - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () { - if ('featuredImage' === currentScreen) { - getCaptionFromData(); - } - if (imageData.id === 0) {} - }, [photoMode, imageData, globalStyle]); - - // Select the richtext input and focus on it if block is selected and mode is single line. - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () { - if ('single' === mode && isSelected && null !== captionInputRef) { - captionInputRef.focus(); - } - }, [isSelected, captionInputRef]); - var _useState23 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(fontFamilies), - _useState24 = _slicedToArray(_useState23, 2), - blockFontFamilies = _useState24[0], - setBlockFamilies = _useState24[1]; - var _useSettings = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.useSettings)('typography.fontFamilies'), - _useSettings2 = _slicedToArray(_useSettings, 1), - blockLevelFontFamilies = _useSettings2[0]; - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () { - if (blockLevelFontFamilies) { - var themeFontFamilies = []; - var theme = blockLevelFontFamilies.theme; - theme.forEach(function (font) { - themeFontFamilies.push({ - label: font.name, - value: font.fontFamily - }); - }); - var mergedFontFamilies = blockFontFamilies.concat(themeFontFamilies); - /** - * Filter: Filter the font families available for the block. - * - * @param {Array} fontFamilies - The font families. - */ - setBlockFamilies((0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_5__.applyFilters)('dlx_photo_block_font_families', mergedFontFamilies)); - } - }, [blockLevelFontFamilies]); - var settingsInspectorControls = /*#__PURE__*/React.createElement(React.Fragment, null, 'overlay' === captionPosition && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelBody, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Overlay Settings', 'photo-block'), - initialOpen: true - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Overlay Vertical Position'), - value: overlayVerticalPosition, - options: [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Top', 'photo-block'), - value: 'top' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Middle', 'photo-block'), - value: 'middle' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Bottom', 'photo-block'), - value: 'bottom' - }], - onChange: function onChange(value) { - setAttributes({ - overlayVerticalPosition: value - }); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Overlay Horizontal Position', 'photo-block'), - value: overlayHorizontalPosition, - options: [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Left', 'photo-block'), - value: 'left' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Center', 'photo-block'), - value: 'center' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Right', 'photo-block'), - value: 'right' - }], - onChange: function onChange(value) { - setAttributes({ - overlayHorizontalPosition: value - }); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Caption Vertical Position', 'photo-block'), - value: overlayCaptionVerticalPosition, - options: [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Top', 'photo-block'), - value: 'top' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Middle', 'photo-block'), - value: 'middle' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Bottom', 'photo-block'), - value: 'bottom' - }], - onChange: function onChange(value) { - setAttributes({ - overlayCaptionVerticalPosition: value - }); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Caption Horizontal Position', 'photo-block'), - value: overlayCaptionHorizontalPosition, - options: [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Left', 'photo-block'), - value: 'left' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Center', 'photo-block'), - value: 'center' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Right', 'photo-block'), - value: 'right' - }], - onChange: function onChange(value) { - setAttributes({ - overlayCaptionHorizontalPosition: value - }); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Display Overlay on Hover', 'photo-block'), - checked: overlayDisplayOnHover, - onChange: function onChange(value) { - setAttributes({ - overlayDisplayOnHover: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Display the overlay only when the image is hovered over.', 'photo-block') - }), overlayDisplayAnimation && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Display Animation', 'photo-block'), - value: overlayDisplayAnimation, - options: [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Fade', 'photo-block'), - value: 'fade' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Slide Left', 'photo-block'), - value: 'slide-left' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Slide Right', 'photo-block'), - value: 'slide-right' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Slide Up', 'photo-block'), - value: 'slide-up' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Slide Down', 'photo-block'), - value: 'slide-down' - }], - onChange: function onChange(value) { - setAttributes({ - overlayDisplayAnimation: value - }); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.BaseControl, { - id: "dlx-photo-block__overlay-background-type", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Background Type', 'photo-block') - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ButtonGroup, { - className: "dlx-photo-block__overlay-background-type" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - variant: 'none' === overlayBackgroundType ? 'primary' : 'secondary', - onClick: function onClick() { - setAttributes({ - overlayBackgroundType: 'none' - }); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('None', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - variant: 'solid' === overlayBackgroundType ? 'primary' : 'secondary', - onClick: function onClick() { - setAttributes({ - overlayBackgroundType: 'solid' - }); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Solid', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - variant: 'gradient' === overlayBackgroundType ? 'primary' : 'secondary', - onClick: function onClick() { - setAttributes({ - overlayBackgroundType: 'gradient' - }); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Gradient', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - variant: 'image' === overlayBackgroundType ? 'primary' : 'secondary', - onClick: function onClick() { - setAttributes({ - overlayBackgroundType: 'image' - }); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Image', 'photo-block')))), 'solid' === overlayBackgroundType && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components_ColorPicker__WEBPACK_IMPORTED_MODULE_16__["default"], { - value: overlayBackgroundColor, - key: 'overlay-background-color', - onChange: function onChange(slug, newValue) { - setAttributes({ - overlayBackgroundColor: newValue - }); - }, - onOpacityChange: function onOpacityChange(newOpacity) { - setAttributes({ - overlayBackgroundColorOpacity: newOpacity - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Overlay Color', 'highlight-and-share'), - defaultColors: photoBlock.palette, - defaultColor: 'rgba(0,0,0,0.5)', - slug: 'overlay-background-color', - alpha: true, - opacity: overlayBackgroundColorOpacity - }), /*#__PURE__*/React.createElement(_components_ColorPicker__WEBPACK_IMPORTED_MODULE_16__["default"], { - value: overlayBackgroundColorHover, - key: 'overlay-background-color-hover', - onChange: function onChange(slug, newValue) { - setAttributes({ - overlayBackgroundColorHover: newValue - }); - }, - onOpacityChange: function onOpacityChange(newOpacity) { - setAttributes({ - overlayBackgroundColorOpacityHover: newOpacity - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Overlay Color (on Hover)', 'highlight-and-share'), - defaultColors: photoBlock.palette, - defaultColor: 'rgba(0,0,0,0.5)', - slug: 'overlay-background-color-hover', - alpha: true, - opacity: overlayBackgroundColorOpacityHover - })), 'gradient' === overlayBackgroundType && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - variant: "secondary", - className: "dlx-photo-block__overlay-background-gradient-randomize", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Generate Random Gradient', 'photo-block'), - onClick: function onClick() { - setAttributes({ - overlayBackgroundGradient: (0,_utils_GetRandomGradient__WEBPACK_IMPORTED_MODULE_18__["default"])() - }); - }, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_26__["default"], null) - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Generate Random Gradient', 'photo-block')), /*#__PURE__*/React.createElement(_components_GradientPicker__WEBPACK_IMPORTED_MODULE_17__["default"], { - value: overlayBackgroundGradient, - onChange: function onChange(newValue) { - setAttributes({ - overlayBackgroundGradient: newValue - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Overlay Gradient', 'photo-block') - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.RangeControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Gradient Opacity', 'photo-block'), - value: overlayBackgroundGradientOpacity, - onChange: function onChange(newValue) { - setAttributes({ - overlayBackgroundGradientOpacity: newValue - }); - }, - min: 0, - max: 1, - step: 0.01 - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.RangeControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Gradient Opacity on Hover', 'photo-block'), - value: overlayBackgroundGradientOpacityHover, - onChange: function onChange(newValue) { - setAttributes({ - overlayBackgroundGradientOpacityHover: newValue - }); - }, - min: 0, - max: 1, - step: 0.01 - })), 'image' === overlayBackgroundType && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelRow, null, /*#__PURE__*/React.createElement(_components_BackgroundSelector__WEBPACK_IMPORTED_MODULE_20__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Overlay Background Image', 'photo-block'), - values: overlayBackgroundImage, - onValuesChange: function onValuesChange(newValue) { - setAttributes({ - overlayBackgroundImage: newValue - }); - } - })), /*#__PURE__*/React.createElement(_components_BorderResponsive__WEBPACK_IMPORTED_MODULE_11__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Overlay Border', 'photo-block'), - values: overlayBorder, - onValuesChange: function onValuesChange(values) { - setAttributes({ - overlayBorder: values - }); - }, - labelTop: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Top Border', 'photo-block'), - labelRight: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Right Border', 'photo-block'), - labelBottom: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Bottom Border', 'photo-block'), - labelLeft: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Left Border', 'photo-block'), - labelAll: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Change Border', 'photo-block') - }), /*#__PURE__*/React.createElement(_components_DimensionsResponsive__WEBPACK_IMPORTED_MODULE_10__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Overlay Border Radius', 'photo-block'), - values: overlayBorderRadius, - onValuesChange: function onValuesChange(values) { - setAttributes({ - overlayBorderRadius: values - }); - }, - labelTop: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Top-left Radius', 'photo-block'), - labelRight: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Top-right Radius', 'photo-block'), - labelBottom: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Bottom-right Radius', 'photo-block'), - labelLeft: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Bottom-left Radius', 'photo-block'), - labelAll: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Change Border Radius', 'photo-block'), - isBorderRadius: true - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelBody, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Caption Settings', 'photo-block'), - initialOpen: true - }, ('data' === photoMode || 'single' === mode || 'featuredImage' === photoMode) && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelRow, { - className: "has-typography-panel-row" - }, /*#__PURE__*/React.createElement(_components_Typography__WEBPACK_IMPORTED_MODULE_15__["default"], { - values: captionTypography, - screenSize: deviceType, - onValuesChange: function onValuesChange(formValues) { - setAttributes({ - captionTypography: formValues - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Caption Typography', 'photo-block') - })), 'advanced' === mode && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Enable Smart Styles', 'photo-block'), - checked: enableSmartStyles, - onChange: function onChange(newValue) { - setAttributes({ - enableSmartStyles: newValue - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Enable smart styles to style the individual elements of the caption.', 'photo-block') - })), enableSmartStyles && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Text Font Family', 'photo-block'), - value: captionTextFontFamily, - onChange: function onChange(newValue) { - setAttributes({ - captionTextFontFamily: newValue - }); - }, - options: blockFontFamilies, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Set the font family for common elements such as paragraphs and quotes.', 'photo-block') - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Headings Font Family', 'photo-block'), - value: captionHeadingsFontFamily, - onChange: function onChange(newValue) { - setAttributes({ - captionHeadingsFontFamily: newValue - }); - }, - options: blockFontFamilies, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Set the font family for heading elements.', 'photo-block') - }), /*#__PURE__*/React.createElement(_components_RangeResponsive__WEBPACK_IMPORTED_MODULE_19__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Base Font Size', 'photo-block'), - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Set the base font size for the caption that all elements are based off of.', 'photo-block'), - values: captionBaseFontSize, - screenSize: deviceType, - onValuesChange: function onValuesChange(newValues) { - setAttributes({ - captionBaseFontSize: newValues - }); - }, - min: 0, - max: 36, - step: 1, - units: ['px'] - }), /*#__PURE__*/React.createElement(_components_ColorPicker__WEBPACK_IMPORTED_MODULE_16__["default"], { - value: captionBackgroundColor, - key: 'background-color-caption', - onChange: function onChange(slug, newValue) { - setAttributes({ - captionBackgroundColor: newValue - }); - }, - onOpacityChange: function onOpacityChange(newOpacity) { - setAttributes({ - captionBackgroundColorOpacity: newOpacity - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Background Color', 'photo-block'), - defaultColors: photoBlock.palette, - defaultColor: 'transparent', - slug: 'background-color-caption', - alpha: true, - opacity: captionBackgroundColorOpacity - }), /*#__PURE__*/React.createElement(_components_ColorPicker__WEBPACK_IMPORTED_MODULE_16__["default"], { - value: captionTextColor, - key: 'text-color-caption', - onChange: function onChange(slug, newValue) { - setAttributes({ - captionTextColor: newValue - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Text Color', 'photo-block'), - defaultColors: photoBlock.palette, - defaultColor: 'transparent', - slug: 'text-color-caption' - }), /*#__PURE__*/React.createElement(_components_ColorPicker__WEBPACK_IMPORTED_MODULE_16__["default"], { - value: captionAccentColor, - key: 'accent-color-caption', - onChange: function onChange(slug, newValue) { - setAttributes({ - captionAccentColor: newValue - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Accent Color', 'photo-block'), - defaultColors: photoBlock.palette, - defaultColor: 'transparent', - slug: 'accent-color-caption' - }), /*#__PURE__*/React.createElement(_components_ColorPicker__WEBPACK_IMPORTED_MODULE_16__["default"], { - value: captionSecondaryColor, - key: 'secondary-color-caption', - onChange: function onChange(slug, newValue) { - setAttributes({ - captionSecondaryColor: newValue - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Secondary Color', 'photo-block'), - defaultColors: photoBlock.palette, - defaultColor: 'transparent', - slug: 'secondary-color-caption' - }))), ('data' === photoMode || 'single' === mode || 'featuredImage' === photoMode) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components_ColorPicker__WEBPACK_IMPORTED_MODULE_16__["default"], { - value: captionBackgroundColor, - key: 'background-color-caption', - onChange: function onChange(slug, newValue) { - setAttributes({ - captionBackgroundColor: newValue - }); - }, - onOpacityChange: function onOpacityChange(newOpacity) { - setAttributes({ - captionBackgroundColorOpacity: newOpacity - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Background Color', 'photo-block'), - defaultColors: photoBlock.palette, - defaultColor: 'transparent', - slug: 'background-color-caption', - alpha: true, - opacity: captionBackgroundColorOpacity - }), /*#__PURE__*/React.createElement(_components_ColorPicker__WEBPACK_IMPORTED_MODULE_16__["default"], { - value: captionTextColor, - key: 'text-color-caption', - onChange: function onChange(slug, newValue) { - setAttributes({ - captionTextColor: newValue - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Text Color', 'photo-block'), - defaultColors: photoBlock.palette, - defaultColor: 'transparent', - slug: 'text-color-caption' - }), /*#__PURE__*/React.createElement(_components_ColorPicker__WEBPACK_IMPORTED_MODULE_16__["default"], { - value: captionLinkColor, - key: 'link-color-caption', - onChange: function onChange(slug, newValue) { - setAttributes({ - captionLinkColor: newValue - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Link Color', 'photo-block'), - defaultColors: photoBlock.palette, - defaultColor: 'transparent', - slug: 'link-color-caption' - }), /*#__PURE__*/React.createElement(_components_ColorPicker__WEBPACK_IMPORTED_MODULE_16__["default"], { - value: captionLinkHoverColor, - key: 'link-hover-color-caption', - onChange: function onChange(slug, newValue) { - setAttributes({ - captionLinkHoverColor: newValue - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Link Color (Hover)', 'photo-block'), - defaultColors: photoBlock.palette, - defaultColor: 'transparent', - slug: 'link-hover-color-caption' - })))); - var advancedInspectorControls = /*#__PURE__*/React.createElement(React.Fragment, null, !hasGlobalStyle(globalStyle) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('HTML Anchor', 'photo-block'), - value: htmlAnchor, - onChange: function onChange(value) { - setAttributes({ - htmlAnchor: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Enter a word or two — without spaces — to make a unique web address just for this caption, called an "anchor." Then, you\'ll be able to link directly to this caption on your page.', 'photo-block') - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Caption CSS Class(es)', 'photo-block'), - value: captionCSSClasses, - onChange: function onChange(value) { - setAttributes({ - imageCSSClasses: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Add CSS class(es) directly to the figcaption tag.', 'photo-block') - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelRow, null, /*#__PURE__*/React.createElement(_components_CustomAttributes__WEBPACK_IMPORTED_MODULE_21__["default"], { - attributes: attributes, - setAttributes: setAttributes - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Hide on Mobile', 'photo-block'), - checked: hideOnMobile, - onChange: function onChange(value) { - setAttributes({ - hideOnMobile: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Hide this photo on mobile devices.', 'photo-block') - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Hide on Tablet', 'photo-block'), - checked: hideOnTablet, - onChange: function onChange(value) { - setAttributes({ - hideOnTablet: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Hide this photo on tablet devices.', 'photo-block') - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Hide on Desktop', 'photo-block'), - checked: hideOnDesktop, - onChange: function onChange(value) { - setAttributes({ - hideOnDesktop: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Hide this photo on desktop devices.', 'photo-block') - }))), canSavePresets && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.BaseControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Global Styles', 'photo-block'), - id: "photo-block-global-styles", - className: "photo-block-global-styles" - }, /*#__PURE__*/React.createElement(_components_GlobalStyles__WEBPACK_IMPORTED_MODULE_25__["default"], _extends({}, props, { - globalStyle: globalStyle - }))))); - - // Set the local inspector controls. - var styleInspectorControls = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelBody, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Padding, Margin, and Border', 'photo-block'), - initialOpen: false, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_27__["default"], null), - className: "photo-block__inspector-panel", - id: "photo-block__photo-dimensions-styles", - uniqueId: uniqueId, - scrollAfterOpen: false - }, /*#__PURE__*/React.createElement(_components_DimensionsResponsive__WEBPACK_IMPORTED_MODULE_10__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Caption Padding', 'photo-block'), - values: captionPaddingSize, - onValuesChange: function onValuesChange(values) { - setAttributes({ - captionPaddingSize: values - }); - }, - labelTop: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Top Padding', 'photo-block'), - labelRight: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Right Padding', 'photo-block'), - labelBottom: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Bottom Padding', 'photo-block'), - labelLeft: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Left Padding', 'photo-block'), - labelAll: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Change Padding', 'photo-block') - }), /*#__PURE__*/React.createElement(_components_DimensionsResponsive__WEBPACK_IMPORTED_MODULE_10__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Caption Margin', 'photo-block'), - values: captionMarginSize, - onValuesChange: function onValuesChange(values) { - setAttributes({ - captionMarginSize: values - }); - }, - labelTop: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Top Margin', 'photo-block'), - labelRight: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Right Margin', 'photo-block'), - labelBottom: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Bottom Margin', 'photo-block'), - labelLeft: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Left Margin', 'photo-block'), - labelAll: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Change Margin', 'photo-block'), - allowNegatives: true - }), /*#__PURE__*/React.createElement(_components_BorderResponsive__WEBPACK_IMPORTED_MODULE_11__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Caption Border', 'photo-block'), - values: captionBorder, - onValuesChange: function onValuesChange(values) { - setAttributes({ - captionBorder: values - }); - }, - labelTop: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Top Border', 'photo-block'), - labelRight: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Right Border', 'photo-block'), - labelBottom: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Bottom Border', 'photo-block'), - labelLeft: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Left Border', 'photo-block'), - labelAll: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Change Border', 'photo-block') - }), /*#__PURE__*/React.createElement(_components_DimensionsResponsive__WEBPACK_IMPORTED_MODULE_10__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Caption Border Radius', 'photo-block'), - values: captionBorderRadius, - onValuesChange: function onValuesChange(values) { - setAttributes({ - captionBorderRadius: values - }); - }, - labelTop: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Top-left Radius', 'photo-block'), - labelRight: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Top-right Radius', 'photo-block'), - labelBottom: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Bottom-right Radius', 'photo-block'), - labelLeft: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Bottom-left Radius', 'photo-block'), - labelAll: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Change Border Radius', 'photo-block'), - isBorderRadius: true - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelBody, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Container Sizing', 'photo-block'), - initialOpen: false, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_28__["default"], null), - className: "photo-block__inspector-panel", - id: "photo-block__photo-container-styles", - uniqueId: uniqueId, - scrollAfterOpen: false - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__container-width" - }, /*#__PURE__*/React.createElement(_components_SizeResponsive__WEBPACK_IMPORTED_MODULE_12__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Width', 'photo-block'), - values: containerWidth, - screenSize: deviceType, - onValuesChange: function onValuesChange(newValues) { - setAttributes({ - containerWidth: newValues - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__container-height" - }, /*#__PURE__*/React.createElement(_components_SizeResponsive__WEBPACK_IMPORTED_MODULE_12__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Height', 'photo-block'), - values: containerHeight, - screenSize: deviceType, - units: heightUnits, - onValuesChange: function onValuesChange(newValues) { - setAttributes({ - containerHeight: newValues - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__container-min-width" - }, /*#__PURE__*/React.createElement(_components_SizeResponsive__WEBPACK_IMPORTED_MODULE_12__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Min Width', 'photo-block'), - values: containerMinWidth, - screenSize: deviceType, - onValuesChange: function onValuesChange(newValues) { - setAttributes({ - containerMinWidth: newValues - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__container-min-height" - }, /*#__PURE__*/React.createElement(_components_SizeResponsive__WEBPACK_IMPORTED_MODULE_12__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Min Height', 'photo-block'), - values: containerMinHeight, - screenSize: deviceType, - units: heightUnits, - onValuesChange: function onValuesChange(newValues) { - setAttributes({ - containerMinHeight: newValues - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__container-max-width" - }, /*#__PURE__*/React.createElement(_components_SizeResponsive__WEBPACK_IMPORTED_MODULE_12__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Max Width', 'photo-block'), - values: containerMaxWidth, - screenSize: deviceType, - onValuesChange: function onValuesChange(newValues) { - setAttributes({ - containerMaxWidth: newValues - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__containermax-height" - }, /*#__PURE__*/React.createElement(_components_SizeResponsive__WEBPACK_IMPORTED_MODULE_12__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Max Height', 'photo-block'), - values: containerMaxHeight, - screenSize: deviceType, - units: heightUnits, - onValuesChange: function onValuesChange(newValues) { - setAttributes({ - containerMaxHeight: newValues - }); - } - })))); - var interfaceTabs = /*#__PURE__*/React.createElement(React.Fragment, null, !hasGlobalStyle(globalStyle) && /*#__PURE__*/React.createElement(React.Fragment, null, settingsInspectorControls, styleInspectorControls), hasGlobalStyle(globalStyle) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components_Notice__WEBPACK_IMPORTED_MODULE_24__["default"], { - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Caption settings are controlled by global styles.', 'photo-block'), - status: "info", - politeness: "polite", - icon: lucide_react__WEBPACK_IMPORTED_MODULE_29__["default"] - }))); - var localToolbar = /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.BlockControls, null, ('data' === photoMode || 'single' === mode || 'featuredImage' === photoMode) && 'overlay' !== captionPosition && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToolbarGroup, { - className: "dlx-photo-block__caption-align-toolbar-buttons" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToolbarButton, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_30__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Align Left', 'photo-block'), - onClick: function onClick() { - setAttributes({ - captionAlign: 'left' - }); - }, - isActive: captionAlign === 'left' - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToolbarButton, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_31__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Align Center', 'photo-block'), - onClick: function onClick() { - setAttributes({ - captionAlign: 'center' - }); - }, - isActive: captionAlign === 'center' - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToolbarButton, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_32__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Align Right', 'photo-block'), - onClick: function onClick() { - setAttributes({ - captionAlign: 'right' - }); - }, - isActive: captionAlign === 'right' - })), !hasGlobalStyle(globalStyle) && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToolbarGroup, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToolbarButton, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_33__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Caption Position', 'photo-block'), - onClick: function onClick() { - setCaptionPositionPopoverVisible(true); - }, - ref: setCaptionPopoverRef - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Position', 'photo-block'))), 'data' !== photoMode && 'featuredImage' !== photoMode && !hasGlobalStyle(globalStyle) && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToolbarGroup, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToolbarButton, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_34__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Caption Mode', 'photo-block'), - onClick: function onClick() { - setModePopoverVisible(true); - }, - ref: setModePopoverRef - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Mode', 'photo-block'))), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToolbarGroup, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToolbarButton, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_35__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Remove Caption', 'photo-block'), - onClick: function onClick() { - setRemoveCaptionModalVisible(true); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Remove', 'photo-block'))), switchModeModalVisible && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Modal, { - title: 'single' === mode ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Switch to Multi-Line Mode', 'photo-block') : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Switch to Single-Line Mode', 'photo-block'), - onRequestClose: function onRequestClose() { - setSwitchModeModalVisible(false); - }, - className: "photo-block__remove-caption-modal" - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__a11y-popover" - }, 'single' === mode && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Switch to multi-line to enable a more freeform caption.', 'photo-block'))), 'advanced' === mode && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Switch to a single-line caption format.', 'photo-block'))), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ButtonGroup, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - variant: "primary", - onClick: function onClick() { - setAttributes({ - mode: 'single' === mode ? 'advanced' : 'single' - }); - setSwitchModeModalVisible(false); - } - }, 'single' === mode ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Switch to Multi-Line', 'photo-block') : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Switch to Single-Line', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - variant: "secondary", - onClick: function onClick() { - setSwitchModeModalVisible(false); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Cancel', 'photo-block'))))), modePopoverVisible && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Popover, { - placement: "bottom-start", - onClose: function onClose() { - setModePopoverVisible(false); - }, - anchor: modePopoverRef, - className: "photo-block__caption-position-popover" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.MenuGroup, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.MenuItem, { - icon: 'single' === mode ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_36__["default"], null) : null, - onClick: function onClick() { - if ('single' === mode) { - return; - } - setModePopoverVisible(false); - setSwitchModeModalVisible(true); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Single Line', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.MenuItem, { - icon: 'advanced' === mode ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_36__["default"], null) : null, - onClick: function onClick() { - if ('advanced' === mode) { - return; - } - setModePopoverVisible(false); - setSwitchModeModalVisible(true); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Multiple Lines', 'photo-block')))), captionPositionPopoverVisible && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Popover, { - placement: "bottom-start", - onClose: function onClose() { - setCaptionPositionPopoverVisible(false); - }, - anchor: captionPopoverRef, - className: "photo-block__caption-position-popover" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.MenuGroup, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.MenuItem, { - icon: 'top' === captionPosition ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_36__["default"], null) : null, - onClick: function onClick() { - setCaptionPosition('top'); - setAttributes({ - captionPosition: 'top' - }); - setCaptionPositionPopoverVisible(false); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Top', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.MenuItem, { - icon: 'overlay' === captionPosition ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_36__["default"], null) : null, - onClick: function onClick() { - setCaptionPosition('overlay'); - setAttributes({ - captionPosition: 'overlay' - }); - setCaptionPositionPopoverVisible(false); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Overlay', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.MenuItem, { - icon: 'bottom' === captionPosition ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_36__["default"], null) : null, - onClick: function onClick() { - setCaptionPosition('bottom'); - setAttributes({ - captionPosition: 'bottom' - }); - setCaptionPositionPopoverVisible(false); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Bottom', 'photo-block')))), removeCaptionModalVisible && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Modal, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Remove Caption', 'photo-block'), - onRequestClose: function onRequestClose() { - setHasCaption(false); - setRemoveCaptionModalVisible(false); - }, - className: "photo-block__remove-caption-modal" - }, /*#__PURE__*/React.createElement("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Are you sure you want to remove the caption?', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ButtonGroup, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - variant: "primary", - onClick: function onClick() { - removeBlocks(clientId); - setCaptionPosition('bottom'); - setRemoveCaptionModalVisible(false); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Remove Caption', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - variant: "secondary", - onClick: function onClick() { - setRemoveCaptionModalVisible(false); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Cancel', 'photo-block'))))); - - /** - * Get a unique ID for the block for inline styling if necessary. - */ - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () { - if (attributes.uniqueId !== uniqueId) { - setAttributes({ - uniqueId: uniqueId - }); - } - }, [blockUniqueId]); - var htmlToReactParser = new HtmlToReactParser(); - - /** - * Get the caption for display. - * - * @param {string} maybeOverlayStyles The overlay styles. - * @param {string} maybeUniqueId The unique ID. - * - * @return {JSX.Element} The caption. - */ - var getCaption = function getCaption() { - var maybeOverlayStyles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; - var maybeUniqueId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - var figClasses = classnames__WEBPACK_IMPORTED_MODULE_1___default()("dlx-photo-block__caption ".concat(globalStyle, " align").concat(captionAlign, " ").concat(globalStyleCSSClassName, " ").concat(maybeOverlayStyles), { - 'has-smart-styles': 'advanced' === mode && 'data' !== photoMode && 'featuredImage' !== photoMode - }); - - // If we're in data mode or a featured image, show the dynamic caption. - if ('data' === photoMode || 'featuredImage' === currentScreen) { - if (captionLoading) { - return /*#__PURE__*/React.createElement(React.Fragment, null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Loading…', 'photo-block'), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Spinner, null)); - } else if ('' !== caption) { - return /*#__PURE__*/React.createElement("figcaption", { - className: figClasses, - id: maybeUniqueId !== null && maybeUniqueId !== void 0 ? maybeUniqueId : uniqueId - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__caption-inner" - }, htmlToReactParser.parse(caption))); - } - return (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('No caption', 'photo-block'); - } - if ('single' === mode) { - return /*#__PURE__*/React.createElement("figcaption", { - className: figClasses, - id: uniqueId - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__caption-inner" - }, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.RichText, { - tagName: "div", - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Write caption…', 'photo-block'), - value: captionManual, - onChange: function onChange(value) { - setAttributes({ - captionManual: value - }); - }, - id: "search-dlx-caption", - name: "search-dlx-caption", - ref: setCaptionInputRef - }))); - } - return /*#__PURE__*/React.createElement("figcaption", { - id: uniqueId, - className: figClasses - }, /*#__PURE__*/React.createElement("div", _extends({ - className: "dlx-photo-block__caption-inner" - }, innerBlockProps))); - }; - - // Set the local inspector controls. - var localInspectorControls = /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.InspectorControls, null, interfaceTabs); - var styles = ''; - if (!hasGlobalStyle(globalStyle)) { - styles = (0,_block_styles__WEBPACK_IMPORTED_MODULE_22__["default"])(attributes, deviceType, uniqueId); - } - - /** - * Get overlay container classes. - */ - var overlayStyles = classnames__WEBPACK_IMPORTED_MODULE_1___default()('dlx-photo-block__caption-overlay', "overlay-type-".concat(overlayBackgroundType), { - 'is-overlay': 'overlay' === captionPosition, - 'overlay-vertical-bottom': 'bottom' === overlayVerticalPosition, - 'overlay-vertical-middle': 'middle' === overlayVerticalPosition, - 'overlay-vertical-top': 'top' === overlayVerticalPosition, - 'overlay-horizontal-left': 'left' === overlayHorizontalPosition, - 'overlay-horizontal-center': 'center' === overlayHorizontalPosition, - 'overlay-horizontal-right': 'right' === overlayHorizontalPosition, - 'caption-vertical-bottom': 'bottom' === overlayCaptionVerticalPosition, - 'caption-vertical-middle': 'middle' === overlayCaptionVerticalPosition, - 'caption-vertical-top': 'top' === overlayCaptionVerticalPosition, - 'caption-horizontal-left': 'left' === overlayCaptionHorizontalPosition, - 'caption-horizontal-center': 'center' === overlayCaptionHorizontalPosition, - 'caption-horizontal-right': 'right' === overlayCaptionHorizontalPosition - }); - var block = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("style", null, styles), /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.InspectorAdvancedControls, null, advancedInspectorControls), localInspectorControls, localToolbar, /*#__PURE__*/React.createElement("div", { - className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('dlx-photo-block__caption-wrapper', { - 'overlay-display-hover': 'overlay' === captionPosition && overlayDisplayOnHover, - 'overlay-slide-down': overlayDisplayAnimation === 'slide-down', - 'overlay-slide-up': overlayDisplayAnimation === 'slide-up', - 'overlay-slide-left': overlayDisplayAnimation === 'slide-left', - 'overlay-slide-right': overlayDisplayAnimation === 'slide-right' - }) - }, 'overlay' === captionPosition && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: overlayStyles, - id: uniqueId - }, getCaption(overlayStyles, uniqueId))), 'overlay' !== captionPosition && /*#__PURE__*/React.createElement(React.Fragment, null, getCaption('', uniqueId)))); - if (null === blockUniqueId) { - return null; - } - - // Return empty if caption isn't visible. - if (!isCaptionVisible) { - return null; - } - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", blockProps, block)); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PhotoCaptionBlock); - -/***/ }), - -/***/ "./src/blocks/photo-caption-block/index.js": -/*!*************************************************!*\ - !*** ./src/blocks/photo-caption-block/index.js ***! - \*************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./block.json */ "./src/blocks/photo-caption-block/block.json"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/captions.js"); -/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./edit */ "./src/blocks/photo-caption-block/edit.js"); - - - - - -(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_0__, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_4__["default"], { - fill: "none" - }), - edit: _edit__WEBPACK_IMPORTED_MODULE_3__["default"], - // Render via PHP - save: function save() { - return /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks.Content, null); - } -}); - -/***/ }), - -/***/ "./src/components/AlignmentToolbar/index.js": -/*!**************************************************!*\ - !*** ./src/components/AlignmentToolbar/index.js ***! - \**************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/AlignmentToolbar/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__); -/** - * Upload data row including Upload|Media Library|URL|Data. - */ - - - - - -/** - * MediaLink component. - * - * @param {Object} props - Component props. - * @return {Function} Component. - */ -var AlignmentToolbar = function AlignmentToolbar(props) { - var attributes = props.attributes, - setAttributes = props.setAttributes; - var align = attributes.align; - - /** - * Retrieve an icon class based on alignment. - * - * @param {string} alignment Alignment. - * @return {string} Icon class. - */ - var getIcon = function getIcon(alignment) { - switch (alignment) { - case 'none': - case '': - return 'align-none'; - case 'full': - return 'align-full-width'; - default: - return "align-".concat(alignment); - } - }; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToolbarGroup, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToolbarDropdownMenu, { - icon: getIcon(align), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Align', 'photo-block'), - className: "dlx-photo-block__alignment-dropdown" - }, function (_ref) { - var onClose = _ref.onClose; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.MenuGroup, { - className: "dlx-photo-block__alignment-dropdown-group" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.MenuItem, { - icon: "align-none", - isSelected: 'none' === align || '' === align, - onClick: function onClick() { - setAttributes({ - align: '' - }); - onClose(); - }, - iconPosition: "left", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Align None', 'photo-block'), - role: "menuitemradio", - className: classnames__WEBPACK_IMPORTED_MODULE_3___default()({ - 'is-active': 'none' === align || '' === align - }) - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('None', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.MenuItem, { - icon: "align-wide", - isSelected: 'wide' === align, - onClick: function onClick() { - setAttributes({ - align: 'wide' - }); - onClose(); - }, - iconPosition: "left", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Align Wide', 'photo-block'), - role: "menuitemradio", - className: classnames__WEBPACK_IMPORTED_MODULE_3___default()({ - 'is-active': 'wide' === align - }) - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Wide', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.MenuItem, { - icon: "align-full-width", - isSelected: 'full' === align, - onClick: function onClick() { - setAttributes({ - align: 'full' - }); - onClose(); - }, - iconPosition: "left", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Align Full', 'photo-block'), - role: "menuitemradio", - className: classnames__WEBPACK_IMPORTED_MODULE_3___default()({ - 'is-active': 'full' === align - }) - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Full', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.MenuItem, { - icon: "align-left", - isSelected: 'left' === align, - onClick: function onClick() { - setAttributes({ - align: 'left' - }); - onClose(); - }, - iconPosition: "left", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Align Left', 'photo-block'), - role: "menuitemradio", - className: classnames__WEBPACK_IMPORTED_MODULE_3___default()({ - 'is-active': 'left' === align - }) - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Left', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.MenuItem, { - icon: "align-center", - isSelected: 'center' === align, - onClick: function onClick() { - setAttributes({ - align: 'center' - }); - onClose(); - }, - iconPosition: "left", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Align Center', 'photo-block'), - role: "menuitemradio", - className: classnames__WEBPACK_IMPORTED_MODULE_3___default()({ - 'is-active': 'center' === align - }) - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Center', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.MenuItem, { - icon: "align-right", - isSelected: 'right' === align, - onClick: function onClick() { - setAttributes({ - align: 'right' - }); - onClose(); - }, - iconPosition: "left", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Align Right', 'photo-block'), - role: "menuitemradio", - className: classnames__WEBPACK_IMPORTED_MODULE_3___default()({ - 'is-active': 'right' === align - }) - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Right', 'photo-block')))); - }))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AlignmentToolbar); - -/***/ }), - -/***/ "./src/components/BackgroundSelector/index.js": -/*!****************************************************!*\ - !*** ./src/components/BackgroundSelector/index.js ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/BackgroundSelector/editor.scss"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var react_hook_form__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-hook-form */ "./node_modules/react-hook-form/dist/index.esm.mjs"); -/* harmony import */ var _ColorPicker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ColorPicker */ "./src/components/ColorPicker/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__); -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - - - - - - - -var BackgroundSelectorControl = function BackgroundSelectorControl(props) { - var mediaUploadButton = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null); - var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState2 = _slicedToArray(_useState, 2), - backgroundSettingsVisible = _useState2[0], - setBackgroundSettingsVisible = _useState2[1]; - var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState4 = _slicedToArray(_useState3, 2), - backgroundSettingsPopoverAnchor = _useState4[0], - setBackgroundSettingsPopoverAnchor = _useState4[1]; - var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState6 = _slicedToArray(_useState5, 2), - isVisible = _useState6[0], - setIsVisible = _useState6[1]; - var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState8 = _slicedToArray(_useState7, 2), - isToggled = _useState8[0], - setIsToggled = _useState8[1]; - - // Background error image state. - var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState10 = _slicedToArray(_useState9, 2), - errorImage = _useState10[0], - setErrorImage = _useState10[1]; - var getDefaultValues = function getDefaultValues() { - return { - url: props.values.url, - id: props.values.id, - backgroundColor: props.values.backgroundColor, - backgroundSize: props.values.backgroundSize, - backgroundPosition: props.values.backgroundPosition, - backgroundRepeat: props.values.backgroundRepeat, - backgroundOpacity: props.values.backgroundOpacity, - backgroundOpacityHover: props.values.backgroundOpacityHover - }; - }; - var _useForm = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_7__.useForm)({ - defaultValues: getDefaultValues() - }), - control = _useForm.control, - setValue = _useForm.setValue, - getValues = _useForm.getValues; - var formValues = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_7__.useWatch)({ - control: control - }); - var label = props.label; - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - props.onValuesChange(formValues); - }, [formValues]); - var getBackgroundRepeat = function getBackgroundRepeat() { - var backgroundRepeat = [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('repeat-x', 'photo-block'), - value: 'repeat-x' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('repeat-y', 'photo-block'), - value: 'repeat-y' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('repeat', 'photo-block'), - value: 'repeat' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('no-repeat', 'photo-block'), - value: 'no-repeat' - }]; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_7__.Controller, { - name: 'backgroundRepeat', - control: control, - render: function render(_ref) { - var _ref$field = _ref.field, - _onChange = _ref$field.onChange, - value = _ref$field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Background Repeat', 'photo-block'), - value: value, - options: backgroundRepeat, - onChange: function onChange(newValue) { - _onChange(newValue); - } - }); - } - }); - }; - - /** - * Close color popup if visible. - */ - var toggleClose = function toggleClose() { - setIsToggled(true); - setIsVisible(!isVisible); - setTimeout(function () { - setIsToggled(false); - }, 500); - }; - var getPopoverContent = function getPopoverContent() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.BaseControl, { - className: "photo-block-background-settings-popover" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-background-selector__row_item" - }, getBackgroundRepeat()), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-background-selector__row_item" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_7__.Controller, { - name: 'backgroundSize', - control: control, - render: function render(_ref2) { - var _ref2$field = _ref2.field, - _onChange2 = _ref2$field.onChange, - value = _ref2$field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Background Size', 'photo-block'), - value: value, - onChange: function onChange(newValue) { - _onChange2(newValue); - } - }); - } - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-background-selector__row_item" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_7__.Controller, { - name: 'backgroundPosition', - control: control, - render: function render(_ref3) { - var _ref3$field = _ref3.field, - _onChange3 = _ref3$field.onChange, - value = _ref3$field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Background Position', 'photo-block'), - value: value, - onChange: function onChange(newValue) { - _onChange3(newValue); - } - }); - } - }))); - }; - var getBackgroundUploader = function getBackgroundUploader() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-background-selector-upload-row" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_7__.Controller, { - name: 'url', - control: control, - render: function render(_ref4) { - var _ref4$field = _ref4.field, - _onChange4 = _ref4$field.onChange, - value = _ref4$field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Background Image', 'photo-block'), - value: value, - onChange: function onChange(newValue) { - _onChange4(newValue); - }, - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Enter URL', 'photo-block') - }); - } - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-background-selector-upload-button" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.MediaUploadCheck, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.MediaUpload, { - onSelect: function onSelect(media) { - if ('image' === media.type) { - setValue('url', media.url); - setValue('id', media.id); - } else { - setErrorImage(true); - setValue('url', ''); - setValue('id', '0'); - mediaUploadButton.current.focus(); - setTimeout(function () { - setErrorImage(false); - }, 8000); - } - }, - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Select Background Image', 'photo-block'), - mode: 'upload', - multiple: false, - allowedTypes: ['image'], - value: getValues('id'), - render: function render(_ref5) { - var open = _ref5.open; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - variant: "secondary", - className: classnames__WEBPACK_IMPORTED_MODULE_6___default()({ - 'photo-block-background-selector-image-button-error': errorImage - }), - onClick: function onClick() { - setErrorImage(false); - open(); - }, - label: !errorImage ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Upload Background Image', 'photo-block') : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Please choose only images.', 'photo-block'), - icon: "format-image", - showTooltip: errorImage, - tooltipPosition: "top center", - ref: mediaUploadButton - }); - } - })))); - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.BaseControl, { - className: "photo-block-background-selector-wrapper" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-background-selector__row_item" - }, getBackgroundUploader()), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-background-selector__row_item photo-block-background-selector__row_item-2" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("h3", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Background Settings', 'photo-block')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - variant: "secondary", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Background Settings', 'photo-block'), - onClick: function onClick() { - if (isToggled) { - setIsToggled(false); - } else { - setIsVisible(!isVisible); - } - }, - icon: "admin-settings", - ref: setBackgroundSettingsPopoverAnchor - }), true === isVisible && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Popover, { - className: "photo-block-component-background-settings-popup", - noArrow: false, - anchorRef: backgroundSettingsPopoverAnchor, - placement: "left", - offset: 10, - headerTitle: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Background Settings', 'photo-block'), - onClose: toggleClose - }, getPopoverContent())), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-background-selector__row_item" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_7__.Controller, { - name: 'backgroundColor', - control: control, - render: function render(_ref6) { - var _ref6$field = _ref6.field, - _onChange5 = _ref6$field.onChange, - value = _ref6$field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ColorPicker__WEBPACK_IMPORTED_MODULE_5__["default"], { - value: value, - key: 'background-color-image', - onChange: function onChange(slug, newValue) { - _onChange5(newValue); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Background Color', 'photo-block'), - defaultColors: photoBlock.palette, - defaultColor: 'transparent', - slug: 'background-color-image' - }); - } - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-background-selector__row_item" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_7__.Controller, { - name: 'backgroundOpacity', - control: control, - render: function render(_ref7) { - var _ref7$field = _ref7.field, - _onChange6 = _ref7$field.onChange, - value = _ref7$field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.RangeControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Background Opacity', 'photo-block'), - value: value, - onChange: function onChange(newValue) { - return _onChange6(newValue); - }, - min: 0, - max: 1, - step: 0.01 - }); - } - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-background-selector__row_item" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_7__.Controller, { - name: 'backgroundOpacityHover', - control: control, - render: function render(_ref8) { - var _ref8$field = _ref8.field, - _onChange7 = _ref8$field.onChange, - value = _ref8$field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.RangeControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Background Opacity Hover', 'photo-block'), - value: value, - onChange: function onChange(newValue) { - return _onChange7(newValue); - }, - min: 0, - max: 1, - step: 0.01 - }); - } - }))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BackgroundSelectorControl); - -/***/ }), - -/***/ "./src/components/BorderResponsive/index.js": -/*!**************************************************!*\ - !*** ./src/components/BorderResponsive/index.js ***! - \**************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/BorderResponsive/editor.scss"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/unlink.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/link.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var react_hook_form__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! react-hook-form */ "./node_modules/react-hook-form/dist/index.esm.mjs"); -/* harmony import */ var _hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../hooks/useDeviceType */ "./src/hooks/useDeviceType.js"); -/* harmony import */ var _HeadingIconResponsive__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../HeadingIconResponsive */ "./src/components/HeadingIconResponsive/index.js"); -/* harmony import */ var _ColorPicker__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../ColorPicker */ "./src/components/ColorPicker/index.js"); -/* harmony import */ var _utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../utils/TypographyHelper */ "./src/utils/TypographyHelper.js"); -/* harmony import */ var _Icons_BorderStyleSolid__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Icons/BorderStyleSolid */ "./src/components/Icons/BorderStyleSolid.js"); -/* harmony import */ var _Icons_BorderStyleDashed__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Icons/BorderStyleDashed */ "./src/components/Icons/BorderStyleDashed.js"); -/* harmony import */ var _Icons_BorderStyleDotted__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Icons/BorderStyleDotted */ "./src/components/Icons/BorderStyleDotted.js"); -/* harmony import */ var _Icons_BorderStyleDouble__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../Icons/BorderStyleDouble */ "./src/components/Icons/BorderStyleDouble.js"); -/* harmony import */ var _hooks_useUnits__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../hooks/useUnits */ "./src/hooks/useUnits.js"); -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - - - - - - - - - - - - - - - -var BorderResponsiveControl = function BorderResponsiveControl(props) { - var label = props.label, - onValuesChange = props.onValuesChange, - values = props.values, - labelTop = props.labelTop, - labelRight = props.labelRight, - labelBottom = props.labelBottom, - labelLeft = props.labelLeft, - labelAll = props.labelAll; - var _useDeviceType = (0,_hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_5__["default"])('Desktop'), - _useDeviceType2 = _slicedToArray(_useDeviceType, 1), - deviceType = _useDeviceType2[0]; - var _useUnits = (0,_hooks_useUnits__WEBPACK_IMPORTED_MODULE_13__["default"])(), - onUnitChange = _useUnits.onUnitChange, - splitValues = _useUnits.splitValues, - getNumericValue = _useUnits.getNumericValue, - getUnitValue = _useUnits.getUnitValue, - startsWithNumber = _useUnits.startsWithNumber; - var _useState = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState2 = _slicedToArray(_useState, 2), - showBorderStylePopoverSync = _useState2[0], - setShowBorderStylePopoverSync = _useState2[1]; - var _useState3 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState4 = _slicedToArray(_useState3, 2), - showBorderStylePopoverTop = _useState4[0], - setShowBorderStylePopoverTop = _useState4[1]; - var _useState5 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState6 = _slicedToArray(_useState5, 2), - showBorderStylePopoverRight = _useState6[0], - setShowBorderStylePopoverRight = _useState6[1]; - var _useState7 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState8 = _slicedToArray(_useState7, 2), - showBorderStylePopoverBottom = _useState8[0], - setShowBorderStylePopoverBottom = _useState8[1]; - var _useState9 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState10 = _slicedToArray(_useState9, 2), - showBorderStylePopoverLeft = _useState10[0], - setShowBorderStylePopoverLeft = _useState10[1]; - var _useState11 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(), - _useState12 = _slicedToArray(_useState11, 2), - borderStyleSyncButtonRef = _useState12[0], - setBorderSyncStyleButtonRef = _useState12[1]; - var _useState13 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(), - _useState14 = _slicedToArray(_useState13, 2), - borderStyleTopButtonRef = _useState14[0], - setBorderStyleTopButtonRef = _useState14[1]; - var _useState15 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(), - _useState16 = _slicedToArray(_useState15, 2), - borderStyleRightButtonRef = _useState16[0], - setBorderStyleRightButtonRef = _useState16[1]; - var _useState17 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(), - _useState18 = _slicedToArray(_useState17, 2), - borderStyleBottomButtonRef = _useState18[0], - setBorderStyleBottomButtonRef = _useState18[1]; - var _useState19 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(), - _useState20 = _slicedToArray(_useState19, 2), - borderStyleLeftButtonRef = _useState20[0], - setBorderStyleLeftButtonRef = _useState20[1]; - var units = props !== null && props !== void 0 && props.units ? props.units : [{ - label: 'PX', - value: 'px' - }, { - label: '%', - value: '%' - }, { - label: 'EM', - value: 'em' - }, { - label: 'REM', - value: 'rem' - }]; - var getDefaultValues = function getDefaultValues() { - return { - mobile: { - top: { - width: props.values.mobile.top.width, - unit: props.values.mobile.top.unit, - color: props.values.mobile.top.color, - borderStyle: props.values.mobile.top.borderStyle - }, - right: { - width: props.values.mobile.right.width, - unit: props.values.mobile.right.unit, - color: props.values.mobile.right.color, - borderStyle: props.values.mobile.right.borderStyle - }, - bottom: { - width: props.values.mobile.bottom.width, - unit: props.values.mobile.bottom.unit, - color: props.values.mobile.bottom.color, - borderStyle: props.values.mobile.bottom.borderStyle - }, - left: { - width: props.values.mobile.left.width, - unit: props.values.mobile.left.unit, - color: props.values.mobile.left.color, - borderStyle: props.values.mobile.left.borderStyle - }, - unitSync: props.values.mobile.unitSync - }, - tablet: { - top: { - width: props.values.tablet.top.width, - unit: props.values.tablet.top.unit, - color: props.values.tablet.top.color, - borderStyle: props.values.tablet.top.borderStyle - }, - right: { - width: props.values.tablet.right.width, - unit: props.values.tablet.right.unit, - color: props.values.tablet.right.color, - borderStyle: props.values.tablet.right.borderStyle - }, - bottom: { - width: props.values.tablet.bottom.width, - unit: props.values.tablet.bottom.unit, - color: props.values.tablet.bottom.color, - borderStyle: props.values.tablet.bottom.borderStyle - }, - left: { - width: props.values.tablet.left.width, - unit: props.values.tablet.left.unit, - color: props.values.tablet.left.color, - borderStyle: props.values.tablet.left.borderStyle - }, - unitSync: props.values.tablet.unitSync - }, - desktop: { - top: { - width: props.values.desktop.top.width, - unit: props.values.desktop.top.unit, - color: props.values.desktop.top.color, - borderStyle: props.values.desktop.top.borderStyle - }, - right: { - width: props.values.desktop.right.width, - unit: props.values.desktop.right.unit, - color: props.values.desktop.right.color, - borderStyle: props.values.desktop.right.borderStyle - }, - bottom: { - width: props.values.desktop.bottom.width, - unit: props.values.desktop.bottom.unit, - color: props.values.desktop.bottom.color, - borderStyle: props.values.desktop.bottom.borderStyle - }, - left: { - width: props.values.desktop.left.width, - unit: props.values.desktop.left.unit, - color: props.values.desktop.left.color, - borderStyle: props.values.desktop.left.borderStyle - }, - unitSync: props.values.desktop.unitSync - } - }; - }; - var _useForm = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_14__.useForm)({ - defaultValues: getDefaultValues() - }), - control = _useForm.control, - setValue = _useForm.setValue, - getValues = _useForm.getValues; - var formValues = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_14__.useWatch)({ - control: control - }); - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () { - onValuesChange(formValues); - }, [formValues]); - - /** - * Change the all values in parent. - * - * @param {number} value Value to change to. - * @param {string} key The key to change. - */ - var changeAllValues = function changeAllValues(value, key) { - if ('color' === key) { - var oldValues = getValues(deviceType); - oldValues.top[key] = value; - oldValues.right[key] = value; - oldValues.bottom[key] = value; - oldValues.left[key] = value; - setValue(deviceType, oldValues); - return; - } - if (startsWithNumber(value)) { - var newValuesSplit = splitValues(value); - var numericValue = getNumericValue(newValuesSplit); - var unitValue = getUnitValue(newValuesSplit); - var _oldValues = getValues(deviceType); - _oldValues.top[key] = numericValue; - _oldValues.right[key] = numericValue; - _oldValues.bottom[key] = numericValue; - _oldValues.left[key] = numericValue; - setValue(deviceType, _oldValues); - syncUnits(unitValue); - } else { - var _oldValues2 = getValues(deviceType); - _oldValues2.top[key] = value; - _oldValues2.right[key] = value; - _oldValues2.bottom[key] = value; - _oldValues2.left[key] = value; - setValue(deviceType, _oldValues2); - syncUnits(value); - } - }; - - /** - * Sync all unit values at once. - * - * @param {string} newUnit The new unit value. - */ - var syncUnits = function syncUnits(newUnit) { - // Toggle unit sync value. - var currentValues = getValues(deviceType); - currentValues.top.unit = newUnit; - currentValues.right.unit = newUnit; - currentValues.bottom.unit = newUnit; - currentValues.left.unit = newUnit; - setValue(deviceType, currentValues); - }; - - /** - * Change the unit for a given key. - * - * @param {string} value The new unit value. - * @param {string} key The key to change. - * - * @return {void} - */ - var onDimensionChange = function onDimensionChange(value, key) { - changeAllValues(value, key); - }; - - /** - * Get the sync value for the current device type. - * - * @return {boolean} The sync value. - */ - var isSync = function isSync() { - var sync = (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.geHierarchicalPlaceholderValue)(values, deviceType, getValues(deviceType).unitSync, 'unitSync'); - return sync; - }; - - /** - * Get the max unit for a given unit. - * - * @param {string} unitVar The unit to get the max value for. - * @param {string} subUnit The sub unit to get the max value for. - * - * @return {number} The max value for the current unit. - */ - var getRangeControlMax = function getRangeControlMax(unitVar) { - var subUnit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - // Get current unit. - var unit = (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.getHierarchicalValueUnit)(props.values, deviceType, getValues(deviceType)[unitVar][subUnit], unitVar, subUnit); - - // Get the max value for the current unit. - var max = 100; - switch (unit) { - case 'px': - max = 1000; - break; - case '%': - max = 100; - break; - case 'em': - max = 10; - break; - case 'rem': - max = 10; - break; - case 'vw': - max = 100; - break; - default: - max = 100; - break; - } - return max; - }; - - /** - * Get the range control step for a given unit. - * - * @param {string} unitVar The unit variable to get the step for. - * @param {string} subUnit The sub unit to get the step for. - * - * @return {number} The max value for the current unit. - */ - var getRangeControlStep = function getRangeControlStep(unitVar) { - var subUnit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - // Get current unit. - var unit = (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.getHierarchicalValueUnit)(props.values, deviceType, getValues(deviceType)[unitVar][subUnit], unitVar, subUnit); - - // Get the max value for the current unit. - var step = 1; - switch (unit) { - case 'px': - step = 1; - break; - case '%': - step = 1; - break; - case 'em': - step = 0.1; - break; - case 'rem': - step = 0.1; - break; - case 'vw': - step = 1; - break; - default: - step = 1; - break; - } - return step; - }; - - /** - * Get the border style being used (solid, dashed, dotted, double). - * - * @param {string} unitVar Var used to check relative to device type (typically top, left, right, bottom). - * @return {string} border style (solid, dashed, dotted, double). - */ - var getBorderStyle = function getBorderStyle(unitVar) { - // Get current unit. - var borderStyle = (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.getHierarchicalValueUnit)(props.values, deviceType, getValues(deviceType)[unitVar].borderStyle, unitVar, 'borderStyle'); - return borderStyle; - }; - - /** - * Get the border icon for the border style being used (solid, dashed, dotted, double). - * - * @param {string} unitVar Var used to check relative to device type (typically top, left, right, bottom). - * - * @return {Element} The border icon. - */ - var getBorderStyleIcon = function getBorderStyleIcon(unitVar) { - switch (getBorderStyle(unitVar)) { - case 'dashed': - return _Icons_BorderStyleDashed__WEBPACK_IMPORTED_MODULE_10__["default"]; - case 'dotted': - return _Icons_BorderStyleDotted__WEBPACK_IMPORTED_MODULE_11__["default"]; - case 'double': - return _Icons_BorderStyleDouble__WEBPACK_IMPORTED_MODULE_12__["default"]; - default: - return _Icons_BorderStyleSolid__WEBPACK_IMPORTED_MODULE_9__["default"]; - } - }; - - /** - * Get the button group used for choosing border style. - * - * @param {string} unitVar The unit variable to get the button group for. - * @param {Function} setPopoverClosed Reference to closing the popover. - * @return { Element } button group - */ - var getPopoverButtonGroup = function getPopoverButtonGroup(unitVar, setPopoverClosed) { - return /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__border-responsive-sync-interface-border-style-popover" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.BaseControl, null, /*#__PURE__*/React.createElement("h3", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Border Style', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ButtonGroup, { - className: "dlx-photo-block__border-responsive-sync-interface-border-style-popover-buttons" - }, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".").concat(unitVar, ".borderStyle"), - control: control, - render: function render(_ref) { - var _ref$field = _ref.field, - onChange = _ref$field.onChange, - value = _ref$field.value; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - icon: _Icons_BorderStyleSolid__WEBPACK_IMPORTED_MODULE_9__["default"], - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Solid', 'photo-block'), - onClick: function onClick() { - onChange('solid'); - setPopoverClosed(true); - }, - isPressed: 'solid' === getBorderStyle(unitVar) - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Solid', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - icon: _Icons_BorderStyleDashed__WEBPACK_IMPORTED_MODULE_10__["default"], - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Dashed', 'photo-block'), - isPressed: 'dashed' === getBorderStyle(unitVar), - onClick: function onClick() { - onChange('dashed'); - setPopoverClosed(true); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Dashed', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - icon: _Icons_BorderStyleDotted__WEBPACK_IMPORTED_MODULE_11__["default"], - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Dotted', 'photo-block'), - isPressed: 'dotted' === getBorderStyle(unitVar), - onClick: function onClick() { - onChange('dotted'); - setPopoverClosed(true); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Dotted', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - icon: _Icons_BorderStyleDouble__WEBPACK_IMPORTED_MODULE_12__["default"], - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Double', 'photo-block'), - isPressed: 'double' === getBorderStyle(unitVar), - onClick: function onClick() { - onChange('double'); - setPopoverClosed(true); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Double', 'photo-block'))); - } - })))); - }; - var getSyncInterface = function getSyncInterface() { - if (!isSync()) { - return null; - } - return /*#__PURE__*/React.createElement("div", { - className: classnames__WEBPACK_IMPORTED_MODULE_4___default()('dlx-photo-block__border-responsive-sync-interface') - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__border-responsive-sync-interface-unit" - }, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".top.color"), - control: control, - render: function render(_ref2) { - var _ref2$field = _ref2.field, - _onChange = _ref2$field.onChange, - value = _ref2$field.value; - return /*#__PURE__*/React.createElement(_ColorPicker__WEBPACK_IMPORTED_MODULE_7__["default"], { - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.geHierarchicalPlaceholderValue)(values, deviceType, value, 'top', 'color'), - onChange: function onChange(slug, newValue) { - _onChange(newValue); - onDimensionChange(newValue, 'color'); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Border Color', 'photo-block'), - defaultColors: photoBlock.palette, - defaultColor: '#FFFFFF', - slug: 'border-color-sync', - hideLabelFromVision: true, - alpha: true - }); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - className: "dlx-photo-block__border-responsive-sync-interface-border-style", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Border Style', 'photo-block'), - icon: getBorderStyleIcon('top'), - onClick: function onClick() { - setShowBorderStylePopoverSync(!showBorderStylePopoverSync); - }, - ref: setBorderSyncStyleButtonRef - }), showBorderStylePopoverSync && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Popover, { - position: "bottom center", - onClose: function onClose() { - setShowBorderStylePopoverSync(false); - }, - anchorRef: borderStyleSyncButtonRef, - noArrow: false - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__border-responsive-sync-interface-border-style-popover" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.BaseControl, null, /*#__PURE__*/React.createElement("h3", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Border Style', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ButtonGroup, { - className: "dlx-photo-block__border-responsive-sync-interface-border-style-popover-buttons" - }, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".top.borderStyle"), - control: control, - render: function render(_ref3) { - var _ref3$field = _ref3.field, - onChange = _ref3$field.onChange, - value = _ref3$field.value; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - icon: _Icons_BorderStyleSolid__WEBPACK_IMPORTED_MODULE_9__["default"], - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Solid', 'photo-block'), - onClick: function onClick() { - onChange('solid'); - changeAllValues('solid', 'borderStyle'); - - // Close the popover. - setShowBorderStylePopoverSync(false); - }, - isPressed: 'solid' === getBorderStyle('top') - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Solid', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - icon: _Icons_BorderStyleDashed__WEBPACK_IMPORTED_MODULE_10__["default"], - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Dashed', 'photo-block'), - isPressed: 'dashed' === getBorderStyle('top'), - onClick: function onClick() { - onChange('dashed'); - changeAllValues('dashed', 'borderStyle'); - - // Close the popover. - setShowBorderStylePopoverSync(false); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Dashed', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - icon: _Icons_BorderStyleDotted__WEBPACK_IMPORTED_MODULE_11__["default"], - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Dotted', 'photo-block'), - isPressed: 'dotted' === getBorderStyle('top'), - onClick: function onClick() { - onChange('dotted'); - changeAllValues('dotted', 'borderStyle'); - - // Close the popover. - setShowBorderStylePopoverSync(false); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Dotted', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - icon: _Icons_BorderStyleDouble__WEBPACK_IMPORTED_MODULE_12__["default"], - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Double', 'photo-block'), - isPressed: 'double' === getBorderStyle('top'), - onClick: function onClick() { - onChange('double'); - changeAllValues('double', 'borderStyle'); - - // Close the popover. - setShowBorderStylePopoverSync(false); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Double', 'photo-block'))); - } - }))))), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".top.width"), - control: control, - render: function render(_ref4) { - var _ref4$field = _ref4.field, - _onChange2 = _ref4$field.onChange, - value = _ref4$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: labelAll, - className: "dlx-photo-block__border-responsive-sync-interface-input", - value: value, - placeholder: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.geHierarchicalPlaceholderValue)(values, deviceType, getValues("".concat(deviceType, ".top.width")), 'top', 'width'), - type: "text", - min: 0, - step: 1, - max: "Infinity", - onChange: function onChange(newValue) { - _onChange2(newValue); - onDimensionChange(newValue, 'width'); - }, - hideLabelFromVision: true, - inputMode: "numeric", - autoComplete: "off" - }); - } - }), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".top.unit"), - control: control, - render: function render(_ref5) { - var _ref5$field = _ref5.field, - _onChange3 = _ref5$field.onChange, - value = _ref5$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.SelectControl, { - className: "dlx-photo-block__border-responsive-sync-interface-select", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Unit', 'photo-block'), - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.getHierarchicalValueUnit)(props.values, deviceType, getValues("".concat(deviceType, ".top.unit")), 'top', 'unit'), - options: units, - onChange: function onChange(newValue) { - _onChange3(newValue); - syncUnits(newValue); - }, - hideLabelFromVision: true - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__border-responsive-sync-interface-range-sync" - }, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".top.width"), - control: control, - render: function render(_ref6) { - var _ref6$field = _ref6.field, - _onChange4 = _ref6$field.onChange, - value = _ref6$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.RangeControl, { - className: "dlx-photo-block__border-responsive-sync-interface-range", - label: labelAll, - value: Number((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.geHierarchicalPlaceholderValue)(values, deviceType, value, 'top', 'width')), - min: 0, - max: getRangeControlMax('top', 'unit'), - step: getRangeControlStep('top', 'unit'), - onChange: function onChange(newValue) { - _onChange4(newValue); - onDimensionChange(newValue, 'width'); - }, - withInputField: false, - hideLabelFromVision: true - }); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - variant: "secondary", - className: "dlx-photo-block__border-responsive-sync-interface-button", - onClick: function onClick() { - // Disable syncing. - var oldValues = getValues(deviceType); - oldValues.unitSync = false; - setValue(deviceType, oldValues); - syncUnits((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.getHierarchicalValueUnit)(props.values, deviceType, getValues("".concat(deviceType, ".top.unit")), 'top', 'unit')); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Modify all values separately.', 'photo-block'), - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_15__["default"], null) - }))); - }; - - /** - * Get the manual interface. - * - * @return {Element} The manual interface. - */ - var getManualInterface = function getManualInterface() { - if (isSync()) { - return null; - } - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: classnames__WEBPACK_IMPORTED_MODULE_4___default()('dlx-photo-block__border-responsive-manual-interface') - }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__border-responsive-manual-interface-item dlx-photo-block__border-responsive-manual-interface-item-top" - }, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".top.color"), - control: control, - render: function render(_ref7) { - var _ref7$field = _ref7.field, - _onChange5 = _ref7$field.onChange, - value = _ref7$field.value; - return /*#__PURE__*/React.createElement(_ColorPicker__WEBPACK_IMPORTED_MODULE_7__["default"], { - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.geHierarchicalPlaceholderValue)(values, deviceType, value, 'top', 'color'), - onChange: function onChange(slug, newValue) { - _onChange5(newValue); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Border Color', 'photo-block'), - defaultColors: photoBlock.palette, - defaultColor: '#000000', - slug: 'border-color-top', - hideLabelFromVision: true, - alpha: true - }); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - className: "dlx-photo-block__border-responsive-sync-interface-border-style", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Border Style', 'photo-block'), - icon: getBorderStyleIcon('top'), - onClick: function onClick() { - setShowBorderStylePopoverTop(!showBorderStylePopoverTop); - }, - ref: setBorderStyleTopButtonRef - }), showBorderStylePopoverTop && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Popover, { - position: "bottom center", - onClose: function onClose() { - setShowBorderStylePopoverTop(false); - }, - anchorRef: borderStyleTopButtonRef, - noArrow: false - }, getPopoverButtonGroup('top', setShowBorderStylePopoverTop)), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".top.width"), - control: control, - render: function render(_ref8) { - var _ref8$field = _ref8.field, - _onChange6 = _ref8$field.onChange, - value = _ref8$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: labelTop, - className: "dlx-photo-block__border-responsive-sync-interface-input", - value: value, - placeholder: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.geHierarchicalPlaceholderValue)(values, deviceType, value, 'top', 'width'), - type: "text", - min: 0, - onChange: function onChange(newValue) { - onUnitChange(newValue, _onChange6, setValue, deviceType, 'top.unit'); - }, - hideLabelFromVision: true, - inputMode: "numeric", - autoComplete: "off" - }); - } - }), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".top.unit"), - control: control, - render: function render(_ref9) { - var _ref9$field = _ref9.field, - _onChange7 = _ref9$field.onChange, - value = _ref9$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.SelectControl, { - className: "dlx-photo-block__border-responsive-sync-interface-select", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Unit', 'photo-block'), - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.getHierarchicalValueUnit)(props.values, deviceType, value, 'top', 'unit'), - options: units, - onChange: function onChange(newValue) { - _onChange7(newValue); - }, - hideLabelFromVision: true - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__border-responsive-manual-interface-item dlx-photo-block__border-responsive-manual-interface-item-right" - }, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".right.color"), - control: control, - render: function render(_ref10) { - var _ref10$field = _ref10.field, - _onChange8 = _ref10$field.onChange, - value = _ref10$field.value; - return /*#__PURE__*/React.createElement(_ColorPicker__WEBPACK_IMPORTED_MODULE_7__["default"], { - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.geHierarchicalPlaceholderValue)(values, deviceType, value, 'right', 'color'), - onChange: function onChange(slug, newValue) { - _onChange8(newValue); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Border Color', 'photo-block'), - defaultColors: photoBlock.palette, - defaultColor: '#000000', - slug: 'border-color-right', - hideLabelFromVision: true, - alpha: true - }); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - className: "dlx-photo-block__border-responsive-sync-interface-border-style", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Border Style', 'photo-block'), - icon: getBorderStyleIcon('right'), - onClick: function onClick() { - setShowBorderStylePopoverRight(!showBorderStylePopoverRight); - }, - ref: setBorderStyleRightButtonRef - }), showBorderStylePopoverRight && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Popover, { - placement: "left", - onClose: function onClose() { - setShowBorderStylePopoverRight(false); - }, - anchorRef: borderStyleRightButtonRef, - noArrow: false - }, getPopoverButtonGroup('right', setShowBorderStylePopoverRight)), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".right.width"), - control: control, - render: function render(_ref11) { - var _ref11$field = _ref11.field, - _onChange9 = _ref11$field.onChange, - value = _ref11$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: labelRight, - className: "dlx-photo-block__border-responsive-sync-interface-input", - value: value, - placeholder: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.geHierarchicalPlaceholderValue)(values, deviceType, value, 'right', 'width'), - type: "text", - min: 0, - onChange: function onChange(newValue) { - onUnitChange(newValue, _onChange9, setValue, deviceType, 'right.unit'); - }, - hideLabelFromVision: true, - inputMode: "numeric", - autoComplete: "off" - }); - } - }), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".right.unit"), - control: control, - render: function render(_ref12) { - var _ref12$field = _ref12.field, - _onChange10 = _ref12$field.onChange, - value = _ref12$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.SelectControl, { - className: "dlx-photo-block__border-responsive-sync-interface-select", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Unit', 'photo-block'), - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.getHierarchicalValueUnit)(props.values, deviceType, value, 'right', 'unit'), - options: units, - onChange: function onChange(newValue) { - _onChange10(newValue); - }, - hideLabelFromVision: true - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__border-responsive-manual-interface-item dlx-photo-block__border-responsive-manual-interface-item-bottom" - }, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".bottom.color"), - control: control, - render: function render(_ref13) { - var _ref13$field = _ref13.field, - _onChange11 = _ref13$field.onChange, - value = _ref13$field.value; - return /*#__PURE__*/React.createElement(_ColorPicker__WEBPACK_IMPORTED_MODULE_7__["default"], { - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.geHierarchicalPlaceholderValue)(values, deviceType, value, 'bottom', 'color'), - onChange: function onChange(slug, newValue) { - _onChange11(newValue); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Border Color', 'photo-block'), - defaultColors: photoBlock.palette, - defaultColor: '#000000', - slug: 'border-color-bottom', - hideLabelFromVision: true, - alpha: true - }); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - className: "dlx-photo-block__border-responsive-sync-interface-border-style", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Border Style', 'photo-block'), - icon: getBorderStyleIcon('bottom'), - onClick: function onClick() { - setShowBorderStylePopoverBottom(!showBorderStylePopoverBottom); - }, - ref: setBorderStyleBottomButtonRef - }), showBorderStylePopoverBottom && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Popover, { - position: "bottom center", - onClose: function onClose() { - setShowBorderStylePopoverBottom(false); - }, - anchorRef: borderStyleBottomButtonRef, - noArrow: false - }, getPopoverButtonGroup('bottom', setShowBorderStylePopoverBottom)), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".bottom.width"), - control: control, - render: function render(_ref14) { - var _ref14$field = _ref14.field, - _onChange12 = _ref14$field.onChange, - value = _ref14$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: labelBottom, - className: "dlx-photo-block__border-responsive-sync-interface-input", - value: value, - placeholder: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.geHierarchicalPlaceholderValue)(values, deviceType, value, 'bottom', 'width'), - type: "text", - min: 0, - step: 1, - max: "Infinity", - onChange: function onChange(newValue) { - onUnitChange(newValue, _onChange12, setValue, deviceType, 'bottom.unit'); - }, - hideLabelFromVision: true, - inputMode: "numeric", - autoComplete: "off" - }); - } - }), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".bottom.unit"), - control: control, - render: function render(_ref15) { - var _ref15$field = _ref15.field, - _onChange13 = _ref15$field.onChange, - value = _ref15$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.SelectControl, { - className: "dlx-photo-block__border-responsive-sync-interface-select", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Unit', 'photo-block'), - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.getHierarchicalValueUnit)(props.values, deviceType, value, 'bottom', 'unit'), - options: units, - onChange: function onChange(newValue) { - _onChange13(newValue); - }, - hideLabelFromVision: true - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__border-responsive-manual-interface-item dlx-photo-block__border-responsive-manual-interface-item-left" - }, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".left.color"), - control: control, - render: function render(_ref16) { - var _ref16$field = _ref16.field, - _onChange14 = _ref16$field.onChange, - value = _ref16$field.value; - return /*#__PURE__*/React.createElement(_ColorPicker__WEBPACK_IMPORTED_MODULE_7__["default"], { - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.geHierarchicalPlaceholderValue)(values, deviceType, value, 'left', 'color'), - onChange: function onChange(slug, newValue) { - _onChange14(newValue); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Border Color', 'photo-block'), - defaultColors: photoBlock.palette, - defaultColor: '#000000', - slug: 'border-color-left', - hideLabelFromVision: true, - alpha: true - }); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - className: "dlx-photo-block__border-responsive-sync-interface-border-style", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Border Style', 'photo-block'), - icon: getBorderStyleIcon('left'), - onClick: function onClick() { - setShowBorderStylePopoverLeft(!showBorderStylePopoverLeft); - }, - ref: setBorderStyleLeftButtonRef - }), showBorderStylePopoverLeft && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Popover, { - position: "Left center", - onClose: function onClose() { - setShowBorderStylePopoverLeft(false); - }, - anchorRef: borderStyleLeftButtonRef, - noArrow: false - }, getPopoverButtonGroup('left', setShowBorderStylePopoverLeft)), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".left.width"), - control: control, - render: function render(_ref17) { - var _ref17$field = _ref17.field, - _onChange15 = _ref17$field.onChange, - value = _ref17$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: labelLeft, - className: "dlx-photo-block__border-responsive-sync-interface-input", - value: value, - placeholder: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.geHierarchicalPlaceholderValue)(values, deviceType, value, 'left', 'width'), - type: "text", - min: 0, - step: 1, - max: "Infinity", - onChange: function onChange(newValue) { - onUnitChange(newValue, _onChange15, setValue, deviceType, 'left.unit'); - }, - hideLabelFromVision: true, - inputMode: "numeric", - autoComplete: "off" - }); - } - }), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_14__.Controller, { - name: "".concat(deviceType, ".left.unit"), - control: control, - render: function render(_ref18) { - var _ref18$field = _ref18.field, - _onChange16 = _ref18$field.onChange, - value = _ref18$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.SelectControl, { - className: "dlx-photo-block__border-responsive-sync-interface-select", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Unit', 'photo-block'), - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_8__.getHierarchicalValueUnit)(props.values, deviceType, value, 'left', 'unit'), - options: units, - onChange: function onChange(newValue) { - _onChange16(newValue); - }, - hideLabelFromVision: true - }); - } - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - variant: "secondary", - className: "dlx-photo-block__border-responsive-sync-manual-button", - onClick: function onClick() { - var oldValues = getValues(deviceType); - oldValues.unitSync = true; - setValue(deviceType, oldValues); - }, - isPressed: false, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_16__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Edit all values together', 'photo-block') - })))); - }; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.BaseControl, { - className: "dlx-photo-block__border-responsive" - }, /*#__PURE__*/React.createElement(_HeadingIconResponsive__WEBPACK_IMPORTED_MODULE_6__["default"], { - heading: label, - screenSize: deviceType - }), getSyncInterface(), getManualInterface())); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BorderResponsiveControl); - -/***/ }), - -/***/ "./src/components/CSSGramButtonGroup/index.js": -/*!****************************************************!*\ - !*** ./src/components/CSSGramButtonGroup/index.js ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/CSSGramButtonGroup/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/* harmony import */ var _CSSGramButtonPreview__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../CSSGramButtonPreview */ "./src/components/CSSGramButtonPreview/index.js"); -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -/** - * Upload data row including Upload|Media Library|URL|Data. - */ - - - - - - - -var cssGramOptions = [{ - value: 'none', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('None', 'photo-block') -}, { - value: '1977', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('1977', 'photo-block') -}, { - value: 'aden', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Aden', 'photo-block') -}, { - value: 'brannan', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Brannan', 'photo-block') -}, { - value: 'brooklyn', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Brooklyn', 'photo-block') -}, { - value: 'clarendon', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Clarendon', 'photo-block') -}, { - value: 'earlybird', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Earlybird', 'photo-block') -}, { - value: 'gingham', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Gingham', 'photo-block') -}, { - value: 'hudson', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Hudson', 'photo-block') -}, { - value: 'inkwell', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Inkwell', 'photo-block') -}, { - value: 'kelvin', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Kelvin', 'photo-block') -}, { - value: 'lark', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Lark', 'photo-block') -}, { - value: 'lofi', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Lo-Fi', 'photo-block') -}, { - value: 'maven', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Maven', 'photo-block') -}, { - value: 'mayfair', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Mayfair', 'photo-block') -}, { - value: 'moon', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Moon', 'photo-block') -}, { - value: 'nashville', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Nashville', 'photo-block') -}, { - value: 'perpetua', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Perpetua', 'photo-block') -}, { - value: 'reyes', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Reyes', 'photo-block') -}, { - value: 'rise', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Rise', 'photo-block') -}, { - value: 'slumber', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Slumber', 'photo-block') -}, { - value: 'stinson', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Stinson', 'photo-block') -}, { - value: 'toaster', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Toaster', 'photo-block') -}, { - value: 'valencia', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Valencia', 'photo-block') -}, { - value: 'walden', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Walden', 'photo-block') -}, { - value: 'willow', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Willow', 'photo-block') -}, { - value: 'xpro2', - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('X-Pro II', 'photo-block') -}]; -/** - * CSSGramButtonGroup component. - * - * @param {Object} props - Component props. - * @return {Function} Component. - */ -var CSSGramButtonGroup = function CSSGramButtonGroup(props) { - var attributes = props.attributes, - setAttributes = props.setAttributes, - blockUniqueId = props.blockUniqueId; - var cssGramFilter = attributes.cssGramFilter; - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(function (select) { - var _select = select((0,_store__WEBPACK_IMPORTED_MODULE_5__.blockStore)(blockUniqueId)), - getImageData = _select.getImageData; - return { - imageData: getImageData() - }; - }), - imageData = _useSelect.imageData; - var _useState = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(cssGramFilter), - _useState2 = _slicedToArray(_useState, 2), - currentFilter = _useState2[0], - setCurrentFilter = _useState2[1]; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.BaseControl, { - className: "dlx-photo-block__css-gram-button-group" - }, /*#__PURE__*/React.createElement("h3", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Select a CSS Filter', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ButtonGroup, null, cssGramOptions.map(function (option) { - return /*#__PURE__*/React.createElement(_CSSGramButtonPreview__WEBPACK_IMPORTED_MODULE_6__["default"], { - key: option.value, - isSelected: currentFilter === option.value, - onClick: function onClick() { - setAttributes({ - cssGramFilter: option.value - }); - setCurrentFilter(option.value); - }, - label: option.label, - filter: option.value, - fullUrl: imageData.url, - photo: attributes.imageData - }); - })))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CSSGramButtonGroup); - -/***/ }), - -/***/ "./src/components/CSSGramButtonPreview/index.js": -/*!******************************************************!*\ - !*** ./src/components/CSSGramButtonPreview/index.js ***! - \******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/CSSGramButtonPreview/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -/** - * Upload data row including Upload|Media Library|URL|Data. - */ - - - - - - - -/** - * CSSGramButtonGroup component. - * - * @param {Object} props - Component props. - * @return {Function} Component. - */ -var CSSGramButtonPreview = function CSSGramButtonPreview(props) { - var filter = props.filter, - label = props.label, - isSelected = props.isSelected, - fullUrl = props.fullUrl, - photo = props.photo; - var _useState = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(null), - _useState2 = _slicedToArray(_useState, 2), - buttonRef = _useState2[0], - setButtonRef = _useState2[1]; - var _useState3 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState4 = _slicedToArray(_useState3, 2), - showPopOver = _useState4[0], - setShowPopOver = _useState4[1]; - var handlePopoverOpen = function handlePopoverOpen() { - setShowPopOver(true); - buttonRef.focus(); - }; - var handlePopoverClose = function handlePopoverClose() { - setShowPopOver(false); - }; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: isSelected ? 'primary' : 'secondary', - onClick: function onClick() { - return props.onClick(filter); - }, - onMouseEnter: function onMouseEnter() { - return handlePopoverOpen(true); - }, - onMouseLeave: function onMouseLeave() { - return handlePopoverClose(false); - }, - ref: setButtonRef - }, label), showPopOver && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Popover, { - className: "dlx-photo-block__css-gram-image-popover", - placement: "left-start", - anchor: buttonRef, - onClose: function onClose() { - setShowPopOver(false); - }, - offset: 10, - noArrow: false - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__css-gram-image-popover-wrapper" - }, /*#__PURE__*/React.createElement("img", { - src: fullUrl, - className: classnames__WEBPACK_IMPORTED_MODULE_3___default()("photo-block-".concat(filter), { - 'has-css-gram': filter !== 'none' - }), - width: photo.width, - height: photo.height, - style: { - maxWidth: '100%', - height: 'auto' - }, - alt: "" - })))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CSSGramButtonPreview); - -/***/ }), - -/***/ "./src/components/CaptionAppender/index.js": -/*!*************************************************!*\ - !*** ./src/components/CaptionAppender/index.js ***! - \*************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/CaptionAppender/editor.scss"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/captions.js"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -// eslint-disable-next-line no-unused-vars - - - - - - - - - -var CaptionAppender = function CaptionAppender(_ref) { - var numBlocks = _ref.numBlocks, - clientId = _ref.clientId, - blockUniqueId = _ref.blockUniqueId; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useDispatch)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__.store), - insertBlock = _useDispatch.insertBlock, - updateBlockAttributes = _useDispatch.updateBlockAttributes; - var _useDispatch2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useDispatch)((0,_store__WEBPACK_IMPORTED_MODULE_7__.blockStore)(blockUniqueId)), - setHasCaption = _useDispatch2.setHasCaption; - - /** - * Add a caption block to the main block. - */ - var appendBlock = function appendBlock() { - var newBlocks = (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__.createBlock)('dlxplugins/photo-caption-block'); - insertBlock(newBlocks, undefined, clientId); - updateBlockAttributes(clientId, { - hasCaption: true - }); - }; - - // Exit if there are innerblocks. - if (numBlocks !== 0) { - return null; - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-admin__caption-appender" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - variant: "primary", - className: "dlx-photo-block__add-caption", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Add Caption', 'photo-block'), - onClick: function onClick() { - setHasCaption(true); - appendBlock(); - }, - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(lucide_react__WEBPACK_IMPORTED_MODULE_8__["default"], null) - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Add Caption', 'photo-block'))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CaptionAppender); - -/***/ }), - -/***/ "./src/components/ColorPicker/index.js": -/*!*********************************************!*\ - !*** ./src/components/ColorPicker/index.js ***! - \*********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/ColorPicker/editor.scss"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var hex_to_rgba__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! hex-to-rgba */ "./node_modules/hex-to-rgba/build/index.js"); -/* harmony import */ var hex_to_rgba__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(hex_to_rgba__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var rgb2hex__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rgb2hex */ "./node_modules/rgb2hex/index.js"); -/* harmony import */ var rgb2hex__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(rgb2hex__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__); -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -/** - * Color Picker. - * - * Credit: Forked from @generateblocks - */ - - - - - - - - -var ColorPickerControl = function ColorPickerControl(props) { - var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(props.slug), - _useState2 = _slicedToArray(_useState, 2), - colorKey = _useState2[0], - setColorKey = _useState2[1]; - var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState4 = _slicedToArray(_useState3, 2), - isVisible = _useState4[0], - setIsVisible = _useState4[1]; - var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(props.value), - _useState6 = _slicedToArray(_useState5, 2), - color = _useState6[0], - setColor = _useState6[1]; - var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(props.opacity), - _useState8 = _slicedToArray(_useState7, 2), - opacity = _useState8[0], - setOpacity = _useState8[1]; - var defaultColor = props.defaultColor, - defaultColors = props.defaultColors, - value = props.value, - _onChange = props.onChange, - onOpacityChange = props.onOpacityChange, - label = props.label, - _props$alpha = props.alpha, - alpha = _props$alpha === void 0 ? false : _props$alpha, - slug = props.slug, - _props$hideLabelFromV = props.hideLabelFromVision, - hideLabelFromVision = _props$hideLabelFromV === void 0 ? false : _props$hideLabelFromV; - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - setColor(value); - }, [value]); - - /** - * Return a color based on passed alpha value. - * - * @param {string} colorValue hex, rgb, rgba, or CSS var. - * @param {number} opacityValue The opacity (from 0 - 1). - * @return {string} The color in hex, rgba, or CSS var format. - */ - var getColor = function getColor(colorValue) { - var opacityValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; - // Test for CSS var values in color value. - if (colorValue.indexOf('var(') === 0) { - return colorValue; - } - - // Test for RGBA at the beginning, and return value. - if (colorValue.indexOf('rgba') === 0) { - // Calculate hex value from rgba. - var hex = rgb2hex__WEBPACK_IMPORTED_MODULE_4___default()(colorValue).hex; - return hex_to_rgba__WEBPACK_IMPORTED_MODULE_3___default()(hex, opacityValue); - } - - // Test for RGB at the beginning, and return hex if found. - if (colorValue.indexOf('rgb') === 0) { - return hex_to_rgba__WEBPACK_IMPORTED_MODULE_3___default()(rgb2hex__WEBPACK_IMPORTED_MODULE_4___default()(colorValue).hex, opacityValue); - } - if (alpha) { - return hex_to_rgba__WEBPACK_IMPORTED_MODULE_3___default()(colorValue, opacityValue); - } - return colorValue; - }; - - // Retrieve colors while avoiding duplicates. - var getDefaultColors = function getDefaultColors() { - var existingColors = []; - var newColors = []; - defaultColors.forEach(function (maybeNewColor, index) { - if (!existingColors.includes(maybeNewColor.color)) { - existingColors.push(maybeNewColor.color); - newColors.push(maybeNewColor); - } - }); - return newColors; - }; - var opacityIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("svg", { - xmlns: "http://www.w3.org/2000/svg", - width: 24, - height: 24, - viewBox: "0 0 488.47 488.47" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("path", { - d: "M244.235 0S61.058 174.454 61.058 314.016c0 96.347 82.011 174.454 183.177 174.454s183.177-78.107 183.177-174.454C427.412 174.454 244.235 0 244.235 0zm0 91.588c46.976 52.953 97.174 123.655 114.946 183.177H129.292c17.771-59.522 67.968-130.223 114.943-183.177z" - })); - - /** - * Toggle whether the color popup is showing. - */ - var toggleVisible = function toggleVisible() { - setIsVisible(true); - }; - - /** - * Close color popup if visible. - */ - var toggleClose = function toggleClose() { - if (isVisible) { - setIsVisible(false); - } - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.BaseControl, { - className: "photo-block-component-color-picker-wrapper" - }, !!label && !hideLabelFromVision && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("h3", { - className: "photo-block-color-component-label" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", null, label)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-component-color-picker" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-color-picker-area photo-block-component-color-picker-palette" - }, !isVisible && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('components-color-palette__item-wrapper components-circular-option-picker__option-wrapper photo-block-color-picker-area photo-block-component-color-picker-palette', value ? '' : 'components-color-palette__custom-color') - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Tooltip, { - text: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Choose Color', 'photo-block') - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("button", { - type: "button", - "aria-expanded": isVisible, - className: "components-button components-circular-option-picker__option is-pressed", - onClick: toggleVisible, - "aria-label": (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Custom color picker', 'photo-block'), - style: { - background: color - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", { - className: "components-color-palette__custom-color-gradient" - }))))), isVisible && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('components-color-palette__item-wrapper components-circular-option-picker__option-wrapper photo-block-color-picker-area photo-block-component-color-picker-palette', value ? '' : 'components-color-palette__custom-color') - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Tooltip, { - text: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Choose Color', 'photo-block') - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("button", { - type: "button", - "aria-expanded": isVisible, - className: "components-button components-circular-option-picker__option is-pressed", - onClick: toggleClose, - "aria-label": (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Custom color picker', 'photo-block'), - style: { - background: color - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", { - className: "components-color-palette__custom-color-gradient" - })))), isVisible && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Popover, { - className: "photo-block-component-color-picker", - onClose: toggleClose, - noArrow: false - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.BaseControl, { - key: colorKey - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ColorPicker, { - key: colorKey, - color: color, - onChangeComplete: function onChangeComplete(newColor) { - var maybeNewColor = getColor(newColor.hex, opacity); - setColor(maybeNewColor); - _onChange(slug, maybeNewColor, newColor.hex); - }, - disableAlpha: true, - defaultValue: defaultColor - })), alpha && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-component-color-opacity" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Tooltip, { - text: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Opacity', 'photo-block') - }, opacityIcon), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.RangeControl, { - value: opacity, - onChange: function onChange(opacityValue) { - var newColor = getColor(color, opacityValue); - setOpacity(opacityValue); - setColor(color); - _onChange(slug, newColor, color); - onOpacityChange(opacityValue); - }, - min: 0, - max: 1, - step: 0.01, - initialPosition: 1, - disabled: color.indexOf('var(') === 0 - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.BaseControl, { - className: "photo-block-component-color-picker-palette" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ColorPalette, { - colors: getDefaultColors(), - value: color, - onChange: function onChange(newColor) { - var maybeNewColor = getColor(newColor); - _onChange(slug, maybeNewColor); - setColor(maybeNewColor); - }, - disableCustomColors: true, - clearable: false - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "components-color-clear-color" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - onClick: function onClick() { - _onChange(slug, defaultColor); - setColor(defaultColor); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Clear Color', 'photo-block'))))))); -}; -ColorPickerControl.propTypes = { - label: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func).isRequired, - onOpacityChange: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), - value: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - defaultColor: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), - alpha: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - hideLabelFromVision: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - defaultColors: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().array).isRequired -}; -ColorPickerControl.defaultProps = { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Color', 'photo-block'), - value: '', - defaultColor: 'transparent', - alpha: false, - hideLabelFromVision: false, - onOpacityChange: function onOpacityChange() {} -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ColorPickerControl); - -/***/ }), - -/***/ "./src/components/CustomAttributes/index.js": -/*!**************************************************!*\ - !*** ./src/components/CustomAttributes/index.js ***! - \**************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/CustomAttributes/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/x.js"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -/** - * Add custom attributes repeater. - */ - - - - - -/** - * DropShadow component. - * - * @param {Object} props - Component props. - * @return {Function} Component. - */ -var CustomAttributesControl = function CustomAttributesControl(props) { - var attributes = props.attributes, - setAttributes = props.setAttributes; - var customAttributes = attributes.customAttributes; - - /** - * Iterate through the custom attributes and show controls. - * - * @return {Function} Component. - */ - var showCustomAttributes = function showCustomAttributes() { - var customAttributeOutput = customAttributes.map(function (attributeValues, index) { - return /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__custom-attributes-control__attribute", - key: index - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Name', 'photo-block'), - value: attributeValues.name, - placeholder: "data-", - onChange: function onChange(value) { - var newCustomAttributes = _toConsumableArray(customAttributes); - newCustomAttributes[index].name = value; - setAttributes({ - customAttributes: newCustomAttributes - }); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Value', 'photo-block'), - value: attributeValues.value, - onChange: function onChange(value) { - var newCustomAttributes = _toConsumableArray(customAttributes); - newCustomAttributes[index].value = value; - setAttributes({ - customAttributes: newCustomAttributes - }); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Remove Attribute', 'photo-block'), - onClick: function onClick() { - var newCustomAttributes = _toConsumableArray(customAttributes); - newCustomAttributes.splice(index, 1); - setAttributes({ - customAttributes: newCustomAttributes - }); - }, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_3__["default"], null) - })); - }); - return customAttributeOutput; - }; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.BaseControl, { - className: "dlx-photo-block__custom-attributes-control" - }, /*#__PURE__*/React.createElement("h3", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Custom Attributes', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Add Attribute', 'photo-block'), - onClick: function onClick() { - var newCustomAttributes = _toConsumableArray(customAttributes); - newCustomAttributes.push({ - name: '', - value: '' - }); - setAttributes({ - customAttributes: newCustomAttributes - }); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Add Attribute', 'photo-block')), showCustomAttributes())); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CustomAttributesControl); - -/***/ }), - -/***/ "./src/components/DimensionsResponsive/index.js": -/*!******************************************************!*\ - !*** ./src/components/DimensionsResponsive/index.js ***! - \******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/DimensionsResponsive/editor.scss"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/unlink.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/link.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var react_hook_form__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-hook-form */ "./node_modules/react-hook-form/dist/index.esm.mjs"); -/* harmony import */ var _hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../hooks/useDeviceType */ "./src/hooks/useDeviceType.js"); -/* harmony import */ var _HeadingIconResponsive__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../HeadingIconResponsive */ "./src/components/HeadingIconResponsive/index.js"); -/* harmony import */ var _utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils/TypographyHelper */ "./src/utils/TypographyHelper.js"); -/* harmony import */ var _hooks_useUnits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../hooks/useUnits */ "./src/hooks/useUnits.js"); -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - - - - - - - - - - -var DimensionsResponsiveControl = function DimensionsResponsiveControl(props) { - var label = props.label, - onValuesChange = props.onValuesChange, - values = props.values, - labelTop = props.labelTop, - labelRight = props.labelRight, - labelBottom = props.labelBottom, - labelLeft = props.labelLeft, - labelAll = props.labelAll, - _props$isBorderRadius = props.isBorderRadius, - isBorderRadius = _props$isBorderRadius === void 0 ? false : _props$isBorderRadius, - _props$allowNegatives = props.allowNegatives, - allowNegatives = _props$allowNegatives === void 0 ? false : _props$allowNegatives; - var _useDeviceType = (0,_hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_5__["default"])('Desktop'), - _useDeviceType2 = _slicedToArray(_useDeviceType, 1), - deviceType = _useDeviceType2[0]; - var _useUnits = (0,_hooks_useUnits__WEBPACK_IMPORTED_MODULE_8__["default"])(), - onUnitChange = _useUnits.onUnitChange, - splitValues = _useUnits.splitValues, - getNumericValue = _useUnits.getNumericValue, - getUnitValue = _useUnits.getUnitValue, - startsWithNumber = _useUnits.startsWithNumber; - var units = props !== null && props !== void 0 && props.units ? props.units : [{ - label: 'PX', - value: 'px' - }, { - label: '%', - value: '%' - }, { - label: 'EM', - value: 'em' - }, { - label: 'REM', - value: 'rem' - }, { - label: 'VW', - value: 'vw' - }]; - var getDefaultValues = function getDefaultValues() { - return { - mobile: { - top: props.values.mobile.top, - right: props.values.mobile.right, - bottom: props.values.mobile.bottom, - left: props.values.mobile.left, - topUnit: props.values.mobile.topUnit, - rightUnit: props.values.mobile.rightUnit, - bottomUnit: props.values.mobile.bottomUnit, - leftUnit: props.values.mobile.leftUnit, - unitSync: props.values.mobile.unitSync - }, - tablet: { - top: props.values.tablet.top, - right: props.values.tablet.right, - bottom: props.values.tablet.bottom, - left: props.values.tablet.left, - topUnit: props.values.tablet.topUnit, - rightUnit: props.values.tablet.rightUnit, - bottomUnit: props.values.tablet.bottomUnit, - leftUnit: props.values.tablet.leftUnit, - unitSync: props.values.tablet.unitSync - }, - desktop: { - top: props.values.desktop.top, - right: props.values.desktop.right, - bottom: props.values.desktop.bottom, - left: props.values.desktop.left, - topUnit: props.values.desktop.topUnit, - rightUnit: props.values.desktop.rightUnit, - bottomUnit: props.values.desktop.bottomUnit, - leftUnit: props.values.desktop.leftUnit, - unitSync: props.values.desktop.unitSync - } - }; - }; - var _useForm = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_9__.useForm)({ - defaultValues: getDefaultValues() - }), - control = _useForm.control, - setValue = _useForm.setValue, - getValues = _useForm.getValues; - var formValues = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_9__.useWatch)({ - control: control - }); - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () { - onValuesChange(formValues); - }, [formValues]); - - /** - * Change the all values in parent. - * - * @param {number} value Value to change to. - */ - var changeAllValues = function changeAllValues(value) { - if (startsWithNumber(value)) { - var newValuesSplit = splitValues(value); - var numericValue = parseFloat(getNumericValue(newValuesSplit)); - var unitValue = getUnitValue(newValuesSplit); - var oldValues = getValues(deviceType); - oldValues.top = numericValue; - oldValues.right = numericValue; - oldValues.bottom = numericValue; - oldValues.left = numericValue; - oldValues.topUnit = unitValue; - oldValues.rightUnit = unitValue; - oldValues.bottomUnit = unitValue; - oldValues.leftUnit = unitValue; - setValue(deviceType, oldValues); - syncUnits((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.getHierarchicalValueUnit)(props.values, deviceType, unitValue, 'top')); - } else { - var _oldValues = getValues(deviceType); - _oldValues.top = value; - _oldValues.right = value; - _oldValues.bottom = value; - _oldValues.left = value; - setValue(deviceType, _oldValues); - syncUnits((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.getHierarchicalValueUnit)(props.values, deviceType, value, 'top')); - } - }; - - /** - * Sync all unit values at once. - * - * @param {string} newUnit The new unit value. - */ - var syncUnits = function syncUnits(newUnit) { - // Toggle unit sync value. - var currentValues = getValues(deviceType); - currentValues.topUnit = newUnit; - currentValues.rightUnit = newUnit; - currentValues.bottomUnit = newUnit; - currentValues.leftUnit = newUnit; - setValue(deviceType, currentValues); - }; - var onDimensionChange = function onDimensionChange(value) { - changeAllValues(value); - }; - - /** - * Get the sync value for the current device type. - * - * @return {boolean} The sync value. - */ - var isSync = function isSync() { - var sync = (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.geHierarchicalPlaceholderValue)(values, deviceType, getValues(deviceType).unitSync, 'unitSync'); - return sync; - }; - - /** - * Get the min unit for a given unit. - * - * @param {string} unitVar The unit to get the min value for. - * - * @return {number} The min value for the current unit. - */ - var getRangeControlMin = function getRangeControlMin(unitVar) { - if (!allowNegatives) { - return 0; - } - - // Get current unit. - var unit = (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.getHierarchicalValueUnit)(props.values, deviceType, getValues(deviceType)[unitVar], unitVar); - - // Get the max value for the current unit. - var min = -100; - switch (unit) { - case 'px': - min = -1000; - break; - case '%': - min = -100; - break; - case 'em': - min = -10; - break; - case 'rem': - min = -10; - break; - case 'vw': - min = -100; - break; - default: - min = -100; - break; - } - return min; - }; - - /** - * Get the max unit for a given unit. - * - * @param {string} unitVar The unit to get the max value for. - * - * @return {number} The max value for the current unit. - */ - var getRangeControlMax = function getRangeControlMax(unitVar) { - // Get current unit. - var unit = (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.getHierarchicalValueUnit)(props.values, deviceType, getValues(deviceType)[unitVar], unitVar); - - // Get the max value for the current unit. - var max = 100; - switch (unit) { - case 'px': - max = 1000; - break; - case '%': - max = 100; - break; - case 'em': - max = 10; - break; - case 'rem': - max = 10; - break; - case 'vw': - max = 100; - break; - default: - max = 100; - break; - } - return max; - }; - - /** - * Get the range control step for a given unit. - * - * @param {string} unitVar The unit variable to get the step for. - * - * @return {number} The max value for the current unit. - */ - var getRangeControlStep = function getRangeControlStep(unitVar) { - // Get current unit. - var unit = (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.getHierarchicalValueUnit)(props.values, deviceType, getValues(deviceType)[unitVar], unitVar); - - // Get the max value for the current unit. - var step = 1; - switch (unit) { - case 'px': - step = 1; - break; - case '%': - step = 1; - break; - case 'em': - step = 0.1; - break; - case 'rem': - step = 0.1; - break; - case 'vw': - step = 1; - break; - default: - step = 1; - break; - } - return step; - }; - var getSyncInterface = function getSyncInterface() { - if (!isSync()) { - return null; - } - return /*#__PURE__*/React.createElement("div", { - className: classnames__WEBPACK_IMPORTED_MODULE_4___default()('dlx-photo-block__dimensions-responsive-sync-interface', { - 'is-border-radius': isBorderRadius - }) - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__dimensions-responsive-sync-interface-unit" - }, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(deviceType, ".top"), - control: control, - render: function render(_ref) { - var _ref$field = _ref.field, - _onChange = _ref$field.onChange, - value = _ref$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: labelAll, - className: "dlx-photo-block__dimensions-responsive-sync-interface-input", - value: value, - placeholder: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.geHierarchicalPlaceholderValue)(values, deviceType, value, 'top'), - type: "text", - onChange: function onChange(newValue) { - onDimensionChange(newValue); - onUnitChange(newValue, _onChange, setValue, deviceType, 'topUnit'); - }, - hideLabelFromVision: true, - autoComplete: "off" - }); - } - }), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(deviceType, ".topUnit"), - control: control, - render: function render(_ref2) { - var _ref2$field = _ref2.field, - _onChange2 = _ref2$field.onChange, - value = _ref2$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.SelectControl, { - className: "dlx-photo-block__dimensions-responsive-sync-interface-select", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Unit', 'photo-block'), - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.getHierarchicalValueUnit)(props.values, deviceType, getValues("".concat(deviceType, ".topUnit")), 'topUnit'), - options: units, - onChange: function onChange(newValue) { - _onChange2(newValue); - syncUnits(newValue); - }, - hideLabelFromVision: true - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__dimensions-responsive-sync-interface-range-sync" - }, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(deviceType, ".top"), - control: control, - render: function render(_ref3) { - var _ref3$field = _ref3.field, - _onChange3 = _ref3$field.onChange, - value = _ref3$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.RangeControl, { - className: "dlx-photo-block__dimensions-responsive-sync-interface-range", - label: labelAll, - value: Number((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.geHierarchicalPlaceholderValue)(values, deviceType, '' !== value ? value : 0, 'top')), - min: allowNegatives ? getRangeControlMin('topUnit') : 0, - max: getRangeControlMax('topUnit'), - step: getRangeControlStep('topUnit'), - onChange: function onChange(newValue) { - _onChange3(newValue); - onDimensionChange(newValue); - }, - withInputField: false, - hideLabelFromVision: true - }); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - variant: "secondary", - className: "dlx-photo-block__dimensions-responsive-sync-interface-button", - onClick: function onClick() { - // Disable syncing. - var oldValues = getValues(deviceType); - oldValues.unitSync = false; - setValue(deviceType, oldValues); - syncUnits((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.getHierarchicalValueUnit)(props.values, deviceType, getValues("".concat(deviceType, ".topUnit")), 'topUnit')); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Modify all values separately.', 'photo-block'), - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_10__["default"], null) - }))); - }; - - /** - * Get the manual interface. - * - * @return {Element} The manual interface. - */ - var getManualInterface = function getManualInterface() { - if (isSync()) { - return null; - } - return /*#__PURE__*/React.createElement("div", { - className: classnames__WEBPACK_IMPORTED_MODULE_4___default()('dlx-photo-block__dimensions-responsive-manual-interface', { - 'is-border-radius': isBorderRadius - }) - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__dimensions-responsive-manual-interface-item dlx-photo-block__dimensions-responsive-manual-interface-item-top" - }, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(deviceType, ".top"), - control: control, - render: function render(_ref4) { - var _ref4$field = _ref4.field, - _onChange4 = _ref4$field.onChange, - value = _ref4$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: labelTop, - className: "dlx-photo-block__dimensions-responsive-sync-interface-input", - value: value, - placeholder: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.geHierarchicalPlaceholderValue)(values, deviceType, value, 'top'), - type: "text", - min: 0, - step: 1, - max: "Infinity", - onChange: function onChange(newValue) { - onUnitChange(newValue, _onChange4, setValue, deviceType, 'topUnit'); - }, - hideLabelFromVision: true, - autoComplete: "off" - }); - } - }), getValues("".concat(deviceType, ".topUnit")) && /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(deviceType, ".topUnit"), - control: control, - render: function render(_ref5) { - var _ref5$field = _ref5.field, - _onChange5 = _ref5$field.onChange, - value = _ref5$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.SelectControl, { - className: "dlx-photo-block__dimensions-responsive-sync-interface-select", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Unit', 'photo-block'), - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.getHierarchicalValueUnit)(props.values, deviceType, value, 'topUnit'), - options: units, - onChange: function onChange(newValue) { - _onChange5(newValue); - }, - hideLabelFromVision: true - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__dimensions-responsive-manual-interface-item dlx-photo-block__dimensions-responsive-manual-interface-item-right" - }, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(deviceType, ".right"), - control: control, - render: function render(_ref6) { - var _ref6$field = _ref6.field, - _onChange6 = _ref6$field.onChange, - value = _ref6$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: labelRight, - className: "dlx-photo-block__dimensions-responsive-sync-interface-input", - value: value, - placeholder: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.geHierarchicalPlaceholderValue)(values, deviceType, value, 'right'), - type: "text", - min: 0, - step: 1, - max: "Infinity", - onChange: function onChange(newValue) { - onUnitChange(newValue, _onChange6, setValue, deviceType, 'rightUnit'); - }, - hideLabelFromVision: true, - autoComplete: "off" - }); - } - }), getValues("".concat(deviceType, ".rightUnit")) && /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(deviceType, ".rightUnit"), - control: control, - render: function render(_ref7) { - var _ref7$field = _ref7.field, - _onChange7 = _ref7$field.onChange, - value = _ref7$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.SelectControl, { - className: "dlx-photo-block__dimensions-responsive-sync-interface-select", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Unit', 'photo-block'), - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.getHierarchicalValueUnit)(props.values, deviceType, value, 'rightUnit'), - options: units, - onChange: function onChange(newValue) { - _onChange7(newValue); - }, - hideLabelFromVision: true - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__dimensions-responsive-manual-interface-item dlx-photo-block__dimensions-responsive-manual-interface-item-bottom" - }, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(deviceType, ".bottom"), - control: control, - render: function render(_ref8) { - var _ref8$field = _ref8.field, - _onChange8 = _ref8$field.onChange, - value = _ref8$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: labelBottom, - className: "dlx-photo-block__dimensions-responsive-sync-interface-input", - value: value, - placeholder: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.geHierarchicalPlaceholderValue)(values, deviceType, value, 'bottom'), - type: "text", - min: 0, - step: 1, - max: "Infinity", - onChange: function onChange(newValue) { - onUnitChange(newValue, _onChange8, setValue, deviceType, 'bottomUnit'); - }, - hideLabelFromVision: true, - autoComplete: "off" - }); - } - }), getValues("".concat(deviceType, ".bottomUnit")) && /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(deviceType, ".bottomUnit"), - control: control, - render: function render(_ref9) { - var _ref9$field = _ref9.field, - _onChange9 = _ref9$field.onChange, - value = _ref9$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.SelectControl, { - className: "dlx-photo-block__dimensions-responsive-sync-interface-select", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Unit', 'photo-block'), - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.getHierarchicalValueUnit)(props.values, deviceType, value, 'bottomUnit'), - options: units, - onChange: function onChange(newValue) { - _onChange9(newValue); - }, - hideLabelFromVision: true - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__dimensions-responsive-manual-interface-item dlx-photo-block__dimensions-responsive-manual-interface-item-left" - }, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(deviceType, ".left"), - control: control, - render: function render(_ref10) { - var _ref10$field = _ref10.field, - _onChange10 = _ref10$field.onChange, - value = _ref10$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: labelLeft, - className: "dlx-photo-block__dimensions-responsive-sync-interface-input", - value: value, - placeholder: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.geHierarchicalPlaceholderValue)(values, deviceType, value, 'left'), - type: "text", - min: 0, - step: 1, - max: "Infinity", - onChange: function onChange(newValue) { - onUnitChange(newValue, _onChange10, setValue, deviceType, 'leftUnit'); - }, - hideLabelFromVision: true, - autoComplete: "off" - }); - } - }), getValues("".concat(deviceType, ".leftUnit")) && /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(deviceType, ".leftUnit"), - control: control, - render: function render(_ref11) { - var _ref11$field = _ref11.field, - _onChange11 = _ref11$field.onChange, - value = _ref11$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.SelectControl, { - className: "dlx-photo-block__dimensions-responsive-sync-interface-select", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Unit', 'photo-block'), - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.getHierarchicalValueUnit)(props.values, deviceType, value, 'leftUnit'), - options: units, - onChange: function onChange(newValue) { - _onChange11(newValue); - }, - hideLabelFromVision: true - }); - } - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - variant: "secondary", - className: "dlx-photo-block__dimensions-responsive-sync-manual-button", - onClick: function onClick() { - var oldValues = getValues(deviceType); - oldValues.unitSync = true; - setValue(deviceType, oldValues); - }, - isPressed: false, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_11__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Edit all values together', 'photo-block') - })); - }; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.BaseControl, { - className: "dlx-photo-block__dimensions-responsive" - }, /*#__PURE__*/React.createElement(_HeadingIconResponsive__WEBPACK_IMPORTED_MODULE_6__["default"], { - heading: label, - screenSize: deviceType - }), getSyncInterface(), getManualInterface())); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DimensionsResponsiveControl); - -/***/ }), - -/***/ "./src/components/DropShadow/index.js": -/*!********************************************!*\ - !*** ./src/components/DropShadow/index.js ***! - \********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/DropShadow/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _ColorPicker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ColorPicker */ "./src/components/ColorPicker/index.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/** - * Upload data row including Upload|Media Library|URL|Data. - */ - - - - -/** - * DropShadow component. - * - * @param {Object} props - Component props. - * @return {Function} Component. - */ -var DropShadowControl = function DropShadowControl(props) { - var attributes = props.attributes, - setAttributes = props.setAttributes; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.BaseControl, { - className: "dlx-photo-block__drop-shadow-control" - }, /*#__PURE__*/React.createElement("h3", { - className: "dlx-photo-block__drop-shadow-control__title" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Drop Shadow', 'photo-block')), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__drop-shadow-control__settings" - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__drop-shadow-control__settings__color" - }, /*#__PURE__*/React.createElement(_ColorPicker__WEBPACK_IMPORTED_MODULE_3__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Color', 'photo-block'), - value: attributes.photoDropShadow.color, - valueOpacity: attributes.photoDropShadow.opacity || 1, - onChange: function onChange(slug, color) { - setAttributes({ - photoDropShadow: _objectSpread(_objectSpread({}, attributes.photoDropShadow), {}, { - color: color - }) - }); - }, - onOpacityChange: function onOpacityChange(value) { - setAttributes({ - photoDropShadow: _objectSpread(_objectSpread({}, attributes.photoDropShadow), {}, { - opacity: value - }) - }); - }, - slug: "photoDropShadow", - defaultColors: photoBlock.palette, - defaultColor: '#000000', - alpha: true - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__drop-shadow-control__settings__offset" - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__drop-shadow-control__settings__offset__wrapper" - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__drop-shadow-control__settings__offset__x" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('X Offset', 'photo-block'), - value: attributes.photoDropShadow.horizontal, - type: "number", - onChange: function onChange(value) { - setAttributes({ - photoDropShadow: _objectSpread(_objectSpread({}, attributes.photoDropShadow), {}, { - horizontal: value - }) - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__drop-shadow-control__settings__offset__y" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Y Offset', 'photo-block'), - value: attributes.photoDropShadow.vertical, - type: "number", - onChange: function onChange(value) { - setAttributes({ - photoDropShadow: _objectSpread(_objectSpread({}, attributes.photoDropShadow), {}, { - vertical: value - }) - }); - } - })))), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__drop-shadow-control__settings__blur" - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__drop-shadow-control__settings__blur__wrapper" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.RangeControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Blur', 'photo-block'), - value: attributes.photoDropShadow.blur, - onChange: function onChange(value) { - setAttributes({ - photoDropShadow: _objectSpread(_objectSpread({}, attributes.photoDropShadow), {}, { - blur: value - }) - }); - }, - min: 0, - max: 100, - step: 1 - }))), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__drop-shadow-control__settings__spread" - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__drop-shadow-control__settings__spread__wrapper" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.RangeControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Spread', 'photo-block'), - value: attributes.photoDropShadow.spread, - onChange: function onChange(value) { - setAttributes({ - photoDropShadow: _objectSpread(_objectSpread({}, attributes.photoDropShadow), {}, { - spread: value - }) - }); - }, - min: -25, - max: 25, - step: 1 - }))), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__drop-shadow-control__settings__inset" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Inset', 'photo-block'), - checked: attributes.photoDropShadow.inset, - onChange: function onChange(value) { - setAttributes({ - photoDropShadow: _objectSpread(_objectSpread({}, attributes.photoDropShadow), {}, { - inset: value - }) - }); - } - }))))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DropShadowControl); - -/***/ }), - -/***/ "./src/components/GlobalStyles/GlobalStylesContainer.js": -/*!**************************************************************!*\ - !*** ./src/components/GlobalStyles/GlobalStylesContainer.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/pencil.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/trash.js"); -/* harmony import */ var react_hook_form__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-hook-form */ "./node_modules/react-hook-form/dist/index.esm.mjs"); -/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./context */ "./src/components/GlobalStyles/context.js"); -/* harmony import */ var _GlobalStylesSaveModal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./GlobalStylesSaveModal */ "./src/components/GlobalStyles/GlobalStylesSaveModal.js"); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../store/global-styles */ "./src/store/global-styles.js"); -/* harmony import */ var _GlobalStylesDeleteModal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./GlobalStylesDeleteModal */ "./src/components/GlobalStyles/GlobalStylesDeleteModal.js"); -/* harmony import */ var _GlobalStylesEditModal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./GlobalStylesEditModal */ "./src/components/GlobalStyles/GlobalStylesEditModal.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - - - - - - - - - - - - - -// Read in localized var and determine if user can save or edit presets. -var canSavePresets = photoBlockUser.canSavePresets; -var GlobalStylesContainer = function GlobalStylesContainer(props) { - var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false), - _useState2 = _slicedToArray(_useState, 2), - loading = _useState2[0], - setLoading = _useState2[1]; - var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)('new'), - _useState4 = _slicedToArray(_useState3, 2), - presetSaveType = _useState4[0], - setPresetSaveType = _useState4[1]; - var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(''), - _useState6 = _slicedToArray(_useState5, 2), - presetSaveLabel = _useState6[0], - setPresetSaveLabel = _useState6[1]; - var setAttributes = props.setAttributes, - attributes = props.attributes, - clientId = props.clientId, - globalStyle = props.globalStyle; - var uniqueId = props.attributes.uniqueId; - var _useContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_6__["default"]), - savingPreset = _useContext.savingPreset, - setSavingPreset = _useContext.setSavingPreset, - editPresets = _useContext.editPresets, - setEditPresets = _useContext.setEditPresets, - showEditModal = _useContext.showEditModal, - setShowEditModal = _useContext.setShowEditModal, - showDeleteModal = _useContext.showDeleteModal, - setShowDeleteModal = _useContext.setShowDeleteModal, - refreshGlobalStyles = _useContext.refreshGlobalStyles, - setRefreshGlobalStyles = _useContext.setRefreshGlobalStyles, - setDefaultPreset = _useContext.setDefaultPreset; - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(function (select) { - return { - getGlobalStyles: select(_store_global_styles__WEBPACK_IMPORTED_MODULE_8__["default"]).getGlobalStyles, - getGlobalStyleBySlug: select(_store_global_styles__WEBPACK_IMPORTED_MODULE_8__["default"]).getGlobalStyleBySlug, - hasGlobalStyle: select(_store_global_styles__WEBPACK_IMPORTED_MODULE_8__["default"]).hasGlobalStyle - }; - }), - getGlobalStyles = _useSelect.getGlobalStyles, - getGlobalStyleBySlug = _useSelect.getGlobalStyleBySlug, - hasGlobalStyle = _useSelect.hasGlobalStyle; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useDispatch)(_store_global_styles__WEBPACK_IMPORTED_MODULE_8__["default"]), - setGlobalStyle = _useDispatch.setGlobalStyle; - var _useDispatch2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useDispatch)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.store), - updateBlockAttributes = _useDispatch2.updateBlockAttributes, - insertBlock = _useDispatch2.insertBlock; - var getDefaultValues = function getDefaultValues() { - return { - selectedGlobalStyle: '', - applyAsPreset: false - }; - }; - var _useDispatch3 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useDispatch)('core/notices'), - createSuccessNotice = _useDispatch3.createSuccessNotice, - createWarningNotice = _useDispatch3.createWarningNotice; - var _useForm = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_11__.useForm)({ - defaultValues: getDefaultValues() - }), - control = _useForm.control, - handleSubmit = _useForm.handleSubmit, - setValue = _useForm.setValue, - trigger = _useForm.trigger, - setError = _useForm.setError, - clearErrors = _useForm.clearErrors, - getValues = _useForm.getValues; - var _useFormState = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_11__.useFormState)({ - control: control - }), - errors = _useFormState.errors; - var globalStyleContainer = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null); - - /** - * Show a loading spinner. - * - * @param {string} label Label of the loading spinner. - * @return {JSX} Loading spinner. - */ - var showLoading = function showLoading(label) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "photo-block-global-styles-loading-container" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { - className: "photo-block-global-styles-loading-label" - }, label), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Spinner, null)); - }; - var generateGlobalStyle = function generateGlobalStyle() { - var ajaxUrl = "".concat(ajaxurl); // eslint-disable-line no-undef - var formDataNew = new FormData(); - formDataNew.append('action', 'dlx_photo_block_generate_global_styles'); - formDataNew.append('nonce', photoBlock.globalStylesGenerateNonce); - fetch(ajaxUrl, { - method: 'POST', - body: formDataNew, - /* get return in json */ - headers: { - Accept: 'application/json' - } - }).then(function (response) { - return response.json(); - }).then(function (json) { - var success = json.success, - data = json.data; - if (!success) { - setError('formAjaxError', { - type: 'ajax', - message: data.message - }); - createWarningNotice((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('There was an error saving the global style CSS file.', 'photo-block'), { - type: 'snackbar' - }); - setRefreshGlobalStyles(false); - return; - } - createSuccessNotice((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Global style CSS File generated successfully.', 'photo-block'), { - type: 'snackbar' - }); - setRefreshGlobalStyles(false); - })["catch"](function (error) {}); - }; - var onSubmit = function onSubmit(formData) { - var _select$getBlocksByCl; - var globalStyleSlug = formData.selectedGlobalStyle; - if ('none' === globalStyleSlug) { - setError('selectedGlobalStyle', { - type: 'manual', - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Please select a global style.', 'photo-block') - }); - return; - } - - // Get the global style data. - var currentGlobalStyle = getGlobalStyleBySlug(globalStyleSlug); - - // IF the global style is not found, return. - if (!(currentGlobalStyle !== null && currentGlobalStyle !== void 0 && currentGlobalStyle.content)) { - setError('selectedGlobalStyle', { - type: 'manual', - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Global style not found.', 'photo-block') - }); - return; - } - - // Get unique ID for the caption block. - var children = ((_select$getBlocksByCl = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.select)('core/block-editor').getBlocksByClientId(clientId)[0]) === null || _select$getBlocksByCl === void 0 ? void 0 : _select$getBlocksByCl.innerBlocks) || []; - var captionBlock = children.find(function (block) { - return 'dlxplugins/photo-caption-block' === block.name; - }); - - // Get unique ID for the photo block. - var uniqueIdAttribute = { - uniqueId: uniqueId - }; - var photoBlockAttributes = _objectSpread(_objectSpread({}, currentGlobalStyle.content.photoAttributes), uniqueIdAttribute); - var captionAttributes = currentGlobalStyle.content.captionAttributes; - - // Apply attributes for current photo block. - setAttributes(photoBlockAttributes); - - // Set the global style attribute. - setAttributes({ - globalStyle: globalStyleSlug - }); - - // If there is no caption block, but there are attributes to apply, create one. - if (!captionBlock && captionAttributes) { - setAttributes({ - hasCaption: true - }); - var newBlocks = (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__.createBlock)('dlxplugins/photo-caption-block', captionAttributes); - insertBlock(newBlocks, undefined, clientId); - } - - // If there is a caption block and attributes to apply, apply them. - if (captionBlock && captionAttributes) { - var captionBlockAttributes = _objectSpread(_objectSpread({}, captionAttributes), uniqueIdAttribute); - updateBlockAttributes(captionBlock.clientId, captionBlockAttributes); - } - }; - var savedPresets = getGlobalStyles(); - var getGlobalStylesForEditing = function getGlobalStylesForEditing() { - var styles = savedPresets; - var styleSelect = []; - if (Object.keys(styles).length > 0) { - // Append to the select options. - Object.keys(styles).forEach(function (key) { - styleSelect.push({ - value: styles[key].slug, - label: styles[key].title, - id: styles[key].id, - deleteNonce: styles[key].delete_nonce, - saveNonce: styles[key].save_nonce, - cssClass: styles[key].css_class - }); - }); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "photo-block-global-styles-edit-grid" - }, styleSelect.map(function (style) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - key: style.value, - className: "photo-block-global-styles-edit-item" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "photo-block-global-styles-edit-item-title" - }, style.label), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "photo-block-global-styles-edit-item-actions" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ButtonGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(lucide_react__WEBPACK_IMPORTED_MODULE_12__["default"], null), - onClick: function onClick() { - setShowEditModal({ - editId: style.id, - title: style.label, - saveNonce: style.saveNonce, - slug: style.value, - cssClass: style.cssClass - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Edit Global Style', 'photo-block') - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(lucide_react__WEBPACK_IMPORTED_MODULE_13__["default"], null), - onClick: function onClick() { - setShowDeleteModal({ - editId: style.id, - title: style.label, - deleteNonce: style.deleteNonce, - slug: style.value, - cssClass: style.cssClass - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Delete Global Style', 'photo-block') - })))); - }))); - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", null, canSavePresets ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('No global styles have been saved yet. Would you like to save a new one?', 'photo-block') : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('No global styles have been saved yet.', 'photo-block'))); - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, showEditModal && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_GlobalStylesEditModal__WEBPACK_IMPORTED_MODULE_10__["default"], { - editId: showEditModal.editId, - title: showEditModal.title, - saveNonce: showEditModal.saveNonce, - cssClass: showEditModal.cssClass - }), showDeleteModal && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_GlobalStylesDeleteModal__WEBPACK_IMPORTED_MODULE_9__["default"], { - editId: showDeleteModal.editId, - title: showDeleteModal.title, - deleteNonce: showDeleteModal.deleteNonce, - slug: showDeleteModal.slug - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "photo-block-global-styles-container", - ref: globalStyleContainer - }, !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, editPresets && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, getGlobalStylesForEditing()), canSavePresets && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "photo-block-global-styles-actions" - }, !editPresets && !hasGlobalStyle(globalStyle) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: 'primary', - onClick: function onClick(e) { - e.preventDefault(); - setSavingPreset(true); - }, - className: "photo-block-global-styles-save-button", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Save New Global Style', 'photo-block') - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Save New Global Style', 'photo-block')), !editPresets && Object.keys(savedPresets).length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: 'secondary', - onClick: function onClick(e) { - e.preventDefault(); - setEditPresets(true); - }, - className: "photo-block-global-styles-edit-button", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Edit Global Styles', 'photo-block') - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Edit Global Styles', 'photo-block')), !editPresets && Object.keys(savedPresets).length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: 'secondary', - onClick: function onClick(e) { - e.preventDefault(); - setRefreshGlobalStyles(true); - generateGlobalStyle(); - }, - className: "photo-block-global-styles-refresh-button", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Refresh Global Style', 'photo-block'), - disabled: refreshGlobalStyles - }, refreshGlobalStyles ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Refreshing Global Styles', 'photo-block') : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Refresh Global Styles', 'photo-block')), editPresets && !savingPreset && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: 'primary', - onClick: function onClick(e) { - e.preventDefault(); - setEditPresets(false); - }, - className: "photo-block-global-styles-exit-button", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Exit Edit Mode', 'photo-block') - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Exit Edit Mode', 'photo-block')))), savingPreset && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_GlobalStylesSaveModal__WEBPACK_IMPORTED_MODULE_7__["default"], _extends({ - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Save Global Style', 'photo-block') - }, props, { - generateGlobalStyle: generateGlobalStyle - })))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GlobalStylesContainer); - -/***/ }), - -/***/ "./src/components/GlobalStyles/GlobalStylesDeleteModal.js": -/*!****************************************************************!*\ - !*** ./src/components/GlobalStyles/GlobalStylesDeleteModal.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var react_hook_form__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-hook-form */ "./node_modules/react-hook-form/dist/index.esm.mjs"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/circle-alert.js"); -/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./context */ "./src/components/GlobalStyles/context.js"); -/* harmony import */ var _Notice__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Notice */ "./src/components/Notice/index.js"); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../store/global-styles */ "./src/store/global-styles.js"); -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - - - - - - - - -var GlobalStylesDeleteModal = function GlobalStylesDeleteModal(props) { - var title = props.title, - editId = props.editId, - deleteNonce = props.deleteNonce, - slug = props.slug; - var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false), - _useState2 = _slicedToArray(_useState, 2), - isDeleting = _useState2[0], - setIsDeleting = _useState2[1]; - var _useContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_4__["default"]), - setSavedPresets = _useContext.setSavedPresets, - showDeleteModal = _useContext.showDeleteModal, - setShowDeleteModal = _useContext.setShowDeleteModal; - var getDefaultValues = function getDefaultValues() { - return { - editId: editId - }; - }; - var _useForm = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_7__.useForm)({ - defaultValues: getDefaultValues() - }), - control = _useForm.control, - handleSubmit = _useForm.handleSubmit, - setError = _useForm.setError; - var _useFormState = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_7__.useFormState)({ - control: control - }), - errors = _useFormState.errors; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_2__.useDispatch)(_store_global_styles__WEBPACK_IMPORTED_MODULE_6__["default"]), - removeGlobalStyle = _useDispatch.removeGlobalStyle; - var _useDispatch2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_2__.useDispatch)('core/notices'), - createWarningNotice = _useDispatch2.createWarningNotice, - createSuccessNotice = _useDispatch2.createSuccessNotice; - var onSubmit = function onSubmit(formData) { - setIsDeleting(true); - var ajaxUrl = "".concat(ajaxurl); // eslint-disable-line no-undef - var data = new FormData(); - data.append('action', 'dlx_photo_block_delete_global_style'); - data.append('nonce', deleteNonce); - data.append('editId', formData.editId); - fetch(ajaxUrl, { - method: 'POST', - body: data, - /* get return in json */ - headers: { - Accept: 'application/json' - } - }).then(function (response) { - return response.json(); - }).then(function (json) { - var success = json.success, - data = json.data; - if (!success) { - setError('deletionFailed', { - type: 'manual', - message: data.message - }); - createWarningNotice(data.message, { - type: 'snackbar' - }); - setIsDeleting(false); - return; - } - createWarningNotice((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Global style deleted.', 'photo-block'), { - type: 'snackbar' - }); - removeGlobalStyle(slug); - setIsDeleting(false); - setShowDeleteModal(false); - })["catch"](function (error) { - setError('deletionFailed', { - type: 'manual', - message: error.message - }); - setIsDeleting(false); - }); - }; - - // Don't show modal unless explicitly set. - if (!showDeleteModal) { - return null; - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Modal, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Delete Global Style', 'photo-block'), - onRequestClose: function onRequestClose() { - return setShowDeleteModal(false); - }, - className: "photo-block-global-styles-modal", - shouldCloseOnClickOutside: false - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("form", { - onSubmit: handleSubmit(onSubmit) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", { - className: "description" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Any photos using this global style will use last-assigned values.', 'photo-block')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_7__.Controller, { - name: "editId", - control: control, - render: function render(_ref) { - var field = _ref.field; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, _extends({ - type: "hidden" - }, field)); - } - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - type: "submit", - variant: "primary", - className: "photo-block-global-styles-modal-apply-button", - disabled: isDeleting, - isDestructive: true - }, isDeleting ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Deleting…', 'photo-block') : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Delete Global Style', 'photo-block')), !isDeleting && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - onClick: function onClick() { - setShowDeleteModal(false); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Cancel', 'photo-block')), errors.deletionFailed && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Notice__WEBPACK_IMPORTED_MODULE_5__["default"], { - message: errors.deletionFailed.message, - status: "error", - politeness: "assertive", - icon: lucide_react__WEBPACK_IMPORTED_MODULE_8__["default"] - }))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GlobalStylesDeleteModal); - -/***/ }), - -/***/ "./src/components/GlobalStyles/GlobalStylesEditModal.js": -/*!**************************************************************!*\ - !*** ./src/components/GlobalStyles/GlobalStylesEditModal.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var react_hook_form__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-hook-form */ "./node_modules/react-hook-form/dist/index.esm.mjs"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/circle-alert.js"); -/* harmony import */ var _Notice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Notice */ "./src/components/Notice/index.js"); -/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./context */ "./src/components/GlobalStyles/context.js"); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../store/global-styles */ "./src/store/global-styles.js"); -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - - - - - - - - -var canSaveDefaultPresets = photoBlockUser.canSaveDefaultPresets; -var GlobalStylesEditModal = function GlobalStylesEditModal(props) { - var _errors$title, _errors$title2, _errors$cssClass, _errors$cssClass2; - var title = props.title, - editId = props.editId, - saveNonce = props.saveNonce, - cssClass = props.cssClass; - var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false), - _useState2 = _slicedToArray(_useState, 2), - isSaving = _useState2[0], - setIsSaving = _useState2[1]; - var _useContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_5__["default"]), - setSavedPresets = _useContext.setSavedPresets, - showEditModal = _useContext.showEditModal, - setShowEditModal = _useContext.setShowEditModal, - defaultPreset = _useContext.defaultPreset, - setDefaultPreset = _useContext.setDefaultPreset; - var getDefaultValues = function getDefaultValues() { - return { - title: title, - editId: editId, - cssClass: cssClass - }; - }; - var _useForm = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_7__.useForm)({ - defaultValues: getDefaultValues() - }), - control = _useForm.control, - handleSubmit = _useForm.handleSubmit, - getValues = _useForm.getValues, - setError = _useForm.setError; - var _useFormState = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_7__.useFormState)({ - control: control - }), - errors = _useFormState.errors; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useDispatch)(_store_global_styles__WEBPACK_IMPORTED_MODULE_6__["default"]), - setGlobalStyle = _useDispatch.setGlobalStyle; - var _useDispatch2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useDispatch)('core/notices'), - createSuccessNotice = _useDispatch2.createSuccessNotice; - var onSubmit = function onSubmit(formData) { - setIsSaving(true); - var ajaxUrl = "".concat(ajaxurl); // eslint-disable-line no-undef - var data = new FormData(); - data.append('action', 'dlx_photo_block_save_edited_global_style'); - data.append('nonce', saveNonce); - data.append('editId', formData.editId); - data.append('title', formData.title); - data.append('cssClass', formData.cssClass); - fetch(ajaxUrl, { - method: 'POST', - body: data, - /* get return in json */ - headers: { - Accept: 'application/json' - } - }).then(function (response) { - return response.json(); - }).then(function (json) { - var success = json.success; - setIsSaving(false); - if (!success) { - setError('saveError', { - type: 'manual', - message: data.message - }); - return; - } - setGlobalStyle(json.data, json.data.slug); - - // Show a success notice. - createSuccessNotice((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Global style updated successfully.', 'photo-block'), { - type: 'snackbar' - }); - - // Close the modal. - setShowEditModal(false); - })["catch"](function (error) { - setIsSaving(false); - }); - }; - - // Don't show modal unless explicitly set. - if (!showEditModal) { - return null; - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Modal, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Update Global Style', 'photo-block'), - onRequestClose: function onRequestClose() { - return setShowEditModal(false); - }, - className: "photo-block-global-styles-modal", - shouldCloseOnClickOutside: false - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("form", { - onSubmit: handleSubmit(onSubmit) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_7__.Controller, { - name: "title", - control: control, - rules: { - required: true, - pattern: /^[a-zA-Z0-9-_ ]+$/ - }, - render: function render(_ref) { - var field = _ref.field; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, _extends({}, field, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Global Style Label', 'photo-block'), - className: "is-required" - })); - } - }), 'required' === ((_errors$title = errors.title) === null || _errors$title === void 0 ? void 0 : _errors$title.type) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Notice__WEBPACK_IMPORTED_MODULE_4__["default"], { - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('This field is required.'), - status: "error", - politeness: "assertive", - icon: lucide_react__WEBPACK_IMPORTED_MODULE_8__["default"] - }), 'pattern' === ((_errors$title2 = errors.title) === null || _errors$title2 === void 0 ? void 0 : _errors$title2.type) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Notice__WEBPACK_IMPORTED_MODULE_4__["default"], { - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('This field contains invalid characters.'), - status: "error", - politeness: "assertive", - icon: lucide_react__WEBPACK_IMPORTED_MODULE_8__["default"] - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_7__.Controller, { - name: "cssClass", - control: control, - rules: { - required: true, - pattern: /^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/ - }, - render: function render(_ref2) { - var field = _ref2.field; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, _extends({}, field, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Global Style CSS Class Name', 'photo-block'), - className: "is-required" - })); - } - }), 'required' === ((_errors$cssClass = errors.cssClass) === null || _errors$cssClass === void 0 ? void 0 : _errors$cssClass.type) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Notice__WEBPACK_IMPORTED_MODULE_4__["default"], { - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('This field is required.'), - status: "error", - politeness: "assertive", - icon: lucide_react__WEBPACK_IMPORTED_MODULE_8__["default"] - }), 'pattern' === ((_errors$cssClass2 = errors.cssClass) === null || _errors$cssClass2 === void 0 ? void 0 : _errors$cssClass2.type) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Notice__WEBPACK_IMPORTED_MODULE_4__["default"], { - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('This field contains invalid characters.'), - status: "error", - politeness: "assertive", - icon: lucide_react__WEBPACK_IMPORTED_MODULE_8__["default"] - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_7__.Controller, { - name: "editId", - control: control, - render: function render(_ref3) { - var field = _ref3.field; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, _extends({ - type: "hidden" - }, field)); - } - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - type: "submit", - variant: "primary", - className: "photo-block-global-styles-modal-apply-button", - disabled: isSaving - }, isSaving ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Saving…', 'photo-block') : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Apply Changes', 'photo-block')), !isSaving && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - onClick: function onClick() { - setShowEditModal(false); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Cancel', 'photo-block')), (errors === null || errors === void 0 ? void 0 : errors.saveError) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Notice__WEBPACK_IMPORTED_MODULE_4__["default"], { - message: errors.saveError.message, - status: "error", - politeness: "assertive", - icon: lucide_react__WEBPACK_IMPORTED_MODULE_8__["default"] - }))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GlobalStylesEditModal); - -/***/ }), - -/***/ "./src/components/GlobalStyles/GlobalStylesSaveModal.js": -/*!**************************************************************!*\ - !*** ./src/components/GlobalStyles/GlobalStylesSaveModal.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/url */ "@wordpress/url"); -/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_url__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var react_hook_form__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-hook-form */ "./node_modules/react-hook-form/dist/index.esm.mjs"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/circle-alert.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/save.js"); -/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./context */ "./src/components/GlobalStyles/context.js"); -/* harmony import */ var _Notice__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Notice */ "./src/components/Notice/index.js"); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../store/global-styles */ "./src/store/global-styles.js"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_10__); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - - - - - - - - - - - - -var canSaveDefaultPresets = photoBlockUser.canSetDefaultPresets; -var GlobalStylesSaveModal = function GlobalStylesSaveModal(props) { - var _errors$globalStyleLa2, _errors$globalStyleLa3, _errors$globalStyleCS2, _errors$globalStyleCS3, _errors$selectedGloba; - var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)('new'), - _useState2 = _slicedToArray(_useState, 2), - presetSaveType = _useState2[0], - setPresetSaveType = _useState2[1]; - var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false), - _useState4 = _slicedToArray(_useState3, 2), - isSaving = _useState4[0], - setIsSaving = _useState4[1]; - var title = props.title, - setAttributes = props.setAttributes, - clientId = props.clientId; - var _useContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_7__["default"]), - setSavingPreset = _useContext.setSavingPreset; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.useDispatch)(_store_global_styles__WEBPACK_IMPORTED_MODULE_9__["default"]), - setGlobalStyle = _useDispatch.setGlobalStyle, - setGlobalStyleRefresh = _useDispatch.setGlobalStyleRefresh; - var _useDispatch2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.useDispatch)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_10__.store), - insertBlock = _useDispatch2.insertBlock, - updateBlockAttributes = _useDispatch2.updateBlockAttributes; - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.useSelect)(function (groupSelect) { - return { - globalStyles: groupSelect(_store_global_styles__WEBPACK_IMPORTED_MODULE_9__["default"]).getGlobalStyles() - }; - }), - globalStyles = _useSelect.globalStyles; - var getDefaultValues = function getDefaultValues() { - return { - globalStyleLabel: '', - globalStyleSlug: '', - globalStyleCSSClass: '', - selectedGlobalStyle: null, - globalStyleApplyToBlock: true - }; - }; - var _useForm = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_11__.useForm)({ - defaultValues: getDefaultValues() - }), - control = _useForm.control, - handleSubmit = _useForm.handleSubmit, - setValue = _useForm.setValue, - trigger = _useForm.trigger, - setError = _useForm.setError, - clearErrors = _useForm.clearErrors, - getValues = _useForm.getValues; - var _useFormState = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_11__.useFormState)({ - control: control - }), - errors = _useFormState.errors; - var _useDispatch3 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.useDispatch)('core/notices'), - createSuccessNotice = _useDispatch3.createSuccessNotice, - createWarningNotice = _useDispatch3.createWarningNotice; - /** - * Retrieve a list of parent and child attributes for the current block. - * - * @return {Object} Object of attributes with keys photoAttributes, captionAttributes.. - */ - var getCurrentAttributes = function getCurrentAttributes() { - var _select$getBlocksByCl; - // Get the caption block attributes, if any. - var currentBlock = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.select)('core/block-editor').getBlocksByClientId(clientId)[0]; - var parentClientId = currentBlock.clientId; - - // If the current block is a caption, select the parent block's clientId instead. - if ('dlxplugins/photo-caption-block' === currentBlock.name) { - var currentBlockClientId = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.select)('core/block-editor').getBlockParents(clientId)[0]; - currentBlock = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.select)('core/block-editor').getBlocksByClientId(currentBlockClientId)[0]; - parentClientId = currentBlock.clientId; - } - var children = ((_select$getBlocksByCl = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.select)('core/block-editor').getBlocksByClientId(parentClientId)[0]) === null || _select$getBlocksByCl === void 0 ? void 0 : _select$getBlocksByCl.innerBlocks) || []; - var captionBlock = children.find(function (block) { - return 'dlxplugins/photo-caption-block' === block.name; - }); - var captionAttributes = captionBlock ? captionBlock.attributes : {}; - - // Get the parent block attributes. - var parentAttributes = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.select)('core/block-editor').getBlockAttributes(parentClientId); - - // Merge the parent and child attributes. - var allAttributes = { - photoAttributes: parentAttributes, - captionAttributes: captionAttributes - }; - return allAttributes; - }; - var onSubmit = function onSubmit(formData) { - if ('new' === presetSaveType) { - saveNewPreset(formData); - } else { - overridePreset(formData); - } - }; - var hasErrors = function hasErrors() { - return Object.keys(errors).length > 0; - }; - - /** - * Apply Global Style to current block. - * - * @param {Object} globalStyle Global Style slug. - */ - var applyGlobalStyle = function applyGlobalStyle(globalStyle) { - var _globalStyle$content, _globalStyle$content$, _select$getBlocksByCl2; - if (!getValues('globalStyleApplyToBlock')) { - return; - } - var hasCaption = false; - if ((_globalStyle$content = globalStyle.content) !== null && _globalStyle$content !== void 0 && (_globalStyle$content$ = _globalStyle$content.photoAttributes) !== null && _globalStyle$content$ !== void 0 && _globalStyle$content$.hasCaption) { - hasCaption = true; - } - var currenBlockClientId = props.clientId; - - // Get the parent photo block. - var currentBlock = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.select)('core/block-editor').getBlocksByClientId(currenBlockClientId)[0]; - if ('dlxplugins/photo-caption-block' === currentBlock.name) { - var newParentClientId = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.select)('core/block-editor').getBlockParents(currenBlockClientId)[0]; - currentBlock = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.select)('core/block-editor').getBlocksByClientId(newParentClientId)[0]; - currenBlockClientId = newParentClientId; - } - - // Try to get children of the block (caption). - var children = ((_select$getBlocksByCl2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.select)('core/block-editor').getBlocksByClientId(currenBlockClientId)[0]) === null || _select$getBlocksByCl2 === void 0 ? void 0 : _select$getBlocksByCl2.innerBlocks) || []; - - // Get any exising caption blocks. - var captionBlock = children.find(function (block) { - return 'dlxplugins/photo-caption-block' === block.name; - }); - - // Get unique ID for the photo block. - var uniqueIdAttribute = currentBlock.attributes.uniqueId; - var captionAttributes = _objectSpread(_objectSpread({}, globalStyle.content.captionAttributes), { - globalStyle: globalStyle.slug - }); - - // Set global style for parent block. - updateBlockAttributes(currenBlockClientId, { - date: new Date().getTime(), - globalStyle: globalStyle.slug, - hasCaption: hasCaption - }); - - // If there is no caption block, but there are attributes to apply, create one. - if (!captionBlock && (captionAttributes || captionAttributes.length > 0)) { - var newBlocks = (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__.createBlock)('dlxplugins/photo-caption-block', captionAttributes); - insertBlock(newBlocks, undefined, currenBlockClientId); - } - - // If there is a caption block and attributes to apply, apply them. - if (captionBlock && (captionAttributes || captionAttributes.length > 0)) { - var captionBlockAttributes = _objectSpread(_objectSpread({}, captionAttributes), uniqueIdAttribute); - updateBlockAttributes(captionBlock.clientId, captionBlockAttributes); - } - }; - - /** - * Save a new preset via Ajax. - * - * @param {Array} formData Form data array. - */ - var saveNewPreset = function saveNewPreset(formData) { - setIsSaving(true); - var ajaxUrl = "".concat(ajaxurl); // eslint-disable-line no-undef - var formDataNew = new FormData(); - formDataNew.append('action', 'dlx_photo_block_save_global_styles'); - formDataNew.append('nonce', photoBlock.globalStylesSaveNewNonce); - formDataNew.append('attributes', JSON.stringify(getCurrentAttributes())); - formDataNew.append('formData', JSON.stringify(formData)); - fetch(ajaxUrl, { - method: 'POST', - body: formDataNew, - /* get return in json */ - headers: { - Accept: 'application/json' - } - }).then(function (response) { - return response.json(); - }).then(function (json) { - var success = json.success, - data = json.data; - if (!success) { - setError('formAjaxError', { - type: 'ajax', - message: data.message - }); - createWarningNotice((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('There was an error saving the global style.', 'photo-block'), { - type: 'snackbar' - }); - setIsSaving(false); - return; - } - createSuccessNotice((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Global style saved successfully.', 'photo-block'), { - type: 'snackbar' - }); - applyGlobalStyle(data, data.slug); - setGlobalStyleRefresh(new Date().getTime()); - setGlobalStyle(data, data.slug); - setIsSaving(false); - setSavingPreset(false); - props.generateGlobalStyle(); - })["catch"](function (error) { - setIsSaving(false); - setSavingPreset(false); - }); - }; - - /** - * Save a new preset via Ajax. - * - * @param {Array} formData Form data array. - */ - var overridePreset = function overridePreset(formData) { - setIsSaving(true); - var ajaxUrl = "".concat(ajaxurl); // eslint-disable-line no-undef - var data = new FormData(); - data.append('action', 'dlx_photo_block_override_global_style'); - data.append('nonce', photoBlock.globalStylesSaveNewNonce); - data.append('attributes', JSON.stringify(getCurrentAttributes())); - data.append('editId', formData.selectedGlobalStyle); - fetch(ajaxUrl, { - method: 'POST', - body: data, - /* get return in json */ - headers: { - Accept: 'application/json' - } - }).then(function (response) { - return response.json(); - }).then(function (json) { - var success = json.success; - var newData = json.data; - if (!success) { - setError('formAjaxError', { - type: 'ajax', - message: newData.message - }); - createWarningNotice((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('There was an error saving the global style override.', 'photo-block'), { - type: 'snackbar' - }); - setIsSaving(false); - return; - } - applyGlobalStyle(newData, newData.slug); - setGlobalStyle(newData, newData.slug); - setIsSaving(false); - setSavingPreset(false); - props.generateGlobalStyle(); - setGlobalStyleRefresh(new Date().getTime()); - maybeRefreshBlocks(newData); - createSuccessNotice((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Global style saved successfully.', 'photo-block'), { - type: 'snackbar' - }); - })["catch"](function (error) { - setSavingPreset(false); - }); - }; - - /** - * Refresh blocks upon a global style override. - * - * @param {Object} incomingData Incoming data from the server. - */ - var maybeRefreshBlocks = function maybeRefreshBlocks(incomingData) { - // Get a list of all photo blocks. - var photoBlocks = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.select)('core/block-editor').getBlocks().filter(function (block) { - return 'dlxplugins/photo-block' === block.name; - }); - // Now for each that has a global style, let's force an attribute update. - photoBlocks.forEach(function (block) { - var _block$attributes = block.attributes, - globalStyle = _block$attributes.globalStyle, - uniqueId = _block$attributes.uniqueId; - var captionPosition = incomingData.content.captionAttributes.captionPosition; - - // Get the caption block attributes, if any. - var currentBlock = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.select)('core/block-editor').getBlocksByClientId(parentClientId)[0]; - var parentClientId = currentBlock.clientId; - - // If the current block is a caption, select the parent block's clientId instead. - if ('dlxplugins/photo-caption-block' === currentBlock.name) { - var currentBlockClientId = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.select)('core/block-editor').getBlockParents(clientId)[0]; - currentBlock = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.select)('core/block-editor').getBlocksByClientId(currentBlockClientId)[0]; - parentClientId = currentBlock.clientId; - } - if (globalStyle !== 'none' && '' !== globalStyle) { - updateBlockAttributes(parentClientId, { - date: new Date().getTime(), - globalStyle: globalStyle, - captionPosition: captionPosition - }); - - // Now get caption blocks and refresh. - var children = currentBlock.innerBlocks || []; - var captionBlock = children.find(function (innerBlock) { - return 'dlxplugins/photo-caption-block' === innerBlock.name; - }); - if (captionBlock) { - updateBlockAttributes(captionBlock.clientId, { - date: new Date().getTime(), - globalStyle: globalStyle, - captionPosition: captionPosition - }); - } - } - }); - }; - - /** - * Get the preset options in radio group format. - * - * @return {Array} Array of objects with label and value properties. - */ - var getPresetRadioOptions = function getPresetRadioOptions() { - var options = []; - Object.values(globalStyles).forEach(function (globalStyle) { - options.push({ - label: globalStyle.title, - value: globalStyle.id + '' - }); - }); - return options; - }; - var radioOptions = [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Save Global Style', 'photo-block'), - value: 'new' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Override Global Style', 'photo-block'), - value: 'override' - }]; - if (Object.keys(globalStyles).length === 0 || !canSaveDefaultPresets) { - radioOptions = [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Save Global Style', 'photo-block'), - value: 'new' - }]; - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "photo-block-global-styles-modal" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Modal, { - title: title, - onRequestClose: function onRequestClose() { - return setSavingPreset(false); - }, - className: "photo-block-global-styles-modal", - shouldCloseOnClickOutside: false - }, radioOptions.length > 1 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.RadioControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Save a new global style or override an existing one.', 'photo-block'), - className: "photo-block-global-styles-modal-radio-control", - selected: presetSaveType, - options: radioOptions, - onChange: function onChange(value) { - setPresetSaveType(value); - } - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("form", { - onSubmit: handleSubmit(onSubmit) - }, 'new' === presetSaveType && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "photo-block-global-styles-modal-new-preset" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "photo-block-global-styles-row" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_11__.Controller, { - name: "globalStyleLabel", - control: control, - rules: { - required: true, - pattern: /^(?=[^0-9-_])[a-zA-Z0-9-_ ]+$/ - }, - render: function render(_ref) { - var _errors$globalStyleLa; - var field = _ref.field; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, _extends({}, field, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Global Style Name', 'photo-block'), - className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('photo-block-admin__text-control', { - 'is-required': true, - 'has-error': 'required' === ((_errors$globalStyleLa = errors.globalStyleLabel) === null || _errors$globalStyleLa === void 0 ? void 0 : _errors$globalStyleLa.type) - }), - onBlur: function onBlur() { - if (getValues('globalStyleCSSClass') === '') { - setValue('globalStyleCSSClass', (0,_wordpress_url__WEBPACK_IMPORTED_MODULE_2__.cleanForSlug)(field.value)); - trigger('globalStyleCSSClass'); - } - }, - onChange: function onChange(newValue) { - clearErrors(); - field.onChange(newValue); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Enter a descriptive label for this global style. A unique slug will be generated automatically.', 'photo-block') - })); - } - }), 'required' === ((_errors$globalStyleLa2 = errors.globalStyleLabel) === null || _errors$globalStyleLa2 === void 0 ? void 0 : _errors$globalStyleLa2.type) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Notice__WEBPACK_IMPORTED_MODULE_8__["default"], { - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('The Global Style Name field is required.'), - status: "error", - politeness: "assertive", - icon: lucide_react__WEBPACK_IMPORTED_MODULE_12__["default"] - }), 'pattern' === ((_errors$globalStyleLa3 = errors.globalStyleLabel) === null || _errors$globalStyleLa3 === void 0 ? void 0 : _errors$globalStyleLa3.type) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Notice__WEBPACK_IMPORTED_MODULE_8__["default"], { - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('This Global Style label contains invalid characters.'), - status: "error", - politeness: "assertive", - icon: lucide_react__WEBPACK_IMPORTED_MODULE_12__["default"] - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "photo-block-global-styles-row" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_11__.Controller, { - name: "globalStyleCSSClass", - control: control, - rules: { - required: true, - pattern: /^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/ - }, - render: function render(_ref2) { - var _errors$globalStyleCS; - var _ref2$field = _ref2.field, - _onChange = _ref2$field.onChange, - value = _ref2$field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Global Style CSS Class', 'photo-block'), - value: value, - className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('photo-block-admin__text-control', { - 'is-required': true, - 'has-error': 'required' === ((_errors$globalStyleCS = errors.globalStyleCSSClass) === null || _errors$globalStyleCS === void 0 ? void 0 : _errors$globalStyleCS.type) - }), - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('The CSS class used when outputting the block.', 'photo-block'), - onChange: function onChange(newValue) { - clearErrors(); - _onChange(newValue); - } - }); - } - }), 'pattern' === ((_errors$globalStyleCS2 = errors.globalStyleCSSClass) === null || _errors$globalStyleCS2 === void 0 ? void 0 : _errors$globalStyleCS2.type) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Notice__WEBPACK_IMPORTED_MODULE_8__["default"], { - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('The CSS class contains invalid characters and must be a CSS friendly name.'), - status: "error", - politeness: "assertive", - icon: lucide_react__WEBPACK_IMPORTED_MODULE_12__["default"] - }), 'required' === ((_errors$globalStyleCS3 = errors.globalStyleCSSClass) === null || _errors$globalStyleCS3 === void 0 ? void 0 : _errors$globalStyleCS3.type) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Notice__WEBPACK_IMPORTED_MODULE_8__["default"], { - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('The Global Style CSS Class field is required.'), - status: "error", - politeness: "assertive", - icon: lucide_react__WEBPACK_IMPORTED_MODULE_12__["default"] - })))), 'override' === presetSaveType && canSaveDefaultPresets && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, Object.keys(globalStyles).length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "photo-block-global-styles-modal-override-preset" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_11__.Controller, { - name: "selectedGlobalStyle", - control: control, - rules: { - required: true - }, - render: function render(_ref3) { - var _ref3$field = _ref3.field, - _onChange2 = _ref3$field.onChange, - value = _ref3$field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.RadioControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Select a global style to override', 'photo-block'), - className: "is-required", - selected: value, - options: getPresetRadioOptions(), - onChange: function onChange(radioValue) { - return _onChange2(radioValue); - } - }); - } - }), 'required' === ((_errors$selectedGloba = errors.selectedGlobalStyle) === null || _errors$selectedGloba === void 0 ? void 0 : _errors$selectedGloba.type) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Notice__WEBPACK_IMPORTED_MODULE_8__["default"], { - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('This field is required.'), - status: "error", - politeness: "assertive", - icon: lucide_react__WEBPACK_IMPORTED_MODULE_12__["default"] - }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "photo-block-global-styles-row photo-block-global-styles-apply-option" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_11__.Controller, { - name: "globalStyleApplyToBlock", - control: control, - render: function render(_ref4) { - var field = _ref4.field; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Apply this global style to the selected block.', 'photo-block'), - checked: field.value, - onChange: function onChange() { - field.onChange(!field.value); - } - }); - } - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "photo-block-global-styles-modal-button-group" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - type: "submit", - variant: "primary", - className: "photo-block-global-styles-modal-apply-button", - disabled: isSaving || hasErrors(), - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(lucide_react__WEBPACK_IMPORTED_MODULE_13__["default"], null) - }, isSaving ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Saving…', 'photo-block') : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Save Global Style', 'photo-block')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - onClick: function onClick() { - setSavingPreset(false); - }, - className: "photo-block-global-styles-modal-cancel-button", - disabled: isSaving - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Cancel', 'photo-block'))), (errors === null || errors === void 0 ? void 0 : errors.formAjaxError) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "photo-block-global-styles-row" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Notice__WEBPACK_IMPORTED_MODULE_8__["default"], { - message: errors.formAjaxError.message, - status: "error", - politeness: "assertive", - icon: lucide_react__WEBPACK_IMPORTED_MODULE_12__["default"] - }))))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GlobalStylesSaveModal); - -/***/ }), - -/***/ "./src/components/GlobalStyles/context.js": -/*!************************************************!*\ - !*** ./src/components/GlobalStyles/context.js ***! - \************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - -var GlobalStylesContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext(); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GlobalStylesContext); - -/***/ }), - -/***/ "./src/components/GlobalStyles/index.js": -/*!**********************************************!*\ - !*** ./src/components/GlobalStyles/index.js ***! - \**********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/GlobalStyles/editor.scss"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./context */ "./src/components/GlobalStyles/context.js"); -/* harmony import */ var _GlobalStylesContainer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./GlobalStylesContainer */ "./src/components/GlobalStyles/GlobalStylesContainer.js"); -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - - - -var GlobalStyles = function GlobalStyles(props) { - var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([]), - _useState2 = _slicedToArray(_useState, 2), - savedPresets = _useState2[0], - setSavedPresets = _useState2[1]; - var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState4 = _slicedToArray(_useState3, 2), - savingPreset = _useState4[0], - setSavingPreset = _useState4[1]; - var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState6 = _slicedToArray(_useState5, 2), - editPresets = _useState6[0], - setEditPresets = _useState6[1]; - var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState8 = _slicedToArray(_useState7, 2), - showEditModal = _useState8[0], - setShowEditModal = _useState8[1]; - var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState10 = _slicedToArray(_useState9, 2), - showDeleteModal = _useState10[0], - setShowDeleteModal = _useState10[1]; - var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState12 = _slicedToArray(_useState11, 2), - defaultPreset = _useState12[0], - setDefaultPreset = _useState12[1]; - var _useState13 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState14 = _slicedToArray(_useState13, 2), - refreshGlobalStyles = _useState14[0], - setRefreshGlobalStyles = _useState14[1]; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_context__WEBPACK_IMPORTED_MODULE_2__["default"].Provider, { - value: { - savedPresets: savedPresets, - setSavedPresets: setSavedPresets, - savingPreset: savingPreset, - setSavingPreset: setSavingPreset, - editPresets: editPresets, - setEditPresets: setEditPresets, - showEditModal: showEditModal, - setShowEditModal: setShowEditModal, - showDeleteModal: showDeleteModal, - setShowDeleteModal: setShowDeleteModal, - defaultPreset: defaultPreset, - setDefaultPreset: setDefaultPreset, - refreshGlobalStyles: refreshGlobalStyles, - setRefreshGlobalStyles: setRefreshGlobalStyles - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_GlobalStylesContainer__WEBPACK_IMPORTED_MODULE_3__["default"], props)); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GlobalStyles); - -/***/ }), - -/***/ "./src/components/GlobalStylesPicker/ButtonPreview/caption-block-preview.js": -/*!**********************************************************************************!*\ - !*** ./src/components/GlobalStylesPicker/ButtonPreview/caption-block-preview.js ***! - \**********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _blocks_photo_caption_block_block_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../blocks/photo-caption-block/block-styles */ "./src/blocks/photo-caption-block/block-styles.js"); - - -var CaptionBlockPreview = function CaptionBlockPreview(_ref) { - var photoAttributes = _ref.photoAttributes, - captionAttributes = _ref.captionAttributes, - uniqueId = _ref.uniqueId; - var mode = captionAttributes.mode, - captionPosition = captionAttributes.captionPosition, - overlayBackgroundType = captionAttributes.overlayBackgroundType, - overlayDisplayAnimation = captionAttributes.overlayDisplayAnimation, - overlayDisplayOnHover = captionAttributes.overlayDisplayOnHover, - photoMode = captionAttributes.photoMode, - overlayHorizontalPosition = captionAttributes.overlayHorizontalPosition, - overlayVerticalPosition = captionAttributes.overlayVerticalPosition, - overlayCaptionHorizontalPosition = captionAttributes.overlayCaptionHorizontalPosition, - overlayCaptionVerticalPosition = captionAttributes.overlayCaptionVerticalPosition, - captionAlign = captionAttributes.captionAlign; - - /** - * Get the caption for display. - * - * @return {JSX.Element} The caption. - */ - var getCaption = function getCaption() { - var figClasses = classnames__WEBPACK_IMPORTED_MODULE_0___default()("dlx-photo-block__caption align".concat(captionAlign), { - 'has-smart-styles': 'advanced' === mode && 'data' !== photoMode && 'featuredImage' !== photoMode - }); - return /*#__PURE__*/React.createElement("figcaption", { - id: 'photo-block-preview', - className: figClasses - }, "This is a sample caption"); - }; - var overlayStyles = classnames__WEBPACK_IMPORTED_MODULE_0___default()('dlx-photo-block__caption-wrapper', "overlay-type-".concat(overlayBackgroundType), { - 'is-overlay': 'overlay' === captionPosition, - 'overlay-vertical-bottom': 'bottom' === overlayVerticalPosition, - 'overlay-vertical-middle': 'middle' === overlayVerticalPosition, - 'overlay-vertical-top': 'top' === overlayVerticalPosition, - 'overlay-horizontal-left': 'left' === overlayHorizontalPosition, - 'overlay-horizontal-center': 'center' === overlayHorizontalPosition, - 'overlay-horizontal-right': 'right' === overlayHorizontalPosition, - 'caption-vertical-bottom': 'bottom' === overlayCaptionVerticalPosition, - 'caption-vertical-middle': 'middle' === overlayCaptionVerticalPosition, - 'caption-vertical-top': 'top' === overlayCaptionVerticalPosition, - 'caption-horizontal-left': 'left' === overlayCaptionHorizontalPosition, - 'caption-horizontal-center': 'center' === overlayCaptionHorizontalPosition, - 'caption-horizontal-right': 'right' === overlayCaptionHorizontalPosition, - 'overlay-display-hover': 'overlay' === captionPosition && overlayDisplayOnHover, - 'overlay-slide-down': overlayDisplayAnimation === 'slide-down', - 'overlay-slide-up': overlayDisplayAnimation === 'slide-up', - 'overlay-slide-left': overlayDisplayAnimation === 'slide-left', - 'overlay-slide-right': overlayDisplayAnimation === 'slide-right', - 'dlx-photo-block__caption-overlay': 'overlay' === captionPosition - }); - var styles = (0,_blocks_photo_caption_block_block_styles__WEBPACK_IMPORTED_MODULE_1__["default"])(captionAttributes, 'desktop', 'photo-block-preview'); - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("style", null, styles), /*#__PURE__*/React.createElement("div", { - className: overlayStyles, - id: "photo-block-preview" - }, getCaption())); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CaptionBlockPreview); - -/***/ }), - -/***/ "./src/components/GlobalStylesPicker/ButtonPreview/index.js": -/*!******************************************************************!*\ - !*** ./src/components/GlobalStylesPicker/ButtonPreview/index.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/GlobalStylesPicker/ButtonPreview/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../store/global-styles */ "./src/store/global-styles.js"); -/* harmony import */ var _store_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../store/index */ "./src/store/index.js"); -/* harmony import */ var _photo_block_preview__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./photo-block-preview */ "./src/components/GlobalStylesPicker/ButtonPreview/photo-block-preview.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -/** - * Upload data row including Upload|Media Library|URL|Data. - */ - - - - - - - - - - -/** - * CSSGramButtonGroup component. - * - * @param {Object} props - Component props. - * @return {Function} Component. - */ -var GlobalStylesButtonPreview = function GlobalStylesButtonPreview(props) { - var attributes = props.attributes, - globalStyle = props.globalStyle; - var _useState = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(null), - _useState2 = _slicedToArray(_useState, 2), - buttonRef = _useState2[0], - setButtonRef = _useState2[1]; - var _useState3 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState4 = _slicedToArray(_useState3, 2), - showPopOver = _useState4[0], - setShowPopOver = _useState4[1]; - var _useState5 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(null), - _useState6 = _slicedToArray(_useState5, 2), - blockPreview = _useState6[0], - setBlockPreview = _useState6[1]; - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useSelect)(function (newSelect) { - return { - getGlobalStyleBySlug: newSelect(_store_global_styles__WEBPACK_IMPORTED_MODULE_7__["default"]).getGlobalStyleBySlug - }; - }), - getGlobalStyleBySlug = _useSelect.getGlobalStyleBySlug; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useDispatch)((0,_store_index__WEBPACK_IMPORTED_MODULE_8__.blockStore)(props.attributes.uniqueId ? props.attributes.uniqueId : null)), - setHasCaption = _useDispatch.setHasCaption; - var _useDispatch2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useDispatch)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__.store), - insertBlock = _useDispatch2.insertBlock, - updateBlockAttributes = _useDispatch2.updateBlockAttributes; - var handlePopoverOpen = function handlePopoverOpen() { - setShowPopOver(true); - buttonRef.focus(); - }; - var handlePopoverClose = function handlePopoverClose() { - setShowPopOver(false); - }; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: globalStyle === (globalStyle === null || globalStyle === void 0 ? void 0 : globalStyle.slug) ? 'primary' : 'secondary', - onClick: function onClick() { - var _globalStyle$content, _globalStyle$content$, _globalStyleObject$co, _globalStyleObject$co2, _globalStyleObject$co3, _globalStyleObject$co4, _globalStyleObject$co5, _globalStyleObject$co6, _globalStyleObject$co7, _globalStyleObject$co8, _globalStyleObject$co9, _globalStyleObject$co10, _globalStyleObject$co11, _globalStyleObject$co12, _globalStyleObject$co13, _globalStyleObject$co14, _select$getBlocksByCl; - // Try to see if photo has caption. - var hasCaption = false; - if ((_globalStyle$content = globalStyle.content) !== null && _globalStyle$content !== void 0 && (_globalStyle$content$ = _globalStyle$content.photoAttributes) !== null && _globalStyle$content$ !== void 0 && _globalStyle$content$.hasCaption) { - setHasCaption(true); - hasCaption = true; - } - var globalStyleObject = getGlobalStyleBySlug(globalStyle.slug); - props.setAttributes(_objectSpread(_objectSpread({}, globalStyleObject.content.photoAttributes), {}, { - globalStyle: globalStyle.slug, - hasCaption: hasCaption, - mediaLinkOverride: false, - imageSizeOverride: false, - imageSize: ((_globalStyleObject$co = globalStyleObject.content) === null || _globalStyleObject$co === void 0 ? void 0 : (_globalStyleObject$co2 = _globalStyleObject$co.photoAttributes) === null || _globalStyleObject$co2 === void 0 ? void 0 : _globalStyleObject$co2.imageSize) || 'full', - mediaLinkType: ((_globalStyleObject$co3 = globalStyleObject.content) === null || _globalStyleObject$co3 === void 0 ? void 0 : (_globalStyleObject$co4 = _globalStyleObject$co3.photoAttributes) === null || _globalStyleObject$co4 === void 0 ? void 0 : _globalStyleObject$co4.mediaLinkType) || 'none', - mediaLinkTitle: ((_globalStyleObject$co5 = globalStyleObject.content) === null || _globalStyleObject$co5 === void 0 ? void 0 : (_globalStyleObject$co6 = _globalStyleObject$co5.photoAttributes) === null || _globalStyleObject$co6 === void 0 ? void 0 : _globalStyleObject$co6.mediaLinkTitle) || '', - mediaLinkUrl: ((_globalStyleObject$co7 = globalStyleObject.content) === null || _globalStyleObject$co7 === void 0 ? void 0 : (_globalStyleObject$co8 = _globalStyleObject$co7.photoAttributes) === null || _globalStyleObject$co8 === void 0 ? void 0 : _globalStyleObject$co8.mediaLinkUrl) || '', - lightboxCaption: ((_globalStyleObject$co9 = globalStyleObject.content) === null || _globalStyleObject$co9 === void 0 ? void 0 : (_globalStyleObject$co10 = _globalStyleObject$co9.photoAttributes) === null || _globalStyleObject$co10 === void 0 ? void 0 : _globalStyleObject$co10.lightboxCaption) || '', - lightboxEnabled: ((_globalStyleObject$co11 = globalStyleObject.content) === null || _globalStyleObject$co11 === void 0 ? void 0 : (_globalStyleObject$co12 = _globalStyleObject$co11.photoAttributes) === null || _globalStyleObject$co12 === void 0 ? void 0 : _globalStyleObject$co12.lightboxEnabled) || false, - lightboxShowCaption: ((_globalStyleObject$co13 = globalStyleObject.content) === null || _globalStyleObject$co13 === void 0 ? void 0 : (_globalStyleObject$co14 = _globalStyleObject$co13.photoAttributes) === null || _globalStyleObject$co14 === void 0 ? void 0 : _globalStyleObject$co14.lightboxShowCaption) || false - })); - - // Try to get children of the block (caption). - var children = ((_select$getBlocksByCl = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.select)('core/block-editor').getBlocksByClientId(props.clientId)[0]) === null || _select$getBlocksByCl === void 0 ? void 0 : _select$getBlocksByCl.innerBlocks) || []; - - // Get any exising caption blocks. - var captionBlock = children.find(function (block) { - return 'dlxplugins/photo-caption-block' === block.name; - }); - - // Get unique ID for the photo block. - var uniqueIdAttribute = props.attributes.uniqueId; - var captionAttributes = _objectSpread(_objectSpread({}, globalStyle.content.captionAttributes), { - globalStyle: globalStyle.slug - }); - - // If there is no caption block, but there are attributes to apply, create one. - if (!captionBlock && (Object.keys(captionAttributes).length > 1 || captionAttributes.length > 1)) { - var newBlocks = (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__.createBlock)('dlxplugins/photo-caption-block', captionAttributes); - insertBlock(newBlocks, undefined, props.clientId); - props.setAttributes({ - hasCaption: true - }); - } - - // If there is a caption block and attributes to apply, apply them. - if (captionBlock && (Object.keys(captionAttributes).length > 1 || captionAttributes.length > 1)) { - var captionBlockAttributes = _objectSpread(_objectSpread({}, captionAttributes), uniqueIdAttribute); - updateBlockAttributes(captionBlock.clientId, captionBlockAttributes); - } - }, - onMouseEnter: function onMouseEnter() { - return handlePopoverOpen(true); - }, - onMouseLeave: function onMouseLeave() { - return handlePopoverClose(false); - }, - ref: setButtonRef - }, globalStyle.title), showPopOver && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Popover, { - className: "dlx-photo-block__global-styles-image-popover", - placement: "left-start", - anchor: buttonRef, - onClose: function onClose() { - setShowPopOver(false); - }, - offset: 10, - noArrow: false - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__global-styles-image-popover-wrapper" - }, /*#__PURE__*/React.createElement(_photo_block_preview__WEBPACK_IMPORTED_MODULE_9__["default"], { - uniqueId: attributes.uniqueId, - photoAttributes: globalStyle.content.photoAttributes, - captionAttributes: globalStyle.content.captionAttributes - })))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GlobalStylesButtonPreview); - -/***/ }), - -/***/ "./src/components/GlobalStylesPicker/ButtonPreview/photo-block-preview.js": -/*!********************************************************************************!*\ - !*** ./src/components/GlobalStylesPicker/ButtonPreview/photo-block-preview.js ***! - \********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _blocks_photo_block_block_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../blocks/photo-block/block-styles */ "./src/blocks/photo-block/block-styles.js"); -/* harmony import */ var _blocks_photo_caption_block_block_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../blocks/photo-caption-block/block-styles */ "./src/blocks/photo-caption-block/block-styles.js"); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../store */ "./src/store/index.js"); -/* harmony import */ var _caption_block_preview__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./caption-block-preview */ "./src/components/GlobalStylesPicker/ButtonPreview/caption-block-preview.js"); - - - - - - -var PhotoBlockPreview = function PhotoBlockPreview(_ref) { - var photoAttributes = _ref.photoAttributes, - captionAttributes = _ref.captionAttributes, - uniqueId = _ref.uniqueId; - if ('undefined' === typeof photoAttributes) { - return null; - } - var styles = (0,_blocks_photo_block_block_styles__WEBPACK_IMPORTED_MODULE_2__["default"])(photoAttributes, 'desktop', 'photo-block-preview'); - styles += (0,_blocks_photo_caption_block_block_styles__WEBPACK_IMPORTED_MODULE_3__["default"])(captionAttributes, 'desktop', 'photo-block-preview'); - styles += "\n\t\t#photo-block-preview .dlx-photo-block__image-wrapper {\n\t\t\tmax-width: 250px !important;\n\t\t\theight: auto !important;\n\t\t\tmargin: 30px;\n\t\t\toverflow: hidden;\n\t\t}\n\t\t#photo-block-preview img {\n\t\t\tmax-width: 250px !important;\n\t\t\theight: auto !important;\n\t\t}\n\t"; - var cssGramFilter = photoAttributes.cssGramFilter, - photoDropShadow = photoAttributes.photoDropShadow; - var captionPosition = captionAttributes.captionPosition; - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.useSelect)(function (select) { - return { - imageData: select((0,_store__WEBPACK_IMPORTED_MODULE_4__.blockStore)(uniqueId)).getImageData() - }; - }), - imageData = _useSelect.imageData; - - /** - * Return an image URL. If in data mode, use a placeholder image. - * - * @return {string} Image URL. - */ - var getImageUrl = function getImageUrl() { - var url = imageData.url, - id = imageData.id; - if (!url || 0 === id) { - var defaultImageUrl = photoBlock.defaultImagePlacheolder; - return defaultImageUrl; - } - return url; - }; - var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('photo-block-preview dlx-photo-block', { - 'dlx-has-drop-shadow': photoDropShadow.enabled - }); - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("style", null, styles), /*#__PURE__*/React.createElement("div", { - className: classes, - id: "photo-block-preview" - }, /*#__PURE__*/React.createElement("figure", { - className: "dlx-photo-block__screen-edit-image-wrapper dlx-photo-block__figure" - }, 'top' === captionPosition && /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit-caption dlx-photo-block__caption" - }, /*#__PURE__*/React.createElement(_caption_block_preview__WEBPACK_IMPORTED_MODULE_5__["default"], { - photoAttributes: photoAttributes, - captionAttributes: captionAttributes, - uniqueId: 'photo-block-preview' - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit-image dlx-photo-block__image-wrapper" - }, /*#__PURE__*/React.createElement("div", { - "class": "dlx-photo-block__screen-edit-image-inner" - }, /*#__PURE__*/React.createElement("img", { - src: getImageUrl(), - className: classnames__WEBPACK_IMPORTED_MODULE_0___default()("photo-block-".concat(cssGramFilter, " dlx-photo-block__image"), { - 'has-css-gram': cssGramFilter !== 'none' - }), - alt: "", - style: { - maxWidth: "100%", - height: 'auto' - } - }), 'overlay' === captionPosition && /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit-caption dlx-photo-block__caption" - }, /*#__PURE__*/React.createElement(_caption_block_preview__WEBPACK_IMPORTED_MODULE_5__["default"], { - photoAttributes: photoAttributes, - captionAttributes: captionAttributes, - uniqueId: 'photo-block-preview' - })))), 'bottom' === captionPosition && /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit-caption dlx-photo-block__caption" - }, /*#__PURE__*/React.createElement(_caption_block_preview__WEBPACK_IMPORTED_MODULE_5__["default"], { - photoAttributes: photoAttributes, - captionAttributes: captionAttributes, - uniqueId: 'photo-block-preview' - }))))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PhotoBlockPreview); - -/***/ }), - -/***/ "./src/components/GlobalStylesPicker/index.js": -/*!****************************************************!*\ - !*** ./src/components/GlobalStylesPicker/index.js ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/GlobalStylesPicker/editor.scss"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/circle-minus.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/palette.js"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../store/global-styles */ "./src/store/global-styles.js"); -/* harmony import */ var _ButtonPreview__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ButtonPreview */ "./src/components/GlobalStylesPicker/ButtonPreview/index.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - - - - - - - - -var GlobalStylesPicker = function GlobalStylesPicker(props) { - var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState2 = _slicedToArray(_useState, 2), - isRemoveModalOpen = _useState2[0], - setIsRemoveModalOpen = _useState2[1]; - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_2__.useSelect)(function (select) { - return { - globalStyles: select(_store_global_styles__WEBPACK_IMPORTED_MODULE_6__["default"]).getGlobalStyles(), - getGlobalStyleBySlug: select(_store_global_styles__WEBPACK_IMPORTED_MODULE_6__["default"]).getGlobalStyleBySlug, - hasGlobalStyle: select(_store_global_styles__WEBPACK_IMPORTED_MODULE_6__["default"]).hasGlobalStyle - }; - }), - globalStyles = _useSelect.globalStyles, - getGlobalStyleBySlug = _useSelect.getGlobalStyleBySlug, - hasGlobalStyle = _useSelect.hasGlobalStyle; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_2__.useDispatch)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.store), - updateBlockAttributes = _useDispatch.updateBlockAttributes; - var _useSelect2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_2__.useSelect)(function (select) { - return { - getBlock: select(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.store).getBlock - }; - }), - getBlock = _useSelect2.getBlock; - - // Exit if no global styles. - if (Object.keys(globalStyles).length === 0) { - return null; - } - var getGlobalStyles = function getGlobalStyles() { - if (hasGlobalStyle(props.attributes.globalStyle)) { - var globalStyle = getGlobalStyleBySlug(props.attributes.globalStyle); - - // Make sure the global style is not empty. - if (Object.keys(globalStyle).length === 0) { - return null; - } - - // Return global style interface. - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-global-styles-selected" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-global-styles-selected-title" - }, globalStyle.title), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-global-styles-selected-actions" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.Button, { - onClick: function onClick() { - setIsRemoveModalOpen(true); - }, - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(lucide_react__WEBPACK_IMPORTED_MODULE_8__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Remove the Global Style', 'photo-block') - }))); - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-global-styles-picker-button-group" - }, Object.values(globalStyles).map(function (globalStyle) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ButtonPreview__WEBPACK_IMPORTED_MODULE_7__["default"], _extends({ - key: globalStyle.slug, - globalStyle: globalStyle - }, props)); - })); - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, isRemoveModalOpen && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.Modal, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Remove Global Style', 'photo-block'), - onRequestClose: function onRequestClose() { - return setIsRemoveModalOpen(false); - }, - className: "photo-block-global-styles-modal", - shouldCloseOnClickOutside: false - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("form", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Remove the global style from this photo.', 'photo-block')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('The current global style will be applied to the image.', 'photo-block')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.Button, { - onClick: function onClick() { - if (hasGlobalStyle(props.attributes.globalStyle)) { - var globalStyle = getGlobalStyleBySlug(props.attributes.globalStyle); - - // Reset global style in attributes. - var newGlobalStyle = { - globalStyle: 'none' - }; - var photoAttributes = _objectSpread(_objectSpread({}, globalStyle.content.photoAttributes), newGlobalStyle); - var captionAttributes = _objectSpread(_objectSpread({}, globalStyle.content.captionAttributes), newGlobalStyle); - - // Need to apply global styles to the photo. - updateBlockAttributes(props.clientId, photoAttributes); - - // Get the caption block. No need to create caption block here. - var block = getBlock(props.clientId); - var captionInnerBlocks = block === null || block === void 0 ? void 0 : block.innerBlocks; - if (captionInnerBlocks.length > 0) { - var captionBlockClientId = (block === null || block === void 0 ? void 0 : block.innerBlocks[0].clientId) || null; - // Need to apply global styles to the caption. - updateBlockAttributes(captionBlockClientId, captionAttributes); - } - } - setIsRemoveModalOpen(false); - }, - variant: "primary", - className: "photo-block-global-styles-modal-apply-button" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Remove Global Style', 'photo-block')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.Button, { - onClick: function onClick() { - return setIsRemoveModalOpen(false); - }, - variant: "secondary" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Cancel', 'photo-block')))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelBody, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Available Global Styles'), - initialOpen: true, - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(lucide_react__WEBPACK_IMPORTED_MODULE_9__["default"], null), - className: "photo-block__inspector-panel" - }, getGlobalStyles())); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GlobalStylesPicker); - -/***/ }), - -/***/ "./src/components/GradientPicker/index.js": -/*!************************************************!*\ - !*** ./src/components/GradientPicker/index.js ***! - \************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/GradientPicker/editor.scss"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -/** - * Gradient Picker - */ - - - - - -var GradientPickerControl = function GradientPickerControl(props) { - var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState2 = _slicedToArray(_useState, 2), - isVisible = _useState2[0], - setIsVisible = _useState2[1]; - var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState4 = _slicedToArray(_useState3, 2), - isToggled = _useState4[0], - setIsToggled = _useState4[1]; - var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState6 = _slicedToArray(_useState5, 2), - gradientPickerButtonAnchor = _useState6[0], - setGradientPickerButtonAnchor = _useState6[1]; - var label = props.label, - onChange = props.onChange, - value = props.value, - clearable = props.clearable; - - /** - * Get a gradient style object. - * - * @return {Object} Gradient style object. - */ - var getGradientStyles = function getGradientStyles() { - var hexRegex = /#?[0-9A-Fa-f]{6}/gm; // From: https://linuxhint.com/check-if-string-is-hex-in-javascript/ - if ('' === value) { - return { - background: '#FFFFFF' - }; - } - if (value.match(hexRegex)) { - return { - backgroundColor: value - }; - } - // Return gradient style value. - return { - backgroundImage: value - }; - }; - - /** - * Close color popup if visible. - */ - var toggleClose = function toggleClose() { - setIsToggled(true); - setIsVisible(!isVisible); - setTimeout(function () { - setIsToggled(false); - }, 500); - }; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.BaseControl, { - className: "photo-block-component-gradient-picker-wrapper" - }, /*#__PURE__*/React.createElement("h3", null, label), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - className: "photo-block-component-gradient-picker", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Open Gradient Picker', 'photo-block'), - style: getGradientStyles(), - ref: setGradientPickerButtonAnchor, - onClick: function onClick() { - if (isToggled) { - setIsToggled(false); - } else { - setIsVisible(!isVisible); - } - } - }), true === isVisible && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Popover, { - className: "photo-block-component-gradient-picker-popover", - noArrow: false, - anchor: gradientPickerButtonAnchor, - placement: "left", - offset: 8, - onClose: toggleClose - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.GradientPicker, { - value: value, - onChange: onChange, - clearable: clearable, - gradients: [] - }))); -}; -GradientPickerControl.defaultProps = { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Gradient Color', 'photo-block'), - clearable: false, - value: '', - onChange: function onChange() {} -}; -GradientPickerControl.propTypes = { - clearable: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool), - value: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string).isRequired, - label: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string).isRequired, - onChange: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func).isRequired -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GradientPickerControl); - -/***/ }), - -/***/ "./src/components/HeadingIconResponsive/index.js": -/*!*******************************************************!*\ - !*** ./src/components/HeadingIconResponsive/index.js ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/HeadingIconResponsive/editor.scss"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/smartphone.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/tablet.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/monitor.js"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../hooks/useDeviceType */ "./src/hooks/useDeviceType.js"); -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - - - - - -var HeadingIconResponsive = function HeadingIconResponsive(props) { - var screenSize = props.screenSize, - heading = props.heading; - var _useDeviceType = (0,_hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_4__["default"])('Desktop'), - _useDeviceType2 = _slicedToArray(_useDeviceType, 2), - deviceType = _useDeviceType2[0], - setDeviceType = _useDeviceType2[1]; - - // Retrieve an icon based on the screen size. - var getIcon = function getIcon() { - switch (screenSize) { - case 'mobile': - return /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_5__["default"], null); - case 'tablet': - return /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_6__["default"], null); - case 'desktop': - return /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_7__["default"], null); - } - }; - return /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__heading-icon-responsive-wrapper" - }, /*#__PURE__*/React.createElement("h3", { - className: "dlx-photo-block__heading-icon-responsive" - }, /*#__PURE__*/React.createElement("span", { - className: "dlx-photo-block__heading-icon" - }, getIcon()), /*#__PURE__*/React.createElement("span", { - className: "dlx-photo-block__heading" - }, heading)), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__heading-icon-responsive-icons" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ButtonGroup, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { - className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('dlx-photo-block__heading-icon-responsive-icon', { - 'is-active': deviceType === 'desktop' - }), - onClick: function onClick() { - return setDeviceType('Desktop'); - }, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_7__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Desktop', 'deluxe-photo-gallery') - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { - className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('dlx-photo-block__heading-icon-responsive-icon', { - 'is-active': deviceType === 'tablet' - }), - onClick: function onClick() { - return setDeviceType('Tablet'); - }, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_6__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Tablet', 'deluxe-photo-gallery') - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { - className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('dlx-photo-block__heading-icon-responsive-icon', { - 'is-active': deviceType === 'mobile' - }), - onClick: function onClick() { - return setDeviceType('Mobile'); - }, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_5__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Mobile', 'deluxe-photo-gallery') - })))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (HeadingIconResponsive); - -/***/ }), - -/***/ "./src/components/Icons/AspectRatio.js": -/*!*********************************************!*\ - !*** ./src/components/Icons/AspectRatio.js ***! - \*********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - -var AspectRatioIcon = function AspectRatioIcon() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", { - xmlns: "http://www.w3.org/2000/svg", - width: 24, - height: 24, - fillRule: "evenodd", - strokeLinejoin: "round", - strokeMiterlimit: 2, - clipRule: "evenodd", - viewBox: "0 0 100 100" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - d: "M90.734 21.888a9.376 9.376 0 0 0-9.375-9.375h-62.81a9.374 9.374 0 0 0-9.375 9.375v56.148a9.376 9.376 0 0 0 9.375 9.375h62.81a9.378 9.378 0 0 0 9.375-9.375V21.888zm-6.25 0v56.148a3.126 3.126 0 0 1-3.125 3.125h-62.81a3.126 3.126 0 0 1-3.125-3.125V21.888a3.125 3.125 0 0 1 3.125-3.125h62.81a3.125 3.125 0 0 1 3.125 3.125z" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - d: "M45.313 24.854H31.104a9.376 9.376 0 0 0-9.375 9.375v14.209a3.125 3.125 0 0 0 6.25 0V34.229a3.126 3.126 0 0 1 3.125-3.125h14.208a3.126 3.126 0 0 0 .001-6.25zM54.542 75H68.75a9.376 9.376 0 0 0 9.375-9.375V51.417a3.126 3.126 0 0 0-6.25 0v14.208a3.125 3.125 0 0 1-3.125 3.125H54.542a3.126 3.126 0 0 0 0 6.25z" - })); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AspectRatioIcon); - -/***/ }), - -/***/ "./src/components/Icons/BorderStyleDashed.js": -/*!***************************************************!*\ - !*** ./src/components/Icons/BorderStyleDashed.js ***! - \***************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - -var BorderStyleDashedIcon = function BorderStyleDashedIcon() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", { - xmlns: "http://www.w3.org/2000/svg", - xmlSpace: "preserve", - viewBox: "0 0 270 270", - width: 24, - height: 24 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - fill: "currentColor", - d: "M120 0h30v30h-30zM120 60h30v30h-30zM120 120h30v30h-30zM120 180h30v30h-30zM120 240h30v30h-30z" - })); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BorderStyleDashedIcon); - -/***/ }), - -/***/ "./src/components/Icons/BorderStyleDotted.js": -/*!***************************************************!*\ - !*** ./src/components/Icons/BorderStyleDotted.js ***! - \***************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - -var BorderStyleDottedIcon = function BorderStyleDottedIcon() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", { - xmlns: "http://www.w3.org/2000/svg", - width: 24, - height: 24, - viewBox: "0 0 32 32" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - fill: "currentColor", - d: "M13 16c0 1.654 1.346 3 3 3s3-1.346 3-3-1.346-3-3-3-3 1.346-3 3zM13 26c0 1.654 1.346 3 3 3s3-1.346 3-3-1.346-3-3-3-3 1.346-3 3zM13 6c0 1.654 1.346 3 3 3s3-1.346 3-3-1.346-3-3-3-3 1.346-3 3z" - })); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BorderStyleDottedIcon); - -/***/ }), - -/***/ "./src/components/Icons/BorderStyleDouble.js": -/*!***************************************************!*\ - !*** ./src/components/Icons/BorderStyleDouble.js ***! - \***************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - -var BorderStyleDoubleIcon = function BorderStyleDoubleIcon() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", { - xmlns: "http://www.w3.org/2000/svg", - xmlSpace: "preserve", - viewBox: "0 0 36.793 36.793", - width: 24, - height: 24 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - fill: "currentColor", - d: "M23.682 1.127c0-.619.492-1.127 1.111-1.127s1.127.508 1.127 1.127v34.539c0 .619-.508 1.127-1.127 1.127s-1.111-.508-1.111-1.127V1.127zm-12.809 0c0-.619.492-1.127 1.111-1.127s1.127.508 1.127 1.127v34.539c0 .619-.508 1.127-1.127 1.127a1.118 1.118 0 0 1-1.111-1.127V1.127z" - })); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BorderStyleDoubleIcon); - -/***/ }), - -/***/ "./src/components/Icons/BorderStyleSolid.js": -/*!**************************************************!*\ - !*** ./src/components/Icons/BorderStyleSolid.js ***! - \**************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - -var BorderStyleSolidIcon = function BorderStyleSolidIcon() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", { - xmlns: "http://www.w3.org/2000/svg", - xmlSpace: "preserve", - viewBox: "0 0 385.067 385.067", - width: 24, - height: 24 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - fill: "currentColor", - d: "M181.867 0H203.2v385.067h-21.333z" - })); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BorderStyleSolidIcon); - -/***/ }), - -/***/ "./src/components/Icons/ColonIcon.js": -/*!*******************************************!*\ - !*** ./src/components/Icons/ColonIcon.js ***! - \*******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - -var ColonIcon = function ColonIcon() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 192 512", - width: 24, - height: 24 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - fill: "currentColor", - d: "M96 192a64 64 0 1 0 0-128 64 64 0 1 0 0 128zm0 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128z" - })); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ColonIcon); - -/***/ }), - -/***/ "./src/components/Icons/PhotoBlockIcon.js": -/*!************************************************!*\ - !*** ./src/components/Icons/PhotoBlockIcon.js ***! - \************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - -var PhotoBlockIcon = function PhotoBlockIcon(props) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", { - xmlns: "http://www.w3.org/2000/svg", - xmlSpace: "preserve", - viewBox: "0 0 1305 1305", - width: (props === null || props === void 0 ? void 0 : props.width) || 20, - height: (props === null || props === void 0 ? void 0 : props.height) || 20 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - fill: "#333333", - d: "M652.492 1302.95c-359.692 0-651.275-291.583-651.275-651.275C1.217 291.983 292.8.4 652.492.4c359.687 0 651.275 291.583 651.275 651.275 0 359.692-291.588 651.275-651.275 651.275Z" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - fill: "#FFF", - d: "M652.492 1238.55c-324.125 0-586.879-262.754-586.879-586.879S328.367 64.792 652.492 64.792s586.879 262.754 586.879 586.879-262.754 586.879-586.879 586.879Z" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - fill: "#333333", - d: "M345.942 498.429 113.458 631.583c-.246 6.671-.412 13.363-.412 20.092 0 183.908 92.054 346.292 232.575 443.671l.321-596.917Zm592.429-35.779.771-268c-83.055-52.2-181.317-82.421-286.65-82.421-82.734 0-161.105 18.65-231.175 51.933L938.371 462.65ZM366.612 840.7l-.77 268c83.05 52.2 181.312 82.421 286.65 82.421 82.737 0 161.104-18.65 231.175-51.934L366.612 840.7Zm264.855-531.1-516.7 298.883c14.916-188.166 126.379-349.133 284.854-433.396L631.467 309.6Zm42.05 684.146 516.7-298.875C1175.3 883.033 1063.842 1044 905.362 1128.262L673.517 993.746Zm285.521-188.829 232.487-133.15c.246-6.671.413-13.363.413-20.092 0-183.908-92.055-346.292-232.571-443.671l-.329 596.913ZM578.938 398.8c139.62-40.6 285.816 39.662 326.42 179.329 40.654 139.617-39.666 285.763-179.333 326.421-139.675 40.6-285.817-39.667-326.421-179.338-40.6-139.67 39.663-285.812 179.334-326.412Z" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - fill: "#FFF", - d: "M473.954 596.729c-.562 12.3-10.758 22.063-23.179 21.975-12.687-.087-24.004-10.933-22.854-23.921 5.15-58.075 50.75-111.021 101.45-136.596 11.6-5.849 25.687.034 30.775 11.738 5.017 11.546-.463 24.512-11.483 30.1-33.117 16.783-67.392 59.958-74.709 96.704ZM603.883 422.104c12.884 0 23.33 10.446 23.33 23.333 0 12.884-10.446 23.33-23.33 23.33-12.887 0-23.329-10.446-23.329-23.33 0-12.887 10.442-23.333 23.329-23.333Z" - }))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PhotoBlockIcon); - -/***/ }), - -/***/ "./src/components/MediaLink/index.js": -/*!*******************************************!*\ - !*** ./src/components/MediaLink/index.js ***! - \*******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/MediaLink/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/url */ "@wordpress/url"); -/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_url__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/link-2-off.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/image.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/file-image.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/link-2.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/external-link.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/* harmony import */ var _URLPicker__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../URLPicker */ "./src/components/URLPicker/index.js"); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../store/global-styles */ "./src/store/global-styles.js"); -/** - * Upload data row including Upload|Media Library|URL|Data. - */ - - - - - - - - - - - - -/** - * MediaLink component. - * - * @param {Object} props - Component props. - * @return {Function} Component. - */ -var MediaLink = function MediaLink(props) { - var attributes = props.attributes, - setAttributes = props.setAttributes, - anchorRef = props.anchorRef, - blockUniqueId = props.blockUniqueId; - - // Get context. - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.useSelect)(function (select) { - return { - photoMode: select((0,_store__WEBPACK_IMPORTED_MODULE_7__.blockStore)(blockUniqueId)).getPhotoMode(), - imageData: select((0,_store__WEBPACK_IMPORTED_MODULE_7__.blockStore)(blockUniqueId)).getImageData() - }; - }), - photoMode = _useSelect.photoMode, - imageData = _useSelect.imageData; - - // Get global style data. - var _useSelect2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.useSelect)(function (select) { - return { - hasGlobalStyle: select(_store_global_styles__WEBPACK_IMPORTED_MODULE_9__["default"]).hasGlobalStyle - }; - }), - hasGlobalStyle = _useSelect2.hasGlobalStyle; - var mediaLinkOverride = attributes.mediaLinkOverride, - mediaLinkType = attributes.mediaLinkType, - mediaLinkTitle = attributes.mediaLinkTitle, - mediaLinkUrl = attributes.mediaLinkUrl, - lightboxCaption = attributes.lightboxCaption, - lightboxEnabled = attributes.lightboxEnabled, - lightboxShowCaption = attributes.lightboxShowCaption, - globalStyle = attributes.globalStyle; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Popover, { - position: "bottom center", - className: "dlx-photo-block__media-link-popover", - expandOnMobile: true, - focusOnMount: true, - onClose: function onClose() { - props.onClose(); - }, - anchor: anchorRef - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__media-link-container" - }, /*#__PURE__*/React.createElement("h2", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Select where to link to.', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ButtonGroup, { - className: "dlx-photo-block__media-link-button-group" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_10__["default"], null), - className: classnames__WEBPACK_IMPORTED_MODULE_5___default()({ - 'is-pressed': 'none' === mediaLinkType - }), - onClick: function onClick() { - if (hasGlobalStyle(globalStyle)) { - setAttributes({ - mediaLinkOverride: true - }); - } - setAttributes({ - mediaLinkType: 'none' - }); - } - }, /*#__PURE__*/React.createElement("span", { - className: "dlx-photo-block__media-link-button-text" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('No link', 'photo-block'))), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_11__["default"], null), - className: classnames__WEBPACK_IMPORTED_MODULE_5___default()({ - 'is-pressed': 'image' === mediaLinkType - }), - onClick: function onClick() { - if (hasGlobalStyle(globalStyle)) { - setAttributes({ - mediaLinkOverride: true - }); - } - setAttributes({ - mediaLinkType: 'image' - }); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('The full size photo', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_12__["default"], null), - className: classnames__WEBPACK_IMPORTED_MODULE_5___default()({ - 'is-pressed': 'page' === mediaLinkType - }), - onClick: function onClick() { - if (hasGlobalStyle(globalStyle)) { - setAttributes({ - mediaLinkOverride: true - }); - } - setAttributes({ - mediaLinkType: 'page' - }); - }, - disabled: 'photo' !== photoMode - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('The photo\'s page', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_13__["default"], null), - className: classnames__WEBPACK_IMPORTED_MODULE_5___default()({ - 'is-pressed': 'custom' === mediaLinkType - }), - onClick: function onClick() { - if (hasGlobalStyle(globalStyle)) { - setAttributes({ - mediaLinkOverride: true - }); - } - setAttributes({ - mediaLinkType: 'custom' - }); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Custom link', 'photo-block'))), 'custom' === mediaLinkType && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_URLPicker__WEBPACK_IMPORTED_MODULE_8__["default"], { - restNonce: photoBlock.restNonce, - restEndpoint: photoBlock.restUrl + '/search/pages', - itemIcon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_13__["default"], null), - onItemSelect: function onItemSelect(e, url) { - setAttributes({ - mediaLinkUrl: url - }); - }, - savedValue: mediaLinkUrl - })), 'image' === mediaLinkType && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "pdlx-photo-block__media-link-media-external" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "link", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_14__["default"], null), - iconSize: 18, - iconPosition: "right", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Open in new tab', 'archive-pages-pro'), - href: imageData.full, - target: "_blank", - rel: "noopener noreferrer" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Media File', 'photo-block')))), 'page' === mediaLinkType && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "pdlx-photo-block__media-link-media-page" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "link", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_14__["default"], null), - iconSize: 18, - iconPosition: "right", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Open in new tab', 'archive-pages-pro'), - href: imageData.attachment_link, - target: "_blank", - rel: "noopener noreferrer", - disabled: 'photo' !== photoMode - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Attachment Page', 'photo-block')))), 'image' === mediaLinkType && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelBody, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Lightbox', 'photo-block'), - initialOpen: false - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Enable lightbox', 'photo-block'), - checked: lightboxEnabled, - onChange: function onChange(value) { - setAttributes({ - lightboxEnabled: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Popup the full size photo in a lightbox when clicked.', 'photo-block') - })), lightboxEnabled && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Show caption', 'photo-block'), - checked: lightboxShowCaption, - onChange: function onChange(value) { - setAttributes({ - lightboxShowCaption: value - }); - } - })), lightboxShowCaption && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Custom Caption (optional)', 'photo-block'), - value: lightboxCaption, - onChange: function onChange(value) { - setAttributes({ - lightboxCaption: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Leave blank to use the photo\'s caption.', 'photo-block') - }))))), 'none' !== mediaLinkType && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelBody, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Advanced', 'photo-block'), - initialOpen: false - }, (!lightboxEnabled || 'image' !== mediaLinkType) && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Open in new tab', 'photo-block'), - checked: attributes.mediaLinkNewTab, - onChange: function onChange(value) { - if ('' === attributes.mediaLinkRel && value) { - setAttributes({ - mediaLinkRel: 'noopener noreferrer' - }); - } - if ('noopener noreferrer' === attributes.mediaLinkRel && !value) { - setAttributes({ - mediaLinkRel: '' - }); - } - setAttributes({ - mediaLinkNewTab: value - }); - } - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Link Title', 'photo-block'), - value: mediaLinkTitle, - onChange: function onChange(value) { - setAttributes({ - mediaLinkTitle: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('The link title attribute is for SEO and accessibility purposes. It is used to describe the link.', 'photo-block') - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Link Rel', 'photo-block'), - value: attributes.mediaLinkRel, - onChange: function onChange(value) { - setAttributes({ - mediaLinkRel: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('The link rel attribute is for SEO and accessibility purposes. It is used to describe the relationship between the current document and the linked document.', 'photo-block') - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Link Class', 'photo-block'), - value: attributes.mediaLinkClass, - onChange: function onChange(value) { - setAttributes({ - mediaLinkClass: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Add a CSS class to the link for styling purposes.', 'photo-block') - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Link Anchor ID', 'photo-block'), - value: attributes.mediaLinkAnchorId, - onChange: function onChange(value) { - setAttributes({ - mediaLinkAnchorId: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('This is the ID for the link, which you can use to link to the photo with an anchor. The ID for each link should be unique.', 'photo-block') - })))))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MediaLink); - -/***/ }), - -/***/ "./src/components/Notice/index.js": -/*!****************************************!*\ - !*** ./src/components/Notice/index.js ***! - \****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/Notice/editor.scss"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/a11y */ "@wordpress/a11y"); -/* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_a11y__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -// eslint-disable-next-line no-unused-vars - - - - - - -var Notice = function Notice(props) { - var _classNames; - var message = props.message, - status = props.status, - politeness = props.politeness, - icon = props.icon, - className = props.className, - inline = props.inline, - children = props.children, - animate = props.animate, - animationType = props.animationType; - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - (0,_wordpress_a11y__WEBPACK_IMPORTED_MODULE_2__.speak)(message, politeness); - }, [message, status, politeness]); - var hasIcon = function hasIcon() { - return icon !== null; - }; - var getIcon = function getIcon(Icon) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Icon, { - width: 16, - height: 16, - fill: "#6c757d" - }); - }; - var containerClasses = classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, 'photo-block-admin__notice', (_classNames = { - 'photo-block-admin__notice--photo-block-icon': hasIcon() - }, _defineProperty(_classNames, "photo-block-admin__notice-type--".concat(status), true), _defineProperty(_classNames, "photo-block-admin__notice-appearance--inline", inline), _defineProperty(_classNames, "photo-block-admin__notice-appearance--block", !inline), _defineProperty(_classNames, "photo-block-admin__notice-animate", animate), _defineProperty(_classNames, "photo-block-admin__notice-animate--".concat(animationType), animate), _classNames)); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: containerClasses - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Notice, _extends({ - isDismissible: false, - spokenMessage: message, - actions: [] - }, props), hasIcon() && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-admin__notice-icon" - }, getIcon(icon)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-admin__notice-message" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, message, " ", children, " ")))); -}; -Notice.defaultProps = { - message: '', - status: 'info', - politeness: 'polite', - icon: null, - className: '', - inline: false, - animate: false, - animationType: 'fadein' -}; -Notice.propTypes = { - message: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string).isRequired, - status: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['info', 'warning', 'success', 'error']), - politeness: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['assertive', 'polite']), - icon: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().elementType), - className: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), - inline: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - animate: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool), - animatitionType: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(['fadein', 'fadeout']) -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Notice); - -/***/ }), - -/***/ "./src/components/PanelBody/index.js": -/*!*******************************************!*\ - !*** ./src/components/PanelBody/index.js ***! - \*******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/PanelBody/editor.scss"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../hooks/useDeviceType */ "./src/hooks/useDeviceType.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -/** - * PanelBody but with local storage state. - */ - - - - - -var PanelBodyControl = function PanelBodyControl(props) { - var uniqueId = props.uniqueId, - _props$initialOpen = props.initialOpen, - initialOpen = _props$initialOpen === void 0 ? true : _props$initialOpen, - _props$id = props.id, - id = _props$id === void 0 ? '' : _props$id; - var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(initialOpen), - _useState2 = _slicedToArray(_useState, 2), - isPanelOpen = _useState2[0], - setIsPanelOpen = _useState2[1]; - var _useDeviceType = (0,_hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_3__["default"])(), - _useDeviceType2 = _slicedToArray(_useDeviceType, 1), - deviceType = _useDeviceType2[0]; - - // Set up use effect to read in local storage and set panels appropriately. Runs on device type change too. - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - var stored = localStorage.getItem("photo-block-panel-body-".concat(uniqueId)); - if (null === stored) { - // Maybe in an iframe, get the parent. - var parent = window.parent; - if (parent) { - stored = parent.localStorage.getItem("photo-block-panel-body-".concat(uniqueId)); - } - } - - // Retrieve ID from local storage if set. - if (stored) { - var storedValue = JSON.parse(stored); - if (storedValue["".concat(id)]) { - var isOpen = storedValue["".concat(id)].isOpen; - setIsPanelOpen(isOpen); - } - } - }, [deviceType]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, _extends({}, props, { - onToggle: function onToggle(next) { - // get local storage value. - var stored = localStorage.getItem("photo-block-panel-body-".concat(uniqueId)); - var storageValueToSave = _defineProperty({}, "".concat(id), { - isOpen: next - }); - if (stored) { - var storedValue = JSON.parse(stored); - storageValueToSave = _objectSpread(_objectSpread({}, storedValue), {}, _defineProperty({}, "".concat(id), { - isOpen: next - })); - } - localStorage.setItem("photo-block-panel-body-".concat(uniqueId), JSON.stringify(storageValueToSave)); - }, - initialOpen: isPanelOpen - }), props.children); -}; -PanelBodyControl.defaultProps = { - uniqueId: '', - initialOpen: true, - id: '' -}; -PanelBodyControl.propTypes = { - uniqueId: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string).isRequired, - initialOpen: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool), - id: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string).isRequired -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PanelBodyControl); - -/***/ }), - -/***/ "./src/components/RangeResponsive/index.js": -/*!*************************************************!*\ - !*** ./src/components/RangeResponsive/index.js ***! - \*************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/RangeResponsive/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var react_hook_form__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-hook-form */ "./node_modules/react-hook-form/dist/index.esm.mjs"); -/* harmony import */ var _UnitPicker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../UnitPicker */ "./src/components/UnitPicker/index.js"); -/* harmony import */ var _utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils/TypographyHelper */ "./src/utils/TypographyHelper.js"); -/* harmony import */ var _HeadingIconResponsive__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../HeadingIconResponsive */ "./src/components/HeadingIconResponsive/index.js"); -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -/** - * Upload data row including Upload|Media Library|URL|Data. - */ - - - - - - - - -var RangeResponsiveControl = function RangeResponsiveControl(props) { - var _useState = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)('desktop'), - _useState2 = _slicedToArray(_useState, 2), - screenSize = _useState2[0], - setScreenSize = _useState2[1]; - var getDefaultValues = function getDefaultValues() { - return { - mobile: { - value: props.values.mobile.value, - unit: props.values.mobile.unit - }, - tablet: { - value: props.values.tablet.value, - unit: props.values.tablet.unit - }, - desktop: { - value: props.values.desktop.value, - unit: props.values.desktop.unit - } - }; - }; - var _useForm = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_7__.useForm)({ - defaultValues: getDefaultValues() - }), - control = _useForm.control, - setValue = _useForm.setValue, - getValues = _useForm.getValues; - var formValues = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_7__.useWatch)({ - control: control - }); - var onValuesChange = props.onValuesChange; - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () { - onValuesChange(formValues); - }, [formValues]); - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () { - setScreenSize(props.screenSize); - setValue(props.screenSize, getValues(props.screenSize)); - }, [props.screenSize]); - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.BaseControl, { - className: "dlx-photo-block__max-width-responsive-control" - }, /*#__PURE__*/React.createElement(_HeadingIconResponsive__WEBPACK_IMPORTED_MODULE_6__["default"], { - screenSize: screenSize, - heading: props.label - }), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_7__.Controller, { - control: control, - name: "".concat(screenSize, ".unit"), - render: function render(_ref) { - var _ref$field = _ref.field, - onChange = _ref$field.onChange, - value = _ref$field.value; - return /*#__PURE__*/React.createElement(_UnitPicker__WEBPACK_IMPORTED_MODULE_4__["default"], { - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_5__.getHierarchicalValueUnit)(props.values, screenSize, getValues(screenSize).unit, 'unit'), - units: props !== null && props !== void 0 && props.units ? props.units : ['px', 'em', 'rem', '%', 'vw'], - onClick: function onClick(newValue) { - onChange(newValue); - }, - className: "dlx-photo-block__max-width-responsive-control__unit-picker" - }); - } - }), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_7__.Controller, { - control: control, - name: "".concat(screenSize, ".value"), - render: function render(_ref2) { - var _ref2$field = _ref2.field, - _onChange = _ref2$field.onChange, - value = _ref2$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.RangeControl, { - value: parseInt((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_5__.geHierarchicalPlaceholderValue)(props.values, screenSize, getValues(screenSize).value, 'value') || 0), - onChange: function onChange(newValue) { - _onChange(newValue); - }, - min: props.min, - max: props.max, - step: props.step, - className: "dlx-photo-block__responsive-range-control", - help: props.help - }); - } - }))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RangeResponsiveControl); - -/***/ }), - -/***/ "./src/components/SidebarImageAdvancedInspectorControl/index.js": -/*!**********************************************************************!*\ - !*** ./src/components/SidebarImageAdvancedInspectorControl/index.js ***! - \**********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/SidebarImageAdvancedInspectorControl/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _components_CustomAttributes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/CustomAttributes */ "./src/components/CustomAttributes/index.js"); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../store/global-styles */ "./src/store/global-styles.js"); - - - - - - - - -var SidebarImageAdvancedInspectorControl = function SidebarImageAdvancedInspectorControl(props) { - var attributes = props.attributes, - setAttributes = props.setAttributes; - var htmlAnchor = attributes.htmlAnchor, - figureCSSClasses = attributes.figureCSSClasses, - imageCSSClasses = attributes.imageCSSClasses, - skipLazyLoading = attributes.skipLazyLoading, - imageProtectionEnabled = attributes.imageProtectionEnabled, - hideOnMobile = attributes.hideOnMobile, - hideOnTablet = attributes.hideOnTablet, - hideOnDesktop = attributes.hideOnDesktop; - - // Get global style data. - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.useSelect)(function (select) { - return { - hasGlobalStyle: select(_store_global_styles__WEBPACK_IMPORTED_MODULE_6__["default"]).hasGlobalStyle - }; - }), - hasGlobalStyle = _useSelect.hasGlobalStyle; - var stylesInspectorControls = /*#__PURE__*/React.createElement(React.Fragment, null, !hasGlobalStyle(props.globalStyle) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('HTML Anchor', 'photo-block'), - value: htmlAnchor, - onChange: function onChange(value) { - setAttributes({ - htmlAnchor: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Enter a word or two — without spaces — to make a unique web address just for this photo, called an "anchor." Then, you\'ll be able to link directly to this photo on your page.', 'photo-block') - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Figure CSS Class(es)', 'photo-block'), - value: figureCSSClasses, - onChange: function onChange(value) { - setAttributes({ - figureCSSClasses: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Add CSS class(es) directly to the figure tag, which wraps the image.', 'photo-block') - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Image CSS Class(es)', 'photo-block'), - value: imageCSSClasses, - onChange: function onChange(value) { - setAttributes({ - imageCSSClasses: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Add CSS class(es) directly to the image tag.', 'photo-block') - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_components_CustomAttributes__WEBPACK_IMPORTED_MODULE_5__["default"], { - attributes: attributes, - setAttributes: setAttributes - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Skip Lazy Loading', 'photo-block'), - checked: skipLazyLoading, - onChange: function onChange(value) { - setAttributes({ - skipLazyLoading: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Set a flag which will signal that the image should not be lazy loaded.', 'photo-block') - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Enable Image Protection', 'photo-block'), - checked: imageProtectionEnabled, - onChange: function onChange(value) { - setAttributes({ - imageProtectionEnabled: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Prevent this photo from being downloaded by using the right+click button.', 'photo-block') - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Hide on Mobile', 'photo-block'), - checked: hideOnMobile, - onChange: function onChange(value) { - setAttributes({ - hideOnMobile: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Hide this photo on mobile devices.', 'photo-block') - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Hide on Tablet', 'photo-block'), - checked: hideOnTablet, - onChange: function onChange(value) { - setAttributes({ - hideOnTablet: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Hide this photo on tablet devices.', 'photo-block') - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Hide on Desktop', 'photo-block'), - checked: hideOnDesktop, - onChange: function onChange(value) { - setAttributes({ - hideOnDesktop: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Hide this photo on desktop devices.', 'photo-block') - })))); - return stylesInspectorControls; -}; -SidebarImageAdvancedInspectorControl.defaultProps = { - attributes: {}, - setAttributes: function setAttributes() {} -}; -SidebarImageAdvancedInspectorControl.propTypes = { - attributes: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object) -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SidebarImageAdvancedInspectorControl); - -/***/ }), - -/***/ "./src/components/SidebarImageInspectorControl/index.js": -/*!**************************************************************!*\ - !*** ./src/components/SidebarImageInspectorControl/index.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/SidebarImageInspectorControl/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/droplet.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/wand-sparkles.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/maximize.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/shrink.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/globe.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_19__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _components_ColorPicker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../components/ColorPicker */ "./src/components/ColorPicker/index.js"); -/* harmony import */ var _components_DropShadow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/DropShadow */ "./src/components/DropShadow/index.js"); -/* harmony import */ var _components_CSSGramButtonGroup__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../components/CSSGramButtonGroup */ "./src/components/CSSGramButtonGroup/index.js"); -/* harmony import */ var _components_SizeResponsive__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../components/SizeResponsive */ "./src/components/SizeResponsive/index.js"); -/* harmony import */ var _hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../hooks/useDeviceType */ "./src/hooks/useDeviceType.js"); -/* harmony import */ var _components_DimensionsResponsive__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../components/DimensionsResponsive */ "./src/components/DimensionsResponsive/index.js"); -/* harmony import */ var _components_BorderResponsive__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../components/BorderResponsive */ "./src/components/BorderResponsive/index.js"); -/* harmony import */ var _components_PanelBody__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../components/PanelBody */ "./src/components/PanelBody/index.js"); -/* harmony import */ var _GlobalStyles__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../GlobalStyles */ "./src/components/GlobalStyles/index.js"); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../store/global-styles */ "./src/store/global-styles.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - - - - - - - - - - - - - - - -var canSavePresets = photoBlockUser.canSavePresets; - -/** - * Height units. - */ -var heightUnits = ['px', 'em', 'rem', '%', 'vh']; -var SidebarImageInspectorControl = function SidebarImageInspectorControl(props) { - var attributes = props.attributes, - setAttributes = props.setAttributes, - blockUniqueId = props.blockUniqueId; - var uniqueId = attributes.uniqueId, - photoOpacity = attributes.photoOpacity, - photoBlur = attributes.photoBlur, - photoObjectFit = attributes.photoObjectFit, - photoObjectPosition = attributes.photoObjectPosition, - photoObjectPositionCustom = attributes.photoObjectPositionCustom, - photoDropShadow = attributes.photoDropShadow, - photoBackgroundColor = attributes.photoBackgroundColor, - photoBackgroundColorOpacity = attributes.photoBackgroundColorOpacity, - containerHeight = attributes.containerHeight, - containerMaxWidth = attributes.containerMaxWidth, - containerMaxHeight = attributes.containerMaxHeight, - containerMinWidth = attributes.containerMinWidth, - containerMinHeight = attributes.containerMinHeight, - photoPaddingSize = attributes.photoPaddingSize, - photoMarginSize = attributes.photoMarginSize, - globalStyle = attributes.globalStyle, - photoBorderRadius = attributes.photoBorderRadius, - photoBorder = attributes.photoBorder, - containerWidth = attributes.containerWidth; - var _useDeviceType = (0,_hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_8__["default"])('Desktop'), - _useDeviceType2 = _slicedToArray(_useDeviceType, 1), - deviceType = _useDeviceType2[0]; - - // Get global style data. - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(function (select) { - return { - hasGlobalStyle: select(_store_global_styles__WEBPACK_IMPORTED_MODULE_13__["default"]).hasGlobalStyle - }; - }), - hasGlobalStyle = _useSelect.hasGlobalStyle; - var stylesInspectorControls = /*#__PURE__*/React.createElement(React.Fragment, null, !hasGlobalStyle(globalStyle) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components_PanelBody__WEBPACK_IMPORTED_MODULE_11__["default"], { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Image Styles', 'photo-block'), - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_14__["default"], null), - className: "photo-block__inspector-panel", - id: "photo-block__photo-image-styles", - uniqueId: uniqueId, - initialOpen: true, - scrollAfterOpen: false - }, /*#__PURE__*/React.createElement(_components_ColorPicker__WEBPACK_IMPORTED_MODULE_4__["default"], { - value: photoBackgroundColor, - key: 'background-color-photo', - onChange: function onChange(slug, newValue, color) { - setAttributes({ - photoBackgroundColor: newValue - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Background Color', 'highlight-and-share'), - defaultColors: photoBlock.palette, - defaultColor: 'transparent', - slug: 'background-color-photo', - alpha: true - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.RangeControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Opacity', 'photo-block'), - value: photoOpacity, - onChange: function onChange(newOpacity) { - setAttributes({ - photoOpacity: newOpacity - }); - }, - min: 0, - max: 1, - step: 0.01 - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.RangeControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Blur', 'photo-block'), - value: photoBlur, - onChange: function onChange(newBlur) { - setAttributes({ - photoBlur: newBlur - }); - }, - min: 0, - max: 10, - step: 0.01 - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Enable Dropshadow', 'photo-block'), - checked: photoDropShadow.enabled, - onChange: function onChange(newDropShadowEnabled) { - setAttributes({ - photoDropShadow: _objectSpread(_objectSpread({}, photoDropShadow), {}, { - enabled: newDropShadowEnabled - }) - }); - } - }), photoDropShadow.enabled && /*#__PURE__*/React.createElement(_components_DropShadow__WEBPACK_IMPORTED_MODULE_5__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Drop Shadow', 'photo-block'), - attributes: attributes, - setAttributes: setAttributes - })), /*#__PURE__*/React.createElement(_components_PanelBody__WEBPACK_IMPORTED_MODULE_11__["default"], { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('CSS Styles', 'photo-block'), - className: "photo-block__inspector-panel", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_15__["default"], null), - id: "photo-block__photo-css-gram", - uniqueId: uniqueId, - initialOpen: false, - scrollAfterOpen: false - }, /*#__PURE__*/React.createElement(_components_CSSGramButtonGroup__WEBPACK_IMPORTED_MODULE_6__["default"], { - attributes: attributes, - setAttributes: setAttributes, - blockUniqueId: blockUniqueId - })), /*#__PURE__*/React.createElement(_components_PanelBody__WEBPACK_IMPORTED_MODULE_11__["default"], { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Padding, Margin, and Border', 'photo-block'), - initialOpen: false, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_16__["default"], null), - className: "photo-block__inspector-panel", - id: "photo-block__photo-dimensions-styles", - uniqueId: uniqueId, - scrollAfterOpen: false - }, /*#__PURE__*/React.createElement(_components_DimensionsResponsive__WEBPACK_IMPORTED_MODULE_9__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Photo Padding', 'photo-block'), - values: photoPaddingSize, - onValuesChange: function onValuesChange(values) { - setAttributes({ - photoPaddingSize: values - }); - }, - labelTop: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Top Padding', 'photo-block'), - labelRight: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Right Padding', 'photo-block'), - labelBottom: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Bottom Padding', 'photo-block'), - labelLeft: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Left Padding', 'photo-block'), - labelAll: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Change Padding', 'photo-block'), - allowNegatives: false - }), /*#__PURE__*/React.createElement(_components_DimensionsResponsive__WEBPACK_IMPORTED_MODULE_9__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Photo Margin', 'photo-block'), - values: photoMarginSize, - onValuesChange: function onValuesChange(values) { - setAttributes({ - photoMarginSize: values - }); - }, - labelTop: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Top Margin', 'photo-block'), - labelRight: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Right Margin', 'photo-block'), - labelBottom: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Bottom Margin', 'photo-block'), - labelLeft: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Left Margin', 'photo-block'), - labelAll: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Change Margin', 'photo-block'), - allowNegatives: true - }), /*#__PURE__*/React.createElement(_components_BorderResponsive__WEBPACK_IMPORTED_MODULE_10__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Photo Border', 'photo-block'), - values: photoBorder, - onValuesChange: function onValuesChange(values) { - setAttributes({ - photoBorder: values - }); - }, - labelTop: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Top Border', 'photo-block'), - labelRight: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Right Border', 'photo-block'), - labelBottom: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Bottom Border', 'photo-block'), - labelLeft: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Left Border', 'photo-block'), - labelAll: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Change Border', 'photo-block'), - allowNegatives: false - }), /*#__PURE__*/React.createElement(_components_DimensionsResponsive__WEBPACK_IMPORTED_MODULE_9__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Photo Border Radius', 'photo-block'), - values: photoBorderRadius, - onValuesChange: function onValuesChange(values) { - setAttributes({ - photoBorderRadius: values - }); - }, - labelTop: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Top-left Radius', 'photo-block'), - labelRight: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Top-right Radius', 'photo-block'), - labelBottom: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Bottom-right Radius', 'photo-block'), - labelLeft: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Bottom-left Radius', 'photo-block'), - labelAll: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Change Border Radius', 'photo-block'), - isBorderRadius: true, - allowNegatives: false - })), /*#__PURE__*/React.createElement(_components_PanelBody__WEBPACK_IMPORTED_MODULE_11__["default"], { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Container Sizing', 'photo-block'), - initialOpen: false, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_17__["default"], null), - className: "photo-block__inspector-panel", - id: "photo-block__photo-container-styles", - uniqueId: uniqueId, - scrollAfterOpen: false - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Object Fit', 'photo-block'), - value: photoObjectFit, - options: [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('None', 'photo-block'), - value: 'none' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Inherit', 'photo-block'), - value: 'inherit' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Fill', 'photo-block'), - value: 'fill' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Contain', 'photo-block'), - value: 'contain' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Cover', 'photo-block'), - value: 'cover' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Scale Down', 'photo-block'), - value: 'scale-down' - }], - onChange: function onChange(newObjectFit) { - setAttributes({ - photoObjectFit: newObjectFit - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('How the image should be resized to fit its container.', 'photo-block') - })), 'none' !== photoObjectFit && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Object Position', 'photo-block'), - value: photoObjectPosition, - options: [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('None', 'photo-block'), - value: 'none' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Top', 'photo-block'), - value: 'top' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Right', 'photo-block'), - value: 'right' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Bottom', 'photo-block'), - value: 'bottom' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Left', 'photo-block'), - value: 'left' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Custom', 'photo-block'), - value: 'custom' - }], - onChange: function onChange(newObjectPosition) { - setAttributes({ - photoObjectPosition: newObjectPosition - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('How the image should be positioned inside the container.', 'photo-block') - })), 'none' !== photoObjectFit && 'custom' === photoObjectPosition && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Custom Object Position', 'photo-block'), - value: photoObjectPositionCustom, - onChange: function onChange(newObjectPositionCustom) { - setAttributes({ - photoObjectPositionCustom: newObjectPositionCustom - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Enter a custom object position in CSS format.', 'photo-block') - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__container-width" - }, /*#__PURE__*/React.createElement(_components_SizeResponsive__WEBPACK_IMPORTED_MODULE_7__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Width', 'photo-block'), - values: containerWidth, - screenSize: deviceType, - onValuesChange: function onValuesChange(newValues) { - setAttributes({ - containerWidth: newValues - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__container-height" - }, /*#__PURE__*/React.createElement(_components_SizeResponsive__WEBPACK_IMPORTED_MODULE_7__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Height', 'photo-block'), - values: containerHeight, - screenSize: deviceType, - units: heightUnits, - onValuesChange: function onValuesChange(newValues) { - setAttributes({ - containerHeight: newValues - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__container-min-width" - }, /*#__PURE__*/React.createElement(_components_SizeResponsive__WEBPACK_IMPORTED_MODULE_7__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Min Width', 'photo-block'), - values: containerMinWidth, - screenSize: deviceType, - onValuesChange: function onValuesChange(newValues) { - setAttributes({ - containerMinWidth: newValues - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__container-min-height" - }, /*#__PURE__*/React.createElement(_components_SizeResponsive__WEBPACK_IMPORTED_MODULE_7__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Min Height', 'photo-block'), - values: containerMinHeight, - screenSize: deviceType, - units: heightUnits, - onValuesChange: function onValuesChange(newValues) { - setAttributes({ - containerMinHeight: newValues - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__container-max-width" - }, /*#__PURE__*/React.createElement(_components_SizeResponsive__WEBPACK_IMPORTED_MODULE_7__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Max Width', 'photo-block'), - values: containerMaxWidth, - screenSize: deviceType, - onValuesChange: function onValuesChange(newValues) { - setAttributes({ - containerMaxWidth: newValues - }); - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__containermax-height" - }, /*#__PURE__*/React.createElement(_components_SizeResponsive__WEBPACK_IMPORTED_MODULE_7__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Max Height', 'photo-block'), - values: containerMaxHeight, - screenSize: deviceType, - units: heightUnits, - onValuesChange: function onValuesChange(newValues) { - setAttributes({ - containerMaxHeight: newValues - }); - } - })))), canSavePresets && /*#__PURE__*/React.createElement(_components_PanelBody__WEBPACK_IMPORTED_MODULE_11__["default"], { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Global Styles', 'photo-block'), - initialOpen: false, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_18__["default"], null), - className: "photo-block__inspector-panel", - id: "photo-block__photo-global-styles", - uniqueId: uniqueId, - scrollAfterOpen: false - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.BaseControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Global Styles', 'photo-block'), - id: "photo-block-global-styles", - className: "photo-block-global-styles" - }, /*#__PURE__*/React.createElement(_GlobalStyles__WEBPACK_IMPORTED_MODULE_12__["default"], _extends({}, props, { - globalStyle: props.globalStyle - })))))); - return /*#__PURE__*/React.createElement(React.Fragment, null, stylesInspectorControls); -}; -SidebarImageInspectorControl.defaultProps = { - attributes: {}, - setAttributes: function setAttributes() {} -}; -SidebarImageInspectorControl.propTypes = { - attributes: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().object) -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SidebarImageInspectorControl); - -/***/ }), - -/***/ "./src/components/SizeResponsive/index.js": -/*!************************************************!*\ - !*** ./src/components/SizeResponsive/index.js ***! - \************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/SizeResponsive/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/url */ "@wordpress/url"); -/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_url__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var react_hook_form__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-hook-form */ "./node_modules/react-hook-form/dist/index.esm.mjs"); -/* harmony import */ var _UnitPicker__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../UnitPicker */ "./src/components/UnitPicker/index.js"); -/* harmony import */ var _utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils/TypographyHelper */ "./src/utils/TypographyHelper.js"); -/* harmony import */ var _HeadingIconResponsive__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../HeadingIconResponsive */ "./src/components/HeadingIconResponsive/index.js"); -/* harmony import */ var _hooks_useUnits__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../hooks/useUnits */ "./src/hooks/useUnits.js"); -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -/** - * Upload data row including Upload|Media Library|URL|Data. - */ - - - - - - - - - - - - -var SizeResponsiveControl = function SizeResponsiveControl(props) { - var _useState = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useState)('desktop'), - _useState2 = _slicedToArray(_useState, 2), - screenSize = _useState2[0], - setScreenSize = _useState2[1]; - var getDefaultValues = function getDefaultValues() { - return { - mobile: { - width: props.values.mobile.width, - unit: props.values.mobile.unit - }, - tablet: { - width: props.values.tablet.width, - unit: props.values.tablet.unit - }, - desktop: { - width: props.values.desktop.width, - unit: props.values.desktop.unit - } - }; - }; - var _useUnits = (0,_hooks_useUnits__WEBPACK_IMPORTED_MODULE_9__["default"])(), - startsWithNumber = _useUnits.startsWithNumber, - splitValues = _useUnits.splitValues, - getNumericValue = _useUnits.getNumericValue, - getUnitValue = _useUnits.getUnitValue; - var _useForm = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_10__.useForm)({ - defaultValues: getDefaultValues() - }), - control = _useForm.control, - setValue = _useForm.setValue, - getValues = _useForm.getValues; - var formValues = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_10__.useWatch)({ - control: control - }); - var onValuesChange = props.onValuesChange; - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () { - onValuesChange(formValues); - }, [formValues]); - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () { - setScreenSize(props.screenSize); - setValue(props.screenSize, getValues(props.screenSize)); - }, [props.screenSize]); - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.BaseControl, { - className: "dlx-photo-block__max-width-responsive-control" - }, /*#__PURE__*/React.createElement(_HeadingIconResponsive__WEBPACK_IMPORTED_MODULE_8__["default"], { - screenSize: screenSize, - heading: props.label - }), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_10__.Controller, { - control: control, - name: "".concat(screenSize, ".unit"), - render: function render(_ref) { - var _ref$field = _ref.field, - onChange = _ref$field.onChange, - value = _ref$field.value; - return /*#__PURE__*/React.createElement(_UnitPicker__WEBPACK_IMPORTED_MODULE_6__["default"], { - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.getHierarchicalValueUnit)(props.values, screenSize, getValues(screenSize).unit, 'unit'), - units: props !== null && props !== void 0 && props.units ? props.units : ['px', 'em', 'rem', '%', 'vw'], - onClick: function onClick(newValue) { - onChange(newValue); - }, - className: "dlx-photo-block__max-width-responsive-control__unit-picker" - }); - } - }), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_10__.Controller, { - control: control, - name: "".concat(screenSize, ".width"), - render: function render(_ref2) { - var _ref2$field = _ref2.field, - _onChange = _ref2$field.onChange, - value = _ref2$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - type: 'text', - value: getValues(screenSize).width, - onChange: function onChange(newValue) { - if (!startsWithNumber(newValue)) { - // Unit should be blank here. - setValue("".concat(screenSize, ".unit"), ''); - _onChange(newValue); - } else { - var newValuesSplit = splitValues(newValue); - var numericValue = getNumericValue(newValuesSplit); - var unitValue = getUnitValue(newValuesSplit); - setValue("".concat(screenSize, ".unit"), unitValue); - _onChange(numericValue); - } - }, - placeholder: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_7__.geHierarchicalPlaceholderValue)(props.values, screenSize, getValues(screenSize).width, 'width') - }); - } - }))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SizeResponsiveControl); - -/***/ }), - -/***/ "./src/components/ToolbarAspectRatio/index.js": -/*!****************************************************!*\ - !*** ./src/components/ToolbarAspectRatio/index.js ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/ToolbarAspectRatio/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/x.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var react_hook_form__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-hook-form */ "./node_modules/react-hook-form/dist/index.esm.mjs"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _utils_CalculateAspectRatioFromPixels__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/CalculateAspectRatioFromPixels */ "./src/utils/CalculateAspectRatioFromPixels.js"); -/* harmony import */ var _utils_CalculateDimensionsFromAspectRatio__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils/CalculateDimensionsFromAspectRatio */ "./src/utils/CalculateDimensionsFromAspectRatio.js"); -/* harmony import */ var _Icons_ColonIcon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Icons/ColonIcon */ "./src/components/Icons/ColonIcon.js"); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/** - * Uploading including showing Cancel and Retry buttons. - */ - - - - - - - - - - - - - -/** - * Upload Status component. - * - * @param {Object} props - Component props. - * @return {Object} JSX markup for the component. - */ -var ToolbarAspectRatio = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function (props, ref) { - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(function (select) { - return { - aspectRatioWidth: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(props.uniqueId)).getAspectRatioWidth(), - aspectRatioHeight: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(props.uniqueId)).getAspectRatioHeight(), - aspectRatioWidthPixels: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(props.uniqueId)).getAspectRatioWidthPixels(), - aspectRatioHeightPixels: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(props.uniqueId)).getAspectRatioHeightPixels(), - aspectRatioToolbarSelection: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(props.uniqueId)).getAspectRatioToolbarSelection(), - aspectRatioUnit: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(props.uniqueId)).getAspectRatioUnit() - }; - }), - aspectRatioWidth = _useSelect.aspectRatioWidth, - aspectRatioHeight = _useSelect.aspectRatioHeight, - aspectRatioWidthPixels = _useSelect.aspectRatioWidthPixels, - aspectRatioHeightPixels = _useSelect.aspectRatioHeightPixels, - aspectRatioToolbarSelection = _useSelect.aspectRatioToolbarSelection, - aspectRatioUnit = _useSelect.aspectRatioUnit; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useDispatch)((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(props.uniqueId)), - setAspectRatio = _useDispatch.setAspectRatio, - setAspectRatioPixels = _useDispatch.setAspectRatioPixels, - setAspectRatioUnit = _useDispatch.setAspectRatioUnit; - var _useForm = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_10__.useForm)({ - defaultValues: { - aspectRatioWidthRatio: aspectRatioWidth, - aspectRatioHeightRatio: aspectRatioHeight, - aspectRatioWidthPixels: aspectRatioWidthPixels, - aspectRatioHeightPixels: aspectRatioHeightPixels, - aspectRatioUnit: aspectRatioUnit - } - }), - control = _useForm.control, - handleSubmit = _useForm.handleSubmit, - setValue = _useForm.setValue, - getValues = _useForm.getValues; - var _useFormState = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_10__.useFormState)({ - control: control - }), - isDirty = _useFormState.isDirty; - var formValues = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_10__.useWatch)({ - control: control - }); - - /** - * Swap from pixels to aspect ratio and back. - * - * @param {string} ratioToCalculate - 'pixels' or 'ratio'. - */ - var swapAspectRatio = function swapAspectRatio(ratioToCalculate) { - var aspectRatioWidthRatio = getValues('aspectRatioWidthRatio'); - var aspectRatioHeightRatio = getValues('aspectRatioHeightRatio'); - if (ratioToCalculate === 'ratio') { - // Convert aspect width / height to ratio for display. - var newAspectRatio = (0,_utils_CalculateAspectRatioFromPixels__WEBPACK_IMPORTED_MODULE_6__["default"])(getValues('aspectRatioWidthPixels'), getValues('aspectRatioHeightPixels')); - setValue('aspectRatioWidthRatio', newAspectRatio.width); - setValue('aspectRatioHeightRatio', newAspectRatio.height); - setAspectRatio(newAspectRatio.width, newAspectRatio.height); - } else { - var _props$fullsizePhoto; - var imageRatioPixels = (0,_utils_CalculateDimensionsFromAspectRatio__WEBPACK_IMPORTED_MODULE_7__["default"])("".concat(aspectRatioWidthRatio, ":").concat(aspectRatioHeightRatio), props === null || props === void 0 ? void 0 : (_props$fullsizePhoto = props.fullsizePhoto) === null || _props$fullsizePhoto === void 0 ? void 0 : _props$fullsizePhoto.width); - setValue('aspectRatioWidthPixels', imageRatioPixels.width); - setValue('aspectRatioHeightPixels', imageRatioPixels.height); - setAspectRatioPixels(imageRatioPixels.width, imageRatioPixels.height); - } - }; - - /** - * The form has been submitted. - * - * @param {Object} formData form data. - */ - var onSubmit = function onSubmit(formData) { - var humanImageRatio = {}; - // Calculate human aspect ratio. - if ('pixels' === getValues('aspectRatioUnit')) { - humanImageRatio = (0,_utils_CalculateAspectRatioFromPixels__WEBPACK_IMPORTED_MODULE_6__["default"])(formData.aspectRatioWidthPixels, formData.aspectRatioHeightPixels); - } else { - humanImageRatio = { - width: formData.aspectRatioWidthRatio, - height: formData.aspectRatioHeightRatio - }; - } - // Set global values. - setAspectRatio(formData.aspectRatioWidthRatio, formData.aspectRatioHeightRatio); - setAspectRatioPixels(formData.aspectRatioWidthPixels, formData.aspectRatioHeightPixels); - props.onChange(humanImageRatio); - return formData; - }; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("form", { - onSubmit: handleSubmit(onSubmit) - }, /*#__PURE__*/React.createElement("div", { - className: classnames__WEBPACK_IMPORTED_MODULE_4___default()('dlx-photo-block__component-aspect-ratio', { - 'dlx-photo-block__component-aspect-ratio--active': 'ratio' === getValues('aspectRatioUnit'), - 'dlx-photo-block__component-pixels--active': 'pixels' === getValues('aspectRatioUnit') - }) - }, getValues('aspectRatioUnit') === 'ratio' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_10__.Controller, { - name: "aspectRatioWidthRatio", - control: control, - render: function render(_ref) { - var _ref$field = _ref.field, - _onChange = _ref$field.onChange, - value = _ref$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Aspect Ratio Width', 'photo-block'), - value: value, - onChange: function onChange(newValue) { - _onChange(newValue); - }, - type: "number", - placeholder: 16 - }); - } - }), /*#__PURE__*/React.createElement("span", { - className: "dlx-photo-block__component-aspect-ratio-splitter" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - className: "dlx-photo-block__component-aspect-ratio-splitter-button", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Change between aspect ratio and pixels', 'photo-block'), - onClick: function onClick() { - if ('pixels' === getValues('aspectRatioUnit')) { - setValue('aspectRatioUnit', 'ratio'); - swapAspectRatio('ratio'); - setAspectRatioUnit('ratio'); - } else { - setValue('aspectRatioUnit', 'pixels'); - swapAspectRatio('pixels'); - setAspectRatioUnit('pixels'); - } - }, - icon: 'pixels' === getValues('aspectRatioUnit') ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_11__["default"], null) : /*#__PURE__*/React.createElement(_Icons_ColonIcon__WEBPACK_IMPORTED_MODULE_8__["default"], null) - })), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_10__.Controller, { - name: "aspectRatioHeightRatio", - control: control, - render: function render(_ref2) { - var _ref2$field = _ref2.field, - _onChange2 = _ref2$field.onChange, - value = _ref2$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Aspect Ratio Height', 'photo-block'), - value: value, - onChange: function onChange(newValue) { - _onChange2(newValue); - }, - type: "number", - placeholder: 9 - }); - } - })), getValues('aspectRatioUnit') === 'pixels' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_10__.Controller, { - name: "aspectRatioWidthPixels", - control: control, - render: function render(_ref3) { - var _ref3$field = _ref3.field, - _onChange3 = _ref3$field.onChange, - value = _ref3$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Pixel Width', 'photo-block'), - value: value, - onChange: function onChange(newValue) { - _onChange3(newValue); - }, - type: "number", - placeholder: 16 - }); - } - }), /*#__PURE__*/React.createElement("span", { - className: "dlx-photo-block__component-aspect-ratio-splitter" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - className: "dlx-photo-block__component-aspect-ratio-splitter-button", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Change between aspect ratio and pixels', 'photo-block'), - onClick: function onClick() { - if ('pixels' === getValues('aspectRatioUnit')) { - setAspectRatioUnit('ratio'); - setValue('aspectRatioUnit', 'ratio'); - swapAspectRatio('ratio'); - } else { - setAspectRatioUnit('pixels'); - setValue('aspectRatioUnit', 'pixels'); - swapAspectRatio('pixels'); - } - }, - icon: 'pixels' === getValues('aspectRatioUnit') ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_11__["default"], { - width: 16, - height: 16 - }) : /*#__PURE__*/React.createElement(_Icons_ColonIcon__WEBPACK_IMPORTED_MODULE_8__["default"], { - width: 16, - height: 16 - }) - })), /*#__PURE__*/React.createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_10__.Controller, { - name: "aspectRatioHeightPixels", - control: control, - render: function render(_ref4) { - var _ref4$field = _ref4.field, - _onChange4 = _ref4$field.onChange, - value = _ref4$field.value; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Pixel Height', 'photo-block'), - value: value, - onChange: function onChange(newValue) { - _onChange4(newValue); - }, - type: "number", - placeholder: 9 - }); - } - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: 'secondary', - type: "submit", - className: "dlx-photo-block__component-aspect-ratio-apply", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Apply the Aspect Ratio', 'photo-block'), - tooltip: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Switch modes from Aspect Ratio to Width and Height (pixels)', 'photo-block') - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Set Crop Area', 'photo-block'))))); -}); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ToolbarAspectRatio); - -/***/ }), - -/***/ "./src/components/Typography/index.js": -/*!********************************************!*\ - !*** ./src/components/Typography/index.js ***! - \********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/Typography/editor.scss"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var react_hook_form__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-hook-form */ "./node_modules/react-hook-form/dist/index.esm.mjs"); -/* harmony import */ var _utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils/TypographyHelper */ "./src/utils/TypographyHelper.js"); -/* harmony import */ var _hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../hooks/useDeviceType */ "./src/hooks/useDeviceType.js"); -/* harmony import */ var _HeadingIconResponsive__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../HeadingIconResponsive */ "./src/components/HeadingIconResponsive/index.js"); -/* harmony import */ var _hooks_useUnits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../hooks/useUnits */ "./src/hooks/useUnits.js"); -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - - - - - - - - - - - -// Webfonts. -var fontFamilies = [{ - name: 'Arial', - family: 'Arial, sans-serif', - slug: 'arial', - fallback: 'sans-serif', - type: 'web' -}, { - name: 'Courier New', - family: 'Courier New, monospace', - slug: 'courier-new', - fallback: 'monospace', - type: 'web' -}, { - name: 'Garamond', - family: 'Garamond, serif', - slug: 'garamond', - fallback: 'serif', - type: 'web' -}, { - name: 'Georgia', - family: 'Georgia, serif', - slug: 'georgia', - fallback: 'serif', - type: 'web' -}, { - name: 'Helvetica', - family: 'Helvetica, sans-serif', - slug: 'helvetica', - fallback: 'sans-serif', - type: 'web' -}, { - name: 'Lucida Console', - family: 'Lucida Console, monospace', - slug: 'lucida-console', - fallback: 'monospace', - type: 'web' -}, { - name: 'Tahoma', - family: 'Tahoma, sans-serif', - slug: 'tahoma', - fallback: 'sans-serif', - type: 'web' -}, { - name: 'Times New Roman', - family: 'Times New Roman, serif', - slug: 'times-new-roman', - fallback: 'serif', - type: 'web' -}, { - name: 'Trebuchet MS', - family: 'Trebuchet MS, sans-serif', - slug: 'trebuchet-ms', - fallback: 'sans-serif', - type: 'web' -}, { - name: 'Verdana', - family: 'Verdana, sans-serif', - slug: 'verdana', - fallback: 'sans-serif', - type: 'web' -}]; -var TypographyControl = function TypographyControl(props) { - var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState2 = _slicedToArray(_useState, 2), - fontSizeUnitPopoverVisible = _useState2[0], - setFontSizeUnitPopoverVisible = _useState2[1]; - var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState4 = _slicedToArray(_useState3, 2), - fontSizeUnitPopoverAnchor = _useState4[0], - setFontSizeUnitPopoverAnchor = _useState4[1]; - var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState6 = _slicedToArray(_useState5, 2), - lineHeightUnitPopoverVisible = _useState6[0], - setLineHeightUnitPopoverVisible = _useState6[1]; - var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState8 = _slicedToArray(_useState7, 2), - lineHeightUnitPopoverAnchor = _useState8[0], - setLineHeightUnitPopoverAnchor = _useState8[1]; - var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState10 = _slicedToArray(_useState9, 2), - letterSpacingUnitPopoverVisible = _useState10[0], - setLetterSpacingUnitPopoverVisible = _useState10[1]; - var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState12 = _slicedToArray(_useState11, 2), - letterSpacingUnitPopoverAnchor = _useState12[0], - setLetterSpacingUnitPopoverAnchor = _useState12[1]; - var _useState13 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState14 = _slicedToArray(_useState13, 2), - fontSettingsPopoverVisible = _useState14[0], - setFontSettingsPopoverVisible = _useState14[1]; - var _useState15 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState16 = _slicedToArray(_useState15, 2), - fontSettingsPopoverAnchor = _useState16[0], - setFontSettingsPopoverAnchor = _useState16[1]; - var _useState17 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState18 = _slicedToArray(_useState17, 2), - isVisible = _useState18[0], - setIsVisible = _useState18[1]; // for the main typography settings popup. - var _useState19 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState20 = _slicedToArray(_useState19, 2), - isToggled = _useState20[0], - setIsToggled = _useState20[1]; // for the main typography settings popup. - - var _useUnits = (0,_hooks_useUnits__WEBPACK_IMPORTED_MODULE_8__["default"])(), - onUnitChange = _useUnits.onUnitChange, - splitValues = _useUnits.splitValues, - getNumericValue = _useUnits.getNumericValue, - getUnitValue = _useUnits.getUnitValue, - startsWithNumber = _useUnits.startsWithNumber; - var _useDeviceType = (0,_hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_6__["default"])('Desktop'), - _useDeviceType2 = _slicedToArray(_useDeviceType, 1), - screenSize = _useDeviceType2[0]; - var getDefaultValues = function getDefaultValues() { - return { - mobile: { - fontFamily: props.values.mobile.fontFamily, - fontFamilySlug: props.values.mobile.fontFamilySlug, - fontSize: props.values.mobile.fontSize, - fontSizeUnit: props.values.mobile.fontSizeUnit, - fontWeight: props.values.mobile.fontWeight, - lineHeight: props.values.mobile.lineHeight, - lineHeightUnit: props.values.mobile.lineHeightUnit, - textTransform: props.values.mobile.textTransform, - letterSpacing: props.values.mobile.letterSpacing, - letterSpacingUnit: props.values.mobile.letterSpacingUnit, - fontType: props.values.mobile.fontType, - fontFallback: props.values.mobile.fontFallback - }, - tablet: { - fontFamily: props.values.tablet.fontFamily, - fontFamilySlug: props.values.tablet.fontFamilySlug, - fontSize: props.values.tablet.fontSize, - fontSizeUnit: props.values.tablet.fontSizeUnit, - fontWeight: props.values.tablet.fontWeight, - lineHeight: props.values.tablet.lineHeight, - lineHeightUnit: props.values.tablet.lineHeightUnit, - textTransform: props.values.tablet.textTransform, - letterSpacing: props.values.tablet.letterSpacing, - letterSpacingUnit: props.values.tablet.letterSpacingUnit, - fontType: props.values.tablet.fontType, - fontFallback: props.values.tablet.fontFallback - }, - desktop: { - fontFamily: props.values.desktop.fontFamily, - fontFamilySlug: props.values.desktop.fontFamilySlug, - fontSize: props.values.desktop.fontSize, - fontSizeUnit: props.values.desktop.fontSizeUnit, - fontWeight: props.values.desktop.fontWeight, - lineHeight: props.values.desktop.lineHeight, - lineHeightUnit: props.values.desktop.lineHeightUnit, - textTransform: props.values.desktop.textTransform, - letterSpacing: props.values.desktop.letterSpacing, - letterSpacingUnit: props.values.desktop.letterSpacingUnit, - fontType: props.values.desktop.fontType, - fontFallback: props.values.desktop.fontFallback - }, - captionCustomTypography: props.values.captionCustomTypography - }; - }; - var _useSettings = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.useSettings)('typography.fontFamilies'), - _useSettings2 = _slicedToArray(_useSettings, 1), - blockLevelFontFamilies = _useSettings2[0]; - var _useForm = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_9__.useForm)({ - defaultValues: getDefaultValues() - }), - control = _useForm.control, - setValue = _useForm.setValue, - getValues = _useForm.getValues; - var formValues = (0,react_hook_form__WEBPACK_IMPORTED_MODULE_9__.useWatch)({ - control: control - }); - var label = props.label; - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - props.onValuesChange(formValues); - }, [formValues]); - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - setValue(props.screenSize, getValues(props.screenSize)); - }, [props.screenSize]); - - /** - * Close color popup if visible. - */ - var toggleClose = function toggleClose() { - setIsToggled(true); - setIsVisible(!isVisible); - setTimeout(function () { - setIsToggled(false); - }, 500); - }; - - // Retrieve the list all available fonts. - var getFonts = function getFonts() { - var fonts = []; - fontFamilies.forEach(function (fontFamily) { - fonts.push({ - label: fontFamily.name, - value: fontFamily.slug, - family: fontFamily.family, - fallback: fontFamily.fallback, - type: fontFamily.type - }); - }); - if (blockLevelFontFamilies) { - var theme = blockLevelFontFamilies.theme; - if (theme) { - theme.forEach(function (fontFamily) { - fonts.push({ - label: fontFamily.name, - value: fontFamily.slug, - family: fontFamily.fontFamily, - fallback: fontFamily.fallback, - type: 'web' - }); - }); - } - } - - // Add placeholder. - fonts.unshift({ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Custom', 'photo-block'), - value: 'custom' - }); - fonts.unshift({ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Select a Font', 'photo-block'), - value: '' - }); - - // Don't show font family on non-desktop sizes. - if ('desktop' !== screenSize) { - return null; - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(screenSize, ".fontFamilySlug"), - control: control, - render: function render(_ref) { - var _ref$field = _ref.field, - _onChange = _ref$field.onChange, - value = _ref$field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Font Family', 'photo-block'), - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_5__.geHierarchicalPlaceholderValue)(props.values, screenSize, getValues(screenSize).fontFamilySlug, 'fontFamilySlug'), - options: fonts, - onChange: function onChange(newValue) { - _onChange(newValue); - - // Get font family name for CSS. - fonts.forEach(function (font) { - if (font.value === newValue) { - setValue("".concat(screenSize, ".fontFamily"), font.family); - setValue("".concat(screenSize, ".fontFamilySlug"), font.value); - setValue("".concat(screenSize, ".fontFallback"), font.fallback); - setValue("".concat(screenSize, ".fontType"), font.type); - } - }); - } - }); - } - }), 'custom' === getValues("".concat(screenSize, ".fontFamilySlug")) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.PanelRow, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "captionCustomTypography", - control: control, - render: function render(_ref2) { - var _ref2$field = _ref2.field, - _onChange2 = _ref2$field.onChange, - value = _ref2$field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Font Family', 'photo-block'), - value: getValues('captionCustomTypography'), - onChange: function onChange(newValue) { - _onChange2(newValue); - }, - type: "text" - }); - } - }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(screenSize, ".fontFamily"), - control: control, - render: function render(_ref3) { - var newValue = _ref3.field.newValue; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - type: "hidden", - value: getValues(screenSize).fontFamily - }); - } - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(screenSize, ".fontFallback"), - control: control, - render: function render(_ref4) { - var value = _ref4.field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - type: "hidden", - value: getValues(screenSize).fontFallback - }); - } - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "captionCustomTypography", - control: control, - render: function render(_ref5) { - var value = _ref5.field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - type: "hidden", - value: getValues('captionCustomTypography') - }); - } - })); - }; - var getTextTransform = function getTextTransform() { - var textTransform = [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('None', 'photo-block'), - value: 'none' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Uppercase', 'photo-block'), - value: 'uppercase' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Lowercase', 'photo-block'), - value: 'lowercase' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Capitalize', 'photo-block'), - value: 'capitalize' - }]; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(screenSize, ".textTransform"), - control: control, - render: function render(_ref6) { - var _ref6$field = _ref6.field, - _onChange3 = _ref6$field.onChange, - value = _ref6$field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Text Transform', 'photo-block'), - value: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_5__.geHierarchicalPlaceholderValue)(props.values, screenSize, getValues(screenSize).textTransform, 'textTransform'), - options: textTransform, - onChange: function onChange(newValue) { - _onChange3(newValue); - } - }); - } - }); - }; - var getFontSize = function getFontSize() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(screenSize, ".fontSize"), - control: control, - render: function render(_ref7) { - var _onChange4 = _ref7.field.onChange; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Font Size', 'photo-block'), - value: getValues(screenSize).fontSize, - onChange: function onChange(newValue) { - _onChange4(newValue); - if (startsWithNumber(newValue)) { - var newValuesSplit = splitValues(newValue); - var numericValue = getNumericValue(newValuesSplit); - var unitValue = getUnitValue(newValuesSplit); - setValue("".concat(screenSize, ".fontSize"), numericValue); - setValue("".concat(screenSize, ".fontSizeUnit"), unitValue); - } else { - // Starts with a string, hide the unit. - setValue("".concat(screenSize, ".fontSize"), newValue); - setValue("".concat(screenSize, ".fontSizeUnit"), ''); - } - }, - type: "text", - placeholder: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_5__.geHierarchicalPlaceholderValue)(props.values, screenSize, getValues(screenSize).fontSize, 'fontSize') - }); - } - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(screenSize, ".fontSizeUnit"), - control: control, - render: function render(_ref8) { - var value = _ref8.field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - type: "hidden", - value: getValues(screenSize).fontSizeUnit - }); - } - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - variant: "secondary", - label: getValues("".concat(screenSize, ".fontSizeUnit")), - onClick: function onClick() { - setFontSizeUnitPopoverVisible(!fontSizeUnitPopoverVisible); - }, - ref: setFontSizeUnitPopoverAnchor - }, getValues("".concat(screenSize, ".fontSizeUnit"))), true === fontSizeUnitPopoverVisible && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Popover, { - className: "photo-block-component-font-unit-picker", - noArrow: true, - anchor: fontSizeUnitPopoverAnchor - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ButtonGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - isPrimary: getValues("".concat(screenSize, ".fontSizeUnit")) === 'px', - onClick: function onClick() { - setValue("".concat(screenSize, ".fontSizeUnit"), 'px'); - setFontSizeUnitPopoverVisible(false); - } - }, "px"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - isPrimary: getValues("".concat(screenSize, ".fontSizeUnit")) === 'em', - onClick: function onClick() { - setValue("".concat(screenSize, ".fontSizeUnit"), 'em'); - setFontSizeUnitPopoverVisible(false); - } - }, "em"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - isPrimary: getValues("".concat(screenSize, ".fontSizeUnit")) === 'rem', - onClick: function onClick() { - setValue("".concat(screenSize, ".fontSizeUnit"), 'rem'); - setFontSizeUnitPopoverVisible(false); - } - }, "rem")))); - }; - var getFontWeights = function getFontWeights() { - var fontWeights = [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('100', 'photo-block'), - value: '100' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('200', 'photo-block'), - value: '200' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('300', 'photo-block'), - value: '300' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('400', 'photo-block'), - value: '400' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('500', 'photo-block'), - value: '500' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('600', 'photo-block'), - value: '600' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('700', 'photo-block'), - value: '700' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('800', 'photo-block'), - value: '800' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('900', 'photo-block'), - value: '900' - }]; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(screenSize, ".fontWeight"), - control: control, - render: function render(_ref9) { - var _ref9$field = _ref9.field, - _onChange5 = _ref9$field.onChange, - value = _ref9$field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Font Weight', 'photo-block'), - value: getValues(screenSize).fontWeight, - options: fontWeights, - onChange: function onChange(newValue) { - _onChange5(newValue); - } - }); - } - }); - }; - var getLineHeight = function getLineHeight() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(screenSize, ".lineHeight"), - control: control, - render: function render(_ref10) { - var _ref10$field = _ref10.field, - _onChange6 = _ref10$field.onChange, - value = _ref10$field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Line Height', 'photo-block'), - value: getValues(screenSize).lineHeight, - onChange: function onChange(newValue) { - _onChange6(newValue); - if (startsWithNumber(newValue)) { - var newValuesSplit = splitValues(newValue); - var numericValue = getNumericValue(newValuesSplit); - var unitValue = getUnitValue(newValuesSplit); - setValue("".concat(screenSize, ".lineHeight"), numericValue); - setValue("".concat(screenSize, ".lineHeightUnit"), unitValue); - } else { - // Starts with a string, hide the unit. - setValue("".concat(screenSize, ".lineHeight"), newValue); - setValue("".concat(screenSize, ".lineHeightUnit"), ''); - } - }, - type: "text", - placeholder: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_5__.geHierarchicalPlaceholderValue)(props.values, screenSize, getValues(screenSize).lineHeight, 'lineHeight') - }); - } - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(screenSize, ".lineHeightUnit"), - control: control, - render: function render(_ref11) { - var value = _ref11.field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - type: "hidden", - value: getValues(screenSize).lineHeightUnit - }); - } - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - variant: "secondary", - label: getValues("".concat(screenSize, ".lineHeightUnit")), - onClick: function onClick() { - setLineHeightUnitPopoverVisible(!lineHeightUnitPopoverVisible); - }, - ref: setLineHeightUnitPopoverAnchor - }, getValues("".concat(screenSize, ".lineHeightUnit"))), true === lineHeightUnitPopoverVisible && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Popover, { - className: "photo-block-component-font-unit-picker", - noArrow: true, - anchor: lineHeightUnitPopoverAnchor - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ButtonGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - isPrimary: getValues("".concat(screenSize, ".lineHeightUnit")) === 'px', - onClick: function onClick() { - setValue("".concat(screenSize, ".lineHeightUnit"), 'px'); - setLineHeightUnitPopoverVisible(false); - } - }, "px"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - isPrimary: getValues("".concat(screenSize, ".lineHeightUnit")) === 'em', - onClick: function onClick() { - setValue("".concat(screenSize, ".lineHeightUnit"), 'em'); - setLineHeightUnitPopoverVisible(false); - } - }, "em"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - isPrimary: getValues("".concat(screenSize, ".lineHeightUnit")) === 'rem', - onClick: function onClick() { - setValue("".concat(screenSize, ".lineHeightUnit"), 'rem'); - setLineHeightUnitPopoverVisible(false); - } - }, "rem")))); - }; - var getFontType = function getFontType() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(screenSize, ".fontType"), - control: control, - render: function render(_ref12) { - var value = _ref12.field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - type: "hidden", - value: getValues(screenSize).fontType - }); - } - }); - }; - var getFontFallback = function getFontFallback() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(screenSize, ".fontFallback"), - control: control, - render: function render(_ref13) { - var value = _ref13.field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - type: "hidden", - value: getValues(screenSize).fontFallback - }); - } - }); - }; - var getLetterSpacing = function getLetterSpacing() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(screenSize, ".letterSpacing"), - control: control, - render: function render(_ref14) { - var _ref14$field = _ref14.field, - _onChange7 = _ref14$field.onChange, - value = _ref14$field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Letter Spacing', 'photo-block'), - value: getValues(screenSize).letterSpacing, - onChange: function onChange(newValue) { - _onChange7(newValue); - if (startsWithNumber(newValue)) { - var newValuesSplit = splitValues(newValue); - var numericValue = getNumericValue(newValuesSplit); - var unitValue = getUnitValue(newValuesSplit); - setValue("".concat(screenSize, ".letterSpacing"), numericValue); - setValue("".concat(screenSize, ".letterSpacingUnit"), unitValue); - } else { - // Starts with a string, hide the unit. - setValue("".concat(screenSize, ".letterSpacing"), newValue); - setValue("".concat(screenSize, ".letterSpacingUnit"), ''); - } - }, - type: "text", - placeholder: (0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_5__.geHierarchicalPlaceholderValue)(props.values, screenSize, getValues(screenSize).letterSpacing, 'letterSpacing') - }); - } - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_hook_form__WEBPACK_IMPORTED_MODULE_9__.Controller, { - name: "".concat(screenSize, ".letterSpacingUnit"), - control: control, - render: function render(_ref15) { - var value = _ref15.field.value; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { - type: "hidden", - value: getValues(screenSize).letterSpacingUnit - }); - } - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - variant: "secondary", - label: getValues("".concat(screenSize, ".letterSpacingUnit")), - onClick: function onClick() { - setLetterSpacingUnitPopoverVisible(!letterSpacingUnitPopoverVisible); - }, - ref: setLetterSpacingUnitPopoverAnchor - }, getValues("".concat(screenSize, ".letterSpacingUnit"))), true === letterSpacingUnitPopoverVisible && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Popover, { - className: "photo-block-component-font-unit-picker", - noArrow: true, - anchor: letterSpacingUnitPopoverAnchor - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ButtonGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - isPrimary: getValues("".concat(screenSize, ".letterSpacingUnit")) === 'px', - onClick: function onClick() { - setValue("".concat(screenSize, ".letterSpacingUnit"), 'px'); - setLetterSpacingUnitPopoverVisible(false); - } - }, "px"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - isPrimary: getValues("".concat(screenSize, ".letterSpacingUnit")) === 'em', - onClick: function onClick() { - setValue("".concat(screenSize, ".letterSpacingUnit"), 'em'); - setLetterSpacingUnitPopoverVisible(false); - } - }, "em"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - isPrimary: getValues("".concat(screenSize, ".letterSpacingUnit")) === 'rem', - onClick: function onClick() { - setValue("".concat(screenSize, ".letterSpacingUnit"), 'rem'); - setLetterSpacingUnitPopoverVisible(false); - } - }, "rem")))); - }; - var getPopoverContent = function getPopoverContent() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.BaseControl, { - className: "photo-block-typography-picker" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-typography-picker__row photo-block-typography-picker__row__col-full" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-typography-picker__row_item" - }, getFonts())), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-typography-picker__row photo-block-typography-picker__row__col-full" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-typography-picker__row_item" - }, getTextTransform(), getFontType(), getFontFallback())), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-typography-picker__row photo-block-typography-picker__row__col-2" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-typography-picker__row_item photo-block-units" - }, getFontSize()), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-typography-picker__row_item" - }, getFontWeights())), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-typography-picker__row photo-block-typography-picker__row__col-2" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-typography-picker__row_item photo-block-units" - }, getLineHeight()), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-typography-picker__row_item photo-block-units" - }, getLetterSpacing()))); - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.BaseControl, { - className: "photo-block-typography-picker-wrapper" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-typography-component-devices" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_HeadingIconResponsive__WEBPACK_IMPORTED_MODULE_7__["default"], { - heading: label, - screenSize: screenSize - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-typography-component-settings" - }, getPopoverContent())); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TypographyControl); - -/***/ }), - -/***/ "./src/components/URLPicker/index.js": -/*!*******************************************!*\ - !*** ./src/components/URLPicker/index.js ***! - \*******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/URLPicker/editor.scss"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/keycodes */ "@wordpress/keycodes"); -/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/a11y */ "@wordpress/a11y"); -/* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_a11y__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose"); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/url */ "@wordpress/url"); -/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_url__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/external-link.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/circle-x.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/search.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/corner-down-left.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/file-text.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/file.js"); -/* harmony import */ var _utils_SendCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../utils/SendCommand */ "./src/utils/SendCommand.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - -/** - * External dependencies - */ - - - - -/** - * WordPress dependencies - */ - - - - - - - - - -/** - * URL Selector for Media Library. - * - * @param {Object} props Incoming props. - * - * @return {React.Component} UrlInput component. - */ -var URLPicker = function URLPicker(props) { - /** - * Create Refs for inputs. - */ - var inputRef = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.createRef)(); - var restEndPoint = props.restEndpoint; - var restNonce = props.restNonce; - - /** - * Set Unique Instance ID. - */ - var generatedUniqueId = (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__.useInstanceId)(URLPicker, 'app'); - - /** - * Set State. - */ - var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([]), - _useState2 = _slicedToArray(_useState, 2), - suggestions = _useState2[0], - setSuggestions = _useState2[1]; - var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState4 = _slicedToArray(_useState3, 2), - showSuggestions = _useState4[0], - setShowSuggestions = _useState4[1]; - var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState6 = _slicedToArray(_useState5, 2), - isUpdatingSuggestions = _useState6[0], - setIsUpdatingSuggestions = _useState6[1]; - var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState8 = _slicedToArray(_useState7, 2), - currentSuggestionRequest = _useState8[0], - setCurrentSuggestionRequest = _useState8[1]; - var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState10 = _slicedToArray(_useState9, 2), - selectedSuggestion = _useState10[0], - setSelectedSuggestion = _useState10[1]; - var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState12 = _slicedToArray(_useState11, 2), - currentSuggestion = _useState12[0], - setCurrentSuggestion = _useState12[1]; - var _useState13 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState14 = _slicedToArray(_useState13, 2), - selectedSuggestionIndex = _useState14[0], - setSelectedSuggestionIndex = _useState14[1]; - var _useState15 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(''), - _useState16 = _slicedToArray(_useState15, 2), - suggestionListboxId = _useState16[0], - setSuggestionListboxId = _useState16[1]; - var _useState17 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(''), - _useState18 = _slicedToArray(_useState17, 2), - suggestionValue = _useState18[0], - setSuggestionValue = _useState18[1]; - var _useState19 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(props.savedValue), - _useState20 = _slicedToArray(_useState19, 2), - savedSuggestionValue = _useState20[0], - setSavedSuggestionValue = _useState20[1]; - var _useState21 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)("url-input-control-".concat(generatedUniqueId)), - _useState22 = _slicedToArray(_useState21, 2), - uniqueInstanceId = _useState22[0], - setUniqueInstanceId = _useState22[1]; - var _useState23 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState24 = _slicedToArray(_useState23, 2), - loading = _useState24[0], - setLoading = _useState24[1]; - - /** - * Debounceing for delay. - */ - var debouncedRequest = (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__.useDebounce)(function (value) { - updateSuggestions(value); - }, 200); - - /** - * Effect. - */ - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - /** - * Run once. Set the suggestion value and current suggestion to saved value, then reset saved value. - */ - if ('' !== savedSuggestionValue) { - setSuggestionValue(savedSuggestionValue); - var newSuggestion = { - permalink: savedSuggestionValue, - label: (0,_wordpress_url__WEBPACK_IMPORTED_MODULE_8__.filterURLForDisplay)(savedSuggestionValue), - slug: '', - value: '' - }; - setSavedSuggestionValue(''); - setCurrentSuggestion(newSuggestion); - return; - } - if ('' !== suggestionValue) { - debouncedRequest(suggestionValue); - } - }, [suggestionValue]); - - /** - * Set Focus to input. - */ - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - if (inputRef.current && props.hasInititialFocus) { - inputRef.current.focus(); - } - }, [inputRef]); - - /** - * Set the current input. - * - * @param {event} event The onChange event. - */ - var onChange = function onChange(event) { - setSuggestionValue(event.target.value); - }; - - /** - * Search when focus and no results are present. - * - * @param {event} event Focus event. - */ - var onFocus = function onFocus(event) { - event.preventDefault(); - if (null === selectedSuggestion && '' !== suggestionValue && !(0,_wordpress_url__WEBPACK_IMPORTED_MODULE_8__.isURL)(suggestionValue)) { - debouncedRequest(suggestionValue); - } - }; - - /** - * Perform keydown functions such as selecting the next items in a list. - * - * @param {event} event Keydown event. - * - * @return {void} Return nothing. - */ - var onKeyDown = function onKeyDown(event) { - // If the suggestions are not shown or loading, we shouldn't handle the arrow keys - // We shouldn't preventDefault to allow block arrow keys navigation. - if (!showSuggestions && !suggestions.length || loading) { - // In the Windows version of Firefox the up and down arrows don't move the caret - // within an input field like they do for Mac Firefox/Chrome/Safari. This causes - // a form of focus trapping that is disruptive to the user experience. This disruption - // only happens if the caret is not in the first or last position in the text input. - // See: https://github.com/WordPress/gutenberg/issues/5693#issuecomment-436684747 - switch (event.keyCode) { - // When UP is pressed, if the caret is at the start of the text, move it to the 0 - // position. - case _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_4__.UP: - { - if (0 !== event.target.selectionStart) { - event.preventDefault(); - - // Set the input caret to position 0. - event.target.setSelectionRange(0, 0); - } - break; - } - // When DOWN is pressed, if the caret is not at the end of the text, move it to the - // last position. - case _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_4__.DOWN: - { - if (suggestionValue !== event.target.selectionStart) { - event.preventDefault(); - - // Set the input caret to the last position. - event.target.setSelectionRange(suggestionValue.length, suggestionValue.length); - } - break; - } - - // Submitting while loading should trigger onSubmit. - case _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_4__.ENTER: - { - event.preventDefault(); - debouncedRequest(event.target.value); - break; - } - } - return null; - } - switch (event.keyCode) { - case _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_4__.UP: - { - event.preventDefault(); - var previousIndex = !selectedSuggestionIndex ? suggestions.length - 1 : selectedSuggestionIndex - 1; - setSelectedSuggestionIndex(previousIndex); - setSelectedSuggestion(suggestions[previousIndex].value); - break; - } - case _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_4__.DOWN: - { - event.preventDefault(); - if (!showSuggestions && suggestions.length > 0) { - setShowSuggestions(true); - setSelectedSuggestionIndex(0); - setSelectedSuggestion(suggestions[0].value); - return; - } - var nextIndex = selectedSuggestion === null || selectedSuggestionIndex === suggestions.length - 1 ? 0 : selectedSuggestionIndex + 1; - setSelectedSuggestionIndex(nextIndex); - setSelectedSuggestion(suggestions[nextIndex].value); - break; - } - case _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_4__.TAB: - { - if (selectedSuggestion !== null) { - // Announce a link has been selected when tabbing away from the input field. - (0,_wordpress_a11y__WEBPACK_IMPORTED_MODULE_5__.speak)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Link selected.', 'photo-block')); - } - break; - } - case _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_4__.ENTER: - { - event.preventDefault(); - setShowSuggestions(false); - if (selectedSuggestion !== null) { - props.onItemSelect(event, getSuggestion(selectedSuggestion)); - inputRef.current.focus(); - } - break; - } - } - }; - - /** - * Get the current suggestion and output the label. - * - * @param {string} value The current download ID. - * - * @return {Object} The suggestion label. - */ - var getSuggestion = function getSuggestion(value) { - var foundSuggestion = suggestions.find(function (suggestion) { - return suggestion.value === value; - }); - if (null === foundSuggestion || undefined === foundSuggestion) { - return null; - } - return foundSuggestion; - }; - - /** - * Requests a new suggestion. - * - * @param {string} value Value to search for. - */ - var updateSuggestions = function updateSuggestions() { - var _value; - var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; - // Initial suggestions may only show if there is no value - // (note: this includes whitespace). - var isInitialSuggestions = !((_value = value) !== null && _value !== void 0 && _value.length); - value = value.toString(); - - // Trim only now we've determined whether or not it originally had a "length" - // (even if that value was all whitespace). - value = value.trim(); - - // Return early if value is a URL. - if ((0,_wordpress_url__WEBPACK_IMPORTED_MODULE_8__.isURL)(value)) { - setSuggestions([]); - setShowSuggestions(false); - setLoading(false); - return; - } - - // Allow a suggestions request if: - // - there are at least 2 characters in the search input (except manual searches where - // search input length is not required to trigger a fetch) - // - this is a direct entry (eg: a URL) - if (!isInitialSuggestions && value.length < 2) { - // todo - cancel any pending requests - setSuggestions([]); - setShowSuggestions(false); - setLoading(false); - return; - } - setIsUpdatingSuggestions(true); - setSelectedSuggestion(null); - setLoading(true); - var abortController = new AbortController(); - if (null !== currentSuggestionRequest) { - currentSuggestionRequest.abort(); - } - setCurrentSuggestionRequest(abortController); - - // Perform async ajax request. - _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.prev = 0; - setLoading(true); - _context.next = 4; - return (0,_utils_SendCommand__WEBPACK_IMPORTED_MODULE_9__["default"])(restNonce, { - signal: abortController.signal, - search: encodeURIComponent(value) - }, restEndPoint, 'POST').then(function (response) { - setCurrentSuggestionRequest(null); - var data = response.data.data; - setSuggestions(data); - setShowSuggestions(true); - })["catch"](function (error) {}).then(function () { - setLoading(false); - }); - case 4: - _context.next = 8; - break; - case 6: - _context.prev = 6; - _context.t0 = _context["catch"](0); - case 8: - case "end": - return _context.stop(); - } - }, _callee, null, [[0, 6]]); - }))(); - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-url-input" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-pub-url-input__wrapper" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-pub-url-input__input-wrapper" - }, null !== currentSuggestion && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-pub-url-input__suggestion" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-pub-url-input__suggestion-item" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", { - className: "photo-block-pub-url-input__suggestion-label" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - variant: "link", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(lucide_react__WEBPACK_IMPORTED_MODULE_10__["default"], null), - iconSize: 18, - iconPosition: "right", - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Open in new tab', 'photo-block'), - href: currentSuggestion.permalink, - target: "_blank", - rel: "noopener noreferrer" - }, (0,_wordpress_url__WEBPACK_IMPORTED_MODULE_8__.filterURLForDisplay)(currentSuggestion.permalink))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - variant: "secondary", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(lucide_react__WEBPACK_IMPORTED_MODULE_11__["default"], null), - iconSize: 18, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Remove Current Selection', 'photo-block'), - onClick: function onClick() { - setCurrentSuggestion(null); - } - }))), null === currentSuggestion && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-pub-url-search-wrapper" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("input", { - type: "text", - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Paste in URL or search', 'photo-block'), - id: uniqueInstanceId, - className: "photo-block-pub-url-input__input", - value: suggestionValue, - onChange: onChange, - onFocus: onFocus, - onKeyDown: onKeyDown, - "aria-label": props.label ? undefined : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Page', 'photo-block'), - "aria-autocomplete": "list", - ref: inputRef - }), loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-pub-url-input__loading" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Spinner, null)), !loading && !(0,_wordpress_url__WEBPACK_IMPORTED_MODULE_8__.isURL)(suggestionValue) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - className: "photo-block-pub-url-input__search-button", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(lucide_react__WEBPACK_IMPORTED_MODULE_12__["default"], null), - iconSize: 18, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Search for a Page', 'photo-block'), - onClick: function onClick() { - setShowSuggestions(true); - } - })), !loading && (0,_wordpress_url__WEBPACK_IMPORTED_MODULE_8__.isURL)(suggestionValue) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - className: "photo-block-pub-url-input__apply-button", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(lucide_react__WEBPACK_IMPORTED_MODULE_13__["default"], null), - iconSize: 18, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Apply Link', 'photo-block'), - onClick: function onClick(e) { - var newSuggestion = { - permalink: suggestionValue, - label: (0,_wordpress_url__WEBPACK_IMPORTED_MODULE_8__.filterURLForDisplay)(suggestionValue), - slug: '', - value: '' - }; - setCurrentSuggestion(newSuggestion); - props.onItemSelect(e, suggestionValue); - } - }))))), showSuggestions && !!suggestions.length && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-suggestions-wrapper" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - role: "listbox", - id: suggestionListboxId, - className: "photo-block-url-input__suggestions" - }, suggestions.map(function (suggestion, index) { - var suggestionId = "photo-block-suggested-value-".concat(suggestion.value); - var suggestionClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()('photo-block-url-input__suggestion', { - 'is-selected': suggestion.value === selectedSuggestion - }); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - key: suggestionId, - id: suggestionId, - value: suggestion.value, - role: "option", - "aria-selected": suggestion.value === selectedSuggestion, - className: suggestionClass, - onClick: function onClick(e) { - setSelectedSuggestion(parseInt(e.target.value)); - setSelectedSuggestionIndex(index); - setCurrentSuggestion(suggestion); - setShowSuggestions(false); - props.onItemSelect(e, suggestion.permalink); - }, - icon: 'post' === suggestion.type ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(lucide_react__WEBPACK_IMPORTED_MODULE_14__["default"], null) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(lucide_react__WEBPACK_IMPORTED_MODULE_15__["default"], null), - iconSize: 2, - iconPosition: "left" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", { - className: "photo-block-search-item" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", { - className: "photo-block-search-item-title" - }, suggestion.label), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", { - className: "photo-block-search-item-info" - }, suggestion.permalink))); - })))); -}; -URLPicker.defaultProps = { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Page', 'photo-block'), - onItemSelect: function onItemSelect() {}, - hasInititialFocus: false, - itemIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null) -}; -URLPicker.propTypes = { - restEndpoint: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string).isRequired, - restNonce: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string).isRequired, - label: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string).isRequired, - onItemSelect: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func).isRequired, - hasInititialFocus: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool).isRequired, - itemIcon: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().element).isRequired -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (URLPicker); - -/***/ }), - -/***/ "./src/components/UnitPicker/index.js": -/*!********************************************!*\ - !*** ./src/components/UnitPicker/index.js ***! - \********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/components/UnitPicker/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__); -/** - * Unit Picker Component. - * Credit: Forked from @GenerateBlocks - */ - - - - - -var UnitPicker = function UnitPicker(props) { - var label = props.label, - value = props.value, - _onClick = props.onClick, - units = props.units; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "components-photo-block-units-control-header__units ".concat(props === null || props === void 0 ? void 0 : props.className) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: "components-photo-block-control__units" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ButtonGroup, { - className: "components-photo-block-control-buttons__units", - "aria-label": (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Select Units', 'photo-block') - }, units.map(function (unit) { - var unitName = unit; - if ('px' === unit) { - unitName = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__._x)('Pixel', 'A size unit for CSS markup', 'photo-block'); - } - if ('em' === unit) { - unitName = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__._x)('Em', 'A size unit for CSS markup', 'photo-block'); - } - if ('%' === unit) { - unitName = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__._x)('Percentage', 'A size unit for CSS markup', 'photo-block'); - } - if ('vw' === unit) { - unitName = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__._x)('View Width', 'A size unit for CSS markup', 'photo-block'); - } - if ('rem' === unit) { - unitName = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__._x)('Rem', 'A size unit for CSS markup', 'photo-block'); - } - if ('deg' === unit) { - unitName = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__._x)('Degree', 'A size unit for CSS markup', 'photo-block'); - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Tooltip, { - text: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.sprintf)( /* translators: Unit type (px, em, %) */ - (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('%s Units', 'photo-block'), unitName), - key: unit - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - key: unit, - className: 'components-photo-block-control-button__units--' + unit, - isSmall: true, - variant: value === unit ? 'primary' : 'secondary', - "aria-pressed": value === unit, - "aria-label": (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.sprintf)( /* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */ - (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('%s Units', 'photo-block'), unitName), - onClick: function onClick() { - return _onClick(unit); - } - }, unit)); - })))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UnitPicker); - -/***/ }), - -/***/ "./src/components/UploadStatus/index.js": -/*!**********************************************!*\ - !*** ./src/components/UploadStatus/index.js ***! - \**********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/UploadStatus/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/circle-x.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/redo-2.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/** - * Uploading including showing Cancel and Retry buttons. - */ - - - - - - - - -/** - * Upload Status component. - * - * @param {Object} props - Component props. - */ -var UploadStatus = function UploadStatus(props) { - // Read in context values. - - var blockUniqueId = props.blockUniqueId; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.useDispatch)((0,_store__WEBPACK_IMPORTED_MODULE_5__.blockStore)(blockUniqueId)), - setIsUploading = _useDispatch.setIsUploading, - setIsUploadError = _useDispatch.setIsUploadError, - setIsProcessingUpload = _useDispatch.setIsProcessingUpload; - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.useSelect)(function (select) { - return { - imageData: select((0,_store__WEBPACK_IMPORTED_MODULE_5__.blockStore)(blockUniqueId)).getImageData(), - isUploadError: select((0,_store__WEBPACK_IMPORTED_MODULE_5__.blockStore)(blockUniqueId)).isUploadError(), - filepondInstance: select((0,_store__WEBPACK_IMPORTED_MODULE_5__.blockStore)(blockUniqueId)).getFilepondInstance() - }; - }), - imageData = _useSelect.imageData, - isUploadError = _useSelect.isUploadError, - filepondInstance = _useSelect.filepondInstance; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__upload-status" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_6__["default"], null), - onClick: function onClick() { - setIsUploadError(false); - setIsUploading(false); - setIsProcessingUpload(false); - filepondInstance.removeFile(); // start over. Go back to initial view. - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Cancel', 'photo-block')), isUploadError && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_7__["default"], null), - onClick: function onClick() { - setIsUploading(true); - setIsUploadError(false); - filepondInstance.addFile(imageData.file); // Start upload process again. - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Retry Image', 'photo-block')))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UploadStatus); - -/***/ }), - -/***/ "./src/components/UploadTarget/index.js": -/*!**********************************************!*\ - !*** ./src/components/UploadTarget/index.js ***! - \**********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/UploadTarget/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var react_filepond__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-filepond */ "./node_modules/react-filepond/dist/react-filepond.js"); -/* harmony import */ var filepond_plugin_image_preview__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! filepond-plugin-image-preview */ "./node_modules/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.js"); -/* harmony import */ var filepond_plugin_image_preview__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(filepond_plugin_image_preview__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var filepond_plugin_image_exif_orientation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! filepond-plugin-image-exif-orientation */ "./node_modules/filepond-plugin-image-exif-orientation/dist/filepond-plugin-image-exif-orientation.js"); -/* harmony import */ var filepond_plugin_image_exif_orientation__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(filepond_plugin_image_exif_orientation__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var filepond_plugin_file_validate_type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! filepond-plugin-file-validate-type */ "./node_modules/filepond-plugin-file-validate-type/dist/filepond-plugin-file-validate-type.js"); -/* harmony import */ var filepond_plugin_file_validate_type__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(filepond_plugin_file_validate_type__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var filepond_plugin_image_preview_dist_filepond_plugin_image_preview_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css */ "./node_modules/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css"); -/* harmony import */ var filepond_dist_filepond_min_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! filepond/dist/filepond.min.css */ "./node_modules/filepond/dist/filepond.min.css"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/upload.js"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/* harmony import */ var _blocks_photo_block_icons_filepond__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../blocks/photo-block/icons/filepond */ "./src/blocks/photo-block/icons/filepond.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -/** - * Upload data row including Upload|Media Library|URL|Data. - */ - - - - - - - - - - - - - - -// Register filepond plugins. -(0,react_filepond__WEBPACK_IMPORTED_MODULE_2__.registerPlugin)((filepond_plugin_image_preview__WEBPACK_IMPORTED_MODULE_3___default()), (filepond_plugin_image_exif_orientation__WEBPACK_IMPORTED_MODULE_4___default()), (filepond_plugin_file_validate_type__WEBPACK_IMPORTED_MODULE_5___default())); - -var UploadTarget = function UploadTarget(props) { - var blockUniqueId = props.blockUniqueId; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_10__.useDispatch)((0,_store__WEBPACK_IMPORTED_MODULE_11__.blockStore)(blockUniqueId)), - setImageData = _useDispatch.setImageData, - setFilepondInstance = _useDispatch.setFilepondInstance, - setIsUploading = _useDispatch.setIsUploading, - setIsProcessingUpload = _useDispatch.setIsProcessingUpload, - setPhotoMode = _useDispatch.setPhotoMode, - setIsUploadError = _useDispatch.setIsUploadError, - setScreen = _useDispatch.setScreen; - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_10__.useSelect)(function (select) { - return { - currentScreen: select((0,_store__WEBPACK_IMPORTED_MODULE_11__.blockStore)(blockUniqueId)).getCurrentScreen(), - isUploading: select((0,_store__WEBPACK_IMPORTED_MODULE_11__.blockStore)(blockUniqueId)).isUploading(), - isProcessingUpload: select((0,_store__WEBPACK_IMPORTED_MODULE_11__.blockStore)(blockUniqueId)).isProcessingUpload(), - isUploadError: select((0,_store__WEBPACK_IMPORTED_MODULE_11__.blockStore)(blockUniqueId)).isUploadError() - }; - }), - currentScreen = _useSelect.currentScreen, - isUploading = _useSelect.isUploading, - isProcessingUpload = _useSelect.isProcessingUpload, - isUploadError = _useSelect.isUploadError; - var setAttributes = props.setAttributes; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__upload-target__container" - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__upload-target__filepond" - }, /*#__PURE__*/React.createElement(react_filepond__WEBPACK_IMPORTED_MODULE_2__.FilePond, { - allowMultiple: false, - maxFiles: 1, - server: { - process: function process(fieldName, file, metadata, load, error, progress, _abort, transfer, options) { - // todo - Need error checking and handling here. - var formData = new FormData(); - // If file is not an object, treat as full URL. - if ('object' !== _typeof(file)) { - formData.append('url', file); - } else { - formData.append('file', file, file.name); - } - var request = new XMLHttpRequest(); - request.open('POST', photoBlock.restUrl + '/add-image'); - request.setRequestHeader('X-WP-Nonce', photoBlock.restNonce); - request.upload.onprogress = function (e) { - progress(e.lengthComputable, e.loaded, e.total); - }; - request.onload = function () { - if (request.status >= 200 && request.status < 300) { - setAttributes({ - imageData: JSON.parse(request.responseText), - photoMode: 'photo' - }); - setPhotoMode('photo'); - setImageData(JSON.parse(request.responseText)); - load(request.responseText); - } else { - error('oh no'); - } - }; - request.send(formData); - return { - abort: function abort() { - request.abort(); - _abort(); - } - }; - } - }, - credits: false, - stylePanelLayout: "integrated", - labelIdle: "", - allowRemove: false, - allowRevert: false, - ref: setFilepondInstance, - labelFileTypeNotAllowed: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.__)('Invalid file type', 'photo-block'), - labelTapToCancel: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.__)('Click to cancel', 'photo-block'), - acceptedFileTypes: ['image/*'], - onaddfilestart: function onaddfilestart() { - setIsUploading(true); - }, - onprocessfileabort: function onprocessfileabort() { - setIsUploading(false); - setIsProcessingUpload(false); - }, - onerror: function onerror(error) { - setIsUploadError(true); - setIsUploading(false); - setIsProcessingUpload(false); - }, - imagePreviewMaxFileSize: "4MB", - iconRetry: _blocks_photo_block_icons_filepond__WEBPACK_IMPORTED_MODULE_12__.redoSvg, - iconProcess: _blocks_photo_block_icons_filepond__WEBPACK_IMPORTED_MODULE_12__.processSvg, - onprocessfile: function onprocessfile(error, file) { - setIsProcessingUpload(false); - setIsUploading(false); - setScreen('edit'); - setAttributes({ - screen: 'edit' - }); - } - })), !isUploading && !isProcessingUpload && /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__upload-target__label" - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__upload-target__label-svg" - }, /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_13__["default"], null)), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__upload-target__label-text" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.__)('Drag Photo Here or Click to Upload', 'photo-block'))))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UploadTarget); - -/***/ }), - -/***/ "./src/components/UploadTypes/index.js": -/*!*********************************************!*\ - !*** ./src/components/UploadTypes/index.js ***! - \*********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/UploadTypes/editor.scss"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/hooks */ "@wordpress/hooks"); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/loader-circle.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/image-plus.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/download.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/circle-x.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/circle-alert.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/arrow-big-left-dash.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/upload.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/image.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/link.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/* harmony import */ var _utils_SendCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../utils/SendCommand */ "./src/utils/SendCommand.js"); -/* harmony import */ var _components_Notice__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../components/Notice */ "./src/components/Notice/index.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -/** - * Upload data row including Upload|Media Library|URL|Data. - */ - - - - - - - - - - - - - - -/** - * UploadTypes component. - * - * @param {Object} props - Component props. - * @return {Function} Component. - */ -var UploadTypes = function UploadTypes(props) { - var attributes = props.attributes, - setAttributes = props.setAttributes, - context = props.context, - blockUniqueId = props.blockUniqueId, - clientId = props.clientId; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_8__.useDispatch)((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)), - setImageData = _useDispatch.setImageData, - setPhotoMode = _useDispatch.setPhotoMode, - setScreen = _useDispatch.setScreen, - setHasCaption = _useDispatch.setHasCaption; - var _useDispatch2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_8__.useDispatch)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.store), - insertBlock = _useDispatch2.insertBlock, - updateBlockAttributes = _useDispatch2.updateBlockAttributes; - - // Get current block data. - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_8__.useSelect)(function (select) { - return { - imageData: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)).getImageData(), - filepondInstance: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)).getFilepondInstance(), - photoMode: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)).getPhotoMode() - }; - }), - imageData = _useSelect.imageData, - filepondInstance = _useSelect.filepondInstance, - photoMode = _useSelect.photoMode; - var _useState = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useState)(false), - _useState2 = _slicedToArray(_useState, 2), - isUrlSelected = _useState2[0], - setIsUrlSelected = _useState2[1]; - var _useState3 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useState)(''), - _useState4 = _slicedToArray(_useState3, 2), - url = _useState4[0], - setUrl = _useState4[1]; - var _useState5 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useState)(null), - _useState6 = _slicedToArray(_useState5, 2), - urlInput = _useState6[0], - setUrlInput = _useState6[1]; - var _useState7 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useState)(false), - _useState8 = _slicedToArray(_useState7, 2), - isUrlValidationError = _useState8[0], - setIsUrlValidationError = _useState8[1]; - var _useState9 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useState)(false), - _useState10 = _slicedToArray(_useState9, 2), - isUrlSaving = _useState10[0], - setIsUrlSaving = _useState10[1]; - var _useState11 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useState)(''), - _useState12 = _slicedToArray(_useState11, 2), - urlValidationErrorMessage = _useState12[0], - setUrlValidationErrorMessage = _useState12[1]; - - /** - * Focus on url when entered. - */ - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useEffect)(function () { - if (null !== urlInput) { - urlInput.focus(); - } - }, [urlInput]); - var getUrlIcon = function getUrlIcon() { - if (isUrlSaving) { - return /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_12__["default"], null); - } - if ('url' === photoMode) { - return /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_13__["default"], null); - } - return /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_14__["default"], null); - }; - var getUrlLabel = function getUrlLabel() { - if (isUrlSaving) { - return (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Uploading', 'photo-block'); - } - if ('url' === photoMode) { - return (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Add Image', 'photo-block'); - } - return (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Upload', 'photo-block'); - }; - - /** - * Check for a valid URL before submitting via Ajax. - * - * @param {string} testUrl The URL string to check. - * @return {boolean} True if the URL is valid, false if not. - */ - var isValidUrl = function isValidUrl(testUrl) { - // Test the beginning part of the URL. - var urlValidation = /^((http|https):\/\/)/; - if (!urlValidation.test(testUrl)) { - return false; - } - - /** - * Filter the valid extensions for the photo block. - * - * @param {Array} [ 'jpg', 'jpeg', 'png', 'gif', 'webp', 'avif' ] The default valid extensions. - */ - var validExtensions = (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__.applyFilters)('dlx_photo_block_valid_extensions', ['jpg', 'jpeg', 'png', 'gif', 'webp', 'avif']); - - // Test for valid extensions. - var parseUrl = new URL(testUrl); - var path = parseUrl.pathname.toLowerCase(); - return validExtensions.some(function (extension) { - return path.endsWith(extension); - }); - }; - if (isUrlSelected) { - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__upload-types-checkbox__container" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Save image URL manually.', 'photo-block'), - checked: 'url' === photoMode, - onChange: function onChange(value) { - if (value) { - setPhotoMode('url'); - } else { - setPhotoMode('image'); - } - } - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__upload-types-url__container" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, { - type: "url", - className: classnames__WEBPACK_IMPORTED_MODULE_7___default()('dlx-photo-block__upload-types-url__input', { - 'is-url-saving': isUrlSaving, - 'is-validation-error': isUrlValidationError - }), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Photo URL', 'photo-block'), - value: url, - onChange: function onChange(value) { - setUrlValidationErrorMessage(''); - setIsUrlValidationError(false); - setUrl(value); - }, - ref: setUrlInput, - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Please enter a valid image URL', 'photo-block') - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "primary", - icon: getUrlIcon(), - disabled: isUrlSaving || isUrlValidationError, - className: classnames__WEBPACK_IMPORTED_MODULE_7___default()('dlx-photo-block__upload-types-url__upload', { - 'is-url-saving': isUrlSaving, - 'is-validation-error': isUrlValidationError - }), - onClick: function onClick() { - // Perform validation on the URL. - if (!isValidUrl(url)) { - setUrlValidationErrorMessage((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Please enter a valid image URL', 'photo-block')); - setIsUrlValidationError(true); - urlInput.focus(); - return; - } - setUrlValidationErrorMessage(''); - setIsUrlSaving(true); - setIsUrlValidationError(false); - if ('url' !== photoMode) { - (0,_utils_SendCommand__WEBPACK_IMPORTED_MODULE_10__["default"])(photoBlock.restNonce, { - url: url - }, photoBlock.restUrl + '/add-image-from-url', 'POST').then(function (response) { - var _response$data$url, _response$data; - // Successful response. - var maybeUrl = (_response$data$url = (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.url) !== null && _response$data$url !== void 0 ? _response$data$url : false; // Double-checking. - if (maybeUrl) { - setAttributes({ - imageData: response.data, - photoMode: 'photo' - }); - setImageData(response.data); - setScreen('edit'); - setPhotoMode('photo'); - } - })["catch"](function (error) { - var _error$response$data$, _error$response, _error$response$data; - var errorMessage = (_error$response$data$ = error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : _error$response$data.message) !== null && _error$response$data$ !== void 0 ? _error$response$data$ : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('An unknown error occurred', 'photo-block'); - setUrlValidationErrorMessage(errorMessage); - setIsUrlValidationError(true); - urlInput.focus(); - }).then(function () { - setIsUrlSaving(false); - }); - } else { - // Get width and height of the image. - var newImage = new Image(); - newImage.src = url; - newImage.onload = function () { - var urlImageData = { - id: 0, - url: url, - width: newImage.width, - height: newImage.height, - alt: '', - caption: '' - }; - setAttributes({ - imageData: urlImageData, - screen: 'edit', - photoMode: 'url' - }); - setImageData(urlImageData); - setScreen('edit'); - }; - } - }, - label: getUrlLabel() - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_15__["default"], null), - className: "dlx-photo-block__upload-types-url__cancel", - onClick: function onClick() { - setIsUrlSelected(false); - setUrlValidationErrorMessage(''); - setIsUrlValidationError(false); - setIsUrlSaving(false); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Cancel', 'photo-block') - })), isUrlValidationError && /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__upload-types-url__error" - }, /*#__PURE__*/React.createElement(_components_Notice__WEBPACK_IMPORTED_MODULE_11__["default"], { - message: urlValidationErrorMessage, - status: "error", - politeness: "assertive", - icon: lucide_react__WEBPACK_IMPORTED_MODULE_16__["default"], - inline: false - }))); - } - var handleSelect = function handleSelect(media) { - // Fetch image data. - (0,_utils_SendCommand__WEBPACK_IMPORTED_MODULE_10__["default"])(photoBlock.restNonce, {}, "".concat(photoBlock.restUrl + '/get-image-by-size', "/id=").concat(media.id, "/size=").concat(attributes.imageSize), 'GET').then(function (response) { - setPhotoMode('photo'); - setScreen('edit'); - attributes.screen = 'edit'; - setAttributes({ - imageData: response.data, - screen: 'edit', - photoMode: 'photo', - hasCaption: true - }); - setImageData(response.data); - if (response.data.caption !== '') { - var newBlock = (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__.createBlock)('dlxplugins/photo-caption-block', { - captionManual: response.data.caption, - uniqueId: blockUniqueId - }); - - // Ensure block editor is ready - setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - try { - insertBlock(newBlock, undefined, props.clientId); - } catch (error) { - console.error('Error inserting block:', error); - } - case 1: - case "end": - return _context.stop(); - } - }, _callee); - })), 0); - } - })["catch"](function (error) { - // TODO: Handle error appropriately. - console.error('Error fetching image data:', error); - }); - }; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__upload-types__container" - }, imageData.url !== '' && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "primary", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_17__["default"], null), - className: "dlx-photo-block__upload-types__back", - onClick: function onClick() { - setAttributes({ - screen: 'edit' - }); - setScreen('edit'); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Back', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_18__["default"], null), - onClick: function onClick() { - filepondInstance.browse(); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Upload', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.MediaUploadCheck, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.MediaUpload, { - allowedTypes: "image", - mode: "browse", - multiple: false, - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Please select a Photo', 'photo-block'), - render: function render(_ref2) { - var open = _ref2.open; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_19__["default"], null), - onClick: function onClick() { - open(); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Media Library', 'photo-block')); - }, - onSelect: handleSelect - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_20__["default"], null), - onClick: function onClick() { - setIsUrlSelected(true); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('URL', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Slot, { - name: "dlx-photo-block.upload-types", - fillProps: _objectSpread({}, props) - }))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UploadTypes); - -/***/ }), - -/***/ "./src/hooks/useDeviceType.js": -/*!************************************!*\ - !*** ./src/hooks/useDeviceType.js ***! - \************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); - - - -/* Credits: Forked from GenerateBlocks */ - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function () { - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.useDispatch)('core/editor'), - setDeviceType = _useDispatch.setDeviceType; - var deviceType = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.useSelect)(function (select) { - var _select = select('core/editor'), - getDeviceType = _select.getDeviceType; - return getDeviceType().toLowerCase(); - }, []); - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {}, [deviceType]); - return [deviceType, setDeviceType]; -}); - -/***/ }), - -/***/ "./src/hooks/useUnits.js": -/*!*******************************!*\ - !*** ./src/hooks/useUnits.js ***! - \*******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_UnitsList__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/UnitsList */ "./src/utils/UnitsList.js"); - -var useUnits = function useUnits() { - // Test if the value starts with a number, decimal or a single dash. Single dash is for negative numbers. - var startsWithNumber = function startsWithNumber(number) { - if (0 === number) { - return false; - } - return /^([-]?\d|[-]?\.)/.test(number); - }; - var getNumericValue = function getNumericValue(values) { - return values.length > 0 ? values[0].trim() : ''; - }; - var defaultUnitValue = 'px'; - var getUnitValue = function getUnitValue(values) { - return values.length > 1 ? values[1] : defaultUnitValue; - }; - - /** - * Handle when a unit value changes. - * - * @param {string} newValue The value to get the numeric value from. - * @param {Function} onChange The onChange function. - * @param {Function} setValue The setValue function. - * @param {string} device The device type. - * @param {string} unitSlug The unit slug. - * @return {void} - */ - var onUnitChange = function onUnitChange(newValue, onChange, setValue, device, unitSlug) { - if (startsWithNumber(newValue)) { - var newValuesSplit = splitValues(newValue); - var numericValue = getNumericValue(newValuesSplit); - setValue("".concat(device, ".").concat(unitSlug), getUnitValue(newValuesSplit)); - onChange(numericValue); - } else { - // Starts with a string, hide the unit. - setValue("".concat(device, ".").concat(unitSlug), ''); - onChange(newValue); - } - }; - var splitValues = function splitValues(values) { - var unitRegex = _utils_UnitsList__WEBPACK_IMPORTED_MODULE_0__["default"].join('|'); - var splitRegex = new RegExp("(".concat(unitRegex, ")")); - return values ? values.toString().toLowerCase().split(splitRegex).filter(function (singleValue) { - return '' !== singleValue; - }) : []; - }; - return { - onUnitChange: onUnitChange, - splitValues: splitValues, - getNumericValue: getNumericValue, - getUnitValue: getUnitValue, - startsWithNumber: startsWithNumber - }; -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useUnits); - -/***/ }), - -/***/ "./src/plugins/GlobalStyles/index.js": -/*!*******************************************!*\ - !*** ./src/plugins/GlobalStyles/index.js ***! - \*******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/plugins */ "@wordpress/plugins"); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/hooks */ "@wordpress/hooks"); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _blocks_photo_block_block_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../blocks/photo-block/block-styles */ "./src/blocks/photo-block/block-styles.js"); -/* harmony import */ var _blocks_photo_caption_block_block_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../blocks/photo-caption-block/block-styles */ "./src/blocks/photo-caption-block/block-styles.js"); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../store/global-styles */ "./src/store/global-styles.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - - - - -(0,_wordpress_plugins__WEBPACK_IMPORTED_MODULE_1__.registerPlugin)('photo-block-global-styles', { - render: function render() { - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(function (newSelect) { - return { - getGlobalStyleBySlug: newSelect(_store_global_styles__WEBPACK_IMPORTED_MODULE_6__["default"]).getGlobalStyleBySlug, - getGlobalStyleRefresh: newSelect(_store_global_styles__WEBPACK_IMPORTED_MODULE_6__["default"]).getGlobalStyleRefresh - }; - }), - getGlobalStyleBySlug = _useSelect.getGlobalStyleBySlug, - getGlobalStyleRefresh = _useSelect.getGlobalStyleRefresh; - var returnRealtimeBlockAttributes = function returnRealtimeBlockAttributes(propAttributes, globalStyle, clientId, type) { - // Return if global style is defined, none, or empty. - if ('undefined' === typeof globalStyle || 'none' === globalStyle || '' === globalStyle) { - return propAttributes; - } - - // Get global style. - var maybeGlobalStyle = getGlobalStyleBySlug(globalStyle); - if (Object.keys(maybeGlobalStyle).length === 0) { - return propAttributes; - } - // Found a global style. - var newAttributes = {}; - if ('caption' === type) { - newAttributes = _objectSpread({}, maybeGlobalStyle.content.captionAttributes); - newAttributes.globalStyle = globalStyle; - } else { - newAttributes = _objectSpread({}, maybeGlobalStyle.content.photoAttributes); - // Ensure global styless are not applied if overriden. - if (propAttributes.imageSizeOverride) { - newAttributes.imageSize = propAttributes.imageSize; - } - if (propAttributes.mediaLinkOverride) { - newAttributes.mediaLinkType = propAttributes.mediaLinkType; - newAttributes.mediaLinkTitle = propAttributes.mediaLinkTitle; - newAttributes.mediaLinkNewTab = propAttributes.mediaLinkNewTab; - newAttributes.mediaLinkUrl = propAttributes.mediaLinkUrl; - newAttributes.lightboxCaption = propAttributes.lightboxCaption; - newAttributes.lightboxEnabled = propAttributes.lightboxEnabled; - newAttributes.lightboxShowCaption = propAttributes.lightboxShowCaption; - } - } - return _objectSpread(_objectSpread({}, propAttributes), newAttributes); - }; - (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__.addFilter)('dlx_photo_block_attributes', 'dlx_photo_block', returnRealtimeBlockAttributes); - return null; - } -}); -var devices = ['desktop', 'tablet', 'mobile']; -(0,_wordpress_plugins__WEBPACK_IMPORTED_MODULE_1__.registerPlugin)('photo-block-print-global-styles', { - render: function render() { - var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(''), - _useState2 = _slicedToArray(_useState, 2), - styles = _useState2[0], - setStyles = _useState2[1]; - var _useSelect2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(function (newSelect) { - return { - getGlobalStyles: newSelect(_store_global_styles__WEBPACK_IMPORTED_MODULE_6__["default"]).getGlobalStyles, - globalStyleRefresh: newSelect(_store_global_styles__WEBPACK_IMPORTED_MODULE_6__["default"]).getGlobalStyleRefresh() - }; - }), - getGlobalStyles = _useSelect2.getGlobalStyles, - globalStyleRefresh = _useSelect2.globalStyleRefresh; - (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () { - var globalStyles = getGlobalStyles(); - if (Object.keys(globalStyles).length === 0) { - return; - } - var photoStyles = ''; - var globalStylesCSS = Object.values(globalStyles).map(function (globalStyle) { - var photoAttributes = globalStyle.content.photoAttributes; - var captionAttributes = globalStyle.content.captionAttributes; - devices.forEach(function (device) { - var deviceStyles = (0,_blocks_photo_block_block_styles__WEBPACK_IMPORTED_MODULE_4__["default"])(photoAttributes, device, globalStyle.css_class, true); - deviceStyles += (0,_blocks_photo_caption_block_block_styles__WEBPACK_IMPORTED_MODULE_5__["default"])(captionAttributes, device, globalStyle.css_class, true); - switch (device) { - case 'desktop': - deviceStyles = '@media (min-width: 1025px) {' + deviceStyles + '}'; - break; - case 'tablet': - deviceStyles = '@media (min-width: 768px) and (max-width: 1024px) {' + deviceStyles + '}'; - break; - case 'mobile': - deviceStyles = '@media (max-width: 767px) {' + deviceStyles + '}'; - break; - } - photoStyles += deviceStyles; - }); - }); - setStyles(photoStyles); - }, [getGlobalStyles, globalStyleRefresh]); - - // Don't return anything if no global styles. - if ('' === styles) { - return null; - } - return /*#__PURE__*/React.createElement("style", null, styles); - } -}); -var returnBlockAttributes = function returnBlockAttributes(attributes, blockType, innerBlocks) { - var name = blockType.name; - // Get attributes from settings. - switch (name) { - case 'dlxplugins/photo-block': - // Get global style. - if ('undefined' !== typeof attributes.globalStyle && 'none' !== attributes.globalStyle && '' !== attributes.globalStyle) { - var globalStyle = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.select)(_store_global_styles__WEBPACK_IMPORTED_MODULE_6__["default"]).getGlobalStyleBySlug(attributes.globalStyle); - if (Object.keys(globalStyle).length > 0) { - // Get photo block global style attributes. - var globalStyleAttributes = _objectSpread({}, globalStyle.content.photoAttributes); - - // Ensure global styless are not applied if overriden. - if (true === attributes.imageSizeOverride) { - globalStyleAttributes.imageSize = attributes.imageSize; - } - if (true === attributes.mediaLinkOverride) { - globalStyleAttributes.mediaLinkType = attributes.mediaLinkType; - globalStyleAttributes.mediaLinkTitle = attributes.mediaLinkTitle; - globalStyleAttributes.mediaLinkUrl = attributes.mediaLinkUrl; - globalStyleAttributes.mediaLinkAnchorId = attributes.mediaLinkAnchorId; - globalStyleAttributes.mediaLinkClass = attributes.mediaLinkClass; - globalStyleAttributes.mediaLinkTitle = attributes.mediaLinkTitle; - globalStyleAttributes.mediaLinkRel = attributes.mediaLinkRel; - globalStyleAttributes.mediaLinkNewTab = attributes.mediaLinkNewTab; - globalStyleAttributes.lightboxCaption = attributes.lightboxCaption; - globalStyleAttributes.lightboxEnabled = attributes.lightboxEnabled; - globalStyleAttributes.lightboxShowCaption = attributes.lightboxShowCaption; - } - return _objectSpread(_objectSpread({}, attributes), globalStyleAttributes); - } - } - break; - case 'dlxplugins/photo-caption-block': - // Get global style. - if ('undefined' !== typeof attributes.globalStyle && 'none' !== attributes.globalStyle && '' !== attributes.globalStyle) { - var _globalStyle = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.select)(_store_global_styles__WEBPACK_IMPORTED_MODULE_6__["default"]).getGlobalStyleBySlug(attributes.globalStyle); - if (Object.keys(_globalStyle).length > 0) { - // Get photo block global style attributes. - var _globalStyleAttributes = _globalStyle.content.captionAttributes; - return _objectSpread(_objectSpread({}, attributes), _globalStyleAttributes); - } - } - break; - default: - break; - } - return attributes; -}; -(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__.addFilter)('blocks.getBlockAttributes', 'dlxplugins/photo-block', returnBlockAttributes); - -/***/ }), - -/***/ "./src/screens/Crop/index.js": -/*!***********************************!*\ - !*** ./src/screens/Crop/index.js ***! - \***********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/screens/Crop/editor.scss"); -/* harmony import */ var react_image_crop_src_ReactCrop_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-image-crop/src/ReactCrop.scss */ "./node_modules/react-image-crop/src/ReactCrop.scss"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/arrow-big-left-dash.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/check.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/lock.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/rotate-ccw.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/rotate-cw.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/loader-circle.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/save.js"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var react_image_crop__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-image-crop */ "./node_modules/react-image-crop/dist/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/* harmony import */ var _utils_SendCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../utils/SendCommand */ "./src/utils/SendCommand.js"); -/* harmony import */ var _components_Icons_AspectRatio__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../components/Icons/AspectRatio */ "./src/components/Icons/AspectRatio.js"); -/* harmony import */ var _components_ToolbarAspectRatio__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../components/ToolbarAspectRatio */ "./src/components/ToolbarAspectRatio/index.js"); -/* harmony import */ var _utils_CalculateAspectRatioFromPixels__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../utils/CalculateAspectRatioFromPixels */ "./src/utils/CalculateAspectRatioFromPixels.js"); -/* harmony import */ var _utils_CalculateDimensionsFromAspectRatio__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../utils/CalculateDimensionsFromAspectRatio */ "./src/utils/CalculateDimensionsFromAspectRatio.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - - - - - - - - - - - - - - - -var CropScreen = function CropScreen(props) { - var _fullsizePhoto$url; - var attributes = props.attributes, - setAttributes = props.setAttributes, - blockUniqueId = props.blockUniqueId; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.useDispatch)((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)), - setScreen = _useDispatch.setScreen, - setImageData = _useDispatch.setImageData, - setPhotoMode = _useDispatch.setPhotoMode, - setJustCropped = _useDispatch.setJustCropped, - setOriginalImageData = _useDispatch.setOriginalImageData, - setAspectRatio = _useDispatch.setAspectRatio, - setAspectRatioToolbarSelection = _useDispatch.setAspectRatioToolbarSelection; - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.useSelect)(function (select) { - return { - aspectRatioWidth: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)).getAspectRatioWidth(), - aspectRatioHeight: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)).getAspectRatioHeight(), - aspectRatioToolbarSelection: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)).getAspectRatioToolbarSelection(), - aspectRatioWidthPixels: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)).getAspectRatioWidthPixels(), - aspectRatioHeightPixels: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)).getAspectRatioHeightPixels(), - getAspectRatioUnit: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(blockUniqueId)).getAspectRatioUnit() - }; - }), - aspectRatioWidth = _useSelect.aspectRatioWidth, - aspectRatioHeight = _useSelect.aspectRatioHeight, - aspectRatioToolbarSelection = _useSelect.aspectRatioToolbarSelection, - aspectRatioWidthPixels = _useSelect.aspectRatioWidthPixels, - aspectRatioHeightPixels = _useSelect.aspectRatioHeightPixels, - getAspectRatioUnit = _useSelect.getAspectRatioUnit; - var _useState = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(true), - _useState2 = _slicedToArray(_useState, 2), - shouldShowLoading = _useState2[0], - setShouldShowLoading = _useState2[1]; - var _useState3 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(true), - _useState4 = _slicedToArray(_useState3, 2), - shouldFetchImage = _useState4[0], - setShouldFetchImage = _useState4[1]; - var _useState5 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)({}), - _useState6 = _slicedToArray(_useState5, 2), - fullsizePhoto = _useState6[0], - setFullsizePhoto = _useState6[1]; - var _useState7 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(null), - _useState8 = _slicedToArray(_useState7, 2), - modifiedPhoto = _useState8[0], - setModifiedPhoto = _useState8[1]; - var _useState9 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(0), - _useState10 = _slicedToArray(_useState9, 2), - rotateDegrees = _useState10[0], - setRotateDegrees = _useState10[1]; - var _useState11 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(null), - _useState12 = _slicedToArray(_useState11, 2), - crop = _useState12[0], - setCrop = _useState12[1]; - var _useState13 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(true), - _useState14 = _slicedToArray(_useState13, 2), - lockCrop = _useState14[0], - setLockCrop = _useState14[1]; - var _useState15 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState16 = _slicedToArray(_useState15, 2), - isSaving = _useState16[0], - setIsSaving = _useState16[1]; - var _useState17 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(null), - _useState18 = _slicedToArray(_useState17, 2), - cropMaxWidth = _useState18[0], - setCropMaxWidth = _useState18[1]; // Used for setting the max crop size when selecting pixel values for aspect ratio. - var _useState19 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(null), - _useState20 = _slicedToArray(_useState19, 2), - cropMaxHeight = _useState20[0], - setCropMaxHeight = _useState20[1]; // Used for setting the max crop size when selecting pixel values for aspect ratio. - var _useState21 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(null), - _useState22 = _slicedToArray(_useState21, 2), - reactCropImageRef = _useState22[0], - setReactCropImageRef = _useState22[1]; - var _useState23 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false), - _useState24 = _slicedToArray(_useState23, 2), - isDiry = _useState24[0], - setIsDirty = _useState24[1]; - var _useState25 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(aspectRatioWidth / aspectRatioHeight), - _useState26 = _slicedToArray(_useState25, 2), - cropAspectRatio = _useState26[0], - setCropAspectRatio = _useState26[1]; - var imageData = attributes.imageData, - uniqueId = attributes.uniqueId; - var url = imageData.url, - id = imageData.id, - width = imageData.width, - height = imageData.height; - - /** - * Rotate an image. - * - * @param {string} imgSrc The Image URL. - * @param {number} degrees The degrees in which to rotate the image. - * @return {Promise} A promise that resolves with the new image URL. - */ - var rotateImage = function rotateImage(imgSrc, degrees) { - return new Promise(function (resolve, reject) { - var canvas = document.createElement('canvas'); - var context = canvas.getContext('2d'); - var image = new Image(); - image.crossOrigin = 'anonymous'; - image.src = imgSrc; - image.onload = function () { - // Get canvas dimensions from image. - var radian = degrees * Math.PI / 180; - var sin = Math.sin(radian); - var cos = Math.cos(radian); - var imgWidth = Math.abs(image.width * cos) + Math.abs(image.height * sin); - var imgHeight = Math.abs(image.width * sin) + Math.abs(image.height * cos); - - // Begin to rotate. - canvas.width = imgWidth; - canvas.height = imgHeight; - context.translate(canvas.width / 2, canvas.height / 2); - context.rotate(degrees * Math.PI / 180); - context.drawImage(image, -image.width / 2, -image.height / 2); - canvas.toBlob(function (blob) { - var newImageUrl = URL.createObjectURL(blob); - resolve({ - url: newImageUrl, - width: canvas.width, - height: canvas.height - }); - }, 'image/png'); - setIsDirty(true); - }; - image.onerror = function (error) { - reject(error); - }; - }); - }; - - /** - * Return the current degree for the rotation items. - * - * @param {number} degrees The degree to add/subtract. - * @return {number} The new degree. - */ - var getDegrees = function getDegrees(degrees) { - var newDegrees = rotateDegrees + degrees; - if (newDegrees === 360) { - return 0; - } - if (newDegrees === -360) { - return 0; - } - return newDegrees; - }; - - /** - * Crop an image using the REST API. - * - * @param {Object} cropObject React crop object. - * @param {number} imageId The image ID. - * @param {number} rotate Image rotation in degrees. - * - * @return {Promise} The REST API promise. - */ - var cropImage = /*#__PURE__*/function () { - var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cropObject, imageId, rotate) { - var displayDimensionsWidth, displayDimensionsHeight, originalDimensionsWidth, originalDimensionsHeight, scaleX, scaleY, scaledCropX, scaledCropY, scaledCropWidth, scaledCropHeight; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - // Get image dimensions relative to viewport. - displayDimensionsWidth = reactCropImageRef.offsetWidth; - displayDimensionsHeight = reactCropImageRef.offsetHeight; - originalDimensionsWidth = reactCropImageRef.naturalWidth; - originalDimensionsHeight = reactCropImageRef.naturalHeight; // Get crop dimensions to send to server. - scaleX = originalDimensionsWidth / displayDimensionsWidth; - scaleY = originalDimensionsHeight / displayDimensionsHeight; // Scale crop coordinates - scaledCropX = cropObject.x * scaleX; - scaledCropY = cropObject.y * scaleY; - scaledCropWidth = cropObject.width * scaleX; - scaledCropHeight = cropObject.height * scaleY; - _context.next = 12; - return (0,_utils_SendCommand__WEBPACK_IMPORTED_MODULE_10__["default"])(photoBlock.restNonce, { - cropX: scaledCropX, - cropY: scaledCropY, - cropWidth: scaledCropWidth, - cropHeight: scaledCropHeight, - imageId: imageId, - rotateDegrees: rotate - }, "".concat(photoBlock.restUrl + '/image/crop'), 'POST'); - case 12: - return _context.abrupt("return", _context.sent); - case 13: - case "end": - return _context.stop(); - } - }, _callee); - })); - return function cropImage(_x, _x2, _x3) { - return _ref.apply(this, arguments); - }; - }(); - - /** - * Set a new center crop based on the image dimensions. - * - * @param {number} imageWidth The image width in pixels. - * @param {number} imageHeight The image height in pixels. - * @param {number} newAspectRatio The aspect ratio. - * @param {number} maximumWidth The maximum width in pixels. - * @param {number} maximumHeight The maximum height in pixels. - */ - var setCenterCrop = function setCenterCrop(imageWidth, imageHeight, newAspectRatio) { - var maximumWidth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; - var maximumHeight = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null; - var initialCropRatio = 1; - - // Get the initial crop size. - var minDimension = Math.min(imageWidth, imageHeight); - var initialCropSize = minDimension * initialCropRatio; - - // Get the crop width/height. - var cropWidth, cropHeight; - if (imageWidth < imageHeight) { - cropWidth = initialCropSize; - cropHeight = cropWidth / newAspectRatio; - } else { - cropHeight = initialCropSize; - cropWidth = cropHeight * newAspectRatio; - } - if (maximumWidth && maximumHeight) { - cropWidth = maximumWidth; - cropHeight = maximumHeight; - } - - // Check if crop width/height exceed image dimensions. - if (cropWidth > imageWidth) { - cropWidth = imageWidth; - cropHeight = cropWidth / newAspectRatio; - } - if (cropHeight > imageHeight) { - cropHeight = imageHeight; - cropWidth = cropHeight * newAspectRatio; - } - - // Calculate X/Y vars. - var x = Math.max((imageWidth - cropWidth) / 2, 0); - var y = Math.max((imageHeight - cropHeight) / 2, 0); - - // Set crop object. - var newCrop = { - aspect: cropWidth / cropHeight, - unit: 'px', - x: x, - y: y, - width: cropWidth, - height: cropHeight - }; - if (maximumWidth && maximumHeight) { - newCrop.maxWidth = maximumWidth; - newCrop.maxHeight = maximumHeight; - } - setCrop(newCrop); - }; - - /** - * Fetch the full size image for cropping. - */ - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () { - function fetchImage() { - return _fetchImage.apply(this, arguments); - } - function _fetchImage() { - _fetchImage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { - var response, data, aspectRatioWidthPixels, aspectRatioHeightPixels; - return _regeneratorRuntime().wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - _context2.next = 2; - return (0,_utils_SendCommand__WEBPACK_IMPORTED_MODULE_10__["default"])(photoBlock.restNonce, {}, "".concat(photoBlock.restUrl + '/get-image', "/id=").concat(imageData.id), 'GET'); - case 2: - response = _context2.sent; - data = response.data; - aspectRatioWidthPixels = data.width; - aspectRatioHeightPixels = data.height; - setFullsizePhoto(data); - - // Set crop value. - setShouldShowLoading(false); - case 8: - case "end": - return _context2.stop(); - } - }, _callee2); - })); - return _fetchImage.apply(this, arguments); - } - fetchImage(); - }, [shouldFetchImage]); - - /* Set Center Crop when image has finished loading */ - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () { - if (reactCropImageRef) { - // Get the current toolbar selection. - if ('original' === aspectRatioToolbarSelection) { - handleAspectRatioChange(aspectRatioWidth, aspectRatioHeight, reactCropImageRef.width, reactCropImageRef.height); - } else if ('square' === aspectRatioToolbarSelection) { - var newDimensions = (0,_utils_CalculateDimensionsFromAspectRatio__WEBPACK_IMPORTED_MODULE_14__["default"])('1:1', reactCropImageRef.width, reactCropImageRef.height); - handleAspectRatioChange(1, 1, newDimensions.width, newDimensions.height); - } else if ('custom' === aspectRatioToolbarSelection) { - // Check if we're in ratio or pixels. - if ('pixels' === getAspectRatioUnit) { - var _newDimensions = (0,_utils_CalculateDimensionsFromAspectRatio__WEBPACK_IMPORTED_MODULE_14__["default"])("".concat(aspectRatioWidthPixels, ":").concat(aspectRatioHeightPixels), reactCropImageRef.width, reactCropImageRef.height); - handleAspectRatioChange(aspectRatioWidthPixels, aspectRatioHeightPixels, _newDimensions.width, _newDimensions.height); - } else { - var _newDimensions2 = (0,_utils_CalculateDimensionsFromAspectRatio__WEBPACK_IMPORTED_MODULE_14__["default"])("".concat(aspectRatioWidth, ":").concat(aspectRatioHeight), reactCropImageRef.width, reactCropImageRef.height); - handleAspectRatioChange(aspectRatioWidth, aspectRatioHeight, _newDimensions2.width, _newDimensions2.height); - } - } else { - var _newDimensions3 = (0,_utils_CalculateDimensionsFromAspectRatio__WEBPACK_IMPORTED_MODULE_14__["default"])(aspectRatioToolbarSelection, reactCropImageRef.width, reactCropImageRef.height); - - // Aspect ratio is in format 3:2. - var newAspectSplit = aspectRatioToolbarSelection.split(':'); - handleAspectRatioChange(newAspectSplit[0], newAspectSplit[1], _newDimensions3.width, _newDimensions3.height); - } - } - }, [reactCropImageRef]); - - /** - * Create new crop object when aspect ratio changes. - * - * @param {number} newAspectRatioWidth The aspect ratio width. - * @param {number} newAspectRatioHeight The aspect ratio height. - * @param {number} maximumWidth The maximum width in pixels. - * @param {number} maximumHeight The maximum height in pixels. - */ - var handleAspectRatioChange = function handleAspectRatioChange(newAspectRatioWidth, newAspectRatioHeight) { - var maximumWidth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - var maximumHeight = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; - // Aspect ratio. - var newAspectRatio = parseInt(newAspectRatioWidth) / parseInt(newAspectRatioHeight); - if (null !== maximumWidth && null !== maximumHeight) { - newAspectRatio = maximumWidth / maximumHeight; - setCropMaxWidth(maximumWidth); - setCropMaxHeight(maximumHeight); - } else { - setCropMaxWidth(null); - setCropMaxHeight(null); - } - setCropAspectRatio(newAspectRatio); - setCenterCrop(reactCropImageRef.offsetWidth, reactCropImageRef === null || reactCropImageRef === void 0 ? void 0 : reactCropImageRef.offsetHeight, newAspectRatio, maximumWidth, maximumHeight); - setIsDirty(true); - }; - - // Set the local inspector controls. - var localInspectorControls = /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.InspectorControls, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.PanelBody, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Crop Settings', 'photo-block') - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.PanelRow, null, "Crop options here"))); - var localToolbar = /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.BlockControls, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToolbarButton, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Back', 'photo-block'), - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_15__["default"], null), - variant: "secondary", - onClick: function onClick() { - setScreen('edit'); - }, - className: "dlx-photo-block__toolbar-back-button" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Back', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToolbarGroup, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToolbarDropdownMenu, { - icon: /*#__PURE__*/React.createElement(_components_Icons_AspectRatio__WEBPACK_IMPORTED_MODULE_11__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Ratio', 'photo-block') + ' ' + aspectRatioToolbarSelection, - className: "dlx-photo-block__aspect-ratio-dropdown" - }, function (_ref2) { - var onClose = _ref2.onClose; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.MenuGroup, { - className: "dlx-photo-block__aspect-ratio-group" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.MenuItem, { - icon: 'original' === aspectRatioToolbarSelection ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_16__["default"], null) : null, - isSelected: 'original' === aspectRatioToolbarSelection, - onClick: function onClick() { - setAspectRatioToolbarSelection('original'); - handleAspectRatioChange(fullsizePhoto === null || fullsizePhoto === void 0 ? void 0 : fullsizePhoto.width, fullsizePhoto === null || fullsizePhoto === void 0 ? void 0 : fullsizePhoto.height); - onClose(); - }, - className: "is-active" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Original', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.MenuItem, { - icon: 'square' === aspectRatioToolbarSelection ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_16__["default"], null) : null, - isSelected: 'square' === aspectRatioToolbarSelection, - onClick: function onClick() { - setAspectRatioToolbarSelection('square'); - handleAspectRatioChange(1, 1); - onClose(); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Square', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.MenuItem, { - icon: 'custom' === aspectRatioToolbarSelection ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_16__["default"], null) : null, - isSelected: 'custom' === aspectRatioToolbarSelection, - onClick: function onClick() { - setAspectRatioToolbarSelection('custom'); - onClose(); - setIsDirty(true); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Custom', 'photo-block'))), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.MenuGroup, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Landscape', 'photo-block'), - className: "dlx-photo-block__aspect-ratio-group" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.MenuItem, { - icon: '16:10' === aspectRatioToolbarSelection ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_16__["default"], null) : null, - isSelected: '16:10' === aspectRatioToolbarSelection, - onClick: function onClick() { - setAspectRatioToolbarSelection('16:10'); - handleAspectRatioChange(16, 10); - onClose(); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('16:10', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.MenuItem, { - icon: '16:9' === aspectRatioToolbarSelection ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_16__["default"], null) : null, - isSelected: '16:9' === aspectRatioToolbarSelection, - onClick: function onClick() { - setAspectRatioToolbarSelection('16:9'); - handleAspectRatioChange(16, 9); - onClose(); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('16:9', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.MenuItem, { - icon: '4:3' === aspectRatioToolbarSelection ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_16__["default"], null) : null, - isSelected: '4:3' === aspectRatioToolbarSelection, - onClick: function onClick() { - setAspectRatioToolbarSelection('4:3'); - handleAspectRatioChange(4, 3); - onClose(); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('4:3', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.MenuItem, { - icon: '3:2' === aspectRatioToolbarSelection ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_16__["default"], null) : null, - isSelected: '3:2' === aspectRatioToolbarSelection, - onClick: function onClick() { - setAspectRatioToolbarSelection('3:2'); - handleAspectRatioChange(3, 2); - onClose(); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('3:2', 'photo-block'))), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.MenuGroup, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Portrait', 'photo-block'), - className: "dlx-photo-block__aspect-ratio-group" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.MenuItem, { - icon: '10:16' === aspectRatioToolbarSelection ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_16__["default"], null) : null, - isSelected: '10:16' === aspectRatioToolbarSelection, - onClick: function onClick() { - setAspectRatioToolbarSelection('10:16'); - handleAspectRatioChange(10, 16); - onClose(); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('10:16', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.MenuItem, { - icon: '9:16' === aspectRatioToolbarSelection ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_16__["default"], null) : null, - isSelected: '9:16' === aspectRatioToolbarSelection, - onClick: function onClick() { - setAspectRatioToolbarSelection('9:16'); - handleAspectRatioChange(9, 16); - onClose(); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('9:16', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.MenuItem, { - icon: '3:4' === aspectRatioToolbarSelection ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_16__["default"], null) : null, - isSelected: '3:4' === aspectRatioToolbarSelection, - onClick: function onClick() { - setAspectRatioToolbarSelection('3:4'); - handleAspectRatioChange(3, 4); - onClose(); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('3:4', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.MenuItem, { - icon: '2:3' === aspectRatioToolbarSelection ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_16__["default"], null) : null, - isSelected: '2:3' === aspectRatioToolbarSelection, - onClick: function onClick() { - setAspectRatioToolbarSelection('2:3'); - handleAspectRatioChange(2, 3); - onClose(); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('2:3', 'photo-block')))); - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToolbarButton, { - className: "dlx-photo-block__lock-crop-button", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_17__["default"], null), - label: lockCrop ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('UnLock Aspect Ratio', 'photo-block') : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Lock Aspect Ratio', 'photo-block'), - isActive: lockCrop, - onClick: function onClick() { - setLockCrop(!lockCrop); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToolbarButton, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_18__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Rotate Left', 'photo-block'), - onClick: function onClick() { - var degrees = getDegrees(-90); - setRotateDegrees(degrees); - rotateImage(imageData.url, degrees).then(function (newImage) { - setFullsizePhoto(newImage); - setModifiedPhoto(newImage); - }); - } - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToolbarButton, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_19__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Rotate Right', 'photo-block'), - onClick: function onClick() { - var degrees = getDegrees(90); - setRotateDegrees(degrees); - rotateImage(imageData.url, degrees).then(function (newImage) { - setFullsizePhoto(newImage); - setModifiedPhoto(newImage); - }); - } - })), 'custom' === aspectRatioToolbarSelection && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToolbarGroup, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToolbarItem, { - as: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function (args, ref) { - return /*#__PURE__*/React.createElement(_components_ToolbarAspectRatio__WEBPACK_IMPORTED_MODULE_12__["default"], { - forwardRef: ref, - onChange: function onChange(values) { - handleAspectRatioChange(values.width, values.height); - }, - fullsizePhoto: fullsizePhoto, - uniqueId: uniqueId - }); - }) - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToolbarGroup, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToolbarButton, { - icon: isSaving ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_20__["default"], null) : /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_21__["default"], null), - className: classnames__WEBPACK_IMPORTED_MODULE_8___default()('dlx-photo-block__save-button', { - 'is-saving': isSaving - }), - variant: "primary", - disabled: !isDiry, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Apply Crop', 'photo-block'), - onClick: function onClick() { - if (isSaving) { - return; - } - setIsSaving(true); - setOriginalImageData(imageData); // Save original image data. - - var croppedImage = cropImage(crop, imageData.id, rotateDegrees); - croppedImage.then(function (imageResponse) { - var data = imageResponse.data; - if (data.success) { - setImageData(data.data.attachment); - setAttributes({ - photoMode: 'photo', - imageData: data.data.attachment - }); - setJustCropped(true); - setPhotoMode('photo'); - setScreen('edit'); - } else { - // todo: error handling. - } - })["catch"](function (error) {}).then(function () { - setIsSaving(false); - }); - } - }, isSaving ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Saving…', 'photo-block') : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Apply Crop', 'photo-block')))); - return /*#__PURE__*/React.createElement(React.Fragment, null, localInspectorControls, localToolbar, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit" - }, shouldShowLoading && /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit-spinner", - style: { - minWidth: width, - minHeight: height, - maxWidth: '100%', - maxHeight: '100%' - } - }, /*#__PURE__*/React.createElement("h3", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Loading Full Size Image', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Spinner, null)), !shouldShowLoading && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(react_image_crop__WEBPACK_IMPORTED_MODULE_7__["default"], { - aspect: lockCrop ? cropAspectRatio : null, - crop: crop, - onChange: function onChange(newCrop) { - setCrop(newCrop); - }, - ruleOfThirds: true, - maxWidth: cropMaxWidth !== null && cropMaxWidth !== void 0 ? cropMaxWidth : undefined, - maxHeight: cropMaxHeight !== null && cropMaxHeight !== void 0 ? cropMaxHeight : undefined - }, /*#__PURE__*/React.createElement("img", { - src: (_fullsizePhoto$url = fullsizePhoto === null || fullsizePhoto === void 0 ? void 0 : fullsizePhoto.url) !== null && _fullsizePhoto$url !== void 0 ? _fullsizePhoto$url : '', - width: fullsizePhoto === null || fullsizePhoto === void 0 ? void 0 : fullsizePhoto.width, - height: fullsizePhoto === null || fullsizePhoto === void 0 ? void 0 : fullsizePhoto.height, - style: { - maxWidth: '100%', - height: 'auto' - }, - alt: "", - ref: setReactCropImageRef - }))))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CropScreen); - -/***/ }), - -/***/ "./src/screens/Edit/index.js": -/*!***********************************!*\ - !*** ./src/screens/Edit/index.js ***! - \***********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/screens/Edit/editor.scss"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose"); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/image.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/undo-2.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/crop.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/accessibility.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/link.js"); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/hooks */ "@wordpress/hooks"); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/* harmony import */ var _utils_SendCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../utils/SendCommand */ "./src/utils/SendCommand.js"); -/* harmony import */ var _components_MediaLink__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../components/MediaLink */ "./src/components/MediaLink/index.js"); -/* harmony import */ var _hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../hooks/useDeviceType */ "./src/hooks/useDeviceType.js"); -/* harmony import */ var _components_PanelBody__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../components/PanelBody */ "./src/components/PanelBody/index.js"); -/* harmony import */ var _components_SidebarImageInspectorControl__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../components/SidebarImageInspectorControl */ "./src/components/SidebarImageInspectorControl/index.js"); -/* harmony import */ var _components_SidebarImageAdvancedInspectorControl__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../components/SidebarImageAdvancedInspectorControl */ "./src/components/SidebarImageAdvancedInspectorControl/index.js"); -/* harmony import */ var _blocks_photo_block_block_styles__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../blocks/photo-block/block-styles */ "./src/blocks/photo-block/block-styles.js"); -/* harmony import */ var _components_GlobalStylesPicker__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../components/GlobalStylesPicker */ "./src/components/GlobalStylesPicker/index.js"); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../store/global-styles */ "./src/store/global-styles.js"); -/* harmony import */ var _components_AlignmentToolbar__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../components/AlignmentToolbar */ "./src/components/AlignmentToolbar/index.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - - - - - - - - - - - - - - - - - - - - - - -var EditScreen = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) { - var setAttributes = props.setAttributes, - innerBlockProps = props.innerBlockProps, - clientId = props.clientId, - blockUniqueId = props.blockUniqueId; - var attributes = props.attributes || {}; - - // Apply filters to attributes. - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - var newAttributes = (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_8__.applyFilters)('dlx_photo_block_attributes', props.attributes, props.attributes.globalStyle, clientId, 'photo'); - setAttributes(_objectSpread(_objectSpread({}, props.attributes), newAttributes)); - }, []); - var uniqueId = attributes.uniqueId, - imageSize = attributes.imageSize, - cssGramFilter = attributes.cssGramFilter, - globalStyle = attributes.globalStyle; - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.useSelect)(function (newSelect) { - var maybeGlobalStyle = newSelect(_store_global_styles__WEBPACK_IMPORTED_MODULE_19__["default"]).getGlobalStyleBySlug(globalStyle); - if (Object.keys(maybeGlobalStyle).length === 0) { - return ''; - } - return { - globalStyleCSSClassName: maybeGlobalStyle.css_class - }; - }), - globalStyleCSSClassName = _useSelect.globalStyleCSSClassName; - var _useState = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(true), - _useState2 = _slicedToArray(_useState, 2), - imageLoading = _useState2[0], - setImageLoading = _useState2[1]; - var _useState3 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState4 = _slicedToArray(_useState3, 2), - a11yButton = _useState4[0], - setA11yButton = _useState4[1]; - var _useState5 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState6 = _slicedToArray(_useState5, 2), - a11yPopover = _useState6[0], - setA11yPopover = _useState6[1]; - var _useState7 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)('settings'), - _useState8 = _slicedToArray(_useState7, 2), - inspectorTab = _useState8[0], - setInspectorTab = _useState8[1]; // Can be settings|styles. - var _useState9 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState10 = _slicedToArray(_useState9, 2), - imageSizeLoading = _useState10[0], - setImageSizeLoading = _useState10[1]; - var _useState11 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState12 = _slicedToArray(_useState11, 2), - mediaLinkPopover = _useState12[0], - setMediaLinkPopover = _useState12[1]; - var _useState13 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState14 = _slicedToArray(_useState13, 2), - mediaLinkRef = _useState14[0], - setMediaLinkRef = _useState14[1]; - var _useState15 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState16 = _slicedToArray(_useState15, 2), - isSavingAlt = _useState16[0], - setIsSavingAlt = _useState16[1]; - var _useState17 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState18 = _slicedToArray(_useState17, 2), - isSavingTitle = _useState18[0], - setIsSavingTitle = _useState18[1]; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.useDispatch)((0,_store__WEBPACK_IMPORTED_MODULE_10__.blockStore)(blockUniqueId)), - setScreen = _useDispatch.setScreen, - setImageData = _useDispatch.setImageData, - setJustCropped = _useDispatch.setJustCropped; - var _useDispatch2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.useDispatch)('core/notices'), - createSuccessNotice = _useDispatch2.createSuccessNotice, - createInfoNotice = _useDispatch2.createInfoNotice; - - // Get current block data. - var _useSelect2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.useSelect)(function (select) { - return { - imageData: select((0,_store__WEBPACK_IMPORTED_MODULE_10__.blockStore)(blockUniqueId)).getImageData(), - captionPosition: select((0,_store__WEBPACK_IMPORTED_MODULE_10__.blockStore)(blockUniqueId)).getCaptionPosition(), - photoMode: select((0,_store__WEBPACK_IMPORTED_MODULE_10__.blockStore)(blockUniqueId)).getPhotoMode(), - originalImageData: select((0,_store__WEBPACK_IMPORTED_MODULE_10__.blockStore)(blockUniqueId)).getOriginalImageData(), - isJustCropped: select((0,_store__WEBPACK_IMPORTED_MODULE_10__.blockStore)(blockUniqueId)).getJustCropped() - }; - }), - imageData = _useSelect2.imageData, - captionPosition = _useSelect2.captionPosition, - photoMode = _useSelect2.photoMode, - originalImageData = _useSelect2.originalImageData, - isJustCropped = _useSelect2.isJustCropped; - - // Get global style data. - var _useSelect3 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.useSelect)(function (select) { - return { - hasGlobalStyle: select(_store_global_styles__WEBPACK_IMPORTED_MODULE_19__["default"]).hasGlobalStyle - }; - }), - hasGlobalStyle = _useSelect3.hasGlobalStyle; - var url = imageData.url, - id = imageData.id, - width = imageData.width, - height = imageData.height; - var _useDispatch3 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.useDispatch)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.store), - insertBlock = _useDispatch3.insertBlock, - updateBlockAttributes = _useDispatch3.updateBlockAttributes; // For setting the preset defaults. - - var _useDeviceType = (0,_hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_13__["default"])('Desktop'), - _useDeviceType2 = _slicedToArray(_useDeviceType, 2), - deviceType = _useDeviceType2[0], - setDeviceType = _useDeviceType2[1]; - - // Setup useEffect to update image dimensions if empty. - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - var _attributes$imageData; - var imageUrl = ((_attributes$imageData = attributes.imageData) === null || _attributes$imageData === void 0 ? void 0 : _attributes$imageData.url) || ''; - if ('' !== imageUrl) { - setImageData(attributes.imageData); - setImageLoading(false); - } - }, []); - - /** - * Get image whenever size changes. - */ - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - if ('photo' === photoMode) { - getImageFromSize(imageSize); - } - }, [imageSize]); - - /** - * Retrieve an image based on size from REST API. - * - * @param {string} size Image size. - */ - var getImageFromSize = /*#__PURE__*/function () { - var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(size) { - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - setImageSizeLoading(true); - _context.next = 3; - return (0,_utils_SendCommand__WEBPACK_IMPORTED_MODULE_11__["default"])(photoBlock.restNonce, {}, "".concat(photoBlock.restUrl + '/get-image-by-size', "/id=").concat(imageData.id, "/size=").concat(size), 'GET').then(function (response) { - setImageData(_objectSpread(_objectSpread({}, imageData), response.data)); - setAttributes({ - imageData: _objectSpread(_objectSpread({}, imageData), response.data) - }); - })["catch"](function (error) { - // todo: error checking/display. - console.error(error); - }).then(function () { - setImageSizeLoading(false); - }); - case 3: - case "end": - return _context.stop(); - } - }, _callee); - })); - return function getImageFromSize(_x) { - return _ref.apply(this, arguments); - }; - }(); - - /** - * Handle changes to the alt text. - * - * @param {string} altText The alt text. - */ - var handleAltChange = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useCallback)((0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__.debounce)( /*#__PURE__*/function () { - var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(altText) { - return _regeneratorRuntime().wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - if (!('manual' === photoMode || 'url' === photoMode)) { - _context2.next = 2; - break; - } - return _context2.abrupt("return"); - case 2: - // Set snackbar notice. - createInfoNotice((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Saving alt text…', 'photo-block'), { - type: 'snackbar' - }); - - // Commence saving. - setIsSavingAlt(true); - _context2.next = 6; - return (0,_utils_SendCommand__WEBPACK_IMPORTED_MODULE_11__["default"])(photoBlock.restNonce, { - imageId: imageData.id, - altText: altText - }, "".concat(photoBlock.restUrl + '/image/save-alt'), 'POST').then(function (response) { - createSuccessNotice((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Alt text saved.', 'photo-block'), { - type: 'snackbar' - }); - })["catch"](function (error) { - // todo: error checking/display. - console.error(error); - }).then(function () { - setIsSavingAlt(false); - }); - case 6: - case "end": - return _context2.stop(); - } - }, _callee2); - })); - return function (_x2) { - return _ref2.apply(this, arguments); - }; - }(), 1000), []); - - /** - * Handle changes to the title text. - * - * @param {string} titleText The title text. - */ - var handleTitleChange = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useCallback)((0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__.debounce)( /*#__PURE__*/function () { - var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(titleText) { - return _regeneratorRuntime().wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - if (!('manual' === photoMode || 'url' === photoMode)) { - _context3.next = 2; - break; - } - return _context3.abrupt("return"); - case 2: - // Set snackbar notice. - createInfoNotice((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Saving title text…', 'photo-block'), { - type: 'snackbar' - }); - - // Commence saving. - setIsSavingTitle(true); - _context3.next = 6; - return (0,_utils_SendCommand__WEBPACK_IMPORTED_MODULE_11__["default"])(photoBlock.restNonce, { - imageId: imageData.id, - titleText: titleText - }, "".concat(photoBlock.restUrl + '/image/save-title'), 'POST').then(function (response) { - createSuccessNotice((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Title text saved.', 'photo-block'), { - type: 'snackbar' - }); - })["catch"](function (error) { - // todo: error checking/display. - console.error(error); - }).then(function () { - setIsSavingTitle(false); - }); - case 6: - case "end": - return _context3.stop(); - } - }, _callee3); - })); - return function (_x3) { - return _ref3.apply(this, arguments); - }; - }(), 1500), []); - - // Image Sizes. - var imageSizeOptions = []; - for (var key in photoBlock.imageSizes) { - var size = photoBlock.imageSizes[key]; - imageSizeOptions.push({ - value: key, - label: size.label - }); - } - - // Set settings inspector Controls. - var settingsInspectorControls = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components_GlobalStylesPicker__WEBPACK_IMPORTED_MODULE_18__["default"], props), /*#__PURE__*/React.createElement(_components_PanelBody__WEBPACK_IMPORTED_MODULE_14__["default"], { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Photo Settings', 'photo-block'), - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_21__["default"], null), - className: "photo-block__inspector-panel", - id: "photo-block__photo-settings", - uniqueId: uniqueId, - initialOpen: true, - scrollAfterOpen: false - }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Photo Title', 'photo-block'), - value: attributes.imageData.title, - onChange: function onChange(title) { - setAttributes({ - imageData: _objectSpread(_objectSpread({}, imageData), {}, { - title: title - }) - }); - setImageData(_objectSpread(_objectSpread({}, imageData), {}, { - title: title - })); - handleTitleChange(title); - }, - className: classnames__WEBPACK_IMPORTED_MODULE_9___default()('photo-block__title-text', { - 'is-saving': isSavingTitle - }), - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Please enter a title for this photo.', 'photo-block') - }), isSavingTitle && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "photo-block__text-saving" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Spinner, null), " ", (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Saving title text…', 'photo-block')))), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextareaControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Alt Text', 'photo-block'), - value: attributes.imageData.alt, - onChange: function onChange(alt) { - setAttributes({ - imageData: _objectSpread(_objectSpread({}, imageData), {}, { - alt: alt - }) - }); - setImageData(_objectSpread(_objectSpread({}, imageData), {}, { - alt: alt - })); - handleAltChange(alt); - }, - className: classnames__WEBPACK_IMPORTED_MODULE_9___default()('photo-block__alt-text', { - 'is-saving': isSavingAlt - }), - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Please describe this photo.', 'photo-block'), - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Alt text provides a description of the photo for screen readers and search engines.', 'photo-block') - }), isSavingAlt && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "photo-block__text-saving" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Spinner, null), " ", (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Saving alt text…', 'photo-block')))), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelRow, null, /*#__PURE__*/React.createElement("div", { - className: "photo-block__image-size-control" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Image Size', 'photo-block'), - value: imageSize, - onChange: function onChange(size) { - if (hasGlobalStyle(globalStyle)) { - setAttributes({ - imageSizeOverride: true - }); - } - setAttributes({ - imageSize: size - }); - getImageFromSize(size); - }, - options: imageSizeOptions, - disabled: 'photo' !== photoMode - }), imageSizeLoading && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "photo-block__text-saving" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Spinner, null), " ", (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Loading image size…', 'photo-block'))))))); - var interfaceTabs = /*#__PURE__*/React.createElement(React.Fragment, null, settingsInspectorControls, /*#__PURE__*/React.createElement(_components_SidebarImageInspectorControl__WEBPACK_IMPORTED_MODULE_15__["default"], { - attributes: attributes, - setAttributes: setAttributes, - blockUniqueId: blockUniqueId, - globalStyle: globalStyle - })); - - // Set the local inspector controls. - var localInspectorControls = /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InspectorControls, null, interfaceTabs); - - // Set the advanced inspector controls. - var advancedInspectorControls = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components_SidebarImageAdvancedInspectorControl__WEBPACK_IMPORTED_MODULE_16__["default"], _extends({}, props, { - globalStyle: globalStyle - }))); - var localToolbar = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.BlockControls, null, !hasGlobalStyle(globalStyle) && /*#__PURE__*/React.createElement(_components_AlignmentToolbar__WEBPACK_IMPORTED_MODULE_20__["default"], props), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToolbarGroup, null, isJustCropped && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToolbarButton, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_22__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Undo Crop', 'photo-block'), - onClick: function onClick() { - setAttributes({ - imageData: originalImageData - }); - setImageData(originalImageData); - setScreen('edit'); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Undo Crop', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToolbarButton, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_23__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Crop', 'photo-block'), - onClick: function onClick() { - setJustCropped(false); - setScreen('crop'); - }, - disabled: 'photo' !== photoMode - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Crop', 'photo-block'))), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToolbarGroup, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToolbarButton, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_21__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Replace Photo', 'photo-block'), - onClick: function onClick() { - setScreen('initial'); - setJustCropped(false); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Replace', 'photo-block'))), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToolbarGroup, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToolbarButton, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_24__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Set Accessibility Options', 'photo-block'), - onClick: function onClick() { - setA11yPopover(!a11yPopover); - }, - ref: setA11yButton - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToolbarButton, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_25__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Set Link Options', 'photo-block'), - onClick: function onClick() { - setMediaLinkPopover(!mediaLinkPopover); - }, - ref: setMediaLinkRef - }))), mediaLinkPopover && /*#__PURE__*/React.createElement(_components_MediaLink__WEBPACK_IMPORTED_MODULE_12__["default"], { - attributes: attributes, - setAttributes: setAttributes, - anchorRef: mediaLinkRef, - blockUniqueId: blockUniqueId, - onClose: function onClose() { - setMediaLinkPopover(false); - } - }), a11yPopover && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Popover, { - position: "bottom center", - anchor: a11yButton, - onClose: function onClose() { - setA11yPopover(false); - } - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__a11y-popover" - }, /*#__PURE__*/React.createElement("h3", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Accessibility Options', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Photo Title', 'photo-block'), - value: attributes.imageData.title, - onChange: function onChange(title) { - setAttributes({ - imageData: _objectSpread(_objectSpread({}, imageData), {}, { - title: title - }) - }); - setImageData(_objectSpread(_objectSpread({}, imageData), {}, { - title: title - })); - handleTitleChange(title); - }, - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Please enter a title for this photo.', 'photo-block'), - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('The title is used as a tooltip when hovering over the image.', 'photo-block') - }), isSavingTitle && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "photo-block__text-saving" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Spinner, null), " ", (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Saving title text…', 'photo-block'))), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextareaControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Alt Text', 'photo-block'), - value: attributes.imageData.alt, - onChange: function onChange(alt) { - setAttributes({ - imageData: _objectSpread(_objectSpread({}, imageData), {}, { - alt: alt - }) - }); - setImageData(_objectSpread(_objectSpread({}, imageData), {}, { - alt: alt - })); - handleAltChange(alt); - }, - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Please describe this image.', 'photo-block'), - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Alt text provides a description of the image for screen readers and search engines.', 'photo-block') - }), isSavingAlt && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "photo-block__text-saving" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Spinner, null), " ", (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Saving alt text…', 'photo-block')))))); - var styles = ''; - if (!hasGlobalStyle(globalStyle)) { - styles = (0,_blocks_photo_block_block_styles__WEBPACK_IMPORTED_MODULE_17__["default"])(attributes, deviceType, uniqueId); - } - var photoImg = /*#__PURE__*/React.createElement("img", { - src: url, - className: classnames__WEBPACK_IMPORTED_MODULE_9___default()("photo-block-".concat(cssGramFilter, " dlx-photo-block__image"), { - 'has-css-gram': cssGramFilter !== 'none' - }), - alt: "", - onLoad: function onLoad() { - setImageLoading(false); - }, - ref: ref, - style: { - maxWidth: "100%", - height: 'auto' - }, - width: imageData.width, - height: imageData.height - }); - return /*#__PURE__*/React.createElement(React.Fragment, null, localInspectorControls, localToolbar, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InspectorAdvancedControls, null, advancedInspectorControls), /*#__PURE__*/React.createElement("style", null, styles), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit" - }, imageLoading && /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit-spinner", - style: { - minWidth: width, - minHeight: height, - maxWidth: '100%', - maxHeight: '100%' - } - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Spinner, null)), /*#__PURE__*/React.createElement("figure", { - className: "dlx-photo-block__screen-edit-image-wrapper dlx-photo-block__figure ".concat(globalStyleCSSClassName) - }, 'top' === captionPosition && /*#__PURE__*/React.createElement("div", _extends({ - className: "dlx-photo-block__screen-edit-caption dlx-photo-block__caption" - }, innerBlockProps)), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit-image dlx-photo-block__image-wrapper" - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit-image-inner" - }, photoImg, 'overlay' === captionPosition && /*#__PURE__*/React.createElement("div", _extends({ - className: "dlx-photo-block__screen-edit-caption dlx-photo-block__caption dlx-photo-block__caption--overlay" - }, innerBlockProps)))), 'bottom' === captionPosition && /*#__PURE__*/React.createElement("div", _extends({ - className: "dlx-photo-block__screen-edit-caption dlx-photo-block__caption" - }, innerBlockProps))))); -}); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EditScreen); - -/***/ }), - -/***/ "./src/screens/FeaturedImageEdit/index.js": -/*!************************************************!*\ - !*** ./src/screens/FeaturedImageEdit/index.js ***! - \************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/screens/FeaturedImageEdit/editor.scss"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/image.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/link.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var hex_to_rgba__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! hex-to-rgba */ "./node_modules/hex-to-rgba/build/index.js"); -/* harmony import */ var hex_to_rgba__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(hex_to_rgba__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _utils_SendCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../utils/SendCommand */ "./src/utils/SendCommand.js"); -/* harmony import */ var _hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../hooks/useDeviceType */ "./src/hooks/useDeviceType.js"); -/* harmony import */ var _components_PanelBody__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../components/PanelBody */ "./src/components/PanelBody/index.js"); -/* harmony import */ var _components_SidebarImageInspectorControl__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../components/SidebarImageInspectorControl */ "./src/components/SidebarImageInspectorControl/index.js"); -/* harmony import */ var _components_SidebarImageAdvancedInspectorControl__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../components/SidebarImageAdvancedInspectorControl */ "./src/components/SidebarImageAdvancedInspectorControl/index.js"); -/* harmony import */ var _components_GlobalStyles__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../components/GlobalStyles */ "./src/components/GlobalStyles/index.js"); -/* harmony import */ var _blocks_photo_block_block_styles__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../blocks/photo-block/block-styles */ "./src/blocks/photo-block/block-styles.js"); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/* harmony import */ var _components_Icons_PhotoBlockIcon__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../components/Icons/PhotoBlockIcon */ "./src/components/Icons/PhotoBlockIcon.js"); -/* harmony import */ var _components_GlobalStylesPicker__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../components/GlobalStylesPicker */ "./src/components/GlobalStylesPicker/index.js"); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../store/global-styles */ "./src/store/global-styles.js"); -/* harmony import */ var _components_AlignmentToolbar__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../components/AlignmentToolbar */ "./src/components/AlignmentToolbar/index.js"); -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - - - - - - - - - - - - - - - - - - - - -var dataImages = []; - -/** - * Image size. - */ -var imageSizeOptions = []; -for (var key in photoBlock.imageSizes) { - var size = photoBlock.imageSizes[key]; - imageSizeOptions.push({ - value: key, - label: size.label - }); -} -var FeaturedImageScreen = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) { - var attributes = props.attributes, - setAttributes = props.setAttributes, - innerBlockProps = props.innerBlockProps, - context = props.context, - blockUniqueId = props.blockUniqueId, - clientId = props.clientId; - var postId = context.postId; - var _useState = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState2 = _slicedToArray(_useState, 2), - mediaLinkPopover = _useState2[0], - setMediaLinkPopover = _useState2[1]; - var _useState3 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState4 = _slicedToArray(_useState3, 2), - mediaLinkRef = _useState4[0], - setMediaLinkRef = _useState4[1]; - var _useState5 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(true), - _useState6 = _slicedToArray(_useState5, 2), - imageLoading = _useState6[0], - setImageLoading = _useState6[1]; - var _useState7 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState8 = _slicedToArray(_useState7, 2), - hasImage = _useState8[0], - setHasImage = _useState8[1]; - var uniqueId = attributes.uniqueId, - dataFallbackImage = attributes.dataFallbackImage, - dataHasFallbackImage = attributes.dataHasFallbackImage, - dataFallbackImageSize = attributes.dataFallbackImageSize, - dataMediaLinkSource = attributes.dataMediaLinkSource, - dataMediaLinkNewTab = attributes.dataMediaLinkNewTab, - imageSize = attributes.imageSize, - photoOpacity = attributes.photoOpacity, - photoBlur = attributes.photoBlur, - photoDropShadow = attributes.photoDropShadow, - photoBackgroundColor = attributes.photoBackgroundColor, - cssGramFilter = attributes.cssGramFilter, - lightboxEnabled = attributes.lightboxEnabled, - lightboxShowCaption = attributes.lightboxShowCaption; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_7__.useDispatch)((0,_store__WEBPACK_IMPORTED_MODULE_15__.blockStore)(blockUniqueId)), - setImageData = _useDispatch.setImageData, - setScreen = _useDispatch.setScreen; - - // Get current block data. - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_7__.useSelect)(function (select) { - return { - imageData: select((0,_store__WEBPACK_IMPORTED_MODULE_15__.blockStore)(blockUniqueId)).getImageData(), - captionPosition: select((0,_store__WEBPACK_IMPORTED_MODULE_15__.blockStore)(blockUniqueId)).getCaptionPosition() - }; - }), - captionPosition = _useSelect.captionPosition; - var _useSelect2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_7__.useSelect)(function (select) { - return { - hasGlobalStyle: select(_store_global_styles__WEBPACK_IMPORTED_MODULE_18__["default"]).hasGlobalStyle - }; - }), - hasGlobalStyle = _useSelect2.hasGlobalStyle; - var _useDeviceType = (0,_hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_9__["default"])('Desktop'), - _useDeviceType2 = _slicedToArray(_useDeviceType, 2), - deviceType = _useDeviceType2[0], - setDeviceType = _useDeviceType2[1]; - - /** - * Get the image from REST. - */ - var getImage = function getImage() { - setImageLoading(true); - (0,_utils_SendCommand__WEBPACK_IMPORTED_MODULE_8__["default"])(photoBlock.restNonce, { - postId: postId, - dataImageSize: imageSize, - dataFallbackImage: dataFallbackImage, - dataHasFallbackImage: dataHasFallbackImage, - dataFallbackImageSize: dataFallbackImageSize - }, "".concat(photoBlock.restUrl + '/get-featured-image-by-post-id'), 'POST').then(function (response) { - var data = response.data; - - // Check if data is string or object. - if ('string' === typeof data) { - if ('' === data) { - // No image. - setHasImage(false); - return; - } - } - - // If object, set preview image. - if (data.url) { - setHasImage(true); - dataImages[postId] = data; - } - })["catch"](function (error) { - // todo: error checking/display. - }).then(function () { - setImageLoading(false); - }); - }; - - /** - * Set up effect for loading the image initially using data. - */ - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - // Post ID may not be valid when loaded in. - if (0 === postId) { - return; - } - // Check for array key in stored data. - if ('undefined' !== dataImages[postId] && 'object' === _typeof(dataImages[postId])) { - setHasImage(true); - setImageLoading(false); - return; - } - setImageLoading(true); - getImage(); - }, [postId]); - - /** - * Refresh the image when the image size changes or fallback attributes change. - */ - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - if (!imageLoading) { - getImage(); - } - }, [imageSize, dataFallbackImage, dataFallbackImageSize, dataHasFallbackImage]); - - // Set settings inspector Controls. - var settingsInspectorControls = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components_GlobalStylesPicker__WEBPACK_IMPORTED_MODULE_17__["default"], props), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components_PanelBody__WEBPACK_IMPORTED_MODULE_10__["default"], { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Photo Settings', 'photo-block'), - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_20__["default"], null), - className: "photo-block__inspector-panel", - id: "photo-block__photo-settings", - uniqueId: uniqueId, - initialOpen: true, - scrollAfterOpen: false - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Image Size', 'photo-block'), - value: imageSize, - onChange: function onChange(size) { - if (hasGlobalStyle(attributes.globalStyle)) { - setAttributes({ - imageSizeOverride: true - }); - } - setAttributes({ - imageSize: size - }); - - // Also set fallback image size. - setAttributes({ - dataFallbackImageSize: size - }); - }, - options: imageSizeOptions - }))), !hasGlobalStyle(attributes.globalStyle) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_20__["default"], null), - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Fallback Image', 'photo-block'), - initialOpen: true, - className: "photo-block__inspector-panel" - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__data-row" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Enable a Fallback Image', 'photo-block'), - checked: dataHasFallbackImage, - onChange: function onChange(value) { - setAttributes({ - dataHasFallbackImage: value - }); - } - })), dataHasFallbackImage && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__data-row" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Select the Fallback Image Size', 'photo-block'), - value: dataFallbackImageSize, - onChange: function onChange(size) { - setAttributes({ - dataFallbackImageSize: size - }); - }, - options: imageSizeOptions - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__data-row" - }, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.MediaUploadCheck, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.MediaUpload, { - allowedTypes: "image", - mode: "browse", - multiple: false, - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Please select a Fallback Image', 'photo-block'), - render: function render(_ref) { - var open = _ref.open; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { - variant: "secondary", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_20__["default"], null), - onClick: function onClick() { - open(); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Set Fallback Image', 'photo-block')); - }, - onSelect: function onSelect(media) { - var _media$sizes$large$ur, _media$sizes, _media$sizes$large, _media$sizes$large$wi, _media$sizes2, _media$sizes2$large, _media$sizes$large$he, _media$sizes3, _media$sizes3$large; - var selectedMedia = { - id: media.id, - url: (_media$sizes$large$ur = (_media$sizes = media.sizes) === null || _media$sizes === void 0 ? void 0 : (_media$sizes$large = _media$sizes.large) === null || _media$sizes$large === void 0 ? void 0 : _media$sizes$large.url) !== null && _media$sizes$large$ur !== void 0 ? _media$sizes$large$ur : media.sizes.full.url, - width: (_media$sizes$large$wi = (_media$sizes2 = media.sizes) === null || _media$sizes2 === void 0 ? void 0 : (_media$sizes2$large = _media$sizes2.large) === null || _media$sizes2$large === void 0 ? void 0 : _media$sizes2$large.width) !== null && _media$sizes$large$wi !== void 0 ? _media$sizes$large$wi : media.sizes.full.width, - height: (_media$sizes$large$he = (_media$sizes3 = media.sizes) === null || _media$sizes3 === void 0 ? void 0 : (_media$sizes3$large = _media$sizes3.large) === null || _media$sizes3$large === void 0 ? void 0 : _media$sizes3$large.height) !== null && _media$sizes$large$he !== void 0 ? _media$sizes$large$he : media.sizes.full.height, - alt: media.alt, - caption: media.caption - }; - setAttributes({ - dataFallbackImage: selectedMedia - }); - } - }))), (dataFallbackImage === null || dataFallbackImage === void 0 ? void 0 : dataFallbackImage.url) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__data-row" - }, /*#__PURE__*/React.createElement("img", { - src: dataFallbackImage.url, - alt: dataFallbackImage.alt, - width: dataFallbackImage.width, - height: dataFallbackImage.height, - style: { - maxWidth: '175px', - height: 'auto', - border: '1px solid #ddd' - } - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { - isDestructive: true, - variant: "secondary", - onClick: function onClick() { - setAttributes({ - dataFallbackImage: {} - }); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Remove Fallback Image', 'photo-block')))))))); - - // Set the local inspector controls. - var localInspectorControls = /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InspectorControls, null, settingsInspectorControls, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components_SidebarImageInspectorControl__WEBPACK_IMPORTED_MODULE_11__["default"], { - attributes: attributes, - setAttributes: setAttributes, - globalstyle: attributes.globalStyle - }))); - - // Set the advanced inspector controls. - var advancedInspectorControls = /*#__PURE__*/React.createElement(_components_SidebarImageAdvancedInspectorControl__WEBPACK_IMPORTED_MODULE_12__["default"], { - attributes: attributes, - setAttributes: setAttributes - }); - var localToolbar = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.BlockControls, null, !hasGlobalStyle(attributes.globalStyle) && /*#__PURE__*/React.createElement(_components_AlignmentToolbar__WEBPACK_IMPORTED_MODULE_19__["default"], props), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToolbarGroup, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToolbarButton, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_21__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Set Link Options', 'photo-block'), - onClick: function onClick() { - setMediaLinkPopover(!mediaLinkPopover); - }, - ref: setMediaLinkRef - }))), mediaLinkPopover && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Popover, { - placement: "top-start", - anchor: mediaLinkRef, - onClose: function onClose() { - setMediaLinkPopover(false); - } - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__a11y-popover" - }, /*#__PURE__*/React.createElement("h3", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Select a Link Source', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Link To', 'photo-block'), - value: dataMediaLinkSource, - onChange: function onChange(value) { - setAttributes({ - dataMediaLinkSource: value - }); - } - }, /*#__PURE__*/React.createElement("option", { - value: "none" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('None', 'photo-block')), /*#__PURE__*/React.createElement("optgroup", { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Media', 'photo-block') - }, /*#__PURE__*/React.createElement("option", { - value: "imageData" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Image File', 'photo-block')), /*#__PURE__*/React.createElement("option", { - value: "imageAttachmentPage" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Image Attachment Page', 'photo-block'))), /*#__PURE__*/React.createElement("optgroup", { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Post', 'photo-block') - }, /*#__PURE__*/React.createElement("option", { - value: "postPermalink" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Post Permalink', 'photo-block')))), 'imageData' === dataMediaLinkSource && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Lightbox', 'photo-block'), - initialOpen: false - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Enable lightbox', 'photo-block'), - checked: lightboxEnabled, - onChange: function onChange(value) { - setAttributes({ - lightboxEnabled: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Popup the full size photo in a lightbox when clicked.', 'photo-block') - })), lightboxEnabled && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Show caption in Lightbox', 'photo-block'), - checked: lightboxShowCaption, - onChange: function onChange(value) { - setAttributes({ - lightboxShowCaption: value - }); - } - }))))), 'none' !== dataMediaLinkSource && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Advanced', 'photo-block'), - initialOpen: false - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Open in new tab', 'photo-block'), - checked: dataMediaLinkNewTab, - onChange: function onChange(value) { - if ('' === attributes.dataMediaLinkRel && value) { - setAttributes({ - dataMediaLinkRel: 'noopener noreferrer' - }); - } - if ('noopener noreferrer' === attributes.dataMediaLinkRel && !value) { - setAttributes({ - dataMediaLinkRel: '' - }); - } - setAttributes({ - dataMediaLinkNewTab: value - }); - } - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Link Rel', 'photo-block'), - value: attributes.dataMediaLinkRel, - onChange: function onChange(value) { - setAttributes({ - dataMediaLinkRel: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('The link rel attribute is for SEO and accessibility purposes. It is used to describe the relationship between the current document and the linked document.', 'photo-block') - })), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelRow, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Link Class', 'photo-block'), - value: attributes.dataMediaLinkClass, - onChange: function onChange(value) { - setAttributes({ - dataMediaLinkClass: value - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Add a CSS class to the link for styling purposes.', 'photo-block') - })))))); - var styles = "\n\t\t#".concat(uniqueId, " .dlx-photo-block__screen-edit-image {\n\t\t\tbackground: ").concat(photoBackgroundColor, ";\n\t\t}\n\t\t#").concat(uniqueId, " img {\n\t\t\topacity: ").concat(photoOpacity, ";\n\t\t\t").concat(photoBlur ? "filter: blur(".concat(photoBlur, "px);") : '', "\n\t\t}\n\t"); - var imageStyles = (0,_blocks_photo_block_block_styles__WEBPACK_IMPORTED_MODULE_14__["default"])(attributes, deviceType, uniqueId); - return /*#__PURE__*/React.createElement(React.Fragment, null, localInspectorControls, !hasGlobalStyle(attributes.globalStyle) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InspectorAdvancedControls, null, advancedInspectorControls), localToolbar), /*#__PURE__*/React.createElement("style", null, styles, imageStyles), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit" - }, /*#__PURE__*/React.createElement("figure", { - className: "dlx-photo-block__screen-edit-image-wrapper dlx-photo-block__figure" - }, 'top' === captionPosition && !imageLoading && /*#__PURE__*/React.createElement("div", _extends({ - className: "dlx-photo-block__screen-edit-caption dlx-photo-block__caption" - }, innerBlockProps)), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit-image dlx-photo-block__image-wrapper" - }, imageLoading && /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit-spinner", - style: { - width: '100%', - height: '100%', - minWidth: '250px', - minHeight: '250px', - maxWidth: '100%', - maxHeight: '100%' - } - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit-spinner__logo" - }, /*#__PURE__*/React.createElement(_components_Icons_PhotoBlockIcon__WEBPACK_IMPORTED_MODULE_16__["default"], null)), /*#__PURE__*/React.createElement("h3", { - className: "dlx-photo-block__screen-edit-spinner__label" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Loading Featured Image…', 'photo-block')), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit-spinner__spinner" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Spinner, null))), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit-image-inner" - }, !imageLoading && hasImage && typeof dataImages[postId] !== 'undefined' && /*#__PURE__*/React.createElement("img", { - src: dataImages[postId].url, - className: classnames__WEBPACK_IMPORTED_MODULE_5___default()("photo-block-".concat(cssGramFilter), { - 'has-css-gram': cssGramFilter !== 'none' - }), - width: dataImages[postId].width, - height: dataImages[postId].height, - alt: "" - }), 'overlay' === captionPosition && !imageLoading && hasImage && /*#__PURE__*/React.createElement("div", _extends({ - className: "dlx-photo-block__screen-edit-caption dlx-photo-block__caption dlx-photo-block__caption--overlay" - }, innerBlockProps))), !imageLoading && (!hasImage || typeof dataImages[postId] === 'undefined') && /*#__PURE__*/React.createElement(React.Fragment, null, "Image not found.")), 'bottom' === captionPosition && !imageLoading && /*#__PURE__*/React.createElement("div", _extends({ - className: "dlx-photo-block__screen-edit-caption dlx-photo-block__caption" - }, innerBlockProps))))); -}); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FeaturedImageScreen); - -/***/ }), - -/***/ "./src/screens/Initial/index.js": -/*!**************************************!*\ - !*** ./src/screens/Initial/index.js ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _components_UploadTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/UploadTypes */ "./src/components/UploadTypes/index.js"); -/* harmony import */ var _components_UploadTarget__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../components/UploadTarget */ "./src/components/UploadTarget/index.js"); -/* harmony import */ var _components_UploadStatus__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../components/UploadStatus */ "./src/components/UploadStatus/index.js"); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/** - * This is the initial screen of the block. It is the first screen that the user sees when they add the block to the editor. - */ - - - - - - - - - - - -/** - * InitialScreen component. - * - * @param {Object} props - Component props. - * @return {Function} Component. - */ -var InitialScreen = function InitialScreen(props) { - var blockUniqueId = props.blockUniqueId, - clientId = props.clientId; - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(function (select) { - return { - isUploading: select((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(blockUniqueId)).isUploading(), - isProcessingUpload: select((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(blockUniqueId)).isProcessingUpload(), - isUploadError: select((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(blockUniqueId)).isUploadError() - }; - }), - isUploading = _useSelect.isUploading, - isProcessingUpload = _useSelect.isProcessingUpload, - isUploadError = _useSelect.isUploadError; - - // Set the local inspector controls. - var localInspectorControls = /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, null); - return /*#__PURE__*/React.createElement(React.Fragment, null, localInspectorControls, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-initial" - }, !isUploading && !isProcessingUpload && !isUploadError && /*#__PURE__*/React.createElement(_components_UploadTypes__WEBPACK_IMPORTED_MODULE_5__["default"], { - attributes: props.attributes, - setAttributes: props.setAttributes, - blockUniqueId: blockUniqueId, - clientId: clientId - }), (isUploading || isProcessingUpload || isUploadError) && /*#__PURE__*/React.createElement(_components_UploadStatus__WEBPACK_IMPORTED_MODULE_7__["default"], { - blockUniqueId: blockUniqueId - }), /*#__PURE__*/React.createElement(_components_UploadTarget__WEBPACK_IMPORTED_MODULE_6__["default"], { - attributes: props.attributes, - setAttributes: props.setAttributes, - blockUniqueId: blockUniqueId - }))); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InitialScreen); - -/***/ }), - -/***/ "./src/screens/Loading/index.js": -/*!**************************************!*\ - !*** ./src/screens/Loading/index.js ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/hooks */ "@wordpress/hooks"); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/* harmony import */ var _screens_Initial__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../screens/Initial */ "./src/screens/Initial/index.js"); -/* harmony import */ var _screens_Edit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../screens/Edit */ "./src/screens/Edit/index.js"); -/* harmony import */ var _screens_Crop__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../screens/Crop */ "./src/screens/Crop/index.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -/** - * This is the loading screen of the block. - * It has no interface, and it's an initializer of sorts. - */ - - - - - - - -// Get screens. - -//import EffectsScreen from '../../screens/Effects'; - - - -/** - * InitialScreen component. - * - * @param {Object} props - Component props. - * @return {Function} Component. - */ -var LoadingScreen = function LoadingScreen(props) { - var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true), - _useState2 = _slicedToArray(_useState, 2), - isLoading = _useState2[0], - setIsLoading = _useState2[1]; - var blockUniqueId = props.blockUniqueId; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.useDispatch)((0,_store__WEBPACK_IMPORTED_MODULE_4__.blockStore)(blockUniqueId)), - setImageData = _useDispatch.setImageData, - setFilepondInstance = _useDispatch.setFilepondInstance, - setIsUploading = _useDispatch.setIsUploading, - setIsProcessingUpload = _useDispatch.setIsProcessingUpload, - setPhotoMode = _useDispatch.setPhotoMode, - setIsUploadError = _useDispatch.setIsUploadError, - setInQueryLoop = _useDispatch.setInQueryLoop, - setScreen = _useDispatch.setScreen, - setDataScreen = _useDispatch.setDataScreen; - - // Get current block data. - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.useSelect)(function (select) { - return { - currentScreen: select((0,_store__WEBPACK_IMPORTED_MODULE_4__.blockStore)(blockUniqueId)).getCurrentScreen(), - isUploading: select((0,_store__WEBPACK_IMPORTED_MODULE_4__.blockStore)(blockUniqueId)).isUploading(), - isProcessingUpload: select((0,_store__WEBPACK_IMPORTED_MODULE_4__.blockStore)(blockUniqueId)).isProcessingUpload(), - isUploadError: select((0,_store__WEBPACK_IMPORTED_MODULE_4__.blockStore)(blockUniqueId)).isUploadError(), - filepondInstance: select((0,_store__WEBPACK_IMPORTED_MODULE_4__.blockStore)(blockUniqueId)).getFilepondInstance(), - hasCaption: select((0,_store__WEBPACK_IMPORTED_MODULE_4__.blockStore)(blockUniqueId)).hasCaption(), - captionPosition: select((0,_store__WEBPACK_IMPORTED_MODULE_4__.blockStore)(blockUniqueId)).getCaptionPosition(), - inQueryLoop: select((0,_store__WEBPACK_IMPORTED_MODULE_4__.blockStore)(blockUniqueId)).inQueryLoop(), - photoMode: select((0,_store__WEBPACK_IMPORTED_MODULE_4__.blockStore)(blockUniqueId)).getPhotoMode(), - blockUniqueId: select((0,_store__WEBPACK_IMPORTED_MODULE_4__.blockStore)(blockUniqueId)).getBlockUniqueId(), - dataScreen: select((0,_store__WEBPACK_IMPORTED_MODULE_4__.blockStore)(blockUniqueId)).getDataScreen() - }; - }), - currentScreen = _useSelect.currentScreen, - isUploading = _useSelect.isUploading, - isProcessingUpload = _useSelect.isProcessingUpload, - isUploadError = _useSelect.isUploadError, - filepondInstance = _useSelect.filepondInstance, - hasCaption = _useSelect.hasCaption, - captionPosition = _useSelect.captionPosition, - inQueryLoop = _useSelect.inQueryLoop, - photoMode = _useSelect.photoMode, - dataScreen = _useSelect.dataScreen; - var context = props.context, - attributes = props.attributes, - setAttributes = props.setAttributes; - - /** - * Set up the initial screen. - */ - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { - // Determine if we're in a query loop based on context. - var query = context.query, - queryId = context.queryId, - postId = context.postId; - - // If vars aren't undefined or null, set data screen as we're in a query loop. - if (typeof query !== 'undefined' && typeof postId !== 'undefined') { - if (0 !== postId && 'none' !== query && 'undefined' !== query) { - setInQueryLoop(true); - /** - * Filter: Determine if we're in the premium version of the plugin. - */ - var isPremium = (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__.applyFilters)('dlx_photo_block_is_premium', false); - if (!isPremium) { - // Check if attribute imageData is found, and if so, set the image data. - if (attributes.imageData.id !== 0 && attributes.imageData.id !== '') { - setImageData(attributes.imageData); - } - setAttributes({ - photoMode: 'featuredImage' - }); - setPhotoMode('featurdImage'); - setDataScreen('featuredImage'); - setScreen('featuredImage'); - return; - } - - /** - * Action: Load the initial screen if in a data request. - * - * @param {Object} props - The block props. - * @param {boolean} isPremium - Whether or not the user is using the premium version. - * @param {Object} query - The query object. - */ - (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__.doAction)('dlx_photo_block_loading_screen_data_premium', _objectSpread(_objectSpread({}, props), {}, { - isPremium: isPremium, - query: query - })); - return; - } - } - - // Set the photo mode. - setPhotoMode(attributes.photoMode); - // Load the appropriate screen. The main screen logic is in blocks/photo-block/edit.js. - switch (attributes.photoMode) { - case 'none': - setScreen('initial'); - break; - case 'url': - case 'image': - case 'photo': - setScreen('edit'); - break; - case 'featuredImage': - setScreen('featuredImage'); - break; - case 'data': - /** - * Action: Set the initial screen params if data is the mode and not in a query loop - * - * @param {Object} props - The block props. - */ - (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__.doAction)('dlx_photo_block_loading_screen_data', _objectSpread({}, props)); - break; - default: - setScreen('initial'); - break; - } - }, []); - return null; -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (LoadingScreen); - -/***/ }), - -/***/ "./src/store/global-styles.js": -/*!************************************!*\ - !*** ./src/store/global-styles.js ***! - \************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -var _photoBlock; -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - -var DEFAULT_STATE = { - globalStyles: ((_photoBlock = photoBlock) === null || _photoBlock === void 0 ? void 0 : _photoBlock.globalStyles) || [], - globalStyleRefresh: null -}; -var actions = { - setGlobalStyle: function setGlobalStyle(globalStyle, slug) { - return { - type: 'SET_GLOBAL_STYLE', - globalStyle: globalStyle, - slug: slug - }; - }, - removeGlobalStyle: function removeGlobalStyle(slug) { - return { - type: 'REMOVE_GLOBAL_STYLE', - slug: slug - }; - }, - setGlobalStyleRefresh: function setGlobalStyleRefresh(refresh) { - return { - type: 'SET_GLOBAL_STYLE_REFRESH', - refresh: refresh - }; - } -}; -var globalStylesStore = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.createReduxStore)('dlxplugins/photo-block/global-styles', { - reducer: function reducer() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_STATE; - var action = arguments.length > 1 ? arguments[1] : undefined; - switch (action.type) { - case 'SET_GLOBAL_STYLE': - var slug = action.slug; - - // Global styles are stored in [slug] => attributes format. - var globalStyles = _objectSpread(_objectSpread({}, state.globalStyles), {}, _defineProperty({}, slug, action.globalStyle)); - return _objectSpread(_objectSpread({}, state), {}, { - globalStyles: globalStyles - }); - case 'REMOVE_GLOBAL_STYLE': - var newGlobalStyles = _objectSpread({}, state.globalStyles); - delete newGlobalStyles[action.slug]; - return _objectSpread(_objectSpread({}, state), {}, { - globalStyles: newGlobalStyles - }); - case 'SET_GLOBAL_STYLE_REFRESH': - return _objectSpread(_objectSpread({}, state), {}, { - globalStyleRefresh: action.refresh - }); - default: - return state; - } - }, - actions: actions, - selectors: { - getGlobalStyleBySlug: function getGlobalStyleBySlug(state, slug) { - return state.globalStyles[slug] || {}; - }, - getGlobalStyles: function getGlobalStyles(state) { - return state.globalStyles; - }, - hasGlobalStyle: function hasGlobalStyle(state, slug) { - if ('none' === slug || !slug) { - return false; - } - return Object.keys(state.globalStyles).includes(slug); - }, - getGlobalStyleRefresh: function getGlobalStyleRefresh(state) { - return state.globalStyleRefresh; - } - } -}); -(0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.register)(globalStylesStore); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (globalStylesStore); - -/***/ }), - -/***/ "./src/store/index.js": -/*!****************************!*\ - !*** ./src/store/index.js ***! - \****************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ blockStore: () => (/* binding */ blockStore), -/* harmony export */ getBlockStores: () => (/* binding */ getBlockStores) -/* harmony export */ }); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } - -var DEFAULT_STATE = { - originalImageData: { - id: 0, - url: '', - alt: '', - full: '', - width: '', - height: '', - attachment_link: '', - caption: '' - }, - imageData: { - id: 0, - url: '', - alt: '', - full: '', - width: '', - height: '', - attachment_link: '', - caption: '' - }, - currentScreen: 'loading', - /* can be loading, initial, edit, crop, data, featuredImage, effects. */ - isUploading: false, - isProcessingUpload: false, - isUploadError: false, - filepondInstance: null, - hasCaption: false, - captionPosition: 'bottom', - /* can be bottom, top, or overlay */ - inQueryLoop: false, - photoMode: 'image', - /* can be image, featuredImage, data, or url. */ - blockUniqueId: null, - dataScreen: 'data', - /* can be `initial`, `edit`. */ - justCropped: false, - aspectRatioWidth: 16, - aspectRatioHeight: 9, - aspectRatioWidthPixels: 0, - aspectRatioHeightPixels: 0, - aspectRatioToolbarSelection: '16:9', - aspectRatioUnit: 'ratio' -}; -var actions = { - setOriginalImageData: function setOriginalImageData(originalImageData) { - return { - type: 'SET_ORIGINAL_IMAGE_DATA', - originalImageData: originalImageData - }; - }, - setImageData: function setImageData(imageData) { - return { - type: 'SET_IMAGE_DATA', - imageData: imageData - }; - }, - setAspectRatio: function setAspectRatio(aspectRatioWidth, aspectRatioHeight) { - return { - type: 'SET_ASPECT_RATIO', - aspectRatioWidth: aspectRatioWidth, - aspectRatioHeight: aspectRatioHeight - }; - }, - setScreen: function setScreen(screen) { - return { - type: 'SET_SCREEN', - screen: screen - }; - }, - setIsUploading: function setIsUploading(isUploading) { - return { - type: 'SET_IS_UPLOADING', - isUploading: isUploading - }; - }, - setIsProcessingUpload: function setIsProcessingUpload(isProcessingUpload) { - return { - type: 'SET_IS_PROCESSING_UPLOAD', - isProcessingUpload: isProcessingUpload - }; - }, - setIsUploadError: function setIsUploadError(isUploadError) { - return { - type: 'SET_IS_UPLOAD_ERROR', - isUploadError: isUploadError - }; - }, - setFilepondInstance: function setFilepondInstance(filepondInstance) { - return { - type: 'SET_FILEPOND_INSTANCE', - filepondInstance: filepondInstance - }; - }, - setHasCaption: function setHasCaption(hasCaption) { - return { - type: 'SET_HAS_CAPTION', - hasCaption: hasCaption - }; - }, - setCaptionPosition: function setCaptionPosition(captionPosition) { - return { - type: 'SET_CAPTION_POSITION', - captionPosition: captionPosition - }; - }, - setInQueryLoop: function setInQueryLoop(inQueryLoop) { - return { - type: 'SET_IN_QUERY_LOOP', - inQueryLoop: inQueryLoop - }; - }, - setPhotoMode: function setPhotoMode(photoMode) { - return { - type: 'SET_PHOTO_MODE', - photoMode: photoMode - }; - }, - setBlockUniqueId: function setBlockUniqueId(blockUniqueId) { - return { - type: 'SET_BLOCK_UNIQUE_ID', - blockUniqueId: blockUniqueId - }; - }, - setDataScreen: function setDataScreen(dataScreen) { - return { - type: 'SET_DATA_SCREEN', - dataScreen: dataScreen - }; - }, - setJustCropped: function setJustCropped(justCropped) { - return { - type: 'SET_JUST_CROPPED', - justCropped: justCropped - }; - }, - setAspectRatioToolbarSelection: function setAspectRatioToolbarSelection(aspectRatioToolbarSelection) { - return { - type: 'SET_ASPECT_RATIO_TOOLBAR_SELECTION', - aspectRatioToolbarSelection: aspectRatioToolbarSelection - }; - }, - setAspectRatioPixels: function setAspectRatioPixels(aspectRatioWidthPixels, aspectRatioHeightPixels) { - return { - type: 'SET_ASPECT_RATIO_PIXELS', - aspectRatioWidthPixels: aspectRatioWidthPixels, - aspectRatioHeightPixels: aspectRatioHeightPixels - }; - }, - setAspectRatioUnit: function setAspectRatioUnit(aspectRatioUnit) { - return { - type: 'SET_ASPECT_RATIO_UNIT', - aspectRatioUnit: aspectRatioUnit - }; - } -}; -var createBlockStore = function createBlockStore(uniqueId) { - return (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.createReduxStore)("dlxplugins/photo-block/".concat(uniqueId), { - reducer: function reducer() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_STATE; - var action = arguments.length > 1 ? arguments[1] : undefined; - switch (action.type) { - case 'SET_ORIGINAL_IMAGE_DATA': - return _objectSpread(_objectSpread({}, state), {}, { - originalImageData: action.originalImageData - }); - case 'SET_IMAGE_DATA': - return _objectSpread(_objectSpread({}, state), {}, { - imageData: action.imageData - }); - case 'SET_SCREEN': - return _objectSpread(_objectSpread({}, state), {}, { - currentScreen: action.screen - }); - case 'SET_IS_UPLOADING': - return _objectSpread(_objectSpread({}, state), {}, { - isUploading: action.isUploading - }); - case 'SET_IS_PROCESSING_UPLOAD': - return _objectSpread(_objectSpread({}, state), {}, { - isProcessingUpload: action.isProcessingUpload - }); - case 'SET_IS_UPLOAD_ERROR': - return _objectSpread(_objectSpread({}, state), {}, { - isUploadError: action.isUploadError - }); - case 'SET_FILEPOND_INSTANCE': - return _objectSpread(_objectSpread({}, state), {}, { - filepondInstance: action.filepondInstance - }); - case 'SET_HAS_CAPTION': - return _objectSpread(_objectSpread({}, state), {}, { - hasCaption: action.hasCaption - }); - case 'SET_CAPTION_POSITION': - return _objectSpread(_objectSpread({}, state), {}, { - captionPosition: action.captionPosition - }); - case 'SET_IN_QUERY_LOOP': - return _objectSpread(_objectSpread({}, state), {}, { - inQueryLoop: action.inQueryLoop - }); - case 'SET_PHOTO_MODE': - return _objectSpread(_objectSpread({}, state), {}, { - photoMode: action.photoMode - }); - case 'SET_BLOCK_UNIQUE_ID': - return _objectSpread(_objectSpread({}, state), {}, { - blockUniqueId: action.blockUniqueId - }); - case 'SET_DATA_SCREEN': - return _objectSpread(_objectSpread({}, state), {}, { - dataScreen: action.dataScreen - }); - case 'SET_ASPECT_RATIO': - return _objectSpread(_objectSpread({}, state), {}, { - aspectRatioWidth: action.aspectRatioWidth, - aspectRatioHeight: action.aspectRatioHeight - }); - case 'SET_ASPECT_RATIO_PIXELS': - return _objectSpread(_objectSpread({}, state), {}, { - aspectRatioWidthPixels: action.aspectRatioWidthPixels, - aspectRatioHeightPixels: action.aspectRatioHeightPixels - }); - case 'SET_ASPECT_RATIO_TOOLBAR_SELECTION': - return _objectSpread(_objectSpread({}, state), {}, { - aspectRatioToolbarSelection: action.aspectRatioToolbarSelection - }); - case 'SET_ASPECT_RATIO_UNIT': - return _objectSpread(_objectSpread({}, state), {}, { - aspectRatioUnit: action.aspectRatioUnit - }); - case 'SET_JUST_CROPPED': - return _objectSpread(_objectSpread({}, state), {}, { - justCropped: action.justCropped - }); - default: - return state; - } - }, - actions: actions, - selectors: { - getCurrentScreen: function getCurrentScreen(state) { - return state.currentScreen; - }, - isUploading: function isUploading(state) { - return state.isUploading; - }, - isProcessingUpload: function isProcessingUpload(state) { - return state.isProcessingUpload; - }, - isUploadError: function isUploadError(state) { - return state.isUploadError; - }, - getFilepondInstance: function getFilepondInstance(state) { - return state.filepondInstance; - }, - hasCaption: function hasCaption(state) { - return state.hasCaption; - }, - getCaptionPosition: function getCaptionPosition(state) { - return state.captionPosition; - }, - inQueryLoop: function inQueryLoop(state) { - return state.inQueryLoop; - }, - getPhotoMode: function getPhotoMode(state) { - return state.photoMode; - }, - getBlockUniqueId: function getBlockUniqueId(state) { - return state.blockUniqueId; - }, - getDataScreen: function getDataScreen(state) { - return state.dataScreen; - }, - getImageData: function getImageData(state) { - return state.imageData; - }, - getOriginalImageData: function getOriginalImageData(state) { - return state.originalImageData; - }, - getJustCropped: function getJustCropped(state) { - return state.justCropped; - }, - getAspectRatioWidth: function getAspectRatioWidth(state) { - return state.aspectRatioWidth; - }, - getAspectRatioHeight: function getAspectRatioHeight(state) { - return state.aspectRatioHeight; - }, - getAspectRatioWidthPixels: function getAspectRatioWidthPixels(state) { - return state.aspectRatioWidthPixels; - }, - getAspectRatioHeightPixels: function getAspectRatioHeightPixels(state) { - return state.aspectRatioHeightPixels; - }, - getAspectRatioToolbarSelection: function getAspectRatioToolbarSelection(state) { - return state.aspectRatioToolbarSelection; - }, - getAspectRatioUnit: function getAspectRatioUnit(state) { - return state.aspectRatioUnit; - } - } - }); -}; -var blockStores = []; -var blockStore = function blockStore(uniqueId) { - if (!uniqueId) { - return null; - } - var storeName = "dlxplugins/photo-block/".concat(uniqueId); - // Attempt to select the store to check if it's already registered - var isStoreRegistered = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.select)(storeName); // can be undefined. - - if (!isStoreRegistered) { - var store = createBlockStore(uniqueId); - - // Make sure store is initialized. Check for instantiate function and return null if it doesn't exist. - if (!store.instantiate) { - return storeName; - } - (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.register)(store); - blockStores.push(store); - return storeName; - } - - // If the store is already registered, return its instance - return storeName; -}; -/** - * Retrieve a current list of all registered blocks. - * - * @return {Array} Array of block stores - */ -var getBlockStores = function getBlockStores() { - return blockStores; -}; - - -/***/ }), - -/***/ "./src/utils/CalculateAspectRatioFromPixels.js": -/*!*****************************************************!*\ - !*** ./src/utils/CalculateAspectRatioFromPixels.js ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/** - * Returns an aspect ratio in human readable format. - * - * @param {number} width Width in pixels. - * @param {number} height Height in pixels. - * @return {string} Aspect ratio in human readable format. - */ -var CalculateAspectRatioFromPixels = function CalculateAspectRatioFromPixels(width, height) { - // Find the greatest common factor - function findGCF(a, b) { - return b === 0 ? a : findGCF(b, a % b); - } - var gcf = findGCF(width, height); - - // Simplify the ratio - var simplifiedWidth = width / gcf; - var simplifiedHeight = height / gcf; - - // Format the ratio as "X:Y" - return { - width: simplifiedWidth, - height: simplifiedHeight - }; -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CalculateAspectRatioFromPixels); - -/***/ }), - -/***/ "./src/utils/CalculateDimensionsFromAspectRatio.js": -/*!*********************************************************!*\ - !*** ./src/utils/CalculateDimensionsFromAspectRatio.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -/** - * Returns an aspect ratio in human readable format. - * - * @param {string} aspectRatio Aspect ratio in human readable format. - * @param {number} width Width in pixels. - * @return {string} Aspect ratio in human readable format. - */ -var CalculateDimensionsFromAspectRatio = function CalculateDimensionsFromAspectRatio(aspectRatio, width) { - // Split the aspect ratio into its components. - var _aspectRatio$split$ma = aspectRatio.split(':').map(parseFloat), - _aspectRatio$split$ma2 = _slicedToArray(_aspectRatio$split$ma, 2), - x = _aspectRatio$split$ma2[0], - y = _aspectRatio$split$ma2[1]; - - // Calculate the height from the width and aspect ratio. - var height = Math.round(width * (y / x)); - - // Return width/height. - return { - width: width, - height: height - }; -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CalculateDimensionsFromAspectRatio); - -/***/ }), - -/***/ "./src/utils/GetRandomGradient.js": -/*!****************************************!*\ - !*** ./src/utils/GetRandomGradient.js ***! - \****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -var gradients = [{ - label: 'Warm Flame', - value: 'linear-gradient(45deg, rgb(255,154,158) 0%, rgb(250,208,196) 99%, rgb(250,208,196) 100%)' -}, { - label: 'Night Fade', - value: 'linear-gradient(to top, rgb(161,140,209) 0%, rgb(251,194,235) 100%)' -}, { - label: 'Spring Warmth', - value: 'linear-gradient(to top, rgb(250,208,196) 0%, rgb(255,209,255) 100%)' -}, { - label: 'Juicy Peach', - value: 'linear-gradient(to right, rgb(255,236,210) 0%, rgb(252,182,159) 100%)' -}, { - label: 'Young Passion', - value: 'linear-gradient(to right, rgb(255,129,119) 0%, rgb(255,134,122) 0%, rgb(255,140,127) 21%, rgb(249,145,133) 52%, rgb(207,85,108) 78%, rgb(177,42,91) 100%)' -}, { - label: 'Lady Lips', - value: 'linear-gradient(to top, rgb(255,154,158) 0%, rgb(254,207,239) 99%, rgb(254,207,239) 100%)' -}, { - label: 'Sunny Morning', - value: 'linear-gradient(120deg, rgb(246,211,101) 0%, rgb(253,160,133) 100%)' -}, { - label: 'Rainy Ashville', - value: 'linear-gradient(to top, rgb(251,194,235) 0%, rgb(166,193,238) 100%)' -}, { - label: 'Frozen Dreams', - value: 'linear-gradient(to top, rgb(253,203,241) 0%, rgb(253,203,241) 1%, rgb(230,222,233) 100%)' -}, { - label: 'Winter Neva', - value: 'linear-gradient(120deg, rgb(161,196,253) 0%, rgb(194,233,251) 100%)' -}, { - label: 'Dusty Grass', - value: 'linear-gradient(120deg, rgb(212,252,121) 0%, rgb(150,230,161) 100%)' -}, { - label: 'Tempting Azure', - value: 'linear-gradient(120deg, rgb(132,250,176) 0%, rgb(143,211,244) 100%)' -}, { - label: 'Heavy Rain', - value: 'linear-gradient(to top, rgb(207,217,223) 0%, rgb(226,235,240) 100%)' -}, { - label: 'Amy Crisp', - value: 'linear-gradient(120deg, rgb(166,192,254) 0%, rgb(246,128,132) 100%)' -}, { - label: 'Mean Fruit', - value: 'linear-gradient(120deg, rgb(252,203,144) 0%, rgb(213,126,235) 100%)' -}, { - label: 'Deep Blue', - value: 'linear-gradient(120deg, rgb(224,195,252) 0%, rgb(142,197,252) 100%)' -}, { - label: 'Ripe Malinka', - value: 'linear-gradient(120deg, rgb(240,147,251) 0%, rgb(245,87,108) 100%)' -}, { - label: 'Cloudy Knoxville', - value: 'linear-gradient(120deg, rgb(253,251,251) 0%, rgb(235,237,238) 100%)' -}, { - label: 'Malibu Beach', - value: 'linear-gradient(to right, rgb(79,172,254) 0%, rgb(0,242,254) 100%)' -}, { - label: 'New Life', - value: 'linear-gradient(to right, rgb(67,233,123) 0%, rgb(56,249,215) 100%)' -}, { - label: 'True Sunset', - value: 'linear-gradient(to right, rgb(250,112,154) 0%, rgb(254,225,64) 100%)' -}, { - label: 'Morpheus Den', - value: 'linear-gradient(to top, rgb(48,207,208) 0%, rgb(51,8,103) 100%)' -}, { - label: 'Rare Wind', - value: 'linear-gradient(to top, rgb(168,237,234) 0%, rgb(254,214,227) 100%)' -}, { - label: 'Near Moon', - value: 'linear-gradient(to top, rgb(94,231,223) 0%, rgb(180,144,202) 100%)' -}, { - label: 'Wild Apple', - value: 'linear-gradient(to top, rgb(210,153,194) 0%, rgb(254,249,215) 100%)' -}, { - label: 'Saint Petersburg', - value: 'linear-gradient(135deg, rgb(245,247,250) 0%, rgb(195,207,226) 100%)' -}, { - label: 'Arielles Smile', - value: 'radial-gradient(circle 248px at center, rgb(22,217,227) 0%, rgb(48,199,236) 47%, rgb(70,174,247) 100%)' -}, { - label: 'Plum Plate', - value: 'linear-gradient(135deg, rgb(102,126,234) 0%, rgb(118,75,162) 100%)' -}, { - label: 'Everlasting Sky', - value: 'linear-gradient(135deg, rgb(253,252,251) 0%, rgb(226,209,195) 100%)' -}, { - label: 'Happy Fisher', - value: 'linear-gradient(120deg, rgb(137,247,254) 0%, rgb(102,166,255) 100%)' -}, { - label: 'Blessing', - value: 'linear-gradient(to top, rgb(253,219,146) 0%, rgb(209,253,255) 100%)' -}, { - label: 'Sharpeye Eagle', - value: 'linear-gradient(to top, rgb(152,144,227) 0%, rgb(177,244,207) 100%)' -}, { - label: 'Ladoga Bottom', - value: 'linear-gradient(to top, rgb(235,192,253) 0%, rgb(217,222,216) 100%)' -}, { - label: 'Lemon Gate', - value: 'linear-gradient(to top, rgb(150,251,196) 0%, rgb(249,245,134) 100%)' -}, { - label: 'Itmeo Branding', - value: 'linear-gradient(180deg, rgb(42,245,152) 0%, rgb(0,158,253) 100%)' -}, { - label: 'Zeus Miracle', - value: 'linear-gradient(to top, rgb(205,156,242) 0%, rgb(246,243,255) 100%)' -}, { - label: 'Old Hat', - value: 'linear-gradient(to right, rgb(228,175,203) 0%, rgb(184,203,184) 0%, rgb(184,203,184) 0%, rgb(226,197,139) 30%, rgb(194,206,156) 64%, rgb(126,219,220) 100%)' -}, { - label: 'Star Wine', - value: 'linear-gradient(to right, rgb(184,203,184) 0%, rgb(184,203,184) 0%, rgb(180,101,218) 0%, rgb(207,108,201) 33%, rgb(238,96,156) 66%, rgb(238,96,156) 100%)' -}, { - label: 'Deep Blue', - value: 'linear-gradient(to right, rgb(106,17,203) 0%, rgb(37,117,252) 100%)' -}, { - label: 'Happy Acid', - value: 'linear-gradient(to top, rgb(55,236,186) 0%, rgb(114,175,211) 100%)' -}, { - label: 'Awesome Pine', - value: 'linear-gradient(to top, rgb(235,187,167) 0%, rgb(207,199,248) 100%)' -}, { - label: 'New York', - value: 'linear-gradient(to top, rgb(255,241,235) 0%, rgb(172,224,249) 100%)' -}, { - label: 'Shy Rainbow', - value: 'linear-gradient(to right, rgb(238,162,162) 0%, rgb(187,193,191) 19%, rgb(87,198,225) 42%, rgb(180,159,218) 79%, rgb(122,197,216) 100%)' -}, { - label: 'Mixed Hopes', - value: 'linear-gradient(to top, rgb(196,113,245) 0%, rgb(250,113,205) 100%)' -}, { - label: 'Fly High', - value: 'linear-gradient(to top, rgb(72,198,239) 0%, rgb(111,134,214) 100%)' -}, { - label: 'Strong Bliss', - value: 'linear-gradient(to right, rgb(247,140,160) 0%, rgb(249,116,143) 19%, rgb(253,134,140) 60%, rgb(254,154,139) 100%)' -}, { - label: 'Fresh Milk', - value: 'linear-gradient(to top, rgb(254,173,166) 0%, rgb(245,239,239) 100%)' -}, { - label: 'Snow Again', - value: 'linear-gradient(to top, rgb(230,233,240) 0%, rgb(238,241,245) 100%)' -}, { - label: 'February Ink', - value: 'linear-gradient(to top, rgb(172,203,238) 0%, rgb(231,240,253) 100%)' -}, { - label: 'Kind Steel', - value: 'linear-gradient(-20deg, rgb(233,222,250) 0%, rgb(251,252,219) 100%)' -}, { - label: 'Soft Grass', - value: 'linear-gradient(to top, rgb(193,223,196) 0%, rgb(222,236,221) 100%)' -}, { - label: 'Grown Early', - value: 'linear-gradient(to top, rgb(11,163,96) 0%, rgb(60,186,146) 100%)' -}, { - label: 'Sharp Blues', - value: 'linear-gradient(to top, rgb(0,198,251) 0%, rgb(0,91,234) 100%)' -}, { - label: 'Shady Water', - value: 'linear-gradient(to right, rgb(116,235,213) 0%, rgb(159,172,230) 100%)' -}, { - label: 'Dirty Beauty', - value: 'linear-gradient(to top, rgb(106,133,182) 0%, rgb(186,200,224) 100%)' -}, { - label: 'Great Whale', - value: 'linear-gradient(to top, rgb(163,189,237) 0%, rgb(105,145,199) 100%)' -}, { - label: 'Teen Notebook', - value: 'linear-gradient(to top, rgb(151,149,240) 0%, rgb(251,200,212) 100%)' -}, { - label: 'Polite Rumors', - value: 'linear-gradient(to top, rgb(167,166,203) 0%, rgb(137,137,186) 52%, rgb(137,137,186) 100%)' -}, { - label: 'Sweet Period', - value: 'linear-gradient(to top, rgb(63,81,177) 0%, rgb(90,85,174) 13%, rgb(123,95,172) 25%, rgb(143,106,174) 38%, rgb(168,106,164) 50%, rgb(204,107,142) 62%, rgb(241,130,113) 75%, rgb(243,164,105) 87%, rgb(247,201,120) 100%)' -}, { - label: 'Wide Matrix', - value: 'linear-gradient(to top, rgb(252,197,228) 0%, rgb(253,163,75) 15%, rgb(255,120,130) 35%, rgb(200,105,158) 52%, rgb(112,70,170) 71%, rgb(12,29,184) 87%, rgb(2,15,117) 100%)' -}, { - label: 'Soft Cherish', - value: 'linear-gradient(to top, rgb(219,220,215) 0%, rgb(221,220,215) 24%, rgb(226,201,204) 30%, rgb(231,98,125) 46%, rgb(184,35,90) 59%, rgb(128,19,87) 71%, rgb(61,22,53) 84%, rgb(28,26,39) 100%)' -}, { - label: 'Red Salvation', - value: 'linear-gradient(to top, rgb(244,59,71) 0%, rgb(69,58,148) 100%)' -}, { - label: 'Burning Spring', - value: 'linear-gradient(to top, rgb(79,181,118) 0%, rgb(68,196,137) 30%, rgb(40,169,174) 46%, rgb(40,162,183) 59%, rgb(76,119,136) 71%, rgb(108,79,99) 86%, rgb(67,44,57) 100%)' -}, { - label: 'Night Party', - value: 'linear-gradient(to top, rgb(2,80,197) 0%, rgb(212,63,141) 100%)' -}, { - label: 'Sky Glider', - value: 'linear-gradient(to top, rgb(136,211,206) 0%, rgb(110,69,226) 100%)' -}, { - label: 'Heaven Peach', - value: 'linear-gradient(to top, rgb(217,175,217) 0%, rgb(151,217,225) 100%)' -}, { - label: 'Purple Division', - value: 'linear-gradient(to top, rgb(112,40,228) 0%, rgb(229,178,202) 100%)' -}, { - label: 'Aqua Splash', - value: 'linear-gradient(15deg, rgb(19,84,122) 0%, rgb(128,208,199) 100%)' -}, { - label: 'Spiky Naga', - value: 'linear-gradient(to top, rgb(80,82,133) 0%, rgb(88,94,146) 12%, rgb(101,104,159) 25%, rgb(116,116,176) 37%, rgb(126,126,187) 50%, rgb(131,137,199) 62%, rgb(151,149,212) 75%, rgb(162,161,220) 87%, rgb(181,174,228) 100%)' -}, { - label: 'Love Kiss', - value: 'linear-gradient(to top, rgb(255,8,68) 0%, rgb(255,177,153) 100%)' -}, { - label: 'Cochiti Lake', - value: 'linear-gradient(45deg, rgb(147,165,207) 0%, rgb(228,239,233) 100%)' -}, { - label: 'Premium Dark', - value: 'linear-gradient(to right, rgb(67,67,67) 0%, black 100%)' -}, { - label: 'Cold Evening', - value: 'linear-gradient(to top, rgb(12,52,131) 0%, rgb(162,182,223) 100%, rgb(107,140,206) 100%, rgb(162,182,223) 100%)' -}, { - label: 'Summer Games', - value: 'linear-gradient(to right, rgb(146,254,157) 0%, rgb(0,201,255) 100%)' -}, { - label: 'Passionate Bed', - value: 'linear-gradient(to right, rgb(255,117,140) 0%, rgb(255,126,179) 100%)' -}, { - label: 'Mountain Rock', - value: 'linear-gradient(to right, rgb(134,143,150) 0%, rgb(89,97,100) 100%)' -}, { - label: 'Desert Hump', - value: 'linear-gradient(to top, rgb(199,144,129) 0%, rgb(223,165,121) 100%)' -}, { - label: 'Jungle Day', - value: 'linear-gradient(45deg, rgb(139,170,170) 0%, rgb(174,139,156) 100%)' -}, { - label: 'Phoenix Start', - value: 'linear-gradient(to right, rgb(248,54,0) 0%, rgb(249,212,35) 100%)' -}, { - label: 'October Silence', - value: 'linear-gradient(-20deg, rgb(183,33,255) 0%, rgb(33,212,253) 100%)' -}, { - label: 'Faraway River', - value: 'linear-gradient(-20deg, rgb(110,69,226) 0%, rgb(136,211,206) 100%)' -}, { - label: 'Alchemist Lab', - value: 'linear-gradient(-20deg, rgb(213,88,200) 0%, rgb(36,210,146) 100%)' -}, { - label: 'Over Sun', - value: 'linear-gradient(60deg, rgb(171,236,214) 0%, rgb(251,237,150) 100%)' -}, { - label: 'Premium White', - value: 'linear-gradient(to top, rgb(213,212,208) 0%, rgb(213,212,208) 1%, rgb(238,238,236) 31%, rgb(239,238,236) 75%, rgb(233,233,231) 100%)' -}, { - label: 'Mars Party', - value: 'linear-gradient(to top, rgb(95,114,189) 0%, rgb(155,35,234) 100%)' -}, { - label: 'Eternal Constance', - value: 'linear-gradient(to top, rgb(9,32,63) 0%, rgb(83,120,149) 100%)' -}, { - label: 'Japan Blush', - value: 'linear-gradient(-20deg, rgb(221,214,243) 0%, rgb(250,172,168) 100%, rgb(250,172,168) 100%)' -}, { - label: 'Smiling Rain', - value: 'linear-gradient(-20deg, rgb(220,176,237) 0%, rgb(153,201,156) 100%)' -}, { - label: 'Cloudy Apple', - value: 'linear-gradient(to top, rgb(243,231,233) 0%, rgb(227,238,255) 99%, rgb(227,238,255) 100%)' -}, { - label: 'Big Mango', - value: 'linear-gradient(to top, rgb(199,29,111) 0%, rgb(208,150,147) 100%)' -}, { - label: 'Healthy Water', - value: 'linear-gradient(60deg, rgb(150,222,218) 0%, rgb(80,201,195) 100%)' -}, { - label: 'Amour Amour', - value: 'linear-gradient(to top, rgb(247,112,98) 0%, rgb(254,81,150) 100%)' -}, { - label: 'Risky Concrete', - value: 'linear-gradient(to top, rgb(196,197,199) 0%, rgb(220,221,223) 52%, rgb(235,235,235) 100%)' -}, { - label: 'Strong Stick', - value: 'linear-gradient(to right, rgb(168,202,186) 0%, rgb(93,65,87) 100%)' -}, { - label: 'Vicious Stance', - value: 'linear-gradient(60deg, rgb(41,50,60) 0%, rgb(72,85,99) 100%)' -}, { - label: 'Palo Alto', - value: 'linear-gradient(-60deg, rgb(22,160,133) 0%, rgb(244,208,63) 100%)' -}, { - label: 'Happy Memories', - value: 'linear-gradient(-60deg, rgb(255,88,88) 0%, rgb(240,152,25) 100%)' -}, { - label: 'Midnight Bloom', - value: 'linear-gradient(-20deg, rgb(43,88,118) 0%, rgb(78,67,118) 100%)' -}, { - label: 'Crystalline', - value: 'linear-gradient(-20deg, rgb(0,205,172) 0%, rgb(141,218,213) 100%)' -}, { - label: 'River City', - value: 'linear-gradient(to top, rgb(68,129,235) 0%, rgb(4,190,254) 100%)' -}, { - label: 'Confident Cloud', - value: 'linear-gradient(to top, rgb(218,212,236) 0%, rgb(218,212,236) 1%, rgb(243,231,233) 100%)' -}, { - label: 'Le Cocktail', - value: 'linear-gradient(45deg, rgb(135,77,162) 0%, rgb(196,58,48) 100%)' -}, { - label: 'Frozen Berry', - value: 'linear-gradient(to top, rgb(232,25,139) 0%, rgb(199,234,253) 100%)' -}, { - label: 'Child Care', - value: 'linear-gradient(-20deg, rgb(247,148,164) 0%, rgb(253,214,189) 100%)' -}, { - label: 'Flying Lemon', - value: 'linear-gradient(60deg, rgb(100,179,244) 0%, rgb(194,229,156) 100%)' -}, { - label: 'New Retrowave', - value: 'linear-gradient(to top, rgb(59,65,197) 0%, rgb(169,129,187) 49%, rgb(255,200,169) 100%)' -}, { - label: 'Hidden Jaguar', - value: 'linear-gradient(to top, rgb(15,216,80) 0%, rgb(249,240,71) 100%)' -}, { - label: 'Above The Sky', - value: 'linear-gradient(to top, lightgrey 0%, lightgrey 1%, rgb(224,224,224) 26%, rgb(239,239,239) 48%, rgb(217,217,217) 75%, rgb(188,188,188) 100%)' -}, { - label: 'Nega', - value: 'linear-gradient(45deg, rgb(238,156,167) 0%, rgb(255,221,225) 100%)' -}, { - label: 'Dense Water', - value: 'linear-gradient(to right, rgb(58,181,176) 0%, rgb(61,153,190) 31%, rgb(86,49,122) 100%)' -}, { - label: 'Seashore', - value: 'linear-gradient(to top, rgb(32,156,255) 0%, rgb(104,224,207) 100%)' -}, { - label: 'Marble Wall', - value: 'linear-gradient(to top, rgb(189,194,232) 0%, rgb(189,194,232) 1%, rgb(230,222,233) 100%)' -}, { - label: 'Cheerful Caramel', - value: 'linear-gradient(to top, rgb(230,185,128) 0%, rgb(234,205,163) 100%)' -}, { - label: 'Night Sky', - value: 'linear-gradient(to top, rgb(30,60,114) 0%, rgb(30,60,114) 1%, rgb(42,82,152) 100%)' -}, { - label: 'Magic Lake', - value: 'linear-gradient(to top, rgb(213,222,231) 0%, rgb(255,175,189) 0%, rgb(201,255,191) 100%)' -}, { - label: 'Young Grass', - value: 'linear-gradient(to top, rgb(155,225,93) 0%, rgb(0,227,174) 100%)' -}, { - label: 'Royal Garden', - value: 'linear-gradient(to right, rgb(237,110,160) 0%, rgb(236,140,105) 100%)' -}, { - label: 'Gentle Care', - value: 'linear-gradient(to right, rgb(255,195,160) 0%, rgb(255,175,189) 100%)' -}, { - label: 'Plum Bath', - value: 'linear-gradient(to top, rgb(204,32,142) 0%, rgb(103,19,210) 100%)' -}, { - label: 'Happy Unicorn', - value: 'linear-gradient(to top, rgb(179,255,171) 0%, rgb(18,255,247) 100%)' -}, { - label: 'African Field', - value: 'linear-gradient(-45deg, rgb(255,199,150) 0%, rgb(255,107,149) 100%)' -}, { - label: 'Solid Stone', - value: 'linear-gradient(to right, rgb(36,57,73) 0%, rgb(81,127,164) 100%)' -}, { - label: 'Orange Juice', - value: 'linear-gradient(-20deg, rgb(252,96,118) 0%, rgb(255,154,68) 100%)' -}, { - label: 'Glass Water', - value: 'linear-gradient(to top, rgb(223,233,243) 0%, white 100%)' -}, { - label: 'North Miracle', - value: 'linear-gradient(to right, rgb(0,219,222) 0%, rgb(252,0,255) 100%)' -}, { - label: 'Fruit Blend', - value: 'linear-gradient(to right, rgb(249,212,35) 0%, rgb(255,78,80) 100%)' -}, { - label: 'Millennium Pine', - value: 'linear-gradient(to top, rgb(80,204,127) 0%, rgb(245,209,0) 100%)' -}, { - label: 'High Flight', - value: 'linear-gradient(to right, rgb(10,207,254) 0%, rgb(73,90,255) 100%)' -}, { - label: 'Mole Hall', - value: 'linear-gradient(-20deg, rgb(97,97,97) 0%, rgb(155,197,195) 100%)' -}, { - label: 'Space Shift', - value: 'linear-gradient(60deg, rgb(61,51,147) 0%, rgb(43,118,185) 37%, rgb(44,172,209) 65%, rgb(53,235,147) 100%)' -}, { - label: 'Forest Inei', - value: 'linear-gradient(to top, rgb(223,137,181) 0%, rgb(191,217,254) 100%)' -}, { - label: 'Rich Metal', - value: 'linear-gradient(to right, rgb(215,210,204) 0%, rgb(48,67,82) 100%)' -}, { - label: 'Juicy Cake', - value: 'linear-gradient(to top, rgb(225,79,173) 0%, rgb(249,212,35) 100%)' -}, { - label: 'Smart Indigo', - value: 'linear-gradient(to top, rgb(178,36,239) 0%, rgb(117,121,255) 100%)' -}, { - label: 'Sand Strike', - value: 'linear-gradient(to right, rgb(193,193,97) 0%, rgb(193,193,97) 0%, rgb(212,212,177) 100%)' -}, { - label: 'Norse Beauty', - value: 'linear-gradient(to right, rgb(236,119,171) 0%, rgb(120,115,245) 100%)' -}, { - label: 'Aqua Guidance', - value: 'linear-gradient(to top, rgb(0,122,223) 0%, rgb(0,236,188) 100%)' -}, { - label: 'Sun Veggie', - value: 'linear-gradient(-225deg, rgb(32,226,215) 0%, rgb(249,254,165) 100%)' -}, { - label: 'Sea Lord', - value: 'linear-gradient(-225deg, rgb(44,216,213) 0%, rgb(197,193,255) 56%, rgb(255,186,195) 100%)' -}, { - label: 'Black Sea', - value: 'linear-gradient(-225deg, rgb(44,216,213) 0%, rgb(107,141,214) 48%, rgb(142,55,215) 100%)' -}, { - label: 'Grass Shampoo', - value: 'linear-gradient(-225deg, rgb(223,255,205) 0%, rgb(144,249,196) 48%, rgb(57,243,187) 100%)' -}, { - label: 'Landing Aircraft', - value: 'linear-gradient(-225deg, rgb(93,159,255) 0%, rgb(184,220,255) 48%, rgb(107,187,255) 100%)' -}, { - label: 'Witch Dance', - value: 'linear-gradient(-225deg, rgb(168,191,255) 0%, rgb(136,77,128) 100%)' -}, { - label: 'Sleepless Night', - value: 'linear-gradient(-225deg, rgb(82,113,196) 0%, rgb(177,159,255) 48%, rgb(236,161,254) 100%)' -}, { - label: 'Angel Care', - value: 'linear-gradient(-225deg, rgb(255,226,159) 0%, rgb(255,169,159) 48%, rgb(255,113,154) 100%)' -}, { - label: 'Crystal River', - value: 'linear-gradient(-225deg, rgb(34,225,255) 0%, rgb(29,143,225) 48%, rgb(98,94,177) 100%)' -}, { - label: 'Soft Lipstick', - value: 'linear-gradient(-225deg, rgb(182,206,232) 0%, rgb(245,120,220) 100%)' -}, { - label: 'Salt Mountain', - value: 'linear-gradient(-225deg, rgb(255,254,255) 0%, rgb(215,255,254) 100%)' -}, { - label: 'Perfect White', - value: 'linear-gradient(-225deg, rgb(227,253,245) 0%, rgb(255,230,250) 100%)' -}, { - label: 'Fresh Oasis', - value: 'linear-gradient(-225deg, rgb(125,226,252) 0%, rgb(185,182,229) 100%)' -}, { - label: 'Strict November', - value: 'linear-gradient(-225deg, rgb(203,186,204) 0%, rgb(37,128,179) 100%)' -}, { - label: 'Morning Salad', - value: 'linear-gradient(-225deg, rgb(183,248,219) 0%, rgb(80,167,194) 100%)' -}, { - label: 'Deep Relief', - value: 'linear-gradient(-225deg, rgb(112,133,182) 0%, rgb(135,167,217) 50%, rgb(222,243,248) 100%)' -}, { - label: 'Sea Strike', - value: 'linear-gradient(-225deg, rgb(119,255,210) 0%, rgb(98,151,219) 48%, rgb(30,236,255) 100%)' -}, { - label: 'Night Call', - value: 'linear-gradient(-225deg, rgb(172,50,228) 0%, rgb(121,24,242) 48%, rgb(72,1,255) 100%)' -}, { - label: 'Supreme Sky', - value: 'linear-gradient(-225deg, rgb(212,255,236) 0%, rgb(87,242,204) 48%, rgb(69,150,251) 100%)' -}, { - label: 'Light Blue', - value: 'linear-gradient(-225deg, rgb(158,251,211) 0%, rgb(87,233,242) 48%, rgb(69,212,251) 100%)' -}, { - label: 'Mind Crawl', - value: 'linear-gradient(-225deg, rgb(71,59,123) 0%, rgb(53,132,167) 51%, rgb(48,210,190) 100%)' -}, { - label: 'Lily Meadow', - value: 'linear-gradient(-225deg, rgb(101,55,155) 0%, rgb(136,106,234) 53%, rgb(100,87,198) 100%)' -}, { - label: 'Sugar Lollipop', - value: 'linear-gradient(-225deg, rgb(164,69,178) 0%, rgb(212,24,114) 52%, rgb(255,0,102) 100%)' -}, { - label: 'Sweet Dessert', - value: 'linear-gradient(-225deg, rgb(119,66,178) 0%, rgb(241,128,255) 52%, rgb(253,139,217) 100%)' -}, { - label: 'Magic Ray', - value: 'linear-gradient(-225deg, rgb(255,60,172) 0%, rgb(86,43,124) 52%, rgb(43,134,197) 100%)' -}, { - label: 'Teen Party', - value: 'linear-gradient(-225deg, rgb(255,5,124) 0%, rgb(141,11,147) 50%, rgb(50,21,117) 100%)' -}, { - label: 'Frozen Heat', - value: 'linear-gradient(-225deg, rgb(255,5,124) 0%, rgb(124,100,213) 48%, rgb(76,195,255) 100%)' -}, { - label: 'Gagarin View', - value: 'linear-gradient(-225deg, rgb(105,234,203) 0%, rgb(234,204,248) 48%, rgb(102,84,241) 100%)' -}, { - label: 'Fabled Sunset', - value: 'linear-gradient(-225deg, rgb(35,21,87) 0%, rgb(68,16,122) 29%, rgb(255,19,97) 67%, rgb(255,248,0) 100%)' -}, { - label: 'Perfect Blue', - value: 'linear-gradient(-225deg, rgb(61,78,129) 0%, rgb(87,83,201) 48%, rgb(110,127,243) 100%)' -}]; -var getRandomGradient = function getRandomGradient() { - var randomIndex = Math.floor(Math.random() * gradients.length); - return gradients[randomIndex].value; -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getRandomGradient); - -/***/ }), - -/***/ "./src/utils/SendCommand.js": -/*!**********************************!*\ - !*** ./src/utils/SendCommand.js ***! - \**********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ SendCommand) -/* harmony export */ }); -/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ "./node_modules/axios/lib/axios.js"); -/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! qs */ "./node_modules/qs/lib/index.js"); -/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__); -/* eslint-disable no-undef */ -/* eslint-disable camelcase */ - - - -/** - * Send a REST request via JS. - * - * @param {string} nonce The REST nonce. - * @param {Object} data The REST data to pass. - * @param {string} restEndPoint The REST endpoint to use. - * @param {string} method The REST method to use. Defaults to 'post'. - * @return {Promise} The REST request promise. - */ -function SendCommand(nonce, data, restEndPoint) { - var method = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'post'; - if ('undefined' === typeof data) { - data = {}; - } - var options = { - method: method, - url: restEndPoint, - params: data, - headers: { - 'X-WP-Nonce': nonce - }, - data: data - }; - return (0,axios__WEBPACK_IMPORTED_MODULE_1__["default"])(options); -} - -/***/ }), - -/***/ "./src/utils/ShorthandCSS.js": -/*!***********************************!*\ - !*** ./src/utils/ShorthandCSS.js ***! - \***********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ shorthandCSS) -/* harmony export */ }); -/* Credits: Forked from GenerateBlocks */ -function shorthandCSS(top, right, bottom, left, unit) { - if ('' === top && '' === right && '' === bottom && '' === left) { - return; - } - if (null === unit) { - unit = 'px'; - } - top = parseFloat(top) != 0 && '' !== top ? parseFloat(top) + unit + ' ' : '0 '; // eslint-disable-line eqeqeq - right = parseFloat(right) != 0 && '' !== right ? parseFloat(right) + unit + ' ' : '0 '; // eslint-disable-line eqeqeq - bottom = parseFloat(bottom) != 0 && '' !== bottom ? parseFloat(bottom) + unit + ' ' : '0 '; // eslint-disable-line eqeqeq - left = parseFloat(left) != 0 && '' !== left ? parseFloat(left) + unit + ' ' : '0 '; // eslint-disable-line eqeqeq - - if (right === left) { - left = ''; - if (top === bottom) { - bottom = ''; - if (top === right) { - right = ''; - } - } - } - var output = top + '' + right + '' + bottom + '' + left + ''; - return output.trim(); -} - -/***/ }), - -/***/ "./src/utils/TypographyHelper.js": -/*!***************************************!*\ - !*** ./src/utils/TypographyHelper.js ***! - \***************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ buildBorderCSS: () => (/* binding */ buildBorderCSS), -/* harmony export */ buildDimensionsCSS: () => (/* binding */ buildDimensionsCSS), -/* harmony export */ geHierarchicalPlaceholderValue: () => (/* binding */ geHierarchicalPlaceholderValue), -/* harmony export */ getHierarchicalValueUnit: () => (/* binding */ getHierarchicalValueUnit), -/* harmony export */ getHierarchicalValueUnitSync: () => (/* binding */ getHierarchicalValueUnitSync), -/* harmony export */ getValueWithUnit: () => (/* binding */ getValueWithUnit) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _ShorthandCSS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ShorthandCSS */ "./src/utils/ShorthandCSS.js"); - - -var shorthandCSSUnits = function shorthandCSSUnits(top, topUnit, right, rightUnit, bottom, bottomUnit, left, leftUnit) { - if ('' === top && '' === right && '' === bottom && '' === left) { - return; - } - - // Check if top, right, bottom, left are the strings. - if ('string' !== typeof top) { - top = parseFloat(top) != 0 && '' !== top ? parseFloat(top) + topUnit + ' ' : '0 '; // eslint-disable-line eqeqeq - } else { - top = "".concat(top).concat(topUnit, " "); - } - if ('string' !== typeof right) { - right = parseFloat(right) != 0 && '' !== right ? parseFloat(right) + rightUnit + ' ' : '0 '; // eslint-disable-line eqeqeq - } else { - right = "".concat(right).concat(rightUnit, " "); - } - if ('string' !== typeof bottom) { - bottom = parseFloat(bottom) != 0 && '' !== bottom ? parseFloat(bottom) + bottomUnit + ' ' : '0 '; // eslint-disable-line eqeqeq - } else { - bottom = "".concat(bottom).concat(bottomUnit, " "); - } - if ('string' !== typeof left) { - left = parseFloat(left) != 0 && '' !== left ? parseFloat(left) + leftUnit + ' ' : '0 '; // eslint-disable-line eqeqeq - } else { - left = "".concat(left).concat(leftUnit, " "); - } - if (right === left) { - left = ''; - if (top === bottom) { - bottom = ''; - if (top === right) { - right = ''; - } - } - } - var output = top + right + bottom + left; - return output.trim(); -}; - -/** - * Get a value with unit based on screen size. - * - * @param {string} screenSize desktop|tablet|mobile. - * @param {Object} valueObject Value object with unit. - * @param {string} cssValue CSS value. (e.g., width, height). Empty string if width is empty. - * - * @return {string} CSS value for screen size. - */ -var getValueWithUnit = function getValueWithUnit(screenSize, valueObject) { - var cssValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'width'; - var width = geHierarchicalPlaceholderValue(valueObject, screenSize, valueObject[screenSize].width, 'width'); // Width is misleading as it can also be height. - var unit = getHierarchicalValueUnit(valueObject, screenSize, valueObject[screenSize].unit, 'unit'); - - // Get RegEx to check for numbers only. IF not a match, then unit should be empty. - var numberOnly = width.match(/^(-)?[0-9]+$/); - if (numberOnly) { - return "".concat(width).concat(unit, ";"); - } - if ('' === width || '0' === width) { - return 'unset;'; - } - // Build CSS. - return "".concat(width, ";"); -}; - -/** - * Build CSS rules for dimensions and screen size. - * - * @param {Object} props Dimensions object. - * @param {string} screenSize mobile|tablet|desktop. - * - * @return {string} CSS rules. - */ -function buildDimensionsCSS(props, screenSize) { - screenSize = screenSize.toLowerCase(); - var dimensions = props[screenSize]; - if ('desktop' === screenSize) { - var unitSync = dimensions.unitSync; - if (unitSync) { - return (0,_ShorthandCSS__WEBPACK_IMPORTED_MODULE_1__["default"])(dimensions.top, dimensions.top, dimensions.top, dimensions.top, dimensions.topUnit); - } - var top = dimensions.top; - var topUnit = dimensions.topUnit; - var right = dimensions.right; - var rightUnit = dimensions.rightUnit; - var bottom = dimensions.bottom; - var bottomUnit = dimensions.bottomUnit; - var left = dimensions.left; - var leftUnit = dimensions.leftUnit; - return shorthandCSSUnits(top, topUnit, right, rightUnit, bottom, bottomUnit, left, leftUnit); - } - if ('tablet' === screenSize || 'mobile' === screenSize) { - if (true === getHierarchicalValueUnit(props, screenSize, dimensions.unitSync)) { - var topValue = geHierarchicalPlaceholderValue(props, screenSize, dimensions.top, 'top'); - var _topUnit = geHierarchicalPlaceholderValue(props, screenSize, dimensions.topUnit, 'topUnit'); - return (0,_ShorthandCSS__WEBPACK_IMPORTED_MODULE_1__["default"])(topValue, topValue, topValue, topValue, _topUnit); - } - var _top = geHierarchicalPlaceholderValue(props, screenSize, dimensions.top, 'top'); - var _topUnit2 = geHierarchicalPlaceholderValue(props, screenSize, dimensions.topUnit, 'topUnit'); - var _right = geHierarchicalPlaceholderValue(props, screenSize, dimensions.right, 'right'); - var _rightUnit = geHierarchicalPlaceholderValue(props, screenSize, dimensions.rightUnit, 'rightUnit'); - var _bottom = geHierarchicalPlaceholderValue(props, screenSize, dimensions.bottom, 'bottom'); - var _bottomUnit = geHierarchicalPlaceholderValue(props, screenSize, dimensions.bottomUnit, 'bottomUnit'); - var _left = geHierarchicalPlaceholderValue(props, screenSize, dimensions.left, 'left'); - var _leftUnit = geHierarchicalPlaceholderValue(props, screenSize, dimensions.leftUnit, 'leftUnit'); - return shorthandCSSUnits(_top, _topUnit2, _right, _rightUnit, _bottom, _bottomUnit, _left, _leftUnit); - } - return ''; -} - -/** - * Build CSS rules for border and screen size. - * - * @param {Object} props Dimensions object. - * @param {string} screenSize mobile|tablet|desktop. - * @param {string} prefix Prefix for CSS rules. - * - * @return {string} CSS rules. - */ -function buildBorderCSS(props, screenSize, prefix) { - screenSize = screenSize.toLowerCase(); - var border = props[screenSize]; - if (true === getHierarchicalValueUnit(props, screenSize, border.unitSync, 'unitSync')) { - var topValue = geHierarchicalPlaceholderValue(props, screenSize, border.top.width, 'top', 'width'); - var _topUnit3 = geHierarchicalPlaceholderValue(props, screenSize, border.top.unit, 'top', 'unit'); - var _topColor = geHierarchicalPlaceholderValue(props, screenSize, border.top.color, 'top', 'color'); - var _topBorderStyle = geHierarchicalPlaceholderValue(props, screenSize, border.top.borderStyle, 'top', 'borderStyle'); - var _CSSRule = ''; - _CSSRule += "".concat(prefix, "-border-top: ").concat(topValue).concat(_topUnit3, " ").concat(_topBorderStyle, " ").concat(_topColor, ";"); - _CSSRule += "".concat(prefix, "-border-right: ").concat(topValue).concat(_topUnit3, " ").concat(_topBorderStyle, " ").concat(rightColor, ";"); - _CSSRule += "".concat(prefix, "-border-bottom: ").concat(topValue).concat(_topUnit3, " ").concat(_topBorderStyle, " ").concat(bottomColor, ";"); - _CSSRule += "".concat(prefix, "-border-left: ").concat(topValue).concat(_topUnit3, " ").concat(_topBorderStyle, " ").concat(leftColor, ";"); - } - var top = geHierarchicalPlaceholderValue(props, screenSize, border.top.width, 'top', 'width'); - var topUnit = geHierarchicalPlaceholderValue(props, screenSize, border.top.unit, 'top', 'unit'); - var topColor = geHierarchicalPlaceholderValue(props, screenSize, border.top.color, 'top', 'color'); - var topBorderStyle = geHierarchicalPlaceholderValue(props, screenSize, border.top.borderStyle, 'top', 'borderStyle'); - var right = geHierarchicalPlaceholderValue(props, screenSize, border.right.width, 'right', 'width'); - var rightUnit = geHierarchicalPlaceholderValue(props, screenSize, border.right.unit, 'right', 'unit'); - var rightColor = geHierarchicalPlaceholderValue(props, screenSize, border.right.color, 'right', 'color'); - var rightBorderStyle = geHierarchicalPlaceholderValue(props, screenSize, border.right.borderStyle, 'right', 'borderStyle'); - var bottom = geHierarchicalPlaceholderValue(props, screenSize, border.bottom.width, 'bottom', 'width'); - var bottomUnit = geHierarchicalPlaceholderValue(props, screenSize, border.bottom.unit, 'bottom', 'unit'); - var bottomColor = geHierarchicalPlaceholderValue(props, screenSize, border.bottom.color, 'bottom', 'color'); - var bottomBorderStyle = geHierarchicalPlaceholderValue(props, screenSize, border.bottom.borderStyle, 'bottom', 'borderStyle'); - var left = geHierarchicalPlaceholderValue(props, screenSize, border.left.width, 'left', 'width'); - var leftUnit = geHierarchicalPlaceholderValue(props, screenSize, border.left.unit, 'left', 'unit'); - var leftColor = geHierarchicalPlaceholderValue(props, screenSize, border.left.color, 'left', 'color'); - var leftBorderStyle = geHierarchicalPlaceholderValue(props, screenSize, border.left.borderStyle, 'left', 'borderStyle'); - var CSSRule = ''; - CSSRule += "".concat(prefix, "-border-top: ").concat(top).concat(topUnit, " ").concat(topBorderStyle, " ").concat(topColor, ";"); - CSSRule += "".concat(prefix, "-border-right: ").concat(right).concat(rightUnit, " ").concat(rightBorderStyle, " ").concat(rightColor, ";"); - CSSRule += "".concat(prefix, "-border-bottom: ").concat(bottom).concat(bottomUnit, " ").concat(bottomBorderStyle, " ").concat(bottomColor, ";"); - CSSRule += "".concat(prefix, "-border-left: ").concat(left).concat(leftUnit, " ").concat(leftBorderStyle, " ").concat(leftColor, ";"); - return CSSRule; -} - -/** - * Get a value placeholder based on hierarchy. If the value is not set, get the value from the parent. - * - * @param {Object} props Values object. - * @param {string} screenSize mobile|tablet|desktop. - * @param {string} value Current value. - * @param {string} type Type of value (fontFamily, fontSize, fontWeight, letterSpacing, etc.). - * @param {string} subType Sub type of value (top: width, unit, color). - * - * @return {string} Value placeholder. - */ -function geHierarchicalPlaceholderValue(props, screenSize, value, type) { - var subType = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ''; - // Check mobile screen size. - if ('mobile' === screenSize && '' === value) { - // Check tablet. - if (subType && props.tablet[type][subType] !== '') { - return props.tablet[type][subType]; - } else if (subType && props.desktop[type][subType] !== '') { - // Check desktop. - return props.desktop[type][subType]; - } else if (props.tablet[type] !== '') { - return props.tablet[type]; - } else if (props.desktop[type] !== '') { - return props.desktop[type]; - } - } - - // Check tablet screen size. - if ('tablet' === screenSize && '' === value) { - if (subType && props.desktop[type][subType] !== '') { - // Check desktop. - return props.desktop[type][subType]; - } else if (props.desktop[type] !== '') { - return props.desktop[type]; - } - } - if ('' !== value) { - return value; - } - return ''; -} - -/** - * Get a value placeholder based on hierarchy. If the value is not set, get the value from the parent. - * - * @param {Object} props Values object. - * @param {string} screenSize mobile|tablet|desktop. - * @param {string} value Current value. - * @param {string} type Type of value (fontSizeUnit, etc.). - * @param {string} subType Sub type of value (top: width, unit, color). - * - * @return {string} Value default or hierarchical value. - */ -function getHierarchicalValueUnit(props, screenSize, value, type) { - var subType = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ''; - // Check mobile screen size. - if ('mobile' === screenSize && null === value) { - if (subType && props.tablet[type][subType] !== null) { - return props.tablet[type][subType]; - } else if (subType && props.desktop[type][subType] !== null) { - return props.desktop[type][subType]; - } else if (props.tablet[type] !== null) { - return props.tablet[type]; - } else if (props.desktop[type] !== null) { - return props.desktop[type]; - } - } - if ('tablet' === screenSize && null === value) { - if (subType && props.desktop[type][subType] !== null) { - return props.desktop[type][subType]; - } else if (props.desktop[type] !== null) { - return props.desktop[type]; - } - } - if (null === value || typeof value === 'undefined') { - return 'px'; - } - return value; -} - -/** - * Get a value based on hierarchy. If the value is not set, get the value from the parent. - * - * @param {Object} props Values object. - * @param {string} screenSize mobile|tablet|desktop. - * @param {string} value Current value. - * - * @return {boolean} Value default or hierarchical value. - */ -function getHierarchicalValueUnitSync(props, screenSize, value) { - // Check mobile screen size. - if ('mobile' === screenSize && null === value) { - if (null === props.tablet.unitSync) { - return props.desktop.unitSync; - } - return props.tablet.unitSync; - } - if ('tablet' === screenSize && null === value) { - return props.desktop.unitSync; - } - if (null === value) { - return true; - } - return value; -} - -/***/ }), - -/***/ "./src/utils/UnitsList.js": -/*!********************************!*\ - !*** ./src/utils/UnitsList.js ***! - \********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* Forked from GenerateBlocks */ -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ([ -// Popular units. -'px', 'em', '%', 'rem', 'vw', 'vh', 'ch', -// Absolute length units. -'cm', 'mm', 'in', 'pt', 'pc', -// Relative length units. -'ex', 'lh', 'rlh', 'vmin', 'vmax', 'vb', 'vi', 'svw', 'svh', 'svb', 'svi', 'svmax', 'svmin', 'lvw', 'lvh', 'lvb', 'lvi', 'lvmax', 'lvmin', 'dvw', 'dvh', 'dvb', 'dvi', 'dvmax', 'dvmin', 'fr']); - -/***/ }), - -/***/ "./node_modules/call-bind/callBound.js": -/*!*********************************************!*\ - !*** ./node_modules/call-bind/callBound.js ***! - \*********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js"); - -var callBind = __webpack_require__(/*! ./ */ "./node_modules/call-bind/index.js"); - -var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); - -module.exports = function callBoundIntrinsic(name, allowMissing) { - var intrinsic = GetIntrinsic(name, !!allowMissing); - if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { - return callBind(intrinsic); - } - return intrinsic; -}; - - -/***/ }), - -/***/ "./node_modules/call-bind/index.js": -/*!*****************************************!*\ - !*** ./node_modules/call-bind/index.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js"); -var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js"); -var setFunctionLength = __webpack_require__(/*! set-function-length */ "./node_modules/set-function-length/index.js"); - -var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js"); -var $apply = GetIntrinsic('%Function.prototype.apply%'); -var $call = GetIntrinsic('%Function.prototype.call%'); -var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); - -var $defineProperty = __webpack_require__(/*! es-define-property */ "./node_modules/es-define-property/index.js"); -var $max = GetIntrinsic('%Math.max%'); - -module.exports = function callBind(originalFunction) { - if (typeof originalFunction !== 'function') { - throw new $TypeError('a function is required'); - } - var func = $reflectApply(bind, $call, arguments); - return setFunctionLength( - func, - 1 + $max(0, originalFunction.length - (arguments.length - 1)), - true - ); -}; - -var applyBind = function applyBind() { - return $reflectApply(bind, $apply, arguments); -}; - -if ($defineProperty) { - $defineProperty(module.exports, 'apply', { value: applyBind }); -} else { - module.exports.apply = applyBind; -} - - -/***/ }), - -/***/ "./node_modules/classnames/index.js": -/*!******************************************!*\ - !*** ./node_modules/classnames/index.js ***! - \******************************************/ -/***/ ((module, exports) => { - -var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/ -/* global define */ - -(function () { - 'use strict'; - - var hasOwn = {}.hasOwnProperty; - var nativeCodeString = '[native code]'; - - function classNames() { - var classes = []; - - for (var i = 0; i < arguments.length; i++) { - var arg = arguments[i]; - if (!arg) continue; - - var argType = typeof arg; - - if (argType === 'string' || argType === 'number') { - classes.push(arg); - } else if (Array.isArray(arg)) { - if (arg.length) { - var inner = classNames.apply(null, arg); - if (inner) { - classes.push(inner); - } - } - } else if (argType === 'object') { - if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) { - classes.push(arg.toString()); - continue; - } - - for (var key in arg) { - if (hasOwn.call(arg, key) && arg[key]) { - classes.push(key); - } - } - } - } - - return classes.join(' '); - } - - if ( true && module.exports) { - classNames.default = classNames; - module.exports = classNames; - } else if (true) { - // register as 'classnames', consistent with npm package name - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { - return classNames; - }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else {} -}()); - - -/***/ }), - -/***/ "./node_modules/define-data-property/index.js": -/*!****************************************************!*\ - !*** ./node_modules/define-data-property/index.js ***! - \****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var $defineProperty = __webpack_require__(/*! es-define-property */ "./node_modules/es-define-property/index.js"); - -var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "./node_modules/es-errors/syntax.js"); -var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js"); - -var gopd = __webpack_require__(/*! gopd */ "./node_modules/gopd/index.js"); - -/** @type {import('.')} */ -module.exports = function defineDataProperty( - obj, - property, - value -) { - if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) { - throw new $TypeError('`obj` must be an object or a function`'); - } - if (typeof property !== 'string' && typeof property !== 'symbol') { - throw new $TypeError('`property` must be a string or a symbol`'); - } - if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) { - throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null'); - } - if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) { - throw new $TypeError('`nonWritable`, if provided, must be a boolean or null'); - } - if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) { - throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null'); - } - if (arguments.length > 6 && typeof arguments[6] !== 'boolean') { - throw new $TypeError('`loose`, if provided, must be a boolean'); - } - - var nonEnumerable = arguments.length > 3 ? arguments[3] : null; - var nonWritable = arguments.length > 4 ? arguments[4] : null; - var nonConfigurable = arguments.length > 5 ? arguments[5] : null; - var loose = arguments.length > 6 ? arguments[6] : false; - - /* @type {false | TypedPropertyDescriptor} */ - var desc = !!gopd && gopd(obj, property); - - if ($defineProperty) { - $defineProperty(obj, property, { - configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable, - enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable, - value: value, - writable: nonWritable === null && desc ? desc.writable : !nonWritable - }); - } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) { - // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable - obj[property] = value; // eslint-disable-line no-param-reassign - } else { - throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.'); - } -}; - - -/***/ }), - -/***/ "./node_modules/dom-serializer/lib/foreignNames.js": -/*!*********************************************************!*\ - !*** ./node_modules/dom-serializer/lib/foreignNames.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.attributeNames = exports.elementNames = void 0; -exports.elementNames = new Map([ - "altGlyph", - "altGlyphDef", - "altGlyphItem", - "animateColor", - "animateMotion", - "animateTransform", - "clipPath", - "feBlend", - "feColorMatrix", - "feComponentTransfer", - "feComposite", - "feConvolveMatrix", - "feDiffuseLighting", - "feDisplacementMap", - "feDistantLight", - "feDropShadow", - "feFlood", - "feFuncA", - "feFuncB", - "feFuncG", - "feFuncR", - "feGaussianBlur", - "feImage", - "feMerge", - "feMergeNode", - "feMorphology", - "feOffset", - "fePointLight", - "feSpecularLighting", - "feSpotLight", - "feTile", - "feTurbulence", - "foreignObject", - "glyphRef", - "linearGradient", - "radialGradient", - "textPath", -].map(function (val) { return [val.toLowerCase(), val]; })); -exports.attributeNames = new Map([ - "definitionURL", - "attributeName", - "attributeType", - "baseFrequency", - "baseProfile", - "calcMode", - "clipPathUnits", - "diffuseConstant", - "edgeMode", - "filterUnits", - "glyphRef", - "gradientTransform", - "gradientUnits", - "kernelMatrix", - "kernelUnitLength", - "keyPoints", - "keySplines", - "keyTimes", - "lengthAdjust", - "limitingConeAngle", - "markerHeight", - "markerUnits", - "markerWidth", - "maskContentUnits", - "maskUnits", - "numOctaves", - "pathLength", - "patternContentUnits", - "patternTransform", - "patternUnits", - "pointsAtX", - "pointsAtY", - "pointsAtZ", - "preserveAlpha", - "preserveAspectRatio", - "primitiveUnits", - "refX", - "refY", - "repeatCount", - "repeatDur", - "requiredExtensions", - "requiredFeatures", - "specularConstant", - "specularExponent", - "spreadMethod", - "startOffset", - "stdDeviation", - "stitchTiles", - "surfaceScale", - "systemLanguage", - "tableValues", - "targetX", - "targetY", - "textLength", - "viewBox", - "viewTarget", - "xChannelSelector", - "yChannelSelector", - "zoomAndPan", -].map(function (val) { return [val.toLowerCase(), val]; })); - - -/***/ }), - -/***/ "./node_modules/dom-serializer/lib/index.js": -/*!**************************************************!*\ - !*** ./node_modules/dom-serializer/lib/index.js ***! - \**************************************************/ -/***/ (function(__unused_webpack_module, exports, __webpack_require__) { - -"use strict"; - -var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); -}; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.render = void 0; -/* - * Module dependencies - */ -var ElementType = __importStar(__webpack_require__(/*! domelementtype */ "./node_modules/domelementtype/lib/index.js")); -var entities_1 = __webpack_require__(/*! entities */ "./node_modules/entities/lib/index.js"); -/** - * Mixed-case SVG and MathML tags & attributes - * recognized by the HTML parser. - * - * @see https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign - */ -var foreignNames_js_1 = __webpack_require__(/*! ./foreignNames.js */ "./node_modules/dom-serializer/lib/foreignNames.js"); -var unencodedElements = new Set([ - "style", - "script", - "xmp", - "iframe", - "noembed", - "noframes", - "plaintext", - "noscript", -]); -function replaceQuotes(value) { - return value.replace(/"/g, """); -} -/** - * Format attributes - */ -function formatAttributes(attributes, opts) { - var _a; - if (!attributes) - return; - var encode = ((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) === false - ? replaceQuotes - : opts.xmlMode || opts.encodeEntities !== "utf8" - ? entities_1.encodeXML - : entities_1.escapeAttribute; - return Object.keys(attributes) - .map(function (key) { - var _a, _b; - var value = (_a = attributes[key]) !== null && _a !== void 0 ? _a : ""; - if (opts.xmlMode === "foreign") { - /* Fix up mixed-case attribute names */ - key = (_b = foreignNames_js_1.attributeNames.get(key)) !== null && _b !== void 0 ? _b : key; - } - if (!opts.emptyAttrs && !opts.xmlMode && value === "") { - return key; - } - return "".concat(key, "=\"").concat(encode(value), "\""); - }) - .join(" "); -} -/** - * Self-enclosing tags - */ -var singleTag = new Set([ - "area", - "base", - "basefont", - "br", - "col", - "command", - "embed", - "frame", - "hr", - "img", - "input", - "isindex", - "keygen", - "link", - "meta", - "param", - "source", - "track", - "wbr", -]); -/** - * Renders a DOM node or an array of DOM nodes to a string. - * - * Can be thought of as the equivalent of the `outerHTML` of the passed node(s). - * - * @param node Node to be rendered. - * @param options Changes serialization behavior - */ -function render(node, options) { - if (options === void 0) { options = {}; } - var nodes = "length" in node ? node : [node]; - var output = ""; - for (var i = 0; i < nodes.length; i++) { - output += renderNode(nodes[i], options); - } - return output; -} -exports.render = render; -exports["default"] = render; -function renderNode(node, options) { - switch (node.type) { - case ElementType.Root: - return render(node.children, options); - // @ts-expect-error We don't use `Doctype` yet - case ElementType.Doctype: - case ElementType.Directive: - return renderDirective(node); - case ElementType.Comment: - return renderComment(node); - case ElementType.CDATA: - return renderCdata(node); - case ElementType.Script: - case ElementType.Style: - case ElementType.Tag: - return renderTag(node, options); - case ElementType.Text: - return renderText(node, options); - } -} -var foreignModeIntegrationPoints = new Set([ - "mi", - "mo", - "mn", - "ms", - "mtext", - "annotation-xml", - "foreignObject", - "desc", - "title", -]); -var foreignElements = new Set(["svg", "math"]); -function renderTag(elem, opts) { - var _a; - // Handle SVG / MathML in HTML - if (opts.xmlMode === "foreign") { - /* Fix up mixed-case element names */ - elem.name = (_a = foreignNames_js_1.elementNames.get(elem.name)) !== null && _a !== void 0 ? _a : elem.name; - /* Exit foreign mode at integration points */ - if (elem.parent && - foreignModeIntegrationPoints.has(elem.parent.name)) { - opts = __assign(__assign({}, opts), { xmlMode: false }); - } - } - if (!opts.xmlMode && foreignElements.has(elem.name)) { - opts = __assign(__assign({}, opts), { xmlMode: "foreign" }); - } - var tag = "<".concat(elem.name); - var attribs = formatAttributes(elem.attribs, opts); - if (attribs) { - tag += " ".concat(attribs); - } - if (elem.children.length === 0 && - (opts.xmlMode - ? // In XML mode or foreign mode, and user hasn't explicitly turned off self-closing tags - opts.selfClosingTags !== false - : // User explicitly asked for self-closing tags, even in HTML mode - opts.selfClosingTags && singleTag.has(elem.name))) { - if (!opts.xmlMode) - tag += " "; - tag += "/>"; - } - else { - tag += ">"; - if (elem.children.length > 0) { - tag += render(elem.children, opts); - } - if (opts.xmlMode || !singleTag.has(elem.name)) { - tag += ""); - } - } - return tag; -} -function renderDirective(elem) { - return "<".concat(elem.data, ">"); -} -function renderText(elem, opts) { - var _a; - var data = elem.data || ""; - // If entities weren't decoded, no need to encode them back - if (((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) !== false && - !(!opts.xmlMode && - elem.parent && - unencodedElements.has(elem.parent.name))) { - data = - opts.xmlMode || opts.encodeEntities !== "utf8" - ? (0, entities_1.encodeXML)(data) - : (0, entities_1.escapeText)(data); - } - return data; -} -function renderCdata(elem) { - return ""); -} -function renderComment(elem) { - return ""); -} - - -/***/ }), - -/***/ "./node_modules/domelementtype/lib/index.js": -/*!**************************************************!*\ - !*** ./node_modules/domelementtype/lib/index.js ***! - \**************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0; -/** Types of elements found in htmlparser2's DOM */ -var ElementType; -(function (ElementType) { - /** Type for the root element of a document */ - ElementType["Root"] = "root"; - /** Type for Text */ - ElementType["Text"] = "text"; - /** Type for */ - ElementType["Directive"] = "directive"; - /** Type for */ - ElementType["Comment"] = "comment"; - /** Type for `. - this.sequenceIndex = Number(c === CharCodes.Lt); - } - }; - Tokenizer.prototype.stateCDATASequence = function (c) { - if (c === Sequences.Cdata[this.sequenceIndex]) { - if (++this.sequenceIndex === Sequences.Cdata.length) { - this.state = State.InCommentLike; - this.currentSequence = Sequences.CdataEnd; - this.sequenceIndex = 0; - this.sectionStart = this.index + 1; - } - } - else { - this.sequenceIndex = 0; - this.state = State.InDeclaration; - this.stateInDeclaration(c); // Reconsume the character - } - }; - /** - * When we wait for one specific character, we can speed things up - * by skipping through the buffer until we find it. - * - * @returns Whether the character was found. - */ - Tokenizer.prototype.fastForwardTo = function (c) { - while (++this.index < this.buffer.length + this.offset) { - if (this.buffer.charCodeAt(this.index - this.offset) === c) { - return true; - } - } - /* - * We increment the index at the end of the `parse` loop, - * so set it to `buffer.length - 1` here. - * - * TODO: Refactor `parse` to increment index before calling states. - */ - this.index = this.buffer.length + this.offset - 1; - return false; - }; - /** - * Comments and CDATA end with `-->` and `]]>`. - * - * Their common qualities are: - * - Their end sequences have a distinct character they start with. - * - That character is then repeated, so we have to check multiple repeats. - * - All characters but the start character of the sequence can be skipped. - */ - Tokenizer.prototype.stateInCommentLike = function (c) { - if (c === this.currentSequence[this.sequenceIndex]) { - if (++this.sequenceIndex === this.currentSequence.length) { - if (this.currentSequence === Sequences.CdataEnd) { - this.cbs.oncdata(this.sectionStart, this.index, 2); - } - else { - this.cbs.oncomment(this.sectionStart, this.index, 2); - } - this.sequenceIndex = 0; - this.sectionStart = this.index + 1; - this.state = State.Text; - } - } - else if (this.sequenceIndex === 0) { - // Fast-forward to the first character of the sequence - if (this.fastForwardTo(this.currentSequence[0])) { - this.sequenceIndex = 1; - } - } - else if (c !== this.currentSequence[this.sequenceIndex - 1]) { - // Allow long sequences, eg. --->, ]]]> - this.sequenceIndex = 0; - } - }; - /** - * HTML only allows ASCII alpha characters (a-z and A-Z) at the beginning of a tag name. - * - * XML allows a lot more characters here (@see https://www.w3.org/TR/REC-xml/#NT-NameStartChar). - * We allow anything that wouldn't end the tag. - */ - Tokenizer.prototype.isTagStartChar = function (c) { - return this.xmlMode ? !isEndOfTagSection(c) : isASCIIAlpha(c); - }; - Tokenizer.prototype.startSpecial = function (sequence, offset) { - this.isSpecial = true; - this.currentSequence = sequence; - this.sequenceIndex = offset; - this.state = State.SpecialStartSequence; - }; - Tokenizer.prototype.stateBeforeTagName = function (c) { - if (c === CharCodes.ExclamationMark) { - this.state = State.BeforeDeclaration; - this.sectionStart = this.index + 1; - } - else if (c === CharCodes.Questionmark) { - this.state = State.InProcessingInstruction; - this.sectionStart = this.index + 1; - } - else if (this.isTagStartChar(c)) { - var lower = c | 0x20; - this.sectionStart = this.index; - if (!this.xmlMode && lower === Sequences.TitleEnd[2]) { - this.startSpecial(Sequences.TitleEnd, 3); - } - else { - this.state = - !this.xmlMode && lower === Sequences.ScriptEnd[2] - ? State.BeforeSpecialS - : State.InTagName; - } - } - else if (c === CharCodes.Slash) { - this.state = State.BeforeClosingTagName; - } - else { - this.state = State.Text; - this.stateText(c); - } - }; - Tokenizer.prototype.stateInTagName = function (c) { - if (isEndOfTagSection(c)) { - this.cbs.onopentagname(this.sectionStart, this.index); - this.sectionStart = -1; - this.state = State.BeforeAttributeName; - this.stateBeforeAttributeName(c); - } - }; - Tokenizer.prototype.stateBeforeClosingTagName = function (c) { - if (isWhitespace(c)) { - // Ignore - } - else if (c === CharCodes.Gt) { - this.state = State.Text; - } - else { - this.state = this.isTagStartChar(c) - ? State.InClosingTagName - : State.InSpecialComment; - this.sectionStart = this.index; - } - }; - Tokenizer.prototype.stateInClosingTagName = function (c) { - if (c === CharCodes.Gt || isWhitespace(c)) { - this.cbs.onclosetag(this.sectionStart, this.index); - this.sectionStart = -1; - this.state = State.AfterClosingTagName; - this.stateAfterClosingTagName(c); - } - }; - Tokenizer.prototype.stateAfterClosingTagName = function (c) { - // Skip everything until ">" - if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) { - this.state = State.Text; - this.baseState = State.Text; - this.sectionStart = this.index + 1; - } - }; - Tokenizer.prototype.stateBeforeAttributeName = function (c) { - if (c === CharCodes.Gt) { - this.cbs.onopentagend(this.index); - if (this.isSpecial) { - this.state = State.InSpecialTag; - this.sequenceIndex = 0; - } - else { - this.state = State.Text; - } - this.baseState = this.state; - this.sectionStart = this.index + 1; - } - else if (c === CharCodes.Slash) { - this.state = State.InSelfClosingTag; - } - else if (!isWhitespace(c)) { - this.state = State.InAttributeName; - this.sectionStart = this.index; - } - }; - Tokenizer.prototype.stateInSelfClosingTag = function (c) { - if (c === CharCodes.Gt) { - this.cbs.onselfclosingtag(this.index); - this.state = State.Text; - this.baseState = State.Text; - this.sectionStart = this.index + 1; - this.isSpecial = false; // Reset special state, in case of self-closing special tags - } - else if (!isWhitespace(c)) { - this.state = State.BeforeAttributeName; - this.stateBeforeAttributeName(c); - } - }; - Tokenizer.prototype.stateInAttributeName = function (c) { - if (c === CharCodes.Eq || isEndOfTagSection(c)) { - this.cbs.onattribname(this.sectionStart, this.index); - this.sectionStart = -1; - this.state = State.AfterAttributeName; - this.stateAfterAttributeName(c); - } - }; - Tokenizer.prototype.stateAfterAttributeName = function (c) { - if (c === CharCodes.Eq) { - this.state = State.BeforeAttributeValue; - } - else if (c === CharCodes.Slash || c === CharCodes.Gt) { - this.cbs.onattribend(QuoteType.NoValue, this.index); - this.state = State.BeforeAttributeName; - this.stateBeforeAttributeName(c); - } - else if (!isWhitespace(c)) { - this.cbs.onattribend(QuoteType.NoValue, this.index); - this.state = State.InAttributeName; - this.sectionStart = this.index; - } - }; - Tokenizer.prototype.stateBeforeAttributeValue = function (c) { - if (c === CharCodes.DoubleQuote) { - this.state = State.InAttributeValueDq; - this.sectionStart = this.index + 1; - } - else if (c === CharCodes.SingleQuote) { - this.state = State.InAttributeValueSq; - this.sectionStart = this.index + 1; - } - else if (!isWhitespace(c)) { - this.sectionStart = this.index; - this.state = State.InAttributeValueNq; - this.stateInAttributeValueNoQuotes(c); // Reconsume token - } - }; - Tokenizer.prototype.handleInAttributeValue = function (c, quote) { - if (c === quote || - (!this.decodeEntities && this.fastForwardTo(quote))) { - this.cbs.onattribdata(this.sectionStart, this.index); - this.sectionStart = -1; - this.cbs.onattribend(quote === CharCodes.DoubleQuote - ? QuoteType.Double - : QuoteType.Single, this.index); - this.state = State.BeforeAttributeName; - } - else if (this.decodeEntities && c === CharCodes.Amp) { - this.baseState = this.state; - this.state = State.BeforeEntity; - } - }; - Tokenizer.prototype.stateInAttributeValueDoubleQuotes = function (c) { - this.handleInAttributeValue(c, CharCodes.DoubleQuote); - }; - Tokenizer.prototype.stateInAttributeValueSingleQuotes = function (c) { - this.handleInAttributeValue(c, CharCodes.SingleQuote); - }; - Tokenizer.prototype.stateInAttributeValueNoQuotes = function (c) { - if (isWhitespace(c) || c === CharCodes.Gt) { - this.cbs.onattribdata(this.sectionStart, this.index); - this.sectionStart = -1; - this.cbs.onattribend(QuoteType.Unquoted, this.index); - this.state = State.BeforeAttributeName; - this.stateBeforeAttributeName(c); - } - else if (this.decodeEntities && c === CharCodes.Amp) { - this.baseState = this.state; - this.state = State.BeforeEntity; - } - }; - Tokenizer.prototype.stateBeforeDeclaration = function (c) { - if (c === CharCodes.OpeningSquareBracket) { - this.state = State.CDATASequence; - this.sequenceIndex = 0; - } - else { - this.state = - c === CharCodes.Dash - ? State.BeforeComment - : State.InDeclaration; - } - }; - Tokenizer.prototype.stateInDeclaration = function (c) { - if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) { - this.cbs.ondeclaration(this.sectionStart, this.index); - this.state = State.Text; - this.sectionStart = this.index + 1; - } - }; - Tokenizer.prototype.stateInProcessingInstruction = function (c) { - if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) { - this.cbs.onprocessinginstruction(this.sectionStart, this.index); - this.state = State.Text; - this.sectionStart = this.index + 1; - } - }; - Tokenizer.prototype.stateBeforeComment = function (c) { - if (c === CharCodes.Dash) { - this.state = State.InCommentLike; - this.currentSequence = Sequences.CommentEnd; - // Allow short comments (eg. ) - this.sequenceIndex = 2; - this.sectionStart = this.index + 1; - } - else { - this.state = State.InDeclaration; - } - }; - Tokenizer.prototype.stateInSpecialComment = function (c) { - if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) { - this.cbs.oncomment(this.sectionStart, this.index, 0); - this.state = State.Text; - this.sectionStart = this.index + 1; - } - }; - Tokenizer.prototype.stateBeforeSpecialS = function (c) { - var lower = c | 0x20; - if (lower === Sequences.ScriptEnd[3]) { - this.startSpecial(Sequences.ScriptEnd, 4); - } - else if (lower === Sequences.StyleEnd[3]) { - this.startSpecial(Sequences.StyleEnd, 4); - } - else { - this.state = State.InTagName; - this.stateInTagName(c); // Consume the token again - } - }; - Tokenizer.prototype.stateBeforeEntity = function (c) { - // Start excess with 1 to include the '&' - this.entityExcess = 1; - this.entityResult = 0; - if (c === CharCodes.Number) { - this.state = State.BeforeNumericEntity; - } - else if (c === CharCodes.Amp) { - // We have two `&` characters in a row. Stay in the current state. - } - else { - this.trieIndex = 0; - this.trieCurrent = this.entityTrie[0]; - this.state = State.InNamedEntity; - this.stateInNamedEntity(c); - } - }; - Tokenizer.prototype.stateInNamedEntity = function (c) { - this.entityExcess += 1; - this.trieIndex = (0, decode_js_1.determineBranch)(this.entityTrie, this.trieCurrent, this.trieIndex + 1, c); - if (this.trieIndex < 0) { - this.emitNamedEntity(); - this.index--; - return; - } - this.trieCurrent = this.entityTrie[this.trieIndex]; - var masked = this.trieCurrent & decode_js_1.BinTrieFlags.VALUE_LENGTH; - // If the branch is a value, store it and continue - if (masked) { - // The mask is the number of bytes of the value, including the current byte. - var valueLength = (masked >> 14) - 1; - // If we have a legacy entity while parsing strictly, just skip the number of bytes - if (!this.allowLegacyEntity() && c !== CharCodes.Semi) { - this.trieIndex += valueLength; - } - else { - // Add 1 as we have already incremented the excess - var entityStart = this.index - this.entityExcess + 1; - if (entityStart > this.sectionStart) { - this.emitPartial(this.sectionStart, entityStart); - } - // If this is a surrogate pair, consume the next two bytes - this.entityResult = this.trieIndex; - this.trieIndex += valueLength; - this.entityExcess = 0; - this.sectionStart = this.index + 1; - if (valueLength === 0) { - this.emitNamedEntity(); - } - } - } - }; - Tokenizer.prototype.emitNamedEntity = function () { - this.state = this.baseState; - if (this.entityResult === 0) { - return; - } - var valueLength = (this.entityTrie[this.entityResult] & decode_js_1.BinTrieFlags.VALUE_LENGTH) >> - 14; - switch (valueLength) { - case 1: { - this.emitCodePoint(this.entityTrie[this.entityResult] & - ~decode_js_1.BinTrieFlags.VALUE_LENGTH); - break; - } - case 2: { - this.emitCodePoint(this.entityTrie[this.entityResult + 1]); - break; - } - case 3: { - this.emitCodePoint(this.entityTrie[this.entityResult + 1]); - this.emitCodePoint(this.entityTrie[this.entityResult + 2]); - } - } - }; - Tokenizer.prototype.stateBeforeNumericEntity = function (c) { - if ((c | 0x20) === CharCodes.LowerX) { - this.entityExcess++; - this.state = State.InHexEntity; - } - else { - this.state = State.InNumericEntity; - this.stateInNumericEntity(c); - } - }; - Tokenizer.prototype.emitNumericEntity = function (strict) { - var entityStart = this.index - this.entityExcess - 1; - var numberStart = entityStart + 2 + Number(this.state === State.InHexEntity); - if (numberStart !== this.index) { - // Emit leading data if any - if (entityStart > this.sectionStart) { - this.emitPartial(this.sectionStart, entityStart); - } - this.sectionStart = this.index + Number(strict); - this.emitCodePoint((0, decode_js_1.replaceCodePoint)(this.entityResult)); - } - this.state = this.baseState; - }; - Tokenizer.prototype.stateInNumericEntity = function (c) { - if (c === CharCodes.Semi) { - this.emitNumericEntity(true); - } - else if (isNumber(c)) { - this.entityResult = this.entityResult * 10 + (c - CharCodes.Zero); - this.entityExcess++; - } - else { - if (this.allowLegacyEntity()) { - this.emitNumericEntity(false); - } - else { - this.state = this.baseState; - } - this.index--; - } - }; - Tokenizer.prototype.stateInHexEntity = function (c) { - if (c === CharCodes.Semi) { - this.emitNumericEntity(true); - } - else if (isNumber(c)) { - this.entityResult = this.entityResult * 16 + (c - CharCodes.Zero); - this.entityExcess++; - } - else if (isHexDigit(c)) { - this.entityResult = - this.entityResult * 16 + ((c | 0x20) - CharCodes.LowerA + 10); - this.entityExcess++; - } - else { - if (this.allowLegacyEntity()) { - this.emitNumericEntity(false); - } - else { - this.state = this.baseState; - } - this.index--; - } - }; - Tokenizer.prototype.allowLegacyEntity = function () { - return (!this.xmlMode && - (this.baseState === State.Text || - this.baseState === State.InSpecialTag)); - }; - /** - * Remove data that has already been consumed from the buffer. - */ - Tokenizer.prototype.cleanup = function () { - // If we are inside of text or attributes, emit what we already have. - if (this.running && this.sectionStart !== this.index) { - if (this.state === State.Text || - (this.state === State.InSpecialTag && this.sequenceIndex === 0)) { - this.cbs.ontext(this.sectionStart, this.index); - this.sectionStart = this.index; - } - else if (this.state === State.InAttributeValueDq || - this.state === State.InAttributeValueSq || - this.state === State.InAttributeValueNq) { - this.cbs.onattribdata(this.sectionStart, this.index); - this.sectionStart = this.index; - } - } - }; - Tokenizer.prototype.shouldContinue = function () { - return this.index < this.buffer.length + this.offset && this.running; - }; - /** - * Iterates through the buffer, calling the function corresponding to the current state. - * - * States that are more likely to be hit are higher up, as a performance improvement. - */ - Tokenizer.prototype.parse = function () { - while (this.shouldContinue()) { - var c = this.buffer.charCodeAt(this.index - this.offset); - switch (this.state) { - case State.Text: { - this.stateText(c); - break; - } - case State.SpecialStartSequence: { - this.stateSpecialStartSequence(c); - break; - } - case State.InSpecialTag: { - this.stateInSpecialTag(c); - break; - } - case State.CDATASequence: { - this.stateCDATASequence(c); - break; - } - case State.InAttributeValueDq: { - this.stateInAttributeValueDoubleQuotes(c); - break; - } - case State.InAttributeName: { - this.stateInAttributeName(c); - break; - } - case State.InCommentLike: { - this.stateInCommentLike(c); - break; - } - case State.InSpecialComment: { - this.stateInSpecialComment(c); - break; - } - case State.BeforeAttributeName: { - this.stateBeforeAttributeName(c); - break; - } - case State.InTagName: { - this.stateInTagName(c); - break; - } - case State.InClosingTagName: { - this.stateInClosingTagName(c); - break; - } - case State.BeforeTagName: { - this.stateBeforeTagName(c); - break; - } - case State.AfterAttributeName: { - this.stateAfterAttributeName(c); - break; - } - case State.InAttributeValueSq: { - this.stateInAttributeValueSingleQuotes(c); - break; - } - case State.BeforeAttributeValue: { - this.stateBeforeAttributeValue(c); - break; - } - case State.BeforeClosingTagName: { - this.stateBeforeClosingTagName(c); - break; - } - case State.AfterClosingTagName: { - this.stateAfterClosingTagName(c); - break; - } - case State.BeforeSpecialS: { - this.stateBeforeSpecialS(c); - break; - } - case State.InAttributeValueNq: { - this.stateInAttributeValueNoQuotes(c); - break; - } - case State.InSelfClosingTag: { - this.stateInSelfClosingTag(c); - break; - } - case State.InDeclaration: { - this.stateInDeclaration(c); - break; - } - case State.BeforeDeclaration: { - this.stateBeforeDeclaration(c); - break; - } - case State.BeforeComment: { - this.stateBeforeComment(c); - break; - } - case State.InProcessingInstruction: { - this.stateInProcessingInstruction(c); - break; - } - case State.InNamedEntity: { - this.stateInNamedEntity(c); - break; - } - case State.BeforeEntity: { - this.stateBeforeEntity(c); - break; - } - case State.InHexEntity: { - this.stateInHexEntity(c); - break; - } - case State.InNumericEntity: { - this.stateInNumericEntity(c); - break; - } - default: { - // `this._state === State.BeforeNumericEntity` - this.stateBeforeNumericEntity(c); - } - } - this.index++; - } - this.cleanup(); - }; - Tokenizer.prototype.finish = function () { - if (this.state === State.InNamedEntity) { - this.emitNamedEntity(); - } - // If there is remaining data, emit it in a reasonable way - if (this.sectionStart < this.index) { - this.handleTrailingData(); - } - this.cbs.onend(); - }; - /** Handle any trailing data. */ - Tokenizer.prototype.handleTrailingData = function () { - var endIndex = this.buffer.length + this.offset; - if (this.state === State.InCommentLike) { - if (this.currentSequence === Sequences.CdataEnd) { - this.cbs.oncdata(this.sectionStart, endIndex, 0); - } - else { - this.cbs.oncomment(this.sectionStart, endIndex, 0); - } - } - else if (this.state === State.InNumericEntity && - this.allowLegacyEntity()) { - this.emitNumericEntity(false); - // All trailing data will have been consumed - } - else if (this.state === State.InHexEntity && - this.allowLegacyEntity()) { - this.emitNumericEntity(false); - // All trailing data will have been consumed - } - else if (this.state === State.InTagName || - this.state === State.BeforeAttributeName || - this.state === State.BeforeAttributeValue || - this.state === State.AfterAttributeName || - this.state === State.InAttributeName || - this.state === State.InAttributeValueSq || - this.state === State.InAttributeValueDq || - this.state === State.InAttributeValueNq || - this.state === State.InClosingTagName) { - /* - * If we are currently in an opening or closing tag, us not calling the - * respective callback signals that the tag should be ignored. - */ - } - else { - this.cbs.ontext(this.sectionStart, endIndex); - } - }; - Tokenizer.prototype.emitPartial = function (start, endIndex) { - if (this.baseState !== State.Text && - this.baseState !== State.InSpecialTag) { - this.cbs.onattribdata(start, endIndex); - } - else { - this.cbs.ontext(start, endIndex); - } - }; - Tokenizer.prototype.emitCodePoint = function (cp) { - if (this.baseState !== State.Text && - this.baseState !== State.InSpecialTag) { - this.cbs.onattribentity(cp); - } - else { - this.cbs.ontextentity(cp); - } - }; - return Tokenizer; -}()); -exports["default"] = Tokenizer; -//# sourceMappingURL=Tokenizer.js.map - -/***/ }), - -/***/ "./node_modules/htmlparser2/lib/index.js": -/*!***********************************************!*\ - !*** ./node_modules/htmlparser2/lib/index.js ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DomUtils = exports.parseFeed = exports.getFeed = exports.ElementType = exports.Tokenizer = exports.createDomStream = exports.parseDOM = exports.parseDocument = exports.DefaultHandler = exports.DomHandler = exports.Parser = void 0; -var Parser_js_1 = __webpack_require__(/*! ./Parser.js */ "./node_modules/htmlparser2/lib/Parser.js"); -var Parser_js_2 = __webpack_require__(/*! ./Parser.js */ "./node_modules/htmlparser2/lib/Parser.js"); -Object.defineProperty(exports, "Parser", ({ enumerable: true, get: function () { return Parser_js_2.Parser; } })); -var domhandler_1 = __webpack_require__(/*! domhandler */ "./node_modules/domhandler/lib/index.js"); -var domhandler_2 = __webpack_require__(/*! domhandler */ "./node_modules/domhandler/lib/index.js"); -Object.defineProperty(exports, "DomHandler", ({ enumerable: true, get: function () { return domhandler_2.DomHandler; } })); -// Old name for DomHandler -Object.defineProperty(exports, "DefaultHandler", ({ enumerable: true, get: function () { return domhandler_2.DomHandler; } })); -// Helper methods -/** - * Parses the data, returns the resulting document. - * - * @param data The data that should be parsed. - * @param options Optional options for the parser and DOM builder. - */ -function parseDocument(data, options) { - var handler = new domhandler_1.DomHandler(undefined, options); - new Parser_js_1.Parser(handler, options).end(data); - return handler.root; -} -exports.parseDocument = parseDocument; -/** - * Parses data, returns an array of the root nodes. - * - * Note that the root nodes still have a `Document` node as their parent. - * Use `parseDocument` to get the `Document` node instead. - * - * @param data The data that should be parsed. - * @param options Optional options for the parser and DOM builder. - * @deprecated Use `parseDocument` instead. - */ -function parseDOM(data, options) { - return parseDocument(data, options).children; -} -exports.parseDOM = parseDOM; -/** - * Creates a parser instance, with an attached DOM handler. - * - * @param callback A callback that will be called once parsing has been completed. - * @param options Optional options for the parser and DOM builder. - * @param elementCallback An optional callback that will be called every time a tag has been completed inside of the DOM. - */ -function createDomStream(callback, options, elementCallback) { - var handler = new domhandler_1.DomHandler(callback, options, elementCallback); - return new Parser_js_1.Parser(handler, options); -} -exports.createDomStream = createDomStream; -var Tokenizer_js_1 = __webpack_require__(/*! ./Tokenizer.js */ "./node_modules/htmlparser2/lib/Tokenizer.js"); -Object.defineProperty(exports, "Tokenizer", ({ enumerable: true, get: function () { return __importDefault(Tokenizer_js_1).default; } })); -/* - * All of the following exports exist for backwards-compatibility. - * They should probably be removed eventually. - */ -exports.ElementType = __importStar(__webpack_require__(/*! domelementtype */ "./node_modules/domelementtype/lib/index.js")); -var domutils_1 = __webpack_require__(/*! domutils */ "./node_modules/domutils/lib/index.js"); -var domutils_2 = __webpack_require__(/*! domutils */ "./node_modules/domutils/lib/index.js"); -Object.defineProperty(exports, "getFeed", ({ enumerable: true, get: function () { return domutils_2.getFeed; } })); -var parseFeedDefaultOptions = { xmlMode: true }; -/** - * Parse a feed. - * - * @param feed The feed that should be parsed, as a string. - * @param options Optionally, options for parsing. When using this, you should set `xmlMode` to `true`. - */ -function parseFeed(feed, options) { - if (options === void 0) { options = parseFeedDefaultOptions; } - return (0, domutils_1.getFeed)(parseDOM(feed, options)); -} -exports.parseFeed = parseFeed; -exports.DomUtils = __importStar(__webpack_require__(/*! domutils */ "./node_modules/domutils/lib/index.js")); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/lodash.camelcase/index.js": -/*!************************************************!*\ - !*** ./node_modules/lodash.camelcase/index.js ***! - \************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; - -/** `Object#toString` result references. */ -var symbolTag = '[object Symbol]'; - -/** Used to match words composed of alphanumeric characters. */ -var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; - -/** Used to match Latin Unicode letters (excluding mathematical operators). */ -var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; - -/** Used to compose unicode character classes. */ -var rsAstralRange = '\\ud800-\\udfff', - rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23', - rsComboSymbolsRange = '\\u20d0-\\u20f0', - rsDingbatRange = '\\u2700-\\u27bf', - rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff', - rsMathOpRange = '\\xac\\xb1\\xd7\\xf7', - rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf', - rsPunctuationRange = '\\u2000-\\u206f', - rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000', - rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde', - rsVarRange = '\\ufe0e\\ufe0f', - rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; - -/** Used to compose unicode capture groups. */ -var rsApos = "['\u2019]", - rsAstral = '[' + rsAstralRange + ']', - rsBreak = '[' + rsBreakRange + ']', - rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']', - rsDigits = '\\d+', - rsDingbat = '[' + rsDingbatRange + ']', - rsLower = '[' + rsLowerRange + ']', - rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']', - rsFitz = '\\ud83c[\\udffb-\\udfff]', - rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')', - rsNonAstral = '[^' + rsAstralRange + ']', - rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', - rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]', - rsUpper = '[' + rsUpperRange + ']', - rsZWJ = '\\u200d'; - -/** Used to compose unicode regexes. */ -var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')', - rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')', - rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?', - rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?', - reOptMod = rsModifier + '?', - rsOptVar = '[' + rsVarRange + ']?', - rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*', - rsSeq = rsOptVar + reOptMod + rsOptJoin, - rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq, - rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')'; - -/** Used to match apostrophes. */ -var reApos = RegExp(rsApos, 'g'); - -/** - * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and - * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols). - */ -var reComboMark = RegExp(rsCombo, 'g'); - -/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ -var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); - -/** Used to match complex or compound words. */ -var reUnicodeWord = RegExp([ - rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')', - rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')', - rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr, - rsUpper + '+' + rsOptUpperContr, - rsDigits, - rsEmoji -].join('|'), 'g'); - -/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ -var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']'); - -/** Used to detect strings that need a more robust regexp to match words. */ -var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; - -/** Used to map Latin Unicode letters to basic Latin letters. */ -var deburredLetters = { - // Latin-1 Supplement block. - '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A', - '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a', - '\xc7': 'C', '\xe7': 'c', - '\xd0': 'D', '\xf0': 'd', - '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E', - '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e', - '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I', - '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i', - '\xd1': 'N', '\xf1': 'n', - '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O', - '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o', - '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U', - '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u', - '\xdd': 'Y', '\xfd': 'y', '\xff': 'y', - '\xc6': 'Ae', '\xe6': 'ae', - '\xde': 'Th', '\xfe': 'th', - '\xdf': 'ss', - // Latin Extended-A block. - '\u0100': 'A', '\u0102': 'A', '\u0104': 'A', - '\u0101': 'a', '\u0103': 'a', '\u0105': 'a', - '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C', - '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c', - '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd', - '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E', - '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e', - '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G', - '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g', - '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h', - '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I', - '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i', - '\u0134': 'J', '\u0135': 'j', - '\u0136': 'K', '\u0137': 'k', '\u0138': 'k', - '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L', - '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l', - '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N', - '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n', - '\u014c': 'O', '\u014e': 'O', '\u0150': 'O', - '\u014d': 'o', '\u014f': 'o', '\u0151': 'o', - '\u0154': 'R', '\u0156': 'R', '\u0158': 'R', - '\u0155': 'r', '\u0157': 'r', '\u0159': 'r', - '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S', - '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's', - '\u0162': 'T', '\u0164': 'T', '\u0166': 'T', - '\u0163': 't', '\u0165': 't', '\u0167': 't', - '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U', - '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u', - '\u0174': 'W', '\u0175': 'w', - '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y', - '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z', - '\u017a': 'z', '\u017c': 'z', '\u017e': 'z', - '\u0132': 'IJ', '\u0133': 'ij', - '\u0152': 'Oe', '\u0153': 'oe', - '\u0149': "'n", '\u017f': 'ss' -}; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g; - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -/** - * A specialized version of `_.reduce` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {*} [accumulator] The initial value. - * @param {boolean} [initAccum] Specify using the first element of `array` as - * the initial value. - * @returns {*} Returns the accumulated value. - */ -function arrayReduce(array, iteratee, accumulator, initAccum) { - var index = -1, - length = array ? array.length : 0; - - if (initAccum && length) { - accumulator = array[++index]; - } - while (++index < length) { - accumulator = iteratee(accumulator, array[index], index, array); - } - return accumulator; -} - -/** - * Converts an ASCII `string` to an array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the converted array. - */ -function asciiToArray(string) { - return string.split(''); -} - -/** - * Splits an ASCII `string` into an array of its words. - * - * @private - * @param {string} The string to inspect. - * @returns {Array} Returns the words of `string`. - */ -function asciiWords(string) { - return string.match(reAsciiWord) || []; -} - -/** - * The base implementation of `_.propertyOf` without support for deep paths. - * - * @private - * @param {Object} object The object to query. - * @returns {Function} Returns the new accessor function. - */ -function basePropertyOf(object) { - return function(key) { - return object == null ? undefined : object[key]; - }; -} - -/** - * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A - * letters to basic Latin letters. - * - * @private - * @param {string} letter The matched letter to deburr. - * @returns {string} Returns the deburred letter. - */ -var deburrLetter = basePropertyOf(deburredLetters); - -/** - * Checks if `string` contains Unicode symbols. - * - * @private - * @param {string} string The string to inspect. - * @returns {boolean} Returns `true` if a symbol is found, else `false`. - */ -function hasUnicode(string) { - return reHasUnicode.test(string); -} - -/** - * Checks if `string` contains a word composed of Unicode symbols. - * - * @private - * @param {string} string The string to inspect. - * @returns {boolean} Returns `true` if a word is found, else `false`. - */ -function hasUnicodeWord(string) { - return reHasUnicodeWord.test(string); -} - -/** - * Converts `string` to an array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the converted array. - */ -function stringToArray(string) { - return hasUnicode(string) - ? unicodeToArray(string) - : asciiToArray(string); -} - -/** - * Converts a Unicode `string` to an array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the converted array. - */ -function unicodeToArray(string) { - return string.match(reUnicode) || []; -} - -/** - * Splits a Unicode `string` into an array of its words. - * - * @private - * @param {string} The string to inspect. - * @returns {Array} Returns the words of `string`. - */ -function unicodeWords(string) { - return string.match(reUnicodeWord) || []; -} - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** Built-in value references. */ -var Symbol = root.Symbol; - -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined; - -/** - * The base implementation of `_.slice` without an iteratee call guard. - * - * @private - * @param {Array} array The array to slice. - * @param {number} [start=0] The start position. - * @param {number} [end=array.length] The end position. - * @returns {Array} Returns the slice of `array`. - */ -function baseSlice(array, start, end) { - var index = -1, - length = array.length; - - if (start < 0) { - start = -start > length ? 0 : (length + start); - } - end = end > length ? length : end; - if (end < 0) { - end += length; - } - length = start > end ? 0 : ((end - start) >>> 0); - start >>>= 0; - - var result = Array(length); - while (++index < length) { - result[index] = array[index + start]; - } - return result; -} - -/** - * The base implementation of `_.toString` which doesn't convert nullish - * values to empty strings. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ -function baseToString(value) { - // Exit early for strings to avoid a performance hit in some environments. - if (typeof value == 'string') { - return value; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ''; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -/** - * Casts `array` to a slice if it's needed. - * - * @private - * @param {Array} array The array to inspect. - * @param {number} start The start position. - * @param {number} [end=array.length] The end position. - * @returns {Array} Returns the cast slice. - */ -function castSlice(array, start, end) { - var length = array.length; - end = end === undefined ? length : end; - return (!start && end >= length) ? array : baseSlice(array, start, end); -} - -/** - * Creates a function like `_.lowerFirst`. - * - * @private - * @param {string} methodName The name of the `String` case method to use. - * @returns {Function} Returns the new case function. - */ -function createCaseFirst(methodName) { - return function(string) { - string = toString(string); - - var strSymbols = hasUnicode(string) - ? stringToArray(string) - : undefined; - - var chr = strSymbols - ? strSymbols[0] - : string.charAt(0); - - var trailing = strSymbols - ? castSlice(strSymbols, 1).join('') - : string.slice(1); - - return chr[methodName]() + trailing; - }; -} - -/** - * Creates a function like `_.camelCase`. - * - * @private - * @param {Function} callback The function to combine each word. - * @returns {Function} Returns the new compounder function. - */ -function createCompounder(callback) { - return function(string) { - return arrayReduce(words(deburr(string).replace(reApos, '')), callback, ''); - }; -} - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} - -/** - * Converts `value` to a string. An empty string is returned for `null` - * and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {string} Returns the string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' - */ -function toString(value) { - return value == null ? '' : baseToString(value); -} - -/** - * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the camel cased string. - * @example - * - * _.camelCase('Foo Bar'); - * // => 'fooBar' - * - * _.camelCase('--foo-bar--'); - * // => 'fooBar' - * - * _.camelCase('__FOO_BAR__'); - * // => 'fooBar' - */ -var camelCase = createCompounder(function(result, word, index) { - word = word.toLowerCase(); - return result + (index ? capitalize(word) : word); -}); - -/** - * Converts the first character of `string` to upper case and the remaining - * to lower case. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to capitalize. - * @returns {string} Returns the capitalized string. - * @example - * - * _.capitalize('FRED'); - * // => 'Fred' - */ -function capitalize(string) { - return upperFirst(toString(string).toLowerCase()); -} - -/** - * Deburrs `string` by converting - * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) - * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A) - * letters to basic Latin letters and removing - * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to deburr. - * @returns {string} Returns the deburred string. - * @example - * - * _.deburr('déjà vu'); - * // => 'deja vu' - */ -function deburr(string) { - string = toString(string); - return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ''); -} - -/** - * Converts the first character of `string` to upper case. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the converted string. - * @example - * - * _.upperFirst('fred'); - * // => 'Fred' - * - * _.upperFirst('FRED'); - * // => 'FRED' - */ -var upperFirst = createCaseFirst('toUpperCase'); - -/** - * Splits `string` into an array of its words. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to inspect. - * @param {RegExp|string} [pattern] The pattern to match words. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {Array} Returns the words of `string`. - * @example - * - * _.words('fred, barney, & pebbles'); - * // => ['fred', 'barney', 'pebbles'] - * - * _.words('fred, barney, & pebbles', /[^, ]+/g); - * // => ['fred', 'barney', '&', 'pebbles'] - */ -function words(string, pattern, guard) { - string = toString(string); - pattern = guard ? undefined : pattern; - - if (pattern === undefined) { - return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string); - } - return string.match(pattern) || []; -} - -module.exports = camelCase; - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/createLucideIcon.js": -/*!****************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/createLucideIcon.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createLucideIcon) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _defaultAttributes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./defaultAttributes.js */ "./node_modules/lucide-react/dist/esm/defaultAttributes.js"); -/* harmony import */ var _shared_src_utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shared/src/utils.js */ "./node_modules/lucide-react/dist/esm/shared/src/utils.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - - - -const createLucideIcon = (iconName, iconNode) => { - const Component = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)( - ({ - color = "currentColor", - size = 24, - strokeWidth = 2, - absoluteStrokeWidth, - className = "", - children, - ...rest - }, ref) => { - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)( - "svg", - { - ref, - ..._defaultAttributes_js__WEBPACK_IMPORTED_MODULE_1__["default"], - width: size, - height: size, - stroke: color, - strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth, - className: ["lucide", `lucide-${(0,_shared_src_utils_js__WEBPACK_IMPORTED_MODULE_2__.toKebabCase)(iconName)}`, className].join(" "), - ...rest - }, - [ - ...iconNode.map(([tag, attrs]) => (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(tag, attrs)), - ...Array.isArray(children) ? children : [children] - ] - ); - } - ); - Component.displayName = `${iconName}`; - return Component; -}; - - -//# sourceMappingURL=createLucideIcon.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/defaultAttributes.js": -/*!*****************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/defaultAttributes.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ defaultAttributes) -/* harmony export */ }); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - -var defaultAttributes = { - xmlns: "http://www.w3.org/2000/svg", - width: 24, - height: 24, - viewBox: "0 0 24 24", - fill: "none", - stroke: "currentColor", - strokeWidth: 2, - strokeLinecap: "round", - strokeLinejoin: "round" -}; - - -//# sourceMappingURL=defaultAttributes.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/accessibility.js": -/*!*******************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/accessibility.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Accessibility) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Accessibility = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Accessibility", [ - ["circle", { cx: "16", cy: "4", r: "1", key: "1grugj" }], - ["path", { d: "m18 19 1-7-6 1", key: "r0i19z" }], - ["path", { d: "m5 8 3-3 5.5 3-2.36 3.5", key: "9ptxx2" }], - ["path", { d: "M4.24 14.5a5 5 0 0 0 6.88 6", key: "10kmtu" }], - ["path", { d: "M13.76 17.5a5 5 0 0 0-6.88-6", key: "2qq6rc" }] -]); - - -//# sourceMappingURL=accessibility.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/align-center.js": -/*!******************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/align-center.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ AlignCenter) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const AlignCenter = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("AlignCenter", [ - ["line", { x1: "21", x2: "3", y1: "6", y2: "6", key: "1fp77t" }], - ["line", { x1: "17", x2: "7", y1: "12", y2: "12", key: "rsh8ii" }], - ["line", { x1: "19", x2: "5", y1: "18", y2: "18", key: "1t0tuv" }] -]); - - -//# sourceMappingURL=align-center.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/align-left.js": -/*!****************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/align-left.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ AlignLeft) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const AlignLeft = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("AlignLeft", [ - ["line", { x1: "21", x2: "3", y1: "6", y2: "6", key: "1fp77t" }], - ["line", { x1: "15", x2: "3", y1: "12", y2: "12", key: "v6grx8" }], - ["line", { x1: "17", x2: "3", y1: "18", y2: "18", key: "1awlsn" }] -]); - - -//# sourceMappingURL=align-left.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/align-right.js": -/*!*****************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/align-right.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ AlignRight) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const AlignRight = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("AlignRight", [ - ["line", { x1: "21", x2: "3", y1: "6", y2: "6", key: "1fp77t" }], - ["line", { x1: "21", x2: "9", y1: "12", y2: "12", key: "1uyos4" }], - ["line", { x1: "21", x2: "7", y1: "18", y2: "18", key: "1g9eri" }] -]); - - -//# sourceMappingURL=align-right.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/arrow-big-left-dash.js": -/*!*************************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/arrow-big-left-dash.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ ArrowBigLeftDash) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const ArrowBigLeftDash = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("ArrowBigLeftDash", [ - ["path", { d: "M19 15V9", key: "1hci5f" }], - ["path", { d: "M15 15h-3v4l-7-7 7-7v4h3v6z", key: "16tjna" }] -]); - - -//# sourceMappingURL=arrow-big-left-dash.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/captions.js": -/*!**************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/captions.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Captions) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Captions = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Captions", [ - ["rect", { width: "18", height: "14", x: "3", y: "5", rx: "2", ry: "2", key: "12ruh7" }], - ["path", { d: "M7 15h4M15 15h2M7 11h2M13 11h4", key: "1ueiar" }] -]); - - -//# sourceMappingURL=captions.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/check.js": -/*!***********************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/check.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Check) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Check = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]); - - -//# sourceMappingURL=check.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/circle-alert.js": -/*!******************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/circle-alert.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ CircleAlert) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const CircleAlert = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("CircleAlert", [ - ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], - ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }], - ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }] -]); - - -//# sourceMappingURL=circle-alert.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/circle-minus.js": -/*!******************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/circle-minus.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ CircleMinus) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const CircleMinus = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("CircleMinus", [ - ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], - ["path", { d: "M8 12h8", key: "1wcyev" }] -]); - - -//# sourceMappingURL=circle-minus.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/circle-x.js": -/*!**************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/circle-x.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ CircleX) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const CircleX = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("CircleX", [ - ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], - ["path", { d: "m15 9-6 6", key: "1uzhvr" }], - ["path", { d: "m9 9 6 6", key: "z0biqf" }] -]); - - -//# sourceMappingURL=circle-x.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/corner-down-left.js": -/*!**********************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/corner-down-left.js ***! - \**********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ CornerDownLeft) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const CornerDownLeft = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("CornerDownLeft", [ - ["polyline", { points: "9 10 4 15 9 20", key: "r3jprv" }], - ["path", { d: "M20 4v7a4 4 0 0 1-4 4H4", key: "6o5b7l" }] -]); - - -//# sourceMappingURL=corner-down-left.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/crop.js": -/*!**********************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/crop.js ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Crop) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Crop = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Crop", [ - ["path", { d: "M6 2v14a2 2 0 0 0 2 2h14", key: "ron5a4" }], - ["path", { d: "M18 22V8a2 2 0 0 0-2-2H2", key: "7s9ehn" }] -]); - - -//# sourceMappingURL=crop.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/download.js": -/*!**************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/download.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Download) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Download = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Download", [ - ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }], - ["polyline", { points: "7 10 12 15 17 10", key: "2ggqvy" }], - ["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }] -]); - - -//# sourceMappingURL=download.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/droplet.js": -/*!*************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/droplet.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Droplet) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Droplet = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Droplet", [ - [ - "path", - { - d: "M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z", - key: "c7niix" - } - ] -]); - - -//# sourceMappingURL=droplet.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/external-link.js": -/*!*******************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/external-link.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ ExternalLink) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const ExternalLink = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("ExternalLink", [ - ["path", { d: "M15 3h6v6", key: "1q9fwt" }], - ["path", { d: "M10 14 21 3", key: "gplh6r" }], - ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }] -]); - - -//# sourceMappingURL=external-link.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/file-image.js": -/*!****************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/file-image.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ FileImage) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const FileImage = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("FileImage", [ - ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }], - ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }], - ["circle", { cx: "10", cy: "12", r: "2", key: "737tya" }], - ["path", { d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22", key: "wt3hpn" }] -]); - - -//# sourceMappingURL=file-image.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/file-text.js": -/*!***************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/file-text.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ FileText) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const FileText = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("FileText", [ - ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }], - ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }], - ["path", { d: "M10 9H8", key: "b1mrlr" }], - ["path", { d: "M16 13H8", key: "t4e002" }], - ["path", { d: "M16 17H8", key: "z1uh3a" }] -]); - - -//# sourceMappingURL=file-text.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/file.js": -/*!**********************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/file.js ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ File) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const File = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("File", [ - ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }], - ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }] -]); - - -//# sourceMappingURL=file.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/globe.js": -/*!***********************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/globe.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Globe) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Globe = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Globe", [ - ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], - ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }], - ["path", { d: "M2 12h20", key: "9i4pu4" }] -]); - - -//# sourceMappingURL=globe.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/image-plus.js": -/*!****************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/image-plus.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ ImagePlus) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const ImagePlus = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("ImagePlus", [ - ["path", { d: "M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7", key: "31hg93" }], - ["line", { x1: "16", x2: "22", y1: "5", y2: "5", key: "ez7e4s" }], - ["line", { x1: "19", x2: "19", y1: "2", y2: "8", key: "1gkr8c" }], - ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }], - ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }] -]); - - -//# sourceMappingURL=image-plus.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/image.js": -/*!***********************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/image.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Image) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Image = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Image", [ - ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }], - ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }], - ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }] -]); - - -//# sourceMappingURL=image.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/info.js": -/*!**********************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/info.js ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Info) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Info = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Info", [ - ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], - ["path", { d: "M12 16v-4", key: "1dtifu" }], - ["path", { d: "M12 8h.01", key: "e9boi3" }] -]); - - -//# sourceMappingURL=info.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/link-2-off.js": -/*!****************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/link-2-off.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Link2Off) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Link2Off = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Link2Off", [ - ["path", { d: "M9 17H7A5 5 0 0 1 7 7", key: "10o201" }], - ["path", { d: "M15 7h2a5 5 0 0 1 4 8", key: "1d3206" }], - ["line", { x1: "8", x2: "12", y1: "12", y2: "12", key: "rvw6j4" }], - ["line", { x1: "2", x2: "22", y1: "2", y2: "22", key: "a6p6uj" }] -]); - - -//# sourceMappingURL=link-2-off.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/link-2.js": -/*!************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/link-2.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Link2) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Link2 = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Link2", [ - ["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }], - ["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }], - ["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }] -]); - - -//# sourceMappingURL=link-2.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/link.js": -/*!**********************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/link.js ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Link) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Link = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Link", [ - ["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }], - ["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }] -]); - - -//# sourceMappingURL=link.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/loader-circle.js": -/*!*******************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/loader-circle.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ LoaderCircle) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const LoaderCircle = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("LoaderCircle", [ - ["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }] -]); - - -//# sourceMappingURL=loader-circle.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/lock.js": -/*!**********************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/lock.js ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Lock) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Lock = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Lock", [ - ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }], - ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }] -]); - - -//# sourceMappingURL=lock.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/maximize.js": -/*!**************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/maximize.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Maximize) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Maximize = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Maximize", [ - ["path", { d: "M8 3H5a2 2 0 0 0-2 2v3", key: "1dcmit" }], - ["path", { d: "M21 8V5a2 2 0 0 0-2-2h-3", key: "1e4gt3" }], - ["path", { d: "M3 16v3a2 2 0 0 0 2 2h3", key: "wsl5sc" }], - ["path", { d: "M16 21h3a2 2 0 0 0 2-2v-3", key: "18trek" }] -]); - - -//# sourceMappingURL=maximize.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/monitor.js": -/*!*************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/monitor.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Monitor) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Monitor = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Monitor", [ - ["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }], - ["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }], - ["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }] -]); - - -//# sourceMappingURL=monitor.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/palette.js": -/*!*************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/palette.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Palette) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Palette = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Palette", [ - ["circle", { cx: "13.5", cy: "6.5", r: ".5", fill: "currentColor", key: "1okk4w" }], - ["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }], - ["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }], - ["circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor", key: "qy21gx" }], - [ - "path", - { - d: "M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z", - key: "12rzf8" - } - ] -]); - - -//# sourceMappingURL=palette.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/pencil.js": -/*!************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/pencil.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Pencil) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Pencil = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Pencil", [ - ["path", { d: "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z", key: "5qss01" }], - ["path", { d: "m15 5 4 4", key: "1mk7zo" }] -]); - - -//# sourceMappingURL=pencil.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/rectangle-ellipsis.js": -/*!************************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/rectangle-ellipsis.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ RectangleEllipsis) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const RectangleEllipsis = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("RectangleEllipsis", [ - ["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }], - ["path", { d: "M12 12h.01", key: "1mp3jc" }], - ["path", { d: "M17 12h.01", key: "1m0b6t" }], - ["path", { d: "M7 12h.01", key: "eqddd0" }] -]); - - -//# sourceMappingURL=rectangle-ellipsis.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/redo-2.js": -/*!************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/redo-2.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Redo2) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Redo2 = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Redo2", [ - ["path", { d: "m15 14 5-5-5-5", key: "12vg1m" }], - ["path", { d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13", key: "19mnr4" }] -]); - - -//# sourceMappingURL=redo-2.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/rotate-ccw.js": -/*!****************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/rotate-ccw.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ RotateCcw) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const RotateCcw = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("RotateCcw", [ - ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }], - ["path", { d: "M3 3v5h5", key: "1xhq8a" }] -]); - - -//# sourceMappingURL=rotate-ccw.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/rotate-cw.js": -/*!***************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/rotate-cw.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ RotateCw) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const RotateCw = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("RotateCw", [ - ["path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8", key: "1p45f6" }], - ["path", { d: "M21 3v5h-5", key: "1q7to0" }] -]); - - -//# sourceMappingURL=rotate-cw.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/save.js": -/*!**********************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/save.js ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Save) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Save = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Save", [ - ["path", { d: "M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z", key: "1owoqh" }], - ["polyline", { points: "17 21 17 13 7 13 7 21", key: "1md35c" }], - ["polyline", { points: "7 3 7 8 15 8", key: "8nz8an" }] -]); - - -//# sourceMappingURL=save.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/search.js": -/*!************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/search.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Search) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Search = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Search", [ - ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }], - ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }] -]); - - -//# sourceMappingURL=search.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/separator-horizontal.js": -/*!**************************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/separator-horizontal.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ SeparatorHorizontal) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const SeparatorHorizontal = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("SeparatorHorizontal", [ - ["line", { x1: "3", x2: "21", y1: "12", y2: "12", key: "10d38w" }], - ["polyline", { points: "8 8 12 4 16 8", key: "zo8t4w" }], - ["polyline", { points: "16 16 12 20 8 16", key: "1oyrid" }] -]); - - -//# sourceMappingURL=separator-horizontal.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/shrink.js": -/*!************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/shrink.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Shrink) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Shrink = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Shrink", [ - ["path", { d: "m15 15 6 6m-6-6v4.8m0-4.8h4.8", key: "17vawe" }], - ["path", { d: "M9 19.8V15m0 0H4.2M9 15l-6 6", key: "chjx8e" }], - ["path", { d: "M15 4.2V9m0 0h4.8M15 9l6-6", key: "lav6yq" }], - ["path", { d: "M9 4.2V9m0 0H4.2M9 9 3 3", key: "1pxi2q" }] -]); - - -//# sourceMappingURL=shrink.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/shuffle.js": -/*!*************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/shuffle.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Shuffle) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Shuffle = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Shuffle", [ - ["path", { d: "M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22", key: "1wmou1" }], - ["path", { d: "m18 2 4 4-4 4", key: "pucp1d" }], - ["path", { d: "M2 6h1.9c1.5 0 2.9.9 3.6 2.2", key: "10bdb2" }], - ["path", { d: "M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8", key: "vgxac0" }], - ["path", { d: "m18 14 4 4-4 4", key: "10pe0f" }] -]); - - -//# sourceMappingURL=shuffle.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/smartphone.js": -/*!****************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/smartphone.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Smartphone) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Smartphone = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Smartphone", [ - ["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2", key: "1yt0o3" }], - ["path", { d: "M12 18h.01", key: "mhygvu" }] -]); - - -//# sourceMappingURL=smartphone.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/tablet.js": -/*!************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/tablet.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Tablet) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Tablet = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Tablet", [ - ["rect", { width: "16", height: "20", x: "4", y: "2", rx: "2", ry: "2", key: "76otgf" }], - ["line", { x1: "12", x2: "12.01", y1: "18", y2: "18", key: "1dp563" }] -]); - - -//# sourceMappingURL=tablet.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/trash-2.js": -/*!*************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/trash-2.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Trash2) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Trash2 = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Trash2", [ - ["path", { d: "M3 6h18", key: "d0wm0j" }], - ["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }], - ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }], - ["line", { x1: "10", x2: "10", y1: "11", y2: "17", key: "1uufr5" }], - ["line", { x1: "14", x2: "14", y1: "11", y2: "17", key: "xtxkd" }] -]); - - -//# sourceMappingURL=trash-2.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/trash.js": -/*!***********************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/trash.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Trash) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Trash = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Trash", [ - ["path", { d: "M3 6h18", key: "d0wm0j" }], - ["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }], - ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }] -]); - - -//# sourceMappingURL=trash.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/undo-2.js": -/*!************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/undo-2.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Undo2) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Undo2 = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Undo2", [ - ["path", { d: "M9 14 4 9l5-5", key: "102s5s" }], - ["path", { d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11", key: "llx8ln" }] -]); - - -//# sourceMappingURL=undo-2.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/unlink.js": -/*!************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/unlink.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Unlink) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Unlink = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Unlink", [ - [ - "path", - { - d: "m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71", - key: "yqzxt4" - } - ], - [ - "path", - { - d: "m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71", - key: "4qinb0" - } - ], - ["line", { x1: "8", x2: "8", y1: "2", y2: "5", key: "1041cp" }], - ["line", { x1: "2", x2: "5", y1: "8", y2: "8", key: "14m1p5" }], - ["line", { x1: "16", x2: "16", y1: "19", y2: "22", key: "rzdirn" }], - ["line", { x1: "19", x2: "22", y1: "16", y2: "16", key: "ox905f" }] -]); - - -//# sourceMappingURL=unlink.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/upload.js": -/*!************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/upload.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Upload) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const Upload = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Upload", [ - ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }], - ["polyline", { points: "17 8 12 3 7 8", key: "t8dd8p" }], - ["line", { x1: "12", x2: "12", y1: "3", y2: "15", key: "widbto" }] -]); - - -//# sourceMappingURL=upload.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/wand-sparkles.js": -/*!*******************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/wand-sparkles.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ WandSparkles) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const WandSparkles = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("WandSparkles", [ - [ - "path", - { - d: "m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72", - key: "ul74o6" - } - ], - ["path", { d: "m14 7 3 3", key: "1r5n42" }], - ["path", { d: "M5 6v4", key: "ilb8ba" }], - ["path", { d: "M19 14v4", key: "blhpug" }], - ["path", { d: "M10 2v2", key: "7u0qdc" }], - ["path", { d: "M7 8H3", key: "zfb6yr" }], - ["path", { d: "M21 16h-4", key: "1cnmox" }], - ["path", { d: "M11 3H9", key: "1obp7u" }] -]); - - -//# sourceMappingURL=wand-sparkles.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/icons/x.js": -/*!*******************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/x.js ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ X) -/* harmony export */ }); -/* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - - - -const X = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("X", [ - ["path", { d: "M18 6 6 18", key: "1bl5f8" }], - ["path", { d: "m6 6 12 12", key: "d8bk6v" }] -]); - - -//# sourceMappingURL=x.js.map - - -/***/ }), - -/***/ "./node_modules/lucide-react/dist/esm/shared/src/utils.js": -/*!****************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/shared/src/utils.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ toKebabCase: () => (/* binding */ toKebabCase) -/* harmony export */ }); -/** - * @license lucide-react v0.359.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ - -const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(); - - -//# sourceMappingURL=utils.js.map - - -/***/ }), - -/***/ "./node_modules/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css": -/*!*******************************************************************************************!*\ - !*** ./node_modules/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css ***! - \*******************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./node_modules/filepond/dist/filepond.min.css": -/*!*****************************************************!*\ - !*** ./node_modules/filepond/dist/filepond.min.css ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./node_modules/react-image-crop/src/ReactCrop.scss": -/*!**********************************************************!*\ - !*** ./node_modules/react-image-crop/src/ReactCrop.scss ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/blocks/photo-block/editor.scss": -/*!********************************************!*\ - !*** ./src/blocks/photo-block/editor.scss ***! - \********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/blocks/photo-caption-block/editor.scss": -/*!****************************************************!*\ - !*** ./src/blocks/photo-caption-block/editor.scss ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/AlignmentToolbar/editor.scss": -/*!*****************************************************!*\ - !*** ./src/components/AlignmentToolbar/editor.scss ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/BackgroundSelector/editor.scss": -/*!*******************************************************!*\ - !*** ./src/components/BackgroundSelector/editor.scss ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/BorderResponsive/editor.scss": -/*!*****************************************************!*\ - !*** ./src/components/BorderResponsive/editor.scss ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/CSSGramButtonGroup/editor.scss": -/*!*******************************************************!*\ - !*** ./src/components/CSSGramButtonGroup/editor.scss ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/CSSGramButtonPreview/editor.scss": -/*!*********************************************************!*\ - !*** ./src/components/CSSGramButtonPreview/editor.scss ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/CaptionAppender/editor.scss": -/*!****************************************************!*\ - !*** ./src/components/CaptionAppender/editor.scss ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/ColorPicker/editor.scss": -/*!************************************************!*\ - !*** ./src/components/ColorPicker/editor.scss ***! - \************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/CustomAttributes/editor.scss": -/*!*****************************************************!*\ - !*** ./src/components/CustomAttributes/editor.scss ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/DimensionsResponsive/editor.scss": -/*!*********************************************************!*\ - !*** ./src/components/DimensionsResponsive/editor.scss ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/DropShadow/editor.scss": -/*!***********************************************!*\ - !*** ./src/components/DropShadow/editor.scss ***! - \***********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/GlobalStyles/editor.scss": -/*!*************************************************!*\ - !*** ./src/components/GlobalStyles/editor.scss ***! - \*************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/GlobalStylesPicker/ButtonPreview/editor.scss": -/*!*********************************************************************!*\ - !*** ./src/components/GlobalStylesPicker/ButtonPreview/editor.scss ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/GlobalStylesPicker/editor.scss": -/*!*******************************************************!*\ - !*** ./src/components/GlobalStylesPicker/editor.scss ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/GradientPicker/editor.scss": -/*!***************************************************!*\ - !*** ./src/components/GradientPicker/editor.scss ***! - \***************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/HeadingIconResponsive/editor.scss": -/*!**********************************************************!*\ - !*** ./src/components/HeadingIconResponsive/editor.scss ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/MediaLink/editor.scss": -/*!**********************************************!*\ - !*** ./src/components/MediaLink/editor.scss ***! - \**********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/Notice/editor.scss": -/*!*******************************************!*\ - !*** ./src/components/Notice/editor.scss ***! - \*******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/PanelBody/editor.scss": -/*!**********************************************!*\ - !*** ./src/components/PanelBody/editor.scss ***! - \**********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/RangeResponsive/editor.scss": -/*!****************************************************!*\ - !*** ./src/components/RangeResponsive/editor.scss ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/SidebarImageAdvancedInspectorControl/editor.scss": -/*!*************************************************************************!*\ - !*** ./src/components/SidebarImageAdvancedInspectorControl/editor.scss ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/SidebarImageInspectorControl/editor.scss": -/*!*****************************************************************!*\ - !*** ./src/components/SidebarImageInspectorControl/editor.scss ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/SizeResponsive/editor.scss": -/*!***************************************************!*\ - !*** ./src/components/SizeResponsive/editor.scss ***! - \***************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/ToolbarAspectRatio/editor.scss": -/*!*******************************************************!*\ - !*** ./src/components/ToolbarAspectRatio/editor.scss ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/Typography/editor.scss": -/*!***********************************************!*\ - !*** ./src/components/Typography/editor.scss ***! - \***********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/URLPicker/editor.scss": -/*!**********************************************!*\ - !*** ./src/components/URLPicker/editor.scss ***! - \**********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/UnitPicker/editor.scss": -/*!***********************************************!*\ - !*** ./src/components/UnitPicker/editor.scss ***! - \***********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/UploadStatus/editor.scss": -/*!*************************************************!*\ - !*** ./src/components/UploadStatus/editor.scss ***! - \*************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/UploadTarget/editor.scss": -/*!*************************************************!*\ - !*** ./src/components/UploadTarget/editor.scss ***! - \*************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/components/UploadTypes/editor.scss": -/*!************************************************!*\ - !*** ./src/components/UploadTypes/editor.scss ***! - \************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/screens/Crop/editor.scss": -/*!**************************************!*\ - !*** ./src/screens/Crop/editor.scss ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/screens/Edit/editor.scss": -/*!**************************************!*\ - !*** ./src/screens/Edit/editor.scss ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/screens/FeaturedImageEdit/editor.scss": -/*!***************************************************!*\ - !*** ./src/screens/FeaturedImageEdit/editor.scss ***! - \***************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/scss/block-backend-frontend.scss": -/*!**********************************************!*\ - !*** ./src/scss/block-backend-frontend.scss ***! - \**********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./node_modules/object-assign/index.js": -/*!*********************************************!*\ - !*** ./node_modules/object-assign/index.js ***! - \*********************************************/ -/***/ ((module) => { - -"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/ - - -/* eslint-disable no-unused-vars */ -var getOwnPropertySymbols = Object.getOwnPropertySymbols; -var hasOwnProperty = Object.prototype.hasOwnProperty; -var propIsEnumerable = Object.prototype.propertyIsEnumerable; - -function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError('Object.assign cannot be called with null or undefined'); - } - - return Object(val); -} - -function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } - - // Detect buggy property enumeration order in older V8 versions. - - // https://bugs.chromium.org/p/v8/issues/detail?id=4118 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers - test1[5] = 'de'; - if (Object.getOwnPropertyNames(test1)[0] === '5') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test2 = {}; - for (var i = 0; i < 10; i++) { - test2['_' + String.fromCharCode(i)] = i; - } - var order2 = Object.getOwnPropertyNames(test2).map(function (n) { - return test2[n]; - }); - if (order2.join('') !== '0123456789') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test3 = {}; - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { - test3[letter] = letter; - }); - if (Object.keys(Object.assign({}, test3)).join('') !== - 'abcdefghijklmnopqrst') { - return false; - } - - return true; - } catch (err) { - // We don't expect any of the above to throw, but better to be safe. - return false; - } -} - -module.exports = shouldUseNative() ? Object.assign : function (target, source) { - var from; - var to = toObject(target); - var symbols; - - for (var s = 1; s < arguments.length; s++) { - from = Object(arguments[s]); - - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key]; - } - } - - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } - } - } - } - - return to; -}; - - -/***/ }), - -/***/ "./node_modules/object-inspect/index.js": -/*!**********************************************!*\ - !*** ./node_modules/object-inspect/index.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var hasMap = typeof Map === 'function' && Map.prototype; -var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null; -var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null; -var mapForEach = hasMap && Map.prototype.forEach; -var hasSet = typeof Set === 'function' && Set.prototype; -var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null; -var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null; -var setForEach = hasSet && Set.prototype.forEach; -var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype; -var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; -var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; -var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; -var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype; -var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; -var booleanValueOf = Boolean.prototype.valueOf; -var objectToString = Object.prototype.toString; -var functionToString = Function.prototype.toString; -var $match = String.prototype.match; -var $slice = String.prototype.slice; -var $replace = String.prototype.replace; -var $toUpperCase = String.prototype.toUpperCase; -var $toLowerCase = String.prototype.toLowerCase; -var $test = RegExp.prototype.test; -var $concat = Array.prototype.concat; -var $join = Array.prototype.join; -var $arrSlice = Array.prototype.slice; -var $floor = Math.floor; -var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; -var gOPS = Object.getOwnPropertySymbols; -var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null; -var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object'; -// ie, `has-tostringtag/shams -var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') - ? Symbol.toStringTag - : null; -var isEnumerable = Object.prototype.propertyIsEnumerable; - -var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ( - [].__proto__ === Array.prototype // eslint-disable-line no-proto - ? function (O) { - return O.__proto__; // eslint-disable-line no-proto - } - : null -); - -function addNumericSeparator(num, str) { - if ( - num === Infinity - || num === -Infinity - || num !== num - || (num && num > -1000 && num < 1000) - || $test.call(/e/, str) - ) { - return str; - } - var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; - if (typeof num === 'number') { - var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num) - if (int !== num) { - var intStr = String(int); - var dec = $slice.call(str, intStr.length + 1); - return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, ''); - } - } - return $replace.call(str, sepRegex, '$&_'); -} - -var utilInspect = __webpack_require__(/*! ./util.inspect */ "?4f7e"); -var inspectCustom = utilInspect.custom; -var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null; - -module.exports = function inspect_(obj, options, depth, seen) { - var opts = options || {}; - - if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) { - throw new TypeError('option "quoteStyle" must be "single" or "double"'); - } - if ( - has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' - ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity - : opts.maxStringLength !== null - ) - ) { - throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); - } - var customInspect = has(opts, 'customInspect') ? opts.customInspect : true; - if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') { - throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'); - } - - if ( - has(opts, 'indent') - && opts.indent !== null - && opts.indent !== '\t' - && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) - ) { - throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); - } - if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') { - throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); - } - var numericSeparator = opts.numericSeparator; - - if (typeof obj === 'undefined') { - return 'undefined'; - } - if (obj === null) { - return 'null'; - } - if (typeof obj === 'boolean') { - return obj ? 'true' : 'false'; - } - - if (typeof obj === 'string') { - return inspectString(obj, opts); - } - if (typeof obj === 'number') { - if (obj === 0) { - return Infinity / obj > 0 ? '0' : '-0'; - } - var str = String(obj); - return numericSeparator ? addNumericSeparator(obj, str) : str; - } - if (typeof obj === 'bigint') { - var bigIntStr = String(obj) + 'n'; - return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; - } - - var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; - if (typeof depth === 'undefined') { depth = 0; } - if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { - return isArray(obj) ? '[Array]' : '[Object]'; - } - - var indent = getIndent(opts, depth); - - if (typeof seen === 'undefined') { - seen = []; - } else if (indexOf(seen, obj) >= 0) { - return '[Circular]'; - } - - function inspect(value, from, noIndent) { - if (from) { - seen = $arrSlice.call(seen); - seen.push(from); - } - if (noIndent) { - var newOpts = { - depth: opts.depth - }; - if (has(opts, 'quoteStyle')) { - newOpts.quoteStyle = opts.quoteStyle; - } - return inspect_(value, newOpts, depth + 1, seen); - } - return inspect_(value, opts, depth + 1, seen); - } - - if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable - var name = nameOf(obj); - var keys = arrObjKeys(obj, inspect); - return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : ''); - } - if (isSymbol(obj)) { - var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj); - return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString; - } - if (isElement(obj)) { - var s = '<' + $toLowerCase.call(String(obj.nodeName)); - var attrs = obj.attributes || []; - for (var i = 0; i < attrs.length; i++) { - s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); - } - s += '>'; - if (obj.childNodes && obj.childNodes.length) { s += '...'; } - s += ''; - return s; - } - if (isArray(obj)) { - if (obj.length === 0) { return '[]'; } - var xs = arrObjKeys(obj, inspect); - if (indent && !singleLineValues(xs)) { - return '[' + indentedJoin(xs, indent) + ']'; - } - return '[ ' + $join.call(xs, ', ') + ' ]'; - } - if (isError(obj)) { - var parts = arrObjKeys(obj, inspect); - if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) { - return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }'; - } - if (parts.length === 0) { return '[' + String(obj) + ']'; } - return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }'; - } - if (typeof obj === 'object' && customInspect) { - if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) { - return utilInspect(obj, { depth: maxDepth - depth }); - } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') { - return obj.inspect(); - } - } - if (isMap(obj)) { - var mapParts = []; - if (mapForEach) { - mapForEach.call(obj, function (value, key) { - mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); - }); - } - return collectionOf('Map', mapSize.call(obj), mapParts, indent); - } - if (isSet(obj)) { - var setParts = []; - if (setForEach) { - setForEach.call(obj, function (value) { - setParts.push(inspect(value, obj)); - }); - } - return collectionOf('Set', setSize.call(obj), setParts, indent); - } - if (isWeakMap(obj)) { - return weakCollectionOf('WeakMap'); - } - if (isWeakSet(obj)) { - return weakCollectionOf('WeakSet'); - } - if (isWeakRef(obj)) { - return weakCollectionOf('WeakRef'); - } - if (isNumber(obj)) { - return markBoxed(inspect(Number(obj))); - } - if (isBigInt(obj)) { - return markBoxed(inspect(bigIntValueOf.call(obj))); - } - if (isBoolean(obj)) { - return markBoxed(booleanValueOf.call(obj)); - } - if (isString(obj)) { - return markBoxed(inspect(String(obj))); - } - // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other - /* eslint-env browser */ - if (typeof window !== 'undefined' && obj === window) { - return '{ [object Window] }'; - } - if (obj === __webpack_require__.g) { - return '{ [object globalThis] }'; - } - if (!isDate(obj) && !isRegExp(obj)) { - var ys = arrObjKeys(obj, inspect); - var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; - var protoTag = obj instanceof Object ? '' : 'null prototype'; - var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : ''; - var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : ''; - var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : ''); - if (ys.length === 0) { return tag + '{}'; } - if (indent) { - return tag + '{' + indentedJoin(ys, indent) + '}'; - } - return tag + '{ ' + $join.call(ys, ', ') + ' }'; - } - return String(obj); -}; - -function wrapQuotes(s, defaultStyle, opts) { - var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'"; - return quoteChar + s + quoteChar; -} - -function quote(s) { - return $replace.call(String(s), /"/g, '"'); -} - -function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } - -// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives -function isSymbol(obj) { - if (hasShammedSymbols) { - return obj && typeof obj === 'object' && obj instanceof Symbol; - } - if (typeof obj === 'symbol') { - return true; - } - if (!obj || typeof obj !== 'object' || !symToString) { - return false; - } - try { - symToString.call(obj); - return true; - } catch (e) {} - return false; -} - -function isBigInt(obj) { - if (!obj || typeof obj !== 'object' || !bigIntValueOf) { - return false; - } - try { - bigIntValueOf.call(obj); - return true; - } catch (e) {} - return false; -} - -var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; }; -function has(obj, key) { - return hasOwn.call(obj, key); -} - -function toStr(obj) { - return objectToString.call(obj); -} - -function nameOf(f) { - if (f.name) { return f.name; } - var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); - if (m) { return m[1]; } - return null; -} - -function indexOf(xs, x) { - if (xs.indexOf) { return xs.indexOf(x); } - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) { return i; } - } - return -1; -} - -function isMap(x) { - if (!mapSize || !x || typeof x !== 'object') { - return false; - } - try { - mapSize.call(x); - try { - setSize.call(x); - } catch (s) { - return true; - } - return x instanceof Map; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isWeakMap(x) { - if (!weakMapHas || !x || typeof x !== 'object') { - return false; - } - try { - weakMapHas.call(x, weakMapHas); - try { - weakSetHas.call(x, weakSetHas); - } catch (s) { - return true; - } - return x instanceof WeakMap; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isWeakRef(x) { - if (!weakRefDeref || !x || typeof x !== 'object') { - return false; - } - try { - weakRefDeref.call(x); - return true; - } catch (e) {} - return false; -} - -function isSet(x) { - if (!setSize || !x || typeof x !== 'object') { - return false; - } - try { - setSize.call(x); - try { - mapSize.call(x); - } catch (m) { - return true; - } - return x instanceof Set; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isWeakSet(x) { - if (!weakSetHas || !x || typeof x !== 'object') { - return false; - } - try { - weakSetHas.call(x, weakSetHas); - try { - weakMapHas.call(x, weakMapHas); - } catch (s) { - return true; - } - return x instanceof WeakSet; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isElement(x) { - if (!x || typeof x !== 'object') { return false; } - if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) { - return true; - } - return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function'; -} - -function inspectString(str, opts) { - if (str.length > opts.maxStringLength) { - var remaining = str.length - opts.maxStringLength; - var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); - return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; - } - // eslint-disable-next-line no-control-regex - var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte); - return wrapQuotes(s, 'single', opts); -} - -function lowbyte(c) { - var n = c.charCodeAt(0); - var x = { - 8: 'b', - 9: 't', - 10: 'n', - 12: 'f', - 13: 'r' - }[n]; - if (x) { return '\\' + x; } - return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16)); -} - -function markBoxed(str) { - return 'Object(' + str + ')'; -} - -function weakCollectionOf(type) { - return type + ' { ? }'; -} - -function collectionOf(type, size, entries, indent) { - var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', '); - return type + ' (' + size + ') {' + joinedEntries + '}'; -} - -function singleLineValues(xs) { - for (var i = 0; i < xs.length; i++) { - if (indexOf(xs[i], '\n') >= 0) { - return false; - } - } - return true; -} - -function getIndent(opts, depth) { - var baseIndent; - if (opts.indent === '\t') { - baseIndent = '\t'; - } else if (typeof opts.indent === 'number' && opts.indent > 0) { - baseIndent = $join.call(Array(opts.indent + 1), ' '); - } else { - return null; - } - return { - base: baseIndent, - prev: $join.call(Array(depth + 1), baseIndent) - }; -} - -function indentedJoin(xs, indent) { - if (xs.length === 0) { return ''; } - var lineJoiner = '\n' + indent.prev + indent.base; - return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev; -} - -function arrObjKeys(obj, inspect) { - var isArr = isArray(obj); - var xs = []; - if (isArr) { - xs.length = obj.length; - for (var i = 0; i < obj.length; i++) { - xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; - } - } - var syms = typeof gOPS === 'function' ? gOPS(obj) : []; - var symMap; - if (hasShammedSymbols) { - symMap = {}; - for (var k = 0; k < syms.length; k++) { - symMap['$' + syms[k]] = syms[k]; - } - } - - for (var key in obj) { // eslint-disable-line no-restricted-syntax - if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue - if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue - if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) { - // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section - continue; // eslint-disable-line no-restricted-syntax, no-continue - } else if ($test.call(/[^\w$]/, key)) { - xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); - } else { - xs.push(key + ': ' + inspect(obj[key], obj)); - } - } - if (typeof gOPS === 'function') { - for (var j = 0; j < syms.length; j++) { - if (isEnumerable.call(obj, syms[j])) { - xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj)); - } - } - } - return xs; -} - - -/***/ }), - -/***/ "./node_modules/prop-types/checkPropTypes.js": -/*!***************************************************!*\ - !*** ./node_modules/prop-types/checkPropTypes.js ***! - \***************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var printWarning = function() {}; - -if (true) { - var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js"); - var loggedTypeFailures = {}; - var has = __webpack_require__(/*! ./lib/has */ "./node_modules/prop-types/lib/has.js"); - - printWarning = function(text) { - var message = 'Warning: ' + text; - if (typeof console !== 'undefined') { - console.error(message); - } - try { - // --- Welcome to debugging React --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message); - } catch (x) { /**/ } - }; -} - -/** - * Assert that the values match with the type specs. - * Error messages are memorized and will only be shown once. - * - * @param {object} typeSpecs Map of name to a ReactPropType - * @param {object} values Runtime values that need to be type-checked - * @param {string} location e.g. "prop", "context", "child context" - * @param {string} componentName Name of the component for error messages. - * @param {?Function} getStack Returns the component stack. - * @private - */ -function checkPropTypes(typeSpecs, values, location, componentName, getStack) { - if (true) { - for (var typeSpecName in typeSpecs) { - if (has(typeSpecs, typeSpecName)) { - var error; - // Prop type validation may throw. In case they do, we don't want to - // fail the render phase where it didn't fail before. So we log it. - // After these have been cleaned up, we'll let them throw. - try { - // This is intentionally an invariant that gets caught. It's the same - // behavior as without this statement except with a better message. - if (typeof typeSpecs[typeSpecName] !== 'function') { - var err = Error( - (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + - 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + - 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.' - ); - err.name = 'Invariant Violation'; - throw err; - } - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); - } catch (ex) { - error = ex; - } - if (error && !(error instanceof Error)) { - printWarning( - (componentName || 'React class') + ': type specification of ' + - location + ' `' + typeSpecName + '` is invalid; the type checker ' + - 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + - 'You may have forgotten to pass an argument to the type checker ' + - 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + - 'shape all require an argument).' - ); - } - if (error instanceof Error && !(error.message in loggedTypeFailures)) { - // Only monitor this failure once because there tends to be a lot of the - // same error. - loggedTypeFailures[error.message] = true; - - var stack = getStack ? getStack() : ''; - - printWarning( - 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') - ); - } - } - } - } -} - -/** - * Resets warning cache when testing. - * - * @private - */ -checkPropTypes.resetWarningCache = function() { - if (true) { - loggedTypeFailures = {}; - } -} - -module.exports = checkPropTypes; - - -/***/ }), - -/***/ "./node_modules/prop-types/factoryWithTypeCheckers.js": -/*!************************************************************!*\ - !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***! - \************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/prop-types/node_modules/react-is/index.js"); -var assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js"); - -var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js"); -var has = __webpack_require__(/*! ./lib/has */ "./node_modules/prop-types/lib/has.js"); -var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js"); - -var printWarning = function() {}; - -if (true) { - printWarning = function(text) { - var message = 'Warning: ' + text; - if (typeof console !== 'undefined') { - console.error(message); - } - try { - // --- Welcome to debugging React --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message); - } catch (x) {} - }; -} - -function emptyFunctionThatReturnsNull() { - return null; -} - -module.exports = function(isValidElement, throwOnDirectAccess) { - /* global Symbol */ - var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; - var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. - - /** - * Returns the iterator method function contained on the iterable object. - * - * Be sure to invoke the function with the iterable as context: - * - * var iteratorFn = getIteratorFn(myIterable); - * if (iteratorFn) { - * var iterator = iteratorFn.call(myIterable); - * ... - * } - * - * @param {?object} maybeIterable - * @return {?function} - */ - function getIteratorFn(maybeIterable) { - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); - if (typeof iteratorFn === 'function') { - return iteratorFn; - } - } - - /** - * Collection of methods that allow declaration and validation of props that are - * supplied to React components. Example usage: - * - * var Props = require('ReactPropTypes'); - * var MyArticle = React.createClass({ - * propTypes: { - * // An optional string prop named "description". - * description: Props.string, - * - * // A required enum prop named "category". - * category: Props.oneOf(['News','Photos']).isRequired, - * - * // A prop named "dialog" that requires an instance of Dialog. - * dialog: Props.instanceOf(Dialog).isRequired - * }, - * render: function() { ... } - * }); - * - * A more formal specification of how these methods are used: - * - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) - * decl := ReactPropTypes.{type}(.isRequired)? - * - * Each and every declaration produces a function with the same signature. This - * allows the creation of custom validation functions. For example: - * - * var MyLink = React.createClass({ - * propTypes: { - * // An optional string or URI prop named "href". - * href: function(props, propName, componentName) { - * var propValue = props[propName]; - * if (propValue != null && typeof propValue !== 'string' && - * !(propValue instanceof URI)) { - * return new Error( - * 'Expected a string or an URI for ' + propName + ' in ' + - * componentName - * ); - * } - * } - * }, - * render: function() {...} - * }); - * - * @internal - */ - - var ANONYMOUS = '<>'; - - // Important! - // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. - var ReactPropTypes = { - array: createPrimitiveTypeChecker('array'), - bigint: createPrimitiveTypeChecker('bigint'), - bool: createPrimitiveTypeChecker('boolean'), - func: createPrimitiveTypeChecker('function'), - number: createPrimitiveTypeChecker('number'), - object: createPrimitiveTypeChecker('object'), - string: createPrimitiveTypeChecker('string'), - symbol: createPrimitiveTypeChecker('symbol'), - - any: createAnyTypeChecker(), - arrayOf: createArrayOfTypeChecker, - element: createElementTypeChecker(), - elementType: createElementTypeTypeChecker(), - instanceOf: createInstanceTypeChecker, - node: createNodeChecker(), - objectOf: createObjectOfTypeChecker, - oneOf: createEnumTypeChecker, - oneOfType: createUnionTypeChecker, - shape: createShapeTypeChecker, - exact: createStrictShapeTypeChecker, - }; - - /** - * inlined Object.is polyfill to avoid requiring consumers ship their own - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is - */ - /*eslint-disable no-self-compare*/ - function is(x, y) { - // SameValue algorithm - if (x === y) { - // Steps 1-5, 7-10 - // Steps 6.b-6.e: +0 != -0 - return x !== 0 || 1 / x === 1 / y; - } else { - // Step 6.a: NaN == NaN - return x !== x && y !== y; - } - } - /*eslint-enable no-self-compare*/ - - /** - * We use an Error-like object for backward compatibility as people may call - * PropTypes directly and inspect their output. However, we don't use real - * Errors anymore. We don't inspect their stack anyway, and creating them - * is prohibitively expensive if they are created too often, such as what - * happens in oneOfType() for any type before the one that matched. - */ - function PropTypeError(message, data) { - this.message = message; - this.data = data && typeof data === 'object' ? data: {}; - this.stack = ''; - } - // Make `instanceof Error` still work for returned errors. - PropTypeError.prototype = Error.prototype; - - function createChainableTypeChecker(validate) { - if (true) { - var manualPropTypeCallCache = {}; - var manualPropTypeWarningCount = 0; - } - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { - componentName = componentName || ANONYMOUS; - propFullName = propFullName || propName; - - if (secret !== ReactPropTypesSecret) { - if (throwOnDirectAccess) { - // New behavior only for users of `prop-types` package - var err = new Error( - 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + - 'Use `PropTypes.checkPropTypes()` to call them. ' + - 'Read more at http://fb.me/use-check-prop-types' - ); - err.name = 'Invariant Violation'; - throw err; - } else if ( true && typeof console !== 'undefined') { - // Old behavior for people using React.PropTypes - var cacheKey = componentName + ':' + propName; - if ( - !manualPropTypeCallCache[cacheKey] && - // Avoid spamming the console because they are often not actionable except for lib authors - manualPropTypeWarningCount < 3 - ) { - printWarning( - 'You are manually calling a React.PropTypes validation ' + - 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + - 'and will throw in the standalone `prop-types` package. ' + - 'You may be seeing this warning due to a third-party PropTypes ' + - 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.' - ); - manualPropTypeCallCache[cacheKey] = true; - manualPropTypeWarningCount++; - } - } - } - if (props[propName] == null) { - if (isRequired) { - if (props[propName] === null) { - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); - } - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); - } - return null; - } else { - return validate(props, propName, componentName, location, propFullName); - } - } - - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - - return chainedCheckType; - } - - function createPrimitiveTypeChecker(expectedType) { - function validate(props, propName, componentName, location, propFullName, secret) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== expectedType) { - // `propValue` being instance of, say, date/regexp, pass the 'object' - // check, but we can offer a more precise error message here rather than - // 'of type `object`'. - var preciseType = getPreciseType(propValue); - - return new PropTypeError( - 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), - {expectedType: expectedType} - ); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createAnyTypeChecker() { - return createChainableTypeChecker(emptyFunctionThatReturnsNull); - } - - function createArrayOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== 'function') { - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); - } - var propValue = props[propName]; - if (!Array.isArray(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); - } - for (var i = 0; i < propValue.length; i++) { - var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); - if (error instanceof Error) { - return error; - } - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createElementTypeChecker() { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - if (!isValidElement(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createElementTypeTypeChecker() { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - if (!ReactIs.isValidElementType(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createInstanceTypeChecker(expectedClass) { - function validate(props, propName, componentName, location, propFullName) { - if (!(props[propName] instanceof expectedClass)) { - var expectedClassName = expectedClass.name || ANONYMOUS; - var actualClassName = getClassName(props[propName]); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createEnumTypeChecker(expectedValues) { - if (!Array.isArray(expectedValues)) { - if (true) { - if (arguments.length > 1) { - printWarning( - 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + - 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).' - ); - } else { - printWarning('Invalid argument supplied to oneOf, expected an array.'); - } - } - return emptyFunctionThatReturnsNull; - } - - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - for (var i = 0; i < expectedValues.length; i++) { - if (is(propValue, expectedValues[i])) { - return null; - } - } - - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { - var type = getPreciseType(value); - if (type === 'symbol') { - return String(value); - } - return value; - }); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); - } - return createChainableTypeChecker(validate); - } - - function createObjectOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== 'function') { - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); - } - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); - } - for (var key in propValue) { - if (has(propValue, key)) { - var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); - if (error instanceof Error) { - return error; - } - } - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createUnionTypeChecker(arrayOfTypeCheckers) { - if (!Array.isArray(arrayOfTypeCheckers)) { - true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0; - return emptyFunctionThatReturnsNull; - } - - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - if (typeof checker !== 'function') { - printWarning( - 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + - 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.' - ); - return emptyFunctionThatReturnsNull; - } - } - - function validate(props, propName, componentName, location, propFullName) { - var expectedTypes = []; - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret); - if (checkerResult == null) { - return null; - } - if (checkerResult.data && has(checkerResult.data, 'expectedType')) { - expectedTypes.push(checkerResult.data.expectedType); - } - } - var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': ''; - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.')); - } - return createChainableTypeChecker(validate); - } - - function createNodeChecker() { - function validate(props, propName, componentName, location, propFullName) { - if (!isNode(props[propName])) { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function invalidValidatorError(componentName, location, propFullName, key, type) { - return new PropTypeError( - (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + - 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.' - ); - } - - function createShapeTypeChecker(shapeTypes) { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); - } - for (var key in shapeTypes) { - var checker = shapeTypes[key]; - if (typeof checker !== 'function') { - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); - } - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); - if (error) { - return error; - } - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createStrictShapeTypeChecker(shapeTypes) { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); - } - // We need to check all keys in case some are required but missing from props. - var allKeys = assign({}, props[propName], shapeTypes); - for (var key in allKeys) { - var checker = shapeTypes[key]; - if (has(shapeTypes, key) && typeof checker !== 'function') { - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); - } - if (!checker) { - return new PropTypeError( - 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + - '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + - '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') - ); - } - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); - if (error) { - return error; - } - } - return null; - } - - return createChainableTypeChecker(validate); - } - - function isNode(propValue) { - switch (typeof propValue) { - case 'number': - case 'string': - case 'undefined': - return true; - case 'boolean': - return !propValue; - case 'object': - if (Array.isArray(propValue)) { - return propValue.every(isNode); - } - if (propValue === null || isValidElement(propValue)) { - return true; - } - - var iteratorFn = getIteratorFn(propValue); - if (iteratorFn) { - var iterator = iteratorFn.call(propValue); - var step; - if (iteratorFn !== propValue.entries) { - while (!(step = iterator.next()).done) { - if (!isNode(step.value)) { - return false; - } - } - } else { - // Iterator will provide entry [k,v] tuples rather than values. - while (!(step = iterator.next()).done) { - var entry = step.value; - if (entry) { - if (!isNode(entry[1])) { - return false; - } - } - } - } - } else { - return false; - } - - return true; - default: - return false; - } - } - - function isSymbol(propType, propValue) { - // Native Symbol. - if (propType === 'symbol') { - return true; - } - - // falsy value can't be a Symbol - if (!propValue) { - return false; - } - - // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' - if (propValue['@@toStringTag'] === 'Symbol') { - return true; - } - - // Fallback for non-spec compliant Symbols which are polyfilled. - if (typeof Symbol === 'function' && propValue instanceof Symbol) { - return true; - } - - return false; - } - - // Equivalent of `typeof` but with special handling for array and regexp. - function getPropType(propValue) { - var propType = typeof propValue; - if (Array.isArray(propValue)) { - return 'array'; - } - if (propValue instanceof RegExp) { - // Old webkits (at least until Android 4.0) return 'function' rather than - // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ - // passes PropTypes.object. - return 'object'; - } - if (isSymbol(propType, propValue)) { - return 'symbol'; - } - return propType; - } - - // This handles more types than `getPropType`. Only used for error messages. - // See `createPrimitiveTypeChecker`. - function getPreciseType(propValue) { - if (typeof propValue === 'undefined' || propValue === null) { - return '' + propValue; - } - var propType = getPropType(propValue); - if (propType === 'object') { - if (propValue instanceof Date) { - return 'date'; - } else if (propValue instanceof RegExp) { - return 'regexp'; - } - } - return propType; - } - - // Returns a string that is postfixed to a warning about an invalid type. - // For example, "undefined" or "of type array" - function getPostfixForTypeWarning(value) { - var type = getPreciseType(value); - switch (type) { - case 'array': - case 'object': - return 'an ' + type; - case 'boolean': - case 'date': - case 'regexp': - return 'a ' + type; - default: - return type; - } - } - - // Returns class name of the object, if any. - function getClassName(propValue) { - if (!propValue.constructor || !propValue.constructor.name) { - return ANONYMOUS; - } - return propValue.constructor.name; - } - - ReactPropTypes.checkPropTypes = checkPropTypes; - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; - ReactPropTypes.PropTypes = ReactPropTypes; - - return ReactPropTypes; -}; - - -/***/ }), - -/***/ "./node_modules/prop-types/index.js": -/*!******************************************!*\ - !*** ./node_modules/prop-types/index.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -if (true) { - var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/prop-types/node_modules/react-is/index.js"); - - // By explicitly using `prop-types` you are opting into new development behavior. - // http://fb.me/prop-types-in-prod - var throwOnDirectAccess = true; - module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "./node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess); -} else {} - - -/***/ }), - -/***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js": -/*!*************************************************************!*\ - !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***! - \*************************************************************/ -/***/ ((module) => { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - -module.exports = ReactPropTypesSecret; - - -/***/ }), - -/***/ "./node_modules/prop-types/lib/has.js": -/*!********************************************!*\ - !*** ./node_modules/prop-types/lib/has.js ***! - \********************************************/ -/***/ ((module) => { - -module.exports = Function.call.bind(Object.prototype.hasOwnProperty); - - -/***/ }), - -/***/ "./node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***! - \***********************************************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -/** @license React v16.13.1 - * react-is.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - - - -if (true) { - (function() { -'use strict'; - -// The Symbol used to tag the ReactElement-like types. If there is no native Symbol -// nor polyfill, then a plain number is used for performance. -var hasSymbol = typeof Symbol === 'function' && Symbol.for; -var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; -var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; -var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; -var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; -var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; -var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; -var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary -// (unstable) APIs that have been removed. Can we remove the symbols? - -var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf; -var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; -var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; -var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; -var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; -var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; -var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; -var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; -var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; -var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; -var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; - -function isValidElementType(type) { - return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. - type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); -} - -function typeOf(object) { - if (typeof object === 'object' && object !== null) { - var $$typeof = object.$$typeof; - - switch ($$typeof) { - case REACT_ELEMENT_TYPE: - var type = object.type; - - switch (type) { - case REACT_ASYNC_MODE_TYPE: - case REACT_CONCURRENT_MODE_TYPE: - case REACT_FRAGMENT_TYPE: - case REACT_PROFILER_TYPE: - case REACT_STRICT_MODE_TYPE: - case REACT_SUSPENSE_TYPE: - return type; - - default: - var $$typeofType = type && type.$$typeof; - - switch ($$typeofType) { - case REACT_CONTEXT_TYPE: - case REACT_FORWARD_REF_TYPE: - case REACT_LAZY_TYPE: - case REACT_MEMO_TYPE: - case REACT_PROVIDER_TYPE: - return $$typeofType; - - default: - return $$typeof; - } - - } - - case REACT_PORTAL_TYPE: - return $$typeof; - } - } - - return undefined; -} // AsyncMode is deprecated along with isAsyncMode - -var AsyncMode = REACT_ASYNC_MODE_TYPE; -var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; -var ContextConsumer = REACT_CONTEXT_TYPE; -var ContextProvider = REACT_PROVIDER_TYPE; -var Element = REACT_ELEMENT_TYPE; -var ForwardRef = REACT_FORWARD_REF_TYPE; -var Fragment = REACT_FRAGMENT_TYPE; -var Lazy = REACT_LAZY_TYPE; -var Memo = REACT_MEMO_TYPE; -var Portal = REACT_PORTAL_TYPE; -var Profiler = REACT_PROFILER_TYPE; -var StrictMode = REACT_STRICT_MODE_TYPE; -var Suspense = REACT_SUSPENSE_TYPE; -var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated - -function isAsyncMode(object) { - { - if (!hasWarnedAboutDeprecatedIsAsyncMode) { - hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint - - console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.'); - } - } - - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; -} -function isConcurrentMode(object) { - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; -} -function isContextConsumer(object) { - return typeOf(object) === REACT_CONTEXT_TYPE; -} -function isContextProvider(object) { - return typeOf(object) === REACT_PROVIDER_TYPE; -} -function isElement(object) { - return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; -} -function isForwardRef(object) { - return typeOf(object) === REACT_FORWARD_REF_TYPE; -} -function isFragment(object) { - return typeOf(object) === REACT_FRAGMENT_TYPE; -} -function isLazy(object) { - return typeOf(object) === REACT_LAZY_TYPE; -} -function isMemo(object) { - return typeOf(object) === REACT_MEMO_TYPE; -} -function isPortal(object) { - return typeOf(object) === REACT_PORTAL_TYPE; -} -function isProfiler(object) { - return typeOf(object) === REACT_PROFILER_TYPE; -} -function isStrictMode(object) { - return typeOf(object) === REACT_STRICT_MODE_TYPE; -} -function isSuspense(object) { - return typeOf(object) === REACT_SUSPENSE_TYPE; -} - -exports.AsyncMode = AsyncMode; -exports.ConcurrentMode = ConcurrentMode; -exports.ContextConsumer = ContextConsumer; -exports.ContextProvider = ContextProvider; -exports.Element = Element; -exports.ForwardRef = ForwardRef; -exports.Fragment = Fragment; -exports.Lazy = Lazy; -exports.Memo = Memo; -exports.Portal = Portal; -exports.Profiler = Profiler; -exports.StrictMode = StrictMode; -exports.Suspense = Suspense; -exports.isAsyncMode = isAsyncMode; -exports.isConcurrentMode = isConcurrentMode; -exports.isContextConsumer = isContextConsumer; -exports.isContextProvider = isContextProvider; -exports.isElement = isElement; -exports.isForwardRef = isForwardRef; -exports.isFragment = isFragment; -exports.isLazy = isLazy; -exports.isMemo = isMemo; -exports.isPortal = isPortal; -exports.isProfiler = isProfiler; -exports.isStrictMode = isStrictMode; -exports.isSuspense = isSuspense; -exports.isValidElementType = isValidElementType; -exports.typeOf = typeOf; - })(); -} - - -/***/ }), - -/***/ "./node_modules/prop-types/node_modules/react-is/index.js": -/*!****************************************************************!*\ - !*** ./node_modules/prop-types/node_modules/react-is/index.js ***! - \****************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -if (false) {} else { - module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"); -} - - -/***/ }), - -/***/ "./node_modules/qs/lib/formats.js": -/*!****************************************!*\ - !*** ./node_modules/qs/lib/formats.js ***! - \****************************************/ -/***/ ((module) => { - -"use strict"; - - -var replace = String.prototype.replace; -var percentTwenties = /%20/g; - -var Format = { - RFC1738: 'RFC1738', - RFC3986: 'RFC3986' -}; - -module.exports = { - 'default': Format.RFC3986, - formatters: { - RFC1738: function (value) { - return replace.call(value, percentTwenties, '+'); - }, - RFC3986: function (value) { - return String(value); - } - }, - RFC1738: Format.RFC1738, - RFC3986: Format.RFC3986 -}; - - -/***/ }), - -/***/ "./node_modules/qs/lib/index.js": -/*!**************************************!*\ - !*** ./node_modules/qs/lib/index.js ***! - \**************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var stringify = __webpack_require__(/*! ./stringify */ "./node_modules/qs/lib/stringify.js"); -var parse = __webpack_require__(/*! ./parse */ "./node_modules/qs/lib/parse.js"); -var formats = __webpack_require__(/*! ./formats */ "./node_modules/qs/lib/formats.js"); - -module.exports = { - formats: formats, - parse: parse, - stringify: stringify -}; - - -/***/ }), - -/***/ "./node_modules/qs/lib/parse.js": -/*!**************************************!*\ - !*** ./node_modules/qs/lib/parse.js ***! - \**************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ./utils */ "./node_modules/qs/lib/utils.js"); - -var has = Object.prototype.hasOwnProperty; -var isArray = Array.isArray; - -var defaults = { - allowDots: false, - allowPrototypes: false, - allowSparse: false, - arrayLimit: 20, - charset: 'utf-8', - charsetSentinel: false, - comma: false, - decoder: utils.decode, - delimiter: '&', - depth: 5, - ignoreQueryPrefix: false, - interpretNumericEntities: false, - parameterLimit: 1000, - parseArrays: true, - plainObjects: false, - strictNullHandling: false -}; - -var interpretNumericEntities = function (str) { - return str.replace(/&#(\d+);/g, function ($0, numberStr) { - return String.fromCharCode(parseInt(numberStr, 10)); - }); -}; - -var parseArrayValue = function (val, options) { - if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { - return val.split(','); - } - - return val; -}; - -// This is what browsers will submit when the ✓ character occurs in an -// application/x-www-form-urlencoded body and the encoding of the page containing -// the form is iso-8859-1, or when the submitted form has an accept-charset -// attribute of iso-8859-1. Presumably also with other charsets that do not contain -// the ✓ character, such as us-ascii. -var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓') - -// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded. -var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓') - -var parseValues = function parseQueryStringValues(str, options) { - var obj = {}; - var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str; - var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit; - var parts = cleanStr.split(options.delimiter, limit); - var skipIndex = -1; // Keep track of where the utf8 sentinel was found - var i; - - var charset = options.charset; - if (options.charsetSentinel) { - for (i = 0; i < parts.length; ++i) { - if (parts[i].indexOf('utf8=') === 0) { - if (parts[i] === charsetSentinel) { - charset = 'utf-8'; - } else if (parts[i] === isoSentinel) { - charset = 'iso-8859-1'; - } - skipIndex = i; - i = parts.length; // The eslint settings do not allow break; - } - } - } - - for (i = 0; i < parts.length; ++i) { - if (i === skipIndex) { - continue; - } - var part = parts[i]; - - var bracketEqualsPos = part.indexOf(']='); - var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1; - - var key, val; - if (pos === -1) { - key = options.decoder(part, defaults.decoder, charset, 'key'); - val = options.strictNullHandling ? null : ''; - } else { - key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); - val = utils.maybeMap( - parseArrayValue(part.slice(pos + 1), options), - function (encodedVal) { - return options.decoder(encodedVal, defaults.decoder, charset, 'value'); - } - ); - } - - if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { - val = interpretNumericEntities(val); - } - - if (part.indexOf('[]=') > -1) { - val = isArray(val) ? [val] : val; - } - - if (has.call(obj, key)) { - obj[key] = utils.combine(obj[key], val); - } else { - obj[key] = val; - } - } - - return obj; -}; - -var parseObject = function (chain, val, options, valuesParsed) { - var leaf = valuesParsed ? val : parseArrayValue(val, options); - - for (var i = chain.length - 1; i >= 0; --i) { - var obj; - var root = chain[i]; - - if (root === '[]' && options.parseArrays) { - obj = [].concat(leaf); - } else { - obj = options.plainObjects ? Object.create(null) : {}; - var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root; - var index = parseInt(cleanRoot, 10); - if (!options.parseArrays && cleanRoot === '') { - obj = { 0: leaf }; - } else if ( - !isNaN(index) - && root !== cleanRoot - && String(index) === cleanRoot - && index >= 0 - && (options.parseArrays && index <= options.arrayLimit) - ) { - obj = []; - obj[index] = leaf; - } else if (cleanRoot !== '__proto__') { - obj[cleanRoot] = leaf; - } - } - - leaf = obj; - } - - return leaf; -}; - -var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { - if (!givenKey) { - return; - } - - // Transform dot notation to bracket notation - var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey; - - // The regex chunks - - var brackets = /(\[[^[\]]*])/; - var child = /(\[[^[\]]*])/g; - - // Get the parent - - var segment = options.depth > 0 && brackets.exec(key); - var parent = segment ? key.slice(0, segment.index) : key; - - // Stash the parent if it exists - - var keys = []; - if (parent) { - // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties - if (!options.plainObjects && has.call(Object.prototype, parent)) { - if (!options.allowPrototypes) { - return; - } - } - - keys.push(parent); - } - - // Loop through children appending to the array until we hit depth - - var i = 0; - while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) { - i += 1; - if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) { - if (!options.allowPrototypes) { - return; - } - } - keys.push(segment[1]); - } - - // If there's a remainder, just add whatever is left - - if (segment) { - keys.push('[' + key.slice(segment.index) + ']'); - } - - return parseObject(keys, val, options, valuesParsed); -}; - -var normalizeParseOptions = function normalizeParseOptions(opts) { - if (!opts) { - return defaults; - } - - if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') { - throw new TypeError('Decoder has to be a function.'); - } - - if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); - } - var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; - - return { - allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, - allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, - allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse, - arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, - charset: charset, - charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, - comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, - decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, - delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, - // eslint-disable-next-line no-implicit-coercion, no-extra-parens - depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth, - ignoreQueryPrefix: opts.ignoreQueryPrefix === true, - interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, - parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, - parseArrays: opts.parseArrays !== false, - plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, - strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling - }; -}; - -module.exports = function (str, opts) { - var options = normalizeParseOptions(opts); - - if (str === '' || str === null || typeof str === 'undefined') { - return options.plainObjects ? Object.create(null) : {}; - } - - var tempObj = typeof str === 'string' ? parseValues(str, options) : str; - var obj = options.plainObjects ? Object.create(null) : {}; - - // Iterate over the keys and setup the new object - - var keys = Object.keys(tempObj); - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string'); - obj = utils.merge(obj, newObj, options); - } - - if (options.allowSparse === true) { - return obj; - } - - return utils.compact(obj); -}; - - -/***/ }), - -/***/ "./node_modules/qs/lib/stringify.js": -/*!******************************************!*\ - !*** ./node_modules/qs/lib/stringify.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var getSideChannel = __webpack_require__(/*! side-channel */ "./node_modules/side-channel/index.js"); -var utils = __webpack_require__(/*! ./utils */ "./node_modules/qs/lib/utils.js"); -var formats = __webpack_require__(/*! ./formats */ "./node_modules/qs/lib/formats.js"); -var has = Object.prototype.hasOwnProperty; - -var arrayPrefixGenerators = { - brackets: function brackets(prefix) { - return prefix + '[]'; - }, - comma: 'comma', - indices: function indices(prefix, key) { - return prefix + '[' + key + ']'; - }, - repeat: function repeat(prefix) { - return prefix; - } -}; - -var isArray = Array.isArray; -var push = Array.prototype.push; -var pushToArray = function (arr, valueOrArray) { - push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); -}; - -var toISO = Date.prototype.toISOString; - -var defaultFormat = formats['default']; -var defaults = { - addQueryPrefix: false, - allowDots: false, - charset: 'utf-8', - charsetSentinel: false, - delimiter: '&', - encode: true, - encoder: utils.encode, - encodeValuesOnly: false, - format: defaultFormat, - formatter: formats.formatters[defaultFormat], - // deprecated - indices: false, - serializeDate: function serializeDate(date) { - return toISO.call(date); - }, - skipNulls: false, - strictNullHandling: false -}; - -var isNonNullishPrimitive = function isNonNullishPrimitive(v) { - return typeof v === 'string' - || typeof v === 'number' - || typeof v === 'boolean' - || typeof v === 'symbol' - || typeof v === 'bigint'; -}; - -var sentinel = {}; - -var stringify = function stringify( - object, - prefix, - generateArrayPrefix, - commaRoundTrip, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - format, - formatter, - encodeValuesOnly, - charset, - sideChannel -) { - var obj = object; - - var tmpSc = sideChannel; - var step = 0; - var findFlag = false; - while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) { - // Where object last appeared in the ref tree - var pos = tmpSc.get(object); - step += 1; - if (typeof pos !== 'undefined') { - if (pos === step) { - throw new RangeError('Cyclic object value'); - } else { - findFlag = true; // Break while - } - } - if (typeof tmpSc.get(sentinel) === 'undefined') { - step = 0; - } - } - - if (typeof filter === 'function') { - obj = filter(prefix, obj); - } else if (obj instanceof Date) { - obj = serializeDate(obj); - } else if (generateArrayPrefix === 'comma' && isArray(obj)) { - obj = utils.maybeMap(obj, function (value) { - if (value instanceof Date) { - return serializeDate(value); - } - return value; - }); - } - - if (obj === null) { - if (strictNullHandling) { - return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix; - } - - obj = ''; - } - - if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { - if (encoder) { - var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format); - return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))]; - } - return [formatter(prefix) + '=' + formatter(String(obj))]; - } - - var values = []; - - if (typeof obj === 'undefined') { - return values; - } - - var objKeys; - if (generateArrayPrefix === 'comma' && isArray(obj)) { - // we need to join elements in - if (encodeValuesOnly && encoder) { - obj = utils.maybeMap(obj, encoder); - } - objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }]; - } else if (isArray(filter)) { - objKeys = filter; - } else { - var keys = Object.keys(obj); - objKeys = sort ? keys.sort(sort) : keys; - } - - var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix; - - for (var j = 0; j < objKeys.length; ++j) { - var key = objKeys[j]; - var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key]; - - if (skipNulls && value === null) { - continue; - } - - var keyPrefix = isArray(obj) - ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix - : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']'); - - sideChannel.set(object, step); - var valueSideChannel = getSideChannel(); - valueSideChannel.set(sentinel, sideChannel); - pushToArray(values, stringify( - value, - keyPrefix, - generateArrayPrefix, - commaRoundTrip, - strictNullHandling, - skipNulls, - generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder, - filter, - sort, - allowDots, - serializeDate, - format, - formatter, - encodeValuesOnly, - charset, - valueSideChannel - )); - } - - return values; -}; - -var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { - if (!opts) { - return defaults; - } - - if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') { - throw new TypeError('Encoder has to be a function.'); - } - - var charset = opts.charset || defaults.charset; - if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); - } - - var format = formats['default']; - if (typeof opts.format !== 'undefined') { - if (!has.call(formats.formatters, opts.format)) { - throw new TypeError('Unknown format option provided.'); - } - format = opts.format; - } - var formatter = formats.formatters[format]; - - var filter = defaults.filter; - if (typeof opts.filter === 'function' || isArray(opts.filter)) { - filter = opts.filter; - } - - return { - addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, - allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, - charset: charset, - charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, - delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, - encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, - encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, - encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, - filter: filter, - format: format, - formatter: formatter, - serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, - skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, - sort: typeof opts.sort === 'function' ? opts.sort : null, - strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling - }; -}; - -module.exports = function (object, opts) { - var obj = object; - var options = normalizeStringifyOptions(opts); - - var objKeys; - var filter; - - if (typeof options.filter === 'function') { - filter = options.filter; - obj = filter('', obj); - } else if (isArray(options.filter)) { - filter = options.filter; - objKeys = filter; - } - - var keys = []; - - if (typeof obj !== 'object' || obj === null) { - return ''; - } - - var arrayFormat; - if (opts && opts.arrayFormat in arrayPrefixGenerators) { - arrayFormat = opts.arrayFormat; - } else if (opts && 'indices' in opts) { - arrayFormat = opts.indices ? 'indices' : 'repeat'; - } else { - arrayFormat = 'indices'; - } - - var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]; - if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') { - throw new TypeError('`commaRoundTrip` must be a boolean, or absent'); - } - var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip; - - if (!objKeys) { - objKeys = Object.keys(obj); - } - - if (options.sort) { - objKeys.sort(options.sort); - } - - var sideChannel = getSideChannel(); - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - - if (options.skipNulls && obj[key] === null) { - continue; - } - pushToArray(keys, stringify( - obj[key], - key, - generateArrayPrefix, - commaRoundTrip, - options.strictNullHandling, - options.skipNulls, - options.encode ? options.encoder : null, - options.filter, - options.sort, - options.allowDots, - options.serializeDate, - options.format, - options.formatter, - options.encodeValuesOnly, - options.charset, - sideChannel - )); - } - - var joined = keys.join(options.delimiter); - var prefix = options.addQueryPrefix === true ? '?' : ''; - - if (options.charsetSentinel) { - if (options.charset === 'iso-8859-1') { - // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark - prefix += 'utf8=%26%2310003%3B&'; - } else { - // encodeURIComponent('✓') - prefix += 'utf8=%E2%9C%93&'; - } - } - - return joined.length > 0 ? prefix + joined : ''; -}; - - -/***/ }), - -/***/ "./node_modules/qs/lib/utils.js": -/*!**************************************!*\ - !*** ./node_modules/qs/lib/utils.js ***! - \**************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var formats = __webpack_require__(/*! ./formats */ "./node_modules/qs/lib/formats.js"); - -var has = Object.prototype.hasOwnProperty; -var isArray = Array.isArray; - -var hexTable = (function () { - var array = []; - for (var i = 0; i < 256; ++i) { - array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); - } - - return array; -}()); - -var compactQueue = function compactQueue(queue) { - while (queue.length > 1) { - var item = queue.pop(); - var obj = item.obj[item.prop]; - - if (isArray(obj)) { - var compacted = []; - - for (var j = 0; j < obj.length; ++j) { - if (typeof obj[j] !== 'undefined') { - compacted.push(obj[j]); - } - } - - item.obj[item.prop] = compacted; - } - } -}; - -var arrayToObject = function arrayToObject(source, options) { - var obj = options && options.plainObjects ? Object.create(null) : {}; - for (var i = 0; i < source.length; ++i) { - if (typeof source[i] !== 'undefined') { - obj[i] = source[i]; - } - } - - return obj; -}; - -var merge = function merge(target, source, options) { - /* eslint no-param-reassign: 0 */ - if (!source) { - return target; - } - - if (typeof source !== 'object') { - if (isArray(target)) { - target.push(source); - } else if (target && typeof target === 'object') { - if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) { - target[source] = true; - } - } else { - return [target, source]; - } - - return target; - } - - if (!target || typeof target !== 'object') { - return [target].concat(source); - } - - var mergeTarget = target; - if (isArray(target) && !isArray(source)) { - mergeTarget = arrayToObject(target, options); - } - - if (isArray(target) && isArray(source)) { - source.forEach(function (item, i) { - if (has.call(target, i)) { - var targetItem = target[i]; - if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { - target[i] = merge(targetItem, item, options); - } else { - target.push(item); - } - } else { - target[i] = item; - } - }); - return target; - } - - return Object.keys(source).reduce(function (acc, key) { - var value = source[key]; - - if (has.call(acc, key)) { - acc[key] = merge(acc[key], value, options); - } else { - acc[key] = value; - } - return acc; - }, mergeTarget); -}; - -var assign = function assignSingleSource(target, source) { - return Object.keys(source).reduce(function (acc, key) { - acc[key] = source[key]; - return acc; - }, target); -}; - -var decode = function (str, decoder, charset) { - var strWithoutPlus = str.replace(/\+/g, ' '); - if (charset === 'iso-8859-1') { - // unescape never throws, no try...catch needed: - return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); - } - // utf-8 - try { - return decodeURIComponent(strWithoutPlus); - } catch (e) { - return strWithoutPlus; - } -}; - -var encode = function encode(str, defaultEncoder, charset, kind, format) { - // This code was originally written by Brian White (mscdex) for the io.js core querystring library. - // It has been adapted here for stricter adherence to RFC 3986 - if (str.length === 0) { - return str; - } - - var string = str; - if (typeof str === 'symbol') { - string = Symbol.prototype.toString.call(str); - } else if (typeof str !== 'string') { - string = String(str); - } - - if (charset === 'iso-8859-1') { - return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { - return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; - }); - } - - var out = ''; - for (var i = 0; i < string.length; ++i) { - var c = string.charCodeAt(i); - - if ( - c === 0x2D // - - || c === 0x2E // . - || c === 0x5F // _ - || c === 0x7E // ~ - || (c >= 0x30 && c <= 0x39) // 0-9 - || (c >= 0x41 && c <= 0x5A) // a-z - || (c >= 0x61 && c <= 0x7A) // A-Z - || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( ) - ) { - out += string.charAt(i); - continue; - } - - if (c < 0x80) { - out = out + hexTable[c]; - continue; - } - - if (c < 0x800) { - out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]); - continue; - } - - if (c < 0xD800 || c >= 0xE000) { - out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]); - continue; - } - - i += 1; - c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF)); - /* eslint operator-linebreak: [2, "before"] */ - out += hexTable[0xF0 | (c >> 18)] - + hexTable[0x80 | ((c >> 12) & 0x3F)] - + hexTable[0x80 | ((c >> 6) & 0x3F)] - + hexTable[0x80 | (c & 0x3F)]; - } - - return out; -}; - -var compact = function compact(value) { - var queue = [{ obj: { o: value }, prop: 'o' }]; - var refs = []; - - for (var i = 0; i < queue.length; ++i) { - var item = queue[i]; - var obj = item.obj[item.prop]; - - var keys = Object.keys(obj); - for (var j = 0; j < keys.length; ++j) { - var key = keys[j]; - var val = obj[key]; - if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) { - queue.push({ obj: obj, prop: key }); - refs.push(val); - } - } - } - - compactQueue(queue); - - return value; -}; - -var isRegExp = function isRegExp(obj) { - return Object.prototype.toString.call(obj) === '[object RegExp]'; -}; - -var isBuffer = function isBuffer(obj) { - if (!obj || typeof obj !== 'object') { - return false; - } - - return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); -}; - -var combine = function combine(a, b) { - return [].concat(a, b); -}; - -var maybeMap = function maybeMap(val, fn) { - if (isArray(val)) { - var mapped = []; - for (var i = 0; i < val.length; i += 1) { - mapped.push(fn(val[i])); - } - return mapped; - } - return fn(val); -}; - -module.exports = { - arrayToObject: arrayToObject, - assign: assign, - combine: combine, - compact: compact, - decode: decode, - encode: encode, - isBuffer: isBuffer, - isRegExp: isRegExp, - maybeMap: maybeMap, - merge: merge -}; - - -/***/ }), - -/***/ "./node_modules/react-filepond/dist/react-filepond.js": -/*!************************************************************!*\ - !*** ./node_modules/react-filepond/dist/react-filepond.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -/*! - * react-filepond v7.1.2 - * A handy FilePond adapter component for React - * - * Copyright (c) 2022 PQINA - * https://pqina.nl/filepond - * - * Licensed under the MIT license. - */ - - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.FilePond = exports.FileStatus = exports.registerPlugin = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _react = __webpack_require__(/*! react */ "react"); - -var _react2 = _interopRequireDefault(_react); - -var _filepond = __webpack_require__(/*! filepond */ "./node_modules/filepond/dist/filepond.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -// Import required methods and styles from the FilePond module, should not need anything else - - -// We need to be able to call the registerPlugin method directly so we can add plugins -exports.registerPlugin = _filepond.registerPlugin; -exports.FileStatus = _filepond.FileStatus; - -// Do this once - -var isSupported = (0, _filepond.supported)(); - -// filtered methods -var filteredMethods = ["setOptions", "on", "off", "onOnce", "appendTo", "insertAfter", "insertBefore", "isAttachedTo", "replaceElement", "restoreElement", "destroy"]; - -// The React wrapper - -var FilePond = exports.FilePond = function (_React$Component) { - _inherits(FilePond, _React$Component); - - function FilePond(props) { - _classCallCheck(this, FilePond); - - var _this = _possibleConstructorReturn(this, (FilePond.__proto__ || Object.getPrototypeOf(FilePond)).call(this, props)); - - _this.allowFilesSync = true; - return _this; - } - - // Will setup FilePond instance when mounted - - - _createClass(FilePond, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - // clone the input so we can restore it in unmount - this._input = this._element.querySelector('input[type="file"]'); - this._inputClone = this._input.cloneNode(); - - // exit here if not supported - if (!isSupported) return; - - var options = Object.assign({}, this.props); - - // if onupdate files is defined, make sure setFiles does not cause race condition - if (options.onupdatefiles) { - var cb = options.onupdatefiles; - options.onupdatefiles = function (items) { - _this2.allowFilesSync = false; - cb(items); - }; - } - - // Create our pond - this._pond = (0, _filepond.create)(this._input, options); - - // Reference pond methods to FilePond component instance - Object.keys(this._pond).filter(function (key) { - return !filteredMethods.includes(key); - }).forEach(function (key) { - _this2[key] = _this2._pond[key]; - }); - } - - // Will clean up FilePond instance when unmounted - - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - // exit when no pond defined - if (!this._pond) return; - - // This fixed errors - - // FilePond destroy is async so we have to move FilePond to a bin element so it can no longer affect current element tree as React unmount / mount is sync - var bin = document.createElement("div"); - bin.append(this._pond.element); - bin.id = "foo"; - - // now we call destroy so FilePond can start it's destroy logic - this._pond.destroy(); - this._pond = undefined; - - // we re-add the original file input element so everything is as it was before - this._element.append(this._inputClone); - } - }, { - key: "shouldComponentUpdate", - value: function shouldComponentUpdate() { - if (!this.allowFilesSync) { - this.allowFilesSync = true; - return false; - } - return true; - } - - // Something changed - - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - // exit when no pond defined - if (!this._pond) return; - - var options = Object.assign({}, this.props); - - // this is only set onces, on didmount - delete options.onupdatefiles; - - // update pond options based on new props - this._pond.setOptions(options); - } - - // Renders basic element hook for FilePond to attach to - - }, { - key: "render", - value: function render() { - var _this3 = this; - - var _props = this.props, - id = _props.id, - name = _props.name, - className = _props.className, - allowMultiple = _props.allowMultiple, - required = _props.required, - captureMethod = _props.captureMethod, - acceptedFileTypes = _props.acceptedFileTypes; - - return (0, _react.createElement)("div", { - className: "filepond--wrapper", - ref: function ref(element) { - return _this3._element = element; - } - }, (0, _react.createElement)("input", { - type: "file", - name: name, - id: id, - accept: acceptedFileTypes, - multiple: allowMultiple, - required: required, - className: className, - capture: captureMethod - })); - } - }]); - - return FilePond; -}(_react2.default.Component); - - - - -/***/ }), - -/***/ "./node_modules/rgb2hex/index.js": -/*!***************************************!*\ - !*** ./node_modules/rgb2hex/index.js ***! - \***************************************/ -/***/ ((module) => { - -/** - * rgb2hex - * - * @author Christian Bromann - * @description converts rgba color to HEX - * - * @param {String} color rgb or rgba color - * @return {Object} object with hex and alpha value - */ - -var rgb2hex = module.exports = function rgb2hex(color) { - if(typeof color !== 'string') { - // throw error of input isn't typeof string - throw new Error('color has to be type of `string`'); - } else if (color.substr(0, 1) === '#') { - // or return if already rgb color - return { - hex: color, - alpha: 1 - }; - } - - /** - * strip spaces - */ - var strippedColor = color.replace(/\s+/g,''); - - /** - * parse input - */ - var digits = /(.*?)rgb(a)??\((\d{1,3}),(\d{1,3}),(\d{1,3})(,([01]|1.0*|0??\.([0-9]{0,})))??\)/.exec(strippedColor); - - if(!digits) { - // or throw error if input isn't a valid rgb(a) color - throw new Error('given color (' + color + ') isn\'t a valid rgb or rgba color'); - } - - var red = parseInt(digits[3], 10); - var green = parseInt(digits[4], 10); - var blue = parseInt(digits[5], 10); - var alpha = digits[6] ? /([0-9\.]+)/.exec(digits[6])[0] : '1'; - var rgb = ((blue | green << 8 | red << 16) | 1 << 24).toString(16).slice(1); - - // parse alpha value into float - if(alpha.substr(0,1) === '.') { - alpha = parseFloat('0' + alpha); - } - - // cut alpha value after 2 digits after comma - alpha = parseFloat(Math.round(alpha * 100)) / 100; - - return { - hex: '#' + rgb.toString(16), - alpha: alpha - }; -}; - - -/***/ }), - -/***/ "./node_modules/set-function-length/index.js": -/*!***************************************************!*\ - !*** ./node_modules/set-function-length/index.js ***! - \***************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js"); -var define = __webpack_require__(/*! define-data-property */ "./node_modules/define-data-property/index.js"); -var hasDescriptors = __webpack_require__(/*! has-property-descriptors */ "./node_modules/has-property-descriptors/index.js")(); -var gOPD = __webpack_require__(/*! gopd */ "./node_modules/gopd/index.js"); - -var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js"); -var $floor = GetIntrinsic('%Math.floor%'); - -/** @typedef {(...args: unknown[]) => unknown} Func */ - -/** @type {(fn: T, length: number, loose?: boolean) => T} */ -module.exports = function setFunctionLength(fn, length) { - if (typeof fn !== 'function') { - throw new $TypeError('`fn` is not a function'); - } - if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) { - throw new $TypeError('`length` must be a positive 32-bit integer'); - } - - var loose = arguments.length > 2 && !!arguments[2]; - - var functionLengthIsConfigurable = true; - var functionLengthIsWritable = true; - if ('length' in fn && gOPD) { - var desc = gOPD(fn, 'length'); - if (desc && !desc.configurable) { - functionLengthIsConfigurable = false; - } - if (desc && !desc.writable) { - functionLengthIsWritable = false; - } - } - - if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) { - if (hasDescriptors) { - define(/** @type {Parameters[0]} */ (fn), 'length', length, true, true); - } else { - define(/** @type {Parameters[0]} */ (fn), 'length', length); - } - } - return fn; -}; - - -/***/ }), - -/***/ "./node_modules/side-channel/index.js": -/*!********************************************!*\ - !*** ./node_modules/side-channel/index.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js"); -var callBound = __webpack_require__(/*! call-bind/callBound */ "./node_modules/call-bind/callBound.js"); -var inspect = __webpack_require__(/*! object-inspect */ "./node_modules/object-inspect/index.js"); - -var $TypeError = GetIntrinsic('%TypeError%'); -var $WeakMap = GetIntrinsic('%WeakMap%', true); -var $Map = GetIntrinsic('%Map%', true); - -var $weakMapGet = callBound('WeakMap.prototype.get', true); -var $weakMapSet = callBound('WeakMap.prototype.set', true); -var $weakMapHas = callBound('WeakMap.prototype.has', true); -var $mapGet = callBound('Map.prototype.get', true); -var $mapSet = callBound('Map.prototype.set', true); -var $mapHas = callBound('Map.prototype.has', true); - -/* - * This function traverses the list returning the node corresponding to the - * given key. - * - * That node is also moved to the head of the list, so that if it's accessed - * again we don't need to traverse the whole list. By doing so, all the recently - * used nodes can be accessed relatively quickly. - */ -var listGetNode = function (list, key) { // eslint-disable-line consistent-return - for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) { - if (curr.key === key) { - prev.next = curr.next; - curr.next = list.next; - list.next = curr; // eslint-disable-line no-param-reassign - return curr; - } - } -}; - -var listGet = function (objects, key) { - var node = listGetNode(objects, key); - return node && node.value; -}; -var listSet = function (objects, key, value) { - var node = listGetNode(objects, key); - if (node) { - node.value = value; - } else { - // Prepend the new node to the beginning of the list - objects.next = { // eslint-disable-line no-param-reassign - key: key, - next: objects.next, - value: value - }; - } -}; -var listHas = function (objects, key) { - return !!listGetNode(objects, key); -}; - -module.exports = function getSideChannel() { - var $wm; - var $m; - var $o; - var channel = { - assert: function (key) { - if (!channel.has(key)) { - throw new $TypeError('Side channel does not contain ' + inspect(key)); - } - }, - get: function (key) { // eslint-disable-line consistent-return - if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { - if ($wm) { - return $weakMapGet($wm, key); - } - } else if ($Map) { - if ($m) { - return $mapGet($m, key); - } - } else { - if ($o) { // eslint-disable-line no-lonely-if - return listGet($o, key); - } - } - }, - has: function (key) { - if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { - if ($wm) { - return $weakMapHas($wm, key); - } - } else if ($Map) { - if ($m) { - return $mapHas($m, key); - } - } else { - if ($o) { // eslint-disable-line no-lonely-if - return listHas($o, key); - } - } - return false; - }, - set: function (key, value) { - if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { - if (!$wm) { - $wm = new $WeakMap(); - } - $weakMapSet($wm, key, value); - } else if ($Map) { - if (!$m) { - $m = new $Map(); - } - $mapSet($m, key, value); - } else { - if (!$o) { - /* - * Initialize the linked list as an empty node, so that we don't have - * to special-case handling of the first node: we can always refer to - * it as (previous node).next, instead of something like (list).head - */ - $o = { key: {}, next: null }; - } - listSet($o, key, value); - } - } - }; - return channel; -}; - - -/***/ }), - -/***/ "react": -/*!************************!*\ - !*** external "React" ***! - \************************/ -/***/ ((module) => { - -"use strict"; -module.exports = window["React"]; - -/***/ }), - -/***/ "@wordpress/a11y": -/*!******************************!*\ - !*** external ["wp","a11y"] ***! - \******************************/ -/***/ ((module) => { - -"use strict"; -module.exports = window["wp"]["a11y"]; - -/***/ }), - -/***/ "@wordpress/block-editor": -/*!*************************************!*\ - !*** external ["wp","blockEditor"] ***! - \*************************************/ -/***/ ((module) => { - -"use strict"; -module.exports = window["wp"]["blockEditor"]; - -/***/ }), - -/***/ "@wordpress/blocks": -/*!********************************!*\ - !*** external ["wp","blocks"] ***! - \********************************/ -/***/ ((module) => { - -"use strict"; -module.exports = window["wp"]["blocks"]; - -/***/ }), - -/***/ "@wordpress/components": -/*!************************************!*\ - !*** external ["wp","components"] ***! - \************************************/ -/***/ ((module) => { - -"use strict"; -module.exports = window["wp"]["components"]; - -/***/ }), - -/***/ "@wordpress/compose": -/*!*********************************!*\ - !*** external ["wp","compose"] ***! - \*********************************/ -/***/ ((module) => { - -"use strict"; -module.exports = window["wp"]["compose"]; - -/***/ }), - -/***/ "@wordpress/data": -/*!******************************!*\ - !*** external ["wp","data"] ***! - \******************************/ -/***/ ((module) => { - -"use strict"; -module.exports = window["wp"]["data"]; - -/***/ }), - -/***/ "@wordpress/element": -/*!*********************************!*\ - !*** external ["wp","element"] ***! - \*********************************/ -/***/ ((module) => { - -"use strict"; -module.exports = window["wp"]["element"]; - -/***/ }), - -/***/ "@wordpress/escape-html": -/*!************************************!*\ - !*** external ["wp","escapeHtml"] ***! - \************************************/ -/***/ ((module) => { - -"use strict"; -module.exports = window["wp"]["escapeHtml"]; - -/***/ }), - -/***/ "@wordpress/hooks": -/*!*******************************!*\ - !*** external ["wp","hooks"] ***! - \*******************************/ -/***/ ((module) => { - -"use strict"; -module.exports = window["wp"]["hooks"]; - -/***/ }), - -/***/ "@wordpress/i18n": -/*!******************************!*\ - !*** external ["wp","i18n"] ***! - \******************************/ -/***/ ((module) => { - -"use strict"; -module.exports = window["wp"]["i18n"]; - -/***/ }), - -/***/ "@wordpress/keycodes": -/*!**********************************!*\ - !*** external ["wp","keycodes"] ***! - \**********************************/ -/***/ ((module) => { - -"use strict"; -module.exports = window["wp"]["keycodes"]; - -/***/ }), - -/***/ "@wordpress/plugins": -/*!*********************************!*\ - !*** external ["wp","plugins"] ***! - \*********************************/ -/***/ ((module) => { - -"use strict"; -module.exports = window["wp"]["plugins"]; - -/***/ }), - -/***/ "@wordpress/url": -/*!*****************************!*\ - !*** external ["wp","url"] ***! - \*****************************/ -/***/ ((module) => { - -"use strict"; -module.exports = window["wp"]["url"]; - -/***/ }), - -/***/ "?4f7e": -/*!********************************!*\ - !*** ./util.inspect (ignored) ***! - \********************************/ -/***/ (() => { - -/* (ignored) */ - -/***/ }), - -/***/ "./node_modules/axios/lib/adapters/adapters.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/adapters/adapters.js ***! - \*****************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js"); -/* harmony import */ var _http_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./http.js */ "./node_modules/axios/lib/helpers/null.js"); -/* harmony import */ var _xhr_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./xhr.js */ "./node_modules/axios/lib/adapters/xhr.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js"); - - - - - -const knownAdapters = { - http: _http_js__WEBPACK_IMPORTED_MODULE_0__["default"], - xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_1__["default"] -} - -_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(knownAdapters, (fn, value) => { - if (fn) { - try { - Object.defineProperty(fn, 'name', {value}); - } catch (e) { - // eslint-disable-next-line no-empty - } - Object.defineProperty(fn, 'adapterName', {value}); - } -}); - -const renderReason = (reason) => `- ${reason}`; - -const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFunction(adapter) || adapter === null || adapter === false; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - getAdapter: (adapters) => { - adapters = _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isArray(adapters) ? adapters : [adapters]; - - const {length} = adapters; - let nameOrAdapter; - let adapter; - - const rejectedReasons = {}; - - for (let i = 0; i < length; i++) { - nameOrAdapter = adapters[i]; - let id; - - adapter = nameOrAdapter; - - if (!isResolvedHandle(nameOrAdapter)) { - adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()]; - - if (adapter === undefined) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](`Unknown adapter '${id}'`); - } - } - - if (adapter) { - break; - } - - rejectedReasons[id || '#' + i] = adapter; - } - - if (!adapter) { - - const reasons = Object.entries(rejectedReasons) - .map(([id, state]) => `adapter ${id} ` + - (state === false ? 'is not supported by the environment' : 'is not available in the build') - ); - - let s = length ? - (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) : - 'as no adapter specified'; - - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"]( - `There is no suitable adapter to dispatch the request ` + s, - 'ERR_NOT_SUPPORT' - ); - } - - return adapter; - }, - adapters: knownAdapters -}); - - -/***/ }), - -/***/ "./node_modules/axios/lib/adapters/xhr.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/adapters/xhr.js ***! - \************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js"); -/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../core/settle.js */ "./node_modules/axios/lib/core/settle.js"); -/* harmony import */ var _helpers_cookies_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../helpers/cookies.js */ "./node_modules/axios/lib/helpers/cookies.js"); -/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../helpers/buildURL.js */ "./node_modules/axios/lib/helpers/buildURL.js"); -/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/buildFullPath.js */ "./node_modules/axios/lib/core/buildFullPath.js"); -/* harmony import */ var _helpers_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../helpers/isURLSameOrigin.js */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js"); -/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../defaults/transitional.js */ "./node_modules/axios/lib/defaults/transitional.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "./node_modules/axios/lib/cancel/CanceledError.js"); -/* harmony import */ var _helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../helpers/parseProtocol.js */ "./node_modules/axios/lib/helpers/parseProtocol.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js"); -/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js"); -/* harmony import */ var _helpers_speedometer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/speedometer.js */ "./node_modules/axios/lib/helpers/speedometer.js"); - - - - - - - - - - - - - - - - -function progressEventReducer(listener, isDownloadStream) { - let bytesNotified = 0; - const _speedometer = (0,_helpers_speedometer_js__WEBPACK_IMPORTED_MODULE_0__["default"])(50, 250); - - return e => { - const loaded = e.loaded; - const total = e.lengthComputable ? e.total : undefined; - const progressBytes = loaded - bytesNotified; - const rate = _speedometer(progressBytes); - const inRange = loaded <= total; - - bytesNotified = loaded; - - const data = { - loaded, - total, - progress: total ? (loaded / total) : undefined, - bytes: progressBytes, - rate: rate ? rate : undefined, - estimated: rate && total && inRange ? (total - loaded) / rate : undefined, - event: e - }; - - data[isDownloadStream ? 'download' : 'upload'] = true; - - listener(data); - }; -} - -const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined'; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isXHRAdapterSupported && function (config) { - return new Promise(function dispatchXhrRequest(resolve, reject) { - let requestData = config.data; - const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(config.headers).normalize(); - let {responseType, withXSRFToken} = config; - let onCanceled; - function done() { - if (config.cancelToken) { - config.cancelToken.unsubscribe(onCanceled); - } - - if (config.signal) { - config.signal.removeEventListener('abort', onCanceled); - } - } - - let contentType; - - if (_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFormData(requestData)) { - if (_platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].hasStandardBrowserEnv || _platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].hasStandardBrowserWebWorkerEnv) { - requestHeaders.setContentType(false); // Let the browser set it - } else if ((contentType = requestHeaders.getContentType()) !== false) { - // fix semicolon duplication issue for ReactNative FormData implementation - const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : []; - requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; ')); - } - } - - let request = new XMLHttpRequest(); - - // HTTP basic authentication - if (config.auth) { - const username = config.auth.username || ''; - const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; - requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password)); - } - - const fullPath = (0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__["default"])(config.baseURL, config.url); - - request.open(config.method.toUpperCase(), (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_5__["default"])(fullPath, config.params, config.paramsSerializer), true); - - // Set the request timeout in MS - request.timeout = config.timeout; - - function onloadend() { - if (!request) { - return; - } - // Prepare the response - const responseHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from( - 'getAllResponseHeaders' in request && request.getAllResponseHeaders() - ); - const responseData = !responseType || responseType === 'text' || responseType === 'json' ? - request.responseText : request.response; - const response = { - data: responseData, - status: request.status, - statusText: request.statusText, - headers: responseHeaders, - config, - request - }; - - (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_6__["default"])(function _resolve(value) { - resolve(value); - done(); - }, function _reject(err) { - reject(err); - done(); - }, response); - - // Clean up request - request = null; - } - - if ('onloadend' in request) { - // Use onloadend if available - request.onloadend = onloadend; - } else { - // Listen for ready state to emulate onloadend - request.onreadystatechange = function handleLoad() { - if (!request || request.readyState !== 4) { - return; - } - - // The request errored out and we didn't get a response, this will be - // handled by onerror instead - // With one exception: request that using file: protocol, most browsers - // will return status as 0 even though it's a successful request - if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { - return; - } - // readystate handler is calling before onerror or ontimeout handlers, - // so we should call onloadend on the next 'tick' - setTimeout(onloadend); - }; - } - - // Handle browser request cancellation (as opposed to a manual cancellation) - request.onabort = function handleAbort() { - if (!request) { - return; - } - - reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]('Request aborted', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ECONNABORTED, config, request)); - - // Clean up request - request = null; - }; - - // Handle low level network errors - request.onerror = function handleError() { - // Real errors are hidden from us by the browser - // onerror should only fire if it's a network error - reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ERR_NETWORK, config, request)); - - // Clean up request - request = null; - }; - - // Handle timeout - request.ontimeout = function handleTimeout() { - let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; - const transitional = config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_8__["default"]; - if (config.timeoutErrorMessage) { - timeoutErrorMessage = config.timeoutErrorMessage; - } - reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]( - timeoutErrorMessage, - transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ECONNABORTED, - config, - request)); - - // Clean up request - request = null; - }; - - // Add xsrf header - // This is only done if running in a standard browser environment. - // Specifically not if we're in a web worker, or react-native. - if(_platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].hasStandardBrowserEnv) { - withXSRFToken && _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config)); - - if (withXSRFToken || (withXSRFToken !== false && (0,_helpers_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_9__["default"])(fullPath))) { - // Add xsrf header - const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && _helpers_cookies_js__WEBPACK_IMPORTED_MODULE_10__["default"].read(config.xsrfCookieName); - - if (xsrfValue) { - requestHeaders.set(config.xsrfHeaderName, xsrfValue); - } - } - } - - // Remove Content-Type if data is undefined - requestData === undefined && requestHeaders.setContentType(null); - - // Add headers to the request - if ('setRequestHeader' in request) { - _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) { - request.setRequestHeader(key, val); - }); - } - - // Add withCredentials to request if needed - if (!_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isUndefined(config.withCredentials)) { - request.withCredentials = !!config.withCredentials; - } - - // Add responseType to request if needed - if (responseType && responseType !== 'json') { - request.responseType = config.responseType; - } - - // Handle progress if needed - if (typeof config.onDownloadProgress === 'function') { - request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true)); - } - - // Not all browsers support upload events - if (typeof config.onUploadProgress === 'function' && request.upload) { - request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress)); - } - - if (config.cancelToken || config.signal) { - // Handle cancellation - // eslint-disable-next-line func-names - onCanceled = cancel => { - if (!request) { - return; - } - reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_11__["default"](null, config, request) : cancel); - request.abort(); - request = null; - }; - - config.cancelToken && config.cancelToken.subscribe(onCanceled); - if (config.signal) { - config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); - } - } - - const protocol = (0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_12__["default"])(fullPath); - - if (protocol && _platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].protocols.indexOf(protocol) === -1) { - reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]('Unsupported protocol ' + protocol + ':', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ERR_BAD_REQUEST, config)); - return; - } - - - // Send the request - request.send(requestData || null); - }); -}); - - -/***/ }), - -/***/ "./node_modules/axios/lib/axios.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/axios.js ***! - \*****************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils.js */ "./node_modules/axios/lib/utils.js"); -/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/bind.js */ "./node_modules/axios/lib/helpers/bind.js"); -/* harmony import */ var _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core/Axios.js */ "./node_modules/axios/lib/core/Axios.js"); -/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/mergeConfig.js */ "./node_modules/axios/lib/core/mergeConfig.js"); -/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaults/index.js */ "./node_modules/axios/lib/defaults/index.js"); -/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers/formDataToJSON.js */ "./node_modules/axios/lib/helpers/formDataToJSON.js"); -/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cancel/CanceledError.js */ "./node_modules/axios/lib/cancel/CanceledError.js"); -/* harmony import */ var _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cancel/CancelToken.js */ "./node_modules/axios/lib/cancel/CancelToken.js"); -/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cancel/isCancel.js */ "./node_modules/axios/lib/cancel/isCancel.js"); -/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./env/data.js */ "./node_modules/axios/lib/env/data.js"); -/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./helpers/toFormData.js */ "./node_modules/axios/lib/helpers/toFormData.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helpers/spread.js */ "./node_modules/axios/lib/helpers/spread.js"); -/* harmony import */ var _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers/isAxiosError.js */ "./node_modules/axios/lib/helpers/isAxiosError.js"); -/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js"); -/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./adapters/adapters.js */ "./node_modules/axios/lib/adapters/adapters.js"); -/* harmony import */ var _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers/HttpStatusCode.js */ "./node_modules/axios/lib/helpers/HttpStatusCode.js"); - - - - - - - - - - - - - - - - - - - - -/** - * Create an instance of Axios - * - * @param {Object} defaultConfig The default config for the instance - * - * @returns {Axios} A new instance of Axios - */ -function createInstance(defaultConfig) { - const context = new _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"](defaultConfig); - const instance = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"].prototype.request, context); - - // Copy axios.prototype to instance - _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].extend(instance, _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"].prototype, context, {allOwnKeys: true}); - - // Copy context to instance - _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].extend(instance, context, null, {allOwnKeys: true}); - - // Factory for creating new instances - instance.create = function create(instanceConfig) { - return createInstance((0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"])(defaultConfig, instanceConfig)); - }; - - return instance; -} - -// Create the default instance to be exported -const axios = createInstance(_defaults_index_js__WEBPACK_IMPORTED_MODULE_4__["default"]); - -// Expose Axios class to allow class inheritance -axios.Axios = _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"]; - -// Expose Cancel & CancelToken -axios.CanceledError = _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__["default"]; -axios.CancelToken = _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__["default"]; -axios.isCancel = _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__["default"]; -axios.VERSION = _env_data_js__WEBPACK_IMPORTED_MODULE_8__.VERSION; -axios.toFormData = _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__["default"]; - -// Expose AxiosError class -axios.AxiosError = _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__["default"]; - -// alias for CanceledError for backward compatibility -axios.Cancel = axios.CanceledError; - -// Expose all/spread -axios.all = function all(promises) { - return Promise.all(promises); -}; - -axios.spread = _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__["default"]; - -// Expose isAxiosError -axios.isAxiosError = _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__["default"]; - -// Expose mergeConfig -axios.mergeConfig = _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"]; - -axios.AxiosHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__["default"]; - -axios.formToJSON = thing => (0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__["default"])(_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isHTMLForm(thing) ? new FormData(thing) : thing); - -axios.getAdapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__["default"].getAdapter; - -axios.HttpStatusCode = _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__["default"]; - -axios.default = axios; - -// this module should only have a default export -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (axios); - - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/CancelToken.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/cancel/CancelToken.js ***! - \******************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CanceledError.js */ "./node_modules/axios/lib/cancel/CanceledError.js"); - - - - -/** - * A `CancelToken` is an object that can be used to request cancellation of an operation. - * - * @param {Function} executor The executor function. - * - * @returns {CancelToken} - */ -class CancelToken { - constructor(executor) { - if (typeof executor !== 'function') { - throw new TypeError('executor must be a function.'); - } - - let resolvePromise; - - this.promise = new Promise(function promiseExecutor(resolve) { - resolvePromise = resolve; - }); - - const token = this; - - // eslint-disable-next-line func-names - this.promise.then(cancel => { - if (!token._listeners) return; - - let i = token._listeners.length; - - while (i-- > 0) { - token._listeners[i](cancel); - } - token._listeners = null; - }); - - // eslint-disable-next-line func-names - this.promise.then = onfulfilled => { - let _resolve; - // eslint-disable-next-line func-names - const promise = new Promise(resolve => { - token.subscribe(resolve); - _resolve = resolve; - }).then(onfulfilled); - - promise.cancel = function reject() { - token.unsubscribe(_resolve); - }; - - return promise; - }; - - executor(function cancel(message, config, request) { - if (token.reason) { - // Cancellation has already been requested - return; - } - - token.reason = new _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__["default"](message, config, request); - resolvePromise(token.reason); - }); - } - - /** - * Throws a `CanceledError` if cancellation has been requested. - */ - throwIfRequested() { - if (this.reason) { - throw this.reason; - } - } - - /** - * Subscribe to the cancel signal - */ - - subscribe(listener) { - if (this.reason) { - listener(this.reason); - return; - } - - if (this._listeners) { - this._listeners.push(listener); - } else { - this._listeners = [listener]; - } - } - - /** - * Unsubscribe from the cancel signal - */ - - unsubscribe(listener) { - if (!this._listeners) { - return; - } - const index = this._listeners.indexOf(listener); - if (index !== -1) { - this._listeners.splice(index, 1); - } - } - - /** - * Returns an object that contains a new `CancelToken` and a function that, when called, - * cancels the `CancelToken`. - */ - static source() { - let cancel; - const token = new CancelToken(function executor(c) { - cancel = c; - }); - return { - token, - cancel - }; - } -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CancelToken); - - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/CanceledError.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/cancel/CanceledError.js ***! - \********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js"); - - - - - -/** - * A `CanceledError` is an object that is thrown when an operation is canceled. - * - * @param {string=} message The message. - * @param {Object=} config The config. - * @param {Object=} request The request. - * - * @returns {CanceledError} The created error. - */ -function CanceledError(message, config, request) { - // eslint-disable-next-line no-eq-null,eqeqeq - _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(this, message == null ? 'canceled' : message, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_CANCELED, config, request); - this.name = 'CanceledError'; -} - -_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].inherits(CanceledError, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"], { - __CANCEL__: true -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CanceledError); - - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/isCancel.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/cancel/isCancel.js ***! - \***************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ isCancel) -/* harmony export */ }); - - -function isCancel(value) { - return !!(value && value.__CANCEL__); -} - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/Axios.js": -/*!**********************************************!*\ - !*** ./node_modules/axios/lib/core/Axios.js ***! - \**********************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js"); -/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../helpers/buildURL.js */ "./node_modules/axios/lib/helpers/buildURL.js"); -/* harmony import */ var _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InterceptorManager.js */ "./node_modules/axios/lib/core/InterceptorManager.js"); -/* harmony import */ var _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dispatchRequest.js */ "./node_modules/axios/lib/core/dispatchRequest.js"); -/* harmony import */ var _mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mergeConfig.js */ "./node_modules/axios/lib/core/mergeConfig.js"); -/* harmony import */ var _buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./buildFullPath.js */ "./node_modules/axios/lib/core/buildFullPath.js"); -/* harmony import */ var _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/validator.js */ "./node_modules/axios/lib/helpers/validator.js"); -/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js"); - - - - - - - - - - - -const validators = _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].validators; - -/** - * Create a new instance of Axios - * - * @param {Object} instanceConfig The default config for the instance - * - * @return {Axios} A new instance of Axios - */ -class Axios { - constructor(instanceConfig) { - this.defaults = instanceConfig; - this.interceptors = { - request: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__["default"](), - response: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__["default"]() - }; - } - - /** - * Dispatch a request - * - * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) - * @param {?Object} config - * - * @returns {Promise} The Promise to be fulfilled - */ - async request(configOrUrl, config) { - try { - return await this._request(configOrUrl, config); - } catch (err) { - if (err instanceof Error) { - let dummy; - - Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error()); - - // slice off the Error: ... line - const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : ''; - - if (!err.stack) { - err.stack = stack; - // match without the 2 top stack lines - } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) { - err.stack += '\n' + stack - } - } - - throw err; - } - } - - _request(configOrUrl, config) { - /*eslint no-param-reassign:0*/ - // Allow for axios('example/url'[, config]) a la fetch API - if (typeof configOrUrl === 'string') { - config = config || {}; - config.url = configOrUrl; - } else { - config = configOrUrl || {}; - } - - config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this.defaults, config); - - const {transitional, paramsSerializer, headers} = config; - - if (transitional !== undefined) { - _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].assertOptions(transitional, { - silentJSONParsing: validators.transitional(validators.boolean), - forcedJSONParsing: validators.transitional(validators.boolean), - clarifyTimeoutError: validators.transitional(validators.boolean) - }, false); - } - - if (paramsSerializer != null) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].isFunction(paramsSerializer)) { - config.paramsSerializer = { - serialize: paramsSerializer - } - } else { - _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].assertOptions(paramsSerializer, { - encode: validators.function, - serialize: validators.function - }, true); - } - } - - // Set config.method - config.method = (config.method || this.defaults.method || 'get').toLowerCase(); - - // Flatten headers - let contextHeaders = headers && _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].merge( - headers.common, - headers[config.method] - ); - - headers && _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach( - ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], - (method) => { - delete headers[method]; - } - ); - - config.headers = _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].concat(contextHeaders, headers); - - // filter out skipped interceptors - const requestInterceptorChain = []; - let synchronousRequestInterceptors = true; - this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { - if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { - return; - } - - synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; - - requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); - }); - - const responseInterceptorChain = []; - this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { - responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); - }); - - let promise; - let i = 0; - let len; - - if (!synchronousRequestInterceptors) { - const chain = [_dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__["default"].bind(this), undefined]; - chain.unshift.apply(chain, requestInterceptorChain); - chain.push.apply(chain, responseInterceptorChain); - len = chain.length; - - promise = Promise.resolve(config); - - while (i < len) { - promise = promise.then(chain[i++], chain[i++]); - } - - return promise; - } - - len = requestInterceptorChain.length; - - let newConfig = config; - - i = 0; - - while (i < len) { - const onFulfilled = requestInterceptorChain[i++]; - const onRejected = requestInterceptorChain[i++]; - try { - newConfig = onFulfilled(newConfig); - } catch (error) { - onRejected.call(this, error); - break; - } - } - - try { - promise = _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__["default"].call(this, newConfig); - } catch (error) { - return Promise.reject(error); - } - - i = 0; - len = responseInterceptorChain.length; - - while (i < len) { - promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); - } - - return promise; - } - - getUri(config) { - config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this.defaults, config); - const fullPath = (0,_buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__["default"])(config.baseURL, config.url); - return (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__["default"])(fullPath, config.params, config.paramsSerializer); - } -} - -// Provide aliases for supported request methods -_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { - /*eslint func-names:0*/ - Axios.prototype[method] = function(url, config) { - return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(config || {}, { - method, - url, - data: (config || {}).data - })); - }; -}); - -_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - /*eslint func-names:0*/ - - function generateHTTPMethod(isForm) { - return function httpMethod(url, data, config) { - return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(config || {}, { - method, - headers: isForm ? { - 'Content-Type': 'multipart/form-data' - } : {}, - url, - data - })); - }; - } - - Axios.prototype[method] = generateHTTPMethod(); - - Axios.prototype[method + 'Form'] = generateHTTPMethod(true); -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Axios); - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/AxiosError.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/core/AxiosError.js ***! - \***************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js"); - - - - -/** - * Create an Error with the specified message, config, error code, request and response. - * - * @param {string} message The error message. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [config] The config. - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * - * @returns {Error} The created error. - */ -function AxiosError(message, code, config, request, response) { - Error.call(this); - - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor); - } else { - this.stack = (new Error()).stack; - } - - this.message = message; - this.name = 'AxiosError'; - code && (this.code = code); - config && (this.config = config); - request && (this.request = request); - response && (this.response = response); -} - -_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].inherits(AxiosError, Error, { - toJSON: function toJSON() { - return { - // Standard - message: this.message, - name: this.name, - // Microsoft - description: this.description, - number: this.number, - // Mozilla - fileName: this.fileName, - lineNumber: this.lineNumber, - columnNumber: this.columnNumber, - stack: this.stack, - // Axios - config: _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toJSONObject(this.config), - code: this.code, - status: this.response && this.response.status ? this.response.status : null - }; - } -}); - -const prototype = AxiosError.prototype; -const descriptors = {}; - -[ - 'ERR_BAD_OPTION_VALUE', - 'ERR_BAD_OPTION', - 'ECONNABORTED', - 'ETIMEDOUT', - 'ERR_NETWORK', - 'ERR_FR_TOO_MANY_REDIRECTS', - 'ERR_DEPRECATED', - 'ERR_BAD_RESPONSE', - 'ERR_BAD_REQUEST', - 'ERR_CANCELED', - 'ERR_NOT_SUPPORT', - 'ERR_INVALID_URL' -// eslint-disable-next-line func-names -].forEach(code => { - descriptors[code] = {value: code}; -}); - -Object.defineProperties(AxiosError, descriptors); -Object.defineProperty(prototype, 'isAxiosError', {value: true}); - -// eslint-disable-next-line func-names -AxiosError.from = (error, code, config, request, response, customProps) => { - const axiosError = Object.create(prototype); - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(error, axiosError, function filter(obj) { - return obj !== Error.prototype; - }, prop => { - return prop !== 'isAxiosError'; - }); - - AxiosError.call(axiosError, error.message, code, config, request, response); - - axiosError.cause = error; - - axiosError.name = error.name; - - customProps && Object.assign(axiosError, customProps); - - return axiosError; -}; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosError); - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/AxiosHeaders.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/core/AxiosHeaders.js ***! - \*****************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js"); -/* harmony import */ var _helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/parseHeaders.js */ "./node_modules/axios/lib/helpers/parseHeaders.js"); - - - - - -const $internals = Symbol('internals'); - -function normalizeHeader(header) { - return header && String(header).trim().toLowerCase(); -} - -function normalizeValue(value) { - if (value === false || value == null) { - return value; - } - - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.map(normalizeValue) : String(value); -} - -function parseTokens(str) { - const tokens = Object.create(null); - const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; - let match; - - while ((match = tokensRE.exec(str))) { - tokens[match[1]] = match[2]; - } - - return tokens; -} - -const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()); - -function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(filter)) { - return filter.call(this, value, header); - } - - if (isHeaderNameFilter) { - value = header; - } - - if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(value)) return; - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(filter)) { - return value.indexOf(filter) !== -1; - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isRegExp(filter)) { - return filter.test(value); - } -} - -function formatHeader(header) { - return header.trim() - .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => { - return char.toUpperCase() + str; - }); -} - -function buildAccessors(obj, header) { - const accessorName = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toCamelCase(' ' + header); - - ['get', 'set', 'has'].forEach(methodName => { - Object.defineProperty(obj, methodName + accessorName, { - value: function(arg1, arg2, arg3) { - return this[methodName].call(this, header, arg1, arg2, arg3); - }, - configurable: true - }); - }); -} - -class AxiosHeaders { - constructor(headers) { - headers && this.set(headers); - } - - set(header, valueOrRewrite, rewrite) { - const self = this; - - function setHeader(_value, _header, _rewrite) { - const lHeader = normalizeHeader(_header); - - if (!lHeader) { - throw new Error('header name must be a non-empty string'); - } - - const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(self, lHeader); - - if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) { - self[key || _header] = normalizeValue(_value); - } - } - - const setHeaders = (headers, _rewrite) => - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite)); - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(header) || header instanceof this.constructor) { - setHeaders(header, valueOrRewrite) - } else if(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { - setHeaders((0,_helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"])(header), valueOrRewrite); - } else { - header != null && setHeader(valueOrRewrite, header, rewrite); - } - - return this; - } - - get(header, parser) { - header = normalizeHeader(header); - - if (header) { - const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(this, header); - - if (key) { - const value = this[key]; - - if (!parser) { - return value; - } - - if (parser === true) { - return parseTokens(value); - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(parser)) { - return parser.call(this, value, key); - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isRegExp(parser)) { - return parser.exec(value); - } - - throw new TypeError('parser must be boolean|regexp|function'); - } - } - } - - has(header, matcher) { - header = normalizeHeader(header); - - if (header) { - const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(this, header); - - return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher))); - } - - return false; - } - - delete(header, matcher) { - const self = this; - let deleted = false; - - function deleteHeader(_header) { - _header = normalizeHeader(_header); - - if (_header) { - const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(self, _header); - - if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) { - delete self[key]; - - deleted = true; - } - } - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(header)) { - header.forEach(deleteHeader); - } else { - deleteHeader(header); - } - - return deleted; - } - - clear(matcher) { - const keys = Object.keys(this); - let i = keys.length; - let deleted = false; - - while (i--) { - const key = keys[i]; - if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) { - delete this[key]; - deleted = true; - } - } - - return deleted; - } - - normalize(format) { - const self = this; - const headers = {}; - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this, (value, header) => { - const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(headers, header); - - if (key) { - self[key] = normalizeValue(value); - delete self[header]; - return; - } - - const normalized = format ? formatHeader(header) : String(header).trim(); - - if (normalized !== header) { - delete self[header]; - } - - self[normalized] = normalizeValue(value); - - headers[normalized] = true; - }); - - return this; - } - - concat(...targets) { - return this.constructor.concat(this, ...targets); - } - - toJSON(asStrings) { - const obj = Object.create(null); - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this, (value, header) => { - value != null && value !== false && (obj[header] = asStrings && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.join(', ') : value); - }); - - return obj; - } - - [Symbol.iterator]() { - return Object.entries(this.toJSON())[Symbol.iterator](); - } - - toString() { - return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n'); - } - - get [Symbol.toStringTag]() { - return 'AxiosHeaders'; - } - - static from(thing) { - return thing instanceof this ? thing : new this(thing); - } - - static concat(first, ...targets) { - const computed = new this(first); - - targets.forEach((target) => computed.set(target)); - - return computed; - } - - static accessor(header) { - const internals = this[$internals] = (this[$internals] = { - accessors: {} - }); - - const accessors = internals.accessors; - const prototype = this.prototype; - - function defineAccessor(_header) { - const lHeader = normalizeHeader(_header); - - if (!accessors[lHeader]) { - buildAccessors(prototype, _header); - accessors[lHeader] = true; - } - } - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header); - - return this; - } -} - -AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']); - -// reserved names hotfix -_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => { - let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set` - return { - get: () => value, - set(headerValue) { - this[mapped] = headerValue; - } - } -}); - -_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].freezeMethods(AxiosHeaders); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosHeaders); - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/InterceptorManager.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/core/InterceptorManager.js ***! - \***********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js"); - - - - -class InterceptorManager { - constructor() { - this.handlers = []; - } - - /** - * Add a new interceptor to the stack - * - * @param {Function} fulfilled The function to handle `then` for a `Promise` - * @param {Function} rejected The function to handle `reject` for a `Promise` - * - * @return {Number} An ID used to remove interceptor later - */ - use(fulfilled, rejected, options) { - this.handlers.push({ - fulfilled, - rejected, - synchronous: options ? options.synchronous : false, - runWhen: options ? options.runWhen : null - }); - return this.handlers.length - 1; - } - - /** - * Remove an interceptor from the stack - * - * @param {Number} id The ID that was returned by `use` - * - * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise - */ - eject(id) { - if (this.handlers[id]) { - this.handlers[id] = null; - } - } - - /** - * Clear all interceptors from the stack - * - * @returns {void} - */ - clear() { - if (this.handlers) { - this.handlers = []; - } - } - - /** - * Iterate over all the registered interceptors - * - * This method is particularly useful for skipping over any - * interceptors that may have become `null` calling `eject`. - * - * @param {Function} fn The function to call for each interceptor - * - * @returns {void} - */ - forEach(fn) { - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this.handlers, function forEachHandler(h) { - if (h !== null) { - fn(h); - } - }); - } -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InterceptorManager); - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/buildFullPath.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/core/buildFullPath.js ***! - \******************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ buildFullPath) -/* harmony export */ }); -/* harmony import */ var _helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/isAbsoluteURL.js */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js"); -/* harmony import */ var _helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/combineURLs.js */ "./node_modules/axios/lib/helpers/combineURLs.js"); - - - - - -/** - * Creates a new URL by combining the baseURL with the requestedURL, - * only when the requestedURL is not already an absolute URL. - * If the requestURL is absolute, this function returns the requestedURL untouched. - * - * @param {string} baseURL The base URL - * @param {string} requestedURL Absolute or relative URL to combine - * - * @returns {string} The combined full path - */ -function buildFullPath(baseURL, requestedURL) { - if (baseURL && !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__["default"])(requestedURL)) { - return (0,_helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__["default"])(baseURL, requestedURL); - } - return requestedURL; -} - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/dispatchRequest.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/core/dispatchRequest.js ***! - \********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ dispatchRequest) -/* harmony export */ }); -/* harmony import */ var _transformData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transformData.js */ "./node_modules/axios/lib/core/transformData.js"); -/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../cancel/isCancel.js */ "./node_modules/axios/lib/cancel/isCancel.js"); -/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaults/index.js */ "./node_modules/axios/lib/defaults/index.js"); -/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "./node_modules/axios/lib/cancel/CanceledError.js"); -/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js"); -/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../adapters/adapters.js */ "./node_modules/axios/lib/adapters/adapters.js"); - - - - - - - - - -/** - * Throws a `CanceledError` if cancellation has been requested. - * - * @param {Object} config The config that is to be used for the request - * - * @returns {void} - */ -function throwIfCancellationRequested(config) { - if (config.cancelToken) { - config.cancelToken.throwIfRequested(); - } - - if (config.signal && config.signal.aborted) { - throw new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__["default"](null, config); - } -} - -/** - * Dispatch a request to the server using the configured adapter. - * - * @param {object} config The config that is to be used for the request - * - * @returns {Promise} The Promise to be fulfilled - */ -function dispatchRequest(config) { - throwIfCancellationRequested(config); - - config.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(config.headers); - - // Transform request data - config.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__["default"].call( - config, - config.transformRequest - ); - - if (['post', 'put', 'patch'].indexOf(config.method) !== -1) { - config.headers.setContentType('application/x-www-form-urlencoded', false); - } - - const adapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__["default"].getAdapter(config.adapter || _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].adapter); - - return adapter(config).then(function onAdapterResolution(response) { - throwIfCancellationRequested(config); - - // Transform response data - response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__["default"].call( - config, - config.transformResponse, - response - ); - - response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(response.headers); - - return response; - }, function onAdapterRejection(reason) { - if (!(0,_cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__["default"])(reason)) { - throwIfCancellationRequested(config); - - // Transform response data - if (reason && reason.response) { - reason.response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__["default"].call( - config, - config.transformResponse, - reason.response - ); - reason.response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(reason.response.headers); - } - } - - return Promise.reject(reason); - }); -} - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/mergeConfig.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/core/mergeConfig.js ***! - \****************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ mergeConfig) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js"); -/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js"); - - - - - -const headersToObject = (thing) => thing instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? thing.toJSON() : thing; - -/** - * Config-specific merge-function which creates a new config-object - * by merging two configuration objects together. - * - * @param {Object} config1 - * @param {Object} config2 - * - * @returns {Object} New object resulting from merging config2 to config1 - */ -function mergeConfig(config1, config2) { - // eslint-disable-next-line no-param-reassign - config2 = config2 || {}; - const config = {}; - - function getMergedValue(target, source, caseless) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(target) && _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(source)) { - return _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge.call({caseless}, target, source); - } else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(source)) { - return _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge({}, source); - } else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isArray(source)) { - return source.slice(); - } - return source; - } - - // eslint-disable-next-line consistent-return - function mergeDeepProperties(a, b, caseless) { - if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) { - return getMergedValue(a, b, caseless); - } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(a)) { - return getMergedValue(undefined, a, caseless); - } - } - - // eslint-disable-next-line consistent-return - function valueFromConfig2(a, b) { - if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) { - return getMergedValue(undefined, b); - } - } - - // eslint-disable-next-line consistent-return - function defaultToConfig2(a, b) { - if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) { - return getMergedValue(undefined, b); - } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(a)) { - return getMergedValue(undefined, a); - } - } - - // eslint-disable-next-line consistent-return - function mergeDirectKeys(a, b, prop) { - if (prop in config2) { - return getMergedValue(a, b); - } else if (prop in config1) { - return getMergedValue(undefined, a); - } - } - - const mergeMap = { - url: valueFromConfig2, - method: valueFromConfig2, - data: valueFromConfig2, - baseURL: defaultToConfig2, - transformRequest: defaultToConfig2, - transformResponse: defaultToConfig2, - paramsSerializer: defaultToConfig2, - timeout: defaultToConfig2, - timeoutMessage: defaultToConfig2, - withCredentials: defaultToConfig2, - withXSRFToken: defaultToConfig2, - adapter: defaultToConfig2, - responseType: defaultToConfig2, - xsrfCookieName: defaultToConfig2, - xsrfHeaderName: defaultToConfig2, - onUploadProgress: defaultToConfig2, - onDownloadProgress: defaultToConfig2, - decompress: defaultToConfig2, - maxContentLength: defaultToConfig2, - maxBodyLength: defaultToConfig2, - beforeRedirect: defaultToConfig2, - transport: defaultToConfig2, - httpAgent: defaultToConfig2, - httpsAgent: defaultToConfig2, - cancelToken: defaultToConfig2, - socketPath: defaultToConfig2, - responseEncoding: defaultToConfig2, - validateStatus: mergeDirectKeys, - headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true) - }; - - _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) { - const merge = mergeMap[prop] || mergeDeepProperties; - const configValue = merge(config1[prop], config2[prop], prop); - (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue); - }); - - return config; -} - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/settle.js": -/*!***********************************************!*\ - !*** ./node_modules/axios/lib/core/settle.js ***! - \***********************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ settle) -/* harmony export */ }); -/* harmony import */ var _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js"); - - - - -/** - * Resolve or reject a Promise based on response status. - * - * @param {Function} resolve A function that resolves the promise. - * @param {Function} reject A function that rejects the promise. - * @param {object} response The response. - * - * @returns {object} The response. - */ -function settle(resolve, reject, response) { - const validateStatus = response.config.validateStatus; - if (!response.status || !validateStatus || validateStatus(response.status)) { - resolve(response); - } else { - reject(new _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"]( - 'Request failed with status code ' + response.status, - [_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_BAD_REQUEST, _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], - response.config, - response.request, - response - )); - } -} - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/transformData.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/core/transformData.js ***! - \******************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ transformData) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js"); -/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../defaults/index.js */ "./node_modules/axios/lib/defaults/index.js"); -/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js"); - - - - - - -/** - * Transform the data for a request or a response - * - * @param {Array|Function} fns A single function or Array of functions - * @param {?Object} response The response object - * - * @returns {*} The resulting transformed data - */ -function transformData(fns, response) { - const config = this || _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__["default"]; - const context = response || config; - const headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(context.headers); - let data = context.data; - - _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(fns, function transform(fn) { - data = fn.call(config, data, headers.normalize(), response ? response.status : undefined); - }); - - headers.normalize(); - - return data; -} - - -/***/ }), - -/***/ "./node_modules/axios/lib/defaults/index.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/defaults/index.js ***! - \**************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _transitional_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transitional.js */ "./node_modules/axios/lib/defaults/transitional.js"); -/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/toFormData.js */ "./node_modules/axios/lib/helpers/toFormData.js"); -/* harmony import */ var _helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/toURLEncodedForm.js */ "./node_modules/axios/lib/helpers/toURLEncodedForm.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js"); -/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/formDataToJSON.js */ "./node_modules/axios/lib/helpers/formDataToJSON.js"); - - - - - - - - - - -/** - * It takes a string, tries to parse it, and if it fails, it returns the stringified version - * of the input - * - * @param {any} rawValue - The value to be stringified. - * @param {Function} parser - A function that parses a string into a JavaScript object. - * @param {Function} encoder - A function that takes a value and returns a string. - * - * @returns {string} A stringified version of the rawValue. - */ -function stringifySafely(rawValue, parser, encoder) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(rawValue)) { - try { - (parser || JSON.parse)(rawValue); - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].trim(rawValue); - } catch (e) { - if (e.name !== 'SyntaxError') { - throw e; - } - } - } - - return (encoder || JSON.stringify)(rawValue); -} - -const defaults = { - - transitional: _transitional_js__WEBPACK_IMPORTED_MODULE_1__["default"], - - adapter: ['xhr', 'http'], - - transformRequest: [function transformRequest(data, headers) { - const contentType = headers.getContentType() || ''; - const hasJSONContentType = contentType.indexOf('application/json') > -1; - const isObjectPayload = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(data); - - if (isObjectPayload && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isHTMLForm(data)) { - data = new FormData(data); - } - - const isFormData = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(data); - - if (isFormData) { - return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__["default"])(data)) : data; - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(data) || - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBuffer(data) || - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isStream(data) || - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFile(data) || - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(data) - ) { - return data; - } - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBufferView(data)) { - return data.buffer; - } - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(data)) { - headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false); - return data.toString(); - } - - let isFileList; - - if (isObjectPayload) { - if (contentType.indexOf('application/x-www-form-urlencoded') > -1) { - return (0,_helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__["default"])(data, this.formSerializer).toString(); - } - - if ((isFileList = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) { - const _FormData = this.env && this.env.FormData; - - return (0,_helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__["default"])( - isFileList ? {'files[]': data} : data, - _FormData && new _FormData(), - this.formSerializer - ); - } - } - - if (isObjectPayload || hasJSONContentType ) { - headers.setContentType('application/json', false); - return stringifySafely(data); - } - - return data; - }], - - transformResponse: [function transformResponse(data) { - const transitional = this.transitional || defaults.transitional; - const forcedJSONParsing = transitional && transitional.forcedJSONParsing; - const JSONRequested = this.responseType === 'json'; - - if (data && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) { - const silentJSONParsing = transitional && transitional.silentJSONParsing; - const strictJSONParsing = !silentJSONParsing && JSONRequested; - - try { - return JSON.parse(data); - } catch (e) { - if (strictJSONParsing) { - if (e.name === 'SyntaxError') { - throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__["default"].from(e, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__["default"].ERR_BAD_RESPONSE, this, null, this.response); - } - throw e; - } - } - } - - return data; - }], - - /** - * A timeout in milliseconds to abort a request. If set to 0 (default) a - * timeout is not created. - */ - timeout: 0, - - xsrfCookieName: 'XSRF-TOKEN', - xsrfHeaderName: 'X-XSRF-TOKEN', - - maxContentLength: -1, - maxBodyLength: -1, - - env: { - FormData: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].classes.FormData, - Blob: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].classes.Blob - }, - - validateStatus: function validateStatus(status) { - return status >= 200 && status < 300; - }, - - headers: { - common: { - 'Accept': 'application/json, text/plain, */*', - 'Content-Type': undefined - } - } -}; - -_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => { - defaults.headers[method] = {}; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (defaults); - - -/***/ }), - -/***/ "./node_modules/axios/lib/defaults/transitional.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/defaults/transitional.js ***! - \*********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - silentJSONParsing: true, - forcedJSONParsing: true, - clarifyTimeoutError: false -}); - - -/***/ }), - -/***/ "./node_modules/axios/lib/env/data.js": -/*!********************************************!*\ - !*** ./node_modules/axios/lib/env/data.js ***! - \********************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ VERSION: () => (/* binding */ VERSION) -/* harmony export */ }); -const VERSION = "1.6.7"; - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/AxiosURLSearchParams.js": -/*!****************************************************************!*\ - !*** ./node_modules/axios/lib/helpers/AxiosURLSearchParams.js ***! - \****************************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ "./node_modules/axios/lib/helpers/toFormData.js"); - - - - -/** - * It encodes a string by replacing all characters that are not in the unreserved set with - * their percent-encoded equivalents - * - * @param {string} str - The string to encode. - * - * @returns {string} The encoded string. - */ -function encode(str) { - const charMap = { - '!': '%21', - "'": '%27', - '(': '%28', - ')': '%29', - '~': '%7E', - '%20': '+', - '%00': '\x00' - }; - return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) { - return charMap[match]; - }); -} - -/** - * It takes a params object and converts it to a FormData object - * - * @param {Object} params - The parameters to be converted to a FormData object. - * @param {Object} options - The options object passed to the Axios constructor. - * - * @returns {void} - */ -function AxiosURLSearchParams(params, options) { - this._pairs = []; - - params && (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__["default"])(params, this, options); -} - -const prototype = AxiosURLSearchParams.prototype; - -prototype.append = function append(name, value) { - this._pairs.push([name, value]); -}; - -prototype.toString = function toString(encoder) { - const _encode = encoder ? function(value) { - return encoder.call(this, value, encode); - } : encode; - - return this._pairs.map(function each(pair) { - return _encode(pair[0]) + '=' + _encode(pair[1]); - }, '').join('&'); -}; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosURLSearchParams); - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/HttpStatusCode.js": -/*!**********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/HttpStatusCode.js ***! - \**********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -const HttpStatusCode = { - Continue: 100, - SwitchingProtocols: 101, - Processing: 102, - EarlyHints: 103, - Ok: 200, - Created: 201, - Accepted: 202, - NonAuthoritativeInformation: 203, - NoContent: 204, - ResetContent: 205, - PartialContent: 206, - MultiStatus: 207, - AlreadyReported: 208, - ImUsed: 226, - MultipleChoices: 300, - MovedPermanently: 301, - Found: 302, - SeeOther: 303, - NotModified: 304, - UseProxy: 305, - Unused: 306, - TemporaryRedirect: 307, - PermanentRedirect: 308, - BadRequest: 400, - Unauthorized: 401, - PaymentRequired: 402, - Forbidden: 403, - NotFound: 404, - MethodNotAllowed: 405, - NotAcceptable: 406, - ProxyAuthenticationRequired: 407, - RequestTimeout: 408, - Conflict: 409, - Gone: 410, - LengthRequired: 411, - PreconditionFailed: 412, - PayloadTooLarge: 413, - UriTooLong: 414, - UnsupportedMediaType: 415, - RangeNotSatisfiable: 416, - ExpectationFailed: 417, - ImATeapot: 418, - MisdirectedRequest: 421, - UnprocessableEntity: 422, - Locked: 423, - FailedDependency: 424, - TooEarly: 425, - UpgradeRequired: 426, - PreconditionRequired: 428, - TooManyRequests: 429, - RequestHeaderFieldsTooLarge: 431, - UnavailableForLegalReasons: 451, - InternalServerError: 500, - NotImplemented: 501, - BadGateway: 502, - ServiceUnavailable: 503, - GatewayTimeout: 504, - HttpVersionNotSupported: 505, - VariantAlsoNegotiates: 506, - InsufficientStorage: 507, - LoopDetected: 508, - NotExtended: 510, - NetworkAuthenticationRequired: 511, -}; - -Object.entries(HttpStatusCode).forEach(([key, value]) => { - HttpStatusCode[value] = key; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (HttpStatusCode); - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/bind.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/helpers/bind.js ***! - \************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ bind) -/* harmony export */ }); - - -function bind(fn, thisArg) { - return function wrap() { - return fn.apply(thisArg, arguments); - }; -} - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/buildURL.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/buildURL.js ***! - \****************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ buildURL) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js"); -/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/AxiosURLSearchParams.js */ "./node_modules/axios/lib/helpers/AxiosURLSearchParams.js"); - - - - - -/** - * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their - * URI encoded counterparts - * - * @param {string} val The value to be encoded. - * - * @returns {string} The encoded value. - */ -function encode(val) { - return encodeURIComponent(val). - replace(/%3A/gi, ':'). - replace(/%24/g, '$'). - replace(/%2C/gi, ','). - replace(/%20/g, '+'). - replace(/%5B/gi, '['). - replace(/%5D/gi, ']'); -} - -/** - * Build a URL by appending params to the end - * - * @param {string} url The base of the url (e.g., http://www.google.com) - * @param {object} [params] The params to be appended - * @param {?object} options - * - * @returns {string} The formatted url - */ -function buildURL(url, params, options) { - /*eslint no-param-reassign:0*/ - if (!params) { - return url; - } - - const _encode = options && options.encode || encode; - - const serializeFn = options && options.serialize; - - let serializedParams; - - if (serializeFn) { - serializedParams = serializeFn(params, options); - } else { - serializedParams = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(params) ? - params.toString() : - new _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__["default"](params, options).toString(_encode); - } - - if (serializedParams) { - const hashmarkIndex = url.indexOf("#"); - - if (hashmarkIndex !== -1) { - url = url.slice(0, hashmarkIndex); - } - url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; - } - - return url; -} - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/combineURLs.js": -/*!*******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/combineURLs.js ***! - \*******************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ combineURLs) -/* harmony export */ }); - - -/** - * Creates a new URL by combining the specified URLs - * - * @param {string} baseURL The base URL - * @param {string} relativeURL The relative URL - * - * @returns {string} The combined URL - */ -function combineURLs(baseURL, relativeURL) { - return relativeURL - ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') - : baseURL; -} - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/cookies.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/helpers/cookies.js ***! - \***************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js"); - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv ? - - // Standard browser envs support document.cookie - { - write(name, value, expires, path, domain, secure) { - const cookie = [name + '=' + encodeURIComponent(value)]; - - _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString()); - - _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(path) && cookie.push('path=' + path); - - _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(domain) && cookie.push('domain=' + domain); - - secure === true && cookie.push('secure'); - - document.cookie = cookie.join('; '); - }, - - read(name) { - const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); - return (match ? decodeURIComponent(match[3]) : null); - }, - - remove(name) { - this.write(name, '', Date.now() - 86400000); - } - } - - : - - // Non-standard browser env (web workers, react-native) lack needed support. - { - write() {}, - read() { - return null; - }, - remove() {} - }); - - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/formDataToJSON.js": -/*!**********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/formDataToJSON.js ***! - \**********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js"); - - - - -/** - * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z'] - * - * @param {string} name - The name of the property to get. - * - * @returns An array of strings. - */ -function parsePropPath(name) { - // foo[x][y][z] - // foo.x.y.z - // foo-x-y-z - // foo x y z - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].matchAll(/\w+|\[(\w*)]/g, name).map(match => { - return match[0] === '[]' ? '' : match[1] || match[0]; - }); -} - -/** - * Convert an array to an object. - * - * @param {Array} arr - The array to convert to an object. - * - * @returns An object with the same keys and values as the array. - */ -function arrayToObject(arr) { - const obj = {}; - const keys = Object.keys(arr); - let i; - const len = keys.length; - let key; - for (i = 0; i < len; i++) { - key = keys[i]; - obj[key] = arr[key]; - } - return obj; -} - -/** - * It takes a FormData object and returns a JavaScript object - * - * @param {string} formData The FormData object to convert to JSON. - * - * @returns {Object | null} The converted object. - */ -function formDataToJSON(formData) { - function buildPath(path, value, target, index) { - let name = path[index++]; - - if (name === '__proto__') return true; - - const isNumericKey = Number.isFinite(+name); - const isLast = index >= path.length; - name = !name && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(target) ? target.length : name; - - if (isLast) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(target, name)) { - target[name] = [target[name], value]; - } else { - target[name] = value; - } - - return !isNumericKey; - } - - if (!target[name] || !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(target[name])) { - target[name] = []; - } - - const result = buildPath(path, value, target[name], index); - - if (result && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(target[name])) { - target[name] = arrayToObject(target[name]); - } - - return !isNumericKey; - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(formData) && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(formData.entries)) { - const obj = {}; - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEachEntry(formData, (name, value) => { - buildPath(parsePropPath(name), value, obj, 0); - }); - - return obj; - } - - return null; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (formDataToJSON); - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***! - \*********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ isAbsoluteURL) -/* harmony export */ }); - - -/** - * Determines whether the specified URL is absolute - * - * @param {string} url The URL to test - * - * @returns {boolean} True if the specified URL is absolute, otherwise false - */ -function isAbsoluteURL(url) { - // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). - // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed - // by any combination of letters, digits, plus, period, or hyphen. - return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); -} - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/isAxiosError.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isAxiosError.js ***! - \********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ isAxiosError) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js"); - - - - -/** - * Determines whether the payload is an error thrown by Axios - * - * @param {*} payload The value to test - * - * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false - */ -function isAxiosError(payload) { - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(payload) && (payload.isAxiosError === true); -} - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***! - \***********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js"); - - - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv ? - -// Standard browser envs have full support of the APIs needed to test -// whether the request URL is of the same origin as current location. - (function standardBrowserEnv() { - const msie = /(msie|trident)/i.test(navigator.userAgent); - const urlParsingNode = document.createElement('a'); - let originURL; - - /** - * Parse a URL to discover its components - * - * @param {String} url The URL to be parsed - * @returns {Object} - */ - function resolveURL(url) { - let href = url; - - if (msie) { - // IE needs attribute set twice to normalize properties - urlParsingNode.setAttribute('href', href); - href = urlParsingNode.href; - } - - urlParsingNode.setAttribute('href', href); - - // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils - return { - href: urlParsingNode.href, - protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', - host: urlParsingNode.host, - search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', - hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', - hostname: urlParsingNode.hostname, - port: urlParsingNode.port, - pathname: (urlParsingNode.pathname.charAt(0) === '/') ? - urlParsingNode.pathname : - '/' + urlParsingNode.pathname - }; - } - - originURL = resolveURL(window.location.href); - - /** - * Determine if a URL shares the same origin as the current location - * - * @param {String} requestURL The URL to test - * @returns {boolean} True if URL shares the same origin, otherwise false - */ - return function isURLSameOrigin(requestURL) { - const parsed = (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(requestURL)) ? resolveURL(requestURL) : requestURL; - return (parsed.protocol === originURL.protocol && - parsed.host === originURL.host); - }; - })() : - - // Non standard browser envs (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return function isURLSameOrigin() { - return true; - }; - })()); - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/null.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/helpers/null.js ***! - \************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -// eslint-disable-next-line strict -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (null); - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/parseHeaders.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***! - \********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js"); - - - - -// RawAxiosHeaders whose duplicates are ignored by node -// c.f. https://nodejs.org/api/http.html#http_message_headers -const ignoreDuplicateOf = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toObjectSet([ - 'age', 'authorization', 'content-length', 'content-type', 'etag', - 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', - 'last-modified', 'location', 'max-forwards', 'proxy-authorization', - 'referer', 'retry-after', 'user-agent' -]); - -/** - * Parse headers into an object - * - * ``` - * Date: Wed, 27 Aug 2014 08:58:49 GMT - * Content-Type: application/json - * Connection: keep-alive - * Transfer-Encoding: chunked - * ``` - * - * @param {String} rawHeaders Headers needing to be parsed - * - * @returns {Object} Headers parsed into an object - */ -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (rawHeaders => { - const parsed = {}; - let key; - let val; - let i; - - rawHeaders && rawHeaders.split('\n').forEach(function parser(line) { - i = line.indexOf(':'); - key = line.substring(0, i).trim().toLowerCase(); - val = line.substring(i + 1).trim(); - - if (!key || (parsed[key] && ignoreDuplicateOf[key])) { - return; - } - - if (key === 'set-cookie') { - if (parsed[key]) { - parsed[key].push(val); - } else { - parsed[key] = [val]; - } - } else { - parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; - } - }); - - return parsed; -}); - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/parseProtocol.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/parseProtocol.js ***! - \*********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ parseProtocol) -/* harmony export */ }); - - -function parseProtocol(url) { - const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); - return match && match[1] || ''; -} - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/speedometer.js": -/*!*******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/speedometer.js ***! - \*******************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); - - -/** - * Calculate data maxRate - * @param {Number} [samplesCount= 10] - * @param {Number} [min= 1000] - * @returns {Function} - */ -function speedometer(samplesCount, min) { - samplesCount = samplesCount || 10; - const bytes = new Array(samplesCount); - const timestamps = new Array(samplesCount); - let head = 0; - let tail = 0; - let firstSampleTS; - - min = min !== undefined ? min : 1000; - - return function push(chunkLength) { - const now = Date.now(); - - const startedAt = timestamps[tail]; - - if (!firstSampleTS) { - firstSampleTS = now; - } - - bytes[head] = chunkLength; - timestamps[head] = now; - - let i = tail; - let bytesCount = 0; - - while (i !== head) { - bytesCount += bytes[i++]; - i = i % samplesCount; - } - - head = (head + 1) % samplesCount; - - if (head === tail) { - tail = (tail + 1) % samplesCount; - } - - if (now - firstSampleTS < min) { - return; - } - - const passed = startedAt && now - startedAt; - - return passed ? Math.round(bytesCount * 1000 / passed) : undefined; - }; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (speedometer); - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/spread.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/helpers/spread.js ***! - \**************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ spread) -/* harmony export */ }); - - -/** - * Syntactic sugar for invoking a function and expanding an array for arguments. - * - * Common use case would be to use `Function.prototype.apply`. - * - * ```js - * function f(x, y, z) {} - * var args = [1, 2, 3]; - * f.apply(null, args); - * ``` - * - * With `spread` this example can be re-written. - * - * ```js - * spread(function(x, y, z) {})([1, 2, 3]); - * ``` - * - * @param {Function} callback - * - * @returns {Function} - */ -function spread(callback) { - return function wrap(arr) { - return callback.apply(null, arr); - }; -} - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/toFormData.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/toFormData.js ***! - \******************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js"); -/* harmony import */ var _platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/node/classes/FormData.js */ "./node_modules/axios/lib/helpers/null.js"); - - - - -// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored - - -/** - * Determines if the given thing is a array or js object. - * - * @param {string} thing - The object or array to be visited. - * - * @returns {boolean} - */ -function isVisitable(thing) { - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(thing) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(thing); -} - -/** - * It removes the brackets from the end of a string - * - * @param {string} key - The key of the parameter. - * - * @returns {string} the key without the brackets. - */ -function removeBrackets(key) { - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '[]') ? key.slice(0, -2) : key; -} - -/** - * It takes a path, a key, and a boolean, and returns a string - * - * @param {string} path - The path to the current key. - * @param {string} key - The key of the current object being iterated over. - * @param {string} dots - If true, the key will be rendered with dots instead of brackets. - * - * @returns {string} The path to the current key. - */ -function renderKey(path, key, dots) { - if (!path) return key; - return path.concat(key).map(function each(token, i) { - // eslint-disable-next-line no-param-reassign - token = removeBrackets(token); - return !dots && i ? '[' + token + ']' : token; - }).join(dots ? '.' : ''); -} - -/** - * If the array is an array and none of its elements are visitable, then it's a flat array. - * - * @param {Array} arr - The array to check - * - * @returns {boolean} - */ -function isFlatArray(arr) { - return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(arr) && !arr.some(isVisitable); -} - -const predicates = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"], {}, null, function filter(prop) { - return /^is[A-Z]/.test(prop); -}); - -/** - * Convert a data object to FormData - * - * @param {Object} obj - * @param {?Object} [formData] - * @param {?Object} [options] - * @param {Function} [options.visitor] - * @param {Boolean} [options.metaTokens = true] - * @param {Boolean} [options.dots = false] - * @param {?Boolean} [options.indexes = false] - * - * @returns {Object} - **/ - -/** - * It converts an object into a FormData object - * - * @param {Object} obj - The object to convert to form data. - * @param {string} formData - The FormData object to append to. - * @param {Object} options - * - * @returns - */ -function toFormData(obj, formData, options) { - if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(obj)) { - throw new TypeError('target must be an object'); - } - - // eslint-disable-next-line no-param-reassign - formData = formData || new (_platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__["default"] || FormData)(); - - // eslint-disable-next-line no-param-reassign - options = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(options, { - metaTokens: true, - dots: false, - indexes: false - }, false, function defined(option, source) { - // eslint-disable-next-line no-eq-null,eqeqeq - return !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(source[option]); - }); - - const metaTokens = options.metaTokens; - // eslint-disable-next-line no-use-before-define - const visitor = options.visitor || defaultVisitor; - const dots = options.dots; - const indexes = options.indexes; - const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob; - const useBlob = _Blob && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isSpecCompliantForm(formData); - - if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(visitor)) { - throw new TypeError('visitor must be a function'); - } - - function convertValue(value) { - if (value === null) return ''; - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isDate(value)) { - return value.toISOString(); - } - - if (!useBlob && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(value)) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Blob is not supported. Use a Buffer instead.'); - } - - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isTypedArray(value)) { - return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value); - } - - return value; - } - - /** - * Default visitor. - * - * @param {*} value - * @param {String|Number} key - * @param {Array} path - * @this {FormData} - * - * @returns {boolean} return true to visit the each prop of the value recursively - */ - function defaultVisitor(value, key, path) { - let arr = value; - - if (value && !path && typeof value === 'object') { - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '{}')) { - // eslint-disable-next-line no-param-reassign - key = metaTokens ? key : key.slice(0, -2); - // eslint-disable-next-line no-param-reassign - value = JSON.stringify(value); - } else if ( - (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) && isFlatArray(value)) || - ((_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '[]')) && (arr = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toArray(value)) - )) { - // eslint-disable-next-line no-param-reassign - key = removeBrackets(key); - - arr.forEach(function each(el, index) { - !(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(el) || el === null) && formData.append( - // eslint-disable-next-line no-nested-ternary - indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'), - convertValue(el) - ); - }); - return false; - } - } - - if (isVisitable(value)) { - return true; - } - - formData.append(renderKey(path, key, dots), convertValue(value)); - - return false; - } - - const stack = []; - - const exposedHelpers = Object.assign(predicates, { - defaultVisitor, - convertValue, - isVisitable - }); - - function build(value, path) { - if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(value)) return; - - if (stack.indexOf(value) !== -1) { - throw Error('Circular reference detected in ' + path.join('.')); - } - - stack.push(value); - - _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(value, function each(el, key) { - const result = !(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(el) || el === null) && visitor.call( - formData, el, _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(key) ? key.trim() : key, path, exposedHelpers - ); - - if (result === true) { - build(el, path ? path.concat(key) : [key]); - } - }); - - stack.pop(); - } - - if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(obj)) { - throw new TypeError('data must be an object'); - } - - build(obj); - - return formData; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (toFormData); - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/toURLEncodedForm.js": -/*!************************************************************!*\ - !*** ./node_modules/axios/lib/helpers/toURLEncodedForm.js ***! - \************************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ toURLEncodedForm) -/* harmony export */ }); -/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js"); -/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ "./node_modules/axios/lib/helpers/toFormData.js"); -/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js"); - - - - - - -function toURLEncodedForm(data, options) { - return (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__["default"])(data, new _platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].classes.URLSearchParams(), Object.assign({ - visitor: function(value, key, path, helpers) { - if (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].isNode && _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isBuffer(value)) { - this.append(key, value.toString('base64')); - return false; - } - - return helpers.defaultVisitor.apply(this, arguments); - } - }, options)); -} - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/validator.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/validator.js ***! - \*****************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../env/data.js */ "./node_modules/axios/lib/env/data.js"); -/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js"); - - - - - -const validators = {}; - -// eslint-disable-next-line func-names -['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => { - validators[type] = function validator(thing) { - return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; - }; -}); - -const deprecatedWarnings = {}; - -/** - * Transitional option validator - * - * @param {function|boolean?} validator - set to false if the transitional option has been removed - * @param {string?} version - deprecated version / removed since version - * @param {string?} message - some message with additional info - * - * @returns {function} - */ -validators.transitional = function transitional(validator, version, message) { - function formatMessage(opt, desc) { - return '[Axios v' + _env_data_js__WEBPACK_IMPORTED_MODULE_0__.VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); - } - - // eslint-disable-next-line func-names - return (value, opt, opts) => { - if (validator === false) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]( - formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), - _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_DEPRECATED - ); - } - - if (version && !deprecatedWarnings[opt]) { - deprecatedWarnings[opt] = true; - // eslint-disable-next-line no-console - console.warn( - formatMessage( - opt, - ' has been deprecated since v' + version + ' and will be removed in the near future' - ) - ); - } - - return validator ? validator(value, opt, opts) : true; - }; -}; - -/** - * Assert object's properties type - * - * @param {object} options - * @param {object} schema - * @param {boolean?} allowUnknown - * - * @returns {object} - */ - -function assertOptions(options, schema, allowUnknown) { - if (typeof options !== 'object') { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('options must be an object', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION_VALUE); - } - const keys = Object.keys(options); - let i = keys.length; - while (i-- > 0) { - const opt = keys[i]; - const validator = schema[opt]; - if (validator) { - const value = options[opt]; - const result = value === undefined || validator(value, opt, options); - if (result !== true) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('option ' + opt + ' must be ' + result, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION_VALUE); - } - continue; - } - if (allowUnknown !== true) { - throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('Unknown option ' + opt, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION); - } - } -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - assertOptions, - validators -}); - - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/browser/classes/Blob.js": -/*!*****************************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/classes/Blob.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (typeof Blob !== 'undefined' ? Blob : null); - - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/browser/classes/FormData.js": -/*!*********************************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/classes/FormData.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (typeof FormData !== 'undefined' ? FormData : null); - - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js": -/*!****************************************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js ***! - \****************************************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../helpers/AxiosURLSearchParams.js */ "./node_modules/axios/lib/helpers/AxiosURLSearchParams.js"); - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (typeof URLSearchParams !== 'undefined' ? URLSearchParams : _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__["default"]); - - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/browser/index.js": -/*!**********************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/index.js ***! - \**********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./classes/URLSearchParams.js */ "./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js"); -/* harmony import */ var _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./classes/FormData.js */ "./node_modules/axios/lib/platform/browser/classes/FormData.js"); -/* harmony import */ var _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./classes/Blob.js */ "./node_modules/axios/lib/platform/browser/classes/Blob.js"); - - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - isBrowser: true, - classes: { - URLSearchParams: _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__["default"], - FormData: _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__["default"], - Blob: _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__["default"] - }, - protocols: ['http', 'https', 'file', 'blob', 'url', 'data'] -}); - - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/common/utils.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/platform/common/utils.js ***! - \*********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ hasBrowserEnv: () => (/* binding */ hasBrowserEnv), -/* harmony export */ hasStandardBrowserEnv: () => (/* binding */ hasStandardBrowserEnv), -/* harmony export */ hasStandardBrowserWebWorkerEnv: () => (/* binding */ hasStandardBrowserWebWorkerEnv) -/* harmony export */ }); -const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined'; - -/** - * Determine if we're running in a standard browser environment - * - * This allows axios to run in a web worker, and react-native. - * Both environments support XMLHttpRequest, but not fully standard globals. - * - * web workers: - * typeof window -> undefined - * typeof document -> undefined - * - * react-native: - * navigator.product -> 'ReactNative' - * nativescript - * navigator.product -> 'NativeScript' or 'NS' - * - * @returns {boolean} - */ -const hasStandardBrowserEnv = ( - (product) => { - return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0 - })(typeof navigator !== 'undefined' && navigator.product); - -/** - * Determine if we're running in a standard browser webWorker environment - * - * Although the `isStandardBrowserEnv` method indicates that - * `allows axios to run in a web worker`, the WebWorker will still be - * filtered out due to its judgment standard - * `typeof window !== 'undefined' && typeof document !== 'undefined'`. - * This leads to a problem when axios post `FormData` in webWorker - */ -const hasStandardBrowserWebWorkerEnv = (() => { - return ( - typeof WorkerGlobalScope !== 'undefined' && - // eslint-disable-next-line no-undef - self instanceof WorkerGlobalScope && - typeof self.importScripts === 'function' - ); -})(); - - - - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/index.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/platform/index.js ***! - \**************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _node_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node/index.js */ "./node_modules/axios/lib/platform/browser/index.js"); -/* harmony import */ var _common_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common/utils.js */ "./node_modules/axios/lib/platform/common/utils.js"); - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - ..._common_utils_js__WEBPACK_IMPORTED_MODULE_0__, - ..._node_index_js__WEBPACK_IMPORTED_MODULE_1__["default"] -}); - - -/***/ }), - -/***/ "./node_modules/axios/lib/utils.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/utils.js ***! - \*****************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers/bind.js */ "./node_modules/axios/lib/helpers/bind.js"); - - - - -// utils is a library of generic helper functions non-specific to axios - -const {toString} = Object.prototype; -const {getPrototypeOf} = Object; - -const kindOf = (cache => thing => { - const str = toString.call(thing); - return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); -})(Object.create(null)); - -const kindOfTest = (type) => { - type = type.toLowerCase(); - return (thing) => kindOf(thing) === type -} - -const typeOfTest = type => thing => typeof thing === type; - -/** - * Determine if a value is an Array - * - * @param {Object} val The value to test - * - * @returns {boolean} True if value is an Array, otherwise false - */ -const {isArray} = Array; - -/** - * Determine if a value is undefined - * - * @param {*} val The value to test - * - * @returns {boolean} True if the value is undefined, otherwise false - */ -const isUndefined = typeOfTest('undefined'); - -/** - * Determine if a value is a Buffer - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Buffer, otherwise false - */ -function isBuffer(val) { - return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) - && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); -} - -/** - * Determine if a value is an ArrayBuffer - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is an ArrayBuffer, otherwise false - */ -const isArrayBuffer = kindOfTest('ArrayBuffer'); - - -/** - * Determine if a value is a view on an ArrayBuffer - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false - */ -function isArrayBufferView(val) { - let result; - if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { - result = ArrayBuffer.isView(val); - } else { - result = (val) && (val.buffer) && (isArrayBuffer(val.buffer)); - } - return result; -} - -/** - * Determine if a value is a String - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a String, otherwise false - */ -const isString = typeOfTest('string'); - -/** - * Determine if a value is a Function - * - * @param {*} val The value to test - * @returns {boolean} True if value is a Function, otherwise false - */ -const isFunction = typeOfTest('function'); - -/** - * Determine if a value is a Number - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Number, otherwise false - */ -const isNumber = typeOfTest('number'); - -/** - * Determine if a value is an Object - * - * @param {*} thing The value to test - * - * @returns {boolean} True if value is an Object, otherwise false - */ -const isObject = (thing) => thing !== null && typeof thing === 'object'; - -/** - * Determine if a value is a Boolean - * - * @param {*} thing The value to test - * @returns {boolean} True if value is a Boolean, otherwise false - */ -const isBoolean = thing => thing === true || thing === false; - -/** - * Determine if a value is a plain Object - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a plain Object, otherwise false - */ -const isPlainObject = (val) => { - if (kindOf(val) !== 'object') { - return false; - } - - const prototype = getPrototypeOf(val); - return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); -} - -/** - * Determine if a value is a Date - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Date, otherwise false - */ -const isDate = kindOfTest('Date'); - -/** - * Determine if a value is a File - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a File, otherwise false - */ -const isFile = kindOfTest('File'); - -/** - * Determine if a value is a Blob - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Blob, otherwise false - */ -const isBlob = kindOfTest('Blob'); - -/** - * Determine if a value is a FileList - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a File, otherwise false - */ -const isFileList = kindOfTest('FileList'); - -/** - * Determine if a value is a Stream - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a Stream, otherwise false - */ -const isStream = (val) => isObject(val) && isFunction(val.pipe); - -/** - * Determine if a value is a FormData - * - * @param {*} thing The value to test - * - * @returns {boolean} True if value is an FormData, otherwise false - */ -const isFormData = (thing) => { - let kind; - return thing && ( - (typeof FormData === 'function' && thing instanceof FormData) || ( - isFunction(thing.append) && ( - (kind = kindOf(thing)) === 'formdata' || - // detect form-data instance - (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]') - ) - ) - ) -} - -/** - * Determine if a value is a URLSearchParams object - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a URLSearchParams object, otherwise false - */ -const isURLSearchParams = kindOfTest('URLSearchParams'); - -/** - * Trim excess whitespace off the beginning and end of a string - * - * @param {String} str The String to trim - * - * @returns {String} The String freed of excess whitespace - */ -const trim = (str) => str.trim ? - str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); - -/** - * Iterate over an Array or an Object invoking a function for each item. - * - * If `obj` is an Array callback will be called passing - * the value, index, and complete array for each item. - * - * If 'obj' is an Object callback will be called passing - * the value, key, and complete object for each property. - * - * @param {Object|Array} obj The object to iterate - * @param {Function} fn The callback to invoke for each item - * - * @param {Boolean} [allOwnKeys = false] - * @returns {any} - */ -function forEach(obj, fn, {allOwnKeys = false} = {}) { - // Don't bother if no value provided - if (obj === null || typeof obj === 'undefined') { - return; - } - - let i; - let l; - - // Force an array if not already something iterable - if (typeof obj !== 'object') { - /*eslint no-param-reassign:0*/ - obj = [obj]; - } - - if (isArray(obj)) { - // Iterate over array values - for (i = 0, l = obj.length; i < l; i++) { - fn.call(null, obj[i], i, obj); - } - } else { - // Iterate over object keys - const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); - const len = keys.length; - let key; - - for (i = 0; i < len; i++) { - key = keys[i]; - fn.call(null, obj[key], key, obj); - } - } -} - -function findKey(obj, key) { - key = key.toLowerCase(); - const keys = Object.keys(obj); - let i = keys.length; - let _key; - while (i-- > 0) { - _key = keys[i]; - if (key === _key.toLowerCase()) { - return _key; - } - } - return null; -} - -const _global = (() => { - /*eslint no-undef:0*/ - if (typeof globalThis !== "undefined") return globalThis; - return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global) -})(); - -const isContextDefined = (context) => !isUndefined(context) && context !== _global; - -/** - * Accepts varargs expecting each argument to be an object, then - * immutably merges the properties of each object and returns result. - * - * When multiple objects contain the same key the later object in - * the arguments list will take precedence. - * - * Example: - * - * ```js - * var result = merge({foo: 123}, {foo: 456}); - * console.log(result.foo); // outputs 456 - * ``` - * - * @param {Object} obj1 Object to merge - * - * @returns {Object} Result of all merge properties - */ -function merge(/* obj1, obj2, obj3, ... */) { - const {caseless} = isContextDefined(this) && this || {}; - const result = {}; - const assignValue = (val, key) => { - const targetKey = caseless && findKey(result, key) || key; - if (isPlainObject(result[targetKey]) && isPlainObject(val)) { - result[targetKey] = merge(result[targetKey], val); - } else if (isPlainObject(val)) { - result[targetKey] = merge({}, val); - } else if (isArray(val)) { - result[targetKey] = val.slice(); - } else { - result[targetKey] = val; - } - } - - for (let i = 0, l = arguments.length; i < l; i++) { - arguments[i] && forEach(arguments[i], assignValue); - } - return result; -} - -/** - * Extends object a by mutably adding to it the properties of object b. - * - * @param {Object} a The object to be extended - * @param {Object} b The object to copy properties from - * @param {Object} thisArg The object to bind function to - * - * @param {Boolean} [allOwnKeys] - * @returns {Object} The resulting value of object a - */ -const extend = (a, b, thisArg, {allOwnKeys}= {}) => { - forEach(b, (val, key) => { - if (thisArg && isFunction(val)) { - a[key] = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__["default"])(val, thisArg); - } else { - a[key] = val; - } - }, {allOwnKeys}); - return a; -} - -/** - * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) - * - * @param {string} content with BOM - * - * @returns {string} content value without BOM - */ -const stripBOM = (content) => { - if (content.charCodeAt(0) === 0xFEFF) { - content = content.slice(1); - } - return content; -} - -/** - * Inherit the prototype methods from one constructor into another - * @param {function} constructor - * @param {function} superConstructor - * @param {object} [props] - * @param {object} [descriptors] - * - * @returns {void} - */ -const inherits = (constructor, superConstructor, props, descriptors) => { - constructor.prototype = Object.create(superConstructor.prototype, descriptors); - constructor.prototype.constructor = constructor; - Object.defineProperty(constructor, 'super', { - value: superConstructor.prototype - }); - props && Object.assign(constructor.prototype, props); -} - -/** - * Resolve object with deep prototype chain to a flat object - * @param {Object} sourceObj source object - * @param {Object} [destObj] - * @param {Function|Boolean} [filter] - * @param {Function} [propFilter] - * - * @returns {Object} - */ -const toFlatObject = (sourceObj, destObj, filter, propFilter) => { - let props; - let i; - let prop; - const merged = {}; - - destObj = destObj || {}; - // eslint-disable-next-line no-eq-null,eqeqeq - if (sourceObj == null) return destObj; - - do { - props = Object.getOwnPropertyNames(sourceObj); - i = props.length; - while (i-- > 0) { - prop = props[i]; - if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { - destObj[prop] = sourceObj[prop]; - merged[prop] = true; - } - } - sourceObj = filter !== false && getPrototypeOf(sourceObj); - } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); - - return destObj; -} - -/** - * Determines whether a string ends with the characters of a specified string - * - * @param {String} str - * @param {String} searchString - * @param {Number} [position= 0] - * - * @returns {boolean} - */ -const endsWith = (str, searchString, position) => { - str = String(str); - if (position === undefined || position > str.length) { - position = str.length; - } - position -= searchString.length; - const lastIndex = str.indexOf(searchString, position); - return lastIndex !== -1 && lastIndex === position; -} - - -/** - * Returns new array from array like object or null if failed - * - * @param {*} [thing] - * - * @returns {?Array} - */ -const toArray = (thing) => { - if (!thing) return null; - if (isArray(thing)) return thing; - let i = thing.length; - if (!isNumber(i)) return null; - const arr = new Array(i); - while (i-- > 0) { - arr[i] = thing[i]; - } - return arr; -} - -/** - * Checking if the Uint8Array exists and if it does, it returns a function that checks if the - * thing passed in is an instance of Uint8Array - * - * @param {TypedArray} - * - * @returns {Array} - */ -// eslint-disable-next-line func-names -const isTypedArray = (TypedArray => { - // eslint-disable-next-line func-names - return thing => { - return TypedArray && thing instanceof TypedArray; - }; -})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array)); - -/** - * For each entry in the object, call the function with the key and value. - * - * @param {Object} obj - The object to iterate over. - * @param {Function} fn - The function to call for each entry. - * - * @returns {void} - */ -const forEachEntry = (obj, fn) => { - const generator = obj && obj[Symbol.iterator]; - - const iterator = generator.call(obj); - - let result; - - while ((result = iterator.next()) && !result.done) { - const pair = result.value; - fn.call(obj, pair[0], pair[1]); - } -} - -/** - * It takes a regular expression and a string, and returns an array of all the matches - * - * @param {string} regExp - The regular expression to match against. - * @param {string} str - The string to search. - * - * @returns {Array} - */ -const matchAll = (regExp, str) => { - let matches; - const arr = []; - - while ((matches = regExp.exec(str)) !== null) { - arr.push(matches); - } - - return arr; -} - -/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */ -const isHTMLForm = kindOfTest('HTMLFormElement'); - -const toCamelCase = str => { - return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, - function replacer(m, p1, p2) { - return p1.toUpperCase() + p2; - } - ); -}; - -/* Creating a function that will check if an object has a property. */ -const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype); - -/** - * Determine if a value is a RegExp object - * - * @param {*} val The value to test - * - * @returns {boolean} True if value is a RegExp object, otherwise false - */ -const isRegExp = kindOfTest('RegExp'); - -const reduceDescriptors = (obj, reducer) => { - const descriptors = Object.getOwnPropertyDescriptors(obj); - const reducedDescriptors = {}; - - forEach(descriptors, (descriptor, name) => { - let ret; - if ((ret = reducer(descriptor, name, obj)) !== false) { - reducedDescriptors[name] = ret || descriptor; - } - }); - - Object.defineProperties(obj, reducedDescriptors); -} - -/** - * Makes all methods read-only - * @param {Object} obj - */ - -const freezeMethods = (obj) => { - reduceDescriptors(obj, (descriptor, name) => { - // skip restricted props in strict mode - if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) { - return false; - } - - const value = obj[name]; - - if (!isFunction(value)) return; - - descriptor.enumerable = false; - - if ('writable' in descriptor) { - descriptor.writable = false; - return; - } - - if (!descriptor.set) { - descriptor.set = () => { - throw Error('Can not rewrite read-only method \'' + name + '\''); - }; - } - }); -} - -const toObjectSet = (arrayOrString, delimiter) => { - const obj = {}; - - const define = (arr) => { - arr.forEach(value => { - obj[value] = true; - }); - } - - isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); - - return obj; -} - -const noop = () => {} - -const toFiniteNumber = (value, defaultValue) => { - value = +value; - return Number.isFinite(value) ? value : defaultValue; -} - -const ALPHA = 'abcdefghijklmnopqrstuvwxyz' - -const DIGIT = '0123456789'; - -const ALPHABET = { - DIGIT, - ALPHA, - ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT -} - -const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => { - let str = ''; - const {length} = alphabet; - while (size--) { - str += alphabet[Math.random() * length|0] - } - - return str; -} - -/** - * If the thing is a FormData object, return true, otherwise return false. - * - * @param {unknown} thing - The thing to check. - * - * @returns {boolean} - */ -function isSpecCompliantForm(thing) { - return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]); -} - -const toJSONObject = (obj) => { - const stack = new Array(10); - - const visit = (source, i) => { - - if (isObject(source)) { - if (stack.indexOf(source) >= 0) { - return; - } - - if(!('toJSON' in source)) { - stack[i] = source; - const target = isArray(source) ? [] : {}; - - forEach(source, (value, key) => { - const reducedValue = visit(value, i + 1); - !isUndefined(reducedValue) && (target[key] = reducedValue); - }); - - stack[i] = undefined; - - return target; - } - } - - return source; - } - - return visit(obj, 0); -} - -const isAsyncFn = kindOfTest('AsyncFunction'); - -const isThenable = (thing) => - thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - isArray, - isArrayBuffer, - isBuffer, - isFormData, - isArrayBufferView, - isString, - isNumber, - isBoolean, - isObject, - isPlainObject, - isUndefined, - isDate, - isFile, - isBlob, - isRegExp, - isFunction, - isStream, - isURLSearchParams, - isTypedArray, - isFileList, - forEach, - merge, - extend, - trim, - stripBOM, - inherits, - toFlatObject, - kindOf, - kindOfTest, - endsWith, - toArray, - forEachEntry, - matchAll, - isHTMLForm, - hasOwnProperty, - hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection - reduceDescriptors, - freezeMethods, - toObjectSet, - toCamelCase, - noop, - toFiniteNumber, - findKey, - global: _global, - isContextDefined, - ALPHABET, - generateString, - isSpecCompliantForm, - toJSONObject, - isAsyncFn, - isThenable -}); - - -/***/ }), - -/***/ "./node_modules/react-hook-form/dist/index.esm.mjs": -/*!*********************************************************!*\ - !*** ./node_modules/react-hook-form/dist/index.esm.mjs ***! - \*********************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Controller: () => (/* binding */ Controller), -/* harmony export */ FormProvider: () => (/* binding */ FormProvider), -/* harmony export */ appendErrors: () => (/* binding */ appendErrors), -/* harmony export */ get: () => (/* binding */ get), -/* harmony export */ set: () => (/* binding */ set), -/* harmony export */ useController: () => (/* binding */ useController), -/* harmony export */ useFieldArray: () => (/* binding */ useFieldArray), -/* harmony export */ useForm: () => (/* binding */ useForm), -/* harmony export */ useFormContext: () => (/* binding */ useFormContext), -/* harmony export */ useFormState: () => (/* binding */ useFormState), -/* harmony export */ useWatch: () => (/* binding */ useWatch) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); - - -var isCheckBoxInput = (element) => element.type === 'checkbox'; - -var isDateObject = (value) => value instanceof Date; - -var isNullOrUndefined = (value) => value == null; - -const isObjectType = (value) => typeof value === 'object'; -var isObject = (value) => !isNullOrUndefined(value) && - !Array.isArray(value) && - isObjectType(value) && - !isDateObject(value); - -var getEventValue = (event) => isObject(event) && event.target - ? isCheckBoxInput(event.target) - ? event.target.checked - : event.target.value - : event; - -var getNodeParentName = (name) => name.substring(0, name.search(/\.\d+(\.|$)/)) || name; - -var isNameInFieldArray = (names, name) => names.has(getNodeParentName(name)); - -var isPlainObject = (tempObject) => { - const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype; - return (isObject(prototypeCopy) && prototypeCopy.hasOwnProperty('isPrototypeOf')); -}; - -var isWeb = typeof window !== 'undefined' && - typeof window.HTMLElement !== 'undefined' && - typeof document !== 'undefined'; - -function cloneObject(data) { - let copy; - const isArray = Array.isArray(data); - if (data instanceof Date) { - copy = new Date(data); - } - else if (data instanceof Set) { - copy = new Set(data); - } - else if (!(isWeb && (data instanceof Blob || data instanceof FileList)) && - (isArray || isObject(data))) { - copy = isArray ? [] : {}; - if (!Array.isArray(data) && !isPlainObject(data)) { - copy = data; - } - else { - for (const key in data) { - copy[key] = cloneObject(data[key]); - } - } - } - else { - return data; - } - return copy; -} - -var compact = (value) => Array.isArray(value) ? value.filter(Boolean) : []; - -var isUndefined = (val) => val === undefined; - -var get = (obj, path, defaultValue) => { - if (!path || !isObject(obj)) { - return defaultValue; - } - const result = compact(path.split(/[,[\].]+?/)).reduce((result, key) => isNullOrUndefined(result) ? result : result[key], obj); - return isUndefined(result) || result === obj - ? isUndefined(obj[path]) - ? defaultValue - : obj[path] - : result; -}; - -const EVENTS = { - BLUR: 'blur', - FOCUS_OUT: 'focusout', - CHANGE: 'change', -}; -const VALIDATION_MODE = { - onBlur: 'onBlur', - onChange: 'onChange', - onSubmit: 'onSubmit', - onTouched: 'onTouched', - all: 'all', -}; -const INPUT_VALIDATION_RULES = { - max: 'max', - min: 'min', - maxLength: 'maxLength', - minLength: 'minLength', - pattern: 'pattern', - required: 'required', - validate: 'validate', -}; - -const HookFormContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext(null); -/** - * This custom hook allows you to access the form context. useFormContext is intended to be used in deeply nested structures, where it would become inconvenient to pass the context as a prop. To be used with {@link FormProvider}. - * - * @remarks - * [API](https://react-hook-form.com/api/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi) - * - * @returns return all useForm methods - * - * @example - * ```tsx - * function App() { - * const methods = useForm(); - * const onSubmit = data => console.log(data); - * - * return ( - * - *
- * - * - * - *
- * ); - * } - * - * function NestedInput() { - * const { register } = useFormContext(); // retrieve all hook methods - * return ; - * } - * ``` - */ -const useFormContext = () => react__WEBPACK_IMPORTED_MODULE_0__.useContext(HookFormContext); -/** - * A provider component that propagates the `useForm` methods to all children components via [React Context](https://reactjs.org/docs/context.html) API. To be used with {@link useFormContext}. - * - * @remarks - * [API](https://react-hook-form.com/api/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi) - * - * @param props - all useFrom methods - * - * @example - * ```tsx - * function App() { - * const methods = useForm(); - * const onSubmit = data => console.log(data); - * - * return ( - * - *
- * - * - * - *
- * ); - * } - * - * function NestedInput() { - * const { register } = useFormContext(); // retrieve all hook methods - * return ; - * } - * ``` - */ -const FormProvider = (props) => { - const { children, ...data } = props; - return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(HookFormContext.Provider, { value: data }, children)); -}; - -var getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => { - const result = { - defaultValues: control._defaultValues, - }; - for (const key in formState) { - Object.defineProperty(result, key, { - get: () => { - const _key = key; - if (control._proxyFormState[_key] !== VALIDATION_MODE.all) { - control._proxyFormState[_key] = !isRoot || VALIDATION_MODE.all; - } - localProxyFormState && (localProxyFormState[_key] = true); - return formState[_key]; - }, - }); - } - return result; -}; - -var isEmptyObject = (value) => isObject(value) && !Object.keys(value).length; - -var shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, isRoot) => { - updateFormState(formStateData); - const { name, ...formState } = formStateData; - return (isEmptyObject(formState) || - Object.keys(formState).length >= Object.keys(_proxyFormState).length || - Object.keys(formState).find((key) => _proxyFormState[key] === - (!isRoot || VALIDATION_MODE.all))); -}; - -var convertToArrayPayload = (value) => (Array.isArray(value) ? value : [value]); - -var shouldSubscribeByName = (name, signalName, exact) => exact && signalName - ? name === signalName - : !name || - !signalName || - name === signalName || - convertToArrayPayload(name).some((currentName) => currentName && - (currentName.startsWith(signalName) || - signalName.startsWith(currentName))); - -function useSubscribe(props) { - const _props = react__WEBPACK_IMPORTED_MODULE_0__.useRef(props); - _props.current = props; - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - const subscription = !props.disabled && - _props.current.subject && - _props.current.subject.subscribe({ - next: _props.current.next, - }); - return () => { - subscription && subscription.unsubscribe(); - }; - }, [props.disabled]); -} - -/** - * This custom hook allows you to subscribe to each form state, and isolate the re-render at the custom hook level. It has its scope in terms of form state subscription, so it would not affect other useFormState and useForm. Using this hook can reduce the re-render impact on large and complex form application. - * - * @remarks - * [API](https://react-hook-form.com/api/useformstate) • [Demo](https://codesandbox.io/s/useformstate-75xly) - * - * @param props - include options on specify fields to subscribe. {@link UseFormStateReturn} - * - * @example - * ```tsx - * function App() { - * const { register, handleSubmit, control } = useForm({ - * defaultValues: { - * firstName: "firstName" - * }}); - * const { dirtyFields } = useFormState({ - * control - * }); - * const onSubmit = (data) => console.log(data); - * - * return ( - *
- * - * {dirtyFields.firstName &&

Field is dirty.

} - * - *
- * ); - * } - * ``` - */ -function useFormState(props) { - const methods = useFormContext(); - const { control = methods.control, disabled, name, exact } = props || {}; - const [formState, updateFormState] = react__WEBPACK_IMPORTED_MODULE_0__.useState(control._formState); - const _mounted = react__WEBPACK_IMPORTED_MODULE_0__.useRef(true); - const _localProxyFormState = react__WEBPACK_IMPORTED_MODULE_0__.useRef({ - isDirty: false, - isLoading: false, - dirtyFields: false, - touchedFields: false, - isValidating: false, - isValid: false, - errors: false, - }); - const _name = react__WEBPACK_IMPORTED_MODULE_0__.useRef(name); - _name.current = name; - useSubscribe({ - disabled, - next: (value) => _mounted.current && - shouldSubscribeByName(_name.current, value.name, exact) && - shouldRenderFormState(value, _localProxyFormState.current, control._updateFormState) && - updateFormState({ - ...control._formState, - ...value, - }), - subject: control._subjects.state, - }); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - _mounted.current = true; - _localProxyFormState.current.isValid && control._updateValid(true); - return () => { - _mounted.current = false; - }; - }, [control]); - return getProxyFormState(formState, control, _localProxyFormState.current, false); -} - -var isString = (value) => typeof value === 'string'; - -var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => { - if (isString(names)) { - isGlobal && _names.watch.add(names); - return get(formValues, names, defaultValue); - } - if (Array.isArray(names)) { - return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get(formValues, fieldName))); - } - isGlobal && (_names.watchAll = true); - return formValues; -}; - -/** - * Custom hook to subscribe to field change and isolate re-rendering at the component level. - * - * @remarks - * - * [API](https://react-hook-form.com/api/usewatch) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-usewatch-h9i5e) - * - * @example - * ```tsx - * const { watch } = useForm(); - * const values = useWatch({ - * name: "fieldName" - * control, - * }) - * ``` - */ -function useWatch(props) { - const methods = useFormContext(); - const { control = methods.control, name, defaultValue, disabled, exact, } = props || {}; - const _name = react__WEBPACK_IMPORTED_MODULE_0__.useRef(name); - _name.current = name; - useSubscribe({ - disabled, - subject: control._subjects.values, - next: (formState) => { - if (shouldSubscribeByName(_name.current, formState.name, exact)) { - updateValue(cloneObject(generateWatchOutput(_name.current, control._names, formState.values || control._formValues, false, defaultValue))); - } - }, - }); - const [value, updateValue] = react__WEBPACK_IMPORTED_MODULE_0__.useState(control._getWatch(name, defaultValue)); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => control._removeUnmounted()); - return value; -} - -var isKey = (value) => /^\w*$/.test(value); - -var stringToPath = (input) => compact(input.replace(/["|']|\]/g, '').split(/\.|\[/)); - -function set(object, path, value) { - let index = -1; - const tempPath = isKey(path) ? [path] : stringToPath(path); - const length = tempPath.length; - const lastIndex = length - 1; - while (++index < length) { - const key = tempPath[index]; - let newValue = value; - if (index !== lastIndex) { - const objValue = object[key]; - newValue = - isObject(objValue) || Array.isArray(objValue) - ? objValue - : !isNaN(+tempPath[index + 1]) - ? [] - : {}; - } - object[key] = newValue; - object = object[key]; - } - return object; -} - -/** - * Custom hook to work with controlled component, this function provide you with both form and field level state. Re-render is isolated at the hook level. - * - * @remarks - * [API](https://react-hook-form.com/api/usecontroller) • [Demo](https://codesandbox.io/s/usecontroller-0o8px) - * - * @param props - the path name to the form field value, and validation rules. - * - * @returns field properties, field and form state. {@link UseControllerReturn} - * - * @example - * ```tsx - * function Input(props) { - * const { field, fieldState, formState } = useController(props); - * return ( - *
- * - *

{fieldState.isTouched && "Touched"}

- *

{formState.isSubmitted ? "submitted" : ""}

- *
- * ); - * } - * ``` - */ -function useController(props) { - const methods = useFormContext(); - const { name, control = methods.control, shouldUnregister } = props; - const isArrayField = isNameInFieldArray(control._names.array, name); - const value = useWatch({ - control, - name, - defaultValue: get(control._formValues, name, get(control._defaultValues, name, props.defaultValue)), - exact: true, - }); - const formState = useFormState({ - control, - name, - }); - const _registerProps = react__WEBPACK_IMPORTED_MODULE_0__.useRef(control.register(name, { - ...props.rules, - value, - })); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister; - const updateMounted = (name, value) => { - const field = get(control._fields, name); - if (field) { - field._f.mount = value; - } - }; - updateMounted(name, true); - if (_shouldUnregisterField) { - const value = cloneObject(get(control._options.defaultValues, name)); - set(control._defaultValues, name, value); - if (isUndefined(get(control._formValues, name))) { - set(control._formValues, name, value); - } - } - return () => { - (isArrayField - ? _shouldUnregisterField && !control._state.action - : _shouldUnregisterField) - ? control.unregister(name) - : updateMounted(name, false); - }; - }, [name, control, isArrayField, shouldUnregister]); - return { - field: { - name, - value, - onChange: react__WEBPACK_IMPORTED_MODULE_0__.useCallback((event) => _registerProps.current.onChange({ - target: { - value: getEventValue(event), - name: name, - }, - type: EVENTS.CHANGE, - }), [name]), - onBlur: react__WEBPACK_IMPORTED_MODULE_0__.useCallback(() => _registerProps.current.onBlur({ - target: { - value: get(control._formValues, name), - name: name, - }, - type: EVENTS.BLUR, - }), [name, control]), - ref: (elm) => { - const field = get(control._fields, name); - if (field && elm) { - field._f.ref = { - focus: () => elm.focus(), - select: () => elm.select(), - setCustomValidity: (message) => elm.setCustomValidity(message), - reportValidity: () => elm.reportValidity(), - }; - } - }, - }, - formState, - fieldState: Object.defineProperties({}, { - invalid: { - enumerable: true, - get: () => !!get(formState.errors, name), - }, - isDirty: { - enumerable: true, - get: () => !!get(formState.dirtyFields, name), - }, - isTouched: { - enumerable: true, - get: () => !!get(formState.touchedFields, name), - }, - error: { - enumerable: true, - get: () => get(formState.errors, name), - }, - }), - }; -} - -/** - * Component based on `useController` hook to work with controlled component. - * - * @remarks - * [API](https://react-hook-form.com/api/usecontroller/controller) • [Demo](https://codesandbox.io/s/react-hook-form-v6-controller-ts-jwyzw) • [Video](https://www.youtube.com/watch?v=N2UNk_UCVyA) - * - * @param props - the path name to the form field value, and validation rules. - * - * @returns provide field handler functions, field and form state. - * - * @example - * ```tsx - * function App() { - * const { control } = useForm({ - * defaultValues: { - * test: "" - * } - * }); - * - * return ( - *
- * ( - * <> - * - *

{formState.isSubmitted ? "submitted" : ""}

- *

{fieldState.isTouched ? "touched" : ""}

- * - * )} - * /> - * - * ); - * } - * ``` - */ -const Controller = (props) => props.render(useController(props)); - -var appendErrors = (name, validateAllFieldCriteria, errors, type, message) => validateAllFieldCriteria - ? { - ...errors[name], - types: { - ...(errors[name] && errors[name].types ? errors[name].types : {}), - [type]: message || true, - }, - } - : {}; - -const focusFieldBy = (fields, callback, fieldsNames) => { - for (const key of fieldsNames || Object.keys(fields)) { - const field = get(fields, key); - if (field) { - const { _f, ...currentField } = field; - if (_f && callback(_f.name)) { - if (_f.ref.focus) { - _f.ref.focus(); - break; - } - else if (_f.refs && _f.refs[0].focus) { - _f.refs[0].focus(); - break; - } - } - else if (isObject(currentField)) { - focusFieldBy(currentField, callback); - } - } - } -}; - -var generateId = () => { - const d = typeof performance === 'undefined' ? Date.now() : performance.now() * 1000; - return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => { - const r = (Math.random() * 16 + d) % 16 | 0; - return (c == 'x' ? r : (r & 0x3) | 0x8).toString(16); - }); -}; - -var getFocusFieldName = (name, index, options = {}) => options.shouldFocus || isUndefined(options.shouldFocus) - ? options.focusName || - `${name}.${isUndefined(options.focusIndex) ? index : options.focusIndex}.` - : ''; - -var getValidationModes = (mode) => ({ - isOnSubmit: !mode || mode === VALIDATION_MODE.onSubmit, - isOnBlur: mode === VALIDATION_MODE.onBlur, - isOnChange: mode === VALIDATION_MODE.onChange, - isOnAll: mode === VALIDATION_MODE.all, - isOnTouch: mode === VALIDATION_MODE.onTouched, -}); - -var isWatched = (name, _names, isBlurEvent) => !isBlurEvent && - (_names.watchAll || - _names.watch.has(name) || - [..._names.watch].some((watchName) => name.startsWith(watchName) && - /^\.\w+/.test(name.slice(watchName.length)))); - -var updateFieldArrayRootError = (errors, error, name) => { - const fieldArrayErrors = compact(get(errors, name)); - set(fieldArrayErrors, 'root', error[name]); - set(errors, name, fieldArrayErrors); - return errors; -}; - -var isBoolean = (value) => typeof value === 'boolean'; - -var isFileInput = (element) => element.type === 'file'; - -var isFunction = (value) => typeof value === 'function'; - -var isHTMLElement = (value) => { - if (!isWeb) { - return false; - } - const owner = value ? value.ownerDocument : 0; - return (value instanceof - (owner && owner.defaultView ? owner.defaultView.HTMLElement : HTMLElement)); -}; - -var isMessage = (value) => isString(value); - -var isRadioInput = (element) => element.type === 'radio'; - -var isRegex = (value) => value instanceof RegExp; - -const defaultResult = { - value: false, - isValid: false, -}; -const validResult = { value: true, isValid: true }; -var getCheckboxValue = (options) => { - if (Array.isArray(options)) { - if (options.length > 1) { - const values = options - .filter((option) => option && option.checked && !option.disabled) - .map((option) => option.value); - return { value: values, isValid: !!values.length }; - } - return options[0].checked && !options[0].disabled - ? // @ts-expect-error expected to work in the browser - options[0].attributes && !isUndefined(options[0].attributes.value) - ? isUndefined(options[0].value) || options[0].value === '' - ? validResult - : { value: options[0].value, isValid: true } - : validResult - : defaultResult; - } - return defaultResult; -}; - -const defaultReturn = { - isValid: false, - value: null, -}; -var getRadioValue = (options) => Array.isArray(options) - ? options.reduce((previous, option) => option && option.checked && !option.disabled - ? { - isValid: true, - value: option.value, - } - : previous, defaultReturn) - : defaultReturn; - -function getValidateError(result, ref, type = 'validate') { - if (isMessage(result) || - (Array.isArray(result) && result.every(isMessage)) || - (isBoolean(result) && !result)) { - return { - type, - message: isMessage(result) ? result : '', - ref, - }; - } -} - -var getValueAndMessage = (validationData) => isObject(validationData) && !isRegex(validationData) - ? validationData - : { - value: validationData, - message: '', - }; - -var validateField = async (field, formValues, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => { - const { ref, refs, required, maxLength, minLength, min, max, pattern, validate, name, valueAsNumber, mount, disabled, } = field._f; - const inputValue = get(formValues, name); - if (!mount || disabled) { - return {}; - } - const inputRef = refs ? refs[0] : ref; - const setCustomValidity = (message) => { - if (shouldUseNativeValidation && inputRef.reportValidity) { - inputRef.setCustomValidity(isBoolean(message) ? '' : message || ''); - inputRef.reportValidity(); - } - }; - const error = {}; - const isRadio = isRadioInput(ref); - const isCheckBox = isCheckBoxInput(ref); - const isRadioOrCheckbox = isRadio || isCheckBox; - const isEmpty = ((valueAsNumber || isFileInput(ref)) && - isUndefined(ref.value) && - isUndefined(inputValue)) || - (isHTMLElement(ref) && ref.value === '') || - inputValue === '' || - (Array.isArray(inputValue) && !inputValue.length); - const appendErrorsCurry = appendErrors.bind(null, name, validateAllFieldCriteria, error); - const getMinMaxMessage = (exceedMax, maxLengthMessage, minLengthMessage, maxType = INPUT_VALIDATION_RULES.maxLength, minType = INPUT_VALIDATION_RULES.minLength) => { - const message = exceedMax ? maxLengthMessage : minLengthMessage; - error[name] = { - type: exceedMax ? maxType : minType, - message, - ref, - ...appendErrorsCurry(exceedMax ? maxType : minType, message), - }; - }; - if (isFieldArray - ? !Array.isArray(inputValue) || !inputValue.length - : required && - ((!isRadioOrCheckbox && (isEmpty || isNullOrUndefined(inputValue))) || - (isBoolean(inputValue) && !inputValue) || - (isCheckBox && !getCheckboxValue(refs).isValid) || - (isRadio && !getRadioValue(refs).isValid))) { - const { value, message } = isMessage(required) - ? { value: !!required, message: required } - : getValueAndMessage(required); - if (value) { - error[name] = { - type: INPUT_VALIDATION_RULES.required, - message, - ref: inputRef, - ...appendErrorsCurry(INPUT_VALIDATION_RULES.required, message), - }; - if (!validateAllFieldCriteria) { - setCustomValidity(message); - return error; - } - } - } - if (!isEmpty && (!isNullOrUndefined(min) || !isNullOrUndefined(max))) { - let exceedMax; - let exceedMin; - const maxOutput = getValueAndMessage(max); - const minOutput = getValueAndMessage(min); - if (!isNullOrUndefined(inputValue) && !isNaN(inputValue)) { - const valueNumber = ref.valueAsNumber || - (inputValue ? +inputValue : inputValue); - if (!isNullOrUndefined(maxOutput.value)) { - exceedMax = valueNumber > maxOutput.value; - } - if (!isNullOrUndefined(minOutput.value)) { - exceedMin = valueNumber < minOutput.value; - } - } - else { - const valueDate = ref.valueAsDate || new Date(inputValue); - const convertTimeToDate = (time) => new Date(new Date().toDateString() + ' ' + time); - const isTime = ref.type == 'time'; - const isWeek = ref.type == 'week'; - if (isString(maxOutput.value) && inputValue) { - exceedMax = isTime - ? convertTimeToDate(inputValue) > convertTimeToDate(maxOutput.value) - : isWeek - ? inputValue > maxOutput.value - : valueDate > new Date(maxOutput.value); - } - if (isString(minOutput.value) && inputValue) { - exceedMin = isTime - ? convertTimeToDate(inputValue) < convertTimeToDate(minOutput.value) - : isWeek - ? inputValue < minOutput.value - : valueDate < new Date(minOutput.value); - } - } - if (exceedMax || exceedMin) { - getMinMaxMessage(!!exceedMax, maxOutput.message, minOutput.message, INPUT_VALIDATION_RULES.max, INPUT_VALIDATION_RULES.min); - if (!validateAllFieldCriteria) { - setCustomValidity(error[name].message); - return error; - } - } - } - if ((maxLength || minLength) && - !isEmpty && - (isString(inputValue) || (isFieldArray && Array.isArray(inputValue)))) { - const maxLengthOutput = getValueAndMessage(maxLength); - const minLengthOutput = getValueAndMessage(minLength); - const exceedMax = !isNullOrUndefined(maxLengthOutput.value) && - inputValue.length > +maxLengthOutput.value; - const exceedMin = !isNullOrUndefined(minLengthOutput.value) && - inputValue.length < +minLengthOutput.value; - if (exceedMax || exceedMin) { - getMinMaxMessage(exceedMax, maxLengthOutput.message, minLengthOutput.message); - if (!validateAllFieldCriteria) { - setCustomValidity(error[name].message); - return error; - } - } - } - if (pattern && !isEmpty && isString(inputValue)) { - const { value: patternValue, message } = getValueAndMessage(pattern); - if (isRegex(patternValue) && !inputValue.match(patternValue)) { - error[name] = { - type: INPUT_VALIDATION_RULES.pattern, - message, - ref, - ...appendErrorsCurry(INPUT_VALIDATION_RULES.pattern, message), - }; - if (!validateAllFieldCriteria) { - setCustomValidity(message); - return error; - } - } - } - if (validate) { - if (isFunction(validate)) { - const result = await validate(inputValue, formValues); - const validateError = getValidateError(result, inputRef); - if (validateError) { - error[name] = { - ...validateError, - ...appendErrorsCurry(INPUT_VALIDATION_RULES.validate, validateError.message), - }; - if (!validateAllFieldCriteria) { - setCustomValidity(validateError.message); - return error; - } - } - } - else if (isObject(validate)) { - let validationResult = {}; - for (const key in validate) { - if (!isEmptyObject(validationResult) && !validateAllFieldCriteria) { - break; - } - const validateError = getValidateError(await validate[key](inputValue, formValues), inputRef, key); - if (validateError) { - validationResult = { - ...validateError, - ...appendErrorsCurry(key, validateError.message), - }; - setCustomValidity(validateError.message); - if (validateAllFieldCriteria) { - error[name] = validationResult; - } - } - } - if (!isEmptyObject(validationResult)) { - error[name] = { - ref: inputRef, - ...validationResult, - }; - if (!validateAllFieldCriteria) { - return error; - } - } - } - } - setCustomValidity(true); - return error; -}; - -function append(data, value) { - return [...data, ...convertToArrayPayload(value)]; -} - -var fillEmptyArray = (value) => Array.isArray(value) ? value.map(() => undefined) : undefined; - -function insert(data, index, value) { - return [ - ...data.slice(0, index), - ...convertToArrayPayload(value), - ...data.slice(index), - ]; -} - -var moveArrayAt = (data, from, to) => { - if (!Array.isArray(data)) { - return []; - } - if (isUndefined(data[to])) { - data[to] = undefined; - } - data.splice(to, 0, data.splice(from, 1)[0]); - return data; -}; - -function prepend(data, value) { - return [...convertToArrayPayload(value), ...convertToArrayPayload(data)]; -} - -function removeAtIndexes(data, indexes) { - let i = 0; - const temp = [...data]; - for (const index of indexes) { - temp.splice(index - i, 1); - i++; - } - return compact(temp).length ? temp : []; -} -var removeArrayAt = (data, index) => isUndefined(index) - ? [] - : removeAtIndexes(data, convertToArrayPayload(index).sort((a, b) => a - b)); - -var swapArrayAt = (data, indexA, indexB) => { - data[indexA] = [data[indexB], (data[indexB] = data[indexA])][0]; -}; - -function baseGet(object, updatePath) { - const length = updatePath.slice(0, -1).length; - let index = 0; - while (index < length) { - object = isUndefined(object) ? index++ : object[updatePath[index++]]; - } - return object; -} -function isEmptyArray(obj) { - for (const key in obj) { - if (!isUndefined(obj[key])) { - return false; - } - } - return true; -} -function unset(object, path) { - const paths = Array.isArray(path) - ? path - : isKey(path) - ? [path] - : stringToPath(path); - const childObject = paths.length === 1 ? object : baseGet(object, paths); - const index = paths.length - 1; - const key = paths[index]; - if (childObject) { - delete childObject[key]; - } - if (index !== 0 && - ((isObject(childObject) && isEmptyObject(childObject)) || - (Array.isArray(childObject) && isEmptyArray(childObject)))) { - unset(object, paths.slice(0, -1)); - } - return object; -} - -var updateAt = (fieldValues, index, value) => { - fieldValues[index] = value; - return fieldValues; -}; - -/** - * A custom hook that exposes convenient methods to perform operations with a list of dynamic inputs that need to be appended, updated, removed etc. • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn) • [Video](https://youtu.be/4MrbfGSFY2A) - * - * @remarks - * [API](https://react-hook-form.com/api/usefieldarray) • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn) - * - * @param props - useFieldArray props - * - * @returns methods - functions to manipulate with the Field Arrays (dynamic inputs) {@link UseFieldArrayReturn} - * - * @example - * ```tsx - * function App() { - * const { register, control, handleSubmit, reset, trigger, setError } = useForm({ - * defaultValues: { - * test: [] - * } - * }); - * const { fields, append } = useFieldArray({ - * control, - * name: "test" - * }); - * - * return ( - *
console.log(data))}> - * {fields.map((item, index) => ( - * - * ))} - * - * - *
- * ); - * } - * ``` - */ -function useFieldArray(props) { - const methods = useFormContext(); - const { control = methods.control, name, keyName = 'id', shouldUnregister, } = props; - const [fields, setFields] = react__WEBPACK_IMPORTED_MODULE_0__.useState(control._getFieldArray(name)); - const ids = react__WEBPACK_IMPORTED_MODULE_0__.useRef(control._getFieldArray(name).map(generateId)); - const _fieldIds = react__WEBPACK_IMPORTED_MODULE_0__.useRef(fields); - const _name = react__WEBPACK_IMPORTED_MODULE_0__.useRef(name); - const _actioned = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false); - _name.current = name; - _fieldIds.current = fields; - control._names.array.add(name); - props.rules && - control.register(name, props.rules); - useSubscribe({ - next: ({ values, name: fieldArrayName, }) => { - if (fieldArrayName === _name.current || !fieldArrayName) { - const fieldValues = get(values, _name.current); - if (Array.isArray(fieldValues)) { - setFields(fieldValues); - ids.current = fieldValues.map(generateId); - } - } - }, - subject: control._subjects.array, - }); - const updateValues = react__WEBPACK_IMPORTED_MODULE_0__.useCallback((updatedFieldArrayValues) => { - _actioned.current = true; - control._updateFieldArray(name, updatedFieldArrayValues); - }, [control, name]); - const append$1 = (value, options) => { - const appendValue = convertToArrayPayload(cloneObject(value)); - const updatedFieldArrayValues = append(control._getFieldArray(name), appendValue); - control._names.focus = getFocusFieldName(name, updatedFieldArrayValues.length - 1, options); - ids.current = append(ids.current, appendValue.map(generateId)); - updateValues(updatedFieldArrayValues); - setFields(updatedFieldArrayValues); - control._updateFieldArray(name, updatedFieldArrayValues, append, { - argA: fillEmptyArray(value), - }); - }; - const prepend$1 = (value, options) => { - const prependValue = convertToArrayPayload(cloneObject(value)); - const updatedFieldArrayValues = prepend(control._getFieldArray(name), prependValue); - control._names.focus = getFocusFieldName(name, 0, options); - ids.current = prepend(ids.current, prependValue.map(generateId)); - updateValues(updatedFieldArrayValues); - setFields(updatedFieldArrayValues); - control._updateFieldArray(name, updatedFieldArrayValues, prepend, { - argA: fillEmptyArray(value), - }); - }; - const remove = (index) => { - const updatedFieldArrayValues = removeArrayAt(control._getFieldArray(name), index); - ids.current = removeArrayAt(ids.current, index); - updateValues(updatedFieldArrayValues); - setFields(updatedFieldArrayValues); - control._updateFieldArray(name, updatedFieldArrayValues, removeArrayAt, { - argA: index, - }); - }; - const insert$1 = (index, value, options) => { - const insertValue = convertToArrayPayload(cloneObject(value)); - const updatedFieldArrayValues = insert(control._getFieldArray(name), index, insertValue); - control._names.focus = getFocusFieldName(name, index, options); - ids.current = insert(ids.current, index, insertValue.map(generateId)); - updateValues(updatedFieldArrayValues); - setFields(updatedFieldArrayValues); - control._updateFieldArray(name, updatedFieldArrayValues, insert, { - argA: index, - argB: fillEmptyArray(value), - }); - }; - const swap = (indexA, indexB) => { - const updatedFieldArrayValues = control._getFieldArray(name); - swapArrayAt(updatedFieldArrayValues, indexA, indexB); - swapArrayAt(ids.current, indexA, indexB); - updateValues(updatedFieldArrayValues); - setFields(updatedFieldArrayValues); - control._updateFieldArray(name, updatedFieldArrayValues, swapArrayAt, { - argA: indexA, - argB: indexB, - }, false); - }; - const move = (from, to) => { - const updatedFieldArrayValues = control._getFieldArray(name); - moveArrayAt(updatedFieldArrayValues, from, to); - moveArrayAt(ids.current, from, to); - updateValues(updatedFieldArrayValues); - setFields(updatedFieldArrayValues); - control._updateFieldArray(name, updatedFieldArrayValues, moveArrayAt, { - argA: from, - argB: to, - }, false); - }; - const update = (index, value) => { - const updateValue = cloneObject(value); - const updatedFieldArrayValues = updateAt(control._getFieldArray(name), index, updateValue); - ids.current = [...updatedFieldArrayValues].map((item, i) => !item || i === index ? generateId() : ids.current[i]); - updateValues(updatedFieldArrayValues); - setFields([...updatedFieldArrayValues]); - control._updateFieldArray(name, updatedFieldArrayValues, updateAt, { - argA: index, - argB: updateValue, - }, true, false); - }; - const replace = (value) => { - const updatedFieldArrayValues = convertToArrayPayload(cloneObject(value)); - ids.current = updatedFieldArrayValues.map(generateId); - updateValues([...updatedFieldArrayValues]); - setFields([...updatedFieldArrayValues]); - control._updateFieldArray(name, [...updatedFieldArrayValues], (data) => data, {}, true, false); - }; - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - control._state.action = false; - isWatched(name, control._names) && - control._subjects.state.next({ - ...control._formState, - }); - if (_actioned.current && - (!getValidationModes(control._options.mode).isOnSubmit || - control._formState.isSubmitted)) { - if (control._options.resolver) { - control._executeSchema([name]).then((result) => { - const error = get(result.errors, name); - const existingError = get(control._formState.errors, name); - if (existingError ? !error && existingError.type : error && error.type) { - error - ? set(control._formState.errors, name, error) - : unset(control._formState.errors, name); - control._subjects.state.next({ - errors: control._formState.errors, - }); - } - }); - } - else { - const field = get(control._fields, name); - if (field && field._f) { - validateField(field, control._formValues, control._options.criteriaMode === VALIDATION_MODE.all, control._options.shouldUseNativeValidation, true).then((error) => !isEmptyObject(error) && - control._subjects.state.next({ - errors: updateFieldArrayRootError(control._formState.errors, error, name), - })); - } - } - } - control._subjects.values.next({ - name, - values: { ...control._formValues }, - }); - control._names.focus && - focusFieldBy(control._fields, (key) => !!key && key.startsWith(control._names.focus || '')); - control._names.focus = ''; - control._updateValid(); - }, [fields, name, control]); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - !get(control._formValues, name) && control._updateFieldArray(name); - return () => { - (control._options.shouldUnregister || shouldUnregister) && - control.unregister(name); - }; - }, [name, control, keyName, shouldUnregister]); - return { - swap: react__WEBPACK_IMPORTED_MODULE_0__.useCallback(swap, [updateValues, name, control]), - move: react__WEBPACK_IMPORTED_MODULE_0__.useCallback(move, [updateValues, name, control]), - prepend: react__WEBPACK_IMPORTED_MODULE_0__.useCallback(prepend$1, [updateValues, name, control]), - append: react__WEBPACK_IMPORTED_MODULE_0__.useCallback(append$1, [updateValues, name, control]), - remove: react__WEBPACK_IMPORTED_MODULE_0__.useCallback(remove, [updateValues, name, control]), - insert: react__WEBPACK_IMPORTED_MODULE_0__.useCallback(insert$1, [updateValues, name, control]), - update: react__WEBPACK_IMPORTED_MODULE_0__.useCallback(update, [updateValues, name, control]), - replace: react__WEBPACK_IMPORTED_MODULE_0__.useCallback(replace, [updateValues, name, control]), - fields: react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => fields.map((field, index) => ({ - ...field, - [keyName]: ids.current[index] || generateId(), - })), [fields, keyName]), - }; -} - -function createSubject() { - let _observers = []; - const next = (value) => { - for (const observer of _observers) { - observer.next && observer.next(value); - } - }; - const subscribe = (observer) => { - _observers.push(observer); - return { - unsubscribe: () => { - _observers = _observers.filter((o) => o !== observer); - }, - }; - }; - const unsubscribe = () => { - _observers = []; - }; - return { - get observers() { - return _observers; - }, - next, - subscribe, - unsubscribe, - }; -} - -var isPrimitive = (value) => isNullOrUndefined(value) || !isObjectType(value); - -function deepEqual(object1, object2) { - if (isPrimitive(object1) || isPrimitive(object2)) { - return object1 === object2; - } - if (isDateObject(object1) && isDateObject(object2)) { - return object1.getTime() === object2.getTime(); - } - const keys1 = Object.keys(object1); - const keys2 = Object.keys(object2); - if (keys1.length !== keys2.length) { - return false; - } - for (const key of keys1) { - const val1 = object1[key]; - if (!keys2.includes(key)) { - return false; - } - if (key !== 'ref') { - const val2 = object2[key]; - if ((isDateObject(val1) && isDateObject(val2)) || - (isObject(val1) && isObject(val2)) || - (Array.isArray(val1) && Array.isArray(val2)) - ? !deepEqual(val1, val2) - : val1 !== val2) { - return false; - } - } - } - return true; -} - -var isMultipleSelect = (element) => element.type === `select-multiple`; - -var isRadioOrCheckbox = (ref) => isRadioInput(ref) || isCheckBoxInput(ref); - -var live = (ref) => isHTMLElement(ref) && ref.isConnected; - -var objectHasFunction = (data) => { - for (const key in data) { - if (isFunction(data[key])) { - return true; - } - } - return false; -}; - -function markFieldsDirty(data, fields = {}) { - const isParentNodeArray = Array.isArray(data); - if (isObject(data) || isParentNodeArray) { - for (const key in data) { - if (Array.isArray(data[key]) || - (isObject(data[key]) && !objectHasFunction(data[key]))) { - fields[key] = Array.isArray(data[key]) ? [] : {}; - markFieldsDirty(data[key], fields[key]); - } - else if (!isNullOrUndefined(data[key])) { - fields[key] = true; - } - } - } - return fields; -} -function getDirtyFieldsFromDefaultValues(data, formValues, dirtyFieldsFromValues) { - const isParentNodeArray = Array.isArray(data); - if (isObject(data) || isParentNodeArray) { - for (const key in data) { - if (Array.isArray(data[key]) || - (isObject(data[key]) && !objectHasFunction(data[key]))) { - if (isUndefined(formValues) || - isPrimitive(dirtyFieldsFromValues[key])) { - dirtyFieldsFromValues[key] = Array.isArray(data[key]) - ? markFieldsDirty(data[key], []) - : { ...markFieldsDirty(data[key]) }; - } - else { - getDirtyFieldsFromDefaultValues(data[key], isNullOrUndefined(formValues) ? {} : formValues[key], dirtyFieldsFromValues[key]); - } - } - else { - dirtyFieldsFromValues[key] = !deepEqual(data[key], formValues[key]); - } - } - } - return dirtyFieldsFromValues; -} -var getDirtyFields = (defaultValues, formValues) => getDirtyFieldsFromDefaultValues(defaultValues, formValues, markFieldsDirty(formValues)); - -var getFieldValueAs = (value, { valueAsNumber, valueAsDate, setValueAs }) => isUndefined(value) - ? value - : valueAsNumber - ? value === '' - ? NaN - : value - ? +value - : value - : valueAsDate && isString(value) - ? new Date(value) - : setValueAs - ? setValueAs(value) - : value; - -function getFieldValue(_f) { - const ref = _f.ref; - if (_f.refs ? _f.refs.every((ref) => ref.disabled) : ref.disabled) { - return; - } - if (isFileInput(ref)) { - return ref.files; - } - if (isRadioInput(ref)) { - return getRadioValue(_f.refs).value; - } - if (isMultipleSelect(ref)) { - return [...ref.selectedOptions].map(({ value }) => value); - } - if (isCheckBoxInput(ref)) { - return getCheckboxValue(_f.refs).value; - } - return getFieldValueAs(isUndefined(ref.value) ? _f.ref.value : ref.value, _f); -} - -var getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeValidation) => { - const fields = {}; - for (const name of fieldsNames) { - const field = get(_fields, name); - field && set(fields, name, field._f); - } - return { - criteriaMode, - names: [...fieldsNames], - fields, - shouldUseNativeValidation, - }; -}; - -var getRuleValue = (rule) => isUndefined(rule) - ? rule - : isRegex(rule) - ? rule.source - : isObject(rule) - ? isRegex(rule.value) - ? rule.value.source - : rule.value - : rule; - -var hasValidation = (options) => options.mount && - (options.required || - options.min || - options.max || - options.maxLength || - options.minLength || - options.pattern || - options.validate); - -function schemaErrorLookup(errors, _fields, name) { - const error = get(errors, name); - if (error || isKey(name)) { - return { - error, - name, - }; - } - const names = name.split('.'); - while (names.length) { - const fieldName = names.join('.'); - const field = get(_fields, fieldName); - const foundError = get(errors, fieldName); - if (field && !Array.isArray(field) && name !== fieldName) { - return { name }; - } - if (foundError && foundError.type) { - return { - name: fieldName, - error: foundError, - }; - } - names.pop(); - } - return { - name, - }; -} - -var skipValidation = (isBlurEvent, isTouched, isSubmitted, reValidateMode, mode) => { - if (mode.isOnAll) { - return false; - } - else if (!isSubmitted && mode.isOnTouch) { - return !(isTouched || isBlurEvent); - } - else if (isSubmitted ? reValidateMode.isOnBlur : mode.isOnBlur) { - return !isBlurEvent; - } - else if (isSubmitted ? reValidateMode.isOnChange : mode.isOnChange) { - return isBlurEvent; - } - return true; -}; - -var unsetEmptyArray = (ref, name) => !compact(get(ref, name)).length && unset(ref, name); - -const defaultOptions = { - mode: VALIDATION_MODE.onSubmit, - reValidateMode: VALIDATION_MODE.onChange, - shouldFocusError: true, -}; -function createFormControl(props = {}, flushRootRender) { - let _options = { - ...defaultOptions, - ...props, - }; - let _formState = { - submitCount: 0, - isDirty: false, - isLoading: isFunction(_options.defaultValues), - isValidating: false, - isSubmitted: false, - isSubmitting: false, - isSubmitSuccessful: false, - isValid: false, - touchedFields: {}, - dirtyFields: {}, - errors: {}, - }; - let _fields = {}; - let _defaultValues = isObject(_options.defaultValues) || isObject(_options.values) - ? cloneObject(_options.defaultValues || _options.values) || {} - : {}; - let _formValues = _options.shouldUnregister - ? {} - : cloneObject(_defaultValues); - let _state = { - action: false, - mount: false, - watch: false, - }; - let _names = { - mount: new Set(), - unMount: new Set(), - array: new Set(), - watch: new Set(), - }; - let delayErrorCallback; - let timer = 0; - const _proxyFormState = { - isDirty: false, - dirtyFields: false, - touchedFields: false, - isValidating: false, - isValid: false, - errors: false, - }; - const _subjects = { - values: createSubject(), - array: createSubject(), - state: createSubject(), - }; - const shouldCaptureDirtyFields = props.resetOptions && props.resetOptions.keepDirtyValues; - const validationModeBeforeSubmit = getValidationModes(_options.mode); - const validationModeAfterSubmit = getValidationModes(_options.reValidateMode); - const shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all; - const debounce = (callback) => (wait) => { - clearTimeout(timer); - timer = setTimeout(callback, wait); - }; - const _updateValid = async (shouldUpdateValid) => { - if (_proxyFormState.isValid || shouldUpdateValid) { - const isValid = _options.resolver - ? isEmptyObject((await _executeSchema()).errors) - : await executeBuiltInValidation(_fields, true); - if (isValid !== _formState.isValid) { - _subjects.state.next({ - isValid, - }); - } - } - }; - const _updateIsValidating = (value) => _proxyFormState.isValidating && - _subjects.state.next({ - isValidating: value, - }); - const _updateFieldArray = (name, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => { - if (args && method) { - _state.action = true; - if (shouldUpdateFieldsAndState && Array.isArray(get(_fields, name))) { - const fieldValues = method(get(_fields, name), args.argA, args.argB); - shouldSetValues && set(_fields, name, fieldValues); - } - if (shouldUpdateFieldsAndState && - Array.isArray(get(_formState.errors, name))) { - const errors = method(get(_formState.errors, name), args.argA, args.argB); - shouldSetValues && set(_formState.errors, name, errors); - unsetEmptyArray(_formState.errors, name); - } - if (_proxyFormState.touchedFields && - shouldUpdateFieldsAndState && - Array.isArray(get(_formState.touchedFields, name))) { - const touchedFields = method(get(_formState.touchedFields, name), args.argA, args.argB); - shouldSetValues && set(_formState.touchedFields, name, touchedFields); - } - if (_proxyFormState.dirtyFields) { - _formState.dirtyFields = getDirtyFields(_defaultValues, _formValues); - } - _subjects.state.next({ - name, - isDirty: _getDirty(name, values), - dirtyFields: _formState.dirtyFields, - errors: _formState.errors, - isValid: _formState.isValid, - }); - } - else { - set(_formValues, name, values); - } - }; - const updateErrors = (name, error) => { - set(_formState.errors, name, error); - _subjects.state.next({ - errors: _formState.errors, - }); - }; - const updateValidAndValue = (name, shouldSkipSetValueAs, value, ref) => { - const field = get(_fields, name); - if (field) { - const defaultValue = get(_formValues, name, isUndefined(value) ? get(_defaultValues, name) : value); - isUndefined(defaultValue) || - (ref && ref.defaultChecked) || - shouldSkipSetValueAs - ? set(_formValues, name, shouldSkipSetValueAs ? defaultValue : getFieldValue(field._f)) - : setFieldValue(name, defaultValue); - _state.mount && _updateValid(); - } - }; - const updateTouchAndDirty = (name, fieldValue, isBlurEvent, shouldDirty, shouldRender) => { - let shouldUpdateField = false; - let isPreviousDirty = false; - const output = { - name, - }; - if (!isBlurEvent || shouldDirty) { - if (_proxyFormState.isDirty) { - isPreviousDirty = _formState.isDirty; - _formState.isDirty = output.isDirty = _getDirty(); - shouldUpdateField = isPreviousDirty !== output.isDirty; - } - const isCurrentFieldPristine = deepEqual(get(_defaultValues, name), fieldValue); - isPreviousDirty = get(_formState.dirtyFields, name); - isCurrentFieldPristine - ? unset(_formState.dirtyFields, name) - : set(_formState.dirtyFields, name, true); - output.dirtyFields = _formState.dirtyFields; - shouldUpdateField = - shouldUpdateField || - (_proxyFormState.dirtyFields && - isPreviousDirty !== !isCurrentFieldPristine); - } - if (isBlurEvent) { - const isPreviousFieldTouched = get(_formState.touchedFields, name); - if (!isPreviousFieldTouched) { - set(_formState.touchedFields, name, isBlurEvent); - output.touchedFields = _formState.touchedFields; - shouldUpdateField = - shouldUpdateField || - (_proxyFormState.touchedFields && - isPreviousFieldTouched !== isBlurEvent); - } - } - shouldUpdateField && shouldRender && _subjects.state.next(output); - return shouldUpdateField ? output : {}; - }; - const shouldRenderByError = (name, isValid, error, fieldState) => { - const previousFieldError = get(_formState.errors, name); - const shouldUpdateValid = _proxyFormState.isValid && - isBoolean(isValid) && - _formState.isValid !== isValid; - if (props.delayError && error) { - delayErrorCallback = debounce(() => updateErrors(name, error)); - delayErrorCallback(props.delayError); - } - else { - clearTimeout(timer); - delayErrorCallback = null; - error - ? set(_formState.errors, name, error) - : unset(_formState.errors, name); - } - if ((error ? !deepEqual(previousFieldError, error) : previousFieldError) || - !isEmptyObject(fieldState) || - shouldUpdateValid) { - const updatedFormState = { - ...fieldState, - ...(shouldUpdateValid && isBoolean(isValid) ? { isValid } : {}), - errors: _formState.errors, - name, - }; - _formState = { - ..._formState, - ...updatedFormState, - }; - _subjects.state.next(updatedFormState); - } - _updateIsValidating(false); - }; - const _executeSchema = async (name) => _options.resolver(_formValues, _options.context, getResolverOptions(name || _names.mount, _fields, _options.criteriaMode, _options.shouldUseNativeValidation)); - const executeSchemaAndUpdateState = async (names) => { - const { errors } = await _executeSchema(); - if (names) { - for (const name of names) { - const error = get(errors, name); - error - ? set(_formState.errors, name, error) - : unset(_formState.errors, name); - } - } - else { - _formState.errors = errors; - } - return errors; - }; - const executeBuiltInValidation = async (fields, shouldOnlyCheckValid, context = { - valid: true, - }) => { - for (const name in fields) { - const field = fields[name]; - if (field) { - const { _f, ...fieldValue } = field; - if (_f) { - const isFieldArrayRoot = _names.array.has(_f.name); - const fieldError = await validateField(field, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !shouldOnlyCheckValid, isFieldArrayRoot); - if (fieldError[_f.name]) { - context.valid = false; - if (shouldOnlyCheckValid) { - break; - } - } - !shouldOnlyCheckValid && - (get(fieldError, _f.name) - ? isFieldArrayRoot - ? updateFieldArrayRootError(_formState.errors, fieldError, _f.name) - : set(_formState.errors, _f.name, fieldError[_f.name]) - : unset(_formState.errors, _f.name)); - } - fieldValue && - (await executeBuiltInValidation(fieldValue, shouldOnlyCheckValid, context)); - } - } - return context.valid; - }; - const _removeUnmounted = () => { - for (const name of _names.unMount) { - const field = get(_fields, name); - field && - (field._f.refs - ? field._f.refs.every((ref) => !live(ref)) - : !live(field._f.ref)) && - unregister(name); - } - _names.unMount = new Set(); - }; - const _getDirty = (name, data) => (name && data && set(_formValues, name, data), - !deepEqual(getValues(), _defaultValues)); - const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, { - ...(_state.mount - ? _formValues - : isUndefined(defaultValue) - ? _defaultValues - : isString(names) - ? { [names]: defaultValue } - : defaultValue), - }, isGlobal, defaultValue); - const _getFieldArray = (name) => compact(get(_state.mount ? _formValues : _defaultValues, name, props.shouldUnregister ? get(_defaultValues, name, []) : [])); - const setFieldValue = (name, value, options = {}) => { - const field = get(_fields, name); - let fieldValue = value; - if (field) { - const fieldReference = field._f; - if (fieldReference) { - !fieldReference.disabled && - set(_formValues, name, getFieldValueAs(value, fieldReference)); - fieldValue = - isHTMLElement(fieldReference.ref) && isNullOrUndefined(value) - ? '' - : value; - if (isMultipleSelect(fieldReference.ref)) { - [...fieldReference.ref.options].forEach((optionRef) => (optionRef.selected = fieldValue.includes(optionRef.value))); - } - else if (fieldReference.refs) { - if (isCheckBoxInput(fieldReference.ref)) { - fieldReference.refs.length > 1 - ? fieldReference.refs.forEach((checkboxRef) => (!checkboxRef.defaultChecked || !checkboxRef.disabled) && - (checkboxRef.checked = Array.isArray(fieldValue) - ? !!fieldValue.find((data) => data === checkboxRef.value) - : fieldValue === checkboxRef.value)) - : fieldReference.refs[0] && - (fieldReference.refs[0].checked = !!fieldValue); - } - else { - fieldReference.refs.forEach((radioRef) => (radioRef.checked = radioRef.value === fieldValue)); - } - } - else if (isFileInput(fieldReference.ref)) { - fieldReference.ref.value = ''; - } - else { - fieldReference.ref.value = fieldValue; - if (!fieldReference.ref.type) { - _subjects.values.next({ - name, - values: { ..._formValues }, - }); - } - } - } - } - (options.shouldDirty || options.shouldTouch) && - updateTouchAndDirty(name, fieldValue, options.shouldTouch, options.shouldDirty, true); - options.shouldValidate && trigger(name); - }; - const setValues = (name, value, options) => { - for (const fieldKey in value) { - const fieldValue = value[fieldKey]; - const fieldName = `${name}.${fieldKey}`; - const field = get(_fields, fieldName); - (_names.array.has(name) || - !isPrimitive(fieldValue) || - (field && !field._f)) && - !isDateObject(fieldValue) - ? setValues(fieldName, fieldValue, options) - : setFieldValue(fieldName, fieldValue, options); - } - }; - const setValue = (name, value, options = {}) => { - const field = get(_fields, name); - const isFieldArray = _names.array.has(name); - const cloneValue = cloneObject(value); - set(_formValues, name, cloneValue); - if (isFieldArray) { - _subjects.array.next({ - name, - values: { ..._formValues }, - }); - if ((_proxyFormState.isDirty || _proxyFormState.dirtyFields) && - options.shouldDirty) { - _subjects.state.next({ - name, - dirtyFields: getDirtyFields(_defaultValues, _formValues), - isDirty: _getDirty(name, cloneValue), - }); - } - } - else { - field && !field._f && !isNullOrUndefined(cloneValue) - ? setValues(name, cloneValue, options) - : setFieldValue(name, cloneValue, options); - } - isWatched(name, _names) && _subjects.state.next({ ..._formState }); - _subjects.values.next({ - name, - values: { ..._formValues }, - }); - !_state.mount && flushRootRender(); - }; - const onChange = async (event) => { - const target = event.target; - let name = target.name; - let isFieldValueUpdated = true; - const field = get(_fields, name); - const getCurrentFieldValue = () => target.type ? getFieldValue(field._f) : getEventValue(event); - if (field) { - let error; - let isValid; - const fieldValue = getCurrentFieldValue(); - const isBlurEvent = event.type === EVENTS.BLUR || event.type === EVENTS.FOCUS_OUT; - const shouldSkipValidation = (!hasValidation(field._f) && - !_options.resolver && - !get(_formState.errors, name) && - !field._f.deps) || - skipValidation(isBlurEvent, get(_formState.touchedFields, name), _formState.isSubmitted, validationModeAfterSubmit, validationModeBeforeSubmit); - const watched = isWatched(name, _names, isBlurEvent); - set(_formValues, name, fieldValue); - if (isBlurEvent) { - field._f.onBlur && field._f.onBlur(event); - delayErrorCallback && delayErrorCallback(0); - } - else if (field._f.onChange) { - field._f.onChange(event); - } - const fieldState = updateTouchAndDirty(name, fieldValue, isBlurEvent, false); - const shouldRender = !isEmptyObject(fieldState) || watched; - !isBlurEvent && - _subjects.values.next({ - name, - type: event.type, - values: { ..._formValues }, - }); - if (shouldSkipValidation) { - _proxyFormState.isValid && _updateValid(); - return (shouldRender && - _subjects.state.next({ name, ...(watched ? {} : fieldState) })); - } - !isBlurEvent && watched && _subjects.state.next({ ..._formState }); - _updateIsValidating(true); - if (_options.resolver) { - const { errors } = await _executeSchema([name]); - const previousErrorLookupResult = schemaErrorLookup(_formState.errors, _fields, name); - const errorLookupResult = schemaErrorLookup(errors, _fields, previousErrorLookupResult.name || name); - error = errorLookupResult.error; - name = errorLookupResult.name; - isValid = isEmptyObject(errors); - } - else { - error = (await validateField(field, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation))[name]; - isFieldValueUpdated = - isNaN(fieldValue) || - fieldValue === get(_formValues, name, fieldValue); - if (isFieldValueUpdated) { - if (error) { - isValid = false; - } - else if (_proxyFormState.isValid) { - isValid = await executeBuiltInValidation(_fields, true); - } - } - } - if (isFieldValueUpdated) { - field._f.deps && - trigger(field._f.deps); - shouldRenderByError(name, isValid, error, fieldState); - } - } - }; - const trigger = async (name, options = {}) => { - let isValid; - let validationResult; - const fieldNames = convertToArrayPayload(name); - _updateIsValidating(true); - if (_options.resolver) { - const errors = await executeSchemaAndUpdateState(isUndefined(name) ? name : fieldNames); - isValid = isEmptyObject(errors); - validationResult = name - ? !fieldNames.some((name) => get(errors, name)) - : isValid; - } - else if (name) { - validationResult = (await Promise.all(fieldNames.map(async (fieldName) => { - const field = get(_fields, fieldName); - return await executeBuiltInValidation(field && field._f ? { [fieldName]: field } : field); - }))).every(Boolean); - !(!validationResult && !_formState.isValid) && _updateValid(); - } - else { - validationResult = isValid = await executeBuiltInValidation(_fields); - } - _subjects.state.next({ - ...(!isString(name) || - (_proxyFormState.isValid && isValid !== _formState.isValid) - ? {} - : { name }), - ...(_options.resolver || !name ? { isValid } : {}), - errors: _formState.errors, - isValidating: false, - }); - options.shouldFocus && - !validationResult && - focusFieldBy(_fields, (key) => key && get(_formState.errors, key), name ? fieldNames : _names.mount); - return validationResult; - }; - const getValues = (fieldNames) => { - const values = { - ..._defaultValues, - ...(_state.mount ? _formValues : {}), - }; - return isUndefined(fieldNames) - ? values - : isString(fieldNames) - ? get(values, fieldNames) - : fieldNames.map((name) => get(values, name)); - }; - const getFieldState = (name, formState) => ({ - invalid: !!get((formState || _formState).errors, name), - isDirty: !!get((formState || _formState).dirtyFields, name), - isTouched: !!get((formState || _formState).touchedFields, name), - error: get((formState || _formState).errors, name), - }); - const clearErrors = (name) => { - name && - convertToArrayPayload(name).forEach((inputName) => unset(_formState.errors, inputName)); - _subjects.state.next({ - errors: name ? _formState.errors : {}, - }); - }; - const setError = (name, error, options) => { - const ref = (get(_fields, name, { _f: {} })._f || {}).ref; - set(_formState.errors, name, { - ...error, - ref, - }); - _subjects.state.next({ - name, - errors: _formState.errors, - isValid: false, - }); - options && options.shouldFocus && ref && ref.focus && ref.focus(); - }; - const watch = (name, defaultValue) => isFunction(name) - ? _subjects.values.subscribe({ - next: (payload) => name(_getWatch(undefined, defaultValue), payload), - }) - : _getWatch(name, defaultValue, true); - const unregister = (name, options = {}) => { - for (const fieldName of name ? convertToArrayPayload(name) : _names.mount) { - _names.mount.delete(fieldName); - _names.array.delete(fieldName); - if (!options.keepValue) { - unset(_fields, fieldName); - unset(_formValues, fieldName); - } - !options.keepError && unset(_formState.errors, fieldName); - !options.keepDirty && unset(_formState.dirtyFields, fieldName); - !options.keepTouched && unset(_formState.touchedFields, fieldName); - !_options.shouldUnregister && - !options.keepDefaultValue && - unset(_defaultValues, fieldName); - } - _subjects.values.next({ - values: { ..._formValues }, - }); - _subjects.state.next({ - ..._formState, - ...(!options.keepDirty ? {} : { isDirty: _getDirty() }), - }); - !options.keepIsValid && _updateValid(); - }; - const register = (name, options = {}) => { - let field = get(_fields, name); - const disabledIsDefined = isBoolean(options.disabled); - set(_fields, name, { - ...(field || {}), - _f: { - ...(field && field._f ? field._f : { ref: { name } }), - name, - mount: true, - ...options, - }, - }); - _names.mount.add(name); - field - ? disabledIsDefined && - set(_formValues, name, options.disabled - ? undefined - : get(_formValues, name, getFieldValue(field._f))) - : updateValidAndValue(name, true, options.value); - return { - ...(disabledIsDefined ? { disabled: options.disabled } : {}), - ...(_options.shouldUseNativeValidation - ? { - required: !!options.required, - min: getRuleValue(options.min), - max: getRuleValue(options.max), - minLength: getRuleValue(options.minLength), - maxLength: getRuleValue(options.maxLength), - pattern: getRuleValue(options.pattern), - } - : {}), - name, - onChange, - onBlur: onChange, - ref: (ref) => { - if (ref) { - register(name, options); - field = get(_fields, name); - const fieldRef = isUndefined(ref.value) - ? ref.querySelectorAll - ? ref.querySelectorAll('input,select,textarea')[0] || ref - : ref - : ref; - const radioOrCheckbox = isRadioOrCheckbox(fieldRef); - const refs = field._f.refs || []; - if (radioOrCheckbox - ? refs.find((option) => option === fieldRef) - : fieldRef === field._f.ref) { - return; - } - set(_fields, name, { - _f: { - ...field._f, - ...(radioOrCheckbox - ? { - refs: [ - ...refs.filter(live), - fieldRef, - ...(Array.isArray(get(_defaultValues, name)) ? [{}] : []), - ], - ref: { type: fieldRef.type, name }, - } - : { ref: fieldRef }), - }, - }); - updateValidAndValue(name, false, undefined, fieldRef); - } - else { - field = get(_fields, name, {}); - if (field._f) { - field._f.mount = false; - } - (_options.shouldUnregister || options.shouldUnregister) && - !(isNameInFieldArray(_names.array, name) && _state.action) && - _names.unMount.add(name); - } - }, - }; - }; - const _focusError = () => _options.shouldFocusError && - focusFieldBy(_fields, (key) => key && get(_formState.errors, key), _names.mount); - const handleSubmit = (onValid, onInvalid) => async (e) => { - if (e) { - e.preventDefault && e.preventDefault(); - e.persist && e.persist(); - } - let fieldValues = cloneObject(_formValues); - _subjects.state.next({ - isSubmitting: true, - }); - if (_options.resolver) { - const { errors, values } = await _executeSchema(); - _formState.errors = errors; - fieldValues = values; - } - else { - await executeBuiltInValidation(_fields); - } - unset(_formState.errors, 'root'); - if (isEmptyObject(_formState.errors)) { - _subjects.state.next({ - errors: {}, - }); - await onValid(fieldValues, e); - } - else { - if (onInvalid) { - await onInvalid({ ..._formState.errors }, e); - } - _focusError(); - setTimeout(_focusError); - } - _subjects.state.next({ - isSubmitted: true, - isSubmitting: false, - isSubmitSuccessful: isEmptyObject(_formState.errors), - submitCount: _formState.submitCount + 1, - errors: _formState.errors, - }); - }; - const resetField = (name, options = {}) => { - if (get(_fields, name)) { - if (isUndefined(options.defaultValue)) { - setValue(name, get(_defaultValues, name)); - } - else { - setValue(name, options.defaultValue); - set(_defaultValues, name, options.defaultValue); - } - if (!options.keepTouched) { - unset(_formState.touchedFields, name); - } - if (!options.keepDirty) { - unset(_formState.dirtyFields, name); - _formState.isDirty = options.defaultValue - ? _getDirty(name, get(_defaultValues, name)) - : _getDirty(); - } - if (!options.keepError) { - unset(_formState.errors, name); - _proxyFormState.isValid && _updateValid(); - } - _subjects.state.next({ ..._formState }); - } - }; - const _reset = (formValues, keepStateOptions = {}) => { - const updatedValues = formValues || _defaultValues; - const cloneUpdatedValues = cloneObject(updatedValues); - const values = formValues && !isEmptyObject(formValues) - ? cloneUpdatedValues - : _defaultValues; - if (!keepStateOptions.keepDefaultValues) { - _defaultValues = updatedValues; - } - if (!keepStateOptions.keepValues) { - if (keepStateOptions.keepDirtyValues || shouldCaptureDirtyFields) { - for (const fieldName of _names.mount) { - get(_formState.dirtyFields, fieldName) - ? set(values, fieldName, get(_formValues, fieldName)) - : setValue(fieldName, get(values, fieldName)); - } - } - else { - if (isWeb && isUndefined(formValues)) { - for (const name of _names.mount) { - const field = get(_fields, name); - if (field && field._f) { - const fieldReference = Array.isArray(field._f.refs) - ? field._f.refs[0] - : field._f.ref; - if (isHTMLElement(fieldReference)) { - const form = fieldReference.closest('form'); - if (form) { - form.reset(); - break; - } - } - } - } - } - _fields = {}; - } - _formValues = props.shouldUnregister - ? keepStateOptions.keepDefaultValues - ? cloneObject(_defaultValues) - : {} - : cloneUpdatedValues; - _subjects.array.next({ - values: { ...values }, - }); - _subjects.values.next({ - values: { ...values }, - }); - } - _names = { - mount: new Set(), - unMount: new Set(), - array: new Set(), - watch: new Set(), - watchAll: false, - focus: '', - }; - !_state.mount && flushRootRender(); - _state.mount = !_proxyFormState.isValid || !!keepStateOptions.keepIsValid; - _state.watch = !!props.shouldUnregister; - _subjects.state.next({ - submitCount: keepStateOptions.keepSubmitCount - ? _formState.submitCount - : 0, - isDirty: keepStateOptions.keepDirty - ? _formState.isDirty - : !!(keepStateOptions.keepDefaultValues && - !deepEqual(formValues, _defaultValues)), - isSubmitted: keepStateOptions.keepIsSubmitted - ? _formState.isSubmitted - : false, - dirtyFields: keepStateOptions.keepDirtyValues - ? _formState.dirtyFields - : keepStateOptions.keepDefaultValues && formValues - ? getDirtyFields(_defaultValues, formValues) - : {}, - touchedFields: keepStateOptions.keepTouched - ? _formState.touchedFields - : {}, - errors: keepStateOptions.keepErrors ? _formState.errors : {}, - isSubmitting: false, - isSubmitSuccessful: false, - }); - }; - const reset = (formValues, keepStateOptions) => _reset(isFunction(formValues) - ? formValues(_formValues) - : formValues, keepStateOptions); - const setFocus = (name, options = {}) => { - const field = get(_fields, name); - const fieldReference = field && field._f; - if (fieldReference) { - const fieldRef = fieldReference.refs - ? fieldReference.refs[0] - : fieldReference.ref; - if (fieldRef.focus) { - fieldRef.focus(); - options.shouldSelect && fieldRef.select(); - } - } - }; - const _updateFormState = (updatedFormState) => { - _formState = { - ..._formState, - ...updatedFormState, - }; - }; - const _resetDefaultValues = () => isFunction(_options.defaultValues) && - _options.defaultValues().then((values) => { - reset(values, _options.resetOptions); - _subjects.state.next({ - isLoading: false, - }); - }); - return { - control: { - register, - unregister, - getFieldState, - _executeSchema, - _getWatch, - _getDirty, - _updateValid, - _removeUnmounted, - _updateFieldArray, - _getFieldArray, - _reset, - _resetDefaultValues, - _updateFormState, - _subjects, - _proxyFormState, - get _fields() { - return _fields; - }, - get _formValues() { - return _formValues; - }, - get _state() { - return _state; - }, - set _state(value) { - _state = value; - }, - get _defaultValues() { - return _defaultValues; - }, - get _names() { - return _names; - }, - set _names(value) { - _names = value; - }, - get _formState() { - return _formState; - }, - set _formState(value) { - _formState = value; - }, - get _options() { - return _options; - }, - set _options(value) { - _options = { - ..._options, - ...value, - }; - }, - }, - trigger, - register, - handleSubmit, - watch, - setValue, - getValues, - reset, - resetField, - clearErrors, - unregister, - setError, - setFocus, - getFieldState, - }; -} - -/** - * Custom hook to manage the entire form. - * - * @remarks - * [API](https://react-hook-form.com/api/useform) • [Demo](https://codesandbox.io/s/react-hook-form-get-started-ts-5ksmm) • [Video](https://www.youtube.com/watch?v=RkXv4AXXC_4) - * - * @param props - form configuration and validation parameters. - * - * @returns methods - individual functions to manage the form state. {@link UseFormReturn} - * - * @example - * ```tsx - * function App() { - * const { register, handleSubmit, watch, formState: { errors } } = useForm(); - * const onSubmit = data => console.log(data); - * - * console.log(watch("example")); - * - * return ( - *
- * - * - * {errors.exampleRequired && This field is required} - * - *
- * ); - * } - * ``` - */ -function useForm(props = {}) { - const _formControl = react__WEBPACK_IMPORTED_MODULE_0__.useRef(); - const [formState, updateFormState] = react__WEBPACK_IMPORTED_MODULE_0__.useState({ - isDirty: false, - isValidating: false, - isLoading: isFunction(props.defaultValues), - isSubmitted: false, - isSubmitting: false, - isSubmitSuccessful: false, - isValid: false, - submitCount: 0, - dirtyFields: {}, - touchedFields: {}, - errors: {}, - defaultValues: isFunction(props.defaultValues) - ? undefined - : props.defaultValues, - }); - if (!_formControl.current) { - _formControl.current = { - ...createFormControl(props, () => updateFormState((formState) => ({ ...formState }))), - formState, - }; - } - const control = _formControl.current.control; - control._options = props; - useSubscribe({ - subject: control._subjects.state, - next: (value) => { - if (shouldRenderFormState(value, control._proxyFormState, control._updateFormState, true)) { - updateFormState({ ...control._formState }); - } - }, - }); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (props.values && !deepEqual(props.values, control._defaultValues)) { - control._reset(props.values, control._options.resetOptions); - } - else { - control._resetDefaultValues(); - } - }, [props.values, control]); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (!control._state.mount) { - control._updateValid(); - control._state.mount = true; - } - if (control._state.watch) { - control._state.watch = false; - control._subjects.state.next({ ...control._formState }); - } - control._removeUnmounted(); - }); - _formControl.current.formState = getProxyFormState(formState, control); - return _formControl.current; -} - - -//# sourceMappingURL=index.esm.mjs.map - - -/***/ }), - -/***/ "./node_modules/react-image-crop/dist/index.js": -/*!*****************************************************!*\ - !*** ./node_modules/react-image-crop/dist/index.js ***! - \*****************************************************/ -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Component: () => (/* binding */ X), -/* harmony export */ ReactCrop: () => (/* binding */ X), -/* harmony export */ areCropsEqual: () => (/* binding */ Y), -/* harmony export */ centerCrop: () => (/* binding */ I), -/* harmony export */ clamp: () => (/* binding */ v), -/* harmony export */ cls: () => (/* binding */ S), -/* harmony export */ containCrop: () => (/* binding */ P), -/* harmony export */ convertToPercentCrop: () => (/* binding */ D), -/* harmony export */ convertToPixelCrop: () => (/* binding */ y), -/* harmony export */ "default": () => (/* binding */ X), -/* harmony export */ defaultCrop: () => (/* binding */ M), -/* harmony export */ makeAspectCrop: () => (/* binding */ H), -/* harmony export */ nudgeCrop: () => (/* binding */ _) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); - -const M = { - x: 0, - y: 0, - width: 0, - height: 0, - unit: "px" -}, v = (o, e, t) => Math.min(Math.max(o, e), t), S = (...o) => o.filter((e) => e && typeof e == "string").join(" "), Y = (o, e) => o === e || o.width === e.width && o.height === e.height && o.x === e.x && o.y === e.y && o.unit === e.unit; -function H(o, e, t, h) { - const i = y(o, t, h); - return o.width && (i.height = i.width / e), o.height && (i.width = i.height * e), i.y + i.height > h && (i.height = h - i.y, i.width = i.height * e), i.x + i.width > t && (i.width = t - i.x, i.height = i.width / e), o.unit === "%" ? D(i, t, h) : i; -} -function I(o, e, t) { - const h = y(o, e, t); - return h.x = (e - h.width) / 2, h.y = (t - h.height) / 2, o.unit === "%" ? D(h, e, t) : h; -} -function D(o, e, t) { - return o.unit === "%" ? { ...M, ...o, unit: "%" } : { - unit: "%", - x: o.x ? o.x / e * 100 : 0, - y: o.y ? o.y / t * 100 : 0, - width: o.width ? o.width / e * 100 : 0, - height: o.height ? o.height / t * 100 : 0 - }; -} -function y(o, e, t) { - return o.unit ? o.unit === "px" ? { ...M, ...o, unit: "px" } : { - unit: "px", - x: o.x ? o.x * e / 100 : 0, - y: o.y ? o.y * t / 100 : 0, - width: o.width ? o.width * e / 100 : 0, - height: o.height ? o.height * t / 100 : 0 - } : { ...M, ...o, unit: "px" }; -} -function P(o, e, t, h, i, n = 0, s = 0, w = h, a = i) { - const r = { ...o }; - let c = Math.min(n, h), d = Math.min(s, i), g = Math.min(w, h), l = Math.min(a, i); - e && (e > 1 ? (c = s ? s * e : c, d = c / e, g = w * e) : (d = n ? n / e : d, c = d * e, l = a / e)), r.y < 0 && (r.height = Math.max(r.height + r.y, d), r.y = 0), r.x < 0 && (r.width = Math.max(r.width + r.x, c), r.x = 0); - const m = h - (r.x + r.width); - m < 0 && (r.x = Math.min(r.x, h - c), r.width += m); - const x = i - (r.y + r.height); - if (x < 0 && (r.y = Math.min(r.y, i - d), r.height += x), r.width < c && ((t === "sw" || t == "nw") && (r.x -= c - r.width), r.width = c), r.height < d && ((t === "nw" || t == "ne") && (r.y -= d - r.height), r.height = d), r.width > g && ((t === "sw" || t == "nw") && (r.x -= g - r.width), r.width = g), r.height > l && ((t === "nw" || t == "ne") && (r.y -= l - r.height), r.height = l), e) { - const b = r.width / r.height; - if (b < e) { - const C = Math.max(r.width / e, d); - (t === "nw" || t == "ne") && (r.y -= C - r.height), r.height = C; - } else if (b > e) { - const C = Math.max(r.height * e, c); - (t === "sw" || t == "nw") && (r.x -= C - r.width), r.width = C; - } - } - return r; -} -function _(o, e, t, h) { - const i = { ...o }; - return e === "ArrowLeft" ? h === "nw" ? (i.x -= t, i.y -= t, i.width += t, i.height += t) : h === "w" ? (i.x -= t, i.width += t) : h === "sw" ? (i.x -= t, i.width += t, i.height += t) : h === "ne" ? (i.y += t, i.width -= t, i.height -= t) : h === "e" ? i.width -= t : h === "se" && (i.width -= t, i.height -= t) : e === "ArrowRight" && (h === "nw" ? (i.x += t, i.y += t, i.width -= t, i.height -= t) : h === "w" ? (i.x += t, i.width -= t) : h === "sw" ? (i.x += t, i.width -= t, i.height -= t) : h === "ne" ? (i.y -= t, i.width += t, i.height += t) : h === "e" ? i.width += t : h === "se" && (i.width += t, i.height += t)), e === "ArrowUp" ? h === "nw" ? (i.x -= t, i.y -= t, i.width += t, i.height += t) : h === "n" ? (i.y -= t, i.height += t) : h === "ne" ? (i.y -= t, i.width += t, i.height += t) : h === "sw" ? (i.x += t, i.width -= t, i.height -= t) : h === "s" ? i.height -= t : h === "se" && (i.width -= t, i.height -= t) : e === "ArrowDown" && (h === "nw" ? (i.x += t, i.y += t, i.width -= t, i.height -= t) : h === "n" ? (i.y += t, i.height -= t) : h === "ne" ? (i.y += t, i.width -= t, i.height -= t) : h === "sw" ? (i.x -= t, i.width += t, i.height += t) : h === "s" ? i.height += t : h === "se" && (i.width += t, i.height += t)), i; -} -const f = { capture: !0, passive: !1 }; -let $ = 0; -const u = class u extends react__WEBPACK_IMPORTED_MODULE_0__.PureComponent { - constructor() { - super(...arguments), this.docMoveBound = !1, this.mouseDownOnCrop = !1, this.dragStarted = !1, this.evData = { - startClientX: 0, - startClientY: 0, - startCropX: 0, - startCropY: 0, - clientX: 0, - clientY: 0, - isResize: !0 - }, this.componentRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.createRef)(), this.mediaRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.createRef)(), this.initChangeCalled = !1, this.instanceId = `rc-${$++}`, this.state = { - cropIsActive: !1, - newCropIsBeingDrawn: !1 - }, this.onCropPointerDown = (e) => { - const { crop: t, disabled: h } = this.props, i = this.getBox(); - if (!t) - return; - const n = y(t, i.width, i.height); - if (h) - return; - e.cancelable && e.preventDefault(), this.bindDocMove(), this.componentRef.current.focus({ preventScroll: !0 }); - const s = e.target.dataset.ord, w = !!s; - let a = e.clientX, r = e.clientY, c = n.x, d = n.y; - if (s) { - const g = e.clientX - i.x, l = e.clientY - i.y; - let m = 0, x = 0; - s === "ne" || s == "e" ? (m = g - (n.x + n.width), x = l - n.y, c = n.x, d = n.y + n.height) : s === "se" || s === "s" ? (m = g - (n.x + n.width), x = l - (n.y + n.height), c = n.x, d = n.y) : s === "sw" || s == "w" ? (m = g - n.x, x = l - (n.y + n.height), c = n.x + n.width, d = n.y) : (s === "nw" || s == "n") && (m = g - n.x, x = l - n.y, c = n.x + n.width, d = n.y + n.height), a = c + i.x + m, r = d + i.y + x; - } - this.evData = { - startClientX: a, - startClientY: r, - startCropX: c, - startCropY: d, - clientX: e.clientX, - clientY: e.clientY, - isResize: w, - ord: s - }, this.mouseDownOnCrop = !0, this.setState({ cropIsActive: !0 }); - }, this.onComponentPointerDown = (e) => { - const { crop: t, disabled: h, locked: i, keepSelection: n, onChange: s } = this.props, w = this.getBox(); - if (h || i || n && t) - return; - e.cancelable && e.preventDefault(), this.bindDocMove(), this.componentRef.current.focus({ preventScroll: !0 }); - const a = e.clientX - w.x, r = e.clientY - w.y, c = { - unit: "px", - x: a, - y: r, - width: 0, - height: 0 - }; - this.evData = { - startClientX: e.clientX, - startClientY: e.clientY, - startCropX: a, - startCropY: r, - clientX: e.clientX, - clientY: e.clientY, - isResize: !0 - }, this.mouseDownOnCrop = !0, s(y(c, w.width, w.height), D(c, w.width, w.height)), this.setState({ cropIsActive: !0, newCropIsBeingDrawn: !0 }); - }, this.onDocPointerMove = (e) => { - const { crop: t, disabled: h, onChange: i, onDragStart: n } = this.props, s = this.getBox(); - if (h || !t || !this.mouseDownOnCrop) - return; - e.cancelable && e.preventDefault(), this.dragStarted || (this.dragStarted = !0, n && n(e)); - const { evData: w } = this; - w.clientX = e.clientX, w.clientY = e.clientY; - let a; - w.isResize ? a = this.resizeCrop() : a = this.dragCrop(), Y(t, a) || i( - y(a, s.width, s.height), - D(a, s.width, s.height) - ); - }, this.onComponentKeyDown = (e) => { - const { crop: t, disabled: h, onChange: i, onComplete: n } = this.props; - if (h) - return; - const s = e.key; - let w = !1; - if (!t) - return; - const a = this.getBox(), r = this.makePixelCrop(a), d = (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey) ? u.nudgeStepLarge : e.shiftKey ? u.nudgeStepMedium : u.nudgeStep; - if (s === "ArrowLeft" ? (r.x -= d, w = !0) : s === "ArrowRight" ? (r.x += d, w = !0) : s === "ArrowUp" ? (r.y -= d, w = !0) : s === "ArrowDown" && (r.y += d, w = !0), w) { - e.cancelable && e.preventDefault(), r.x = v(r.x, 0, a.width - r.width), r.y = v(r.y, 0, a.height - r.height); - const g = y(r, a.width, a.height), l = D(r, a.width, a.height); - i(g, l), n && n(g, l); - } - }, this.onHandlerKeyDown = (e, t) => { - const { - aspect: h = 0, - crop: i, - disabled: n, - minWidth: s = 0, - minHeight: w = 0, - maxWidth: a, - maxHeight: r, - onChange: c, - onComplete: d - } = this.props, g = this.getBox(); - if (n || !i) - return; - if (e.key === "ArrowUp" || e.key === "ArrowDown" || e.key === "ArrowLeft" || e.key === "ArrowRight") - e.stopPropagation(), e.preventDefault(); - else - return; - const m = (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey) ? u.nudgeStepLarge : e.shiftKey ? u.nudgeStepMedium : u.nudgeStep, x = y(i, g.width, g.height), b = _(x, e.key, m, t), C = P( - b, - h, - t, - g.width, - g.height, - s, - w, - a, - r - ); - if (!Y(i, C)) { - const R = D(C, g.width, g.height); - c(C, R), d && d(C, R); - } - }, this.onDocPointerDone = (e) => { - const { crop: t, disabled: h, onComplete: i, onDragEnd: n } = this.props, s = this.getBox(); - this.unbindDocMove(), !(h || !t) && this.mouseDownOnCrop && (this.mouseDownOnCrop = !1, this.dragStarted = !1, n && n(e), i && i(y(t, s.width, s.height), D(t, s.width, s.height)), this.setState({ cropIsActive: !1, newCropIsBeingDrawn: !1 })); - }, this.onDragFocus = () => { - var e; - (e = this.componentRef.current) == null || e.scrollTo(0, 0); - }; - } - get document() { - return document; - } - // We unfortunately get the bounding box every time as x+y changes - // due to scrolling. - getBox() { - const e = this.mediaRef.current; - if (!e) - return { x: 0, y: 0, width: 0, height: 0 }; - const { x: t, y: h, width: i, height: n } = e.getBoundingClientRect(); - return { x: t, y: h, width: i, height: n }; - } - componentDidUpdate(e) { - const { crop: t, onComplete: h } = this.props; - if (h && !e.crop && t) { - const { width: i, height: n } = this.getBox(); - i && n && h(y(t, i, n), D(t, i, n)); - } - } - componentWillUnmount() { - this.resizeObserver && this.resizeObserver.disconnect(), this.unbindDocMove(); - } - bindDocMove() { - this.docMoveBound || (this.document.addEventListener("pointermove", this.onDocPointerMove, f), this.document.addEventListener("pointerup", this.onDocPointerDone, f), this.document.addEventListener("pointercancel", this.onDocPointerDone, f), this.docMoveBound = !0); - } - unbindDocMove() { - this.docMoveBound && (this.document.removeEventListener("pointermove", this.onDocPointerMove, f), this.document.removeEventListener("pointerup", this.onDocPointerDone, f), this.document.removeEventListener("pointercancel", this.onDocPointerDone, f), this.docMoveBound = !1); - } - getCropStyle() { - const { crop: e } = this.props; - if (e) - return { - top: `${e.y}${e.unit}`, - left: `${e.x}${e.unit}`, - width: `${e.width}${e.unit}`, - height: `${e.height}${e.unit}` - }; - } - dragCrop() { - const { evData: e } = this, t = this.getBox(), h = this.makePixelCrop(t), i = e.clientX - e.startClientX, n = e.clientY - e.startClientY; - return h.x = v(e.startCropX + i, 0, t.width - h.width), h.y = v(e.startCropY + n, 0, t.height - h.height), h; - } - getPointRegion(e, t, h, i) { - const { evData: n } = this, s = n.clientX - e.x, w = n.clientY - e.y; - let a; - i && t ? a = t === "nw" || t === "n" || t === "ne" : a = w < n.startCropY; - let r; - return h && t ? r = t === "nw" || t === "w" || t === "sw" : r = s < n.startCropX, r ? a ? "nw" : "sw" : a ? "ne" : "se"; - } - resolveMinDimensions(e, t, h = 0, i = 0) { - const n = Math.min(h, e.width), s = Math.min(i, e.height); - return !t || !n && !s ? [n, s] : t > 1 ? n ? [n, n / t] : [s * t, s] : s ? [s * t, s] : [n, n / t]; - } - resizeCrop() { - const { evData: e } = this, { aspect: t = 0, maxWidth: h, maxHeight: i } = this.props, n = this.getBox(), [s, w] = this.resolveMinDimensions(n, t, this.props.minWidth, this.props.minHeight); - let a = this.makePixelCrop(n); - const r = this.getPointRegion(n, e.ord, s, w), c = e.ord || r; - let d = e.clientX - e.startClientX, g = e.clientY - e.startClientY; - (s && c === "nw" || c === "w" || c === "sw") && (d = Math.min(d, -s)), (w && c === "nw" || c === "n" || c === "ne") && (g = Math.min(g, -w)); - const l = { - unit: "px", - x: 0, - y: 0, - width: 0, - height: 0 - }; - r === "ne" ? (l.x = e.startCropX, l.width = d, t ? (l.height = l.width / t, l.y = e.startCropY - l.height) : (l.height = Math.abs(g), l.y = e.startCropY - l.height)) : r === "se" ? (l.x = e.startCropX, l.y = e.startCropY, l.width = d, t ? l.height = l.width / t : l.height = g) : r === "sw" ? (l.x = e.startCropX + d, l.y = e.startCropY, l.width = Math.abs(d), t ? l.height = l.width / t : l.height = g) : r === "nw" && (l.x = e.startCropX + d, l.width = Math.abs(d), t ? (l.height = l.width / t, l.y = e.startCropY - l.height) : (l.height = Math.abs(g), l.y = e.startCropY + g)); - const m = P( - l, - t, - r, - n.width, - n.height, - s, - w, - h, - i - ); - return t || u.xyOrds.indexOf(c) > -1 ? a = m : u.xOrds.indexOf(c) > -1 ? (a.x = m.x, a.width = m.width) : u.yOrds.indexOf(c) > -1 && (a.y = m.y, a.height = m.height), a.x = v(a.x, 0, n.width - a.width), a.y = v(a.y, 0, n.height - a.height), a; - } - renderCropSelection() { - const { - ariaLabels: e = u.defaultProps.ariaLabels, - disabled: t, - locked: h, - renderSelectionAddon: i, - ruleOfThirds: n, - crop: s - } = this.props, w = this.getCropStyle(); - if (s) - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement( - "div", - { - style: w, - className: "ReactCrop__crop-selection", - onPointerDown: this.onCropPointerDown, - "aria-label": e.cropArea, - tabIndex: 0, - onKeyDown: this.onComponentKeyDown, - role: "group" - }, - !t && !h && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "ReactCrop__drag-elements", onFocus: this.onDragFocus }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "ReactCrop__drag-bar ord-n", "data-ord": "n" }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "ReactCrop__drag-bar ord-e", "data-ord": "e" }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "ReactCrop__drag-bar ord-s", "data-ord": "s" }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "ReactCrop__drag-bar ord-w", "data-ord": "w" }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement( - "div", - { - className: "ReactCrop__drag-handle ord-nw", - "data-ord": "nw", - tabIndex: 0, - "aria-label": e.nwDragHandle, - onKeyDown: (a) => this.onHandlerKeyDown(a, "nw"), - role: "button" - } - ), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement( - "div", - { - className: "ReactCrop__drag-handle ord-n", - "data-ord": "n", - tabIndex: 0, - "aria-label": e.nDragHandle, - onKeyDown: (a) => this.onHandlerKeyDown(a, "n"), - role: "button" - } - ), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement( - "div", - { - className: "ReactCrop__drag-handle ord-ne", - "data-ord": "ne", - tabIndex: 0, - "aria-label": e.neDragHandle, - onKeyDown: (a) => this.onHandlerKeyDown(a, "ne"), - role: "button" - } - ), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement( - "div", - { - className: "ReactCrop__drag-handle ord-e", - "data-ord": "e", - tabIndex: 0, - "aria-label": e.eDragHandle, - onKeyDown: (a) => this.onHandlerKeyDown(a, "e"), - role: "button" - } - ), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement( - "div", - { - className: "ReactCrop__drag-handle ord-se", - "data-ord": "se", - tabIndex: 0, - "aria-label": e.seDragHandle, - onKeyDown: (a) => this.onHandlerKeyDown(a, "se"), - role: "button" - } - ), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement( - "div", - { - className: "ReactCrop__drag-handle ord-s", - "data-ord": "s", - tabIndex: 0, - "aria-label": e.sDragHandle, - onKeyDown: (a) => this.onHandlerKeyDown(a, "s"), - role: "button" - } - ), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement( - "div", - { - className: "ReactCrop__drag-handle ord-sw", - "data-ord": "sw", - tabIndex: 0, - "aria-label": e.swDragHandle, - onKeyDown: (a) => this.onHandlerKeyDown(a, "sw"), - role: "button" - } - ), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement( - "div", - { - className: "ReactCrop__drag-handle ord-w", - "data-ord": "w", - tabIndex: 0, - "aria-label": e.wDragHandle, - onKeyDown: (a) => this.onHandlerKeyDown(a, "w"), - role: "button" - } - )), - i && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "ReactCrop__selection-addon", onPointerDown: (a) => a.stopPropagation() }, i(this.state)), - n && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "ReactCrop__rule-of-thirds-hz" }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "ReactCrop__rule-of-thirds-vt" })) - ); - } - makePixelCrop(e) { - const t = { ...M, ...this.props.crop || {} }; - return y(t, e.width, e.height); - } - render() { - const { aspect: e, children: t, circularCrop: h, className: i, crop: n, disabled: s, locked: w, style: a, ruleOfThirds: r } = this.props, { cropIsActive: c, newCropIsBeingDrawn: d } = this.state, g = n ? this.renderCropSelection() : null, l = S( - "ReactCrop", - i, - c && "ReactCrop--active", - s && "ReactCrop--disabled", - w && "ReactCrop--locked", - d && "ReactCrop--new-crop", - n && e && "ReactCrop--fixed-aspect", - n && h && "ReactCrop--circular-crop", - n && r && "ReactCrop--rule-of-thirds", - !this.dragStarted && n && !n.width && !n.height && "ReactCrop--invisible-crop", - h && "ReactCrop--no-animate" - ); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { ref: this.componentRef, className: l, style: a }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { ref: this.mediaRef, className: "ReactCrop__child-wrapper", onPointerDown: this.onComponentPointerDown }, t), n ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", { className: "ReactCrop__crop-mask", width: "100%", height: "100%" }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("defs", null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("mask", { id: `hole-${this.instanceId}` }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("rect", { width: "100%", height: "100%", fill: "white" }), h ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement( - "ellipse", - { - cx: `${n.x + n.width / 2}${n.unit}`, - cy: `${n.y + n.height / 2}${n.unit}`, - rx: `${n.width / 2}${n.unit}`, - ry: `${n.height / 2}${n.unit}`, - fill: "black" - } - ) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement( - "rect", - { - x: `${n.x}${n.unit}`, - y: `${n.y}${n.unit}`, - width: `${n.width}${n.unit}`, - height: `${n.height}${n.unit}`, - fill: "black" - } - ))), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("rect", { fill: "black", fillOpacity: 0.5, width: "100%", height: "100%", mask: `url(#hole-${this.instanceId})` })) : void 0, g); - } -}; -u.xOrds = ["e", "w"], u.yOrds = ["n", "s"], u.xyOrds = ["nw", "ne", "se", "sw"], u.nudgeStep = 1, u.nudgeStepMedium = 10, u.nudgeStepLarge = 100, u.defaultProps = { - ariaLabels: { - cropArea: "Use the arrow keys to move the crop selection area", - nwDragHandle: "Use the arrow keys to move the north west drag handle to change the crop selection area", - nDragHandle: "Use the up and down arrow keys to move the north drag handle to change the crop selection area", - neDragHandle: "Use the arrow keys to move the north east drag handle to change the crop selection area", - eDragHandle: "Use the up and down arrow keys to move the east drag handle to change the crop selection area", - seDragHandle: "Use the arrow keys to move the south east drag handle to change the crop selection area", - sDragHandle: "Use the up and down arrow keys to move the south drag handle to change the crop selection area", - swDragHandle: "Use the arrow keys to move the south west drag handle to change the crop selection area", - wDragHandle: "Use the up and down arrow keys to move the west drag handle to change the crop selection area" - } -}; -let X = u; - - - -/***/ }), - -/***/ "./src/blocks/photo-block/block.json": -/*!*******************************************!*\ - !*** ./src/blocks/photo-block/block.json ***! - \*******************************************/ -/***/ ((module) => { - -"use strict"; -module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","title":"Photo Block - A Powerful Image Block","apiVersion":2,"name":"dlxplugins/photo-block","category":"media","icon":"","description":"An easy-to-use and comprehensive image block.","keywords":["photo","block","image","picture","photos"],"version":"1.0.0","textdomain":"photo-block","usesContext":["postType","postId","queryId","query"],"providesContext":{"photo-block/uniqueId":"uniqueId","photo-block/photoMode":"photoMode","photo-block/dataSource":"dataSource","photo-block/dataImageSource":"dataImageSource","photo-block/dataImageSourceCustomField":"dataImageSourceCustomField","photo-block/dataImageSourceAuthorMeta":"dataImageSourceAuthorMeta","photo-block/dataHasFallbackImage":"dataHasFallbackImage","photo-block/dataFallbackImageSize":"dataFallbackImageSize","photo-block/dataFallbackImage":"dataFallbackImage","photo-block/dataPostType":"dataPostType","photo-block/dataPostId":"dataPostId","photo-block/imageSize":"imageSize","photo-block/globalStyle":"globalStyle"},"attributes":{"preview":{"type":"boolean","default":false},"uniqueId":{"type":"string","default":null},"date":{"type":"string","default":""},"globalStyle":{"type":"string","default":"none"},"defaultsApplied":{"type":"boolean","default":false},"imageData":{"type":"object","default":{"id":0,"url":"","alt":"","full":"","width":"","height":"","attachment_link":"","title":"","caption":""}},"photoOpacity":{"type":"number","default":100},"photoBlur":{"type":"number","default":0},"photoObjectFit":{"type":"string","default":"inherit"},"photoObjectPosition":{"type":"string","default":"none"},"photoObjectPositionCustom":{"type":"string","default":""},"photoDropShadow":{"type":"object","default":{"color":"#000000","opacity":1,"blur":0,"spread":0,"horizontal":0,"vertical":0,"inset":false,"enabled":false}},"photoBackgroundColor":{"type":"string","default":"#FFFFFF00"},"photoMaximumWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"100","unit":"%"}}},"containerWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerHeight":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMinWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMaxWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMinHeight":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMaxHeight":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"photoMode":{"type":"string","default":"none"},"cssGramFilter":{"type":"string","default":"none"},"aspectRatio":{"type":"string","default":"original"},"aspectRatioUnit":{"type":"string","default":"ratio"},"aspectRatioWidthPixels":{"type":"string","default":"1280"},"aspectRatioHeightPixels":{"type":"string","default":"720"},"aspectRatioWidth":{"type":"string","default":"16"},"aspectRatioHeight":{"type":"string","default":"9"},"dataHasFallbackImage":{"type":"boolean","default":false},"dataFallbackImageSize":{"type":"string","default":"large"},"dataFallbackImage":{"type":"object","default":{"id":"","url":"","alt":"","full":"","attachment_link":""}},"mediaLinkType":{"type":"string","default":"none"},"mediaLinkOverride":{"type":"boolean","default":false},"mediaLinkRel":{"type":"string","default":""},"mediaLinkAnchorId":{"type":"string","default":""},"mediaLinkUrl":{"type":"string","default":""},"mediaLinkClass":{"type":"string","default":""},"mediaLinkTitle":{"type":"string","default":""},"mediaLinkNewTab":{"type":"boolean","default":false},"dataMediaLinkRel":{"type":"string","default":""},"dataMediaLinkUrl":{"type":"string","default":""},"dataMediaLinkClass":{"type":"string","default":""},"dataMediaLinkNewTab":{"type":"boolean","default":false},"mediaLibraryAspectRatio":{"type":"string","default":"16:9"},"mediaLibrarySuggestedWidth":{"type":"string","default":"1280"},"mediaLibrarySuggestedHeight":{"type":"string","default":"720"},"align":{"type":"string","default":"center"},"imageSize":{"type":"string","default":"large"},"imageSizeOverride":{"type":"boolean","default":false},"altText":{"type":"string","default":""},"hasCaption":{"type":"boolean","default":false},"captionPosition":{"type":"string","default":"bottom"},"overlayText":{"type":"string","default":""},"overlayTextPosition":{"type":"string","default":""},"photoPaddingSize":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"tablet":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"desktop":{"top":"0","right":"0","bottom":"0","left":"0","topUnit":"px","rightUnit":"px","bottomUnit":"px","leftUnit":"px","unitSync":true}}},"photoMarginSize":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"tablet":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"desktop":{"top":"0","right":"0","bottom":"0","left":"0","topUnit":"px","rightUnit":"px","bottomUnit":"px","leftUnit":"px","unitSync":true}}},"photoBorder":{"type":"object","default":{"mobile":{"top":{"width":"","unit":null,"color":"","borderStyle":""},"right":{"width":"","unit":null,"color":"","borderStyle":""},"bottom":{"width":"","unit":null,"color":"","borderStyle":""},"left":{"width":"","unit":null,"color":"","borderStyle":""},"unitSync":true},"tablet":{"top":{"width":"","unit":null,"color":"","borderStyle":""},"right":{"width":"","unit":null,"color":"","borderStyle":""},"bottom":{"width":"","unit":null,"color":"","borderStyle":""},"left":{"width":"","unit":null,"color":"","borderStyle":""},"unitSync":true},"desktop":{"top":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"right":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"bottom":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"left":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"unitSync":true}}},"photoBorderRadius":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"tablet":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"desktop":{"top":"0","right":"0","bottom":"0","left":"0","topUnit":"px","rightUnit":"px","bottomUnit":"px","leftUnit":"px","unitSync":true}}},"hideOnMobile":{"type":"boolean","default":false},"hideOnTablet":{"type":"boolean","default":false},"hideOnDesktop":{"type":"boolean","default":false},"customAttributes":{"type":"array","default":[]},"skipLazyLoading":{"type":"boolean","default":false},"lightboxEnabled":{"type":"boolean","default":false},"lightboxShowCaption":{"type":"boolean","default":false},"lightboxCaption":{"type":"string","default":""},"imageProtectionEnabled":{"type":"boolean","default":false},"htmlAnchor":{"type":"string","default":""},"figureCSSClasses":{"type":"string","default":""},"imageCSSClasses":{"type":"string","default":""}},"supports":{"anchor":false,"align":false,"className":true,"customClassName":false,"alignWide":false,"defaultStylePicker":false,"html":false},"example":{"attributes":{"preview":true}},"editorScript":"dlx-photo-block-editor","editorStyle":"dlx-photo-block-editor-css","style":"dlx-photo-block-frontend-and-editor"}'); - -/***/ }), - -/***/ "./src/blocks/photo-caption-block/block.json": -/*!***************************************************!*\ - !*** ./src/blocks/photo-caption-block/block.json ***! - \***************************************************/ -/***/ ((module) => { - -"use strict"; -module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","title":"Caption Block","apiVersion":3,"name":"dlxplugins/photo-caption-block","parent":["dlxplugins/photo-block"],"category":"common","description":"A caption for a photo block.","keywords":["photo","block","image","picture","photos","caption","credit"],"version":"1.0.0","textdomain":"photo-block","usesContext":["postType","postId","queryId","query","photo-block/photoMode","photo-block/dataSource","photo-block/dataImageSource","photo-block/dataImageSourceCustomField","photo-block/dataImageSourceAuthorMeta","photo-block/dataHasFallbackImage","photo-block/dataFallbackImageSize","photo-block/dataFallbackImage","photo-block/dataPostType","photo-block/dataPostId","photo-block/imageSize","photo-block/uniqueId","photo-block/globalStyle"],"attributes":{"date":{"type":"string","default":""},"globalStyle":{"type":"string","default":""},"photoMode":{"type":"string","default":""},"uniqueId":{"type":"string","default":""},"captionManual":{"type":"string","default":""},"mode":{"type":"string","default":"single"},"enableSmartStyles":{"type":"boolean","default":true},"captionBaseFontSize":{"type":"object","default":{"mobile":{"value":"14","unit":"px"},"tablet":{"value":"14","unit":"px"},"desktop":{"value":"16","unit":"px"}}},"captionPosition":{"type":"string","default":"bottom"},"captionAlign":{"type":"string","default":"center"},"captionBackgroundColor":{"type":"string","default":"transparent"},"captionBackgroundColorOpacity":{"type":"number","default":1},"captionTextColor":{"type":"string","default":"#333"},"captionAccentColor":{"type":"string","default":"#e17713"},"captionSecondaryColor":{"type":"string","default":"#FFFFFF"},"captionLinkColor":{"type":"string","default":"#e17713"},"captionLinkHoverColor":{"type":"string","default":"#f58f2f"},"captionTextFontFamily":{"type":"string","default":"Arial"},"captionHeadingsFontFamily":{"type":"string","default":"Arial"},"captionTypography":{"type":"object","default":{"mobile":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontFallback":"","fontType":"web"},"tablet":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontFallback":"","fontType":"web"},"desktop":{"fontFamily":"Arial","fontFamilySlug":"arial","fontSize":"18","fontSizeUnit":"px","fontWeight":"normal","lineHeight":"1.2","lineHeightUnit":"em","textTransform":"none","letterSpacing":"0","letterSpacingUnit":"px","fontFallback":"serif","fontType":"web"}}},"captionCustomTypography":{"type":"string","default":""},"captionPaddingSize":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"tablet":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"desktop":{"top":"15","right":"20","bottom":"15","left":"20","topUnit":"px","rightUnit":"px","bottomUnit":"px","leftUnit":"px","unitSync":false}}},"captionMarginSize":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"tablet":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"desktop":{"top":"0","right":"0","bottom":"0","left":"0","topUnit":"px","rightUnit":"px","bottomUnit":"px","leftUnit":"px","unitSync":true}}},"captionBorder":{"type":"object","default":{"mobile":{"top":{"width":"","unit":null,"color":"","borderStyle":""},"right":{"width":"","unit":null,"color":"","borderStyle":""},"bottom":{"width":"","unit":null,"color":"","borderStyle":""},"left":{"width":"","unit":null,"color":"","borderStyle":""},"unitSync":true},"tablet":{"top":{"width":"","unit":null,"color":"","borderStyle":""},"right":{"width":"","unit":null,"color":"","borderStyle":""},"bottom":{"width":"","unit":null,"color":"","borderStyle":""},"left":{"width":"","unit":null,"color":"","borderStyle":""},"unitSync":true},"desktop":{"top":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"right":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"bottom":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"left":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"unitSync":true}}},"captionBorderRadius":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"tablet":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"desktop":{"top":"0","right":"0","bottom":"0","left":"0","topUnit":"px","rightUnit":"px","bottomUnit":"px","leftUnit":"px","unitSync":true}}},"containerWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerHeight":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMinWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMaxWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMinHeight":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMaxHeight":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"overlayVerticalPosition":{"type":"string","default":"middle"},"overlayCaptionVerticalPosition":{"type":"string","default":"middle"},"overlayCaptionHorizontalPosition":{"type":"string","default":"center"},"overlayHorizontalPosition":{"type":"string","default":"center"},"overlayBackgroundType":{"type":"string","default":"solid"},"overlayBackgroundColor":{"type":"string","default":"rgba(0,0,0,0.5)"},"overlayBackgroundColorOpacity":{"type":"number","default":0.5},"overlayBackgroundColorHover":{"type":"string","default":"rgba(0,0,0,0.40)"},"overlayBackgroundColorOpacityHover":{"type":"number","default":0.4},"overlayBorder":{"type":"object","default":{"mobile":{"top":{"width":"","unit":null,"color":"","borderStyle":""},"right":{"width":"","unit":null,"color":"","borderStyle":""},"bottom":{"width":"","unit":null,"color":"","borderStyle":""},"left":{"width":"","unit":null,"color":"","borderStyle":""},"unitSync":true},"tablet":{"top":{"width":"","unit":null,"color":"","borderStyle":""},"right":{"width":"","unit":null,"color":"","borderStyle":""},"bottom":{"width":"","unit":null,"color":"","borderStyle":""},"left":{"width":"","unit":null,"color":"","borderStyle":""},"unitSync":true},"desktop":{"top":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"right":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"bottom":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"left":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"unitSync":true}}},"overlayBorderRadius":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"tablet":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"desktop":{"top":"0","right":"0","bottom":"0","left":"0","topUnit":"px","rightUnit":"px","bottomUnit":"px","leftUnit":"px","unitSync":true}}},"overlayBackgroundGradient":{"type":"string","default":""},"overlayBackgroundGradientOpacity":{"type":"number","default":0.5},"overlayBackgroundGradientOpacityHover":{"type":"number","default":0.65},"overlayBackgroundImage":{"type":"object","default":{"url":"","id":0,"backgroundColor":"transparent","backgroundSize":"cover","backgroundPosition":"center center","backgroundRepeat":"no-repeat","backgroundOpacity":0.4,"backgroundOpacityHover":0.65}},"overlayDisplayOnHover":{"type":"boolean","default":false},"overlayDisplayAnimation":{"type":"string","default":"fade"},"htmlAnchor":{"type":"string","default":""},"captionCSSClasses":{"type":"string","default":""},"customAttributes":{"type":"array","default":[]},"hideOnMobile":{"type":"boolean","default":false},"hideOnTablet":{"type":"boolean","default":false},"hideOnDesktop":{"type":"boolean","default":false}},"supports":{"anchor":false,"align":false,"className":false,"alignWide":false,"defaultStylePicker":false,"spacing":{"padding":false,"margin":false},"html":false},"example":{"attributes":{}},"editorScript":"dlx-photo-caption-block-editor","editorStyle":"dlx-photo-caption-block-editor-css","style":"dlx-photo-block-frontend-and-editor"}'); - -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = (module) => { -/******/ var getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __webpack_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __webpack_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/global */ -/******/ (() => { -/******/ __webpack_require__.g = (function() { -/******/ if (typeof globalThis === 'object') return globalThis; -/******/ try { -/******/ return this || new Function('return this')(); -/******/ } catch (e) { -/******/ if (typeof window === 'object') return window; -/******/ } -/******/ })(); -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be in strict mode. -(() => { -"use strict"; -/*!**********************!*\ - !*** ./src/index.js ***! - \**********************/ -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _scss_block_backend_frontend_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./scss/block-backend-frontend.scss */ "./src/scss/block-backend-frontend.scss"); -/* harmony import */ var _blocks_photo_block_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./blocks/photo-block/index.js */ "./src/blocks/photo-block/index.js"); -/* harmony import */ var _blocks_photo_caption_block_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./blocks/photo-caption-block/index.js */ "./src/blocks/photo-caption-block/index.js"); -/* harmony import */ var _plugins_GlobalStyles_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./plugins/GlobalStyles/index.js */ "./src/plugins/GlobalStyles/index.js"); -/** - * WordPress Block initialization. - */ - - - - -})(); - -/******/ })() -; -//# sourceMappingURL=index.js.map \ No newline at end of file +(()=>{var e={8075:(e,t,n)=>{"use strict";var o=n(453),r=n(487),a=r(o("String.prototype.indexOf"));e.exports=function(e,t){var n=o(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?r(n):n}},487:(e,t,n)=>{"use strict";var o=n(6743),r=n(453),a=n(6897),i=n(9675),l=r("%Function.prototype.apply%"),c=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||o.call(c,l),u=n(655),p=r("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new i("a function is required");var t=s(o,c,arguments);return a(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return s(o,l,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},2485:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t{"use strict";var o=n(655),r=n(8068),a=n(9675),i=n(5795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!i&&i(e,t);if(o)o(e,t,{configurable:null===s&&p?p.configurable:!s,enumerable:null===l&&p?p.enumerable:!l,value:n,writable:null===c&&p?p.writable:!c});else{if(!u&&(l||c||s))throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},4460:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(e){return[e.toLowerCase(),e]}))),t.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e){return[e.toLowerCase(),e]})))},3806:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n");case l.Comment:return"\x3c!--".concat(e.data,"--\x3e");case l.CDATA:return function(e){return"")}(e);case l.Script:case l.Style:case l.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=s.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&m.has(e.parent.name)&&(t=o(o({},t),{xmlMode:!1}))),!t.xmlMode&&g.has(e.name)&&(t=o(o({},t),{xmlMode:"foreign"}));var r="<".concat(e.name),a=function(e,t){var n;if(e){var o=!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?p:t.xmlMode||"utf8"!==t.encodeEntities?c.encodeXML:c.escapeAttribute;return Object.keys(e).map((function(n){var r,a,i=null!==(r=e[n])&&void 0!==r?r:"";return"foreign"===t.xmlMode&&(n=null!==(a=s.attributeNames.get(n))&&void 0!==a?a:n),t.emptyAttrs||t.xmlMode||""!==i?"".concat(n,'="').concat(o(i),'"'):n})).join(" ")}}(e.attribs,t);return a&&(r+=" ".concat(a)),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&d.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=f(e.children,t)),!t.xmlMode&&d.has(e.name)||(r+=""))),r}(e,t);case l.Text:return function(e,t){var n,o=e.data||"";return!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(o=t.xmlMode||"utf8"!==t.encodeEntities?(0,c.encodeXML)(o):(0,c.escapeText)(o)),o}(e,t)}}t.render=f,t.default=f;var m=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),g=new Set(["svg","math"])},5413:(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},1141:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(5413),i=n(6957);r(n(6957),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new i.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 i.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?a.ElementType.Tag:void 0,o=new i.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===a.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.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 i.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=c,t.default=c},6957:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=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])},o(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}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,o=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=d;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(d);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(d);t.Document=h;var m=function(e){function t(t,n,o,r){void 0===o&&(o=[]),void 0===r&&(r="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var a=e.call(this,o)||this;return a.name=t,a.attribs=n,a.type=r,a}return r(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,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(d);function g(e){return(0,i.isTag)(e)}function b(e){return e.type===i.ElementType.CDATA}function y(e){return e.type===i.ElementType.Text}function v(e){return e.type===i.ElementType.Comment}function _(e){return e.type===i.ElementType.Directive}function E(e){return e.type===i.ElementType.Root}function S(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new s(e.data);else if(v(e))n=new u(e.data);else if(g(e)){var o=t?k(e.children):[],r=new m(e.name,a({},e.attribs),o);o.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),n=r}else if(b(e)){o=t?k(e.children):[];var i=new f(o);o.forEach((function(e){return e.parent=i})),n=i}else if(E(e)){o=t?k(e.children):[];var l=new h(o);o.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!_(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new p(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function k(e){for(var t=e.map((function(e){return S(e,!0)})),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var o=n(6037),r=n(3209);t.getFeed=function(e){var t=c(p,e);return t?"feed"===t.name?function(e){var t,n=e.children,o={type:"atom",items:(0,r.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,o={media:l(n)};u(o,"id","id",n),u(o,"title","title",n);var r=null===(t=c("link",n))||void 0===t?void 0:t.attribs.href;r&&(o.link=r);var a=s("summary",n)||s("content",n);a&&(o.description=a);var i=s("updated",n);return i&&(o.pubDate=new Date(i)),o}))};u(o,"id","id",n),u(o,"title","title",n);var a=null===(t=c("link",n))||void 0===t?void 0:t.attribs.href;a&&(o.link=a),u(o,"description","subtitle",n);var i=s("updated",n);return i&&(o.updated=new Date(i)),u(o,"author","email",n,!0),o}(t):function(e){var t,n,o=null!==(n=null===(t=c("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],a={type:e.name.substr(0,3),id:"",items:(0,r.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:l(t)};u(n,"id","guid",t),u(n,"title","title",t),u(n,"link","link",t),u(n,"description","description",t);var o=s("pubDate",t)||s("dc:date",t);return o&&(n.pubDate=new Date(o)),n}))};u(a,"title","title",o),u(a,"link","link",o),u(a,"description","description",o);var i=s("lastBuildDate",o);return i&&(a.updated=new Date(i)),u(a,"author","managingEditor",o,!0),a}(t):null};var a=["url","type","lang"],i=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function l(e){return(0,r.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},o=0,r=a;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var o,r=n(1141);function a(e,t){var n=[],a=[];if(e===t)return 0;for(var i=(0,r.hasChildren)(e)?e:e.parent;i;)n.unshift(i),i=i.parent;for(i=(0,r.hasChildren)(t)?t:t.parent;i;)a.unshift(i),i=i.parent;for(var l=Math.min(n.length,a.length),c=0;cu.indexOf(d)?s===t?o.FOLLOWING|o.CONTAINED_BY:o.FOLLOWING:s===e?o.PRECEDING|o.CONTAINS:o.PRECEDING}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var o=n.parent;o;o=o.parent)if(e.includes(o)){e.splice(t,1);break}}return e},function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(o=t.DocumentPosition||(t.DocumentPosition={})),t.compareDocumentPosition=a,t.uniqueSort=function(e){return(e=e.filter((function(e,t,n){return!n.includes(e,t+1)}))).sort((function(e,t){var n=a(e,t);return n&o.PRECEDING?-1:n&o.FOLLOWING?1:0})),e}},8888:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(n(6037),t),r(n(8938),t),r(n(3403),t),r(n(718),t),r(n(3209),t),r(n(5397),t),r(n(4437),t);var a=n(1141);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return a.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return a.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return a.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return a.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return a.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return a.hasChildren}})},3209:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var o=n(1141),r=n(718),a={tag_name:function(e){return"function"==typeof e?function(t){return(0,o.isTag)(t)&&e(t.name)}:"*"===e?o.isTag:function(t){return(0,o.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,o.isText)(t)&&e(t.data)}:function(t){return(0,o.isText)(t)&&t.data===e}}};function i(e,t){return"function"==typeof t?function(n){return(0,o.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,o.isTag)(n)&&n.attribs[e]===t}}function l(e,t){return function(n){return e(n)||t(n)}}function c(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(a,t)?a[t](n):i(t,n)}));return 0===t.length?null:t.reduce(l)}t.testElement=function(e,t){var n=c(e);return!n||n(t)},t.getElements=function(e,t,n,o){void 0===o&&(o=1/0);var a=c(e);return a?(0,r.filter)(a,t,n,o):[]},t.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,r.findOne)(i("id",e),t,n)},t.getElementsByTagName=function(e,t,n,o){return void 0===n&&(n=!0),void 0===o&&(o=1/0),(0,r.filter)(a.tag_name(e),t,n,o)},t.getElementsByTagType=function(e,t,n,o){return void 0===n&&(n=!0),void 0===o&&(o=1/0),(0,r.filter)(a.tag_type(e),t,n,o)}},3403:(e,t)=>{"use strict";function n(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=n,t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var o=t.next=e.next;o&&(o.prev=t);var r=t.parent=e.parent;if(r){var a=r.children;a[a.lastIndexOf(e)]=t,e.parent=null}},t.appendChild=function(e,t){if(n(t),t.next=null,t.parent=e,e.children.push(t)>1){var o=e.children[e.children.length-2];o.next=t,t.prev=o}else t.prev=null},t.append=function(e,t){n(t);var o=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=o,r){if(r.prev=t,o){var a=o.children;a.splice(a.lastIndexOf(r),0,t)}}else o&&o.children.push(t)},t.prependChild=function(e,t){if(n(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var o=e.children[1];o.prev=t,t.next=o}else t.next=null},t.prepend=function(e,t){n(t);var o=e.parent;if(o){var r=o.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=o,t.prev=e.prev,t.next=e,e.prev=t}},718:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var o=n(1141);function r(e,t,n,r){for(var a=[],i=[t],l=[0];;)if(l[0]>=i[0].length){if(1===l.length)return a;i.shift(),l.shift()}else{var c=i[0][l[0]++];if(e(c)&&(a.push(c),--r<=0))return a;n&&(0,o.hasChildren)(c)&&c.children.length>0&&(l.unshift(0),i.unshift(c.children))}}t.filter=function(e,t,n,o){return void 0===n&&(n=!0),void 0===o&&(o=1/0),r(e,Array.isArray(t)?t:[t],n,o)},t.find=r,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,r){void 0===r&&(r=!0);for(var a=null,i=0;i0&&(a=e(t,l.children,!0)))}return a},t.existsOne=function e(t,n){return n.some((function(n){return(0,o.isTag)(n)&&(t(n)||e(t,n.children))}))},t.findAll=function(e,t){for(var n=[],r=[t],a=[0];;)if(a[0]>=r[0].length){if(1===r.length)return n;r.shift(),a.shift()}else{var i=r[0][a[0]++];(0,o.isTag)(i)&&(e(i)&&n.push(i),i.children.length>0&&(a.unshift(0),r.unshift(i.children)))}}},6037:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var r=n(1141),a=o(n(3806)),i=n(5413);function l(e,t){return(0,a.default)(e,t)}t.getOuterHTML=l,t.getInnerHTML=function(e,t){return(0,r.hasChildren)(e)?e.children.map((function(e){return l(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,r.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,r.isCDATA)(t)?e(t.children):(0,r.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,r.hasChildren)(t)&&!(0,r.isComment)(t)?e(t.children):(0,r.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,r.hasChildren)(t)&&(t.type===i.ElementType.Tag||(0,r.isCDATA)(t))?e(t.children):(0,r.isText)(t)?t.data:""}},8938:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var o=n(1141);function r(e){return(0,o.hasChildren)(e)?e.children:[]}function a(e){return e.parent||null}t.getChildren=r,t.getParent=a,t.getSiblings=function(e){var t=a(e);if(null!=t)return r(t);for(var n=[e],o=e.prev,i=e.next;null!=o;)n.unshift(o),o=o.prev;for(;null!=i;)n.push(i),i=i.next;return n},t.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,o.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,o.isTag)(t);)t=t.prev;return t}},9878:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTML=t.determineBranch=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var r=o(n(3603));t.htmlDecodeTree=r.default;var a=o(n(2517));t.xmlDecodeTree=a.default;var i=o(n(5096));t.decodeCodePoint=i.default;var l,c,s=n(5096);function u(e){return function(t,n){for(var o="",r=0,a=0;(a=t.indexOf("&",a))>=0;)if(o+=t.slice(r,a),r=a,a+=1,t.charCodeAt(a)!==l.NUM){for(var s=0,u=1,d=0,f=e[d];a>14)-1))break;d+=m}}0!==s&&(o+=1==(m=(e[s]&c.VALUE_LENGTH)>>14)?String.fromCharCode(e[s]&~c.VALUE_LENGTH):2===m?String.fromCharCode(e[s+1]):String.fromCharCode(e[s+1],e[s+2]),r=a-u+1)}else{var g=a+1,b=10,y=t.charCodeAt(g);(y|l.To_LOWER_BIT)===l.LOWER_X&&(b=16,a+=1,g+=1);do{y=t.charCodeAt(++a)}while(y>=l.ZERO&&y<=l.NINE||16===b&&(y|l.To_LOWER_BIT)>=l.LOWER_A&&(y|l.To_LOWER_BIT)<=l.LOWER_F);if(g!==a){var v=t.substring(g,a),_=parseInt(v,b);if(t.charCodeAt(a)===l.SEMI)a+=1;else if(n)continue;o+=(0,i.default)(_),r=a}}return o+t.slice(r)}}function p(e,t,n,o){var r=(t&c.BRANCH_LENGTH)>>7,a=t&c.JUMP_TABLE;if(0===r)return 0!==a&&o===a?n:-1;if(a){var i=o-a;return i<0||i>=r?-1:e[n+i]-1}for(var l=n,s=l+r-1;l<=s;){var u=l+s>>>1,p=e[u];if(po))return e[u+r];s=u-1}}return-1}Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return s.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return s.fromCodePoint}}),function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.To_LOWER_BIT=32]="To_LOWER_BIT"}(l||(l={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(c=t.BinTrieFlags||(t.BinTrieFlags={})),t.determineBranch=p;var d=u(r.default),f=u(a.default);t.decodeHTML=function(e){return d(e,!1)},t.decodeHTMLStrict=function(e){return d(e,!0)},t.decodeXML=function(e){return f(e,!0)}},5096:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var o=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function r(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=o.get(e))&&void 0!==t?t:e}t.fromCodePoint=null!==(n=String.fromCodePoint)&&void 0!==n?n:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+String.fromCharCode(e)},t.replaceCodePoint=r,t.default=function(e){return(0,t.fromCodePoint)(r(e))}},1818:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.encodeNonAsciiHTML=t.encodeHTML=void 0;var r=o(n(5504)),a=n(5987),i=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function l(e,t){for(var n,o="",i=0;null!==(n=e.exec(t));){var l=n.index;o+=t.substring(i,l);var c=t.charCodeAt(l),s=r.default.get(c);if("object"==typeof s){if(l+1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var n=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function o(e){for(var o,r="",a=0;null!==(o=t.xmlReplacer.exec(e));){var i=o.index,l=e.charCodeAt(i),c=n.get(l);void 0!==c?(r+=e.substring(a,i)+c,a=i+1):(r+="".concat(e.substring(a,i),"&#x").concat((0,t.getCodePoint)(e,i).toString(16),";"),a=t.xmlReplacer.lastIndex+=Number(55296==(64512&l)))}return r+e.substr(a)}function r(e,t){return function(n){for(var o,r=0,a="";o=e.exec(n);)r!==o.index&&(a+=n.substring(r,o.index)),a+=t.get(o[0].charCodeAt(0)),r=o.index+1;return a+n.substring(r)}}t.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},t.encodeXML=o,t.escape=o,t.escapeUTF8=r(/[&<>'"]/g,n),t.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},3603:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e){return e.charCodeAt(0)})))},2517:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})))},5504:(e,t)=>{"use strict";function n(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.DecodingMode=t.EntityLevel=void 0;var o,r,a,i=n(9878),l=n(1818),c=n(5987);!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(o=t.EntityLevel||(t.EntityLevel={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict"}(r=t.DecodingMode||(t.DecodingMode={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(a=t.EncodingMode||(t.EncodingMode={})),t.decode=function(e,t){void 0===t&&(t=o.XML);var n="number"==typeof t?{level:t}:t;return n.level===o.HTML?n.mode===r.Strict?(0,i.decodeHTMLStrict)(e):(0,i.decodeHTML)(e):(0,i.decodeXML)(e)},t.decodeStrict=function(e,t){void 0===t&&(t=o.XML);var n="number"==typeof t?{level:t}:t;return n.level===o.HTML?n.mode===r.Legacy?(0,i.decodeHTML)(e):(0,i.decodeHTMLStrict)(e):(0,i.decodeXML)(e)},t.encode=function(e,t){void 0===t&&(t=o.XML);var n="number"==typeof t?{level:t}:t;return n.mode===a.UTF8?(0,c.escapeUTF8)(e):n.mode===a.Attribute?(0,c.escapeAttribute)(e):n.mode===a.Text?(0,c.escapeText)(e):n.level===o.HTML?n.mode===a.ASCII?(0,l.encodeNonAsciiHTML)(e):(0,l.encodeHTML)(e):(0,c.encodeXML)(e)};var s=n(5987);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return s.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return s.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return s.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return s.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return s.escapeText}});var u=n(1818);Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var p=n(9878);Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return p.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return p.decodeXML}})},655:(e,t,n)=>{"use strict";var o=n(453)("%Object.defineProperty%",!0)||!1;if(o)try{o({},"a",{value:1})}catch(e){o=!1}e.exports=o},1237:e=>{"use strict";e.exports=EvalError},9383:e=>{"use strict";e.exports=Error},9290:e=>{"use strict";e.exports=RangeError},9538:e=>{"use strict";e.exports=ReferenceError},8068:e=>{"use strict";e.exports=SyntaxError},9675:e=>{"use strict";e.exports=TypeError},5345:e=>{"use strict";e.exports=URIError},3424:function(e){e.exports=function(){"use strict";var e=function(e){var t=e.addFilter,n=e.utils,o=n.Type,r=n.isString,a=n.replaceInString,i=n.guesstimateMimeType,l=n.getExtensionFromFilename,c=n.getFilenameFromURL,s=function(e,t){return e.some((function(e){return/\*$/.test(e)?(n=e,(/^[^/]+/.exec(t)||[]).pop()===n.slice(0,-2)):e===t;var n}))},u=function(e,t,n){if(0===t.length)return!0;var o=function(e){var t="";if(r(e)){var n=c(e),o=l(n);o&&(t=i(o))}else t=e.type;return t}(e);return n?new Promise((function(r,a){n(e,o).then((function(e){s(t,e)?r():a()})).catch(a)})):s(t,o)};return t("SET_ATTRIBUTE_TO_OPTION_MAP",(function(e){return Object.assign(e,{accept:"acceptedFileTypes"})})),t("ALLOW_HOPPER_ITEM",(function(e,t){var n=t.query;return!n("GET_ALLOW_FILE_TYPE_VALIDATION")||u(e,n("GET_ACCEPTED_FILE_TYPES"))})),t("LOAD_FILE",(function(e,t){var n=t.query;return new Promise((function(t,o){if(n("GET_ALLOW_FILE_TYPE_VALIDATION")){var r=n("GET_ACCEPTED_FILE_TYPES"),i=n("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),l=u(e,r,i),c=function(){var e,t=r.map((e=n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"),function(t){return null!==e[t]&&(e[t]||t)})).filter((function(e){return!1!==e})),i=t.filter((function(e,n){return t.indexOf(e)===n}));o({status:{main:n("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:a(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:i.join(", "),allButLastType:i.slice(0,-1).join(", "),lastType:i[t.length-1]})}})};if("boolean"==typeof l)return l?t(e):c();l.then((function(){t(e)})).catch(c)}else t(e)}))})),{options:{allowFileTypeValidation:[!0,o.BOOLEAN],acceptedFileTypes:[[],o.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",o.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",o.STRING],fileValidateTypeLabelExpectedTypesMap:[{},o.OBJECT],fileValidateTypeDetectType:[null,o.FUNCTION]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e}()},8200:function(e){e.exports=function(){"use strict";var e=65496,t=65505,n=1165519206,o=18761,r=274,a=65280,i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.getUint16(t,n)},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.getUint32(t,n)},c="undefined"!=typeof window&&void 0!==window.document,s=void 0,u=c?new Image:{};u.onload=function(){return s=u.naturalWidth>u.naturalHeight},u.src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=";var p=function(c){var u=c.addFilter,p=c.utils,d=p.Type,f=p.isFile;return u("DID_LOAD_ITEM",(function(c,u){var p=u.query;return new Promise((function(u,d){var h=c.file;if(!(f(h)&&function(e){return/^image\/jpeg/.test(e.type)}(h)&&p("GET_ALLOW_IMAGE_EXIF_ORIENTATION")&&s))return u(c);(function(c){return new Promise((function(s,u){var p=new FileReader;p.onload=function(c){var u=new DataView(c.target.result);if(i(u,0)===e){for(var p=u.byteLength,d=2;d0&&void 0!==arguments[0]?arguments[0]:0,y:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0}},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3?arguments[3]:void 0;return"string"==typeof e?parseFloat(e)*n:"number"==typeof e?e*(o?t[o]:Math.min(t.width,t.height)):void 0},c=function(e){return null!=e},s=function(e,t){return Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},u=function(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg",e);return t&&s(n,t),n},p={contain:"xMidYMid meet",cover:"xMidYMid slice"},d={left:"start",center:"middle",right:"end"},f=function(e){return function(t){return u(e,{id:t.id})}},h={image:function(e){var t=u("image",{id:e.id,"stroke-linecap":"round","stroke-linejoin":"round",opacity:"0"});return t.onload=function(){t.setAttribute("opacity",e.opacity||1)},t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.src),t},rect:f("rect"),ellipse:f("ellipse"),text:f("text"),path:f("path"),line:function(e){var t=u("g",{id:e.id,"stroke-linecap":"round","stroke-linejoin":"round"}),n=u("line");t.appendChild(n);var o=u("path");t.appendChild(o);var r=u("path");return t.appendChild(r),t}},m={rect:function(e){return s(e,Object.assign({},e.rect,e.styles))},ellipse:function(e){var t=e.rect.x+.5*e.rect.width,n=e.rect.y+.5*e.rect.height,o=.5*e.rect.width,r=.5*e.rect.height;return s(e,Object.assign({cx:t,cy:n,rx:o,ry:r},e.styles))},image:function(e,t){s(e,Object.assign({},e.rect,e.styles,{preserveAspectRatio:p[t.fit]||"none"}))},text:function(e,t,n,o){var r=l(t.fontSize,n,o),a=t.fontFamily||"sans-serif",i=t.fontWeight||"normal",c=d[t.textAlign]||"start";s(e,Object.assign({},e.rect,e.styles,{"stroke-width":0,"font-weight":i,"font-size":r,"font-family":a,"text-anchor":c})),e.text!==t.text&&(e.text=t.text,e.textContent=t.text.length?t.text:" ")},path:function(e,t,n,o){var r;s(e,Object.assign({},e.styles,{fill:"none",d:(r=t.points.map((function(e){return{x:l(e.x,n,o,"width"),y:l(e.y,n,o,"height")}})),r.map((function(e,t){return"".concat(0===t?"M":"L"," ").concat(e.x," ").concat(e.y)})).join(" "))}))},line:function(e,t,n,c){s(e,Object.assign({},e.rect,e.styles,{fill:"none"}));var u=e.childNodes[0],p=e.childNodes[1],d=e.childNodes[2],f=e.rect,h={x:e.rect.x+e.rect.width,y:e.rect.y+e.rect.height};if(s(u,{x1:f.x,y1:f.y,x2:h.x,y2:h.y}),t.lineDecoration){p.style.display="none",d.style.display="none";var m=function(e){var t=Math.sqrt(e.x*e.x+e.y*e.y);return 0===t?{x:0,y:0}:i(e.x/t,e.y/t)}({x:h.x-f.x,y:h.y-f.y}),g=l(.05,n,c);if(-1!==t.lineDecoration.indexOf("arrow-begin")){var b=o(m,g),y=r(f,b),v=a(f,2,y),_=a(f,-2,y);s(p,{style:"display:block;",d:"M".concat(v.x,",").concat(v.y," L").concat(f.x,",").concat(f.y," L").concat(_.x,",").concat(_.y)})}if(-1!==t.lineDecoration.indexOf("arrow-end")){var E=o(m,-g),S=r(h,E),k=a(h,2,S),w=a(h,-2,S);s(d,{style:"display:block;",d:"M".concat(k.x,",").concat(k.y," L").concat(h.x,",").concat(h.y," L").concat(w.x,",").concat(w.y)})}}}},g=function(e,t,n,o,r){"path"!==t&&(e.rect=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=l(e.x,t,n,"width")||l(e.left,t,n,"width"),r=l(e.y,t,n,"height")||l(e.top,t,n,"height"),a=l(e.width,t,n,"width"),i=l(e.height,t,n,"height"),s=l(e.right,t,n,"width"),u=l(e.bottom,t,n,"height");return c(r)||(r=c(i)&&c(u)?t.height-i-u:u),c(o)||(o=c(a)&&c(s)?t.width-a-s:s),c(a)||(a=c(o)&&c(s)?t.width-o-s:0),c(i)||(i=c(r)&&c(u)?t.height-r-u:0),{x:o||0,y:r||0,width:a||0,height:i||0}}(n,o,r)),e.styles=function(e,t,n){var o=e.borderStyle||e.lineStyle||"solid",r=e.backgroundColor||e.fontColor||"transparent",a=e.borderColor||e.lineColor||"transparent",i=l(e.borderWidth||e.lineWidth,t,n);return{"stroke-linecap":e.lineCap||"round","stroke-linejoin":e.lineJoin||"round","stroke-width":i||0,"stroke-dasharray":"string"==typeof o?"":o.map((function(e){return l(e,t,n)})).join(","),stroke:a,fill:r,opacity:e.opacity||1}}(n,o,r),m[t](e,n,o,r)},b=["x","y","left","top","right","bottom","width","height"],y=function(e){var t=n(e,2),o=t[0],r=t[1],a=r.points?{}:b.reduce((function(e,t){return e[t]="string"==typeof(n=r[t])&&/%/.test(n)?parseFloat(n)/100:n,e;var n}),{});return[o,Object.assign({zIndex:0},r,a)]},v=function(e,t){return e[1].zIndex>t[1].zIndex?1:e[1].zIndex.5?1-o.x:o.x,a=o.y>.5?1-o.y:o.y,i=2*r*e.width,l=2*a*e.height,c=function(e,t){var n=e.width,o=e.height,r=w(n,t),a=w(o,t),i=E(e.x+Math.abs(r.x),e.y-Math.abs(r.y)),l=E(e.x+e.width+Math.abs(a.y),e.y+Math.abs(a.x)),c=E(e.x-Math.abs(a.y),e.y+e.height-Math.abs(a.x));return{width:k(i,l),height:k(i,c)}}(t,n);return Math.max(c.width/i,c.height/l)},T=function(e,t){var n=e.width,o=n*t;return o>e.height&&(n=(o=e.height)/t),{x:.5*(e.width-n),y:.5*(e.height-o),width:n,height:o}},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.zoom,o=t.rotation,r=t.center,a=t.aspectRatio;a||(a=e.height/e.width);var i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=e.height/e.width,r=t,a=1,i=o;i>r&&(a=(i=r)/o);var l=Math.max(1/a,r/i),c=e.width/(n*l*a);return{width:c,height:c*t}}(e,a,n),l={x:.5*i.width,y:.5*i.height},c={x:0,y:0,width:i.width,height:i.height,center:l},s=void 0===t.scaleToFit||t.scaleToFit,u=n*R(e,T(c,a),o,s?r:{x:.5,y:.5});return{widthFloat:i.width/u,heightFloat:i.height/u,width:Math.round(i.width/u),height:Math.round(i.height/u)}},I={type:"spring",stiffness:.5,damping:.45,mass:10},O=function(e){return e.utils.createView({name:"image-clip",tag:"div",ignoreRect:!0,mixins:{apis:["crop","markup","resize","width","height","dirty","background"],styles:["width","height","opacity"],animations:{opacity:{type:"tween",duration:250}}},didWriteView:function(e){var t=e.root,n=e.props;n.background&&(t.element.style.backgroundColor=n.background)},create:function(t){var n=t.root,o=t.props;n.ref.image=n.appendChildView(n.createChildView(function(e){return e.utils.createView({name:"image-canvas-wrapper",tag:"div",ignoreRect:!0,mixins:{apis:["crop","width","height"],styles:["originX","originY","translateX","translateY","scaleX","scaleY","rotateZ"],animations:{originX:I,originY:I,scaleX:I,scaleY:I,translateX:I,translateY:I,rotateZ:I}},create:function(t){var n=t.root,o=t.props;o.width=o.image.width,o.height=o.image.height,n.ref.bitmap=n.appendChildView(n.createChildView(function(e){return e.utils.createView({name:"image-bitmap",ignoreRect:!0,mixins:{styles:["scaleX","scaleY"]},create:function(e){var t=e.root,n=e.props;t.appendChild(n.image)}})}(e),{image:o.image}))},write:function(e){var t=e.root,n=e.props.crop.flip,o=t.ref.bitmap;o.scaleX=n.horizontal?-1:1,o.scaleY=n.vertical?-1:1}})}(e),Object.assign({},o))),n.ref.createMarkup=function(){n.ref.markup||(n.ref.markup=n.appendChildView(n.createChildView(_(e),Object.assign({},o))))},n.ref.destroyMarkup=function(){n.ref.markup&&(n.removeChildView(n.ref.markup),n.ref.markup=null)};var r=n.query("GET_IMAGE_PREVIEW_TRANSPARENCY_INDICATOR");null!==r&&(n.element.dataset.transparencyIndicator="grid"===r?r:"color")},write:function(e){var t=e.root,n=e.props,o=e.shouldOptimize,r=n.crop,a=n.markup,i=n.resize,l=n.dirty,c=n.width,s=n.height;t.ref.image.crop=r;var u={x:0,y:0,width:c,height:s,center:{x:.5*c,y:.5*s}},p={width:t.ref.image.width,height:t.ref.image.height},d={x:r.center.x*p.width,y:r.center.y*p.height},f={x:u.center.x-p.width*r.center.x,y:u.center.y-p.height*r.center.y},h=2*Math.PI+r.rotation%(2*Math.PI),m=r.aspectRatio||p.height/p.width,g=void 0===r.scaleToFit||r.scaleToFit,b=R(p,T(u,m),h,g?r.center:{x:.5,y:.5}),y=r.zoom*b;a&&a.length?(t.ref.createMarkup(),t.ref.markup.width=c,t.ref.markup.height=s,t.ref.markup.resize=i,t.ref.markup.dirty=l,t.ref.markup.markup=a,t.ref.markup.crop=x(p,r)):t.ref.markup&&t.ref.destroyMarkup();var v=t.ref.image;if(o)return v.originX=null,v.originY=null,v.translateX=null,v.translateY=null,v.rotateZ=null,v.scaleX=null,void(v.scaleY=null);v.originX=d.x,v.originY=d.y,v.translateX=f.x,v.translateY=f.y,v.rotateZ=h,v.scaleX=y,v.scaleY=y}})},C=0,A=function(){self.onmessage=function(e){createImageBitmap(e.data.message.file).then((function(t){self.postMessage({id:e.data.id,message:t},[t])}))}},P=function(){self.onmessage=function(e){for(var t=e.data.message.imageData,n=e.data.message.colorMatrix,o=t.data,r=o.length,a=n[0],i=n[1],l=n[2],c=n[3],s=n[4],u=n[5],p=n[6],d=n[7],f=n[8],h=n[9],m=n[10],g=n[11],b=n[12],y=n[13],v=n[14],_=n[15],E=n[16],S=n[17],k=n[18],w=n[19],R=0,T=0,x=0,I=0,O=0;R=5&&o<=8){var i=[n,t];t=i[0],n=i[1]}return function(e,t,n,o){-1!==o&&e.transform.apply(e,D[o](t,n))}(a,t,n,o),a.drawImage(e,0,0,t,n),r},L=function(e){return/^image/.test(e.type)&&!/svg/.test(e.type)},M=function(e){var t=Math.min(10/e.width,10/e.height),n=document.createElement("canvas"),o=n.getContext("2d"),r=n.width=Math.ceil(e.width*t),a=n.height=Math.ceil(e.height*t);o.drawImage(e,0,0,r,a);var i=null;try{i=o.getImageData(0,0,r,a).data}catch(e){return null}for(var l=i.length,c=0,s=0,u=0,p=0;p\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n';if(document.querySelector("base")){var r=new URL(window.location.href.replace(window.location.hash,"")).href;o=o.replace(/url\(\#/g,"url("+r+"#")}C++,t.element.classList.add("filepond--image-preview-overlay-".concat(n.status)),t.element.innerHTML=o.replace(/__UID__/g,C)},mixins:{styles:["opacity"],animations:{opacity:{type:"spring",mass:25}}}}),n=function(e){return e.utils.createView({name:"image-preview",tag:"div",ignoreRect:!0,mixins:{apis:["image","crop","markup","resize","dirty","background"],styles:["translateY","scaleX","scaleY","opacity"],animations:{scaleX:I,scaleY:I,translateY:I,opacity:{type:"tween",duration:400}}},create:function(t){var n=t.root,o=t.props;n.ref.clip=n.appendChildView(n.createChildView(O(e),{id:o.id,image:o.image,crop:o.crop,markup:o.markup,resize:o.resize,dirty:o.dirty,background:o.background}))},write:function(e){var t=e.root,n=e.props,o=e.shouldOptimize,r=t.ref.clip,a=n.image,i=n.crop,l=n.markup,c=n.resize,s=n.dirty;if(r.crop=i,r.markup=l,r.resize=c,r.dirty=s,r.opacity=o?0:1,!o&&!t.rect.element.hidden){var u=a.height/a.width,p=i.aspectRatio||u,d=t.rect.inner.width,f=t.rect.inner.height,h=t.query("GET_IMAGE_PREVIEW_HEIGHT"),m=t.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),g=t.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),b=t.query("GET_PANEL_ASPECT_RATIO"),y=t.query("GET_ALLOW_MULTIPLE");b&&!y&&(h=d*b,p=b);var v=null!==h?h:Math.max(m,Math.min(d*p,g)),_=v/p;_>d&&(v=(_=d)*p),v>f&&(v=f,_=f/p),r.width=_,r.height=v}}})}(e),o=e.utils.createWorker,r=function(e,t,n){return new Promise((function(r){e.ref.imageData||(e.ref.imageData=n.getContext("2d").getImageData(0,0,n.width,n.height));var a=function(e){var t;try{t=new ImageData(e.width,e.height)}catch(n){t=document.createElement("canvas").getContext("2d").createImageData(e.width,e.height)}return t.data.set(new Uint8ClampedArray(e.data)),t}(e.ref.imageData);if(!t||20!==t.length)return n.getContext("2d").putImageData(a,0,0),r();var i=o(P);i.post({imageData:a,colorMatrix:t},(function(e){n.getContext("2d").putImageData(e,0,0),i.terminate(),r()}),[a.data.buffer])}))},a=function(e){var t=e.root,o=e.props,r=e.image,a=o.id,i=t.query("GET_ITEM",{id:a});if(i){var l,c,s=i.getMetadata("crop")||{center:{x:.5,y:.5},flip:{horizontal:!1,vertical:!1},zoom:1,rotation:0,aspectRatio:null},u=t.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),p=!1;t.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(l=i.getMetadata("markup")||[],c=i.getMetadata("resize"),p=!0);var d=t.appendChildView(t.createChildView(n,{id:a,image:r,crop:s,resize:c,markup:l,dirty:p,background:u,opacity:0,scaleX:1.15,scaleY:1.15,translateY:15}),t.childViews.length);t.ref.images.push(d),d.opacity=1,d.scaleX=1,d.scaleY=1,d.translateY=0,setTimeout((function(){t.dispatch("DID_IMAGE_PREVIEW_SHOW",{id:a})}),250)}},i=function(e){var t=e.root;t.ref.overlayShadow.opacity=1,t.ref.overlayError.opacity=0,t.ref.overlaySuccess.opacity=0},l=function(e){var t=e.root;t.ref.overlayShadow.opacity=.25,t.ref.overlayError.opacity=1};return e.utils.createView({name:"image-preview-wrapper",create:function(e){var n=e.root;n.ref.images=[],n.ref.imageData=null,n.ref.imageViewBin=[],n.ref.overlayShadow=n.appendChildView(n.createChildView(t,{opacity:0,status:"idle"})),n.ref.overlaySuccess=n.appendChildView(n.createChildView(t,{opacity:0,status:"success"})),n.ref.overlayError=n.appendChildView(n.createChildView(t,{opacity:0,status:"failure"}))},styles:["height"],apis:["height"],destroy:function(e){e.root.ref.images.forEach((function(e){e.image.width=1,e.image.height=1}))},didWriteView:function(e){e.root.ref.images.forEach((function(e){e.dirty=!1}))},write:e.utils.createRoute({DID_IMAGE_PREVIEW_DRAW:function(e){var t=e.root,n=t.ref.images[t.ref.images.length-1];n.translateY=0,n.scaleX=1,n.scaleY=1,n.opacity=1},DID_IMAGE_PREVIEW_CONTAINER_CREATE:function(e){var t,n,o,r=e.root,a=e.props.id,i=r.query("GET_ITEM",a);if(i){var l=URL.createObjectURL(i.file);t=l,n=function(e,t){r.dispatch("DID_IMAGE_PREVIEW_CALCULATE_SIZE",{id:a,width:e,height:t})},(o=new Image).onload=function(){var e=o.naturalWidth,t=o.naturalHeight;o=null,n(e,t)},o.src=t}},DID_FINISH_CALCULATE_PREVIEWSIZE:function(e){var t,n,i,l=e.root,c=e.props,s=c.id,u=l.query("GET_ITEM",s);if(u){var p=URL.createObjectURL(u.file),d=function(){var e;(e=p,new Promise((function(t,n){var o=new Image;o.crossOrigin="Anonymous",o.onload=function(){t(o)},o.onerror=function(e){n(e)},o.src=e}))).then(f)},f=function(e){URL.revokeObjectURL(p);var t=(u.getMetadata("exif")||{}).orientation||-1,n=e.width,o=e.height;if(n&&o){if(t>=5&&t<=8){var i=[o,n];n=i[0],o=i[1]}var s=Math.max(1,.75*window.devicePixelRatio),d=l.query("GET_IMAGE_PREVIEW_ZOOM_FACTOR")*s,f=o/n,h=l.rect.element.width,m=l.rect.element.height,g=h,b=g*f;f>1?b=(g=Math.min(n,h*d))*f:g=(b=Math.min(o,m*d))/f;var y=N(e,g,b,t),v=function(){var t=l.query("GET_IMAGE_PREVIEW_CALCULATE_AVERAGE_IMAGE_COLOR")?M(data):null;u.setMetadata("color",t,!0),"close"in e&&e.close(),l.ref.overlayShadow.opacity=1,a({root:l,props:c,image:y})},_=u.getMetadata("filter");_?r(l,_,y).then(v):v()}};if(t=u.file,n=window.navigator.userAgent.match(/Firefox\/([0-9]+)\./),null!==(i=n?parseInt(n[1]):null)&&i<=58||!("createImageBitmap"in window)||!L(t))d();else{var h=o(A);h.post({file:u.file},(function(e){h.terminate(),e?f(e):d()}))}}},DID_UPDATE_ITEM_METADATA:function(e){var t,n,o=e.root,i=e.props,l=e.action;if(/crop|filter|markup|resize/.test(l.change.key)&&o.ref.images.length){var c=o.query("GET_ITEM",{id:i.id});if(c)if(/filter/.test(l.change.key)){var s=o.ref.images[o.ref.images.length-1];r(o,l.change.value,s.image)}else if(/crop|markup|resize/.test(l.change.key)){var u=c.getMetadata("crop"),p=o.ref.images[o.ref.images.length-1];if(u&&u.aspectRatio&&p.crop&&p.crop.aspectRatio&&Math.abs(u.aspectRatio-p.crop.aspectRatio)>1e-5){var d=function(e){var t=e.root,n=t.ref.images.shift();return n.opacity=0,n.translateY=-15,t.ref.imageViewBin.push(n),n}({root:o});a({root:o,props:i,image:(t=d.image,(n=n||document.createElement("canvas")).width=t.width,n.height=t.height,n.getContext("2d").drawImage(t,0,0),n)})}else!function(e){var t=e.root,n=e.props,o=t.query("GET_ITEM",{id:n.id});if(o){var r=t.ref.images[t.ref.images.length-1];r.crop=o.getMetadata("crop"),r.background=t.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),t.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(r.dirty=!0,r.resize=o.getMetadata("resize"),r.markup=o.getMetadata("markup"))}}({root:o,props:i})}}},DID_THROW_ITEM_LOAD_ERROR:l,DID_THROW_ITEM_PROCESSING_ERROR:l,DID_THROW_ITEM_INVALID:l,DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root;t.ref.overlayShadow.opacity=.25,t.ref.overlaySuccess.opacity=1},DID_START_ITEM_PROCESSING:i,DID_REVERT_ITEM_PROCESSING:i},(function(e){var t=e.root,n=t.ref.imageViewBin.filter((function(e){return 0===e.opacity}));t.ref.imageViewBin=t.ref.imageViewBin.filter((function(e){return e.opacity>0})),n.forEach((function(e){return function(e,t){e.removeChildView(t),t.image.width=1,t.image.height=1,t._destroy()}(t,e)})),n.length=0}))})},U=function(e){var t=e.addFilter,n=e.utils,o=n.Type,r=n.createRoute,a=n.isFile,i=j(e);return t("CREATE_VIEW",(function(e){var t=e.is,n=e.view,o=e.query;if(t("file")&&o("GET_ALLOW_IMAGE_PREVIEW")){var l=function(e){e.root.ref.shouldRescale=!0};n.registerWriter(r({DID_RESIZE_ROOT:l,DID_STOP_RESIZE:l,DID_LOAD_ITEM:function(e){var t=e.root,r=e.props.id,l=o("GET_ITEM",r);if(l&&a(l.file)&&!l.archived){var c=l.file;if(function(e){return/^image/.test(e.type)}(c)&&o("GET_IMAGE_PREVIEW_FILTER_ITEM")(l)){var s="createImageBitmap"in(window||{}),u=o("GET_IMAGE_PREVIEW_MAX_FILE_SIZE");if(!(!s&&u&&c.size>u)){t.ref.imagePreview=n.appendChildView(n.createChildView(i,{id:r}));var p=t.query("GET_IMAGE_PREVIEW_HEIGHT");p&&t.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:l.id,height:p});var d=!s&&c.size>o("GET_IMAGE_PREVIEW_MAX_INSTANT_PREVIEW_FILE_SIZE");t.dispatch("DID_IMAGE_PREVIEW_CONTAINER_CREATE",{id:r},d)}}}},DID_IMAGE_PREVIEW_CALCULATE_SIZE:function(e){var t=e.root,n=e.action;t.ref.imageWidth=n.width,t.ref.imageHeight=n.height,t.ref.shouldRescale=!0,t.ref.shouldDrawPreview=!0,t.dispatch("KICK")},DID_UPDATE_ITEM_METADATA:function(e){var t=e.root;"crop"===e.action.change.key&&(t.ref.shouldRescale=!0)}},(function(e){var t=e.root,n=e.props;t.ref.imagePreview&&(t.rect.element.hidden||(t.ref.shouldRescale&&(function(e,t){if(e.ref.imagePreview){var n=t.id,o=e.query("GET_ITEM",{id:n});if(o){var r=e.query("GET_PANEL_ASPECT_RATIO"),a=e.query("GET_ITEM_PANEL_ASPECT_RATIO"),i=e.query("GET_IMAGE_PREVIEW_HEIGHT");if(!(r||a||i)){var l=e.ref,c=l.imageWidth,s=l.imageHeight;if(c&&s){var u=e.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),p=e.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),d=(o.getMetadata("exif")||{}).orientation||-1;if(d>=5&&d<=8){var f=[s,c];c=f[0],s=f[1]}if(!L(o.file)||e.query("GET_IMAGE_PREVIEW_UPSCALE")){var h=2048/c;c*=h,s*=h}var m=s/c,g=(o.getMetadata("crop")||{}).aspectRatio||m,b=Math.max(u,Math.min(s,p)),y=e.rect.element.width,v=Math.min(y*g,b);e.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:o.id,height:v})}}}}}(t,n),t.ref.shouldRescale=!1),t.ref.shouldDrawPreview&&(requestAnimationFrame((function(){requestAnimationFrame((function(){t.dispatch("DID_FINISH_CALCULATE_PREVIEWSIZE",{id:n.id})}))})),t.ref.shouldDrawPreview=!1)))})))}})),{options:{allowImagePreview:[!0,o.BOOLEAN],imagePreviewFilterItem:[function(){return!0},o.FUNCTION],imagePreviewHeight:[null,o.INT],imagePreviewMinHeight:[44,o.INT],imagePreviewMaxHeight:[256,o.INT],imagePreviewMaxFileSize:[null,o.INT],imagePreviewZoomFactor:[2,o.INT],imagePreviewUpscale:[!1,o.BOOLEAN],imagePreviewMaxInstantPreviewFileSize:[1e6,o.INT],imagePreviewTransparencyIndicator:[null,o.STRING],imagePreviewCalculateAverageImageColor:[!1,o.BOOLEAN],imagePreviewMarkupShow:[!0,o.BOOLEAN],imagePreviewMarkupFilter:[function(){return!0},o.FUNCTION]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:U})),U}()},9992:function(e,t){!function(e){"use strict";var t=function(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])},n=function(e){var n={};return t(e,(function(t){!function(e,t,n){"function"!=typeof n?Object.defineProperty(e,t,Object.assign({},n)):e[t]=n}(n,t,e[t])})),n},o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null===n)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},r=["svg","path"],a=function(e){return r.includes(e)},i=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof n&&(r=n,n=null);var i=a(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n&&(a(e)?o(i,"class",n):i.className=n),t(r,(function(e,t){o(i,e,t)})),i},l=function(e,t){return function(e,n){return void 0!==n?t.splice(n,0,e):t.push(e),e}},c=function(e,t){return function(n){return t.splice(t.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n}},s="undefined"!=typeof window&&void 0!==window.document,u=function(){return s},p="children"in(u()?i("svg"):{})?function(e){return e.children.length}:function(e){return e.childNodes.length},d=function(e,t,n,o){var r=n[0]||e.left,a=n[1]||e.top,i=r+e.width,l=a+e.height*(o[1]||1),c={element:Object.assign({},e),inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:r,top:a,right:i,bottom:l}};return t.filter((function(e){return!e.isRectIgnored()})).map((function(e){return e.rect})).forEach((function(e){f(c.inner,Object.assign({},e.inner)),f(c.outer,Object.assign({},e.outer))})),h(c.inner),c.outer.bottom+=c.element.marginBottom,c.outer.right+=c.element.marginRight,h(c.outer),c},f=function(e,t){t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},h=function(e){e.width=e.right-e.left,e.height=e.bottom-e.top},m=function(e){return"number"==typeof e},g=function(e){return e<.5?2*e*e:(4-2*e)*e-1},b={spring:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiffness,o=void 0===t?.5:t,r=e.damping,a=void 0===r?.75:r,i=e.mass,l=void 0===i?10:i,c=null,s=null,u=0,p=!1,d=n({interpolate:function(e,t){if(!p){if(!m(c)||!m(s))return p=!0,void(u=0);(function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(e-t)0&&void 0!==arguments[0]?arguments[0]:{},r=o.duration,a=void 0===r?500:r,i=o.easing,l=void 0===i?g:i,c=o.delay,s=void 0===c?0:c,u=null,p=!0,d=!1,f=null,h=n({interpolate:function(n,o){p||null===f||(null===u&&(u=n),n-u=a||o?(e=1,t=d?0:1,h.onupdate(t*f),h.oncomplete(t*f),p=!0):(t=e/a,h.onupdate((e>=0?l(d?1-t:t):0)*f))))},target:{get:function(){return d?0:f},set:function(e){if(null===f)return f=e,h.onupdate(e),void h.oncomplete(e);e3&&void 0!==arguments[3]&&arguments[3];(t=Array.isArray(t)?t:[t]).forEach((function(t){e.forEach((function(e){var r=e,a=function(){return n[e]},i=function(t){return n[e]=t};"object"==typeof e&&(r=e.key,a=e.getter||a,i=e.setter||i),t[r]&&!o||(t[r]={get:a,set:i})}))}))},_=function(e){return null!=e},E={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},S=function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(var n in t)if(t[n]!==e[n])return!0;return!1},k=function(e,t){var n=t.opacity,o=t.perspective,r=t.translateX,a=t.translateY,i=t.scaleX,l=t.scaleY,c=t.rotateX,s=t.rotateY,u=t.rotateZ,p=t.originX,d=t.originY,f=t.width,h=t.height,m="",g="";(_(p)||_(d))&&(g+="transform-origin: "+(p||0)+"px "+(d||0)+"px;"),_(o)&&(m+="perspective("+o+"px) "),(_(r)||_(a))&&(m+="translate3d("+(r||0)+"px, "+(a||0)+"px, 0) "),(_(i)||_(l))&&(m+="scale3d("+(_(i)?i:1)+", "+(_(l)?l:1)+", 1) "),_(u)&&(m+="rotateZ("+u+"rad) "),_(c)&&(m+="rotateX("+c+"rad) "),_(s)&&(m+="rotateY("+s+"rad) "),m.length&&(g+="transform:"+m+";"),_(n)&&(g+="opacity:"+n+";",0===n&&(g+="visibility:hidden;"),n<1&&(g+="pointer-events:none;")),_(h)&&(g+="height:"+h+"px;"),_(f)&&(g+="width:"+f+"px;");var b=e.elementCurrentStyle||"";g.length===b.length&&g===b||(e.style.cssText=g,e.elementCurrentStyle=g)},w={styles:function(e){var t=e.mixinConfig,n=e.viewProps,o=e.viewInternalAPI,r=e.viewExternalAPI,a=e.view,i=Object.assign({},n),l={};v(t,[o,r],n);var c=function(){return a.rect?d(a.rect,a.childViews,[n.translateX||0,n.translateY||0],[n.scaleX||0,n.scaleY||0]):null};return o.rect={get:c},r.rect={get:c},t.forEach((function(e){n[e]=void 0===i[e]?E[e]:i[e]})),{write:function(){if(S(l,n))return k(a.element,n),Object.assign(l,Object.assign({},n)),!0},destroy:function(){}}},listeners:function(e){e.mixinConfig,e.viewProps,e.viewInternalAPI;var t,n=e.viewExternalAPI,o=(e.viewState,e.view),r=[],a=(t=o.element,function(e,n){t.addEventListener(e,n)}),i=function(e){return function(t,n){e.removeEventListener(t,n)}}(o.element);return n.on=function(e,t){r.push({type:e,fn:t}),a(e,t)},n.off=function(e,t){r.splice(r.findIndex((function(n){return n.type===e&&n.fn===t})),1),i(e,t)},{write:function(){return!0},destroy:function(){r.forEach((function(e){i(e.type,e.fn)}))}}},animations:function(e){var n=e.mixinConfig,o=e.viewProps,r=e.viewInternalAPI,a=e.viewExternalAPI,i=Object.assign({},o),l=[];return t(n,(function(e,t){var n=y(t);n&&(n.onupdate=function(t){o[e]=t},n.target=i[e],v([{key:e,setter:function(e){n.target!==e&&(n.target=e)},getter:function(){return o[e]}}],[r,a],o,!0),l.push(n))})),{write:function(e){var t=document.hidden,n=!0;return l.forEach((function(o){o.resting||(n=!1),o.interpolate(e,t)})),n},destroy:function(){}}},apis:function(e){var t=e.mixinConfig,n=e.viewProps,o=e.viewExternalAPI;v(t,o,n)}},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,t.layoutCalculated=!0),e.left=t.offsetLeft||0,e.top=t.offsetTop||0,e.width=t.offsetWidth||0,e.height=t.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=t.scrollTop,e.hidden=null===t.offsetParent,e},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tag,o=void 0===t?"div":t,r=e.name,a=void 0===r?null:r,s=e.attributes,u=void 0===s?{}:s,f=e.read,h=void 0===f?function(){}:f,m=e.write,g=void 0===m?function(){}:m,b=e.create,y=void 0===b?function(){}:b,v=e.destroy,_=void 0===v?function(){}:v,E=e.filterFrameActionsForChild,S=void 0===E?function(e,t){return t}:E,k=e.didCreateView,T=void 0===k?function(){}:k,x=e.didWriteView,I=void 0===x?function(){}:x,O=e.ignoreRect,C=void 0!==O&&O,A=e.ignoreRectUpdate,P=void 0!==A&&A,D=e.mixins,N=void 0===D?[]:D;return function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i(o,"filepond--"+a,u),f=window.getComputedStyle(s,null),m=R(),b=null,v=!1,E=[],k=[],x={},O={},A=[g],D=[h],L=[_],M=function(){return s},B=function(){return E.concat()},j=function(){return b||(b=d(m,E,[0,0],[1,1]))},U={element:{get:M},style:{get:function(){return f}},childViews:{get:B}},F=Object.assign({},U,{rect:{get:j},ref:{get:function(){return x}},is:function(e){return a===e},appendChild:(t=s,function(e,n){void 0!==n&&t.children[n]?t.insertBefore(e,t.children[n]):t.appendChild(e)}),createChildView:function(e){return function(t,n){return t(e,n)}}(e),linkView:function(e){return E.push(e),e},unlinkView:function(e){E.splice(E.indexOf(e),1)},appendChildView:l(0,E),removeChildView:c(s,E),registerWriter:function(e){return A.push(e)},registerReader:function(e){return D.push(e)},registerDestroyer:function(e){return L.push(e)},invalidateLayout:function(){return s.layoutCalculated=!1},dispatch:e.dispatch,query:e.query}),G={element:{get:M},childViews:{get:B},rect:{get:j},resting:{get:function(){return v}},isRectIgnored:function(){return C},_read:function(){b=null,E.forEach((function(e){return e._read()})),!(P&&m.width&&m.height)&&R(m,s,f);var e={root:V,props:r,rect:m};D.forEach((function(t){return t(e)}))},_write:function(e,t,n){var o=0===t.length;return A.forEach((function(a){!1===a({props:r,root:V,actions:t,timestamp:e,shouldOptimize:n})&&(o=!1)})),k.forEach((function(t){!1===t.write(e)&&(o=!1)})),E.filter((function(e){return!!e.element.parentNode})).forEach((function(r){r._write(e,S(r,t),n)||(o=!1)})),E.forEach((function(r,a){r.element.parentNode||(V.appendChild(r.element,a),r._read(),r._write(e,S(r,t),n),o=!1)})),v=o,I({props:r,root:V,actions:t,timestamp:e}),o},_destroy:function(){k.forEach((function(e){return e.destroy()})),L.forEach((function(e){e({root:V,props:r})})),E.forEach((function(e){return e._destroy()}))}},q=Object.assign({},U,{rect:{get:function(){return m}}});Object.keys(N).sort((function(e,t){return"styles"===e?1:"styles"===t?-1:0})).forEach((function(e){var t=w[e]({mixinConfig:N[e],viewProps:r,viewState:O,viewInternalAPI:F,viewExternalAPI:G,view:n(q)});t&&k.push(t)}));var V=n(F);y({root:V,props:r});var H=p(s);return E.forEach((function(e,t){V.appendChild(e.element,H+t)})),T(V),n(G)}},x=function(e,t){return function(n){var o=n.root,r=n.props,a=n.actions,i=void 0===a?[]:a,l=n.timestamp,c=n.shouldOptimize;i.filter((function(t){return e[t.type]})).forEach((function(t){return e[t.type]({root:o,props:r,action:t.data,timestamp:l,shouldOptimize:c})})),t&&t({root:o,props:r,actions:i,timestamp:l,shouldOptimize:c})}},I=function(e,t){return t.parentNode.insertBefore(e,t)},O=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},C=function(e){return Array.isArray(e)},A=function(e){return null==e},P=function(e){return e.trim()},D=function(e){return""+e},N=function(e){return"boolean"==typeof e},L=function(e){return N(e)?e:"true"===e},M=function(e){return"string"==typeof e},B=function(e){return m(e)?e:M(e)?D(e).replace(/[a-z]+/gi,""):0},j=function(e){return parseInt(B(e),10)},U=function(e){return parseFloat(B(e))},F=function(e){return m(e)&&isFinite(e)&&Math.floor(e)===e},G=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(F(e))return e;var n=D(e).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,"").trim(),j(n)*t*t):/KB/i.test(n)?(n=n.replace(/KB$i/,"").trim(),j(n)*t):j(n)},q=function(e){return"function"==typeof e},V={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},H=function(e,t,n,o,r){if(null===t)return null;if("function"==typeof t)return t;var a={url:"GET"===n||"PATCH"===n?"?"+e+"=":"",method:n,headers:r,withCredentials:!1,timeout:o,onload:null,ondata:null,onerror:null};if(M(t))return a.url=t,a;if(Object.assign(a,t),M(a.headers)){var i=a.headers.split(/:(.+)/);a.headers={header:i[0],value:i[1]}}return a.withCredentials=L(a.withCredentials),a},z=function(e){return"object"==typeof e&&null!==e},W=function(e){return C(e)?"array":function(e){return null===e}(e)?"null":F(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":function(e){return z(e)&&M(e.url)&&z(e.process)&&z(e.revert)&&z(e.restore)&&z(e.fetch)}(e)?"api":typeof e},Y={array:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return A(e)?[]:C(e)?e:D(e).split(t).map(P).filter((function(e){return e.length}))},boolean:L,int:function(e){return"bytes"===W(e)?G(e):j(e)},number:U,float:U,bytes:G,string:function(e){return q(e)?e:D(e)},function:function(e){return function(e){for(var t=self,n=e.split("."),o=null;o=n.shift();)if(!(t=t[o]))return null;return t}(e)},serverapi:function(e){return(o={}).url=M(n=e)?n:n.url||"",o.timeout=n.timeout?parseInt(n.timeout,10):0,o.headers=n.headers?n.headers:{},t(V,(function(e){o[e]=H(e,n[e],V[e],o.timeout,o.headers)})),o.process=n.process||M(n)||n.url?o.process:null,o.remove=n.remove||null,delete o.headers,o;var n,o},object:function(e){try{return JSON.parse(e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",'))}catch(e){return null}}},X=function(e,t,n){if(e===t)return e;var o,r=W(e);if(r!==n){var a=(o=e,Y[n](o));if(r=W(a),null===a)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+n+'"';e=a}return e},$=function(e){var o={};return t(e,(function(t){var n,r,a,i=e[t];o[t]=(n=i[0],r=i[1],a=n,{enumerable:!0,get:function(){return a},set:function(e){a=X(e,n,r)}})})),n(o)},Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.split(/(?=[A-Z])/).map((function(e){return e.toLowerCase()})).join(t)},Z=function(e){return function(n,o,r){var a={};return t(e,(function(e){var t=Q(e,"_").toUpperCase();a["SET_"+t]=function(o){try{r.options[e]=o.value}catch(e){}n("DID_SET_"+t,{value:r.options[e]})}})),a}},J=function(e){return function(n){var o={};return t(e,(function(e){o["GET_"+Q(e,"_").toUpperCase()]=function(t){return n.options[e]}})),o}},K=1,ee=2,te=3,ne=4,oe=5,re=function(){return Math.random().toString(36).substring(2,11)};function ae(e){this.wrapped=e}function ie(e){var t,n;function o(t,n){try{var a=e[t](n),i=a.value,l=i instanceof ae;Promise.resolve(l?i.wrapped:i).then((function(e){l?o("next",e):r(a.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(e){r("throw",e)}}function r(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?o(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise((function(a,i){var l={key:e,arg:r,resolve:a,reject:i,next:null};n?n=n.next=l:(t=n=l,o(e,r))}))},"function"!=typeof e.return&&(this.return=void 0)}function le(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ce(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1?t-1:0),r=1;r1?t-1:0),r=1;rBrowse',_e.STRING],labelInvalidField:["Field contains invalid files",_e.STRING],labelFileWaitingForSize:["Waiting for size",_e.STRING],labelFileSizeNotAvailable:["Size not available",_e.STRING],labelFileCountSingular:["file in list",_e.STRING],labelFileCountPlural:["files in list",_e.STRING],labelFileLoading:["Loading",_e.STRING],labelFileAdded:["Added",_e.STRING],labelFileLoadError:["Error during load",_e.STRING],labelFileRemoved:["Removed",_e.STRING],labelFileRemoveError:["Error during remove",_e.STRING],labelFileProcessing:["Uploading",_e.STRING],labelFileProcessingComplete:["Upload complete",_e.STRING],labelFileProcessingAborted:["Upload cancelled",_e.STRING],labelFileProcessingError:["Error during upload",_e.STRING],labelFileProcessingRevertError:["Error during revert",_e.STRING],labelTapToCancel:["tap to cancel",_e.STRING],labelTapToRetry:["tap to retry",_e.STRING],labelTapToUndo:["tap to undo",_e.STRING],labelButtonRemoveItem:["Remove",_e.STRING],labelButtonAbortItemLoad:["Abort",_e.STRING],labelButtonRetryItemLoad:["Retry",_e.STRING],labelButtonAbortItemProcessing:["Cancel",_e.STRING],labelButtonUndoItemProcessing:["Undo",_e.STRING],labelButtonRetryItemProcessing:["Retry",_e.STRING],labelButtonProcessItem:["Upload",_e.STRING],iconRemove:['',_e.STRING],iconProcess:['',_e.STRING],iconRetry:['',_e.STRING],iconUndo:['',_e.STRING],iconDone:['',_e.STRING],oninit:[null,_e.FUNCTION],onwarning:[null,_e.FUNCTION],onerror:[null,_e.FUNCTION],onactivatefile:[null,_e.FUNCTION],oninitfile:[null,_e.FUNCTION],onaddfilestart:[null,_e.FUNCTION],onaddfileprogress:[null,_e.FUNCTION],onaddfile:[null,_e.FUNCTION],onprocessfilestart:[null,_e.FUNCTION],onprocessfileprogress:[null,_e.FUNCTION],onprocessfileabort:[null,_e.FUNCTION],onprocessfilerevert:[null,_e.FUNCTION],onprocessfile:[null,_e.FUNCTION],onprocessfiles:[null,_e.FUNCTION],onremovefile:[null,_e.FUNCTION],onpreparefile:[null,_e.FUNCTION],onupdatefiles:[null,_e.FUNCTION],onreorderfiles:[null,_e.FUNCTION],beforeDropFile:[null,_e.FUNCTION],beforeAddFile:[null,_e.FUNCTION],beforeRemoveFile:[null,_e.FUNCTION],beforePrepareFile:[null,_e.FUNCTION],stylePanelLayout:[null,_e.STRING],stylePanelAspectRatio:[null,_e.STRING],styleItemPanelAspectRatio:[null,_e.STRING],styleButtonRemoveItemPosition:["left",_e.STRING],styleButtonProcessItemPosition:["right",_e.STRING],styleLoadIndicatorPosition:["right",_e.STRING],styleProgressIndicatorPosition:["right",_e.STRING],styleButtonRemoveItemAlign:[!1,_e.BOOLEAN],files:[[],_e.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],_e.ARRAY]},xe=function(e,t){return A(t)?e[0]||null:F(t)?e[t]||null:("object"==typeof t&&(t=t.id),e.find((function(e){return e.id===t}))||null)},Ie=function(e){if(A(e))return e;if(/:/.test(e)){var t=e.split(":");return t[1]/t[0]}return parseFloat(e)},Oe=function(e){return e.filter((function(e){return!e.archived}))},Ce={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},Ae=null,Pe=[ge.LOAD_ERROR,ge.PROCESSING_ERROR,ge.PROCESSING_REVERT_ERROR],De=[ge.LOADING,ge.PROCESSING,ge.PROCESSING_QUEUED,ge.INIT],Ne=[ge.PROCESSING_COMPLETE],Le=function(e){return Pe.includes(e.status)},Me=function(e){return De.includes(e.status)},Be=function(e){return Ne.includes(e.status)},je=function(e){return z(e.options.server)&&(z(e.options.server.process)||q(e.options.server.process))},Ue=function(e){return{GET_STATUS:function(){var t=Oe(e.items),n=Ce.EMPTY,o=Ce.ERROR,r=Ce.BUSY,a=Ce.IDLE,i=Ce.READY;return 0===t.length?n:t.some(Le)?o:t.some(Me)?r:t.some(Be)?i:a},GET_ITEM:function(t){return xe(e.items,t)},GET_ACTIVE_ITEM:function(t){return xe(Oe(e.items),t)},GET_ACTIVE_ITEMS:function(){return Oe(e.items)},GET_ITEMS:function(){return e.items},GET_ITEM_NAME:function(t){var n=xe(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:function(t){var n=xe(e.items,t);return n?n.fileSize:null},GET_STYLES:function(){return Object.keys(e.options).filter((function(e){return/^style/.test(e)})).map((function(t){return{name:t,value:e.options[t]}}))},GET_PANEL_ASPECT_RATIO:function(){return/circle/.test(e.options.stylePanelLayout)?1:Ie(e.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return e.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return Oe(e.items).filter((function(e){return e.status===t}))},GET_TOTAL_ITEMS:function(){return Oe(e.items).length},SHOULD_UPDATE_FILE_INPUT:function(){return e.options.storeAsFile&&function(){if(null===Ae)try{var e=new DataTransfer;e.items.add(new File(["hello world"],"This_Works.txt"));var t=document.createElement("input");t.setAttribute("type","file"),t.files=e.files,Ae=1===t.files.length}catch(e){Ae=!1}return Ae}()&&!je(e)},IS_ASYNC:function(){return je(e)},GET_FILE_SIZE_LABELS:function(e){return{labelBytes:e("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:e("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:e("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:e("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0}}}},Fe=function(e,t,n){return Math.max(Math.min(n,e),t)},Ge=function(e){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e)},qe=function(e){return(""+e).split("/").pop().split("?").shift()},Ve=function(e){return e.split(".").pop()},He=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(t+e).slice(-t.length)},ze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return e.getFullYear()+"-"+He(e.getMonth()+1,"00")+"-"+He(e.getDate(),"00")+"_"+He(e.getHours(),"00")+"-"+He(e.getMinutes(),"00")+"-"+He(e.getSeconds(),"00")},We=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r="string"==typeof n?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return r.lastModifiedDate=new Date,e._relativePath&&(r._relativePath=e._relativePath),M(t)||(t=ze()),t&&null===o&&Ve(t)?r.name=t:(o=o||function(e){if("string"!=typeof e)return"";var t=e.split("/").pop();return/svg/.test(t)?"svg":/zip|compressed/.test(t)?"zip":/plain/.test(t)?"txt":/msword/.test(t)?"doc":/[a-z]+/.test(t)?"jpeg"===t?"jpg":t:""}(r.type),r.name=t+(o?"."+o:"")),r},Ye=function(e,t){var n=window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(n){var o=new n;return o.append(e),o.getBlob(t)}return new Blob([e],{type:t})},Xe=function(e){return(/^data:(.+);/.exec(e)||[])[1]||null},$e=function(e){var t=Xe(e),n=function(e){return atob(function(e){return e.split(",")[1].replace(/\s/g,"")}(e))}(e);return function(e,t){for(var n=new ArrayBuffer(e.length),o=new Uint8Array(n),r=0;r=200&&i.status<300?o.onload(i):o.onerror(i)},i.onerror=function(){return o.onerror(i)},i.onabort=function(){r=!0,o.onabort()},i.ontimeout=function(){return o.ontimeout(i)},i.open(n.method,t,!0),F(n.timeout)&&(i.timeout=n.timeout),Object.keys(n.headers).forEach((function(e){var t=unescape(encodeURIComponent(n.headers[e]));i.setRequestHeader(e,t)})),n.responseType&&(i.responseType=n.responseType),n.withCredentials&&(i.withCredentials=!0),i.send(e),o},ot=function(e,t,n,o){return{type:e,code:t,body:n,headers:o}},rt=function(e){return function(t){e(ot("error",0,"Timeout",t.getAllResponseHeaders()))}},at=function(e){return/\?/.test(e)},it=function(){for(var e="",t=arguments.length,n=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!M(t.url))return null;var n=t.onload||function(e){return e},o=t.onerror||function(e){return null};return function(r,a,i,l,c,s){var u=nt(r,it(e,t.url),Object.assign({},t,{responseType:"blob"}));return u.onload=function(e){var o=e.getAllResponseHeaders(),i=Ke(o).name||qe(r);a(ot("load",e.status,"HEAD"===t.method?null:We(n(e.response),i),o))},u.onerror=function(e){i(ot("error",e.status,o(e.response)||e.statusText,e.getAllResponseHeaders()))},u.onheaders=function(e){s(ot("headers",e.status,null,e.getAllResponseHeaders()))},u.ontimeout=rt(i),u.onprogress=l,u.onabort=c,u}},ct=0,st=1,ut=2,pt=3,dt=4,ft=function(e,t,n,o,r,a,i,l,c,s,u){for(var p=[],d=u.chunkTransferId,f=u.chunkServer,h=u.chunkSize,m=u.chunkRetryDelays,g={serverId:d,aborted:!1},b=t.ondata||function(e){return e},y=t.onload||function(e,t){return"HEAD"===t?e.getResponseHeader("Upload-Offset"):e.response},v=t.onerror||function(e){return null},_=Math.floor(o.size/h),E=0;E<=_;E++){var S=E*h,k=o.slice(S,S+h,"application/offset+octet-stream");p[E]={index:E,size:k.size,offset:S,data:k,file:o,progress:0,retries:ce(m),status:ct,error:null,request:null,timeout:null}}var w,R,T,x,I=function(e){return e.status===ct||e.status===pt},O=function(t){if(!g.aborted)if(t=t||p.find(I)){t.status=ut,t.progress=null;var n=f.ondata||function(e){return e},r=f.onerror||function(e){return null},l=it(e,f.url,g.serverId),s="function"==typeof f.headers?f.headers(t):Object.assign({},f.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":t.offset,"Upload-Length":o.size,"Upload-Name":o.name}),u=t.request=nt(n(t.data),l,Object.assign({},f,{headers:s}));u.onload=function(){t.status=st,t.request=null,P()},u.onprogress=function(e,n,o){t.progress=e?n:null,A()},u.onerror=function(e){t.status=pt,t.request=null,t.error=r(e.response)||e.statusText,C(t)||i(ot("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},u.ontimeout=function(e){t.status=pt,t.request=null,C(t)||rt(i)(e)},u.onabort=function(){t.status=ct,t.request=null,c()}}else p.every((function(e){return e.status===st}))&&a(g.serverId)},C=function(e){return 0!==e.retries.length&&(e.status=dt,clearTimeout(e.timeout),e.timeout=setTimeout((function(){O(e)}),e.retries.shift()),!0)},A=function(){var e=p.reduce((function(e,t){return null===e||null===t.progress?null:e+t.progress}),0);if(null===e)return l(!1,0,0);var t=p.reduce((function(e,t){return e+t.size}),0);l(!0,e,t)},P=function(){p.filter((function(e){return e.status===ut})).length>=1||O()};return g.serverId?(w=function(e){g.aborted||(p.filter((function(t){return t.offset0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;return"function"==typeof t?function(){for(var e=arguments.length,r=new Array(e),a=0;ao.chunkSize,f=p&&(d||o.chunkForce);if(r instanceof Blob&&f)return ft(e,t,n,r,a,i,l,c,s,u,o);var h=t.ondata||function(e){return e},m=t.onload||function(e){return e},g=t.onerror||function(e){return null},b="function"==typeof t.headers?t.headers(r,a)||{}:Object.assign({},t.headers),y=Object.assign({},t,{headers:b}),v=new FormData;z(a)&&v.append(n,JSON.stringify(a)),(r instanceof Blob?[{name:null,file:r}]:r).forEach((function(e){v.append(n,e.file,null===e.name?e.file.name:""+e.name+e.file.name)}));var _=nt(h(v),it(e,t.url),y);return _.onload=function(e){i(ot("load",e.status,m(e.response),e.getAllResponseHeaders()))},_.onerror=function(e){l(ot("error",e.status,g(e.response)||e.statusText,e.getAllResponseHeaders()))},_.ontimeout=rt(l),_.onprogress=c,_.onabort=s,_}}}(e,t,n,o):null},mt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!M(t.url))return function(e,t){return t()};var n=t.onload||function(e){return e},o=t.onerror||function(e){return null};return function(r,a,i){var l=nt(r,e+t.url,t);return l.onload=function(e){a(ot("load",e.status,n(e.response),e.getAllResponseHeaders()))},l.onerror=function(e){i(ot("error",e.status,o(e.response)||e.statusText,e.getAllResponseHeaders()))},l.ontimeout=rt(i),l}},gt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e+Math.random()*(t-e)},bt=function(e,t){var n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},o=t.allowMinimumUploadDuration,r=function(){n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},a=o?function(){return n.progress?Math.min(n.progress,n.perceivedProgress):null}:function(){return n.progress||null},i=o?function(){return Math.min(n.duration,n.perceivedDuration)}:function(){return n.duration},l=Object.assign({},de(),{process:function(t,r){var a=function(){0!==n.duration&&null!==n.progress&&l.fire("progress",l.getProgress())},i=function(){n.complete=!0,l.fire("load-perceived",n.response.body)};l.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,r=null,a=Date.now();return t>0&&function i(){var l=Date.now()-a,c=gt(n,o);l+c>t&&(c=l+c-t);var s=l/t;s>=1||document.hidden?e(1):(e(s),r=setTimeout(i,c))}(),{clear:function(){clearTimeout(r)}}}((function(e){n.perceivedProgress=e,n.perceivedDuration=Date.now()-n.timestamp,a(),n.response&&1===n.perceivedProgress&&!n.complete&&i()}),o?gt(750,1500):0),n.request=e(t,r,(function(e){n.response=z(e)?e:{type:"load",code:200,body:""+e,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,l.fire("load",n.response.body),(!o||o&&1===n.perceivedProgress)&&i()}),(function(e){n.perceivedPerformanceUpdater.clear(),l.fire("error",z(e)?e:{type:"error",code:0,body:""+e})}),(function(e,t,o){n.duration=Date.now()-n.timestamp,n.progress=e?t/o:null,a()}),(function(){n.perceivedPerformanceUpdater.clear(),l.fire("abort",n.response?n.response.body:null)}),(function(e){l.fire("transfer",e)}))},abort:r,getProgress:a,getDuration:i,reset:function(){r(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null}});return l},yt=function(e){return e.substring(0,e.lastIndexOf("."))||e},vt=function(e){return!!(e instanceof File||e instanceof Blob&&e.name)},_t=function e(t){if(!z(t))return t;var n=C(t)?[]:{};for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];n[o]=r&&z(r)?e(r):r}return n},Et=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=re(),a={archived:!1,frozen:!1,released:!1,source:null,file:o,serverFileReference:t,transferId:null,processingAborted:!1,status:t?ge.PROCESSING_COMPLETE:ge.INIT,activeLoader:null,activeProcessor:null},i=null,l={},c=function(e){return a.status=e},s=function(e){if(!a.released&&!a.frozen){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},o=n.query,r=n.success,a=void 0===r?function(){}:r,i=n.failure,l=void 0===i?function(){}:i,c=le(n,["query","success","failure"]),s=xe(e.items,o);s?t(s,a,l,c||{}):l({error:ot("error",0,"Item not found"),file:null})}},Ct=function(e,t,n){return{ABORT_ALL:function(){Oe(n.items).forEach((function(e){e.freeze(),e.abortLoad(),e.abortProcessing()}))},DID_SET_FILES:function(t){var o=t.value,r=(void 0===o?[]:o).map((function(e){return{source:e.source?e.source:e,options:e.options}})),a=Oe(n.items);a.forEach((function(t){r.find((function(e){return e.source===t.source||e.source===t.file}))||e("REMOVE_ITEM",{query:t,remove:!1})})),a=Oe(n.items),r.forEach((function(t,n){a.find((function(e){return e.source===t.source||e.file===t.source}))||e("ADD_ITEM",Object.assign({},t,{interactionMethod:oe,index:n}))}))},DID_UPDATE_ITEM_METADATA:function(o){var r=o.id,a=o.action,i=o.change;i.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout((function(){var o,l=St(n.items,r);if(t("IS_ASYNC")){l.origin===be.LOCAL&&e("DID_LOAD_ITEM",{id:l.id,error:null,serverFileReference:l.source});var c=function(){setTimeout((function(){e("REQUEST_ITEM_PROCESSING",{query:r})}),32)};return l.status===ge.PROCESSING_COMPLETE?(o=n.options.instantUpload,void l.revert(mt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(o?c:function(){}).catch((function(){}))):l.status===ge.PROCESSING?function(e){l.abortProcessing().then(e?c:function(){})}(n.options.instantUpload):void(n.options.instantUpload&&c())}Se("SHOULD_PREPARE_OUTPUT",!1,{item:l,query:t,action:a,change:i}).then((function(n){var o=t("GET_BEFORE_PREPARE_FILE");o&&(n=o(l,n)),n&&e("REQUEST_PREPARE_OUTPUT",{query:r,item:l,success:function(t){e("DID_PREPARE_OUTPUT",{id:r,file:t})}},!0)}))}),0))},MOVE_ITEM:function(e){var t=e.query,o=e.index,r=xe(n.items,t);if(r){var a=n.items.indexOf(r);a!==(o=Fe(o,0,n.items.length-1))&&n.items.splice(o,0,n.items.splice(a,1)[0])}},SORT:function(o){var r=o.compare;It(n,r),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(n){var o=n.items,r=n.index,a=n.interactionMethod,i=n.success,l=void 0===i?function(){}:i,c=n.failure,s=void 0===c?function(){}:c,u=r;if(-1===r||void 0===r){var p=t("GET_ITEM_INSERT_LOCATION"),d=t("GET_TOTAL_ITEMS");u="before"===p?0:d}var f=t("GET_IGNORED_FILES"),h=o.filter((function(e){return vt(e)?!f.includes(e.name.toLowerCase()):!A(e)})).map((function(t){return new Promise((function(n,o){e("ADD_ITEM",{interactionMethod:a,source:t.source||t,success:n,failure:o,index:u++,options:t.options||{}})}))}));Promise.all(h).then(l).catch(s)},ADD_ITEM:function(o){var r=o.source,a=o.index,i=void 0===a?-1:a,l=o.interactionMethod,c=o.success,s=void 0===c?function(){}:c,u=o.failure,p=void 0===u?function(){}:u,d=o.options,f=void 0===d?{}:d;if(A(r))p({error:ot("error",0,"No source"),file:null});else if(!vt(r)||!n.options.ignoredFiles.includes(r.name.toLowerCase())){if(!function(e){var t=Oe(e.items).length;if(!e.options.allowMultiple)return 0===t;var n=e.options.maxFiles;return null===n||t=400&&t.code<500)return e("DID_THROW_ITEM_INVALID",{id:_,error:t,status:{main:o,sub:t.code+" ("+t.body+")"}}),void p({error:t,file:me(y)});e("DID_THROW_ITEM_LOAD_ERROR",{id:_,error:t,status:{main:o,sub:n.options.labelTapToRetry}})})),y.on("load-file-error",(function(t){e("DID_THROW_ITEM_INVALID",{id:_,error:t.status,status:t.status}),p({error:t.status,file:me(y)})})),y.on("load-abort",(function(){e("REMOVE_ITEM",{query:_})})),y.on("load-skip",(function(){y.on("metadata-update",(function(t){vt(y.file)&&e("DID_UPDATE_ITEM_METADATA",{id:_,change:t})})),e("COMPLETE_LOAD_ITEM",{query:_,item:y,data:{source:r,success:s}})})),y.on("load",(function(){var o=function(o){o?(y.on("metadata-update",(function(t){e("DID_UPDATE_ITEM_METADATA",{id:_,change:t})})),Se("SHOULD_PREPARE_OUTPUT",!1,{item:y,query:t}).then((function(o){var a=t("GET_BEFORE_PREPARE_FILE");a&&(o=a(y,o));var i=function(){e("COMPLETE_LOAD_ITEM",{query:_,item:y,data:{source:r,success:s}}),Tt(e,n)};o?e("REQUEST_PREPARE_OUTPUT",{query:_,item:y,success:function(t){e("DID_PREPARE_OUTPUT",{id:_,file:t}),i()}},!0):i()}))):e("REMOVE_ITEM",{query:_})};Se("DID_LOAD_ITEM",y,{query:t,dispatch:e}).then((function(){xt(t("GET_BEFORE_ADD_FILE"),me(y)).then(o)})).catch((function(t){if(!t||!t.error||!t.status)return o(!1);e("DID_THROW_ITEM_INVALID",{id:_,error:t.error,status:t.status})}))})),y.on("process-start",(function(){e("DID_START_ITEM_PROCESSING",{id:_})})),y.on("process-progress",(function(t){e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:_,progress:t})})),y.on("process-error",(function(t){e("DID_THROW_ITEM_PROCESSING_ERROR",{id:_,error:t,status:{main:Rt(n.options.labelFileProcessingError)(t),sub:n.options.labelTapToRetry}})})),y.on("process-revert-error",(function(t){e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:_,error:t,status:{main:Rt(n.options.labelFileProcessingRevertError)(t),sub:n.options.labelTapToRetry}})})),y.on("process-complete",(function(t){e("DID_COMPLETE_ITEM_PROCESSING",{id:_,error:null,serverFileReference:t}),e("DID_DEFINE_VALUE",{id:_,value:t})})),y.on("process-abort",(function(){e("DID_ABORT_ITEM_PROCESSING",{id:_})})),y.on("process-revert",(function(){e("DID_REVERT_ITEM_PROCESSING",{id:_}),e("DID_DEFINE_VALUE",{id:_,value:null})})),e("DID_ADD_ITEM",{id:_,index:i,interactionMethod:l}),Tt(e,n);var E=n.options.server||{},S=E.url,k=E.load,w=E.restore,R=E.fetch;y.load(r,et(b===be.INPUT?M(r)&&function(e){return(e.indexOf(":")>-1||e.indexOf("//")>-1)&&wt(location.href)!==wt(e)}(r)&&R?lt(S,R):kt:lt(S,b===be.LIMBO?w:k)),(function(e,n,o){Se("LOAD_FILE",e,{query:t}).then(n).catch(o)}))}},REQUEST_PREPARE_OUTPUT:function(e){var n=e.item,o=e.success,r=e.failure,a=void 0===r?function(){}:r,i={error:ot("error",0,"Item not found"),file:null};if(n.archived)return a(i);Se("PREPARE_OUTPUT",n.file,{query:t,item:n}).then((function(e){Se("COMPLETE_PREPARE_OUTPUT",e,{query:t,item:n}).then((function(e){if(n.archived)return a(i);o(e)}))}))},COMPLETE_LOAD_ITEM:function(o){var r=o.item,a=o.data,i=a.success,l=a.source,c=t("GET_ITEM_INSERT_LOCATION");if(q(c)&&l&&It(n,c),e("DID_LOAD_ITEM",{id:r.id,error:null,serverFileReference:r.origin===be.INPUT?null:l}),i(me(r)),r.origin!==be.LOCAL)return r.origin===be.LIMBO?(e("DID_COMPLETE_ITEM_PROCESSING",{id:r.id,error:null,serverFileReference:l}),void e("DID_DEFINE_VALUE",{id:r.id,value:r.serverId||l})):void(t("IS_ASYNC")&&n.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:r.id}));e("DID_LOAD_LOCAL_ITEM",{id:r.id})},RETRY_ITEM_LOAD:Ot(n,(function(e){e.retryLoad()})),REQUEST_ITEM_PREPARE:Ot(n,(function(t,n,o){e("REQUEST_PREPARE_OUTPUT",{query:t.id,item:t,success:function(o){e("DID_PREPARE_OUTPUT",{id:t.id,file:o}),n({file:t,output:o})},failure:o},!0)})),REQUEST_ITEM_PROCESSING:Ot(n,(function(o,r,a){if(o.status===ge.IDLE||o.status===ge.PROCESSING_ERROR)o.status!==ge.PROCESSING_QUEUED&&(o.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:o.id}),e("PROCESS_ITEM",{query:o,success:r,failure:a},!0));else{var i=function(){return e("REQUEST_ITEM_PROCESSING",{query:o,success:r,failure:a})},l=function(){return document.hidden?i():setTimeout(i,32)};o.status===ge.PROCESSING_COMPLETE||o.status===ge.PROCESSING_REVERT_ERROR?o.revert(mt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(l).catch((function(){})):o.status===ge.PROCESSING&&o.abortProcessing().then(l)}})),PROCESS_ITEM:Ot(n,(function(o,r,a){var i=t("GET_MAX_PARALLEL_UPLOADS");if(t("GET_ITEMS_BY_STATUS",ge.PROCESSING).length!==i){if(o.status!==ge.PROCESSING){var l=function t(){var o=n.processingQueue.shift();if(o){var r=o.id,a=o.success,i=o.failure,l=xe(n.items,r);l&&!l.archived?e("PROCESS_ITEM",{query:r,success:a,failure:i},!0):t()}};o.onOnce("process-complete",(function(){r(me(o)),l();var a=n.options.server;if(n.options.instantUpload&&o.origin===be.LOCAL&&q(a.remove)){var i=function(){};o.origin=be.LIMBO,n.options.server.remove(o.source,i,i)}t("GET_ITEMS_BY_STATUS",ge.PROCESSING_COMPLETE).length===n.items.length&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")})),o.onOnce("process-error",(function(e){a({error:e,file:me(o)}),l()}));var c=n.options;o.process(bt(ht(c.server.url,c.server.process,c.name,{chunkTransferId:o.transferId,chunkServer:c.server.patch,chunkUploads:c.chunkUploads,chunkForce:c.chunkForce,chunkSize:c.chunkSize,chunkRetryDelays:c.chunkRetryDelays}),{allowMinimumUploadDuration:t("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),(function(n,r,a){Se("PREPARE_OUTPUT",n,{query:t,item:o}).then((function(t){e("DID_PREPARE_OUTPUT",{id:o.id,file:t}),r(t)})).catch(a)}))}}else n.processingQueue.push({id:o.id,success:r,failure:a})})),RETRY_ITEM_PROCESSING:Ot(n,(function(t){e("REQUEST_ITEM_PROCESSING",{query:t})})),REQUEST_REMOVE_ITEM:Ot(n,(function(n){xt(t("GET_BEFORE_REMOVE_FILE"),me(n)).then((function(t){t&&e("REMOVE_ITEM",{query:n})}))})),RELEASE_ITEM:Ot(n,(function(e){e.release()})),REMOVE_ITEM:Ot(n,(function(o,r,a,i){var l=function(){var t=o.id;St(n.items,t).archive(),e("DID_REMOVE_ITEM",{error:null,id:t,item:o}),Tt(e,n),r(me(o))},c=n.options.server;o.origin===be.LOCAL&&c&&q(c.remove)&&!1!==i.remove?(e("DID_START_ITEM_REMOVE",{id:o.id}),c.remove(o.source,(function(){return l()}),(function(t){e("DID_THROW_ITEM_REMOVE_ERROR",{id:o.id,error:ot("error",0,t,null),status:{main:Rt(n.options.labelFileRemoveError)(t),sub:n.options.labelTapToRetry}})}))):((i.revert&&o.origin!==be.LOCAL&&null!==o.serverId||n.options.chunkUploads&&o.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&o.revert(mt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),l())})),ABORT_ITEM_LOAD:Ot(n,(function(e){e.abortLoad()})),ABORT_ITEM_PROCESSING:Ot(n,(function(t){t.serverId?e("REVERT_ITEM_PROCESSING",{id:t.id}):t.abortProcessing().then((function(){n.options.instantUpload&&e("REMOVE_ITEM",{query:t.id})}))})),REQUEST_REVERT_ITEM_PROCESSING:Ot(n,(function(o){if(n.options.instantUpload){var r=function(t){t&&e("REVERT_ITEM_PROCESSING",{query:o})},a=t("GET_BEFORE_REMOVE_FILE");if(!a)return r(!0);var i=a(me(o));return null==i?r(!0):"boolean"==typeof i?r(i):void("function"==typeof i.then&&i.then(r))}e("REVERT_ITEM_PROCESSING",{query:o})})),REVERT_ITEM_PROCESSING:Ot(n,(function(o){o.revert(mt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then((function(){(n.options.instantUpload||function(e){return!vt(e.file)}(o))&&e("REMOVE_ITEM",{query:o.id})})).catch((function(){}))})),SET_OPTIONS:function(t){var n=t.options,o=Object.keys(n),r=At.filter((function(e){return o.includes(e)}));[].concat(ce(r),ce(Object.keys(n).filter((function(e){return!r.includes(e)})))).forEach((function(t){e("SET_"+Q(t,"_").toUpperCase(),{value:n[t]})}))}}},At=["server"],Pt=function(e){return document.createElement(e)},Dt=function(e,t){var n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},Nt=function(e,t,n,o){var r=(o%360-90)*Math.PI/180;return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}},Lt=function(e,t,n,o,r){var a=1;return r>o&&r-o<=.5&&(a=0),o>r&&o-r>=.5&&(a=0),function(e,t,n,o,r,a){var i=Nt(e,t,n,r),l=Nt(e,t,n,o);return["M",i.x,i.y,"A",n,n,0,a,0,l.x,l.y].join(" ")}(e,t,n,360*Math.min(.9999,o),360*Math.min(.9999,r),a)},Mt=T({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:function(e){var t=e.root,n=e.props;n.spin=!1,n.progress=0,n.opacity=0;var o=i("svg");t.ref.path=i("path",{"stroke-width":2,"stroke-linecap":"round"}),o.appendChild(t.ref.path),t.ref.svg=o,t.appendChild(o)},write:function(e){var t=e.root,n=e.props;if(0!==n.opacity){n.align&&(t.element.dataset.align=n.align);var r=parseInt(o(t.ref.path,"stroke-width"),10),a=.5*t.rect.element.width,i=0,l=0;n.spin?(i=0,l=.5):(i=0,l=n.progress);var c=Lt(a,a,a-r,i,l);o(t.ref.path,"d",c),o(t.ref.path,"stroke-opacity",n.spin||n.progress>0?1:0)}},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),Bt=T({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:function(e){var t=e.root,n=e.props;t.element.innerHTML=(n.icon||"")+""+n.label+"",n.isDisabled=!1},write:function(e){var t=e.root,n=e.props,r=n.isDisabled,a=t.query("GET_DISABLED")||0===n.opacity;a&&!r?(n.isDisabled=!0,o(t.element,"disabled","disabled")):!a&&r&&(n.isDisabled=!1,t.element.removeAttribute("disabled"))}}),jt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=o.labelBytes,a=void 0===r?"bytes":r,i=o.labelKilobytes,l=void 0===i?"KB":i,c=o.labelMegabytes,s=void 0===c?"MB":c,u=o.labelGigabytes,p=void 0===u?"GB":u,d=n,f=n*n,h=n*n*n;return(e=Math.round(Math.abs(e)))0&&(t.height=t.ref.container.rect.element.height)),r&&(t.ref.panel.height=null),t.ref.panel.height=t.height})),vn=T({create:function(e){var t=e.root,n=e.props;if(t.ref.handleClick=function(e){return t.dispatch("DID_ACTIVATE_ITEM",{id:n.id})},t.element.id="filepond--item-"+n.id,t.element.addEventListener("click",t.ref.handleClick),t.ref.container=t.appendChildView(t.createChildView(un,{id:n.id})),t.ref.panel=t.appendChildView(t.createChildView(fn,{name:"item-panel"})),t.ref.panel.height=null,n.markedForRemoval=!1,t.query("GET_ALLOW_REORDER")){t.element.dataset.dragState="idle";t.element.addEventListener("pointerdown",(function(e){if(e.isPrimary){var o=!1,r={x:e.pageX,y:e.pageY};n.dragOrigin={x:t.translateX,y:t.translateY},n.dragCenter={x:e.offsetX,y:e.offsetY};var a=(u=t.query("GET_ACTIVE_ITEMS"),p=u.map((function(e){return e.id})),d=void 0,{setIndex:function(e){d=e},getIndex:function(){return d},getItemIndex:function(e){return p.indexOf(e.id)}});t.dispatch("DID_GRAB_ITEM",{id:n.id,dragState:a});var i=function(e){e.isPrimary&&(e.stopPropagation(),e.preventDefault(),n.dragOffset={x:e.pageX-r.x,y:e.pageY-r.y},n.dragOffset.x*n.dragOffset.x+n.dragOffset.y*n.dragOffset.y>16&&!o&&(o=!0,t.element.removeEventListener("click",t.ref.handleClick)),t.dispatch("DID_DRAG_ITEM",{id:n.id,dragState:a}))},l=function(e){e.isPrimary&&(n.dragOffset={x:e.pageX-r.x,y:e.pageY-r.y},s())},c=function(){s()},s=function(){document.removeEventListener("pointercancel",c),document.removeEventListener("pointermove",i),document.removeEventListener("pointerup",l),t.dispatch("DID_DROP_ITEM",{id:n.id,dragState:a}),o&&setTimeout((function(){return t.element.addEventListener("click",t.ref.handleClick)}),0)};document.addEventListener("pointercancel",c),document.addEventListener("pointermove",i),document.addEventListener("pointerup",l)}var u,p,d}))}},write:yn,destroy:function(e){var t=e.root,n=e.props;t.element.removeEventListener("click",t.ref.handleClick),t.dispatch("RELEASE_ITEM",{query:n.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:mn,scaleY:mn,translateX:hn,translateY:hn,opacity:{type:"tween",duration:150}}}}),En=function(e,t){return Math.max(1,Math.floor((e+1)/t))},Sn=function(e,t,n){if(n){var o=e.rect.element.width,r=t.length,a=null;if(0===r||n.topy){if(n.left3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=n,Date.now()>e.spawnDate&&(0===e.opacity&&Rn(e,t,n,o,r),e.scaleX=1,e.scaleY=1,e.opacity=1))},Rn=function(e,t,n,o,r){e.interactionMethod===oe?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===ee?(e.translateX=null,e.translateX=t-20*o,e.translateY=null,e.translateY=n-10*r,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===te?(e.translateY=null,e.translateY=n-30):e.interactionMethod===K&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},Tn=function(e){return e.rect.element.height+.5*e.rect.element.marginBottom+.5*e.rect.element.marginTop},xn=x({DID_ADD_ITEM:function(e){var t=e.root,n=e.action,o=n.id,r=n.index,a=n.interactionMethod;t.ref.addIndex=r;var i=Date.now(),l=i,c=1;if(a!==oe){c=0;var s=t.query("GET_ITEM_INSERT_INTERVAL"),u=i-t.ref.lastItemSpanwDate;l=uc&&(f=c);var h=Math.floor(c/f+1);kn.setHeight=p*h,kn.setWidth=d*f;var m={y:Math.floor(u.y/p),x:Math.floor(u.x/d),getGridIndex:function(){return u.y>kn.getHeight||u.y<0||u.x>kn.getWidth||u.x<0?s:this.y*f+this.x},getColIndex:function(){for(var e=n.query("GET_ACTIVE_ITEMS"),t=n.childViews.filter((function(e){return e.rect.element.height})),o=e.map((function(e){return t.find((function(t){return t.id===e.id}))})),r=o.findIndex((function(e){return e===l})),a=Tn(l),i=o.length,c=i,s=0,p=0,d=0;dd){if(u.y1?m.getGridIndex():m.getColIndex();n.dispatch("MOVE_ITEM",{query:l,index:g});var b=a.getIndex();if(void 0===b||b!==g){if(a.setIndex(g),void 0===b)return;n.dispatch("DID_REORDER_ITEMS",{items:n.query("GET_ACTIVE_ITEMS"),origin:s,target:g})}}}}),In=T({create:function(e){var t=e.root;o(t.element,"role","list"),t.ref.lastItemSpanwDate=Date.now()},write:function(e){var t=e.root,n=e.props,o=e.actions,r=e.shouldOptimize;xn({root:t,props:n,actions:o});var a=n.dragCoordinates,i=t.rect.element.width,l=t.childViews.filter((function(e){return e.rect.element.height})),c=t.query("GET_ACTIVE_ITEMS").map((function(e){return l.find((function(t){return t.id===e.id}))})).filter((function(e){return e})),s=a?Sn(t,c,a):null,u=t.ref.addIndex||null;t.ref.addIndex=null;var p=0,d=0,f=0;if(0!==c.length){var h=c[0].rect.element,m=h.marginTop+h.marginBottom,g=h.marginLeft+h.marginRight,b=h.width+g,y=h.height+m,v=En(i,b);if(1===v){var _=0,E=0;c.forEach((function(e,t){if(s){var n=t-s;E=-2===n?.25*-m:-1===n?.75*-m:0===n?.75*m:1===n?.25*m:0}r&&(e.translateX=null,e.translateY=null),e.markedForRemoval||wn(e,0,_+E);var o=(e.rect.element.height+m)*(e.markedForRemoval?e.opacity:1);_+=o}))}else{var S=0,k=0;c.forEach((function(e,t){t===s&&(p=1),t===u&&(f+=1),e.markedForRemoval&&e.opacity<.5&&(d-=1);var n=t+f+p+d,o=n%v,a=Math.floor(n/v),i=o*b,l=a*y,c=Math.sign(i-S),h=Math.sign(l-k);S=i,k=l,e.markedForRemoval||(r&&(e.translateX=null,e.translateY=null),wn(e,i,l,c,h))}))}}},tag:"ul",name:"list",didWriteView:function(e){var t=e.root;t.childViews.filter((function(e){return e.markedForRemoval&&0===e.opacity&&e.resting})).forEach((function(e){e._destroy(),t.removeChildView(e)}))},filterFrameActionsForChild:function(e,t){return t.filter((function(t){return!t.data||!t.data.id||e.id===t.data.id}))},mixins:{apis:["dragCoordinates"]}}),On=x({DID_DRAG:function(e){var t=e.root,n=e.props,o=e.action;t.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(n.dragCoordinates={left:o.position.scopeLeft-t.ref.list.rect.element.left,top:o.position.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},DID_END_DRAG:function(e){e.props.dragCoordinates=null}}),Cn=T({create:function(e){var t=e.root,n=e.props;t.ref.list=t.appendChildView(t.createChildView(In)),n.dragCoordinates=null,n.overflowing=!1},write:function(e){var t=e.root,n=e.props,o=e.actions;if(On({root:t,props:n,actions:o}),t.ref.list.dragCoordinates=n.dragCoordinates,n.overflowing&&!n.overflow&&(n.overflowing=!1,t.element.dataset.state="",t.height=null),n.overflow){var r=Math.round(n.overflow);r!==t.height&&(n.overflowing=!0,t.element.dataset.state="overflow",t.height=r)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),An=function(e,t,n){n?o(e,t,arguments.length>3&&void 0!==arguments[3]?arguments[3]:""):e.removeAttribute(t)},Pn=function(e){var t=e.root,n=e.action;t.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&An(t.element,"accept",!!n.value,n.value?n.value.join(","):"")},Dn=function(e){var t=e.root,n=e.action;An(t.element,"multiple",n.value)},Nn=function(e){var t=e.root,n=e.action;An(t.element,"webkitdirectory",n.value)},Ln=function(e){var t=e.root,n=t.query("GET_DISABLED"),o=t.query("GET_ALLOW_BROWSE"),r=n||!o;An(t.element,"disabled",r)},Mn=function(e){var t=e.root;e.action.value?0===t.query("GET_TOTAL_ITEMS")&&An(t.element,"required",!0):An(t.element,"required",!1)},Bn=function(e){var t=e.root,n=e.action;An(t.element,"capture",!!n.value,!0===n.value?"":n.value)},jn=function(e){var t=e.root,n=t.element;t.query("GET_TOTAL_ITEMS")>0?(An(n,"required",!1),An(n,"name",!1)):(An(n,"name",!0,t.query("GET_NAME")),t.query("GET_CHECK_VALIDITY")&&n.setCustomValidity(""),t.query("GET_REQUIRED")&&An(n,"required",!0))},Un=T({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:function(e){var t=e.root,n=e.props;t.element.id="filepond--browser-"+n.id,o(t.element,"name",t.query("GET_NAME")),o(t.element,"aria-controls","filepond--assistant-"+n.id),o(t.element,"aria-labelledby","filepond--drop-label-"+n.id),Pn({root:t,action:{value:t.query("GET_ACCEPTED_FILE_TYPES")}}),Dn({root:t,action:{value:t.query("GET_ALLOW_MULTIPLE")}}),Nn({root:t,action:{value:t.query("GET_ALLOW_DIRECTORIES_ONLY")}}),Ln({root:t}),Mn({root:t,action:{value:t.query("GET_REQUIRED")}}),Bn({root:t,action:{value:t.query("GET_CAPTURE_METHOD")}}),t.ref.handleChange=function(e){if(t.element.value){var o=Array.from(t.element.files).map((function(e){return e._relativePath=e.webkitRelativePath,e}));setTimeout((function(){n.onload(o),function(e){if(e&&""!==e.value){try{e.value=""}catch(e){}if(e.value){var t=Pt("form"),n=e.parentNode,o=e.nextSibling;t.appendChild(e),t.reset(),o?n.insertBefore(e,o):n.appendChild(e)}}}(t.element)}),250)}},t.element.addEventListener("change",t.ref.handleChange)},destroy:function(e){var t=e.root;t.element.removeEventListener("change",t.ref.handleChange)},write:x({DID_LOAD_ITEM:jn,DID_REMOVE_ITEM:jn,DID_THROW_ITEM_INVALID:function(e){var t=e.root;t.query("GET_CHECK_VALIDITY")&&t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:Ln,DID_SET_ALLOW_BROWSE:Ln,DID_SET_ALLOW_DIRECTORIES_ONLY:Nn,DID_SET_ALLOW_MULTIPLE:Dn,DID_SET_ACCEPTED_FILE_TYPES:Pn,DID_SET_CAPTURE_METHOD:Bn,DID_SET_REQUIRED:Mn})}),Fn=13,Gn=32,qn=function(e,t){e.innerHTML=t;var n=e.querySelector(".filepond--label-action");return n&&o(n,"tabindex","0"),t},Vn=T({name:"drop-label",ignoreRect:!0,create:function(e){var t=e.root,n=e.props,r=Pt("label");o(r,"for","filepond--browser-"+n.id),o(r,"id","filepond--drop-label-"+n.id),o(r,"aria-hidden","true"),t.ref.handleKeyDown=function(e){(e.keyCode===Fn||e.keyCode===Gn)&&(e.preventDefault(),t.ref.label.click())},t.ref.handleClick=function(e){e.target===r||r.contains(e.target)||t.ref.label.click()},r.addEventListener("keydown",t.ref.handleKeyDown),t.element.addEventListener("click",t.ref.handleClick),qn(r,n.caption),t.appendChild(r),t.ref.label=r},destroy:function(e){var t=e.root;t.ref.label.addEventListener("keydown",t.ref.handleKeyDown),t.element.removeEventListener("click",t.ref.handleClick)},write:x({DID_SET_LABEL_IDLE:function(e){var t=e.root,n=e.action;qn(t.ref.label,n.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),Hn=T({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),zn=x({DID_DRAG:function(e){var t=e.root,n=e.action;t.ref.blob?(t.ref.blob.translateX=n.position.scopeLeft,t.ref.blob.translateY=n.position.scopeTop,t.ref.blob.scaleX=1,t.ref.blob.scaleY=1,t.ref.blob.opacity=1):function(e){var t=e.root,n=.5*t.rect.element.width,o=.5*t.rect.element.height;t.ref.blob=t.appendChildView(t.createChildView(Hn,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:n,translateY:o}))}({root:t})},DID_DROP:function(e){var t=e.root;t.ref.blob&&(t.ref.blob.scaleX=2.5,t.ref.blob.scaleY=2.5,t.ref.blob.opacity=0)},DID_END_DRAG:function(e){var t=e.root;t.ref.blob&&(t.ref.blob.opacity=0)}}),Wn=T({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:function(e){var t=e.root,n=e.props,o=e.actions;zn({root:t,props:n,actions:o});var r=t.ref.blob;0===o.length&&r&&0===r.opacity&&(t.removeChildView(r),t.ref.blob=null)}}),Yn=function(e,t){try{var n=new DataTransfer;t.forEach((function(e){e instanceof File?n.items.add(e):n.items.add(new File([e],e.name,{type:e.type}))})),e.files=n.files}catch(e){return!1}return!0},Xn=function(e,t){return e.ref.fields[t]},$n=function(e){e.query("GET_ACTIVE_ITEMS").forEach((function(t){e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])}))},Qn=function(e){var t=e.root;return $n(t)},Zn=x({DID_SET_DISABLED:function(e){var t=e.root;t.element.disabled=t.query("GET_DISABLED")},DID_ADD_ITEM:function(e){var t=e.root,n=e.action,o=!(t.query("GET_ITEM",n.id).origin===be.LOCAL)&&t.query("SHOULD_UPDATE_FILE_INPUT"),r=Pt("input");r.type=o?"file":"hidden",r.name=t.query("GET_NAME"),r.disabled=t.query("GET_DISABLED"),t.ref.fields[n.id]=r,$n(t)},DID_LOAD_ITEM:function(e){var t=e.root,n=e.action,o=Xn(t,n.id);if(o&&(null!==n.serverFileReference&&(o.value=n.serverFileReference),t.query("SHOULD_UPDATE_FILE_INPUT"))){var r=t.query("GET_ITEM",n.id);Yn(o,[r.file])}},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action,o=Xn(t,n.id);o&&(o.parentNode&&o.parentNode.removeChild(o),delete t.ref.fields[n.id])},DID_DEFINE_VALUE:function(e){var t=e.root,n=e.action,o=Xn(t,n.id);o&&(null===n.value?o.removeAttribute("value"):"file"!=o.type&&(o.value=n.value),$n(t))},DID_PREPARE_OUTPUT:function(e){var t=e.root,n=e.action;t.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout((function(){var e=Xn(t,n.id);e&&Yn(e,[n.file])}),0)},DID_REORDER_ITEMS:Qn,DID_SORT_ITEMS:Qn}),Jn=T({tag:"fieldset",name:"data",create:function(e){return e.root.ref.fields={}},write:Zn,ignoreRect:!0}),Kn=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],eo=["css","csv","html","txt"],to={zip:"zip|compressed",epub:"application/epub+zip"},no=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=e.toLowerCase(),Kn.includes(e)?"image/"+("jpg"===e?"jpeg":"svg"===e?"svg+xml":e):eo.includes(e)?"text/"+e:to[e]||""},oo=function(e){return new Promise((function(t,n){var o=ho(e);if(o.length&&!ro(e))return t(o);ao(e).then(t)}))},ro=function(e){return!!e.files&&e.files.length>0},ao=function(e){return new Promise((function(t,n){var o=(e.items?Array.from(e.items):[]).filter((function(e){return io(e)})).map((function(e){return lo(e)}));o.length?Promise.all(o).then((function(e){var n=[];e.forEach((function(e){n.push.apply(n,e)})),t(n.filter((function(e){return e})).map((function(e){return e._relativePath||(e._relativePath=e.webkitRelativePath),e})))})).catch(console.error):t(e.files?Array.from(e.files):[])}))},io=function(e){if(po(e)){var t=fo(e);if(t)return t.isFile||t.isDirectory}return"file"===e.kind},lo=function(e){return new Promise((function(t,n){uo(e)?co(fo(e)).then(t).catch(n):t([e.getAsFile()])}))},co=function(e){return new Promise((function(t,n){var o=[],r=0,a=0,i=function(){0===a&&0===r&&t(o)};!function e(t){r++;var l=t.createReader();!function t(){l.readEntries((function(n){if(0===n.length)return r--,void i();n.forEach((function(t){t.isDirectory?e(t):(a++,t.file((function(e){var n=so(e);t.fullPath&&(n._relativePath=t.fullPath),o.push(n),a--,i()})))})),t()}),n)}()}(e)}))},so=function(e){if(e.type.length)return e;var t=e.lastModifiedDate,n=e.name,o=no(Ve(e.name));return o.length?((e=e.slice(0,e.size,o)).name=n,e.lastModifiedDate=t,e):e},uo=function(e){return po(e)&&(fo(e)||{}).isDirectory},po=function(e){return"webkitGetAsEntry"in e},fo=function(e){return e.webkitGetAsEntry()},ho=function(e){var t=[];try{if((t=go(e)).length)return t;t=mo(e)}catch(e){}return t},mo=function(e){var t=e.getData("url");return"string"==typeof t&&t.length?[t]:[]},go=function(e){var t=e.getData("text/html");if("string"==typeof t&&t.length){var n=t.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},bo=[],yo=function(e){return{pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}},vo=function(e){var t=bo.find((function(t){return t.element===e}));if(t)return t;var n=_o(e);return bo.push(n),n},_o=function(e){var n=[],o={dragenter:wo,dragover:Ro,dragleave:xo,drop:To},r={};t(o,(function(t,o){r[t]=o(e,n),e.addEventListener(t,r[t],!1)}));var a={element:e,addListener:function(i){return n.push(i),function(){n.splice(n.indexOf(i),1),0===n.length&&(bo.splice(bo.indexOf(a),1),t(o,(function(t){e.removeEventListener(t,r[t],!1)})))}}};return a},Eo=function(e,t){var n,o=function(e,t){return"elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)}("getRootNode"in(n=t)?n.getRootNode():document,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return o===t||t.contains(o)},So=null,ko=function(e,t){try{e.dropEffect=t}catch(e){}},wo=function(e,t){return function(e){e.preventDefault(),So=e.target,t.forEach((function(t){var n=t.element,o=t.onenter;Eo(e,n)&&(t.state="enter",o(yo(e)))}))}},Ro=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;oo(n).then((function(o){var r=!1;t.some((function(t){var a=t.filterElement,i=t.element,l=t.onenter,c=t.onexit,s=t.ondrag,u=t.allowdrop;ko(n,"copy");var p=u(o);if(p)if(Eo(e,i)){if(r=!0,null===t.state)return t.state="enter",void l(yo(e));if(t.state="over",a&&!p)return void ko(n,"none");s(yo(e))}else a&&!r&&ko(n,"none"),t.state&&(t.state=null,c(yo(e)));else ko(n,"none")}))}))}},To=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;oo(n).then((function(n){t.forEach((function(t){var o=t.filterElement,r=t.element,a=t.ondrop,i=t.onexit,l=t.allowdrop;if(t.state=null,!o||Eo(e,r))return l(n)?void a(yo(e),n):i(yo(e))}))}))}},xo=function(e,t){return function(e){So===e.target&&t.forEach((function(t){var n=t.onexit;t.state=null,n(yo(e))}))}},Io=function(e,t,n){e.classList.add("filepond--hopper");var o=n.catchesDropsOnPage,r=n.requiresDropOnElement,a=n.filterItems,i=void 0===a?function(e){return e}:a,l=function(e,t,n){var o=vo(t),r={element:e,filterElement:n,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return r.destroy=o.addListener(r),r}(e,o?document.documentElement:e,r),c="",s="";l.allowdrop=function(e){return t(i(e))},l.ondrop=function(e,n){var o=i(n);t(o)?(s="drag-drop",u.onload(o,e)):u.ondragend(e)},l.ondrag=function(e){u.ondrag(e)},l.onenter=function(e){s="drag-over",u.ondragstart(e)},l.onexit=function(e){s="drag-exit",u.ondragend(e)};var u={updateHopperState:function(){c!==s&&(e.dataset.hopperState=s,c=s)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){l.destroy()}};return u},Oo=!1,Co=[],Ao=function(e){var t=document.activeElement;if(t&&/textarea|input/i.test(t.nodeName)){for(var n=!1,o=t;o!==document.body;){if(o.classList.contains("filepond--root")){n=!0;break}o=o.parentNode}if(!n)return}oo(e.clipboardData).then((function(e){e.length&&Co.forEach((function(t){return t(e)}))}))},Po=function(){var e=function(e){t.onload(e)},t={destroy:function(){var t;t=e,pe(Co,Co.indexOf(t)),0===Co.length&&(document.removeEventListener("paste",Ao),Oo=!1)},onload:function(){}};return function(e){Co.includes(e)||(Co.push(e),Oo||(Oo=!0,document.addEventListener("paste",Ao)))}(e),t},Do=null,No=null,Lo=[],Mo=function(e,t){e.element.textContent=t},Bo=function(e,t,n){var o=e.query("GET_TOTAL_ITEMS");Mo(e,n+" "+t+", "+o+" "+(1===o?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout(No),No=setTimeout((function(){!function(e){e.element.textContent=""}(e)}),1500)},jo=function(e){return e.element.parentNode.contains(document.activeElement)},Uo=function(e){var t=e.root,n=e.action,o=t.query("GET_ITEM",n.id).filename,r=t.query("GET_LABEL_FILE_PROCESSING_ABORTED");Mo(t,o+" "+r)},Fo=function(e){var t=e.root,n=e.action,o=t.query("GET_ITEM",n.id).filename;Mo(t,n.status.main+" "+o+" "+n.status.sub)},Go=T({create:function(e){var t=e.root,n=e.props;t.element.id="filepond--assistant-"+n.id,o(t.element,"role","status"),o(t.element,"aria-live","polite"),o(t.element,"aria-relevant","additions")},ignoreRect:!0,ignoreRectUpdate:!0,write:x({DID_LOAD_ITEM:function(e){var t=e.root,n=e.action;if(jo(t)){t.element.textContent="";var o=t.query("GET_ITEM",n.id);Lo.push(o.filename),clearTimeout(Do),Do=setTimeout((function(){Bo(t,Lo.join(", "),t.query("GET_LABEL_FILE_ADDED")),Lo.length=0}),750)}},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action;if(jo(t)){var o=n.item;Bo(t,o.filename,t.query("GET_LABEL_FILE_REMOVED"))}},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root,n=e.action,o=t.query("GET_ITEM",n.id).filename,r=t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");Mo(t,o+" "+r)},DID_ABORT_ITEM_PROCESSING:Uo,DID_REVERT_ITEM_PROCESSING:Uo,DID_THROW_ITEM_REMOVE_ERROR:Fo,DID_THROW_ITEM_LOAD_ERROR:Fo,DID_THROW_ITEM_INVALID:Fo,DID_THROW_ITEM_PROCESSING_ERROR:Fo}),tag:"span",name:"assistant"}),qo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.replace(new RegExp(t+".","g"),(function(e){return e.charAt(1).toUpperCase()}))},Vo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=Date.now(),r=null;return function(){for(var a=arguments.length,i=new Array(a),l=0;l=0?1:0,m=i.find((function(e){return e.markedForRemoval&&e.opacity<.45}))?-1:0,g=i.length+h+m,b=En(l,d);return 1===b?i.forEach((function(e){var o=e.rect.element.height+u;n+=o,t+=o*e.opacity})):(n=Math.ceil(g/b)*f,t=n),{visual:t,bounds:n}},Yo=function(e){var t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:0===t?null:t}},Xo=function(e,t){var n=e.query("GET_ALLOW_REPLACE"),o=e.query("GET_ALLOW_MULTIPLE"),r=e.query("GET_TOTAL_ITEMS"),a=e.query("GET_MAX_FILES"),i=t.length;return!o&&i>1?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:ot("warning",0,"Max files")}),!0):!(!o&&n||!(F(a=o?a:1)&&r+i>a)||(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:ot("warning",0,"Max files")}),0))},$o=function(e,t,n){var o=e.childViews[0];return Sn(o,t,{left:n.scopeLeft-o.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},Qo=function(e){var t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),o=t&&!n;if(o&&!e.ref.hopper){var r=Io(e.element,(function(t){var n=e.query("GET_BEFORE_DROP_FILE")||function(){return!0};return!e.query("GET_DROP_VALIDATION")||t.every((function(t){return ke("ALLOW_HOPPER_ITEM",t,{query:e.query}).every((function(e){return!0===e}))&&n(t)}))}),{filterItems:function(t){var n=e.query("GET_IGNORED_FILES");return t.filter((function(e){return!vt(e)||!n.includes(e.name.toLowerCase())}))},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});r.onload=function(t,n){var o=e.ref.list.childViews[0].childViews.filter((function(e){return e.rect.element.height})),r=e.query("GET_ACTIVE_ITEMS").map((function(e){return o.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));Se("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(Xo(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:$o(e.ref.list,r,n),interactionMethod:ee})})),e.dispatch("DID_DROP",{position:n}),e.dispatch("DID_END_DRAG",{position:n})},r.ondragstart=function(t){e.dispatch("DID_START_DRAG",{position:t})},r.ondrag=Vo((function(t){e.dispatch("DID_DRAG",{position:t})})),r.ondragend=function(t){e.dispatch("DID_END_DRAG",{position:t})},e.ref.hopper=r,e.ref.drip=e.appendChildView(e.createChildView(Wn))}else!o&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},Zo=function(e,t){var n=e.query("GET_ALLOW_BROWSE"),o=e.query("GET_DISABLED"),r=n&&!o;r&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(Un,Object.assign({},t,{onload:function(t){Se("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(Xo(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:te})}))}})),0):!r&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},Jo=function(e){var t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),o=t&&!n;o&&!e.ref.paster?(e.ref.paster=Po(),e.ref.paster.onload=function(t){Se("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(Xo(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:ne})}))}):!o&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},Ko=x({DID_SET_ALLOW_BROWSE:function(e){var t=e.root,n=e.props;Zo(t,n)},DID_SET_ALLOW_DROP:function(e){var t=e.root;Qo(t)},DID_SET_ALLOW_PASTE:function(e){var t=e.root;Jo(t)},DID_SET_DISABLED:function(e){var t=e.root,n=e.props;Qo(t),Jo(t),Zo(t,n),t.query("GET_DISABLED")?t.element.dataset.disabled="disabled":t.element.removeAttribute("data-disabled")}}),er=T({name:"root",read:function(e){var t=e.root;t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:function(e){var t=e.root,n=e.props,o=t.query("GET_ID");o&&(t.element.id=o);var r=t.query("GET_CLASS_NAME");r&&r.split(" ").filter((function(e){return e.length})).forEach((function(e){t.element.classList.add(e)})),t.ref.label=t.appendChildView(t.createChildView(Vn,Object.assign({},n,{translateY:null,caption:t.query("GET_LABEL_IDLE")}))),t.ref.list=t.appendChildView(t.createChildView(Cn,{translateY:null})),t.ref.panel=t.appendChildView(t.createChildView(fn,{name:"panel-root"})),t.ref.assistant=t.appendChildView(t.createChildView(Go,Object.assign({},n))),t.ref.data=t.appendChildView(t.createChildView(Jn,Object.assign({},n))),t.ref.measure=Pt("div"),t.ref.measure.style.height="100%",t.element.appendChild(t.ref.measure),t.ref.bounds=null,t.query("GET_STYLES").filter((function(e){return!A(e.value)})).map((function(e){var n=e.name,o=e.value;t.element.dataset[n]=o})),t.ref.widthPrevious=null,t.ref.widthUpdated=Vo((function(){t.ref.updateHistory=[],t.dispatch("DID_RESIZE_ROOT")}),250),t.ref.previousAspectRatio=null,t.ref.updateHistory=[];var a=window.matchMedia("(pointer: fine) and (hover: hover)").matches,i="PointerEvent"in window;t.query("GET_ALLOW_REORDER")&&i&&!a&&(t.element.addEventListener("touchmove",Ho,{passive:!1}),t.element.addEventListener("gesturestart",Ho));var l=t.query("GET_CREDITS");if(2===l.length){var c=document.createElement("a");c.className="filepond--credits",c.setAttribute("aria-hidden","true"),c.href=l[0],c.tabindex=-1,c.target="_blank",c.rel="noopener noreferrer",c.textContent=l[1],t.element.appendChild(c),t.ref.credits=c}},write:function(e){var t=e.root,n=e.props,o=e.actions;if(Ko({root:t,props:n,actions:o}),o.filter((function(e){return/^DID_SET_STYLE_/.test(e.type)})).filter((function(e){return!A(e.data.value)})).map((function(e){var n=e.type,o=e.data,r=qo(n.substring(8).toLowerCase(),"_");t.element.dataset[r]=o.value,t.invalidateLayout()})),!t.rect.element.hidden){t.rect.element.width!==t.ref.widthPrevious&&(t.ref.widthPrevious=t.rect.element.width,t.ref.widthUpdated());var r=t.ref.bounds;r||(r=t.ref.bounds=Yo(t),t.element.removeChild(t.ref.measure),t.ref.measure=null);var a=t.ref,i=a.hopper,l=a.label,c=a.list,s=a.panel;i&&i.updateHopperState();var u=t.query("GET_PANEL_ASPECT_RATIO"),p=t.query("GET_ALLOW_MULTIPLE"),d=t.query("GET_TOTAL_ITEMS"),f=d===(p?t.query("GET_MAX_FILES")||1e6:1),h=o.find((function(e){return"DID_ADD_ITEM"===e.type}));if(f&&h){var m=h.data.interactionMethod;l.opacity=0,p?l.translateY=-40:m===K?l.translateX=40:l.translateY=m===te?40:30}else f||(l.opacity=1,l.translateX=0,l.translateY=0);var g=zo(t),b=Wo(t),y=l.rect.element.height,v=!p||f?0:y,_=f?c.rect.element.marginTop:0,E=0===d?0:c.rect.element.marginBottom,S=v+_+b.visual+E,k=v+_+b.bounds+E;if(c.translateY=Math.max(0,v-c.rect.element.marginTop)-g.top,u){var w=t.rect.element.width,R=w*u;u!==t.ref.previousAspectRatio&&(t.ref.previousAspectRatio=u,t.ref.updateHistory=[]);var T=t.ref.updateHistory;T.push(w);if(T.length>4)for(var x=T.length,I=x-10,O=0,C=x;C>=I;C--)if(T[C]===T[C-2]&&O++,O>=2)return;s.scalable=!1,s.height=R;var P=R-v-(E-g.bottom)-(f?_:0);b.visual>P?c.overflow=P:c.overflow=null,t.height=R}else if(r.fixedHeight){s.scalable=!1;var D=r.fixedHeight-v-(E-g.bottom)-(f?_:0);b.visual>D?c.overflow=D:c.overflow=null}else if(r.cappedHeight){var N=S>=r.cappedHeight,L=Math.min(r.cappedHeight,S);s.scalable=!0,s.height=N?L:L-g.top-g.bottom;var M=L-v-(E-g.bottom)-(f?_:0);S>r.cappedHeight&&b.visual>M?c.overflow=M:c.overflow=null,t.height=Math.min(r.cappedHeight,k-g.top-g.bottom)}else{var B=d>0?g.top+g.bottom:0;s.scalable=!0,s.height=Math.max(y,S-B),t.height=Math.max(y,k-B)}t.ref.credits&&s.heightCurrent&&(t.ref.credits.style.transform="translateY("+s.heightCurrent+"px)")}},destroy:function(e){var t=e.root;t.ref.paster&&t.ref.paster.destroy(),t.ref.hopper&&t.ref.hopper.destroy(),t.element.removeEventListener("touchmove",Ho),t.element.removeEventListener("gesturestart",Ho)},mixins:{styles:["height"]}}),tr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=null,r=Re(),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=Object.assign({},e),r=[],a=[],i=function(e,t,n){!n||document.hidden?(u[e]&&u[e](t),r.push({type:e,data:t})):a.push({type:e,data:t})},l=function(e){for(var t,n=arguments.length,o=new Array(n>1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,o){w([{source:e,options:t}],{index:t.index}).then((function(e){return n(e&&e[0])})).catch(o)}))},addFiles:w,getFile:function(e){return a.query("GET_ACTIVE_ITEM",e)},processFile:T,prepareFile:S,removeFile:k,moveFile:function(e,t){return a.dispatch("MOVE_ITEM",{query:e,index:t})},getFiles:R,processFiles:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n={};return t(Re(),(function(e,t){n[e]=t[0]})),tr(Object.assign({},n,{},e))},or=function e(n,o){t(o,(function(o,r){t(n,(function(e,t){var a,i=new RegExp(o);if(i.test(e)&&(delete n[e],!1!==r))if(M(r))n[r]=t;else{var l=r.group;z(r)&&!n[l]&&(n[l]={}),n[l][(a=e.replace(i,""),a.charAt(0).toLowerCase()+a.slice(1))]=t}})),r.mapping&&e(n[r.group],r.mapping)}))},rr=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];t(e.attributes,(function(t){r.push(e.attributes[t])}));var a=r.filter((function(e){return e.name})).reduce((function(t,n){var r,a=o(e,n.name);return t[(r=n.name,qo(r.replace(/^data-/,"")))]=a===n.name||a,t}),{});return or(a,n),a},ar=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};ke("SET_ATTRIBUTE_TO_OPTION_MAP",n);var o=Object.assign({},t),r=rr("FIELDSET"===e.nodeName?e.querySelector("input[type=file]"):e,n);Object.keys(r).forEach((function(e){z(r[e])?(z(o[e])||(o[e]={}),Object.assign(o[e],r[e])):o[e]=r[e]})),o.files=(t.files||[]).concat(Array.from(e.querySelectorAll("input:not([type=file])")).map((function(e){return{source:e.value,options:{type:e.dataset.type}}})));var a=nr(o);return e.files&&Array.from(e.files).forEach((function(e){a.addFile(e)})),a.replaceElement(e),a},ir=function(){return(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement?ar.apply(void 0,arguments):nr.apply(void 0,arguments)},lr=["fire","_read","_write"],cr=function(e){var t={};return fe(e,t,lr),t},sr=function(e,t){return e.replace(/(?:{([a-zA-Z]+)})/g,(function(e,n){return t[n]}))},ur=function(e){var t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),o=new Worker(n);return{transfer:function(e,t){},post:function(e,t,n){var r=re();o.onmessage=function(e){e.data.id===r&&t(e.data.message)},o.postMessage({id:r,message:e},n)},terminate:function(){o.terminate(),URL.revokeObjectURL(n)}}},pr=function(e){return new Promise((function(t,n){var o=new Image;o.onload=function(){t(o)},o.onerror=function(e){n(e)},o.src=e}))},dr=function(e,t){var n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},fr=function(e){return dr(e,e.name)},hr=[],mr=function(e){if(!hr.includes(e)){hr.push(e);var n=e({addFilter:we,utils:{Type:_e,forin:t,isString:M,isFile:vt,toNaturalFileSize:jt,replaceInString:sr,getExtensionFromFilename:Ve,getFilenameWithoutExtension:yt,guesstimateMimeType:no,getFileFromBlob:We,getFilenameFromURL:qe,createRoute:x,createWorker:ur,createView:T,createItemAPI:me,loadImage:pr,copyFile:fr,renameFile:dr,createBlob:Ye,applyFilterChain:Se,text:Dt,getNumericAspectRatioFromString:Ie},views:{fileActionButton:Bt}});o=n.options,Object.assign(Te,o)}var o},gr=(Qt=u()&&!("[object OperaMini]"===Object.prototype.toString.call(window.operamini))&&"visibilityState"in document&&"Promise"in window&&"slice"in Blob.prototype&&"URL"in window&&"createObjectURL"in window.URL&&"performance"in window&&("supports"in(window.CSS||{})||/MSIE|Trident/.test(window.navigator.userAgent)),function(){return Qt}),br={apps:[]},yr=function(){};if(e.Status={},e.FileStatus={},e.FileOrigin={},e.OptionTypes={},e.create=yr,e.destroy=yr,e.parse=yr,e.find=yr,e.registerPlugin=yr,e.getOptions=yr,e.setOptions=yr,gr()){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,o="__framePainter";if(window[o])return window[o].readers.push(e),void window[o].writers.push(t);window[o]={readers:[e],writers:[t]};var r=window[o],a=1e3/n,i=null,l=null,c=null,s=null,u=function(){document.hidden?(c=function(){return window.setTimeout((function(){return p(performance.now())}),a)},s=function(){return window.clearTimeout(l)}):(c=function(){return window.requestAnimationFrame(p)},s=function(){return window.cancelAnimationFrame(l)})};document.addEventListener("visibilitychange",(function(){s&&s(),u(),p(performance.now())}));var p=function e(t){l=c(e),i||(i=t);var n=t-i;n<=a||(i=t-n%a,r.readers.forEach((function(e){return e()})),r.writers.forEach((function(e){return e(t)})))};u(),p(performance.now())}((function(){br.apps.forEach((function(e){return e._read()}))}),(function(e){br.apps.forEach((function(t){return t._write(e)}))}));var vr=function t(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:gr,create:e.create,destroy:e.destroy,parse:e.parse,find:e.find,registerPlugin:e.registerPlugin,setOptions:e.setOptions}})),document.removeEventListener("DOMContentLoaded",t)};"loading"!==document.readyState?setTimeout((function(){return vr()}),0):document.addEventListener("DOMContentLoaded",vr);var _r=function(){return t(Re(),(function(t,n){e.OptionTypes[t]=n[1]}))};e.Status=Object.assign({},Ce),e.FileOrigin=Object.assign({},be),e.FileStatus=Object.assign({},ge),e.OptionTypes={},_r(),e.create=function(){var t=ir.apply(void 0,arguments);return t.on("destroy",e.destroy),br.apps.push(t),cr(t)},e.destroy=function(e){var t=br.apps.findIndex((function(t){return t.isAttachedTo(e)}));return t>=0&&(br.apps.splice(t,1)[0].restoreElement(),!0)},e.parse=function(t){return Array.from(t.querySelectorAll(".filepond")).filter((function(e){return!br.apps.find((function(t){return t.isAttachedTo(e)}))})).map((function(t){return e.create(t)}))},e.find=function(e){var t=br.apps.find((function(t){return t.isAttachedTo(e)}));return t?cr(t):null},e.registerPlugin=function(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";var t=Object.prototype.toString,n=Math.max,o=function(e,t){for(var n=[],o=0;o{"use strict";var o=n(9353);e.exports=Function.prototype.bind||o},453:(e,t,n)=>{"use strict";var o,r=n(9383),a=n(1237),i=n(9290),l=n(9538),c=n(8068),s=n(9675),u=n(5345),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var h=function(){throw new s},m=f?function(){try{return h}catch(e){try{return f(arguments,"callee").get}catch(e){return h}}}():h,g=n(4039)(),b=n(24)(),y=Object.getPrototypeOf||(b?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&y?y(Uint8Array):o,E={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":g&&y?y([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&y?y(y([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&y?y((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&y?y((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&y?y(""[Symbol.iterator]()):o,"%Symbol%":g?Symbol:o,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":_,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet};if(y)try{null.error}catch(e){var S=y(y(e));E["%Error.prototype%"]=S}var k=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&y&&(n=y(r.prototype))}return E[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=n(6743),T=n(9957),x=R.call(Function.call,Array.prototype.concat),I=R.call(Function.apply,Array.prototype.splice),O=R.call(Function.call,String.prototype.replace),C=R.call(Function.call,String.prototype.slice),A=R.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,N=function(e,t){var n,o=e;if(T(w,o)&&(o="%"+(n=w[o])[0]+"%"),T(E,o)){var r=E[o];if(r===v&&(r=k(o)),void 0===r&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:r}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=C(e,0,1),n=C(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var o=[];return O(e,P,(function(e,t,n,r){o[o.length]=n?O(r,D,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",r=N("%"+o+"%",t),a=r.name,i=r.value,l=!1,u=r.alias;u&&(o=u[0],I(n,x([0,1],u)));for(var p=1,d=!0;p=n.length){var b=f(i,h);i=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:i[h]}else d=T(i,h),i=i[h];d&&!l&&(E[a]=i)}}return i}},5795:(e,t,n)=>{"use strict";var o=n(453)("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch(e){o=null}e.exports=o},592:(e,t,n)=>{"use strict";var o=n(655),r=function(){return!!o};r.hasArrayLengthDefineBug=function(){if(!o)return null;try{return 1!==o([],"length",{value:1}).length}catch(e){return!0}},e.exports=r},24:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},4039:(e,t,n)=>{"use strict";var o="undefined"!=typeof Symbol&&Symbol,r=n(1333);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&r()}},1333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},9957:(e,t,n)=>{"use strict";var o=Function.prototype.call,r=Object.prototype.hasOwnProperty,a=n(6743);e.exports=a.call(o,r)},3558:e=>{"use strict";var t=function(e){return parseInt(e,16)};e.exports=function(e,n){var o,r,a=function(e){return"#"===e.charAt(0)?e.slice(1):e}(e),i=function(e){var n=e.g,o=e.b,r=e.a;return{r:t(e.r),g:t(n),b:t(o),a:+(t(r)/255).toFixed(2)}}({r:(r=3===(o=a).length||4===o.length)?"".concat(o.slice(0,1)).concat(o.slice(0,1)):o.slice(0,2),g:r?"".concat(o.slice(1,2)).concat(o.slice(1,2)):o.slice(2,4),b:r?"".concat(o.slice(2,3)).concat(o.slice(2,3)):o.slice(4,6),a:(r?"".concat(o.slice(3,4)).concat(o.slice(3,4)):o.slice(6,8))||"ff"});return function(e,t){var n,o=e.r,r=e.g,a=e.b,i=e.a,l=(n=t,!isNaN(parseFloat(n))&&isFinite(n)?t:i);return"rgba(".concat(o,", ").concat(r,", ").concat(a,", ").concat(l,")")}(i,n)}},7436:(e,t,n)=>{"use strict";const o=n(2557),r=n(5399),a=n(3289),i=n(257);e.exports={Parser:o,ProcessingInstructions:r,IsValidNodeDefinitions:a,ProcessNodeDefinitions:i}},6715:e=>{"use strict";const t=["accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","capture","cellPadding","cellSpacing","challenge","charSet","checked","cite","classID","className","colSpan","cols","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","encType","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","height","hidden","high","href","hrefLang","htmlFor","httpEquiv","icon","id","inputMode","integrity","is","keyParams","keyType","kind","label","lang","list","loop","low","manifest","marginHeight","marginWidth","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","nonce","open","optimum","pattern","placeholder","poster","preload","profile","radioGroup","readOnly","rel","required","reversed","role","rowSpan","rows","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","spellCheck","src","srcDoc","srcLang","srcSet","start","step","style","summary","tabIndex","target","title","type","useMap","value","width","wmode","wrap","onClick"].concat(["autoCapitalize","autoCorrect","color","itemProp","itemScope","itemType","itemRef","itemID","security","unselectable","results","autoSave"]).concat(["accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseProfile","baselineShift","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","ideographic","imageRendering","in","in2","intercept","k","k1","k2","k3","k4","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","viewBox","viewTarget","visibility","widths","wordSpacing","writingMode","x","x1","x2","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlns","xmlnsXlink","xmlBase","xmlLang","xmlSpace","y","y1","y2","yChannelSelector","z","zoomAndPan"]).reduce((function(e,t){const n=t.toLowerCase();return n!==t&&(e[n]=t),e}),{});e.exports=t},3289:e=>{"use strict";e.exports={alwaysValid:function(){return!0}}},2557:(e,t,n)=>{"use strict";const o=n(8659).Parser,r=n(1141).DomHandler,a=n(5399),i=n(3289),l=n(5649);e.exports=function(e){function t(e,n,o,r,a){if(n(e)){(r||[]).forEach((t=>{t.shouldPreprocessNode(e)&&t.preprocessNode(e,a)}));const i=(o||[]).find((t=>t.shouldProcessNode(e)));if(null!=i){const c=(e.children||[]).map(((e,a)=>t(e,n,o,r,a))).filter((e=>null!=e&&!1!==e));return i.replaceChildren?l.createElement(e,a,e.data,[i.processNode(e,c,a)]):i.processNode(e,c,a)}return!1}return!1}function n(n,a,i,l){const c=function(t){(e=e||{}).decodeEntities=!0;const n=new r;return new o(n,e).parseComplete(t),n.dom.filter((function(e){return"directive"!==e.type}))}(n),s=c.map((function(e,n){return t(e,a,i,l,n)}));return s.length<=1?s[0]:s}return{parse:function(e){const t=new a;return n(e,i.alwaysValid,t.defaultProcessingInstructions)},parseWithInstructions:n}}},257:(e,t,n)=>{"use strict";const o=n(5649),r=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","menuitem","textarea"];e.exports=function(){return{processDefaultNode:function(e,t,n){return"text"===e.type?e.data:"comment"!==e.type&&(r.indexOf(e.name)>-1?o.createElement(e,n):o.createElement(e,n,e.data,t))}}}},5399:(e,t,n)=>{"use strict";const o=n(929),r=n(257);e.exports=function(){const e=new r;return{defaultProcessingInstructions:[{shouldProcessNode:o.shouldProcessEveryNode,processNode:e.processDefaultNode}]}}},929:e=>{"use strict";e.exports={shouldProcessEveryNode:function(e){return!0}}},5649:(e,t,n)=>{"use strict";const o=n(2028),r=n(1609),a=n(6715),i=["allowFullScreen","allowpaymentrequest","async","autoFocus","autoPlay","checked","controls","default","disabled","formNoValidate","hidden","ismap","itemScope","loop","multiple","muted","nomodule","noValidate","open","playsinline","readOnly","required","reversed","selected","truespeed"];e.exports={createElement:function(e,t,n,l){let c={key:t};e.attribs&&(c=Object.entries(e.attribs).reduce(((e,[t,n])=>("style"===(t=a[t.replace(/[-:]/,"")]||t)?n=function(e){const t=(e=e||"").split(/;(?!base64)/);let n,r,a,i={};for(let e=0;e2&&(n[1]=n.slice(1).join(":")),r=n[0],a=n[1],"string"==typeof a&&(a=a.trim()),null!=r&&null!=a&&r.length>0&&a.length>0&&(r=r.trim(),0!==r.indexOf("--")&&(r=o(r)),i[r]=a);return i}(n):"class"===t?t="className":"for"===t?t="htmlFor":t.startsWith("on")&&(n=Function(n)),i.includes(t)&&""===(n||"")&&(n=t),e[t]=n,e)),c)),l=l||[];const s=null!=n?[n].concat(l):l;return r.createElement.apply(null,[e.name,c].concat(s))}}},1724:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var i=a(n(7918)),l=n(9878),c=new Set(["input","option","optgroup","select","button","datalist","textarea"]),s=new Set(["p"]),u=new Set(["thead","tbody"]),p=new Set(["dd","dt"]),d=new Set(["rt","rp"]),f=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",s],["h1",s],["h2",s],["h3",s],["h4",s],["h5",s],["h6",s],["select",c],["input",c],["output",c],["button",c],["datalist",c],["textarea",c],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",p],["dt",p],["address",s],["article",s],["aside",s],["blockquote",s],["details",s],["div",s],["dl",s],["fieldset",s],["figcaption",s],["figure",s],["footer",s],["form",s],["header",s],["hr",s],["main",s],["nav",s],["ol",s],["pre",s],["section",s],["table",s],["ul",s],["rt",d],["rp",d],["tbody",u],["tfoot",u]]),h=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),m=new Set(["math","svg"]),g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),b=/\s|\//,y=function(){function e(e,t){var n,o,r,a,l;void 0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(o=t.lowerCaseAttributeNames)&&void 0!==o?o:!t.xmlMode,this.tokenizer=new(null!==(r=t.Tokenizer)&&void 0!==r?r:i.default)(this.options,this),null===(l=(a=this.cbs).onparserinit)||void 0===l||l.call(a,this)}return e.prototype.ontext=function(e,t){var n,o,r=this.getSlice(e,t);this.endIndex=t-1,null===(o=(n=this.cbs).ontext)||void 0===o||o.call(n,r),this.startIndex=t},e.prototype.ontextentity=function(e){var t,n,o=this.tokenizer.getSectionStart();this.endIndex=o-1,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,(0,l.fromCodePoint)(e)),this.startIndex=o},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&h.has(e)},e.prototype.onopentagname=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(e){var t,n,o,r;this.openTagStart=this.startIndex,this.tagname=e;var a=!this.options.xmlMode&&f.get(e);if(a)for(;this.stack.length>0&&a.has(this.stack[this.stack.length-1]);){var i=this.stack.pop();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,i,!0)}this.isVoidElement(e)||(this.stack.push(e),m.has(e)?this.foreignContext.push(!0):g.has(e)&&this.foreignContext.push(!1)),null===(r=(o=this.cbs).onopentagname)||void 0===r||r.call(o,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},e.prototype.onclosetag=function(e,t){var n,o,r,a,i,l;this.endIndex=t;var c=this.getSlice(e,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(m.has(c)||g.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))this.options.xmlMode||"br"!==c||(null===(o=(n=this.cbs).onopentagname)||void 0===o||o.call(n,"br"),null===(a=(r=this.cbs).onopentag)||void 0===a||a.call(r,"br",{},!0),null===(l=(i=this.cbs).onclosetag)||void 0===l||l.call(i,"br",!1));else{var s=this.stack.lastIndexOf(c);if(-1!==s)if(this.cbs.onclosetag)for(var u=this.stack.length-s;u--;)this.cbs.onclosetag(this.stack.pop(),0!==u);else this.stack.length=s;else this.options.xmlMode||"p"!==c||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},e.prototype.closeCurrentTag=function(e){var t,n,o=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===o&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,o,!e),this.stack.pop())},e.prototype.onattribname=function(e,t){this.startIndex=e;var n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},e.prototype.onattribentity=function(e){this.attribvalue+=(0,l.fromCodePoint)(e)},e.prototype.onattribend=function(e,t){var n,o;this.endIndex=t,null===(o=(n=this.cbs).onattribute)||void 0===o||o.call(n,this.attribname,this.attribvalue,e===i.QuoteType.Double?'"':e===i.QuoteType.Single?"'":e===i.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(b),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(o),"!".concat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(o),"?".concat(n))}this.startIndex=t+1},e.prototype.oncomment=function(e,t,n){var o,r,a,i;this.endIndex=t,null===(r=(o=this.cbs).oncomment)||void 0===r||r.call(o,this.getSlice(e,t-n)),null===(i=(a=this.cbs).oncommentend)||void 0===i||i.call(a),this.startIndex=t+1},e.prototype.oncdata=function(e,t,n){var o,r,a,i,l,c,s,u,p,d;this.endIndex=t;var f=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(r=(o=this.cbs).oncdatastart)||void 0===r||r.call(o),null===(i=(a=this.cbs).ontext)||void 0===i||i.call(a,f),null===(c=(l=this.cbs).oncdataend)||void 0===c||c.call(l)):(null===(u=(s=this.cbs).oncomment)||void 0===u||u.call(s,"[CDATA[".concat(f,"]]")),null===(d=(p=this.cbs).oncommentend)||void 0===d||d.call(p)),this.startIndex=t+1},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,o;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(o=(n=this.cbs).onparserinit)||void 0===o||o.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))},e.prototype.end=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var o,r,a,i=n(9878);function l(e){return e===o.Space||e===o.NewLine||e===o.Tab||e===o.FormFeed||e===o.CarriageReturn}function c(e){return e===o.Slash||e===o.Gt||l(e)}function s(e){return e>=o.Zero&&e<=o.Nine}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(o||(o={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(r||(r={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(a=t.QuoteType||(t.QuoteType={}));var u={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},p=function(){function e(e,t){var n=e.xmlMode,o=void 0!==n&&n,a=e.decodeEntities,l=void 0===a||a;this.cbs=t,this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=o,this.decodeEntities=l,this.entityTrie=o?i.xmlDecodeTree:i.htmlDecodeTree}return e.prototype.reset=function(){this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=r.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===o.Amp&&(this.state=r.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?c(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=r.InTagName,this.stateInTagName(e)},e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===o.Gt||l(e)){var t=this.index-this.currentSequence.length;if(this.sectionStart=o.LowerA&&e<=o.LowerZ||e>=o.UpperA&&e<=o.UpperZ}(e)},e.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=r.SpecialStartSequence},e.prototype.stateBeforeTagName=function(e){if(e===o.ExclamationMark)this.state=r.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===o.Questionmark)this.state=r.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var t=32|e;this.sectionStart=this.index,this.xmlMode||t!==u.TitleEnd[2]?this.state=this.xmlMode||t!==u.ScriptEnd[2]?r.InTagName:r.BeforeSpecialS:this.startSpecial(u.TitleEnd,3)}else e===o.Slash?this.state=r.BeforeClosingTagName:(this.state=r.Text,this.stateText(e))},e.prototype.stateInTagName=function(e){c(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateBeforeClosingTagName=function(e){l(e)||(e===o.Gt?this.state=r.Text:(this.state=this.isTagStartChar(e)?r.InClosingTagName:r.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(e){(e===o.Gt||l(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterClosingTagName,this.stateAfterClosingTagName(e))},e.prototype.stateAfterClosingTagName=function(e){(e===o.Gt||this.fastForwardTo(o.Gt))&&(this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(e){e===o.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=r.InSpecialTag,this.sequenceIndex=0):this.state=r.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===o.Slash?this.state=r.InSelfClosingTag:l(e)||(this.state=r.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(e){e===o.Gt?(this.cbs.onselfclosingtag(this.index),this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1,this.isSpecial=!1):l(e)||(this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateInAttributeName=function(e){(e===o.Eq||c(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterAttributeName,this.stateAfterAttributeName(e))},e.prototype.stateAfterAttributeName=function(e){e===o.Eq?this.state=r.BeforeAttributeValue:e===o.Slash||e===o.Gt?(this.cbs.onattribend(a.NoValue,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(e)):l(e)||(this.cbs.onattribend(a.NoValue,this.index),this.state=r.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(e){e===o.DoubleQuote?(this.state=r.InAttributeValueDq,this.sectionStart=this.index+1):e===o.SingleQuote?(this.state=r.InAttributeValueSq,this.sectionStart=this.index+1):l(e)||(this.sectionStart=this.index,this.state=r.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===o.DoubleQuote?a.Double:a.Single,this.index),this.state=r.BeforeAttributeName):this.decodeEntities&&e===o.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,o.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,o.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(e){l(e)||e===o.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(a.Unquoted,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===o.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e){e===o.OpeningSquareBracket?(this.state=r.CDATASequence,this.sequenceIndex=0):this.state=e===o.Dash?r.BeforeComment:r.InDeclaration},e.prototype.stateInDeclaration=function(e){(e===o.Gt||this.fastForwardTo(o.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(e){(e===o.Gt||this.fastForwardTo(o.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(e){e===o.Dash?(this.state=r.InCommentLike,this.currentSequence=u.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=r.InDeclaration},e.prototype.stateInSpecialComment=function(e){(e===o.Gt||this.fastForwardTo(o.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=r.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===u.ScriptEnd[3]?this.startSpecial(u.ScriptEnd,4):t===u.StyleEnd[3]?this.startSpecial(u.StyleEnd,4):(this.state=r.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===o.Number?this.state=r.BeforeNumericEntity:e===o.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=r.InNamedEntity,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,i.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var t=this.trieCurrent&i.BinTrieFlags.VALUE_LENGTH;if(t){var n=(t>>14)-1;if(this.allowLegacyEntity()||e===o.Semi){var r=this.index-this.entityExcess+1;r>this.sectionStart&&this.emitPartial(this.sectionStart,r),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,0===n&&this.emitNamedEntity()}else this.trieIndex+=n}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&i.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~i.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}},e.prototype.stateBeforeNumericEntity=function(e){(32|e)===o.LowerX?(this.entityExcess++,this.state=r.InHexEntity):(this.state=r.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;t+2+Number(this.state===r.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,i.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(e){e===o.Semi?this.emitNumericEntity(!0):s(e)?(this.entityResult=10*this.entityResult+(e-o.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e){e===o.Semi?this.emitNumericEntity(!0):s(e)?(this.entityResult=16*this.entityResult+(e-o.Zero),this.entityExcess++):function(e){return e>=o.UpperA&&e<=o.UpperF||e>=o.LowerA&&e<=o.LowerF}(e)?(this.entityResult=16*this.entityResult+((32|e)-o.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===r.Text||this.baseState===r.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===r.Text||this.state===r.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==r.InAttributeValueDq&&this.state!==r.InAttributeValueSq&&this.state!==r.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index{var o,r=1/0,a="[object Symbol]",i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,l=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,c="\\ud800-\\udfff",s="\\u0300-\\u036f\\ufe20-\\ufe23",u="\\u20d0-\\u20f0",p="\\u2700-\\u27bf",d="a-z\\xdf-\\xf6\\xf8-\\xff",f="A-Z\\xc0-\\xd6\\xd8-\\xde",h="\\ufe0e\\ufe0f",m="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",g="["+c+"]",b="["+m+"]",y="["+s+u+"]",v="\\d+",_="["+p+"]",E="["+d+"]",S="[^"+c+m+v+p+d+f+"]",k="\\ud83c[\\udffb-\\udfff]",w="[^"+c+"]",R="(?:\\ud83c[\\udde6-\\uddff]){2}",T="[\\ud800-\\udbff][\\udc00-\\udfff]",x="["+f+"]",I="\\u200d",O="(?:"+E+"|"+S+")",C="(?:"+x+"|"+S+")",A="(?:['’](?:d|ll|m|re|s|t|ve))?",P="(?:['’](?:D|LL|M|RE|S|T|VE))?",D="(?:"+y+"|"+k+")?",N="["+h+"]?",L=N+D+"(?:"+I+"(?:"+[w,R,T].join("|")+")"+N+D+")*",M="(?:"+[_,R,T].join("|")+")"+L,B="(?:"+[w+y+"?",y,R,T,g].join("|")+")",j=RegExp("['’]","g"),U=RegExp(y,"g"),F=RegExp(k+"(?="+k+")|"+B+L,"g"),G=RegExp([x+"?"+E+"+"+A+"(?="+[b,x,"$"].join("|")+")",C+"+"+P+"(?="+[b,x+O,"$"].join("|")+")",x+"?"+O+"+"+A,x+"+"+P,v,M].join("|"),"g"),q=RegExp("["+I+c+s+u+h+"]"),V=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,H="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,z="object"==typeof self&&self&&self.Object===Object&&self,W=H||z||Function("return this")(),Y=(o={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",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:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==o?void 0:o[e]});function X(e){return q.test(e)}var $=Object.prototype.toString,Q=W.Symbol,Z=Q?Q.prototype:void 0,J=Z?Z.toString:void 0;function K(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&$.call(e)==a}(e))return J?J.call(e):"";var t=e+"";return"0"==t&&1/e==-r?"-0":t}(e)}var ee,te=(ee=function(e,t,n){return t=t.toLowerCase(),e+(n?ne(K(t).toLowerCase()):t)},function(e){return function(e,t,n,o){for(var r=-1,a=e?e.length:0;++r=r?t:function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(r);++o{var o="function"==typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=o&&r&&"function"==typeof r.get?r.get:null,i=o&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=l&&c&&"function"==typeof c.get?c.get:null,u=l&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,b=String.prototype.match,y=String.prototype.slice,v=String.prototype.replace,_=String.prototype.toUpperCase,E=String.prototype.toLowerCase,S=RegExp.prototype.test,k=Array.prototype.concat,w=Array.prototype.join,R=Array.prototype.slice,T=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"==typeof Symbol&&"object"==typeof Symbol.iterator,A="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-T(-e):T(e);if(o!==e){var r=String(o),a=y.call(t,r.length+1);return v.call(r,n,"$&_")+"."+v.call(v.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,n,"$&_")}var L=n(2634),M=L.custom,B=q(M)?M:null;function j(e,t,n){var o="double"===(n.quoteStyle||t)?'"':"'";return o+e+o}function U(e){return v.call(String(e),/"/g,""")}function F(e){return!("[object Array]"!==z(e)||A&&"object"==typeof e&&A in e)}function G(e){return!("[object RegExp]"!==z(e)||A&&"object"==typeof e&&A in e)}function q(e){if(C)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,o,r,l){var c=o||{};if(H(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!H(c,"customInspect")||c.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var _=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Y(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return _?N(t,S):S}if("bigint"==typeof t){var T=String(t)+"n";return _?N(t,T):T}var I=void 0===c.depth?5:c.depth;if(void 0===r&&(r=0),r>=I&&I>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var M,V=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=w.call(Array(e.indent+1)," ")}return{base:n,prev:w.call(Array(t+1),n)}}(c,r);if(void 0===l)l=[];else if(W(l,t)>=0)return"[Circular]";function X(t,n,o){if(n&&(l=R.call(l)).push(n),o){var a={depth:c.depth};return H(c,"quoteStyle")&&(a.quoteStyle=c.quoteStyle),e(t,a,r+1,l)}return e(t,c,r+1,l)}if("function"==typeof t&&!G(t)){var ee=function(e){if(e.name)return e.name;var t=b.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=K(t,X);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+w.call(te,", ")+" }":"")}if(q(t)){var ne=C?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||C?ne:$(ne)}if((M=t)&&"object"==typeof M&&("undefined"!=typeof HTMLElement&&M instanceof HTMLElement||"string"==typeof M.nodeName&&"function"==typeof M.getAttribute)){for(var oe="<"+E.call(String(t.nodeName)),re=t.attributes||[],ae=0;ae"}if(F(t)){if(0===t.length)return"[]";var ie=K(t,X);return V&&!function(e){for(var t=0;t=0)return!1;return!0}(ie)?"["+J(ie,V)+"]":"[ "+w.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==z(e)||A&&"object"==typeof e&&A in e)}(t)){var le=K(t,X);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+w.call(le,", ")+" }":"{ ["+String(t)+"] "+w.call(k.call("[cause]: "+X(t.cause),le),", ")+" }"}if("object"==typeof t&&m){if(B&&"function"==typeof t[B]&&L)return L(t,{depth:I-r});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{s.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ce=[];return i&&i.call(t,(function(e,n){ce.push(X(n,t,!0)+" => "+X(e,t))})),Z("Map",a.call(t),ce,V)}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return u&&u.call(t,(function(e){se.push(X(e,t))})),Z("Set",s.call(t),se,V)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return!("[object Number]"!==z(e)||A&&"object"==typeof e&&A in e)}(t))return $(X(Number(t)));if(function(e){if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}(t))return $(X(x.call(t)));if(function(e){return!("[object Boolean]"!==z(e)||A&&"object"==typeof e&&A in e)}(t))return $(h.call(t));if(function(e){return!("[object String]"!==z(e)||A&&"object"==typeof e&&A in e)}(t))return $(X(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==z(e)||A&&"object"==typeof e&&A in e)}(t)&&!G(t)){var ue=K(t,X),pe=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",fe=!pe&&A&&Object(t)===t&&A in t?y.call(z(t),8,-1):de?"Object":"",he=(pe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||de?"["+w.call(k.call([],fe||[],de||[]),": ")+"] ":"");return 0===ue.length?he+"{}":V?he+"{"+J(ue,V)+"}":he+"{ "+w.call(ue,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return V.call(e,t)}function z(e){return m.call(e)}function W(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return Y(y.call(e,0,t.maxStringLength),t)+o}return j(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+_.call(t.toString(16))}function $(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function Z(e,t,n,o){return e+" ("+t+") {"+(o?J(n,o):w.call(n,", "))+"}"}function J(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+w.call(e,","+n)+"\n"+t.prev}function K(e,t){var n=F(e),o=[];if(n){o.length=e.length;for(var r=0;r{"use strict";var o=n(6925);function r(){}function a(){}a.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,a,i){if(i!==o){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4765:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}},5373:(e,t,n)=>{"use strict";var o=n(8636),r=n(2642),a=n(4765);e.exports={formats:a,parse:r,stringify:o}},2642:(e,t,n)=>{"use strict";var o=n(7720),r=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},l=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,l=n.depth>0&&/(\[[^[\]]*])/.exec(a),s=l?a.slice(0,l.index):a,u=[];if(s){if(!n.plainObjects&&r.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var p=0;n.depth>0&&null!==(l=i.exec(a))&&p=0;--a){var i,l=e[a];if("[]"===l&&n.parseArrays)i=[].concat(r);else{i=n.plainObjects?Object.create(null):{};var s="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,u=parseInt(s,10);n.parseArrays||""!==s?!isNaN(u)&&l!==s&&String(u)===s&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[])[u]=r:"__proto__"!==s&&(i[s]=r):i={0:r}}r=i}return r}(u,t,n,o)}};e.exports=function(e,t){var n=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,s={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,p),f=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(g=a(g)?[g]:g),r.call(s,m)?s[m]=o.combine(s[m],g):s[m]=g}return s}(e,n):e,p=n.plainObjects?Object.create(null):{},d=Object.keys(u),f=0;f{"use strict";var o=n(920),r=n(7720),a=n(4765),i=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,s=Array.prototype.push,u=function(e,t){s.apply(e,c(t)?t:[t])},p=Date.prototype.toISOString,d=a.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:a.formatters[d],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,a,i,l,s,p,d,m,g,b,y,v,_,E,S){for(var k,w=t,R=S,T=0,x=!1;void 0!==(R=R.get(h))&&!x;){var I=R.get(t);if(T+=1,void 0!==I){if(I===T)throw new RangeError("Cyclic object value");x=!0}void 0===R.get(h)&&(T=0)}if("function"==typeof d?w=d(n,w):w instanceof Date?w=b(w):"comma"===a&&c(w)&&(w=r.maybeMap(w,(function(e){return e instanceof Date?b(e):e}))),null===w){if(l)return p&&!_?p(n,f.encoder,E,"key",y):n;w=""}if("string"==typeof(k=w)||"number"==typeof k||"boolean"==typeof k||"symbol"==typeof k||"bigint"==typeof k||r.isBuffer(w))return p?[v(_?n:p(n,f.encoder,E,"key",y))+"="+v(p(w,f.encoder,E,"value",y))]:[v(n)+"="+v(String(w))];var O,C=[];if(void 0===w)return C;if("comma"===a&&c(w))_&&p&&(w=r.maybeMap(w,p)),O=[{value:w.length>0?w.join(",")||null:void 0}];else if(c(d))O=d;else{var A=Object.keys(w);O=m?A.sort(m):A}for(var P=i&&c(w)&&1===w.length?n+"[]":n,D=0;D0?E+_:""}},7720:(e,t,n)=>{"use strict";var o=n(4765),r=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var o=[],r=0;r=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===o.RFC1738&&(40===u||41===u)?c+=l.charAt(s):u<128?c+=i[u]:u<2048?c+=i[192|u>>6]+i[128|63&u]:u<55296||u>=57344?c+=i[224|u>>12]+i[128|u>>6&63]+i[128|63&u]:(s+=1,u=65536+((1023&u)<<10|1023&l.charCodeAt(s)),c+=i[240|u>>18]+i[128|u>>12&63]+i[128|u>>6&63]+i[128|63&u])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],o=0;o{"use strict";t.a=t.F3=void 0;var o,r=function(){function e(e,t){for(var n=0;n{e.exports=function(e){if("string"!=typeof e)throw new Error("color has to be type of `string`");if("#"===e.substr(0,1))return{hex:e,alpha:1};var t=e.replace(/\s+/g,""),n=/(.*?)rgb(a)??\((\d{1,3}),(\d{1,3}),(\d{1,3})(,([01]|1.0*|0??\.([0-9]{0,})))??\)/.exec(t);if(!n)throw new Error("given color ("+e+") isn't a valid rgb or rgba color");var o=parseInt(n[3],10),r=parseInt(n[4],10),a=parseInt(n[5],10),i=n[6]?/([0-9\.]+)/.exec(n[6])[0]:"1",l=(a|r<<8|o<<16|1<<24).toString(16).slice(1);return"."===i.substr(0,1)&&(i=parseFloat("0"+i)),i=parseFloat(Math.round(100*i))/100,{hex:"#"+l.toString(16),alpha:i}}},6897:(e,t,n)=>{"use strict";var o=n(453),r=n(41),a=n(592)(),i=n(5795),l=n(9675),c=o("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new l("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new l("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,s=!0;if("length"in e&&i){var u=i(e,"length");u&&!u.configurable&&(o=!1),u&&!u.writable&&(s=!1)}return(o||s||!n)&&(a?r(e,"length",t,!0,!0):r(e,"length",t)),e}},920:(e,t,n)=>{"use strict";var o=n(453),r=n(8075),a=n(8859),i=o("%TypeError%"),l=o("%WeakMap%",!0),c=o("%Map%",!0),s=r("WeakMap.prototype.get",!0),u=r("WeakMap.prototype.set",!0),p=r("WeakMap.prototype.has",!0),d=r("Map.prototype.get",!0),f=r("Map.prototype.set",!0),h=r("Map.prototype.has",!0),m=function(e,t){for(var n,o=e;null!==(n=o.next);o=n)if(n.key===t)return o.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,o={assert:function(e){if(!o.has(e))throw new i("Side channel does not contain "+a(e))},get:function(o){if(l&&o&&("object"==typeof o||"function"==typeof o)){if(e)return s(e,o)}else if(c){if(t)return d(t,o)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,o)},has:function(o){if(l&&o&&("object"==typeof o||"function"==typeof o)){if(e)return p(e,o)}else if(c){if(t)return h(t,o)}else if(n)return function(e,t){return!!m(e,t)}(n,o);return!1},set:function(o,r){l&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new l),u(e,o,r)):c?(t||(t=new c),f(t,o,r)):(n||(n={key:{},next:null}),function(e,t,n){var o=m(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(n,o,r))}};return o}},1609:e=>{"use strict";e.exports=window.React},2634:()=>{}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},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),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>De,hasStandardBrowserEnv:()=>Ne,hasStandardBrowserWebWorkerEnv:()=>Me});const t=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","title":"Photo Block - A Powerful Image Block","apiVersion":2,"name":"dlxplugins/photo-block","category":"media","icon":"","description":"An easy-to-use and comprehensive image block.","keywords":["photo","block","image","picture","photos"],"version":"1.0.0","textdomain":"photo-block","usesContext":["postType","postId","queryId","query"],"providesContext":{"photo-block/uniqueId":"uniqueId","photo-block/photoMode":"photoMode","photo-block/dataSource":"dataSource","photo-block/dataImageSource":"dataImageSource","photo-block/dataImageSourceCustomField":"dataImageSourceCustomField","photo-block/dataImageSourceAuthorMeta":"dataImageSourceAuthorMeta","photo-block/dataHasFallbackImage":"dataHasFallbackImage","photo-block/dataFallbackImageSize":"dataFallbackImageSize","photo-block/dataFallbackImage":"dataFallbackImage","photo-block/dataPostType":"dataPostType","photo-block/dataPostId":"dataPostId","photo-block/imageSize":"imageSize","photo-block/globalStyle":"globalStyle"},"attributes":{"preview":{"type":"boolean","default":false},"uniqueId":{"type":"string","default":null},"date":{"type":"string","default":""},"globalStyle":{"type":"string","default":"none"},"defaultsApplied":{"type":"boolean","default":false},"imageData":{"type":"object","default":{"id":0,"url":"","alt":"","full":"","width":"","height":"","attachment_link":"","title":"","caption":""}},"photoOpacity":{"type":"number","default":100},"photoBlur":{"type":"number","default":0},"photoObjectFit":{"type":"string","default":"inherit"},"photoObjectPosition":{"type":"string","default":"none"},"photoObjectPositionCustom":{"type":"string","default":""},"photoDropShadow":{"type":"object","default":{"color":"#000000","opacity":1,"blur":0,"spread":0,"horizontal":0,"vertical":0,"inset":false,"enabled":false}},"photoBackgroundColor":{"type":"string","default":"#FFFFFF00"},"photoMaximumWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"100","unit":"%"}}},"containerWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerHeight":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMinWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMaxWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMinHeight":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMaxHeight":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"photoMode":{"type":"string","default":"none"},"cssGramFilter":{"type":"string","default":"none"},"aspectRatio":{"type":"string","default":"original"},"aspectRatioUnit":{"type":"string","default":"ratio"},"aspectRatioWidthPixels":{"type":"string","default":"1280"},"aspectRatioHeightPixels":{"type":"string","default":"720"},"aspectRatioWidth":{"type":"string","default":"16"},"aspectRatioHeight":{"type":"string","default":"9"},"dataHasFallbackImage":{"type":"boolean","default":false},"dataFallbackImageSize":{"type":"string","default":"large"},"dataFallbackImage":{"type":"object","default":{"id":"","url":"","alt":"","full":"","attachment_link":""}},"mediaLinkType":{"type":"string","default":"none"},"mediaLinkOverride":{"type":"boolean","default":false},"mediaLinkRel":{"type":"string","default":""},"mediaLinkAnchorId":{"type":"string","default":""},"mediaLinkUrl":{"type":"string","default":""},"mediaLinkClass":{"type":"string","default":""},"mediaLinkTitle":{"type":"string","default":""},"mediaLinkNewTab":{"type":"boolean","default":false},"dataMediaLinkRel":{"type":"string","default":""},"dataMediaLinkUrl":{"type":"string","default":""},"dataMediaLinkClass":{"type":"string","default":""},"dataMediaLinkNewTab":{"type":"boolean","default":false},"mediaLibraryAspectRatio":{"type":"string","default":"16:9"},"mediaLibrarySuggestedWidth":{"type":"string","default":"1280"},"mediaLibrarySuggestedHeight":{"type":"string","default":"720"},"align":{"type":"string","default":"center"},"imageSize":{"type":"string","default":"large"},"imageSizeOverride":{"type":"boolean","default":false},"altText":{"type":"string","default":""},"hasCaption":{"type":"boolean","default":false},"captionPosition":{"type":"string","default":"bottom"},"overlayText":{"type":"string","default":""},"overlayTextPosition":{"type":"string","default":""},"photoPaddingSize":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"tablet":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"desktop":{"top":"0","right":"0","bottom":"0","left":"0","topUnit":"px","rightUnit":"px","bottomUnit":"px","leftUnit":"px","unitSync":true}}},"photoMarginSize":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"tablet":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"desktop":{"top":"0","right":"0","bottom":"0","left":"0","topUnit":"px","rightUnit":"px","bottomUnit":"px","leftUnit":"px","unitSync":true}}},"photoBorder":{"type":"object","default":{"mobile":{"top":{"width":"","unit":null,"color":"","borderStyle":""},"right":{"width":"","unit":null,"color":"","borderStyle":""},"bottom":{"width":"","unit":null,"color":"","borderStyle":""},"left":{"width":"","unit":null,"color":"","borderStyle":""},"unitSync":true},"tablet":{"top":{"width":"","unit":null,"color":"","borderStyle":""},"right":{"width":"","unit":null,"color":"","borderStyle":""},"bottom":{"width":"","unit":null,"color":"","borderStyle":""},"left":{"width":"","unit":null,"color":"","borderStyle":""},"unitSync":true},"desktop":{"top":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"right":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"bottom":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"left":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"unitSync":true}}},"photoBorderRadius":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"tablet":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"desktop":{"top":"0","right":"0","bottom":"0","left":"0","topUnit":"px","rightUnit":"px","bottomUnit":"px","leftUnit":"px","unitSync":true}}},"hideOnMobile":{"type":"boolean","default":false},"hideOnTablet":{"type":"boolean","default":false},"hideOnDesktop":{"type":"boolean","default":false},"customAttributes":{"type":"array","default":[]},"skipLazyLoading":{"type":"boolean","default":false},"lightboxEnabled":{"type":"boolean","default":false},"lightboxShowCaption":{"type":"boolean","default":false},"lightboxCaption":{"type":"string","default":""},"imageProtectionEnabled":{"type":"boolean","default":false},"htmlAnchor":{"type":"string","default":""},"figureCSSClasses":{"type":"string","default":""},"imageCSSClasses":{"type":"string","default":""}},"supports":{"anchor":false,"align":false,"className":true,"customClassName":false,"alignWide":false,"defaultStylePicker":false,"html":false},"example":{"attributes":{"preview":true}},"editorScript":"dlx-photo-block-editor","editorStyle":"dlx-photo-block-editor-css","style":"dlx-photo-block-frontend-and-editor"}'),o=window.wp.blocks,r=window.wp.blockEditor;var a=n(2485),i=n.n(a);const l=window.wp.element,c=window.wp.i18n,s=window.wp.compose,u=window.wp.data,p=window.wp.hooks;function d(e){return d="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},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ORIGINAL_IMAGE_DATA":return h(h({},e),{},{originalImageData:t.originalImageData});case"SET_IMAGE_DATA":return h(h({},e),{},{imageData:t.imageData});case"SET_SCREEN":return h(h({},e),{},{currentScreen:t.screen});case"SET_IS_UPLOADING":return h(h({},e),{},{isUploading:t.isUploading});case"SET_IS_PROCESSING_UPLOAD":return h(h({},e),{},{isProcessingUpload:t.isProcessingUpload});case"SET_IS_UPLOAD_ERROR":return h(h({},e),{},{isUploadError:t.isUploadError});case"SET_FILEPOND_INSTANCE":return h(h({},e),{},{filepondInstance:t.filepondInstance});case"SET_HAS_CAPTION":return h(h({},e),{},{hasCaption:t.hasCaption});case"SET_CAPTION_POSITION":return h(h({},e),{},{captionPosition:t.captionPosition});case"SET_IN_QUERY_LOOP":return h(h({},e),{},{inQueryLoop:t.inQueryLoop});case"SET_PHOTO_MODE":return h(h({},e),{},{photoMode:t.photoMode});case"SET_BLOCK_UNIQUE_ID":return h(h({},e),{},{blockUniqueId:t.blockUniqueId});case"SET_DATA_SCREEN":return h(h({},e),{},{dataScreen:t.dataScreen});case"SET_ASPECT_RATIO":return h(h({},e),{},{aspectRatioWidth:t.aspectRatioWidth,aspectRatioHeight:t.aspectRatioHeight});case"SET_ASPECT_RATIO_PIXELS":return h(h({},e),{},{aspectRatioWidthPixels:t.aspectRatioWidthPixels,aspectRatioHeightPixels:t.aspectRatioHeightPixels});case"SET_ASPECT_RATIO_TOOLBAR_SELECTION":return h(h({},e),{},{aspectRatioToolbarSelection:t.aspectRatioToolbarSelection});case"SET_ASPECT_RATIO_UNIT":return h(h({},e),{},{aspectRatioUnit:t.aspectRatioUnit});case"SET_JUST_CROPPED":return h(h({},e),{},{justCropped:t.justCropped});default:return e}},actions:b,selectors:{getCurrentScreen:function(e){return e.currentScreen},isUploading:function(e){return e.isUploading},isProcessingUpload:function(e){return e.isProcessingUpload},isUploadError:function(e){return e.isUploadError},getFilepondInstance:function(e){return e.filepondInstance},hasCaption:function(e){return e.hasCaption},getCaptionPosition:function(e){return e.captionPosition},inQueryLoop:function(e){return e.inQueryLoop},getPhotoMode:function(e){return e.photoMode},getBlockUniqueId:function(e){return e.blockUniqueId},getDataScreen:function(e){return e.dataScreen},getImageData:function(e){return e.imageData},getOriginalImageData:function(e){return e.originalImageData},getJustCropped:function(e){return e.justCropped},getAspectRatioWidth:function(e){return e.aspectRatioWidth},getAspectRatioHeight:function(e){return e.aspectRatioHeight},getAspectRatioWidthPixels:function(e){return e.aspectRatioWidthPixels},getAspectRatioHeightPixels:function(e){return e.aspectRatioHeightPixels},getAspectRatioToolbarSelection:function(e){return e.aspectRatioToolbarSelection},getAspectRatioUnit:function(e){return e.aspectRatioUnit}}})}(e);return n.instantiate?((0,u.register)(n),y.push(n),t):t}return t};const _=window.wp.components;var E=n(1609),S=n.n(E),k={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const w=(e,t)=>{const n=(0,E.forwardRef)((({color:n="currentColor",size:o=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:i="",children:l,...c},s)=>{return(0,E.createElement)("svg",{ref:s,...k,width:o,height:o,stroke:n,strokeWidth:a?24*Number(r)/Number(o):r,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,i].join(" "),...c},[...t.map((([e,t])=>(0,E.createElement)(e,t))),...Array.isArray(l)?l:[l]]);var u}));return n.displayName=`${e}`,n},R=w("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),T=w("ImagePlus",[["path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7",key:"31hg93"}],["line",{x1:"16",x2:"22",y1:"5",y2:"5",key:"ez7e4s"}],["line",{x1:"19",x2:"19",y1:"2",y2:"8",key:"1gkr8c"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),x=w("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]),I=w("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),O=w("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),C=w("ArrowBigLeftDash",[["path",{d:"M19 15V9",key:"1hci5f"}],["path",{d:"M15 15h-3v4l-7-7 7-7v4h3v6z",key:"16tjna"}]]),A=w("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),P=w("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),D=w("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);function N(e,t){return function(){return e.apply(t,arguments)}}const{toString:L}=Object.prototype,{getPrototypeOf:M}=Object,B=(j=Object.create(null),e=>{const t=L.call(e);return j[t]||(j[t]=t.slice(8,-1).toLowerCase())});var j;const U=e=>(e=e.toLowerCase(),t=>B(t)===e),F=e=>t=>typeof t===e,{isArray:G}=Array,q=F("undefined"),V=U("ArrayBuffer"),H=F("string"),z=F("function"),W=F("number"),Y=e=>null!==e&&"object"==typeof e,X=e=>{if("object"!==B(e))return!1;const t=M(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},$=U("Date"),Q=U("File"),Z=U("Blob"),J=U("FileList"),K=U("URLSearchParams");function ee(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,r;if("object"!=typeof e&&(e=[e]),G(e))for(o=0,r=e.length;o0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ne="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,oe=e=>!q(e)&&e!==ne,re=(ae="undefined"!=typeof Uint8Array&&M(Uint8Array),e=>ae&&e instanceof ae);var ae;const ie=U("HTMLFormElement"),le=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ce=U("RegExp"),se=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};ee(n,((n,r)=>{let a;!1!==(a=t(n,r,e))&&(o[r]=a||n)})),Object.defineProperties(e,o)},ue="abcdefghijklmnopqrstuvwxyz",pe="0123456789",de={DIGIT:pe,ALPHA:ue,ALPHA_DIGIT:ue+ue.toUpperCase()+pe},fe=U("AsyncFunction"),he={isArray:G,isArrayBuffer:V,isBuffer:function(e){return null!==e&&!q(e)&&null!==e.constructor&&!q(e.constructor)&&z(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||z(e.append)&&("formdata"===(t=B(e))||"object"===t&&z(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&V(e.buffer),t},isString:H,isNumber:W,isBoolean:e=>!0===e||!1===e,isObject:Y,isPlainObject:X,isUndefined:q,isDate:$,isFile:Q,isBlob:Z,isRegExp:ce,isFunction:z,isStream:e=>Y(e)&&z(e.pipe),isURLSearchParams:K,isTypedArray:re,isFileList:J,forEach:ee,merge:function e(){const{caseless:t}=oe(this)&&this||{},n={},o=(o,r)=>{const a=t&&te(n,r)||r;X(n[a])&&X(o)?n[a]=e(n[a],o):X(o)?n[a]=e({},o):G(o)?n[a]=o.slice():n[a]=o};for(let e=0,t=arguments.length;e(ee(t,((t,o)=>{n&&z(t)?e[o]=N(t,n):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,a,i;const l={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)i=r[a],o&&!o(i,e,t)||l[i]||(t[i]=e[i],l[i]=!0);e=!1!==n&&M(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:B,kindOfTest:U,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(G(e))return e;let t=e.length;if(!W(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:ie,hasOwnProperty:le,hasOwnProp:le,reduceDescriptors:se,freezeMethods:e=>{se(e,((t,n)=>{if(z(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];z(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},o=e=>{e.forEach((e=>{n[e]=!0}))};return G(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:te,global:ne,isContextDefined:oe,ALPHABET:de,generateString:(e=16,t=de.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n},isSpecCompliantForm:function(e){return!!(e&&z(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(Y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const r=G(e)?[]:{};return ee(e,((e,t)=>{const a=n(e,o+1);!q(a)&&(r[t]=a)})),t[o]=void 0,r}}return e};return n(e,0)},isAsyncFn:fe,isThenable:e=>e&&(Y(e)||z(e))&&z(e.then)&&z(e.catch)};function me(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}he.inherits(me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:he.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ge=me.prototype,be={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{be[e]={value:e}})),Object.defineProperties(me,be),Object.defineProperty(ge,"isAxiosError",{value:!0}),me.from=(e,t,n,o,r,a)=>{const i=Object.create(ge);return he.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),me.call(i,e.message,t,n,o,r),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const ye=me;function ve(e){return he.isPlainObject(e)||he.isArray(e)}function _e(e){return he.endsWith(e,"[]")?e.slice(0,-2):e}function Ee(e,t,n){return e?e.concat(t).map((function(e,t){return e=_e(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Se=he.toFlatObject(he,{},null,(function(e){return/^is[A-Z]/.test(e)})),ke=function(e,t,n){if(!he.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=he.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!he.isUndefined(t[e])}))).metaTokens,r=n.visitor||s,a=n.dots,i=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(r))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(he.isDate(e))return e.toISOString();if(!l&&he.isBlob(e))throw new ye("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(e)||he.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function s(e,n,r){let l=e;if(e&&!r&&"object"==typeof e)if(he.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(he.isArray(e)&&function(e){return he.isArray(e)&&!e.some(ve)}(e)||(he.isFileList(e)||he.endsWith(n,"[]"))&&(l=he.toArray(e)))return n=_e(n),l.forEach((function(e,o){!he.isUndefined(e)&&null!==e&&t.append(!0===i?Ee([n],o,a):null===i?n:n+"[]",c(e))})),!1;return!!ve(e)||(t.append(Ee(r,n,a),c(e)),!1)}const u=[],p=Object.assign(Se,{defaultVisitor:s,convertValue:c,isVisitable:ve});if(!he.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!he.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+o.join("."));u.push(n),he.forEach(n,(function(n,a){!0===(!(he.isUndefined(n)||null===n)&&r.call(t,n,he.isString(a)?a.trim():a,o,p))&&e(n,o?o.concat(a):[a])})),u.pop()}}(e),t};function we(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Re(e,t){this._pairs=[],e&&ke(e,this,t)}const Te=Re.prototype;Te.append=function(e,t){this._pairs.push([e,t])},Te.toString=function(e){const t=e?function(t){return e.call(this,t,we)}:we;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const xe=Re;function Ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Oe(e,t,n){if(!t)return e;const o=n&&n.encode||Ie,r=n&&n.serialize;let a;if(a=r?r(t,n):he.isURLSearchParams(t)?t.toString():new xe(t,n).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const Ce=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){he.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Ae={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:xe,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},De="undefined"!=typeof window&&"undefined"!=typeof document,Ne=(Le="undefined"!=typeof navigator&&navigator.product,De&&["ReactNative","NativeScript","NS"].indexOf(Le)<0);var Le;const Me="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Be={...e,...Pe},je=function(e){function t(e,n,o,r){let a=e[r++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),l=r>=e.length;return a=!a&&he.isArray(o)?o.length:a,l?(he.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!i):(o[a]&&he.isObject(o[a])||(o[a]=[]),t(e,n,o[a],r)&&he.isArray(o[a])&&(o[a]=function(e){const t={},n=Object.keys(e);let o;const r=n.length;let a;for(o=0;o{t(function(e){return he.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null},Ue={transitional:Ae,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,r=he.isObject(e);if(r&&he.isHTMLForm(e)&&(e=new FormData(e)),he.isFormData(e))return o?JSON.stringify(je(e)):e;if(he.isArrayBuffer(e)||he.isBuffer(e)||he.isStream(e)||he.isFile(e)||he.isBlob(e))return e;if(he.isArrayBufferView(e))return e.buffer;if(he.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ke(e,new Be.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){return Be.isNode&&he.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=he.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ke(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||o?(t.setContentType("application/json",!1),function(e,t,n){if(he.isString(e))try{return(0,JSON.parse)(e),he.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ue.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(e&&he.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ye.from(e,ye.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Be.classes.FormData,Blob:Be.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],(e=>{Ue.headers[e]={}}));const Fe=Ue,Ge=he.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),qe=Symbol("internals");function Ve(e){return e&&String(e).trim().toLowerCase()}function He(e){return!1===e||null==e?e:he.isArray(e)?e.map(He):String(e)}function ze(e,t,n,o,r){return he.isFunction(o)?o.call(this,t,n):(r&&(t=n),he.isString(t)?he.isString(o)?-1!==t.indexOf(o):he.isRegExp(o)?o.test(t):void 0:void 0)}class We{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=Ve(t);if(!r)throw new Error("header name must be a non-empty string");const a=he.findKey(o,r);(!a||void 0===o[a]||!0===n||void 0===n&&!1!==o[a])&&(o[a||t]=He(e))}const a=(e,t)=>he.forEach(e,((e,n)=>r(e,n,t)));return he.isPlainObject(e)||e instanceof this.constructor?a(e,t):he.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?a((e=>{const t={};let n,o,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||t[n]&&Ge[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)})),t})(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=Ve(e)){const n=he.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(he.isFunction(t))return t.call(this,e,n);if(he.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ve(e)){const n=he.findKey(this,e);return!(!n||void 0===this[n]||t&&!ze(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function r(e){if(e=Ve(e)){const r=he.findKey(n,e);!r||t&&!ze(0,n[r],r,t)||(delete n[r],o=!0)}}return he.isArray(e)?e.forEach(r):r(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const r=t[n];e&&!ze(0,this[r],r,e,!0)||(delete this[r],o=!0)}return o}normalize(e){const t=this,n={};return he.forEach(this,((o,r)=>{const a=he.findKey(n,r);if(a)return t[a]=He(o),void delete t[r];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();i!==r&&delete t[r],t[i]=He(o),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return he.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&he.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[qe]=this[qe]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=Ve(e);t[o]||(function(e,t){const n=he.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[o]=!0)}return he.isArray(e)?e.forEach(o):o(e),this}}We.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(We.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),he.freezeMethods(We);const Ye=We;function Xe(e,t){const n=this||Fe,o=t||n,r=Ye.from(o.headers);let a=o.data;return he.forEach(e,(function(e){a=e.call(n,a,r.normalize(),t?t.status:void 0)})),r.normalize(),a}function $e(e){return!(!e||!e.__CANCEL__)}function Qe(e,t,n){ye.call(this,null==e?"canceled":e,ye.ERR_CANCELED,t,n),this.name="CanceledError"}he.inherits(Qe,ye,{__CANCEL__:!0});const Ze=Qe,Je=Be.hasStandardBrowserEnv?{write(e,t,n,o,r,a){const i=[e+"="+encodeURIComponent(t)];he.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),he.isString(o)&&i.push("path="+o),he.isString(r)&&i.push("domain="+r),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ke(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const et=Be.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function o(n){let o=n;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=o(window.location.href),function(e){const t=he.isString(e)?o(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function tt(e,t){let n=0;const o=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r,a=0,i=0;return t=void 0!==t?t:1e3,function(l){const c=Date.now(),s=o[i];r||(r=c),n[a]=l,o[a]=c;let u=i,p=0;for(;u!==a;)p+=n[u++],u%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-r{const a=r.loaded,i=r.lengthComputable?r.total:void 0,l=a-n,c=o(l);n=a;const s={loaded:a,total:i,progress:i?a/i:void 0,bytes:l,rate:c||void 0,estimated:c&&i&&a<=i?(i-a)/c:void 0,event:r};s[t?"download":"upload"]=!0,e(s)}}const nt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let o=e.data;const r=Ye.from(e.headers).normalize();let a,i,{responseType:l,withXSRFToken:c}=e;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}if(he.isFormData(o))if(Be.hasStandardBrowserEnv||Be.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if(!1!==(i=r.getContentType())){const[e,...t]=i?i.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(t+":"+n))}const p=Ke(e.baseURL,e.url);function d(){if(!u)return;const o=Ye.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new ye("Request failed with status code "+n.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:l&&"text"!==l&&"json"!==l?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:o,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),Oe(p,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(n(new ye("Request aborted",ye.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new ye("Network Error",ye.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||Ae;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new ye(t,o.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,u)),u=null},Be.hasStandardBrowserEnv&&(c&&he.isFunction(c)&&(c=c(e)),c||!1!==c&&et(p))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Je.read(e.xsrfCookieName);t&&r.set(e.xsrfHeaderName,t)}void 0===o&&r.setContentType(null),"setRequestHeader"in u&&he.forEach(r.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),he.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),l&&"json"!==l&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",tt(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",tt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{u&&(n(!t||t.type?new Ze(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(p);f&&-1===Be.protocols.indexOf(f)?n(new ye("Unsupported protocol "+f+":",ye.ERR_BAD_REQUEST,e)):u.send(o||null)}))},ot={http:null,xhr:nt};he.forEach(ot,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const rt=e=>`- ${e}`,at=e=>he.isFunction(e)||null===e||!1===e,it=e=>{e=he.isArray(e)?e:[e];const{length:t}=e;let n,o;const r={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(rt).join("\n"):" "+rt(e[0]):"as no adapter specified";throw new ye("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return o};function lt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ze(null,e)}function ct(e){return lt(e),e.headers=Ye.from(e.headers),e.data=Xe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),it(e.adapter||Fe.adapter)(e).then((function(t){return lt(e),t.data=Xe.call(e,e.transformResponse,t),t.headers=Ye.from(t.headers),t}),(function(t){return $e(t)||(lt(e),t&&t.response&&(t.response.data=Xe.call(e,e.transformResponse,t.response),t.response.headers=Ye.from(t.response.headers))),Promise.reject(t)}))}const st=e=>e instanceof Ye?e.toJSON():e;function ut(e,t){t=t||{};const n={};function o(e,t,n){return he.isPlainObject(e)&&he.isPlainObject(t)?he.merge.call({caseless:n},e,t):he.isPlainObject(t)?he.merge({},t):he.isArray(t)?t.slice():t}function r(e,t,n){return he.isUndefined(t)?he.isUndefined(e)?void 0:o(void 0,e,n):o(e,t,n)}function a(e,t){if(!he.isUndefined(t))return o(void 0,t)}function i(e,t){return he.isUndefined(t)?he.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function l(n,r,a){return a in t?o(n,r):a in e?o(void 0,n):void 0}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(e,t)=>r(st(e),st(t),!0)};return he.forEach(Object.keys(Object.assign({},e,t)),(function(o){const a=c[o]||r,i=a(e[o],t[o],o);he.isUndefined(i)&&a!==l||(n[o]=i)})),n}const pt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{pt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const dt={};pt.transitional=function(e,t,n){function o(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,a)=>{if(!1===e)throw new ye(o(r," has been removed"+(t?" in "+t:"")),ye.ERR_DEPRECATED);return t&&!dt[r]&&(dt[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}};const ft={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ye("options must be an object",ye.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const a=o[r],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new ye("option "+a+" must be "+n,ye.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ye("Unknown option "+a,ye.ERR_BAD_OPTION)}},validators:pt},ht=ft.validators;class mt{constructor(e){this.defaults=e,this.interceptors={request:new Ce,response:new Ce}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ut(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;void 0!==n&&ft.assertOptions(n,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1),null!=o&&(he.isFunction(o)?t.paramsSerializer={serialize:o}:ft.assertOptions(o,{encode:ht.function,serialize:ht.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=r&&he.merge(r.common,r[t.method]);r&&he.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=Ye.concat(a,r);const i=[];let l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let s;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,p=0;if(!l){const e=[ct.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,c),u=e.length,s=Promise.resolve(t);p{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e,o,r){n.reason||(n.reason=new Ze(e,o,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new bt((function(t){e=t})),cancel:e}}}const yt=bt,vt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vt).forEach((([e,t])=>{vt[t]=e}));const _t=vt,Et=function e(t){const n=new gt(t),o=N(gt.prototype.request,n);return he.extend(o,gt.prototype,n,{allOwnKeys:!0}),he.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(ut(t,n))},o}(Fe);Et.Axios=gt,Et.CanceledError=Ze,Et.CancelToken=yt,Et.isCancel=$e,Et.VERSION="1.6.7",Et.toFormData=ke,Et.AxiosError=ye,Et.Cancel=Et.CanceledError,Et.all=function(e){return Promise.all(e)},Et.spread=function(e){return function(t){return e.apply(null,t)}},Et.isAxiosError=function(e){return he.isObject(e)&&!0===e.isAxiosError},Et.mergeConfig=ut,Et.AxiosHeaders=Ye,Et.formToJSON=e=>je(he.isHTMLForm(e)?new FormData(e):e),Et.getAdapter=it,Et.HttpStatusCode=_t,Et.default=Et;const St=Et;function kt(e,t,n){return void 0===t&&(t={}),St({method:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"post",url:n,params:t,headers:{"X-WP-Nonce":e},data:t})}n(5373);var wt=n(5556),Rt=n.n(wt);const Tt=window.wp.a11y;function xt(e){return xt="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},xt(e)}function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Bt(e,t,n,o,r,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function jt(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function i(e){Bt(a,o,r,i,l,"next",e)}function l(e){Bt(a,o,r,i,l,"throw",e)}i(void 0)}))}}function Ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=200&&d.status<300?(m({imageData:JSON.parse(d.responseText),photoMode:"photo"}),l("photo"),o(JSON.parse(d.responseText)),r(d.responseText)):a("oh no")},d.send(p),{abort:function(){d.abort(),c()}}}},credits:!1,stylePanelLayout:"integrated",labelIdle:"",allowRemove:!1,allowRevert:!1,ref:r,labelFileTypeNotAllowed:(0,c.__)("Invalid file type","photo-block"),labelTapToCancel:(0,c.__)("Click to cancel","photo-block"),acceptedFileTypes:["image/*"],onaddfilestart:function(){a(!0)},onprocessfileabort:function(){a(!1),i(!1)},onerror:function(e){s(!0),a(!1),i(!1)},imagePreviewMaxFileSize:"4MB",iconRetry:'',iconProcess:'',onprocessfile:function(e,t){i(!1),a(!1),p("edit"),m({screen:"edit"})}})),!f&&!h&&React.createElement("div",{className:"dlx-photo-block__upload-target__label"},React.createElement("div",{className:"dlx-photo-block__upload-target__label-svg"},React.createElement(A,null)),React.createElement("div",{className:"dlx-photo-block__upload-target__label-text"},(0,c.__)("Drag Photo Here or Click to Upload","photo-block")))))},Zt=w("Redo2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13",key:"19mnr4"}]]),Jt=function(e){var t=e.blockUniqueId,n=(0,u.useDispatch)(v(t)),o=n.setIsUploading,r=n.setIsUploadError,a=n.setIsProcessingUpload,i=(0,u.useSelect)((function(e){return{imageData:e(v(t)).getImageData(),isUploadError:e(v(t)).isUploadError(),filepondInstance:e(v(t)).getFilepondInstance()}})),l=i.imageData,s=i.isUploadError,p=i.filepondInstance;return React.createElement(React.Fragment,null,React.createElement("div",{className:"dlx-photo-block__upload-status"},React.createElement(_.Button,{variant:"secondary",icon:React.createElement(I,null),onClick:function(){r(!1),o(!1),a(!1),p.removeFile()}},(0,c.__)("Cancel","photo-block")),s&&React.createElement(_.Button,{variant:"secondary",icon:React.createElement(Zt,null),onClick:function(){o(!0),r(!1),p.addFile(l.file)}},(0,c.__)("Retry Image","photo-block"))))},Kt=function(e){var t=e.blockUniqueId,n=e.clientId,o=(0,u.useSelect)((function(e){return{isUploading:e(v(t)).isUploading(),isProcessingUpload:e(v(t)).isProcessingUpload(),isUploadError:e(v(t)).isUploadError()}})),a=o.isUploading,i=o.isProcessingUpload,l=o.isUploadError,c=React.createElement(r.InspectorControls,null);return React.createElement(React.Fragment,null,c,React.createElement("div",{className:"dlx-photo-block__screen-initial"},!a&&!i&&!l&&React.createElement(Gt,{attributes:e.attributes,setAttributes:e.setAttributes,blockUniqueId:t,clientId:n}),(a||i||l)&&React.createElement(Jt,{blockUniqueId:t}),React.createElement(Qt,{attributes:e.attributes,setAttributes:e.setAttributes,blockUniqueId:t})))},en=w("Captions",[["rect",{width:"18",height:"14",x:"3",y:"5",rx:"2",ry:"2",key:"12ruh7"}],["path",{d:"M7 15h4M15 15h2M7 11h2M13 11h4",key:"1ueiar"}]]),tn=function(e){var t=e.numBlocks,n=e.clientId,a=e.blockUniqueId,i=(0,u.useDispatch)(r.store),l=i.insertBlock,s=i.updateBlockAttributes,p=(0,u.useDispatch)(v(a)).setHasCaption;return 0!==t?null:S().createElement("div",{className:"photo-block-admin__caption-appender"},S().createElement(_.Button,{variant:"primary",className:"dlx-photo-block__add-caption",label:(0,c.__)("Add Caption","photo-block"),onClick:function(){var e;p(!0),e=(0,o.createBlock)("dlxplugins/photo-caption-block"),l(e,void 0,n),s(n,{hasCaption:!0})},icon:S().createElement(en,null)},(0,c.__)("Add Caption","photo-block")))},nn=w("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11",key:"llx8ln"}]]),on=w("Crop",[["path",{d:"M6 2v14a2 2 0 0 0 2 2h14",key:"ron5a4"}],["path",{d:"M18 22V8a2 2 0 0 0-2-2H2",key:"7s9ehn"}]]),rn=w("Accessibility",[["circle",{cx:"16",cy:"4",r:"1",key:"1grugj"}],["path",{d:"m18 19 1-7-6 1",key:"r0i19z"}],["path",{d:"m5 8 3-3 5.5 3-2.36 3.5",key:"9ptxx2"}],["path",{d:"M4.24 14.5a5 5 0 0 0 6.88 6",key:"10kmtu"}],["path",{d:"M13.76 17.5a5 5 0 0 0-6.88-6",key:"2qq6rc"}]]),an=window.wp.url,ln=w("Link2Off",[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]),cn=w("FileImage",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]),sn=w("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]),un=w("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),pn=window.wp.keycodes,dn=w("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),fn=w("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]),hn=w("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),mn=w("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);function gn(e){return gn="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},gn(e)}function bn(){bn=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var a=t&&t.prototype instanceof b?t:b,i=Object.create(a.prototype),l=new C(o||[]);return r(i,"_invoke",{value:T(e,n,l)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function b(){}function y(){}function v(){}var _={};s(_,i,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(A([])));S&&S!==n&&o.call(S,i)&&(_=S);var k=v.prototype=b.prototype=Object.create(_);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function n(r,a,i,l){var c=p(e[r],e,a);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==gn(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,l)}))}l(c.arg)}var a;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return a=a?a.then(r,r):r()}})}function T(t,n,o){var r=d;return function(a,i){if(r===h)throw new Error("Generator is already running");if(r===m){if("throw"===a)throw i;return{value:e,done:!0}}for(o.method=a,o.arg=i;;){var l=o.delegate;if(l){var c=x(l,o);if(c){if(c===g)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===d)throw r=m,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var s=p(t,n,o);if("normal"===s.type){if(r=o.done?m:f,s.arg===g)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(r=m,o.method="throw",o.arg=s.arg)}}}function x(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var a=p(r,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function yn(e,t,n,o,r,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function vn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return En(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?En(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function En(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",n=!(null!==(e=t)&&void 0!==e&&e.length);if(t=(t=t.toString()).trim(),(0,an.isURL)(t))return p([]),h(!1),void z(!1);if(!n&&t.length<2)return p([]),h(!1),void z(!1);g(!0),R(null),z(!0);var a,i=new AbortController;null!==y&&y.abort(),v(i),(a=bn().mark((function e(){return bn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,z(!0),e.next=4,kt(r,{signal:i.signal,search:encodeURIComponent(t)},o,"POST").then((function(e){v(null);var t=e.data.data;p(t),h(!0)})).catch((function(e){})).then((function(){z(!1)}));case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:case"end":return e.stop()}}),e,null,[[0,6]])})),function(){var e=this,t=arguments;return new Promise((function(n,o){var r=a.apply(e,t);function i(e){yn(r,n,o,i,l,"next",e)}function l(e){yn(r,n,o,i,l,"throw",e)}i(void 0)}))})()};return S().createElement("div",{className:"photo-block-url-input"},S().createElement("div",{className:"photo-block-pub-url-input__wrapper"},S().createElement("div",{className:"photo-block-pub-url-input__input-wrapper"},null!==x&&S().createElement("div",{className:"photo-block-pub-url-input__suggestion"},S().createElement("div",{className:"photo-block-pub-url-input__suggestion-item"},S().createElement("span",{className:"photo-block-pub-url-input__suggestion-label"},S().createElement(_.Button,{variant:"link",icon:S().createElement(un,null),iconSize:18,iconPosition:"right",label:(0,c.__)("Open in new tab","photo-block"),href:x.permalink,target:"_blank",rel:"noopener noreferrer"},(0,an.filterURLForDisplay)(x.permalink))),S().createElement(_.Button,{variant:"secondary",icon:S().createElement(I,null),iconSize:18,label:(0,c.__)("Remove Current Selection","photo-block"),onClick:function(){O(null)}}))),null===x&&S().createElement("div",{className:"photo-block-pub-url-search-wrapper"},S().createElement("input",{type:"text",placeholder:(0,c.__)("Paste in URL or search","photo-block"),id:q,className:"photo-block-pub-url-input__input",value:M,onChange:function(e){B(e.target.value)},onFocus:function(e){e.preventDefault(),null!==w||""===M||(0,an.isURL)(M)||W(M)},onKeyDown:function(e){if(!f&&!u.length||H){switch(e.keyCode){case pn.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case pn.DOWN:M!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(M.length,M.length));break;case pn.ENTER:e.preventDefault(),W(e.target.value)}return null}switch(e.keyCode){case pn.UP:e.preventDefault();var o=A?A-1:u.length-1;P(o),R(u[o].value);break;case pn.DOWN:if(e.preventDefault(),!f&&u.length>0)return h(!0),P(0),void R(u[0].value);var r=null===w||A===u.length-1?0:A+1;P(r),R(u[r].value);break;case pn.TAB:null!==w&&(0,Tt.speak)((0,c.__)("Link selected.","photo-block"));break;case pn.ENTER:e.preventDefault(),h(!1),null!==w&&(t.onItemSelect(e,(a=w,null==(i=u.find((function(e){return e.value===a})))?null:i)),n.current.focus())}var a,i},"aria-label":t.label?void 0:(0,c.__)("Page","photo-block"),"aria-autocomplete":"list",ref:n}),H&&S().createElement("div",{className:"photo-block-pub-url-input__loading"},S().createElement(_.Spinner,null)),!H&&!(0,an.isURL)(M)&&S().createElement(S().Fragment,null,S().createElement(_.Button,{className:"photo-block-pub-url-input__search-button",icon:S().createElement(dn,null),iconSize:18,label:(0,c.__)("Search for a Page","photo-block"),onClick:function(){h(!0)}})),!H&&(0,an.isURL)(M)&&S().createElement(S().Fragment,null,S().createElement(_.Button,{className:"photo-block-pub-url-input__apply-button",icon:S().createElement(fn,null),iconSize:18,label:(0,c.__)("Apply Link","photo-block"),onClick:function(e){var n={permalink:M,label:(0,an.filterURLForDisplay)(M),slug:"",value:""};O(n),t.onItemSelect(e,M)}}))))),f&&!!u.length&&S().createElement("div",{className:"photo-block-suggestions-wrapper"},S().createElement("div",{role:"listbox",id:N,className:"photo-block-url-input__suggestions"},u.map((function(e,n){var o="photo-block-suggested-value-".concat(e.value),r=i()("photo-block-url-input__suggestion",{"is-selected":e.value===w});return S().createElement(_.Button,{key:o,id:o,value:e.value,role:"option","aria-selected":e.value===w,className:r,onClick:function(o){R(parseInt(o.target.value)),P(n),O(e),h(!1),t.onItemSelect(o,e.permalink)},icon:"post"===e.type?S().createElement(hn,null):S().createElement(mn,null),iconSize:2,iconPosition:"left"},S().createElement("span",{className:"photo-block-search-item"},S().createElement("span",{className:"photo-block-search-item-title"},e.label),S().createElement("span",{className:"photo-block-search-item-info"},e.permalink)))})))))};Sn.defaultProps={label:(0,c.__)("Page","photo-block"),onItemSelect:function(){},hasInititialFocus:!1,itemIcon:S().createElement(S().Fragment,null)},Sn.propTypes={restEndpoint:Rt().string.isRequired,restNonce:Rt().string.isRequired,label:Rt().string.isRequired,onItemSelect:Rt().func.isRequired,hasInititialFocus:Rt().bool.isRequired,itemIcon:Rt().element.isRequired};const kn=Sn;function wn(e){return wn="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},wn(e)}var Rn;function Tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function xn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:On,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_GLOBAL_STYLE":var n=t.slug,o=xn(xn({},e.globalStyles),{},In({},n,t.globalStyle));return xn(xn({},e),{},{globalStyles:o});case"REMOVE_GLOBAL_STYLE":var r=xn({},e.globalStyles);return delete r[t.slug],xn(xn({},e),{},{globalStyles:r});case"SET_GLOBAL_STYLE_REFRESH":return xn(xn({},e),{},{globalStyleRefresh:t.refresh});default:return e}},actions:{setGlobalStyle:function(e,t){return{type:"SET_GLOBAL_STYLE",globalStyle:e,slug:t}},removeGlobalStyle:function(e){return{type:"REMOVE_GLOBAL_STYLE",slug:e}},setGlobalStyleRefresh:function(e){return{type:"SET_GLOBAL_STYLE_REFRESH",refresh:e}}},selectors:{getGlobalStyleBySlug:function(e,t){return e.globalStyles[t]||{}},getGlobalStyles:function(e){return e.globalStyles},hasGlobalStyle:function(e,t){return!("none"===t||!t)&&Object.keys(e.globalStyles).includes(t)},getGlobalStyleRefresh:function(e){return e.globalStyleRefresh}}});(0,u.register)(Cn);const An=Cn,Pn=function(e){var t=e.attributes,n=e.setAttributes,o=e.anchorRef,r=e.blockUniqueId,a=(0,u.useSelect)((function(e){return{photoMode:e(v(r)).getPhotoMode(),imageData:e(v(r)).getImageData()}})),l=a.photoMode,s=a.imageData,p=(0,u.useSelect)((function(e){return{hasGlobalStyle:e(An).hasGlobalStyle}})).hasGlobalStyle,d=(t.mediaLinkOverride,t.mediaLinkType),f=t.mediaLinkTitle,h=t.mediaLinkUrl,m=t.lightboxCaption,g=t.lightboxEnabled,b=t.lightboxShowCaption,y=t.globalStyle;return React.createElement(React.Fragment,null,React.createElement(_.Popover,{position:"bottom center",className:"dlx-photo-block__media-link-popover",expandOnMobile:!0,focusOnMount:!0,onClose:function(){e.onClose()},anchor:o},React.createElement("div",{className:"dlx-photo-block__media-link-container"},React.createElement("h2",null,(0,c.__)("Select where to link to.","photo-block")),React.createElement(_.ButtonGroup,{className:"dlx-photo-block__media-link-button-group"},React.createElement(_.Button,{variant:"secondary",icon:React.createElement(ln,null),className:i()({"is-pressed":"none"===d}),onClick:function(){p(y)&&n({mediaLinkOverride:!0}),n({mediaLinkType:"none"})}},React.createElement("span",{className:"dlx-photo-block__media-link-button-text"},(0,c.__)("No link","photo-block"))),React.createElement(_.Button,{variant:"secondary",icon:React.createElement(P,null),className:i()({"is-pressed":"image"===d}),onClick:function(){p(y)&&n({mediaLinkOverride:!0}),n({mediaLinkType:"image"})}},(0,c.__)("The full size photo","photo-block")),React.createElement(_.Button,{variant:"secondary",icon:React.createElement(cn,null),className:i()({"is-pressed":"page"===d}),onClick:function(){p(y)&&n({mediaLinkOverride:!0}),n({mediaLinkType:"page"})},disabled:"photo"!==l},(0,c.__)("The photo's page","photo-block")),React.createElement(_.Button,{variant:"secondary",icon:React.createElement(sn,null),className:i()({"is-pressed":"custom"===d}),onClick:function(){p(y)&&n({mediaLinkOverride:!0}),n({mediaLinkType:"custom"})}},(0,c.__)("Custom link","photo-block"))),"custom"===d&&React.createElement(React.Fragment,null,React.createElement(kn,{restNonce:photoBlock.restNonce,restEndpoint:photoBlock.restUrl+"/search/pages",itemIcon:React.createElement(sn,null),onItemSelect:function(e,t){n({mediaLinkUrl:t})},savedValue:h})),"image"===d&&React.createElement(React.Fragment,null,React.createElement("div",{className:"pdlx-photo-block__media-link-media-external"},React.createElement(_.Button,{variant:"link",icon:React.createElement(un,null),iconSize:18,iconPosition:"right",label:(0,c.__)("Open in new tab","archive-pages-pro"),href:s.full,target:"_blank",rel:"noopener noreferrer"},(0,c.__)("Media File","photo-block")))),"page"===d&&React.createElement(React.Fragment,null,React.createElement("div",{className:"pdlx-photo-block__media-link-media-page"},React.createElement(_.Button,{variant:"link",icon:React.createElement(un,null),iconSize:18,iconPosition:"right",label:(0,c.__)("Open in new tab","archive-pages-pro"),href:s.attachment_link,target:"_blank",rel:"noopener noreferrer",disabled:"photo"!==l},(0,c.__)("Attachment Page","photo-block")))),"image"===d&&React.createElement(React.Fragment,null,React.createElement(_.PanelBody,{title:(0,c.__)("Lightbox","photo-block"),initialOpen:!1},React.createElement(_.PanelRow,null,React.createElement(_.ToggleControl,{label:(0,c.__)("Enable lightbox","photo-block"),checked:g,onChange:function(e){n({lightboxEnabled:e})},help:(0,c.__)("Popup the full size photo in a lightbox when clicked.","photo-block")})),g&&React.createElement(React.Fragment,null,React.createElement(_.PanelRow,null,React.createElement(_.ToggleControl,{label:(0,c.__)("Show caption","photo-block"),checked:b,onChange:function(e){n({lightboxShowCaption:e})}})),b&&React.createElement(_.PanelRow,null,React.createElement(_.TextControl,{label:(0,c.__)("Custom Caption (optional)","photo-block"),value:m,onChange:function(e){n({lightboxCaption:e})},help:(0,c.__)("Leave blank to use the photo's caption.","photo-block")}))))),"none"!==d&&React.createElement(_.PanelBody,{title:(0,c.__)("Advanced","photo-block"),initialOpen:!1},(!g||"image"!==d)&&React.createElement(_.PanelRow,null,React.createElement(_.ToggleControl,{label:(0,c.__)("Open in new tab","photo-block"),checked:t.mediaLinkNewTab,onChange:function(e){""===t.mediaLinkRel&&e&&n({mediaLinkRel:"noopener noreferrer"}),"noopener noreferrer"!==t.mediaLinkRel||e||n({mediaLinkRel:""}),n({mediaLinkNewTab:e})}})),React.createElement(_.PanelRow,null,React.createElement(_.TextControl,{label:(0,c.__)("Link Title","photo-block"),value:f,onChange:function(e){n({mediaLinkTitle:e})},help:(0,c.__)("The link title attribute is for SEO and accessibility purposes. It is used to describe the link.","photo-block")})),React.createElement(_.PanelRow,null,React.createElement(_.TextControl,{label:(0,c.__)("Link Rel","photo-block"),value:t.mediaLinkRel,onChange:function(e){n({mediaLinkRel:e})},help:(0,c.__)("The link rel attribute is for SEO and accessibility purposes. It is used to describe the relationship between the current document and the linked document.","photo-block")})),React.createElement(_.PanelRow,null,React.createElement(_.TextControl,{label:(0,c.__)("Link Class","photo-block"),value:t.mediaLinkClass,onChange:function(e){n({mediaLinkClass:e})},help:(0,c.__)("Add a CSS class to the link for styling purposes.","photo-block")})),React.createElement(_.PanelRow,null,React.createElement(_.TextControl,{label:(0,c.__)("Link Anchor ID","photo-block"),value:t.mediaLinkAnchorId,onChange:function(e){n({mediaLinkAnchorId:e})},help:(0,c.__)("This is the ID for the link, which you can use to link to the photo with an anchor. The ID for each link should be unique.","photo-block")}))))))},Dn=function(){var e=(0,u.useDispatch)("core/editor").setDeviceType,t=(0,u.useSelect)((function(e){return(0,e("core/editor").getDeviceType)().toLowerCase()}),[]);return(0,l.useEffect)((function(){}),[t]),[t,e]};function Nn(e){return Nn="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},Nn(e)}function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:1;if(0===e.indexOf("var("))return e;if(0===e.indexOf("rgba")){var n=Zn()(e).hex;return $n()(n,t)}return 0===e.indexOf("rgb")?$n()(Zn()(e).hex,t):w?$n()(e,t):e},A=S().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 488.47 488.47"},S().createElement("path",{d:"M244.235 0S61.058 174.454 61.058 314.016c0 96.347 82.011 174.454 183.177 174.454s183.177-78.107 183.177-174.454C427.412 174.454 244.235 0 244.235 0zm0 91.588c46.976 52.953 97.174 123.655 114.946 183.177H129.292c17.771-59.522 67.968-130.223 114.943-183.177z"})),P=function(){r&&a(!1)};return S().createElement(_.BaseControl,{className:"photo-block-component-color-picker-wrapper"},!!v&&!x&&S().createElement("h3",{className:"photo-block-color-component-label"},S().createElement("span",null,v)),S().createElement("div",{className:"photo-block-component-color-picker"},S().createElement("div",{className:"photo-block-color-picker-area photo-block-component-color-picker-palette"},!r&&S().createElement(S().Fragment,null,S().createElement("div",{className:i()("components-color-palette__item-wrapper components-circular-option-picker__option-wrapper photo-block-color-picker-area photo-block-component-color-picker-palette",g?"":"components-color-palette__custom-color")},S().createElement(_.Tooltip,{text:(0,c.__)("Choose Color","photo-block")},S().createElement("button",{type:"button","aria-expanded":r,className:"components-button components-circular-option-picker__option is-pressed",onClick:function(){a(!0)},"aria-label":(0,c.__)("Custom color picker","photo-block"),style:{background:s}},S().createElement("span",{className:"components-color-palette__custom-color-gradient"}))))),r&&S().createElement("div",{className:i()("components-color-palette__item-wrapper components-circular-option-picker__option-wrapper photo-block-color-picker-area photo-block-component-color-picker-palette",g?"":"components-color-palette__custom-color")},S().createElement(_.Tooltip,{text:(0,c.__)("Choose Color","photo-block")},S().createElement("button",{type:"button","aria-expanded":r,className:"components-button components-circular-option-picker__option is-pressed",onClick:P,"aria-label":(0,c.__)("Custom color picker","photo-block"),style:{background:s}},S().createElement("span",{className:"components-color-palette__custom-color-gradient"})))),r&&S().createElement(_.Popover,{className:"photo-block-component-color-picker",onClose:P,noArrow:!1},S().createElement(_.BaseControl,{key:n},S().createElement(_.ColorPicker,{key:n,color:s,onChangeComplete:function(e){var t=C(e.hex,d);u(t),b(R,t,e.hex)},disableAlpha:!0,defaultValue:h})),w&&S().createElement("div",{className:"photo-block-component-color-opacity"},S().createElement(_.Tooltip,{text:(0,c.__)("Opacity","photo-block")},A),S().createElement(_.RangeControl,{value:d,onChange:function(e){var t=C(s,e);f(e),u(s),b(R,t,s),y(e)},min:0,max:1,step:.01,initialPosition:1,disabled:0===s.indexOf("var(")})),S().createElement(_.BaseControl,{className:"photo-block-component-color-picker-palette"},S().createElement(_.ColorPalette,{colors:(I=[],O=[],m.forEach((function(e,t){I.includes(e.color)||(I.push(e.color),O.push(e))})),O),value:s,onChange:function(e){var t=C(e);b(R,t),u(t)},disableCustomColors:!0,clearable:!1})),S().createElement("div",{className:"components-color-clear-color"},S().createElement(_.Button,{onClick:function(){b(R,h),u(h)}},(0,c.__)("Clear Color","photo-block")))))))};eo.propTypes={label:Rt().string,onChange:Rt().func.isRequired,onOpacityChange:Rt().func,value:Rt().string,defaultColor:Rt().string,alpha:Rt().bool,hideLabelFromVision:Rt().bool,defaultColors:Rt().array.isRequired},eo.defaultProps={label:(0,c.__)("Color","photo-block"),value:"",defaultColor:"transparent",alpha:!1,hideLabelFromVision:!1,onOpacityChange:function(){}};const to=eo;function no(e){return no="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},no(e)}function oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ro(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n"checkbox"===e.type,mo=e=>e instanceof Date,go=e=>null==e;const bo=e=>"object"==typeof e;var yo=e=>!go(e)&&!Array.isArray(e)&&bo(e)&&!mo(e),vo=e=>yo(e)&&e.target?ho(e.target)?e.target.checked:e.target.value:e,_o=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),Eo=e=>{const t=e.constructor&&e.constructor.prototype;return yo(t)&&t.hasOwnProperty("isPrototypeOf")},So="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function ko(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(So&&(e instanceof Blob||e instanceof FileList)||!n&&!yo(e))return e;if(t=n?[]:{},Array.isArray(e)||Eo(e))for(const n in e)t[n]=ko(e[n]);else t=e}return t}var wo=e=>Array.isArray(e)?e.filter(Boolean):[],Ro=e=>void 0===e,To=(e,t,n)=>{if(!t||!yo(e))return n;const o=wo(t.split(/[,[\].]+?/)).reduce(((e,t)=>go(e)?e:e[t]),e);return Ro(o)||o===e?Ro(e[t])?n:e[t]:o};const xo={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Io={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Oo="pattern",Co="required",Ao=E.createContext(null),Po=()=>E.useContext(Ao);var Do=(e,t,n,o=!0)=>{const r={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(r,a,{get:()=>{const r=a;return t._proxyFormState[r]!==Io.all&&(t._proxyFormState[r]=!o||Io.all),n&&(n[r]=!0),e[r]}});return r},No=e=>yo(e)&&!Object.keys(e).length,Lo=(e,t,n,o)=>{n(e);const{name:r,...a}=e;return No(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find((e=>t[e]===(!o||Io.all)))},Mo=e=>Array.isArray(e)?e:[e],Bo=(e,t,n)=>n&&t?e===t:!e||!t||e===t||Mo(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function jo(e){const t=E.useRef(e);t.current=e,E.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}function Uo(e){const t=Po(),{control:n=t.control,disabled:o,name:r,exact:a}=e||{},[i,l]=E.useState(n._formState),c=E.useRef(!0),s=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=E.useRef(r);return u.current=r,jo({disabled:o,next:e=>c.current&&Bo(u.current,e.name,a)&&Lo(e,s.current,n._updateFormState)&&l({...n._formState,...e}),subject:n._subjects.state}),E.useEffect((()=>(c.current=!0,s.current.isValid&&n._updateValid(!0),()=>{c.current=!1})),[n]),Do(i,n,s.current,!1)}var Fo=e=>"string"==typeof e,Go=(e,t,n,o,r)=>Fo(e)?(o&&t.watch.add(e),To(n,e,r)):Array.isArray(e)?e.map((e=>(o&&t.watch.add(e),To(n,e)))):(o&&(t.watchAll=!0),n);function qo(e){const t=Po(),{control:n=t.control,name:o,defaultValue:r,disabled:a,exact:i}=e||{},l=E.useRef(o);l.current=o,jo({disabled:a,subject:n._subjects.values,next:e=>{Bo(l.current,e.name,i)&&s(ko(Go(l.current,n._names,e.values||n._formValues,!1,r)))}});const[c,s]=E.useState(n._getWatch(o,r));return E.useEffect((()=>n._removeUnmounted())),c}var Vo=e=>/^\w*$/.test(e),Ho=e=>wo(e.replace(/["|']|\]/g,"").split(/\.|\[/));function zo(e,t,n){let o=-1;const r=Vo(t)?[t]:Ho(t),a=r.length,i=a-1;for(;++oe.render(function(e){const t=Po(),{name:n,control:o=t.control,shouldUnregister:r}=e,a=_o(o._names.array,n),i=qo({control:o,name:n,defaultValue:To(o._formValues,n,To(o._defaultValues,n,e.defaultValue)),exact:!0}),l=Uo({control:o,name:n}),c=E.useRef(o.register(n,{...e.rules,value:i}));return E.useEffect((()=>{const e=o._options.shouldUnregister||r,t=(e,t)=>{const n=To(o._fields,e);n&&(n._f.mount=t)};if(t(n,!0),e){const e=ko(To(o._options.defaultValues,n));zo(o._defaultValues,n,e),Ro(To(o._formValues,n))&&zo(o._formValues,n,e)}return()=>{(a?e&&!o._state.action:e)?o.unregister(n):t(n,!1)}}),[n,o,a,r]),{field:{name:n,value:i,onChange:E.useCallback((e=>c.current.onChange({target:{value:vo(e),name:n},type:xo.CHANGE})),[n]),onBlur:E.useCallback((()=>c.current.onBlur({target:{value:To(o._formValues,n),name:n},type:xo.BLUR})),[n,o]),ref:e=>{const t=To(o._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!To(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!To(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!To(l.touchedFields,n)},error:{enumerable:!0,get:()=>To(l.errors,n)}})}}(e));var Yo=(e,t,n,o,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[o]:r||!0}}:{};const Xo=(e,t,n)=>{for(const o of n||Object.keys(e)){const n=To(e,o);if(n){const{_f:e,...o}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else yo(o)&&Xo(o,t)}}};var $o=e=>({isOnSubmit:!e||e===Io.onSubmit,isOnBlur:e===Io.onBlur,isOnChange:e===Io.onChange,isOnAll:e===Io.all,isOnTouch:e===Io.onTouched}),Qo=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),Zo=(e,t,n)=>{const o=wo(To(e,n));return zo(o,"root",t[n]),zo(e,n,o),e},Jo=e=>"boolean"==typeof e,Ko=e=>"file"===e.type,er=e=>"function"==typeof e,tr=e=>{if(!So)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},nr=e=>Fo(e),or=e=>"radio"===e.type,rr=e=>e instanceof RegExp;const ar={value:!1,isValid:!1},ir={value:!0,isValid:!0};var lr=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ro(e[0].attributes.value)?Ro(e[0].value)||""===e[0].value?ir:{value:e[0].value,isValid:!0}:ir:ar}return ar};const cr={isValid:!1,value:null};var sr=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),cr):cr;function ur(e,t,n="validate"){if(nr(e)||Array.isArray(e)&&e.every(nr)||Jo(e)&&!e)return{type:n,message:nr(e)?e:"",ref:t}}var pr=e=>yo(e)&&!rr(e)?e:{value:e,message:""},dr=async(e,t,n,o,r)=>{const{ref:a,refs:i,required:l,maxLength:c,minLength:s,min:u,max:p,pattern:d,validate:f,name:h,valueAsNumber:m,mount:g,disabled:b}=e._f,y=To(t,h);if(!g||b)return{};const v=i?i[0]:a,_=e=>{o&&v.reportValidity&&(v.setCustomValidity(Jo(e)?"":e||""),v.reportValidity())},E={},S=or(a),k=ho(a),w=S||k,R=(m||Ko(a))&&Ro(a.value)&&Ro(y)||tr(a)&&""===a.value||""===y||Array.isArray(y)&&!y.length,T=Yo.bind(null,h,n,E),x=(e,t,n,o="maxLength",r="minLength")=>{const i=e?t:n;E[h]={type:e?o:r,message:i,ref:a,...T(e?o:r,i)}};if(r?!Array.isArray(y)||!y.length:l&&(!w&&(R||go(y))||Jo(y)&&!y||k&&!lr(i).isValid||S&&!sr(i).isValid)){const{value:e,message:t}=nr(l)?{value:!!l,message:l}:pr(l);if(e&&(E[h]={type:Co,message:t,ref:v,...T(Co,t)},!n))return _(t),E}if(!(R||go(u)&&go(p))){let e,t;const o=pr(p),r=pr(u);if(go(y)||isNaN(y)){const n=a.valueAsDate||new Date(y),i=e=>new Date((new Date).toDateString()+" "+e),l="time"==a.type,c="week"==a.type;Fo(o.value)&&y&&(e=l?i(y)>i(o.value):c?y>o.value:n>new Date(o.value)),Fo(r.value)&&y&&(t=l?i(y)o.value),go(r.value)||(t=n+e.value,r=!go(t.value)&&y.length<+t.value;if((o||r)&&(x(o,e.message,t.message),!n))return _(E[h].message),E}if(d&&!R&&Fo(y)){const{value:e,message:t}=pr(d);if(rr(e)&&!y.match(e)&&(E[h]={type:Oo,message:t,ref:a,...T(Oo,t)},!n))return _(t),E}if(f)if(er(f)){const e=ur(await f(y,t),v);if(e&&(E[h]={...e,...T("validate",e.message)},!n))return _(e.message),E}else if(yo(f)){let e={};for(const o in f){if(!No(e)&&!n)break;const r=ur(await f[o](y,t),v,o);r&&(e={...r,...T(o,r.message)},_(r.message),n&&(E[h]=e))}if(!No(e)&&(E[h]={ref:v,...e},!n))return E}return _(!0),E};function fr(e,t){const n=Array.isArray(t)?t:Vo(t)?[t]:Ho(t),o=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let o=0;for(;o{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var mr=e=>go(e)||!bo(e);function gr(e,t){if(mr(e)||mr(t))return e===t;if(mo(e)&&mo(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n){const n=e[r];if(!o.includes(r))return!1;if("ref"!==r){const e=t[r];if(mo(n)&&mo(e)||yo(n)&&yo(e)||Array.isArray(n)&&Array.isArray(e)?!gr(n,e):n!==e)return!1}}return!0}var br=e=>"select-multiple"===e.type,yr=e=>or(e)||ho(e),vr=e=>tr(e)&&e.isConnected,_r=e=>{for(const t in e)if(er(e[t]))return!0;return!1};function Er(e,t={}){const n=Array.isArray(e);if(yo(e)||n)for(const n in e)Array.isArray(e[n])||yo(e[n])&&!_r(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Er(e[n],t[n])):go(e[n])||(t[n]=!0);return t}function Sr(e,t,n){const o=Array.isArray(e);if(yo(e)||o)for(const o in e)Array.isArray(e[o])||yo(e[o])&&!_r(e[o])?Ro(t)||mr(n[o])?n[o]=Array.isArray(e[o])?Er(e[o],[]):{...Er(e[o])}:Sr(e[o],go(t)?{}:t[o],n[o]):n[o]=!gr(e[o],t[o]);return n}var kr=(e,t)=>Sr(e,t,Er(t)),wr=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:o})=>Ro(e)?e:t?""===e?NaN:e?+e:e:n&&Fo(e)?new Date(e):o?o(e):e;function Rr(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return Ko(t)?t.files:or(t)?sr(e.refs).value:br(t)?[...t.selectedOptions].map((({value:e})=>e)):ho(t)?lr(e.refs).value:wr(Ro(t.value)?e.ref.value:t.value,e)}var Tr=(e,t,n,o)=>{const r={};for(const n of e){const e=To(t,n);e&&zo(r,n,e._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:o}},xr=e=>Ro(e)?e:rr(e)?e.source:yo(e)?rr(e.value)?e.value.source:e.value:e,Ir=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Or(e,t,n){const o=To(e,n);if(o||Vo(n))return{error:o,name:n};const r=n.split(".");for(;r.length;){const o=r.join("."),a=To(t,o),i=To(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(i&&i.type)return{name:o,error:i};r.pop()}return{name:n}}var Cr=(e,t,n,o,r)=>!r.isOnAll&&(!n&&r.isOnTouch?!(t||e):(n?o.isOnBlur:r.isOnBlur)?!e:!(n?o.isOnChange:r.isOnChange)||e),Ar=(e,t)=>!wo(To(e,t)).length&&fr(e,t);const Pr={mode:Io.onSubmit,reValidateMode:Io.onChange,shouldFocusError:!0};function Dr(e={},t){let n,o={...Pr,...e},r={submitCount:0,isDirty:!1,isLoading:er(o.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},a={},i=(yo(o.defaultValues)||yo(o.values))&&ko(o.defaultValues||o.values)||{},l=o.shouldUnregister?{}:ko(i),c={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u=0;const p={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:hr(),array:hr(),state:hr()},f=e.resetOptions&&e.resetOptions.keepDirtyValues,h=$o(o.mode),m=$o(o.reValidateMode),g=o.criteriaMode===Io.all,b=async e=>{if(p.isValid||e){const e=o.resolver?No((await E()).errors):await S(a,!0);e!==r.isValid&&d.state.next({isValid:e})}},y=e=>p.isValidating&&d.state.next({isValidating:e}),v=(e,t,n,o)=>{const r=To(a,e);if(r){const a=To(l,e,Ro(n)?To(i,e):n);Ro(a)||o&&o.defaultChecked||t?zo(l,e,t?a:Rr(r._f)):R(e,a),c.mount&&b()}},_=(e,t,n,o,a)=>{let l=!1,c=!1;const s={name:e};if(!n||o){p.isDirty&&(c=r.isDirty,r.isDirty=s.isDirty=k(),l=c!==s.isDirty);const n=gr(To(i,e),t);c=To(r.dirtyFields,e),n?fr(r.dirtyFields,e):zo(r.dirtyFields,e,!0),s.dirtyFields=r.dirtyFields,l=l||p.dirtyFields&&c!==!n}if(n){const t=To(r.touchedFields,e);t||(zo(r.touchedFields,e,n),s.touchedFields=r.touchedFields,l=l||p.touchedFields&&t!==n)}return l&&a&&d.state.next(s),l?s:{}},E=async e=>o.resolver(l,o.context,Tr(e||s.mount,a,o.criteriaMode,o.shouldUseNativeValidation)),S=async(e,t,n={valid:!0})=>{for(const a in e){const i=e[a];if(i){const{_f:e,...a}=i;if(e){const a=s.array.has(e.name),c=await dr(i,l,g,o.shouldUseNativeValidation&&!t,a);if(c[e.name]&&(n.valid=!1,t))break;!t&&(To(c,e.name)?a?Zo(r.errors,c,e.name):zo(r.errors,e.name,c[e.name]):fr(r.errors,e.name))}a&&await S(a,t,n)}}return n.valid},k=(e,t)=>(e&&t&&zo(l,e,t),!gr(C(),i)),w=(e,t,n)=>Go(e,s,{...c.mount?l:Ro(t)?i:Fo(e)?{[e]:t}:t},n,t),R=(e,t,n={})=>{const o=To(a,e);let r=t;if(o){const n=o._f;n&&(!n.disabled&&zo(l,e,wr(t,n)),r=tr(n.ref)&&go(t)?"":t,br(n.ref)?[...n.ref.options].forEach((e=>e.selected=r.includes(e.value))):n.refs?ho(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(r)?!!r.find((t=>t===e.value)):r===e.value))):n.refs[0]&&(n.refs[0].checked=!!r):n.refs.forEach((e=>e.checked=e.value===r)):Ko(n.ref)?n.ref.value="":(n.ref.value=r,n.ref.type||d.values.next({name:e,values:{...l}})))}(n.shouldDirty||n.shouldTouch)&&_(e,r,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&O(e)},T=(e,t,n)=>{for(const o in t){const r=t[o],i=`${e}.${o}`,l=To(a,i);!s.array.has(e)&&mr(r)&&(!l||l._f)||mo(r)?R(i,r,n):T(i,r,n)}},x=(e,n,o={})=>{const u=To(a,e),f=s.array.has(e),h=ko(n);zo(l,e,h),f?(d.array.next({name:e,values:{...l}}),(p.isDirty||p.dirtyFields)&&o.shouldDirty&&d.state.next({name:e,dirtyFields:kr(i,l),isDirty:k(e,h)})):!u||u._f||go(h)?R(e,h,o):T(e,h,o),Qo(e,s)&&d.state.next({...r}),d.values.next({name:e,values:{...l}}),!c.mount&&t()},I=async t=>{const i=t.target;let c=i.name,f=!0;const v=To(a,c);if(v){let k,w;const R=i.type?Rr(v._f):vo(t),T=t.type===xo.BLUR||t.type===xo.FOCUS_OUT,x=!Ir(v._f)&&!o.resolver&&!To(r.errors,c)&&!v._f.deps||Cr(T,To(r.touchedFields,c),r.isSubmitted,m,h),I=Qo(c,s,T);zo(l,c,R),T?(v._f.onBlur&&v._f.onBlur(t),n&&n(0)):v._f.onChange&&v._f.onChange(t);const C=_(c,R,T,!1),A=!No(C)||I;if(!T&&d.values.next({name:c,type:t.type,values:{...l}}),x)return p.isValid&&b(),A&&d.state.next({name:c,...I?{}:C});if(!T&&I&&d.state.next({...r}),y(!0),o.resolver){const{errors:e}=await E([c]),t=Or(r.errors,a,c),n=Or(e,a,t.name||c);k=n.error,c=n.name,w=No(e)}else k=(await dr(v,l,g,o.shouldUseNativeValidation))[c],f=isNaN(R)||R===To(l,c,R),f&&(k?w=!1:p.isValid&&(w=await S(a,!0)));f&&(v._f.deps&&O(v._f.deps),((t,o,a,i)=>{const l=To(r.errors,t),c=p.isValid&&Jo(o)&&r.isValid!==o;var s;if(e.delayError&&a?(s=()=>((e,t)=>{zo(r.errors,e,t),d.state.next({errors:r.errors})})(t,a),n=e=>{clearTimeout(u),u=setTimeout(s,e)},n(e.delayError)):(clearTimeout(u),n=null,a?zo(r.errors,t,a):fr(r.errors,t)),(a?!gr(l,a):l)||!No(i)||c){const e={...i,...c&&Jo(o)?{isValid:o}:{},errors:r.errors,name:t};r={...r,...e},d.state.next(e)}y(!1)})(c,w,k,C))}},O=async(e,t={})=>{let n,i;const l=Mo(e);if(y(!0),o.resolver){const t=await(async e=>{const{errors:t}=await E();if(e)for(const n of e){const e=To(t,n);e?zo(r.errors,n,e):fr(r.errors,n)}else r.errors=t;return t})(Ro(e)?e:l);n=No(t),i=e?!l.some((e=>To(t,e))):n}else e?(i=(await Promise.all(l.map((async e=>{const t=To(a,e);return await S(t&&t._f?{[e]:t}:t)})))).every(Boolean),(i||r.isValid)&&b()):i=n=await S(a);return d.state.next({...!Fo(e)||p.isValid&&n!==r.isValid?{}:{name:e},...o.resolver||!e?{isValid:n}:{},errors:r.errors,isValidating:!1}),t.shouldFocus&&!i&&Xo(a,(e=>e&&To(r.errors,e)),e?l:s.mount),i},C=e=>{const t={...i,...c.mount?l:{}};return Ro(e)?t:Fo(e)?To(t,e):e.map((e=>To(t,e)))},A=(e,t)=>({invalid:!!To((t||r).errors,e),isDirty:!!To((t||r).dirtyFields,e),isTouched:!!To((t||r).touchedFields,e),error:To((t||r).errors,e)}),P=(e,t={})=>{for(const n of e?Mo(e):s.mount)s.mount.delete(n),s.array.delete(n),t.keepValue||(fr(a,n),fr(l,n)),!t.keepError&&fr(r.errors,n),!t.keepDirty&&fr(r.dirtyFields,n),!t.keepTouched&&fr(r.touchedFields,n),!o.shouldUnregister&&!t.keepDefaultValue&&fr(i,n);d.values.next({values:{...l}}),d.state.next({...r,...t.keepDirty?{isDirty:k()}:{}}),!t.keepIsValid&&b()},D=(e,t={})=>{let n=To(a,e);const r=Jo(t.disabled);return zo(a,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),s.mount.add(e),n?r&&zo(l,e,t.disabled?void 0:To(l,e,Rr(n._f))):v(e,!0,t.value),{...r?{disabled:t.disabled}:{},...o.shouldUseNativeValidation?{required:!!t.required,min:xr(t.min),max:xr(t.max),minLength:xr(t.minLength),maxLength:xr(t.maxLength),pattern:xr(t.pattern)}:{},name:e,onChange:I,onBlur:I,ref:r=>{if(r){D(e,t),n=To(a,e);const o=Ro(r.value)&&r.querySelectorAll&&r.querySelectorAll("input,select,textarea")[0]||r,l=yr(o),c=n._f.refs||[];if(l?c.find((e=>e===o)):o===n._f.ref)return;zo(a,e,{_f:{...n._f,...l?{refs:[...c.filter(vr),o,...Array.isArray(To(i,e))?[{}]:[]],ref:{type:o.type,name:e}}:{ref:o}}}),v(e,!1,void 0,o)}else n=To(a,e,{}),n._f&&(n._f.mount=!1),(o.shouldUnregister||t.shouldUnregister)&&(!_o(s.array,e)||!c.action)&&s.unMount.add(e)}}},N=()=>o.shouldFocusError&&Xo(a,(e=>e&&To(r.errors,e)),s.mount),L=(n,o={})=>{const u=n||i,h=ko(u),m=n&&!No(n)?h:i;if(o.keepDefaultValues||(i=u),!o.keepValues){if(o.keepDirtyValues||f)for(const e of s.mount)To(r.dirtyFields,e)?zo(m,e,To(l,e)):x(e,To(m,e));else{if(So&&Ro(n))for(const e of s.mount){const t=To(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(tr(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}l=e.shouldUnregister?o.keepDefaultValues?ko(i):{}:h,d.array.next({values:{...m}}),d.values.next({values:{...m}})}s={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!c.mount&&t(),c.mount=!p.isValid||!!o.keepIsValid,c.watch=!!e.shouldUnregister,d.state.next({submitCount:o.keepSubmitCount?r.submitCount:0,isDirty:o.keepDirty?r.isDirty:!(!o.keepDefaultValues||gr(n,i)),isSubmitted:!!o.keepIsSubmitted&&r.isSubmitted,dirtyFields:o.keepDirtyValues?r.dirtyFields:o.keepDefaultValues&&n?kr(i,n):{},touchedFields:o.keepTouched?r.touchedFields:{},errors:o.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},M=(e,t)=>L(er(e)?e(l):e,t);return{control:{register:D,unregister:P,getFieldState:A,_executeSchema:E,_getWatch:w,_getDirty:k,_updateValid:b,_removeUnmounted:()=>{for(const e of s.unMount){const t=To(a,e);t&&(t._f.refs?t._f.refs.every((e=>!vr(e))):!vr(t._f.ref))&&P(e)}s.unMount=new Set},_updateFieldArray:(e,t=[],n,o,s=!0,u=!0)=>{if(o&&n){if(c.action=!0,u&&Array.isArray(To(a,e))){const t=n(To(a,e),o.argA,o.argB);s&&zo(a,e,t)}if(u&&Array.isArray(To(r.errors,e))){const t=n(To(r.errors,e),o.argA,o.argB);s&&zo(r.errors,e,t),Ar(r.errors,e)}if(p.touchedFields&&u&&Array.isArray(To(r.touchedFields,e))){const t=n(To(r.touchedFields,e),o.argA,o.argB);s&&zo(r.touchedFields,e,t)}p.dirtyFields&&(r.dirtyFields=kr(i,l)),d.state.next({name:e,isDirty:k(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else zo(l,e,t)},_getFieldArray:t=>wo(To(c.mount?l:i,t,e.shouldUnregister?To(i,t,[]):[])),_reset:L,_resetDefaultValues:()=>er(o.defaultValues)&&o.defaultValues().then((e=>{M(e,o.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_subjects:d,_proxyFormState:p,get _fields(){return a},get _formValues(){return l},get _state(){return c},set _state(e){c=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return r},set _formState(e){r=e},get _options(){return o},set _options(e){o={...o,...e}}},trigger:O,register:D,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=ko(l);if(d.state.next({isSubmitting:!0}),o.resolver){const{errors:e,values:t}=await E();r.errors=e,i=t}else await S(a);fr(r.errors,"root"),No(r.errors)?(d.state.next({errors:{}}),await e(i,n)):(t&&await t({...r.errors},n),N(),setTimeout(N)),d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:No(r.errors),submitCount:r.submitCount+1,errors:r.errors})},watch:(e,t)=>er(e)?d.values.subscribe({next:n=>e(w(void 0,t),n)}):w(e,t,!0),setValue:x,getValues:C,reset:M,resetField:(e,t={})=>{To(a,e)&&(Ro(t.defaultValue)?x(e,To(i,e)):(x(e,t.defaultValue),zo(i,e,t.defaultValue)),t.keepTouched||fr(r.touchedFields,e),t.keepDirty||(fr(r.dirtyFields,e),r.isDirty=t.defaultValue?k(e,To(i,e)):k()),t.keepError||(fr(r.errors,e),p.isValid&&b()),d.state.next({...r}))},clearErrors:e=>{e&&Mo(e).forEach((e=>fr(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:P,setError:(e,t,n)=>{const o=(To(a,e,{_f:{}})._f||{}).ref;zo(r.errors,e,{...t,ref:o}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},setFocus:(e,t={})=>{const n=To(a,e),o=n&&n._f;if(o){const e=o.refs?o.refs[0]:o.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:A}}function Nr(e={}){const t=E.useRef(),[n,o]=E.useState({isDirty:!1,isValidating:!1,isLoading:er(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:er(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Dr(e,(()=>o((e=>({...e}))))),formState:n});const r=t.current.control;return r._options=e,jo({subject:r._subjects.state,next:e=>{Lo(e,r._proxyFormState,r._updateFormState,!0)&&o({...r._formState})}}),E.useEffect((()=>{e.values&&!gr(e.values,r._defaultValues)?r._reset(e.values,r._options.resetOptions):r._resetDefaultValues()}),[e.values,r]),E.useEffect((()=>{r._state.mount||(r._updateValid(),r._state.mount=!0),r._state.watch&&(r._state.watch=!1,r._subjects.state.next({...r._formState})),r._removeUnmounted()})),t.current.formState=Do(n,r),t.current}const Lr=function(e){e.label;var t=e.value,n=e.onClick,o=e.units;return S().createElement("div",{className:"components-photo-block-units-control-header__units ".concat(null==e?void 0:e.className)},S().createElement("div",{className:"components-photo-block-control__units"},S().createElement(_.ButtonGroup,{className:"components-photo-block-control-buttons__units","aria-label":(0,c.__)("Select Units","photo-block")},o.map((function(e){var o=e;return"px"===e&&(o=(0,c._x)("Pixel","A size unit for CSS markup","photo-block")),"em"===e&&(o=(0,c._x)("Em","A size unit for CSS markup","photo-block")),"%"===e&&(o=(0,c._x)("Percentage","A size unit for CSS markup","photo-block")),"vw"===e&&(o=(0,c._x)("View Width","A size unit for CSS markup","photo-block")),"rem"===e&&(o=(0,c._x)("Rem","A size unit for CSS markup","photo-block")),"deg"===e&&(o=(0,c._x)("Degree","A size unit for CSS markup","photo-block")),S().createElement(_.Tooltip,{text:(0,c.sprintf)(/* translators: Unit type (px, em, %) */ /* translators: Unit type (px, em, %) */ +(0,c.__)("%s Units","photo-block"),o),key:e},S().createElement(_.Button,{key:e,className:"components-photo-block-control-button__units--"+e,isSmall:!0,variant:t===e?"primary":"secondary","aria-pressed":t===e,"aria-label":(0,c.sprintf)(/* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */ /* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */ +(0,c.__)("%s Units","photo-block"),o),onClick:function(){return n(e)}},e))})))))};function Mr(e,t,n,o,r){if(""!==e||""!==t||""!==n||""!==o)return null===r&&(r="px"),e=0!=parseFloat(e)&&""!==e?parseFloat(e)+r+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+r+" ":"0 ",n=0!=parseFloat(n)&&""!==n?parseFloat(n)+r+" ":"0 ",t===(o=0!=parseFloat(o)&&""!==o?parseFloat(o)+r+" ":"0 ")&&(o="",e===n&&(n="",e===t&&(t=""))),(e+""+t+n+o).trim()}var Br=function(e,t,n,o,r,a,i,l){if(""!==e||""!==n||""!==r||""!==i)return e="string"!=typeof e?0!=parseFloat(e)&&""!==e?parseFloat(e)+t+" ":"0 ":"".concat(e).concat(t," "),n="string"!=typeof n?0!=parseFloat(n)&&""!==n?parseFloat(n)+o+" ":"0 ":"".concat(n).concat(o," "),r="string"!=typeof r?0!=parseFloat(r)&&""!==r?parseFloat(r)+a+" ":"0 ":"".concat(r).concat(a," "),n===(i="string"!=typeof i?0!=parseFloat(i)&&""!==i?parseFloat(i)+l+" ":"0 ":"".concat(i).concat(l," "))&&(i="",e===r&&(r="",e===n&&(n=""))),(e+n+r+i).trim()},jr=function(e,t){var n=Gr(t,e,t[e].width,"width"),o=qr(t,e,t[e].unit,"unit");return n.match(/^(-)?[0-9]+$/)?"".concat(n).concat(o,";"):""===n||"0"===n?"unset;":"".concat(n,";")};function Ur(e,t){var n=e[t=t.toLowerCase()];if("desktop"===t){if(n.unitSync)return Mr(n.top,n.top,n.top,n.top,n.topUnit);var o=n.top,r=n.topUnit,a=n.right,i=n.rightUnit,l=n.bottom,c=n.bottomUnit,s=n.left,u=n.leftUnit;return Br(o,r,a,i,l,c,s,u)}if("tablet"===t||"mobile"===t){if(!0===qr(e,t,n.unitSync)){var p=Gr(e,t,n.top,"top");return Mr(p,p,p,p,Gr(e,t,n.topUnit,"topUnit"))}var d=Gr(e,t,n.top,"top"),f=Gr(e,t,n.topUnit,"topUnit"),h=Gr(e,t,n.right,"right"),m=Gr(e,t,n.rightUnit,"rightUnit"),g=Gr(e,t,n.bottom,"bottom"),b=Gr(e,t,n.bottomUnit,"bottomUnit"),y=Gr(e,t,n.left,"left"),v=Gr(e,t,n.leftUnit,"leftUnit");return Br(d,f,h,m,g,b,y,v)}return""}function Fr(e,t,n){var o=e[t=t.toLowerCase()];if(!0===qr(e,t,o.unitSync,"unitSync")){var r=Gr(e,t,o.top.width,"top","width"),a=Gr(e,t,o.top.unit,"top","unit"),i=Gr(e,t,o.top.color,"top","color"),l=Gr(e,t,o.top.borderStyle,"top","borderStyle");"".concat(n,"-border-top: ").concat(r).concat(a," ").concat(l," ").concat(i,";"),"".concat(n,"-border-right: ").concat(r).concat(a," ").concat(l," ").concat(h,";"),"".concat(n,"-border-bottom: ").concat(r).concat(a," ").concat(l," ").concat(y,";"),"".concat(n,"-border-left: ").concat(r).concat(a," ").concat(l," ").concat(S,";")}var c=Gr(e,t,o.top.width,"top","width"),s=Gr(e,t,o.top.unit,"top","unit"),u=Gr(e,t,o.top.color,"top","color"),p=Gr(e,t,o.top.borderStyle,"top","borderStyle"),d=Gr(e,t,o.right.width,"right","width"),f=Gr(e,t,o.right.unit,"right","unit"),h=Gr(e,t,o.right.color,"right","color"),m=Gr(e,t,o.right.borderStyle,"right","borderStyle"),g=Gr(e,t,o.bottom.width,"bottom","width"),b=Gr(e,t,o.bottom.unit,"bottom","unit"),y=Gr(e,t,o.bottom.color,"bottom","color"),v=Gr(e,t,o.bottom.borderStyle,"bottom","borderStyle"),_=Gr(e,t,o.left.width,"left","width"),E=Gr(e,t,o.left.unit,"left","unit"),S=Gr(e,t,o.left.color,"left","color"),k=Gr(e,t,o.left.borderStyle,"left","borderStyle"),w="";return w+="".concat(n,"-border-top: ").concat(c).concat(s," ").concat(p," ").concat(u,";"),w+="".concat(n,"-border-right: ").concat(d).concat(f," ").concat(m," ").concat(h,";"),(w+="".concat(n,"-border-bottom: ").concat(g).concat(b," ").concat(v," ").concat(y,";"))+"".concat(n,"-border-left: ").concat(_).concat(E," ").concat(k," ").concat(S,";")}function Gr(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";if("mobile"===t&&""===n){if(r&&""!==e.tablet[o][r])return e.tablet[o][r];if(r&&""!==e.desktop[o][r])return e.desktop[o][r];if(""!==e.tablet[o])return e.tablet[o];if(""!==e.desktop[o])return e.desktop[o]}if("tablet"===t&&""===n){if(r&&""!==e.desktop[o][r])return e.desktop[o][r];if(""!==e.desktop[o])return e.desktop[o]}return""!==n?n:""}function qr(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";if("mobile"===t&&null===n){if(r&&null!==e.tablet[o][r])return e.tablet[o][r];if(r&&null!==e.desktop[o][r])return e.desktop[o][r];if(null!==e.tablet[o])return e.tablet[o];if(null!==e.desktop[o])return e.desktop[o]}if("tablet"===t&&null===n){if(r&&null!==e.desktop[o][r])return e.desktop[o][r];if(null!==e.desktop[o])return e.desktop[o]}return null==n?"px":n}const Vr=w("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),Hr=w("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]),zr=w("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);function Wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0?e[0].trim():""},n=function(e){return e.length>1?e[1]:"px"},o=function(e){var t=Xr.join("|"),n=new RegExp("(".concat(t,")"));return e?e.toString().toLowerCase().split(n).filter((function(e){return""!==e})):[]};return{onUnitChange:function(r,a,i,l,c){if(e(r)){var s=o(r),u=t(s);i("".concat(l,".").concat(c),n(s)),a(u)}else i("".concat(l,".").concat(c),""),a(r)},splitValues:o,getNumericValue:t,getUnitValue:n,startsWithNumber:e}};function Qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"",o=100;switch(qr(e.values,d,te(d)[t][n],t,n)){case"px":o=1e3;break;case"%":case"vw":default:o=100;break;case"em":case"rem":o=10}return o},ce=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=1;switch(qr(e.values,d,te(d)[t][n],t,n)){case"px":case"%":case"vw":default:o=1;break;case"em":case"rem":o=.1}return o},se=function(t){return qr(e.values,d,te(d)[t].borderStyle,t,"borderStyle")},ue=function(e){switch(se(e)){case"dashed":return na;case"dotted":return oa;case"double":return ra;default:return ta}},pe=function(e,t){return React.createElement("div",{className:"dlx-photo-block__border-responsive-sync-interface-border-style-popover"},React.createElement(_.BaseControl,null,React.createElement("h3",null,(0,c.__)("Border Style","photo-block")),React.createElement(_.ButtonGroup,{className:"dlx-photo-block__border-responsive-sync-interface-border-style-popover-buttons"},React.createElement(Wo,{name:"".concat(d,".").concat(e,".borderStyle"),control:K,render:function(n){var o=n.field,r=o.onChange;return o.value,React.createElement(React.Fragment,null,React.createElement(_.Button,{icon:ta,label:(0,c.__)("Solid","photo-block"),onClick:function(){r("solid"),t(!0)},isPressed:"solid"===se(e)},(0,c.__)("Solid","photo-block")),React.createElement(_.Button,{icon:na,label:(0,c.__)("Dashed","photo-block"),isPressed:"dashed"===se(e),onClick:function(){r("dashed"),t(!0)}},(0,c.__)("Dashed","photo-block")),React.createElement(_.Button,{icon:oa,label:(0,c.__)("Dotted","photo-block"),isPressed:"dotted"===se(e),onClick:function(){r("dotted"),t(!0)}},(0,c.__)("Dotted","photo-block")),React.createElement(_.Button,{icon:ra,label:(0,c.__)("Double","photo-block"),isPressed:"double"===se(e),onClick:function(){r("double"),t(!0)}},(0,c.__)("Double","photo-block")))}}))))};return React.createElement(React.Fragment,null,React.createElement(_.BaseControl,{className:"dlx-photo-block__border-responsive"},React.createElement(Yr,{heading:t,screenSize:d}),ie()?React.createElement("div",{className:i()("dlx-photo-block__border-responsive-sync-interface")},React.createElement("div",{className:"dlx-photo-block__border-responsive-sync-interface-unit"},React.createElement(Wo,{name:"".concat(d,".top.color"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(to,{value:Gr(o,d,r,"top","color"),onChange:function(e,t){n(t),ae(t,"color")},label:(0,c.__)("Border Color","photo-block"),defaultColors:photoBlock.palette,defaultColor:"#FFFFFF",slug:"border-color-sync",hideLabelFromVision:!0,alpha:!0})}}),React.createElement(_.Button,{className:"dlx-photo-block__border-responsive-sync-interface-border-style",label:(0,c.__)("Border Style","photo-block"),icon:ue("top"),onClick:function(){S(!E)},ref:j}),E&&React.createElement(_.Popover,{position:"bottom center",onClose:function(){S(!1)},anchorRef:B,noArrow:!1},React.createElement("div",{className:"dlx-photo-block__border-responsive-sync-interface-border-style-popover"},React.createElement(_.BaseControl,null,React.createElement("h3",null,(0,c.__)("Border Style","photo-block")),React.createElement(_.ButtonGroup,{className:"dlx-photo-block__border-responsive-sync-interface-border-style-popover-buttons"},React.createElement(Wo,{name:"".concat(d,".top.borderStyle"),control:K,render:function(e){var t=e.field,n=t.onChange;return t.value,React.createElement(React.Fragment,null,React.createElement(_.Button,{icon:ta,label:(0,c.__)("Solid","photo-block"),onClick:function(){n("solid"),oe("solid","borderStyle"),S(!1)},isPressed:"solid"===se("top")},(0,c.__)("Solid","photo-block")),React.createElement(_.Button,{icon:na,label:(0,c.__)("Dashed","photo-block"),isPressed:"dashed"===se("top"),onClick:function(){n("dashed"),oe("dashed","borderStyle"),S(!1)}},(0,c.__)("Dashed","photo-block")),React.createElement(_.Button,{icon:oa,label:(0,c.__)("Dotted","photo-block"),isPressed:"dotted"===se("top"),onClick:function(){n("dotted"),oe("dotted","borderStyle"),S(!1)}},(0,c.__)("Dotted","photo-block")),React.createElement(_.Button,{icon:ra,label:(0,c.__)("Double","photo-block"),isPressed:"double"===se("top"),onClick:function(){n("double"),oe("double","borderStyle"),S(!1)}},(0,c.__)("Double","photo-block")))}}))))),React.createElement(Wo,{name:"".concat(d,".top.width"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(_.TextControl,{label:p,className:"dlx-photo-block__border-responsive-sync-interface-input",value:r,placeholder:Gr(o,d,te("".concat(d,".top.width")),"top","width"),type:"text",min:0,step:1,max:"Infinity",onChange:function(e){n(e),ae(e,"width")},hideLabelFromVision:!0,inputMode:"numeric",autoComplete:"off"})}}),React.createElement(Wo,{name:"".concat(d,".top.unit"),control:K,render:function(t){var n=t.field,o=n.onChange;return n.value,React.createElement(_.SelectControl,{className:"dlx-photo-block__border-responsive-sync-interface-select",label:(0,c.__)("Unit","photo-block"),value:qr(e.values,d,te("".concat(d,".top.unit")),"top","unit"),options:Z,onChange:function(e){o(e),re(e)},hideLabelFromVision:!0})}})),React.createElement("div",{className:"dlx-photo-block__border-responsive-sync-interface-range-sync"},React.createElement(Wo,{name:"".concat(d,".top.width"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(_.RangeControl,{className:"dlx-photo-block__border-responsive-sync-interface-range",label:p,value:Number(Gr(o,d,r,"top","width")),min:0,max:le("top","unit"),step:ce("top","unit"),onChange:function(e){n(e),ae(e,"width")},withInputField:!1,hideLabelFromVision:!0})}}),React.createElement(_.Button,{variant:"secondary",className:"dlx-photo-block__border-responsive-sync-interface-button",onClick:function(){var t=te(d);t.unitSync=!1,ee(d,t),re(qr(e.values,d,te("".concat(d,".top.unit")),"top","unit"))},label:(0,c.__)("Modify all values separately.","photo-block"),icon:React.createElement(Jr,null)}))):null,ie()?null:React.createElement(React.Fragment,null,React.createElement("div",{className:i()("dlx-photo-block__border-responsive-manual-interface")},React.createElement(React.Fragment,null,React.createElement("div",{className:"dlx-photo-block__border-responsive-manual-interface-item dlx-photo-block__border-responsive-manual-interface-item-top"},React.createElement(Wo,{name:"".concat(d,".top.color"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(to,{value:Gr(o,d,r,"top","color"),onChange:function(e,t){n(t)},label:(0,c.__)("Border Color","photo-block"),defaultColors:photoBlock.palette,defaultColor:"#000000",slug:"border-color-top",hideLabelFromVision:!0,alpha:!0})}}),React.createElement(_.Button,{className:"dlx-photo-block__border-responsive-sync-interface-border-style",label:(0,c.__)("Border Style","photo-block"),icon:ue("top"),onClick:function(){R(!w)},ref:G}),w&&React.createElement(_.Popover,{position:"bottom center",onClose:function(){R(!1)},anchorRef:F,noArrow:!1},pe("top",R)),React.createElement(Wo,{name:"".concat(d,".top.width"),control:K,render:function(e){var t=e.field,n=t.onChange,a=t.value;return React.createElement(_.TextControl,{label:r,className:"dlx-photo-block__border-responsive-sync-interface-input",value:a,placeholder:Gr(o,d,a,"top","width"),type:"text",min:0,onChange:function(e){h(e,n,ee,d,"top.unit")},hideLabelFromVision:!0,inputMode:"numeric",autoComplete:"off"})}}),React.createElement(Wo,{name:"".concat(d,".top.unit"),control:K,render:function(t){var n=t.field,o=n.onChange,r=n.value;return React.createElement(_.SelectControl,{className:"dlx-photo-block__border-responsive-sync-interface-select",label:(0,c.__)("Unit","photo-block"),value:qr(e.values,d,r,"top","unit"),options:Z,onChange:function(e){o(e)},hideLabelFromVision:!0})}})),React.createElement("div",{className:"dlx-photo-block__border-responsive-manual-interface-item dlx-photo-block__border-responsive-manual-interface-item-right"},React.createElement(Wo,{name:"".concat(d,".right.color"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(to,{value:Gr(o,d,r,"right","color"),onChange:function(e,t){n(t)},label:(0,c.__)("Border Color","photo-block"),defaultColors:photoBlock.palette,defaultColor:"#000000",slug:"border-color-right",hideLabelFromVision:!0,alpha:!0})}}),React.createElement(_.Button,{className:"dlx-photo-block__border-responsive-sync-interface-border-style",label:(0,c.__)("Border Style","photo-block"),icon:ue("right"),onClick:function(){I(!x)},ref:H}),x&&React.createElement(_.Popover,{placement:"left",onClose:function(){I(!1)},anchorRef:V,noArrow:!1},pe("right",I)),React.createElement(Wo,{name:"".concat(d,".right.width"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(_.TextControl,{label:a,className:"dlx-photo-block__border-responsive-sync-interface-input",value:r,placeholder:Gr(o,d,r,"right","width"),type:"text",min:0,onChange:function(e){h(e,n,ee,d,"right.unit")},hideLabelFromVision:!0,inputMode:"numeric",autoComplete:"off"})}}),React.createElement(Wo,{name:"".concat(d,".right.unit"),control:K,render:function(t){var n=t.field,o=n.onChange,r=n.value;return React.createElement(_.SelectControl,{className:"dlx-photo-block__border-responsive-sync-interface-select",label:(0,c.__)("Unit","photo-block"),value:qr(e.values,d,r,"right","unit"),options:Z,onChange:function(e){o(e)},hideLabelFromVision:!0})}})),React.createElement("div",{className:"dlx-photo-block__border-responsive-manual-interface-item dlx-photo-block__border-responsive-manual-interface-item-bottom"},React.createElement(Wo,{name:"".concat(d,".bottom.color"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(to,{value:Gr(o,d,r,"bottom","color"),onChange:function(e,t){n(t)},label:(0,c.__)("Border Color","photo-block"),defaultColors:photoBlock.palette,defaultColor:"#000000",slug:"border-color-bottom",hideLabelFromVision:!0,alpha:!0})}}),React.createElement(_.Button,{className:"dlx-photo-block__border-responsive-sync-interface-border-style",label:(0,c.__)("Border Style","photo-block"),icon:ue("bottom"),onClick:function(){A(!C)},ref:Y}),C&&React.createElement(_.Popover,{position:"bottom center",onClose:function(){A(!1)},anchorRef:W,noArrow:!1},pe("bottom",A)),React.createElement(Wo,{name:"".concat(d,".bottom.width"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(_.TextControl,{label:s,className:"dlx-photo-block__border-responsive-sync-interface-input",value:r,placeholder:Gr(o,d,r,"bottom","width"),type:"text",min:0,step:1,max:"Infinity",onChange:function(e){h(e,n,ee,d,"bottom.unit")},hideLabelFromVision:!0,inputMode:"numeric",autoComplete:"off"})}}),React.createElement(Wo,{name:"".concat(d,".bottom.unit"),control:K,render:function(t){var n=t.field,o=n.onChange,r=n.value;return React.createElement(_.SelectControl,{className:"dlx-photo-block__border-responsive-sync-interface-select",label:(0,c.__)("Unit","photo-block"),value:qr(e.values,d,r,"bottom","unit"),options:Z,onChange:function(e){o(e)},hideLabelFromVision:!0})}})),React.createElement("div",{className:"dlx-photo-block__border-responsive-manual-interface-item dlx-photo-block__border-responsive-manual-interface-item-left"},React.createElement(Wo,{name:"".concat(d,".left.color"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(to,{value:Gr(o,d,r,"left","color"),onChange:function(e,t){n(t)},label:(0,c.__)("Border Color","photo-block"),defaultColors:photoBlock.palette,defaultColor:"#000000",slug:"border-color-left",hideLabelFromVision:!0,alpha:!0})}}),React.createElement(_.Button,{className:"dlx-photo-block__border-responsive-sync-interface-border-style",label:(0,c.__)("Border Style","photo-block"),icon:ue("left"),onClick:function(){L(!N)},ref:Q}),N&&React.createElement(_.Popover,{position:"Left center",onClose:function(){L(!1)},anchorRef:$,noArrow:!1},pe("left",L)),React.createElement(Wo,{name:"".concat(d,".left.width"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(_.TextControl,{label:u,className:"dlx-photo-block__border-responsive-sync-interface-input",value:r,placeholder:Gr(o,d,r,"left","width"),type:"text",min:0,step:1,max:"Infinity",onChange:function(e){h(e,n,ee,d,"left.unit")},hideLabelFromVision:!0,inputMode:"numeric",autoComplete:"off"})}}),React.createElement(Wo,{name:"".concat(d,".left.unit"),control:K,render:function(t){var n=t.field,o=n.onChange,r=n.value;return React.createElement(_.SelectControl,{className:"dlx-photo-block__border-responsive-sync-interface-select",label:(0,c.__)("Unit","photo-block"),value:qr(e.values,d,r,"left","unit"),options:Z,onChange:function(e){o(e)},hideLabelFromVision:!0})}})),React.createElement(_.Button,{variant:"secondary",className:"dlx-photo-block__border-responsive-sync-manual-button",onClick:function(){var e=te(d);e.unitSync=!0,ee(d,e)},isPressed:!1,icon:React.createElement(D,null),label:(0,c.__)("Edit all values together","photo-block")}))))))},ca=S().createContext(),sa=w("Pencil",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),ua=w("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]),pa=w("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]);function da(e){return da="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},da(e)}function fa(){return fa=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n0)){var h=(0,o.createBlock)("dlxplugins/photo-caption-block",f);x(h,void 0,l)}if(p&&(f||f.length>0)){var m=ma(ma({},f),d);I(p.clientId,m)}}},z=function(e){(0,u.select)("core/block-editor").getBlocks().filter((function(e){return"dlxplugins/photo-block"===e.name})).forEach((function(t){var n=t.attributes,o=n.globalStyle,r=(n.uniqueId,e.content.captionAttributes.captionPosition),a=(0,u.select)("core/block-editor").getBlocksByClientId(i)[0],i=a.clientId;if("dlxplugins/photo-caption-block"===a.name){var l=(0,u.select)("core/block-editor").getBlockParents(y)[0];i=(a=(0,u.select)("core/block-editor").getBlocksByClientId(l)[0]).clientId}if("none"!==o&&""!==o){I(i,{date:(new Date).getTime(),globalStyle:o,captionPosition:r});var c=(a.innerBlocks||[]).find((function(e){return"dlxplugins/photo-caption-block"===e.name}));c&&I(c.clientId,{date:(new Date).getTime(),globalStyle:o,captionPosition:r})}}))},W=[{label:(0,c.__)("Save Global Style","photo-block"),value:"new"},{label:(0,c.__)("Override Global Style","photo-block"),value:"override"}];return 0!==Object.keys(C).length&&va||(W=[{label:(0,c.__)("Save Global Style","photo-block"),value:"new"}]),S().createElement("div",{className:"photo-block-global-styles-modal"},S().createElement(_.Modal,{title:b,onRequestClose:function(){return v(!1)},className:"photo-block-global-styles-modal",shouldCloseOnClickOutside:!1},W.length>1&&S().createElement(_.RadioControl,{label:(0,c.__)("Save a new global style or override an existing one.","photo-block"),className:"photo-block-global-styles-modal-radio-control",selected:d,options:W,onChange:function(e){f(e)}}),S().createElement("form",{onSubmit:D((function(t){"new"===d?function(t){g(!0);var n="".concat(ajaxurl),o=new FormData;o.append("action","dlx_photo_block_save_global_styles"),o.append("nonce",photoBlock.globalStylesSaveNewNonce),o.append("attributes",JSON.stringify(V())),o.append("formData",JSON.stringify(t)),fetch(n,{method:"POST",body:o,headers:{Accept:"application/json"}}).then((function(e){return e.json()})).then((function(t){var n=t.success,o=t.data;if(!n)return M("formAjaxError",{type:"ajax",message:o.message}),q((0,c.__)("There was an error saving the global style.","photo-block"),{type:"snackbar"}),void g(!1);G((0,c.__)("Global style saved successfully.","photo-block"),{type:"snackbar"}),H(o,o.slug),R((new Date).getTime()),w(o,o.slug),g(!1),v(!1),e.generateGlobalStyle()})).catch((function(e){g(!1),v(!1)}))}(t):function(t){g(!0);var n="".concat(ajaxurl),o=new FormData;o.append("action","dlx_photo_block_override_global_style"),o.append("nonce",photoBlock.globalStylesSaveNewNonce),o.append("attributes",JSON.stringify(V())),o.append("editId",t.selectedGlobalStyle),fetch(n,{method:"POST",body:o,headers:{Accept:"application/json"}}).then((function(e){return e.json()})).then((function(t){var n=t.success,o=t.data;if(!n)return M("formAjaxError",{type:"ajax",message:o.message}),q((0,c.__)("There was an error saving the global style override.","photo-block"),{type:"snackbar"}),void g(!1);H(o,o.slug),w(o,o.slug),g(!1),v(!1),e.generateGlobalStyle(),R((new Date).getTime()),z(o),G((0,c.__)("Global style saved successfully.","photo-block"),{type:"snackbar"})})).catch((function(e){v(!1)}))}(t)}))},"new"===d&&S().createElement(S().Fragment,null,S().createElement("div",{className:"photo-block-global-styles-modal-new-preset"},S().createElement("div",{className:"photo-block-global-styles-row"},S().createElement(Wo,{name:"globalStyleLabel",control:P,rules:{required:!0,pattern:/^(?=[^0-9-_])[a-zA-Z0-9-_ ]+$/},render:function(e){var t,n=e.field;return S().createElement(_.TextControl,fa({},n,{label:(0,c.__)("Global Style Name","photo-block"),className:i()("photo-block-admin__text-control",{"is-required":!0,"has-error":"required"===(null===(t=U.globalStyleLabel)||void 0===t?void 0:t.type)}),onBlur:function(){""===j("globalStyleCSSClass")&&(N("globalStyleCSSClass",(0,an.cleanForSlug)(n.value)),L("globalStyleCSSClass"))},onChange:function(e){B(),n.onChange(e)},help:(0,c.__)("Enter a descriptive label for this global style. A unique slug will be generated automatically.","photo-block")}))}}),"required"===(null===(t=U.globalStyleLabel)||void 0===t?void 0:t.type)&&S().createElement(At,{message:(0,c.__)("The Global Style Name field is required."),status:"error",politeness:"assertive",icon:O}),"pattern"===(null===(n=U.globalStyleLabel)||void 0===n?void 0:n.type)&&S().createElement(At,{message:(0,c.__)("This Global Style label contains invalid characters."),status:"error",politeness:"assertive",icon:O})),S().createElement("div",{className:"photo-block-global-styles-row"},S().createElement(Wo,{name:"globalStyleCSSClass",control:P,rules:{required:!0,pattern:/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/},render:function(e){var t,n=e.field,o=n.onChange,r=n.value;return S().createElement(_.TextControl,{label:(0,c.__)("Global Style CSS Class","photo-block"),value:r,className:i()("photo-block-admin__text-control",{"is-required":!0,"has-error":"required"===(null===(t=U.globalStyleCSSClass)||void 0===t?void 0:t.type)}),help:(0,c.__)("The CSS class used when outputting the block.","photo-block"),onChange:function(e){B(),o(e)}})}}),"pattern"===(null===(a=U.globalStyleCSSClass)||void 0===a?void 0:a.type)&&S().createElement(At,{message:(0,c.__)("The CSS class contains invalid characters and must be a CSS friendly name."),status:"error",politeness:"assertive",icon:O}),"required"===(null===(l=U.globalStyleCSSClass)||void 0===l?void 0:l.type)&&S().createElement(At,{message:(0,c.__)("The Global Style CSS Class field is required."),status:"error",politeness:"assertive",icon:O})))),"override"===d&&va&&S().createElement(S().Fragment,null,Object.keys(C).length>0&&S().createElement("div",{className:"photo-block-global-styles-modal-override-preset"},S().createElement(Wo,{name:"selectedGlobalStyle",control:P,rules:{required:!0},render:function(e){var t,n=e.field,o=n.onChange,r=n.value;return S().createElement(_.RadioControl,{label:(0,c.__)("Select a global style to override","photo-block"),className:"is-required",selected:r,options:(t=[],Object.values(C).forEach((function(e){t.push({label:e.title,value:e.id+""})})),t),onChange:function(e){return o(e)}})}}),"required"===(null===(s=U.selectedGlobalStyle)||void 0===s?void 0:s.type)&&S().createElement(At,{message:(0,c.__)("This field is required."),status:"error",politeness:"assertive",icon:O}))),S().createElement("div",{className:"photo-block-global-styles-row photo-block-global-styles-apply-option"},S().createElement(Wo,{name:"globalStyleApplyToBlock",control:P,render:function(e){var t=e.field;return S().createElement(_.ToggleControl,{label:(0,c.__)("Apply this global style to the selected block.","photo-block"),checked:t.value,onChange:function(){t.onChange(!t.value)}})}})),S().createElement("div",{className:"photo-block-global-styles-modal-button-group"},S().createElement(_.Button,{type:"submit",variant:"primary",className:"photo-block-global-styles-modal-apply-button",disabled:m||Object.keys(U).length>0,icon:S().createElement(pa,null)},m?(0,c.__)("Saving…","photo-block"):(0,c.__)("Save Global Style","photo-block")),S().createElement(_.Button,{variant:"secondary",onClick:function(){v(!1)},className:"photo-block-global-styles-modal-cancel-button",disabled:m},(0,c.__)("Cancel","photo-block"))),(null==U?void 0:U.formAjaxError)&&S().createElement("div",{className:"photo-block-global-styles-row"},S().createElement(At,{message:U.formAjaxError.message,status:"error",politeness:"assertive",icon:O})))))};function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n0?(Object.keys(t).forEach((function(e){n.push({value:t[e].slug,label:t[e].title,id:t[e].id,deleteNonce:t[e].delete_nonce,saveNonce:t[e].save_nonce,cssClass:t[e].css_class})})),S().createElement(S().Fragment,null,S().createElement("div",{className:"photo-block-global-styles-edit-grid"},n.map((function(e){return S().createElement("div",{key:e.value,className:"photo-block-global-styles-edit-item"},S().createElement("div",{className:"photo-block-global-styles-edit-item-title"},e.label),S().createElement("div",{className:"photo-block-global-styles-edit-item-actions"},S().createElement(_.ButtonGroup,null,S().createElement(_.Button,{icon:S().createElement(sa,null),onClick:function(){b({editId:e.id,title:e.label,saveNonce:e.saveNonce,slug:e.value,cssClass:e.cssClass})},label:(0,c.__)("Edit Global Style","photo-block")}),S().createElement(_.Button,{icon:S().createElement(ua,null),onClick:function(){v({editId:e.id,title:e.label,deleteNonce:e.deleteNonce,slug:e.value,cssClass:e.cssClass})},label:(0,c.__)("Delete Global Style","photo-block")}))))}))))):S().createElement(S().Fragment,null,S().createElement("p",null,Ca?(0,c.__)("No global styles have been saved yet. Would you like to save a new one?","photo-block"):(0,c.__)("No global styles have been saved yet.","photo-block"))))),Ca&&S().createElement("div",{className:"photo-block-global-styles-actions"},!h&&!x(s)&&S().createElement(_.Button,{variant:"primary",onClick:function(e){e.preventDefault(),f(!0)},className:"photo-block-global-styles-save-button",label:(0,c.__)("Save New Global Style","photo-block")},(0,c.__)("Save New Global Style","photo-block")),!h&&Object.keys(B).length>0&&S().createElement(_.Button,{variant:"secondary",onClick:function(e){e.preventDefault(),m(!0)},className:"photo-block-global-styles-edit-button",label:(0,c.__)("Edit Global Styles","photo-block")},(0,c.__)("Edit Global Styles","photo-block")),!h&&Object.keys(B).length>0&&S().createElement(_.Button,{variant:"secondary",onClick:function(e){e.preventDefault(),w(!0),M()},className:"photo-block-global-styles-refresh-button",label:(0,c.__)("Refresh Global Style","photo-block"),disabled:k},k?(0,c.__)("Refreshing Global Styles","photo-block"):(0,c.__)("Refresh Global Styles","photo-block")),h&&!d&&S().createElement(_.Button,{variant:"primary",onClick:function(e){e.preventDefault(),m(!1)},className:"photo-block-global-styles-exit-button",label:(0,c.__)("Exit Edit Mode","photo-block")},(0,c.__)("Exit Edit Mode","photo-block")))),d&&S().createElement(_a,xa({title:(0,c.__)("Save Global Style","photo-block")},e,{generateGlobalStyle:M}))))};function Pa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Da(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Da(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Da(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:1;if(0===e.indexOf("var("))return e;if(0===e.indexOf("rgba")){var n=Zn()(e).hex;return $n()(n,t)}return 0===e.indexOf("rgb")?$n()(Zn()(e).hex,t):t<1?$n()(e,t):e};const Ja=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0===e.length)return"";var r=e.containerWidth,a=e.containerHeight,i=e.containerMinWidth,l=e.containerMinHeight,c=e.containerMaxWidth,s=e.containerMaxHeight,u=e.captionPosition,p=e.photoPaddingSize,d=e.photoMarginSize,f=e.photoBorderRadius,h=e.photoDropShadow,m=e.photoObjectPosition,g=e.photoOpacity,b=e.photoBackgroundColor,y=e.photoBackgroundColorOpacity,v=e.photoObjectPositionCustom,_=e.photoBorder,E=e.photoBlur,S=e.photoObjectFit,k=(e.captionCustomTypography,"");return"overlay"===u?(k+="\n\t\t\t".concat(o?".":"#").concat(n," .dlx-photo-block__image-wrapper {\n\t\t\t\t--photo-block-photo-background-color: ").concat(b,";\n\t\t\t\t--photo-block-photo-background-Color-opacity: ").concat(y,";\n\t\t\t\t--photo-block-image-width: ").concat(jr(t,r),"\n\t\t\t\t--photo-block-image-height: ").concat(jr(t,a),"\n\t\t\t\t--photo-block-image-min-width: ").concat(jr(t,i),"\n\t\t\t\t--photo-block-image-min-height: ").concat(jr(t,l),"\n\t\t\t\t--photo-block-image-max-width: ").concat(jr(t,c),"\n\t\t\t\t--photo-block-image-max-height: ").concat(jr(t,s),"\n\t\t\t\t--photo-block-image-padding: ").concat(Ur(p,t),";\n\t\t\t\t--photo-block-image-margin: ").concat(Ur(d,t),";\n\t\t\t\t").concat(Fr(_,t,"--photo-block-image"),";\n\t\t\t\t--photo-block-photo-border-radius: ").concat(Ur(f,t),";\n\t\t\t}\n\t\t\t").concat(o?".":"#").concat(n," .dlx-photo-block__image-wrapper img {\n\t\t\t\t--photo-block-image-opacity: ").concat(g,";\n\t\t\t\t--photo-block-image-object-fit: ").concat(S,";\n\t\t\t\t--photo-block-blur: ").concat(E,"px;\n\t\t\t\t--photo-block-image-width: ").concat("none"!==S?"100%":"unset",";\n\t\t\t\t--photo-block-image-height: ").concat("none"!==S?"100%":"unset",";\n\t\t\t\t--photo-block-image-object-position: ").concat("custom"===m?v:m,";\n\t\t\t}\n\t\t"),h.enabled&&(k+="\n\t\t\t\t".concat(o?".":"#").concat(n," .dlx-photo-block__image-wrapper {\n\t\t\t\t\t--photo-block-image-drop-shadow-horizontal: ").concat(h.horizontal,"px;\n\t\t\t\t\t--photo-block-image-drop-shadow-vertical: ").concat(h.vertical,"px;\n\t\t\t\t\t--photo-block-image-drop-shadow-blur: ").concat(h.blur,"px;\n\t\t\t\t\t--photo-block-image-drop-shadow-spread: ").concat(h.spread,"px;\n\t\t\t\t\t--photo-block-image-drop-shadow-color: ").concat(Za(h.color,h.opacity),";\n\t\t\t\t}\n\t\t\t"))):k+="\n\t\t\t".concat(o?".":"#").concat(n," .dlx-photo-block__image-wrapper {\n\t\t\t\t--photo-block-photo-background-color: ").concat(b,";\n\t\t\t\t--photo-block-image-width: ").concat(jr(t,r),"\n\t\t\t\t--photo-block-image-height: ").concat(jr(t,a),"\n\t\t\t\t--photo-block-image-min-width: ").concat(jr(t,i),"\n\t\t\t\t--photo-block-image-min-height: ").concat(jr(t,l),"\n\t\t\t\t--photo-block-image-max-width: ").concat(jr(t,c),"\n\t\t\t\t--photo-block-image-max-height: ").concat(jr(t,s),"\n\t\t\t\t--photo-block-photo-border-radius: ").concat(Ur(f,t),";\n\t\t\t}\n\t\t\t").concat(o?".":"#").concat(n," .dlx-photo-block__image-wrapper img {\n\t\t\t\t--photo-block-image-opacity: ").concat(g,";\n\t\t\t\t--photo-block-image-object-fit: ").concat(S,";\n\t\t\t\t--photo-block-blur: ").concat(E,"px;\n\t\t\t\t--photo-block-image-width: ").concat("none"!==S?"100%":"unset",";\n\t\t\t\t--photo-block-image-height: ").concat("none"!==S?"100%":"unset",";\n\t\t\t\t--photo-block-image-object-position: ").concat("custom"===m?v:m,";\n\t\t\t\t--photo-block-image-padding: ").concat(Ur(p,t),";\n\t\t\t\t--photo-block-image-margin: ").concat(Ur(d,t),";\n\t\t\t\t").concat(Fr(_,t,"--photo-block-image"),";\n\t\t\t\t--photo-block-photo-border-radius: ").concat(Ur(f,t),";\n\t\t\t}\n\t\t"),k+="".concat(o?".":"#").concat(n," .dlx-photo-block__figure { --photo-block-figure-margin: ").concat(Ur(d,t),"; }"),h.enabled&&(k+="\n\t\t\t.dlx-has-drop-shadow ".concat(o?".":"#").concat(n," img {\n\t\t\t\t--photo-block-image-drop-shadow-horizontal: ").concat(h.horizontal,"px;\n\t\t\t\t--photo-block-image-drop-shadow-vertical: ").concat(h.vertical,"px;\n\t\t\t\t--photo-block-image-drop-shadow-blur: ").concat(h.blur,"px;\n\t\t\t\t--photo-block-image-drop-shadow-spread: ").concat(h.spread,"px;\n\t\t\t\t--photo-block-image-drop-shadow-color: ").concat(Za(h.color,h.opacity),";\n\t\t\t}\n\t\t")),k},Ka=w("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),ei=w("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]),ti=window.wp.escapeHtml,ni=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0===e.length)return"";var r=e.containerWidth,a=e.containerHeight,i=e.containerMinWidth,l=e.containerMinHeight,c=e.containerMaxWidth,s=e.captionBackgroundColor,u=e.captionPaddingSize,p=e.captionMarginSize,d=e.captionBorderRadius,f=e.captionBorder,h=e.captionTextColor,m=e.captionTypography,g=e.captionAlign,b=e.captionLinkColor,y=e.captionLinkHoverColor,v=e.captionAccentColor,_=e.captionSecondaryColor,E=e.captionTextFontFamily,S=e.captionHeadingsFontFamily,k=e.captionBaseFontSize,w=e.overlayBackgroundType,R=e.overlayBackgroundColor,T=e.overlayBackgroundColorHover,x=e.overlayBackgroundGradient,I=e.overlayBackgroundGradientOpacity,O=e.overlayBackgroundGradientOpacityHover,C=e.overlayBackgroundImage,A=e.overlayBorderRadius,P=e.overlayBorder,D=e.mode,N=e.photoMode,L=e.captionPosition,M=e.enableSmartStyles,B="\n\t\tfigcaption".concat(o?".":"#").concat(n," {\n\t\t\t--photo-block-caption-width: ").concat(jr(t,r),"\n\t\t\t--photo-block-caption-height: ").concat(jr(t,a),"\n\t\t\t--photo-block-caption-min-width: ").concat(jr(t,i),"\n\t\t\t--photo-block-caption-min-height: ").concat(jr(t,l),"\n\t\t\t--photo-block-caption-max-width: ").concat(jr(t,c),"\n\t\t}\n\t\tfigcaption").concat(o?".":"#").concat(n," {\n\t\t\t--photo-block-caption-padding: ").concat(Ur(u,t),";\n\t\t\t--photo-block-caption-margin: ").concat(Ur(p,t),";\n\t\t\t--photo-block-caption-border-radius: ").concat(Ur(d,t),";\n\t\t\t--photo-block-caption-padding: ").concat(Ur(u,t),";\n\t\t\t--photo-block-caption-margin: ").concat(Ur(p,t),";\n\t\t\t--photo-block-caption-border-radius: ").concat(Ur(d,t),";\n\t\t\t").concat(Fr(f,t,"--photo-block-caption"),";\n\t\t}\n\t");return(M||"single"===D||"data"===N||"featuredImage"===N)&&(B+="\n\t\t\tfigcaption".concat(o?".":"#").concat(n," {\n\t\t\t\t--photo-block-caption-background-color: ").concat(s,";\n\t\t\t}")),"single"!==D&&"data"!==N&&"featuredImage"!==N||(B+="\n\t\t\tfigcaption".concat(o?".":"#").concat(n," {\n\t\t\t\t--photo-block-caption-text-color: ").concat(h,";\n\t\t\t\t--photo-block-caption-font-size: ").concat(Gr(m,t,m[t].fontSize,"fontSize")).concat(qr(m,t,m[t].fontSizeUnit,"fontSizeUnit"),";\n\t\t\t\t--photo-block-caption-font-weight: ").concat(Gr(m,t,m[t].fontWeight,"fontWeight"),";\n\t\t\t\t--photo-block-caption-line-height: ").concat(Gr(m,t,m[t].lineHeight,"lineHeight")).concat(qr(m,t,m[t].lineHeightUnit,"lineHeightUnit"),";\n\t\t\t\t--photo-block-caption-text-transform: ").concat(Gr(m,t,m[t].textTransform,"textTransform"),";\n\t\t\t\t--photo-block-caption-letter-spacing: ").concat(Gr(m,t,m[t].letterSpacing,"letterSpacing")).concat(qr(m,t,m[t].letterSpacingUnit,"letterSpacingUnit"),";\n\t\t\t\t--photo-block-caption-text-align: ").concat(g,";\n\t\t\t}\n\t\t\tfigcaption").concat(o?".":"#").concat(n," a {\n\t\t\t\t--photo-block-caption-link-color: ").concat(b,";\n\t\t\t}\n\t\t\tfigcaption").concat(o?".":"#").concat(n," a:hover {\n\t\t\t\t--photo-block-caption-link-color-hover: ").concat(y,";\n\t\t\t}\n\t\t")),"custom"===m[t].fontFamilySlug?B+="\n\t\t\tfigcaption".concat(o?".":"#").concat(n," {\n\t\t\t\t--photo-block-caption-font-family: ").concat(null==m?void 0:m.captionCustomTypography,";\n\t\t\t}\n\t\t"):B+="\n\t\t\tfigcaption".concat(o?".":"#").concat(n," {\n\t\t\t\t--photo-block-caption-font-family: ").concat(Gr(m,t,m[t].fontFamily,"fontFamily"),";\n\t\t\t}\n\t\t"),"advanced"===D&&"data"!==N&&"featuredImage"!==N&&M&&(B+="\n\t\t\tfigcaption".concat(o?".":"#").concat(n," {\n\t\t\t\t--photo-block-caption-text-color: ").concat(h,";\n\t\t\t\t--photo-block-caption-link-color: ").concat(v,";\n\t\t\t\t--photo-block-caption-link-color-hover: ").concat(_,";\n\t\t\t\t--photo-block-caption-font-family: ").concat(E,";\n\t\t\t\t--photo-block-caption-headings-font-family: ").concat(S,";\n\t\t\t\t--photo-block-caption-font-size: ").concat(Gr(k,t,k[t].value,"value")).concat(qr(k,t,k[t].unit,"unit"),";\n\t\t\t}\n\t\t")),"overlay"===L&&"solid"===w&&(B+="\n\t\t\t".concat(o?".":"#").concat(n,".dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-background-color: ").concat(R,";\n\t\t\t}\n\t\t\t").concat(o?".":"#").concat(n,".dlx-photo-block__caption-overlay:hover:before {\n\t\t\t\t--photo-block-caption-overlay-background-color-hover: ").concat(T,";\n\t\t\t}\n\t\t"),B+="\n\t\t\t".concat(o?".":"#").concat(n,".dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-border-radius: ").concat(Ur(A,t),";\n\t\t\t}\n\t\t")),"overlay"===L&&"gradient"===w&&(B+="\n\t\t\t".concat(o?".":"#").concat(n,".dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-background-gradient: ").concat(x,";\n\t\t\t\t--photo-block-caption-overlay-background-gradient-opacity: ").concat(I,";\n\t\t\t\tz-index: 1;\n\t\t\t}\n\t\t\t").concat(o?".":"#").concat(n,".dlx-photo-block__caption-overlay:hover:before {\n\t\t\t\t--photo-block-caption-overlay-background-gradient-opacity-hover: ").concat(O,";\n\t\t\t}\n\t\t"),B+="\n\t\t\t".concat(o?".":"#").concat(n,".dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-border-radius: ").concat(Ur(A,t),";\n\t\t\t}\n\t\t")),"overlay"===L&&"image"===w&&(0,an.isURL)(C.url)&&(B+="\n\t\t\t".concat(o?".":"#").concat(n,".dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-background-color: ").concat(C.backgroundColor,";\n\t\t\t\t--photo-block-caption-overlay-background-image-url: url('").concat(decodeURIComponent(encodeURIComponent(C.url))," ');\n\t\t\t\t--photo-block-caption-overlay-background-image-position: ").concat((0,ti.escapeEditableHTML)(C.backgroundPosition),";\n\t\t\t\t--photo-block-caption-overlay-background-image-repeat: ").concat((0,ti.escapeEditableHTML)(C.backgroundRepeat),";\n\t\t\t\t--photo-block-caption-overlay-background-image-size: ").concat((0,ti.escapeEditableHTML)(C.backgroundSize),";\n\t\t\t\t--photo-block-caption-overlay-background-image-opacity: ").concat(parseFloat(C.backgroundOpacity),";\n\t\t\t}\n\t\t\t").concat(o?".":"#").concat(n,".dlx-photo-block__caption-overlay:hover:before {\n\t\t\t\t--photo-block-caption-overlay-background-image-opacity-hover: ").concat(parseFloat(C.backgroundOpacityHover),";\n\t\t\t}\n\t\t"),B+="\n\t\t\t".concat(o?".":"#").concat(n,".dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-border-radius: ").concat(Ur(A,t),";\n\t\t\t}\n\t\t")),"overlay"===L&&(B+="\n\t\t\t".concat(o?".":"#").concat(n,".dlx-photo-block__caption-overlay {\n\t\t\t\t--photo-block-caption-overlay-border-radius: ").concat(Ur(d,t),";\n\t\t\t\t").concat(Fr(P,t,"--photo-block-caption"),"\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\t\t")),B},oi=function(e){e.photoAttributes;var t,n=e.captionAttributes,o=(e.uniqueId,n.mode),r=n.captionPosition,a=n.overlayBackgroundType,l=n.overlayDisplayAnimation,c=n.overlayDisplayOnHover,s=n.photoMode,u=n.overlayHorizontalPosition,p=n.overlayVerticalPosition,d=n.overlayCaptionHorizontalPosition,f=n.overlayCaptionVerticalPosition,h=n.captionAlign,m=i()("dlx-photo-block__caption-wrapper","overlay-type-".concat(a),{"is-overlay":"overlay"===r,"overlay-vertical-bottom":"bottom"===p,"overlay-vertical-middle":"middle"===p,"overlay-vertical-top":"top"===p,"overlay-horizontal-left":"left"===u,"overlay-horizontal-center":"center"===u,"overlay-horizontal-right":"right"===u,"caption-vertical-bottom":"bottom"===f,"caption-vertical-middle":"middle"===f,"caption-vertical-top":"top"===f,"caption-horizontal-left":"left"===d,"caption-horizontal-center":"center"===d,"caption-horizontal-right":"right"===d,"overlay-display-hover":"overlay"===r&&c,"overlay-slide-down":"slide-down"===l,"overlay-slide-up":"slide-up"===l,"overlay-slide-left":"slide-left"===l,"overlay-slide-right":"slide-right"===l,"dlx-photo-block__caption-overlay":"overlay"===r}),g=ni(n,"desktop","photo-block-preview");return React.createElement(React.Fragment,null,React.createElement("style",null,g),React.createElement("div",{className:m,id:"photo-block-preview"},(t=i()("dlx-photo-block__caption align".concat(h),{"has-smart-styles":"advanced"===o&&"data"!==s&&"featuredImage"!==s}),React.createElement("figcaption",{id:"photo-block-preview",className:t},"This is a sample caption"))))},ri=function(e){var t=e.photoAttributes,n=e.captionAttributes,o=e.uniqueId;if(void 0===t)return null;var r=Ja(t,"desktop","photo-block-preview");r+=ni(n,"desktop","photo-block-preview"),r+="\n\t\t#photo-block-preview .dlx-photo-block__image-wrapper {\n\t\t\tmax-width: 250px !important;\n\t\t\theight: auto !important;\n\t\t\tmargin: 30px;\n\t\t\toverflow: hidden;\n\t\t}\n\t\t#photo-block-preview img {\n\t\t\tmax-width: 250px !important;\n\t\t\theight: auto !important;\n\t\t}\n\t";var a,l,c=t.cssGramFilter,s=t.photoDropShadow,p=n.captionPosition,d=(0,u.useSelect)((function(e){return{imageData:e(v(o)).getImageData()}})).imageData,f=i()("photo-block-preview dlx-photo-block",{"dlx-has-drop-shadow":s.enabled});return React.createElement(React.Fragment,null,React.createElement("style",null,r),React.createElement("div",{className:f,id:"photo-block-preview"},React.createElement("figure",{className:"dlx-photo-block__screen-edit-image-wrapper dlx-photo-block__figure"},"top"===p&&React.createElement("div",{className:"dlx-photo-block__screen-edit-caption dlx-photo-block__caption"},React.createElement(oi,{photoAttributes:t,captionAttributes:n,uniqueId:"photo-block-preview"})),React.createElement("div",{className:"dlx-photo-block__screen-edit-image dlx-photo-block__image-wrapper"},React.createElement("div",{class:"dlx-photo-block__screen-edit-image-inner"},React.createElement("img",{src:(a=d.url,l=d.id,a&&0!==l?a:photoBlock.defaultImagePlacheolder),className:i()("photo-block-".concat(c," dlx-photo-block__image"),{"has-css-gram":"none"!==c}),alt:"",style:{maxWidth:"100%",height:"auto"}}),"overlay"===p&&React.createElement("div",{className:"dlx-photo-block__screen-edit-caption dlx-photo-block__caption"},React.createElement(oi,{photoAttributes:t,captionAttributes:n,uniqueId:"photo-block-preview"})))),"bottom"===p&&React.createElement("div",{className:"dlx-photo-block__screen-edit-caption dlx-photo-block__caption"},React.createElement(oi,{photoAttributes:t,captionAttributes:n,uniqueId:"photo-block-preview"})))))};function ai(e){return ai="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},ai(e)}function ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function li(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n1||O.length>1)){var C=(0,o.createBlock)("dlxplugins/photo-caption-block",O);b(C,void 0,e.clientId),e.setAttributes({hasCaption:!0})}if(x&&(Object.keys(O).length>1||O.length>1)){var A=li(li({},O),I);y(x.clientId,A)}},onMouseEnter:function(){return d(!0),void i.focus()},onMouseLeave:function(){d(!1)},ref:c},n.title),p&&React.createElement(_.Popover,{className:"dlx-photo-block__global-styles-image-popover",placement:"left-start",anchor:i,onClose:function(){d(!1)},offset:10,noArrow:!1},React.createElement("div",{className:"dlx-photo-block__global-styles-image-popover-wrapper"},React.createElement(ri,{uniqueId:t.uniqueId,photoAttributes:n.content.photoAttributes,captionAttributes:n.content.captionAttributes}))))};function di(e){return di="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},di(e)}function fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function hi(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n0){var l=(null==a?void 0:a.innerBlocks[0].clientId)||null;f(l,r)}}i(!1)},variant:"primary",className:"photo-block-global-styles-modal-apply-button"},(0,c.__)("Remove Global Style","photo-block")),S().createElement(_.Button,{onClick:function(){return i(!1)},variant:"secondary"},(0,c.__)("Cancel","photo-block")))),S().createElement(_.PanelBody,{title:(0,c.__)("Available Global Styles"),initialOpen:!0,icon:S().createElement(ei,null),className:"photo-block__inspector-panel"},function(){if(d(e.attributes.globalStyle)){var t=p(e.attributes.globalStyle);return 0===Object.keys(t).length?null:S().createElement("div",{className:"photo-block-global-styles-selected"},S().createElement("div",{className:"photo-block-global-styles-selected-title"},t.title),S().createElement("div",{className:"photo-block-global-styles-selected-actions"},S().createElement(_.Button,{onClick:function(){i(!0)},icon:S().createElement(Ka,null),label:(0,c.__)("Remove the Global Style","photo-block")})))}return S().createElement("div",{className:"photo-block-global-styles-picker-button-group"},Object.values(s).map((function(t){return S().createElement(pi,gi({key:t.slug,globalStyle:t},e))})))}()))},vi=function(e){var t=e.attributes,n=e.setAttributes,o=t.align;return React.createElement(React.Fragment,null,React.createElement(_.ToolbarGroup,null,React.createElement(_.ToolbarDropdownMenu,{icon:function(e){switch(e){case"none":case"":return"align-none";case"full":return"align-full-width";default:return"align-".concat(e)}}(o),label:(0,c.__)("Align","photo-block"),className:"dlx-photo-block__alignment-dropdown"},(function(e){var t=e.onClose;return React.createElement(React.Fragment,null,React.createElement(_.MenuGroup,{className:"dlx-photo-block__alignment-dropdown-group"},React.createElement(_.MenuItem,{icon:"align-none",isSelected:"none"===o||""===o,onClick:function(){n({align:""}),t()},iconPosition:"left",label:(0,c.__)("Align None","photo-block"),role:"menuitemradio",className:i()({"is-active":"none"===o||""===o})},(0,c.__)("None","photo-block")),React.createElement(_.MenuItem,{icon:"align-wide",isSelected:"wide"===o,onClick:function(){n({align:"wide"}),t()},iconPosition:"left",label:(0,c.__)("Align Wide","photo-block"),role:"menuitemradio",className:i()({"is-active":"wide"===o})},(0,c.__)("Wide","photo-block")),React.createElement(_.MenuItem,{icon:"align-full-width",isSelected:"full"===o,onClick:function(){n({align:"full"}),t()},iconPosition:"left",label:(0,c.__)("Align Full","photo-block"),role:"menuitemradio",className:i()({"is-active":"full"===o})},(0,c.__)("Full","photo-block")),React.createElement(_.MenuItem,{icon:"align-left",isSelected:"left"===o,onClick:function(){n({align:"left"}),t()},iconPosition:"left",label:(0,c.__)("Align Left","photo-block"),role:"menuitemradio",className:i()({"is-active":"left"===o})},(0,c.__)("Left","photo-block")),React.createElement(_.MenuItem,{icon:"align-center",isSelected:"center"===o,onClick:function(){n({align:"center"}),t()},iconPosition:"left",label:(0,c.__)("Align Center","photo-block"),role:"menuitemradio",className:i()({"is-active":"center"===o})},(0,c.__)("Center","photo-block")),React.createElement(_.MenuItem,{icon:"align-right",isSelected:"right"===o,onClick:function(){n({align:"right"}),t()},iconPosition:"left",label:(0,c.__)("Align Right","photo-block"),role:"menuitemradio",className:i()({"is-active":"right"===o})},(0,c.__)("Right","photo-block"))))}))))};function _i(e){return _i="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},_i(e)}function Ei(){return Ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function ki(e,t,n,o,r,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function wi(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function i(e){ki(a,o,r,i,l,"next",e)}function l(e){ki(a,o,r,i,l,"throw",e)}i(void 0)}))}}function Ri(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ti(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);nMath.min(Math.max(e,t),n),ji=(e,t)=>e===t||e.width===t.width&&e.height===t.height&&e.x===t.x&&e.y===t.y&&e.unit===t.unit;function Ui(e,t,n){return"%"===e.unit?{...Mi,...e,unit:"%"}:{unit:"%",x:e.x?e.x/t*100:0,y:e.y?e.y/n*100:0,width:e.width?e.width/t*100:0,height:e.height?e.height/n*100:0}}function Fi(e,t,n){return e.unit?"px"===e.unit?{...Mi,...e,unit:"px"}:{unit:"px",x:e.x?e.x*t/100:0,y:e.y?e.y*n/100:0,width:e.width?e.width*t/100:0,height:e.height?e.height*n/100:0}:{...Mi,...e,unit:"px"}}function Gi(e,t,n,o,r,a=0,i=0,l=o,c=r){const s={...e};let u=Math.min(a,o),p=Math.min(i,r),d=Math.min(l,o),f=Math.min(c,r);t&&(t>1?(u=i?i*t:u,p=u/t,d=l*t):(p=a?a/t:p,u=p*t,f=c/t)),s.y<0&&(s.height=Math.max(s.height+s.y,p),s.y=0),s.x<0&&(s.width=Math.max(s.width+s.x,u),s.x=0);const h=o-(s.x+s.width);h<0&&(s.x=Math.min(s.x,o-u),s.width+=h);const m=r-(s.y+s.height);if(m<0&&(s.y=Math.min(s.y,r-p),s.height+=m),s.widthd&&(("sw"===n||"nw"==n)&&(s.x-=d-s.width),s.width=d),s.height>f&&(("nw"===n||"ne"==n)&&(s.y-=f-s.height),s.height=f),t){const e=s.width/s.height;if(et){const e=Math.max(s.height*t,u);("sw"===n||"nw"==n)&&(s.x-=e-s.width),s.width=e}}return s}const qi={capture:!0,passive:!1};let Vi=0;const Hi=class e extends E.PureComponent{constructor(){super(...arguments),this.docMoveBound=!1,this.mouseDownOnCrop=!1,this.dragStarted=!1,this.evData={startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0},this.componentRef=(0,E.createRef)(),this.mediaRef=(0,E.createRef)(),this.initChangeCalled=!1,this.instanceId="rc-"+Vi++,this.state={cropIsActive:!1,newCropIsBeingDrawn:!1},this.onCropPointerDown=e=>{const{crop:t,disabled:n}=this.props,o=this.getBox();if(!t)return;const r=Fi(t,o.width,o.height);if(n)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const a=e.target.dataset.ord,i=!!a;let l=e.clientX,c=e.clientY,s=r.x,u=r.y;if(a){const t=e.clientX-o.x,n=e.clientY-o.y;let i=0,p=0;"ne"===a||"e"==a?(i=t-(r.x+r.width),p=n-r.y,s=r.x,u=r.y+r.height):"se"===a||"s"===a?(i=t-(r.x+r.width),p=n-(r.y+r.height),s=r.x,u=r.y):"sw"===a||"w"==a?(i=t-r.x,p=n-(r.y+r.height),s=r.x+r.width,u=r.y):("nw"===a||"n"==a)&&(i=t-r.x,p=n-r.y,s=r.x+r.width,u=r.y+r.height),l=s+o.x+i,c=u+o.y+p}this.evData={startClientX:l,startClientY:c,startCropX:s,startCropY:u,clientX:e.clientX,clientY:e.clientY,isResize:i,ord:a},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})},this.onComponentPointerDown=e=>{const{crop:t,disabled:n,locked:o,keepSelection:r,onChange:a}=this.props,i=this.getBox();if(n||o||r&&t)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const l=e.clientX-i.x,c=e.clientY-i.y,s={unit:"px",x:l,y:c,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:l,startCropY:c,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,a(Fi(s,i.width,i.height),Ui(s,i.width,i.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})},this.onDocPointerMove=e=>{const{crop:t,disabled:n,onChange:o,onDragStart:r}=this.props,a=this.getBox();if(n||!t||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,r&&r(e));const{evData:i}=this;let l;i.clientX=e.clientX,i.clientY=e.clientY,l=i.isResize?this.resizeCrop():this.dragCrop(),ji(t,l)||o(Fi(l,a.width,a.height),Ui(l,a.width,a.height))},this.onComponentKeyDown=t=>{const{crop:n,disabled:o,onChange:r,onComplete:a}=this.props;if(o)return;const i=t.key;let l=!1;if(!n)return;const c=this.getBox(),s=this.makePixelCrop(c),u=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep;if("ArrowLeft"===i?(s.x-=u,l=!0):"ArrowRight"===i?(s.x+=u,l=!0):"ArrowUp"===i?(s.y-=u,l=!0):"ArrowDown"===i&&(s.y+=u,l=!0),l){t.cancelable&&t.preventDefault(),s.x=Bi(s.x,0,c.width-s.width),s.y=Bi(s.y,0,c.height-s.height);const e=Fi(s,c.width,c.height),n=Ui(s,c.width,c.height);r(e,n),a&&a(e,n)}},this.onHandlerKeyDown=(t,n)=>{const{aspect:o=0,crop:r,disabled:a,minWidth:i=0,minHeight:l=0,maxWidth:c,maxHeight:s,onChange:u,onComplete:p}=this.props,d=this.getBox();if(a||!r)return;if("ArrowUp"!==t.key&&"ArrowDown"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key)return;t.stopPropagation(),t.preventDefault();const f=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep,h=function(e,t,n,o){const r={...e};return"ArrowLeft"===t?"nw"===o?(r.x-=n,r.y-=n,r.width+=n,r.height+=n):"w"===o?(r.x-=n,r.width+=n):"sw"===o?(r.x-=n,r.width+=n,r.height+=n):"ne"===o?(r.y+=n,r.width-=n,r.height-=n):"e"===o?r.width-=n:"se"===o&&(r.width-=n,r.height-=n):"ArrowRight"===t&&("nw"===o?(r.x+=n,r.y+=n,r.width-=n,r.height-=n):"w"===o?(r.x+=n,r.width-=n):"sw"===o?(r.x+=n,r.width-=n,r.height-=n):"ne"===o?(r.y-=n,r.width+=n,r.height+=n):"e"===o?r.width+=n:"se"===o&&(r.width+=n,r.height+=n)),"ArrowUp"===t?"nw"===o?(r.x-=n,r.y-=n,r.width+=n,r.height+=n):"n"===o?(r.y-=n,r.height+=n):"ne"===o?(r.y-=n,r.width+=n,r.height+=n):"sw"===o?(r.x+=n,r.width-=n,r.height-=n):"s"===o?r.height-=n:"se"===o&&(r.width-=n,r.height-=n):"ArrowDown"===t&&("nw"===o?(r.x+=n,r.y+=n,r.width-=n,r.height-=n):"n"===o?(r.y+=n,r.height-=n):"ne"===o?(r.y+=n,r.width-=n,r.height-=n):"sw"===o?(r.x-=n,r.width+=n,r.height+=n):"s"===o?r.height+=n:"se"===o&&(r.width+=n,r.height+=n)),r}(Fi(r,d.width,d.height),t.key,f,n),m=Gi(h,o,n,d.width,d.height,i,l,c,s);if(!ji(r,m)){const e=Ui(m,d.width,d.height);u(m,e),p&&p(m,e)}},this.onDocPointerDone=e=>{const{crop:t,disabled:n,onComplete:o,onDragEnd:r}=this.props,a=this.getBox();this.unbindDocMove(),!n&&t&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,r&&r(e),o&&o(Fi(t,a.width,a.height),Ui(t,a.width,a.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))},this.onDragFocus=()=>{var e;null==(e=this.componentRef.current)||e.scrollTo(0,0)}}get document(){return document}getBox(){const e=this.mediaRef.current;if(!e)return{x:0,y:0,width:0,height:0};const{x:t,y:n,width:o,height:r}=e.getBoundingClientRect();return{x:t,y:n,width:o,height:r}}componentDidUpdate(e){const{crop:t,onComplete:n}=this.props;if(n&&!e.crop&&t){const{width:e,height:o}=this.getBox();e&&o&&n(Fi(t,e,o),Ui(t,e,o))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect(),this.unbindDocMove()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,qi),this.document.addEventListener("pointerup",this.onDocPointerDone,qi),this.document.addEventListener("pointercancel",this.onDocPointerDone,qi),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,qi),this.document.removeEventListener("pointerup",this.onDocPointerDone,qi),this.document.removeEventListener("pointercancel",this.onDocPointerDone,qi),this.docMoveBound=!1)}getCropStyle(){const{crop:e}=this.props;if(e)return{top:`${e.y}${e.unit}`,left:`${e.x}${e.unit}`,width:`${e.width}${e.unit}`,height:`${e.height}${e.unit}`}}dragCrop(){const{evData:e}=this,t=this.getBox(),n=this.makePixelCrop(t),o=e.clientX-e.startClientX,r=e.clientY-e.startClientY;return n.x=Bi(e.startCropX+o,0,t.width-n.width),n.y=Bi(e.startCropY+r,0,t.height-n.height),n}getPointRegion(e,t,n,o){const{evData:r}=this,a=r.clientX-e.x,i=r.clientY-e.y;let l,c;return l=o&&t?"nw"===t||"n"===t||"ne"===t:i1?r?[r,r/t]:[a*t,a]:a?[a*t,a]:[r,r/t]:[r,a]}resizeCrop(){const{evData:t}=this,{aspect:n=0,maxWidth:o,maxHeight:r}=this.props,a=this.getBox(),[i,l]=this.resolveMinDimensions(a,n,this.props.minWidth,this.props.minHeight);let c=this.makePixelCrop(a);const s=this.getPointRegion(a,t.ord,i,l),u=t.ord||s;let p=t.clientX-t.startClientX,d=t.clientY-t.startClientY;(i&&"nw"===u||"w"===u||"sw"===u)&&(p=Math.min(p,-i)),(l&&"nw"===u||"n"===u||"ne"===u)&&(d=Math.min(d,-l));const f={unit:"px",x:0,y:0,width:0,height:0};"ne"===s?(f.x=t.startCropX,f.width=p,n?(f.height=f.width/n,f.y=t.startCropY-f.height):(f.height=Math.abs(d),f.y=t.startCropY-f.height)):"se"===s?(f.x=t.startCropX,f.y=t.startCropY,f.width=p,f.height=n?f.width/n:d):"sw"===s?(f.x=t.startCropX+p,f.y=t.startCropY,f.width=Math.abs(p),f.height=n?f.width/n:d):"nw"===s&&(f.x=t.startCropX+p,f.width=Math.abs(p),n?(f.height=f.width/n,f.y=t.startCropY-f.height):(f.height=Math.abs(d),f.y=t.startCropY+d));const h=Gi(f,n,s,a.width,a.height,i,l,o,r);return n||e.xyOrds.indexOf(u)>-1?c=h:e.xOrds.indexOf(u)>-1?(c.x=h.x,c.width=h.width):e.yOrds.indexOf(u)>-1&&(c.y=h.y,c.height=h.height),c.x=Bi(c.x,0,a.width-c.width),c.y=Bi(c.y,0,a.height-c.height),c}renderCropSelection(){const{ariaLabels:t=e.defaultProps.ariaLabels,disabled:n,locked:o,renderSelectionAddon:r,ruleOfThirds:a,crop:i}=this.props,l=this.getCropStyle();if(i)return E.createElement("div",{style:l,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":t.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!n&&!o&&E.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},E.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),E.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),E.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),E.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),E.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":t.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"nw"),role:"button"}),E.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":t.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"n"),role:"button"}),E.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":t.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"ne"),role:"button"}),E.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":t.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"e"),role:"button"}),E.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":t.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"se"),role:"button"}),E.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":t.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"s"),role:"button"}),E.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":t.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"sw"),role:"button"}),E.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":t.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"w"),role:"button"})),r&&E.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:e=>e.stopPropagation()},r(this.state)),a&&E.createElement(E.Fragment,null,E.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),E.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(e){return Fi({...Mi,...this.props.crop||{}},e.width,e.height)}render(){const{aspect:e,children:t,circularCrop:n,className:o,crop:r,disabled:a,locked:i,style:l,ruleOfThirds:c}=this.props,{cropIsActive:s,newCropIsBeingDrawn:u}=this.state,p=r?this.renderCropSelection():null,d=((...e)=>e.filter((e=>e&&"string"==typeof e)).join(" "))("ReactCrop",o,s&&"ReactCrop--active",a&&"ReactCrop--disabled",i&&"ReactCrop--locked",u&&"ReactCrop--new-crop",r&&e&&"ReactCrop--fixed-aspect",r&&n&&"ReactCrop--circular-crop",r&&c&&"ReactCrop--rule-of-thirds",!this.dragStarted&&r&&!r.width&&!r.height&&"ReactCrop--invisible-crop",n&&"ReactCrop--no-animate");return E.createElement("div",{ref:this.componentRef,className:d,style:l},E.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},t),r?E.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},E.createElement("defs",null,E.createElement("mask",{id:`hole-${this.instanceId}`},E.createElement("rect",{width:"100%",height:"100%",fill:"white"}),n?E.createElement("ellipse",{cx:`${r.x+r.width/2}${r.unit}`,cy:`${r.y+r.height/2}${r.unit}`,rx:`${r.width/2}${r.unit}`,ry:`${r.height/2}${r.unit}`,fill:"black"}):E.createElement("rect",{x:`${r.x}${r.unit}`,y:`${r.y}${r.unit}`,width:`${r.width}${r.unit}`,height:`${r.height}${r.unit}`,fill:"black"}))),E.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,p)}};Hi.xOrds=["e","w"],Hi.yOrds=["n","s"],Hi.xyOrds=["nw","ne","se","sw"],Hi.nudgeStep=1,Hi.nudgeStepMedium=10,Hi.nudgeStepLarge=100,Hi.defaultProps={ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}};let zi=Hi;const Wi=function(){return S().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2,clipRule:"evenodd",viewBox:"0 0 100 100"},S().createElement("path",{d:"M90.734 21.888a9.376 9.376 0 0 0-9.375-9.375h-62.81a9.374 9.374 0 0 0-9.375 9.375v56.148a9.376 9.376 0 0 0 9.375 9.375h62.81a9.378 9.378 0 0 0 9.375-9.375V21.888zm-6.25 0v56.148a3.126 3.126 0 0 1-3.125 3.125h-62.81a3.126 3.126 0 0 1-3.125-3.125V21.888a3.125 3.125 0 0 1 3.125-3.125h62.81a3.125 3.125 0 0 1 3.125 3.125z"}),S().createElement("path",{d:"M45.313 24.854H31.104a9.376 9.376 0 0 0-9.375 9.375v14.209a3.125 3.125 0 0 0 6.25 0V34.229a3.126 3.126 0 0 1 3.125-3.125h14.208a3.126 3.126 0 0 0 .001-6.25zM54.542 75H68.75a9.376 9.376 0 0 0 9.375-9.375V51.417a3.126 3.126 0 0 0-6.25 0v14.208a3.125 3.125 0 0 1-3.125 3.125H54.542a3.126 3.126 0 0 0 0 6.25z"}))},Yi=function(e,t){var n=function e(t,n){return 0===n?t:e(n,t%n)}(e,t);return{width:e/n,height:t/n}};function Xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function el(e,t,n,o,r,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function tl(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function i(e){el(a,o,r,i,l,"next",e)}function l(e){el(a,o,r,i,l,"throw",e)}i(void 0)}))}}function nl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ol(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ol(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ol(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=parseInt(e)/parseInt(t);null!==n&&null!==o?(r=n/o,J(n),te(o)):(J(null),te(null)),ue(r),function(e,t,n){var o,r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,l=1*Math.min(e,t);ee&&(r=(o=e)/n),r>t&&(o=(r=t)*n);var c={aspect:o/r,unit:"px",x:Math.max((e-o)/2,0),y:Math.max((t-r)/2,0),width:o,height:r};a&&i&&(c.maxWidth=a,c.maxHeight=i),V(c)}(oe.offsetWidth,null==oe?void 0:oe.offsetHeight,r,n,o),le(!0)},ve=React.createElement(r.InspectorControls,null,React.createElement(_.PanelBody,{title:(0,c.__)("Crop Settings","photo-block")},React.createElement(_.PanelRow,null,"Crop options here"))),_e=React.createElement(r.BlockControls,null,React.createElement(_.ToolbarButton,{label:(0,c.__)("Back","photo-block"),icon:React.createElement(C,null),variant:"secondary",onClick:function(){p("edit")},className:"dlx-photo-block__toolbar-back-button"},(0,c.__)("Back","photo-block")),React.createElement(_.ToolbarGroup,null,React.createElement(_.ToolbarDropdownMenu,{icon:React.createElement(Wi,null),label:(0,c.__)("Ratio","photo-block")+" "+S,className:"dlx-photo-block__aspect-ratio-dropdown"},(function(e){var t=e.onClose;return React.createElement(React.Fragment,null,React.createElement(_.MenuGroup,{className:"dlx-photo-block__aspect-ratio-group"},React.createElement(_.MenuItem,{icon:"original"===S?React.createElement(Pi,null):null,isSelected:"original"===S,onClick:function(){g("original"),ye(null==N?void 0:N.width,null==N?void 0:N.height),t()},className:"is-active"},(0,c.__)("Original","photo-block")),React.createElement(_.MenuItem,{icon:"square"===S?React.createElement(Pi,null):null,isSelected:"square"===S,onClick:function(){g("square"),ye(1,1),t()}},(0,c.__)("Square","photo-block")),React.createElement(_.MenuItem,{icon:"custom"===S?React.createElement(Pi,null):null,isSelected:"custom"===S,onClick:function(){g("custom"),t(),le(!0)}},(0,c.__)("Custom","photo-block"))),React.createElement(_.MenuGroup,{label:(0,c.__)("Landscape","photo-block"),className:"dlx-photo-block__aspect-ratio-group"},React.createElement(_.MenuItem,{icon:"16:10"===S?React.createElement(Pi,null):null,isSelected:"16:10"===S,onClick:function(){g("16:10"),ye(16,10),t()}},(0,c.__)("16:10","photo-block")),React.createElement(_.MenuItem,{icon:"16:9"===S?React.createElement(Pi,null):null,isSelected:"16:9"===S,onClick:function(){g("16:9"),ye(16,9),t()}},(0,c.__)("16:9","photo-block")),React.createElement(_.MenuItem,{icon:"4:3"===S?React.createElement(Pi,null):null,isSelected:"4:3"===S,onClick:function(){g("4:3"),ye(4,3),t()}},(0,c.__)("4:3","photo-block")),React.createElement(_.MenuItem,{icon:"3:2"===S?React.createElement(Pi,null):null,isSelected:"3:2"===S,onClick:function(){g("3:2"),ye(3,2),t()}},(0,c.__)("3:2","photo-block"))),React.createElement(_.MenuGroup,{label:(0,c.__)("Portrait","photo-block"),className:"dlx-photo-block__aspect-ratio-group"},React.createElement(_.MenuItem,{icon:"10:16"===S?React.createElement(Pi,null):null,isSelected:"10:16"===S,onClick:function(){g("10:16"),ye(10,16),t()}},(0,c.__)("10:16","photo-block")),React.createElement(_.MenuItem,{icon:"9:16"===S?React.createElement(Pi,null):null,isSelected:"9:16"===S,onClick:function(){g("9:16"),ye(9,16),t()}},(0,c.__)("9:16","photo-block")),React.createElement(_.MenuItem,{icon:"3:4"===S?React.createElement(Pi,null):null,isSelected:"3:4"===S,onClick:function(){g("3:4"),ye(3,4),t()}},(0,c.__)("3:4","photo-block")),React.createElement(_.MenuItem,{icon:"2:3"===S?React.createElement(Pi,null):null,isSelected:"2:3"===S,onClick:function(){g("2:3"),ye(2,3),t()}},(0,c.__)("2:3","photo-block"))))})),React.createElement(_.ToolbarButton,{className:"dlx-photo-block__lock-crop-button",icon:React.createElement(Di,null),label:z?(0,c.__)("UnLock Aspect Ratio","photo-block"):(0,c.__)("Lock Aspect Ratio","photo-block"),isActive:z,onClick:function(){W(!z)}}),React.createElement(_.ToolbarButton,{icon:React.createElement(Ni,null),label:(0,c.__)("Rotate Left","photo-block"),onClick:function(){var e=ge(-90);F(e),me(pe.url,e).then((function(e){L(e),B(e)}))}}),React.createElement(_.ToolbarButton,{icon:React.createElement(Li,null),label:(0,c.__)("Rotate Right","photo-block"),onClick:function(){var e=ge(90);F(e),me(pe.url,e).then((function(e){L(e),B(e)}))}})),"custom"===S&&React.createElement(_.ToolbarGroup,null,React.createElement(_.ToolbarItem,{as:(0,l.forwardRef)((function(e,t){return React.createElement(Zi,{forwardRef:t,onChange:function(e){ye(e.width,e.height)},fullsizePhoto:N,uniqueId:de})}))})),React.createElement(_.ToolbarGroup,null,React.createElement(_.ToolbarButton,{icon:X?React.createElement(R,null):React.createElement(pa,null),className:i()("dlx-photo-block__save-button",{"is-saving":X}),variant:"primary",disabled:!ie,label:(0,c.__)("Apply Crop","photo-block"),onClick:function(){X||($(!0),m(pe),be(q,pe.id,U).then((function(e){var t=e.data;t.success&&(d(t.data.attachment),o({photoMode:"photo",imageData:t.data.attachment}),h(!0),f("photo"),p("edit"))})).catch((function(e){})).then((function(){$(!1)})))}},X?(0,c.__)("Saving…","photo-block"):(0,c.__)("Apply Crop","photo-block"))));return React.createElement(React.Fragment,null,ve,_e,React.createElement("div",{className:"dlx-photo-block__screen-edit"},I&&React.createElement("div",{className:"dlx-photo-block__screen-edit-spinner",style:{minWidth:fe,minHeight:he,maxWidth:"100%",maxHeight:"100%"}},React.createElement("h3",null,(0,c.__)("Loading Full Size Image","photo-block")),React.createElement(_.Spinner,null)),!I&&React.createElement(React.Fragment,null,React.createElement(zi,{aspect:z?se:null,crop:q,onChange:function(e){V(e)},ruleOfThirds:!0,maxWidth:null!=Z?Z:void 0,maxHeight:null!=ee?ee:void 0},React.createElement("img",{src:null!==(t=null==N?void 0:N.url)&&void 0!==t?t:"",width:null==N?void 0:N.width,height:null==N?void 0:N.height,style:{maxWidth:"100%",height:"auto"},alt:"",ref:re})))))};function al(e){return al="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},al(e)}function il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ll(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=700,"is-layout-medium":E>=450&&E<700,"is-layout-small":E<450}),(0,l.useEffect)((function(){var t=(null==h?void 0:h.postId)||null,n=h.query;0!==t&&null!==t&&"none"!==n&&void 0!==n&&N(!0);var o=null;if(null!==k&&!wl.includes(k)||j)O(k),wl.push(k),o=k;else{var r=b;if(wl.includes(k)){var i=(0,u.select)(v(k));if(i){var l=(0,u.dispatch)(v(r));l.setBlockUniqueId(r),l.setPhotoMode(i.getPhotoMode()),l.setCaptionPosition(i.getCaptionPosition()),l.setHasCaption(i.hasCaption()),l.setInQueryLoop(i.inQueryLoop()),l.setImageData(i.getImageData());var c="initial";switch(i.getCurrentScreen()){case"edit":case"crop":c="edit"}l.setScreen(c),e.attributes.screen=c,d({screen:c})}}null===k&&O(r),e.attributes.uniqueId=r,d({uniqueId:r}),wl.push(r),o=r}(0,p.doAction)("dlx_photo_block_has_loaded",o),P(a.imageData),A(a.hasCaption),C(a.captionPosition),D(a.photoMode)}),[]);var S=e.attributes,k=S.uniqueId,w=S.align,R=S.globalStyle,T=S.photoDropShadow,x=(0,u.useSelect)((function(e){var t=e(An).getGlobalStyleBySlug(R);return 0===Object.keys(t).length?"":{globalStyleCSSClassName:t.css_class}})).globalStyleCSSClassName,I=(0,u.useDispatch)(v(k||b)),O=I.setBlockUniqueId,C=I.setCaptionPosition,A=I.setHasCaption,P=I.setImageData,D=I.setPhotoMode,N=I.setInQueryLoop,L=(0,u.useSelect)((function(e){return{currentScreen:e(v(k||b)).getCurrentScreen(),isUploading:e(v(k||b)).isUploading(),isProcessingUpload:e(v(k||b)).isProcessingUpload(),isUploadError:e(v(k||b)).isUploadError(),filepondInstance:e(v(k||b)).getFilepondInstance(),hasCaption:e(v(k||b)).hasCaption(),captionPosition:e(v(k||b)).getCaptionPosition(),inQueryLoop:e(v(k||b)).inQueryLoop(),photoMode:e(v(k||b)).getPhotoMode(),blockUniqueId:e(v(k||b)).getBlockUniqueId()}})),M=L.currentScreen,B=(L.isUploading,L.isProcessingUpload,L.isUploadError,L.filepondInstance,L.hasCaption,L.captionPosition),j=L.inQueryLoop,U=(L.photoMode,L.blockUniqueId),F=(0,r.useBlockProps)({className:i()("dlx-photo-block","align".concat(w),"dlx-screen-".concat(M),"dlx-caption-position-".concat(B),x,{"dlx-has-drop-shadow":T.enabled},t)});(0,l.useEffect)((function(){e.attributes.captionPosition!==B&&e.setAttributes({captionPosition:B})}),[B]);var G=(0,l.useRef)(null),q=i()("dlx-photo-block__caption",{"dlx-photo-block__caption--has-overlay":"overlay"===B}),V=(0,r.useInnerBlocksProps)({className:q},{allowedBlocks:["dlxplugins/photo-caption-block"],templateInsertUpdatesSelection:!0,renderAppender:function(){return m?React.createElement(tn,{numBlocks:g,clientId:f,blockUniqueId:U}):null}});if(a.preview)return React.createElement("div",{className:"dlx-photo-block__preview"},React.createElement("img",{src:photoBlock.blockPreviewImage,alt:(0,c.__)("Block Preview","photo-block"),style:{maxWidth:"100%",height:"auto"}}));var H=React.createElement(React.Fragment,null,React.createElement("section",{className:"dlx-photo-block__container dlx-photo-block__block-wrapper",id:k},_,function(){if(null===k||null===U)return null;switch(M){case"loading":return React.createElement(ul,Sl({},e,{blockUniqueId:U}));case"initial":return React.createElement(Kt,{attributes:a,setAttributes:d,blockUniqueId:U,clientId:f});case"edit":return React.createElement(Ai,{attributes:a,setAttributes:d,ref:G,innerBlockProps:V,clientId:f,blockUniqueId:U});case"crop":return React.createElement(rl,{attributes:a,setAttributes:d,blockUniqueId:U});case"featuredImage":return React.createElement(El,{attributes:a,setAttributes:d,context:h,innerBlockProps:V,blockUniqueId:U,clientId:f});case"effects":return null}return null}()));return React.createElement(React.Fragment,null,React.createElement("div",F,H))},save:function(){return React.createElement(r.InnerBlocks.Content,null)},transforms:{from:[{type:"enter",regExp:/^photoblock$/,transform:function(){return(0,o.createBlock)("dlxplugins/photo-block")}},{type:"block",blocks:["core/image"],transform:function(e){var t={photoMode:"photo",screen:"loading",imageData:{id:e.id,url:e.url,alt:e.alt,full:e.url,width:e.width,height:e.height,title:"",caption:e.caption}};return(0,o.createBlock)("dlxplugins/photo-block",t)}}],to:[]}});const Rl=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","title":"Caption Block","apiVersion":3,"name":"dlxplugins/photo-caption-block","parent":["dlxplugins/photo-block"],"category":"common","description":"A caption for a photo block.","keywords":["photo","block","image","picture","photos","caption","credit"],"version":"1.0.0","textdomain":"photo-block","usesContext":["postType","postId","queryId","query","photo-block/photoMode","photo-block/dataSource","photo-block/dataImageSource","photo-block/dataImageSourceCustomField","photo-block/dataImageSourceAuthorMeta","photo-block/dataHasFallbackImage","photo-block/dataFallbackImageSize","photo-block/dataFallbackImage","photo-block/dataPostType","photo-block/dataPostId","photo-block/imageSize","photo-block/uniqueId","photo-block/globalStyle"],"attributes":{"date":{"type":"string","default":""},"globalStyle":{"type":"string","default":""},"photoMode":{"type":"string","default":""},"uniqueId":{"type":"string","default":""},"captionManual":{"type":"string","default":""},"mode":{"type":"string","default":"single"},"enableSmartStyles":{"type":"boolean","default":true},"captionBaseFontSize":{"type":"object","default":{"mobile":{"value":"14","unit":"px"},"tablet":{"value":"14","unit":"px"},"desktop":{"value":"16","unit":"px"}}},"captionPosition":{"type":"string","default":"bottom"},"captionAlign":{"type":"string","default":"center"},"captionBackgroundColor":{"type":"string","default":"transparent"},"captionBackgroundColorOpacity":{"type":"number","default":1},"captionTextColor":{"type":"string","default":"#333"},"captionAccentColor":{"type":"string","default":"#e17713"},"captionSecondaryColor":{"type":"string","default":"#FFFFFF"},"captionLinkColor":{"type":"string","default":"#e17713"},"captionLinkHoverColor":{"type":"string","default":"#f58f2f"},"captionTextFontFamily":{"type":"string","default":"Arial"},"captionHeadingsFontFamily":{"type":"string","default":"Arial"},"captionTypography":{"type":"object","default":{"mobile":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontFallback":"","fontType":"web"},"tablet":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontFallback":"","fontType":"web"},"desktop":{"fontFamily":"Arial","fontFamilySlug":"arial","fontSize":"18","fontSizeUnit":"px","fontWeight":"normal","lineHeight":"1.2","lineHeightUnit":"em","textTransform":"none","letterSpacing":"0","letterSpacingUnit":"px","fontFallback":"serif","fontType":"web"}}},"captionCustomTypography":{"type":"string","default":""},"captionPaddingSize":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"tablet":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"desktop":{"top":"15","right":"20","bottom":"15","left":"20","topUnit":"px","rightUnit":"px","bottomUnit":"px","leftUnit":"px","unitSync":false}}},"captionMarginSize":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"tablet":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"desktop":{"top":"0","right":"0","bottom":"0","left":"0","topUnit":"px","rightUnit":"px","bottomUnit":"px","leftUnit":"px","unitSync":true}}},"captionBorder":{"type":"object","default":{"mobile":{"top":{"width":"","unit":null,"color":"","borderStyle":""},"right":{"width":"","unit":null,"color":"","borderStyle":""},"bottom":{"width":"","unit":null,"color":"","borderStyle":""},"left":{"width":"","unit":null,"color":"","borderStyle":""},"unitSync":true},"tablet":{"top":{"width":"","unit":null,"color":"","borderStyle":""},"right":{"width":"","unit":null,"color":"","borderStyle":""},"bottom":{"width":"","unit":null,"color":"","borderStyle":""},"left":{"width":"","unit":null,"color":"","borderStyle":""},"unitSync":true},"desktop":{"top":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"right":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"bottom":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"left":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"unitSync":true}}},"captionBorderRadius":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"tablet":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"desktop":{"top":"0","right":"0","bottom":"0","left":"0","topUnit":"px","rightUnit":"px","bottomUnit":"px","leftUnit":"px","unitSync":true}}},"containerWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerHeight":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMinWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMaxWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMinHeight":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"containerMaxHeight":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"","unit":"px"}}},"overlayVerticalPosition":{"type":"string","default":"middle"},"overlayCaptionVerticalPosition":{"type":"string","default":"middle"},"overlayCaptionHorizontalPosition":{"type":"string","default":"center"},"overlayHorizontalPosition":{"type":"string","default":"center"},"overlayBackgroundType":{"type":"string","default":"solid"},"overlayBackgroundColor":{"type":"string","default":"rgba(0,0,0,0.5)"},"overlayBackgroundColorOpacity":{"type":"number","default":0.5},"overlayBackgroundColorHover":{"type":"string","default":"rgba(0,0,0,0.40)"},"overlayBackgroundColorOpacityHover":{"type":"number","default":0.4},"overlayBorder":{"type":"object","default":{"mobile":{"top":{"width":"","unit":null,"color":"","borderStyle":""},"right":{"width":"","unit":null,"color":"","borderStyle":""},"bottom":{"width":"","unit":null,"color":"","borderStyle":""},"left":{"width":"","unit":null,"color":"","borderStyle":""},"unitSync":true},"tablet":{"top":{"width":"","unit":null,"color":"","borderStyle":""},"right":{"width":"","unit":null,"color":"","borderStyle":""},"bottom":{"width":"","unit":null,"color":"","borderStyle":""},"left":{"width":"","unit":null,"color":"","borderStyle":""},"unitSync":true},"desktop":{"top":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"right":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"bottom":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"left":{"width":"0","unit":"px","color":"#000000","borderStyle":"solid"},"unitSync":true}}},"overlayBorderRadius":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"tablet":{"top":"","right":"","bottom":"","left":"","topUnit":null,"rightUnit":null,"bottomUnit":null,"leftUnit":null,"unitSync":true},"desktop":{"top":"0","right":"0","bottom":"0","left":"0","topUnit":"px","rightUnit":"px","bottomUnit":"px","leftUnit":"px","unitSync":true}}},"overlayBackgroundGradient":{"type":"string","default":""},"overlayBackgroundGradientOpacity":{"type":"number","default":0.5},"overlayBackgroundGradientOpacityHover":{"type":"number","default":0.65},"overlayBackgroundImage":{"type":"object","default":{"url":"","id":0,"backgroundColor":"transparent","backgroundSize":"cover","backgroundPosition":"center center","backgroundRepeat":"no-repeat","backgroundOpacity":0.4,"backgroundOpacityHover":0.65}},"overlayDisplayOnHover":{"type":"boolean","default":false},"overlayDisplayAnimation":{"type":"string","default":"fade"},"htmlAnchor":{"type":"string","default":""},"captionCSSClasses":{"type":"string","default":""},"customAttributes":{"type":"array","default":[]},"hideOnMobile":{"type":"boolean","default":false},"hideOnTablet":{"type":"boolean","default":false},"hideOnDesktop":{"type":"boolean","default":false}},"supports":{"anchor":false,"align":false,"className":false,"alignWide":false,"defaultStylePicker":false,"spacing":{"padding":false,"margin":false},"html":false},"example":{"attributes":{}},"editorScript":"dlx-photo-caption-block-editor","editorStyle":"dlx-photo-caption-block-editor-css","style":"dlx-photo-block-frontend-and-editor"}'),Tl=w("Shuffle",[["path",{d:"M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22",key:"1wmou1"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 6h1.9c1.5 0 2.9.9 3.6 2.2",key:"10bdb2"}],["path",{d:"M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8",key:"vgxac0"}],["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}]]),xl=w("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Il=w("AlignLeft",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}],["line",{x1:"17",x2:"3",y1:"18",y2:"18",key:"1awlsn"}]]),Ol=w("AlignCenter",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"17",x2:"7",y1:"12",y2:"12",key:"rsh8ii"}],["line",{x1:"19",x2:"5",y1:"18",y2:"18",key:"1t0tuv"}]]),Cl=w("AlignRight",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}],["line",{x1:"21",x2:"7",y1:"18",y2:"18",key:"1g9eri"}]]),Al=w("SeparatorHorizontal",[["line",{x1:"3",x2:"21",y1:"12",y2:"12",key:"10d38w"}],["polyline",{points:"8 8 12 4 16 8",key:"zo8t4w"}],["polyline",{points:"16 16 12 20 8 16",key:"1oyrid"}]]),Pl=w("RectangleEllipsis",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M7 12h.01",key:"eqddd0"}]]),Dl=w("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function Nl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ll(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ll(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ll(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=i()("dlx-photo-block__caption ".concat(d," align").concat(Se," ").concat(R," ").concat(e),{"has-smart-styles":"advanced"===pe&&"data"!==k&&"featuredImage"!==k});return"data"===k||"featuredImage"===w?A?React.createElement(React.Fragment,null,(0,c.__)("Loading…","photo-block"),React.createElement(_.Spinner,null)):""!==I?React.createElement("figcaption",{className:o,id:null!=n?n:se},React.createElement("div",{className:"dlx-photo-block__caption-inner"},ht.parse(I))):(0,c.__)("No caption","photo-block"):"single"===pe?React.createElement("figcaption",{className:o,id:se},React.createElement("div",{className:"dlx-photo-block__caption-inner"},React.createElement(r.RichText,{tagName:"div",placeholder:(0,c.__)("Write caption…","photo-block"),value:de,onChange:function(e){t({captionManual:e})},id:"search-dlx-caption",name:"search-dlx-caption",ref:oe}))):React.createElement("figcaption",{id:se,className:o},React.createElement("div",$l({className:"dlx-photo-block__caption-inner"},rt)))},gt=React.createElement(r.InspectorControls,null,dt),bt="";T(d)||(bt=ni(f,ie,se));var yt=i()("dlx-photo-block__caption-overlay","overlay-type-".concat(Fe),{"is-overlay":"overlay"===E,"overlay-vertical-bottom":"bottom"===Me,"overlay-vertical-middle":"middle"===Me,"overlay-vertical-top":"top"===Me,"overlay-horizontal-left":"left"===je,"overlay-horizontal-center":"center"===je,"overlay-horizontal-right":"right"===je,"caption-vertical-bottom":"bottom"===Be,"caption-vertical-middle":"middle"===Be,"caption-vertical-top":"top"===Be,"caption-horizontal-left":"left"===Ue,"caption-horizontal-center":"center"===Ue,"caption-horizontal-right":"right"===Ue}),vt=React.createElement(React.Fragment,null,React.createElement("style",null,bt),React.createElement(r.InspectorAdvancedControls,null,ut),gt,ft,React.createElement("div",{className:i()("dlx-photo-block__caption-wrapper",{"overlay-display-hover":"overlay"===E&&Ze,"overlay-slide-down":"slide-down"===Je,"overlay-slide-up":"slide-up"===Je,"overlay-slide-left":"slide-left"===Je,"overlay-slide-right":"slide-right"===Je})},"overlay"===E&&React.createElement(React.Fragment,null,React.createElement("div",{className:yt,id:se},mt(yt,se))),"overlay"!==E&&React.createElement(React.Fragment,null,mt("",se))));return null===s?null:K?React.createElement(React.Fragment,null,React.createElement("div",le,vt)):null},save:function(){return React.createElement(r.InnerBlocks.Content,null)}});const rc=window.wp.plugins;function ac(e){return ac="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},ac(e)}function ic(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0){var r=cc({},o.content.photoAttributes);return!0===e.imageSizeOverride&&(r.imageSize=e.imageSize),!0===e.mediaLinkOverride&&(r.mediaLinkType=e.mediaLinkType,r.mediaLinkTitle=e.mediaLinkTitle,r.mediaLinkUrl=e.mediaLinkUrl,r.mediaLinkAnchorId=e.mediaLinkAnchorId,r.mediaLinkClass=e.mediaLinkClass,r.mediaLinkTitle=e.mediaLinkTitle,r.mediaLinkRel=e.mediaLinkRel,r.mediaLinkNewTab=e.mediaLinkNewTab,r.lightboxCaption=e.lightboxCaption,r.lightboxEnabled=e.lightboxEnabled,r.lightboxShowCaption=e.lightboxShowCaption),cc(cc({},e),r)}}break;case"dlxplugins/photo-caption-block":if(void 0!==e.globalStyle&&"none"!==e.globalStyle&&""!==e.globalStyle){var a=(0,u.select)(An).getGlobalStyleBySlug(e.globalStyle);if(Object.keys(a).length>0){var i=a.content.captionAttributes;return cc(cc({},e),i)}}}return e}))})()})(); \ No newline at end of file diff --git a/build/index.js.map b/build/index.js.map deleted file mode 100644 index 96410a2..0000000 --- a/build/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;AAAoG;AAChE;AACN;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMK,QAAQ,GAAG,SAAXA,QAAQA,CAAKC,UAAU,EAAwB;EAAA,IAAtBC,YAAY,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAC9C;EACA,IAAKF,UAAU,CAACK,OAAO,CAAE,MAAO,CAAC,KAAK,CAAC,EAAG;IACzC,OAAOL,UAAU;EAClB;;EAEA;EACA,IAAKA,UAAU,CAACK,OAAO,CAAE,MAAO,CAAC,KAAK,CAAC,EAAG;IACzC;IACA,IAAMC,GAAG,GAAGR,8CAAO,CAAEE,UAAW,CAAC,CAACM,GAAG;IACrC,OAAOT,kDAAS,CAAES,GAAG,EAAEL,YAAa,CAAC;EACtC;;EAEA;EACA,IAAKD,UAAU,CAACK,OAAO,CAAE,KAAM,CAAC,KAAK,CAAC,EAAG;IACxC,OAAOR,k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4C,kBAAkB;AAC9D,EAAE;AACF,CAAC,oBAAoB;AACrB;;;;;;;;;;;AClCA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,gBAAgB;AAChB;;AAEA;AACA;;AAEA,kBAAkB,sBAAsB;AACxC;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,KAAK,KAA6B;AAClC;AACA;AACA,GAAG,SAAS,IAA4E;AACxF;AACA,EAAE,iCAAqB,EAAE,mCAAE;AAC3B;AACA,GAAG;AAAA,kGAAC;AACJ,GAAG,KAAK,EAEN;AACF,CAAC;;;;;;;;;;;;AC3DY;;AAEb,sBAAsB,mBAAO,CAAC,sEAAoB;;AAElD,mBAAmB,mBAAO,CAAC,4DAAkB;AAC7C,iBAAiB,mBAAO,CAAC,wDAAgB;;AAEzC,WAAW,mBAAO,CAAC,0CAAM;;AAEzB,WAAW,aAAa;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,WAAW,0CAA0C;AACrD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,GAAG;AACH;AACA,yBAAyB;AACzB,GAAG;AACH;AACA;AACA;;;;;;;;;;;;ACvDa;AACb,8CAA6C,EAAE,aAAa,EAAC;AAC7D,sBAAsB,GAAG,oBAAoB;AAC7C,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kCAAkC;AACzD,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kCAAkC;;;;;;;;;;;;ACtG5C;AACb;AACA;AACA,iDAAiD,OAAO;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,oCAAoC;AACnD;AACA;AACA,CAAC;AACD;AACA;AACA,CAAC;AACD;AACA,0CAA0C,4BAA4B;AACtE,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,EAAE,aAAa,EAAC;AAC7D,cAAc;AACd;AACA;AACA;AACA,+BAA+B,mBAAO,CAAC,kEAAgB;AACvD,iBAAiB,mBAAO,CAAC,sDAAU;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,mBAAO,CAAC,4EAAmB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,WAAW,gBAAgB;AAClE;AACA;AACA;AACA,mCAAmC,WAAW,oBAAoB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACpOa;AACb,8CAA6C,EAAE,aAAa,EAAC;AAC7D,eAAe,GAAG,aAAa,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,GAAG,eAAe,GAAG,iBAAiB,GAAG,YAAY,GAAG,YAAY,GAAG,aAAa,GAAG,mBAAmB;AACxL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,wCAAwC,mBAAmB,KAAK;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,YAAY;AACZ;AACA,YAAY;AACZ;AACA,iBAAiB;AACjB;AACA,eAAe;AACf;AACA,cAAc;AACd;AACA,aAAa;AACb;AACA,WAAW;AACX;AACA,aAAa;AACb;AACA,eAAe;;;;;;;;;;;;ACtDF;AACb;AACA;AACA;AACA;AACA,eAAe,oCAAoC;AACnD;AACA;AACA,CAAC;AACD;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,8CAA6C,EAAE,aAAa,EAAC;AAC7D,kBAAkB;AAClB,uBAAuB,mBAAO,CAAC,kEAAgB;AAC/C,gBAAgB,mBAAO,CAAC,wDAAW;AACnC,aAAa,mBAAO,CAAC,wDAAW;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,kBAAkB;AAClB,kBAAe;;;;;;;;;;;;ACpKF;AACb;AACA;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACD;AACA;AACA,iDAAiD,OAAO;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,EAAE,aAAa,EAAC;AAC7D,iBAAiB,GAAG,mBAAmB,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,iBAAiB,GAAG,cAAc,GAAG,eAAe,GAAG,aAAa,GAAG,eAAe,GAAG,gBAAgB,GAAG,aAAa,GAAG,wBAAwB,GAAG,6BAA6B,GAAG,eAAe,GAAG,YAAY,GAAG,gBAAgB,GAAG,YAAY;AAC5U,uBAAuB,mBAAO,CAAC,kEAAgB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,aAAa;AACjC;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,oBAAoB,WAAW;AAC/B;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,oBAAoB,WAAW;AAC/B;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA,CAAC;AACD,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,WAAW;AAC/B;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA,CAAC;AACD,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA,CAAC;AACD,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA,CAAC;AACD,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA,CAAC;AACD,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,oBAAoB,eAAe;AACnC;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA,CAAC;AACD,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA,CAAC;AACD,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA,CAAC;AACD,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,oBAAoB,WAAW;AAC/B;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA,CAAC;AACD,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD;AACxD,4CAA4C,kCAAkC;AAC9E;AACA;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,kCAAkC;AAC9E;AACA;AACA;AACA;AACA;AACA,4CAA4C,kCAAkC;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,iDAAiD,gCAAgC;AACjF,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACzda;AACb,8CAA6C,EAAE,aAAa,EAAC;AAC7D,eAAe;AACf,qBAAqB,mBAAO,CAAC,gEAAgB;AAC7C,kBAAkB,mBAAO,CAAC,0DAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAkE,iCAAiC;AACnG;AACA;AACA;AACA;AACA;AACA,4DAA4D,8BAA8B;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AC9La;AACb,8CAA6C,EAAE,aAAa,EAAC;AAC7D,kBAAkB,GAAG,+BAA+B,GAAG,wBAAwB,GAAG,qBAAqB;AACvG,mBAAmB,mBAAO,CAAC,0DAAY;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,UAAU;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,kDAAkD,wBAAwB,KAAK;AAChF;AACA;AACA,6CAA6C,uBAAuB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,oCAAoC;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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A;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B,4BAA4B;AAC5B;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B,4BAA4B;AAC5B;AACA;AACA,4BAA4B;AAC5B;;;;;;;;;;;ACxJa;AACb,8CAA6C,EAAE,aAAa,EAAC;AAC7D,eAAe,GAAG,oBAAoB,GAAG,cAAc,GAAG,mBAAmB,GAAG,sBAAsB,GAAG,qBAAqB;AAC9H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;;;;;;;;;;;AC9Ia;AACb,8CAA6C,EAAE,aAAa,EAAC;AAC7D,eAAe,GAAG,iBAAiB,GAAG,eAAe,GAAG,oBAAoB,GAAG,YAAY,GAAG,cAAc;AAC5G,mBAAmB,mBAAO,CAAC,0DAAY;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B,4BAA4B;AAC5B;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA,oBAAoB,2BAA2B;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;;;;;;;;;;;AC9Ja;AACb;AACA,6CAA6C;AAC7C;AACA,8CAA6C,EAAE,aAAa,EAAC;AAC7D,iBAAiB,GAAG,mBAAmB,GAAG,eAAe,GAAG,oBAAoB,GAAG,oBAAoB;AACvG,mBAAmB,mBAAO,CAAC,0DAAY;AACvC,uCAAuC,mBAAO,CAAC,kEAAgB;AAC/D,uBAAuB,mBAAO,CAAC,kEAAgB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,qCAAqC;AACnF;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;;;;;;;;;;AC3Fa;AACb,8CAA6C,EAAE,aAAa,EAAC;AAC7D,0BAA0B,GAAG,0BAA0B,GAAG,eAAe,GAAG,iBAAiB,GAAG,yBAAyB,GAAG,mBAAmB,GAAG,iBAAiB,GAAG,mBAAmB;AACzL,mBAAmB,mBAAO,CAAC,0DAAY;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;;;;;;;;;;;AC7Ha;AACb;AACA,6CAA6C;AAC7C;AACA,8CAA6C,EAAE,aAAa,EAAC;AAC7D,iBAAiB,GAAG,wBAAwB,GAAG,kBAAkB,GAAG,uBAAuB,GAAG,oBAAoB,GAAG,qBAAqB,GAAG,wBAAwB,GAAG,uBAAuB,GAAG,qBAAqB,GAAG,sBAAsB;AAChP,4CAA4C,mBAAO,CAAC,kGAAiC;AACrF,sBAAsB;AACtB,2CAA2C,mBAAO,CAAC,gGAAgC;AACnF,qBAAqB;AACrB,4CAA4C,mBAAO,CAAC,8EAAuB;AAC3E,uBAAuB;AACvB,4BAA4B,mBAAO,CAAC,8EAAuB;AAC3D,oDAAmD,EAAE,qCAAqC,kDAAkD,EAAC;AAC7I,iDAAgD,EAAE,qCAAqC,+CAA+C,EAAC;AACvI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,8BAA8B;AAC/B;AACA;AACA;AACA;AACA;AACA,CAAC,0CAA0C,oBAAoB,KAAK;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;;;;;;;;;;AClLa;AACb;AACA;AACA,8CAA6C,EAAE,aAAa,EAAC;AAC7D,wBAAwB,GAAG,qBAAqB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA,kBAAe;AACf;;;;;;;;;;;AC3Da;AACb;AACA,6CAA6C;AAC7C;AACA,8CAA6C,EAAE,aAAa,EAAC;AAC7D,0BAA0B,GAAG,kBAAkB;AAC/C,uCAAuC,mBAAO,CAAC,wFAA4B;AAC3E,kBAAkB,mBAAO,CAAC,0DAAa;AACvC,uCAAuC,EAAE;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD;AACtD;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AC5Ea;AACb,8CAA6C,EAAE,aAAa,EAAC;AAC7D,kBAAkB,GAAG,uBAAuB,GAAG,kBAAkB,GAAG,cAAc,GAAG,iBAAiB,GAAG,oBAAoB,GAAG,mBAAmB;AACnJ,mBAAmB;AACnB;AACA,gBAAgB;AAChB,eAAe;AACf,gBAAgB;AAChB,cAAc;AACd,cAAc;AACd;AACA;AACA,oBAAoB;AACpB;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wHAAwH;AACxH;AACA,sBAAsB,6BAA6B;AACnD;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,6DAA6D;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,cAAc,yEAAyE;AACvF;AACA;AACA;AACA,uBAAuB;AACvB,gBAAgB;AAChB,eAAe;AACf,iBAAiB;AACjB;AACA;AACA;AACA,cAAc,yEAAyE;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AAmB,GAAG,mBAAmB,GAAG,wBAAwB,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,0BAA0B,GAAG,kBAAkB,GAAG,kBAAkB,GAAG,uBAAuB,GAAG,kBAAkB,GAAG,cAAc,GAAG,iBAAiB,GAAG,cAAc,GAAG,oBAAoB,GAAG,cAAc,GAAG,oBAAoB,GAAG,oBAAoB,GAAG,mBAAmB;AACngB,kBAAkB,mBAAO,CAAC,0DAAa;AACvC,kBAAkB,mBAAO,CAAC,0DAAa;AACvC,kBAAkB,mBAAO,CAAC,0DAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,wCAAwC,mBAAmB,KAAK;AACjE,oFAAoF;AACpF;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,0CAA0C,oBAAoB,KAAK;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,yEAAyE;AAC3F;AACA;AACA;AACA;AACA,kBAAkB,yEAAyE;AAC3F;AACA;AACA,CAAC,0CAA0C,oBAAoB,KAAK;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B,+CAA+C,iBAAiB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B,+CAA+C,iBAAiB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B,+CAA+C,iBAAiB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,kBAAkB,mBAAO,CAAC,0DAAa;AACvC,6CAA4C,EAAE,qCAAqC,iCAAiC,EAAC;AACrH,0CA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AAEb,WAAW,iBAAiB;AAC5B;;;;;;;;;;;ACHA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,EAAE,KAA4D;AAC9D;AACA,MAAM,CAGoD;AAC1D,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iEAAiE;AACjE,iDAAiD;AACjD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,WAAW;AACX;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,OAAO;AACP,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,oBAAoB,gBAAgB,IAAI,SAAS;AACjD;AACA;;AAEA;AACA,kDAAkD;;AAElD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iDAAiD,gBAAgB;AACjE;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;ACvPD;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,EAAE,KAA4D;AAC9D;AACA,MAAM,CAGwD;AAC9D,CAAC;AACD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,4BAA4B,UAAU;AACtC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA,oBAAoB;;AAEpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,0BAA0B;AAC/D;AACA,SAAS;AACT,OAAO;AACP,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iDAAiD,gBAAgB;AACjE;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;ACvLD;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,EAAE,KAA4D;AAC9D;AACA,MAAM,CAGgD;AACtD,CAAC;AACD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,MAAM;AACN;;AAEA,sBAAsB,oBAAoB;AAC1C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,sBAAsB,0BAA0B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,oBAAoB,iBAAiB;AACrC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,sBAAsB;AAC9C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,4EAA4E;AAC5E;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,uBAAuB;AACvC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA,kBAAkB,6BAA6B;AAC/C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oDAAoD,gBAAgB;AACpE;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,sBAAsB,mBAAmB;AACzC;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;;AAEA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,4BAA4B,sBAAsB;AAClD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA,4CAA4C,QAAQ;AACpD;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,4BAA4B,yBAAyB;AACrD,kCAAkC,qBAAqB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,OAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,wBAAwB,sBAAsB;AAC9C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,qBAAqB;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,QAAQ;AACR;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,SAAS;AACT,QAAQ;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA,OAAO;AACP;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA,yBAAyB,eAAe;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS,IAAI;;AAEb;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW;AACX;AACA,KAAK;AACL;;AAEA;AACA,aAAa;AACb;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,8BAA8B;AAC9C;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,oBAAoB;AAC1E;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB;AACrB;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;;AAEA;AACA;AACA;AACA,sEAAsE;AACtE;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,wCAAwC;AACxC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,OAAO;AACP;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,gCAAgC;AAC3D,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,aAAa,WAAW;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,yBAAyB,mCAAmC;AAC5D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,aAAa;AACb;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,WAAW;AACX;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,QAAQ;AAClD;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kDAAkD,QAAQ;AAC1D,OAAO;AACP;;AAEA;AACA;AACA;AACA,0CAA0C,cAAc;AACxD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,0CAA0C,cAAc;AACxD;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,YAAY;AACpD;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,wBAAwB,0BAA0B;AAClD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,sBAAsB,+CAA+C;AACrE;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,4EAA4E;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mDAAmD,QAAQ;AAC3D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA;AACA,8DAA8D,QAAQ;AACtE;;AAEA;AACA;AACA;;AAEA;AACA,4CAA4C,QAAQ;AACpD;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,yCAAyC;;AAEzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB,iBAAiB;AACjB,eAAe;;AAEf;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iDAAiD,gBAAgB;AACjE;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;ACtsHD;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAA4D;AAChE;AACA,UAAU,CAE4D;AACtE,CAAC;AACD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oCAAoC;;AAEpC;AACA;AACA;;AAEA;AACA;AACA,mCAAmC;AACnC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA,qCAAqC,wBAAwB;AAC7D;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C,kBAAkB;AAC7D,SAAS;;AAET;AACA;AACA,6CAA6C,oCAAoC;AACjF,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,6DAA6D;AAC7D;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uCAAuC;;AAEvC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC;;AAErC;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA,uDAAuD;AACvD,uDAAuD;AACvD,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6FAA6F;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;;AAEjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;;AAEjB,qDAAqD;AACrD,yDAAyD;AACzD,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,6FAA6F;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;;AAEjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;;AAEjB,qDAAqD;AACrD,yDAAyD;AACzD,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB,yBAAyB,eAAe,qBAAqB;AAC7D,yBAAyB,eAAe,KAAK;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8DAA8D;;AAE9D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,aAAa;AACb,0CAA0C;AAC1C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;;AAE3C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,iCAAiC;;AAEjC;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,4DAA4D;;AAE5D;AACA;AACA,aAAa;AACb,0CAA0C;AAC1C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,2FAA2F;AAC3F;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,oDAAoD;AACpD;;AAEA;AACA;AACA,+CAA+C;;AAE/C;AACA;AACA,6CAA6C;AAC7C;;AAEA;AACA;AACA,+CAA+C;AAC/C;AACA;;AAEA;AACA;AACA,+CAA+C;AAC/C;;AAEA;AACA;AACA,6CAA6C;AAC7C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,6FAA6F;AAC7F;AACA;AACA;AACA;AACA;AACA,6DAA6D;AAC7D;AACA,4DAA4D;AAC5D;AACA,8DAA8D;AAC9D;AACA,gEAAgE;AAChE;AACA,kEAAkE;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8EAA8E;AAC9E;AACA,4EAA4E;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA;;AAEA;AACA,gCAAgC;AAChC;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;;AAEzB;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yBAAyB;;AAEzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,oCAAoC,iCAAiC;AACrE,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA,qBAAqB;;AAErB;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA,4DAA4D;AAC5D;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA,qBAAqB;;AAErB;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;;AAErB;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;;AAEA;AACA,yDAAyD;AACzD;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;;AAEzB;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA,yDAAyD;AACzD;AACA;AACA,iBAAiB;;AAEjB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,uBAAuB,UAAU;AACjC,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB,aAAa;;AAEnC;AACA,kDAAkD,2BAA2B;AAC7E;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,UAAU;AACV;;AAEA,4BAA4B,oBAAoB;AAChD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;;AAEA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB,kBAAkB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,4BAA4B,0BAA0B;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,wBAAwB,iBAAiB;AACzC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,gCAAgC,sBAAsB;AACtD;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,wBAAwB,sBAAsB;AAC9C;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;;AAEA;AACA,wBAAwB,sBAAsB;AAC9C;;AAEA;AACA;AACA;AACA,iBAAiB;AACjB,cAAc;AACd;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,kFAAkF;AAClF;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,uBAAuB;AAC3C;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA,wBAAwB,6BAA6B;AACrD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,0DAA0D,gBAAgB;;AAE1E;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,sDAAsD,+BAA+B;AACrF;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,4DAA4D,kCAAkC;AAC9F;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,4BAA4B,mBAAmB;AAC/C;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;;AAEA;AACA,aAAa;AACb;AACA;AACA;;AAEA,qFAAqF,QAAQ;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,wCAAwC,sBAAsB;AAC9D;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA,oDAAoD,QAAQ;AAC5D;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,wCAAwC,yBAAyB;AACjE,gDAAgD,qBAAqB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;;AAEA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa;AACb;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,gCAAgC,sBAAsB;AACtD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,qBAAqB;AAC7C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,cAAc;AACd;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB;AACjB,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,iCAAiC,sBAAsB;AACvD,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;;AAErB;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA,8BAA8B,kBAAkB;AAChD;;AAEA;AACA;AACA;;AAEA;AACA,+BAA+B;AAC/B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA,aAAa;;AAEb;AACA;AACA,aAAa;;AAEb;AACA;AACA,aAAa;;AAEb;AACA;AACA,aAAa;;AAEb;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;;AAEb;AACA;AACA,aAAa;;AAEb;AACA;AACA,aAAa;;AAEb;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gDAAgD,wBAAwB,2BAA2B;AACnG;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,uBAAuB;AAC/C;AACA;;AAEA;AACA;;AAEA;AACA,4BAA4B;AAC5B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oDAAoD,IAAI,IAAI;AAC5D,aAAa;AACb;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,cAAc;AACd;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;;AAEA,kCAAkC;AAClC;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,8CAA8C;AAC9C,gDAAgD;AAChD,wCAAwC;AACxC,8CAA8C;AAC9C,0CAA0C;AAC1C,0CAA0C;AAC1C;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA,aAAa;AACb;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,6EAA6E,aAAa;AAC1F;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,sCAAsC;AACtC;AACA,uBAAuB;;AAEvB,gDAAgD;AAChD;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,sCAAsC;;AAEtC;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,wBAAwB,qBAAqB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA,uBAAuB;;AAEvB;AACA;AACA;AACA,gCAAgC;AAChC;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,4BAA4B;;AAE5B;AACA;;AAEA,gDAAgD;AAChD;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,uCAAuC,wBAAwB;AAC/D;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,aAAa;;AAEb;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA,wDAAwD;AACxD;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,iCAAiC,uBAAuB;AACxD,4BAA4B,kBAAkB;AAC9C,4BAA4B,kBAAkB;AAC9C,wBAAwB,cAAc;AACtC;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;;AAEjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;;AAEjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;;AAEjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA2C,oCAAoC;AAC/E,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAkE;AAClE;AACA,kEAAkE;AAClE;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA,6DAA6D;AAC7D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA,kDAAkD,4BAA4B;AAC9E;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;;AAEA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA,yBAAyB;AACzB;AACA,iBAAiB;AACjB,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAyE,oBAAoB;AAC7F,qCAAqC;AACrC,iCAAiC;;AAEjC;AACA;AACA,yBAAyB;;AAEzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA;AACA,kEAAkE,WAAW;AAC7E,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAmE;AACnE,gDAAgD;AAChD;;AAEA;AACA,qFAAqF;AACrF;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA,uEAAuE;AACvE;AACA,uEAAuE;AACvE;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD,yBAAyB;AACzB,qBAAqB;AACrB,iBAAiB;;AAEjB;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE;AACvE;AACA,uEAAuE;AACvE;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB;;AAEzB,kCAAkC,0BAA0B;;AAE5D;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,6BAA6B;AAC7B,gDAAgD,GAAG;;AAEnD;AACA;;AAEA;AACA,8CAA8C,iBAAiB;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kDAAkD;AAClD;AACA,iBAAiB;;AAEjB;AACA,wDAAwD,kCAAkC;;AAE1F;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,gDAAgD,QAAQ;AACxD,iBAAiB;;AAEjB;AACA,sDAAsD,QAAQ;AAC9D,iBAAiB;;AAEjB;AACA,uDAAuD,QAAQ;AAC/D,iBAAiB;;AAEjB;AACA,gEAAgE,4BAA4B;AAC5F,iBAAiB;;AAEjB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B,yBAAyB;;AAEzB;AACA,kCAAkC,yCAAyC;AAC3E;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB,8BAA8B,gDAAgD;AAC9E,iBAAiB;;AAEjB;AACA,8CAA8C,WAAW;AACzD,iBAAiB;;AAEjB;AACA;AACA;AACA,+DAA+D,wBAAwB;AACvF,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;;AAE7B;AACA;;AAEA;AACA;AACA,mEAAmE,wBAAwB;AAC3F,yBAAyB;;AAEzB;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC,iCAAiC;;AAEjC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6EAA6E,oBAAoB;AACjG;AACA,yCAAyC;AACzC,qCAAqC;;AAErC;AACA;;AAEA;AACA;;AAEA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA,8DAA8D,kCAAkC;AAChG;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B,yBAAyB;AACzB,iBAAiB;;AAEjB;AACA,4DAA4D,QAAQ;AACpE,iBAAiB;;AAEjB;AACA,mEAAmE,4BAA4B;AAC/F,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB,mDAAmD,oCAAoC;AACvF,iBAAiB;;AAEjB;AACA,4DAA4D,QAAQ;AACpE,iBAAiB;;AAEjB;AACA,6DAA6D,QAAQ;AACrE,mDAAmD,qBAAqB;AACxE,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;;AAEA;AACA,sDAAsD;AACtD;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,8DAA8D,cAAc;AAC5E;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA,uEAAuE;AACvE;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,gEAAgE,0BAA0B;AAC1F;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;;AAEA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;;AAEA;AACA;AACA,sDAAsD,aAAa;AACnE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;;AAEA;AACA;AACA,0DAA0D,gBAAgB;AAC1E;AACA,aAAa;;AAEb;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D,yBAAyB;AACtF;AACA;AACA;AACA,6BAA6B;AAC7B,yBAAyB;AACzB;AACA,qBAAqB;;AAErB;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,GAAG;AACnD,sBAAsB;AACtB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA,0DAA0D,aAAa;;AAEvE,2CAA2C,iDAAiD;AAC5F,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B,+CAA+C;AACzE;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA,8BAA8B,yCAAyC;AACvE;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mEAAmE,0BAA0B;AAC7F;AACA,iEAAiE,yBAAyB;;AAE1F;AACA,6BAA6B;AAC7B;AACA;AACA;AACA,aAAa;;AAEb;AACA,sDAAsD,aAAa;AACnE,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,aAAa;AAC3D,iBAAiB;AACjB,aAAa;;AAEb;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,kDAAkD,iCAAiC;;AAEnF;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,aAAa;;AAErE;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,6BAA6B;AAC7B;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA,yDAAyD,aAAa;AACtE;AACA;;AAEA;AACA;AACA;AACA;AACA,kDAAkD,gBAAgB;AAClE;AACA,iBAAiB;AACjB,aAAa;;AAEb;AACA;AACA;AACA,yDAAyD,aAAa;AACtE;AACA;;AAEA;AACA;AACA;AACA;AACA,yDAAyD,aAAa;AACtE;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,gBAAgB;AACtE;AACA,qBAAqB;AACrB,wCAAwC;AACxC,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,8BAA8B;AACzD;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,8BAA8B;AACzD,aAAa;;AAEb;AACA,SAAS;;AAET;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAyB,0BAA0B;AACnD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,wDAAwD,UAAU,YAAY;AAC9E,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iCAAiC,sBAAsB,kBAAkB;AACzE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,wDAAwD,UAAU,YAAY;AAC9E,SAAS;AACT;AACA;AACA;AACA;AACA,2BAA2B,8BAA8B;AACzD;AACA;AACA,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B,YAAY;AAC3C,+BAA+B,YAAY;AAC3C,4BAA4B,YAAY;AACxC,6BAA6B,YAAY;AACzC,qCAAqC,YAAY;AACjD,qCAAqC,YAAY;AACjD,sCAAsC,YAAY;AAClD,iCAAiC,8CAA8C;AAC/E,oCAAoC,iDAAiD;AACrF,uCAAuC,wCAAwC;AAC/E,gBAAgB,0CAA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,8BAA8B;AACzD,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC;AACA,SAAS,IAAI;AACb;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,mDAAmD,WAAW;AAC9D,aAAa;;AAEb;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,8EAA8E,QAAQ;;AAEtF;AACA,kFAAkF,QAAQ;;AAE1F;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,4CAA4C;;AAE5D;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,0CAA0C;AAC3F,iBAAiB;AACjB,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,wDAAwD,UAAU,YAAY;AAC9E,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,0EAA0E,cAAc;;AAExF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,wDAAwD,UAAU,YAAY;AAC9E,SAAS;AACT;AACA;AACA,KAAK;;AAEL,+BAA+B;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA,qBAAqB;;AAErB;AACA,iBAAiB;AACjB,aAAa;;AAEb;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA,qBAAqB;;AAErB;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;;AAET;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,cAAc;AACtE;;AAEA;AACA;AACA;;AAEA;AACA;AACA,gDAAgD,cAAc;AAC9D;;AAEA;AACA,4EAA4E,oBAAoB;;AAEhG;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,6CAA6C,oCAAoC;;AAEjF;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iDAAiD,oCAAoC;AACrF;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iDAAiD,oCAAoC;;AAErF;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B,4CAA4C;AACtE;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,iBAAiB;AAC7D,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,8BAA8B;AACzD,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gCAAgC,WAAW;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6BAA6B,YAAY;AACzC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,4CAA4C,QAAQ;;AAEpD;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;;AAEjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,OAAO;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA,qCAAqC,2BAA2B;;AAEhE;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,4CAA4C;AAC9D;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA,sBAAsB;AACtB;AACA,sBAAsB;AACtB;AACA,sBAAsB;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,4CAA4C;;AAE9D;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB,8CAA8C;AACpE,SAAS;AACT,8BAA8B,sBAAsB,2CAA2C;AAC/F;AACA;AACA,sBAAsB,iDAAiD;AACvE,SAAS;AACT,yBAAyB,YAAY;AACrC,yBAAyB,sBAAsB,qCAAqC;AACpF,2BAA2B,sBAAsB,2CAA2C;;AAE5F;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;AACA,2BAA2B,8BAA8B;AACzD;AACA;AACA,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,8BAA8B;AACzD,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA,sBAAsB,YAAY;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB,4CAA4C;AAC9D;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,aAAa;;AAEb;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA,oCAAoC;AACpC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA,yBAAyB;;AAEzB;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uDAAuD;AACvD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wCAAwC;AACxC,0CAA0C;AAC1C,wCAAwC;AACxC,wCAAwC;AACxC,wCAAwC;AACxC,8CAA8C;AAC9C;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,wCAAwC;AACxC,kDAAkD;AAClD,wCAAwC;AACxC,8CAA8C;AAC9C;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb,wCAAwC;AACxC;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;AACA,iDAAiD,kBAAkB;AACnE;;AAEA;AACA,4EAA4E,oBAAoB;;AAEhG;AACA;AACA,4DAA4D;AAC5D;;AAEA;AACA,wFAAwF;;AAExF;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kEAAkE,gBAAgB;AAClF;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,4CAA4C;;AAE9D;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gCAAgC,aAAa;AAC7C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,UAAU;AACV;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,aAAa;;AAEb;AACA,4CAA4C;;AAE5C;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA,mCAAmC;AACnC;AACA,2BAA2B;AAC3B;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB;AACA;AACA,qBAAqB;;AAErB,uDAAuD,yBAAyB;AAChF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;;AAEjB,4CAA4C,oBAAoB;;AAEhE,gDAAgD,oBAAoB;AACpE;;AAEA;AACA,kDAAkD,oBAAoB;AACtE;;AAEA;AACA,4CAA4C,oBAAoB;AAChE,aAAa;;AAEb;AACA,gDAAgD,oBAAoB;AACpE;;AAEA;;AAEA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,6BAA6B;AAC7B,yBAAyB;AACzB,qBAAqB;AACrB;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,yBAAyB;AAChF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,yDAAyD;AACzD;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,wCAAwC,yBAAyB;;AAEjE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA,iCAAiC,mBAAmB;;AAEpD;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,+DAA+D;AAC/D;;AAEA;AACA,mDAAmD;AACnD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,yCAAyC,eAAe;AACxD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;;AAEjB,iCAAiC;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA,6BAA6B;AAC7B;AACA,qBAAqB;AACrB,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;AACA,mDAAmD,kBAAkB;AACrE;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb;;AAEA;AACA;AACA;AACA,4BAA4B,kCAAkC,KAAK,sBAAsB;AACzF;AACA;AACA,qBAAqB;AACrB;AACA,aAAa;AACb;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0DAA0D,aAAa,cAAc;;AAErF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wDAAwD;AACxD,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA,aAAa;AACb;;AAEA;AACA,cAAc;;AAEd;AACA,cAAc;;AAEd;AACA,cAAc;;AAEd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;;AAEA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA,yDAAyD,4BAA4B;AACrF,iBAAiB;;AAEjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oDAAoD,kBAAkB;AACtE,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,kBAAkB;;AAElB;AACA,kBAAkB;;AAElB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA,aAAa,IAAI;;AAEjB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA,qBAAqB;;AAErB;AACA;AACA,qBAAqB;;AAErB;AACA;AACA,qBAAqB;;AAErB;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,4CAA4C;;AAE5C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,6BAA6B,IAAI;AACjC,+BAA+B;AAC/B;AACA;AACA,mCAAmC,YAAY;AAC/C;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA,uDAAuD;AACvD;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,8CAA8C;AAC9C,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA,yCAAyC;AACzC,6CAA6C;AAC7C,6CAA6C;;AAE7C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;;AAEb;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;;AAEA;A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BAAsB;AACzC;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qDAAqD;AACrD,GAAG;AACH,gDAAgD;AAChD,GAAG;AACH,sDAAsD;AACtD,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAW,mBAAO,CAAC,4DAAe;AAClC,aAAa,mBAAO,CAAC,8CAAQ;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,+BAA+B,kBAAkB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACtWa;;AAEb,mBAAmB,mBAAO,CAAC,4DAAe;;AAE1C;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACfa;;AAEb,sBAAsB,mBAAO,CAAC,sEAAoB;;AAElD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,UAAU;AACnD,GAAG;AACH;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACrBa;;AAEb;AACA;AACA;;AAEA;;AAEA;AACA,UAAU,iBAAiB,yBAAyB,kBAAkB;AACtE;;;;;;;;;;;;ACVa;;AAEb;AACA,oBAAoB,mBAAO,CAAC,oDAAS;;AAErC;AACA,yCAAyC;AACzC,qCAAqC;AACrC,8CAA8C;AAC9C,0CAA0C;;AAE1C;AACA;;;;;;;;;;;;ACZa;;AAEb;AACA;AACA,2FAA2F;AAC3F,4CAA4C;;AAE5C;AACA;AACA;AACA,gCAAgC;;AAEhC,kEAAkE;AAClE,qEAAqE;;AAErE;AACA,iCAAiC;AACjC;AACA,uCAAuC;;AAEvC,2DAA2D;AAC3D,+DAA+D;;AAE/D;AACA;AACA,oBAAoB,gBAAgB;AACpC,2EAA2E;;AAE3E,yGAAyG;;AAEzG;AACA,6CAA6C;;AAE7C,8DAA8D;;AAE9D;AACA;AACA,uEAAuE;AACvE;;AAEA;AACA;;;;;;;;;;;;ACzCa;;AAEb;AACA;AACA,WAAW,mBAAO,CAAC,4DAAe;;AAElC,WAAW,aAAa;AACxB;;;;;;;;;;;;ACPa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,8HAA8H;;AAE9H;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;;AAGH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;ACrEa;;AAEb,eAAe,mBAAO,CAAC,gEAAc;AACrC,+BAA+B,mBAAO,CAAC,kGAA+B;AACtE,+BAA+B,mBAAO,CAAC,sGAAiC;AACxE,+BAA+B,mBAAO,CAAC,oGAAgC;;AAEvE;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACZA;AACA;AACA;AACA;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,IAAI;;AAEP;;;;;;;;;;;;AChFa;AACb;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;ACPa;AACb,mBAAmB,0FAA6B;AAChD,mBAAmB,4FAAgC;AACnD,+BAA+B,mBAAO,CAAC,8FAA2B;AAClE,+BAA+B,mBAAO,CAAC,kGAA6B;AACpE,cAAc,mBAAO,CAAC,0DAAS;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7Ea;AACb,cAAc,mBAAO,CAAC,0DAAS;;AAE/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,cAAc,8BAA8B;AAC5C;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjCa;AACb,qCAAqC,mBAAO,CAAC,8GAAmC;AAChF,+BAA+B,mBAAO,CAAC,gGAA4B;;AAEnE;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;;;;;;;;;;;ACfa;AACb;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;ACPa;AACb,kBAAkB,mBAAO,CAAC,kEAAkB;AAC5C,cAAc,mBAAO,CAAC,oBAAO;AAC7B,yBAAyB,mBAAO,CAAC,oGAA8B;;AAE/D;AACA;AACA,qCAAqC;AACrC;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;ACpGa;AACb;AACA;AACA;AACA;AACA,eAAe,oCAAoC;AACnD;AACA;AACA,CAAC;AACD;AACA;AACA,CAAC;AACD;AACA,0CAA0C,4BAA4B;AACtE,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,EAAE,aAAa,EAAC;AAC7D,cAAc;AACd,kCAAkC,mBAAO,CAAC,mEAAgB;AAC1D,kBAAkB,mBAAO,CAAC,qEAAwB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sGAAsG;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,WAAW;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,cAAc;AACd;;;;;;;;;;;ACrgBa;AACb,8CAA6C,EAAE,aAAa,EAAC;AAC7D,iBAAiB;AACjB,kBAAkB,mBAAO,CAAC,qEAAwB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,8BAA8B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,sBAAsB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,oCAAoC,iBAAiB,KAAK;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA,wBAAwB,gBAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,kBAAe;AACf;;;;;;;;;;;ACz6Ba;AACb;AACA;AACA;AACA;AACA,eAAe,oCAAoC;AACnD;AACA;AACA,CAAC;AACD;AACA;AACA,CAAC;AACD;AACA,0CAA0C,4BAA4B;AACtE,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA,8CAA6C,EAAE,aAAa,EAAC;AAC7D,gBAAgB,GAAG,iBAAiB,GAAG,eAAe,GAAG,mBAAmB,GAAG,iBAAiB,GAAG,uBAAuB,GAAG,gBAAgB,GAAG,qBAAqB,GAAG,sBAAsB,GAAG,kBAAkB,GAAG,cAAc;AACpO,kBAAkB,mBAAO,CAAC,6DAAa;AACvC,kBAAkB,mBAAO,CAAC,6DAAa;AACvC,0CAAyC,EAAE,qCAAqC,8BAA8B,EAAC;AAC/G,mBAAmB,mBAAO,CAAC,0DAAY;AACvC,mBAAmB,mBAAO,CAAC,0DAAY;AACvC,8CAA6C,EAAE,qCAAqC,mCAAmC,EAAC;AACxH;AACA,kDAAiD,EAAE,qCAAqC,mCAAmC,EAAC;AAC5H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB,qBAAqB,mBAAO,CAAC,mEAAgB;AAC7C,6CAA4C,EAAE,qCAAqC,mDAAmD,EAAC;AACvI;AACA;AACA;AACA;AACA,mBAAmB,gBAAgB,mBAAO,CAAC,kEAAgB;AAC3D,iBAAiB,mBAAO,CAAC,sDAAU;AACnC,iBAAiB,mBAAO,CAAC,sDAAU;AACnC,2CAA0C,EAAE,qCAAqC,8BAA8B,EAAC;AAChH,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA,iBAAiB;AACjB,gBAAgB,gBAAgB,mBAAO,CAAC,sDAAU;AAClD;;;;;;;;;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,EAAE;AACjD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,yCAAyC,GAAG;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB,qBAAM,gBAAgB,qBAAM,IAAI,qBAAM,sBAAsB,qBAAM;;AAE1F;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,WAAW,SAAS;AACpB;AACA,aAAa,GAAG;AAChB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,UAAU;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,aAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,eAAe;AAC1B,YAAY,QAAQ;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;;;;;;;;ACtlBA;AACA;AACA;AACA;AACA;AACA;;AAEkD;AACK;AACH;;AAEpD;AACA,oBAAoB,iDAAU;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,aAAa,oDAAa;AAC1B;AACA;AACA;AACA,aAAa,6DAAiB;AAC9B;AACA;AACA;AACA;AACA,0CAA0C,iEAAW,WAAW;AAChE;AACA,SAAS;AACT;AACA,4CAA4C,oDAAa;AACzD;AACA;AACA;AACA;AACA;AACA,6BAA6B,SAAS;AACtC;AACA;;AAEuC;AACvC;;;;;;;;;;;;;;;;AC9CA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEwC;AACxC;;;;;;;;;;;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA;;AAEsD;;AAEtD,sBAAsB,gEAAgB;AACtC,eAAe,0CAA0C;AACzD,aAAa,oCAAoC;AACjD,aAAa,6CAA6C;AAC1D,aAAa,iDAAiD;AAC9D,aAAa,kDAAkD;AAC/D;;AAEoC;AACpC;;;;;;;;;;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;;AAEsD;;AAEtD,oBAAoB,gEAAgB;AACpC,aAAa,oDAAoD;AACjE,aAAa,sDAAsD;AACnE,aAAa,sDAAsD;AACnE;;AAEkC;AAClC;;;;;;;;;;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;;AAEsD;;AAEtD,kBAAkB,gEAAgB;AAClC,aAAa,o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;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;;AAEa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,QAAQ;AAC1B;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH,kCAAkC;AAClC;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iBAAiB,sBAAsB;AACvC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,EAAE;AACvC;AACA,yDAAyD;AACzD;AACA;AACA;AACA,2GAA2G,EAAE;AAC7G;AACA;AACA;AACA;;AAEA,kBAAkB,mBAAO,CAAC,6BAAgB;AAC1C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wCAAwC;AACxC;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uDAAuD;AACvD;AACA;AACA,kGAAkG,gCAAgC;AAClI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,kBAAkB;AAC1C;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,uGAAuG;AAC7H;AACA,kCAAkC;AAClC,kBAAkB,uDAAuD;AACzE;AACA;AACA;AACA,sCAAsC,yBAAyB;AAC/D,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,iBAAiB;AACnC;AACA,gBAAgB,qBAAM;AACtB,kBAAkB,qBAAqB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,gBAAgB;AAC/C;AACA,2BAA2B,iCAAiC;AAC5D;AACA,wBAAwB,8BAA8B;AACtD;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iDAAiD;AACjD;;AAEA,wBAAwB;AACxB,uBAAuB;AACvB,yBAAyB;AACzB,wBAAwB;AACxB,yBAAyB;AACzB,yBAAyB;AACzB,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA,iEAAiE;AACjE;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kBAAkB;AAClB;AACA,aAAa;AACb;AACA;;AAEA;AACA,sBAAsB;AACtB,mCAAmC,OAAO;AAC1C,2BAA2B;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,iCAAiC;AACjC,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,qCAAqC;AACrC,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,iCAAiC;AACjC,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,qCAAqC;AACrC,MAAM;AACN;AACA;;AAEA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,aAAa;AACb;AACA;;AAEA;AACA;AACA;;AAEA;AACA,sBAAsB,GAAG;AACzB;;AAEA;AACA;AACA,oCAAoC,sBAAsB;AAC1D;;AAEA;AACA,oBAAoB,eAAe;AACnC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wBAAwB,gBAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;;AAEA,2BAA2B;AAC3B,8BAA8B,YAAY;AAC1C,wEAAwE,YAAY;AACpF;AACA;AACA,sBAAsB;AACtB,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC3gBA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb;;AAEA,IAAI,IAAqC;AACzC,6BAA6B,mBAAO,CAAC,yFAA4B;AACjE;AACA,YAAY,mBAAO,CAAC,uDAAW;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,YAAY;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,WAAW;AACtB;AACA;AACA;AACA,MAAM,IAAqC;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6GAA6G;AAC7G;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,IAAqC;AAC3C;AACA;AACA;;AAEA;;;;;;;;;;;;ACtGA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,cAAc,mBAAO,CAAC,0EAAU;AAChC,aAAa,mBAAO,CAAC,4DAAe;;AAEpC,2BAA2B,mBAAO,CAAC,yFAA4B;AAC/D,UAAU,mBAAO,CAAC,uDAAW;AAC7B,qBAAqB,mBAAO,CAAC,qEAAkB;;AAE/C;;AAEA,IAAI,IAAqC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA2C;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,8BAA8B;AAC9B,QAAQ;AACR;AACA;AACA;AACA;AACA,+BAA+B,KAAK;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,4BAA4B;AAC5B,OAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,SAAS,KAAqC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,sBAAsB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,IAAqC;AAC/C;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB,2BAA2B;AACjD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM,KAAqC,4FAA4F,CAAM;AAC7I;AACA;;AAEA,oBAAoB,gCAAgC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB,gCAAgC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iHAAiH;AACjH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;ACjmBA;AACA;AACA;AACA;AACA;AACA;;AAEA,IAAI,IAAqC;AACzC,gBAAgB,mBAAO,CAAC,0EAAU;;AAElC;AACA;AACA;AACA,mBAAmB,mBAAO,CAAC,uFAA2B;AACtD,EAAE,KAAK,EAIN;;;;;;;;;;;;AClBD;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb;;AAEA;;;;;;;;;;;ACXA;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;;;AAIb,IAAI,IAAqC;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA2E;AAC3E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;;AAEjD;AACA;AACA;AACA,kDAAkD;;AAElD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB;AACjB,sBAAsB;AACtB,uBAAuB;AACvB,uBAAuB;AACvB,eAAe;AACf,kBAAkB;AAClB,gBAAgB;AAChB,YAAY;AACZ,YAAY;AACZ,cAAc;AACd,gBAAgB;AAChB,kBAAkB;AAClB,gBAAgB;AAChB,mBAAmB;AACnB,wBAAwB;AACxB,yBAAyB;AACzB,yBAAyB;AACzB,iBAAiB;AACjB,oBAAoB;AACpB,kBAAkB;AAClB,cAAc;AACd,cAAc;AACd,gBAAgB;AAChB,kBAAkB;AAClB,oBAAoB;AACpB,kBAAkB;AAClB,0BAA0B;AAC1B,cAAc;AACd,GAAG;AACH;;;;;;;;;;;;ACpLa;;AAEb,IAAI,KAAqC,EAAE,EAE1C,CAAC;AACF,EAAE,wJAAyD;AAC3D;;;;;;;;;;;;ACNa;;AAEb;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;;;;;;;;;;;ACtBa;;AAEb,gBAAgB,mBAAO,CAAC,uDAAa;AACrC,YAAY,mBAAO,CAAC,+CAAS;AAC7B,cAAc,mBAAO,CAAC,mDAAW;;AAEjC;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACVa;;AAEb,YAAY,mBAAO,CAAC,+CAAS;;AAE7B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC;AAChC;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yCAAyC,+BAA+B;;AAExE;AACA,wCAAwC;;AAExC;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;;AAEA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;;AAEA,gBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,mCAAmC,QAAQ;AAC3C;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,wBAAwB;AACxB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;ACtQa;;AAEb,qBAAqB,mBAAO,CAAC,0DAAc;AAC3C,YAAY,mBAAO,CAAC,+CAAS;AAC7B,cAAc,mBAAO,CAAC,mDAAW;AACjC;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,gEAAgE;AACrF,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA,oBAAoB,oBAAoB;AACxC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oBAAoB,oBAAoB;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,2CAA2C;AAC3C;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;AC/Ta;;AAEb,cAAc,mBAAO,CAAC,mDAAW;;AAEjC;AACA;;AAEA;AACA;AACA,oBAAoB,SAAS;AAC7B;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;;AAEA,4BAA4B,gBAAgB;AAC5C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,cAAc;AACd;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,iDAAiD,EAAE;AACnD;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA,kDAAkD,EAAE;AACpD;AACA,SAAS;AACT;;AAEA;AACA,oBAAoB,mBAAmB;AAC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AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,oCAAoC;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;;AAEA;;AAEA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,GAAG;AACH;AACA;AACA;AACA;;AAEA,oCAAoC;;AAEpC;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;;AAEH;AACA,CAAC;;;;;;;;;;;;;ACtLD;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB,YAAY,eAAe;AAC3B;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qCAAqC,IAAI,MAAM,IAAI,MAAM,IAAI,0BAA0B,GAAG;;AAE1F;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACvDa;;AAEb,mBAAmB,mBAAO,CAAC,4DAAe;AAC1C,aAAa,mBAAO,CAAC,0EAAsB;AAC3C,qBAAqB,mBAAO,CAAC,kFAA0B;AACvD,WAAW,mBAAO,CAAC,0CAAM;;AAEzB,iBAAiB,mBAAO,CAAC,wDAAgB;AACzC;;AAEA,cAAc,iCAAiC;;AAE/C,WAAW,sEAAsE;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,uBAAuB;AAC5C,IAAI;AACJ,qBAAqB,uBAAuB;AAC5C;AACA;AACA;AACA;;;;;;;;;;;;AC3Ca;;AAEb,mBAAmB,mBAAO,CAAC,4DAAe;AAC1C,gBAAgB,mBAAO,CAAC,kEAAqB;AAC7C,cAAc,mBAAO,CAAC,8DAAgB;;AAEtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC,6BAA6B,6BAA6B;AAC1D;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,wBAAwB;AACxB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL,cAAc;AACd;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC3HA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;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;AACA;AACA;AACA;AACA;AACA,8BAA8B,6DAAY;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM,2DAAM;AACZ;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;;AAEP;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,2DAAU,oBAAoB,2DAAU;;AAEzD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,2DAAU,kBAAkB,2DAAU;;AAEvD;AACA;AACA;;AAEA;AACA;AACA;AACA,kDAAkD,iEAAoB;AACtE;AACA;AACA;AACA,iBAAiB,2DAAU;AAC3B;AACA,2CAA2C,2DAAU,aAAa,2DAAU;AAC5E;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO,0DAAQ;AACf,uBAAuB,iDAAK;;AAE5B,uDAAuD,uEAAe;AACtE;AACA,4EAA4E,4DAAO;;AAEnF;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM,iDAAK;AACX;AACA,OAAO;AACP;;AAEA;AACA,SAAS,iDAAK;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,iEAAa;AACzD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,sEAAa;;AAElC,oBAAoB,0DAAQ;AAC5B,iBAAiB,2DAAU,2CAA2C,2DAAU;AAChF;AACA;;;AAGA;AACA;AACA,GAAG;AACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACnQY;;AAEkB;AACM;AACD;AACY;AACL;AACc;AACH;AACJ;AACN;AACN;AACW;AACH;A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AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA,iEAAe,WAAW,EAAC;;;;;;;;;;;;;;;;;;ACxHd;;AAEkC;AACf;;AAEhC;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB;AACA,aAAa,eAAe;AAC5B;AACA;AACA;AACA,EAAE,2DAAU,oDAAoD,2DAAU;AAC1E;AACA;;AAEA,iDAAK,yBAAyB,2DAAU;AACxC;AACA,CAAC;;AAED,iEAAe,aAAa,EAAC;;;;;;;;;;;;;;;;ACxBhB;;AAEE;AACf;AACA;;;;;;;;;;;;;;;;;;;;;;;;ACJa;;AAEqB;AACY;AACW;AACN;AACR;AACI;AACC;AACH;;AAE7C,mBAAmB,6DAAS;;AAE5B;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA,mBAAmB,8DAAkB;AACrC,oBAAoB,8DAAkB;AACtC;AACA;;AAEA;AACA;AACA;AACA,aAAa,eAAe;AAC5B,aAAa,SAAS;AACtB;AACA,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA,oEAAoE;;AAEpE;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA,aAAa,2DAAW;;AAExB,WAAW,yCAAyC;;AAEpD;AACA,MAAM,6DAAS;AACf;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,UAAU,iDAAK;AACf;AACA;AACA;AACA,QAAQ;AACR,QAAQ,6DAAS;AACjB;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA,oCAAoC,iDAAK;AACzC;AACA;AACA;;AAEA,eAAe,iDAAK;AACpB;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,wDAAY;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,qBAAqB,2DAAe;AACpC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,2DAAe;AAC/B,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,aAAa,2DAAW;AACxB,qBAAqB,6DAAa;AAClC,WAAW,gEAAQ;AACnB;AACA;;AAEA;AACA,iDAAK;AACL;AACA;AACA,wBAAwB,2DAAW,aAAa;AAChD;AACA;AACA,yBAAyB;AACzB,KAAK;AACL;AACA,CAAC;;AAED,iDAAK;AACL;;AAEA;AACA;AACA,0BAA0B,2DAAW,aAAa;AAClD;AACA;AACA;AACA,UAAU,IAAI;AACd;AACA;AACA,OAAO;AACP;AACA;;AAEA;;AAEA;AACA,CAAC;;AAED,iEAAe,KAAK,EAAC;;;;;;;;;;;;;;;;;AChOR;;AAEmB;;AAEhC;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iDAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,iDAAK;AACnB;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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A;AACA;AACA;;AAEA,QAAQ,iDAAK;AACb;AACA,MAAM;AACN;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,IAAI,iDAAK;AACT,kBAAkB,iDAAK;;AAEvB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,IAAI,iDAAK;AACT,sEAAsE,iDAAK;AAC3E,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,IAAI,iDAAK;;AAET;AACA;AACA;;AAEA;;AAEA;AACA,iDAAK,6CAA6C,MAAM;AACxD,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,iDAAK;;AAEL,iEAAe,YAAY,EAAC;;;;;;;;;;;;;;;;;ACzSf;;AAEqB;;AAElC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,UAAU;AACvB,aAAa,UAAU;AACvB;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,UAAU;AACvB;AACA,eAAe;AACf;AACA;AACA,IAAI,iDAAK;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA,iEAAe,kBAAkB,EAAC;;;;;;;;;;;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;AACA;AACA,SAAS,iDAAK;AACd;AACA;AACA;;AAEA;AACA;AACA,SAAS,iDAAK;AACd;AACA,MAAM,UAAU,iDAAK;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAE,iDAAK,qCAAqC;AAC5C;AACA;AACA,KAAK,iDAAK;AACV,GAAG;;AAEH;AACA;;;;;;;;;;;;;;;;;ACzGa;;AAE4B;;AAEzC;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACe;AACf;AACA;AACA;AACA,IAAI;AACJ,eAAe,sDAAU;AACzB;AACA,OAAO,sDAAU,kBAAkB,sDAAU;AAC7C;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;AC1Ba;;AAEqB;AACU;AACO;;AAEnD;AACA;AACA;AACA,WAAW,gBAAgB;AAC3B,WAAW,SAAS;AACpB;AACA,aAAa,GAAG;AAChB;AACe;AACf,yBAAyB,0DAAQ;AACjC;AACA,kBAAkB,6DAAY;AAC9B;;AAEA,EAAE,iDAAK;AACP;AACA,GAAG;;AAEH;;AAEA;AACA;;;;;;;;;;;;;;;;;;;;;;;AC3Ba;;AAEmB;AACe;AACM;AACH;AACY;AAClB;AACc;;AAE1D;AACA;AACA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,UAAU;AACrB,WAAW,UAAU;AACrB;AACA,aAAa,QAAQ;AACrB;AACA;AACA,MAAM,iDAAK;AACX;AACA;AACA,aAAa,iDAAK;AAClB,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,gBAAgB,wDAAoB;;AAEpC;;AAEA;AACA;AAC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;;AAEA,YAAY,0DAAU;AACtB;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA,GAAG;AACH;;AAEA,iEAAe,oBAAoB,EAAC;;;;;;;;;;;;;;;;ACzDpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED,iEAAe,cAAc,EAAC;;;;;;;;;;;;;;;;ACtEjB;;AAEE;AACf;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACNa;;AAEmB;AACsC;;AAEtE;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,SAAS;AACpB;AACA,aAAa,QAAQ;AACrB;AACe;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ,uBAAuB,iDAAK;AAC5B;AACA,UAAU,wEAAoB;AAC9B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;AC9Da;;AAEb;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACe;AACf;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACdkC;AACU;;AAE5C,iEAAe,0DAAQ;;AAEvB;AACA;AACA;AACA;;AAEA,MAAM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;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,gBAAgB;AAChB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,gBAAgB,SAAS;AACzB;AACA;AACA,sBAAsB,iDAAK;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG,GAAG,EAAC;;;;;;;;;;;;;;;;AClEP;AACA,iEAAe,IAAI,EAAC;;;;;;;;;;;;;;;;;ACDP;;AAEqB;;AAElC;AACA;AACA,0BAA0B,iDAAK;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA,iEAAe;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA,CAAC,EAAC;;;;;;;;;;;;;;;;ACtDW;;AAEE;AACf,0BAA0B,KAAK;AAC/B;AACA;;;;;;;;;;;;;;;;ACLa;;AAEb;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,iEAAe,WAAW,EAAC;;;;;;;;;;;;;;;;ACtDd;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;A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AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;;AAGA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,UAAU;AACrB;AACA,WAAW,SAAS;AACpB,aAAa;AACb;AACA,2BAA2B,oBAAoB,IAAI;AACnD;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gCAAgC,OAAO;AACvC;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS,GAAG,SAAS;AAC5C,4BAA4B;AAC5B;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA,SAAS,UAAU;AACnB;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,kCAAkC;AAClC,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA,wCAAwC,OAAO;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA,gCAAgC,WAAW,IAAI;AAC/C;AACA;AACA,eAAe,4DAAI;AACnB,MAAM;AACN;AACA;AACA,GAAG,GAAG,WAAW;AACjB;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,kBAAkB;AAC7B,WAAW,UAAU;AACrB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,WAAW,kBAAkB;AAC7B,WAAW,UAAU;AACrB;AACA,aAAa;AACb;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B,eAAe;;AAEzC;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS,QAAQ;AACjB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,iEAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;ACltBwB;;AAE1B;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,gDAAmB;AAC3C;AACA,iNAAiN,mBAAmB;AACpO;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,YAAY;AAClC,yBAAyB,+BAA+B;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,WAAW,oBAAoB;AAC5C,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA,6BAA6B,6CAAgB;AAC7C;AACA,0KAA0K,qBAAqB;AAC/L;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,YAAY;AAClC,yBAAyB,+BAA+B;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,WAAW,oBAAoB;AAC5C,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA,YAAY,oBAAoB;AAChC,YAAY,gDAAmB,6BAA6B,aAAa;AACzE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;;AAEA;;AAEA;AACA;AACA,YAAY,qBAAqB;AACjC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,yCAAY;AAC/B;AACA,IAAI,4CAAe;AACnB;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAmE;AACnE;AACA;AACA;AACA;AACA,aAAa,kCAAkC;AAC/C;AACA;AACA,OAAO;AACP,aAAa,cAAc;AAC3B;AACA,MAAM;AACN;AACA;AACA;AACA,uBAAuB,uBAAuB;AAC9C,iBAAiB,0BAA0B;AAC3C,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,mDAAmD;AAC/D,yCAAyC,2CAAc;AACvD,qBAAqB,yCAAY;AACjC,iCAAiC,yCAAY;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,kBAAkB,yCAAY;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;AACL,IAAI,4CAAe;AACnB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,YAAY,kEAAkE;AAC9E,kBAAkB,yCAAY;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL,iCAAiC,2CAAc;AAC/C,IAAI,4CAAe;AACnB;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA,aAAa,+BAA+B;AAC5C;AACA;AACA,iBAAiB,UAAU,aAAa,YAAY;AACpD,aAAa,kCAAkC;AAC/C,aAAa,yCAAyC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,oDAAoD;AAChE;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL,2BAA2B,yCAAY;AACvC;AACA;AACA,KAAK;AACL,IAAI,4CAAe;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,sBAAsB,8CAAiB;AACvC;AACA;AACA;AACA,iBAAiB;AACjB;AACA,aAAa;AACb,oBAAoB,8CAAiB;AACrC;AACA;AACA;AACA,iBAAiB;AACjB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA,8CAA8C;AAC9C;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,UAAU;AACvB;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA,mBAAmB,GAAG,SAAS,8BAA8B,yBAAyB;AACtF;AACA;AACA,2BAA2B,UAAU;AACrC,yBAAyB,QAAQ;AACjC,wBAAwB,OAAO;AAC/B,sBAAsB,KAAK;AAC3B;AACA,mBAAmB,yCAAyC;AAC5D,mBAAmB,sCAAsC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,4EAA4E;AAC5E;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,kDAAkD;AAClD;AACA,WAAW,KAAK,GAAG,6DAA6D;AAChF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAY,gHAAgH;AAC5H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,iBAAiB;AACjC,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,+BAA+B;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sFAAsF;AACtF;AACA;AACA;AACA;AACA,aAAa,4DAA4D;AACzE;AACA;AACA;AACA,MAAM;AACN,aAAa,iBAAiB;AAC9B;AACA;AACA,MAAM;AACN;AACA;AACA,uBAAuB,wCAAwC;AAC/D,UAAU;AACV,wBAAwB,UAAU,oBAAoB,MAAM,eAAe;AAC3E;AACA,wCAAwC,eAAe,mBAAmB,EAAE;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,qEAAqE;AACjF,gCAAgC,2CAAc;AAC9C,gBAAgB,yCAAY;AAC5B,sBAAsB,yCAAY;AAClC,kBAAkB,yCAAY;AAC9B,sBAAsB,yCAAY;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,+BAA+B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL,yBAAyB,8CAAiB;AAC1C;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,wFAAwF;AACxF;AACA,IAAI,4CAAe;AACnB;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA,sBAAsB,wBAAwB;AAC9C,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI,4CAAe;AACnB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,cAAc,8CAAiB;AAC/B,cAAc,8CAAiB;AAC/B,iBAAiB,8CAAiB;AAClC,gBAAgB,8CAAiB;AACjC,gBAAgB,8CAAiB;AACjC,gBAAgB,8CAAiB;AACjC,gBAAgB,8CAAiB;AACjC,iBAAiB,8CAAiB;AAClC,gBAAgB,0CAAa;AAC7B;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA,kGAAkG;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gCAAgC,wCAAwC;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,OAAO;AACtD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,uBAAuB;AACvB,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,UAAU,IAAI;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,wBAAwB,oBAAoB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA,KAAK;AACL;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,gBAAgB;AACtD,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,KAAK,GAAG,SAAS;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,gBAAgB;AAC1C,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D,eAAe;AACzE;AACA;AACA,sBAAsB,gBAAgB;AACtC,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,gBAAgB;AAC9C,iBAAiB;AACjB;AACA;AACA;AACA,2CAA2C,uBAAuB,eAAe;AACjF;AACA,8DAA8D,eAAe;AAC7E;AACA;AACA,wBAAwB,SAAS;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4EAA4E,qBAAqB;AACjG,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,MAAM;AAC1B,+CAA+C,UAAU,IAAI;AAC7D;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,iDAAiD;AACjD,SAAS;AACT;AACA;AACA,0CAA0C,QAAQ,UAAU;AAC5D;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,gBAAgB;AACtC,SAAS;AACT;AACA;AACA,wCAAwC,IAAI,sBAAsB;AAClE,SAAS;AACT;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA,2BAA2B;AAC3B;AACA,qDAAqD,OAAO,QAAQ;AACpE;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,6BAA6B,IAAI;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0FAA0F;AAC1F;AACA,2CAA2C,2BAA2B;AACtE;AACA,oCAAoC,eAAe;AACnD,yBAAyB;AACzB,qBAAqB;AACrB;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B,aAAa;AACb;AACA;AACA;AACA;AACA,kCAAkC,sBAAsB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,eAAe;AAClD;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,WAAW;AACrC,aAAa;AACb;AACA,0BAA0B,WAAW;AACrC,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,oBAAoB;AACpB,wEAAwE;AACxE;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAsE;AACtE;AACA;AACA;AACA;AACA,aAAa,4CAA4C,WAAW;AACpE;AACA;AACA;AACA;AACA;AACA,uBAAuB,uBAAuB;AAC9C,qCAAqC,wBAAwB;AAC7D,iBAAiB,iCAAiC,gBAAgB,GAAG;AACrE,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B,yBAAyB,yCAAY;AACrC,yCAAyC,2CAAc;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB,yBAAyB;AACzB,kBAAkB;AAClB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,gFAAgF,cAAc;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,uBAAuB;AACzD;AACA,SAAS;AACT,KAAK;AACL,IAAI,4CAAe;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI,4CAAe;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,uBAAuB;AAClE;AACA;AACA,KAAK;AACL;AACA;AACA;;AAE2I;AAC3I;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxxE8D;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,wBAAwB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,yBAAyB;AAC/D;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI;AACR;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,YAAY;AACZ;AACA,0BAA0B,gDAAC;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,sBAAsB,gDAAC,oBAAoB,gDAAC,wDAAwD,IAAI;AAC7G;AACA;AACA,KAAK;AACL,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA;AACA,gGAAgG,mBAAmB;AACnH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,6CAA6C,kBAAkB;AACtE,KAAK;AACL,cAAc,iEAAiE;AAC/E;AACA;AACA,gGAAgG,mBAAmB;AACnH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,kGAAkG,2CAA2C;AACpJ,KAAK;AACL,cAAc,oDAAoD;AAClE;AACA;AACA;AACA,cAAc,YAAY;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,cAAc,mDAAmD;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,cAAc,oDAAoD;AAClE,0MAA0M,2CAA2C;AACrP,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf,YAAY,kCAAkC;AAC9C,aAAa;AACb;AACA;AACA,YAAY,yBAAyB;AACrC;AACA,cAAc,sBAAsB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,UAAU;AACtB;AACA;AACA,gBAAgB,IAAI,EAAE,OAAO;AAC7B,iBAAiB,IAAI,EAAE,OAAO;AAC9B,kBAAkB,QAAQ,EAAE,OAAO;AACnC,mBAAmB,SAAS,EAAE,OAAO;AACrC;AACA;AACA;AACA,YAAY,YAAY;AACxB;AACA;AACA;AACA,YAAY,YAAY;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,YAAY,UAAU,2CAA2C;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,6BAA6B,gDAAe;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,oCAAoC,gDAAe,UAAU,kEAAkE,kBAAkB,gDAAe,UAAU,yDAAyD,m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C;AACA;AACA,wBAAwB,gDAAe;AACvC;AACA;AACA,cAAc,IAAI,EAAE,OAAO;AAC3B,cAAc,IAAI,EAAE,OAAO;AAC3B,kBAAkB,QAAQ,EAAE,OAAO;AACnC,mBAAmB,SAAS,EAAE,OAAO;AACrC;AACA;AACA,yBAAyB,gDAAe,WAAW,mFAAmF,gBAAgB,IAAI;AAC1J;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAeE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UCtbF;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,GAAG;WACH;WACA;WACA,CAAC;;;;;WCPD;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;ACNA;AACA;AACA;AAC4C;AACL;AACQ","sources":["webpack://photo-block/./src/blocks/photo-block/block-styles.js","webpack://photo-block/./src/blocks/photo-block/edit.js","webpack://photo-block/./src/blocks/photo-block/icons/filepond.js","webpack://photo-block/./src/blocks/photo-block/index.js","webpack://photo-block/./src/blocks/photo-caption-block/block-styles.js","webpack://photo-block/./src/blocks/photo-caption-block/edit.js","webpack://photo-block/./src/blocks/photo-caption-block/index.js","webpack://photo-block/./src/components/AlignmentToolbar/index.js","webpack://photo-block/./src/components/BackgroundSelector/index.js","webpack://photo-block/./src/components/BorderResponsive/index.js","webpack://photo-block/./src/components/CSSGramButtonGroup/index.js","webpack://photo-block/./src/components/CSSGramButtonPreview/index.js","webpack://photo-block/./src/components/CaptionAppender/index.js","webpack://photo-block/./src/components/ColorPicker/index.js","webpack://photo-block/./src/components/CustomAttributes/index.js","webpack://photo-block/./src/components/DimensionsResponsive/index.js","webpack://photo-block/./src/components/DropShadow/index.js","webpack://photo-block/./src/components/GlobalStyles/GlobalStylesContainer.js","webpack://photo-block/./src/components/GlobalStyles/GlobalStylesDeleteModal.js","webpack://photo-block/./src/components/GlobalStyles/GlobalStylesEditModal.js","webpack://photo-block/./src/components/GlobalStyles/GlobalStylesSaveModal.js","webpack://photo-block/./src/components/GlobalStyles/context.js","webpack://photo-block/./src/components/GlobalStyles/index.js","webpack://photo-block/./src/components/GlobalStylesPicker/ButtonPreview/caption-block-preview.js","webpack://photo-block/./src/components/GlobalStylesPicker/ButtonPreview/index.js","webpack://photo-block/./src/components/GlobalStylesPicker/ButtonPreview/photo-block-preview.js","webpack://photo-block/./src/components/GlobalStylesPicker/index.js","webpack://photo-block/./src/components/GradientPicker/index.js","webpack://photo-block/./src/components/HeadingIconResponsive/index.js","webpack://photo-block/./src/components/Icons/AspectRatio.js","webpack://photo-block/./src/components/Icons/BorderStyleDashed.js","webpack://photo-block/./src/components/Icons/BorderStyleDotted.js","webpack://photo-block/./src/components/Icons/BorderStyleDouble.js","webpack://photo-block/./src/components/Icons/BorderStyleSolid.js","webpack://photo-block/./src/components/Icons/ColonIcon.js","webpack://photo-block/./src/components/Icons/PhotoBlockIcon.js","webpack://photo-block/./src/components/MediaLink/index.js","webpack://photo-block/./src/components/Notice/index.js","webpack://photo-block/./src/components/PanelBody/index.js","webpack://photo-block/./src/components/RangeResponsive/index.js","webpack://photo-block/./src/components/SidebarImageAdvancedInspectorControl/index.js","webpack://photo-block/./src/components/SidebarImageInspectorControl/index.js","webpack://photo-block/./src/components/SizeResponsive/index.js","webpack://photo-block/./src/components/ToolbarAspectRatio/index.js","webpack://photo-block/./src/components/Typography/index.js","webpack://photo-block/./src/components/URLPicker/index.js","webpack://photo-block/./src/components/UnitPicker/index.js","webpack://photo-block/./src/components/UploadStatus/index.js","webpack://photo-block/./src/components/UploadTarget/index.js","webpack://photo-block/./src/components/UploadTypes/index.js","webpack://photo-block/./src/hooks/useDeviceType.js","webpack://photo-block/./src/hooks/useUnits.js","webpack://photo-block/./src/plugins/GlobalStyles/index.js","webpack://photo-block/./src/screens/Crop/index.js","webpack://photo-block/./src/screens/Edit/index.js","webpack://photo-block/./src/screens/FeaturedImageEdit/index.js","webpack://photo-block/./src/screens/Initial/index.js","webpack://photo-block/./src/screens/Loading/index.js","webpack://photo-block/./src/store/global-styles.js","webpack://photo-block/./src/store/index.js","webpack://photo-block/./src/utils/CalculateAspectRatioFromPixels.js","webpack://photo-block/./src/utils/CalculateDimensionsFromAspectRatio.js","webpack://photo-block/./src/utils/GetRandomGradient.js","webpack://photo-block/./src/utils/SendCommand.js","webpack://photo-block/./src/utils/ShorthandCSS.js","webpack://photo-block/./src/utils/TypographyHelper.js","webpack://photo-block/./src/utils/UnitsList.js","webpack://photo-block/./node_modules/call-bind/callBound.js","webpack://photo-block/./node_modules/call-bind/index.js","webpack://photo-block/./node_modules/classnames/index.js","webpack://photo-block/./node_modules/define-data-property/index.js","webpack://photo-block/./node_modules/dom-serializer/lib/foreignNames.js","webpack://photo-block/./node_modules/dom-serializer/lib/index.js","webpack://photo-block/./node_modules/domelementtype/lib/index.js","webpack://photo-block/./node_modules/domhandler/lib/index.js","webpack://photo-block/./node_modules/domhandler/lib/node.js","webpack://photo-block/./node_modules/domutils/lib/feeds.js","webpack://photo-block/./node_modules/domutils/lib/helpers.js","webpack://photo-block/./node_modules/domutils/lib/index.js","webpack://photo-block/./node_modules/domutils/lib/legacy.js","webpack://photo-block/./node_modules/domutils/lib/manipulation.js","webpack://photo-block/./node_modules/domutils/lib/querying.js","webpack://photo-block/./node_modules/domutils/lib/stringify.js","webpack://photo-block/./node_modules/domutils/lib/traversal.js","webpack://photo-block/./node_modules/entities/lib/decode.js","webpack://photo-block/./node_modules/entities/lib/decode_codepoint.js","webpack://photo-block/./node_modules/entities/lib/encode.js","webpack://photo-block/./node_modules/entities/lib/escape.js","webpack://photo-block/./node_modules/entities/lib/generated/decode-data-html.js","webpack://photo-block/./node_modules/entities/lib/generated/decode-data-xml.js","webpack://photo-block/./node_modules/entities/lib/generated/encode-html.js","webpack://photo-block/./node_modules/entities/lib/index.js","webpack://photo-block/./node_modules/es-define-property/index.js","webpack://photo-block/./node_modules/es-errors/eval.js","webpack://photo-block/./node_modules/es-errors/index.js","webpack://photo-block/./node_modules/es-errors/range.js","webpack://photo-block/./node_modules/es-errors/ref.js","webpack://photo-block/./node_modules/es-errors/syntax.js","webpack://photo-block/./node_modules/es-errors/type.js","webpack://photo-block/./node_modules/es-errors/uri.js","webpack://photo-block/./node_modules/filepond-plugin-file-validate-type/dist/filepond-plugin-file-validate-type.js","webpack://photo-block/./node_modules/filepond-plugin-image-exif-orientation/dist/filepond-plugin-image-exif-orientation.js","webpack://photo-block/./node_modules/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.js","webpack://photo-block/./node_modules/filepond/dist/filepond.js","webpack://photo-block/./node_modules/function-bind/implementation.js","webpack://photo-block/./node_modules/function-bind/index.js","webpack://photo-block/./node_modules/get-intrinsic/index.js","webpack://photo-block/./node_modules/gopd/index.js","webpack://photo-block/./node_modules/has-property-descriptors/index.js","webpack://photo-block/./node_modules/has-proto/index.js","webpack://photo-block/./node_modules/has-symbols/index.js","webpack://photo-block/./node_modules/has-symbols/shams.js","webpack://photo-block/./node_modules/hasown/index.js","webpack://photo-block/./node_modules/hex-to-rgba/build/index.js","webpack://photo-block/./node_modules/html-to-react/index.js","webpack://photo-block/./node_modules/html-to-react/lib/camel-case-attribute-names.js","webpack://photo-block/./node_modules/html-to-react/lib/is-valid-node-definitions.js","webpack://photo-block/./node_modules/html-to-react/lib/parser.js","webpack://photo-block/./node_modules/html-to-react/lib/process-node-definitions.js","webpack://photo-block/./node_modules/html-to-react/lib/processing-instructions.js","webpack://photo-block/./node_modules/html-to-react/lib/should-process-node-definitions.js","webpack://photo-block/./node_modules/html-to-react/lib/utils.js","webpack://photo-block/./node_modules/htmlparser2/lib/Parser.js","webpack://photo-block/./node_modules/htmlparser2/lib/Tokenizer.js","webpack://photo-block/./node_modules/htmlparser2/lib/index.js","webpack://photo-block/./node_modules/lodash.camelcase/index.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/createLucideIcon.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/defaultAttributes.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/accessibility.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/align-center.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/align-left.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/align-right.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/arrow-big-left-dash.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/captions.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/check.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/circle-alert.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/circle-minus.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/circle-x.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/corner-down-left.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/crop.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/download.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/droplet.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/external-link.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/file-image.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/file-text.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/file.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/globe.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/image-plus.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/image.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/info.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/link-2-off.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/link-2.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/link.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/loader-circle.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/lock.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/maximize.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/monitor.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/palette.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/pencil.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/rectangle-ellipsis.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/redo-2.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/rotate-ccw.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/rotate-cw.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/save.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/search.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/separator-horizontal.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/shrink.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/shuffle.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/smartphone.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/tablet.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/trash-2.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/trash.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/undo-2.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/unlink.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/upload.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/wand-sparkles.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/x.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/shared/src/utils.js","webpack://photo-block/./node_modules/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css","webpack://photo-block/./node_modules/filepond/dist/filepond.min.css","webpack://photo-block/./node_modules/react-image-crop/src/ReactCrop.scss","webpack://photo-block/./src/blocks/photo-block/editor.scss","webpack://photo-block/./src/blocks/photo-caption-block/editor.scss","webpack://photo-block/./src/components/AlignmentToolbar/editor.scss","webpack://photo-block/./src/components/BackgroundSelector/editor.scss","webpack://photo-block/./src/components/BorderResponsive/editor.scss","webpack://photo-block/./src/components/CSSGramButtonGroup/editor.scss","webpack://photo-block/./src/components/CSSGramButtonPreview/editor.scss","webpack://photo-block/./src/components/CaptionAppender/editor.scss","webpack://photo-block/./src/components/ColorPicker/editor.scss","webpack://photo-block/./src/components/CustomAttributes/editor.scss","webpack://photo-block/./src/components/DimensionsResponsive/editor.scss","webpack://photo-block/./src/components/DropShadow/editor.scss","webpack://photo-block/./src/components/GlobalStyles/editor.scss","webpack://photo-block/./src/components/GlobalStylesPicker/ButtonPreview/editor.scss","webpack://photo-block/./src/components/GlobalStylesPicker/editor.scss","webpack://photo-block/./src/components/GradientPicker/editor.scss","webpack://photo-block/./src/components/HeadingIconResponsive/editor.scss","webpack://photo-block/./src/components/MediaLink/editor.scss","webpack://photo-block/./src/components/Notice/editor.scss","webpack://photo-block/./src/components/PanelBody/editor.scss","webpack://photo-block/./src/components/RangeResponsive/editor.scss","webpack://photo-block/./src/components/SidebarImageAdvancedInspectorControl/editor.scss","webpack://photo-block/./src/components/SidebarImageInspectorControl/editor.scss","webpack://photo-block/./src/components/SizeResponsive/editor.scss","webpack://photo-block/./src/components/ToolbarAspectRatio/editor.scss","webpack://photo-block/./src/components/Typography/editor.scss","webpack://photo-block/./src/components/URLPicker/editor.scss","webpack://photo-block/./src/components/UnitPicker/editor.scss","webpack://photo-block/./src/components/UploadStatus/editor.scss","webpack://photo-block/./src/components/UploadTarget/editor.scss","webpack://photo-block/./src/components/UploadTypes/editor.scss","webpack://photo-block/./src/screens/Crop/editor.scss","webpack://photo-block/./src/screens/Edit/editor.scss","webpack://photo-block/./src/screens/FeaturedImageEdit/editor.scss","webpack://photo-block/./src/scss/block-backend-frontend.scss","webpack://photo-block/./node_modules/object-assign/index.js","webpack://photo-block/./node_modules/object-inspect/index.js","webpack://photo-block/./node_modules/prop-types/checkPropTypes.js","webpack://photo-block/./node_modules/prop-types/factoryWithTypeCheckers.js","webpack://photo-block/./node_modules/prop-types/index.js","webpack://photo-block/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://photo-block/./node_modules/prop-types/lib/has.js","webpack://photo-block/./node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","webpack://photo-block/./node_modules/prop-types/node_modules/react-is/index.js","webpack://photo-block/./node_modules/qs/lib/formats.js","webpack://photo-block/./node_modules/qs/lib/index.js","webpack://photo-block/./node_modules/qs/lib/parse.js","webpack://photo-block/./node_modules/qs/lib/stringify.js","webpack://photo-block/./node_modules/qs/lib/utils.js","webpack://photo-block/./node_modules/react-filepond/dist/react-filepond.js","webpack://photo-block/./node_modules/rgb2hex/index.js","webpack://photo-block/./node_modules/set-function-length/index.js","webpack://photo-block/./node_modules/side-channel/index.js","webpack://photo-block/external window \"React\"","webpack://photo-block/external window [\"wp\",\"a11y\"]","webpack://photo-block/external window [\"wp\",\"blockEditor\"]","webpack://photo-block/external window [\"wp\",\"blocks\"]","webpack://photo-block/external window [\"wp\",\"components\"]","webpack://photo-block/external window [\"wp\",\"compose\"]","webpack://photo-block/external window [\"wp\",\"data\"]","webpack://photo-block/external window [\"wp\",\"element\"]","webpack://photo-block/external window [\"wp\",\"escapeHtml\"]","webpack://photo-block/external window [\"wp\",\"hooks\"]","webpack://photo-block/external window [\"wp\",\"i18n\"]","webpack://photo-block/external window [\"wp\",\"keycodes\"]","webpack://photo-block/external window [\"wp\",\"plugins\"]","webpack://photo-block/external window [\"wp\",\"url\"]","webpack://photo-block/ignored|/Users/ronaldhuereca/Sites/localhost/mediaron/wp-content/plugins/photo-block/node_modules/object-inspect|./util.inspect","webpack://photo-block/./node_modules/axios/lib/adapters/adapters.js","webpack://photo-block/./node_modules/axios/lib/adapters/xhr.js","webpack://photo-block/./node_modules/axios/lib/axios.js","webpack://photo-block/./node_modules/axios/lib/cancel/CancelToken.js","webpack://photo-block/./node_modules/axios/lib/cancel/CanceledError.js","webpack://photo-block/./node_modules/axios/lib/cancel/isCancel.js","webpack://photo-block/./node_modules/axios/lib/core/Axios.js","webpack://photo-block/./node_modules/axios/lib/core/AxiosError.js","webpack://photo-block/./node_modules/axios/lib/core/AxiosHeaders.js","webpack://photo-block/./node_modules/axios/lib/core/InterceptorManager.js","webpack://photo-block/./node_modules/axios/lib/core/buildFullPath.js","webpack://photo-block/./node_modules/axios/lib/core/dispatchRequest.js","webpack://photo-block/./node_modules/axios/lib/core/mergeConfig.js","webpack://photo-block/./node_modules/axios/lib/core/settle.js","webpack://photo-block/./node_modules/axios/lib/core/transformData.js","webpack://photo-block/./node_modules/axios/lib/defaults/index.js","webpack://photo-block/./node_modules/axios/lib/defaults/transitional.js","webpack://photo-block/./node_modules/axios/lib/env/data.js","webpack://photo-block/./node_modules/axios/lib/helpers/AxiosURLSearchParams.js","webpack://photo-block/./node_modules/axios/lib/helpers/HttpStatusCode.js","webpack://photo-block/./node_modules/axios/lib/helpers/bind.js","webpack://photo-block/./node_modules/axios/lib/helpers/buildURL.js","webpack://photo-block/./node_modules/axios/lib/helpers/combineURLs.js","webpack://photo-block/./node_modules/axios/lib/helpers/cookies.js","webpack://photo-block/./node_modules/axios/lib/helpers/formDataToJSON.js","webpack://photo-block/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://photo-block/./node_modules/axios/lib/helpers/isAxiosError.js","webpack://photo-block/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://photo-block/./node_modules/axios/lib/helpers/null.js","webpack://photo-block/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://photo-block/./node_modules/axios/lib/helpers/parseProtocol.js","webpack://photo-block/./node_modules/axios/lib/helpers/speedometer.js","webpack://photo-block/./node_modules/axios/lib/helpers/spread.js","webpack://photo-block/./node_modules/axios/lib/helpers/toFormData.js","webpack://photo-block/./node_modules/axios/lib/helpers/toURLEncodedForm.js","webpack://photo-block/./node_modules/axios/lib/helpers/validator.js","webpack://photo-block/./node_modules/axios/lib/platform/browser/classes/Blob.js","webpack://photo-block/./node_modules/axios/lib/platform/browser/classes/FormData.js","webpack://photo-block/./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","webpack://photo-block/./node_modules/axios/lib/platform/browser/index.js","webpack://photo-block/./node_modules/axios/lib/platform/common/utils.js","webpack://photo-block/./node_modules/axios/lib/platform/index.js","webpack://photo-block/./node_modules/axios/lib/utils.js","webpack://photo-block/./node_modules/react-hook-form/dist/index.esm.mjs","webpack://photo-block/./node_modules/react-image-crop/dist/index.js","webpack://photo-block/webpack/bootstrap","webpack://photo-block/webpack/runtime/compat get default export","webpack://photo-block/webpack/runtime/define property getters","webpack://photo-block/webpack/runtime/global","webpack://photo-block/webpack/runtime/hasOwnProperty shorthand","webpack://photo-block/webpack/runtime/make namespace object","webpack://photo-block/./src/index.js"],"sourcesContent":["import { getValueWithUnit, buildDimensionsCSS, buildBorderCSS } from '../../utils/TypographyHelper';\nimport hexToRgba from 'hex-to-rgba';\nimport rgb2hex from 'rgb2hex';\n\n/**\n * Return a color based on passed alpha value.\n *\n * @param {string} colorValue hex, rgb, rgba, or CSS var.\n * @param {number} opacityValue The opacity (from 0 - 1).\n * @return {string} The color in hex, rgba, or CSS var format.\n */\nconst getColor = ( colorValue, opacityValue = 1 ) => {\n\t// Test for CSS var values in color value.\n\tif ( colorValue.indexOf( 'var(' ) === 0 ) {\n\t\treturn colorValue;\n\t}\n\n\t// Test for RGBA at the beginning, and return value.\n\tif ( colorValue.indexOf( 'rgba' ) === 0 ) {\n\t\t// Calculate hex value from rgba.\n\t\tconst hex = rgb2hex( colorValue ).hex;\n\t\treturn hexToRgba( hex, opacityValue );\n\t}\n\n\t// Test for RGB at the beginning, and return hex if found.\n\tif ( colorValue.indexOf( 'rgb' ) === 0 ) {\n\t\treturn hexToRgba( rgb2hex( colorValue ).hex, opacityValue );\n\t}\n\n\tif ( opacityValue < 1 ) {\n\t\treturn hexToRgba( colorValue, opacityValue );\n\t}\n\n\treturn colorValue;\n};\n\nconst getStyles = (attributes, deviceType, uniqueId, useClass = false ) => {\n\t// If attributes are empty, return empty string.\n\tif ( attributes.length === 0 ) {\n\t\treturn '';\n\t}\n\tconst {\n\t\tcontainerWidth,\n\t\tcontainerHeight,\n\t\tcontainerMinWidth,\n\t\tcontainerMinHeight,\n\t\tcontainerMaxWidth,\n\t\tcontainerMaxHeight,\n\t\tcaptionPosition,\n\t\tphotoPaddingSize,\n\t\tphotoMarginSize,\n\t\tphotoBorderRadius,\n\t\tphotoDropShadow,\n\t\tphotoObjectPosition,\n\t\tphotoOpacity,\n\t\tphotoBackgroundColor,\n\t\tphotoBackgroundColorOpacity,\n\t\tphotoObjectPositionCustom,\n\t\tphotoBorder,\n\t\tphotoBlur,\n\t\tphotoObjectFit,\n\t\tcaptionCustomTypography,\n\n\t} = attributes;\n\tlet styles = '';\n\tif ( 'overlay' === captionPosition ) {\n\t\tstyles += `\n\t\t\t${ useClass ? '.' : '#' }${ uniqueId } .dlx-photo-block__image-wrapper {\n\t\t\t\t--photo-block-photo-background-color: ${ photoBackgroundColor };\n\t\t\t\t--photo-block-photo-background-Color-opacity: ${ photoBackgroundColorOpacity };\n\t\t\t\t--photo-block-image-width: ${ getValueWithUnit( deviceType, containerWidth, 'width' ) }\n\t\t\t\t--photo-block-image-height: ${ getValueWithUnit( deviceType, containerHeight, 'height' ) }\n\t\t\t\t--photo-block-image-min-width: ${ getValueWithUnit( deviceType, containerMinWidth, 'min-width' ) }\n\t\t\t\t--photo-block-image-min-height: ${ getValueWithUnit( deviceType, containerMinHeight, 'min-height' ) }\n\t\t\t\t--photo-block-image-max-width: ${ getValueWithUnit( deviceType, containerMaxWidth, 'max-width' ) }\n\t\t\t\t--photo-block-image-max-height: ${ getValueWithUnit( deviceType, containerMaxHeight, 'max-height' ) }\n\t\t\t\t--photo-block-image-padding: ${ buildDimensionsCSS( photoPaddingSize, deviceType ) };\n\t\t\t\t--photo-block-image-margin: ${ buildDimensionsCSS( photoMarginSize, deviceType ) };\n\t\t\t\t${ buildBorderCSS( photoBorder, deviceType, '--photo-block-image' ) };\n\t\t\t\t--photo-block-photo-border-radius: ${ buildDimensionsCSS( photoBorderRadius, deviceType ) };\n\t\t\t}\n\t\t\t${ useClass ? '.' : '#' }${ uniqueId } .dlx-photo-block__image-wrapper img {\n\t\t\t\t--photo-block-image-opacity: ${ photoOpacity };\n\t\t\t\t--photo-block-image-object-fit: ${ photoObjectFit };\n\t\t\t\t--photo-block-blur: ${ photoBlur }px;\n\t\t\t\t--photo-block-image-width: ${ 'none' !== photoObjectFit ? '100%' : 'unset' };\n\t\t\t\t--photo-block-image-height: ${ 'none' !== photoObjectFit ? '100%' : 'unset' };\n\t\t\t\t--photo-block-image-object-position: ${ 'custom' === photoObjectPosition ? photoObjectPositionCustom : photoObjectPosition };\n\t\t\t}\n\t\t`;\n\t\tif ( photoDropShadow.enabled ) {\n\t\t\tstyles += `\n\t\t\t\t${ useClass ? '.' : '#' }${ uniqueId } .dlx-photo-block__image-wrapper {\n\t\t\t\t\t--photo-block-image-drop-shadow-horizontal: ${ photoDropShadow.horizontal }px;\n\t\t\t\t\t--photo-block-image-drop-shadow-vertical: ${ photoDropShadow.vertical }px;\n\t\t\t\t\t--photo-block-image-drop-shadow-blur: ${ photoDropShadow.blur }px;\n\t\t\t\t\t--photo-block-image-drop-shadow-spread: ${ photoDropShadow.spread }px;\n\t\t\t\t\t--photo-block-image-drop-shadow-color: ${ getColor( photoDropShadow.color, photoDropShadow.opacity ) };\n\t\t\t\t}\n\t\t\t`;\n\t\t}\n\t} else {\n\t\tstyles += `\n\t\t\t${ useClass ? '.' : '#' }${ uniqueId } .dlx-photo-block__image-wrapper {\n\t\t\t\t--photo-block-photo-background-color: ${ photoBackgroundColor };\n\t\t\t\t--photo-block-image-width: ${ getValueWithUnit( deviceType, containerWidth, 'width' ) }\n\t\t\t\t--photo-block-image-height: ${ getValueWithUnit( deviceType, containerHeight, 'height' ) }\n\t\t\t\t--photo-block-image-min-width: ${ getValueWithUnit( deviceType, containerMinWidth, 'min-width' ) }\n\t\t\t\t--photo-block-image-min-height: ${ getValueWithUnit( deviceType, containerMinHeight, 'min-height' ) }\n\t\t\t\t--photo-block-image-max-width: ${ getValueWithUnit( deviceType, containerMaxWidth, 'max-width' ) }\n\t\t\t\t--photo-block-image-max-height: ${ getValueWithUnit( deviceType, containerMaxHeight, 'max-height' ) }\n\t\t\t\t--photo-block-photo-border-radius: ${ buildDimensionsCSS( photoBorderRadius, deviceType ) };\n\t\t\t}\n\t\t\t${ useClass ? '.' : '#' }${ uniqueId } .dlx-photo-block__image-wrapper img {\n\t\t\t\t--photo-block-image-opacity: ${ photoOpacity };\n\t\t\t\t--photo-block-image-object-fit: ${ photoObjectFit };\n\t\t\t\t--photo-block-blur: ${ photoBlur }px;\n\t\t\t\t--photo-block-image-width: ${ 'none' !== photoObjectFit ? '100%' : 'unset' };\n\t\t\t\t--photo-block-image-height: ${ 'none' !== photoObjectFit ? '100%' : 'unset' };\n\t\t\t\t--photo-block-image-object-position: ${ 'custom' === photoObjectPosition ? photoObjectPositionCustom : photoObjectPosition };\n\t\t\t\t--photo-block-image-padding: ${ buildDimensionsCSS( photoPaddingSize, deviceType ) };\n\t\t\t\t--photo-block-image-margin: ${ buildDimensionsCSS( photoMarginSize, deviceType ) };\n\t\t\t\t${ buildBorderCSS( photoBorder, deviceType, '--photo-block-image' ) };\n\t\t\t\t--photo-block-photo-border-radius: ${ buildDimensionsCSS( photoBorderRadius, deviceType ) };\n\t\t\t}\n\t\t`;\n\t}\n\n\t// Apply outer margin to container.\n\tstyles += `${ useClass ? '.' : '#' }${ uniqueId } .dlx-photo-block__figure { --photo-block-figure-margin: ${ buildDimensionsCSS( photoMarginSize, deviceType ) }; }`;\n\tif ( photoDropShadow.enabled ) {\n\t\tstyles += `\n\t\t\t.dlx-has-drop-shadow ${ useClass ? '.' : '#' }${ uniqueId } img {\n\t\t\t\t--photo-block-image-drop-shadow-horizontal: ${ photoDropShadow.horizontal }px;\n\t\t\t\t--photo-block-image-drop-shadow-vertical: ${ photoDropShadow.vertical }px;\n\t\t\t\t--photo-block-image-drop-shadow-blur: ${ photoDropShadow.blur }px;\n\t\t\t\t--photo-block-image-drop-shadow-spread: ${ photoDropShadow.spread }px;\n\t\t\t\t--photo-block-image-drop-shadow-color: ${ getColor( photoDropShadow.color, photoDropShadow.opacity ) };\n\t\t\t}\n\t\t`;\n\t}\n\treturn styles;\n};\n\nexport default getStyles;\n","import './editor.scss';\n\nimport classnames from 'classnames';\nimport { useEffect, useRef } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\n\nimport { useResizeObserver } from '@wordpress/compose';\nimport { useDispatch, useSelect, dispatch, select } from '@wordpress/data';\nimport { doAction } from '@wordpress/hooks';\nimport {\n\tuseBlockProps,\n\tuseInnerBlocksProps,\n} from '@wordpress/block-editor';\n\nimport { blockStore } from '../../store';\n\n\nimport InitialScreen from '../../screens/Initial';\n//import EffectsScreen from '../../screens/Effects';\nimport CaptionAppender from '../../components/CaptionAppender';\nimport EditScreen from '../../screens/Edit';\nimport CropScreen from '../../screens/Crop';\nimport LoadingScreen from '../../screens/Loading';\nimport FeaturedImageScreen from '../../screens/FeaturedImageEdit';\nimport globalStylesStore from '../../store/global-styles';\n\n// For storing unique IDs.\nconst uniqueIds = [];\n\nconst PhotoBlock = ( props ) => {\n\n\tconst {\n\t\tattributes,\n\t\tsetAttributes,\n\t\tclientId,\n\t\tcontext,\n\t\tisSelected,\n\t} = props;\n\n\tconst innerBlockCount = useSelect( ( coreSelect ) => coreSelect( 'core/block-editor' ).getBlock( clientId ).innerBlocks ).length;\n\n\tconst newUniqueId = 'photo-block-' + clientId.substr( 2, 9 ).replace( '-', '' );\n\tconst [ resizeListener, { width } ] = useResizeObserver();\n\tlet modifierClassNames;\n\tif ( typeof width === 'number' ) {\n\t\tmodifierClassNames = {\n\t\t\t'is-layout-large': width >= 700,\n\t\t\t'is-layout-medium': width >= 450 && width < 700,\n\t\t\t'is-layout-small': width < 450,\n\t\t};\n\t}\n\n\t/**\n\t * Get a unique ID for the block for inline styling if necessary.\n\t */\n\tuseEffect( () => {\n\t\t// Check context to see if we're in a query loop.\n\t\tconst pid = context?.postId || null;\n\t\tconst queryLoop = context.query;\n\t\tif ( 0 !== pid && null !== pid && 'none' !== queryLoop && typeof queryLoop !== 'undefined' ) {\n\t\t\tsetInQueryLoop( true );\n\t\t}\n\n\t\tlet realUniqueId = null;\n\t\tif ( ( null === uniqueId || uniqueIds.includes( uniqueId ) ) && ! inQueryLoop ) {\n\t\t\tconst permUniqueId = newUniqueId;\n\n\t\t\t// If block is duplicated, set new store defaults.\n\t\t\tif ( uniqueIds.includes( uniqueId ) ) {\n\t\t\t\tconst oldStore = select( blockStore( uniqueId ) );\n\t\t\t\tif ( oldStore ) {\n\t\t\t\t\t// Duplicate the store and set defaults.\n\t\t\t\t\tconst newBlockStore = dispatch( blockStore( permUniqueId ) );\n\t\t\t\t\tnewBlockStore.setBlockUniqueId( permUniqueId );\n\t\t\t\t\tnewBlockStore.setPhotoMode( oldStore.getPhotoMode() );\n\t\t\t\t\tnewBlockStore.setCaptionPosition( oldStore.getCaptionPosition() );\n\t\t\t\t\tnewBlockStore.setHasCaption( oldStore.hasCaption() );\n\t\t\t\t\tnewBlockStore.setInQueryLoop( oldStore.inQueryLoop() );\n\t\t\t\t\tnewBlockStore.setImageData( oldStore.getImageData() );\n\n\t\t\t\t\t// Get the old screen, and if it's not edit, set new screen to initial.\n\t\t\t\t\tconst oldScreen = oldStore.getCurrentScreen();\n\t\t\t\t\tlet newScreen = 'initial';\n\t\t\t\t\tswitch ( oldScreen ) {\n\t\t\t\t\t\tcase 'edit':\n\t\t\t\t\t\tcase 'crop':\n\t\t\t\t\t\t\tnewScreen = 'edit';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tnewBlockStore.setScreen( newScreen );\n\t\t\t\t\tprops.attributes.screen = newScreen;\n\t\t\t\t\tsetAttributes( { screen: newScreen } );\n\t\t\t\t}\n\t\t\t}\n\t\t\t// If we're a brand new block, set the unique ID.\n\t\t\tif ( null === uniqueId ) {\n\t\t\t\tsetBlockUniqueId( permUniqueId );\n\t\t\t}\n\t\t\t// We need this for duplicated state so one block doesn't affect another.\n\t\t\tprops.attributes.uniqueId = permUniqueId;\n\t\t\tsetAttributes( { uniqueId: permUniqueId } );\n\t\t\tuniqueIds.push( permUniqueId );\n\t\t\trealUniqueId = permUniqueId;\n\t\t} else {\n\t\t\tsetBlockUniqueId( uniqueId );\n\t\t\tuniqueIds.push( uniqueId );\n\t\t\trealUniqueId = uniqueId;\n\t\t}\n\n\t\t/**\n\t\t * Action: dlx_photo_block_has_loaded\n\t\t *\n\t\t * Fires after the block has loaded and after unique ID has been set.\n\t\t */\n\t\tdoAction(\n\t\t\t'dlx_photo_block_has_loaded',\n\t\t\trealUniqueId\n\t\t);\n\n\t\t// Set initial state of the block.\n\t\tsetImageData( attributes.imageData );\n\t\tsetHasCaption( attributes.hasCaption );\n\t\tsetCaptionPosition( attributes.captionPosition );\n\t\tsetPhotoMode( attributes.photoMode );\n\t}, [] );\n\n\tconst {\n\t\tuniqueId,\n\t\talign,\n\t\tglobalStyle,\n\t\tphotoDropShadow,\n\t} = props.attributes;\n\n\tconst { globalStyleCSSClassName } = useSelect( ( newSelect ) => {\n\t\tconst maybeGlobalStyle = newSelect( globalStylesStore ).getGlobalStyleBySlug( globalStyle );\n\t\tif ( Object.keys( maybeGlobalStyle ).length === 0 ) {\n\t\t\treturn '';\n\t\t}\n\t\treturn {\n\t\t\tglobalStyleCSSClassName: maybeGlobalStyle.css_class,\n\t\t};\n\t} );\n\n\t// Read in context values.\n\tconst {\n\t\tsetBlockUniqueId,\n\t\tsetCaptionPosition,\n\t\tsetHasCaption,\n\t\tsetImageData,\n\t\tsetPhotoMode,\n\t\tsetInQueryLoop,\n\t} = useDispatch( blockStore( uniqueId ? uniqueId : newUniqueId ) );\n\n\t// Get current block data.\n\tconst {\n\t\tcurrentScreen,\n\t\tisUploading,\n\t\tisProcessingUpload,\n\t\tisUploadError,\n\t\tfilepondInstance,\n\t\thasCaption,\n\t\tcaptionPosition,\n\t\tinQueryLoop,\n\t\tphotoMode,\n\t\tblockUniqueId,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\tcurrentScreen: select( blockStore( uniqueId ? uniqueId : newUniqueId ) ).getCurrentScreen(),\n\t\t\tisUploading: select( blockStore( uniqueId ? uniqueId : newUniqueId ) ).isUploading(),\n\t\t\tisProcessingUpload: select( blockStore( uniqueId ? uniqueId : newUniqueId ) ).isProcessingUpload(),\n\t\t\tisUploadError: select( blockStore( uniqueId ? uniqueId : newUniqueId ) ).isUploadError(),\n\t\t\tfilepondInstance: select( blockStore( uniqueId ? uniqueId : newUniqueId ) ).getFilepondInstance(),\n\t\t\thasCaption: select( blockStore( uniqueId ? uniqueId : newUniqueId ) ).hasCaption(),\n\t\t\tcaptionPosition: select( blockStore( uniqueId ? uniqueId : newUniqueId ) ).getCaptionPosition(),\n\t\t\tinQueryLoop: select( blockStore( uniqueId ? uniqueId : newUniqueId ) ).inQueryLoop(),\n\t\t\tphotoMode: select( blockStore( uniqueId ? uniqueId : newUniqueId ) ).getPhotoMode(),\n\t\t\tblockUniqueId: select( blockStore( uniqueId ? uniqueId : newUniqueId ) ).getBlockUniqueId(),\n\t\t};\n\t} );\n\n\tconst blockProps = useBlockProps( {\n\t\tclassName: classnames(\n\t\t\t`dlx-photo-block`,\n\t\t\t`align${ align }`,\n\t\t\t`dlx-screen-${ currentScreen }`,\n\t\t\t`dlx-caption-position-${ captionPosition }`,\n\t\t\tglobalStyleCSSClassName,\n\t\t\t{\n\t\t\t\t'dlx-has-drop-shadow': photoDropShadow.enabled,\n\t\t\t},\n\t\t\tmodifierClassNames\n\t\t),\n\t} );\n\n\t// Set caption position attribute as captionPosition context is updated so the parent knows the caption position.\n\tuseEffect( () => {\n\t\tif ( props.attributes.captionPosition !== captionPosition ) {\n\t\t\tprops.setAttributes( { captionPosition } );\n\t\t}\n\t}, [ captionPosition ] );\n\n\t\n\n\t// Store the filepond upload ref.\n\tconst imageRef = useRef( null );\n\n\t// Set caption innerblocks classes.\n\tconst captionInnerBlocksClasses = classnames(\n\t\t'dlx-photo-block__caption', {\n\t\t\t'dlx-photo-block__caption--has-overlay': 'overlay' === captionPosition,\n\t\t}\n\t);\n\tconst captionInnerBlockProps = useInnerBlocksProps(\n\t\t{\n\t\t\tclassName: captionInnerBlocksClasses,\n\t\t},\n\t\t{\n\t\t\tallowedBlocks: [ 'dlxplugins/photo-caption-block' ],\n\t\t\ttemplateInsertUpdatesSelection: true,\n\t\t\trenderAppender: () => ( isSelected ? : null ),\n\t\t}\n\t);\n\n\t// Set data mode when setting or exiting data mode.\n\t// useEffect( () => {\n\t// \tsetAttributes( {\n\t// \t\tphotoMode,\n\t// \t} );\n\t// }, [ photoMode ] );\n\n\t/**\n\t * Get the screen to display.\n\t *\n\t * @return {Element} The screen to display.\n\t */\n\tconst initCurrentScreen = () => {\n\t\t// Don't load interface until uniqueId's are set. We need this to get block state later.\n\t\tif ( null === uniqueId || null === blockUniqueId ) {\n\t\t\treturn null;\n\t\t}\n\t\t// Otherwise get the screen based on the current screen.\n\t\tswitch ( currentScreen ) {\n\t\t\tcase 'loading':\n\t\t\t\treturn ;\n\t\t\tcase 'initial':\n\t\t\t\treturn ;\n\t\t\tcase 'edit':\n\t\t\t\treturn ;\n\t\t\tcase 'crop':\n\t\t\t\treturn ;\n\t\t\tcase 'featuredImage':\n\t\t\t\treturn ;\n\t\t\tcase 'effects':\n\t\t\t\treturn null;\n\t\t\t\t// return (\n\t\t\t\t// \t\n\t\t\t\t// );\n\t\t}\n\t\treturn null;\n\t};\n\n\tconst { preview } = attributes;\n\tif ( preview ) {\n\t\treturn (\n\t\t\t
\n\t\t\t\t{\n\t\t\t
\n\t\t);\n\t}\n\n\tconst block = (\n\t\t<>\n\t\t\t
\n\t\t\t\t{ resizeListener }\n\t\t\t\t{ initCurrentScreen() }\n\t\t\t
\n\t\t\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t
{ block }
\n\t\t\n\t);\n};\n\nexport default PhotoBlock;\n","export const redoSvg = '';\nexport const processSvg = '';","import metadata from './block.json';\nimport { registerBlockType, createBlock } from '@wordpress/blocks';\nimport { InnerBlocks } from '@wordpress/block-editor';\nimport Edit from './edit';\nimport PhotoBlockIcon from '../../components/Icons/PhotoBlockIcon';\n\nregisterBlockType( metadata, {\n\ticon: PhotoBlockIcon,\n\tedit: Edit,\n\n\t// Render via PHP\n\tsave() {\n\t\treturn ;\n\t},\n\ttransforms: {\n\t\tfrom: [\n\t\t\t{\n\t\t\t\ttype: 'enter',\n\t\t\t\tregExp: /^photoblock$/,\n\t\t\t\ttransform: () => createBlock( 'dlxplugins/photo-block' ),\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: 'block',\n\t\t\t\tblocks: [ 'core/image' ],\n\t\t\t\ttransform: ( attributes ) => {\n\t\t\t\t\tconst imageData = {\n\t\t\t\t\t\tid: attributes.id,\n\t\t\t\t\t\turl: attributes.url,\n\t\t\t\t\t\talt: attributes.alt,\n\t\t\t\t\t\tfull: attributes.url,\n\t\t\t\t\t\twidth: attributes.width,\n\t\t\t\t\t\theight: attributes.height,\n\t\t\t\t\t\ttitle: '',\n\t\t\t\t\t\tcaption: attributes.caption,\n\t\t\t\t\t};\n\t\t\t\t\tconst imageAttributes = {\n\t\t\t\t\t\tphotoMode: 'photo',\n\t\t\t\t\t\tscreen: 'loading',\n\t\t\t\t\t\timageData,\n\t\t\t\t\t};\n\t\t\t\t\treturn createBlock( 'dlxplugins/photo-block', imageAttributes );\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t\tto: [],\n\t},\n} );\n","import { getValueWithUnit, buildDimensionsCSS, buildBorderCSS, geHierarchicalPlaceholderValue, getHierarchicalValueUnit } from '../../utils/TypographyHelper';\nimport hexToRgba from 'hex-to-rgba';\nimport rgb2hex from 'rgb2hex';\nimport { escapeEditableHTML } from '@wordpress/escape-html';\nimport { isURL } from '@wordpress/url';\n\nconst getCaptionStyles = ( attributes, deviceType, uniqueId, useClass = false ) => {\n\t// If attributes are empty, return empty string.\n\tif ( attributes.length === 0 ) {\n\t\treturn '';\n\t}\n\tconst {\n\t\tcontainerWidth,\n\t\tcontainerHeight,\n\t\tcontainerMinWidth,\n\t\tcontainerMinHeight,\n\t\tcontainerMaxWidth,\n\t\tcaptionBackgroundColor,\n\t\tcaptionPaddingSize,\n\t\tcaptionMarginSize,\n\t\tcaptionBorderRadius,\n\t\tcaptionBorder,\n\t\tcaptionTextColor,\n\t\tcaptionTypography,\n\t\tcaptionAlign,\n\t\tcaptionLinkColor,\n\t\tcaptionLinkHoverColor,\n\t\tcaptionAccentColor,\n\t\tcaptionSecondaryColor,\n\t\tcaptionTextFontFamily,\n\t\tcaptionHeadingsFontFamily,\n\t\tcaptionBaseFontSize,\n\t\toverlayBackgroundType,\n\t\toverlayBackgroundColor,\n\t\toverlayBackgroundColorHover,\n\t\toverlayBackgroundGradient,\n\t\toverlayBackgroundGradientOpacity,\n\t\toverlayBackgroundGradientOpacityHover,\n\t\toverlayBackgroundImage,\n\t\toverlayBorderRadius,\n\t\toverlayBorder,\n\t\tmode,\n\t\tphotoMode,\n\t\tcaptionPosition,\n\t\tenableSmartStyles,\n\t} = attributes;\n\tlet styles = `\n\t\tfigcaption${ useClass ? '.' : '#' }${ uniqueId } {\n\t\t\t--photo-block-caption-width: ${ getValueWithUnit( deviceType, containerWidth, 'width' ) }\n\t\t\t--photo-block-caption-height: ${ getValueWithUnit( deviceType, containerHeight, 'height' ) }\n\t\t\t--photo-block-caption-min-width: ${ getValueWithUnit( deviceType, containerMinWidth, 'min-width' ) }\n\t\t\t--photo-block-caption-min-height: ${ getValueWithUnit( deviceType, containerMinHeight, 'min-height' ) }\n\t\t\t--photo-block-caption-max-width: ${ getValueWithUnit( deviceType, containerMaxWidth, 'max-width' ) }\n\t\t}\n\t\tfigcaption${ useClass ? '.' : '#' }${ uniqueId } {\n\t\t\t--photo-block-caption-padding: ${ buildDimensionsCSS( captionPaddingSize, deviceType ) };\n\t\t\t--photo-block-caption-margin: ${ buildDimensionsCSS( captionMarginSize, deviceType ) };\n\t\t\t--photo-block-caption-border-radius: ${ buildDimensionsCSS( captionBorderRadius, deviceType ) };\n\t\t\t--photo-block-caption-padding: ${ buildDimensionsCSS( captionPaddingSize, deviceType ) };\n\t\t\t--photo-block-caption-margin: ${ buildDimensionsCSS( captionMarginSize, deviceType ) };\n\t\t\t--photo-block-caption-border-radius: ${ buildDimensionsCSS( captionBorderRadius, deviceType ) };\n\t\t\t${ buildBorderCSS( captionBorder, deviceType, '--photo-block-caption' ) };\n\t\t}\n\t`;\n\n\tif ( enableSmartStyles || 'single' === mode || 'data' === photoMode || 'featuredImage' === photoMode ) {\n\t\tstyles += `\n\t\t\tfigcaption${ useClass ? '.' : '#' }${ uniqueId } {\n\t\t\t\t--photo-block-caption-background-color: ${ captionBackgroundColor };\n\t\t\t}`;\n\t}\n\n\t// Set colors and typography for single caption mode and data mode.\n\tif ( 'single' === mode || 'data' === photoMode || 'featuredImage' === photoMode ) {\n\t\tstyles += `\n\t\t\tfigcaption${ useClass ? '.' : '#' }${ uniqueId } {\n\t\t\t\t--photo-block-caption-text-color: ${ captionTextColor };\n\t\t\t\t--photo-block-caption-font-size: ${ geHierarchicalPlaceholderValue( captionTypography, deviceType, captionTypography[ deviceType ].fontSize, 'fontSize' ) }${ getHierarchicalValueUnit( captionTypography, deviceType, captionTypography[ deviceType ].fontSizeUnit, 'fontSizeUnit' ) };\n\t\t\t\t--photo-block-caption-font-weight: ${ geHierarchicalPlaceholderValue( captionTypography, deviceType, captionTypography[ deviceType ].fontWeight, 'fontWeight' ) };\n\t\t\t\t--photo-block-caption-line-height: ${ geHierarchicalPlaceholderValue( captionTypography, deviceType, captionTypography[ deviceType ].lineHeight, 'lineHeight' ) }${ getHierarchicalValueUnit( captionTypography, deviceType, captionTypography[ deviceType ].lineHeightUnit, 'lineHeightUnit' ) };\n\t\t\t\t--photo-block-caption-text-transform: ${ geHierarchicalPlaceholderValue( captionTypography, deviceType, captionTypography[ deviceType ].textTransform, 'textTransform' ) };\n\t\t\t\t--photo-block-caption-letter-spacing: ${ geHierarchicalPlaceholderValue( captionTypography, deviceType, captionTypography[ deviceType ].letterSpacing, 'letterSpacing' ) }${ getHierarchicalValueUnit( captionTypography, deviceType, captionTypography[ deviceType ].letterSpacingUnit, 'letterSpacingUnit' ) };\n\t\t\t\t--photo-block-caption-text-align: ${ captionAlign };\n\t\t\t}\n\t\t\tfigcaption${ useClass ? '.' : '#' }${ uniqueId } a {\n\t\t\t\t--photo-block-caption-link-color: ${ captionLinkColor };\n\t\t\t}\n\t\t\tfigcaption${ useClass ? '.' : '#' }${ uniqueId } a:hover {\n\t\t\t\t--photo-block-caption-link-color-hover: ${ captionLinkHoverColor };\n\t\t\t}\n\t\t`;\n\t}\n\t// Add custom caption.\n\tif ( 'custom' === captionTypography[ deviceType ].fontFamilySlug ) {\n\t\tstyles += `\n\t\t\tfigcaption${ useClass ? '.' : '#' }${ uniqueId } {\n\t\t\t\t--photo-block-caption-font-family: ${ captionTypography?.captionCustomTypography };\n\t\t\t}\n\t\t`;\n\t} else {\n\t\tstyles += `\n\t\t\tfigcaption${ useClass ? '.' : '#' }${ uniqueId } {\n\t\t\t\t--photo-block-caption-font-family: ${ geHierarchicalPlaceholderValue( captionTypography, deviceType, captionTypography[ deviceType ].fontFamily, 'fontFamily' ) };\n\t\t\t}\n\t\t`;\n\t}\n\n\t// Set colors and typography for advanced caption mode.\n\tif ( 'advanced' === mode && 'data' !== photoMode && 'featuredImage' !== photoMode && enableSmartStyles ) {\n\t\tstyles += `\n\t\t\tfigcaption${ useClass ? '.' : '#' }${ uniqueId } {\n\t\t\t\t--photo-block-caption-text-color: ${ captionTextColor };\n\t\t\t\t--photo-block-caption-link-color: ${ captionAccentColor };\n\t\t\t\t--photo-block-caption-link-color-hover: ${ captionSecondaryColor };\n\t\t\t\t--photo-block-caption-font-family: ${ captionTextFontFamily };\n\t\t\t\t--photo-block-caption-headings-font-family: ${ captionHeadingsFontFamily };\n\t\t\t\t--photo-block-caption-font-size: ${ geHierarchicalPlaceholderValue( captionBaseFontSize, deviceType, captionBaseFontSize[ deviceType ].value, 'value' ) }${ getHierarchicalValueUnit( captionBaseFontSize, deviceType, captionBaseFontSize[ deviceType ].unit, 'unit' ) };\n\t\t\t}\n\t\t`;\n\t}\n\n\t// Set overlay background color if gradient.\n\tif ( 'overlay' === captionPosition && 'solid' === overlayBackgroundType ) {\n\t\tstyles += `\n\t\t\t${ useClass ? '.' : '#' }${ uniqueId }.dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-background-color: ${ overlayBackgroundColor };\n\t\t\t}\n\t\t\t${ useClass ? '.' : '#' }${ uniqueId }.dlx-photo-block__caption-overlay:hover:before {\n\t\t\t\t--photo-block-caption-overlay-background-color-hover: ${ overlayBackgroundColorHover };\n\t\t\t}\n\t\t`;\n\n\t\t// The overlay background container needs to match overlay border radius in order to simulate masking.\n\t\tstyles += `\n\t\t\t${ useClass ? '.' : '#' }${ uniqueId }.dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-border-radius: ${ buildDimensionsCSS( overlayBorderRadius, deviceType ) };\n\t\t\t}\n\t\t`;\n\t}\n\n\t// Set overlay background color if gradient.\n\tif ( 'overlay' === captionPosition && 'gradient' === overlayBackgroundType ) {\n\t\tstyles += `\n\t\t\t${ useClass ? '.' : '#' }${ uniqueId }.dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-background-gradient: ${ overlayBackgroundGradient };\n\t\t\t\t--photo-block-caption-overlay-background-gradient-opacity: ${ overlayBackgroundGradientOpacity };\n\t\t\t\tz-index: 1;\n\t\t\t}\n\t\t\t${ useClass ? '.' : '#' }${ uniqueId }.dlx-photo-block__caption-overlay:hover:before {\n\t\t\t\t--photo-block-caption-overlay-background-gradient-opacity-hover: ${ overlayBackgroundGradientOpacityHover };\n\t\t\t}\n\t\t`;\n\n\t\t// The overlay background container needs to match overlay border radius in order to simulate masking.\n\t\tstyles += `\n\t\t\t${ useClass ? '.' : '#' }${ uniqueId }.dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-border-radius: ${ buildDimensionsCSS( overlayBorderRadius, deviceType ) };\n\t\t\t}\n\t\t`;\n\t}\n\n\n\t// Set overlay background color if background image.\n\tif ( 'overlay' === captionPosition && 'image' === overlayBackgroundType && isURL( overlayBackgroundImage.url ) ) {\n\t\tstyles += `\n\t\t\t${ useClass ? '.' : '#' }${ uniqueId }.dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-background-color: ${ overlayBackgroundImage.backgroundColor };\n\t\t\t\t--photo-block-caption-overlay-background-image-url: url('${ decodeURIComponent( encodeURIComponent( overlayBackgroundImage.url ) ) } ');\n\t\t\t\t--photo-block-caption-overlay-background-image-position: ${ escapeEditableHTML( overlayBackgroundImage.backgroundPosition ) };\n\t\t\t\t--photo-block-caption-overlay-background-image-repeat: ${ escapeEditableHTML( overlayBackgroundImage.backgroundRepeat ) };\n\t\t\t\t--photo-block-caption-overlay-background-image-size: ${ escapeEditableHTML( overlayBackgroundImage.backgroundSize ) };\n\t\t\t\t--photo-block-caption-overlay-background-image-opacity: ${ parseFloat( overlayBackgroundImage.backgroundOpacity ) };\n\t\t\t}\n\t\t\t${ useClass ? '.' : '#' }${ uniqueId }.dlx-photo-block__caption-overlay:hover:before {\n\t\t\t\t--photo-block-caption-overlay-background-image-opacity-hover: ${ parseFloat( overlayBackgroundImage.backgroundOpacityHover ) };\n\t\t\t}\n\t\t`;\n\t\t// The overlay background container needs to match overlay border radius in order to simulate masking.\n\t\tstyles += `\n\t\t\t${ useClass ? '.' : '#' }${ uniqueId }.dlx-photo-block__caption-overlay:before {\n\t\t\t\t--photo-block-caption-overlay-border-radius: ${ buildDimensionsCSS( overlayBorderRadius, deviceType ) };\n\t\t\t}\n\t\t`;\n\t}\n\n\t// Set overlay padding, border, and border radius.\n\tif ( 'overlay' === captionPosition ) {\n\t\tstyles += `\n\t\t\t${ useClass ? '.' : '#' }${ uniqueId }.dlx-photo-block__caption-overlay {\n\t\t\t\t--photo-block-caption-overlay-border-radius: ${ buildDimensionsCSS( captionBorderRadius, deviceType ) };\n\t\t\t\t${ buildBorderCSS( overlayBorder, deviceType, '--photo-block-caption' ) }\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\t\t`;\n\t}\n\n\treturn styles;\n};\n\nexport default getCaptionStyles;\n","import './editor.scss';\n\nimport classnames from 'classnames';\nimport { useEffect, useState, useRef } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport { escapeEditableHTML } from '@wordpress/escape-html';\nimport { applyFilters } from '@wordpress/hooks';\nimport {\n\tBaseControl,\n\tPanelBody,\n\tPanelRow,\n\tSelectControl,\n\tButtonGroup,\n\tButton,\n\tToggleControl,\n\tToolbarButton,\n\tToolbarGroup,\n\tModal,\n\tPopover,\n\tMenuGroup,\n\tSpinner,\n\tRangeControl,\n\tMenuItem,\n\tTextControl,\n} from '@wordpress/components';\n\nimport {\n\tuseSettings,\n\tInspectorControls,\n\tInspectorAdvancedControls,\n\tRichText,\n\tuseBlockProps,\n\tBlockControls,\n\tuseInnerBlocksProps,\n\tInnerBlocks,\n\tstore,\n} from '@wordpress/block-editor';\n\nimport {\n\tuseDispatch,\n\tuseSelect,\n} from '@wordpress/data';\n\nimport {\n\tTrash2,\n\tSeparatorHorizontal,\n\tCheck,\n\tShrink,\n\tInfo,\n\tFormInput,\n\tMaximize,\n\tAlignLeft,\n\tAlignCenter,\n\tAlignRight,\n\tShuffle,\n} from 'lucide-react';\n\nconst HtmlToReactParser = require( 'html-to-react' ).Parser;\n\nimport { blockStore } from '../../store';\nimport DimensionsResponsiveControl from '../../components/DimensionsResponsive';\nimport BorderResponsiveControl from '../../components/BorderResponsive';\nimport SizeResponsiveControl from '../../components/SizeResponsive';\nimport useDeviceType from '../../hooks/useDeviceType';\nimport SendCommand from '../../utils/SendCommand';\nimport TypographyControl from '../../components/Typography';\nimport ColorPickerControl from '../../components/ColorPicker';\nimport GradientPickerControl from '../../components/GradientPicker';\nimport getRandomGradient from '../../utils/GetRandomGradient';\nimport RangeResponsiveControl from '../../components/RangeResponsive';\nimport BackgroundSelectorControl from '../../components/BackgroundSelector';\nimport CustomAttributesControl from '../../components/CustomAttributes';\nimport getStyles from './block-styles';\nimport globalStylesStore from '../../store/global-styles';\nimport Notice from '../../components/Notice';\nimport GlobalStyles from '../../components/GlobalStyles';\nconst canSavePresets = photoBlockUser.canSavePresets;\n\n/**\n * Height units.\n */\nconst heightUnits = [ 'px', 'em', 'rem', '%', 'vh' ];\n\nconst fontFamilies = [\n\t{\n\t\tlabel: 'Arial',\n\t\tfamily: 'Arial, sans-serif',\n\t\tslug: 'arial',\n\t\tfallback: 'sans-serif',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tlabel: 'Courier New',\n\t\tfamily: 'Courier New, monospace',\n\t\tslug: 'courier-new',\n\t\tfallback: 'monospace',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tlabel: 'Garamond',\n\t\tfamily: 'Garamond, serif',\n\t\tslug: 'garamond',\n\t\tfallback: 'serif',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tlabel: 'Georgia',\n\t\tfamily: 'Georgia, serif',\n\t\tslug: 'georgia',\n\t\tfallback: 'serif',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tlabel: 'Helvetica',\n\t\tfamily: 'Helvetica, sans-serif',\n\t\tslug: 'helvetica',\n\t\tfallback: 'sans-serif',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tlabel: 'Lucida Console',\n\t\tfamily: 'Lucida Console, monospace',\n\t\tslug: 'lucida-console',\n\t\tfallback: 'monospace',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tlabel: 'Tahoma',\n\t\tfamily: 'Tahoma, sans-serif',\n\t\tslug: 'tahoma',\n\t\tfallback: 'sans-serif',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tlabel: 'Times New Roman',\n\t\tfamily: 'Times New Roman, serif',\n\t\tslug: 'times-new-roman',\n\t\tfallback: 'serif',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tlabel: 'Trebuchet MS',\n\t\tfamily: 'Trebuchet MS, sans-serif',\n\t\tslug: 'trebuchet-ms',\n\t\tfallback: 'sans-serif',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tlabel: 'Verdana',\n\t\tfamily: 'Verdana, sans-serif',\n\t\tslug: 'verdana',\n\t\tfallback: 'sans-serif',\n\t\ttype: 'web',\n\t},\n];\n\nconst PhotoCaptionBlock = ( props ) => {\n\tconst {\n\t\tsetAttributes,\n\t\tclientId,\n\t\tcontext,\n\t\tisSelected,\n\t} = props;\n\n\tconst blockUniqueId = context[ 'photo-block/uniqueId' ];\n\tconst globalStyle = context[ 'photo-block/globalStyle' ];\n\n\tlet attributes = props.attributes || {};\n\n\t// Apply filters to attributes.\n\tuseEffect( () => {\n\t\tconst oldAttrs = { ...props.attributes };\n\t\tattributes = applyFilters( 'dlx_photo_block_attributes', props.attributes, globalStyle, clientId, 'caption' );\n\n\t\t// Determine if caption position changed.\n\t\tif ( oldAttrs.captionPosition !== attributes.captionPosition ) {\n\t\t\tsetCaptionPosition( attributes.captionPosition );\n\t\t}\n\t\t// Determine if mode has changed.\n\t\tif ( oldAttrs.mode !== attributes.mode ) {\n\t\t\tsetAttributes( { mode: attributes.mode } );\n\t\t}\n\t}, [ props.attributes, globalStyle ] );\n\n\tconst {\n\t\tsetCaptionPosition,\n\t\tsetHasCaption,\n\t} = useDispatch( blockStore( blockUniqueId ) );\n\n\t// Get current block data.\n\tconst {\n\t\timageData,\n\t\tcaptionPosition,\n\t\tinQueryLoop,\n\t\tphotoMode,\n\t\tcurrentScreen,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\timageData: select( blockStore( blockUniqueId ) ).getImageData(),\n\t\t\tcaptionPosition: select( blockStore( blockUniqueId ) ).getCaptionPosition(),\n\t\t\tinQueryLoop: select( blockStore( blockUniqueId ) ).inQueryLoop(),\n\t\t\tphotoMode: select( blockStore( blockUniqueId ) ).getPhotoMode(),\n\t\t\tcurrentScreen: select( blockStore( blockUniqueId ) ).getCurrentScreen(),\n\t\t};\n\t} );\n\n\tconst globalStyleCSSClassName = useSelect( ( select ) => {\n\t\tconst maybeGlobalStyle = select( globalStylesStore ).getGlobalStyleBySlug( globalStyle );\n\t\tif ( Object.keys( maybeGlobalStyle ).length === 0 ) {\n\t\t\treturn '';\n\t\t}\n\t\treturn {\n\t\t\tglobalStyleCSSClassName: maybeGlobalStyle?.css_class || '',\n\t\t};\n\t} );\n\n\t// Get global style data.\n\tconst {\n\t\thasGlobalStyle,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\thasGlobalStyle: select( globalStylesStore ).hasGlobalStyle,\n\t\t};\n\t} );\n\n\tconst [ caption, setCaption ] = useState( '' ); // Only applicable if in data mode.\n\tconst [ captionLoading, setCaptionLoading ] = useState( false ); // Only applicable if in data mode.\n\tconst [ captionPositionPopoverVisible, setCaptionPositionPopoverVisible ] = useState( false );\n\tconst [ captionPopoverRef, setCaptionPopoverRef ] = useState( null );\n\tconst [ modePopoverRef, setModePopoverRef ] = useState( null );\n\tconst [ modePopoverVisible, setModePopoverVisible ] = useState( false );\n\tconst [ removeCaptionModalVisible, setRemoveCaptionModalVisible ] = useState( false ); // only applicable if in data mode.\n\tconst [ dataModalVisible, setDataModalVisible ] = useState( false ); // only applicable if in data mode.\n\tconst [ switchModeModalVisible, setSwitchModeModalVisible ] = useState( false ); // only applicable if in data mode.\n\tconst [ isCaptionVisible, setIsCaptionVisible ] = useState( false ); // Make sure caption is positioned correctly before visible render.\n\tconst [ captionInputRef, setCaptionInputRef ] = useState( null );\n\n\t// Set caption position context based on captionPosition attribute. After setting, show the caption.\n\tuseEffect( () => {\n\t\tsetCaptionPosition( attributes.captionPosition ); // Caption position can be top|bottom|overlay\n\t\tsetIsCaptionVisible( true );\n\t}, [ attributes.captionPosition ] );\n\n\tconst { removeBlocks } = useDispatch( store );\n\n\t// Get device.\n\tconst [ deviceType, setDeviceType ] = useDeviceType( 'Desktop' );\n\n\tconst blockProps = useBlockProps( {\n\t\tclassName: classnames(\n\t\t\t`dlx-photo-caption-block`,\n\t\t),\n\t} );\n\n\t// Get query loop vars.\n\tconst { postId } = context;\n\n\tconst uniqueId = blockUniqueId;\n\n\tconst {\n\t\tmode,\n\t\tcaptionManual,\n\t\tenableSmartStyles,\n\t\tcaptionBaseFontSize,\n\t\tcaptionBackgroundColor,\n\t\tcaptionBackgroundColorOpacity,\n\t\tcaptionTextColor,\n\t\tcaptionAccentColor,\n\t\tcaptionSecondaryColor,\n\t\tcaptionLinkColor,\n\t\tcaptionLinkHoverColor,\n\t\tcaptionAlign,\n\t\tcaptionPaddingSize,\n\t\tcaptionMarginSize,\n\t\tcaptionTextFontFamily,\n\t\tcaptionHeadingsFontFamily,\n\t\tcaptionTypography,\n\t\tcaptionCustomTypography,\n\t\tcaptionBorder,\n\t\tcaptionBorderRadius,\n\t\tcontainerWidth,\n\t\tcontainerHeight,\n\t\tcontainerMaxWidth,\n\t\tcontainerMinWidth,\n\t\tcontainerMaxHeight,\n\t\tcontainerMinHeight,\n\t\toverlayVerticalPosition,\n\t\toverlayCaptionVerticalPosition,\n\t\toverlayHorizontalPosition,\n\t\toverlayCaptionHorizontalPosition,\n\t\toverlayBackgroundType,\n\t\toverlayBackgroundColor,\n\t\toverlayBackgroundColorHover,\n\t\toverlayBackgroundColorOpacity,\n\t\toverlayBackgroundColorOpacityHover,\n\t\toverlayBorder,\n\t\toverlayBorderRadius,\n\t\toverlayBackgroundGradient,\n\t\toverlayBackgroundGradientOpacity,\n\t\toverlayBackgroundGradientOpacityHover,\n\t\toverlayBackgroundImage,\n\t\toverlayDisplayOnHover,\n\t\toverlayDisplayAnimation,\n\t\thtmlAnchor,\n\t\tcaptionCSSClasses,\n\t\thideOnMobile,\n\t\thideOnTablet,\n\t\thideOnDesktop,\n\t} = attributes;\n\n\tconst innerBlockProps = useInnerBlocksProps(\n\t\t{\n\t\t\tclassName: classnames( `dlx-photo-caption-block__inner-blocks dlx-photo-block__caption-inner dlx-photo-block__caption ${ globalStyle }`, {\n\t\t\t\t'has-smart-styles': ( 'advanced' === mode && 'data' !== photoMode && 'featuredImage' !== photoMode && enableSmartStyles ),\n\t\t\t} ),\n\t\t},\n\t\t{\n\t\t\tallowedBlocks: photoBlock.captionInnerBlocks,\n\t\t\ttemplate: [ [ 'core/paragraph', { align: 'center', placeholder: __( 'Enter your caption here.', 'photo-block' ) } ] ],\n\t\t\ttemplateInsertUpdatesSelection: true,\n\t\t\ttemplateLock: false,\n\t\t\trenderAppender: InnerBlocks.DefaultBlockAppender,\n\t\t}\n\t);\n\t/**\n\t * Get a post ID either from the block or attribute.\n\t *\n\t * @return {number} The post ID.\n\t */\n\tconst getPostId = () => {\n\t\tlet currentPostId = 0;\n\t\tif ( inQueryLoop ) {\n\t\t\tcurrentPostId = postId;\n\t\t} else {\n\t\t\tcurrentPostId = wp.data.select( 'core/editor' ).getCurrentPostId();\n\t\t}\n\t\treturn currentPostId;\n\t};\n\n\t/**\n\t * Retrieve a caption from data.\n\t */\n\tconst getCaptionFromData = () => {\n\t\tsetCaptionLoading( true );\n\t\tSendCommand(\n\t\t\tphotoBlock.restNonce,\n\t\t\t{\n\t\t\t\tpostId: getPostId(),\n\t\t\t},\n\t\t\t`${ photoBlock.restUrl + '/get-caption-by-post-id' }`,\n\t\t\t'POST'\n\t\t)\n\t\t\t.then( ( response ) => {\n\t\t\t\tconst { data, success } = response.data;\n\t\t\t\tif ( ! success ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsetCaption( data.caption );\n\t\t\t} )\n\t\t\t.catch( ( error ) => {\n\t\t\t\t// todo: error checking/display.\n\t\t\t} )\n\t\t\t.then( () => {\n\t\t\t\tsetCaptionLoading( false );\n\t\t\t} );\n\t};\n\n\t// Do REST request to get dynamic caption if needed.\n\tuseEffect( () => {\n\t\tif ( 'featuredImage' === currentScreen ) {\n\t\t\tgetCaptionFromData();\n\t\t}\n\t\tif ( imageData.id === 0 ) {\n\n\t\t}\n\t}, [ photoMode, imageData, globalStyle ] );\n\n\t// Select the richtext input and focus on it if block is selected and mode is single line.\n\tuseEffect( () => {\n\t\tif ( 'single' === mode && isSelected && null !== captionInputRef ) {\n\t\t\tcaptionInputRef.focus();\n\t\t}\n\t}, [ isSelected, captionInputRef ] );\n\n\tconst [ blockFontFamilies, setBlockFamilies ] = useState( fontFamilies );\n\n\tconst [ blockLevelFontFamilies ] = useSettings( 'typography.fontFamilies' );\n\n\tuseEffect( () => {\n\t\tif ( blockLevelFontFamilies ) {\n\t\t\tconst themeFontFamilies = [];\n\t\t\tconst { theme } = blockLevelFontFamilies;\n\t\t\ttheme.forEach( ( font ) => {\n\t\t\t\tthemeFontFamilies.push( {\n\t\t\t\t\tlabel: font.name,\n\t\t\t\t\tvalue: font.fontFamily,\n\t\t\t\t} );\n\t\t\t} );\n\t\t\tconst mergedFontFamilies = blockFontFamilies.concat( themeFontFamilies );\n\t\t\t/**\n\t\t\t * Filter: Filter the font families available for the block.\n\t\t\t *\n\t\t\t * @param {Array} fontFamilies - The font families.\n\t\t\t */\n\t\t\tsetBlockFamilies(\n\t\t\t\tapplyFilters(\n\t\t\t\t\t'dlx_photo_block_font_families',\n\t\t\t\t\tmergedFontFamilies\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}, [ blockLevelFontFamilies ] );\n\n\tconst settingsInspectorControls = (\n\t\t<>\n\t\t\t{ 'overlay' === captionPosition && (\n\t\t\t\t\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\toverlayVerticalPosition: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\toverlayHorizontalPosition: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\toverlayCaptionVerticalPosition: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\toverlayCaptionHorizontalPosition: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\toverlayDisplayOnHover: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\thelp={ __( 'Display the overlay only when the image is hovered over.', 'photo-block' ) }\n\t\t\t\t\t/>\n\t\t\t\t\t{\n\t\t\t\t\t\toverlayDisplayAnimation && (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\toverlayDisplayAnimation: value,\n\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\toverlayBackgroundType: 'none',\n\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'None', 'photo-block' ) }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\toverlayBackgroundType: 'solid',\n\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Solid', 'photo-block' ) }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\toverlayBackgroundType: 'gradient',\n\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Gradient', 'photo-block' ) }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\toverlayBackgroundType: 'image',\n\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Image', 'photo-block' ) }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t{ 'solid' === overlayBackgroundType && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { overlayBackgroundColor: newValue } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tonOpacityChange={ ( newOpacity ) => {\n\t\t\t\t\t\t\t\t\tsetAttributes( { overlayBackgroundColorOpacity: newOpacity } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tlabel={ __( 'Overlay Color', 'highlight-and-share' ) }\n\t\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\t\tdefaultColor={ 'rgba(0,0,0,0.5)' }\n\t\t\t\t\t\t\t\tslug={ 'overlay-background-color' }\n\t\t\t\t\t\t\t\talpha={ true }\n\t\t\t\t\t\t\t\topacity={ overlayBackgroundColorOpacity }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { overlayBackgroundColorHover: newValue } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tonOpacityChange={ ( newOpacity ) => {\n\t\t\t\t\t\t\t\t\tsetAttributes( { overlayBackgroundColorOpacityHover: newOpacity } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tlabel={ __( 'Overlay Color (on Hover)', 'highlight-and-share' ) }\n\t\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\t\tdefaultColor={ 'rgba(0,0,0,0.5)' }\n\t\t\t\t\t\t\t\tslug={ 'overlay-background-color-hover' }\n\t\t\t\t\t\t\t\talpha={ true }\n\t\t\t\t\t\t\t\topacity={ overlayBackgroundColorOpacityHover }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\t{ 'gradient' === overlayBackgroundType && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\toverlayBackgroundGradient: getRandomGradient(),\n\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\ticon={ }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Generate Random Gradient', 'photo-block' ) }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { overlayBackgroundGradient: newValue } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tlabel={ __( 'Overlay Gradient', 'photo-block' ) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { overlayBackgroundGradientOpacity: newValue } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tmin={ 0 }\n\t\t\t\t\t\t\t\tmax={ 1 }\n\t\t\t\t\t\t\t\tstep={ 0.01 }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { overlayBackgroundGradientOpacityHover: newValue } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tmin={ 0 }\n\t\t\t\t\t\t\t\tmax={ 1 }\n\t\t\t\t\t\t\t\tstep={ 0.01 }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\t{ 'image' === overlayBackgroundType && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { overlayBackgroundImage: newValue } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( { overlayBorder: values } );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tlabelTop={ __( 'Top Border', 'photo-block' ) }\n\t\t\t\t\t\tlabelRight={ __( 'Right Border', 'photo-block' ) }\n\t\t\t\t\t\tlabelBottom={ __( 'Bottom Border', 'photo-block' ) }\n\t\t\t\t\t\tlabelLeft={ __( 'Left Border', 'photo-block' ) }\n\t\t\t\t\t\tlabelAll={ __( 'Change Border', 'photo-block' ) }\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( { overlayBorderRadius: values } );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tlabelTop={ __( 'Top-left Radius', 'photo-block' ) }\n\t\t\t\t\t\tlabelRight={ __( 'Top-right Radius', 'photo-block' ) }\n\t\t\t\t\t\tlabelBottom={ __( 'Bottom-right Radius', 'photo-block' ) }\n\t\t\t\t\t\tlabelLeft={ __( 'Bottom-left Radius', 'photo-block' ) }\n\t\t\t\t\t\tlabelAll={ __( 'Change Border Radius', 'photo-block' ) }\n\t\t\t\t\t\tisBorderRadius={ true }\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t) }\n\t\t\t\n\t\t\t\t{ ( 'data' === photoMode || 'single' === mode || 'featuredImage' === photoMode ) && (\n\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\tcaptionTypography: formValues,\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tlabel={ __( 'Caption Typography', 'photo-block' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\t{ 'advanced' === mode && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { enableSmartStyles: newValue } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\thelp={ __( 'Enable smart styles to style the individual elements of the caption.', 'photo-block' ) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\t{ enableSmartStyles && (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { captionTextFontFamily: newValue } );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\toptions={ blockFontFamilies }\n\t\t\t\t\t\t\t\t\thelp={ __( 'Set the font family for common elements such as paragraphs and quotes.', 'photo-block' ) }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { captionHeadingsFontFamily: newValue } );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\toptions={ blockFontFamilies }\n\t\t\t\t\t\t\t\t\thelp={ __( 'Set the font family for heading elements.', 'photo-block' ) }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { captionBaseFontSize: newValues } );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tmin={ 0 }\n\t\t\t\t\t\t\t\t\tmax={ 36 }\n\t\t\t\t\t\t\t\t\tstep={ 1 }\n\t\t\t\t\t\t\t\t\tunits={ [ 'px' ] }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { captionBackgroundColor: newValue } );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tonOpacityChange={ ( newOpacity ) => {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { captionBackgroundColorOpacity: newOpacity } );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tlabel={ __( 'Background Color', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\t\t\tdefaultColor={ 'transparent' }\n\t\t\t\t\t\t\t\t\tslug={ 'background-color-caption' }\n\t\t\t\t\t\t\t\t\talpha={ true }\n\t\t\t\t\t\t\t\t\topacity={ captionBackgroundColorOpacity }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { captionTextColor: newValue } );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tlabel={ __( 'Text Color', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\t\t\tdefaultColor={ 'transparent' }\n\t\t\t\t\t\t\t\t\tslug={ 'text-color-caption' }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { captionAccentColor: newValue } );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tlabel={ __( 'Accent Color', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\t\t\tdefaultColor={ 'transparent' }\n\t\t\t\t\t\t\t\t\tslug={ 'accent-color-caption' }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { captionSecondaryColor: newValue } );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tlabel={ __( 'Secondary Color', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\t\t\tdefaultColor={ 'transparent' }\n\t\t\t\t\t\t\t\t\tslug={ 'secondary-color-caption' }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) }\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\t{ ( 'data' === photoMode || 'single' === mode || 'featuredImage' === photoMode ) && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { captionBackgroundColor: newValue } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tonOpacityChange={ ( newOpacity ) => {\n\t\t\t\t\t\t\t\tsetAttributes( { captionBackgroundColorOpacity: newOpacity } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tlabel={ __( 'Background Color', 'photo-block' ) }\n\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\tdefaultColor={ 'transparent' }\n\t\t\t\t\t\t\tslug={ 'background-color-caption' }\n\t\t\t\t\t\t\talpha={ true }\n\t\t\t\t\t\t\topacity={ captionBackgroundColorOpacity }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { captionTextColor: newValue } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tlabel={ __( 'Text Color', 'photo-block' ) }\n\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\tdefaultColor={ 'transparent' }\n\t\t\t\t\t\t\tslug={ 'text-color-caption' }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { captionLinkColor: newValue } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tlabel={ __( 'Link Color', 'photo-block' ) }\n\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\tdefaultColor={ 'transparent' }\n\t\t\t\t\t\t\tslug={ 'link-color-caption' }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { captionLinkHoverColor: newValue } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tlabel={ __( 'Link Color (Hover)', 'photo-block' ) }\n\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\tdefaultColor={ 'transparent' }\n\t\t\t\t\t\t\tslug={ 'link-hover-color-caption' }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\n\t\t\n\t);\n\n\tconst advancedInspectorControls = (\n\t\t<>\n\t\t\t{\n\t\t\t\t! hasGlobalStyle( globalStyle ) && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { htmlAnchor: value } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\thelp={ __( 'Enter a word or two — without spaces — to make a unique web address just for this caption, called an \"anchor.\" Then, you\\'ll be able to link directly to this caption on your page.', 'photo-block' ) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { imageCSSClasses: value } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\thelp={ __( 'Add CSS class(es) directly to the figcaption tag.', 'photo-block' ) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { hideOnMobile: value } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\thelp={ __( 'Hide this photo on mobile devices.', 'photo-block' ) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { hideOnTablet: value } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\thelp={ __( 'Hide this photo on tablet devices.', 'photo-block' ) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { hideOnDesktop: value } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\thelp={ __( 'Hide this photo on desktop devices.', 'photo-block' ) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t{ canSavePresets && (\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t) }\n\t\t\n\t);\n\n\t// Set the local inspector controls.\n\tconst styleInspectorControls = (\n\t\t<>\n\t\t\t }\n\t\t\t\tclassName=\"photo-block__inspector-panel\"\n\t\t\t\tid=\"photo-block__photo-dimensions-styles\"\n\t\t\t\tuniqueId={ uniqueId }\n\t\t\t\tscrollAfterOpen={ false }\n\t\t\t>\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( { captionPaddingSize: values } );\n\t\t\t\t\t} }\n\t\t\t\t\tlabelTop={ __( 'Top Padding', 'photo-block' ) }\n\t\t\t\t\tlabelRight={ __( 'Right Padding', 'photo-block' ) }\n\t\t\t\t\tlabelBottom={ __( 'Bottom Padding', 'photo-block' ) }\n\t\t\t\t\tlabelLeft={ __( 'Left Padding', 'photo-block' ) }\n\t\t\t\t\tlabelAll={ __( 'Change Padding', 'photo-block' ) }\n\t\t\t\t/>\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( { captionMarginSize: values } );\n\t\t\t\t\t} }\n\t\t\t\t\tlabelTop={ __( 'Top Margin', 'photo-block' ) }\n\t\t\t\t\tlabelRight={ __( 'Right Margin', 'photo-block' ) }\n\t\t\t\t\tlabelBottom={ __( 'Bottom Margin', 'photo-block' ) }\n\t\t\t\t\tlabelLeft={ __( 'Left Margin', 'photo-block' ) }\n\t\t\t\t\tlabelAll={ __( 'Change Margin', 'photo-block' ) }\n\t\t\t\t\tallowNegatives={ true }\n\t\t\t\t/>\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( { captionBorder: values } );\n\t\t\t\t\t} }\n\t\t\t\t\tlabelTop={ __( 'Top Border', 'photo-block' ) }\n\t\t\t\t\tlabelRight={ __( 'Right Border', 'photo-block' ) }\n\t\t\t\t\tlabelBottom={ __( 'Bottom Border', 'photo-block' ) }\n\t\t\t\t\tlabelLeft={ __( 'Left Border', 'photo-block' ) }\n\t\t\t\t\tlabelAll={ __( 'Change Border', 'photo-block' ) }\n\t\t\t\t/>\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( { captionBorderRadius: values } );\n\t\t\t\t\t} }\n\t\t\t\t\tlabelTop={ __( 'Top-left Radius', 'photo-block' ) }\n\t\t\t\t\tlabelRight={ __( 'Top-right Radius', 'photo-block' ) }\n\t\t\t\t\tlabelBottom={ __( 'Bottom-right Radius', 'photo-block' ) }\n\t\t\t\t\tlabelLeft={ __( 'Bottom-left Radius', 'photo-block' ) }\n\t\t\t\t\tlabelAll={ __( 'Change Border Radius', 'photo-block' ) }\n\t\t\t\t\tisBorderRadius={ true }\n\t\t\t\t/>\n\n\t\t\t\n\t\t\t }\n\t\t\t\tclassName=\"photo-block__inspector-panel\"\n\t\t\t\tid=\"photo-block__photo-container-styles\"\n\t\t\t\tuniqueId={ uniqueId }\n\t\t\t\tscrollAfterOpen={ false }\n\t\t\t>\n\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( { containerWidth: newValues } );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( { containerHeight: newValues } );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( { containerMinWidth: newValues } );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( { containerMinHeight: newValues } );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( { containerMaxWidth: newValues } );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( { containerMaxHeight: newValues } );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n\n\tconst interfaceTabs = (\n\t\t<>\n\t\t\t{ ! hasGlobalStyle( globalStyle ) && (\n\t\t\t\t<>\n\t\t\t\t\t{ settingsInspectorControls }\n\t\t\t\t\t{ styleInspectorControls }\n\t\t\t\t\n\t\t\t) }\n\t\t\t{ hasGlobalStyle( globalStyle ) && (\n\t\t\t\t<>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t) }\n\t\t\n\t);\n\n\tconst localToolbar = (\n\t\t\n\t\t\t{\n\t\t\t\t( ( 'data' === photoMode || 'single' === mode || 'featuredImage' === photoMode ) && 'overlay' !== captionPosition ) && (\n\t\t\t\t\t\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\tlabel={ __( 'Align Left', 'photo-block' ) }\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tsetAttributes( { captionAlign: 'left' } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tisActive={ captionAlign === 'left' }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\tlabel={ __( 'Align Center', 'photo-block' ) }\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tsetAttributes( { captionAlign: 'center' } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tisActive={ captionAlign === 'center' }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\tlabel={ __( 'Align Right', 'photo-block' ) }\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tsetAttributes( { captionAlign: 'right' } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tisActive={ captionAlign === 'right' }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t)\n\t\t\t}\n\t\t\t{\n\t\t\t\t! hasGlobalStyle( globalStyle ) && (\n\t\t\t\t\t\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\tlabel={ __( 'Caption Position', 'photo-block' ) }\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tsetCaptionPositionPopoverVisible( true );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tref={ setCaptionPopoverRef }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Position', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t)\n\t\t\t}\n\t\t\t{ ( 'data' !== photoMode && 'featuredImage' !== photoMode && ! hasGlobalStyle( globalStyle ) ) && (\n\t\t\t\t\n\t\t\t\t\t }\n\t\t\t\t\t\tlabel={ __( 'Caption Mode', 'photo-block' ) }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\tsetModePopoverVisible( true );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tref={ setModePopoverRef }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Mode', 'photo-block' ) }\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t) }\n\t\t\t\n\t\t\t\t }\n\t\t\t\t\tlabel={ __( 'Remove Caption', 'photo-block' ) }\n\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\tsetRemoveCaptionModalVisible( true );\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Remove', 'photo-block' ) }\n\t\t\t\t\n\t\t\t\n\t\t\t{ switchModeModalVisible && (\n\t\t\t\t {\n\t\t\t\t\t\tsetSwitchModeModalVisible( false );\n\t\t\t\t\t} }\n\t\t\t\t\tclassName=\"photo-block__remove-caption-modal\"\n\t\t\t\t>\n\t\t\t\t\t
\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'single' === mode && (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t{ __( 'Switch to multi-line to enable a more freeform caption.', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t{ 'advanced' === mode && (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t{ __( 'Switch to a single-line caption format.', 'photo-block' ) }\n\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { mode: 'single' === mode ? 'advanced' : 'single' } );\n\t\t\t\t\t\t\t\t\tsetSwitchModeModalVisible( false );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ 'single' === mode ? __( 'Switch to Multi-Line', 'photo-block' ) : __( 'Switch to Single-Line', 'photo-block' ) }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetSwitchModeModalVisible( false );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Cancel', 'photo-block' ) }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\n\t\t\t) }\n\t\t\t{ modePopoverVisible && (\n\t\t\t\t {\n\t\t\t\t\t\tsetModePopoverVisible( false );\n\t\t\t\t\t} }\n\t\t\t\t\tanchor={ modePopoverRef }\n\t\t\t\t\tclassName=\"photo-block__caption-position-popover\"\n\t\t\t\t>\n\t\t\t\t\t\n\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tif ( 'single' === mode ) {\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsetModePopoverVisible( false );\n\t\t\t\t\t\t\t\tsetSwitchModeModalVisible( true );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Single Line', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tif ( 'advanced' === mode ) {\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsetModePopoverVisible( false );\n\t\t\t\t\t\t\t\tsetSwitchModeModalVisible( true );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Multiple Lines', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t) }\n\t\t\t{ captionPositionPopoverVisible && (\n\t\t\t\t {\n\t\t\t\t\t\tsetCaptionPositionPopoverVisible( false );\n\t\t\t\t\t} }\n\t\t\t\t\tanchor={ captionPopoverRef }\n\t\t\t\t\tclassName=\"photo-block__caption-position-popover\"\n\t\t\t\t>\n\t\t\t\t\t\n\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tsetCaptionPosition( 'top' );\n\t\t\t\t\t\t\t\tsetAttributes( { captionPosition: 'top' } );\n\t\t\t\t\t\t\t\tsetCaptionPositionPopoverVisible( false );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Top', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tsetCaptionPosition( 'overlay' );\n\t\t\t\t\t\t\t\tsetAttributes( { captionPosition: 'overlay' } );\n\t\t\t\t\t\t\t\tsetCaptionPositionPopoverVisible( false );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Overlay', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tsetCaptionPosition( 'bottom' );\n\t\t\t\t\t\t\t\tsetAttributes( { captionPosition: 'bottom' } );\n\t\t\t\t\t\t\t\tsetCaptionPositionPopoverVisible( false );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Bottom', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t) }\n\t\t\t{ removeCaptionModalVisible && (\n\t\t\t\t {\n\t\t\t\t\t\tsetHasCaption( false );\n\t\t\t\t\t\tsetRemoveCaptionModalVisible( false );\n\t\t\t\t\t} }\n\t\t\t\t\tclassName=\"photo-block__remove-caption-modal\"\n\t\t\t\t>\n\t\t\t\t\t

{ __( 'Are you sure you want to remove the caption?', 'photo-block' ) }

\n\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tremoveBlocks( clientId );\n\t\t\t\t\t\t\t\tsetCaptionPosition( 'bottom' );\n\t\t\t\t\t\t\t\tsetRemoveCaptionModalVisible( false );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Remove Caption', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetRemoveCaptionModalVisible( false );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Cancel', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t) }\n\t\t
\n\t);\n\n\t/**\n\t * Get a unique ID for the block for inline styling if necessary.\n\t */\n\tuseEffect( () => {\n\t\tif ( attributes.uniqueId !== uniqueId ) {\n\t\t\tsetAttributes( { uniqueId } );\n\t\t}\n\t}, [ blockUniqueId ] );\n\n\tconst htmlToReactParser = new HtmlToReactParser();\n\n\t/**\n\t * Get the caption for display.\n\t *\n\t * @param {string} maybeOverlayStyles The overlay styles.\n\t * @param {string} maybeUniqueId The unique ID.\n\t *\n\t * @return {JSX.Element} The caption.\n\t */\n\tconst getCaption = ( maybeOverlayStyles = '', maybeUniqueId = '' ) => {\n\t\tconst figClasses = classnames( `dlx-photo-block__caption ${ globalStyle } align${ captionAlign } ${ globalStyleCSSClassName } ${ maybeOverlayStyles }`, {\n\t\t\t'has-smart-styles': ( 'advanced' === mode && 'data' !== photoMode && 'featuredImage' !== photoMode ),\n\t\t} );\n\n\t\t// If we're in data mode or a featured image, show the dynamic caption.\n\t\tif ( 'data' === photoMode || 'featuredImage' === currentScreen ) {\n\t\t\tif ( captionLoading ) {\n\t\t\t\treturn (\n\t\t\t\t\t<>\n\t\t\t\t\t\t{ __( 'Loading…', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t);\n\t\t\t} else if ( '' !== caption ) {\n\t\t\t\treturn (\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{ htmlToReactParser.parse( caption ) }\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn __( 'No caption', 'photo-block' );\n\t\t}\n\t\tif ( 'single' === mode ) {\n\t\t\treturn (\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { captionManual: value } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tid=\"search-dlx-caption\"\n\t\t\t\t\t\t\tname=\"search-dlx-caption\"\n\t\t\t\t\t\t\tref={ setCaptionInputRef }\n\t\t\t\t\t\t/>\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t);\n\t\t}\n\t\treturn (\n\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t);\n\t};\n\n\t// Set the local inspector controls.\n\tconst localInspectorControls = (\n\t\t{ interfaceTabs }\n\t);\n\n\tlet styles = '';\n\tif ( ! hasGlobalStyle( globalStyle ) ) {\n\t\tstyles = getStyles( attributes, deviceType, uniqueId );\n\t}\n\n\t/**\n\t * Get overlay container classes.\n\t */\n\tconst overlayStyles = classnames(\n\t\t'dlx-photo-block__caption-overlay',\n\t\t`overlay-type-${ overlayBackgroundType }`,\n\t\t{\n\t\t\t'is-overlay': 'overlay' === captionPosition,\n\t\t\t'overlay-vertical-bottom': 'bottom' === overlayVerticalPosition,\n\t\t\t'overlay-vertical-middle': 'middle' === overlayVerticalPosition,\n\t\t\t'overlay-vertical-top': 'top' === overlayVerticalPosition,\n\t\t\t'overlay-horizontal-left': 'left' === overlayHorizontalPosition,\n\t\t\t'overlay-horizontal-center': 'center' === overlayHorizontalPosition,\n\t\t\t'overlay-horizontal-right': 'right' === overlayHorizontalPosition,\n\t\t\t'caption-vertical-bottom': 'bottom' === overlayCaptionVerticalPosition,\n\t\t\t'caption-vertical-middle': 'middle' === overlayCaptionVerticalPosition,\n\t\t\t'caption-vertical-top': 'top' === overlayCaptionVerticalPosition,\n\t\t\t'caption-horizontal-left': 'left' === overlayCaptionHorizontalPosition,\n\t\t\t'caption-horizontal-center': 'center' === overlayCaptionHorizontalPosition,\n\t\t\t'caption-horizontal-right': 'right' === overlayCaptionHorizontalPosition,\n\t\t}\n\t);\n\n\tconst block = (\n\t\t<>\n\t\t\t\n\t\t\t{ advancedInspectorControls }\n\t\t\t{ localInspectorControls }\n\t\t\t{ localToolbar }\n\t\t\t\n\t\t\t\t{ 'overlay' === captionPosition && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{ getCaption( overlayStyles, uniqueId ) }\n\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t)\n\t\t\t\t}\n\t\t\t\t{ 'overlay' !== captionPosition && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t{ getCaption( '', uniqueId ) }\n\t\t\t\t\t\n\t\t\t\t) }\n\n\t\t\t\n\t\t\n\t);\n\n\tif ( null === blockUniqueId ) {\n\t\treturn null;\n\t}\n\n\t// Return empty if caption isn't visible.\n\tif ( ! isCaptionVisible ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t
{ block }
\n\t\t\n\t);\n};\n\nexport default PhotoCaptionBlock;\n","import metadata from './block.json';\nimport { InnerBlocks } from '@wordpress/block-editor';\nimport { registerBlockType } from '@wordpress/blocks';\nimport { Subtitles } from 'lucide-react';\n\nimport Edit from './edit';\n\nregisterBlockType( metadata, {\n\ticon: ,\n\tedit: Edit,\n\n\t// Render via PHP\n\tsave() {\n\t\treturn ;\n\t},\n} );\n","/**\n * Upload data row including Upload|Media Library|URL|Data.\n */\nimport './editor.scss';\n\nimport {\n\tMenuGroup,\n\tMenuItem,\n\tToolbarGroup,\n\tToolbarDropdownMenu,\n} from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport classnames from 'classnames';\n\n/**\n * MediaLink component.\n *\n * @param {Object} props - Component props.\n * @return {Function} Component.\n */\nconst AlignmentToolbar = ( props ) => {\n\tconst { attributes, setAttributes } = props;\n\tconst {\n\t\talign,\n\t} = attributes;\n\n\t/**\n\t * Retrieve an icon class based on alignment.\n\t *\n\t * @param {string} alignment Alignment.\n\t * @return {string} Icon class.\n\t */\n\tconst getIcon = ( alignment ) => {\n\t\tswitch ( alignment ) {\n\t\t\tcase 'none':\n\t\t\tcase '':\n\t\t\t\treturn 'align-none';\n\t\t\tcase 'full':\n\t\t\t\treturn 'align-full-width';\n\t\t\tdefault:\n\t\t\t\treturn `align-${ alignment }`;\n\t\t}\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{ ( { onClose } ) => (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { align: '' } );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\ticonPosition=\"left\"\n\t\t\t\t\t\t\t\t\tlabel={ __( 'Align None', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\trole=\"menuitemradio\"\n\t\t\t\t\t\t\t\t\tclassName={\n\t\t\t\t\t\t\t\t\t\tclassnames( {\n\t\t\t\t\t\t\t\t\t\t\t'is-active': 'none' === align || '' === align,\n\t\t\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( 'None', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { align: 'wide' } );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\ticonPosition=\"left\"\n\t\t\t\t\t\t\t\t\tlabel={ __( 'Align Wide', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\trole=\"menuitemradio\"\n\t\t\t\t\t\t\t\t\tclassName={\n\t\t\t\t\t\t\t\t\t\tclassnames( {\n\t\t\t\t\t\t\t\t\t\t\t'is-active': 'wide' === align,\n\t\t\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( 'Wide', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { align: 'full' } );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\ticonPosition=\"left\"\n\t\t\t\t\t\t\t\t\tlabel={ __( 'Align Full', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\trole=\"menuitemradio\"\n\t\t\t\t\t\t\t\t\tclassName={\n\t\t\t\t\t\t\t\t\t\tclassnames( {\n\t\t\t\t\t\t\t\t\t\t\t'is-active': 'full' === align,\n\t\t\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( 'Full', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { align: 'left' } );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\ticonPosition=\"left\"\n\t\t\t\t\t\t\t\t\tlabel={ __( 'Align Left', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\trole=\"menuitemradio\"\n\t\t\t\t\t\t\t\t\tclassName={\n\t\t\t\t\t\t\t\t\t\tclassnames( {\n\t\t\t\t\t\t\t\t\t\t\t'is-active': 'left' === align,\n\t\t\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( 'Left', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { align: 'center' } );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\ticonPosition=\"left\"\n\t\t\t\t\t\t\t\t\tlabel={ __( 'Align Center', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\trole=\"menuitemradio\"\n\t\t\t\t\t\t\t\t\tclassName={\n\t\t\t\t\t\t\t\t\t\tclassnames( {\n\t\t\t\t\t\t\t\t\t\t\t'is-active': 'center' === align,\n\t\t\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( 'Center', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { align: 'right' } );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\ticonPosition=\"left\"\n\t\t\t\t\t\t\t\t\tlabel={ __( 'Align Right', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\trole=\"menuitemradio\"\n\t\t\t\t\t\t\t\t\tclassName={\n\t\t\t\t\t\t\t\t\t\tclassnames( {\n\t\t\t\t\t\t\t\t\t\t\t'is-active': 'right' === align,\n\t\t\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( 'Right', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\nexport default AlignmentToolbar;\n","import './editor.scss';\nimport React, { useState, useEffect, useRef } from 'react';\nimport { __ } from '@wordpress/i18n';\nimport {\n\tRangeControl,\n\tButton,\n\tSelectControl,\n\tBaseControl,\n\tTextControl,\n\tPopover,\n} from '@wordpress/components';\nimport { MediaUploadCheck, MediaUpload } from '@wordpress/block-editor';\nimport { useForm, Controller, useWatch } from 'react-hook-form';\nimport ColorPickerControl from '../ColorPicker';\nimport classNames from 'classnames';\n\nconst BackgroundSelectorControl = ( props ) => {\n\n\tconst mediaUploadButton = useRef( null );\n\n\tconst [ backgroundSettingsVisible, setBackgroundSettingsVisible ] =\n\t\tuseState( false );\n\tconst [ backgroundSettingsPopoverAnchor, setBackgroundSettingsPopoverAnchor ] =\n\t\tuseState( null );\n\n\tconst [ isVisible, setIsVisible ] = useState( false );\n\tconst [ isToggled, setIsToggled ] = useState( false );\n\n\t// Background error image state.\n\tconst [ errorImage, setErrorImage ] = useState( false );\n\t\n\n\tconst getDefaultValues = () => {\n\t\treturn {\n\t\t\turl: props.values.url,\n\t\t\tid: props.values.id,\n\t\t\tbackgroundColor: props.values.backgroundColor,\n\t\t\tbackgroundSize: props.values.backgroundSize,\n\t\t\tbackgroundPosition: props.values.backgroundPosition,\n\t\t\tbackgroundRepeat: props.values.backgroundRepeat,\n\t\t\tbackgroundOpacity: props.values.backgroundOpacity,\n\t\t\tbackgroundOpacityHover: props.values.backgroundOpacityHover,\n\t\t};\n\t};\n\n\tconst { control, setValue, getValues } = useForm( {\n\t\tdefaultValues: getDefaultValues(),\n\t} );\n\n\tconst formValues = useWatch( { control } );\n\n\tconst { label } = props;\n\n\tuseEffect( () => {\n\t\tprops.onValuesChange( formValues );\n\t}, [ formValues ] );\n\n\tconst getBackgroundRepeat = () => {\n\t\tconst backgroundRepeat = [\n\t\t\t{ label: __( 'repeat-x', 'photo-block' ), value: 'repeat-x' },\n\t\t\t{ label: __( 'repeat-y', 'photo-block' ), value: 'repeat-y' },\n\t\t\t{ label: __( 'repeat', 'photo-block' ), value: 'repeat' },\n\t\t\t{ label: __( 'no-repeat', 'photo-block' ), value: 'no-repeat' },\n\t\t];\n\t\treturn (\n\t\t\t (\n\t\t\t\t\t {\n\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t/>\n\t\t);\n\t};\n\n\t/**\n\t * Close color popup if visible.\n\t */\n\t const toggleClose = () => {\n\t\tsetIsToggled( true );\n\t\tsetIsVisible( ! isVisible );\n\t\tsetTimeout( () => {\n\t\t\tsetIsToggled( false );\n\t\t}, 500 );\n\t};\n\n\tconst getPopoverContent = () => {\n\t\treturn (\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t{ getBackgroundRepeat() }\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t
\n\t\t);\n\t};\n\n\tconst getBackgroundUploader = () => {\n\t\treturn (\n\t\t\t
\n\t\t\t\t (\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tplaceholder={ __( 'Enter URL', 'photo-block' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tif ( 'image' === media.type ) {\n\t\t\t\t\t\t\t\t\tsetValue( 'url', media.url );\n\t\t\t\t\t\t\t\t\tsetValue( 'id', media.id );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tsetErrorImage( true );\n\t\t\t\t\t\t\t\t\tsetValue( 'url', '' );\n\t\t\t\t\t\t\t\t\tsetValue( 'id', '0' );\n\t\t\t\t\t\t\t\t\tmediaUploadButton.current.focus();\n\t\t\t\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\t\t\t\tsetErrorImage( false );\n\t\t\t\t\t\t\t\t\t}, 8000 );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\ttitle={ __( 'Select Background Image', 'photo-block' ) }\n\t\t\t\t\t\t\tmode={ 'upload' }\n\t\t\t\t\t\t\tmultiple={ false }\n\t\t\t\t\t\t\tallowedTypes={ [ 'image' ] }\n\t\t\t\t\t\t\tvalue={ getValues( 'id' ) }\n\t\t\t\t\t\t\trender={ ( { open } ) => (\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetErrorImage( false );\n\t\t\t\t\t\t\t\t\t\topen();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tlabel={ ! errorImage ? __( 'Upload Background Image', 'photo-block' ) : __( 'Please choose only images.', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\ticon=\"format-image\"\n\t\t\t\t\t\t\t\t\tshowTooltip={ errorImage }\n\t\t\t\t\t\t\t\t\ttooltipPosition=\"top center\"\n\t\t\t\t\t\t\t\t\tref={ mediaUploadButton }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t);\n\t};\n\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t{ getBackgroundUploader() }\n\t\t\t
\n\t\t\t
\n\t\t\t\t

{ __( 'Background Settings', 'photo-block' ) }

\n\t\t\t\t {\n\t\t\t\t\t\tif ( isToggled ) {\n\t\t\t\t\t\t\tsetIsToggled( false );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsetIsVisible( ! isVisible );\n\t\t\t\t\t\t}\n\t\t\t\t\t} }\n\t\t\t\t\ticon=\"admin-settings\"\n\t\t\t\t\tref={ setBackgroundSettingsPopoverAnchor }\n\t\t\t\t/>\n\t\t\t\t{ true === isVisible && (\n\t\t\t\t\t\n\t\t\t\t\t\t{ getPopoverContent() }\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t
\n\t\t\t
\n\t\t\t\t (\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tlabel={ __( 'Background Color', 'photo-block' ) }\n\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\tdefaultColor={ 'transparent' }\n\t\t\t\t\t\t\tslug={ 'background-color-image' }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t
\n\t\t\t
\n\t\t\t\t (\n\t\t\t\t\t\t onChange( newValue ) }\n\t\t\t\t\t\t\tmin={ 0 }\n\t\t\t\t\t\t\tmax={ 1 }\n\t\t\t\t\t\t\tstep={ 0.01 }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t
\n\t\t\t
\n\t\t\t\t (\n\t\t\t\t\t\t onChange( newValue ) }\n\t\t\t\t\t\t\tmin={ 0 }\n\t\t\t\t\t\t\tmax={ 1 }\n\t\t\t\t\t\t\tstep={ 0.01 }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t
\n\t\t
\n\t);\n};\nexport default BackgroundSelectorControl;\n","import './editor.scss';\n\nimport { __ } from '@wordpress/i18n';\nimport { useEffect, useState } from '@wordpress/element';\nimport {\n\tButton,\n\tButtonGroup,\n\tBaseControl,\n\tTextControl,\n\tSelectControl,\n\tRangeControl,\n\tPopover,\n} from '@wordpress/components';\nimport { Link, Unlink } from 'lucide-react';\nimport classnames from 'classnames';\nimport { useForm, Controller, useWatch } from 'react-hook-form';\n\nimport useDeviceType from '../../hooks/useDeviceType';\nimport HeadingIconResponsive from '../HeadingIconResponsive';\nimport ColorPickerControl from '../ColorPicker';\nimport {\n\tgetHierarchicalValueUnit,\n\tgeHierarchicalPlaceholderValue,\n} from '../../utils/TypographyHelper';\nimport BorderStyleSolidIcon from '../Icons/BorderStyleSolid';\nimport BorderStyleDashedIcon from '../Icons/BorderStyleDashed';\nimport BorderStyleDottedIcon from '../Icons/BorderStyleDotted';\nimport BorderStyleDoubleIcon from '../Icons/BorderStyleDouble';\nimport useUnits from '../../hooks/useUnits';\n\nconst BorderResponsiveControl = ( props ) => {\n\tconst {\n\t\tlabel,\n\t\tonValuesChange,\n\t\tvalues,\n\t\tlabelTop,\n\t\tlabelRight,\n\t\tlabelBottom,\n\t\tlabelLeft,\n\t\tlabelAll,\n\t} = props;\n\tconst [ deviceType ] = useDeviceType( 'Desktop' );\n\n\tconst {\n\t\tonUnitChange,\n\t\tsplitValues,\n\t\tgetNumericValue,\n\t\tgetUnitValue,\n\t\tstartsWithNumber,\n\t} = useUnits();\n\n\tconst [ showBorderStylePopoverSync, setShowBorderStylePopoverSync ] =\n\t\tuseState( false );\n\tconst [ showBorderStylePopoverTop, setShowBorderStylePopoverTop ] =\n\t\tuseState( false );\n\tconst [ showBorderStylePopoverRight, setShowBorderStylePopoverRight ] =\n\t\tuseState( false );\n\tconst [ showBorderStylePopoverBottom, setShowBorderStylePopoverBottom ] =\n\t\tuseState( false );\n\tconst [ showBorderStylePopoverLeft, setShowBorderStylePopoverLeft ] =\n\t\tuseState( false );\n\tconst [ borderStyleSyncButtonRef, setBorderSyncStyleButtonRef ] = useState();\n\tconst [ borderStyleTopButtonRef, setBorderStyleTopButtonRef ] = useState();\n\tconst [ borderStyleRightButtonRef, setBorderStyleRightButtonRef ] = useState();\n\tconst [ borderStyleBottomButtonRef, setBorderStyleBottomButtonRef ] =\n\t\tuseState();\n\tconst [ borderStyleLeftButtonRef, setBorderStyleLeftButtonRef ] = useState();\n\n\tconst units = props?.units\n\t\t? props.units\n\t\t: [\n\t\t\t{ label: 'PX', value: 'px' },\n\t\t\t{ label: '%', value: '%' },\n\t\t\t{ label: 'EM', value: 'em' },\n\t\t\t{ label: 'REM', value: 'rem' },\n\t\t ];\n\n\tconst getDefaultValues = () => {\n\t\treturn {\n\t\t\tmobile: {\n\t\t\t\ttop: {\n\t\t\t\t\twidth: props.values.mobile.top.width,\n\t\t\t\t\tunit: props.values.mobile.top.unit,\n\t\t\t\t\tcolor: props.values.mobile.top.color,\n\t\t\t\t\tborderStyle: props.values.mobile.top.borderStyle,\n\t\t\t\t},\n\t\t\t\tright: {\n\t\t\t\t\twidth: props.values.mobile.right.width,\n\t\t\t\t\tunit: props.values.mobile.right.unit,\n\t\t\t\t\tcolor: props.values.mobile.right.color,\n\t\t\t\t\tborderStyle: props.values.mobile.right.borderStyle,\n\t\t\t\t},\n\t\t\t\tbottom: {\n\t\t\t\t\twidth: props.values.mobile.bottom.width,\n\t\t\t\t\tunit: props.values.mobile.bottom.unit,\n\t\t\t\t\tcolor: props.values.mobile.bottom.color,\n\t\t\t\t\tborderStyle: props.values.mobile.bottom.borderStyle,\n\t\t\t\t},\n\t\t\t\tleft: {\n\t\t\t\t\twidth: props.values.mobile.left.width,\n\t\t\t\t\tunit: props.values.mobile.left.unit,\n\t\t\t\t\tcolor: props.values.mobile.left.color,\n\t\t\t\t\tborderStyle: props.values.mobile.left.borderStyle,\n\t\t\t\t},\n\t\t\t\tunitSync: props.values.mobile.unitSync,\n\t\t\t},\n\t\t\ttablet: {\n\t\t\t\ttop: {\n\t\t\t\t\twidth: props.values.tablet.top.width,\n\t\t\t\t\tunit: props.values.tablet.top.unit,\n\t\t\t\t\tcolor: props.values.tablet.top.color,\n\t\t\t\t\tborderStyle: props.values.tablet.top.borderStyle,\n\t\t\t\t},\n\t\t\t\tright: {\n\t\t\t\t\twidth: props.values.tablet.right.width,\n\t\t\t\t\tunit: props.values.tablet.right.unit,\n\t\t\t\t\tcolor: props.values.tablet.right.color,\n\t\t\t\t\tborderStyle: props.values.tablet.right.borderStyle,\n\t\t\t\t},\n\t\t\t\tbottom: {\n\t\t\t\t\twidth: props.values.tablet.bottom.width,\n\t\t\t\t\tunit: props.values.tablet.bottom.unit,\n\t\t\t\t\tcolor: props.values.tablet.bottom.color,\n\t\t\t\t\tborderStyle: props.values.tablet.bottom.borderStyle,\n\t\t\t\t},\n\t\t\t\tleft: {\n\t\t\t\t\twidth: props.values.tablet.left.width,\n\t\t\t\t\tunit: props.values.tablet.left.unit,\n\t\t\t\t\tcolor: props.values.tablet.left.color,\n\t\t\t\t\tborderStyle: props.values.tablet.left.borderStyle,\n\t\t\t\t},\n\t\t\t\tunitSync: props.values.tablet.unitSync,\n\t\t\t},\n\t\t\tdesktop: {\n\t\t\t\ttop: {\n\t\t\t\t\twidth: props.values.desktop.top.width,\n\t\t\t\t\tunit: props.values.desktop.top.unit,\n\t\t\t\t\tcolor: props.values.desktop.top.color,\n\t\t\t\t\tborderStyle: props.values.desktop.top.borderStyle,\n\t\t\t\t},\n\t\t\t\tright: {\n\t\t\t\t\twidth: props.values.desktop.right.width,\n\t\t\t\t\tunit: props.values.desktop.right.unit,\n\t\t\t\t\tcolor: props.values.desktop.right.color,\n\t\t\t\t\tborderStyle: props.values.desktop.right.borderStyle,\n\t\t\t\t},\n\t\t\t\tbottom: {\n\t\t\t\t\twidth: props.values.desktop.bottom.width,\n\t\t\t\t\tunit: props.values.desktop.bottom.unit,\n\t\t\t\t\tcolor: props.values.desktop.bottom.color,\n\t\t\t\t\tborderStyle: props.values.desktop.bottom.borderStyle,\n\t\t\t\t},\n\t\t\t\tleft: {\n\t\t\t\t\twidth: props.values.desktop.left.width,\n\t\t\t\t\tunit: props.values.desktop.left.unit,\n\t\t\t\t\tcolor: props.values.desktop.left.color,\n\t\t\t\t\tborderStyle: props.values.desktop.left.borderStyle,\n\t\t\t\t},\n\t\t\t\tunitSync: props.values.desktop.unitSync,\n\t\t\t},\n\t\t};\n\t};\n\n\tconst { control, setValue, getValues } = useForm( {\n\t\tdefaultValues: getDefaultValues(),\n\t} );\n\n\tconst formValues = useWatch( { control } );\n\n\tuseEffect( () => {\n\t\tonValuesChange( formValues );\n\t}, [ formValues ] );\n\n\t/**\n\t * Change the all values in parent.\n\t *\n\t * @param {number} value Value to change to.\n\t * @param {string} key The key to change.\n\t */\n\tconst changeAllValues = ( value, key ) => {\n\t\tif ( 'color' === key ) {\n\t\t\tconst oldValues = getValues( deviceType );\n\t\t\toldValues.top[ key ] = value;\n\t\t\toldValues.right[ key ] = value;\n\t\t\toldValues.bottom[ key ] = value;\n\t\t\toldValues.left[ key ] = value;\n\t\t\tsetValue( deviceType, oldValues );\n\t\t\treturn;\n\t\t}\n\t\tif ( startsWithNumber( value ) ) {\n\t\t\tconst newValuesSplit = splitValues( value );\n\t\t\tconst numericValue = getNumericValue( newValuesSplit );\n\t\t\tconst unitValue = getUnitValue( newValuesSplit );\n\t\t\tconst oldValues = getValues( deviceType );\n\t\t\toldValues.top[ key ] = numericValue;\n\t\t\toldValues.right[ key ] = numericValue;\n\t\t\toldValues.bottom[ key ] = numericValue;\n\t\t\toldValues.left[ key ] = numericValue;\n\t\t\tsetValue( deviceType, oldValues );\n\t\t\tsyncUnits( unitValue );\n\t\t} else {\n\t\t\tconst oldValues = getValues( deviceType );\n\t\t\toldValues.top[ key ] = value;\n\t\t\toldValues.right[ key ] = value;\n\t\t\toldValues.bottom[ key ] = value;\n\t\t\toldValues.left[ key ] = value;\n\t\t\tsetValue( deviceType, oldValues );\n\t\t\tsyncUnits( value );\n\t\t}\n\t};\n\n\t/**\n\t * Sync all unit values at once.\n\t *\n\t * @param {string} newUnit The new unit value.\n\t */\n\tconst syncUnits = ( newUnit ) => {\n\t\t// Toggle unit sync value.\n\t\tconst currentValues = getValues( deviceType );\n\t\tcurrentValues.top.unit = newUnit;\n\t\tcurrentValues.right.unit = newUnit;\n\t\tcurrentValues.bottom.unit = newUnit;\n\t\tcurrentValues.left.unit = newUnit;\n\t\tsetValue( deviceType, currentValues );\n\t};\n\n\t/**\n\t * Change the unit for a given key.\n\t *\n\t * @param {string} value The new unit value.\n\t * @param {string} key The key to change.\n\t *\n\t * @return {void}\n\t */\n\tconst onDimensionChange = ( value, key ) => {\n\t\tchangeAllValues( value, key );\n\t};\n\n\t/**\n\t * Get the sync value for the current device type.\n\t *\n\t * @return {boolean} The sync value.\n\t */\n\tconst isSync = () => {\n\t\tconst sync = geHierarchicalPlaceholderValue(\n\t\t\tvalues,\n\t\t\tdeviceType,\n\t\t\tgetValues( deviceType ).unitSync,\n\t\t\t'unitSync'\n\t\t);\n\t\treturn sync;\n\t};\n\n\t/**\n\t * Get the max unit for a given unit.\n\t *\n\t * @param {string} unitVar The unit to get the max value for.\n\t * @param {string} subUnit The sub unit to get the max value for.\n\t *\n\t * @return {number} The max value for the current unit.\n\t */\n\tconst getRangeControlMax = ( unitVar, subUnit = '' ) => {\n\t\t// Get current unit.\n\t\tconst unit = getHierarchicalValueUnit(\n\t\t\tprops.values,\n\t\t\tdeviceType,\n\t\t\tgetValues( deviceType )[ unitVar ][ subUnit ],\n\t\t\tunitVar,\n\t\t\tsubUnit\n\t\t);\n\n\t\t// Get the max value for the current unit.\n\t\tlet max = 100;\n\t\tswitch ( unit ) {\n\t\t\tcase 'px':\n\t\t\t\tmax = 1000;\n\t\t\t\tbreak;\n\t\t\tcase '%':\n\t\t\t\tmax = 100;\n\t\t\t\tbreak;\n\t\t\tcase 'em':\n\t\t\t\tmax = 10;\n\t\t\t\tbreak;\n\t\t\tcase 'rem':\n\t\t\t\tmax = 10;\n\t\t\t\tbreak;\n\t\t\tcase 'vw':\n\t\t\t\tmax = 100;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tmax = 100;\n\t\t\t\tbreak;\n\t\t}\n\t\treturn max;\n\t};\n\n\t/**\n\t * Get the range control step for a given unit.\n\t *\n\t * @param {string} unitVar The unit variable to get the step for.\n\t * @param {string} subUnit The sub unit to get the step for.\n\t *\n\t * @return {number} The max value for the current unit.\n\t */\n\tconst getRangeControlStep = ( unitVar, subUnit = '' ) => {\n\t\t// Get current unit.\n\t\tconst unit = getHierarchicalValueUnit(\n\t\t\tprops.values,\n\t\t\tdeviceType,\n\t\t\tgetValues( deviceType )[ unitVar ][ subUnit ],\n\t\t\tunitVar,\n\t\t\tsubUnit\n\t\t);\n\n\t\t// Get the max value for the current unit.\n\t\tlet step = 1;\n\n\t\tswitch ( unit ) {\n\t\t\tcase 'px':\n\t\t\t\tstep = 1;\n\t\t\t\tbreak;\n\t\t\tcase '%':\n\t\t\t\tstep = 1;\n\t\t\t\tbreak;\n\t\t\tcase 'em':\n\t\t\t\tstep = 0.1;\n\t\t\t\tbreak;\n\t\t\tcase 'rem':\n\t\t\t\tstep = 0.1;\n\t\t\t\tbreak;\n\t\t\tcase 'vw':\n\t\t\t\tstep = 1;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstep = 1;\n\t\t\t\tbreak;\n\t\t}\n\t\treturn step;\n\t};\n\n\t/**\n\t * Get the border style being used (solid, dashed, dotted, double).\n\t *\n\t * @param {string} unitVar Var used to check relative to device type (typically top, left, right, bottom).\n\t * @return {string} border style (solid, dashed, dotted, double).\n\t */\n\tconst getBorderStyle = ( unitVar ) => {\n\t\t// Get current unit.\n\t\tconst borderStyle = getHierarchicalValueUnit(\n\t\t\tprops.values,\n\t\t\tdeviceType,\n\t\t\tgetValues( deviceType )[ unitVar ].borderStyle,\n\t\t\tunitVar,\n\t\t\t'borderStyle'\n\t\t);\n\t\treturn borderStyle;\n\t};\n\n\t/**\n\t * Get the border icon for the border style being used (solid, dashed, dotted, double).\n\t *\n\t * @param {string} unitVar Var used to check relative to device type (typically top, left, right, bottom).\n\t *\n\t * @return {Element} The border icon.\n\t */\n\tconst getBorderStyleIcon = ( unitVar ) => {\n\t\tswitch ( getBorderStyle( unitVar ) ) {\n\t\t\tcase 'dashed':\n\t\t\t\treturn BorderStyleDashedIcon;\n\t\t\tcase 'dotted':\n\t\t\t\treturn BorderStyleDottedIcon;\n\t\t\tcase 'double':\n\t\t\t\treturn BorderStyleDoubleIcon;\n\t\t\tdefault:\n\t\t\t\treturn BorderStyleSolidIcon;\n\t\t}\n\t};\n\n\t/**\n\t * Get the button group used for choosing border style.\n\t *\n\t * @param {string} unitVar The unit variable to get the button group for.\n\t * @param {Function} setPopoverClosed Reference to closing the popover.\n\t * @return { Element } button group\n\t */\n\tconst getPopoverButtonGroup = ( unitVar, setPopoverClosed ) => {\n\t\treturn (\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t

{ __( 'Border Style', 'photo-block' ) }

\n\t\t\t\t\t\n\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( 'solid' );\n\t\t\t\t\t\t\t\t\t\t\tsetPopoverClosed( true );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\tisPressed={ 'solid' === getBorderStyle( unitVar ) }\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{ __( 'Solid', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( 'dashed' );\n\t\t\t\t\t\t\t\t\t\t\tsetPopoverClosed( true );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{ __( 'Dashed', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( 'dotted' );\n\t\t\t\t\t\t\t\t\t\t\tsetPopoverClosed( true );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{ __( 'Dotted', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( 'double' );\n\t\t\t\t\t\t\t\t\t\t\tsetPopoverClosed( true );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{ __( 'Double', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t);\n\t};\n\n\tconst getSyncInterface = () => {\n\t\tif ( ! isSync() ) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\tonDimensionChange( newValue, 'color' );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tlabel={ __( 'Border Color', 'photo-block' ) }\n\t\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\t\tdefaultColor={ '#FFFFFF' }\n\t\t\t\t\t\t\t\tslug={ 'border-color-sync' }\n\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\talpha={ true }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetShowBorderStylePopoverSync( ! showBorderStylePopoverSync );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tref={ setBorderSyncStyleButtonRef }\n\t\t\t\t\t/>\n\t\t\t\t\t{ showBorderStylePopoverSync && (\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetShowBorderStylePopoverSync( false );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tanchorRef={ borderStyleSyncButtonRef }\n\t\t\t\t\t\t\tnoArrow={ false }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t

{ __( 'Border Style', 'photo-block' ) }

\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange( 'solid' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tchangeAllValues( 'solid', 'borderStyle' );\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Close the popover.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowBorderStylePopoverSync( false );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tisPressed={ 'solid' === getBorderStyle( 'top' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ __( 'Solid', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange( 'dashed' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tchangeAllValues( 'dashed', 'borderStyle' );\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Close the popover.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowBorderStylePopoverSync( false );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ __( 'Dashed', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange( 'dotted' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tchangeAllValues( 'dotted', 'borderStyle' );\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Close the popover.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowBorderStylePopoverSync( false );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ __( 'Dotted', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange( 'double' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tchangeAllValues( 'double', 'borderStyle' );\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Close the popover.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowBorderStylePopoverSync( false );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ __( 'Double', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\t (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\tonDimensionChange( newValue, 'width' );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\tinputMode=\"numeric\"\n\t\t\t\t\t\t\t\tautoComplete=\"off\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t/>\n\t\t\t\t\t (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\tsyncUnits( newValue );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\tonDimensionChange( newValue, 'width' );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\twithInputField={ false }\n\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\t// Disable syncing.\n\t\t\t\t\t\t\tconst oldValues = getValues( deviceType );\n\t\t\t\t\t\t\toldValues.unitSync = false;\n\t\t\t\t\t\t\tsetValue( deviceType, oldValues );\n\t\t\t\t\t\t\tsyncUnits(\n\t\t\t\t\t\t\t\tgetHierarchicalValueUnit(\n\t\t\t\t\t\t\t\t\tprops.values,\n\t\t\t\t\t\t\t\t\tdeviceType,\n\t\t\t\t\t\t\t\t\tgetValues( `${ deviceType }.top.unit` ),\n\t\t\t\t\t\t\t\t\t'top',\n\t\t\t\t\t\t\t\t\t'unit'\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tlabel={ __( 'Modify all values separately.', 'photo-block' ) }\n\t\t\t\t\t\ticon={ }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\n\t\t);\n\t};\n\n\t/**\n\t * Get the manual interface.\n\t *\n\t * @return {Element} The manual interface.\n\t */\n\tconst getManualInterface = () => {\n\t\tif ( isSync() ) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (\n\t\t\t<>\n\t\t\t\t\n\t\t\t\t\t<>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\tlabel={ __( 'Border Color', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\t\t\t\tdefaultColor={ '#000000' }\n\t\t\t\t\t\t\t\t\t\tslug={ 'border-color-top' }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t\talpha={ true }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetShowBorderStylePopoverTop( ! showBorderStylePopoverTop );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tref={ setBorderStyleTopButtonRef }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t{ showBorderStylePopoverTop && (\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetShowBorderStylePopoverTop( false );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tanchorRef={ borderStyleTopButtonRef }\n\t\t\t\t\t\t\t\t\tnoArrow={ false }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ getPopoverButtonGroup( 'top', setShowBorderStylePopoverTop ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonUnitChange( newValue, onChange, setValue, deviceType, 'top.unit' );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t\tinputMode=\"numeric\"\n\t\t\t\t\t\t\t\t\t\tautoComplete=\"off\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\tlabel={ __( 'Border Color', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\t\t\t\tdefaultColor={ '#000000' }\n\t\t\t\t\t\t\t\t\t\tslug={ 'border-color-right' }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t\talpha={ true }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetShowBorderStylePopoverRight( ! showBorderStylePopoverRight );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tref={ setBorderStyleRightButtonRef }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t{ showBorderStylePopoverRight && (\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetShowBorderStylePopoverRight( false );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tanchorRef={ borderStyleRightButtonRef }\n\t\t\t\t\t\t\t\t\tnoArrow={ false }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ getPopoverButtonGroup( 'right', setShowBorderStylePopoverRight ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonUnitChange( newValue, onChange, setValue, deviceType, 'right.unit' );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t\tinputMode=\"numeric\"\n\t\t\t\t\t\t\t\t\t\tautoComplete=\"off\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\tlabel={ __( 'Border Color', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\t\t\t\tdefaultColor={ '#000000' }\n\t\t\t\t\t\t\t\t\t\tslug={ 'border-color-bottom' }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t\talpha={ true }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetShowBorderStylePopoverBottom( ! showBorderStylePopoverBottom );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tref={ setBorderStyleBottomButtonRef }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t{ showBorderStylePopoverBottom && (\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetShowBorderStylePopoverBottom( false );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tanchorRef={ borderStyleBottomButtonRef }\n\t\t\t\t\t\t\t\t\tnoArrow={ false }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ getPopoverButtonGroup( 'bottom', setShowBorderStylePopoverBottom ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonUnitChange( newValue, onChange, setValue, deviceType, 'bottom.unit' );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t\tinputMode=\"numeric\"\n\t\t\t\t\t\t\t\t\t\tautoComplete=\"off\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\tlabel={ __( 'Border Color', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\t\t\t\tdefaultColor={ '#000000' }\n\t\t\t\t\t\t\t\t\t\tslug={ 'border-color-left' }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t\talpha={ true }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetShowBorderStylePopoverLeft( ! showBorderStylePopoverLeft );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tref={ setBorderStyleLeftButtonRef }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t{ showBorderStylePopoverLeft && (\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetShowBorderStylePopoverLeft( false );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tanchorRef={ borderStyleLeftButtonRef }\n\t\t\t\t\t\t\t\t\tnoArrow={ false }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ getPopoverButtonGroup( 'left', setShowBorderStylePopoverLeft ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonUnitChange( newValue, onChange, setValue, deviceType, 'left.unit' );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t\tinputMode=\"numeric\"\n\t\t\t\t\t\t\t\t\t\tautoComplete=\"off\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tconst oldValues = getValues( deviceType );\n\t\t\t\t\t\t\t\toldValues.unitSync = true;\n\t\t\t\t\t\t\t\tsetValue( deviceType, oldValues );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tisPressed={ false }\n\t\t\t\t\t\t\ticon={ }\n\t\t\t\t\t\t\tlabel={ __( 'Edit all values together', 'photo-block' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t);\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t{ getSyncInterface() }\n\t\t\t\t{ getManualInterface() }\n\t\t\t\n\t\t\n\t);\n};\nexport default BorderResponsiveControl;\n","/**\n * Upload data row including Upload|Media Library|URL|Data.\n */\nimport './editor.scss';\n\nimport {\n\tButtonGroup,\n\tBaseControl,\n} from '@wordpress/components';\n\nimport { useContext, useState } from '@wordpress/element';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\n\nimport { blockStore } from '../../store';\nimport CSSGramButtonPreview from '../CSSGramButtonPreview';\n\nconst cssGramOptions = [\n\t{ value: 'none', label: __( 'None', 'photo-block' ) },\n\t{ value: '1977', label: __( '1977', 'photo-block' ) },\n\t{ value: 'aden', label: __( 'Aden', 'photo-block' ) },\n\t{ value: 'brannan', label: __( 'Brannan', 'photo-block' ) },\n\t{ value: 'brooklyn', label: __( 'Brooklyn', 'photo-block' ) },\n\t{ value: 'clarendon', label: __( 'Clarendon', 'photo-block' ) },\n\t{ value: 'earlybird', label: __( 'Earlybird', 'photo-block' ) },\n\t{ value: 'gingham', label: __( 'Gingham', 'photo-block' ) },\n\t{ value: 'hudson', label: __( 'Hudson', 'photo-block' ) },\n\t{ value: 'inkwell', label: __( 'Inkwell', 'photo-block' ) },\n\t{ value: 'kelvin', label: __( 'Kelvin', 'photo-block' ) },\n\t{ value: 'lark', label: __( 'Lark', 'photo-block' ) },\n\t{ value: 'lofi', label: __( 'Lo-Fi', 'photo-block' ) },\n\t{ value: 'maven', label: __( 'Maven', 'photo-block' ) },\n\t{ value: 'mayfair', label: __( 'Mayfair', 'photo-block' ) },\n\t{ value: 'moon', label: __( 'Moon', 'photo-block' ) },\n\t{ value: 'nashville', label: __( 'Nashville', 'photo-block' ) },\n\t{ value: 'perpetua', label: __( 'Perpetua', 'photo-block' ) },\n\t{ value: 'reyes', label: __( 'Reyes', 'photo-block' ) },\n\t{ value: 'rise', label: __( 'Rise', 'photo-block' ) },\n\t{ value: 'slumber', label: __( 'Slumber', 'photo-block' ) },\n\t{ value: 'stinson', label: __( 'Stinson', 'photo-block' ) },\n\t{ value: 'toaster', label: __( 'Toaster', 'photo-block' ) },\n\t{ value: 'valencia', label: __( 'Valencia', 'photo-block' ) },\n\t{ value: 'walden', label: __( 'Walden', 'photo-block' ) },\n\t{ value: 'willow', label: __( 'Willow', 'photo-block' ) },\n\t{ value: 'xpro2', label: __( 'X-Pro II', 'photo-block' ) },\n];\n/**\n * CSSGramButtonGroup component.\n *\n * @param {Object} props - Component props.\n * @return {Function} Component.\n */\nconst CSSGramButtonGroup = ( props ) => {\n\tconst { attributes, setAttributes, blockUniqueId } = props;\n\n\tconst { cssGramFilter } = attributes;\n\n\tconst {\n\t\timageData,\n\t} = useSelect( ( select ) => {\n\t\tconst { getImageData } = select( blockStore( blockUniqueId ) );\n\t\treturn {\n\t\t\timageData: getImageData(),\n\t\t};\n\t} );\n\n\tconst [ currentFilter, setCurrentFilter ] = useState( cssGramFilter );\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t

{ __( 'Select a CSS Filter', 'photo-block' ) }

\n\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\tcssGramOptions.map( ( option ) => {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\t\tcssGramFilter: option.value,\n\t\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t\t\tsetCurrentFilter( option.value );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tlabel={ option.label }\n\t\t\t\t\t\t\t\t\tfilter={ option.value }\n\t\t\t\t\t\t\t\t\tfullUrl={ imageData.url }\n\t\t\t\t\t\t\t\t\tphoto={ attributes.imageData }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} )\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n};\nexport default CSSGramButtonGroup;\n","/**\n * Upload data row including Upload|Media Library|URL|Data.\n */\nimport './editor.scss';\n\nimport {\n\tButton,\n\tPopover,\n} from '@wordpress/components';\n\nimport { useContext, useState, useEffect } from '@wordpress/element';\n\nimport classnames from 'classnames';\n\nimport { useSelect, useDispatch } from '@wordpress/data';\n\nimport { blockStore } from '../../store';\n\n/**\n * CSSGramButtonGroup component.\n *\n * @param {Object} props - Component props.\n * @return {Function} Component.\n */\nconst CSSGramButtonPreview = ( props ) => {\n\tconst { filter, label, isSelected, fullUrl, photo } = props;\n\n\tconst [ buttonRef, setButtonRef ] = useState( null );\n\tconst [ showPopOver, setShowPopOver ] = useState( false );\n\n\tconst handlePopoverOpen = () => {\n\t\tsetShowPopOver( true );\n\t\tbuttonRef.focus();\n\t};\n\n\tconst handlePopoverClose = () => {\n\t\tsetShowPopOver( false );\n\t};\n\n\n\treturn (\n\t\t<>\n\n\t\t\t props.onClick( filter ) }\n\t\t\t\tonMouseEnter={ () => handlePopoverOpen( true ) }\n\t\t\t\tonMouseLeave={ () => handlePopoverClose( false ) }\n\t\t\t\tref={ setButtonRef }\n\t\t\t>\n\t\t\t\t{ label }\n\t\t\t\n\t\t\t{\n\t\t\t\tshowPopOver && (\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetShowPopOver( false );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\toffset={ 10 }\n\t\t\t\t\t\tnoArrow={ false }\n\t\t\t\t\t>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t)\n\t\t\t}\n\t\t\n\t);\n};\nexport default CSSGramButtonPreview;\n","// eslint-disable-next-line no-unused-vars\nimport './editor.scss';\nimport React, { useContext } from 'react';\nimport { __ } from '@wordpress/i18n';\nimport { Button } from '@wordpress/components';\nimport { createBlock } from '@wordpress/blocks';\n\nimport { useDispatch } from '@wordpress/data';\nimport { Subtitles } from 'lucide-react';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { blockStore } from '../../store';\n\nconst CaptionAppender = ( {\n\tnumBlocks,\n\tclientId,\n\tblockUniqueId,\n} ) => {\n\tconst { insertBlock, updateBlockAttributes } = useDispatch( blockEditorStore );\n\tconst {\n\t\tsetHasCaption,\n\t} = useDispatch( blockStore( blockUniqueId ) );\n\n\t/**\n\t * Add a caption block to the main block.\n\t */\n\tconst appendBlock = () => {\n\t\tconst newBlocks = createBlock( 'dlxplugins/photo-caption-block' );\n\t\tinsertBlock( newBlocks, undefined, clientId );\n\t\tupdateBlockAttributes( clientId, { hasCaption: true } );\n\t};\n\n\t// Exit if there are innerblocks.\n\tif ( numBlocks !== 0 ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t
\n\t\t\t {\n\t\t\t\t\tsetHasCaption( true );\n\t\t\t\t\tappendBlock();\n\t\t\t\t} }\n\t\t\t\ticon={ }\n\t\t\t>\n\t\t\t\t{ __( 'Add Caption', 'photo-block' ) }\n\t\t\t\n\t\t
\n\t);\n};\nexport default CaptionAppender;\n","/**\n * Color Picker.\n *\n * Credit: Forked from @generateblocks\n */\nimport './editor.scss';\nimport React, { useState, useEffect } from 'react';\nimport classnames from 'classnames';\nimport hexToRgba from 'hex-to-rgba';\nimport rgb2hex from 'rgb2hex';\nimport { __ } from '@wordpress/i18n';\nimport PropTypes from 'prop-types';\n\nimport {\n\tTooltip,\n\tBaseControl,\n\tColorPicker,\n\tRangeControl,\n\tPopover,\n\tColorPalette,\n\tButton,\n} from '@wordpress/components';\n\nconst ColorPickerControl = ( props ) => {\n\tconst [ colorKey, setColorKey ] = useState( props.slug );\n\tconst [ isVisible, setIsVisible ] = useState( false );\n\tconst [ color, setColor ] = useState( props.value );\n\tconst [ opacity, setOpacity ] = useState( props.opacity );\n\n\tconst {\n\t\tdefaultColor,\n\t\tdefaultColors,\n\t\tvalue,\n\t\tonChange,\n\t\tonOpacityChange,\n\t\tlabel,\n\t\talpha = false,\n\t\tslug,\n\t\thideLabelFromVision = false,\n\t} = props;\n\n\tuseEffect( () => {\n\t\tsetColor( value );\n\t}, [ value ] );\n\n\t/**\n\t * Return a color based on passed alpha value.\n\t *\n\t * @param {string} colorValue hex, rgb, rgba, or CSS var.\n\t * @param {number} opacityValue The opacity (from 0 - 1).\n\t * @return {string} The color in hex, rgba, or CSS var format.\n\t */\n\tconst getColor = ( colorValue, opacityValue = 1 ) => {\n\t\t// Test for CSS var values in color value.\n\t\tif ( colorValue.indexOf( 'var(' ) === 0 ) {\n\t\t\treturn colorValue;\n\t\t}\n\n\t\t// Test for RGBA at the beginning, and return value.\n\t\tif ( colorValue.indexOf( 'rgba' ) === 0 ) {\n\t\t\t// Calculate hex value from rgba.\n\t\t\tconst hex = rgb2hex( colorValue ).hex;\n\t\t\treturn hexToRgba( hex, opacityValue );\n\t\t}\n\n\t\t// Test for RGB at the beginning, and return hex if found.\n\t\tif ( colorValue.indexOf( 'rgb' ) === 0 ) {\n\t\t\treturn hexToRgba( rgb2hex( colorValue ).hex, opacityValue );\n\t\t}\n\n\t\tif ( alpha ) {\n\t\t\treturn hexToRgba( colorValue, opacityValue );\n\t\t}\n\n\t\treturn colorValue;\n\t};\n\n\t// Retrieve colors while avoiding duplicates.\n\tconst getDefaultColors = () => {\n\t\tconst existingColors = [];\n\t\tconst newColors = [];\n\t\tdefaultColors.forEach( ( maybeNewColor, index ) => {\n\t\t\tif ( ! existingColors.includes( maybeNewColor.color ) ) {\n\t\t\t\texistingColors.push( maybeNewColor.color );\n\t\t\t\tnewColors.push( maybeNewColor );\n\t\t\t}\n\t\t} );\n\t\treturn newColors;\n\t};\n\n\tconst opacityIcon = (\n\t\t\n\t\t\t\n\t\t\n\t);\n\n\t/**\n\t * Toggle whether the color popup is showing.\n\t */\n\tconst toggleVisible = () => {\n\t\tsetIsVisible( true );\n\t};\n\n\t/**\n\t * Close color popup if visible.\n\t */\n\tconst toggleClose = () => {\n\t\tif ( isVisible ) {\n\t\t\tsetIsVisible( false );\n\t\t}\n\t};\n\n\treturn (\n\t\t\n\t\t\t{ ( !! label && ! hideLabelFromVision ) && (\n\t\t\t\t

\n\t\t\t\t\t{ label }\n\t\t\t\t

\n\t\t\t) }\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t{ ! isVisible && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\n\t\t\t\t\t{ isVisible && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t) }\n\n\t\t\t\t\t{ isVisible && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tconst maybeNewColor = getColor( newColor.hex, opacity );\n\t\t\t\t\t\t\t\t\t\tsetColor( maybeNewColor );\n\t\t\t\t\t\t\t\t\t\tonChange( slug, maybeNewColor, newColor.hex );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tdisableAlpha\n\t\t\t\t\t\t\t\t\tdefaultValue={ defaultColor }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t{ alpha && (\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t{ opacityIcon }\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tconst newColor = getColor( color, opacityValue );\n\t\t\t\t\t\t\t\t\t\t\tsetOpacity( opacityValue );\n\t\t\t\t\t\t\t\t\t\t\tsetColor( color );\n\t\t\t\t\t\t\t\t\t\t\tonChange( slug, newColor, color );\n\t\t\t\t\t\t\t\t\t\t\tonOpacityChange( opacityValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\tmin={ 0 }\n\t\t\t\t\t\t\t\t\t\tmax={ 1 }\n\t\t\t\t\t\t\t\t\t\tstep={ 0.01 }\n\t\t\t\t\t\t\t\t\t\tinitialPosition={ 1 }\n\t\t\t\t\t\t\t\t\t\tdisabled={ color.indexOf( 'var(' ) === 0 }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tconst maybeNewColor = getColor( newColor );\n\t\t\t\t\t\t\t\t\t\tonChange( slug, maybeNewColor );\n\t\t\t\t\t\t\t\t\t\tsetColor( maybeNewColor );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tdisableCustomColors={ true }\n\t\t\t\t\t\t\t\t\tclearable={ false }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tonChange( slug, defaultColor );\n\t\t\t\t\t\t\t\t\t\tsetColor( defaultColor );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( 'Clear Color', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\n\t\t\t\n\t\t
\n\t);\n};\n\nColorPickerControl.propTypes = {\n\tlabel: PropTypes.string,\n\tonChange: PropTypes.func.isRequired,\n\tonOpacityChange: PropTypes.func,\n\tvalue: PropTypes.string,\n\tdefaultColor: PropTypes.string,\n\talpha: PropTypes.bool,\n\thideLabelFromVision: PropTypes.bool,\n\tdefaultColors: PropTypes.array.isRequired,\n};\n\nColorPickerControl.defaultProps = {\n\tlabel: __( 'Color', 'photo-block' ),\n\tvalue: '',\n\tdefaultColor: 'transparent',\n\talpha: false,\n\thideLabelFromVision: false,\n\tonOpacityChange: () => {},\n};\n\nexport default ColorPickerControl;\n","/**\n * Add custom attributes repeater.\n */\nimport './editor.scss';\n\nimport {\n\tTextControl,\n\tButton,\n\tBaseControl,\n} from '@wordpress/components';\n\nimport {\n\tX,\n\n} from 'lucide-react';\n\nimport { __ } from '@wordpress/i18n';\n\n/**\n * DropShadow component.\n *\n * @param {Object} props - Component props.\n * @return {Function} Component.\n */\nconst CustomAttributesControl = ( props ) => {\n\tconst { attributes, setAttributes } = props;\n\n\tconst { customAttributes } = attributes;\n\n\t/**\n\t * Iterate through the custom attributes and show controls.\n\t *\n\t * @return {Function} Component.\n\t */\n\tconst showCustomAttributes = () => {\n\t\tconst customAttributeOutput = customAttributes.map( ( attributeValues, index ) => {\n\t\t\treturn (\n\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\tconst newCustomAttributes = [ ...customAttributes ];\n\t\t\t\t\t\t\tnewCustomAttributes[ index ].name = value;\n\t\t\t\t\t\t\tsetAttributes( { customAttributes: newCustomAttributes } );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\tconst newCustomAttributes = [ ...customAttributes ];\n\t\t\t\t\t\t\tnewCustomAttributes[ index ].value = value;\n\t\t\t\t\t\t\tsetAttributes( { customAttributes: newCustomAttributes } );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\tconst newCustomAttributes = [ ...customAttributes ];\n\t\t\t\t\t\t\tnewCustomAttributes.splice( index, 1 );\n\t\t\t\t\t\t\tsetAttributes( { customAttributes: newCustomAttributes } );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\ticon={ }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t);\n\t\t} );\n\t\treturn customAttributeOutput;\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t

{ __( 'Custom Attributes', 'photo-block' ) }

\n\t\t\t\t {\n\t\t\t\t\t\tconst newCustomAttributes = [ ...customAttributes ];\n\t\t\t\t\t\tnewCustomAttributes.push( { name: '', value: '' } );\n\t\t\t\t\t\tsetAttributes( { customAttributes: newCustomAttributes } );\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Add Attribute', 'photo-block' ) }\n\t\t\t\t\n\t\t\t\t{ showCustomAttributes() }\n\t\t\t
\n\t\t\n\t);\n};\nexport default CustomAttributesControl;\n","import './editor.scss';\n\nimport { __ } from '@wordpress/i18n';\nimport { useEffect } from '@wordpress/element';\nimport {\n\tButton,\n\tBaseControl,\n\tTextControl,\n\tSelectControl,\n\tRangeControl,\n} from '@wordpress/components';\nimport { Link, Unlink } from 'lucide-react';\nimport classnames from 'classnames';\nimport { useForm, Controller, useWatch } from 'react-hook-form';\n\nimport useDeviceType from '../../hooks/useDeviceType';\nimport HeadingIconResponsive from '../HeadingIconResponsive';\nimport {\n\tgetHierarchicalValueUnit,\n\tgeHierarchicalPlaceholderValue,\n} from '../../utils/TypographyHelper';\nimport useUnits from '../../hooks/useUnits';\n\nconst DimensionsResponsiveControl = ( props ) => {\n\tconst {\n\t\tlabel,\n\t\tonValuesChange,\n\t\tvalues,\n\t\tlabelTop,\n\t\tlabelRight,\n\t\tlabelBottom,\n\t\tlabelLeft,\n\t\tlabelAll,\n\t\tisBorderRadius = false,\n\t\tallowNegatives = false,\n\t} = props;\n\tconst [ deviceType ] = useDeviceType( 'Desktop' );\n\tconst {\n\t\tonUnitChange,\n\t\tsplitValues,\n\t\tgetNumericValue,\n\t\tgetUnitValue,\n\t\tstartsWithNumber,\n\t} = useUnits();\n\n\tconst units = props?.units\n\t\t? props.units\n\t\t: [\n\t\t\t{ label: 'PX', value: 'px' },\n\t\t\t{ label: '%', value: '%' },\n\t\t\t{ label: 'EM', value: 'em' },\n\t\t\t{ label: 'REM', value: 'rem' },\n\t\t\t{ label: 'VW', value: 'vw' },\n\t\t];\n\n\tconst getDefaultValues = () => {\n\t\treturn {\n\t\t\tmobile: {\n\t\t\t\ttop: props.values.mobile.top,\n\t\t\t\tright: props.values.mobile.right,\n\t\t\t\tbottom: props.values.mobile.bottom,\n\t\t\t\tleft: props.values.mobile.left,\n\t\t\t\ttopUnit: props.values.mobile.topUnit,\n\t\t\t\trightUnit: props.values.mobile.rightUnit,\n\t\t\t\tbottomUnit: props.values.mobile.bottomUnit,\n\t\t\t\tleftUnit: props.values.mobile.leftUnit,\n\t\t\t\tunitSync: props.values.mobile.unitSync,\n\t\t\t},\n\t\t\ttablet: {\n\t\t\t\ttop: props.values.tablet.top,\n\t\t\t\tright: props.values.tablet.right,\n\t\t\t\tbottom: props.values.tablet.bottom,\n\t\t\t\tleft: props.values.tablet.left,\n\t\t\t\ttopUnit: props.values.tablet.topUnit,\n\t\t\t\trightUnit: props.values.tablet.rightUnit,\n\t\t\t\tbottomUnit: props.values.tablet.bottomUnit,\n\t\t\t\tleftUnit: props.values.tablet.leftUnit,\n\t\t\t\tunitSync: props.values.tablet.unitSync,\n\t\t\t},\n\t\t\tdesktop: {\n\t\t\t\ttop: props.values.desktop.top,\n\t\t\t\tright: props.values.desktop.right,\n\t\t\t\tbottom: props.values.desktop.bottom,\n\t\t\t\tleft: props.values.desktop.left,\n\t\t\t\ttopUnit: props.values.desktop.topUnit,\n\t\t\t\trightUnit: props.values.desktop.rightUnit,\n\t\t\t\tbottomUnit: props.values.desktop.bottomUnit,\n\t\t\t\tleftUnit: props.values.desktop.leftUnit,\n\t\t\t\tunitSync: props.values.desktop.unitSync,\n\t\t\t},\n\t\t};\n\t};\n\n\tconst { control, setValue, getValues } = useForm( {\n\t\tdefaultValues: getDefaultValues(),\n\t} );\n\n\tconst formValues = useWatch( { control } );\n\n\tuseEffect( () => {\n\t\tonValuesChange( formValues );\n\t}, [ formValues ] );\n\n\t/**\n\t * Change the all values in parent.\n\t *\n\t * @param {number} value Value to change to.\n\t */\n\tconst changeAllValues = ( value ) => {\n\t\tif ( startsWithNumber( value ) ) {\n\t\t\tconst newValuesSplit = splitValues( value );\n\t\t\tconst numericValue = parseFloat( getNumericValue( newValuesSplit ) );\n\t\t\tconst unitValue = getUnitValue( newValuesSplit );\n\t\t\tconst oldValues = getValues( deviceType );\n\t\t\toldValues.top = numericValue;\n\t\t\toldValues.right = numericValue;\n\t\t\toldValues.bottom = numericValue;\n\t\t\toldValues.left = numericValue;\n\t\t\toldValues.topUnit = unitValue;\n\t\t\toldValues.rightUnit = unitValue;\n\t\t\toldValues.bottomUnit = unitValue;\n\t\t\toldValues.leftUnit = unitValue;\n\t\t\tsetValue( deviceType, oldValues );\n\t\t\tsyncUnits( getHierarchicalValueUnit( props.values, deviceType, unitValue, 'top' ) );\n\t\t} else {\n\t\t\tconst oldValues = getValues( deviceType );\n\t\t\toldValues.top = value;\n\t\t\toldValues.right = value;\n\t\t\toldValues.bottom = value;\n\t\t\toldValues.left = value;\n\t\t\tsetValue( deviceType, oldValues );\n\t\t\tsyncUnits( getHierarchicalValueUnit( props.values, deviceType, value, 'top' ) );\n\t\t}\n\t};\n\n\t/**\n\t * Sync all unit values at once.\n\t *\n\t * @param {string} newUnit The new unit value.\n\t */\n\tconst syncUnits = ( newUnit ) => {\n\t\t// Toggle unit sync value.\n\t\tconst currentValues = getValues( deviceType );\n\t\tcurrentValues.topUnit = newUnit;\n\t\tcurrentValues.rightUnit = newUnit;\n\t\tcurrentValues.bottomUnit = newUnit;\n\t\tcurrentValues.leftUnit = newUnit;\n\t\tsetValue( deviceType, currentValues );\n\t};\n\n\tconst onDimensionChange = ( value ) => {\n\t\tchangeAllValues( value );\n\t};\n\n\t/**\n\t * Get the sync value for the current device type.\n\t *\n\t * @return {boolean} The sync value.\n\t */\n\tconst isSync = () => {\n\t\tconst sync = geHierarchicalPlaceholderValue(\n\t\t\tvalues,\n\t\t\tdeviceType,\n\t\t\tgetValues( deviceType ).unitSync,\n\t\t\t'unitSync'\n\t\t);\n\t\treturn sync;\n\t};\n\n\t/**\n\t * Get the min unit for a given unit.\n\t *\n\t * @param {string} unitVar The unit to get the min value for.\n\t *\n\t * @return {number} The min value for the current unit.\n\t */\n\tconst getRangeControlMin = ( unitVar ) => {\n\t\tif ( ! allowNegatives ) {\n\t\t\treturn 0;\n\t\t}\n\n\t\t// Get current unit.\n\t\tconst unit = getHierarchicalValueUnit(\n\t\t\tprops.values,\n\t\t\tdeviceType,\n\t\t\tgetValues( deviceType )[ unitVar ],\n\t\t\tunitVar\n\t\t);\n\n\t\t// Get the max value for the current unit.\n\t\tlet min = -100;\n\t\tswitch ( unit ) {\n\t\t\tcase 'px':\n\t\t\t\tmin = -1000;\n\t\t\t\tbreak;\n\t\t\tcase '%':\n\t\t\t\tmin = -100;\n\t\t\t\tbreak;\n\t\t\tcase 'em':\n\t\t\t\tmin = -10;\n\t\t\t\tbreak;\n\t\t\tcase 'rem':\n\t\t\t\tmin = -10;\n\t\t\t\tbreak;\n\t\t\tcase 'vw':\n\t\t\t\tmin = -100;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tmin = -100;\n\t\t\t\tbreak;\n\t\t}\n\t\treturn min;\n\t};\n\n\t/**\n\t * Get the max unit for a given unit.\n\t *\n\t * @param {string} unitVar The unit to get the max value for.\n\t *\n\t * @return {number} The max value for the current unit.\n\t */\n\tconst getRangeControlMax = ( unitVar ) => {\n\t\t// Get current unit.\n\t\tconst unit = getHierarchicalValueUnit(\n\t\t\tprops.values,\n\t\t\tdeviceType,\n\t\t\tgetValues( deviceType )[ unitVar ],\n\t\t\tunitVar\n\t\t);\n\n\t\t// Get the max value for the current unit.\n\t\tlet max = 100;\n\t\tswitch ( unit ) {\n\t\t\tcase 'px':\n\t\t\t\tmax = 1000;\n\t\t\t\tbreak;\n\t\t\tcase '%':\n\t\t\t\tmax = 100;\n\t\t\t\tbreak;\n\t\t\tcase 'em':\n\t\t\t\tmax = 10;\n\t\t\t\tbreak;\n\t\t\tcase 'rem':\n\t\t\t\tmax = 10;\n\t\t\t\tbreak;\n\t\t\tcase 'vw':\n\t\t\t\tmax = 100;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tmax = 100;\n\t\t\t\tbreak;\n\t\t}\n\t\treturn max;\n\t};\n\n\t/**\n\t * Get the range control step for a given unit.\n\t *\n\t * @param {string} unitVar The unit variable to get the step for.\n\t *\n\t * @return {number} The max value for the current unit.\n\t */\n\tconst getRangeControlStep = ( unitVar ) => {\n\t\t// Get current unit.\n\t\tconst unit = getHierarchicalValueUnit(\n\t\t\tprops.values,\n\t\t\tdeviceType,\n\t\t\tgetValues( deviceType )[ unitVar ],\n\t\t\tunitVar\n\t\t);\n\n\t\t// Get the max value for the current unit.\n\t\tlet step = 1;\n\n\t\tswitch ( unit ) {\n\t\t\tcase 'px':\n\t\t\t\tstep = 1;\n\t\t\t\tbreak;\n\t\t\tcase '%':\n\t\t\t\tstep = 1;\n\t\t\t\tbreak;\n\t\t\tcase 'em':\n\t\t\t\tstep = 0.1;\n\t\t\t\tbreak;\n\t\t\tcase 'rem':\n\t\t\t\tstep = 0.1;\n\t\t\t\tbreak;\n\t\t\tcase 'vw':\n\t\t\t\tstep = 1;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstep = 1;\n\t\t\t\tbreak;\n\t\t}\n\t\treturn step;\n\t};\n\n\tconst getSyncInterface = () => {\n\t\tif ( ! isSync() ) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tonDimensionChange( newValue );\n\t\t\t\t\t\t\t\t\tonUnitChange( newValue, onChange, setValue, deviceType, 'topUnit' );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\tautoComplete=\"off\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t/>\n\t\t\t\t\t (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\tsyncUnits( newValue );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\tonDimensionChange( newValue );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\twithInputField={ false }\n\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\t// Disable syncing.\n\t\t\t\t\t\t\tconst oldValues = getValues( deviceType );\n\t\t\t\t\t\t\toldValues.unitSync = false;\n\t\t\t\t\t\t\tsetValue( deviceType, oldValues );\n\t\t\t\t\t\t\tsyncUnits(\n\t\t\t\t\t\t\t\tgetHierarchicalValueUnit(\n\t\t\t\t\t\t\t\t\tprops.values,\n\t\t\t\t\t\t\t\t\tdeviceType,\n\t\t\t\t\t\t\t\t\tgetValues( `${ deviceType }.topUnit` ),\n\t\t\t\t\t\t\t\t\t'topUnit'\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tlabel={ __( 'Modify all values separately.', 'photo-block' ) }\n\t\t\t\t\t\ticon={ }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\n\t\t);\n\t};\n\n\t/**\n\t * Get the manual interface.\n\t *\n\t * @return {Element} The manual interface.\n\t */\n\tconst getManualInterface = () => {\n\t\tif ( isSync() ) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tonUnitChange( newValue, onChange, setValue, deviceType, 'topUnit' );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\tautoComplete=\"off\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t/>\n\t\t\t\t\t{\n\t\t\t\t\t\tgetValues( `${ deviceType }.topUnit` ) && (\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tonUnitChange( newValue, onChange, setValue, deviceType, 'rightUnit' );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\tautoComplete=\"off\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t/>\n\t\t\t\t\t{\n\t\t\t\t\t\tgetValues( `${ deviceType }.rightUnit` ) && (\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tonUnitChange( newValue, onChange, setValue, deviceType, 'bottomUnit' );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\tautoComplete=\"off\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t/>\n\t\t\t\t\t{\n\t\t\t\t\t\tgetValues( `${ deviceType }.bottomUnit` ) && (\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tonUnitChange( newValue, onChange, setValue, deviceType, 'leftUnit' );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\tautoComplete=\"off\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t/>\n\t\t\t\t\t{\n\t\t\t\t\t\tgetValues( `${ deviceType }.leftUnit` ) && (\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t
\n\t\t\t\t {\n\t\t\t\t\t\tconst oldValues = getValues( deviceType );\n\t\t\t\t\t\toldValues.unitSync = true;\n\t\t\t\t\t\tsetValue( deviceType, oldValues );\n\t\t\t\t\t} }\n\t\t\t\t\tisPressed={ false }\n\t\t\t\t\ticon={ }\n\t\t\t\t\tlabel={ __( 'Edit all values together', 'photo-block' ) }\n\t\t\t\t/>\n\t\t\t\n\t\t);\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t{ getSyncInterface() }\n\t\t\t\t{ getManualInterface() }\n\t\t\t\n\t\t\n\t);\n};\nexport default DimensionsResponsiveControl;\n","/**\n * Upload data row including Upload|Media Library|URL|Data.\n */\nimport './editor.scss';\n\nimport {\n\tPanelBody,\n\tPanelRow,\n\tTextControl,\n\tTextareaControl,\n\tButtonGroup,\n\tButton,\n\tToggleControl,\n\tToolbar,\n\tToolbarButton,\n\tPopover,\n\tTooltip,\n\tPlaceHolder,\n\tBaseControl,\n\tRangeControl,\n} from '@wordpress/components';\n\nimport { __ } from '@wordpress/i18n';\n\nimport ColorPickerControl from '../ColorPicker';\n/**\n * DropShadow component.\n *\n * @param {Object} props - Component props.\n * @return {Function} Component.\n */\nconst DropShadowControl = ( props ) => {\n\tconst { attributes, setAttributes } = props;\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t

{ __( 'Drop Shadow', 'photo-block' ) }

\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\tphotoDropShadow: {\n\t\t\t\t\t\t\t\t\t\t...attributes.photoDropShadow,\n\t\t\t\t\t\t\t\t\t\tcolor,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tonOpacityChange={ ( value ) => {\n\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\tphotoDropShadow: {\n\t\t\t\t\t\t\t\t\t\t...attributes.photoDropShadow,\n\t\t\t\t\t\t\t\t\t\topacity: value,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tslug=\"photoDropShadow\"\n\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\tdefaultColor={ '#000000' }\n\t\t\t\t\t\t\talpha={ true }\n\t\t\t\t\t\t/>\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\t\tphotoDropShadow: {\n\t\t\t\t\t\t\t\t\t\t\t\t...attributes.photoDropShadow,\n\t\t\t\t\t\t\t\t\t\t\t\thorizontal: value,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\t\tphotoDropShadow: {\n\t\t\t\t\t\t\t\t\t\t\t\t...attributes.photoDropShadow,\n\t\t\t\t\t\t\t\t\t\t\t\tvertical: value,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\tphotoDropShadow: {\n\t\t\t\t\t\t\t\t\t\t\t...attributes.photoDropShadow,\n\t\t\t\t\t\t\t\t\t\t\tblur: value,\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tmin={ 0 }\n\t\t\t\t\t\t\t\tmax={ 100 }\n\t\t\t\t\t\t\t\tstep={ 1 }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\tphotoDropShadow: {\n\t\t\t\t\t\t\t\t\t\t\t...attributes.photoDropShadow,\n\t\t\t\t\t\t\t\t\t\t\tspread: value,\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tmin={ -25 }\n\t\t\t\t\t\t\t\tmax={ 25 }\n\t\t\t\t\t\t\t\tstep={ 1 }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\tphotoDropShadow: {\n\t\t\t\t\t\t\t\t\t\t...attributes.photoDropShadow,\n\t\t\t\t\t\t\t\t\t\tinset: value,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t/>\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n};\nexport default DropShadowControl;\n","import React, { useRef, useEffect, useState, useContext } from 'react';\nimport {\n\tSpinner,\n\tButton,\n\tButtonGroup,\n\tModal,\n\tRadioControl,\n\tTextControl,\n\tSelectControl,\n\tCheckboxControl,\n\tPanelBody,\n} from '@wordpress/components';\nimport { createBlock } from '@wordpress/blocks';\nimport { useDispatch, useSelect, select } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { __ } from '@wordpress/i18n';\nimport { Save, Edit, Layers, Pencil, Trash } from 'lucide-react';\nimport { useForm, Controller, useWatch, useFormState } from 'react-hook-form';\nimport CustomPresetsContext from './context';\nimport CustomPresetSaveModal from './GlobalStylesSaveModal';\nimport globalStylesStore from '../../store/global-styles';\nimport GlobalStylesDeleteModal from './GlobalStylesDeleteModal';\nimport GlobalStylesEditModal from './GlobalStylesEditModal';\n\n// Read in localized var and determine if user can save or edit presets.\nconst canSavePresets = photoBlockUser.canSavePresets;\n\nconst GlobalStylesContainer = ( props ) => {\n\tconst [ loading, setLoading ] = useState( false );\n\tconst [ presetSaveType, setPresetSaveType ] = useState( 'new' );\n\tconst [ presetSaveLabel, setPresetSaveLabel ] = useState( '' );\n\tconst { setAttributes, attributes, clientId, globalStyle } = props;\n\tconst { uniqueId } = props.attributes;\n\tconst {\n\t\tsavingPreset,\n\t\tsetSavingPreset,\n\t\teditPresets,\n\t\tsetEditPresets,\n\t\tshowEditModal,\n\t\tsetShowEditModal,\n\t\tshowDeleteModal,\n\t\tsetShowDeleteModal,\n\t\trefreshGlobalStyles,\n\t\tsetRefreshGlobalStyles,\n\t\tsetDefaultPreset,\n\t} = useContext( CustomPresetsContext );\n\n\tconst {\n\t\tgetGlobalStyles,\n\t\tgetGlobalStyleBySlug,\n\t\thasGlobalStyle,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\tgetGlobalStyles: select( globalStylesStore ).getGlobalStyles,\n\t\t\tgetGlobalStyleBySlug: select( globalStylesStore ).getGlobalStyleBySlug,\n\t\t\thasGlobalStyle: select( globalStylesStore ).hasGlobalStyle,\n\t\t};\n\t} );\n\n\tconst { setGlobalStyle } = useDispatch( globalStylesStore );\n\n\tconst { updateBlockAttributes, insertBlock } = useDispatch( blockEditorStore );\n\n\tconst getDefaultValues = () => {\n\t\treturn {\n\t\t\tselectedGlobalStyle: '',\n\t\t\tapplyAsPreset: false,\n\t\t};\n\t};\n\n\tconst { createSuccessNotice, createWarningNotice } = useDispatch( 'core/notices' );\n\n\tconst { control, handleSubmit, setValue, trigger, setError, clearErrors, getValues } = useForm( {\n\t\tdefaultValues: getDefaultValues(),\n\t} );\n\n\tconst { errors } = useFormState( {\n\t\tcontrol,\n\t} );\n\n\tconst globalStyleContainer = useRef( null );\n\n\t/**\n\t * Show a loading spinner.\n\t *\n\t * @param {string} label Label of the loading spinner.\n\t * @return {JSX} Loading spinner.\n\t */\n\tconst showLoading = ( label ) => {\n\t\treturn (\n\t\t\t
\n\t\t\t\t{ label }\n\t\t\t\t\n\t\t\t
\n\t\t);\n\t};\n\n\tconst generateGlobalStyle = () => {\n\t\tconst ajaxUrl = `${ ajaxurl }`; // eslint-disable-line no-undef\n\t\tconst formDataNew = new FormData();\n\t\tformDataNew.append( 'action', 'dlx_photo_block_generate_global_styles' );\n\t\tformDataNew.append( 'nonce', photoBlock.globalStylesGenerateNonce );\n\n\t\tfetch( ajaxUrl, {\n\t\t\tmethod: 'POST',\n\t\t\tbody: formDataNew,\n\t\t\t/* get return in json */\n\t\t\theaders: {\n\t\t\t\tAccept: 'application/json',\n\t\t\t},\n\t\t} )\n\t\t\t.then( ( response ) => response.json() )\n\t\t\t.then( ( json ) => {\n\t\t\t\tconst { success, data } = json;\n\t\t\t\tif ( ! success ) {\n\t\t\t\t\tsetError( 'formAjaxError', {\n\t\t\t\t\t\ttype: 'ajax',\n\t\t\t\t\t\tmessage: data.message,\n\t\t\t\t\t} );\n\t\t\t\t\tcreateWarningNotice(\n\t\t\t\t\t\t__( 'There was an error saving the global style CSS file.', 'photo-block' ),\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\t\t\t\t\tsetRefreshGlobalStyles( false );\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tcreateSuccessNotice(\n\t\t\t\t\t__( 'Global style CSS File generated successfully.', 'photo-block' ),\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t\tsetRefreshGlobalStyles( false );\n\t\t\t} )\n\t\t\t.catch( ( error ) => {\n\t\t\t} );\n\t};\n\n\tconst onSubmit = ( formData ) => {\n\t\tconst globalStyleSlug = formData.selectedGlobalStyle;\n\t\tif ( 'none' === globalStyleSlug ) {\n\t\t\tsetError( 'selectedGlobalStyle', {\n\t\t\t\ttype: 'manual',\n\t\t\t\tmessage: __( 'Please select a global style.', 'photo-block' ),\n\t\t\t} );\n\t\t\treturn;\n\t\t}\n\n\t\t// Get the global style data.\n\t\tconst currentGlobalStyle = getGlobalStyleBySlug( globalStyleSlug );\n\n\t\t// IF the global style is not found, return.\n\t\tif ( ! currentGlobalStyle?.content ) {\n\t\t\tsetError( 'selectedGlobalStyle', {\n\t\t\t\ttype: 'manual',\n\t\t\t\tmessage: __( 'Global style not found.', 'photo-block' ),\n\t\t\t} );\n\t\t\treturn;\n\t\t}\n\n\t\t// Get unique ID for the caption block.\n\t\tconst children = select( 'core/block-editor' ).getBlocksByClientId( clientId )[ 0 ]?.innerBlocks || [];\n\t\tconst captionBlock = children.find( ( block ) => 'dlxplugins/photo-caption-block' === block.name );\n\n\t\t// Get unique ID for the photo block.\n\t\tconst uniqueIdAttribute = { uniqueId };\n\t\tconst photoBlockAttributes = { ...currentGlobalStyle.content.photoAttributes, ...uniqueIdAttribute };\n\t\tconst captionAttributes = currentGlobalStyle.content.captionAttributes;\n\n\t\t// Apply attributes for current photo block.\n\t\tsetAttributes( photoBlockAttributes );\n\n\t\t// Set the global style attribute.\n\t\tsetAttributes( { globalStyle: globalStyleSlug } );\n\n\t\t// If there is no caption block, but there are attributes to apply, create one.\n\t\tif ( ! captionBlock && captionAttributes ) {\n\t\t\tsetAttributes( { hasCaption: true } );\n\t\t\tconst newBlocks = createBlock( 'dlxplugins/photo-caption-block', captionAttributes );\n\t\t\tinsertBlock( newBlocks, undefined, clientId );\n\t\t}\n\n\t\t// If there is a caption block and attributes to apply, apply them.\n\t\tif ( captionBlock && captionAttributes ) {\n\t\t\tconst captionBlockAttributes = { ...captionAttributes, ...uniqueIdAttribute };\n\t\t\tupdateBlockAttributes( captionBlock.clientId, captionBlockAttributes );\n\t\t}\n\t};\n\tconst savedPresets = getGlobalStyles();\n\tconst getGlobalStylesForEditing = () => {\n\t\tconst styles = savedPresets;\n\t\tconst styleSelect = [];\n\t\tif ( Object.keys( styles ).length > 0 ) {\n\t\t\t// Append to the select options.\n\t\t\tObject.keys( styles ).forEach( ( key ) => {\n\t\t\t\tstyleSelect.push( {\n\t\t\t\t\tvalue: styles[ key ].slug,\n\t\t\t\t\tlabel: styles[ key ].title,\n\t\t\t\t\tid: styles[ key ].id,\n\t\t\t\t\tdeleteNonce: styles[ key ].delete_nonce,\n\t\t\t\t\tsaveNonce: styles[ key ].save_nonce,\n\t\t\t\t\tcssClass: styles[ key ].css_class,\n\t\t\t\t} );\n\t\t\t} );\n\n\t\t\treturn (\n\t\t\t\t<>\n\t\t\t\t\t
\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstyleSelect.map( ( style ) => {\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t{ style.label }\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowEditModal( {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\teditId: style.id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle: style.label,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsaveNonce: style.saveNonce,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tslug: style.value,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcssClass: style.cssClass,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\tlabel={ __( 'Edit Global Style', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowDeleteModal( {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\teditId: style.id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle: style.label,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeleteNonce: style.deleteNonce,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tslug: style.value,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcssClass: style.cssClass,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\tlabel={ __( 'Delete Global Style', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t}\n\t\t\t\t\t
\n\t\t\t\t\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t

\n\t\t\t\t\t{\n\t\t\t\t\t\tcanSavePresets\n\t\t\t\t\t\t\t? __( 'No global styles have been saved yet. Would you like to save a new one?', 'photo-block', )\n\t\t\t\t\t\t\t: __( 'No global styles have been saved yet.', 'photo-block', )\n\t\t\t\t\t}\n\t\t\t\t

\n\t\t\t\n\t\t);\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t{ showEditModal && (\n\t\t\t\t\n\t\t\t) }\n\t\t\t{ showDeleteModal && (\n\t\t\t\t\n\t\t\t) }\n\t\t\t
\n\t\t\t\t{ ! loading && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t{ editPresets && (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t{ getGlobalStylesForEditing() }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) }\n\t\t\t\t\t\t{ ( canSavePresets ) && (\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{ ( ! editPresets && ! hasGlobalStyle( globalStyle ) ) && (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\t\t\t\tsetSavingPreset( true );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\tclassName=\"photo-block-global-styles-save-button\"\n\t\t\t\t\t\t\t\t\t\tlabel={ __( 'Save New Global Style', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{ __( 'Save New Global Style', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t{ ( ! editPresets && Object.keys( savedPresets ).length > 0 ) && (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\t\t\t\tsetEditPresets( true );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\tclassName=\"photo-block-global-styles-edit-button\"\n\t\t\t\t\t\t\t\t\t\tlabel={ __( 'Edit Global Styles', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{ __( 'Edit Global Styles', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t{ ( ! editPresets && Object.keys( savedPresets ).length > 0 ) && (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\t\t\t\tsetRefreshGlobalStyles( true );\n\t\t\t\t\t\t\t\t\t\t\tgenerateGlobalStyle();\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\tclassName=\"photo-block-global-styles-refresh-button\"\n\t\t\t\t\t\t\t\t\t\tlabel={ __( 'Refresh Global Style', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\tdisabled={ refreshGlobalStyles }\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\trefreshGlobalStyles\n\t\t\t\t\t\t\t\t\t\t\t\t? __( 'Refreshing Global Styles', 'photo-block' )\n\t\t\t\t\t\t\t\t\t\t\t\t: __( 'Refresh Global Styles', 'photo-block' )\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t{ editPresets && ! savingPreset && (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\t\t\t\tsetEditPresets( false );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\tclassName=\"photo-block-global-styles-exit-button\"\n\t\t\t\t\t\t\t\t\t\tlabel={ __( 'Exit Edit Mode', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{ __( 'Exit Edit Mode', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t) }\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\t{ savingPreset && (\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t
\n\t\t\n\t);\n};\nexport default GlobalStylesContainer;\n","import React, { useState, useContext } from 'react';\nimport {\n\tButton,\n\tModal,\n\tTextControl,\n} from '@wordpress/components';\nimport { useDispatch } from '@wordpress/data';\nimport { useForm, Controller, useFormState } from 'react-hook-form';\nimport { __ } from '@wordpress/i18n';\nimport { AlertCircle } from 'lucide-react';\nimport CustomPresetsContext from './context';\nimport Notice from '../Notice';\nimport globalStylesStore from '../../store/global-styles';\n\nconst GlobalStylesDeleteModal = ( props ) => {\n\tconst { title, editId, deleteNonce, slug } = props;\n\tconst [ isDeleting, setIsDeleting ] = useState( false );\n\n\tconst { setSavedPresets, showDeleteModal, setShowDeleteModal } =\n\t\tuseContext( CustomPresetsContext );\n\n\tconst getDefaultValues = () => {\n\t\treturn {\n\t\t\teditId,\n\t\t};\n\t};\n\tconst { control, handleSubmit, setError } = useForm( {\n\t\tdefaultValues: getDefaultValues(),\n\t} );\n\n\tconst { errors } = useFormState( {\n\t\tcontrol,\n\t} );\n\n\tconst { removeGlobalStyle } = useDispatch( globalStylesStore );\n\n\tconst { createWarningNotice, createSuccessNotice } = useDispatch( 'core/notices' );\n\n\tconst onSubmit = ( formData ) => {\n\t\tsetIsDeleting( true );\n\t\tconst ajaxUrl = `${ ajaxurl }`; // eslint-disable-line no-undef\n\t\tconst data = new FormData();\n\t\tdata.append( 'action', 'dlx_photo_block_delete_global_style' );\n\t\tdata.append( 'nonce', deleteNonce );\n\t\tdata.append( 'editId', formData.editId );\n\t\tfetch( ajaxUrl, {\n\t\t\tmethod: 'POST',\n\t\t\tbody: data,\n\t\t\t/* get return in json */\n\t\t\theaders: {\n\t\t\t\tAccept: 'application/json',\n\t\t\t},\n\t\t} )\n\t\t\t.then( ( response ) => response.json() )\n\t\t\t.then( ( json ) => {\n\t\t\t\tconst { success, data } = json;\n\t\t\t\tif ( ! success ) {\n\t\t\t\t\tsetError( 'deletionFailed', {\n\t\t\t\t\t\ttype: 'manual',\n\t\t\t\t\t\tmessage: data.message,\n\t\t\t\t\t} );\n\t\t\t\t\tcreateWarningNotice(\n\t\t\t\t\t\tdata.message,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t\t\t}\n\t\t\t\t\t)\n\t\t\t\t\tsetIsDeleting( false );\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tcreateWarningNotice(\n\t\t\t\t\t__( 'Global style deleted.', 'photo-block' ),\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t\tremoveGlobalStyle( slug );\n\t\t\t\tsetIsDeleting( false );\n\t\t\t\tsetShowDeleteModal( false );\n\t\t\t} )\n\t\t\t.catch( ( error ) => {\n\t\t\t\tsetError( 'deletionFailed', {\n\t\t\t\t\ttype: 'manual',\n\t\t\t\t\tmessage: error.message,\n\t\t\t\t} );\n\t\t\t\tsetIsDeleting( false );\n\t\t\t} );\n\t};\n\n\t// Don't show modal unless explicitly set.\n\tif ( ! showDeleteModal ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t setShowDeleteModal( false ) }\n\t\t\tclassName=\"photo-block-global-styles-modal\"\n\t\t\tshouldCloseOnClickOutside={ false }\n\t\t>\n\t\t\t
\n\t\t\t\t

\n\t\t\t\t\t{ __( 'Any photos using this global style will use last-assigned values.', 'photo-block' ) }\n\t\t\t\t

\n\t\t\t\t }\n\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t\t{ isDeleting\n\t\t\t\t\t\t? __( 'Deleting…', 'photo-block' )\n\t\t\t\t\t\t: __( 'Delete Global Style', 'photo-block' ) }\n\t\t\t\t\n\t\t\t\t{ ! isDeleting && (\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetShowDeleteModal( false );\n\t\t\t\t\t\t} }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Cancel', 'photo-block' ) }\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\t{ errors.deletionFailed && (\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\n\t\t\n\t);\n};\nexport default GlobalStylesDeleteModal;\n","import React, { useState, useContext } from 'react';\nimport {\n\tButton,\n\tModal,\n\tTextControl,\n\tToggleControl,\n} from '@wordpress/components';\nimport { useForm, Controller, useFormState } from 'react-hook-form';\nimport { __ } from '@wordpress/i18n';\nimport { useDispatch } from '@wordpress/data';\nimport { AlertCircle } from 'lucide-react';\nimport Notice from '../Notice';\nimport CustomPresetsContext from './context';\nimport globalStylesStore from '../../store/global-styles';\n\nconst canSaveDefaultPresets = photoBlockUser.canSaveDefaultPresets;\n\nconst GlobalStylesEditModal = ( props ) => {\n\tconst { title, editId, saveNonce, cssClass } = props;\n\tconst [ isSaving, setIsSaving ] = useState( false );\n\n\tconst { setSavedPresets, showEditModal, setShowEditModal, defaultPreset, setDefaultPreset } =\n\t\tuseContext( CustomPresetsContext );\n\n\tconst getDefaultValues = () => {\n\t\treturn {\n\t\t\ttitle,\n\t\t\teditId,\n\t\t\tcssClass,\n\t\t};\n\t};\n\tconst { control, handleSubmit, getValues, setError } = useForm( {\n\t\tdefaultValues: getDefaultValues(),\n\t} );\n\n\tconst { errors } = useFormState( {\n\t\tcontrol,\n\t} );\n\n\tconst {setGlobalStyle } = useDispatch( globalStylesStore );\n\n\tconst { createSuccessNotice } = useDispatch( 'core/notices' );\n\n\tconst onSubmit = ( formData ) => {\n\t\tsetIsSaving( true );\n\t\tconst ajaxUrl = `${ ajaxurl }`; // eslint-disable-line no-undef\n\t\tconst data = new FormData();\n\t\tdata.append( 'action', 'dlx_photo_block_save_edited_global_style' );\n\t\tdata.append( 'nonce', saveNonce );\n\t\tdata.append( 'editId', formData.editId );\n\t\tdata.append( 'title', formData.title );\n\t\tdata.append( 'cssClass', formData.cssClass );\n\t\tfetch( ajaxUrl, {\n\t\t\tmethod: 'POST',\n\t\t\tbody: data,\n\t\t\t/* get return in json */\n\t\t\theaders: {\n\t\t\t\tAccept: 'application/json',\n\t\t\t},\n\t\t} )\n\t\t\t.then( ( response ) => response.json() )\n\t\t\t.then( ( json ) => {\n\t\t\t\tconst { success } = json;\n\t\t\t\tsetIsSaving( false );\n\t\t\t\tif ( ! success ) {\n\t\t\t\t\tsetError(\n\t\t\t\t\t\t'saveError',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttype: 'manual',\n\t\t\t\t\t\t\tmessage: data.message,\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsetGlobalStyle( json.data, json.data.slug );\n\n\t\t\t\t// Show a success notice.\n\t\t\t\tcreateSuccessNotice(\n\t\t\t\t\t__( 'Global style updated successfully.', 'photo-block' ),\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t\t}\n\t\t\t\t);\n\n\t\t\t\t// Close the modal.\n\t\t\t\tsetShowEditModal( false );\n\t\t\t} )\n\t\t\t.catch( ( error ) => {\n\t\t\t\tsetIsSaving( false );\n\t\t\t} );\n\t};\n\n\t// Don't show modal unless explicitly set.\n\tif ( ! showEditModal ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t setShowEditModal( false ) }\n\t\t\tclassName=\"photo-block-global-styles-modal\"\n\t\t\tshouldCloseOnClickOutside={ false }\n\t\t>\n\t\t\t
\n\t\t\t\t (\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t{ 'required' === errors.title?.type && (\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\t{ 'pattern' === errors.title?.type && (\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\t (\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t{ 'required' === errors.cssClass?.type && (\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\t{ 'pattern' === errors.cssClass?.type && (\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\t }\n\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t\t{ isSaving\n\t\t\t\t\t\t? __( 'Saving…', 'photo-block' )\n\t\t\t\t\t\t: __( 'Apply Changes', 'photo-block' ) }\n\t\t\t\t\n\t\t\t\t{ ! isSaving && (\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetShowEditModal( false );\n\t\t\t\t\t\t} }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Cancel', 'photo-block' ) }\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\t{\n\t\t\t\t\terrors?.saveError && (\n\t\t\t\t\t\t\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\n\t\t\n\t);\n};\nexport default GlobalStylesEditModal;\n","import React, { useState, useContext } from 'react';\nimport {\n\tButton,\n\tModal,\n\tRadioControl,\n\tTextControl,\n\tToggleControl,\n} from '@wordpress/components';\nimport { cleanForSlug } from '@wordpress/url';\nimport classnames from 'classnames';\nimport { createBlock } from '@wordpress/blocks';\nimport { useForm, Controller, useFormState } from 'react-hook-form';\nimport { __ } from '@wordpress/i18n';\nimport { useDispatch, useSelect, select } from '@wordpress/data';\nimport { AlertCircle, Save } from 'lucide-react';\nimport CustomPresetsContext from './context';\nimport Notice from '../Notice';\nimport globalStylesStore from '../../store/global-styles';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\n\nconst canSaveDefaultPresets = photoBlockUser.canSetDefaultPresets;\n\nconst GlobalStylesSaveModal = ( props ) => {\n\tconst [ presetSaveType, setPresetSaveType ] = useState( 'new' );\n\tconst [ isSaving, setIsSaving ] = useState( false );\n\tconst { title, setAttributes, clientId } = props;\n\n\tconst { setSavingPreset } =\n\t\tuseContext( CustomPresetsContext );\n\n\tconst {\n\t\tsetGlobalStyle,\n\t\tsetGlobalStyleRefresh,\n\t} = useDispatch( globalStylesStore );\n\n\tconst {\n\t\tinsertBlock,\n\t\tupdateBlockAttributes,\n\t} = useDispatch( blockEditorStore );\n\n\tconst {\n\t\tglobalStyles,\n\t} = useSelect( ( groupSelect ) => {\n\t\treturn {\n\t\t\tglobalStyles: groupSelect( globalStylesStore ).getGlobalStyles(),\n\t\t};\n\t} );\n\n\tconst getDefaultValues = () => {\n\t\treturn {\n\t\t\tglobalStyleLabel: '',\n\t\t\tglobalStyleSlug: '',\n\t\t\tglobalStyleCSSClass: '',\n\t\t\tselectedGlobalStyle: null,\n\t\t\tglobalStyleApplyToBlock: true,\n\t\t};\n\t};\n\tconst { control, handleSubmit, setValue, trigger, setError, clearErrors, getValues } = useForm( {\n\t\tdefaultValues: getDefaultValues(),\n\t} );\n\n\tconst { errors } = useFormState( {\n\t\tcontrol,\n\t} );\n\n\tconst { createSuccessNotice, createWarningNotice } = useDispatch( 'core/notices' );\n\t/**\n\t * Retrieve a list of parent and child attributes for the current block.\n\t *\n\t * @return {Object} Object of attributes with keys photoAttributes, captionAttributes..\n\t */\n\tconst getCurrentAttributes = () => {\n\t\t// Get the caption block attributes, if any.\n\t\tlet currentBlock = select( 'core/block-editor' ).getBlocksByClientId( clientId )[ 0 ];\n\t\tlet parentClientId = currentBlock.clientId;\n\n\t\t// If the current block is a caption, select the parent block's clientId instead.\n\t\tif ( 'dlxplugins/photo-caption-block' === currentBlock.name ) {\n\t\t\tconst currentBlockClientId = select( 'core/block-editor' ).getBlockParents( clientId )[ 0 ];\n\t\t\tcurrentBlock = select( 'core/block-editor' ).getBlocksByClientId( currentBlockClientId )[ 0 ];\n\t\t\tparentClientId = currentBlock.clientId;\n\t\t}\n\t\tconst children = select( 'core/block-editor' ).getBlocksByClientId( parentClientId )[ 0 ]?.innerBlocks || [];\n\t\tconst captionBlock = children.find( ( block ) => 'dlxplugins/photo-caption-block' === block.name );\n\t\tconst captionAttributes = captionBlock ? captionBlock.attributes : {};\n\n\t\t// Get the parent block attributes.\n\t\tconst parentAttributes = select( 'core/block-editor' ).getBlockAttributes( parentClientId );\n\n\t\t// Merge the parent and child attributes.\n\t\tconst allAttributes = {\n\t\t\tphotoAttributes: parentAttributes,\n\t\t\tcaptionAttributes,\n\t\t};\n\t\treturn allAttributes;\n\t};\n\n\tconst onSubmit = ( formData ) => {\n\t\tif ( 'new' === presetSaveType ) {\n\t\t\tsaveNewPreset( formData );\n\t\t} else {\n\t\t\toverridePreset( formData );\n\t\t}\n\t};\n\n\tconst hasErrors = () => {\n\t\treturn Object.keys( errors ).length > 0;\n\t};\n\n\t/**\n\t * Apply Global Style to current block.\n\t *\n\t * @param {Object} globalStyle Global Style slug.\n\t */\n\tconst applyGlobalStyle = ( globalStyle ) => {\n\t\tif ( ! getValues( 'globalStyleApplyToBlock' ) ) {\n\t\t\treturn;\n\t\t}\n\t\tlet hasCaption = false;\n\t\tif ( globalStyle.content?.photoAttributes?.hasCaption ) {\n\t\t\thasCaption = true;\n\t\t}\n\n\t\tlet currenBlockClientId = props.clientId;\n\n\t\t// Get the parent photo block.\n\t\tlet currentBlock = select( 'core/block-editor' ).getBlocksByClientId( currenBlockClientId )[ 0 ];\n\t\tif ( 'dlxplugins/photo-caption-block' === currentBlock.name ) {\n\t\t\tconst newParentClientId = select( 'core/block-editor' ).getBlockParents( currenBlockClientId )[ 0 ];\n\t\t\tcurrentBlock = select( 'core/block-editor' ).getBlocksByClientId( newParentClientId )[ 0 ];\n\t\t\tcurrenBlockClientId = newParentClientId;\n\t\t}\n\n\t\t// Try to get children of the block (caption).\n\t\tconst children = select( 'core/block-editor' ).getBlocksByClientId( currenBlockClientId )[ 0 ]?.innerBlocks || [];\n\n\t\t// Get any exising caption blocks.\n\t\tconst captionBlock = children.find( ( block ) => 'dlxplugins/photo-caption-block' === block.name );\n\n\t\t// Get unique ID for the photo block.\n\t\tconst uniqueIdAttribute = currentBlock.attributes.uniqueId;\n\t\tconst captionAttributes = {\n\t\t\t...globalStyle.content.captionAttributes,\n\t\t\t...{ globalStyle: globalStyle.slug },\n\t\t};\n\n\t\t// Set global style for parent block.\n\t\tupdateBlockAttributes( currenBlockClientId, {\n\t\t\tdate: new Date().getTime(),\n\t\t\tglobalStyle: globalStyle.slug,\n\t\t\thasCaption,\n\t\t} );\n\n\t\t// If there is no caption block, but there are attributes to apply, create one.\n\t\tif ( ! captionBlock && ( captionAttributes || captionAttributes.length > 0 ) ) {\n\t\t\tconst newBlocks = createBlock( 'dlxplugins/photo-caption-block', captionAttributes );\n\t\t\tinsertBlock( newBlocks, undefined, currenBlockClientId );\n\t\t}\n\n\t\t// If there is a caption block and attributes to apply, apply them.\n\t\tif ( captionBlock && ( captionAttributes || captionAttributes.length > 0 ) ) {\n\t\t\tconst captionBlockAttributes = { ...captionAttributes, ...uniqueIdAttribute };\n\t\t\tupdateBlockAttributes( captionBlock.clientId, captionBlockAttributes );\n\t\t}\n\t};\n\n\t/**\n\t * Save a new preset via Ajax.\n\t *\n\t * @param {Array} formData Form data array.\n\t */\n\tconst saveNewPreset = ( formData ) => {\n\t\tsetIsSaving( true );\n\t\tconst ajaxUrl = `${ ajaxurl }`; // eslint-disable-line no-undef\n\t\tconst formDataNew = new FormData();\n\t\tformDataNew.append( 'action', 'dlx_photo_block_save_global_styles' );\n\t\tformDataNew.append( 'nonce', photoBlock.globalStylesSaveNewNonce );\n\t\tformDataNew.append( 'attributes', JSON.stringify( getCurrentAttributes() ) );\n\t\tformDataNew.append( 'formData', JSON.stringify( formData ) );\n\t\tfetch( ajaxUrl, {\n\t\t\tmethod: 'POST',\n\t\t\tbody: formDataNew,\n\t\t\t/* get return in json */\n\t\t\theaders: {\n\t\t\t\tAccept: 'application/json',\n\t\t\t},\n\t\t} )\n\t\t\t.then( ( response ) => response.json() )\n\t\t\t.then( ( json ) => {\n\t\t\t\tconst { success, data } = json;\n\t\t\t\tif ( ! success ) {\n\t\t\t\t\tsetError( 'formAjaxError', {\n\t\t\t\t\t\ttype: 'ajax',\n\t\t\t\t\t\tmessage: data.message,\n\t\t\t\t\t} );\n\t\t\t\t\tcreateWarningNotice(\n\t\t\t\t\t\t__( 'There was an error saving the global style.', 'photo-block' ),\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\t\t\t\t\tsetIsSaving( false );\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tcreateSuccessNotice(\n\t\t\t\t\t__( 'Global style saved successfully.', 'photo-block' ),\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t\tapplyGlobalStyle( data, data.slug );\n\t\t\t\tsetGlobalStyleRefresh( new Date().getTime() );\n\t\t\t\tsetGlobalStyle( data, data.slug );\n\t\t\t\tsetIsSaving( false );\n\t\t\t\tsetSavingPreset( false );\n\n\t\t\t\tprops.generateGlobalStyle();\n\t\t\t} )\n\t\t\t.catch( ( error ) => {\n\t\t\t\tsetIsSaving( false );\n\t\t\t\tsetSavingPreset( false );\n\t\t\t} );\n\t};\n\n\t/**\n\t * Save a new preset via Ajax.\n\t *\n\t * @param {Array} formData Form data array.\n\t */\n\tconst overridePreset = ( formData ) => {\n\t\tsetIsSaving( true );\n\t\tconst ajaxUrl = `${ ajaxurl }`; // eslint-disable-line no-undef\n\t\tconst data = new FormData();\n\t\tdata.append( 'action', 'dlx_photo_block_override_global_style' );\n\t\tdata.append( 'nonce', photoBlock.globalStylesSaveNewNonce );\n\t\tdata.append( 'attributes', JSON.stringify( getCurrentAttributes() ) );\n\t\tdata.append( 'editId', formData.selectedGlobalStyle );\n\t\tfetch( ajaxUrl, {\n\t\t\tmethod: 'POST',\n\t\t\tbody: data,\n\t\t\t/* get return in json */\n\t\t\theaders: {\n\t\t\t\tAccept: 'application/json',\n\t\t\t},\n\t\t} )\n\t\t\t.then( ( response ) => response.json() )\n\t\t\t.then( ( json ) => {\n\t\t\t\tconst { success } = json;\n\t\t\t\tconst newData = json.data;\n\t\t\t\tif ( ! success ) {\n\t\t\t\t\tsetError( 'formAjaxError', {\n\t\t\t\t\t\ttype: 'ajax',\n\t\t\t\t\t\tmessage: newData.message,\n\t\t\t\t\t} );\n\t\t\t\t\tcreateWarningNotice(\n\t\t\t\t\t\t__( 'There was an error saving the global style override.', 'photo-block' ),\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\t\t\t\t\tsetIsSaving( false );\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tapplyGlobalStyle( newData, newData.slug );\n\t\t\t\tsetGlobalStyle( newData, newData.slug );\n\t\t\t\tsetIsSaving( false );\n\t\t\t\tsetSavingPreset( false );\n\t\t\t\tprops.generateGlobalStyle();\n\t\t\t\tsetGlobalStyleRefresh( new Date().getTime() );\n\t\t\t\tmaybeRefreshBlocks( newData );\n\n\t\t\t\tcreateSuccessNotice(\n\t\t\t\t\t__( 'Global style saved successfully.', 'photo-block' ),\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t} )\n\t\t\t.catch( ( error ) => {\n\t\t\t\tsetSavingPreset( false );\n\t\t\t} );\n\t};\n\n\t/**\n\t * Refresh blocks upon a global style override.\n\t *\n\t * @param {Object} incomingData Incoming data from the server.\n\t */\n\tconst maybeRefreshBlocks = ( incomingData ) => {\n\t\t// Get a list of all photo blocks.\n\t\tconst photoBlocks = select( 'core/block-editor' ).getBlocks().filter( ( block ) => {\n\t\t\treturn 'dlxplugins/photo-block' === block.name;\n\t\t} );\n\t\t// Now for each that has a global style, let's force an attribute update.\n\t\tphotoBlocks.forEach( ( block ) => {\n\t\t\tconst { globalStyle, uniqueId } = block.attributes;\n\t\t\tconst captionPosition = incomingData.content.captionAttributes.captionPosition;\n\n\t\t\t// Get the caption block attributes, if any.\n\t\t\tlet currentBlock = select( 'core/block-editor' ).getBlocksByClientId( parentClientId )[ 0 ];\n\t\t\tlet parentClientId = currentBlock.clientId;\n\n\t\t\t// If the current block is a caption, select the parent block's clientId instead.\n\t\t\tif ( 'dlxplugins/photo-caption-block' === currentBlock.name ) {\n\t\t\t\tconst currentBlockClientId = select( 'core/block-editor' ).getBlockParents( clientId )[ 0 ];\n\t\t\t\tcurrentBlock = select( 'core/block-editor' ).getBlocksByClientId( currentBlockClientId )[ 0 ];\n\t\t\t\tparentClientId = currentBlock.clientId;\n\t\t\t}\n\n\t\t\tif ( globalStyle !== 'none' && '' !== globalStyle ) {\n\t\t\t\tupdateBlockAttributes( parentClientId, {\n\t\t\t\t\tdate: new Date().getTime(),\n\t\t\t\t\tglobalStyle,\n\t\t\t\t\tcaptionPosition,\n\t\t\t\t} );\n\n\t\t\t\t// Now get caption blocks and refresh.\n\t\t\t\tconst children = currentBlock.innerBlocks || [];\n\t\t\t\tconst captionBlock = children.find( ( innerBlock ) => 'dlxplugins/photo-caption-block' === innerBlock.name );\n\t\t\t\tif ( captionBlock ) {\n\t\t\t\t\tupdateBlockAttributes( captionBlock.clientId, {\n\t\t\t\t\t\tdate: new Date().getTime(),\n\t\t\t\t\t\tglobalStyle,\n\t\t\t\t\t\tcaptionPosition,\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t};\n\n\t/**\n\t * Get the preset options in radio group format.\n\t *\n\t * @return {Array} Array of objects with label and value properties.\n\t */\n\tconst getPresetRadioOptions = () => {\n\t\tconst options = [];\n\t\tObject.values( globalStyles ).forEach( ( globalStyle ) => {\n\t\t\toptions.push( {\n\t\t\t\tlabel: globalStyle.title,\n\t\t\t\tvalue: globalStyle.id + '',\n\t\t\t} );\n\t\t} );\n\t\treturn options;\n\t};\n\n\tlet radioOptions = [\n\t\t{\n\t\t\tlabel: __( 'Save Global Style', 'photo-block' ),\n\t\t\tvalue: 'new',\n\t\t},\n\t\t{\n\t\t\tlabel: __( 'Override Global Style', 'photo-block' ),\n\t\t\tvalue: 'override',\n\t\t},\n\t];\n\tif ( Object.keys( globalStyles ).length === 0 || ! canSaveDefaultPresets ) {\n\t\tradioOptions = [\n\t\t\t{\n\t\t\t\tlabel: __( 'Save Global Style', 'photo-block' ),\n\t\t\t\tvalue: 'new',\n\t\t\t},\n\t\t];\n\t}\n\n\treturn (\n\t\t
\n\t\t\t setSavingPreset( false ) }\n\t\t\t\tclassName=\"photo-block-global-styles-modal\"\n\t\t\t\tshouldCloseOnClickOutside={ false }\n\t\t\t>\n\t\t\t\t{ radioOptions.length > 1 && (\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetPresetSaveType( value );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t\t
\n\t\t\t\t\t{ 'new' === presetSaveType && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\tif ( getValues( 'globalStyleCSSClass' ) === '' ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetValue(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'globalStyleCSSClass',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcleanForSlug( field.value )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttrigger( 'globalStyleCSSClass' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\tonChange={ ( newValue ) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tclearErrors();\n\t\t\t\t\t\t\t\t\t\t\t\t\tfield.onChange( newValue );\n\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\thelp={ __(\n\t\t\t\t\t\t\t\t\t\t\t\t\t'Enter a descriptive label for this global style. A unique slug will be generated automatically.',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t{ 'required' === errors.globalStyleLabel?.type && (\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t{ 'pattern' === errors.globalStyleLabel?.type && (\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\tclearErrors();\n\t\t\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t{ 'pattern' === errors.globalStyleCSSClass?.type && (\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t{ 'required' === errors.globalStyleCSSClass?.type && (\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\t{ ( 'override' === presetSaveType && canSaveDefaultPresets ) && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t{ Object.keys( globalStyles ).length > 0 && (\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t\t\t onChange( radioValue ) }\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t{ 'required' === errors.selectedGlobalStyle?.type && (\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\t
\n\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tfield.onChange( ! field.value );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ isSaving\n\t\t\t\t\t\t\t\t? __( 'Saving…', 'photo-block' )\n\t\t\t\t\t\t\t\t: __( 'Save Global Style', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetSavingPreset( false );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tclassName=\"photo-block-global-styles-modal-cancel-button\"\n\t\t\t\t\t\t\tdisabled={ isSaving }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Cancel', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t{\n\t\t\t\t\t\terrors?.formAjaxError && (\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t
\n\t\t\t\n\t\t
\n\t);\n};\nexport default GlobalStylesSaveModal;\n","import React from 'react';\n\nconst GlobalStylesContext = React.createContext();\n\nexport default GlobalStylesContext;\n","import './editor.scss';\nimport React, { useState } from 'react';\nimport GlobalStylesContext from './context';\nimport GlobalStylesContainer from './GlobalStylesContainer';\n\nconst GlobalStyles = ( props ) => {\n\tconst [ savedPresets, setSavedPresets ] = useState( [] );\n\tconst [ savingPreset, setSavingPreset ] = useState( false );\n\tconst [ editPresets, setEditPresets ] = useState( false );\n\tconst [ showEditModal, setShowEditModal ] = useState( false );\n\tconst [ showDeleteModal, setShowDeleteModal ] = useState( false );\n\tconst [ defaultPreset, setDefaultPreset ] = useState( null );\n\tconst [ refreshGlobalStyles, setRefreshGlobalStyles ] = useState( false );\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default GlobalStyles;\n","\nimport classnames from 'classnames';\nimport getStyles from '../../../blocks/photo-caption-block/block-styles'\nconst CaptionBlockPreview = ( { photoAttributes, captionAttributes, uniqueId } ) => {\n\tconst {\n\t\tmode,\n\t\tcaptionPosition,\n\t\toverlayBackgroundType,\n\t\toverlayDisplayAnimation,\n\t\toverlayDisplayOnHover,\n\t\tphotoMode,\n\t\toverlayHorizontalPosition,\n\t\toverlayVerticalPosition,\n\t\toverlayCaptionHorizontalPosition,\n\t\toverlayCaptionVerticalPosition,\n\t\tcaptionAlign,\n\t} = captionAttributes;\n\n\t/**\n\t * Get the caption for display.\n\t *\n\t * @return {JSX.Element} The caption.\n\t */\n\tconst getCaption = () => {\n\t\tconst figClasses = classnames( `dlx-photo-block__caption align${ captionAlign }`, {\n\t\t\t'has-smart-styles': ( 'advanced' === mode && 'data' !== photoMode && 'featuredImage' !== photoMode ),\n\t\t} );\n\n\t\treturn (\n\t\t\t
This is a sample caption
\n\t\t);\n\t};\n\n\tconst overlayStyles = classnames(\n\t\t'dlx-photo-block__caption-wrapper',\n\t\t`overlay-type-${ overlayBackgroundType }`,\n\t\t{\n\t\t\t'is-overlay': 'overlay' === captionPosition,\n\t\t\t'overlay-vertical-bottom': 'bottom' === overlayVerticalPosition,\n\t\t\t'overlay-vertical-middle': 'middle' === overlayVerticalPosition,\n\t\t\t'overlay-vertical-top': 'top' === overlayVerticalPosition,\n\t\t\t'overlay-horizontal-left': 'left' === overlayHorizontalPosition,\n\t\t\t'overlay-horizontal-center': 'center' === overlayHorizontalPosition,\n\t\t\t'overlay-horizontal-right': 'right' === overlayHorizontalPosition,\n\t\t\t'caption-vertical-bottom': 'bottom' === overlayCaptionVerticalPosition,\n\t\t\t'caption-vertical-middle': 'middle' === overlayCaptionVerticalPosition,\n\t\t\t'caption-vertical-top': 'top' === overlayCaptionVerticalPosition,\n\t\t\t'caption-horizontal-left': 'left' === overlayCaptionHorizontalPosition,\n\t\t\t'caption-horizontal-center': 'center' === overlayCaptionHorizontalPosition,\n\t\t\t'caption-horizontal-right': 'right' === overlayCaptionHorizontalPosition,\n\t\t\t'overlay-display-hover': 'overlay' === captionPosition && overlayDisplayOnHover,\n\t\t\t'overlay-slide-down': overlayDisplayAnimation === 'slide-down',\n\t\t\t'overlay-slide-up': overlayDisplayAnimation === 'slide-up',\n\t\t\t'overlay-slide-left': overlayDisplayAnimation === 'slide-left',\n\t\t\t'overlay-slide-right': overlayDisplayAnimation === 'slide-right',\n\t\t\t'dlx-photo-block__caption-overlay': 'overlay' === captionPosition,\n\t\t}\n\t);\n\n\tconst styles = getStyles( captionAttributes, 'desktop', 'photo-block-preview' );\t\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\n\t\t\t\t{ getCaption() }\n\t\t\t\n\t\t\n\t);\n};\nexport default CaptionBlockPreview;\n","/**\n * Upload data row including Upload|Media Library|URL|Data.\n */\nimport './editor.scss';\n\nimport {\n\tButton,\n\tPopover,\n} from '@wordpress/components';\n\nimport { useContext, useState, useEffect } from '@wordpress/element';\n\nimport { createBlock } from '@wordpress/blocks';\n\nimport classnames from 'classnames';\n\nimport { useSelect, useDispatch, select } from '@wordpress/data';\n\nimport { store as blockEditorStore } from '@wordpress/block-editor';\n\nimport globalStylesStore from '../../../store/global-styles';\nimport { blockStore } from '../../../store/index';\nimport PhotoBlockPreview from './photo-block-preview';\n/**\n * CSSGramButtonGroup component.\n *\n * @param {Object} props - Component props.\n * @return {Function} Component.\n */\nconst GlobalStylesButtonPreview = ( props ) => {\n\tconst { attributes, globalStyle } = props;\n\n\tconst [ buttonRef, setButtonRef ] = useState( null );\n\tconst [ showPopOver, setShowPopOver ] = useState( false );\n\tconst [ blockPreview, setBlockPreview ] = useState( null );\n\n\tconst {\n\t\tgetGlobalStyleBySlug,\n\t} = useSelect( ( newSelect ) => {\n\t\treturn {\n\t\t\tgetGlobalStyleBySlug: newSelect( globalStylesStore ).getGlobalStyleBySlug,\n\t\t};\n\t} );\n\n\tconst {\n\t\tsetHasCaption\n\t} = useDispatch( blockStore( props.attributes.uniqueId ? props.attributes.uniqueId : null ) );\n\n\tconst {\n\t\tinsertBlock,\n\t\tupdateBlockAttributes,\n\t} = useDispatch( blockEditorStore );\n\tconst handlePopoverOpen = () => {\n\t\tsetShowPopOver( true );\n\t\tbuttonRef.focus();\n\t};\n\n\tconst handlePopoverClose = () => {\n\t\tsetShowPopOver( false );\n\t};\n\n\treturn (\n\t\t<>\n\n\t\t\t {\n\t\t\t\t\t// Try to see if photo has caption.\n\t\t\t\t\tlet hasCaption = false;\n\t\t\t\t\tif ( globalStyle.content?.photoAttributes?.hasCaption ) {\n\t\t\t\t\t\tsetHasCaption( true );\n\t\t\t\t\t\thasCaption = true;\n\t\t\t\t\t}\n\t\t\t\t\tconst globalStyleObject = getGlobalStyleBySlug( globalStyle.slug );\n\t\t\t\t\tprops.setAttributes( {\n\t\t\t\t\t\t...globalStyleObject.content.photoAttributes,\n\t\t\t\t\t\tglobalStyle: globalStyle.slug,\n\t\t\t\t\t\thasCaption,\n\t\t\t\t\t\tmediaLinkOverride: false,\n\t\t\t\t\t\timageSizeOverride: false,\n\t\t\t\t\t\timageSize: globalStyleObject.content?.photoAttributes?.imageSize || 'full',\n\t\t\t\t\t\tmediaLinkType: globalStyleObject.content?.photoAttributes?.mediaLinkType || 'none',\n\t\t\t\t\t\tmediaLinkTitle: globalStyleObject.content?.photoAttributes?.mediaLinkTitle || '',\n\t\t\t\t\t\tmediaLinkUrl: globalStyleObject.content?.photoAttributes?.mediaLinkUrl || '',\n\t\t\t\t\t\tlightboxCaption: globalStyleObject.content?.photoAttributes?.lightboxCaption || '',\n\t\t\t\t\t\tlightboxEnabled: globalStyleObject.content?.photoAttributes?.lightboxEnabled || false,\n\t\t\t\t\t\tlightboxShowCaption: globalStyleObject.content?.photoAttributes?.lightboxShowCaption || false,\n\t\t\t\t\t} );\n\n\t\t\t\t\t// Try to get children of the block (caption).\n\t\t\t\t\tconst children = select( 'core/block-editor' ).getBlocksByClientId( props.clientId )[ 0 ]?.innerBlocks || [];\n\n\t\t\t\t\t// Get any exising caption blocks.\n\t\t\t\t\tconst captionBlock = children.find( ( block ) => 'dlxplugins/photo-caption-block' === block.name );\n\n\t\t\t\t\t// Get unique ID for the photo block.\n\t\t\t\t\tconst uniqueIdAttribute = props.attributes.uniqueId;\n\t\t\t\t\tconst captionAttributes = {\n\t\t\t\t\t\t...globalStyle.content.captionAttributes,\n\t\t\t\t\t\t...{ globalStyle: globalStyle.slug },\n\t\t\t\t\t};\n\n\t\t\t\t\t// If there is no caption block, but there are attributes to apply, create one.\n\t\t\t\t\tif ( ! captionBlock && ( Object.keys( captionAttributes ).length > 1 || captionAttributes.length > 1 ) ) {\n\t\t\t\t\t\tconst newBlocks = createBlock( 'dlxplugins/photo-caption-block', captionAttributes );\n\t\t\t\t\t\tinsertBlock( newBlocks, undefined, props.clientId );\n\t\t\t\t\t\tprops.setAttributes( { hasCaption: true } );\n\t\t\t\t\t}\n\n\t\t\t\t\t// If there is a caption block and attributes to apply, apply them.\n\t\t\t\t\tif ( captionBlock && ( Object.keys( captionAttributes ).length > 1 || captionAttributes.length > 1 ) ) {\n\t\t\t\t\t\tconst captionBlockAttributes = { ...captionAttributes, ...uniqueIdAttribute };\n\t\t\t\t\t\tupdateBlockAttributes( captionBlock.clientId, captionBlockAttributes );\n\t\t\t\t\t}\n\t\t\t\t} }\n\t\t\t\tonMouseEnter={ () => handlePopoverOpen( true ) }\n\t\t\t\tonMouseLeave={ () => handlePopoverClose( false ) }\n\t\t\t\tref={ setButtonRef }\n\t\t\t>\n\t\t\t\t{ globalStyle.title }\n\t\t\t\n\t\t\t{\n\t\t\t\tshowPopOver && (\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetShowPopOver( false );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\toffset={ 10 }\n\t\t\t\t\t\tnoArrow={ false }\n\t\t\t\t\t>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t)\n\t\t\t}\n\t\t\n\t);\n};\nexport default GlobalStylesButtonPreview;\n","\nimport classnames from 'classnames';\nimport { useSelect } from '@wordpress/data';\nimport getStyles from '../../../blocks/photo-block/block-styles';\nimport getCaptionStyles from '../../../blocks/photo-caption-block/block-styles';\nimport { blockStore } from '../../../store';\nimport CaptionBlockPreview from './caption-block-preview';\n\nconst PhotoBlockPreview = ( { photoAttributes, captionAttributes, uniqueId } ) => {\n\tif ( 'undefined' === typeof photoAttributes ) {\n\t\treturn null;\n\t}\n\tlet styles = getStyles( photoAttributes, 'desktop', 'photo-block-preview' );\n\tstyles += getCaptionStyles( captionAttributes, 'desktop', 'photo-block-preview' );\n\tstyles += `\n\t\t#photo-block-preview .dlx-photo-block__image-wrapper {\n\t\t\tmax-width: 250px !important;\n\t\t\theight: auto !important;\n\t\t\tmargin: 30px;\n\t\t\toverflow: hidden;\n\t\t}\n\t\t#photo-block-preview img {\n\t\t\tmax-width: 250px !important;\n\t\t\theight: auto !important;\n\t\t}\n\t`;\n\n\tconst {\n\t\tcssGramFilter,\n\t\tphotoDropShadow,\n\t} = photoAttributes;\n\n\tconst {\n\t\tcaptionPosition,\n\t} = captionAttributes;\n\n\tconst {\n\t\timageData,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\timageData: select( blockStore( uniqueId ) ).getImageData(),\n\t\t};\n\t} );\n\n\t/**\n\t * Return an image URL. If in data mode, use a placeholder image.\n\t *\n\t * @return {string} Image URL.\n\t */\n\tconst getImageUrl = () => {\n\t\tconst { url, id } = imageData;\n\t\tif ( ! url || 0 === id ) {\n\t\t\tconst defaultImageUrl = photoBlock.defaultImagePlacheolder;\n\t\t\treturn defaultImageUrl;\n\t\t}\n\t\treturn url;\n\t};\n\n\tconst classes = classnames( 'photo-block-preview dlx-photo-block', {\n\t\t'dlx-has-drop-shadow': photoDropShadow.enabled,\n\t} );\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t{ 'top' === captionPosition && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t) }\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{ 'overlay' === captionPosition && (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t{ 'bottom' === captionPosition && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\nexport default PhotoBlockPreview;\n","import './editor.scss';\nimport React, { useState } from 'react';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport {\n\tPanelBody,\n\tModal,\n\tButton,\n\tCheckboxControl,\n} from '@wordpress/components';\nimport { CircleMinus, Palette } from 'lucide-react';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport globalStylesStore from '../../store/global-styles';\nimport GlobalStylesButtonPreview from './ButtonPreview';\n\nconst GlobalStylesPicker = ( props ) => {\n\tconst [ isRemoveModalOpen, setIsRemoveModalOpen ] = useState( false );\n\n\tconst {\n\t\tglobalStyles,\n\t\tgetGlobalStyleBySlug,\n\t\thasGlobalStyle\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\tglobalStyles: select( globalStylesStore ).getGlobalStyles(),\n\t\t\tgetGlobalStyleBySlug: select( globalStylesStore ).getGlobalStyleBySlug,\n\t\t\thasGlobalStyle: select( globalStylesStore ).hasGlobalStyle,\n\t\t};\n\t} );\n\n\tconst {\tupdateBlockAttributes } = useDispatch( blockEditorStore );\n\tconst { getBlock } = useSelect( ( select ) => {\n\t\treturn {\n\t\t\tgetBlock: select( blockEditorStore ).getBlock,\n\t\t};\n\t} );\n\n\t// Exit if no global styles.\n\tif ( Object.keys( globalStyles ).length === 0 ) {\n\t\treturn null;\n\t}\n\n\tconst getGlobalStyles = () => {\n\t\tif ( hasGlobalStyle( props.attributes.globalStyle ) ) {\n\t\t\tconst globalStyle = getGlobalStyleBySlug( props.attributes.globalStyle );\n\n\t\t\t// Make sure the global style is not empty.\n\t\t\tif ( Object.keys( globalStyle ).length === 0 ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// Return global style interface.\n\t\t\treturn (\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{ globalStyle.title }\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetIsRemoveModalOpen( true );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\ticon={ }\n\t\t\t\t\t\t\tlabel={ __( 'Remove the Global Style', 'photo-block' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t)\n\t\t}\n\t\treturn (\n\t\t\t
\n\t\t\t\t{\n\t\t\t\t\tObject.values( globalStyles ).map( ( globalStyle ) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t);\n\t\t\t\t\t} )\n\t\t\t\t}\n\t\t\t
\n\t\t);\n\t};\n\treturn (\n\t\t<>\n\t\t\t{\n\t\t\t\tisRemoveModalOpen && (\n\t\t\t\t\t setIsRemoveModalOpen( false ) }\n\t\t\t\t\t\tclassName=\"photo-block-global-styles-modal\"\n\t\t\t\t\t\tshouldCloseOnClickOutside={ false }\n\t\t\t\t\t>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t{ __( 'Remove the global style from this photo.', 'photo-block' ) }\n\t\t\t\t\t\t\t

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

\n\t\t\t\t\t\t\t\t{ __( 'The current global style will be applied to the image.', 'photo-block' ) }\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tif ( hasGlobalStyle( props.attributes.globalStyle ) ) {\n\t\t\t\t\t\t\t\t\t\tconst globalStyle = getGlobalStyleBySlug( props.attributes.globalStyle );\n\n\t\t\t\t\t\t\t\t\t\t// Reset global style in attributes.\n\t\t\t\t\t\t\t\t\t\tconst newGlobalStyle = {\n\t\t\t\t\t\t\t\t\t\t\tglobalStyle: 'none',\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tconst photoAttributes = {\n\t\t\t\t\t\t\t\t\t\t\t...globalStyle.content.photoAttributes,\n\t\t\t\t\t\t\t\t\t\t\t...newGlobalStyle,\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tconst captionAttributes = {\n\t\t\t\t\t\t\t\t\t\t\t...globalStyle.content.captionAttributes,\n\t\t\t\t\t\t\t\t\t\t\t...newGlobalStyle,\n\t\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t\t\t\t// Need to apply global styles to the photo.\n\t\t\t\t\t\t\t\t\t\tupdateBlockAttributes( props.clientId, photoAttributes );\n\n\t\t\t\t\t\t\t\t\t\t// Get the caption block. No need to create caption block here.\n\t\t\t\t\t\t\t\t\t\tconst block = getBlock( props.clientId );\n\t\t\t\t\t\t\t\t\t\tconst captionInnerBlocks = block?.innerBlocks;\n\t\t\t\t\t\t\t\t\t\tif ( captionInnerBlocks.length > 0 ) {\n\t\t\t\t\t\t\t\t\t\t\tconst captionBlockClientId = block?.innerBlocks[ 0 ].clientId || null;\n\t\t\t\t\t\t\t\t\t\t\t// Need to apply global styles to the caption.\n\t\t\t\t\t\t\t\t\t\t\tupdateBlockAttributes( captionBlockClientId, captionAttributes );\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tsetIsRemoveModalOpen( false );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t\t\tclassName=\"photo-block-global-styles-modal-apply-button\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Remove Global Style', 'photo-block' ) }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t setIsRemoveModalOpen( false ) }\n\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Cancel', 'photo-block' ) }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t)\n\t\t\t}\n\t\t\t }\n\t\t\t\tclassName=\"photo-block__inspector-panel\"\n\t\t\t>\n\t\t\t\t{ getGlobalStyles() }\n\t\t\t\n\t\t\n\t);\n};\n\nexport default GlobalStylesPicker;\n","/**\n * Gradient Picker\n */\nimport './editor.scss';\nimport { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { __ } from '@wordpress/i18n';\n\nimport {\n\tBaseControl,\n\tPopover,\n\tButton,\n\tGradientPicker,\n} from '@wordpress/components';\n\nconst GradientPickerControl = ( props ) => {\n\tconst [ isVisible, setIsVisible ] = useState( false );\n\tconst [ isToggled, setIsToggled ] = useState( false );\n\tconst [ gradientPickerButtonAnchor, setGradientPickerButtonAnchor ] = useState( null );\n\n\tconst {\n\t\tlabel,\n\t\tonChange,\n\t\tvalue,\n\t\tclearable,\n\t} = props;\n\n\t/**\n\t * Get a gradient style object.\n\t *\n\t * @return {Object} Gradient style object.\n\t */\n\tconst getGradientStyles = () => {\n\t\tconst hexRegex = /#?[0-9A-Fa-f]{6}/gm; // From: https://linuxhint.com/check-if-string-is-hex-in-javascript/\n\t\tif ( '' === value ) {\n\t\t\treturn {\n\t\t\t\tbackground: '#FFFFFF',\n\t\t\t};\n\t\t}\n\t\tif ( value.match( hexRegex ) ) {\n\t\t\treturn {\n\t\t\t\tbackgroundColor: value,\n\t\t\t};\n\t\t}\n\t\t// Return gradient style value.\n\t\treturn {\n\t\t\tbackgroundImage: value,\n\t\t};\n\t};\n\n\t/**\n\t * Close color popup if visible.\n\t */\n\tconst toggleClose = () => {\n\t\tsetIsToggled( true );\n\t\tsetIsVisible( ! isVisible );\n\t\tsetTimeout( () => {\n\t\t\tsetIsToggled( false );\n\t\t}, 500 );\n\t};\n\n\treturn (\n\t\t\n\t\t\t

{ label }

\n\t\t\t {\n\t\t\t\t\tif ( isToggled ) {\n\t\t\t\t\t\tsetIsToggled( false );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetIsVisible( ! isVisible );\n\t\t\t\t\t}\n\t\t\t\t} }\n\t\t\t/>\n\t\t\t{ true === isVisible && (\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t) }\n\n\t\t
\n\t);\n};\n\nGradientPickerControl.defaultProps = {\n\tlabel: __( 'Gradient Color', 'photo-block' ),\n\tclearable: false,\n\tvalue: '',\n\tonChange: () => {},\n};\n\nGradientPickerControl.propTypes = {\n\tclearable: PropTypes.bool,\n\tvalue: PropTypes.string.isRequired,\n\tlabel: PropTypes.string.isRequired,\n\tonChange: PropTypes.func.isRequired,\n};\n\nexport default GradientPickerControl;\n","import './editor.scss';\n\nimport {\n\tMonitor,\n\tTablet,\n\tSmartphone,\n\n} from 'lucide-react';\nimport { __ } from '@wordpress/i18n';\nimport { ButtonGroup, Button } from '@wordpress/components';\nimport classnames from 'classnames';\nimport useDeviceType from '../../hooks/useDeviceType';\n\nconst HeadingIconResponsive = ( props ) => {\n\tconst { screenSize, heading } = props;\n\tconst [ deviceType, setDeviceType ] = useDeviceType( 'Desktop' );\n\n\t// Retrieve an icon based on the screen size.\n\tconst getIcon = () => {\n\t\tswitch ( screenSize ) {\n\t\t\tcase 'mobile':\n\t\t\t\treturn ;\n\t\t\tcase 'tablet':\n\t\t\t\treturn ;\n\t\t\tcase 'desktop':\n\t\t\t\treturn ;\n\t\t}\n\t};\n\n\treturn (\n\t\t
\n\t\t\t

\n\t\t\t\t{ getIcon() }\n\t\t\t\t{ heading }\n\t\t\t

\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t setDeviceType( 'Desktop' ) }\n\t\t\t\t\t\ticon={ }\n\t\t\t\t\t\tlabel={ __( 'Desktop', 'deluxe-photo-gallery' ) }\n\t\t\t\t\t/>\n\t\t\t\t\t setDeviceType( 'Tablet' ) }\n\t\t\t\t\t\ticon={ }\n\t\t\t\t\t\tlabel={ __( 'Tablet', 'deluxe-photo-gallery' ) }\n\t\t\t\t\t/>\n\t\t\t\t\t setDeviceType( 'Mobile' ) }\n\t\t\t\t\t\ticon={ }\n\t\t\t\t\t\tlabel={ __( 'Mobile', 'deluxe-photo-gallery' ) }\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t);\n};\nexport default HeadingIconResponsive;\n","import React from 'react';\n\nconst AspectRatioIcon = () => (\n\t\n\t\t\n\t\t\n\t\n);\nexport default AspectRatioIcon;\n","import React from 'react';\n\nconst BorderStyleDashedIcon = () => (\n\t\n\t\t\n\t\n);\nexport default BorderStyleDashedIcon;\n","import React from 'react';\n\nconst BorderStyleDottedIcon = () => (\n\t\n\t\t\n\t\n);\nexport default BorderStyleDottedIcon;\n","import React from 'react';\n\nconst BorderStyleDoubleIcon = () => (\n\t\n\t\t\n\t\n);\nexport default BorderStyleDoubleIcon;\n","import React from 'react';\n\nconst BorderStyleSolidIcon = () => (\n\t\n\t\t\n\t\n);\nexport default BorderStyleSolidIcon;\n","import React from 'react';\n\nconst ColonIcon = () => (\n\t\n\t\t\n\t\n);\nexport default ColonIcon;\n","import React from 'react';\n\nconst PhotoBlockIcon = ( props ) => {\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\nexport default PhotoBlockIcon;\n","/**\n * Upload data row including Upload|Media Library|URL|Data.\n */\nimport './editor.scss';\n\nimport {\n\tPanelBody,\n\tPanelRow,\n\tTextControl,\n\tTextareaControl,\n\tButtonGroup,\n\tButton,\n\tToggleControl,\n\tToolbar,\n\tToolbarButton,\n\tPopover,\n\tTooltip,\n\tPlaceHolder,\n} from '@wordpress/components';\n\nimport { isURL, filterURLForDisplay } from '@wordpress/url';\n\nimport {\n\tLink2Off,\n\tLink2,\n\tImage,\n\tFileImage,\n\tExternalLink,\n\n} from 'lucide-react';\n\nimport { useContext, useState, useEffect, useRef } from '@wordpress/element';\n\nimport { __ } from '@wordpress/i18n';\nimport classnames from 'classnames';\nimport { useSelect, useDispatch } from '@wordpress/data';\n\nimport { blockStore } from '../../store';\nimport URLPicker from '../URLPicker';\nimport globalStylesStore from '../../store/global-styles';\n\n/**\n * MediaLink component.\n *\n * @param {Object} props - Component props.\n * @return {Function} Component.\n */\nconst MediaLink = ( props ) => {\n\tconst { attributes, setAttributes, anchorRef, blockUniqueId } = props;\n\n\t// Get context.\n\tconst {\n\t\tphotoMode,\n\t\timageData,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\tphotoMode: select( blockStore( blockUniqueId ) ).getPhotoMode(),\n\t\t\timageData: select( blockStore( blockUniqueId ) ).getImageData(),\n\t\t};\n\t} );\n\n\t// Get global style data.\n\tconst {\n\t\thasGlobalStyle,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\thasGlobalStyle: select( globalStylesStore ).hasGlobalStyle,\n\t\t};\n\t} );\n\n\tconst { mediaLinkOverride, mediaLinkType, mediaLinkTitle, mediaLinkUrl, lightboxCaption, lightboxEnabled, lightboxShowCaption, globalStyle } = attributes;\n\n\treturn (\n\t\t<>\n\t\t\t {\n\t\t\t\t\tprops.onClose();\n\t\t\t\t} }\n\t\t\t\tanchor={ anchorRef }\n\t\t\t>\n\t\t\t\t
\n\t\t\t\t\t

{ __( 'Select where to link to.', 'photo-block' ) }

\n\t\t\t\t\t\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\tclassName={ classnames( {\n\t\t\t\t\t\t\t\t'is-pressed': 'none' === mediaLinkType,\n\t\t\t\t\t\t\t} ) }\n\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tif ( hasGlobalStyle( globalStyle ) ) {\n\t\t\t\t\t\t\t\t\tsetAttributes(\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tmediaLinkOverride: true,\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsetAttributes( { mediaLinkType: 'none' } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'No link', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\tclassName={ classnames( {\n\t\t\t\t\t\t\t\t'is-pressed': 'image' === mediaLinkType,\n\t\t\t\t\t\t\t} ) }\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tif ( hasGlobalStyle( globalStyle ) ) {\n\t\t\t\t\t\t\t\t\tsetAttributes(\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tmediaLinkOverride: true,\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsetAttributes( { mediaLinkType: 'image' } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'The full size photo', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\tclassName={ classnames( {\n\t\t\t\t\t\t\t\t'is-pressed': 'page' === mediaLinkType,\n\t\t\t\t\t\t\t} ) }\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tif ( hasGlobalStyle( globalStyle ) ) {\n\t\t\t\t\t\t\t\t\tsetAttributes(\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tmediaLinkOverride: true,\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsetAttributes( { mediaLinkType: 'page' } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tdisabled={ 'photo' !== photoMode }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'The photo\\'s page', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\tclassName={ classnames( {\n\t\t\t\t\t\t\t\t'is-pressed': 'custom' === mediaLinkType,\n\t\t\t\t\t\t\t} ) }\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tif ( hasGlobalStyle( globalStyle ) ) {\n\t\t\t\t\t\t\t\t\tsetAttributes(\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tmediaLinkOverride: true,\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsetAttributes( { mediaLinkType: 'custom' } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Custom link', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t{ 'custom' === mediaLinkType && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\tonItemSelect={ ( e, url ) => {\n\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\tmediaLinkUrl: url,\n\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tsavedValue={ mediaLinkUrl }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\t{ 'image' === mediaLinkType && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\ticonSize={ 18 }\n\t\t\t\t\t\t\t\t\ticonPosition=\"right\"\n\t\t\t\t\t\t\t\t\tlabel={ __( 'Open in new tab', 'archive-pages-pro' ) }\n\t\t\t\t\t\t\t\t\thref={ imageData.full }\n\t\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( 'Media File', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\t{ 'page' === mediaLinkType && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\ticonSize={ 18 }\n\t\t\t\t\t\t\t\t\ticonPosition=\"right\"\n\t\t\t\t\t\t\t\t\tlabel={ __( 'Open in new tab', 'archive-pages-pro' ) }\n\t\t\t\t\t\t\t\t\thref={ imageData.attachment_link }\n\t\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t\t\tdisabled={ 'photo' !== photoMode }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( 'Attachment Page', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\t{ 'image' === mediaLinkType && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { lightboxEnabled: value } );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thelp={ __( 'Popup the full size photo in a lightbox when clicked.', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{ lightboxEnabled && (\n\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { lightboxShowCaption: value } );\n\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t{ lightboxShowCaption && (\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { lightboxCaption: value } );\n\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\thelp={ __( 'Leave blank to use the photo\\'s caption.', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\t{ ( 'none' !== mediaLinkType ) && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t( ! lightboxEnabled || 'image' !== mediaLinkType ) && (\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\tif ( '' === attributes.mediaLinkRel && value ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { mediaLinkRel: 'noopener noreferrer' } );\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tif ( 'noopener noreferrer' === attributes.mediaLinkRel && ! value ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { mediaLinkRel: '' } );\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { mediaLinkNewTab: value } );\n\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { mediaLinkTitle: value } );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\thelp={ __( 'The link title attribute is for SEO and accessibility purposes. It is used to describe the link.', 'photo-block' ) }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { mediaLinkRel: value } );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\thelp={ __( 'The link rel attribute is for SEO and accessibility purposes. It is used to describe the relationship between the current document and the linked document.', 'photo-block' ) }\n\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { mediaLinkClass: value } );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\thelp={ __( 'Add a CSS class to the link for styling purposes.', 'photo-block' ) }\n\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { mediaLinkAnchorId: value } );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\thelp={ __( 'This is the ID for the link, which you can use to link to the photo with an anchor. The ID for each link should be unique.', 'photo-block' ) }\n\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n};\nexport default MediaLink;\n","// eslint-disable-next-line no-unused-vars\nimport './editor.scss';\nimport React, { useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { speak } from '@wordpress/a11y';\nimport { Notice as WPNotice } from '@wordpress/components';\nimport classNames from 'classnames';\n\nconst Notice = ( props ) => {\n\tconst { message, status, politeness, icon, className, inline, children, animate, animationType } = props;\n\n\tuseEffect( () => {\n\t\tspeak( message, politeness );\n\t}, [ message, status, politeness ] );\n\n\tconst hasIcon = () => {\n\t\treturn icon !== null;\n\t};\n\tconst getIcon = ( Icon ) => {\n\t\treturn ;\n\t};\n\n\tconst containerClasses = classNames( className, 'photo-block-admin__notice', {\n\t\t'photo-block-admin__notice--photo-block-icon': hasIcon(),\n\t\t[ `photo-block-admin__notice-type--${ status }` ]: true,\n\t\t[ `photo-block-admin__notice-appearance--inline` ]: inline,\n\t\t[ `photo-block-admin__notice-appearance--block` ]: ! inline,\n\t\t[ `photo-block-admin__notice-animate` ]: animate,\n\t\t[ `photo-block-admin__notice-animate--${ animationType }` ]: animate,\n\n\t} );\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\t{ hasIcon() &&\n\t\t\t\t\t
{ getIcon( icon ) }
\n\t\t\t\t}\n\t\t\t\t
<>{ message } { children }
\n\t\t\t
\n\t\t
\n\t);\n};\n\nNotice.defaultProps = {\n\tmessage: '',\n\tstatus: 'info',\n\tpoliteness: 'polite',\n\ticon: null,\n\tclassName: '',\n\tinline: false,\n\tanimate: false,\n\tanimationType: 'fadein',\n};\n\nNotice.propTypes = {\n\tmessage: PropTypes.string.isRequired,\n\tstatus: PropTypes.oneOf( [ 'info', 'warning', 'success', 'error' ] ),\n\tpoliteness: PropTypes.oneOf( [ 'assertive', 'polite' ] ),\n\ticon: PropTypes.elementType,\n\tclassName: PropTypes.string,\n\tinline: PropTypes.bool,\n\tanimate: PropTypes.bool,\n\tanimatitionType: PropTypes.oneOf( [ 'fadein', 'fadeout' ] ),\n};\n\nexport default Notice;\n","/**\n * PanelBody but with local storage state.\n */\nimport './editor.scss';\nimport React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { PanelBody } from '@wordpress/components';\nimport useDeviceType from '../../hooks/useDeviceType';\n\nconst PanelBodyControl = ( props ) => {\n\tconst { uniqueId, initialOpen = true, id = '' } = props;\n\n\tconst [ isPanelOpen, setIsPanelOpen ] = useState( initialOpen );\n\n\tconst [ deviceType ] = useDeviceType();\n\n\t// Set up use effect to read in local storage and set panels appropriately. Runs on device type change too.\n\tuseEffect( () => {\n\t\tlet stored = localStorage.getItem( `photo-block-panel-body-${ uniqueId }` );\n\t\tif ( null === stored ) {\n\t\t\t// Maybe in an iframe, get the parent.\n\t\t\tconst parent = window.parent;\n\t\t\tif ( parent ) {\n\t\t\t\tstored = parent.localStorage.getItem( `photo-block-panel-body-${ uniqueId }` );\n\t\t\t}\n\t\t}\n\n\t\t// Retrieve ID from local storage if set.\n\t\tif ( stored ) {\n\t\t\tconst storedValue = JSON.parse( stored );\n\t\t\tif ( storedValue[ `${ id }` ] ) {\n\t\t\t\tconst { isOpen } = storedValue[ `${ id }` ];\n\t\t\t\tsetIsPanelOpen( isOpen );\n\t\t\t}\n\t\t}\n\t}, [ deviceType ] );\n\n\treturn (\n\t\t {\n\t\t\t\t// get local storage value.\n\t\t\t\tconst stored = localStorage.getItem( `photo-block-panel-body-${ uniqueId }` );\n\n\t\t\t\tlet storageValueToSave = {\n\t\t\t\t\t[ `${ id }` ]: {\n\t\t\t\t\t\tisOpen: next,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t\tif ( stored ) {\n\t\t\t\t\tconst storedValue = JSON.parse( stored );\n\t\t\t\t\tstorageValueToSave = {\n\t\t\t\t\t\t...storedValue,\n\t\t\t\t\t\t[ `${ id }` ]: {\n\t\t\t\t\t\t\tisOpen: next,\n\t\t\t\t\t\t},\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tlocalStorage.setItem( `photo-block-panel-body-${ uniqueId }`, JSON.stringify( storageValueToSave ) );\n\t\t\t} }\n\t\t\tinitialOpen={ isPanelOpen }\n\t\t>\n\t\t\t{ props.children }\n\t\t\n\t);\n};\n\nPanelBodyControl.defaultProps = {\n\tuniqueId: '',\n\tinitialOpen: true,\n\tid: '',\n};\n\nPanelBodyControl.propTypes = {\n\tuniqueId: PropTypes.string.isRequired,\n\tinitialOpen: PropTypes.bool,\n\tid: PropTypes.string.isRequired,\n};\n\nexport default PanelBodyControl;\n","/**\n * Upload data row including Upload|Media Library|URL|Data.\n */\nimport './editor.scss';\n\nimport {\n\tBaseControl,\n\tRangeControl,\n} from '@wordpress/components';\n\nimport { useState, useEffect } from '@wordpress/element';\n\nimport { __ } from '@wordpress/i18n';\nimport { useForm, Controller, useWatch, useFormState } from 'react-hook-form';\n\n\nimport UnitPicker from '../UnitPicker';\nimport { getHierarchicalValueUnit, geHierarchicalPlaceholderValue } from '../../utils/TypographyHelper';\nimport HeadingIconResponsive from '../HeadingIconResponsive';\nconst RangeResponsiveControl = ( props ) => {\n\tconst [ screenSize, setScreenSize ] = useState( 'desktop' );\n\tconst getDefaultValues = () => {\n\t\treturn {\n\t\t\tmobile: {\n\t\t\t\tvalue: props.values.mobile.value,\n\t\t\t\tunit: props.values.mobile.unit,\n\t\t\t},\n\t\t\ttablet: {\n\t\t\t\tvalue: props.values.tablet.value,\n\t\t\t\tunit: props.values.tablet.unit,\n\t\t\t},\n\t\t\tdesktop: {\n\t\t\t\tvalue: props.values.desktop.value,\n\t\t\t\tunit: props.values.desktop.unit,\n\t\t\t},\n\t\t};\n\t};\n\n\tconst { control, setValue, getValues } = useForm( {\n\t\tdefaultValues: getDefaultValues(),\n\t} );\n\n\tconst formValues = useWatch( { control } );\n\n\tconst {\n\t\tonValuesChange,\n\t} = props;\n\n\tuseEffect( () => {\n\t\tonValuesChange( formValues );\n\t}, [ formValues ] );\n\n\tuseEffect( () => {\n\t\tsetScreenSize( props.screenSize );\n\t\tsetValue(\n\t\t\tprops.screenSize,\n\t\t\tgetValues( props.screenSize )\n\t\t);\n\t}, [ props.screenSize ] );\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t (\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tclassName=\"dlx-photo-block__max-width-responsive-control__unit-picker\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t (\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tmin={ props.min }\n\t\t\t\t\t\t\tmax={ props.max }\n\t\t\t\t\t\t\tstep={ props.step }\n\t\t\t\t\t\t\tclassName=\"dlx-photo-block__responsive-range-control\"\n\t\t\t\t\t\t\thelp={ props.help }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\n\t\t\n\t);\n};\n\nexport default RangeResponsiveControl;\n\n","import './editor.scss';\nimport {\n\tToggleControl,\n\tPanelRow,\n\tTextControl,\n\tBaseControl,\n} from '@wordpress/components';\nimport { InspectorControls } from '@wordpress/block-editor';\nimport { __ } from '@wordpress/i18n';\nimport PropTypes from 'prop-types';\nimport { useSelect } from '@wordpress/data';\nimport CustomAttributesControl from '../../components/CustomAttributes';\nimport globalStylesStore from '../../store/global-styles';\n\nconst SidebarImageAdvancedInspectorControl = ( props ) => {\n\tconst { attributes, setAttributes } = props;\n\tconst {\n\t\thtmlAnchor,\n\t\tfigureCSSClasses,\n\t\timageCSSClasses,\n\t\tskipLazyLoading,\n\t\timageProtectionEnabled,\n\t\thideOnMobile,\n\t\thideOnTablet,\n\t\thideOnDesktop,\n\t} = attributes;\n\n\t// Get global style data.\n\tconst {\n\t\thasGlobalStyle,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\thasGlobalStyle: select( globalStylesStore ).hasGlobalStyle,\n\t\t};\n\t} );\n\n\tconst stylesInspectorControls = (\n\t\t<>\n\t\t\t{ ! hasGlobalStyle( props.globalStyle ) && (\n\t\t\t\t<>\n\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { htmlAnchor: value } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\thelp={ __( 'Enter a word or two — without spaces — to make a unique web address just for this photo, called an \"anchor.\" Then, you\\'ll be able to link directly to this photo on your page.', 'photo-block' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { figureCSSClasses: value } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\thelp={ __( 'Add CSS class(es) directly to the figure tag, which wraps the image.', 'photo-block' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { imageCSSClasses: value } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\thelp={ __( 'Add CSS class(es) directly to the image tag.', 'photo-block' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { skipLazyLoading: value } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\thelp={ __( 'Set a flag which will signal that the image should not be lazy loaded.', 'photo-block' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { imageProtectionEnabled: value } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\thelp={ __( 'Prevent this photo from being downloaded by using the right+click button.', 'photo-block' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { hideOnMobile: value } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\thelp={ __( 'Hide this photo on mobile devices.', 'photo-block' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { hideOnTablet: value } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\thelp={ __( 'Hide this photo on tablet devices.', 'photo-block' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { hideOnDesktop: value } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\thelp={ __( 'Hide this photo on desktop devices.', 'photo-block' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t) }\n\t\t\n\t);\n\treturn ( stylesInspectorControls );\n};\n\nSidebarImageAdvancedInspectorControl.defaultProps = {\n\tattributes: {},\n\tsetAttributes: () => {},\n};\n\nSidebarImageAdvancedInspectorControl.propTypes = {\n\tattributes: PropTypes.object,\n};\n\nexport default SidebarImageAdvancedInspectorControl;\n","import './editor.scss';\nimport {\n\tToggleControl,\n\tSelectControl,\n\tRangeControl,\n\tPanelRow,\n\tTextControl,\n\tBaseControl,\n} from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport {\n\tShrink,\n\tDroplet,\n\tWand2,\n\tMaximize,\n\tGlobe,\n} from 'lucide-react';\nimport PropTypes from 'prop-types';\nimport { useSelect } from '@wordpress/data';\nimport ColorPickerControl from '../../components/ColorPicker';\nimport DropShadowControl from '../../components/DropShadow';\nimport CSSGramButtonGroup from '../../components/CSSGramButtonGroup';\nimport SizeResponsiveControl from '../../components/SizeResponsive';\nimport useDeviceType from '../../hooks/useDeviceType';\nimport DimensionsResponsiveControl from '../../components/DimensionsResponsive';\nimport BorderResponsiveControl from '../../components/BorderResponsive';\nimport PanelBodyControl from '../../components/PanelBody';\nimport GlobalStyles from '../GlobalStyles';\nimport globalStylesStore from '../../store/global-styles';\n\nconst canSavePresets = photoBlockUser.canSavePresets;\n\n/**\n * Height units.\n */\nconst heightUnits = [ 'px', 'em', 'rem', '%', 'vh' ];\n\nconst SidebarImageInspectorControl = ( props ) => {\n\tconst { attributes, setAttributes, blockUniqueId } = props;\n\tconst {\n\t\tuniqueId,\n\t\tphotoOpacity,\n\t\tphotoBlur,\n\t\tphotoObjectFit,\n\t\tphotoObjectPosition,\n\t\tphotoObjectPositionCustom,\n\t\tphotoDropShadow,\n\t\tphotoBackgroundColor,\n\t\tphotoBackgroundColorOpacity,\n\t\tcontainerHeight,\n\t\tcontainerMaxWidth,\n\t\tcontainerMaxHeight,\n\t\tcontainerMinWidth,\n\t\tcontainerMinHeight,\n\t\tphotoPaddingSize,\n\t\tphotoMarginSize,\n\t\tglobalStyle,\n\t\tphotoBorderRadius,\n\t\tphotoBorder,\n\t\tcontainerWidth,\n\t} = attributes;\n\n\tconst [ deviceType ] = useDeviceType( 'Desktop' );\n\n\t// Get global style data.\n\tconst {\n\t\thasGlobalStyle,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\thasGlobalStyle: select( globalStylesStore ).hasGlobalStyle,\n\t\t};\n\t} );\n\n\tconst stylesInspectorControls = (\n\t\t<>\n\t\t\t{ ! hasGlobalStyle( globalStyle ) && (\n\t\t\t\t<>\n\t\t\t\t\t }\n\t\t\t\t\t\tclassName=\"photo-block__inspector-panel\"\n\t\t\t\t\t\tid=\"photo-block__photo-image-styles\"\n\t\t\t\t\t\tuniqueId={ uniqueId }\n\t\t\t\t\t\tinitialOpen={ true }\n\t\t\t\t\t\tscrollAfterOpen={ false }\n\t\t\t\t\t>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { photoBackgroundColor: newValue } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tlabel={ __( 'Background Color', 'highlight-and-share' ) }\n\t\t\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\t\t\tdefaultColor={ 'transparent' }\n\t\t\t\t\t\t\tslug={ 'background-color-photo' }\n\t\t\t\t\t\t\talpha={ true }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { photoOpacity: newOpacity } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tmin={ 0 }\n\t\t\t\t\t\t\tmax={ 1 }\n\t\t\t\t\t\t\tstep={ 0.01 }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { photoBlur: newBlur } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tmin={ 0 }\n\t\t\t\t\t\t\tmax={ 10 }\n\t\t\t\t\t\t\tstep={ 0.01 }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\tphotoDropShadow: {\n\t\t\t\t\t\t\t\t\t\t...photoDropShadow,\n\t\t\t\t\t\t\t\t\t\tenabled: newDropShadowEnabled,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{ photoDropShadow.enabled && (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) }\n\t\t\t\t\t\n\t\t\t\t\t }\n\t\t\t\t\t\tid=\"photo-block__photo-css-gram\"\n\t\t\t\t\t\tuniqueId={ uniqueId }\n\t\t\t\t\t\tinitialOpen={ false }\n\t\t\t\t\t\tscrollAfterOpen={ false }\n\t\t\t\t\t>\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t }\n\t\t\t\t\t\tclassName=\"photo-block__inspector-panel\"\n\t\t\t\t\t\tid=\"photo-block__photo-dimensions-styles\"\n\t\t\t\t\t\tuniqueId={ uniqueId }\n\t\t\t\t\t\tscrollAfterOpen={ false }\n\t\t\t\t\t>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { photoPaddingSize: values } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tlabelTop={ __( 'Top Padding', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelRight={ __( 'Right Padding', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelBottom={ __( 'Bottom Padding', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelLeft={ __( 'Left Padding', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelAll={ __( 'Change Padding', 'photo-block' ) }\n\t\t\t\t\t\t\tallowNegatives={ false }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { photoMarginSize: values } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tlabelTop={ __( 'Top Margin', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelRight={ __( 'Right Margin', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelBottom={ __( 'Bottom Margin', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelLeft={ __( 'Left Margin', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelAll={ __( 'Change Margin', 'photo-block' ) }\n\t\t\t\t\t\t\tallowNegatives={ true }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { photoBorder: values } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tlabelTop={ __( 'Top Border', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelRight={ __( 'Right Border', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelBottom={ __( 'Bottom Border', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelLeft={ __( 'Left Border', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelAll={ __( 'Change Border', 'photo-block' ) }\n\t\t\t\t\t\t\tallowNegatives={ false }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { photoBorderRadius: values } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tlabelTop={ __( 'Top-left Radius', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelRight={ __( 'Top-right Radius', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelBottom={ __( 'Bottom-right Radius', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelLeft={ __( 'Bottom-left Radius', 'photo-block' ) }\n\t\t\t\t\t\t\tlabelAll={ __( 'Change Border Radius', 'photo-block' ) }\n\t\t\t\t\t\t\tisBorderRadius={ true }\n\t\t\t\t\t\t\tallowNegatives={ false }\n\t\t\t\t\t\t/>\n\n\t\t\t\t\t\n\t\t\t\t\t }\n\t\t\t\t\t\tclassName=\"photo-block__inspector-panel\"\n\t\t\t\t\t\tid=\"photo-block__photo-container-styles\"\n\t\t\t\t\t\tuniqueId={ uniqueId }\n\t\t\t\t\t\tscrollAfterOpen={ false }\n\t\t\t\t\t>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { photoObjectFit: newObjectFit } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\thelp={ __(\n\t\t\t\t\t\t\t\t\t'How the image should be resized to fit its container.',\n\t\t\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\t{ 'none' !== photoObjectFit && (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { photoObjectPosition: newObjectPosition } );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\thelp={ __(\n\t\t\t\t\t\t\t\t\t\t'How the image should be positioned inside the container.',\n\t\t\t\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) }\n\t\t\t\t\t\t{ ( 'none' !== photoObjectFit && 'custom' === photoObjectPosition ) && (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\t\tphotoObjectPositionCustom: newObjectPositionCustom,\n\t\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\thelp={ __(\n\t\t\t\t\t\t\t\t\t\t'Enter a custom object position in CSS format.',\n\t\t\t\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) }\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { containerWidth: newValues } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { containerHeight: newValues } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { containerMinWidth: newValues } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { containerMinHeight: newValues } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { containerMaxWidth: newValues } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( { containerMaxHeight: newValues } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t) }\n\t\t\t{ canSavePresets && (\n\t\t\t\t }\n\t\t\t\t\tclassName=\"photo-block__inspector-panel\"\n\t\t\t\t\tid=\"photo-block__photo-global-styles\"\n\t\t\t\t\tuniqueId={ uniqueId }\n\t\t\t\t\tscrollAfterOpen={ false }\n\t\t\t\t>\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t) }\n\t\t\n\t);\n\treturn (\n\t\t<>\n\t\t\t{ stylesInspectorControls }\n\t\t\n\t);\n};\n\nSidebarImageInspectorControl.defaultProps = {\n\tattributes: {},\n\tsetAttributes: () => {},\n};\n\nSidebarImageInspectorControl.propTypes = {\n\tattributes: PropTypes.object,\n};\n\nexport default SidebarImageInspectorControl;\n","/**\n * Upload data row including Upload|Media Library|URL|Data.\n */\nimport './editor.scss';\n\nimport {\n\tPanelBody,\n\tPanelRow,\n\tTextControl,\n\tTextareaControl,\n\tButtonGroup,\n\tButton,\n\tToggleControl,\n\tToolbar,\n\tToolbarButton,\n\tPopover,\n\tTooltip,\n\tPlaceHolder,\n\tBaseControl,\n\tRangeControl,\n} from '@wordpress/components';\n\nimport { isURL, filterURLForDisplay } from '@wordpress/url';\n\nimport {\n\tMonitor,\n\tTablet,\n\tSmartphone,\n\n} from 'lucide-react';\n\nimport { useContext, useState, useEffect, useRef } from '@wordpress/element';\n\nimport { __ } from '@wordpress/i18n';\nimport classnames from 'classnames';\nimport { useForm, Controller, useWatch, useFormState } from 'react-hook-form';\n\n\nimport UnitPicker from '../UnitPicker';\nimport { getHierarchicalValueUnit, geHierarchicalPlaceholderValue } from '../../utils/TypographyHelper';\nimport HeadingIconResponsive from '../HeadingIconResponsive';\nimport useUnits from '../../hooks/useUnits';\n\nconst SizeResponsiveControl = ( props ) => {\n\tconst [ screenSize, setScreenSize ] = useState( 'desktop' );\n\tconst getDefaultValues = () => {\n\t\treturn {\n\t\t\tmobile: {\n\t\t\t\twidth: props.values.mobile.width,\n\t\t\t\tunit: props.values.mobile.unit,\n\t\t\t},\n\t\t\ttablet: {\n\t\t\t\twidth: props.values.tablet.width,\n\t\t\t\tunit: props.values.tablet.unit,\n\t\t\t},\n\t\t\tdesktop: {\n\t\t\t\twidth: props.values.desktop.width,\n\t\t\t\tunit: props.values.desktop.unit,\n\t\t\t},\n\t\t};\n\t};\n\n\tconst {\n\t\tstartsWithNumber,\n\t\tsplitValues,\n\t\tgetNumericValue,\n\t\tgetUnitValue,\n\t} = useUnits();\n\n\tconst { control, setValue, getValues } = useForm( {\n\t\tdefaultValues: getDefaultValues(),\n\t} );\n\n\tconst formValues = useWatch( { control } );\n\n\tconst {\n\t\tonValuesChange,\n\t} = props;\n\n\tuseEffect( () => {\n\t\tonValuesChange( formValues );\n\t}, [ formValues ] );\n\n\tuseEffect( () => {\n\t\tsetScreenSize( props.screenSize );\n\t\tsetValue(\n\t\t\tprops.screenSize,\n\t\t\tgetValues( props.screenSize )\n\t\t);\n\t}, [ props.screenSize ] );\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t (\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tclassName=\"dlx-photo-block__max-width-responsive-control__unit-picker\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t (\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tif ( ! startsWithNumber( newValue ) ) {\n\t\t\t\t\t\t\t\t\t// Unit should be blank here.\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.unit`, '' );\n\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tconst newValuesSplit = splitValues( newValue );\n\t\t\t\t\t\t\t\t\tconst numericValue = getNumericValue( newValuesSplit );\n\t\t\t\t\t\t\t\t\tconst unitValue = getUnitValue( newValuesSplit );\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.unit`, unitValue );\n\t\t\t\t\t\t\t\t\tonChange( numericValue );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tplaceholder={ geHierarchicalPlaceholderValue(\n\t\t\t\t\t\t\t\tprops.values,\n\t\t\t\t\t\t\t\tscreenSize,\n\t\t\t\t\t\t\t\tgetValues( screenSize ).width,\n\t\t\t\t\t\t\t\t'width'\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\n\t\t\n\t);\n};\n\nexport default SizeResponsiveControl;\n\n","/**\n * Uploading including showing Cancel and Retry buttons.\n */\nimport './editor.scss';\nimport {\n\tTextControl,\n\tButton,\n} from '@wordpress/components';\n\nimport { X } from 'lucide-react';\n\nimport { useContext, forwardRef, useState } from '@wordpress/element';\n\nimport { useForm, Controller, useWatch, useFormState } from 'react-hook-form';\nimport { useSelect, useDispatch } from '@wordpress/data';\n\nimport classnames from 'classnames';\n\nimport { __ } from '@wordpress/i18n';\nimport CalculateAspectRatioFromPixels from '../../utils/CalculateAspectRatioFromPixels';\nimport CalculateDimensionsFromAspectRatio from '../../utils/CalculateDimensionsFromAspectRatio';\nimport ColonIcon from '../Icons/ColonIcon';\nimport { blockStore } from '../../store';\n\n/**\n * Upload Status component.\n *\n * @param {Object} props - Component props.\n * @return {Object} JSX markup for the component.\n */\nconst ToolbarAspectRatio = forwardRef( ( props, ref ) => {\n\tconst {\n\t\taspectRatioWidth,\n\t\taspectRatioHeight,\n\t\taspectRatioWidthPixels,\n\t\taspectRatioHeightPixels,\n\t\taspectRatioToolbarSelection,\n\t\taspectRatioUnit,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\taspectRatioWidth: select( blockStore( props.uniqueId ) ).getAspectRatioWidth(),\n\t\t\taspectRatioHeight: select( blockStore( props.uniqueId ) ).getAspectRatioHeight(),\n\t\t\taspectRatioWidthPixels: select( blockStore( props.uniqueId ) ).getAspectRatioWidthPixels(),\n\t\t\taspectRatioHeightPixels: select( blockStore( props.uniqueId ) ).getAspectRatioHeightPixels(),\n\t\t\taspectRatioToolbarSelection: select( blockStore( props.uniqueId ) ).getAspectRatioToolbarSelection(),\n\t\t\taspectRatioUnit: select( blockStore( props.uniqueId ) ).getAspectRatioUnit(),\n\t\t};\n\t} );\n\n\tconst {\n\t\tsetAspectRatio,\n\t\tsetAspectRatioPixels,\n\t\tsetAspectRatioUnit,\n\t} = useDispatch( blockStore( props.uniqueId ) );\n\n\tconst {\n\t\tcontrol,\n\t\thandleSubmit,\n\t\tsetValue,\n\t\tgetValues,\n\t} = useForm( {\n\t\tdefaultValues: {\n\t\t\taspectRatioWidthRatio: aspectRatioWidth,\n\t\t\taspectRatioHeightRatio: aspectRatioHeight,\n\t\t\taspectRatioWidthPixels: aspectRatioWidthPixels,\n\t\t\taspectRatioHeightPixels: aspectRatioHeightPixels,\n\t\t\taspectRatioUnit: aspectRatioUnit,\n\t\t},\n\t} );\n\n\n\tconst { isDirty } = useFormState( {\n\t\tcontrol,\n\t} );\n\tconst formValues = useWatch( { control } );\n\n\n\t/**\n\t * Swap from pixels to aspect ratio and back.\n\t *\n\t * @param {string} ratioToCalculate - 'pixels' or 'ratio'.\n\t */\n\tconst swapAspectRatio = ( ratioToCalculate ) => {\n\t\tconst aspectRatioWidthRatio = getValues( 'aspectRatioWidthRatio' );\n\t\tconst aspectRatioHeightRatio = getValues( 'aspectRatioHeightRatio' );\n\t\tif ( ratioToCalculate === 'ratio' ) {\n\t\t\t// Convert aspect width / height to ratio for display.\n\t\t\tconst newAspectRatio = CalculateAspectRatioFromPixels( getValues( 'aspectRatioWidthPixels' ), getValues( 'aspectRatioHeightPixels' ) );\n\t\t\tsetValue( 'aspectRatioWidthRatio', newAspectRatio.width );\n\t\t\tsetValue( 'aspectRatioHeightRatio', newAspectRatio.height );\n\t\t\tsetAspectRatio( newAspectRatio.width, newAspectRatio.height );\n\t\t} else {\n\t\t\tconst imageRatioPixels = CalculateDimensionsFromAspectRatio(\n\t\t\t\t`${ aspectRatioWidthRatio }:${ aspectRatioHeightRatio }`,\n\t\t\t\tprops?.fullsizePhoto?.width,\n\t\t\t);\n\t\t\tsetValue( 'aspectRatioWidthPixels', imageRatioPixels.width );\n\t\t\tsetValue( 'aspectRatioHeightPixels', imageRatioPixels.height );\n\t\t\tsetAspectRatioPixels( imageRatioPixels.width, imageRatioPixels.height );\n\t\t}\n\t};\n\n\t/**\n\t * The form has been submitted.\n\t *\n\t * @param {Object} formData form data.\n\t */\n\tconst onSubmit = ( formData ) => {\n\t\tlet humanImageRatio = {};\n\t\t// Calculate human aspect ratio.\n\t\tif ( 'pixels' === getValues( 'aspectRatioUnit' ) ) {\n\t\t\thumanImageRatio = CalculateAspectRatioFromPixels(\n\t\t\t\tformData.aspectRatioWidthPixels,\n\t\t\t\tformData.aspectRatioHeightPixels\n\t\t\t);\n\t\t} else {\n\t\t\thumanImageRatio = {\n\t\t\t\twidth: formData.aspectRatioWidthRatio,\n\t\t\t\theight: formData.aspectRatioHeightRatio,\n\t\t\t};\n\t\t}\n\t\t// Set global values.\n\t\tsetAspectRatio( formData.aspectRatioWidthRatio, formData.aspectRatioHeightRatio );\n\t\tsetAspectRatioPixels( formData.aspectRatioWidthPixels, formData.aspectRatioHeightPixels );\n\t\tprops.onChange( humanImageRatio );\n\t\treturn formData;\n\t};\n\treturn (\n\t\t<>\n\t\t\t
\n\t\t\t\t\n\n\t\t\t\t\t{ getValues( 'aspectRatioUnit' ) === 'ratio' && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\t\t\t\tplaceholder={ 16 }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tif ( 'pixels' === getValues( 'aspectRatioUnit' ) ) {\n\t\t\t\t\t\t\t\t\t\t\tsetValue( 'aspectRatioUnit', 'ratio' );\n\t\t\t\t\t\t\t\t\t\t\tswapAspectRatio( 'ratio' );\n\t\t\t\t\t\t\t\t\t\t\tsetAspectRatioUnit( 'ratio' );\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tsetValue( 'aspectRatioUnit', 'pixels' );\n\t\t\t\t\t\t\t\t\t\t\tswapAspectRatio( 'pixels' );\n\t\t\t\t\t\t\t\t\t\t\tsetAspectRatioUnit( 'pixels' );\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\ticon={ 'pixels' === getValues( 'aspectRatioUnit' ) ? : }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\t\t\t\tplaceholder={ 9 }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\t{ getValues( 'aspectRatioUnit' ) === 'pixels' && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\t\t\t\tplaceholder={ 16 }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tif ( 'pixels' === getValues( 'aspectRatioUnit' ) ) {\n\t\t\t\t\t\t\t\t\t\t\tsetAspectRatioUnit( 'ratio' );\n\t\t\t\t\t\t\t\t\t\t\tsetValue( 'aspectRatioUnit', 'ratio' );\n\t\t\t\t\t\t\t\t\t\t\tswapAspectRatio( 'ratio' );\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tsetAspectRatioUnit( 'pixels' );\n\t\t\t\t\t\t\t\t\t\t\tsetValue( 'aspectRatioUnit', 'pixels' );\n\t\t\t\t\t\t\t\t\t\t\tswapAspectRatio( 'pixels' );\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\ticon={ 'pixels' === getValues( 'aspectRatioUnit' ) ? : }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\t\t\t\tplaceholder={ 9 }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\t\n\t\t\t\t\t\t{ __( 'Set Crop Area', 'photo-block' ) }\n\t\t\t\t\t\n\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n} );\nexport default ToolbarAspectRatio;\n","import './editor.scss';\nimport React, { useState, useEffect } from 'react';\nimport { __ } from '@wordpress/i18n';\nimport { ButtonGroup, Button, Tooltip, SelectControl, BaseControl, TextControl, Popover, PanelRow } from '@wordpress/components';\nimport { useSettings } from '@wordpress/block-editor';\nimport { useForm, Controller, useWatch } from 'react-hook-form';\nimport { Type } from 'lucide-react';\nimport { geHierarchicalPlaceholderValue } from '../../utils/TypographyHelper';\nimport useDeviceType from '../../hooks/useDeviceType';\nimport HeadingIconResponsive from '../HeadingIconResponsive';\nimport useUnits from '../../hooks/useUnits';\n\n// Webfonts.\nconst fontFamilies = [\n\t{\n\t\tname: 'Arial',\n\t\tfamily: 'Arial, sans-serif',\n\t\tslug: 'arial',\n\t\tfallback: 'sans-serif',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tname: 'Courier New',\n\t\tfamily: 'Courier New, monospace',\n\t\tslug: 'courier-new',\n\t\tfallback: 'monospace',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tname: 'Garamond',\n\t\tfamily: 'Garamond, serif',\n\t\tslug: 'garamond',\n\t\tfallback: 'serif',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tname: 'Georgia',\n\t\tfamily: 'Georgia, serif',\n\t\tslug: 'georgia',\n\t\tfallback: 'serif',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tname: 'Helvetica',\n\t\tfamily: 'Helvetica, sans-serif',\n\t\tslug: 'helvetica',\n\t\tfallback: 'sans-serif',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tname: 'Lucida Console',\n\t\tfamily: 'Lucida Console, monospace',\n\t\tslug: 'lucida-console',\n\t\tfallback: 'monospace',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tname: 'Tahoma',\n\t\tfamily: 'Tahoma, sans-serif',\n\t\tslug: 'tahoma',\n\t\tfallback: 'sans-serif',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tname: 'Times New Roman',\n\t\tfamily: 'Times New Roman, serif',\n\t\tslug: 'times-new-roman',\n\t\tfallback: 'serif',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tname: 'Trebuchet MS',\n\t\tfamily: 'Trebuchet MS, sans-serif',\n\t\tslug: 'trebuchet-ms',\n\t\tfallback: 'sans-serif',\n\t\ttype: 'web',\n\t},\n\t{\n\t\tname: 'Verdana',\n\t\tfamily: 'Verdana, sans-serif',\n\t\tslug: 'verdana',\n\t\tfallback: 'sans-serif',\n\t\ttype: 'web',\n\t},\n];\n\nconst TypographyControl = ( props ) => {\n\tconst [ fontSizeUnitPopoverVisible, setFontSizeUnitPopoverVisible ] = useState( false );\n\tconst [ fontSizeUnitPopoverAnchor, setFontSizeUnitPopoverAnchor ] = useState( null );\n\tconst [ lineHeightUnitPopoverVisible, setLineHeightUnitPopoverVisible ] = useState( false );\n\tconst [ lineHeightUnitPopoverAnchor, setLineHeightUnitPopoverAnchor ] = useState( null );\n\tconst [ letterSpacingUnitPopoverVisible, setLetterSpacingUnitPopoverVisible ] = useState( false );\n\tconst [ letterSpacingUnitPopoverAnchor, setLetterSpacingUnitPopoverAnchor ] = useState( null );\n\tconst [ fontSettingsPopoverVisible, setFontSettingsPopoverVisible ] = useState( false );\n\tconst [ fontSettingsPopoverAnchor, setFontSettingsPopoverAnchor ] = useState( null );\n\tconst [ isVisible, setIsVisible ] = useState( false ); // for the main typography settings popup.\n\tconst [ isToggled, setIsToggled ] = useState( false ); // for the main typography settings popup.\n\n\tconst {\n\t\tonUnitChange,\n\t\tsplitValues,\n\t\tgetNumericValue,\n\t\tgetUnitValue,\n\t\tstartsWithNumber,\n\t} = useUnits();\n\n\tconst [ screenSize ] = useDeviceType( 'Desktop' );\n\n\tconst getDefaultValues = () => {\n\t\treturn {\n\t\t\tmobile: {\n\t\t\t\tfontFamily: props.values.mobile.fontFamily,\n\t\t\t\tfontFamilySlug: props.values.mobile.fontFamilySlug,\n\t\t\t\tfontSize: props.values.mobile.fontSize,\n\t\t\t\tfontSizeUnit: props.values.mobile.fontSizeUnit,\n\t\t\t\tfontWeight: props.values.mobile.fontWeight,\n\t\t\t\tlineHeight: props.values.mobile.lineHeight,\n\t\t\t\tlineHeightUnit: props.values.mobile.lineHeightUnit,\n\t\t\t\ttextTransform: props.values.mobile.textTransform,\n\t\t\t\tletterSpacing: props.values.mobile.letterSpacing,\n\t\t\t\tletterSpacingUnit: props.values.mobile.letterSpacingUnit,\n\t\t\t\tfontType: props.values.mobile.fontType,\n\t\t\t\tfontFallback: props.values.mobile.fontFallback,\n\t\t\t},\n\t\t\ttablet: {\n\t\t\t\tfontFamily: props.values.tablet.fontFamily,\n\t\t\t\tfontFamilySlug: props.values.tablet.fontFamilySlug,\n\t\t\t\tfontSize: props.values.tablet.fontSize,\n\t\t\t\tfontSizeUnit: props.values.tablet.fontSizeUnit,\n\t\t\t\tfontWeight: props.values.tablet.fontWeight,\n\t\t\t\tlineHeight: props.values.tablet.lineHeight,\n\t\t\t\tlineHeightUnit: props.values.tablet.lineHeightUnit,\n\t\t\t\ttextTransform: props.values.tablet.textTransform,\n\t\t\t\tletterSpacing: props.values.tablet.letterSpacing,\n\t\t\t\tletterSpacingUnit: props.values.tablet.letterSpacingUnit,\n\t\t\t\tfontType: props.values.tablet.fontType,\n\t\t\t\tfontFallback: props.values.tablet.fontFallback,\n\t\t\t},\n\t\t\tdesktop: {\n\t\t\t\tfontFamily: props.values.desktop.fontFamily,\n\t\t\t\tfontFamilySlug: props.values.desktop.fontFamilySlug,\n\t\t\t\tfontSize: props.values.desktop.fontSize,\n\t\t\t\tfontSizeUnit: props.values.desktop.fontSizeUnit,\n\t\t\t\tfontWeight: props.values.desktop.fontWeight,\n\t\t\t\tlineHeight: props.values.desktop.lineHeight,\n\t\t\t\tlineHeightUnit: props.values.desktop.lineHeightUnit,\n\t\t\t\ttextTransform: props.values.desktop.textTransform,\n\t\t\t\tletterSpacing: props.values.desktop.letterSpacing,\n\t\t\t\tletterSpacingUnit: props.values.desktop.letterSpacingUnit,\n\t\t\t\tfontType: props.values.desktop.fontType,\n\t\t\t\tfontFallback: props.values.desktop.fontFallback,\n\t\t\t},\n\t\t\tcaptionCustomTypography: props.values.captionCustomTypography,\n\t\t};\n\t};\n\n\tconst [ blockLevelFontFamilies ] = useSettings( 'typography.fontFamilies' );\n\t\n\tconst {\n\t\tcontrol,\n\t\tsetValue,\n\t\tgetValues,\n\t} = useForm( {\n\t\tdefaultValues: getDefaultValues(),\n\t} );\n\n\tconst formValues = useWatch( { control } );\n\n\tconst { label } = props;\n\n\tuseEffect( () => {\n\t\tprops.onValuesChange( formValues );\n\t}, [ formValues ] );\n\n\tuseEffect( () => {\n\t\tsetValue( props.screenSize, getValues( props.screenSize ) );\n\t}, [ props.screenSize ] );\n\n\t/**\n\t * Close color popup if visible.\n\t */\n\tconst toggleClose = () => {\n\t\tsetIsToggled( true );\n\t\tsetIsVisible( ! isVisible );\n\t\tsetTimeout( () => {\n\t\t\tsetIsToggled( false );\n\t\t}, 500 );\n\t};\n\n\t// Retrieve the list all available fonts.\n\tconst getFonts = () => {\n\t\tconst fonts = [];\n\n\t\tfontFamilies.forEach( ( fontFamily ) => {\n\t\t\tfonts.push( { label: fontFamily.name, value: fontFamily.slug, family: fontFamily.family, fallback: fontFamily.fallback, type: fontFamily.type } );\n\t\t} );\n\t\tif ( blockLevelFontFamilies ) {\n\t\t\tconst { theme } = blockLevelFontFamilies;\n\n\t\t\tif ( theme ) {\n\t\t\t\ttheme.forEach( ( fontFamily ) => {\n\t\t\t\t\tfonts.push( { label: fontFamily.name, value: fontFamily.slug, family: fontFamily.fontFamily, fallback: fontFamily.fallback, type: 'web' } );\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\n\t\t// Add placeholder.\n\t\tfonts.unshift( { label: __( 'Custom', 'photo-block' ), value: 'custom' } );\n\t\tfonts.unshift( { label: __( 'Select a Font', 'photo-block' ), value: '' } );\n\n\t\t// Don't show font family on non-desktop sizes.\n\t\tif ( 'desktop' !== screenSize ) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (\n\t\t\t<>\n\t\t\t\t (\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tonChange( newValue );\n\n\t\t\t\t\t\t\t\t// Get font family name for CSS.\n\t\t\t\t\t\t\t\tfonts.forEach( ( font ) => {\n\t\t\t\t\t\t\t\t\tif ( font.value === newValue ) {\n\t\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.fontFamily`, font.family );\n\t\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.fontFamilySlug`, font.value );\n\t\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.fontFallback`, font.fallback );\n\t\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.fontType`, font.type );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t{ 'custom' === getValues( `${ screenSize }.fontFamilySlug` ) && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\t (\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t (\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t (\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\n\t\t);\n\t};\n\n\tconst getTextTransform = () => {\n\t\tconst textTransform = [\n\t\t\t{ label: __( 'None', 'photo-block' ), value: 'none' },\n\t\t\t{ label: __( 'Uppercase', 'photo-block' ), value: 'uppercase' },\n\t\t\t{ label: __( 'Lowercase', 'photo-block' ), value: 'lowercase' },\n\t\t\t{ label: __( 'Capitalize', 'photo-block' ), value: 'capitalize' },\n\t\t];\n\t\treturn (\n\t\t\t (\n\t\t\t\t\t {\n\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t/>\n\t\t);\n\t};\n\n\tconst getFontSize = () => {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t (\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\tif ( startsWithNumber( newValue ) ) {\n\t\t\t\t\t\t\t\t\tconst newValuesSplit = splitValues( newValue );\n\t\t\t\t\t\t\t\t\tconst numericValue = getNumericValue( newValuesSplit );\n\t\t\t\t\t\t\t\t\tconst unitValue = getUnitValue( newValuesSplit );\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.fontSize`, numericValue );\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.fontSizeUnit`, unitValue );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// Starts with a string, hide the unit.\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.fontSize`, newValue );\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.fontSizeUnit`, '' );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\tplaceholder={ geHierarchicalPlaceholderValue( props.values, screenSize, getValues( screenSize ).fontSize, 'fontSize' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t (\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t {\n\t\t\t\t\t\tsetFontSizeUnitPopoverVisible( ! fontSizeUnitPopoverVisible );\n\t\t\t\t\t} }\n\t\t\t\t\tref={ setFontSizeUnitPopoverAnchor }\n\t\t\t\t>{ getValues( `${ screenSize }.fontSizeUnit` ) }\n\t\t\t\t\n\t\t\t\t{ true === fontSizeUnitPopoverVisible && (\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.fontSizeUnit`, 'px' );\n\t\t\t\t\t\t\t\t\tsetFontSizeUnitPopoverVisible( false );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>px\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.fontSizeUnit`, 'em' );\n\t\t\t\t\t\t\t\t\tsetFontSizeUnitPopoverVisible( false );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>em\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.fontSizeUnit`, 'rem' );\n\t\t\t\t\t\t\t\t\tsetFontSizeUnitPopoverVisible( false );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>rem\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\n\t\t);\n\t};\n\n\tconst getFontWeights = () => {\n\t\tconst fontWeights = [\n\t\t\t{ label: __( '100', 'photo-block' ), value: '100' },\n\t\t\t{ label: __( '200', 'photo-block' ), value: '200' },\n\t\t\t{ label: __( '300', 'photo-block' ), value: '300' },\n\t\t\t{ label: __( '400', 'photo-block' ), value: '400' },\n\t\t\t{ label: __( '500', 'photo-block' ), value: '500' },\n\t\t\t{ label: __( '600', 'photo-block' ), value: '600' },\n\t\t\t{ label: __( '700', 'photo-block' ), value: '700' },\n\t\t\t{ label: __( '800', 'photo-block' ), value: '800' },\n\t\t\t{ label: __( '900', 'photo-block' ), value: '900' },\n\t\t];\n\t\treturn (\n\t\t\t (\n\t\t\t\t\t {\n\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t/>\n\t\t);\n\t};\n\n\tconst getLineHeight = () => {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t (\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\tif ( startsWithNumber( newValue ) ) {\n\t\t\t\t\t\t\t\t\tconst newValuesSplit = splitValues( newValue );\n\t\t\t\t\t\t\t\t\tconst numericValue = getNumericValue( newValuesSplit );\n\t\t\t\t\t\t\t\t\tconst unitValue = getUnitValue( newValuesSplit );\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.lineHeight`, numericValue );\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.lineHeightUnit`, unitValue );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// Starts with a string, hide the unit.\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.lineHeight`, newValue );\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.lineHeightUnit`, '' );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\tplaceholder={ geHierarchicalPlaceholderValue( props.values, screenSize, getValues( screenSize ).lineHeight, 'lineHeight' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t (\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t {\n\t\t\t\t\t\tsetLineHeightUnitPopoverVisible( ! lineHeightUnitPopoverVisible );\n\t\t\t\t\t} }\n\t\t\t\t\tref={ setLineHeightUnitPopoverAnchor }\n\t\t\t\t>{ getValues( `${ screenSize }.lineHeightUnit` ) }\n\t\t\t\t\n\t\t\t\t{ true === lineHeightUnitPopoverVisible && (\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.lineHeightUnit`, 'px' );\n\t\t\t\t\t\t\t\t\tsetLineHeightUnitPopoverVisible( false );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>px\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.lineHeightUnit`, 'em' );\n\t\t\t\t\t\t\t\t\tsetLineHeightUnitPopoverVisible( false );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>em\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.lineHeightUnit`, 'rem' );\n\t\t\t\t\t\t\t\t\tsetLineHeightUnitPopoverVisible( false );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>rem\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\n\t\t);\n\t};\n\n\tconst getFontType = () => {\n\t\treturn (\n\t\t\t (\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t/>\n\t\t);\n\t};\n\n\tconst getFontFallback = () => {\n\t\treturn (\n\t\t\t (\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t/>\n\t\t);\n\t};\n\n\tconst getLetterSpacing = () => {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t (\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tonChange( newValue );\n\t\t\t\t\t\t\t\tif ( startsWithNumber( newValue ) ) {\n\t\t\t\t\t\t\t\t\tconst newValuesSplit = splitValues( newValue );\n\t\t\t\t\t\t\t\t\tconst numericValue = getNumericValue( newValuesSplit );\n\t\t\t\t\t\t\t\t\tconst unitValue = getUnitValue( newValuesSplit );\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.letterSpacing`, numericValue );\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.letterSpacingUnit`, unitValue );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// Starts with a string, hide the unit.\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.letterSpacing`, newValue );\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.letterSpacingUnit`, '' );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\tplaceholder={ geHierarchicalPlaceholderValue( props.values, screenSize, getValues( screenSize ).letterSpacing, 'letterSpacing' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t (\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t {\n\t\t\t\t\t\tsetLetterSpacingUnitPopoverVisible( ! letterSpacingUnitPopoverVisible );\n\t\t\t\t\t} }\n\t\t\t\t\tref={ setLetterSpacingUnitPopoverAnchor }\n\t\t\t\t>{ getValues( `${ screenSize }.letterSpacingUnit` ) }\n\t\t\t\t\n\t\t\t\t{ true === letterSpacingUnitPopoverVisible && (\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.letterSpacingUnit`, 'px' );\n\t\t\t\t\t\t\t\t\tsetLetterSpacingUnitPopoverVisible( false );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>px\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.letterSpacingUnit`, 'em' );\n\t\t\t\t\t\t\t\t\tsetLetterSpacingUnitPopoverVisible( false );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>em\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetValue( `${ screenSize }.letterSpacingUnit`, 'rem' );\n\t\t\t\t\t\t\t\t\tsetLetterSpacingUnitPopoverVisible( false );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>rem\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\n\t\t);\n\t};\n\n\tconst getPopoverContent = () => {\n\t\treturn (\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{ getFonts() }\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{ getTextTransform() }\n\t\t\t\t\t\t{ getFontType() }\n\t\t\t\t\t\t{ getFontFallback() }\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{ getFontSize() }\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{ getFontWeights() }\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{ getLineHeight() }\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{ getLetterSpacing() }\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t);\n\t};\n\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t\t{ getPopoverContent() }\n\t\t\t
\n\t\t
\n\t);\n};\nexport default TypographyControl;\n","import './editor.scss';\n/**\n * External dependencies\n */\nimport React, { useState, useEffect, createRef, useCallback } from 'react';\nimport classNames from 'classnames';\nimport PropTypes from 'prop-types';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { UP, DOWN, ENTER, TAB } from '@wordpress/keycodes';\nimport { speak } from '@wordpress/a11y';\nimport {\n\tButton,\n\tSpinner,\n} from '@wordpress/components';\nimport { useInstanceId, useDebounce } from '@wordpress/compose';\nimport { isURL, filterURLForDisplay } from '@wordpress/url';\n\nimport {\n\tSearch,\n\tCornerDownLeft,\n\tXCircle,\n\tExternalLink,\n\tLink,\n\tFile,\n\tFileText,\n\n} from 'lucide-react';\n\nimport SendCommand from '../../utils/SendCommand';\n\n/**\n * URL Selector for Media Library.\n *\n * @param {Object} props Incoming props.\n *\n * @return {React.Component} UrlInput component.\n */\nconst URLPicker = ( props ) => {\n\t/**\n\t * Create Refs for inputs.\n\t */\n\tconst inputRef = createRef();\n\n\tconst restEndPoint = props.restEndpoint;\n\tconst restNonce = props.restNonce;\n\n\t/**\n\t * Set Unique Instance ID.\n\t */\n\tconst generatedUniqueId = useInstanceId( URLPicker, 'app' );\n\n\t/**\n\t * Set State.\n\t */\n\tconst [ suggestions, setSuggestions ] = useState( [] );\n\tconst [ showSuggestions, setShowSuggestions ] = useState( false );\n\tconst [ isUpdatingSuggestions, setIsUpdatingSuggestions ] = useState( false );\n\tconst [ currentSuggestionRequest, setCurrentSuggestionRequest ] =\n\t\tuseState( null );\n\tconst [ selectedSuggestion, setSelectedSuggestion ] = useState( null );\n\tconst [ currentSuggestion, setCurrentSuggestion ] = useState( null );\n\tconst [ selectedSuggestionIndex, setSelectedSuggestionIndex ] = useState( null );\n\tconst [ suggestionListboxId, setSuggestionListboxId ] = useState( '' );\n\tconst [ suggestionValue, setSuggestionValue ] = useState( '' );\n\tconst [ savedSuggestionValue, setSavedSuggestionValue ] = useState( props.savedValue );\n\tconst [ uniqueInstanceId, setUniqueInstanceId ] = useState(\n\t\t`url-input-control-${ generatedUniqueId }`\n\t);\n\tconst [ loading, setLoading ] = useState( false );\n\n\t/**\n\t * Debounceing for delay.\n\t */\n\tconst debouncedRequest = useDebounce( ( value ) => {\n\t\tupdateSuggestions( value );\n\t}, 200 );\n\n\t/**\n\t * Effect.\n\t */\n\tuseEffect( () => {\n\t\t/**\n\t\t * Run once. Set the suggestion value and current suggestion to saved value, then reset saved value.\n\t\t */\n\t\tif ( '' !== savedSuggestionValue ) {\n\t\t\tsetSuggestionValue( savedSuggestionValue );\n\t\t\tconst newSuggestion = {\n\t\t\t\tpermalink: savedSuggestionValue,\n\t\t\t\tlabel: filterURLForDisplay( savedSuggestionValue ),\n\t\t\t\tslug: '',\n\t\t\t\tvalue: '',\n\t\t\t};\n\t\t\tsetSavedSuggestionValue( '' );\n\t\t\tsetCurrentSuggestion( newSuggestion );\n\t\t\treturn;\n\t\t}\n\t\tif ( '' !== suggestionValue ) {\n\t\t\tdebouncedRequest( suggestionValue );\n\t\t}\n\t}, [ suggestionValue ] );\n\n\t/**\n\t * Set Focus to input.\n\t */\n\tuseEffect( () => {\n\t\tif ( inputRef.current && props.hasInititialFocus ) {\n\t\t\tinputRef.current.focus();\n\t\t}\n\t}, [ inputRef ] );\n\n\t/**\n\t * Set the current input.\n\t *\n\t * @param {event} event The onChange event.\n\t */\n\tconst onChange = ( event ) => {\n\t\tsetSuggestionValue( event.target.value );\n\t};\n\n\t/**\n\t * Search when focus and no results are present.\n\t *\n\t * @param {event} event Focus event.\n\t */\n\tconst onFocus = ( event ) => {\n\t\tevent.preventDefault();\n\t\tif ( null === selectedSuggestion && '' !== suggestionValue && ! isURL( suggestionValue ) ) {\n\t\t\tdebouncedRequest( suggestionValue );\n\t\t}\n\t};\n\n\t/**\n\t * Perform keydown functions such as selecting the next items in a list.\n\t *\n\t * @param {event} event Keydown event.\n\t *\n\t * @return {void} Return nothing.\n\t */\n\tconst onKeyDown = ( event ) => {\n\t\t// If the suggestions are not shown or loading, we shouldn't handle the arrow keys\n\t\t// We shouldn't preventDefault to allow block arrow keys navigation.\n\t\tif ( ( ! showSuggestions && ! suggestions.length ) || loading ) {\n\t\t\t// In the Windows version of Firefox the up and down arrows don't move the caret\n\t\t\t// within an input field like they do for Mac Firefox/Chrome/Safari. This causes\n\t\t\t// a form of focus trapping that is disruptive to the user experience. This disruption\n\t\t\t// only happens if the caret is not in the first or last position in the text input.\n\t\t\t// See: https://github.com/WordPress/gutenberg/issues/5693#issuecomment-436684747\n\t\t\tswitch ( event.keyCode ) {\n\t\t\t\t// When UP is pressed, if the caret is at the start of the text, move it to the 0\n\t\t\t\t// position.\n\t\t\t\tcase UP: {\n\t\t\t\t\tif ( 0 !== event.target.selectionStart ) {\n\t\t\t\t\t\tevent.preventDefault();\n\n\t\t\t\t\t\t// Set the input caret to position 0.\n\t\t\t\t\t\tevent.target.setSelectionRange( 0, 0 );\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// When DOWN is pressed, if the caret is not at the end of the text, move it to the\n\t\t\t\t// last position.\n\t\t\t\tcase DOWN: {\n\t\t\t\t\tif (\n\t\t\t\t\t\tsuggestionValue !== event.target.selectionStart\n\t\t\t\t\t) {\n\t\t\t\t\t\tevent.preventDefault();\n\n\t\t\t\t\t\t// Set the input caret to the last position.\n\t\t\t\t\t\tevent.target.setSelectionRange(\n\t\t\t\t\t\t\tsuggestionValue.length,\n\t\t\t\t\t\t\tsuggestionValue.length\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// Submitting while loading should trigger onSubmit.\n\t\t\t\tcase ENTER: {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tdebouncedRequest( event.target.value );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}\n\n\t\tswitch ( event.keyCode ) {\n\t\t\tcase UP: {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tconst previousIndex = ! selectedSuggestionIndex\n\t\t\t\t\t? suggestions.length - 1\n\t\t\t\t\t: selectedSuggestionIndex - 1;\n\t\t\t\tsetSelectedSuggestionIndex( previousIndex );\n\t\t\t\tsetSelectedSuggestion( suggestions[ previousIndex ].value );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase DOWN: {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif ( ! showSuggestions && suggestions.length > 0 ) {\n\t\t\t\t\tsetShowSuggestions( true );\n\t\t\t\t\tsetSelectedSuggestionIndex( 0 );\n\t\t\t\t\tsetSelectedSuggestion( suggestions[ 0 ].value );\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst nextIndex =\n\t\t\t\t\tselectedSuggestion === null ||\n\t\t\t\t\tselectedSuggestionIndex === suggestions.length - 1\n\t\t\t\t\t\t? 0\n\t\t\t\t\t\t: selectedSuggestionIndex + 1;\n\t\t\t\tsetSelectedSuggestionIndex( nextIndex );\n\t\t\t\tsetSelectedSuggestion( suggestions[ nextIndex ].value );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase TAB: {\n\t\t\t\tif ( selectedSuggestion !== null ) {\n\t\t\t\t\t// Announce a link has been selected when tabbing away from the input field.\n\t\t\t\t\tspeak( __( 'Link selected.', 'photo-block' ) );\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase ENTER: {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tsetShowSuggestions( false );\n\t\t\t\tif ( selectedSuggestion !== null ) {\n\t\t\t\t\tprops.onItemSelect( event, getSuggestion( selectedSuggestion ) );\n\t\t\t\t\tinputRef.current.focus();\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t};\n\n\t/**\n\t * Get the current suggestion and output the label.\n\t *\n\t * @param {string} value The current download ID.\n\t *\n\t * @return {Object} The suggestion label.\n\t */\n\tconst getSuggestion = ( value ) => {\n\t\tconst foundSuggestion = suggestions.find(\n\t\t\t( suggestion ) => suggestion.value === value\n\t\t);\n\t\tif ( null === foundSuggestion || undefined === foundSuggestion ) {\n\t\t\treturn null;\n\t\t}\n\t\treturn foundSuggestion;\n\t};\n\n\t/**\n\t * Requests a new suggestion.\n\t *\n\t * @param {string} value Value to search for.\n\t */\n\tconst updateSuggestions = ( value = '' ) => {\n\t\t// Initial suggestions may only show if there is no value\n\t\t// (note: this includes whitespace).\n\t\tconst isInitialSuggestions = ! value?.length;\n\n\t\tvalue = value.toString();\n\n\t\t// Trim only now we've determined whether or not it originally had a \"length\"\n\t\t// (even if that value was all whitespace).\n\t\tvalue = value.trim();\n\n\t\t// Return early if value is a URL.\n\t\tif ( isURL( value ) ) {\n\t\t\tsetSuggestions( [] );\n\t\t\tsetShowSuggestions( false );\n\t\t\tsetLoading( false );\n\t\t\treturn;\n\t\t}\n\n\t\t// Allow a suggestions request if:\n\t\t// - there are at least 2 characters in the search input (except manual searches where\n\t\t// search input length is not required to trigger a fetch)\n\t\t// - this is a direct entry (eg: a URL)\n\t\tif ( ! isInitialSuggestions && value.length < 2 ) {\n\t\t\t// todo - cancel any pending requests\n\t\t\tsetSuggestions( [] );\n\t\t\tsetShowSuggestions( false );\n\t\t\tsetLoading( false );\n\n\t\t\treturn;\n\t\t}\n\n\t\tsetIsUpdatingSuggestions( true );\n\t\tsetSelectedSuggestion( null );\n\t\tsetLoading( true );\n\n\t\tconst abortController = new AbortController();\n\t\tif ( null !== currentSuggestionRequest ) {\n\t\t\tcurrentSuggestionRequest.abort();\n\t\t}\n\t\tsetCurrentSuggestionRequest( abortController );\n\n\t\t// Perform async ajax request.\n\t\t( async() => {\n\t\t\ttry {\n\t\t\t\tsetLoading( true );\n\t\t\t\tawait SendCommand(\n\t\t\t\t\trestNonce,\n\t\t\t\t\t{\n\t\t\t\t\t\tsignal: abortController.signal,\n\t\t\t\t\t\tsearch: encodeURIComponent( value ),\n\t\t\t\t\t},\n\t\t\t\t\trestEndPoint,\n\t\t\t\t\t'POST'\n\t\t\t\t).then( ( response ) => {\n\t\t\t\t\tsetCurrentSuggestionRequest( null );\n\t\t\t\t\tconst { data } = response.data;\n\t\t\t\t\tsetSuggestions( data );\n\t\t\t\t\tsetShowSuggestions( true );\n\t\t\t\t} ).catch( ( error ) => {\n\t\t\t\t} ).then( () => {\n\t\t\t\t\tsetLoading( false );\n\t\t\t\t} );\n\t\t\t} catch ( error ) {\n\t\t\t}\n\t\t} )();\n\t};\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t{ null !== currentSuggestion && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\ticonSize={ 18 }\n\t\t\t\t\t\t\t\t\t\ticonPosition=\"right\"\n\t\t\t\t\t\t\t\t\t\tlabel={ __( 'Open in new tab', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\thref={ currentSuggestion.permalink }\n\t\t\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{ filterURLForDisplay( currentSuggestion.permalink ) }\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\ticonSize={ 18 }\n\t\t\t\t\t\t\t\t\tlabel={ __( 'Remove Current Selection', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\tsetCurrentSuggestion( null );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t) }\n\t\t\t\t\t{ null === currentSuggestion && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tloading && (\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t( ! loading && ! isURL( suggestionValue ) ) && (\n\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\ticonSize={ 18 }\n\t\t\t\t\t\t\t\t\t\t\tlabel={ __( 'Search for a Page', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\t\t\tsetShowSuggestions( true );\n\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t( ! loading && isURL( suggestionValue ) ) && (\n\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\ticonSize={ 18 }\n\t\t\t\t\t\t\t\t\t\t\tlabel={ __( 'Apply Link', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\t\tonClick={ ( e ) => {\n\t\t\t\t\t\t\t\t\t\t\t\tconst newSuggestion = {\n\t\t\t\t\t\t\t\t\t\t\t\t\tpermalink: suggestionValue,\n\t\t\t\t\t\t\t\t\t\t\t\t\tlabel: filterURLForDisplay( suggestionValue ),\n\t\t\t\t\t\t\t\t\t\t\t\t\tslug: '',\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: '',\n\t\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\t\tsetCurrentSuggestion( newSuggestion );\n\t\t\t\t\t\t\t\t\t\t\t\tprops.onItemSelect( e, suggestionValue );\n\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t
\n\t\t\t\t\t) }\n\n\t\t\t\t
\n\t\t\t
\n\t\t\t{ showSuggestions && !! suggestions.length && (\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{ suggestions.map( ( suggestion, index ) => {\n\t\t\t\t\t\t\tconst suggestionId = `photo-block-suggested-value-${ suggestion.value }`;\n\t\t\t\t\t\t\tconst suggestionClass = classNames(\n\t\t\t\t\t\t\t\t'photo-block-url-input__suggestion',\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t'is-selected': suggestion.value === selectedSuggestion,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tsetSelectedSuggestion( parseInt( e.target.value ) );\n\t\t\t\t\t\t\t\t\t\tsetSelectedSuggestionIndex( index );\n\t\t\t\t\t\t\t\t\t\tsetCurrentSuggestion( suggestion );\n\t\t\t\t\t\t\t\t\t\tsetShowSuggestions( false );\n\t\t\t\t\t\t\t\t\t\tprops.onItemSelect( e, suggestion.permalink );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\ticon={ 'post' === suggestion.type ? : }\n\t\t\t\t\t\t\t\t\ticonSize={ 2 }\n\t\t\t\t\t\t\t\t\ticonPosition=\"left\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t{ suggestion.label }\n\t\t\t\t\t\t\t\t\t\t{ suggestion.permalink }\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} ) }\n\t\t\t\t\t
\n\t\t\t\t\n\t\t\t) }\n\t\t\n\t);\n};\n\nURLPicker.defaultProps = {\n\tlabel: __( 'Page', 'photo-block' ),\n\tonItemSelect: () => {},\n\thasInititialFocus: false,\n\titemIcon: <>,\n};\n\nURLPicker.propTypes = {\n\trestEndpoint: PropTypes.string.isRequired,\n\trestNonce: PropTypes.string.isRequired,\n\tlabel: PropTypes.string.isRequired,\n\tonItemSelect: PropTypes.func.isRequired,\n\thasInititialFocus: PropTypes.bool.isRequired,\n\titemIcon: PropTypes.element.isRequired,\n};\n\nexport default URLPicker;\n","/**\n * Unit Picker Component.\n * Credit: Forked from @GenerateBlocks\n */\nimport React from 'react';\n\nimport { __, sprintf, _x } from '@wordpress/i18n';\nimport './editor.scss';\n\nimport { ButtonGroup, Button, Tooltip } from '@wordpress/components';\nimport classnames from 'classnames';\n\nconst UnitPicker = ( props ) => {\n\tconst { label, value, onClick, units } = props;\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t{ units.map( ( unit ) => {\n\t\t\t\t\t\tlet unitName = unit;\n\n\t\t\t\t\t\tif ( 'px' === unit ) {\n\t\t\t\t\t\t\tunitName = _x(\n\t\t\t\t\t\t\t\t'Pixel',\n\t\t\t\t\t\t\t\t'A size unit for CSS markup',\n\t\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( 'em' === unit ) {\n\t\t\t\t\t\t\tunitName = _x(\n\t\t\t\t\t\t\t\t'Em',\n\t\t\t\t\t\t\t\t'A size unit for CSS markup',\n\t\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( '%' === unit ) {\n\t\t\t\t\t\t\tunitName = _x(\n\t\t\t\t\t\t\t\t'Percentage',\n\t\t\t\t\t\t\t\t'A size unit for CSS markup',\n\t\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( 'vw' === unit ) {\n\t\t\t\t\t\t\tunitName = _x(\n\t\t\t\t\t\t\t\t'View Width',\n\t\t\t\t\t\t\t\t'A size unit for CSS markup',\n\t\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( 'rem' === unit ) {\n\t\t\t\t\t\t\tunitName = _x(\n\t\t\t\t\t\t\t\t'Rem',\n\t\t\t\t\t\t\t\t'A size unit for CSS markup',\n\t\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( 'deg' === unit ) {\n\t\t\t\t\t\t\tunitName = _x(\n\t\t\t\t\t\t\t\t'Degree',\n\t\t\t\t\t\t\t\t'A size unit for CSS markup',\n\t\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t onClick( unit ) }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ unit }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t);\n\t\t\t\t\t} ) }\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t);\n};\n\nexport default UnitPicker;\n","/**\n * Uploading including showing Cancel and Retry buttons.\n */\nimport './editor.scss';\n\nimport { Button } from '@wordpress/components';\n\nimport { XCircle, Redo2 } from 'lucide-react';\n\nimport { forwardRef, useContext } from '@wordpress/element';\n\nimport { __ } from '@wordpress/i18n';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { blockStore } from '../../store';\n\n/**\n * Upload Status component.\n *\n * @param {Object} props - Component props.\n */\nconst UploadStatus = ( props ) => {\n\t// Read in context values.\n\n\tconst { blockUniqueId } = props;\n\n\tconst {\n\t\tsetIsUploading,\n\t\tsetIsUploadError,\n\t\tsetIsProcessingUpload,\n\t} = useDispatch( blockStore( blockUniqueId ) );\n\tconst {\n\t\timageData,\n\t\tisUploadError,\n\t\tfilepondInstance,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\timageData: select( blockStore( blockUniqueId ) ).getImageData(),\n\t\t\tisUploadError: select( blockStore( blockUniqueId ) ).isUploadError(),\n\t\t\tfilepondInstance: select( blockStore( blockUniqueId ) ).getFilepondInstance(),\n\t\t};\n\t} );\n\n\treturn (\n\t\t<>\n\t\t\t
\n\t\t\t\t }\n\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\tsetIsUploadError( false );\n\t\t\t\t\t\tsetIsUploading( false );\n\t\t\t\t\t\tsetIsProcessingUpload( false );\n\t\t\t\t\t\tfilepondInstance.removeFile(); // start over. Go back to initial view.\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Cancel', 'photo-block' ) }\n\t\t\t\t\n\t\t\t\t{ isUploadError && (\n\t\t\t\t\t }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\tsetIsUploading( true );\n\t\t\t\t\t\t\tsetIsUploadError( false );\n\t\t\t\t\t\t\tfilepondInstance.addFile( imageData.file ); // Start upload process again.\n\t\t\t\t\t\t} }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Retry Image', 'photo-block' ) }\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t
\n\t\t\n\t);\n};\nexport default UploadStatus;\n","/**\n * Upload data row including Upload|Media Library|URL|Data.\n */\nimport './editor.scss';\n\nimport { Spinner } from '@wordpress/components';\n\nimport { FilePond, registerPlugin } from 'react-filepond';\nimport FilePondPluginImagePreview from 'filepond-plugin-image-preview';\nimport FilePondPluginImageExifOrientation from 'filepond-plugin-image-exif-orientation';\nimport FilePondPluginFileValidateType from 'filepond-plugin-file-validate-type';\nimport 'filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css';\nimport 'filepond/dist/filepond.min.css';\n\nimport {\n\tuseContext,\n\tuseState,\n} from '@wordpress/element';\n\nimport { Upload } from 'lucide-react';\n\nimport { __ } from '@wordpress/i18n';\n\nimport { useDispatch, useSelect } from '@wordpress/data';\n\nimport { blockStore } from '../../store';\n\n// Register filepond plugins.\nregisterPlugin(\n\tFilePondPluginImagePreview,\n\tFilePondPluginImageExifOrientation,\n\tFilePondPluginFileValidateType\n);\n\nimport { redoSvg, processSvg } from '../../blocks/photo-block/icons/filepond';\nconst UploadTarget = ( props ) => {\n\n\tconst { blockUniqueId } = props;\n\n\tconst {\n\t\tsetImageData,\n\t\tsetFilepondInstance,\n\t\tsetIsUploading,\n\t\tsetIsProcessingUpload,\n\t\tsetPhotoMode,\n\t\tsetIsUploadError,\n\t\tsetScreen,\n\t} = useDispatch( blockStore( blockUniqueId ) );\n\n\tconst {\n\t\tcurrentScreen,\n\t\tisUploading,\n\t\tisProcessingUpload,\n\t\tisUploadError,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\tcurrentScreen: select( blockStore( blockUniqueId ) ).getCurrentScreen(),\n\t\t\tisUploading: select( blockStore( blockUniqueId ) ).isUploading(),\n\t\t\tisProcessingUpload: select( blockStore( blockUniqueId ) ).isProcessingUpload(),\n\t\t\tisUploadError: select( blockStore( blockUniqueId ) ).isUploadError(),\n\t\t};\n\t} );\n\n\tconst { setAttributes } = props;\n\n\treturn (\n\t\t<>\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\t\t// todo - Need error checking and handling here.\n\t\t\t\t\t\t\t\tconst formData = new FormData();\n\t\t\t\t\t\t\t\t// If file is not an object, treat as full URL.\n\t\t\t\t\t\t\t\tif ( 'object' !== typeof file ) {\n\t\t\t\t\t\t\t\t\tformData.append( 'url', file );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tformData.append( 'file', file, file.name );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tconst request = new XMLHttpRequest();\n\t\t\t\t\t\t\t\trequest.open( 'POST', photoBlock.restUrl + '/add-image' );\n\t\t\t\t\t\t\t\trequest.setRequestHeader( 'X-WP-Nonce', photoBlock.restNonce );\n\t\t\t\t\t\t\t\trequest.upload.onprogress = ( e ) => {\n\t\t\t\t\t\t\t\t\tprogress( e.lengthComputable, e.loaded, e.total );\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\trequest.onload = function() {\n\t\t\t\t\t\t\t\t\tif ( request.status >= 200 && request.status < 300 ) {\n\t\t\t\t\t\t\t\t\t\tsetAttributes(\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\timageData: JSON.parse( request.responseText ),\n\t\t\t\t\t\t\t\t\t\t\t\tphotoMode: 'photo',\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\tsetPhotoMode( 'photo' );\n\t\t\t\t\t\t\t\t\t\tsetImageData( JSON.parse( request.responseText ) );\n\t\t\t\t\t\t\t\t\t\tload( request.responseText );\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\terror( 'oh no' );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\trequest.send( formData );\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\tabort: () => {\n\t\t\t\t\t\t\t\t\t\trequest.abort();\n\t\t\t\t\t\t\t\t\t\tabort();\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tcredits={ false }\n\t\t\t\t\t\tstylePanelLayout=\"integrated\"\n\t\t\t\t\t\tlabelIdle=\"\"\n\t\t\t\t\t\tallowRemove={ false }\n\t\t\t\t\t\tallowRevert={ false }\n\t\t\t\t\t\tref={ setFilepondInstance }\n\t\t\t\t\t\tlabelFileTypeNotAllowed={ __( 'Invalid file type', 'photo-block' ) }\n\t\t\t\t\t\tlabelTapToCancel={ __( 'Click to cancel', 'photo-block' ) }\n\t\t\t\t\t\tacceptedFileTypes={ [ 'image/*' ] }\n\t\t\t\t\t\tonaddfilestart={ () => {\n\t\t\t\t\t\t\tsetIsUploading( true );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tonprocessfileabort={ () => {\n\t\t\t\t\t\t\tsetIsUploading( false );\n\t\t\t\t\t\t\tsetIsProcessingUpload( false );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tonerror={ ( error ) => {\n\t\t\t\t\t\t\tsetIsUploadError( true );\n\t\t\t\t\t\t\tsetIsUploading( false );\n\t\t\t\t\t\t\tsetIsProcessingUpload( false );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\timagePreviewMaxFileSize=\"4MB\"\n\t\t\t\t\t\ticonRetry={ redoSvg }\n\t\t\t\t\t\ticonProcess={ processSvg }\n\t\t\t\t\t\tonprocessfile={ ( error, file ) => {\n\t\t\t\t\t\t\tsetIsProcessingUpload( false );\n\t\t\t\t\t\t\tsetIsUploading( false );\n\t\t\t\t\t\t\tsetScreen( 'edit' );\n\t\t\t\t\t\t\tsetAttributes(\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tscreen: 'edit',\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\t{ ! isUploading && ! isProcessingUpload && (\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{ __( 'Drag Photo Here or Click to Upload', 'photo-block' ) }\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t) }\n\t\t\t
\n\t\t\n\t);\n};\nexport default UploadTarget;\n","/**\n * Upload data row including Upload|Media Library|URL|Data.\n */\nimport './editor.scss';\n\nimport {\n\tToggleControl,\n\tTextControl,\n\tButton,\n\tSlot,\n} from '@wordpress/components';\nimport { createBlock } from '@wordpress/blocks';\nimport { applyFilters } from '@wordpress/hooks';\nimport { MediaUpload, MediaUploadCheck, store as blockEditorStore } from '@wordpress/block-editor';\n\nimport {\n\tDatabase,\n\tLink,\n\tImage as LucideImage,\n\tUpload,\n\tDownload,\n\tAlertCircle,\n\tSave,\n\tLoader2,\n\tXCircle,\n\tImagePlus,\n\tArrowBigLeftDash,\n\n} from 'lucide-react';\n\nimport { useContext, useState, useEffect } from '@wordpress/element';\n\nimport { __ } from '@wordpress/i18n';\nimport classnames from 'classnames';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { blockStore } from '../../store';\nimport SendCommand from '../../utils/SendCommand';\n\nimport WPNotice from '../../components/Notice';\n\n/**\n * UploadTypes component.\n *\n * @param {Object} props - Component props.\n * @return {Function} Component.\n */\nconst UploadTypes = ( props ) => {\n\tconst { attributes, setAttributes, context, blockUniqueId, clientId } = props;\n\n\tconst {\n\t\tsetImageData,\n\t\tsetPhotoMode,\n\t\tsetScreen,\n\t\tsetHasCaption,\n\t} = useDispatch( blockStore( blockUniqueId ) );\n\n\tconst {\n\t\tinsertBlock,\n\t\tupdateBlockAttributes,\n\t} = useDispatch( blockEditorStore );\n\n\t// Get current block data.\n\tconst {\n\t\timageData,\n\t\tfilepondInstance,\n\t\tphotoMode,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\timageData: select( blockStore( blockUniqueId ) ).getImageData(),\n\t\t\tfilepondInstance: select( blockStore( blockUniqueId ) ).getFilepondInstance(),\n\t\t\tphotoMode: select( blockStore( blockUniqueId ) ).getPhotoMode(),\n\t\t};\n\t} );\n\n\tconst [ isUrlSelected, setIsUrlSelected ] = useState( false );\n\tconst [ url, setUrl ] = useState( '' );\n\tconst [ urlInput, setUrlInput ] = useState( null );\n\tconst [ isUrlValidationError, setIsUrlValidationError ] = useState( false );\n\tconst [ isUrlSaving, setIsUrlSaving ] = useState( false );\n\tconst [ urlValidationErrorMessage, setUrlValidationErrorMessage ] = useState( '' );\n\n\t/**\n\t * Focus on url when entered.\n\t */\n\tuseEffect( () => {\n\t\tif ( null !== urlInput ) {\n\t\t\turlInput.focus();\n\t\t}\n\t}, [ urlInput ] );\n\n\tconst getUrlIcon = () => {\n\t\tif ( isUrlSaving ) {\n\t\t\treturn ;\n\t\t}\n\t\tif ( 'url' === photoMode ) {\n\t\t\treturn ;\n\t\t}\n\t\treturn ;\n\t};\n\n\tconst getUrlLabel = () => {\n\t\tif ( isUrlSaving ) {\n\t\t\treturn __( 'Uploading', 'photo-block' );\n\t\t}\n\t\tif ( 'url' === photoMode ) {\n\t\t\treturn __( 'Add Image', 'photo-block' );\n\t\t}\n\t\treturn __( 'Upload', 'photo-block' );\n\t};\n\n\t/**\n\t * Check for a valid URL before submitting via Ajax.\n\t *\n\t * @param {string} testUrl The URL string to check.\n\t * @return {boolean} True if the URL is valid, false if not.\n\t */\n\tconst isValidUrl = ( testUrl ) => {\n\t\t// Test the beginning part of the URL.\n\t\tconst urlValidation = /^((http|https):\\/\\/)/;\n\t\tif ( ! urlValidation.test( testUrl ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t/**\n\t\t * Filter the valid extensions for the photo block.\n\t\t *\n\t\t * @param {Array} [ 'jpg', 'jpeg', 'png', 'gif', 'webp', 'avif' ] The default valid extensions.\n\t\t */\n\t\tconst validExtensions = applyFilters(\n\t\t\t'dlx_photo_block_valid_extensions',\n\t\t\t[ 'jpg', 'jpeg', 'png', 'gif', 'webp', 'avif' ]\n\t\t);\n\n\t\t// Test for valid extensions.\n\t\tconst parseUrl = new URL( testUrl );\n\t\tconst path = parseUrl.pathname.toLowerCase();\n\n\t\treturn validExtensions.some( ( extension ) => path.endsWith( extension ) );\n\t};\n\n\tif ( isUrlSelected ) {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\tif ( value ) {\n\t\t\t\t\t\t\t\tsetPhotoMode( 'url' );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tsetPhotoMode( 'image' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetUrlValidationErrorMessage( '' );\n\t\t\t\t\t\t\tsetIsUrlValidationError( false );\n\t\t\t\t\t\t\tsetUrl( value );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tref={ setUrlInput }\n\t\t\t\t\t\tplaceholder={ __( 'Please enter a valid image URL', 'photo-block' ) }\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\t// Perform validation on the URL.\n\t\t\t\t\t\t\tif ( ! isValidUrl( url ) ) {\n\t\t\t\t\t\t\t\tsetUrlValidationErrorMessage( __( 'Please enter a valid image URL', 'photo-block' ) );\n\t\t\t\t\t\t\t\tsetIsUrlValidationError( true );\n\t\t\t\t\t\t\t\turlInput.focus();\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsetUrlValidationErrorMessage( '' );\n\t\t\t\t\t\t\tsetIsUrlSaving( true );\n\t\t\t\t\t\t\tsetIsUrlValidationError( false );\n\n\t\t\t\t\t\t\tif ( 'url' !== photoMode ) {\n\t\t\t\t\t\t\t\tSendCommand(\n\t\t\t\t\t\t\t\t\tphotoBlock.restNonce,\n\t\t\t\t\t\t\t\t\t{ url },\n\t\t\t\t\t\t\t\t\tphotoBlock.restUrl + '/add-image-from-url',\n\t\t\t\t\t\t\t\t\t'POST'\n\t\t\t\t\t\t\t\t).then( ( response ) => {\n\t\t\t\t\t\t\t\t\t// Successful response.\n\t\t\t\t\t\t\t\t\tconst maybeUrl = response.data?.url ?? false; // Double-checking.\n\t\t\t\t\t\t\t\t\tif ( maybeUrl ) {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { imageData: response.data, photoMode: 'photo' } );\n\t\t\t\t\t\t\t\t\t\tsetImageData( response.data );\n\t\t\t\t\t\t\t\t\t\tsetScreen( 'edit' );\n\t\t\t\t\t\t\t\t\t\tsetPhotoMode( 'photo' );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} ).catch( ( error ) => {\n\t\t\t\t\t\t\t\t\tconst errorMessage = error?.response?.data?.message ?? __( 'An unknown error occurred', 'photo-block' );\n\t\t\t\t\t\t\t\t\tsetUrlValidationErrorMessage( errorMessage );\n\t\t\t\t\t\t\t\t\tsetIsUrlValidationError( true );\n\t\t\t\t\t\t\t\t\turlInput.focus();\n\t\t\t\t\t\t\t\t} ).then( () => {\n\t\t\t\t\t\t\t\t\tsetIsUrlSaving( false );\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// Get width and height of the image.\n\t\t\t\t\t\t\t\tconst newImage = new Image();\n\t\t\t\t\t\t\t\tnewImage.src = url;\n\t\t\t\t\t\t\t\tnewImage.onload = () => {\n\t\t\t\t\t\t\t\t\tconst urlImageData = {\n\t\t\t\t\t\t\t\t\t\tid: 0,\n\t\t\t\t\t\t\t\t\t\turl,\n\t\t\t\t\t\t\t\t\t\twidth: newImage.width,\n\t\t\t\t\t\t\t\t\t\theight: newImage.height,\n\t\t\t\t\t\t\t\t\t\talt: '',\n\t\t\t\t\t\t\t\t\t\tcaption: '',\n\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t\t\tsetAttributes( { imageData: urlImageData, screen: 'edit', photoMode: 'url' } );\n\t\t\t\t\t\t\t\t\tsetImageData( urlImageData );\n\t\t\t\t\t\t\t\t\tsetScreen( 'edit' );\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tlabel={ getUrlLabel() }\n\t\t\t\t\t/>\n\t\t\t\t\t }\n\t\t\t\t\t\tclassName=\"dlx-photo-block__upload-types-url__cancel\"\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\tsetIsUrlSelected( false );\n\t\t\t\t\t\t\tsetUrlValidationErrorMessage( '' );\n\t\t\t\t\t\t\tsetIsUrlValidationError( false );\n\t\t\t\t\t\t\tsetIsUrlSaving( false );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tlabel={ __( 'Cancel', 'photo-block' ) }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\t{\n\t\t\t\t\tisUrlValidationError && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\n\t\t);\n\t}\n\n\tconst handleSelect = ( media ) => {\n\t\t// Fetch image data.\n\t\tSendCommand(\n\t\t\tphotoBlock.restNonce,\n\t\t\t{},\n\t\t\t`${ photoBlock.restUrl + '/get-image-by-size' }/id=${ media.id }/size=${ attributes.imageSize }`,\n\t\t\t'GET'\n\t\t)\n\t\t\t.then( ( response ) => {\n\t\t\t\tsetPhotoMode( 'photo' );\n\t\t\t\tsetScreen( 'edit' );\n\t\t\t\tattributes.screen = 'edit';\n\t\t\t\tsetAttributes( {\n\t\t\t\t\timageData: response.data,\n\t\t\t\t\tscreen: 'edit',\n\t\t\t\t\tphotoMode: 'photo',\n\t\t\t\t\thasCaption: true,\n\t\t\t\t} );\n\t\t\t\tsetImageData( response.data );\n\n\t\t\t\tif ( response.data.caption !== '' ) {\n\t\t\t\t\tconst newBlock = createBlock( 'dlxplugins/photo-caption-block', {\n\t\t\t\t\t\tcaptionManual: response.data.caption,\n\t\t\t\t\t\tuniqueId: blockUniqueId,\n\t\t\t\t\t} );\n\n\t\t\t\t\t// Ensure block editor is ready\n\t\t\t\t\tsetTimeout( async() => {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinsertBlock( newBlock, undefined, props.clientId );\n\t\t\t\t\t\t} catch ( error ) {\n\t\t\t\t\t\t\tconsole.error( 'Error inserting block:', error );\n\t\t\t\t\t\t}\n\t\t\t\t\t}, 0 );\n\t\t\t\t}\n\t\t\t} )\n\t\t\t.catch( ( error ) => {\n\t\t\t\t// TODO: Handle error appropriately.\n\t\t\t\tconsole.error( 'Error fetching image data:', error );\n\t\t\t} );\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t
\n\t\t\t\t{\n\t\t\t\t\t( imageData.url !== '' ) && (\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\tclassName=\"dlx-photo-block__upload-types__back\"\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tsetAttributes( { screen: 'edit' } );\n\t\t\t\t\t\t\t\tsetScreen( 'edit' );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Back', 'photo-block' ) }\n\t\t\t\t\t\t\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\tfilepondInstance.browse();\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Upload', 'photo-block' ) }\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t (\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\topen();\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Media Library', 'photo-block' ) }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) }\n\t\t\t\t\t\tonSelect={ handleSelect }\n\t\t\t\t\t/>\n\t\t\t\t\n\n\t\t\t\t }\n\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\tsetIsUrlSelected( true );\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'URL', 'photo-block' ) }\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n};\nexport default UploadTypes;\n","import { useDispatch, useSelect } from '@wordpress/data';\nimport { useEffect } from '@wordpress/element';\n\n/* Credits: Forked from GenerateBlocks */\n\nexport default () => {\n\tconst { setDeviceType } = useDispatch( 'core/editor' );\n\n\tconst deviceType = useSelect( ( select ) => {\n\t\tconst { getDeviceType } = select( 'core/editor' );\n\n\t\treturn getDeviceType().toLowerCase();\n\t}, [] );\n\n\tuseEffect( () => {\n\t}, [ deviceType ] );\n\n\treturn [ deviceType, setDeviceType ];\n};\n","import unitList from '../utils/UnitsList';\n\nconst useUnits = () => {\n\t// Test if the value starts with a number, decimal or a single dash. Single dash is for negative numbers.\n\tconst startsWithNumber = ( number ) => {\n\t\tif ( 0 === number ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn /^([-]?\\d|[-]?\\.)/.test( number );\n\t};\n\tconst getNumericValue = ( values ) => values.length > 0 ? values[ 0 ].trim() : '';\n\tconst defaultUnitValue = 'px';\n\tconst getUnitValue = ( values ) => values.length > 1 ? values[ 1 ] : defaultUnitValue;\n\n\t/**\n\t * Handle when a unit value changes.\n\t *\n\t * @param {string} newValue The value to get the numeric value from.\n\t * @param {Function} onChange The onChange function.\n\t * @param {Function} setValue The setValue function.\n\t * @param {string} device The device type.\n\t * @param {string} unitSlug The unit slug.\n\t * @return {void}\n\t */\n\tconst onUnitChange = ( newValue, onChange, setValue, device, unitSlug ) => {\n\t\tif ( startsWithNumber( newValue ) ) {\n\t\t\tconst newValuesSplit = splitValues( newValue );\n\t\t\tconst numericValue = getNumericValue( newValuesSplit );\n\t\t\tsetValue( `${ device }.${ unitSlug }`, getUnitValue( newValuesSplit ) );\n\t\t\tonChange( numericValue );\n\t\t} else {\n\t\t\t// Starts with a string, hide the unit.\n\t\t\tsetValue( `${ device }.${ unitSlug }`, '' );\n\t\t\tonChange( newValue );\n\t\t}\n\t};\n\n\tconst splitValues = ( values ) => {\n\t\tconst unitRegex = unitList.join( '|' );\n\t\tconst splitRegex = new RegExp( `(${ unitRegex })` );\n\n\t\treturn values\n\t\t\t? values.toString().toLowerCase().split( splitRegex ).filter( ( singleValue ) => '' !== singleValue )\n\t\t\t: [];\n\t};\n\n\treturn {\n\t\tonUnitChange,\n\t\tsplitValues,\n\t\tgetNumericValue,\n\t\tgetUnitValue,\n\t\tstartsWithNumber,\n\t};\n};\nexport default useUnits;\n","import { useMemo, useState } from 'react';\nimport { registerPlugin } from '@wordpress/plugins';\nimport { addFilter } from '@wordpress/hooks';\nimport { useSelect, select } from '@wordpress/data';\nimport getStyles from '../../blocks/photo-block/block-styles';\nimport getStylesCaption from '../../blocks/photo-caption-block/block-styles';\n\nimport globalStylesStore from '../../store/global-styles';\n\nregisterPlugin(\n\t'photo-block-global-styles',\n\t{\n\t\trender: () => {\n\t\t\tconst {\n\t\t\t\tgetGlobalStyleBySlug,\n\t\t\t\tgetGlobalStyleRefresh,\n\t\t\t} = useSelect( ( newSelect ) => {\n\t\t\t\treturn {\n\t\t\t\t\tgetGlobalStyleBySlug: newSelect( globalStylesStore ).getGlobalStyleBySlug,\n\t\t\t\t\tgetGlobalStyleRefresh: newSelect( globalStylesStore ).getGlobalStyleRefresh,\n\t\t\t\t};\n\t\t\t} );\n\n\t\t\tconst returnRealtimeBlockAttributes = ( propAttributes, globalStyle, clientId, type ) => {\n\t\t\t\t// Return if global style is defined, none, or empty.\n\t\t\t\tif ( 'undefined' === typeof ( globalStyle ) || 'none' === globalStyle || '' === globalStyle ) {\n\t\t\t\t\treturn propAttributes;\n\t\t\t\t}\n\n\t\t\t\t// Get global style.\n\t\t\t\tconst maybeGlobalStyle = getGlobalStyleBySlug( globalStyle );\n\n\t\t\t\tif ( Object.keys( maybeGlobalStyle ).length === 0 ) {\n\t\t\t\t\treturn propAttributes;\n\t\t\t\t}\n\t\t\t\t// Found a global style.\n\t\t\t\tlet newAttributes = {};\n\t\t\t\tif ( 'caption' === type ) {\n\t\t\t\t\tnewAttributes = { ...maybeGlobalStyle.content.captionAttributes };\n\t\t\t\t\tnewAttributes.globalStyle = globalStyle;\n\t\t\t\t} else {\n\t\t\t\t\tnewAttributes = { ...maybeGlobalStyle.content.photoAttributes };\n\t\t\t\t\t// Ensure global styless are not applied if overriden.\n\t\t\t\t\tif ( propAttributes.imageSizeOverride ) {\n\t\t\t\t\t\tnewAttributes.imageSize = propAttributes.imageSize;\n\t\t\t\t\t}\n\t\t\t\t\tif ( propAttributes.mediaLinkOverride )\t{\n\t\t\t\t\t\tnewAttributes.mediaLinkType = propAttributes.mediaLinkType;\n\t\t\t\t\t\tnewAttributes.mediaLinkTitle = propAttributes.mediaLinkTitle;\n\t\t\t\t\t\tnewAttributes.mediaLinkNewTab = propAttributes.mediaLinkNewTab;\n\t\t\t\t\t\tnewAttributes.mediaLinkUrl = propAttributes.mediaLinkUrl;\n\t\t\t\t\t\tnewAttributes.lightboxCaption = propAttributes.lightboxCaption;\n\t\t\t\t\t\tnewAttributes.lightboxEnabled = propAttributes.lightboxEnabled;\n\t\t\t\t\t\tnewAttributes.lightboxShowCaption = propAttributes.lightboxShowCaption;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn {\n\t\t\t\t\t...propAttributes,\n\t\t\t\t\t...newAttributes,\n\t\t\t\t};\n\t\t\t};\n\n\t\t\taddFilter( 'dlx_photo_block_attributes', 'dlx_photo_block', returnRealtimeBlockAttributes );\n\t\t\treturn null;\n\t\t},\n\t}\n);\n\nconst devices = [ 'desktop', 'tablet', 'mobile' ];\n\nregisterPlugin(\n\t'photo-block-print-global-styles',\n\t{\n\t\trender: () => {\n\t\t\tconst [ styles, setStyles ] = useState( '' );\n\t\t\tconst {\n\t\t\t\tgetGlobalStyles,\n\t\t\t\tglobalStyleRefresh,\n\t\t\t} = useSelect( ( newSelect ) => {\n\t\t\t\treturn {\n\t\t\t\t\tgetGlobalStyles: newSelect( globalStylesStore ).getGlobalStyles,\n\t\t\t\t\tglobalStyleRefresh: newSelect( globalStylesStore ).getGlobalStyleRefresh(),\n\t\t\t\t};\n\t\t\t} );\n\n\t\t\tuseMemo( () => {\n\t\t\t\tconst globalStyles = getGlobalStyles();\n\t\t\t\tif ( Object.keys( globalStyles ).length === 0 ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlet photoStyles = '';\n\t\t\t\tconst globalStylesCSS = Object.values( globalStyles ).map( ( globalStyle ) => {\n\t\t\t\t\tconst photoAttributes = globalStyle.content.photoAttributes;\n\t\t\t\t\tconst captionAttributes = globalStyle.content.captionAttributes;\n\n\t\t\t\t\tdevices.forEach( ( device ) => {\n\t\t\t\t\t\tlet deviceStyles = getStyles( photoAttributes, device, globalStyle.css_class, true );\n\t\t\t\t\t\tdeviceStyles += getStylesCaption( captionAttributes, device, globalStyle.css_class, true );\n\n\t\t\t\t\t\tswitch ( device ) {\n\t\t\t\t\t\t\tcase 'desktop':\n\t\t\t\t\t\t\t\tdeviceStyles = '@media (min-width: 1025px) {' + deviceStyles + '}';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'tablet':\n\t\t\t\t\t\t\t\tdeviceStyles = '@media (min-width: 768px) and (max-width: 1024px) {' + deviceStyles + '}';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'mobile':\n\t\t\t\t\t\t\t\tdeviceStyles = '@media (max-width: 767px) {' + deviceStyles + '}';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tphotoStyles += deviceStyles;\n\t\t\t\t\t} );\n\t\t\t\t} );\n\t\t\t\tsetStyles( photoStyles );\n\t\t\t}, [ getGlobalStyles, globalStyleRefresh ] );\n\n\t\t\t// Don't return anything if no global styles.\n\t\t\tif ( '' === styles ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\treturn ;\n\t\t},\n\t}\n);\n\nconst returnBlockAttributes = ( attributes, blockType, innerBlocks ) => {\n\tconst { name } = blockType;\n\t// Get attributes from settings.\n\tswitch ( name ) {\n\t\tcase 'dlxplugins/photo-block':\n\t\t\t// Get global style.\n\t\t\tif ( 'undefined' !== typeof ( attributes.globalStyle ) && 'none' !== attributes.globalStyle && '' !== attributes.globalStyle ) {\n\t\t\t\tconst globalStyle = select( globalStylesStore ).getGlobalStyleBySlug( attributes.globalStyle );\n\n\t\t\t\tif ( Object.keys( globalStyle ).length > 0 ) {\n\t\t\t\t\t// Get photo block global style attributes.\n\t\t\t\t\tconst globalStyleAttributes = { ...globalStyle.content.photoAttributes };\n\n\t\t\t\t\t// Ensure global styless are not applied if overriden.\n\t\t\t\t\tif ( true === attributes.imageSizeOverride ) {\n\t\t\t\t\t\tglobalStyleAttributes.imageSize = attributes.imageSize;\n\t\t\t\t\t}\n\t\t\t\t\tif ( true === attributes.mediaLinkOverride )\t{\n\t\t\t\t\t\tglobalStyleAttributes.mediaLinkType = attributes.mediaLinkType;\n\t\t\t\t\t\tglobalStyleAttributes.mediaLinkTitle = attributes.mediaLinkTitle;\n\t\t\t\t\t\tglobalStyleAttributes.mediaLinkUrl = attributes.mediaLinkUrl;\n\t\t\t\t\t\tglobalStyleAttributes.mediaLinkAnchorId = attributes.mediaLinkAnchorId;\n\t\t\t\t\t\tglobalStyleAttributes.mediaLinkClass = attributes.mediaLinkClass;\n\t\t\t\t\t\tglobalStyleAttributes.mediaLinkTitle = attributes.mediaLinkTitle;\n\t\t\t\t\t\tglobalStyleAttributes.mediaLinkRel = attributes.mediaLinkRel;\n\t\t\t\t\t\tglobalStyleAttributes.mediaLinkNewTab = attributes.mediaLinkNewTab;\n\t\t\t\t\t\tglobalStyleAttributes.lightboxCaption = attributes.lightboxCaption;\n\t\t\t\t\t\tglobalStyleAttributes.lightboxEnabled = attributes.lightboxEnabled;\n\t\t\t\t\t\tglobalStyleAttributes.lightboxShowCaption = attributes.lightboxShowCaption;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...attributes,\n\t\t\t\t\t\t...globalStyleAttributes,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase 'dlxplugins/photo-caption-block':\n\t\t\t// Get global style.\n\t\t\tif ( 'undefined' !== typeof ( attributes.globalStyle ) && 'none' !== attributes.globalStyle && '' !== attributes.globalStyle ) {\n\t\t\t\tconst globalStyle = select( globalStylesStore ).getGlobalStyleBySlug( attributes.globalStyle );\n\n\t\t\t\tif ( Object.keys( globalStyle ).length > 0 ) {\n\t\t\t\t\t// Get photo block global style attributes.\n\t\t\t\t\tconst globalStyleAttributes = globalStyle.content.captionAttributes;\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...attributes,\n\t\t\t\t\t\t...globalStyleAttributes,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\treturn attributes;\n};\naddFilter(\n\t'blocks.getBlockAttributes',\n\t'dlxplugins/photo-block',\n\treturnBlockAttributes\n);\n","import './editor.scss';\nimport 'react-image-crop/src/ReactCrop.scss';\n\nimport { useContext, useState, forwardRef, useEffect } from '@wordpress/element';\nimport {\n\tSpinner,\n\tPanelBody,\n\tPanelRow,\n\tRangeControl,\n\tTextControl,\n\tTextareaControl,\n\tButtonGroup,\n\tButton,\n\tToggleControl,\n\tToolbar,\n\tToolbarItem,\n\tToolbarButton,\n\tToolbarGroup,\n\tToolbarDropdownMenu,\n\tPopover,\n\tPlaceHolder,\n\tMenuGroup,\n\tMenuItem,\n} from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { InspectorControls, BlockControls } from '@wordpress/block-editor';\nimport { Check, RotateCcw, RotateCw, Save, X, Lock, Loader2, ArrowBigLeftDash } from 'lucide-react';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport ReactCrop from 'react-image-crop';\nimport classnames from 'classnames';\nimport { blockStore } from '../../store';\nimport SendCommand from '../../utils/SendCommand';\nimport AspectRatioIcon from '../../components/Icons/AspectRatio';\nimport ToolbarAspectRatio from '../../components/ToolbarAspectRatio';\nimport CalculateAspectRatioFromPixels from '../../utils/CalculateAspectRatioFromPixels';\nimport CalculateDimensionsFromAspectRatio from '../../utils/CalculateDimensionsFromAspectRatio';\n\nconst CropScreen = ( props ) => {\n\tconst { attributes, setAttributes, blockUniqueId } = props;\n\n\tconst {\n\t\tsetScreen,\n\t\tsetImageData,\n\t\tsetPhotoMode,\n\t\tsetJustCropped,\n\t\tsetOriginalImageData,\n\t\tsetAspectRatio,\n\t\tsetAspectRatioToolbarSelection,\n\t} = useDispatch( blockStore( blockUniqueId ) );\n\n\tconst {\n\t\taspectRatioWidth,\n\t\taspectRatioHeight,\n\t\taspectRatioToolbarSelection,\n\t\taspectRatioWidthPixels,\n\t\taspectRatioHeightPixels,\n\t\tgetAspectRatioUnit,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\taspectRatioWidth: select( blockStore( blockUniqueId ) ).getAspectRatioWidth(),\n\t\t\taspectRatioHeight: select( blockStore( blockUniqueId ) ).getAspectRatioHeight(),\n\t\t\taspectRatioToolbarSelection: select( blockStore( blockUniqueId ) ).getAspectRatioToolbarSelection(),\n\t\t\taspectRatioWidthPixels: select( blockStore( blockUniqueId ) ).getAspectRatioWidthPixels(),\n\t\t\taspectRatioHeightPixels: select( blockStore( blockUniqueId ) ).getAspectRatioHeightPixels(),\n\t\t\tgetAspectRatioUnit: select( blockStore( blockUniqueId ) ).getAspectRatioUnit(),\n\t\t};\n\t} );\n\n\tconst [ shouldShowLoading, setShouldShowLoading ] = useState( true );\n\tconst [ shouldFetchImage, setShouldFetchImage ] = useState( true );\n\tconst [ fullsizePhoto, setFullsizePhoto ] = useState( {} );\n\tconst [ modifiedPhoto, setModifiedPhoto ] = useState( null );\n\tconst [ rotateDegrees, setRotateDegrees ] = useState( 0 );\n\tconst [ crop, setCrop ] = useState( null );\n\tconst [ lockCrop, setLockCrop ] = useState( true );\n\tconst [ isSaving, setIsSaving ] = useState( false );\n\tconst [ cropMaxWidth, setCropMaxWidth ] = useState( null ); // Used for setting the max crop size when selecting pixel values for aspect ratio.\n\tconst [ cropMaxHeight, setCropMaxHeight ] = useState( null ); // Used for setting the max crop size when selecting pixel values for aspect ratio.\n\tconst [ reactCropImageRef, setReactCropImageRef ] = useState( null );\n\tconst [ isDiry, setIsDirty ] = useState( false );\n\tconst [ cropAspectRatio, setCropAspectRatio ] = useState( aspectRatioWidth / aspectRatioHeight );\n\n\tconst {\n\t\timageData,\n\t\tuniqueId,\n\t} = attributes;\n\n\tconst { url, id, width, height } = imageData;\n\n\t/**\n\t * Rotate an image.\n\t *\n\t * @param {string} imgSrc The Image URL.\n\t * @param {number} degrees The degrees in which to rotate the image.\n\t * @return {Promise} A promise that resolves with the new image URL.\n\t */\n\tconst rotateImage = ( imgSrc, degrees ) => {\n\t\treturn new Promise( ( resolve, reject ) => {\n\t\t\tconst canvas = document.createElement( 'canvas' );\n\t\t\tconst context = canvas.getContext( '2d' );\n\t\t\tconst image = new Image();\n\t\t\timage.crossOrigin = 'anonymous';\n\t\t\timage.src = imgSrc;\n\t\t\timage.onload = () => {\n\t\t\t\t// Get canvas dimensions from image.\n\t\t\t\tconst radian = ( degrees * Math.PI ) / 180;\n\t\t\t\tconst sin = Math.sin( radian );\n\t\t\t\tconst cos = Math.cos( radian );\n\t\t\t\tconst imgWidth =\n\t\t\t\t\tMath.abs( image.width * cos ) + Math.abs( image.height * sin );\n\t\t\t\tconst imgHeight =\n\t\t\t\t\tMath.abs( image.width * sin ) + Math.abs( image.height * cos );\n\n\t\t\t\t// Begin to rotate.\n\t\t\t\tcanvas.width = imgWidth;\n\t\t\t\tcanvas.height = imgHeight;\n\t\t\t\tcontext.translate( canvas.width / 2, canvas.height / 2 );\n\t\t\t\tcontext.rotate( ( degrees * Math.PI ) / 180 );\n\t\t\t\tcontext.drawImage( image, -image.width / 2, -image.height / 2 );\n\t\t\t\tcanvas.toBlob( ( blob ) => {\n\t\t\t\t\tconst newImageUrl = URL.createObjectURL( blob );\n\t\t\t\t\tresolve( {\n\t\t\t\t\t\turl: newImageUrl,\n\t\t\t\t\t\twidth: canvas.width,\n\t\t\t\t\t\theight: canvas.height,\n\t\t\t\t\t} );\n\t\t\t\t}, 'image/png' );\n\t\t\t\tsetIsDirty( true );\n\t\t\t};\n\t\t\timage.onerror = ( error ) => {\n\t\t\t\treject( error );\n\t\t\t};\n\t\t} );\n\t};\n\n\t/**\n\t * Return the current degree for the rotation items.\n\t *\n\t * @param {number} degrees The degree to add/subtract.\n\t * @return {number} The new degree.\n\t */\n\tconst getDegrees = ( degrees ) => {\n\t\tconst newDegrees = rotateDegrees + degrees;\n\t\tif ( newDegrees === 360 ) {\n\t\t\treturn 0;\n\t\t}\n\t\tif ( newDegrees === -360 ) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn newDegrees;\n\t};\n\n\t/**\n\t * Crop an image using the REST API.\n\t *\n\t * @param {Object} cropObject React crop object.\n\t * @param {number} imageId The image ID.\n\t * @param {number} rotate Image rotation in degrees.\n\t *\n\t * @return {Promise} The REST API promise.\n\t */\n\tconst cropImage = async( cropObject, imageId, rotate ) => {\n\t\t// Get image dimensions relative to viewport.\n\t\tconst displayDimensionsWidth = reactCropImageRef.offsetWidth;\n\t\tconst displayDimensionsHeight = reactCropImageRef.offsetHeight;\n\t\tconst originalDimensionsWidth = reactCropImageRef.naturalWidth;\n\t\tconst originalDimensionsHeight = reactCropImageRef.naturalHeight;\n\n\t\t// Get crop dimensions to send to server.\n\t\tconst scaleX = originalDimensionsWidth / displayDimensionsWidth;\n\t\tconst scaleY = originalDimensionsHeight / displayDimensionsHeight;\n\n\t\t// Scale crop coordinates\n\t\tconst scaledCropX = cropObject.x * scaleX;\n\t\tconst scaledCropY = cropObject.y * scaleY;\n\t\tconst scaledCropWidth = cropObject.width * scaleX;\n\t\tconst scaledCropHeight = cropObject.height * scaleY;\n\t\treturn await SendCommand(\n\t\t\tphotoBlock.restNonce,\n\t\t\t{\n\t\t\t\tcropX: scaledCropX,\n\t\t\t\tcropY: scaledCropY,\n\t\t\t\tcropWidth: scaledCropWidth,\n\t\t\t\tcropHeight: scaledCropHeight,\n\t\t\t\timageId,\n\t\t\t\trotateDegrees: rotate,\n\t\t\t},\n\t\t\t`${ photoBlock.restUrl + '/image/crop' }`,\n\t\t\t'POST'\n\t\t);\n\t};\n\n\t/**\n\t * Set a new center crop based on the image dimensions.\n\t *\n\t * @param {number} imageWidth The image width in pixels.\n\t * @param {number} imageHeight The image height in pixels.\n\t * @param {number} newAspectRatio The aspect ratio.\n\t * @param {number} maximumWidth The maximum width in pixels.\n\t * @param {number} maximumHeight The maximum height in pixels.\n\t */\n\tconst setCenterCrop = ( imageWidth, imageHeight, newAspectRatio, maximumWidth = null, maximumHeight = null ) => {\n\t\tconst initialCropRatio = 1;\n\n\t\t// Get the initial crop size.\n\t\tconst minDimension = Math.min( imageWidth, imageHeight );\n\t\tconst initialCropSize = minDimension * initialCropRatio;\n\n\t\t// Get the crop width/height.\n\t\tlet cropWidth, cropHeight;\n\t\tif ( imageWidth < imageHeight ) {\n\t\t\tcropWidth = initialCropSize;\n\t\t\tcropHeight = cropWidth / newAspectRatio;\n\t\t} else {\n\t\t\tcropHeight = initialCropSize;\n\t\t\tcropWidth = cropHeight * newAspectRatio;\n\t\t}\n\t\tif ( maximumWidth && maximumHeight ) {\n\t\t\tcropWidth = maximumWidth;\n\t\t\tcropHeight = maximumHeight;\n\t\t}\n\n\t\t// Check if crop width/height exceed image dimensions.\n\t\tif ( cropWidth > imageWidth ) {\n\t\t\tcropWidth = imageWidth;\n\t\t\tcropHeight = cropWidth / newAspectRatio;\n\t\t}\n\t\tif ( cropHeight > imageHeight ) {\n\t\t\tcropHeight = imageHeight;\n\t\t\tcropWidth = cropHeight * newAspectRatio;\n\t\t}\n\n\t\t// Calculate X/Y vars.\n\t\tconst x = Math.max( ( imageWidth - cropWidth ) / 2, 0 );\n\t\tconst y = Math.max( ( imageHeight - cropHeight ) / 2, 0 );\n\n\t\t// Set crop object.\n\t\tconst newCrop = {\n\t\t\taspect: cropWidth / cropHeight,\n\t\t\tunit: 'px',\n\t\t\tx,\n\t\t\ty,\n\t\t\twidth: cropWidth,\n\t\t\theight: cropHeight,\n\t\t};\n\t\tif ( maximumWidth && maximumHeight ) {\n\t\t\tnewCrop.maxWidth = maximumWidth;\n\t\t\tnewCrop.maxHeight = maximumHeight;\n\t\t}\n\t\tsetCrop( newCrop );\n\t};\n\n\t/**\n\t * Fetch the full size image for cropping.\n\t */\n\tuseEffect( () => {\n\t\tasync function fetchImage() {\n\t\t\tconst response = await SendCommand(\n\t\t\t\tphotoBlock.restNonce,\n\t\t\t\t{},\n\t\t\t\t`${ photoBlock.restUrl + '/get-image' }/id=${ imageData.id }`,\n\t\t\t\t'GET'\n\t\t\t);\n\t\t\tconst { data } = response;\n\t\t\tconst aspectRatioWidthPixels = data.width;\n\t\t\tconst aspectRatioHeightPixels = data.height;\n\t\t\tsetFullsizePhoto( data );\n\n\t\t\t// Set crop value.\n\t\t\tsetShouldShowLoading( false );\n\t\t}\n\t\tfetchImage();\n\t}, [ shouldFetchImage ] );\n\n\t/* Set Center Crop when image has finished loading */\n\tuseEffect( () => {\n\t\tif ( reactCropImageRef ) {\n\t\t\t// Get the current toolbar selection.\n\t\t\tif ( 'original' === aspectRatioToolbarSelection ) {\n\t\t\t\thandleAspectRatioChange( aspectRatioWidth, aspectRatioHeight, reactCropImageRef.width, reactCropImageRef.height );\n\t\t\t} else if ( 'square' === aspectRatioToolbarSelection ) {\n\t\t\t\tconst newDimensions = CalculateDimensionsFromAspectRatio( '1:1', reactCropImageRef.width, reactCropImageRef.height );\n\t\t\t\thandleAspectRatioChange( 1, 1, newDimensions.width, newDimensions.height );\n\t\t\t} else if ( 'custom' === aspectRatioToolbarSelection ) {\n\t\t\t\t// Check if we're in ratio or pixels.\n\t\t\t\tif ( 'pixels' === getAspectRatioUnit ) {\n\t\t\t\t\tconst newDimensions = CalculateDimensionsFromAspectRatio( `${ aspectRatioWidthPixels }:${ aspectRatioHeightPixels }`, reactCropImageRef.width, reactCropImageRef.height );\n\t\t\t\t\thandleAspectRatioChange( aspectRatioWidthPixels, aspectRatioHeightPixels, newDimensions.width, newDimensions.height );\n\t\t\t\t} else {\n\t\t\t\t\tconst newDimensions = CalculateDimensionsFromAspectRatio( `${ aspectRatioWidth }:${ aspectRatioHeight }`, reactCropImageRef.width, reactCropImageRef.height );\n\t\t\t\t\thandleAspectRatioChange( aspectRatioWidth, aspectRatioHeight, newDimensions.width, newDimensions.height );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst newDimensions = CalculateDimensionsFromAspectRatio( aspectRatioToolbarSelection, reactCropImageRef.width, reactCropImageRef.height );\n\n\t\t\t\t// Aspect ratio is in format 3:2.\n\t\t\t\tconst newAspectSplit = aspectRatioToolbarSelection.split( ':' );\n\n\t\t\t\thandleAspectRatioChange( newAspectSplit[ 0 ], newAspectSplit[ 1 ], newDimensions.width, newDimensions.height );\n\t\t\t}\n\t\t}\n\t}, [ reactCropImageRef ] );\n\n\t/**\n\t * Create new crop object when aspect ratio changes.\n\t *\n\t * @param {number} newAspectRatioWidth The aspect ratio width.\n\t * @param {number} newAspectRatioHeight The aspect ratio height.\n\t * @param {number} maximumWidth The maximum width in pixels.\n\t * @param {number} maximumHeight The maximum height in pixels.\n\t */\n\tconst handleAspectRatioChange = ( newAspectRatioWidth, newAspectRatioHeight, maximumWidth = null, maximumHeight = null ) => {\n\t\t// Aspect ratio.\n\t\tlet newAspectRatio = parseInt( newAspectRatioWidth ) / parseInt( newAspectRatioHeight );\n\t\tif ( null !== maximumWidth && null !== maximumHeight ) {\n\t\t\tnewAspectRatio = maximumWidth / maximumHeight;\n\t\t\tsetCropMaxWidth( maximumWidth );\n\t\t\tsetCropMaxHeight( maximumHeight );\n\t\t} else {\n\t\t\tsetCropMaxWidth( null );\n\t\t\tsetCropMaxHeight( null );\n\t\t}\n\t\tsetCropAspectRatio( newAspectRatio );\n\t\tsetCenterCrop( reactCropImageRef.offsetWidth, reactCropImageRef?.offsetHeight, newAspectRatio, maximumWidth, maximumHeight );\n\t\tsetIsDirty( true );\n\t};\n\n\t// Set the local inspector controls.\n\tconst localInspectorControls = (\n\t\t\n\t\t\t\n\t\t\t\tCrop options here\n\t\t\t\n\t\t\n\t);\n\n\tconst localToolbar = (\n\t\t\n\t\t\t\n\t\t\t\t}\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tonClick={ () => {\n\t\t\t\t\tsetScreen( 'edit' );\n\t\t\t\t} }\n\t\t\t\tclassName=\"dlx-photo-block__toolbar-back-button\"\n\t\t\t>\n\t\t\t\t{ __( 'Back', 'photo-block' ) }\n\t\t\t\n\t\t\t\n\t\t\t\t }\n\t\t\t\t\tlabel={ __( 'Ratio', 'photo-block' ) + ' ' + aspectRatioToolbarSelection }\n\t\t\t\t\tclassName=\"dlx-photo-block__aspect-ratio-dropdown\"\n\t\t\t\t>\n\t\t\t\t\t{ ( { onClose } ) => (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\t\t\tisSelected={ 'original' === aspectRatioToolbarSelection }\n\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\tsetAspectRatioToolbarSelection( 'original' );\n\t\t\t\t\t\t\t\t\t\thandleAspectRatioChange( fullsizePhoto?.width, fullsizePhoto?.height );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tclassName=\"is-active\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( 'Original', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\t\t\tisSelected={ 'square' === aspectRatioToolbarSelection }\n\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\tsetAspectRatioToolbarSelection( 'square' );\n\t\t\t\t\t\t\t\t\t\thandleAspectRatioChange( 1, 1 );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( 'Square', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\t\t\tisSelected={ 'custom' === aspectRatioToolbarSelection }\n\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\tsetAspectRatioToolbarSelection( 'custom' );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t\tsetIsDirty( true );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( 'Custom', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\t\t\tisSelected={ '16:10' === aspectRatioToolbarSelection }\n\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\tsetAspectRatioToolbarSelection( '16:10' );\n\t\t\t\t\t\t\t\t\t\thandleAspectRatioChange( 16, 10 );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( '16:10', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\t\t\tisSelected={ '16:9' === aspectRatioToolbarSelection }\n\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\tsetAspectRatioToolbarSelection( '16:9' );\n\t\t\t\t\t\t\t\t\t\thandleAspectRatioChange( 16, 9 );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( '16:9', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\t\t\tisSelected={ '4:3' === aspectRatioToolbarSelection }\n\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\tsetAspectRatioToolbarSelection( '4:3' );\n\t\t\t\t\t\t\t\t\t\thandleAspectRatioChange( 4, 3 );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( '4:3', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\t\t\tisSelected={ '3:2' === aspectRatioToolbarSelection }\n\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\tsetAspectRatioToolbarSelection( '3:2' );\n\t\t\t\t\t\t\t\t\t\thandleAspectRatioChange( 3, 2 );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( '3:2', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\t\t\tisSelected={ '10:16' === aspectRatioToolbarSelection }\n\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\tsetAspectRatioToolbarSelection( '10:16' );\n\t\t\t\t\t\t\t\t\t\thandleAspectRatioChange( 10, 16 );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( '10:16', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\t\t\tisSelected={ '9:16' === aspectRatioToolbarSelection }\n\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\tsetAspectRatioToolbarSelection( '9:16' );\n\t\t\t\t\t\t\t\t\t\thandleAspectRatioChange( 9, 16 );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( '9:16', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\t\t\tisSelected={ '3:4' === aspectRatioToolbarSelection }\n\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\tsetAspectRatioToolbarSelection( '3:4' );\n\t\t\t\t\t\t\t\t\t\thandleAspectRatioChange( 3, 4 );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( '3:4', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t : null }\n\t\t\t\t\t\t\t\t\tisSelected={ '2:3' === aspectRatioToolbarSelection }\n\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\tsetAspectRatioToolbarSelection( '2:3' );\n\t\t\t\t\t\t\t\t\t\thandleAspectRatioChange( 2, 3 );\n\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( '2:3', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\n\t\t\t\t }\n\t\t\t\t\tlabel={ lockCrop ? __( 'UnLock Aspect Ratio', 'photo-block' ) : __( 'Lock Aspect Ratio', 'photo-block' ) }\n\t\t\t\t\tisActive={ lockCrop }\n\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\tsetLockCrop( ! lockCrop );\n\t\t\t\t\t} }\n\t\t\t\t/>\n\t\t\t\t }\n\t\t\t\t\tlabel={ __( 'Rotate Left', 'photo-block' ) }\n\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\tconst degrees = getDegrees( -90 );\n\t\t\t\t\t\tsetRotateDegrees( degrees );\n\t\t\t\t\t\trotateImage( imageData.url, degrees ).then( ( newImage ) => {\n\t\t\t\t\t\t\tsetFullsizePhoto( newImage );\n\t\t\t\t\t\t\tsetModifiedPhoto( newImage );\n\t\t\t\t\t\t} );\n\t\t\t\t\t} }\n\t\t\t\t/>\n\t\t\t\t }\n\t\t\t\t\tlabel={ __( 'Rotate Right', 'photo-block' ) }\n\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\tconst degrees = getDegrees( 90 );\n\t\t\t\t\t\tsetRotateDegrees( degrees );\n\t\t\t\t\t\trotateImage( imageData.url, degrees ).then( ( newImage ) => {\n\t\t\t\t\t\t\tsetFullsizePhoto( newImage );\n\t\t\t\t\t\t\tsetModifiedPhoto( newImage );\n\t\t\t\t\t\t} );\n\t\t\t\t\t} }\n\t\t\t\t/>\n\t\t\t\n\t\t\t{ 'custom' === aspectRatioToolbarSelection && (\n\t\t\t\t\n\t\t\t\t\t (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\thandleAspectRatioChange( values.width, values.height );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tfullsizePhoto={ fullsizePhoto }\n\t\t\t\t\t\t\t\tuniqueId={ uniqueId }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) ) }\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t) }\n\t\t\t\n\t\t\t\t : }\n\t\t\t\t\tclassName={ classnames( 'dlx-photo-block__save-button', {\n\t\t\t\t\t\t'is-saving': isSaving,\n\t\t\t\t\t} ) }\n\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\tdisabled={ ! isDiry }\n\t\t\t\t\tlabel={ __( 'Apply Crop', 'photo-block' ) }\n\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\tif ( isSaving ) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsetIsSaving( true );\n\t\t\t\t\t\tsetOriginalImageData( imageData ); // Save original image data.\n\n\t\t\t\t\t\tconst croppedImage = cropImage( crop, imageData.id, rotateDegrees );\n\t\t\t\t\t\tcroppedImage.then( ( imageResponse ) => {\n\t\t\t\t\t\t\tconst { data } = imageResponse;\n\t\t\t\t\t\t\tif ( data.success ) {\n\t\t\t\t\t\t\t\tsetImageData( data.data.attachment );\n\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\tphotoMode: 'photo',\n\t\t\t\t\t\t\t\t\timageData: data.data.attachment,\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\tsetJustCropped( true );\n\t\t\t\t\t\t\t\tsetPhotoMode( 'photo' );\n\t\t\t\t\t\t\t\tsetScreen( 'edit' );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// todo: error handling.\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} ).catch( ( error ) => {\n\t\t\t\t\t\t} ).then( () => {\n\t\t\t\t\t\t\tsetIsSaving( false );\n\t\t\t\t\t\t} );\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t{ isSaving ? __( 'Saving…', 'photo-block' ) : __( 'Apply Crop', 'photo-block' ) }\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t{ localInspectorControls }\n\t\t\t{ localToolbar }\n\t\t\t
\n\t\t\t\t{ shouldShowLoading && (\n\t\t\t\t\t\n\t\t\t\t\t\t

{ __( 'Loading Full Size Image', 'photo-block' ) }

\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t) }\n\t\t\t\t{ ! shouldShowLoading && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetCrop( newCrop );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\truleOfThirds={ true }\n\t\t\t\t\t\t\tmaxWidth={ cropMaxWidth ?? undefined }\n\t\t\t\t\t\t\tmaxHeight={ cropMaxHeight ?? undefined }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\n\t\t\n\t);\n};\nexport default CropScreen;\n","import './editor.scss';\n\nimport {\n\tuseContext,\n\tuseState,\n\tuseEffect,\n\tforwardRef,\n\tuseCallback,\n} from '@wordpress/element';\nimport {\n\tSpinner,\n\tToolbarGroup,\n\tToolbarButton,\n\tPopover,\n\tTabPanel,\n\tPanelBody,\n\tTextControl,\n\tTextareaControl,\n\tPanelRow,\n\tSelectControl,\n\tButtonGroup,\n\tButton,\n} from '@wordpress/components';\nimport {\n\tInspectorControls,\n\tBlockControls,\n\tInspectorAdvancedControls,\n\tstore,\n} from '@wordpress/block-editor';\nimport { debounce } from '@wordpress/compose';\nimport { __ } from '@wordpress/i18n';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { createBlock } from '@wordpress/blocks';\nimport {\n\tCrop,\n\tImage,\n\tAccessibility,\n\tLink,\n\tSettings,\n\tPaintbrush,\n\tLayers,\n\tUndo2,\n} from 'lucide-react';\nimport { applyFilters } from '@wordpress/hooks';\nimport classnames from 'classnames';\nimport { blockStore } from '../../store';\nimport SendCommand from '../../utils/SendCommand';\nimport MediaLink from '../../components/MediaLink';\nimport useDeviceType from '../../hooks/useDeviceType';\nimport PanelBodyControl from '../../components/PanelBody';\nimport SidebarImageInspectorControl from '../../components/SidebarImageInspectorControl';\nimport SidebarImageAdvancedInspectorControl from '../../components/SidebarImageAdvancedInspectorControl';\nimport getStyles from '../../blocks/photo-block/block-styles';\nimport GlobalStylesPicker from '../../components/GlobalStylesPicker';\nimport globalStylesStore from '../../store/global-styles';\nimport AlignmentToolbar from '../../components/AlignmentToolbar';\n\nconst EditScreen = forwardRef( ( props, ref ) => {\n\tconst { setAttributes, innerBlockProps, clientId, blockUniqueId } = props;\n\n\tconst attributes = props.attributes || {};\n\n\t// Apply filters to attributes.\n\tuseEffect( () => {\n\t\tconst newAttributes = applyFilters( 'dlx_photo_block_attributes', props.attributes, props.attributes.globalStyle, clientId, 'photo' );\n\n\t\tsetAttributes( {\n\t\t\t...props.attributes,\n\t\t\t...newAttributes,\n\t\t} );\n\t}, [] );\n\n\tconst {\n\t\tuniqueId,\n\t\timageSize,\n\t\tcssGramFilter,\n\t\tglobalStyle,\n\t} = attributes;\n\n\tconst { globalStyleCSSClassName } = useSelect( ( newSelect ) => {\n\t\tconst maybeGlobalStyle = newSelect( globalStylesStore ).getGlobalStyleBySlug( globalStyle );\n\t\tif ( Object.keys( maybeGlobalStyle ).length === 0 ) {\n\t\t\treturn '';\n\t\t}\n\t\treturn {\n\t\t\tglobalStyleCSSClassName: maybeGlobalStyle.css_class,\n\t\t};\n\t} );\n\n\tconst [ imageLoading, setImageLoading ] = useState( true );\n\tconst [ a11yButton, setA11yButton ] = useState( null );\n\tconst [ a11yPopover, setA11yPopover ] = useState( null );\n\tconst [ inspectorTab, setInspectorTab ] = useState( 'settings' ); // Can be settings|styles.\n\tconst [ imageSizeLoading, setImageSizeLoading ] = useState( false );\n\tconst [ mediaLinkPopover, setMediaLinkPopover ] = useState( false );\n\tconst [ mediaLinkRef, setMediaLinkRef ] = useState( null );\n\tconst [ isSavingAlt, setIsSavingAlt ] = useState( false );\n\tconst [ isSavingTitle, setIsSavingTitle ] = useState( false );\n\n\tconst {\n\t\tsetScreen,\n\t\tsetImageData,\n\t\tsetJustCropped,\n\t} = useDispatch( blockStore( blockUniqueId ) );\n\n\tconst { createSuccessNotice, createInfoNotice } = useDispatch( 'core/notices' );\n\n\t// Get current block data.\n\tconst {\n\t\timageData,\n\t\tcaptionPosition,\n\t\tphotoMode,\n\t\toriginalImageData,\n\t\tisJustCropped,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\timageData: select( blockStore( blockUniqueId ) ).getImageData(),\n\t\t\tcaptionPosition: select( blockStore( blockUniqueId ) ).getCaptionPosition(),\n\t\t\tphotoMode: select( blockStore( blockUniqueId ) ).getPhotoMode(),\n\t\t\toriginalImageData: select( blockStore( blockUniqueId ) ).getOriginalImageData(),\n\t\t\tisJustCropped: select( blockStore( blockUniqueId ) ).getJustCropped(),\n\t\t};\n\t} );\n\n\t// Get global style data.\n\tconst {\n\t\thasGlobalStyle,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\thasGlobalStyle: select( globalStylesStore ).hasGlobalStyle,\n\t\t};\n\t} );\n\n\tconst { url, id, width, height } = imageData;\n\n\tconst { insertBlock, updateBlockAttributes } = useDispatch( store ); // For setting the preset defaults.\n\n\tconst [ deviceType, setDeviceType ] = useDeviceType( 'Desktop' );\n\n\t// Setup useEffect to update image dimensions if empty.\n\tuseEffect( () => {\n\t\tconst imageUrl = attributes.imageData?.url || '';\n\t\tif ( '' !== imageUrl ) {\n\t\t\tsetImageData( attributes.imageData );\n\t\t\tsetImageLoading( false );\n\t\t}\n\t}, [] );\n\n\t/**\n\t * Get image whenever size changes.\n\t */\n\tuseEffect( () => {\n\t\tif ( 'photo' === photoMode ) {\n\t\t\tgetImageFromSize( imageSize );\n\t\t}\n\t}, [ imageSize ] );\n\n\t/**\n\t * Retrieve an image based on size from REST API.\n\t *\n\t * @param {string} size Image size.\n\t */\n\tconst getImageFromSize = async( size ) => {\n\t\tsetImageSizeLoading( true );\n\t\tawait SendCommand(\n\t\t\tphotoBlock.restNonce,\n\t\t\t{},\n\t\t\t`${ photoBlock.restUrl + '/get-image-by-size' }/id=${ imageData.id\n\t\t\t}/size=${ size }`,\n\t\t\t'GET'\n\t\t)\n\t\t\t.then( ( response ) => {\n\t\t\t\tsetImageData( { ...imageData, ...response.data } );\n\t\t\t\tsetAttributes( { imageData: { ...imageData, ...response.data } } );\n\t\t\t} )\n\t\t\t.catch( ( error ) => {\n\t\t\t\t// todo: error checking/display.\n\t\t\t\tconsole.error( error );\n\t\t\t} )\n\t\t\t.then( () => {\n\t\t\t\tsetImageSizeLoading( false );\n\t\t\t} );\n\t};\n\n\t/**\n\t * Handle changes to the alt text.\n\t *\n\t * @param {string} altText The alt text.\n\t */\n\tconst handleAltChange = useCallback( debounce( async( altText ) => {\n\t\t// Ignore manual mode, which is direct URL input. Nothing to save to.\n\t\tif ( 'manual' === photoMode || 'url' === photoMode ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Set snackbar notice.\n\t\tcreateInfoNotice( __( 'Saving alt text…', 'photo-block' ), {\n\t\t\ttype: 'snackbar',\n\t\t} );\n\n\t\t// Commence saving.\n\t\tsetIsSavingAlt( true );\n\t\tawait SendCommand(\n\t\t\tphotoBlock.restNonce,\n\t\t\t{\n\t\t\t\timageId: imageData.id,\n\t\t\t\taltText,\n\t\t\t},\n\t\t\t`${ photoBlock.restUrl + '/image/save-alt' }`,\n\t\t\t'POST'\n\t\t)\n\t\t\t.then( ( response ) => {\n\t\t\t\tcreateSuccessNotice( __( 'Alt text saved.', 'photo-block' ), {\n\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t} );\n\t\t\t} )\n\t\t\t.catch( ( error ) => {\n\t\t\t\t// todo: error checking/display.\n\t\t\t\tconsole.error( error );\n\t\t\t} )\n\t\t\t.then( () => {\n\t\t\t\tsetIsSavingAlt( false );\n\t\t\t} );\n\t}, 1000 ), [] );\n\n\t/**\n\t * Handle changes to the title text.\n\t *\n\t * @param {string} titleText The title text.\n\t */\n\tconst handleTitleChange = useCallback( debounce( async( titleText ) => {\n\t\t// Ignore manual mode, which is direct URL input. Nothing to save to.\n\t\tif ( 'manual' === photoMode || 'url' === photoMode ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Set snackbar notice.\n\t\tcreateInfoNotice( __( 'Saving title text…', 'photo-block' ), {\n\t\t\ttype: 'snackbar',\n\t\t} );\n\n\t\t// Commence saving.\n\t\tsetIsSavingTitle( true );\n\t\tawait SendCommand(\n\t\t\tphotoBlock.restNonce,\n\t\t\t{\n\t\t\t\timageId: imageData.id,\n\t\t\t\ttitleText,\n\t\t\t},\n\t\t\t`${ photoBlock.restUrl + '/image/save-title' }`,\n\t\t\t'POST'\n\t\t)\n\t\t\t.then( ( response ) => {\n\t\t\t\tcreateSuccessNotice( __( 'Title text saved.', 'photo-block' ), {\n\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t} );\n\t\t\t} )\n\t\t\t.catch( ( error ) => {\n\t\t\t\t// todo: error checking/display.\n\t\t\t\tconsole.error( error );\n\t\t\t} )\n\t\t\t.then( () => {\n\t\t\t\tsetIsSavingTitle( false );\n\t\t\t} );\n\t}, 1500 ), [] );\n\n\t// Image Sizes.\n\tconst imageSizeOptions = [];\n\tfor ( const key in photoBlock.imageSizes ) {\n\t\tconst size = photoBlock.imageSizes[ key ];\n\t\timageSizeOptions.push( { value: key, label: size.label } );\n\t}\n\n\t// Set settings inspector Controls.\n\tconst settingsInspectorControls = (\n\t\t<>\n\t\t\t\n\t\t\t }\n\t\t\t\tclassName=\"photo-block__inspector-panel\"\n\t\t\t\tid=\"photo-block__photo-settings\"\n\t\t\t\tuniqueId={ uniqueId }\n\t\t\t\tinitialOpen={ true }\n\t\t\t\tscrollAfterOpen={ false }\n\t\t\t>\n\t\t\t\t<>\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( { imageData: { ...imageData, title } } );\n\t\t\t\t\t\t\tsetImageData( { ...imageData, title } );\n\t\t\t\t\t\t\thandleTitleChange( title );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tclassName={\n\t\t\t\t\t\t\tclassnames( 'photo-block__title-text',\n\t\t\t\t\t\t\t\t{ 'is-saving': isSavingTitle }\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tplaceholder={ __(\n\t\t\t\t\t\t\t'Please enter a title for this photo.',\n\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t) }\n\t\t\t\t\t/>\n\t\t\t\t\t{ isSavingTitle && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t
{ __( 'Saving title text…', 'photo-block' ) }
\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\n\t\t\t\t<>\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( { imageData: { ...imageData, alt } } );\n\t\t\t\t\t\t\tsetImageData( { ...imageData, alt } );\n\t\t\t\t\t\t\thandleAltChange( alt );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tclassName={\n\t\t\t\t\t\t\tclassnames( 'photo-block__alt-text',\n\t\t\t\t\t\t\t\t{ 'is-saving': isSavingAlt }\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tplaceholder={ __( 'Please describe this photo.', 'photo-block' ) }\n\t\t\t\t\t\thelp={ __(\n\t\t\t\t\t\t\t'Alt text provides a description of the photo for screen readers and search engines.',\n\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t) }\n\t\t\t\t\t/>\n\t\t\t\t\t{ isSavingAlt && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t
{ __( 'Saving alt text…', 'photo-block' ) }
\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tif ( hasGlobalStyle( globalStyle ) ) {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { imageSizeOverride: true } );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tsetAttributes( { imageSize: size } );\n\t\t\t\t\t\t\t\t\tgetImageFromSize( size );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\toptions={ imageSizeOptions }\n\t\t\t\t\t\t\t\tdisabled={ 'photo' !== photoMode }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t{ imageSizeLoading && (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t
{ __( 'Loading image size…', 'photo-block' ) }
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t}\n\t\t\t\n\t\t\n\t);\n\n\tconst interfaceTabs = (\n\t\t<>\n\t\t\t{ settingsInspectorControls }\n\t\t\t\n\t\t\n\t);\n\n\t// Set the local inspector controls.\n\tconst localInspectorControls = (\n\t\t{ interfaceTabs }\n\t);\n\n\t// Set the advanced inspector controls.\n\tconst advancedInspectorControls = (\n\t\t<>\n\t\t\t\n\t\t\n\t);\n\n\tconst localToolbar = (\n\t\t<>\n\t\t\t\n\t\t\t\t{\n\t\t\t\t\t! hasGlobalStyle( globalStyle ) && (\n\t\t\t\t\t\t\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\tisJustCropped && (\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\tlabel={ __( 'Undo Crop', 'photo-block' ) }\n\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\tsetAttributes( { imageData: originalImageData } );\n\t\t\t\t\t\t\t\t\tsetImageData( originalImageData );\n\t\t\t\t\t\t\t\t\tsetScreen( 'edit' );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Undo Crop', 'photo-block' ) }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\t }\n\t\t\t\t\t\tlabel={ __( 'Crop', 'photo-block' ) }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\tsetJustCropped( false );\n\t\t\t\t\t\t\tsetScreen( 'crop' );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tdisabled={ 'photo' !== photoMode }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Crop', 'photo-block' ) }\n\t\t\t\t\t\n\t\t\t\t\t{ /* }\n\t\t\t\t\t\tlabel={ __( 'Effects', 'photo-block' ) }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\tsetScreen( 'effects' );\n\t\t\t\t\t\t} }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Effects', 'photo-block' ) }\n\t\t\t\t\t */ }\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t }\n\t\t\t\t\t\tlabel={ __( 'Replace Photo', 'photo-block' ) }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\tsetScreen( 'initial' );\n\t\t\t\t\t\t\tsetJustCropped( false );\n\t\t\t\t\t\t} }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Replace', 'photo-block' ) }\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t }\n\t\t\t\t\t\tlabel={ __( 'Set Accessibility Options', 'photo-block' ) }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\tsetA11yPopover( ! a11yPopover );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tref={ setA11yButton }\n\t\t\t\t\t/>\n\t\t\t\t\t{\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\tlabel={ __( 'Set Link Options', 'photo-block' ) }\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tsetMediaLinkPopover( ! mediaLinkPopover );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tref={ setMediaLinkRef }\n\t\t\t\t\t\t/>\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t{ mediaLinkPopover && (\n\t\t\t\t {\n\t\t\t\t\t\tsetMediaLinkPopover( false );\n\t\t\t\t\t} }\n\t\t\t\t/>\n\t\t\t) }\n\t\t\t{ a11yPopover && (\n\t\t\t\t {\n\t\t\t\t\t\tsetA11yPopover( false );\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t
\n\t\t\t\t\t\t

{ __( 'Accessibility Options', 'photo-block' ) }

\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { imageData: { ...imageData, title } } );\n\t\t\t\t\t\t\t\tsetImageData( { ...imageData, title } );\n\t\t\t\t\t\t\t\thandleTitleChange( title );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tplaceholder={ __(\n\t\t\t\t\t\t\t\t'Please enter a title for this photo.',\n\t\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\thelp={ __(\n\t\t\t\t\t\t\t\t'The title is used as a tooltip when hovering over the image.',\n\t\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{ isSavingTitle && (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t
{ __( 'Saving title text…', 'photo-block' ) }
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) }\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { imageData: { ...imageData, alt } } );\n\t\t\t\t\t\t\t\tsetImageData( { ...imageData, alt } );\n\t\t\t\t\t\t\t\thandleAltChange( alt );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tplaceholder={ __( 'Please describe this image.', 'photo-block' ) }\n\t\t\t\t\t\t\thelp={ __(\n\t\t\t\t\t\t\t\t'Alt text provides a description of the image for screen readers and search engines.',\n\t\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{ ( isSavingAlt ) && (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t
{ __( 'Saving alt text…', 'photo-block' ) }
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) }\n\t\t\t\t\t
\n\t\t\t\t\n\t\t\t) }\n\t\t\n\t);\n\n\tlet styles = '';\n\tif ( ! hasGlobalStyle( globalStyle ) ) {\n\t\tstyles = getStyles( attributes, deviceType, uniqueId );\n\t}\n\n\tconst photoImg = (\n\t\t {\n\t\t\t\tsetImageLoading( false );\n\t\t\t} }\n\t\t\tref={ ref }\n\t\t\tstyle={ {\n\t\t\t\tmaxWidth: `100%`,\n\t\t\t\theight: 'auto',\n\t\t\t} }\n\t\t\twidth={ imageData.width }\n\t\t\theight={ imageData.height }\n\t\t/>\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t{ localInspectorControls }\n\t\t\t{ localToolbar }\n\t\t\t{\n\t\t\t\t\n\t\t\t\t\t{ advancedInspectorControls }\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t
\n\t\t\t\t{ ( imageLoading ) && (\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t) }\n\t\t\t\t
\n\t\t\t\t\t{ 'top' === captionPosition && (\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{ photoImg }\n\t\t\t\t\t\t\t{ 'overlay' === captionPosition && (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t{ 'bottom' === captionPosition && (\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n} );\nexport default EditScreen;\n","import './editor.scss';\n\nimport {\n\tuseState,\n\tuseEffect,\n\tforwardRef,\n} from '@wordpress/element';\nimport {\n\tSpinner,\n\tToolbarGroup,\n\tToolbarButton,\n\tToggleControl,\n\tPopover,\n\tTextControl,\n\tPanelRow,\n\tPanelBody,\n\tSelectControl,\n\tButton,\n} from '@wordpress/components';\nimport { InspectorControls, InspectorAdvancedControls, BlockControls, MediaUpload, MediaUploadCheck } from '@wordpress/block-editor';\nimport { __ } from '@wordpress/i18n';\nimport {\n\tImage,\n\tLink,\n\tLayers,\n} from 'lucide-react';\nimport classnames from 'classnames';\nimport hexToRgba from 'hex-to-rgba';\nimport { useDispatch, useSelect } from '@wordpress/data';\n\nimport SendCommand from '../../utils/SendCommand';\nimport useDeviceType from '../../hooks/useDeviceType';\nimport PanelBodyControl from '../../components/PanelBody';\nimport SidebarImageInspectorControl from '../../components/SidebarImageInspectorControl';\nimport SidebarImageAdvancedInspectorControl from '../../components/SidebarImageAdvancedInspectorControl';\nimport GlobalStyles from '../../components/GlobalStyles';\nimport getStyles from '../../blocks/photo-block/block-styles';\nimport { blockStore } from '../../store';\nimport PhotoBlockIcon from '../../components/Icons/PhotoBlockIcon';\nimport GlobalStylesPicker from '../../components/GlobalStylesPicker';\nimport globalStylesStore from '../../store/global-styles';\nimport AlignmentToolbar from '../../components/AlignmentToolbar';\n\nconst dataImages = [];\n\n/**\n * Image size.\n */\nconst imageSizeOptions = [];\nfor ( const key in photoBlock.imageSizes ) {\n\tconst size = photoBlock.imageSizes[ key ];\n\timageSizeOptions.push( { value: key, label: size.label } );\n}\n\nconst FeaturedImageScreen = forwardRef( ( props, ref ) => {\n\tconst { attributes, setAttributes, innerBlockProps, context, blockUniqueId, clientId } = props;\n\tconst { postId } = context;\n\tconst [ mediaLinkPopover, setMediaLinkPopover ] = useState( false );\n\tconst [ mediaLinkRef, setMediaLinkRef ] = useState( null );\n\tconst [ imageLoading, setImageLoading ] = useState( true );\n\tconst [ hasImage, setHasImage ] = useState( false );\n\tconst {\n\t\tuniqueId,\n\t\tdataFallbackImage,\n\t\tdataHasFallbackImage,\n\t\tdataFallbackImageSize,\n\t\tdataMediaLinkSource,\n\t\tdataMediaLinkNewTab,\n\t\timageSize,\n\t\tphotoOpacity,\n\t\tphotoBlur,\n\t\tphotoDropShadow,\n\t\tphotoBackgroundColor,\n\t\tcssGramFilter,\n\t\tlightboxEnabled,\n\t\tlightboxShowCaption,\n\t} = attributes;\n\n\tconst {\n\t\tsetImageData,\n\t\tsetScreen,\n\t} = useDispatch( blockStore( blockUniqueId ) );\n\n\t// Get current block data.\n\tconst {\n\t\tcaptionPosition,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\timageData: select( blockStore( blockUniqueId ) ).getImageData(),\n\t\t\tcaptionPosition: select( blockStore( blockUniqueId ) ).getCaptionPosition(),\n\t\t};\n\t} );\n\n\tconst {\n\t\thasGlobalStyle,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\thasGlobalStyle: select( globalStylesStore ).hasGlobalStyle,\n\t\t};\n\t} );\n\n\tconst [ deviceType, setDeviceType ] = useDeviceType( 'Desktop' );\n\n\t/**\n\t * Get the image from REST.\n\t */\n\tconst getImage = () => {\n\t\tsetImageLoading( true );\n\t\tSendCommand(\n\t\t\tphotoBlock.restNonce,\n\t\t\t{\n\t\t\t\tpostId,\n\t\t\t\tdataImageSize: imageSize,\n\t\t\t\tdataFallbackImage,\n\t\t\t\tdataHasFallbackImage,\n\t\t\t\tdataFallbackImageSize,\n\t\t\t},\n\t\t\t`${ photoBlock.restUrl + '/get-featured-image-by-post-id' }`,\n\t\t\t'POST'\n\t\t)\n\t\t\t.then( ( response ) => {\n\t\t\t\tconst { data } = response;\n\n\t\t\t\t// Check if data is string or object.\n\t\t\t\tif ( 'string' === typeof data ) {\n\t\t\t\t\tif ( '' === data ) {\n\t\t\t\t\t\t// No image.\n\t\t\t\t\t\tsetHasImage( false );\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// If object, set preview image.\n\t\t\t\tif ( data.url ) {\n\t\t\t\t\tsetHasImage( true );\n\t\t\t\t\tdataImages[ postId ] = data;\n\t\t\t\t}\n\t\t\t} )\n\t\t\t.catch( ( error ) => {\n\t\t\t\t// todo: error checking/display.\n\t\t\t} )\n\t\t\t.then( () => {\n\t\t\t\tsetImageLoading( false );\n\t\t\t} );\n\t};\n\n\t/**\n\t * Set up effect for loading the image initially using data.\n\t */\n\tuseEffect( () => {\n\t\t// Post ID may not be valid when loaded in.\n\t\tif ( 0 === postId ) {\n\t\t\treturn;\n\t\t}\n\t\t// Check for array key in stored data.\n\t\tif ( 'undefined' !== dataImages[ postId ] && 'object' === typeof dataImages[ postId ] ) {\n\t\t\tsetHasImage( true );\n\t\t\tsetImageLoading( false );\n\t\t\treturn;\n\t\t}\n\t\tsetImageLoading( true );\n\t\tgetImage();\n\t}, [ postId ] );\n\n\t/**\n\t * Refresh the image when the image size changes or fallback attributes change.\n\t */\n\tuseEffect( () => {\n\t\tif ( ! imageLoading ) {\n\t\t\tgetImage();\n\t\t}\n\t}, [ imageSize, dataFallbackImage, dataFallbackImageSize, dataHasFallbackImage ] );\n\n\t// Set settings inspector Controls.\n\tconst settingsInspectorControls = (\n\t\t<>\n\t\t\t\n\t\t\t{\n\t\t\t\t<>\n\t\t\t\t\t }\n\t\t\t\t\t\tclassName=\"photo-block__inspector-panel\"\n\t\t\t\t\t\tid=\"photo-block__photo-settings\"\n\t\t\t\t\t\tuniqueId={ uniqueId }\n\t\t\t\t\t\tinitialOpen={ true }\n\t\t\t\t\t\tscrollAfterOpen={ false }\n\t\t\t\t\t>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tif ( hasGlobalStyle( attributes.globalStyle ) ) {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { imageSizeOverride: true } );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tsetAttributes( { imageSize: size } );\n\n\t\t\t\t\t\t\t\t\t// Also set fallback image size.\n\t\t\t\t\t\t\t\t\tsetAttributes( { dataFallbackImageSize: size } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\toptions={ imageSizeOptions }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t{ ! hasGlobalStyle( attributes.globalStyle ) && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\ttitle={ __( 'Fallback Image', 'photo-block' ) }\n\t\t\t\t\t\t\t\tinitialOpen={ true }\n\t\t\t\t\t\t\t\tclassName=\"photo-block__inspector-panel\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { dataHasFallbackImage: value } );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{ dataHasFallbackImage && (\n\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { dataFallbackImageSize: size } );\n\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\toptions={ imageSizeOptions }\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\topen();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ __( 'Set Fallback Image', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t\t\t\tonSelect={ ( media ) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst selectedMedia = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tid: media.id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\turl: media.sizes?.large?.url ?? media.sizes.full.url,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmedia.sizes?.large?.width ?? media.sizes.full.width,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmedia.sizes?.large?.height ?? media.sizes.full.height,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\talt: media.alt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcaption: media.caption,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdataFallbackImage: selectedMedia,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t{ dataFallbackImage?.url && (\n\t\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { dataFallbackImage: {} } );\n\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{ __( 'Remove Fallback Image', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\n\t\t\t}\n\n\t\t\n\t);\n\n\t// Set the local inspector controls.\n\tconst localInspectorControls = (\n\t\t\n\t\t\t{ settingsInspectorControls }\n\t\t\t<>\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n\n\t// Set the advanced inspector controls.\n\tconst advancedInspectorControls = ( );\n\n\tconst localToolbar = (\n\t\t<>\n\t\t\t\n\t\t\t\t{\n\t\t\t\t\t! hasGlobalStyle( attributes.globalStyle ) && (\n\t\t\t\t\t\t\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t }\n\t\t\t\t\t\tlabel={ __( 'Set Link Options', 'photo-block' ) }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\tsetMediaLinkPopover( ! mediaLinkPopover );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tref={ setMediaLinkRef }\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\n\t\t\t{ mediaLinkPopover && (\n\t\t\t\t {\n\t\t\t\t\t\tsetMediaLinkPopover( false );\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t
\n\t\t\t\t\t\t

{ __( 'Select a Link Source', 'photo-block' ) }

\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { dataMediaLinkSource: value } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t{ 'imageData' === dataMediaLinkSource && (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { lightboxEnabled: value } );\n\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\thelp={ __( 'Popup the full size photo in a lightbox when clicked.', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{ lightboxEnabled && (\n\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { lightboxShowCaption: value } );\n\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) }\n\t\t\t\t\t\t{ 'none' !== dataMediaLinkSource && (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tif ( '' === attributes.dataMediaLinkRel && value ) {\n\t\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { dataMediaLinkRel: 'noopener noreferrer' } );\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif ( 'noopener noreferrer' === attributes.dataMediaLinkRel && ! value ) {\n\t\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { dataMediaLinkRel: '' } );\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { dataMediaLinkNewTab: value } );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { dataMediaLinkRel: value } );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thelp={ __( 'The link rel attribute is for SEO and accessibility purposes. It is used to describe the relationship between the current document and the linked document.', 'photo-block' ) }\n\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tsetAttributes( { dataMediaLinkClass: value } );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thelp={ __( 'Add a CSS class to the link for styling purposes.', 'photo-block' ) }\n\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) }\n\t\t\t\t\t
\n\t\t\t\t\n\t\t\t) }\n\t\t\n\t);\n\n\tconst styles = `\n\t\t#${ uniqueId } .dlx-photo-block__screen-edit-image {\n\t\t\tbackground: ${ photoBackgroundColor };\n\t\t}\n\t\t#${ uniqueId } img {\n\t\t\topacity: ${ photoOpacity };\n\t\t\t${ photoBlur ? `filter: blur(${ photoBlur }px);` : '' }\n\t\t}\n\t`;\n\tconst imageStyles = getStyles( attributes, deviceType, uniqueId );\n\treturn (\n\t\t<>\n\t\t\t{ localInspectorControls }\n\t\t\t{\n\t\t\t\t! hasGlobalStyle( attributes.globalStyle ) && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{ advancedInspectorControls }\n\t\t\t\t\t\t\n\t\t\t\t\t\t{ localToolbar }\n\t\t\t\t\t\n\t\t\t\t)\n\t\t\t}\n\t\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t{ ( 'top' === captionPosition && ! imageLoading ) && (\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\t
\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\timageLoading && (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t{ __( 'Loading Featured Image…', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t( ! imageLoading && hasImage && typeof dataImages[ postId ] !== 'undefined' ) && (\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{ ( 'overlay' === captionPosition && ! imageLoading && hasImage ) && (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t
\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t( ! imageLoading && ( ! hasImage || typeof dataImages[ postId ] === 'undefined' ) ) && (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\tImage not found.\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\t\t\t\t\t
\n\t\t\t\t\t{ ( 'bottom' === captionPosition && ! imageLoading ) && (\n\t\t\t\t\t\t\n\t\t\t\t\t) }\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n} );\n\nexport default FeaturedImageScreen;\n","/**\n * This is the initial screen of the block. It is the first screen that the user sees when they add the block to the editor.\n */\n\nimport { useContext } from '@wordpress/element';\nimport {\n\tInspectorControls,\n} from '@wordpress/block-editor';\nimport {\n\tSpinner,\n\tPanelBody,\n\tPanelRow,\n\tRangeControl,\n\tTextControl,\n\tTextareaControl,\n\tButtonGroup,\n\tButton,\n\tToggleControl,\n\tToolbar,\n\tToolbarItem,\n\tToolbarButton,\n\tToolbarGroup,\n\tToolbarDropdownMenu,\n\tPopover,\n\tPlaceHolder,\n\tMenuGroup,\n\tMenuItem,\n} from '@wordpress/components';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport UploadTypes from '../../components/UploadTypes';\nimport UploadTarget from '../../components/UploadTarget';\nimport UploadStatus from '../../components/UploadStatus';\nimport { blockStore } from '../../store';\n\n/**\n * InitialScreen component.\n *\n * @param {Object} props - Component props.\n * @return {Function} Component.\n */\nconst InitialScreen = ( props ) => {\n\tconst { blockUniqueId, clientId } = props;\n\tconst {\n\t\tisUploading,\n\t\tisProcessingUpload,\n\t\tisUploadError,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\tisUploading: select( blockStore( blockUniqueId ) ).isUploading(),\n\t\t\tisProcessingUpload: select( blockStore( blockUniqueId ) ).isProcessingUpload(),\n\t\t\tisUploadError: select( blockStore( blockUniqueId ) ).isUploadError(),\n\t\t};\n\t} );\n\n\t// Set the local inspector controls.\n\tconst localInspectorControls = (\n\t\t\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t{ localInspectorControls }\n\t\t\t
\n\t\t\t\t{ ( ! isUploading && ! isProcessingUpload && ! isUploadError ) && (\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\t{ ( isUploading || isProcessingUpload || isUploadError ) && (\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n};\nexport default InitialScreen;\n","/**\n * This is the loading screen of the block.\n * It has no interface, and it's an initializer of sorts.\n */\n\nimport { useState, useEffect } from 'react';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { applyFilters, doAction } from '@wordpress/hooks';\nimport { blockStore } from '../../store';\n\n// Get screens.\nimport InitialScreen from '../../screens/Initial';\n//import EffectsScreen from '../../screens/Effects';\nimport EditScreen from '../../screens/Edit';\nimport CropScreen from '../../screens/Crop';\n\n/**\n * InitialScreen component.\n *\n * @param {Object} props - Component props.\n * @return {Function} Component.\n */\nconst LoadingScreen = ( props ) => {\n\tconst [ isLoading, setIsLoading ] = useState( true );\n\n\tconst { blockUniqueId } = props;\n\n\tconst {\n\t\tsetImageData,\n\t\tsetFilepondInstance,\n\t\tsetIsUploading,\n\t\tsetIsProcessingUpload,\n\t\tsetPhotoMode,\n\t\tsetIsUploadError,\n\t\tsetInQueryLoop,\n\t\tsetScreen,\n\t\tsetDataScreen, /* can be 'initial' or 'edit' */\n\t} = useDispatch( blockStore( blockUniqueId ) );\n\n\t// Get current block data.\n\tconst {\n\t\tcurrentScreen,\n\t\tisUploading,\n\t\tisProcessingUpload,\n\t\tisUploadError,\n\t\tfilepondInstance,\n\t\thasCaption,\n\t\tcaptionPosition,\n\t\tinQueryLoop,\n\t\tphotoMode,\n\t\tdataScreen,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\tcurrentScreen: select( blockStore( blockUniqueId ) ).getCurrentScreen(),\n\t\t\tisUploading: select( blockStore( blockUniqueId ) ).isUploading(),\n\t\t\tisProcessingUpload: select( blockStore( blockUniqueId ) ).isProcessingUpload(),\n\t\t\tisUploadError: select( blockStore( blockUniqueId ) ).isUploadError(),\n\t\t\tfilepondInstance: select( blockStore( blockUniqueId ) ).getFilepondInstance(),\n\t\t\thasCaption: select( blockStore( blockUniqueId ) ).hasCaption(),\n\t\t\tcaptionPosition: select( blockStore( blockUniqueId ) ).getCaptionPosition(),\n\t\t\tinQueryLoop: select( blockStore( blockUniqueId ) ).inQueryLoop(),\n\t\t\tphotoMode: select( blockStore( blockUniqueId ) ).getPhotoMode(),\n\t\t\tblockUniqueId: select( blockStore( blockUniqueId ) ).getBlockUniqueId(),\n\t\t\tdataScreen: select( blockStore( blockUniqueId ) ).getDataScreen(),\n\t\t};\n\t} );\n\n\tconst {\n\t\tcontext,\n\t\tattributes,\n\t\tsetAttributes,\n\t} = props;\n\n\t/**\n\t * Set up the initial screen.\n\t */\n\tuseEffect( () => {\n\t\t// Determine if we're in a query loop based on context.\n\t\tconst { query, queryId, postId } = context;\n\n\t\t// If vars aren't undefined or null, set data screen as we're in a query loop.\n\t\tif ( typeof query !== 'undefined' && typeof postId !== 'undefined' ) {\n\t\t\tif ( 0 !== postId && 'none' !== query && 'undefined' !== query ) {\n\t\t\t\tsetInQueryLoop( true );\n\t\t\t\t/**\n\t\t\t\t * Filter: Determine if we're in the premium version of the plugin.\n\t\t\t\t */\n\t\t\t\tconst isPremium = applyFilters( 'dlx_photo_block_is_premium', false );\n\t\t\t\tif ( ! isPremium ) {\n\t\t\t\t\t// Check if attribute imageData is found, and if so, set the image data.\n\t\t\t\t\tif ( attributes.imageData.id !== 0 && attributes.imageData.id !== '' ) {\n\t\t\t\t\t\tsetImageData( attributes.imageData );\n\t\t\t\t\t}\n\t\t\t\t\tsetAttributes( { photoMode: 'featuredImage' } );\n\t\t\t\t\tsetPhotoMode( 'featurdImage' );\n\t\t\t\t\tsetDataScreen( 'featuredImage' );\n\t\t\t\t\tsetScreen( 'featuredImage' );\n\n\t\t\t\t\t\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Action: Load the initial screen if in a data request.\n\t\t\t\t *\n\t\t\t\t * @param {Object} props - The block props.\n\t\t\t\t * @param {boolean} isPremium - Whether or not the user is using the premium version.\n\t\t\t\t * @param {Object} query - The query object.\n\t\t\t\t */\n\t\t\t\tdoAction(\n\t\t\t\t\t'dlx_photo_block_loading_screen_data_premium',\n\t\t\t\t\t{\n\t\t\t\t\t\t...props,\n\t\t\t\t\t\tisPremium,\n\t\t\t\t\t\tquery,\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// Set the photo mode.\n\t\tsetPhotoMode( attributes.photoMode );\n\t\t// Load the appropriate screen. The main screen logic is in blocks/photo-block/edit.js.\n\t\tswitch ( attributes.photoMode ) {\n\t\t\tcase 'none':\n\t\t\t\tsetScreen( 'initial' );\n\t\t\t\tbreak;\n\t\t\tcase 'url':\n\t\t\tcase 'image':\n\t\t\tcase 'photo':\n\t\t\t\tsetScreen( 'edit' );\n\t\t\t\tbreak;\n\t\t\tcase 'featuredImage':\n\t\t\t\tsetScreen( 'featuredImage' );\n\t\t\t\tbreak;\n\t\t\tcase 'data':\n\t\t\t\t/**\n\t\t\t\t * Action: Set the initial screen params if data is the mode and not in a query loop\n\t\t\t\t *\n\t\t\t\t * @param {Object} props - The block props.\n\t\t\t\t */\n\t\t\t\tdoAction(\n\t\t\t\t\t'dlx_photo_block_loading_screen_data',\n\t\t\t\t\t{\n\t\t\t\t\t\t...props,\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsetScreen( 'initial' );\n\t\t\t\tbreak;\n\t\t}\n\t}, [] );\n\n\treturn null;\n};\nexport default LoadingScreen;\n","\nimport { createReduxStore, register } from '@wordpress/data';\nconst DEFAULT_STATE = {\n\tglobalStyles: photoBlock?.globalStyles || [],\n\tglobalStyleRefresh: null,\n};\n\nconst actions = {\n\tsetGlobalStyle( globalStyle, slug ) {\n\t\treturn {\n\t\t\ttype: 'SET_GLOBAL_STYLE',\n\t\t\tglobalStyle,\n\t\t\tslug,\n\t\t};\n\t},\n\tremoveGlobalStyle( slug ) {\n\t\treturn {\n\t\t\ttype: 'REMOVE_GLOBAL_STYLE',\n\t\t\tslug,\n\t\t};\n\t},\n\tsetGlobalStyleRefresh( refresh ) {\n\t\treturn {\n\t\t\ttype: 'SET_GLOBAL_STYLE_REFRESH',\n\t\t\trefresh,\n\t\t};\n\t},\n};\n\nconst globalStylesStore = createReduxStore( 'dlxplugins/photo-block/global-styles', {\n\treducer( state = DEFAULT_STATE, action ) {\n\t\tswitch ( action.type ) {\n\t\t\tcase 'SET_GLOBAL_STYLE':\n\t\t\t\tconst slug = action.slug;\n\n\t\t\t\t// Global styles are stored in [slug] => attributes format.\n\t\t\t\tconst globalStyles = {\n\t\t\t\t\t...state.globalStyles,\n\t\t\t\t\t[ slug ]: action.globalStyle,\n\t\t\t\t};\n\t\t\t\treturn {\n\t\t\t\t\t...state,\n\t\t\t\t\tglobalStyles,\n\t\t\t\t};\n\t\t\tcase 'REMOVE_GLOBAL_STYLE':\n\t\t\t\tconst newGlobalStyles = { ...state.globalStyles };\n\t\t\t\tdelete newGlobalStyles[ action.slug ];\n\t\t\t\treturn {\n\t\t\t\t\t...state,\n\t\t\t\t\tglobalStyles: newGlobalStyles,\n\t\t\t\t};\n\t\t\tcase 'SET_GLOBAL_STYLE_REFRESH':\n\t\t\t\treturn {\n\t\t\t\t\t...state,\n\t\t\t\t\tglobalStyleRefresh: action.refresh,\n\t\t\t\t};\n\t\t\tdefault:\n\t\t\t\treturn state;\n\t\t}\n\t},\n\tactions,\n\tselectors: {\n\t\tgetGlobalStyleBySlug( state, slug ) {\n\t\t\treturn state.globalStyles[ slug ] || {};\n\t\t},\n\t\tgetGlobalStyles( state ) {\n\t\t\treturn state.globalStyles;\n\t\t},\n\t\thasGlobalStyle( state, slug ) {\n\t\t\tif ( 'none' === slug || ! slug ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn Object.keys( state.globalStyles ).includes( slug );\n\t\t},\n\t\tgetGlobalStyleRefresh( state ) {\n\t\t\treturn state.globalStyleRefresh;\n\t\t},\n\t},\n} );\n\nregister( globalStylesStore );\n\nexport default globalStylesStore;\n","\nimport { createReduxStore, register, select } from '@wordpress/data';\nconst DEFAULT_STATE = {\n\toriginalImageData: {\n\t\tid: 0,\n\t\turl: '',\n\t\talt: '',\n\t\tfull: '',\n\t\twidth: '',\n\t\theight: '',\n\t\tattachment_link: '',\n\t\tcaption: '',\n\t},\n\timageData: {\n\t\tid: 0,\n\t\turl: '',\n\t\talt: '',\n\t\tfull: '',\n\t\twidth: '',\n\t\theight: '',\n\t\tattachment_link: '',\n\t\tcaption: '',\n\t},\n\tcurrentScreen: 'loading', /* can be loading, initial, edit, crop, data, featuredImage, effects. */\n\tisUploading: false,\n\tisProcessingUpload: false,\n\tisUploadError: false,\n\tfilepondInstance: null,\n\thasCaption: false,\n\tcaptionPosition: 'bottom', /* can be bottom, top, or overlay */\n\tinQueryLoop: false,\n\tphotoMode: 'image', /* can be image, featuredImage, data, or url. */\n\tblockUniqueId: null,\n\tdataScreen: 'data', /* can be `initial`, `edit`. */\n\tjustCropped: false,\n\taspectRatioWidth: 16,\n\taspectRatioHeight: 9,\n\taspectRatioWidthPixels: 0,\n\taspectRatioHeightPixels: 0,\n\taspectRatioToolbarSelection: '16:9',\n\taspectRatioUnit: 'ratio',\n};\n\nconst actions = {\n\tsetOriginalImageData( originalImageData ) {\n\t\treturn {\n\t\t\ttype: 'SET_ORIGINAL_IMAGE_DATA',\n\t\t\toriginalImageData,\n\t\t};\n\t},\n\tsetImageData( imageData ) {\n\t\treturn {\n\t\t\ttype: 'SET_IMAGE_DATA',\n\t\t\timageData,\n\t\t};\n\t},\n\tsetAspectRatio( aspectRatioWidth, aspectRatioHeight ) {\n\t\treturn {\n\t\t\ttype: 'SET_ASPECT_RATIO',\n\t\t\taspectRatioWidth,\n\t\t\taspectRatioHeight,\n\t\t};\n\t},\n\tsetScreen( screen ) {\n\t\treturn {\n\t\t\ttype: 'SET_SCREEN',\n\t\t\tscreen,\n\t\t};\n\t},\n\tsetIsUploading( isUploading ) {\n\t\treturn {\n\t\t\ttype: 'SET_IS_UPLOADING',\n\t\t\tisUploading,\n\t\t};\n\t},\n\tsetIsProcessingUpload( isProcessingUpload ) {\n\t\treturn {\n\t\t\ttype: 'SET_IS_PROCESSING_UPLOAD',\n\t\t\tisProcessingUpload,\n\t\t};\n\t},\n\tsetIsUploadError( isUploadError ) {\n\t\treturn {\n\t\t\ttype: 'SET_IS_UPLOAD_ERROR',\n\t\t\tisUploadError,\n\t\t};\n\t},\n\tsetFilepondInstance( filepondInstance ) {\n\t\treturn {\n\t\t\ttype: 'SET_FILEPOND_INSTANCE',\n\t\t\tfilepondInstance,\n\t\t};\n\t},\n\tsetHasCaption( hasCaption ) {\n\t\treturn {\n\t\t\ttype: 'SET_HAS_CAPTION',\n\t\t\thasCaption,\n\t\t};\n\t},\n\tsetCaptionPosition( captionPosition ) {\n\t\treturn {\n\t\t\ttype: 'SET_CAPTION_POSITION',\n\t\t\tcaptionPosition,\n\t\t};\n\t},\n\tsetInQueryLoop( inQueryLoop ) {\n\t\treturn {\n\t\t\ttype: 'SET_IN_QUERY_LOOP',\n\t\t\tinQueryLoop,\n\t\t};\n\t},\n\tsetPhotoMode( photoMode ) {\n\t\treturn {\n\t\t\ttype: 'SET_PHOTO_MODE',\n\t\t\tphotoMode,\n\t\t};\n\t},\n\tsetBlockUniqueId( blockUniqueId ) {\n\t\treturn {\n\t\t\ttype: 'SET_BLOCK_UNIQUE_ID',\n\t\t\tblockUniqueId,\n\t\t};\n\t},\n\tsetDataScreen( dataScreen ) {\n\t\treturn {\n\t\t\ttype: 'SET_DATA_SCREEN',\n\t\t\tdataScreen,\n\t\t};\n\t},\n\tsetJustCropped( justCropped ) {\n\t\treturn {\n\t\t\ttype: 'SET_JUST_CROPPED',\n\t\t\tjustCropped,\n\t\t};\n\t},\n\tsetAspectRatioToolbarSelection( aspectRatioToolbarSelection ) {\n\t\treturn {\n\t\t\ttype: 'SET_ASPECT_RATIO_TOOLBAR_SELECTION',\n\t\t\taspectRatioToolbarSelection,\n\t\t};\n\t},\n\tsetAspectRatioPixels( aspectRatioWidthPixels, aspectRatioHeightPixels ) {\n\t\treturn {\n\t\t\ttype: 'SET_ASPECT_RATIO_PIXELS',\n\t\t\taspectRatioWidthPixels,\n\t\t\taspectRatioHeightPixels,\n\t\t};\n\t},\n\tsetAspectRatioUnit( aspectRatioUnit ) {\n\t\treturn {\n\t\t\ttype: 'SET_ASPECT_RATIO_UNIT',\n\t\t\taspectRatioUnit,\n\t\t};\n\t},\n};\n\nconst createBlockStore = ( uniqueId ) => {\n\treturn createReduxStore( `dlxplugins/photo-block/${ uniqueId }`, {\n\t\treducer( state = DEFAULT_STATE, action ) {\n\t\t\tswitch ( action.type ) {\n\t\t\t\tcase 'SET_ORIGINAL_IMAGE_DATA':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\toriginalImageData: action.originalImageData,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_IMAGE_DATA':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\timageData: action.imageData,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_SCREEN':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\tcurrentScreen: action.screen,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_IS_UPLOADING':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\tisUploading: action.isUploading,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_IS_PROCESSING_UPLOAD':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\tisProcessingUpload: action.isProcessingUpload,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_IS_UPLOAD_ERROR':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\tisUploadError: action.isUploadError,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_FILEPOND_INSTANCE':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\tfilepondInstance: action.filepondInstance,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_HAS_CAPTION':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\thasCaption: action.hasCaption,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_CAPTION_POSITION':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\tcaptionPosition: action.captionPosition,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_IN_QUERY_LOOP':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\tinQueryLoop: action.inQueryLoop,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_PHOTO_MODE':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\tphotoMode: action.photoMode,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_BLOCK_UNIQUE_ID':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\tblockUniqueId: action.blockUniqueId,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_DATA_SCREEN':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\tdataScreen: action.dataScreen,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_ASPECT_RATIO':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\taspectRatioWidth: action.aspectRatioWidth,\n\t\t\t\t\t\taspectRatioHeight: action.aspectRatioHeight,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_ASPECT_RATIO_PIXELS':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\taspectRatioWidthPixels: action.aspectRatioWidthPixels,\n\t\t\t\t\t\taspectRatioHeightPixels: action.aspectRatioHeightPixels,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_ASPECT_RATIO_TOOLBAR_SELECTION':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\taspectRatioToolbarSelection: action.aspectRatioToolbarSelection,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_ASPECT_RATIO_UNIT':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\taspectRatioUnit: action.aspectRatioUnit,\n\t\t\t\t\t};\n\t\t\t\tcase 'SET_JUST_CROPPED':\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\tjustCropped: action.justCropped,\n\t\t\t\t\t};\n\t\t\t\tdefault:\n\t\t\t\t\treturn state;\n\t\t\t}\n\t\t},\n\t\tactions,\n\t\tselectors: {\n\t\t\tgetCurrentScreen( state ) {\n\t\t\t\treturn state.currentScreen;\n\t\t\t},\n\t\t\tisUploading( state ) {\n\t\t\t\treturn state.isUploading;\n\t\t\t},\n\t\t\tisProcessingUpload( state ) {\n\t\t\t\treturn state.isProcessingUpload;\n\t\t\t},\n\t\t\tisUploadError( state ) {\n\t\t\t\treturn state.isUploadError;\n\t\t\t},\n\t\t\tgetFilepondInstance( state ) {\n\t\t\t\treturn state.filepondInstance;\n\t\t\t},\n\t\t\thasCaption( state ) {\n\t\t\t\treturn state.hasCaption;\n\t\t\t},\n\t\t\tgetCaptionPosition( state ) {\n\t\t\t\treturn state.captionPosition;\n\t\t\t},\n\t\t\tinQueryLoop( state ) {\n\t\t\t\treturn state.inQueryLoop;\n\t\t\t},\n\t\t\tgetPhotoMode( state ) {\n\t\t\t\treturn state.photoMode;\n\t\t\t},\n\t\t\tgetBlockUniqueId( state ) {\n\t\t\t\treturn state.blockUniqueId;\n\t\t\t},\n\t\t\tgetDataScreen( state ) {\n\t\t\t\treturn state.dataScreen;\n\t\t\t},\n\t\t\tgetImageData( state ) {\n\t\t\t\treturn state.imageData;\n\t\t\t},\n\t\t\tgetOriginalImageData( state ) {\n\t\t\t\treturn state.originalImageData;\n\t\t\t},\n\t\t\tgetJustCropped( state ) {\n\t\t\t\treturn state.justCropped;\n\t\t\t},\n\t\t\tgetAspectRatioWidth( state ) {\n\t\t\t\treturn state.aspectRatioWidth;\n\t\t\t},\n\t\t\tgetAspectRatioHeight( state ) {\n\t\t\t\treturn state.aspectRatioHeight;\n\t\t\t},\n\t\t\tgetAspectRatioWidthPixels( state ) {\n\t\t\t\treturn state.aspectRatioWidthPixels;\n\t\t\t},\n\t\t\tgetAspectRatioHeightPixels( state ) {\n\t\t\t\treturn state.aspectRatioHeightPixels;\n\t\t\t},\n\t\t\tgetAspectRatioToolbarSelection( state ) {\n\t\t\t\treturn state.aspectRatioToolbarSelection;\n\t\t\t},\n\t\t\tgetAspectRatioUnit( state ) {\n\t\t\t\treturn state.aspectRatioUnit;\n\t\t\t},\n\t\t},\n\t} );\n};\nconst blockStores = [];\nconst blockStore = ( uniqueId ) => {\n\tif ( ! uniqueId ) {\n\t\treturn null;\n\t}\n\tconst storeName = `dlxplugins/photo-block/${ uniqueId }`;\n\t// Attempt to select the store to check if it's already registered\n\tconst isStoreRegistered = select( storeName ); // can be undefined.\n\n\tif ( ! isStoreRegistered ) {\n\t\tconst store = createBlockStore( uniqueId );\n\n\t\t// Make sure store is initialized. Check for instantiate function and return null if it doesn't exist.\n\t\tif ( ! store.instantiate ) {\n\t\t\treturn storeName;\n\t\t}\n\n\t\tregister( store );\n\t\tblockStores.push( store );\n\t\treturn storeName;\n\t}\n\n\t// If the store is already registered, return its instance\n\treturn storeName;\n};\n/**\n * Retrieve a current list of all registered blocks.\n *\n * @return {Array} Array of block stores\n */\nconst getBlockStores = () => {\n\treturn blockStores;\n};\n\nexport { blockStore, getBlockStores };\n","/**\n * Returns an aspect ratio in human readable format.\n *\n * @param {number} width Width in pixels.\n * @param {number} height Height in pixels.\n * @return {string} Aspect ratio in human readable format.\n */\nconst CalculateAspectRatioFromPixels = ( width, height ) => {\n\t// Find the greatest common factor\n\tfunction findGCF( a, b ) {\n\t\treturn b === 0 ? a : findGCF( b, a % b );\n\t}\n\tconst gcf = findGCF( width, height );\n\n\t// Simplify the ratio\n\tconst simplifiedWidth = width / gcf;\n\tconst simplifiedHeight = height / gcf;\n\n\t// Format the ratio as \"X:Y\"\n\treturn {\n\t\twidth: simplifiedWidth,\n\t\theight: simplifiedHeight,\n\t};\n};\nexport default CalculateAspectRatioFromPixels;\n","/**\n * Returns an aspect ratio in human readable format.\n *\n * @param {string} aspectRatio Aspect ratio in human readable format.\n * @param {number} width Width in pixels.\n * @return {string} Aspect ratio in human readable format.\n */\nconst CalculateDimensionsFromAspectRatio = ( aspectRatio, width ) => {\n\t// Split the aspect ratio into its components.\n\tconst [ x, y ] = aspectRatio.split( ':' ).map( parseFloat );\n\n\t// Calculate the height from the width and aspect ratio.\n\tconst height = Math.round( width * ( y / x ) );\n\n\t// Return width/height.\n\treturn {\n\t\twidth,\n\t\theight,\n\t};\n};\nexport default CalculateDimensionsFromAspectRatio;\n","const gradients = [\n\t{\n\t\tlabel: 'Warm Flame',\n\t\tvalue:\n\t\t\t'linear-gradient(45deg, rgb(255,154,158) 0%, rgb(250,208,196) 99%, rgb(250,208,196) 100%)',\n\t},\n\t{\n\t\tlabel: 'Night Fade',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(161,140,209) 0%, rgb(251,194,235) 100%)',\n\t},\n\t{\n\t\tlabel: 'Spring Warmth',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(250,208,196) 0%, rgb(255,209,255) 100%)',\n\t},\n\t{\n\t\tlabel: 'Juicy Peach',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(255,236,210) 0%, rgb(252,182,159) 100%)',\n\t},\n\t{\n\t\tlabel: 'Young Passion',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(255,129,119) 0%, rgb(255,134,122) 0%, rgb(255,140,127) 21%, rgb(249,145,133) 52%, rgb(207,85,108) 78%, rgb(177,42,91) 100%)',\n\t},\n\t{\n\t\tlabel: 'Lady Lips',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(255,154,158) 0%, rgb(254,207,239) 99%, rgb(254,207,239) 100%)',\n\t},\n\t{\n\t\tlabel: 'Sunny Morning',\n\t\tvalue:\n\t\t\t'linear-gradient(120deg, rgb(246,211,101) 0%, rgb(253,160,133) 100%)',\n\t},\n\t{\n\t\tlabel: 'Rainy Ashville',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(251,194,235) 0%, rgb(166,193,238) 100%)',\n\t},\n\t{\n\t\tlabel: 'Frozen Dreams',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(253,203,241) 0%, rgb(253,203,241) 1%, rgb(230,222,233) 100%)',\n\t},\n\t{\n\t\tlabel: 'Winter Neva',\n\t\tvalue:\n\t\t\t'linear-gradient(120deg, rgb(161,196,253) 0%, rgb(194,233,251) 100%)',\n\t},\n\t{\n\t\tlabel: 'Dusty Grass',\n\t\tvalue:\n\t\t\t'linear-gradient(120deg, rgb(212,252,121) 0%, rgb(150,230,161) 100%)',\n\t},\n\t{\n\t\tlabel: 'Tempting Azure',\n\t\tvalue:\n\t\t\t'linear-gradient(120deg, rgb(132,250,176) 0%, rgb(143,211,244) 100%)',\n\t},\n\t{\n\t\tlabel: 'Heavy Rain',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(207,217,223) 0%, rgb(226,235,240) 100%)',\n\t},\n\t{\n\t\tlabel: 'Amy Crisp',\n\t\tvalue:\n\t\t\t'linear-gradient(120deg, rgb(166,192,254) 0%, rgb(246,128,132) 100%)',\n\t},\n\t{\n\t\tlabel: 'Mean Fruit',\n\t\tvalue:\n\t\t\t'linear-gradient(120deg, rgb(252,203,144) 0%, rgb(213,126,235) 100%)',\n\t},\n\t{\n\t\tlabel: 'Deep Blue',\n\t\tvalue:\n\t\t\t'linear-gradient(120deg, rgb(224,195,252) 0%, rgb(142,197,252) 100%)',\n\t},\n\t{\n\t\tlabel: 'Ripe Malinka',\n\t\tvalue: 'linear-gradient(120deg, rgb(240,147,251) 0%, rgb(245,87,108) 100%)',\n\t},\n\t{\n\t\tlabel: 'Cloudy Knoxville',\n\t\tvalue:\n\t\t\t'linear-gradient(120deg, rgb(253,251,251) 0%, rgb(235,237,238) 100%)',\n\t},\n\t{\n\t\tlabel: 'Malibu Beach',\n\t\tvalue: 'linear-gradient(to right, rgb(79,172,254) 0%, rgb(0,242,254) 100%)',\n\t},\n\t{\n\t\tlabel: 'New Life',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(67,233,123) 0%, rgb(56,249,215) 100%)',\n\t},\n\t{\n\t\tlabel: 'True Sunset',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(250,112,154) 0%, rgb(254,225,64) 100%)',\n\t},\n\t{\n\t\tlabel: 'Morpheus Den',\n\t\tvalue: 'linear-gradient(to top, rgb(48,207,208) 0%, rgb(51,8,103) 100%)',\n\t},\n\t{\n\t\tlabel: 'Rare Wind',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(168,237,234) 0%, rgb(254,214,227) 100%)',\n\t},\n\t{\n\t\tlabel: 'Near Moon',\n\t\tvalue: 'linear-gradient(to top, rgb(94,231,223) 0%, rgb(180,144,202) 100%)',\n\t},\n\t{\n\t\tlabel: 'Wild Apple',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(210,153,194) 0%, rgb(254,249,215) 100%)',\n\t},\n\t{\n\t\tlabel: 'Saint Petersburg',\n\t\tvalue:\n\t\t\t'linear-gradient(135deg, rgb(245,247,250) 0%, rgb(195,207,226) 100%)',\n\t},\n\t{\n\t\tlabel: 'Arielles Smile',\n\t\tvalue:\n\t\t\t'radial-gradient(circle 248px at center, rgb(22,217,227) 0%, rgb(48,199,236) 47%, rgb(70,174,247) 100%)',\n\t},\n\t{\n\t\tlabel: 'Plum Plate',\n\t\tvalue: 'linear-gradient(135deg, rgb(102,126,234) 0%, rgb(118,75,162) 100%)',\n\t},\n\t{\n\t\tlabel: 'Everlasting Sky',\n\t\tvalue:\n\t\t\t'linear-gradient(135deg, rgb(253,252,251) 0%, rgb(226,209,195) 100%)',\n\t},\n\t{\n\t\tlabel: 'Happy Fisher',\n\t\tvalue:\n\t\t\t'linear-gradient(120deg, rgb(137,247,254) 0%, rgb(102,166,255) 100%)',\n\t},\n\t{\n\t\tlabel: 'Blessing',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(253,219,146) 0%, rgb(209,253,255) 100%)',\n\t},\n\t{\n\t\tlabel: 'Sharpeye Eagle',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(152,144,227) 0%, rgb(177,244,207) 100%)',\n\t},\n\t{\n\t\tlabel: 'Ladoga Bottom',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(235,192,253) 0%, rgb(217,222,216) 100%)',\n\t},\n\t{\n\t\tlabel: 'Lemon Gate',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(150,251,196) 0%, rgb(249,245,134) 100%)',\n\t},\n\t{\n\t\tlabel: 'Itmeo Branding',\n\t\tvalue: 'linear-gradient(180deg, rgb(42,245,152) 0%, rgb(0,158,253) 100%)',\n\t},\n\t{\n\t\tlabel: 'Zeus Miracle',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(205,156,242) 0%, rgb(246,243,255) 100%)',\n\t},\n\t{\n\t\tlabel: 'Old Hat',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(228,175,203) 0%, rgb(184,203,184) 0%, rgb(184,203,184) 0%, rgb(226,197,139) 30%, rgb(194,206,156) 64%, rgb(126,219,220) 100%)',\n\t},\n\t{\n\t\tlabel: 'Star Wine',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(184,203,184) 0%, rgb(184,203,184) 0%, rgb(180,101,218) 0%, rgb(207,108,201) 33%, rgb(238,96,156) 66%, rgb(238,96,156) 100%)',\n\t},\n\t{\n\t\tlabel: 'Deep Blue',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(106,17,203) 0%, rgb(37,117,252) 100%)',\n\t},\n\t{\n\t\tlabel: 'Happy Acid',\n\t\tvalue: 'linear-gradient(to top, rgb(55,236,186) 0%, rgb(114,175,211) 100%)',\n\t},\n\t{\n\t\tlabel: 'Awesome Pine',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(235,187,167) 0%, rgb(207,199,248) 100%)',\n\t},\n\t{\n\t\tlabel: 'New York',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(255,241,235) 0%, rgb(172,224,249) 100%)',\n\t},\n\t{\n\t\tlabel: 'Shy Rainbow',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(238,162,162) 0%, rgb(187,193,191) 19%, rgb(87,198,225) 42%, rgb(180,159,218) 79%, rgb(122,197,216) 100%)',\n\t},\n\t{\n\t\tlabel: 'Mixed Hopes',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(196,113,245) 0%, rgb(250,113,205) 100%)',\n\t},\n\t{\n\t\tlabel: 'Fly High',\n\t\tvalue: 'linear-gradient(to top, rgb(72,198,239) 0%, rgb(111,134,214) 100%)',\n\t},\n\t{\n\t\tlabel: 'Strong Bliss',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(247,140,160) 0%, rgb(249,116,143) 19%, rgb(253,134,140) 60%, rgb(254,154,139) 100%)',\n\t},\n\t{\n\t\tlabel: 'Fresh Milk',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(254,173,166) 0%, rgb(245,239,239) 100%)',\n\t},\n\t{\n\t\tlabel: 'Snow Again',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(230,233,240) 0%, rgb(238,241,245) 100%)',\n\t},\n\t{\n\t\tlabel: 'February Ink',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(172,203,238) 0%, rgb(231,240,253) 100%)',\n\t},\n\t{\n\t\tlabel: 'Kind Steel',\n\t\tvalue:\n\t\t\t'linear-gradient(-20deg, rgb(233,222,250) 0%, rgb(251,252,219) 100%)',\n\t},\n\t{\n\t\tlabel: 'Soft Grass',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(193,223,196) 0%, rgb(222,236,221) 100%)',\n\t},\n\t{\n\t\tlabel: 'Grown Early',\n\t\tvalue: 'linear-gradient(to top, rgb(11,163,96) 0%, rgb(60,186,146) 100%)',\n\t},\n\t{\n\t\tlabel: 'Sharp Blues',\n\t\tvalue: 'linear-gradient(to top, rgb(0,198,251) 0%, rgb(0,91,234) 100%)',\n\t},\n\t{\n\t\tlabel: 'Shady Water',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(116,235,213) 0%, rgb(159,172,230) 100%)',\n\t},\n\t{\n\t\tlabel: 'Dirty Beauty',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(106,133,182) 0%, rgb(186,200,224) 100%)',\n\t},\n\t{\n\t\tlabel: 'Great Whale',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(163,189,237) 0%, rgb(105,145,199) 100%)',\n\t},\n\t{\n\t\tlabel: 'Teen Notebook',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(151,149,240) 0%, rgb(251,200,212) 100%)',\n\t},\n\t{\n\t\tlabel: 'Polite Rumors',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(167,166,203) 0%, rgb(137,137,186) 52%, rgb(137,137,186) 100%)',\n\t},\n\t{\n\t\tlabel: 'Sweet Period',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(63,81,177) 0%, rgb(90,85,174) 13%, rgb(123,95,172) 25%, rgb(143,106,174) 38%, rgb(168,106,164) 50%, rgb(204,107,142) 62%, rgb(241,130,113) 75%, rgb(243,164,105) 87%, rgb(247,201,120) 100%)',\n\t},\n\t{\n\t\tlabel: 'Wide Matrix',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(252,197,228) 0%, rgb(253,163,75) 15%, rgb(255,120,130) 35%, rgb(200,105,158) 52%, rgb(112,70,170) 71%, rgb(12,29,184) 87%, rgb(2,15,117) 100%)',\n\t},\n\t{\n\t\tlabel: 'Soft Cherish',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(219,220,215) 0%, rgb(221,220,215) 24%, rgb(226,201,204) 30%, rgb(231,98,125) 46%, rgb(184,35,90) 59%, rgb(128,19,87) 71%, rgb(61,22,53) 84%, rgb(28,26,39) 100%)',\n\t},\n\t{\n\t\tlabel: 'Red Salvation',\n\t\tvalue: 'linear-gradient(to top, rgb(244,59,71) 0%, rgb(69,58,148) 100%)',\n\t},\n\t{\n\t\tlabel: 'Burning Spring',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(79,181,118) 0%, rgb(68,196,137) 30%, rgb(40,169,174) 46%, rgb(40,162,183) 59%, rgb(76,119,136) 71%, rgb(108,79,99) 86%, rgb(67,44,57) 100%)',\n\t},\n\t{\n\t\tlabel: 'Night Party',\n\t\tvalue: 'linear-gradient(to top, rgb(2,80,197) 0%, rgb(212,63,141) 100%)',\n\t},\n\t{\n\t\tlabel: 'Sky Glider',\n\t\tvalue: 'linear-gradient(to top, rgb(136,211,206) 0%, rgb(110,69,226) 100%)',\n\t},\n\t{\n\t\tlabel: 'Heaven Peach',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(217,175,217) 0%, rgb(151,217,225) 100%)',\n\t},\n\t{\n\t\tlabel: 'Purple Division',\n\t\tvalue: 'linear-gradient(to top, rgb(112,40,228) 0%, rgb(229,178,202) 100%)',\n\t},\n\t{\n\t\tlabel: 'Aqua Splash',\n\t\tvalue: 'linear-gradient(15deg, rgb(19,84,122) 0%, rgb(128,208,199) 100%)',\n\t},\n\t{\n\t\tlabel: 'Spiky Naga',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(80,82,133) 0%, rgb(88,94,146) 12%, rgb(101,104,159) 25%, rgb(116,116,176) 37%, rgb(126,126,187) 50%, rgb(131,137,199) 62%, rgb(151,149,212) 75%, rgb(162,161,220) 87%, rgb(181,174,228) 100%)',\n\t},\n\t{\n\t\tlabel: 'Love Kiss',\n\t\tvalue: 'linear-gradient(to top, rgb(255,8,68) 0%, rgb(255,177,153) 100%)',\n\t},\n\t{\n\t\tlabel: 'Cochiti Lake',\n\t\tvalue: 'linear-gradient(45deg, rgb(147,165,207) 0%, rgb(228,239,233) 100%)',\n\t},\n\t{\n\t\tlabel: 'Premium Dark',\n\t\tvalue: 'linear-gradient(to right, rgb(67,67,67) 0%, black 100%)',\n\t},\n\t{\n\t\tlabel: 'Cold Evening',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(12,52,131) 0%, rgb(162,182,223) 100%, rgb(107,140,206) 100%, rgb(162,182,223) 100%)',\n\t},\n\t{\n\t\tlabel: 'Summer Games',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(146,254,157) 0%, rgb(0,201,255) 100%)',\n\t},\n\t{\n\t\tlabel: 'Passionate Bed',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(255,117,140) 0%, rgb(255,126,179) 100%)',\n\t},\n\t{\n\t\tlabel: 'Mountain Rock',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(134,143,150) 0%, rgb(89,97,100) 100%)',\n\t},\n\t{\n\t\tlabel: 'Desert Hump',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(199,144,129) 0%, rgb(223,165,121) 100%)',\n\t},\n\t{\n\t\tlabel: 'Jungle Day',\n\t\tvalue: 'linear-gradient(45deg, rgb(139,170,170) 0%, rgb(174,139,156) 100%)',\n\t},\n\t{\n\t\tlabel: 'Phoenix Start',\n\t\tvalue: 'linear-gradient(to right, rgb(248,54,0) 0%, rgb(249,212,35) 100%)',\n\t},\n\t{\n\t\tlabel: 'October Silence',\n\t\tvalue: 'linear-gradient(-20deg, rgb(183,33,255) 0%, rgb(33,212,253) 100%)',\n\t},\n\t{\n\t\tlabel: 'Faraway River',\n\t\tvalue: 'linear-gradient(-20deg, rgb(110,69,226) 0%, rgb(136,211,206) 100%)',\n\t},\n\t{\n\t\tlabel: 'Alchemist Lab',\n\t\tvalue: 'linear-gradient(-20deg, rgb(213,88,200) 0%, rgb(36,210,146) 100%)',\n\t},\n\t{\n\t\tlabel: 'Over Sun',\n\t\tvalue: 'linear-gradient(60deg, rgb(171,236,214) 0%, rgb(251,237,150) 100%)',\n\t},\n\t{\n\t\tlabel: 'Premium White',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(213,212,208) 0%, rgb(213,212,208) 1%, rgb(238,238,236) 31%, rgb(239,238,236) 75%, rgb(233,233,231) 100%)',\n\t},\n\t{\n\t\tlabel: 'Mars Party',\n\t\tvalue: 'linear-gradient(to top, rgb(95,114,189) 0%, rgb(155,35,234) 100%)',\n\t},\n\t{\n\t\tlabel: 'Eternal Constance',\n\t\tvalue: 'linear-gradient(to top, rgb(9,32,63) 0%, rgb(83,120,149) 100%)',\n\t},\n\t{\n\t\tlabel: 'Japan Blush',\n\t\tvalue:\n\t\t\t'linear-gradient(-20deg, rgb(221,214,243) 0%, rgb(250,172,168) 100%, rgb(250,172,168) 100%)',\n\t},\n\t{\n\t\tlabel: 'Smiling Rain',\n\t\tvalue:\n\t\t\t'linear-gradient(-20deg, rgb(220,176,237) 0%, rgb(153,201,156) 100%)',\n\t},\n\t{\n\t\tlabel: 'Cloudy Apple',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(243,231,233) 0%, rgb(227,238,255) 99%, rgb(227,238,255) 100%)',\n\t},\n\t{\n\t\tlabel: 'Big Mango',\n\t\tvalue: 'linear-gradient(to top, rgb(199,29,111) 0%, rgb(208,150,147) 100%)',\n\t},\n\t{\n\t\tlabel: 'Healthy Water',\n\t\tvalue: 'linear-gradient(60deg, rgb(150,222,218) 0%, rgb(80,201,195) 100%)',\n\t},\n\t{\n\t\tlabel: 'Amour Amour',\n\t\tvalue: 'linear-gradient(to top, rgb(247,112,98) 0%, rgb(254,81,150) 100%)',\n\t},\n\t{\n\t\tlabel: 'Risky Concrete',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(196,197,199) 0%, rgb(220,221,223) 52%, rgb(235,235,235) 100%)',\n\t},\n\t{\n\t\tlabel: 'Strong Stick',\n\t\tvalue: 'linear-gradient(to right, rgb(168,202,186) 0%, rgb(93,65,87) 100%)',\n\t},\n\t{\n\t\tlabel: 'Vicious Stance',\n\t\tvalue: 'linear-gradient(60deg, rgb(41,50,60) 0%, rgb(72,85,99) 100%)',\n\t},\n\t{\n\t\tlabel: 'Palo Alto',\n\t\tvalue: 'linear-gradient(-60deg, rgb(22,160,133) 0%, rgb(244,208,63) 100%)',\n\t},\n\t{\n\t\tlabel: 'Happy Memories',\n\t\tvalue: 'linear-gradient(-60deg, rgb(255,88,88) 0%, rgb(240,152,25) 100%)',\n\t},\n\t{\n\t\tlabel: 'Midnight Bloom',\n\t\tvalue: 'linear-gradient(-20deg, rgb(43,88,118) 0%, rgb(78,67,118) 100%)',\n\t},\n\t{\n\t\tlabel: 'Crystalline',\n\t\tvalue: 'linear-gradient(-20deg, rgb(0,205,172) 0%, rgb(141,218,213) 100%)',\n\t},\n\t{\n\t\tlabel: 'River City',\n\t\tvalue: 'linear-gradient(to top, rgb(68,129,235) 0%, rgb(4,190,254) 100%)',\n\t},\n\t{\n\t\tlabel: 'Confident Cloud',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(218,212,236) 0%, rgb(218,212,236) 1%, rgb(243,231,233) 100%)',\n\t},\n\t{\n\t\tlabel: 'Le Cocktail',\n\t\tvalue: 'linear-gradient(45deg, rgb(135,77,162) 0%, rgb(196,58,48) 100%)',\n\t},\n\t{\n\t\tlabel: 'Frozen Berry',\n\t\tvalue: 'linear-gradient(to top, rgb(232,25,139) 0%, rgb(199,234,253) 100%)',\n\t},\n\t{\n\t\tlabel: 'Child Care',\n\t\tvalue:\n\t\t\t'linear-gradient(-20deg, rgb(247,148,164) 0%, rgb(253,214,189) 100%)',\n\t},\n\t{\n\t\tlabel: 'Flying Lemon',\n\t\tvalue: 'linear-gradient(60deg, rgb(100,179,244) 0%, rgb(194,229,156) 100%)',\n\t},\n\t{\n\t\tlabel: 'New Retrowave',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(59,65,197) 0%, rgb(169,129,187) 49%, rgb(255,200,169) 100%)',\n\t},\n\t{\n\t\tlabel: 'Hidden Jaguar',\n\t\tvalue: 'linear-gradient(to top, rgb(15,216,80) 0%, rgb(249,240,71) 100%)',\n\t},\n\t{\n\t\tlabel: 'Above The Sky',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, lightgrey 0%, lightgrey 1%, rgb(224,224,224) 26%, rgb(239,239,239) 48%, rgb(217,217,217) 75%, rgb(188,188,188) 100%)',\n\t},\n\t{\n\t\tlabel: 'Nega',\n\t\tvalue: 'linear-gradient(45deg, rgb(238,156,167) 0%, rgb(255,221,225) 100%)',\n\t},\n\t{\n\t\tlabel: 'Dense Water',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(58,181,176) 0%, rgb(61,153,190) 31%, rgb(86,49,122) 100%)',\n\t},\n\t{\n\t\tlabel: 'Seashore',\n\t\tvalue: 'linear-gradient(to top, rgb(32,156,255) 0%, rgb(104,224,207) 100%)',\n\t},\n\t{\n\t\tlabel: 'Marble Wall',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(189,194,232) 0%, rgb(189,194,232) 1%, rgb(230,222,233) 100%)',\n\t},\n\t{\n\t\tlabel: 'Cheerful Caramel',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(230,185,128) 0%, rgb(234,205,163) 100%)',\n\t},\n\t{\n\t\tlabel: 'Night Sky',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(30,60,114) 0%, rgb(30,60,114) 1%, rgb(42,82,152) 100%)',\n\t},\n\t{\n\t\tlabel: 'Magic Lake',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(213,222,231) 0%, rgb(255,175,189) 0%, rgb(201,255,191) 100%)',\n\t},\n\t{\n\t\tlabel: 'Young Grass',\n\t\tvalue: 'linear-gradient(to top, rgb(155,225,93) 0%, rgb(0,227,174) 100%)',\n\t},\n\t{\n\t\tlabel: 'Royal Garden',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(237,110,160) 0%, rgb(236,140,105) 100%)',\n\t},\n\t{\n\t\tlabel: 'Gentle Care',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(255,195,160) 0%, rgb(255,175,189) 100%)',\n\t},\n\t{\n\t\tlabel: 'Plum Bath',\n\t\tvalue: 'linear-gradient(to top, rgb(204,32,142) 0%, rgb(103,19,210) 100%)',\n\t},\n\t{\n\t\tlabel: 'Happy Unicorn',\n\t\tvalue: 'linear-gradient(to top, rgb(179,255,171) 0%, rgb(18,255,247) 100%)',\n\t},\n\t{\n\t\tlabel: 'African Field',\n\t\tvalue:\n\t\t\t'linear-gradient(-45deg, rgb(255,199,150) 0%, rgb(255,107,149) 100%)',\n\t},\n\t{\n\t\tlabel: 'Solid Stone',\n\t\tvalue: 'linear-gradient(to right, rgb(36,57,73) 0%, rgb(81,127,164) 100%)',\n\t},\n\t{\n\t\tlabel: 'Orange Juice',\n\t\tvalue: 'linear-gradient(-20deg, rgb(252,96,118) 0%, rgb(255,154,68) 100%)',\n\t},\n\t{\n\t\tlabel: 'Glass Water',\n\t\tvalue: 'linear-gradient(to top, rgb(223,233,243) 0%, white 100%)',\n\t},\n\t{\n\t\tlabel: 'North Miracle',\n\t\tvalue: 'linear-gradient(to right, rgb(0,219,222) 0%, rgb(252,0,255) 100%)',\n\t},\n\t{\n\t\tlabel: 'Fruit Blend',\n\t\tvalue: 'linear-gradient(to right, rgb(249,212,35) 0%, rgb(255,78,80) 100%)',\n\t},\n\t{\n\t\tlabel: 'Millennium Pine',\n\t\tvalue: 'linear-gradient(to top, rgb(80,204,127) 0%, rgb(245,209,0) 100%)',\n\t},\n\t{\n\t\tlabel: 'High Flight',\n\t\tvalue: 'linear-gradient(to right, rgb(10,207,254) 0%, rgb(73,90,255) 100%)',\n\t},\n\t{\n\t\tlabel: 'Mole Hall',\n\t\tvalue: 'linear-gradient(-20deg, rgb(97,97,97) 0%, rgb(155,197,195) 100%)',\n\t},\n\t{\n\t\tlabel: 'Space Shift',\n\t\tvalue:\n\t\t\t'linear-gradient(60deg, rgb(61,51,147) 0%, rgb(43,118,185) 37%, rgb(44,172,209) 65%, rgb(53,235,147) 100%)',\n\t},\n\t{\n\t\tlabel: 'Forest Inei',\n\t\tvalue:\n\t\t\t'linear-gradient(to top, rgb(223,137,181) 0%, rgb(191,217,254) 100%)',\n\t},\n\t{\n\t\tlabel: 'Rich Metal',\n\t\tvalue: 'linear-gradient(to right, rgb(215,210,204) 0%, rgb(48,67,82) 100%)',\n\t},\n\t{\n\t\tlabel: 'Juicy Cake',\n\t\tvalue: 'linear-gradient(to top, rgb(225,79,173) 0%, rgb(249,212,35) 100%)',\n\t},\n\t{\n\t\tlabel: 'Smart Indigo',\n\t\tvalue: 'linear-gradient(to top, rgb(178,36,239) 0%, rgb(117,121,255) 100%)',\n\t},\n\t{\n\t\tlabel: 'Sand Strike',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(193,193,97) 0%, rgb(193,193,97) 0%, rgb(212,212,177) 100%)',\n\t},\n\t{\n\t\tlabel: 'Norse Beauty',\n\t\tvalue:\n\t\t\t'linear-gradient(to right, rgb(236,119,171) 0%, rgb(120,115,245) 100%)',\n\t},\n\t{\n\t\tlabel: 'Aqua Guidance',\n\t\tvalue: 'linear-gradient(to top, rgb(0,122,223) 0%, rgb(0,236,188) 100%)',\n\t},\n\t{\n\t\tlabel: 'Sun Veggie',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(32,226,215) 0%, rgb(249,254,165) 100%)',\n\t},\n\t{\n\t\tlabel: 'Sea Lord',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(44,216,213) 0%, rgb(197,193,255) 56%, rgb(255,186,195) 100%)',\n\t},\n\t{\n\t\tlabel: 'Black Sea',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(44,216,213) 0%, rgb(107,141,214) 48%, rgb(142,55,215) 100%)',\n\t},\n\t{\n\t\tlabel: 'Grass Shampoo',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(223,255,205) 0%, rgb(144,249,196) 48%, rgb(57,243,187) 100%)',\n\t},\n\t{\n\t\tlabel: 'Landing Aircraft',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(93,159,255) 0%, rgb(184,220,255) 48%, rgb(107,187,255) 100%)',\n\t},\n\t{\n\t\tlabel: 'Witch Dance',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(168,191,255) 0%, rgb(136,77,128) 100%)',\n\t},\n\t{\n\t\tlabel: 'Sleepless Night',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(82,113,196) 0%, rgb(177,159,255) 48%, rgb(236,161,254) 100%)',\n\t},\n\t{\n\t\tlabel: 'Angel Care',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(255,226,159) 0%, rgb(255,169,159) 48%, rgb(255,113,154) 100%)',\n\t},\n\t{\n\t\tlabel: 'Crystal River',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(34,225,255) 0%, rgb(29,143,225) 48%, rgb(98,94,177) 100%)',\n\t},\n\t{\n\t\tlabel: 'Soft Lipstick',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(182,206,232) 0%, rgb(245,120,220) 100%)',\n\t},\n\t{\n\t\tlabel: 'Salt Mountain',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(255,254,255) 0%, rgb(215,255,254) 100%)',\n\t},\n\t{\n\t\tlabel: 'Perfect White',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(227,253,245) 0%, rgb(255,230,250) 100%)',\n\t},\n\t{\n\t\tlabel: 'Fresh Oasis',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(125,226,252) 0%, rgb(185,182,229) 100%)',\n\t},\n\t{\n\t\tlabel: 'Strict November',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(203,186,204) 0%, rgb(37,128,179) 100%)',\n\t},\n\t{\n\t\tlabel: 'Morning Salad',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(183,248,219) 0%, rgb(80,167,194) 100%)',\n\t},\n\t{\n\t\tlabel: 'Deep Relief',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(112,133,182) 0%, rgb(135,167,217) 50%, rgb(222,243,248) 100%)',\n\t},\n\t{\n\t\tlabel: 'Sea Strike',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(119,255,210) 0%, rgb(98,151,219) 48%, rgb(30,236,255) 100%)',\n\t},\n\t{\n\t\tlabel: 'Night Call',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(172,50,228) 0%, rgb(121,24,242) 48%, rgb(72,1,255) 100%)',\n\t},\n\t{\n\t\tlabel: 'Supreme Sky',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(212,255,236) 0%, rgb(87,242,204) 48%, rgb(69,150,251) 100%)',\n\t},\n\t{\n\t\tlabel: 'Light Blue',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(158,251,211) 0%, rgb(87,233,242) 48%, rgb(69,212,251) 100%)',\n\t},\n\t{\n\t\tlabel: 'Mind Crawl',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(71,59,123) 0%, rgb(53,132,167) 51%, rgb(48,210,190) 100%)',\n\t},\n\t{\n\t\tlabel: 'Lily Meadow',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(101,55,155) 0%, rgb(136,106,234) 53%, rgb(100,87,198) 100%)',\n\t},\n\t{\n\t\tlabel: 'Sugar Lollipop',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(164,69,178) 0%, rgb(212,24,114) 52%, rgb(255,0,102) 100%)',\n\t},\n\t{\n\t\tlabel: 'Sweet Dessert',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(119,66,178) 0%, rgb(241,128,255) 52%, rgb(253,139,217) 100%)',\n\t},\n\t{\n\t\tlabel: 'Magic Ray',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(255,60,172) 0%, rgb(86,43,124) 52%, rgb(43,134,197) 100%)',\n\t},\n\t{\n\t\tlabel: 'Teen Party',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(255,5,124) 0%, rgb(141,11,147) 50%, rgb(50,21,117) 100%)',\n\t},\n\t{\n\t\tlabel: 'Frozen Heat',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(255,5,124) 0%, rgb(124,100,213) 48%, rgb(76,195,255) 100%)',\n\t},\n\t{\n\t\tlabel: 'Gagarin View',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(105,234,203) 0%, rgb(234,204,248) 48%, rgb(102,84,241) 100%)',\n\t},\n\t{\n\t\tlabel: 'Fabled Sunset',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(35,21,87) 0%, rgb(68,16,122) 29%, rgb(255,19,97) 67%, rgb(255,248,0) 100%)',\n\t},\n\t{\n\t\tlabel: 'Perfect Blue',\n\t\tvalue:\n\t\t\t'linear-gradient(-225deg, rgb(61,78,129) 0%, rgb(87,83,201) 48%, rgb(110,127,243) 100%)',\n\t},\n];\n\nconst getRandomGradient = () => {\n\tconst randomIndex = Math.floor( Math.random() * gradients.length );\n\treturn gradients[ randomIndex ].value;\n};\nexport default getRandomGradient;\n","/* eslint-disable no-undef */\n/* eslint-disable camelcase */\nimport axios from 'axios';\nimport qs from 'qs';\n\n/**\n * Send a REST request via JS.\n *\n * @param {string} nonce The REST nonce.\n * @param {Object} data The REST data to pass.\n * @param {string} restEndPoint The REST endpoint to use.\n * @param {string} method The REST method to use. Defaults to 'post'.\n * @return {Promise} The REST request promise.\n */\nexport default function SendCommand( nonce, data, restEndPoint, method = 'post' ) {\n\tif ( 'undefined' === typeof data ) {\n\t\tdata = {};\n\t}\n\n\tconst options = {\n\t\tmethod,\n\t\turl: restEndPoint,\n\t\tparams: data,\n\t\theaders: {\n\t\t\t'X-WP-Nonce': nonce,\n\t\t},\n\t\tdata,\n\t};\n\n\treturn axios( options );\n}\n","/* Credits: Forked from GenerateBlocks */\nexport default function shorthandCSS( top, right, bottom, left, unit ) {\n\tif ( '' === top && '' === right && '' === bottom && '' === left ) {\n\t\treturn;\n\t}\n\tif ( null === unit ) {\n\t\tunit = 'px';\n\t}\n\n\ttop = ( parseFloat( top ) != 0 && '' !== top ) ? parseFloat( top ) + unit + ' ' : '0 '; // eslint-disable-line eqeqeq\n\tright = ( parseFloat( right ) != 0 && '' !== right ) ? parseFloat( right ) + unit + ' ' : '0 '; // eslint-disable-line eqeqeq\n\tbottom = ( parseFloat( bottom ) != 0 && '' !== bottom ) ? parseFloat( bottom ) + unit + ' ' : '0 '; // eslint-disable-line eqeqeq\n\tleft = ( parseFloat( left ) != 0 && '' !== left ) ? parseFloat( left ) + unit + ' ' : '0 '; // eslint-disable-line eqeqeq\n\n\tif ( right === left ) {\n\t\tleft = '';\n\n\t\tif ( top === bottom ) {\n\t\t\tbottom = '';\n\n\t\t\tif ( top === right ) {\n\t\t\t\tright = '';\n\t\t\t}\n\t\t}\n\t}\n\tconst output = top + '' + right + '' + bottom + '' + left + '';\n\n\treturn output.trim();\n}\n","import React from 'react';\nimport shorthandCSS from './ShorthandCSS';\n\nconst shorthandCSSUnits = ( top, topUnit, right, rightUnit, bottom, bottomUnit, left, leftUnit ) => {\n\tif ( '' === top && '' === right && '' === bottom && '' === left ) {\n\t\treturn;\n\t}\n\n\t// Check if top, right, bottom, left are the strings.\n\tif ( 'string' !== typeof top ) {\n\t\ttop = ( parseFloat( top ) != 0 && '' !== top ) ? parseFloat( top ) + topUnit + ' ' : '0 '; // eslint-disable-line eqeqeq\n\t} else {\n\t\ttop = `${ top }${ topUnit } `;\n\t}\n\tif ( 'string' !== typeof right ) {\n\t\tright = ( parseFloat( right ) != 0 && '' !== right ) ? parseFloat( right ) + rightUnit + ' ' : '0 '; // eslint-disable-line eqeqeq\n\t} else {\n\t\tright = `${ right }${ rightUnit } `;\n\t}\n\tif ( 'string' !== typeof bottom ) {\n\t\tbottom = ( parseFloat( bottom ) != 0 && '' !== bottom ) ? parseFloat( bottom ) + bottomUnit + ' ' : '0 '; // eslint-disable-line eqeqeq\n\t} else {\n\t\tbottom = `${ bottom }${ bottomUnit } `;\n\t}\n\tif ( 'string' !== typeof left ) {\n\t\tleft = ( parseFloat( left ) != 0 && '' !== left ) ? parseFloat( left ) + leftUnit + ' ' : '0 '; // eslint-disable-line eqeqeq\n\t} else {\n\t\tleft = `${ left }${ leftUnit } `;\n\t}\n\n\tif ( right === left ) {\n\t\tleft = '';\n\n\t\tif ( top === bottom ) {\n\t\t\tbottom = '';\n\n\t\t\tif ( top === right ) {\n\t\t\t\tright = '';\n\t\t\t}\n\t\t}\n\t}\n\n\tconst output = top + right + bottom + left;\n\n\treturn output.trim();\n};\n\n/**\n * Get a value with unit based on screen size.\n *\n * @param {string} screenSize desktop|tablet|mobile.\n * @param {Object} valueObject Value object with unit.\n * @param {string} cssValue CSS value. (e.g., width, height). Empty string if width is empty.\n *\n * @return {string} CSS value for screen size.\n */\nexport const getValueWithUnit = ( screenSize, valueObject, cssValue = 'width' ) => {\n\tconst width = geHierarchicalPlaceholderValue( valueObject, screenSize, valueObject[ screenSize ].width, 'width' ); // Width is misleading as it can also be height.\n\tconst unit = getHierarchicalValueUnit( valueObject, screenSize, valueObject[ screenSize ].unit, 'unit' );\n\n\t// Get RegEx to check for numbers only. IF not a match, then unit should be empty.\n\tconst numberOnly = width.match( /^(-)?[0-9]+$/ );\n\tif ( numberOnly ) {\n\t\treturn `${ width }${ unit };`;\n\t}\n\n\tif ( ( '' === width || '0' === width ) ) {\n\t\treturn 'unset;';\n\t}\n\t// Build CSS.\n\treturn `${ width };`;\n};\n\n/**\n * Build CSS rules for dimensions and screen size.\n *\n * @param {Object} props Dimensions object.\n * @param {string} screenSize mobile|tablet|desktop.\n *\n * @return {string} CSS rules.\n */\nexport function buildDimensionsCSS( props, screenSize ) {\n\tscreenSize = screenSize.toLowerCase();\n\tconst dimensions = props[ screenSize ];\n\n\tif ( 'desktop' === screenSize ) {\n\t\tconst unitSync = dimensions.unitSync;\n\t\tif ( unitSync ) {\n\t\t\treturn shorthandCSS( dimensions.top, dimensions.top, dimensions.top, dimensions.top, dimensions.topUnit );\n\t\t}\n\t\tconst top = dimensions.top;\n\t\tconst topUnit = dimensions.topUnit;\n\t\tconst right = dimensions.right;\n\t\tconst rightUnit = dimensions.rightUnit;\n\t\tconst bottom = dimensions.bottom;\n\t\tconst bottomUnit = dimensions.bottomUnit;\n\t\tconst left = dimensions.left;\n\t\tconst leftUnit = dimensions.leftUnit;\n\n\t\treturn shorthandCSSUnits( top, topUnit, right, rightUnit, bottom, bottomUnit, left, leftUnit );\n\t}\n\n\tif ( 'tablet' === screenSize || 'mobile' === screenSize ) {\n\t\tif ( true === getHierarchicalValueUnit( props, screenSize, dimensions.unitSync ) ) {\n\t\t\tconst topValue = geHierarchicalPlaceholderValue( props, screenSize, dimensions.top, 'top' );\n\t\t\tconst topUnit = geHierarchicalPlaceholderValue( props, screenSize, dimensions.topUnit, 'topUnit' );\n\t\t\treturn shorthandCSS( topValue, topValue, topValue, topValue, topUnit );\n\t\t}\n\t\tconst top = geHierarchicalPlaceholderValue( props, screenSize, dimensions.top, 'top' );\n\t\tconst topUnit = geHierarchicalPlaceholderValue( props, screenSize, dimensions.topUnit, 'topUnit' );\n\t\tconst right = geHierarchicalPlaceholderValue( props, screenSize, dimensions.right, 'right' );\n\t\tconst rightUnit = geHierarchicalPlaceholderValue( props, screenSize, dimensions.rightUnit, 'rightUnit' );\n\t\tconst bottom = geHierarchicalPlaceholderValue( props, screenSize, dimensions.bottom, 'bottom' );\n\t\tconst bottomUnit = geHierarchicalPlaceholderValue( props, screenSize, dimensions.bottomUnit, 'bottomUnit' );\n\t\tconst left = geHierarchicalPlaceholderValue( props, screenSize, dimensions.left, 'left' );\n\t\tconst leftUnit = geHierarchicalPlaceholderValue( props, screenSize, dimensions.leftUnit, 'leftUnit' );\n\n\t\treturn shorthandCSSUnits( top, topUnit, right, rightUnit, bottom, bottomUnit, left, leftUnit );\n\t}\n\n\treturn '';\n}\n\n/**\n * Build CSS rules for border and screen size.\n *\n * @param {Object} props Dimensions object.\n * @param {string} screenSize mobile|tablet|desktop.\n * @param {string} prefix Prefix for CSS rules.\n *\n * @return {string} CSS rules.\n */\nexport function buildBorderCSS( props, screenSize, prefix ) {\n\tscreenSize = screenSize.toLowerCase();\n\tconst border = props[ screenSize ];\n\n\tif ( true === getHierarchicalValueUnit( props, screenSize, border.unitSync, 'unitSync' ) ) {\n\t\tconst topValue = geHierarchicalPlaceholderValue( props, screenSize, border.top.width, 'top', 'width' );\n\t\tconst topUnit = geHierarchicalPlaceholderValue( props, screenSize, border.top.unit, 'top', 'unit' );\n\t\tconst topColor = geHierarchicalPlaceholderValue( props, screenSize, border.top.color, 'top', 'color' );\n\t\tconst topBorderStyle = geHierarchicalPlaceholderValue( props, screenSize, border.top.borderStyle, 'top', 'borderStyle' );\n\n\t\tlet CSSRule = '';\n\t\tCSSRule += `${ prefix }-border-top: ${ topValue }${ topUnit } ${ topBorderStyle } ${ topColor };`;\n\t\tCSSRule += `${ prefix }-border-right: ${ topValue }${ topUnit } ${ topBorderStyle } ${ rightColor };`;\n\t\tCSSRule += `${ prefix }-border-bottom: ${ topValue }${ topUnit } ${ topBorderStyle } ${ bottomColor };`;\n\t\tCSSRule += `${ prefix }-border-left: ${ topValue }${ topUnit } ${ topBorderStyle } ${ leftColor };`;\n\t}\n\n\tconst top = geHierarchicalPlaceholderValue( props, screenSize, border.top.width, 'top', 'width' );\n\tconst topUnit = geHierarchicalPlaceholderValue( props, screenSize, border.top.unit, 'top', 'unit' );\n\tconst topColor = geHierarchicalPlaceholderValue( props, screenSize, border.top.color, 'top', 'color' );\n\tconst topBorderStyle = geHierarchicalPlaceholderValue( props, screenSize, border.top.borderStyle, 'top', 'borderStyle' );\n\tconst right = geHierarchicalPlaceholderValue( props, screenSize, border.right.width, 'right', 'width' );\n\tconst rightUnit = geHierarchicalPlaceholderValue( props, screenSize, border.right.unit, 'right', 'unit' );\n\tconst rightColor = geHierarchicalPlaceholderValue( props, screenSize, border.right.color, 'right', 'color' );\n\tconst rightBorderStyle = geHierarchicalPlaceholderValue( props, screenSize, border.right.borderStyle, 'right', 'borderStyle' );\n\tconst bottom = geHierarchicalPlaceholderValue( props, screenSize, border.bottom.width, 'bottom', 'width' );\n\tconst bottomUnit = geHierarchicalPlaceholderValue( props, screenSize, border.bottom.unit, 'bottom', 'unit' );\n\tconst bottomColor = geHierarchicalPlaceholderValue( props, screenSize, border.bottom.color, 'bottom', 'color' );\n\tconst bottomBorderStyle = geHierarchicalPlaceholderValue( props, screenSize, border.bottom.borderStyle, 'bottom', 'borderStyle' );\n\tconst left = geHierarchicalPlaceholderValue( props, screenSize, border.left.width, 'left', 'width' );\n\tconst leftUnit = geHierarchicalPlaceholderValue( props, screenSize, border.left.unit, 'left', 'unit' );\n\tconst leftColor = geHierarchicalPlaceholderValue( props, screenSize, border.left.color, 'left', 'color' );\n\tconst leftBorderStyle = geHierarchicalPlaceholderValue( props, screenSize, border.left.borderStyle, 'left', 'borderStyle' );\n\n\tlet CSSRule = '';\n\tCSSRule += `${ prefix }-border-top: ${ top }${ topUnit } ${ topBorderStyle } ${ topColor };`;\n\tCSSRule += `${ prefix }-border-right: ${ right }${ rightUnit } ${ rightBorderStyle } ${ rightColor };`;\n\tCSSRule += `${ prefix }-border-bottom: ${ bottom }${ bottomUnit } ${ bottomBorderStyle } ${ bottomColor };`;\n\tCSSRule += `${ prefix }-border-left: ${ left }${ leftUnit } ${ leftBorderStyle } ${ leftColor };`;\n\treturn CSSRule;\n}\n\n/**\n * Get a value placeholder based on hierarchy. If the value is not set, get the value from the parent.\n *\n * @param {Object} props Values object.\n * @param {string} screenSize mobile|tablet|desktop.\n * @param {string} value Current value.\n * @param {string} type Type of value (fontFamily, fontSize, fontWeight, letterSpacing, etc.).\n * @param {string} subType Sub type of value (top: width, unit, color).\n *\n * @return {string} Value placeholder.\n */\nexport function geHierarchicalPlaceholderValue( props, screenSize, value, type, subType = '' ) {\n\t// Check mobile screen size.\n\tif ( 'mobile' === screenSize && '' === value ) {\n\t\t// Check tablet.\n\t\tif ( subType && props.tablet[ type ][ subType ] !== '' ) {\n\t\t\treturn props.tablet[ type ][ subType ];\n\t\t} else if ( subType && props.desktop[ type ][ subType ] !== '' ) {\n\t\t\t// Check desktop.\n\t\t\treturn props.desktop[ type ][ subType ];\n\t\t} else if ( props.tablet[ type ] !== '' ) {\n\t\t\treturn props.tablet[ type ];\n\t\t} else if ( props.desktop[ type ] !== '' ) {\n\t\t\treturn props.desktop[ type ];\n\t\t}\n\t}\n\n\t// Check tablet screen size.\n\tif ( 'tablet' === screenSize && '' === value ) {\n\t\tif ( subType && props.desktop[ type ][ subType ] !== '' ) {\n\t\t\t// Check desktop.\n\t\t\treturn props.desktop[ type ][ subType ];\n\t\t} else if ( props.desktop[ type ] !== '' ) {\n\t\t\treturn props.desktop[ type ];\n\t\t}\n\t}\n\n\tif ( '' !== value ) {\n\t\treturn value;\n\t}\n\n\treturn '';\n}\n\n/**\n * Get a value placeholder based on hierarchy. If the value is not set, get the value from the parent.\n *\n * @param {Object} props Values object.\n * @param {string} screenSize mobile|tablet|desktop.\n * @param {string} value Current value.\n * @param {string} type Type of value (fontSizeUnit, etc.).\n * @param {string} subType Sub type of value (top: width, unit, color).\n *\n * @return {string} Value default or hierarchical value.\n */\nexport function getHierarchicalValueUnit( props, screenSize, value, type, subType = '' ) {\n\t// Check mobile screen size.\n\tif ( 'mobile' === screenSize && null === value ) {\n\t\tif ( subType && props.tablet[ type ][ subType ] !== null ) {\n\t\t\treturn props.tablet[ type ][ subType ];\n\t\t} else if ( subType && props.desktop[ type ][ subType ] !== null ) {\n\t\t\treturn props.desktop[ type ][ subType ];\n\t\t} else if ( props.tablet[ type ] !== null ) {\n\t\t\treturn props.tablet[ type ];\n\t\t} else if ( props.desktop[ type ] !== null ) {\n\t\t\treturn props.desktop[ type ];\n\t\t}\n\t}\n\n\tif ( 'tablet' === screenSize && null === value ) {\n\t\tif ( subType && props.desktop[ type ][ subType ] !== null ) {\n\t\t\treturn props.desktop[ type ][ subType ];\n\t\t} else if ( props.desktop[ type ] !== null ) {\n\t\t\treturn props.desktop[ type ];\n\t\t}\n\t}\n\n\tif ( null === value || typeof value === 'undefined' ) {\n\t\treturn 'px';\n\t}\n\n\treturn value;\n}\n\n/**\n * Get a value based on hierarchy. If the value is not set, get the value from the parent.\n *\n * @param {Object} props Values object.\n * @param {string} screenSize mobile|tablet|desktop.\n * @param {string} value Current value.\n *\n * @return {boolean} Value default or hierarchical value.\n */\nexport function getHierarchicalValueUnitSync( props, screenSize, value ) {\n\t// Check mobile screen size.\n\tif ( 'mobile' === screenSize && null === value ) {\n\t\tif ( null === props.tablet.unitSync ) {\n\t\t\treturn props.desktop.unitSync;\n\t\t}\n\t\treturn props.tablet.unitSync;\n\t}\n\tif ( 'tablet' === screenSize && null === value ) {\n\t\treturn props.desktop.unitSync;\n\t}\n\tif ( null === value ) {\n\t\treturn true;\n\t}\n\treturn value;\n}\n","/* Forked from GenerateBlocks */\nexport default [\n\t// Popular units.\n\t'px',\n\t'em',\n\t'%',\n\t'rem',\n\t'vw',\n\t'vh',\n\t'ch',\n\t// Absolute length units.\n\t'cm',\n\t'mm',\n\t'in',\n\t'pt',\n\t'pc',\n\t// Relative length units.\n\t'ex',\n\t'lh',\n\t'rlh',\n\t'vmin',\n\t'vmax',\n\t'vb',\n\t'vi',\n\t'svw',\n\t'svh',\n\t'svb',\n\t'svi',\n\t'svmax',\n\t'svmin',\n\t'lvw',\n\t'lvh',\n\t'lvb',\n\t'lvi',\n\t'lvmax',\n\t'lvmin',\n\t'dvw',\n\t'dvh',\n\t'dvb',\n\t'dvi',\n\t'dvmax',\n\t'dvmin',\n\t'fr',\n];\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar callBind = require('./');\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n","'use strict';\n\nvar bind = require('function-bind');\nvar GetIntrinsic = require('get-intrinsic');\nvar setFunctionLength = require('set-function-length');\n\nvar $TypeError = require('es-errors/type');\nvar $apply = GetIntrinsic('%Function.prototype.apply%');\nvar $call = GetIntrinsic('%Function.prototype.call%');\nvar $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);\n\nvar $defineProperty = require('es-define-property');\nvar $max = GetIntrinsic('%Math.max%');\n\nmodule.exports = function callBind(originalFunction) {\n\tif (typeof originalFunction !== 'function') {\n\t\tthrow new $TypeError('a function is required');\n\t}\n\tvar func = $reflectApply(bind, $call, arguments);\n\treturn setFunctionLength(\n\t\tfunc,\n\t\t1 + $max(0, originalFunction.length - (arguments.length - 1)),\n\t\ttrue\n\t);\n};\n\nvar applyBind = function applyBind() {\n\treturn $reflectApply(bind, $apply, arguments);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","'use strict';\n\nvar $defineProperty = require('es-define-property');\n\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\n\nvar gopd = require('gopd');\n\n/** @type {import('.')} */\nmodule.exports = function defineDataProperty(\n\tobj,\n\tproperty,\n\tvalue\n) {\n\tif (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {\n\t\tthrow new $TypeError('`obj` must be an object or a function`');\n\t}\n\tif (typeof property !== 'string' && typeof property !== 'symbol') {\n\t\tthrow new $TypeError('`property` must be a string or a symbol`');\n\t}\n\tif (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {\n\t\tthrow new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {\n\t\tthrow new $TypeError('`nonWritable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {\n\t\tthrow new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 6 && typeof arguments[6] !== 'boolean') {\n\t\tthrow new $TypeError('`loose`, if provided, must be a boolean');\n\t}\n\n\tvar nonEnumerable = arguments.length > 3 ? arguments[3] : null;\n\tvar nonWritable = arguments.length > 4 ? arguments[4] : null;\n\tvar nonConfigurable = arguments.length > 5 ? arguments[5] : null;\n\tvar loose = arguments.length > 6 ? arguments[6] : false;\n\n\t/* @type {false | TypedPropertyDescriptor} */\n\tvar desc = !!gopd && gopd(obj, property);\n\n\tif ($defineProperty) {\n\t\t$defineProperty(obj, property, {\n\t\t\tconfigurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,\n\t\t\tenumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,\n\t\t\tvalue: value,\n\t\t\twritable: nonWritable === null && desc ? desc.writable : !nonWritable\n\t\t});\n\t} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {\n\t\t// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable\n\t\tobj[property] = value; // eslint-disable-line no-param-reassign\n\t} else {\n\t\tthrow new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');\n\t}\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.attributeNames = exports.elementNames = void 0;\nexports.elementNames = new Map([\n \"altGlyph\",\n \"altGlyphDef\",\n \"altGlyphItem\",\n \"animateColor\",\n \"animateMotion\",\n \"animateTransform\",\n \"clipPath\",\n \"feBlend\",\n \"feColorMatrix\",\n \"feComponentTransfer\",\n \"feComposite\",\n \"feConvolveMatrix\",\n \"feDiffuseLighting\",\n \"feDisplacementMap\",\n \"feDistantLight\",\n \"feDropShadow\",\n \"feFlood\",\n \"feFuncA\",\n \"feFuncB\",\n \"feFuncG\",\n \"feFuncR\",\n \"feGaussianBlur\",\n \"feImage\",\n \"feMerge\",\n \"feMergeNode\",\n \"feMorphology\",\n \"feOffset\",\n \"fePointLight\",\n \"feSpecularLighting\",\n \"feSpotLight\",\n \"feTile\",\n \"feTurbulence\",\n \"foreignObject\",\n \"glyphRef\",\n \"linearGradient\",\n \"radialGradient\",\n \"textPath\",\n].map(function (val) { return [val.toLowerCase(), val]; }));\nexports.attributeNames = new Map([\n \"definitionURL\",\n \"attributeName\",\n \"attributeType\",\n \"baseFrequency\",\n \"baseProfile\",\n \"calcMode\",\n \"clipPathUnits\",\n \"diffuseConstant\",\n \"edgeMode\",\n \"filterUnits\",\n \"glyphRef\",\n \"gradientTransform\",\n \"gradientUnits\",\n \"kernelMatrix\",\n \"kernelUnitLength\",\n \"keyPoints\",\n \"keySplines\",\n \"keyTimes\",\n \"lengthAdjust\",\n \"limitingConeAngle\",\n \"markerHeight\",\n \"markerUnits\",\n \"markerWidth\",\n \"maskContentUnits\",\n \"maskUnits\",\n \"numOctaves\",\n \"pathLength\",\n \"patternContentUnits\",\n \"patternTransform\",\n \"patternUnits\",\n \"pointsAtX\",\n \"pointsAtY\",\n \"pointsAtZ\",\n \"preserveAlpha\",\n \"preserveAspectRatio\",\n \"primitiveUnits\",\n \"refX\",\n \"refY\",\n \"repeatCount\",\n \"repeatDur\",\n \"requiredExtensions\",\n \"requiredFeatures\",\n \"specularConstant\",\n \"specularExponent\",\n \"spreadMethod\",\n \"startOffset\",\n \"stdDeviation\",\n \"stitchTiles\",\n \"surfaceScale\",\n \"systemLanguage\",\n \"tableValues\",\n \"targetX\",\n \"targetY\",\n \"textLength\",\n \"viewBox\",\n \"viewTarget\",\n \"xChannelSelector\",\n \"yChannelSelector\",\n \"zoomAndPan\",\n].map(function (val) { return [val.toLowerCase(), val]; }));\n","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.render = void 0;\n/*\n * Module dependencies\n */\nvar ElementType = __importStar(require(\"domelementtype\"));\nvar entities_1 = require(\"entities\");\n/**\n * Mixed-case SVG and MathML tags & attributes\n * recognized by the HTML parser.\n *\n * @see https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign\n */\nvar foreignNames_js_1 = require(\"./foreignNames.js\");\nvar unencodedElements = new Set([\n \"style\",\n \"script\",\n \"xmp\",\n \"iframe\",\n \"noembed\",\n \"noframes\",\n \"plaintext\",\n \"noscript\",\n]);\nfunction replaceQuotes(value) {\n return value.replace(/\"/g, \""\");\n}\n/**\n * Format attributes\n */\nfunction formatAttributes(attributes, opts) {\n var _a;\n if (!attributes)\n return;\n var encode = ((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) === false\n ? replaceQuotes\n : opts.xmlMode || opts.encodeEntities !== \"utf8\"\n ? entities_1.encodeXML\n : entities_1.escapeAttribute;\n return Object.keys(attributes)\n .map(function (key) {\n var _a, _b;\n var value = (_a = attributes[key]) !== null && _a !== void 0 ? _a : \"\";\n if (opts.xmlMode === \"foreign\") {\n /* Fix up mixed-case attribute names */\n key = (_b = foreignNames_js_1.attributeNames.get(key)) !== null && _b !== void 0 ? _b : key;\n }\n if (!opts.emptyAttrs && !opts.xmlMode && value === \"\") {\n return key;\n }\n return \"\".concat(key, \"=\\\"\").concat(encode(value), \"\\\"\");\n })\n .join(\" \");\n}\n/**\n * Self-enclosing tags\n */\nvar singleTag = new Set([\n \"area\",\n \"base\",\n \"basefont\",\n \"br\",\n \"col\",\n \"command\",\n \"embed\",\n \"frame\",\n \"hr\",\n \"img\",\n \"input\",\n \"isindex\",\n \"keygen\",\n \"link\",\n \"meta\",\n \"param\",\n \"source\",\n \"track\",\n \"wbr\",\n]);\n/**\n * Renders a DOM node or an array of DOM nodes to a string.\n *\n * Can be thought of as the equivalent of the `outerHTML` of the passed node(s).\n *\n * @param node Node to be rendered.\n * @param options Changes serialization behavior\n */\nfunction render(node, options) {\n if (options === void 0) { options = {}; }\n var nodes = \"length\" in node ? node : [node];\n var output = \"\";\n for (var i = 0; i < nodes.length; i++) {\n output += renderNode(nodes[i], options);\n }\n return output;\n}\nexports.render = render;\nexports.default = render;\nfunction renderNode(node, options) {\n switch (node.type) {\n case ElementType.Root:\n return render(node.children, options);\n // @ts-expect-error We don't use `Doctype` yet\n case ElementType.Doctype:\n case ElementType.Directive:\n return renderDirective(node);\n case ElementType.Comment:\n return renderComment(node);\n case ElementType.CDATA:\n return renderCdata(node);\n case ElementType.Script:\n case ElementType.Style:\n case ElementType.Tag:\n return renderTag(node, options);\n case ElementType.Text:\n return renderText(node, options);\n }\n}\nvar foreignModeIntegrationPoints = new Set([\n \"mi\",\n \"mo\",\n \"mn\",\n \"ms\",\n \"mtext\",\n \"annotation-xml\",\n \"foreignObject\",\n \"desc\",\n \"title\",\n]);\nvar foreignElements = new Set([\"svg\", \"math\"]);\nfunction renderTag(elem, opts) {\n var _a;\n // Handle SVG / MathML in HTML\n if (opts.xmlMode === \"foreign\") {\n /* Fix up mixed-case element names */\n elem.name = (_a = foreignNames_js_1.elementNames.get(elem.name)) !== null && _a !== void 0 ? _a : elem.name;\n /* Exit foreign mode at integration points */\n if (elem.parent &&\n foreignModeIntegrationPoints.has(elem.parent.name)) {\n opts = __assign(__assign({}, opts), { xmlMode: false });\n }\n }\n if (!opts.xmlMode && foreignElements.has(elem.name)) {\n opts = __assign(__assign({}, opts), { xmlMode: \"foreign\" });\n }\n var tag = \"<\".concat(elem.name);\n var attribs = formatAttributes(elem.attribs, opts);\n if (attribs) {\n tag += \" \".concat(attribs);\n }\n if (elem.children.length === 0 &&\n (opts.xmlMode\n ? // In XML mode or foreign mode, and user hasn't explicitly turned off self-closing tags\n opts.selfClosingTags !== false\n : // User explicitly asked for self-closing tags, even in HTML mode\n opts.selfClosingTags && singleTag.has(elem.name))) {\n if (!opts.xmlMode)\n tag += \" \";\n tag += \"/>\";\n }\n else {\n tag += \">\";\n if (elem.children.length > 0) {\n tag += render(elem.children, opts);\n }\n if (opts.xmlMode || !singleTag.has(elem.name)) {\n tag += \"\");\n }\n }\n return tag;\n}\nfunction renderDirective(elem) {\n return \"<\".concat(elem.data, \">\");\n}\nfunction renderText(elem, opts) {\n var _a;\n var data = elem.data || \"\";\n // If entities weren't decoded, no need to encode them back\n if (((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) !== false &&\n !(!opts.xmlMode &&\n elem.parent &&\n unencodedElements.has(elem.parent.name))) {\n data =\n opts.xmlMode || opts.encodeEntities !== \"utf8\"\n ? (0, entities_1.encodeXML)(data)\n : (0, entities_1.escapeText)(data);\n }\n return data;\n}\nfunction renderCdata(elem) {\n return \"\");\n}\nfunction renderComment(elem) {\n return \"\");\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;\n/** Types of elements found in htmlparser2's DOM */\nvar ElementType;\n(function (ElementType) {\n /** Type for the root element of a document */\n ElementType[\"Root\"] = \"root\";\n /** Type for Text */\n ElementType[\"Text\"] = \"text\";\n /** Type for */\n ElementType[\"Directive\"] = \"directive\";\n /** Type for */\n ElementType[\"Comment\"] = \"comment\";\n /** Type for `.\n this.sequenceIndex = Number(c === CharCodes.Lt);\n }\n };\n Tokenizer.prototype.stateCDATASequence = function (c) {\n if (c === Sequences.Cdata[this.sequenceIndex]) {\n if (++this.sequenceIndex === Sequences.Cdata.length) {\n this.state = State.InCommentLike;\n this.currentSequence = Sequences.CdataEnd;\n this.sequenceIndex = 0;\n this.sectionStart = this.index + 1;\n }\n }\n else {\n this.sequenceIndex = 0;\n this.state = State.InDeclaration;\n this.stateInDeclaration(c); // Reconsume the character\n }\n };\n /**\n * When we wait for one specific character, we can speed things up\n * by skipping through the buffer until we find it.\n *\n * @returns Whether the character was found.\n */\n Tokenizer.prototype.fastForwardTo = function (c) {\n while (++this.index < this.buffer.length + this.offset) {\n if (this.buffer.charCodeAt(this.index - this.offset) === c) {\n return true;\n }\n }\n /*\n * We increment the index at the end of the `parse` loop,\n * so set it to `buffer.length - 1` here.\n *\n * TODO: Refactor `parse` to increment index before calling states.\n */\n this.index = this.buffer.length + this.offset - 1;\n return false;\n };\n /**\n * Comments and CDATA end with `-->` and `]]>`.\n *\n * Their common qualities are:\n * - Their end sequences have a distinct character they start with.\n * - That character is then repeated, so we have to check multiple repeats.\n * - All characters but the start character of the sequence can be skipped.\n */\n Tokenizer.prototype.stateInCommentLike = function (c) {\n if (c === this.currentSequence[this.sequenceIndex]) {\n if (++this.sequenceIndex === this.currentSequence.length) {\n if (this.currentSequence === Sequences.CdataEnd) {\n this.cbs.oncdata(this.sectionStart, this.index, 2);\n }\n else {\n this.cbs.oncomment(this.sectionStart, this.index, 2);\n }\n this.sequenceIndex = 0;\n this.sectionStart = this.index + 1;\n this.state = State.Text;\n }\n }\n else if (this.sequenceIndex === 0) {\n // Fast-forward to the first character of the sequence\n if (this.fastForwardTo(this.currentSequence[0])) {\n this.sequenceIndex = 1;\n }\n }\n else if (c !== this.currentSequence[this.sequenceIndex - 1]) {\n // Allow long sequences, eg. --->, ]]]>\n this.sequenceIndex = 0;\n }\n };\n /**\n * HTML only allows ASCII alpha characters (a-z and A-Z) at the beginning of a tag name.\n *\n * XML allows a lot more characters here (@see https://www.w3.org/TR/REC-xml/#NT-NameStartChar).\n * We allow anything that wouldn't end the tag.\n */\n Tokenizer.prototype.isTagStartChar = function (c) {\n return this.xmlMode ? !isEndOfTagSection(c) : isASCIIAlpha(c);\n };\n Tokenizer.prototype.startSpecial = function (sequence, offset) {\n this.isSpecial = true;\n this.currentSequence = sequence;\n this.sequenceIndex = offset;\n this.state = State.SpecialStartSequence;\n };\n Tokenizer.prototype.stateBeforeTagName = function (c) {\n if (c === CharCodes.ExclamationMark) {\n this.state = State.BeforeDeclaration;\n this.sectionStart = this.index + 1;\n }\n else if (c === CharCodes.Questionmark) {\n this.state = State.InProcessingInstruction;\n this.sectionStart = this.index + 1;\n }\n else if (this.isTagStartChar(c)) {\n var lower = c | 0x20;\n this.sectionStart = this.index;\n if (!this.xmlMode && lower === Sequences.TitleEnd[2]) {\n this.startSpecial(Sequences.TitleEnd, 3);\n }\n else {\n this.state =\n !this.xmlMode && lower === Sequences.ScriptEnd[2]\n ? State.BeforeSpecialS\n : State.InTagName;\n }\n }\n else if (c === CharCodes.Slash) {\n this.state = State.BeforeClosingTagName;\n }\n else {\n this.state = State.Text;\n this.stateText(c);\n }\n };\n Tokenizer.prototype.stateInTagName = function (c) {\n if (isEndOfTagSection(c)) {\n this.cbs.onopentagname(this.sectionStart, this.index);\n this.sectionStart = -1;\n this.state = State.BeforeAttributeName;\n this.stateBeforeAttributeName(c);\n }\n };\n Tokenizer.prototype.stateBeforeClosingTagName = function (c) {\n if (isWhitespace(c)) {\n // Ignore\n }\n else if (c === CharCodes.Gt) {\n this.state = State.Text;\n }\n else {\n this.state = this.isTagStartChar(c)\n ? State.InClosingTagName\n : State.InSpecialComment;\n this.sectionStart = this.index;\n }\n };\n Tokenizer.prototype.stateInClosingTagName = function (c) {\n if (c === CharCodes.Gt || isWhitespace(c)) {\n this.cbs.onclosetag(this.sectionStart, this.index);\n this.sectionStart = -1;\n this.state = State.AfterClosingTagName;\n this.stateAfterClosingTagName(c);\n }\n };\n Tokenizer.prototype.stateAfterClosingTagName = function (c) {\n // Skip everything until \">\"\n if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {\n this.state = State.Text;\n this.baseState = State.Text;\n this.sectionStart = this.index + 1;\n }\n };\n Tokenizer.prototype.stateBeforeAttributeName = function (c) {\n if (c === CharCodes.Gt) {\n this.cbs.onopentagend(this.index);\n if (this.isSpecial) {\n this.state = State.InSpecialTag;\n this.sequenceIndex = 0;\n }\n else {\n this.state = State.Text;\n }\n this.baseState = this.state;\n this.sectionStart = this.index + 1;\n }\n else if (c === CharCodes.Slash) {\n this.state = State.InSelfClosingTag;\n }\n else if (!isWhitespace(c)) {\n this.state = State.InAttributeName;\n this.sectionStart = this.index;\n }\n };\n Tokenizer.prototype.stateInSelfClosingTag = function (c) {\n if (c === CharCodes.Gt) {\n this.cbs.onselfclosingtag(this.index);\n this.state = State.Text;\n this.baseState = State.Text;\n this.sectionStart = this.index + 1;\n this.isSpecial = false; // Reset special state, in case of self-closing special tags\n }\n else if (!isWhitespace(c)) {\n this.state = State.BeforeAttributeName;\n this.stateBeforeAttributeName(c);\n }\n };\n Tokenizer.prototype.stateInAttributeName = function (c) {\n if (c === CharCodes.Eq || isEndOfTagSection(c)) {\n this.cbs.onattribname(this.sectionStart, this.index);\n this.sectionStart = -1;\n this.state = State.AfterAttributeName;\n this.stateAfterAttributeName(c);\n }\n };\n Tokenizer.prototype.stateAfterAttributeName = function (c) {\n if (c === CharCodes.Eq) {\n this.state = State.BeforeAttributeValue;\n }\n else if (c === CharCodes.Slash || c === CharCodes.Gt) {\n this.cbs.onattribend(QuoteType.NoValue, this.index);\n this.state = State.BeforeAttributeName;\n this.stateBeforeAttributeName(c);\n }\n else if (!isWhitespace(c)) {\n this.cbs.onattribend(QuoteType.NoValue, this.index);\n this.state = State.InAttributeName;\n this.sectionStart = this.index;\n }\n };\n Tokenizer.prototype.stateBeforeAttributeValue = function (c) {\n if (c === CharCodes.DoubleQuote) {\n this.state = State.InAttributeValueDq;\n this.sectionStart = this.index + 1;\n }\n else if (c === CharCodes.SingleQuote) {\n this.state = State.InAttributeValueSq;\n this.sectionStart = this.index + 1;\n }\n else if (!isWhitespace(c)) {\n this.sectionStart = this.index;\n this.state = State.InAttributeValueNq;\n this.stateInAttributeValueNoQuotes(c); // Reconsume token\n }\n };\n Tokenizer.prototype.handleInAttributeValue = function (c, quote) {\n if (c === quote ||\n (!this.decodeEntities && this.fastForwardTo(quote))) {\n this.cbs.onattribdata(this.sectionStart, this.index);\n this.sectionStart = -1;\n this.cbs.onattribend(quote === CharCodes.DoubleQuote\n ? QuoteType.Double\n : QuoteType.Single, this.index);\n this.state = State.BeforeAttributeName;\n }\n else if (this.decodeEntities && c === CharCodes.Amp) {\n this.baseState = this.state;\n this.state = State.BeforeEntity;\n }\n };\n Tokenizer.prototype.stateInAttributeValueDoubleQuotes = function (c) {\n this.handleInAttributeValue(c, CharCodes.DoubleQuote);\n };\n Tokenizer.prototype.stateInAttributeValueSingleQuotes = function (c) {\n this.handleInAttributeValue(c, CharCodes.SingleQuote);\n };\n Tokenizer.prototype.stateInAttributeValueNoQuotes = function (c) {\n if (isWhitespace(c) || c === CharCodes.Gt) {\n this.cbs.onattribdata(this.sectionStart, this.index);\n this.sectionStart = -1;\n this.cbs.onattribend(QuoteType.Unquoted, this.index);\n this.state = State.BeforeAttributeName;\n this.stateBeforeAttributeName(c);\n }\n else if (this.decodeEntities && c === CharCodes.Amp) {\n this.baseState = this.state;\n this.state = State.BeforeEntity;\n }\n };\n Tokenizer.prototype.stateBeforeDeclaration = function (c) {\n if (c === CharCodes.OpeningSquareBracket) {\n this.state = State.CDATASequence;\n this.sequenceIndex = 0;\n }\n else {\n this.state =\n c === CharCodes.Dash\n ? State.BeforeComment\n : State.InDeclaration;\n }\n };\n Tokenizer.prototype.stateInDeclaration = function (c) {\n if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {\n this.cbs.ondeclaration(this.sectionStart, this.index);\n this.state = State.Text;\n this.sectionStart = this.index + 1;\n }\n };\n Tokenizer.prototype.stateInProcessingInstruction = function (c) {\n if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {\n this.cbs.onprocessinginstruction(this.sectionStart, this.index);\n this.state = State.Text;\n this.sectionStart = this.index + 1;\n }\n };\n Tokenizer.prototype.stateBeforeComment = function (c) {\n if (c === CharCodes.Dash) {\n this.state = State.InCommentLike;\n this.currentSequence = Sequences.CommentEnd;\n // Allow short comments (eg. )\n this.sequenceIndex = 2;\n this.sectionStart = this.index + 1;\n }\n else {\n this.state = State.InDeclaration;\n }\n };\n Tokenizer.prototype.stateInSpecialComment = function (c) {\n if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {\n this.cbs.oncomment(this.sectionStart, this.index, 0);\n this.state = State.Text;\n this.sectionStart = this.index + 1;\n }\n };\n Tokenizer.prototype.stateBeforeSpecialS = function (c) {\n var lower = c | 0x20;\n if (lower === Sequences.ScriptEnd[3]) {\n this.startSpecial(Sequences.ScriptEnd, 4);\n }\n else if (lower === Sequences.StyleEnd[3]) {\n this.startSpecial(Sequences.StyleEnd, 4);\n }\n else {\n this.state = State.InTagName;\n this.stateInTagName(c); // Consume the token again\n }\n };\n Tokenizer.prototype.stateBeforeEntity = function (c) {\n // Start excess with 1 to include the '&'\n this.entityExcess = 1;\n this.entityResult = 0;\n if (c === CharCodes.Number) {\n this.state = State.BeforeNumericEntity;\n }\n else if (c === CharCodes.Amp) {\n // We have two `&` characters in a row. Stay in the current state.\n }\n else {\n this.trieIndex = 0;\n this.trieCurrent = this.entityTrie[0];\n this.state = State.InNamedEntity;\n this.stateInNamedEntity(c);\n }\n };\n Tokenizer.prototype.stateInNamedEntity = function (c) {\n this.entityExcess += 1;\n this.trieIndex = (0, decode_js_1.determineBranch)(this.entityTrie, this.trieCurrent, this.trieIndex + 1, c);\n if (this.trieIndex < 0) {\n this.emitNamedEntity();\n this.index--;\n return;\n }\n this.trieCurrent = this.entityTrie[this.trieIndex];\n var masked = this.trieCurrent & decode_js_1.BinTrieFlags.VALUE_LENGTH;\n // If the branch is a value, store it and continue\n if (masked) {\n // The mask is the number of bytes of the value, including the current byte.\n var valueLength = (masked >> 14) - 1;\n // If we have a legacy entity while parsing strictly, just skip the number of bytes\n if (!this.allowLegacyEntity() && c !== CharCodes.Semi) {\n this.trieIndex += valueLength;\n }\n else {\n // Add 1 as we have already incremented the excess\n var entityStart = this.index - this.entityExcess + 1;\n if (entityStart > this.sectionStart) {\n this.emitPartial(this.sectionStart, entityStart);\n }\n // If this is a surrogate pair, consume the next two bytes\n this.entityResult = this.trieIndex;\n this.trieIndex += valueLength;\n this.entityExcess = 0;\n this.sectionStart = this.index + 1;\n if (valueLength === 0) {\n this.emitNamedEntity();\n }\n }\n }\n };\n Tokenizer.prototype.emitNamedEntity = function () {\n this.state = this.baseState;\n if (this.entityResult === 0) {\n return;\n }\n var valueLength = (this.entityTrie[this.entityResult] & decode_js_1.BinTrieFlags.VALUE_LENGTH) >>\n 14;\n switch (valueLength) {\n case 1: {\n this.emitCodePoint(this.entityTrie[this.entityResult] &\n ~decode_js_1.BinTrieFlags.VALUE_LENGTH);\n break;\n }\n case 2: {\n this.emitCodePoint(this.entityTrie[this.entityResult + 1]);\n break;\n }\n case 3: {\n this.emitCodePoint(this.entityTrie[this.entityResult + 1]);\n this.emitCodePoint(this.entityTrie[this.entityResult + 2]);\n }\n }\n };\n Tokenizer.prototype.stateBeforeNumericEntity = function (c) {\n if ((c | 0x20) === CharCodes.LowerX) {\n this.entityExcess++;\n this.state = State.InHexEntity;\n }\n else {\n this.state = State.InNumericEntity;\n this.stateInNumericEntity(c);\n }\n };\n Tokenizer.prototype.emitNumericEntity = function (strict) {\n var entityStart = this.index - this.entityExcess - 1;\n var numberStart = entityStart + 2 + Number(this.state === State.InHexEntity);\n if (numberStart !== this.index) {\n // Emit leading data if any\n if (entityStart > this.sectionStart) {\n this.emitPartial(this.sectionStart, entityStart);\n }\n this.sectionStart = this.index + Number(strict);\n this.emitCodePoint((0, decode_js_1.replaceCodePoint)(this.entityResult));\n }\n this.state = this.baseState;\n };\n Tokenizer.prototype.stateInNumericEntity = function (c) {\n if (c === CharCodes.Semi) {\n this.emitNumericEntity(true);\n }\n else if (isNumber(c)) {\n this.entityResult = this.entityResult * 10 + (c - CharCodes.Zero);\n this.entityExcess++;\n }\n else {\n if (this.allowLegacyEntity()) {\n this.emitNumericEntity(false);\n }\n else {\n this.state = this.baseState;\n }\n this.index--;\n }\n };\n Tokenizer.prototype.stateInHexEntity = function (c) {\n if (c === CharCodes.Semi) {\n this.emitNumericEntity(true);\n }\n else if (isNumber(c)) {\n this.entityResult = this.entityResult * 16 + (c - CharCodes.Zero);\n this.entityExcess++;\n }\n else if (isHexDigit(c)) {\n this.entityResult =\n this.entityResult * 16 + ((c | 0x20) - CharCodes.LowerA + 10);\n this.entityExcess++;\n }\n else {\n if (this.allowLegacyEntity()) {\n this.emitNumericEntity(false);\n }\n else {\n this.state = this.baseState;\n }\n this.index--;\n }\n };\n Tokenizer.prototype.allowLegacyEntity = function () {\n return (!this.xmlMode &&\n (this.baseState === State.Text ||\n this.baseState === State.InSpecialTag));\n };\n /**\n * Remove data that has already been consumed from the buffer.\n */\n Tokenizer.prototype.cleanup = function () {\n // If we are inside of text or attributes, emit what we already have.\n if (this.running && this.sectionStart !== this.index) {\n if (this.state === State.Text ||\n (this.state === State.InSpecialTag && this.sequenceIndex === 0)) {\n this.cbs.ontext(this.sectionStart, this.index);\n this.sectionStart = this.index;\n }\n else if (this.state === State.InAttributeValueDq ||\n this.state === State.InAttributeValueSq ||\n this.state === State.InAttributeValueNq) {\n this.cbs.onattribdata(this.sectionStart, this.index);\n this.sectionStart = this.index;\n }\n }\n };\n Tokenizer.prototype.shouldContinue = function () {\n return this.index < this.buffer.length + this.offset && this.running;\n };\n /**\n * Iterates through the buffer, calling the function corresponding to the current state.\n *\n * States that are more likely to be hit are higher up, as a performance improvement.\n */\n Tokenizer.prototype.parse = function () {\n while (this.shouldContinue()) {\n var c = this.buffer.charCodeAt(this.index - this.offset);\n switch (this.state) {\n case State.Text: {\n this.stateText(c);\n break;\n }\n case State.SpecialStartSequence: {\n this.stateSpecialStartSequence(c);\n break;\n }\n case State.InSpecialTag: {\n this.stateInSpecialTag(c);\n break;\n }\n case State.CDATASequence: {\n this.stateCDATASequence(c);\n break;\n }\n case State.InAttributeValueDq: {\n this.stateInAttributeValueDoubleQuotes(c);\n break;\n }\n case State.InAttributeName: {\n this.stateInAttributeName(c);\n break;\n }\n case State.InCommentLike: {\n this.stateInCommentLike(c);\n break;\n }\n case State.InSpecialComment: {\n this.stateInSpecialComment(c);\n break;\n }\n case State.BeforeAttributeName: {\n this.stateBeforeAttributeName(c);\n break;\n }\n case State.InTagName: {\n this.stateInTagName(c);\n break;\n }\n case State.InClosingTagName: {\n this.stateInClosingTagName(c);\n break;\n }\n case State.BeforeTagName: {\n this.stateBeforeTagName(c);\n break;\n }\n case State.AfterAttributeName: {\n this.stateAfterAttributeName(c);\n break;\n }\n case State.InAttributeValueSq: {\n this.stateInAttributeValueSingleQuotes(c);\n break;\n }\n case State.BeforeAttributeValue: {\n this.stateBeforeAttributeValue(c);\n break;\n }\n case State.BeforeClosingTagName: {\n this.stateBeforeClosingTagName(c);\n break;\n }\n case State.AfterClosingTagName: {\n this.stateAfterClosingTagName(c);\n break;\n }\n case State.BeforeSpecialS: {\n this.stateBeforeSpecialS(c);\n break;\n }\n case State.InAttributeValueNq: {\n this.stateInAttributeValueNoQuotes(c);\n break;\n }\n case State.InSelfClosingTag: {\n this.stateInSelfClosingTag(c);\n break;\n }\n case State.InDeclaration: {\n this.stateInDeclaration(c);\n break;\n }\n case State.BeforeDeclaration: {\n this.stateBeforeDeclaration(c);\n break;\n }\n case State.BeforeComment: {\n this.stateBeforeComment(c);\n break;\n }\n case State.InProcessingInstruction: {\n this.stateInProcessingInstruction(c);\n break;\n }\n case State.InNamedEntity: {\n this.stateInNamedEntity(c);\n break;\n }\n case State.BeforeEntity: {\n this.stateBeforeEntity(c);\n break;\n }\n case State.InHexEntity: {\n this.stateInHexEntity(c);\n break;\n }\n case State.InNumericEntity: {\n this.stateInNumericEntity(c);\n break;\n }\n default: {\n // `this._state === State.BeforeNumericEntity`\n this.stateBeforeNumericEntity(c);\n }\n }\n this.index++;\n }\n this.cleanup();\n };\n Tokenizer.prototype.finish = function () {\n if (this.state === State.InNamedEntity) {\n this.emitNamedEntity();\n }\n // If there is remaining data, emit it in a reasonable way\n if (this.sectionStart < this.index) {\n this.handleTrailingData();\n }\n this.cbs.onend();\n };\n /** Handle any trailing data. */\n Tokenizer.prototype.handleTrailingData = function () {\n var endIndex = this.buffer.length + this.offset;\n if (this.state === State.InCommentLike) {\n if (this.currentSequence === Sequences.CdataEnd) {\n this.cbs.oncdata(this.sectionStart, endIndex, 0);\n }\n else {\n this.cbs.oncomment(this.sectionStart, endIndex, 0);\n }\n }\n else if (this.state === State.InNumericEntity &&\n this.allowLegacyEntity()) {\n this.emitNumericEntity(false);\n // All trailing data will have been consumed\n }\n else if (this.state === State.InHexEntity &&\n this.allowLegacyEntity()) {\n this.emitNumericEntity(false);\n // All trailing data will have been consumed\n }\n else if (this.state === State.InTagName ||\n this.state === State.BeforeAttributeName ||\n this.state === State.BeforeAttributeValue ||\n this.state === State.AfterAttributeName ||\n this.state === State.InAttributeName ||\n this.state === State.InAttributeValueSq ||\n this.state === State.InAttributeValueDq ||\n this.state === State.InAttributeValueNq ||\n this.state === State.InClosingTagName) {\n /*\n * If we are currently in an opening or closing tag, us not calling the\n * respective callback signals that the tag should be ignored.\n */\n }\n else {\n this.cbs.ontext(this.sectionStart, endIndex);\n }\n };\n Tokenizer.prototype.emitPartial = function (start, endIndex) {\n if (this.baseState !== State.Text &&\n this.baseState !== State.InSpecialTag) {\n this.cbs.onattribdata(start, endIndex);\n }\n else {\n this.cbs.ontext(start, endIndex);\n }\n };\n Tokenizer.prototype.emitCodePoint = function (cp) {\n if (this.baseState !== State.Text &&\n this.baseState !== State.InSpecialTag) {\n this.cbs.onattribentity(cp);\n }\n else {\n this.cbs.ontextentity(cp);\n }\n };\n return Tokenizer;\n}());\nexports.default = Tokenizer;\n//# sourceMappingURL=Tokenizer.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DomUtils = exports.parseFeed = exports.getFeed = exports.ElementType = exports.Tokenizer = exports.createDomStream = exports.parseDOM = exports.parseDocument = exports.DefaultHandler = exports.DomHandler = exports.Parser = void 0;\nvar Parser_js_1 = require(\"./Parser.js\");\nvar Parser_js_2 = require(\"./Parser.js\");\nObject.defineProperty(exports, \"Parser\", { enumerable: true, get: function () { return Parser_js_2.Parser; } });\nvar domhandler_1 = require(\"domhandler\");\nvar domhandler_2 = require(\"domhandler\");\nObject.defineProperty(exports, \"DomHandler\", { enumerable: true, get: function () { return domhandler_2.DomHandler; } });\n// Old name for DomHandler\nObject.defineProperty(exports, \"DefaultHandler\", { enumerable: true, get: function () { return domhandler_2.DomHandler; } });\n// Helper methods\n/**\n * Parses the data, returns the resulting document.\n *\n * @param data The data that should be parsed.\n * @param options Optional options for the parser and DOM builder.\n */\nfunction parseDocument(data, options) {\n var handler = new domhandler_1.DomHandler(undefined, options);\n new Parser_js_1.Parser(handler, options).end(data);\n return handler.root;\n}\nexports.parseDocument = parseDocument;\n/**\n * Parses data, returns an array of the root nodes.\n *\n * Note that the root nodes still have a `Document` node as their parent.\n * Use `parseDocument` to get the `Document` node instead.\n *\n * @param data The data that should be parsed.\n * @param options Optional options for the parser and DOM builder.\n * @deprecated Use `parseDocument` instead.\n */\nfunction parseDOM(data, options) {\n return parseDocument(data, options).children;\n}\nexports.parseDOM = parseDOM;\n/**\n * Creates a parser instance, with an attached DOM handler.\n *\n * @param callback A callback that will be called once parsing has been completed.\n * @param options Optional options for the parser and DOM builder.\n * @param elementCallback An optional callback that will be called every time a tag has been completed inside of the DOM.\n */\nfunction createDomStream(callback, options, elementCallback) {\n var handler = new domhandler_1.DomHandler(callback, options, elementCallback);\n return new Parser_js_1.Parser(handler, options);\n}\nexports.createDomStream = createDomStream;\nvar Tokenizer_js_1 = require(\"./Tokenizer.js\");\nObject.defineProperty(exports, \"Tokenizer\", { enumerable: true, get: function () { return __importDefault(Tokenizer_js_1).default; } });\n/*\n * All of the following exports exist for backwards-compatibility.\n * They should probably be removed eventually.\n */\nexports.ElementType = __importStar(require(\"domelementtype\"));\nvar domutils_1 = require(\"domutils\");\nvar domutils_2 = require(\"domutils\");\nObject.defineProperty(exports, \"getFeed\", { enumerable: true, get: function () { return domutils_2.getFeed; } });\nvar parseFeedDefaultOptions = { xmlMode: true };\n/**\n * Parse a feed.\n *\n * @param feed The feed that should be parsed, as a string.\n * @param options Optionally, options for parsing. When using this, you should set `xmlMode` to `true`.\n */\nfunction parseFeed(feed, options) {\n if (options === void 0) { options = parseFeedDefaultOptions; }\n return (0, domutils_1.getFeed)(parseDOM(feed, options));\n}\nexports.parseFeed = parseFeed;\nexports.DomUtils = __importStar(require(\"domutils\"));\n//# sourceMappingURL=index.js.map","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match words composed of alphanumeric characters. */\nvar reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n/** Used to match Latin Unicode letters (excluding mathematical operators). */\nvar reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe23',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20f0',\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n/** Used to compose unicode capture groups. */\nvar rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')',\n rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match apostrophes. */\nvar reApos = RegExp(rsApos, 'g');\n\n/**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\nvar reComboMark = RegExp(rsCombo, 'g');\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/** Used to match complex or compound words. */\nvar reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')',\n rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr,\n rsUpper + '+' + rsOptUpperContr,\n rsDigits,\n rsEmoji\n].join('|'), 'g');\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']');\n\n/** Used to detect strings that need a more robust regexp to match words. */\nvar reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n/** Used to map Latin Unicode letters to basic Latin letters. */\nvar deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 'ss'\n};\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array ? array.length : 0;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n}\n\n/**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction asciiToArray(string) {\n return string.split('');\n}\n\n/**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction asciiWords(string) {\n return string.match(reAsciiWord) || [];\n}\n\n/**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\nvar deburrLetter = basePropertyOf(deburredLetters);\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\n/**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\nfunction hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n}\n\n/**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n}\n\n/**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction unicodeToArray(string) {\n return string.match(reUnicode) || [];\n}\n\n/**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n}\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\nfunction castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n}\n\n/**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\nfunction createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n}\n\n/**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\nfunction createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\n/**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\nvar camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n});\n\n/**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\nfunction capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n}\n\n/**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\nfunction deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n}\n\n/**\n * Converts the first character of `string` to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.upperFirst('fred');\n * // => 'Fred'\n *\n * _.upperFirst('FRED');\n * // => 'FRED'\n */\nvar upperFirst = createCaseFirst('toUpperCase');\n\n/**\n * Splits `string` into an array of its words.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {RegExp|string} [pattern] The pattern to match words.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the words of `string`.\n * @example\n *\n * _.words('fred, barney, & pebbles');\n * // => ['fred', 'barney', 'pebbles']\n *\n * _.words('fred, barney, & pebbles', /[^, ]+/g);\n * // => ['fred', 'barney', '&', 'pebbles']\n */\nfunction words(string, pattern, guard) {\n string = toString(string);\n pattern = guard ? undefined : pattern;\n\n if (pattern === undefined) {\n return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);\n }\n return string.match(pattern) || [];\n}\n\nmodule.exports = camelCase;\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\nimport { toKebabCase } from './shared/src/utils.js';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({\n color = \"currentColor\",\n size = 24,\n strokeWidth = 2,\n absoluteStrokeWidth,\n className = \"\",\n children,\n ...rest\n }, ref) => {\n return createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: [\"lucide\", `lucide-${toKebabCase(iconName)}`, className].join(\" \"),\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n );\n }\n );\n Component.displayName = `${iconName}`;\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Accessibility = createLucideIcon(\"Accessibility\", [\n [\"circle\", { cx: \"16\", cy: \"4\", r: \"1\", key: \"1grugj\" }],\n [\"path\", { d: \"m18 19 1-7-6 1\", key: \"r0i19z\" }],\n [\"path\", { d: \"m5 8 3-3 5.5 3-2.36 3.5\", key: \"9ptxx2\" }],\n [\"path\", { d: \"M4.24 14.5a5 5 0 0 0 6.88 6\", key: \"10kmtu\" }],\n [\"path\", { d: \"M13.76 17.5a5 5 0 0 0-6.88-6\", key: \"2qq6rc\" }]\n]);\n\nexport { Accessibility as default };\n//# sourceMappingURL=accessibility.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst AlignCenter = createLucideIcon(\"AlignCenter\", [\n [\"line\", { x1: \"21\", x2: \"3\", y1: \"6\", y2: \"6\", key: \"1fp77t\" }],\n [\"line\", { x1: \"17\", x2: \"7\", y1: \"12\", y2: \"12\", key: \"rsh8ii\" }],\n [\"line\", { x1: \"19\", x2: \"5\", y1: \"18\", y2: \"18\", key: \"1t0tuv\" }]\n]);\n\nexport { AlignCenter as default };\n//# sourceMappingURL=align-center.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst AlignLeft = createLucideIcon(\"AlignLeft\", [\n [\"line\", { x1: \"21\", x2: \"3\", y1: \"6\", y2: \"6\", key: \"1fp77t\" }],\n [\"line\", { x1: \"15\", x2: \"3\", y1: \"12\", y2: \"12\", key: \"v6grx8\" }],\n [\"line\", { x1: \"17\", x2: \"3\", y1: \"18\", y2: \"18\", key: \"1awlsn\" }]\n]);\n\nexport { AlignLeft as default };\n//# sourceMappingURL=align-left.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst AlignRight = createLucideIcon(\"AlignRight\", [\n [\"line\", { x1: \"21\", x2: \"3\", y1: \"6\", y2: \"6\", key: \"1fp77t\" }],\n [\"line\", { x1: \"21\", x2: \"9\", y1: \"12\", y2: \"12\", key: \"1uyos4\" }],\n [\"line\", { x1: \"21\", x2: \"7\", y1: \"18\", y2: \"18\", key: \"1g9eri\" }]\n]);\n\nexport { AlignRight as default };\n//# sourceMappingURL=align-right.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst ArrowBigLeftDash = createLucideIcon(\"ArrowBigLeftDash\", [\n [\"path\", { d: \"M19 15V9\", key: \"1hci5f\" }],\n [\"path\", { d: \"M15 15h-3v4l-7-7 7-7v4h3v6z\", key: \"16tjna\" }]\n]);\n\nexport { ArrowBigLeftDash as default };\n//# sourceMappingURL=arrow-big-left-dash.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Captions = createLucideIcon(\"Captions\", [\n [\"rect\", { width: \"18\", height: \"14\", x: \"3\", y: \"5\", rx: \"2\", ry: \"2\", key: \"12ruh7\" }],\n [\"path\", { d: \"M7 15h4M15 15h2M7 11h2M13 11h4\", key: \"1ueiar\" }]\n]);\n\nexport { Captions as default };\n//# sourceMappingURL=captions.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Check = createLucideIcon(\"Check\", [[\"path\", { d: \"M20 6 9 17l-5-5\", key: \"1gmf2c\" }]]);\n\nexport { Check as default };\n//# sourceMappingURL=check.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst CircleAlert = createLucideIcon(\"CircleAlert\", [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"line\", { x1: \"12\", x2: \"12\", y1: \"8\", y2: \"12\", key: \"1pkeuh\" }],\n [\"line\", { x1: \"12\", x2: \"12.01\", y1: \"16\", y2: \"16\", key: \"4dfq90\" }]\n]);\n\nexport { CircleAlert as default };\n//# sourceMappingURL=circle-alert.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst CircleMinus = createLucideIcon(\"CircleMinus\", [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"path\", { d: \"M8 12h8\", key: \"1wcyev\" }]\n]);\n\nexport { CircleMinus as default };\n//# sourceMappingURL=circle-minus.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst CircleX = createLucideIcon(\"CircleX\", [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"path\", { d: \"m15 9-6 6\", key: \"1uzhvr\" }],\n [\"path\", { d: \"m9 9 6 6\", key: \"z0biqf\" }]\n]);\n\nexport { CircleX as default };\n//# sourceMappingURL=circle-x.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst CornerDownLeft = createLucideIcon(\"CornerDownLeft\", [\n [\"polyline\", { points: \"9 10 4 15 9 20\", key: \"r3jprv\" }],\n [\"path\", { d: \"M20 4v7a4 4 0 0 1-4 4H4\", key: \"6o5b7l\" }]\n]);\n\nexport { CornerDownLeft as default };\n//# sourceMappingURL=corner-down-left.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Crop = createLucideIcon(\"Crop\", [\n [\"path\", { d: \"M6 2v14a2 2 0 0 0 2 2h14\", key: \"ron5a4\" }],\n [\"path\", { d: \"M18 22V8a2 2 0 0 0-2-2H2\", key: \"7s9ehn\" }]\n]);\n\nexport { Crop as default };\n//# sourceMappingURL=crop.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Download = createLucideIcon(\"Download\", [\n [\"path\", { d: \"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\", key: \"ih7n3h\" }],\n [\"polyline\", { points: \"7 10 12 15 17 10\", key: \"2ggqvy\" }],\n [\"line\", { x1: \"12\", x2: \"12\", y1: \"15\", y2: \"3\", key: \"1vk2je\" }]\n]);\n\nexport { Download as default };\n//# sourceMappingURL=download.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Droplet = createLucideIcon(\"Droplet\", [\n [\n \"path\",\n {\n d: \"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z\",\n key: \"c7niix\"\n }\n ]\n]);\n\nexport { Droplet as default };\n//# sourceMappingURL=droplet.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst ExternalLink = createLucideIcon(\"ExternalLink\", [\n [\"path\", { d: \"M15 3h6v6\", key: \"1q9fwt\" }],\n [\"path\", { d: \"M10 14 21 3\", key: \"gplh6r\" }],\n [\"path\", { d: \"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\", key: \"a6xqqp\" }]\n]);\n\nexport { ExternalLink as default };\n//# sourceMappingURL=external-link.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst FileImage = createLucideIcon(\"FileImage\", [\n [\"path\", { d: \"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\", key: \"1rqfz7\" }],\n [\"path\", { d: \"M14 2v4a2 2 0 0 0 2 2h4\", key: \"tnqrlb\" }],\n [\"circle\", { cx: \"10\", cy: \"12\", r: \"2\", key: \"737tya\" }],\n [\"path\", { d: \"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22\", key: \"wt3hpn\" }]\n]);\n\nexport { FileImage as default };\n//# sourceMappingURL=file-image.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst FileText = createLucideIcon(\"FileText\", [\n [\"path\", { d: \"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\", key: \"1rqfz7\" }],\n [\"path\", { d: \"M14 2v4a2 2 0 0 0 2 2h4\", key: \"tnqrlb\" }],\n [\"path\", { d: \"M10 9H8\", key: \"b1mrlr\" }],\n [\"path\", { d: \"M16 13H8\", key: \"t4e002\" }],\n [\"path\", { d: \"M16 17H8\", key: \"z1uh3a\" }]\n]);\n\nexport { FileText as default };\n//# sourceMappingURL=file-text.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst File = createLucideIcon(\"File\", [\n [\"path\", { d: \"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\", key: \"1rqfz7\" }],\n [\"path\", { d: \"M14 2v4a2 2 0 0 0 2 2h4\", key: \"tnqrlb\" }]\n]);\n\nexport { File as default };\n//# sourceMappingURL=file.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Globe = createLucideIcon(\"Globe\", [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"path\", { d: \"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20\", key: \"13o1zl\" }],\n [\"path\", { d: \"M2 12h20\", key: \"9i4pu4\" }]\n]);\n\nexport { Globe as default };\n//# sourceMappingURL=globe.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst ImagePlus = createLucideIcon(\"ImagePlus\", [\n [\"path\", { d: \"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7\", key: \"31hg93\" }],\n [\"line\", { x1: \"16\", x2: \"22\", y1: \"5\", y2: \"5\", key: \"ez7e4s\" }],\n [\"line\", { x1: \"19\", x2: \"19\", y1: \"2\", y2: \"8\", key: \"1gkr8c\" }],\n [\"circle\", { cx: \"9\", cy: \"9\", r: \"2\", key: \"af1f0g\" }],\n [\"path\", { d: \"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21\", key: \"1xmnt7\" }]\n]);\n\nexport { ImagePlus as default };\n//# sourceMappingURL=image-plus.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Image = createLucideIcon(\"Image\", [\n [\"rect\", { width: \"18\", height: \"18\", x: \"3\", y: \"3\", rx: \"2\", ry: \"2\", key: \"1m3agn\" }],\n [\"circle\", { cx: \"9\", cy: \"9\", r: \"2\", key: \"af1f0g\" }],\n [\"path\", { d: \"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21\", key: \"1xmnt7\" }]\n]);\n\nexport { Image as default };\n//# sourceMappingURL=image.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Info = createLucideIcon(\"Info\", [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"path\", { d: \"M12 16v-4\", key: \"1dtifu\" }],\n [\"path\", { d: \"M12 8h.01\", key: \"e9boi3\" }]\n]);\n\nexport { Info as default };\n//# sourceMappingURL=info.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Link2Off = createLucideIcon(\"Link2Off\", [\n [\"path\", { d: \"M9 17H7A5 5 0 0 1 7 7\", key: \"10o201\" }],\n [\"path\", { d: \"M15 7h2a5 5 0 0 1 4 8\", key: \"1d3206\" }],\n [\"line\", { x1: \"8\", x2: \"12\", y1: \"12\", y2: \"12\", key: \"rvw6j4\" }],\n [\"line\", { x1: \"2\", x2: \"22\", y1: \"2\", y2: \"22\", key: \"a6p6uj\" }]\n]);\n\nexport { Link2Off as default };\n//# sourceMappingURL=link-2-off.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Link2 = createLucideIcon(\"Link2\", [\n [\"path\", { d: \"M9 17H7A5 5 0 0 1 7 7h2\", key: \"8i5ue5\" }],\n [\"path\", { d: \"M15 7h2a5 5 0 1 1 0 10h-2\", key: \"1b9ql8\" }],\n [\"line\", { x1: \"8\", x2: \"16\", y1: \"12\", y2: \"12\", key: \"1jonct\" }]\n]);\n\nexport { Link2 as default };\n//# sourceMappingURL=link-2.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Link = createLucideIcon(\"Link\", [\n [\"path\", { d: \"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\", key: \"1cjeqo\" }],\n [\"path\", { d: \"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\", key: \"19qd67\" }]\n]);\n\nexport { Link as default };\n//# sourceMappingURL=link.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst LoaderCircle = createLucideIcon(\"LoaderCircle\", [\n [\"path\", { d: \"M21 12a9 9 0 1 1-6.219-8.56\", key: \"13zald\" }]\n]);\n\nexport { LoaderCircle as default };\n//# sourceMappingURL=loader-circle.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Lock = createLucideIcon(\"Lock\", [\n [\"rect\", { width: \"18\", height: \"11\", x: \"3\", y: \"11\", rx: \"2\", ry: \"2\", key: \"1w4ew1\" }],\n [\"path\", { d: \"M7 11V7a5 5 0 0 1 10 0v4\", key: \"fwvmzm\" }]\n]);\n\nexport { Lock as default };\n//# sourceMappingURL=lock.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Maximize = createLucideIcon(\"Maximize\", [\n [\"path\", { d: \"M8 3H5a2 2 0 0 0-2 2v3\", key: \"1dcmit\" }],\n [\"path\", { d: \"M21 8V5a2 2 0 0 0-2-2h-3\", key: \"1e4gt3\" }],\n [\"path\", { d: \"M3 16v3a2 2 0 0 0 2 2h3\", key: \"wsl5sc\" }],\n [\"path\", { d: \"M16 21h3a2 2 0 0 0 2-2v-3\", key: \"18trek\" }]\n]);\n\nexport { Maximize as default };\n//# sourceMappingURL=maximize.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Monitor = createLucideIcon(\"Monitor\", [\n [\"rect\", { width: \"20\", height: \"14\", x: \"2\", y: \"3\", rx: \"2\", key: \"48i651\" }],\n [\"line\", { x1: \"8\", x2: \"16\", y1: \"21\", y2: \"21\", key: \"1svkeh\" }],\n [\"line\", { x1: \"12\", x2: \"12\", y1: \"17\", y2: \"21\", key: \"vw1qmm\" }]\n]);\n\nexport { Monitor as default };\n//# sourceMappingURL=monitor.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Palette = createLucideIcon(\"Palette\", [\n [\"circle\", { cx: \"13.5\", cy: \"6.5\", r: \".5\", fill: \"currentColor\", key: \"1okk4w\" }],\n [\"circle\", { cx: \"17.5\", cy: \"10.5\", r: \".5\", fill: \"currentColor\", key: \"f64h9f\" }],\n [\"circle\", { cx: \"8.5\", cy: \"7.5\", r: \".5\", fill: \"currentColor\", key: \"fotxhn\" }],\n [\"circle\", { cx: \"6.5\", cy: \"12.5\", r: \".5\", fill: \"currentColor\", key: \"qy21gx\" }],\n [\n \"path\",\n {\n d: \"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z\",\n key: \"12rzf8\"\n }\n ]\n]);\n\nexport { Palette as default };\n//# sourceMappingURL=palette.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Pencil = createLucideIcon(\"Pencil\", [\n [\"path\", { d: \"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z\", key: \"5qss01\" }],\n [\"path\", { d: \"m15 5 4 4\", key: \"1mk7zo\" }]\n]);\n\nexport { Pencil as default };\n//# sourceMappingURL=pencil.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst RectangleEllipsis = createLucideIcon(\"RectangleEllipsis\", [\n [\"rect\", { width: \"20\", height: \"12\", x: \"2\", y: \"6\", rx: \"2\", key: \"9lu3g6\" }],\n [\"path\", { d: \"M12 12h.01\", key: \"1mp3jc\" }],\n [\"path\", { d: \"M17 12h.01\", key: \"1m0b6t\" }],\n [\"path\", { d: \"M7 12h.01\", key: \"eqddd0\" }]\n]);\n\nexport { RectangleEllipsis as default };\n//# sourceMappingURL=rectangle-ellipsis.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Redo2 = createLucideIcon(\"Redo2\", [\n [\"path\", { d: \"m15 14 5-5-5-5\", key: \"12vg1m\" }],\n [\"path\", { d: \"M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13\", key: \"19mnr4\" }]\n]);\n\nexport { Redo2 as default };\n//# sourceMappingURL=redo-2.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst RotateCcw = createLucideIcon(\"RotateCcw\", [\n [\"path\", { d: \"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8\", key: \"1357e3\" }],\n [\"path\", { d: \"M3 3v5h5\", key: \"1xhq8a\" }]\n]);\n\nexport { RotateCcw as default };\n//# sourceMappingURL=rotate-ccw.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst RotateCw = createLucideIcon(\"RotateCw\", [\n [\"path\", { d: \"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8\", key: \"1p45f6\" }],\n [\"path\", { d: \"M21 3v5h-5\", key: \"1q7to0\" }]\n]);\n\nexport { RotateCw as default };\n//# sourceMappingURL=rotate-cw.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Save = createLucideIcon(\"Save\", [\n [\"path\", { d: \"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z\", key: \"1owoqh\" }],\n [\"polyline\", { points: \"17 21 17 13 7 13 7 21\", key: \"1md35c\" }],\n [\"polyline\", { points: \"7 3 7 8 15 8\", key: \"8nz8an\" }]\n]);\n\nexport { Save as default };\n//# sourceMappingURL=save.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Search = createLucideIcon(\"Search\", [\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\", key: \"4ej97u\" }],\n [\"path\", { d: \"m21 21-4.3-4.3\", key: \"1qie3q\" }]\n]);\n\nexport { Search as default };\n//# sourceMappingURL=search.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst SeparatorHorizontal = createLucideIcon(\"SeparatorHorizontal\", [\n [\"line\", { x1: \"3\", x2: \"21\", y1: \"12\", y2: \"12\", key: \"10d38w\" }],\n [\"polyline\", { points: \"8 8 12 4 16 8\", key: \"zo8t4w\" }],\n [\"polyline\", { points: \"16 16 12 20 8 16\", key: \"1oyrid\" }]\n]);\n\nexport { SeparatorHorizontal as default };\n//# sourceMappingURL=separator-horizontal.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Shrink = createLucideIcon(\"Shrink\", [\n [\"path\", { d: \"m15 15 6 6m-6-6v4.8m0-4.8h4.8\", key: \"17vawe\" }],\n [\"path\", { d: \"M9 19.8V15m0 0H4.2M9 15l-6 6\", key: \"chjx8e\" }],\n [\"path\", { d: \"M15 4.2V9m0 0h4.8M15 9l6-6\", key: \"lav6yq\" }],\n [\"path\", { d: \"M9 4.2V9m0 0H4.2M9 9 3 3\", key: \"1pxi2q\" }]\n]);\n\nexport { Shrink as default };\n//# sourceMappingURL=shrink.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Shuffle = createLucideIcon(\"Shuffle\", [\n [\"path\", { d: \"M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22\", key: \"1wmou1\" }],\n [\"path\", { d: \"m18 2 4 4-4 4\", key: \"pucp1d\" }],\n [\"path\", { d: \"M2 6h1.9c1.5 0 2.9.9 3.6 2.2\", key: \"10bdb2\" }],\n [\"path\", { d: \"M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8\", key: \"vgxac0\" }],\n [\"path\", { d: \"m18 14 4 4-4 4\", key: \"10pe0f\" }]\n]);\n\nexport { Shuffle as default };\n//# sourceMappingURL=shuffle.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Smartphone = createLucideIcon(\"Smartphone\", [\n [\"rect\", { width: \"14\", height: \"20\", x: \"5\", y: \"2\", rx: \"2\", ry: \"2\", key: \"1yt0o3\" }],\n [\"path\", { d: \"M12 18h.01\", key: \"mhygvu\" }]\n]);\n\nexport { Smartphone as default };\n//# sourceMappingURL=smartphone.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Tablet = createLucideIcon(\"Tablet\", [\n [\"rect\", { width: \"16\", height: \"20\", x: \"4\", y: \"2\", rx: \"2\", ry: \"2\", key: \"76otgf\" }],\n [\"line\", { x1: \"12\", x2: \"12.01\", y1: \"18\", y2: \"18\", key: \"1dp563\" }]\n]);\n\nexport { Tablet as default };\n//# sourceMappingURL=tablet.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Trash2 = createLucideIcon(\"Trash2\", [\n [\"path\", { d: \"M3 6h18\", key: \"d0wm0j\" }],\n [\"path\", { d: \"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6\", key: \"4alrt4\" }],\n [\"path\", { d: \"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2\", key: \"v07s0e\" }],\n [\"line\", { x1: \"10\", x2: \"10\", y1: \"11\", y2: \"17\", key: \"1uufr5\" }],\n [\"line\", { x1: \"14\", x2: \"14\", y1: \"11\", y2: \"17\", key: \"xtxkd\" }]\n]);\n\nexport { Trash2 as default };\n//# sourceMappingURL=trash-2.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Trash = createLucideIcon(\"Trash\", [\n [\"path\", { d: \"M3 6h18\", key: \"d0wm0j\" }],\n [\"path\", { d: \"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6\", key: \"4alrt4\" }],\n [\"path\", { d: \"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2\", key: \"v07s0e\" }]\n]);\n\nexport { Trash as default };\n//# sourceMappingURL=trash.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Undo2 = createLucideIcon(\"Undo2\", [\n [\"path\", { d: \"M9 14 4 9l5-5\", key: \"102s5s\" }],\n [\"path\", { d: \"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11\", key: \"llx8ln\" }]\n]);\n\nexport { Undo2 as default };\n//# sourceMappingURL=undo-2.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Unlink = createLucideIcon(\"Unlink\", [\n [\n \"path\",\n {\n d: \"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71\",\n key: \"yqzxt4\"\n }\n ],\n [\n \"path\",\n {\n d: \"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71\",\n key: \"4qinb0\"\n }\n ],\n [\"line\", { x1: \"8\", x2: \"8\", y1: \"2\", y2: \"5\", key: \"1041cp\" }],\n [\"line\", { x1: \"2\", x2: \"5\", y1: \"8\", y2: \"8\", key: \"14m1p5\" }],\n [\"line\", { x1: \"16\", x2: \"16\", y1: \"19\", y2: \"22\", key: \"rzdirn\" }],\n [\"line\", { x1: \"19\", x2: \"22\", y1: \"16\", y2: \"16\", key: \"ox905f\" }]\n]);\n\nexport { Unlink as default };\n//# sourceMappingURL=unlink.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Upload = createLucideIcon(\"Upload\", [\n [\"path\", { d: \"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\", key: \"ih7n3h\" }],\n [\"polyline\", { points: \"17 8 12 3 7 8\", key: \"t8dd8p\" }],\n [\"line\", { x1: \"12\", x2: \"12\", y1: \"3\", y2: \"15\", key: \"widbto\" }]\n]);\n\nexport { Upload as default };\n//# sourceMappingURL=upload.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst WandSparkles = createLucideIcon(\"WandSparkles\", [\n [\n \"path\",\n {\n d: \"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72\",\n key: \"ul74o6\"\n }\n ],\n [\"path\", { d: \"m14 7 3 3\", key: \"1r5n42\" }],\n [\"path\", { d: \"M5 6v4\", key: \"ilb8ba\" }],\n [\"path\", { d: \"M19 14v4\", key: \"blhpug\" }],\n [\"path\", { d: \"M10 2v2\", key: \"7u0qdc\" }],\n [\"path\", { d: \"M7 8H3\", key: \"zfb6yr\" }],\n [\"path\", { d: \"M21 16h-4\", key: \"1cnmox\" }],\n [\"path\", { d: \"M11 3H9\", key: \"1obp7u\" }]\n]);\n\nexport { WandSparkles as default };\n//# sourceMappingURL=wand-sparkles.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst X = createLucideIcon(\"X\", [\n [\"path\", { d: \"M18 6 6 18\", key: \"1bl5f8\" }],\n [\"path\", { d: \"m6 6 12 12\", key: \"d8bk6v\" }]\n]);\n\nexport { X as default };\n//# sourceMappingURL=x.js.map\n","/**\n * @license lucide-react v0.359.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\n\nexport { toKebabCase };\n//# sourceMappingURL=utils.js.map\n","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","var hasMap = typeof Map === 'function' && Map.prototype;\nvar mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;\nvar mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;\nvar mapForEach = hasMap && Map.prototype.forEach;\nvar hasSet = typeof Set === 'function' && Set.prototype;\nvar setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;\nvar setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;\nvar setForEach = hasSet && Set.prototype.forEach;\nvar hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;\nvar weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;\nvar hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;\nvar weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;\nvar hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;\nvar weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;\nvar booleanValueOf = Boolean.prototype.valueOf;\nvar objectToString = Object.prototype.toString;\nvar functionToString = Function.prototype.toString;\nvar $match = String.prototype.match;\nvar $slice = String.prototype.slice;\nvar $replace = String.prototype.replace;\nvar $toUpperCase = String.prototype.toUpperCase;\nvar $toLowerCase = String.prototype.toLowerCase;\nvar $test = RegExp.prototype.test;\nvar $concat = Array.prototype.concat;\nvar $join = Array.prototype.join;\nvar $arrSlice = Array.prototype.slice;\nvar $floor = Math.floor;\nvar bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;\nvar gOPS = Object.getOwnPropertySymbols;\nvar symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;\nvar hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';\n// ie, `has-tostringtag/shams\nvar toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')\n ? Symbol.toStringTag\n : null;\nvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\nvar gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (\n [].__proto__ === Array.prototype // eslint-disable-line no-proto\n ? function (O) {\n return O.__proto__; // eslint-disable-line no-proto\n }\n : null\n);\n\nfunction addNumericSeparator(num, str) {\n if (\n num === Infinity\n || num === -Infinity\n || num !== num\n || (num && num > -1000 && num < 1000)\n || $test.call(/e/, str)\n ) {\n return str;\n }\n var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;\n if (typeof num === 'number') {\n var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)\n if (int !== num) {\n var intStr = String(int);\n var dec = $slice.call(str, intStr.length + 1);\n return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');\n }\n }\n return $replace.call(str, sepRegex, '$&_');\n}\n\nvar utilInspect = require('./util.inspect');\nvar inspectCustom = utilInspect.custom;\nvar inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;\n\nmodule.exports = function inspect_(obj, options, depth, seen) {\n var opts = options || {};\n\n if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {\n throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');\n }\n if (\n has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'\n ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity\n : opts.maxStringLength !== null\n )\n ) {\n throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');\n }\n var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;\n if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {\n throw new TypeError('option \"customInspect\", if provided, must be `true`, `false`, or `\\'symbol\\'`');\n }\n\n if (\n has(opts, 'indent')\n && opts.indent !== null\n && opts.indent !== '\\t'\n && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)\n ) {\n throw new TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');\n }\n if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {\n throw new TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');\n }\n var numericSeparator = opts.numericSeparator;\n\n if (typeof obj === 'undefined') {\n return 'undefined';\n }\n if (obj === null) {\n return 'null';\n }\n if (typeof obj === 'boolean') {\n return obj ? 'true' : 'false';\n }\n\n if (typeof obj === 'string') {\n return inspectString(obj, opts);\n }\n if (typeof obj === 'number') {\n if (obj === 0) {\n return Infinity / obj > 0 ? '0' : '-0';\n }\n var str = String(obj);\n return numericSeparator ? addNumericSeparator(obj, str) : str;\n }\n if (typeof obj === 'bigint') {\n var bigIntStr = String(obj) + 'n';\n return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;\n }\n\n var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;\n if (typeof depth === 'undefined') { depth = 0; }\n if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {\n return isArray(obj) ? '[Array]' : '[Object]';\n }\n\n var indent = getIndent(opts, depth);\n\n if (typeof seen === 'undefined') {\n seen = [];\n } else if (indexOf(seen, obj) >= 0) {\n return '[Circular]';\n }\n\n function inspect(value, from, noIndent) {\n if (from) {\n seen = $arrSlice.call(seen);\n seen.push(from);\n }\n if (noIndent) {\n var newOpts = {\n depth: opts.depth\n };\n if (has(opts, 'quoteStyle')) {\n newOpts.quoteStyle = opts.quoteStyle;\n }\n return inspect_(value, newOpts, depth + 1, seen);\n }\n return inspect_(value, opts, depth + 1, seen);\n }\n\n if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable\n var name = nameOf(obj);\n var keys = arrObjKeys(obj, inspect);\n return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');\n }\n if (isSymbol(obj)) {\n var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\\(.*\\))_[^)]*$/, '$1') : symToString.call(obj);\n return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;\n }\n if (isElement(obj)) {\n var s = '<' + $toLowerCase.call(String(obj.nodeName));\n var attrs = obj.attributes || [];\n for (var i = 0; i < attrs.length; i++) {\n s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);\n }\n s += '>';\n if (obj.childNodes && obj.childNodes.length) { s += '...'; }\n s += '';\n return s;\n }\n if (isArray(obj)) {\n if (obj.length === 0) { return '[]'; }\n var xs = arrObjKeys(obj, inspect);\n if (indent && !singleLineValues(xs)) {\n return '[' + indentedJoin(xs, indent) + ']';\n }\n return '[ ' + $join.call(xs, ', ') + ' ]';\n }\n if (isError(obj)) {\n var parts = arrObjKeys(obj, inspect);\n if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {\n return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';\n }\n if (parts.length === 0) { return '[' + String(obj) + ']'; }\n return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';\n }\n if (typeof obj === 'object' && customInspect) {\n if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {\n return utilInspect(obj, { depth: maxDepth - depth });\n } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {\n return obj.inspect();\n }\n }\n if (isMap(obj)) {\n var mapParts = [];\n if (mapForEach) {\n mapForEach.call(obj, function (value, key) {\n mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));\n });\n }\n return collectionOf('Map', mapSize.call(obj), mapParts, indent);\n }\n if (isSet(obj)) {\n var setParts = [];\n if (setForEach) {\n setForEach.call(obj, function (value) {\n setParts.push(inspect(value, obj));\n });\n }\n return collectionOf('Set', setSize.call(obj), setParts, indent);\n }\n if (isWeakMap(obj)) {\n return weakCollectionOf('WeakMap');\n }\n if (isWeakSet(obj)) {\n return weakCollectionOf('WeakSet');\n }\n if (isWeakRef(obj)) {\n return weakCollectionOf('WeakRef');\n }\n if (isNumber(obj)) {\n return markBoxed(inspect(Number(obj)));\n }\n if (isBigInt(obj)) {\n return markBoxed(inspect(bigIntValueOf.call(obj)));\n }\n if (isBoolean(obj)) {\n return markBoxed(booleanValueOf.call(obj));\n }\n if (isString(obj)) {\n return markBoxed(inspect(String(obj)));\n }\n // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other\n /* eslint-env browser */\n if (typeof window !== 'undefined' && obj === window) {\n return '{ [object Window] }';\n }\n if (obj === global) {\n return '{ [object globalThis] }';\n }\n if (!isDate(obj) && !isRegExp(obj)) {\n var ys = arrObjKeys(obj, inspect);\n var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;\n var protoTag = obj instanceof Object ? '' : 'null prototype';\n var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';\n var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';\n var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');\n if (ys.length === 0) { return tag + '{}'; }\n if (indent) {\n return tag + '{' + indentedJoin(ys, indent) + '}';\n }\n return tag + '{ ' + $join.call(ys, ', ') + ' }';\n }\n return String(obj);\n};\n\nfunction wrapQuotes(s, defaultStyle, opts) {\n var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '\"' : \"'\";\n return quoteChar + s + quoteChar;\n}\n\nfunction quote(s) {\n return $replace.call(String(s), /\"/g, '"');\n}\n\nfunction isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\n\n// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives\nfunction isSymbol(obj) {\n if (hasShammedSymbols) {\n return obj && typeof obj === 'object' && obj instanceof Symbol;\n }\n if (typeof obj === 'symbol') {\n return true;\n }\n if (!obj || typeof obj !== 'object' || !symToString) {\n return false;\n }\n try {\n symToString.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isBigInt(obj) {\n if (!obj || typeof obj !== 'object' || !bigIntValueOf) {\n return false;\n }\n try {\n bigIntValueOf.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nvar hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };\nfunction has(obj, key) {\n return hasOwn.call(obj, key);\n}\n\nfunction toStr(obj) {\n return objectToString.call(obj);\n}\n\nfunction nameOf(f) {\n if (f.name) { return f.name; }\n var m = $match.call(functionToString.call(f), /^function\\s*([\\w$]+)/);\n if (m) { return m[1]; }\n return null;\n}\n\nfunction indexOf(xs, x) {\n if (xs.indexOf) { return xs.indexOf(x); }\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) { return i; }\n }\n return -1;\n}\n\nfunction isMap(x) {\n if (!mapSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n mapSize.call(x);\n try {\n setSize.call(x);\n } catch (s) {\n return true;\n }\n return x instanceof Map; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakMap(x) {\n if (!weakMapHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakMapHas.call(x, weakMapHas);\n try {\n weakSetHas.call(x, weakSetHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakMap; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakRef(x) {\n if (!weakRefDeref || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakRefDeref.call(x);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isSet(x) {\n if (!setSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n setSize.call(x);\n try {\n mapSize.call(x);\n } catch (m) {\n return true;\n }\n return x instanceof Set; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakSet(x) {\n if (!weakSetHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakSetHas.call(x, weakSetHas);\n try {\n weakMapHas.call(x, weakMapHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakSet; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isElement(x) {\n if (!x || typeof x !== 'object') { return false; }\n if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {\n return true;\n }\n return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';\n}\n\nfunction inspectString(str, opts) {\n if (str.length > opts.maxStringLength) {\n var remaining = str.length - opts.maxStringLength;\n var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');\n return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;\n }\n // eslint-disable-next-line no-control-regex\n var s = $replace.call($replace.call(str, /(['\\\\])/g, '\\\\$1'), /[\\x00-\\x1f]/g, lowbyte);\n return wrapQuotes(s, 'single', opts);\n}\n\nfunction lowbyte(c) {\n var n = c.charCodeAt(0);\n var x = {\n 8: 'b',\n 9: 't',\n 10: 'n',\n 12: 'f',\n 13: 'r'\n }[n];\n if (x) { return '\\\\' + x; }\n return '\\\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));\n}\n\nfunction markBoxed(str) {\n return 'Object(' + str + ')';\n}\n\nfunction weakCollectionOf(type) {\n return type + ' { ? }';\n}\n\nfunction collectionOf(type, size, entries, indent) {\n var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');\n return type + ' (' + size + ') {' + joinedEntries + '}';\n}\n\nfunction singleLineValues(xs) {\n for (var i = 0; i < xs.length; i++) {\n if (indexOf(xs[i], '\\n') >= 0) {\n return false;\n }\n }\n return true;\n}\n\nfunction getIndent(opts, depth) {\n var baseIndent;\n if (opts.indent === '\\t') {\n baseIndent = '\\t';\n } else if (typeof opts.indent === 'number' && opts.indent > 0) {\n baseIndent = $join.call(Array(opts.indent + 1), ' ');\n } else {\n return null;\n }\n return {\n base: baseIndent,\n prev: $join.call(Array(depth + 1), baseIndent)\n };\n}\n\nfunction indentedJoin(xs, indent) {\n if (xs.length === 0) { return ''; }\n var lineJoiner = '\\n' + indent.prev + indent.base;\n return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\\n' + indent.prev;\n}\n\nfunction arrObjKeys(obj, inspect) {\n var isArr = isArray(obj);\n var xs = [];\n if (isArr) {\n xs.length = obj.length;\n for (var i = 0; i < obj.length; i++) {\n xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';\n }\n }\n var syms = typeof gOPS === 'function' ? gOPS(obj) : [];\n var symMap;\n if (hasShammedSymbols) {\n symMap = {};\n for (var k = 0; k < syms.length; k++) {\n symMap['$' + syms[k]] = syms[k];\n }\n }\n\n for (var key in obj) { // eslint-disable-line no-restricted-syntax\n if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {\n // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section\n continue; // eslint-disable-line no-restricted-syntax, no-continue\n } else if ($test.call(/[^\\w$]/, key)) {\n xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));\n } else {\n xs.push(key + ': ' + inspect(obj[key], obj));\n }\n }\n if (typeof gOPS === 'function') {\n for (var j = 0; j < syms.length; j++) {\n if (isEnumerable.call(obj, syms[j])) {\n xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));\n }\n }\n }\n return xs;\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","'use strict';\n\nvar replace = String.prototype.replace;\nvar percentTwenties = /%20/g;\n\nvar Format = {\n RFC1738: 'RFC1738',\n RFC3986: 'RFC3986'\n};\n\nmodule.exports = {\n 'default': Format.RFC3986,\n formatters: {\n RFC1738: function (value) {\n return replace.call(value, percentTwenties, '+');\n },\n RFC3986: function (value) {\n return String(value);\n }\n },\n RFC1738: Format.RFC1738,\n RFC3986: Format.RFC3986\n};\n","'use strict';\n\nvar stringify = require('./stringify');\nvar parse = require('./parse');\nvar formats = require('./formats');\n\nmodule.exports = {\n formats: formats,\n parse: parse,\n stringify: stringify\n};\n","'use strict';\n\nvar utils = require('./utils');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar defaults = {\n allowDots: false,\n allowPrototypes: false,\n allowSparse: false,\n arrayLimit: 20,\n charset: 'utf-8',\n charsetSentinel: false,\n comma: false,\n decoder: utils.decode,\n delimiter: '&',\n depth: 5,\n ignoreQueryPrefix: false,\n interpretNumericEntities: false,\n parameterLimit: 1000,\n parseArrays: true,\n plainObjects: false,\n strictNullHandling: false\n};\n\nvar interpretNumericEntities = function (str) {\n return str.replace(/&#(\\d+);/g, function ($0, numberStr) {\n return String.fromCharCode(parseInt(numberStr, 10));\n });\n};\n\nvar parseArrayValue = function (val, options) {\n if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {\n return val.split(',');\n }\n\n return val;\n};\n\n// This is what browsers will submit when the ✓ character occurs in an\n// application/x-www-form-urlencoded body and the encoding of the page containing\n// the form is iso-8859-1, or when the submitted form has an accept-charset\n// attribute of iso-8859-1. Presumably also with other charsets that do not contain\n// the ✓ character, such as us-ascii.\nvar isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')\n\n// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.\nvar charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')\n\nvar parseValues = function parseQueryStringValues(str, options) {\n var obj = {};\n var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\\?/, '') : str;\n var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;\n var parts = cleanStr.split(options.delimiter, limit);\n var skipIndex = -1; // Keep track of where the utf8 sentinel was found\n var i;\n\n var charset = options.charset;\n if (options.charsetSentinel) {\n for (i = 0; i < parts.length; ++i) {\n if (parts[i].indexOf('utf8=') === 0) {\n if (parts[i] === charsetSentinel) {\n charset = 'utf-8';\n } else if (parts[i] === isoSentinel) {\n charset = 'iso-8859-1';\n }\n skipIndex = i;\n i = parts.length; // The eslint settings do not allow break;\n }\n }\n }\n\n for (i = 0; i < parts.length; ++i) {\n if (i === skipIndex) {\n continue;\n }\n var part = parts[i];\n\n var bracketEqualsPos = part.indexOf(']=');\n var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;\n\n var key, val;\n if (pos === -1) {\n key = options.decoder(part, defaults.decoder, charset, 'key');\n val = options.strictNullHandling ? null : '';\n } else {\n key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');\n val = utils.maybeMap(\n parseArrayValue(part.slice(pos + 1), options),\n function (encodedVal) {\n return options.decoder(encodedVal, defaults.decoder, charset, 'value');\n }\n );\n }\n\n if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {\n val = interpretNumericEntities(val);\n }\n\n if (part.indexOf('[]=') > -1) {\n val = isArray(val) ? [val] : val;\n }\n\n if (has.call(obj, key)) {\n obj[key] = utils.combine(obj[key], val);\n } else {\n obj[key] = val;\n }\n }\n\n return obj;\n};\n\nvar parseObject = function (chain, val, options, valuesParsed) {\n var leaf = valuesParsed ? val : parseArrayValue(val, options);\n\n for (var i = chain.length - 1; i >= 0; --i) {\n var obj;\n var root = chain[i];\n\n if (root === '[]' && options.parseArrays) {\n obj = [].concat(leaf);\n } else {\n obj = options.plainObjects ? Object.create(null) : {};\n var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n var index = parseInt(cleanRoot, 10);\n if (!options.parseArrays && cleanRoot === '') {\n obj = { 0: leaf };\n } else if (\n !isNaN(index)\n && root !== cleanRoot\n && String(index) === cleanRoot\n && index >= 0\n && (options.parseArrays && index <= options.arrayLimit)\n ) {\n obj = [];\n obj[index] = leaf;\n } else if (cleanRoot !== '__proto__') {\n obj[cleanRoot] = leaf;\n }\n }\n\n leaf = obj;\n }\n\n return leaf;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {\n if (!givenKey) {\n return;\n }\n\n // Transform dot notation to bracket notation\n var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey;\n\n // The regex chunks\n\n var brackets = /(\\[[^[\\]]*])/;\n var child = /(\\[[^[\\]]*])/g;\n\n // Get the parent\n\n var segment = options.depth > 0 && brackets.exec(key);\n var parent = segment ? key.slice(0, segment.index) : key;\n\n // Stash the parent if it exists\n\n var keys = [];\n if (parent) {\n // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties\n if (!options.plainObjects && has.call(Object.prototype, parent)) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(parent);\n }\n\n // Loop through children appending to the array until we hit depth\n\n var i = 0;\n while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n keys.push(segment[1]);\n }\n\n // If there's a remainder, just add whatever is left\n\n if (segment) {\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return parseObject(keys, val, options, valuesParsed);\n};\n\nvar normalizeParseOptions = function normalizeParseOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {\n throw new TypeError('Decoder has to be a function.');\n }\n\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;\n\n return {\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,\n allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,\n arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,\n decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,\n delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,\n // eslint-disable-next-line no-implicit-coercion, no-extra-parens\n depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,\n ignoreQueryPrefix: opts.ignoreQueryPrefix === true,\n interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,\n parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,\n parseArrays: opts.parseArrays !== false,\n plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (str, opts) {\n var options = normalizeParseOptions(opts);\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? Object.create(null) : {};\n }\n\n var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n var obj = options.plainObjects ? Object.create(null) : {};\n\n // Iterate over the keys and setup the new object\n\n var keys = Object.keys(tempObj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');\n obj = utils.merge(obj, newObj, options);\n }\n\n if (options.allowSparse === true) {\n return obj;\n }\n\n return utils.compact(obj);\n};\n","'use strict';\n\nvar getSideChannel = require('side-channel');\nvar utils = require('./utils');\nvar formats = require('./formats');\nvar has = Object.prototype.hasOwnProperty;\n\nvar arrayPrefixGenerators = {\n brackets: function brackets(prefix) {\n return prefix + '[]';\n },\n comma: 'comma',\n indices: function indices(prefix, key) {\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) {\n return prefix;\n }\n};\n\nvar isArray = Array.isArray;\nvar push = Array.prototype.push;\nvar pushToArray = function (arr, valueOrArray) {\n push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);\n};\n\nvar toISO = Date.prototype.toISOString;\n\nvar defaultFormat = formats['default'];\nvar defaults = {\n addQueryPrefix: false,\n allowDots: false,\n charset: 'utf-8',\n charsetSentinel: false,\n delimiter: '&',\n encode: true,\n encoder: utils.encode,\n encodeValuesOnly: false,\n format: defaultFormat,\n formatter: formats.formatters[defaultFormat],\n // deprecated\n indices: false,\n serializeDate: function serializeDate(date) {\n return toISO.call(date);\n },\n skipNulls: false,\n strictNullHandling: false\n};\n\nvar isNonNullishPrimitive = function isNonNullishPrimitive(v) {\n return typeof v === 'string'\n || typeof v === 'number'\n || typeof v === 'boolean'\n || typeof v === 'symbol'\n || typeof v === 'bigint';\n};\n\nvar sentinel = {};\n\nvar stringify = function stringify(\n object,\n prefix,\n generateArrayPrefix,\n commaRoundTrip,\n strictNullHandling,\n skipNulls,\n encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n sideChannel\n) {\n var obj = object;\n\n var tmpSc = sideChannel;\n var step = 0;\n var findFlag = false;\n while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {\n // Where object last appeared in the ref tree\n var pos = tmpSc.get(object);\n step += 1;\n if (typeof pos !== 'undefined') {\n if (pos === step) {\n throw new RangeError('Cyclic object value');\n } else {\n findFlag = true; // Break while\n }\n }\n if (typeof tmpSc.get(sentinel) === 'undefined') {\n step = 0;\n }\n }\n\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (obj instanceof Date) {\n obj = serializeDate(obj);\n } else if (generateArrayPrefix === 'comma' && isArray(obj)) {\n obj = utils.maybeMap(obj, function (value) {\n if (value instanceof Date) {\n return serializeDate(value);\n }\n return value;\n });\n }\n\n if (obj === null) {\n if (strictNullHandling) {\n return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;\n }\n\n obj = '';\n }\n\n if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {\n if (encoder) {\n var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);\n return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];\n }\n return [formatter(prefix) + '=' + formatter(String(obj))];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n if (generateArrayPrefix === 'comma' && isArray(obj)) {\n // we need to join elements in\n if (encodeValuesOnly && encoder) {\n obj = utils.maybeMap(obj, encoder);\n }\n objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];\n } else if (isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = Object.keys(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;\n\n for (var j = 0; j < objKeys.length; ++j) {\n var key = objKeys[j];\n var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];\n\n if (skipNulls && value === null) {\n continue;\n }\n\n var keyPrefix = isArray(obj)\n ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix\n : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');\n\n sideChannel.set(object, step);\n var valueSideChannel = getSideChannel();\n valueSideChannel.set(sentinel, sideChannel);\n pushToArray(values, stringify(\n value,\n keyPrefix,\n generateArrayPrefix,\n commaRoundTrip,\n strictNullHandling,\n skipNulls,\n generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n valueSideChannel\n ));\n }\n\n return values;\n};\n\nvar normalizeStringifyOptions = function normalizeStringifyOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {\n throw new TypeError('Encoder has to be a function.');\n }\n\n var charset = opts.charset || defaults.charset;\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n var format = formats['default'];\n if (typeof opts.format !== 'undefined') {\n if (!has.call(formats.formatters, opts.format)) {\n throw new TypeError('Unknown format option provided.');\n }\n format = opts.format;\n }\n var formatter = formats.formatters[format];\n\n var filter = defaults.filter;\n if (typeof opts.filter === 'function' || isArray(opts.filter)) {\n filter = opts.filter;\n }\n\n return {\n addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,\n encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,\n encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,\n encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,\n filter: filter,\n format: format,\n formatter: formatter,\n serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,\n skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,\n sort: typeof opts.sort === 'function' ? opts.sort : null,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = normalizeStringifyOptions(opts);\n\n var objKeys;\n var filter;\n\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (isArray(options.filter)) {\n filter = options.filter;\n objKeys = filter;\n }\n\n var keys = [];\n\n if (typeof obj !== 'object' || obj === null) {\n return '';\n }\n\n var arrayFormat;\n if (opts && opts.arrayFormat in arrayPrefixGenerators) {\n arrayFormat = opts.arrayFormat;\n } else if (opts && 'indices' in opts) {\n arrayFormat = opts.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = 'indices';\n }\n\n var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];\n if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {\n throw new TypeError('`commaRoundTrip` must be a boolean, or absent');\n }\n var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;\n\n if (!objKeys) {\n objKeys = Object.keys(obj);\n }\n\n if (options.sort) {\n objKeys.sort(options.sort);\n }\n\n var sideChannel = getSideChannel();\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (options.skipNulls && obj[key] === null) {\n continue;\n }\n pushToArray(keys, stringify(\n obj[key],\n key,\n generateArrayPrefix,\n commaRoundTrip,\n options.strictNullHandling,\n options.skipNulls,\n options.encode ? options.encoder : null,\n options.filter,\n options.sort,\n options.allowDots,\n options.serializeDate,\n options.format,\n options.formatter,\n options.encodeValuesOnly,\n options.charset,\n sideChannel\n ));\n }\n\n var joined = keys.join(options.delimiter);\n var prefix = options.addQueryPrefix === true ? '?' : '';\n\n if (options.charsetSentinel) {\n if (options.charset === 'iso-8859-1') {\n // encodeURIComponent('✓'), the \"numeric entity\" representation of a checkmark\n prefix += 'utf8=%26%2310003%3B&';\n } else {\n // encodeURIComponent('✓')\n prefix += 'utf8=%E2%9C%93&';\n }\n }\n\n return joined.length > 0 ? prefix + joined : '';\n};\n","'use strict';\n\nvar formats = require('./formats');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar hexTable = (function () {\n var array = [];\n for (var i = 0; i < 256; ++i) {\n array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());\n }\n\n return array;\n}());\n\nvar compactQueue = function compactQueue(queue) {\n while (queue.length > 1) {\n var item = queue.pop();\n var obj = item.obj[item.prop];\n\n if (isArray(obj)) {\n var compacted = [];\n\n for (var j = 0; j < obj.length; ++j) {\n if (typeof obj[j] !== 'undefined') {\n compacted.push(obj[j]);\n }\n }\n\n item.obj[item.prop] = compacted;\n }\n }\n};\n\nvar arrayToObject = function arrayToObject(source, options) {\n var obj = options && options.plainObjects ? Object.create(null) : {};\n for (var i = 0; i < source.length; ++i) {\n if (typeof source[i] !== 'undefined') {\n obj[i] = source[i];\n }\n }\n\n return obj;\n};\n\nvar merge = function merge(target, source, options) {\n /* eslint no-param-reassign: 0 */\n if (!source) {\n return target;\n }\n\n if (typeof source !== 'object') {\n if (isArray(target)) {\n target.push(source);\n } else if (target && typeof target === 'object') {\n if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {\n target[source] = true;\n }\n } else {\n return [target, source];\n }\n\n return target;\n }\n\n if (!target || typeof target !== 'object') {\n return [target].concat(source);\n }\n\n var mergeTarget = target;\n if (isArray(target) && !isArray(source)) {\n mergeTarget = arrayToObject(target, options);\n }\n\n if (isArray(target) && isArray(source)) {\n source.forEach(function (item, i) {\n if (has.call(target, i)) {\n var targetItem = target[i];\n if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {\n target[i] = merge(targetItem, item, options);\n } else {\n target.push(item);\n }\n } else {\n target[i] = item;\n }\n });\n return target;\n }\n\n return Object.keys(source).reduce(function (acc, key) {\n var value = source[key];\n\n if (has.call(acc, key)) {\n acc[key] = merge(acc[key], value, options);\n } else {\n acc[key] = value;\n }\n return acc;\n }, mergeTarget);\n};\n\nvar assign = function assignSingleSource(target, source) {\n return Object.keys(source).reduce(function (acc, key) {\n acc[key] = source[key];\n return acc;\n }, target);\n};\n\nvar decode = function (str, decoder, charset) {\n var strWithoutPlus = str.replace(/\\+/g, ' ');\n if (charset === 'iso-8859-1') {\n // unescape never throws, no try...catch needed:\n return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);\n }\n // utf-8\n try {\n return decodeURIComponent(strWithoutPlus);\n } catch (e) {\n return strWithoutPlus;\n }\n};\n\nvar encode = function encode(str, defaultEncoder, charset, kind, format) {\n // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n // It has been adapted here for stricter adherence to RFC 3986\n if (str.length === 0) {\n return str;\n }\n\n var string = str;\n if (typeof str === 'symbol') {\n string = Symbol.prototype.toString.call(str);\n } else if (typeof str !== 'string') {\n string = String(str);\n }\n\n if (charset === 'iso-8859-1') {\n return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {\n return '%26%23' + parseInt($0.slice(2), 16) + '%3B';\n });\n }\n\n var out = '';\n for (var i = 0; i < string.length; ++i) {\n var c = string.charCodeAt(i);\n\n if (\n c === 0x2D // -\n || c === 0x2E // .\n || c === 0x5F // _\n || c === 0x7E // ~\n || (c >= 0x30 && c <= 0x39) // 0-9\n || (c >= 0x41 && c <= 0x5A) // a-z\n || (c >= 0x61 && c <= 0x7A) // A-Z\n || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )\n ) {\n out += string.charAt(i);\n continue;\n }\n\n if (c < 0x80) {\n out = out + hexTable[c];\n continue;\n }\n\n if (c < 0x800) {\n out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n if (c < 0xD800 || c >= 0xE000) {\n out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n i += 1;\n c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));\n /* eslint operator-linebreak: [2, \"before\"] */\n out += hexTable[0xF0 | (c >> 18)]\n + hexTable[0x80 | ((c >> 12) & 0x3F)]\n + hexTable[0x80 | ((c >> 6) & 0x3F)]\n + hexTable[0x80 | (c & 0x3F)];\n }\n\n return out;\n};\n\nvar compact = function compact(value) {\n var queue = [{ obj: { o: value }, prop: 'o' }];\n var refs = [];\n\n for (var i = 0; i < queue.length; ++i) {\n var item = queue[i];\n var obj = item.obj[item.prop];\n\n var keys = Object.keys(obj);\n for (var j = 0; j < keys.length; ++j) {\n var key = keys[j];\n var val = obj[key];\n if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {\n queue.push({ obj: obj, prop: key });\n refs.push(val);\n }\n }\n }\n\n compactQueue(queue);\n\n return value;\n};\n\nvar isRegExp = function isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nvar isBuffer = function isBuffer(obj) {\n if (!obj || typeof obj !== 'object') {\n return false;\n }\n\n return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\nvar combine = function combine(a, b) {\n return [].concat(a, b);\n};\n\nvar maybeMap = function maybeMap(val, fn) {\n if (isArray(val)) {\n var mapped = [];\n for (var i = 0; i < val.length; i += 1) {\n mapped.push(fn(val[i]));\n }\n return mapped;\n }\n return fn(val);\n};\n\nmodule.exports = {\n arrayToObject: arrayToObject,\n assign: assign,\n combine: combine,\n compact: compact,\n decode: decode,\n encode: encode,\n isBuffer: isBuffer,\n isRegExp: isRegExp,\n maybeMap: maybeMap,\n merge: merge\n};\n","/*!\n * react-filepond v7.1.2\n * A handy FilePond adapter component for React\n * \n * Copyright (c) 2022 PQINA\n * https://pqina.nl/filepond\n * \n * Licensed under the MIT license.\n */\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.FilePond = exports.FileStatus = exports.registerPlugin = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require(\"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _filepond = require(\"filepond\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n// Import required methods and styles from the FilePond module, should not need anything else\n\n\n// We need to be able to call the registerPlugin method directly so we can add plugins\nexports.registerPlugin = _filepond.registerPlugin;\nexports.FileStatus = _filepond.FileStatus;\n\n// Do this once\n\nvar isSupported = (0, _filepond.supported)();\n\n// filtered methods\nvar filteredMethods = [\"setOptions\", \"on\", \"off\", \"onOnce\", \"appendTo\", \"insertAfter\", \"insertBefore\", \"isAttachedTo\", \"replaceElement\", \"restoreElement\", \"destroy\"];\n\n// The React wrapper\n\nvar FilePond = exports.FilePond = function (_React$Component) {\n _inherits(FilePond, _React$Component);\n\n function FilePond(props) {\n _classCallCheck(this, FilePond);\n\n var _this = _possibleConstructorReturn(this, (FilePond.__proto__ || Object.getPrototypeOf(FilePond)).call(this, props));\n\n _this.allowFilesSync = true;\n return _this;\n }\n\n // Will setup FilePond instance when mounted\n\n\n _createClass(FilePond, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n // clone the input so we can restore it in unmount\n this._input = this._element.querySelector('input[type=\"file\"]');\n this._inputClone = this._input.cloneNode();\n\n // exit here if not supported\n if (!isSupported) return;\n\n var options = Object.assign({}, this.props);\n\n // if onupdate files is defined, make sure setFiles does not cause race condition\n if (options.onupdatefiles) {\n var cb = options.onupdatefiles;\n options.onupdatefiles = function (items) {\n _this2.allowFilesSync = false;\n cb(items);\n };\n }\n\n // Create our pond\n this._pond = (0, _filepond.create)(this._input, options);\n\n // Reference pond methods to FilePond component instance\n Object.keys(this._pond).filter(function (key) {\n return !filteredMethods.includes(key);\n }).forEach(function (key) {\n _this2[key] = _this2._pond[key];\n });\n }\n\n // Will clean up FilePond instance when unmounted\n\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n // exit when no pond defined\n if (!this._pond) return;\n\n // This fixed errors\n\n // FilePond destroy is async so we have to move FilePond to a bin element so it can no longer affect current element tree as React unmount / mount is sync\n var bin = document.createElement(\"div\");\n bin.append(this._pond.element);\n bin.id = \"foo\";\n\n // now we call destroy so FilePond can start it's destroy logic\n this._pond.destroy();\n this._pond = undefined;\n\n // we re-add the original file input element so everything is as it was before\n this._element.append(this._inputClone);\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate() {\n if (!this.allowFilesSync) {\n this.allowFilesSync = true;\n return false;\n }\n return true;\n }\n\n // Something changed\n\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n // exit when no pond defined\n if (!this._pond) return;\n\n var options = Object.assign({}, this.props);\n\n // this is only set onces, on didmount\n delete options.onupdatefiles;\n\n // update pond options based on new props\n this._pond.setOptions(options);\n }\n\n // Renders basic element hook for FilePond to attach to\n\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n var _props = this.props,\n id = _props.id,\n name = _props.name,\n className = _props.className,\n allowMultiple = _props.allowMultiple,\n required = _props.required,\n captureMethod = _props.captureMethod,\n acceptedFileTypes = _props.acceptedFileTypes;\n\n return (0, _react.createElement)(\"div\", {\n className: \"filepond--wrapper\",\n ref: function ref(element) {\n return _this3._element = element;\n }\n }, (0, _react.createElement)(\"input\", {\n type: \"file\",\n name: name,\n id: id,\n accept: acceptedFileTypes,\n multiple: allowMultiple,\n required: required,\n className: className,\n capture: captureMethod\n }));\n }\n }]);\n\n return FilePond;\n}(_react2.default.Component);\n\n\n","/**\n * rgb2hex\n *\n * @author Christian Bromann \n * @description converts rgba color to HEX\n *\n * @param {String} color rgb or rgba color\n * @return {Object} object with hex and alpha value\n */\n\nvar rgb2hex = module.exports = function rgb2hex(color) {\n if(typeof color !== 'string') {\n // throw error of input isn't typeof string\n throw new Error('color has to be type of `string`');\n } else if (color.substr(0, 1) === '#') {\n // or return if already rgb color\n return {\n hex: color,\n alpha: 1\n };\n }\n\n /**\n * strip spaces\n */\n var strippedColor = color.replace(/\\s+/g,'');\n\n /**\n * parse input\n */\n var digits = /(.*?)rgb(a)??\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3})(,([01]|1.0*|0??\\.([0-9]{0,})))??\\)/.exec(strippedColor);\n\n if(!digits) {\n // or throw error if input isn't a valid rgb(a) color\n throw new Error('given color (' + color + ') isn\\'t a valid rgb or rgba color');\n }\n\n var red = parseInt(digits[3], 10);\n var green = parseInt(digits[4], 10);\n var blue = parseInt(digits[5], 10);\n var alpha = digits[6] ? /([0-9\\.]+)/.exec(digits[6])[0] : '1';\n var rgb = ((blue | green << 8 | red << 16) | 1 << 24).toString(16).slice(1);\n\n // parse alpha value into float\n if(alpha.substr(0,1) === '.') {\n alpha = parseFloat('0' + alpha);\n }\n\n // cut alpha value after 2 digits after comma\n alpha = parseFloat(Math.round(alpha * 100)) / 100;\n\n return {\n hex: '#' + rgb.toString(16),\n alpha: alpha\n };\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar define = require('define-data-property');\nvar hasDescriptors = require('has-property-descriptors')();\nvar gOPD = require('gopd');\n\nvar $TypeError = require('es-errors/type');\nvar $floor = GetIntrinsic('%Math.floor%');\n\n/** @typedef {(...args: unknown[]) => unknown} Func */\n\n/** @type {(fn: T, length: number, loose?: boolean) => T} */\nmodule.exports = function setFunctionLength(fn, length) {\n\tif (typeof fn !== 'function') {\n\t\tthrow new $TypeError('`fn` is not a function');\n\t}\n\tif (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {\n\t\tthrow new $TypeError('`length` must be a positive 32-bit integer');\n\t}\n\n\tvar loose = arguments.length > 2 && !!arguments[2];\n\n\tvar functionLengthIsConfigurable = true;\n\tvar functionLengthIsWritable = true;\n\tif ('length' in fn && gOPD) {\n\t\tvar desc = gOPD(fn, 'length');\n\t\tif (desc && !desc.configurable) {\n\t\t\tfunctionLengthIsConfigurable = false;\n\t\t}\n\t\tif (desc && !desc.writable) {\n\t\t\tfunctionLengthIsWritable = false;\n\t\t}\n\t}\n\n\tif (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {\n\t\tif (hasDescriptors) {\n\t\t\tdefine(/** @type {Parameters[0]} */ (fn), 'length', length, true, true);\n\t\t} else {\n\t\t\tdefine(/** @type {Parameters[0]} */ (fn), 'length', length);\n\t\t}\n\t}\n\treturn fn;\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar callBound = require('call-bind/callBound');\nvar inspect = require('object-inspect');\n\nvar $TypeError = GetIntrinsic('%TypeError%');\nvar $WeakMap = GetIntrinsic('%WeakMap%', true);\nvar $Map = GetIntrinsic('%Map%', true);\n\nvar $weakMapGet = callBound('WeakMap.prototype.get', true);\nvar $weakMapSet = callBound('WeakMap.prototype.set', true);\nvar $weakMapHas = callBound('WeakMap.prototype.has', true);\nvar $mapGet = callBound('Map.prototype.get', true);\nvar $mapSet = callBound('Map.prototype.set', true);\nvar $mapHas = callBound('Map.prototype.has', true);\n\n/*\n * This function traverses the list returning the node corresponding to the\n * given key.\n *\n * That node is also moved to the head of the list, so that if it's accessed\n * again we don't need to traverse the whole list. By doing so, all the recently\n * used nodes can be accessed relatively quickly.\n */\nvar listGetNode = function (list, key) { // eslint-disable-line consistent-return\n\tfor (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {\n\t\tif (curr.key === key) {\n\t\t\tprev.next = curr.next;\n\t\t\tcurr.next = list.next;\n\t\t\tlist.next = curr; // eslint-disable-line no-param-reassign\n\t\t\treturn curr;\n\t\t}\n\t}\n};\n\nvar listGet = function (objects, key) {\n\tvar node = listGetNode(objects, key);\n\treturn node && node.value;\n};\nvar listSet = function (objects, key, value) {\n\tvar node = listGetNode(objects, key);\n\tif (node) {\n\t\tnode.value = value;\n\t} else {\n\t\t// Prepend the new node to the beginning of the list\n\t\tobjects.next = { // eslint-disable-line no-param-reassign\n\t\t\tkey: key,\n\t\t\tnext: objects.next,\n\t\t\tvalue: value\n\t\t};\n\t}\n};\nvar listHas = function (objects, key) {\n\treturn !!listGetNode(objects, key);\n};\n\nmodule.exports = function getSideChannel() {\n\tvar $wm;\n\tvar $m;\n\tvar $o;\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\tget: function (key) { // eslint-disable-line consistent-return\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapGet($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapGet($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listGet($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\thas: function (key) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapHas($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapHas($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listHas($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif (!$wm) {\n\t\t\t\t\t$wm = new $WeakMap();\n\t\t\t\t}\n\t\t\t\t$weakMapSet($wm, key, value);\n\t\t\t} else if ($Map) {\n\t\t\t\tif (!$m) {\n\t\t\t\t\t$m = new $Map();\n\t\t\t\t}\n\t\t\t\t$mapSet($m, key, value);\n\t\t\t} else {\n\t\t\t\tif (!$o) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Initialize the linked list as an empty node, so that we don't have\n\t\t\t\t\t * to special-case handling of the first node: we can always refer to\n\t\t\t\t\t * it as (previous node).next, instead of something like (list).head\n\t\t\t\t\t */\n\t\t\t\t\t$o = { key: {}, next: null };\n\t\t\t\t}\n\t\t\t\tlistSet($o, key, value);\n\t\t\t}\n\t\t}\n\t};\n\treturn channel;\n};\n","module.exports = window[\"React\"];","module.exports = window[\"wp\"][\"a11y\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"compose\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"escapeHtml\"];","module.exports = window[\"wp\"][\"hooks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"keycodes\"];","module.exports = window[\"wp\"][\"plugins\"];","module.exports = window[\"wp\"][\"url\"];","/* (ignored) */","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders.from(config.headers).normalize();\n let {responseType, withXSRFToken} = config;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n let contentType;\n\n if (utils.isFormData(requestData)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n requestHeaders.setContentType(false); // Let the browser set it\n } else if ((contentType = requestHeaders.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if(platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {\n // Add xsrf header\n const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy;\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? thing.toJSON() : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","export const VERSION = \"1.6.7\";","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = (\n (product) => {\n return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0\n })(typeof navigator !== 'undefined' && navigator.product);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n};\n","import React from 'react';\n\nvar isCheckBoxInput = (element) => element.type === 'checkbox';\n\nvar isDateObject = (value) => value instanceof Date;\n\nvar isNullOrUndefined = (value) => value == null;\n\nconst isObjectType = (value) => typeof value === 'object';\nvar isObject = (value) => !isNullOrUndefined(value) &&\n !Array.isArray(value) &&\n isObjectType(value) &&\n !isDateObject(value);\n\nvar getEventValue = (event) => isObject(event) && event.target\n ? isCheckBoxInput(event.target)\n ? event.target.checked\n : event.target.value\n : event;\n\nvar getNodeParentName = (name) => name.substring(0, name.search(/\\.\\d+(\\.|$)/)) || name;\n\nvar isNameInFieldArray = (names, name) => names.has(getNodeParentName(name));\n\nvar isPlainObject = (tempObject) => {\n const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;\n return (isObject(prototypeCopy) && prototypeCopy.hasOwnProperty('isPrototypeOf'));\n};\n\nvar isWeb = typeof window !== 'undefined' &&\n typeof window.HTMLElement !== 'undefined' &&\n typeof document !== 'undefined';\n\nfunction cloneObject(data) {\n let copy;\n const isArray = Array.isArray(data);\n if (data instanceof Date) {\n copy = new Date(data);\n }\n else if (data instanceof Set) {\n copy = new Set(data);\n }\n else if (!(isWeb && (data instanceof Blob || data instanceof FileList)) &&\n (isArray || isObject(data))) {\n copy = isArray ? [] : {};\n if (!Array.isArray(data) && !isPlainObject(data)) {\n copy = data;\n }\n else {\n for (const key in data) {\n copy[key] = cloneObject(data[key]);\n }\n }\n }\n else {\n return data;\n }\n return copy;\n}\n\nvar compact = (value) => Array.isArray(value) ? value.filter(Boolean) : [];\n\nvar isUndefined = (val) => val === undefined;\n\nvar get = (obj, path, defaultValue) => {\n if (!path || !isObject(obj)) {\n return defaultValue;\n }\n const result = compact(path.split(/[,[\\].]+?/)).reduce((result, key) => isNullOrUndefined(result) ? result : result[key], obj);\n return isUndefined(result) || result === obj\n ? isUndefined(obj[path])\n ? defaultValue\n : obj[path]\n : result;\n};\n\nconst EVENTS = {\n BLUR: 'blur',\n FOCUS_OUT: 'focusout',\n CHANGE: 'change',\n};\nconst VALIDATION_MODE = {\n onBlur: 'onBlur',\n onChange: 'onChange',\n onSubmit: 'onSubmit',\n onTouched: 'onTouched',\n all: 'all',\n};\nconst INPUT_VALIDATION_RULES = {\n max: 'max',\n min: 'min',\n maxLength: 'maxLength',\n minLength: 'minLength',\n pattern: 'pattern',\n required: 'required',\n validate: 'validate',\n};\n\nconst HookFormContext = React.createContext(null);\n/**\n * This custom hook allows you to access the form context. useFormContext is intended to be used in deeply nested structures, where it would become inconvenient to pass the context as a prop. To be used with {@link FormProvider}.\n *\n * @remarks\n * [API](https://react-hook-form.com/api/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @returns return all useForm methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * \n *
\n * \n * \n * \n *
\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return ;\n * }\n * ```\n */\nconst useFormContext = () => React.useContext(HookFormContext);\n/**\n * A provider component that propagates the `useForm` methods to all children components via [React Context](https://reactjs.org/docs/context.html) API. To be used with {@link useFormContext}.\n *\n * @remarks\n * [API](https://react-hook-form.com/api/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @param props - all useFrom methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * \n *
\n * \n * \n * \n *
\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return ;\n * }\n * ```\n */\nconst FormProvider = (props) => {\n const { children, ...data } = props;\n return (React.createElement(HookFormContext.Provider, { value: data }, children));\n};\n\nvar getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {\n const result = {\n defaultValues: control._defaultValues,\n };\n for (const key in formState) {\n Object.defineProperty(result, key, {\n get: () => {\n const _key = key;\n if (control._proxyFormState[_key] !== VALIDATION_MODE.all) {\n control._proxyFormState[_key] = !isRoot || VALIDATION_MODE.all;\n }\n localProxyFormState && (localProxyFormState[_key] = true);\n return formState[_key];\n },\n });\n }\n return result;\n};\n\nvar isEmptyObject = (value) => isObject(value) && !Object.keys(value).length;\n\nvar shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, isRoot) => {\n updateFormState(formStateData);\n const { name, ...formState } = formStateData;\n return (isEmptyObject(formState) ||\n Object.keys(formState).length >= Object.keys(_proxyFormState).length ||\n Object.keys(formState).find((key) => _proxyFormState[key] ===\n (!isRoot || VALIDATION_MODE.all)));\n};\n\nvar convertToArrayPayload = (value) => (Array.isArray(value) ? value : [value]);\n\nvar shouldSubscribeByName = (name, signalName, exact) => exact && signalName\n ? name === signalName\n : !name ||\n !signalName ||\n name === signalName ||\n convertToArrayPayload(name).some((currentName) => currentName &&\n (currentName.startsWith(signalName) ||\n signalName.startsWith(currentName)));\n\nfunction useSubscribe(props) {\n const _props = React.useRef(props);\n _props.current = props;\n React.useEffect(() => {\n const subscription = !props.disabled &&\n _props.current.subject &&\n _props.current.subject.subscribe({\n next: _props.current.next,\n });\n return () => {\n subscription && subscription.unsubscribe();\n };\n }, [props.disabled]);\n}\n\n/**\n * This custom hook allows you to subscribe to each form state, and isolate the re-render at the custom hook level. It has its scope in terms of form state subscription, so it would not affect other useFormState and useForm. Using this hook can reduce the re-render impact on large and complex form application.\n *\n * @remarks\n * [API](https://react-hook-form.com/api/useformstate) • [Demo](https://codesandbox.io/s/useformstate-75xly)\n *\n * @param props - include options on specify fields to subscribe. {@link UseFormStateReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, control } = useForm({\n * defaultValues: {\n * firstName: \"firstName\"\n * }});\n * const { dirtyFields } = useFormState({\n * control\n * });\n * const onSubmit = (data) => console.log(data);\n *\n * return (\n *
\n * \n * {dirtyFields.firstName &&

Field is dirty.

}\n * \n *
\n * );\n * }\n * ```\n */\nfunction useFormState(props) {\n const methods = useFormContext();\n const { control = methods.control, disabled, name, exact } = props || {};\n const [formState, updateFormState] = React.useState(control._formState);\n const _mounted = React.useRef(true);\n const _localProxyFormState = React.useRef({\n isDirty: false,\n isLoading: false,\n dirtyFields: false,\n touchedFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n });\n const _name = React.useRef(name);\n _name.current = name;\n useSubscribe({\n disabled,\n next: (value) => _mounted.current &&\n shouldSubscribeByName(_name.current, value.name, exact) &&\n shouldRenderFormState(value, _localProxyFormState.current, control._updateFormState) &&\n updateFormState({\n ...control._formState,\n ...value,\n }),\n subject: control._subjects.state,\n });\n React.useEffect(() => {\n _mounted.current = true;\n _localProxyFormState.current.isValid && control._updateValid(true);\n return () => {\n _mounted.current = false;\n };\n }, [control]);\n return getProxyFormState(formState, control, _localProxyFormState.current, false);\n}\n\nvar isString = (value) => typeof value === 'string';\n\nvar generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {\n if (isString(names)) {\n isGlobal && _names.watch.add(names);\n return get(formValues, names, defaultValue);\n }\n if (Array.isArray(names)) {\n return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get(formValues, fieldName)));\n }\n isGlobal && (_names.watchAll = true);\n return formValues;\n};\n\n/**\n * Custom hook to subscribe to field change and isolate re-rendering at the component level.\n *\n * @remarks\n *\n * [API](https://react-hook-form.com/api/usewatch) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-usewatch-h9i5e)\n *\n * @example\n * ```tsx\n * const { watch } = useForm();\n * const values = useWatch({\n * name: \"fieldName\"\n * control,\n * })\n * ```\n */\nfunction useWatch(props) {\n const methods = useFormContext();\n const { control = methods.control, name, defaultValue, disabled, exact, } = props || {};\n const _name = React.useRef(name);\n _name.current = name;\n useSubscribe({\n disabled,\n subject: control._subjects.values,\n next: (formState) => {\n if (shouldSubscribeByName(_name.current, formState.name, exact)) {\n updateValue(cloneObject(generateWatchOutput(_name.current, control._names, formState.values || control._formValues, false, defaultValue)));\n }\n },\n });\n const [value, updateValue] = React.useState(control._getWatch(name, defaultValue));\n React.useEffect(() => control._removeUnmounted());\n return value;\n}\n\nvar isKey = (value) => /^\\w*$/.test(value);\n\nvar stringToPath = (input) => compact(input.replace(/[\"|']|\\]/g, '').split(/\\.|\\[/));\n\nfunction set(object, path, value) {\n let index = -1;\n const tempPath = isKey(path) ? [path] : stringToPath(path);\n const length = tempPath.length;\n const lastIndex = length - 1;\n while (++index < length) {\n const key = tempPath[index];\n let newValue = value;\n if (index !== lastIndex) {\n const objValue = object[key];\n newValue =\n isObject(objValue) || Array.isArray(objValue)\n ? objValue\n : !isNaN(+tempPath[index + 1])\n ? []\n : {};\n }\n object[key] = newValue;\n object = object[key];\n }\n return object;\n}\n\n/**\n * Custom hook to work with controlled component, this function provide you with both form and field level state. Re-render is isolated at the hook level.\n *\n * @remarks\n * [API](https://react-hook-form.com/api/usecontroller) • [Demo](https://codesandbox.io/s/usecontroller-0o8px)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns field properties, field and form state. {@link UseControllerReturn}\n *\n * @example\n * ```tsx\n * function Input(props) {\n * const { field, fieldState, formState } = useController(props);\n * return (\n *
\n * \n *

{fieldState.isTouched && \"Touched\"}

\n *

{formState.isSubmitted ? \"submitted\" : \"\"}

\n *
\n * );\n * }\n * ```\n */\nfunction useController(props) {\n const methods = useFormContext();\n const { name, control = methods.control, shouldUnregister } = props;\n const isArrayField = isNameInFieldArray(control._names.array, name);\n const value = useWatch({\n control,\n name,\n defaultValue: get(control._formValues, name, get(control._defaultValues, name, props.defaultValue)),\n exact: true,\n });\n const formState = useFormState({\n control,\n name,\n });\n const _registerProps = React.useRef(control.register(name, {\n ...props.rules,\n value,\n }));\n React.useEffect(() => {\n const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;\n const updateMounted = (name, value) => {\n const field = get(control._fields, name);\n if (field) {\n field._f.mount = value;\n }\n };\n updateMounted(name, true);\n if (_shouldUnregisterField) {\n const value = cloneObject(get(control._options.defaultValues, name));\n set(control._defaultValues, name, value);\n if (isUndefined(get(control._formValues, name))) {\n set(control._formValues, name, value);\n }\n }\n return () => {\n (isArrayField\n ? _shouldUnregisterField && !control._state.action\n : _shouldUnregisterField)\n ? control.unregister(name)\n : updateMounted(name, false);\n };\n }, [name, control, isArrayField, shouldUnregister]);\n return {\n field: {\n name,\n value,\n onChange: React.useCallback((event) => _registerProps.current.onChange({\n target: {\n value: getEventValue(event),\n name: name,\n },\n type: EVENTS.CHANGE,\n }), [name]),\n onBlur: React.useCallback(() => _registerProps.current.onBlur({\n target: {\n value: get(control._formValues, name),\n name: name,\n },\n type: EVENTS.BLUR,\n }), [name, control]),\n ref: (elm) => {\n const field = get(control._fields, name);\n if (field && elm) {\n field._f.ref = {\n focus: () => elm.focus(),\n select: () => elm.select(),\n setCustomValidity: (message) => elm.setCustomValidity(message),\n reportValidity: () => elm.reportValidity(),\n };\n }\n },\n },\n formState,\n fieldState: Object.defineProperties({}, {\n invalid: {\n enumerable: true,\n get: () => !!get(formState.errors, name),\n },\n isDirty: {\n enumerable: true,\n get: () => !!get(formState.dirtyFields, name),\n },\n isTouched: {\n enumerable: true,\n get: () => !!get(formState.touchedFields, name),\n },\n error: {\n enumerable: true,\n get: () => get(formState.errors, name),\n },\n }),\n };\n}\n\n/**\n * Component based on `useController` hook to work with controlled component.\n *\n * @remarks\n * [API](https://react-hook-form.com/api/usecontroller/controller) • [Demo](https://codesandbox.io/s/react-hook-form-v6-controller-ts-jwyzw) • [Video](https://www.youtube.com/watch?v=N2UNk_UCVyA)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns provide field handler functions, field and form state.\n *\n * @example\n * ```tsx\n * function App() {\n * const { control } = useForm({\n * defaultValues: {\n * test: \"\"\n * }\n * });\n *\n * return (\n *
\n * (\n * <>\n * \n *

{formState.isSubmitted ? \"submitted\" : \"\"}

\n *

{fieldState.isTouched ? \"touched\" : \"\"}

\n * \n * )}\n * />\n * \n * );\n * }\n * ```\n */\nconst Controller = (props) => props.render(useController(props));\n\nvar appendErrors = (name, validateAllFieldCriteria, errors, type, message) => validateAllFieldCriteria\n ? {\n ...errors[name],\n types: {\n ...(errors[name] && errors[name].types ? errors[name].types : {}),\n [type]: message || true,\n },\n }\n : {};\n\nconst focusFieldBy = (fields, callback, fieldsNames) => {\n for (const key of fieldsNames || Object.keys(fields)) {\n const field = get(fields, key);\n if (field) {\n const { _f, ...currentField } = field;\n if (_f && callback(_f.name)) {\n if (_f.ref.focus) {\n _f.ref.focus();\n break;\n }\n else if (_f.refs && _f.refs[0].focus) {\n _f.refs[0].focus();\n break;\n }\n }\n else if (isObject(currentField)) {\n focusFieldBy(currentField, callback);\n }\n }\n }\n};\n\nvar generateId = () => {\n const d = typeof performance === 'undefined' ? Date.now() : performance.now() * 1000;\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n const r = (Math.random() * 16 + d) % 16 | 0;\n return (c == 'x' ? r : (r & 0x3) | 0x8).toString(16);\n });\n};\n\nvar getFocusFieldName = (name, index, options = {}) => options.shouldFocus || isUndefined(options.shouldFocus)\n ? options.focusName ||\n `${name}.${isUndefined(options.focusIndex) ? index : options.focusIndex}.`\n : '';\n\nvar getValidationModes = (mode) => ({\n isOnSubmit: !mode || mode === VALIDATION_MODE.onSubmit,\n isOnBlur: mode === VALIDATION_MODE.onBlur,\n isOnChange: mode === VALIDATION_MODE.onChange,\n isOnAll: mode === VALIDATION_MODE.all,\n isOnTouch: mode === VALIDATION_MODE.onTouched,\n});\n\nvar isWatched = (name, _names, isBlurEvent) => !isBlurEvent &&\n (_names.watchAll ||\n _names.watch.has(name) ||\n [..._names.watch].some((watchName) => name.startsWith(watchName) &&\n /^\\.\\w+/.test(name.slice(watchName.length))));\n\nvar updateFieldArrayRootError = (errors, error, name) => {\n const fieldArrayErrors = compact(get(errors, name));\n set(fieldArrayErrors, 'root', error[name]);\n set(errors, name, fieldArrayErrors);\n return errors;\n};\n\nvar isBoolean = (value) => typeof value === 'boolean';\n\nvar isFileInput = (element) => element.type === 'file';\n\nvar isFunction = (value) => typeof value === 'function';\n\nvar isHTMLElement = (value) => {\n if (!isWeb) {\n return false;\n }\n const owner = value ? value.ownerDocument : 0;\n return (value instanceof\n (owner && owner.defaultView ? owner.defaultView.HTMLElement : HTMLElement));\n};\n\nvar isMessage = (value) => isString(value);\n\nvar isRadioInput = (element) => element.type === 'radio';\n\nvar isRegex = (value) => value instanceof RegExp;\n\nconst defaultResult = {\n value: false,\n isValid: false,\n};\nconst validResult = { value: true, isValid: true };\nvar getCheckboxValue = (options) => {\n if (Array.isArray(options)) {\n if (options.length > 1) {\n const values = options\n .filter((option) => option && option.checked && !option.disabled)\n .map((option) => option.value);\n return { value: values, isValid: !!values.length };\n }\n return options[0].checked && !options[0].disabled\n ? // @ts-expect-error expected to work in the browser\n options[0].attributes && !isUndefined(options[0].attributes.value)\n ? isUndefined(options[0].value) || options[0].value === ''\n ? validResult\n : { value: options[0].value, isValid: true }\n : validResult\n : defaultResult;\n }\n return defaultResult;\n};\n\nconst defaultReturn = {\n isValid: false,\n value: null,\n};\nvar getRadioValue = (options) => Array.isArray(options)\n ? options.reduce((previous, option) => option && option.checked && !option.disabled\n ? {\n isValid: true,\n value: option.value,\n }\n : previous, defaultReturn)\n : defaultReturn;\n\nfunction getValidateError(result, ref, type = 'validate') {\n if (isMessage(result) ||\n (Array.isArray(result) && result.every(isMessage)) ||\n (isBoolean(result) && !result)) {\n return {\n type,\n message: isMessage(result) ? result : '',\n ref,\n };\n }\n}\n\nvar getValueAndMessage = (validationData) => isObject(validationData) && !isRegex(validationData)\n ? validationData\n : {\n value: validationData,\n message: '',\n };\n\nvar validateField = async (field, formValues, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => {\n const { ref, refs, required, maxLength, minLength, min, max, pattern, validate, name, valueAsNumber, mount, disabled, } = field._f;\n const inputValue = get(formValues, name);\n if (!mount || disabled) {\n return {};\n }\n const inputRef = refs ? refs[0] : ref;\n const setCustomValidity = (message) => {\n if (shouldUseNativeValidation && inputRef.reportValidity) {\n inputRef.setCustomValidity(isBoolean(message) ? '' : message || '');\n inputRef.reportValidity();\n }\n };\n const error = {};\n const isRadio = isRadioInput(ref);\n const isCheckBox = isCheckBoxInput(ref);\n const isRadioOrCheckbox = isRadio || isCheckBox;\n const isEmpty = ((valueAsNumber || isFileInput(ref)) &&\n isUndefined(ref.value) &&\n isUndefined(inputValue)) ||\n (isHTMLElement(ref) && ref.value === '') ||\n inputValue === '' ||\n (Array.isArray(inputValue) && !inputValue.length);\n const appendErrorsCurry = appendErrors.bind(null, name, validateAllFieldCriteria, error);\n const getMinMaxMessage = (exceedMax, maxLengthMessage, minLengthMessage, maxType = INPUT_VALIDATION_RULES.maxLength, minType = INPUT_VALIDATION_RULES.minLength) => {\n const message = exceedMax ? maxLengthMessage : minLengthMessage;\n error[name] = {\n type: exceedMax ? maxType : minType,\n message,\n ref,\n ...appendErrorsCurry(exceedMax ? maxType : minType, message),\n };\n };\n if (isFieldArray\n ? !Array.isArray(inputValue) || !inputValue.length\n : required &&\n ((!isRadioOrCheckbox && (isEmpty || isNullOrUndefined(inputValue))) ||\n (isBoolean(inputValue) && !inputValue) ||\n (isCheckBox && !getCheckboxValue(refs).isValid) ||\n (isRadio && !getRadioValue(refs).isValid))) {\n const { value, message } = isMessage(required)\n ? { value: !!required, message: required }\n : getValueAndMessage(required);\n if (value) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.required,\n message,\n ref: inputRef,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.required, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (!isEmpty && (!isNullOrUndefined(min) || !isNullOrUndefined(max))) {\n let exceedMax;\n let exceedMin;\n const maxOutput = getValueAndMessage(max);\n const minOutput = getValueAndMessage(min);\n if (!isNullOrUndefined(inputValue) && !isNaN(inputValue)) {\n const valueNumber = ref.valueAsNumber ||\n (inputValue ? +inputValue : inputValue);\n if (!isNullOrUndefined(maxOutput.value)) {\n exceedMax = valueNumber > maxOutput.value;\n }\n if (!isNullOrUndefined(minOutput.value)) {\n exceedMin = valueNumber < minOutput.value;\n }\n }\n else {\n const valueDate = ref.valueAsDate || new Date(inputValue);\n const convertTimeToDate = (time) => new Date(new Date().toDateString() + ' ' + time);\n const isTime = ref.type == 'time';\n const isWeek = ref.type == 'week';\n if (isString(maxOutput.value) && inputValue) {\n exceedMax = isTime\n ? convertTimeToDate(inputValue) > convertTimeToDate(maxOutput.value)\n : isWeek\n ? inputValue > maxOutput.value\n : valueDate > new Date(maxOutput.value);\n }\n if (isString(minOutput.value) && inputValue) {\n exceedMin = isTime\n ? convertTimeToDate(inputValue) < convertTimeToDate(minOutput.value)\n : isWeek\n ? inputValue < minOutput.value\n : valueDate < new Date(minOutput.value);\n }\n }\n if (exceedMax || exceedMin) {\n getMinMaxMessage(!!exceedMax, maxOutput.message, minOutput.message, INPUT_VALIDATION_RULES.max, INPUT_VALIDATION_RULES.min);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if ((maxLength || minLength) &&\n !isEmpty &&\n (isString(inputValue) || (isFieldArray && Array.isArray(inputValue)))) {\n const maxLengthOutput = getValueAndMessage(maxLength);\n const minLengthOutput = getValueAndMessage(minLength);\n const exceedMax = !isNullOrUndefined(maxLengthOutput.value) &&\n inputValue.length > +maxLengthOutput.value;\n const exceedMin = !isNullOrUndefined(minLengthOutput.value) &&\n inputValue.length < +minLengthOutput.value;\n if (exceedMax || exceedMin) {\n getMinMaxMessage(exceedMax, maxLengthOutput.message, minLengthOutput.message);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if (pattern && !isEmpty && isString(inputValue)) {\n const { value: patternValue, message } = getValueAndMessage(pattern);\n if (isRegex(patternValue) && !inputValue.match(patternValue)) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.pattern,\n message,\n ref,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.pattern, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (validate) {\n if (isFunction(validate)) {\n const result = await validate(inputValue, formValues);\n const validateError = getValidateError(result, inputRef);\n if (validateError) {\n error[name] = {\n ...validateError,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.validate, validateError.message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(validateError.message);\n return error;\n }\n }\n }\n else if (isObject(validate)) {\n let validationResult = {};\n for (const key in validate) {\n if (!isEmptyObject(validationResult) && !validateAllFieldCriteria) {\n break;\n }\n const validateError = getValidateError(await validate[key](inputValue, formValues), inputRef, key);\n if (validateError) {\n validationResult = {\n ...validateError,\n ...appendErrorsCurry(key, validateError.message),\n };\n setCustomValidity(validateError.message);\n if (validateAllFieldCriteria) {\n error[name] = validationResult;\n }\n }\n }\n if (!isEmptyObject(validationResult)) {\n error[name] = {\n ref: inputRef,\n ...validationResult,\n };\n if (!validateAllFieldCriteria) {\n return error;\n }\n }\n }\n }\n setCustomValidity(true);\n return error;\n};\n\nfunction append(data, value) {\n return [...data, ...convertToArrayPayload(value)];\n}\n\nvar fillEmptyArray = (value) => Array.isArray(value) ? value.map(() => undefined) : undefined;\n\nfunction insert(data, index, value) {\n return [\n ...data.slice(0, index),\n ...convertToArrayPayload(value),\n ...data.slice(index),\n ];\n}\n\nvar moveArrayAt = (data, from, to) => {\n if (!Array.isArray(data)) {\n return [];\n }\n if (isUndefined(data[to])) {\n data[to] = undefined;\n }\n data.splice(to, 0, data.splice(from, 1)[0]);\n return data;\n};\n\nfunction prepend(data, value) {\n return [...convertToArrayPayload(value), ...convertToArrayPayload(data)];\n}\n\nfunction removeAtIndexes(data, indexes) {\n let i = 0;\n const temp = [...data];\n for (const index of indexes) {\n temp.splice(index - i, 1);\n i++;\n }\n return compact(temp).length ? temp : [];\n}\nvar removeArrayAt = (data, index) => isUndefined(index)\n ? []\n : removeAtIndexes(data, convertToArrayPayload(index).sort((a, b) => a - b));\n\nvar swapArrayAt = (data, indexA, indexB) => {\n data[indexA] = [data[indexB], (data[indexB] = data[indexA])][0];\n};\n\nfunction baseGet(object, updatePath) {\n const length = updatePath.slice(0, -1).length;\n let index = 0;\n while (index < length) {\n object = isUndefined(object) ? index++ : object[updatePath[index++]];\n }\n return object;\n}\nfunction isEmptyArray(obj) {\n for (const key in obj) {\n if (!isUndefined(obj[key])) {\n return false;\n }\n }\n return true;\n}\nfunction unset(object, path) {\n const paths = Array.isArray(path)\n ? path\n : isKey(path)\n ? [path]\n : stringToPath(path);\n const childObject = paths.length === 1 ? object : baseGet(object, paths);\n const index = paths.length - 1;\n const key = paths[index];\n if (childObject) {\n delete childObject[key];\n }\n if (index !== 0 &&\n ((isObject(childObject) && isEmptyObject(childObject)) ||\n (Array.isArray(childObject) && isEmptyArray(childObject)))) {\n unset(object, paths.slice(0, -1));\n }\n return object;\n}\n\nvar updateAt = (fieldValues, index, value) => {\n fieldValues[index] = value;\n return fieldValues;\n};\n\n/**\n * A custom hook that exposes convenient methods to perform operations with a list of dynamic inputs that need to be appended, updated, removed etc. • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn) • [Video](https://youtu.be/4MrbfGSFY2A)\n *\n * @remarks\n * [API](https://react-hook-form.com/api/usefieldarray) • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn)\n *\n * @param props - useFieldArray props\n *\n * @returns methods - functions to manipulate with the Field Arrays (dynamic inputs) {@link UseFieldArrayReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, control, handleSubmit, reset, trigger, setError } = useForm({\n * defaultValues: {\n * test: []\n * }\n * });\n * const { fields, append } = useFieldArray({\n * control,\n * name: \"test\"\n * });\n *\n * return (\n *
console.log(data))}>\n * {fields.map((item, index) => (\n * \n * ))}\n * \n * \n *
\n * );\n * }\n * ```\n */\nfunction useFieldArray(props) {\n const methods = useFormContext();\n const { control = methods.control, name, keyName = 'id', shouldUnregister, } = props;\n const [fields, setFields] = React.useState(control._getFieldArray(name));\n const ids = React.useRef(control._getFieldArray(name).map(generateId));\n const _fieldIds = React.useRef(fields);\n const _name = React.useRef(name);\n const _actioned = React.useRef(false);\n _name.current = name;\n _fieldIds.current = fields;\n control._names.array.add(name);\n props.rules &&\n control.register(name, props.rules);\n useSubscribe({\n next: ({ values, name: fieldArrayName, }) => {\n if (fieldArrayName === _name.current || !fieldArrayName) {\n const fieldValues = get(values, _name.current);\n if (Array.isArray(fieldValues)) {\n setFields(fieldValues);\n ids.current = fieldValues.map(generateId);\n }\n }\n },\n subject: control._subjects.array,\n });\n const updateValues = React.useCallback((updatedFieldArrayValues) => {\n _actioned.current = true;\n control._updateFieldArray(name, updatedFieldArrayValues);\n }, [control, name]);\n const append$1 = (value, options) => {\n const appendValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = append(control._getFieldArray(name), appendValue);\n control._names.focus = getFocusFieldName(name, updatedFieldArrayValues.length - 1, options);\n ids.current = append(ids.current, appendValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, append, {\n argA: fillEmptyArray(value),\n });\n };\n const prepend$1 = (value, options) => {\n const prependValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = prepend(control._getFieldArray(name), prependValue);\n control._names.focus = getFocusFieldName(name, 0, options);\n ids.current = prepend(ids.current, prependValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, prepend, {\n argA: fillEmptyArray(value),\n });\n };\n const remove = (index) => {\n const updatedFieldArrayValues = removeArrayAt(control._getFieldArray(name), index);\n ids.current = removeArrayAt(ids.current, index);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, removeArrayAt, {\n argA: index,\n });\n };\n const insert$1 = (index, value, options) => {\n const insertValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = insert(control._getFieldArray(name), index, insertValue);\n control._names.focus = getFocusFieldName(name, index, options);\n ids.current = insert(ids.current, index, insertValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, insert, {\n argA: index,\n argB: fillEmptyArray(value),\n });\n };\n const swap = (indexA, indexB) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n swapArrayAt(updatedFieldArrayValues, indexA, indexB);\n swapArrayAt(ids.current, indexA, indexB);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, swapArrayAt, {\n argA: indexA,\n argB: indexB,\n }, false);\n };\n const move = (from, to) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n moveArrayAt(updatedFieldArrayValues, from, to);\n moveArrayAt(ids.current, from, to);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, moveArrayAt, {\n argA: from,\n argB: to,\n }, false);\n };\n const update = (index, value) => {\n const updateValue = cloneObject(value);\n const updatedFieldArrayValues = updateAt(control._getFieldArray(name), index, updateValue);\n ids.current = [...updatedFieldArrayValues].map((item, i) => !item || i === index ? generateId() : ids.current[i]);\n updateValues(updatedFieldArrayValues);\n setFields([...updatedFieldArrayValues]);\n control._updateFieldArray(name, updatedFieldArrayValues, updateAt, {\n argA: index,\n argB: updateValue,\n }, true, false);\n };\n const replace = (value) => {\n const updatedFieldArrayValues = convertToArrayPayload(cloneObject(value));\n ids.current = updatedFieldArrayValues.map(generateId);\n updateValues([...updatedFieldArrayValues]);\n setFields([...updatedFieldArrayValues]);\n control._updateFieldArray(name, [...updatedFieldArrayValues], (data) => data, {}, true, false);\n };\n React.useEffect(() => {\n control._state.action = false;\n isWatched(name, control._names) &&\n control._subjects.state.next({\n ...control._formState,\n });\n if (_actioned.current &&\n (!getValidationModes(control._options.mode).isOnSubmit ||\n control._formState.isSubmitted)) {\n if (control._options.resolver) {\n control._executeSchema([name]).then((result) => {\n const error = get(result.errors, name);\n const existingError = get(control._formState.errors, name);\n if (existingError ? !error && existingError.type : error && error.type) {\n error\n ? set(control._formState.errors, name, error)\n : unset(control._formState.errors, name);\n control._subjects.state.next({\n errors: control._formState.errors,\n });\n }\n });\n }\n else {\n const field = get(control._fields, name);\n if (field && field._f) {\n validateField(field, control._formValues, control._options.criteriaMode === VALIDATION_MODE.all, control._options.shouldUseNativeValidation, true).then((error) => !isEmptyObject(error) &&\n control._subjects.state.next({\n errors: updateFieldArrayRootError(control._formState.errors, error, name),\n }));\n }\n }\n }\n control._subjects.values.next({\n name,\n values: { ...control._formValues },\n });\n control._names.focus &&\n focusFieldBy(control._fields, (key) => !!key && key.startsWith(control._names.focus || ''));\n control._names.focus = '';\n control._updateValid();\n }, [fields, name, control]);\n React.useEffect(() => {\n !get(control._formValues, name) && control._updateFieldArray(name);\n return () => {\n (control._options.shouldUnregister || shouldUnregister) &&\n control.unregister(name);\n };\n }, [name, control, keyName, shouldUnregister]);\n return {\n swap: React.useCallback(swap, [updateValues, name, control]),\n move: React.useCallback(move, [updateValues, name, control]),\n prepend: React.useCallback(prepend$1, [updateValues, name, control]),\n append: React.useCallback(append$1, [updateValues, name, control]),\n remove: React.useCallback(remove, [updateValues, name, control]),\n insert: React.useCallback(insert$1, [updateValues, name, control]),\n update: React.useCallback(update, [updateValues, name, control]),\n replace: React.useCallback(replace, [updateValues, name, control]),\n fields: React.useMemo(() => fields.map((field, index) => ({\n ...field,\n [keyName]: ids.current[index] || generateId(),\n })), [fields, keyName]),\n };\n}\n\nfunction createSubject() {\n let _observers = [];\n const next = (value) => {\n for (const observer of _observers) {\n observer.next && observer.next(value);\n }\n };\n const subscribe = (observer) => {\n _observers.push(observer);\n return {\n unsubscribe: () => {\n _observers = _observers.filter((o) => o !== observer);\n },\n };\n };\n const unsubscribe = () => {\n _observers = [];\n };\n return {\n get observers() {\n return _observers;\n },\n next,\n subscribe,\n unsubscribe,\n };\n}\n\nvar isPrimitive = (value) => isNullOrUndefined(value) || !isObjectType(value);\n\nfunction deepEqual(object1, object2) {\n if (isPrimitive(object1) || isPrimitive(object2)) {\n return object1 === object2;\n }\n if (isDateObject(object1) && isDateObject(object2)) {\n return object1.getTime() === object2.getTime();\n }\n const keys1 = Object.keys(object1);\n const keys2 = Object.keys(object2);\n if (keys1.length !== keys2.length) {\n return false;\n }\n for (const key of keys1) {\n const val1 = object1[key];\n if (!keys2.includes(key)) {\n return false;\n }\n if (key !== 'ref') {\n const val2 = object2[key];\n if ((isDateObject(val1) && isDateObject(val2)) ||\n (isObject(val1) && isObject(val2)) ||\n (Array.isArray(val1) && Array.isArray(val2))\n ? !deepEqual(val1, val2)\n : val1 !== val2) {\n return false;\n }\n }\n }\n return true;\n}\n\nvar isMultipleSelect = (element) => element.type === `select-multiple`;\n\nvar isRadioOrCheckbox = (ref) => isRadioInput(ref) || isCheckBoxInput(ref);\n\nvar live = (ref) => isHTMLElement(ref) && ref.isConnected;\n\nvar objectHasFunction = (data) => {\n for (const key in data) {\n if (isFunction(data[key])) {\n return true;\n }\n }\n return false;\n};\n\nfunction markFieldsDirty(data, fields = {}) {\n const isParentNodeArray = Array.isArray(data);\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) ||\n (isObject(data[key]) && !objectHasFunction(data[key]))) {\n fields[key] = Array.isArray(data[key]) ? [] : {};\n markFieldsDirty(data[key], fields[key]);\n }\n else if (!isNullOrUndefined(data[key])) {\n fields[key] = true;\n }\n }\n }\n return fields;\n}\nfunction getDirtyFieldsFromDefaultValues(data, formValues, dirtyFieldsFromValues) {\n const isParentNodeArray = Array.isArray(data);\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) ||\n (isObject(data[key]) && !objectHasFunction(data[key]))) {\n if (isUndefined(formValues) ||\n isPrimitive(dirtyFieldsFromValues[key])) {\n dirtyFieldsFromValues[key] = Array.isArray(data[key])\n ? markFieldsDirty(data[key], [])\n : { ...markFieldsDirty(data[key]) };\n }\n else {\n getDirtyFieldsFromDefaultValues(data[key], isNullOrUndefined(formValues) ? {} : formValues[key], dirtyFieldsFromValues[key]);\n }\n }\n else {\n dirtyFieldsFromValues[key] = !deepEqual(data[key], formValues[key]);\n }\n }\n }\n return dirtyFieldsFromValues;\n}\nvar getDirtyFields = (defaultValues, formValues) => getDirtyFieldsFromDefaultValues(defaultValues, formValues, markFieldsDirty(formValues));\n\nvar getFieldValueAs = (value, { valueAsNumber, valueAsDate, setValueAs }) => isUndefined(value)\n ? value\n : valueAsNumber\n ? value === ''\n ? NaN\n : value\n ? +value\n : value\n : valueAsDate && isString(value)\n ? new Date(value)\n : setValueAs\n ? setValueAs(value)\n : value;\n\nfunction getFieldValue(_f) {\n const ref = _f.ref;\n if (_f.refs ? _f.refs.every((ref) => ref.disabled) : ref.disabled) {\n return;\n }\n if (isFileInput(ref)) {\n return ref.files;\n }\n if (isRadioInput(ref)) {\n return getRadioValue(_f.refs).value;\n }\n if (isMultipleSelect(ref)) {\n return [...ref.selectedOptions].map(({ value }) => value);\n }\n if (isCheckBoxInput(ref)) {\n return getCheckboxValue(_f.refs).value;\n }\n return getFieldValueAs(isUndefined(ref.value) ? _f.ref.value : ref.value, _f);\n}\n\nvar getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeValidation) => {\n const fields = {};\n for (const name of fieldsNames) {\n const field = get(_fields, name);\n field && set(fields, name, field._f);\n }\n return {\n criteriaMode,\n names: [...fieldsNames],\n fields,\n shouldUseNativeValidation,\n };\n};\n\nvar getRuleValue = (rule) => isUndefined(rule)\n ? rule\n : isRegex(rule)\n ? rule.source\n : isObject(rule)\n ? isRegex(rule.value)\n ? rule.value.source\n : rule.value\n : rule;\n\nvar hasValidation = (options) => options.mount &&\n (options.required ||\n options.min ||\n options.max ||\n options.maxLength ||\n options.minLength ||\n options.pattern ||\n options.validate);\n\nfunction schemaErrorLookup(errors, _fields, name) {\n const error = get(errors, name);\n if (error || isKey(name)) {\n return {\n error,\n name,\n };\n }\n const names = name.split('.');\n while (names.length) {\n const fieldName = names.join('.');\n const field = get(_fields, fieldName);\n const foundError = get(errors, fieldName);\n if (field && !Array.isArray(field) && name !== fieldName) {\n return { name };\n }\n if (foundError && foundError.type) {\n return {\n name: fieldName,\n error: foundError,\n };\n }\n names.pop();\n }\n return {\n name,\n };\n}\n\nvar skipValidation = (isBlurEvent, isTouched, isSubmitted, reValidateMode, mode) => {\n if (mode.isOnAll) {\n return false;\n }\n else if (!isSubmitted && mode.isOnTouch) {\n return !(isTouched || isBlurEvent);\n }\n else if (isSubmitted ? reValidateMode.isOnBlur : mode.isOnBlur) {\n return !isBlurEvent;\n }\n else if (isSubmitted ? reValidateMode.isOnChange : mode.isOnChange) {\n return isBlurEvent;\n }\n return true;\n};\n\nvar unsetEmptyArray = (ref, name) => !compact(get(ref, name)).length && unset(ref, name);\n\nconst defaultOptions = {\n mode: VALIDATION_MODE.onSubmit,\n reValidateMode: VALIDATION_MODE.onChange,\n shouldFocusError: true,\n};\nfunction createFormControl(props = {}, flushRootRender) {\n let _options = {\n ...defaultOptions,\n ...props,\n };\n let _formState = {\n submitCount: 0,\n isDirty: false,\n isLoading: isFunction(_options.defaultValues),\n isValidating: false,\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n touchedFields: {},\n dirtyFields: {},\n errors: {},\n };\n let _fields = {};\n let _defaultValues = isObject(_options.defaultValues) || isObject(_options.values)\n ? cloneObject(_options.defaultValues || _options.values) || {}\n : {};\n let _formValues = _options.shouldUnregister\n ? {}\n : cloneObject(_defaultValues);\n let _state = {\n action: false,\n mount: false,\n watch: false,\n };\n let _names = {\n mount: new Set(),\n unMount: new Set(),\n array: new Set(),\n watch: new Set(),\n };\n let delayErrorCallback;\n let timer = 0;\n const _proxyFormState = {\n isDirty: false,\n dirtyFields: false,\n touchedFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n };\n const _subjects = {\n values: createSubject(),\n array: createSubject(),\n state: createSubject(),\n };\n const shouldCaptureDirtyFields = props.resetOptions && props.resetOptions.keepDirtyValues;\n const validationModeBeforeSubmit = getValidationModes(_options.mode);\n const validationModeAfterSubmit = getValidationModes(_options.reValidateMode);\n const shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all;\n const debounce = (callback) => (wait) => {\n clearTimeout(timer);\n timer = setTimeout(callback, wait);\n };\n const _updateValid = async (shouldUpdateValid) => {\n if (_proxyFormState.isValid || shouldUpdateValid) {\n const isValid = _options.resolver\n ? isEmptyObject((await _executeSchema()).errors)\n : await executeBuiltInValidation(_fields, true);\n if (isValid !== _formState.isValid) {\n _subjects.state.next({\n isValid,\n });\n }\n }\n };\n const _updateIsValidating = (value) => _proxyFormState.isValidating &&\n _subjects.state.next({\n isValidating: value,\n });\n const _updateFieldArray = (name, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {\n if (args && method) {\n _state.action = true;\n if (shouldUpdateFieldsAndState && Array.isArray(get(_fields, name))) {\n const fieldValues = method(get(_fields, name), args.argA, args.argB);\n shouldSetValues && set(_fields, name, fieldValues);\n }\n if (shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.errors, name))) {\n const errors = method(get(_formState.errors, name), args.argA, args.argB);\n shouldSetValues && set(_formState.errors, name, errors);\n unsetEmptyArray(_formState.errors, name);\n }\n if (_proxyFormState.touchedFields &&\n shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.touchedFields, name))) {\n const touchedFields = method(get(_formState.touchedFields, name), args.argA, args.argB);\n shouldSetValues && set(_formState.touchedFields, name, touchedFields);\n }\n if (_proxyFormState.dirtyFields) {\n _formState.dirtyFields = getDirtyFields(_defaultValues, _formValues);\n }\n _subjects.state.next({\n name,\n isDirty: _getDirty(name, values),\n dirtyFields: _formState.dirtyFields,\n errors: _formState.errors,\n isValid: _formState.isValid,\n });\n }\n else {\n set(_formValues, name, values);\n }\n };\n const updateErrors = (name, error) => {\n set(_formState.errors, name, error);\n _subjects.state.next({\n errors: _formState.errors,\n });\n };\n const updateValidAndValue = (name, shouldSkipSetValueAs, value, ref) => {\n const field = get(_fields, name);\n if (field) {\n const defaultValue = get(_formValues, name, isUndefined(value) ? get(_defaultValues, name) : value);\n isUndefined(defaultValue) ||\n (ref && ref.defaultChecked) ||\n shouldSkipSetValueAs\n ? set(_formValues, name, shouldSkipSetValueAs ? defaultValue : getFieldValue(field._f))\n : setFieldValue(name, defaultValue);\n _state.mount && _updateValid();\n }\n };\n const updateTouchAndDirty = (name, fieldValue, isBlurEvent, shouldDirty, shouldRender) => {\n let shouldUpdateField = false;\n let isPreviousDirty = false;\n const output = {\n name,\n };\n if (!isBlurEvent || shouldDirty) {\n if (_proxyFormState.isDirty) {\n isPreviousDirty = _formState.isDirty;\n _formState.isDirty = output.isDirty = _getDirty();\n shouldUpdateField = isPreviousDirty !== output.isDirty;\n }\n const isCurrentFieldPristine = deepEqual(get(_defaultValues, name), fieldValue);\n isPreviousDirty = get(_formState.dirtyFields, name);\n isCurrentFieldPristine\n ? unset(_formState.dirtyFields, name)\n : set(_formState.dirtyFields, name, true);\n output.dirtyFields = _formState.dirtyFields;\n shouldUpdateField =\n shouldUpdateField ||\n (_proxyFormState.dirtyFields &&\n isPreviousDirty !== !isCurrentFieldPristine);\n }\n if (isBlurEvent) {\n const isPreviousFieldTouched = get(_formState.touchedFields, name);\n if (!isPreviousFieldTouched) {\n set(_formState.touchedFields, name, isBlurEvent);\n output.touchedFields = _formState.touchedFields;\n shouldUpdateField =\n shouldUpdateField ||\n (_proxyFormState.touchedFields &&\n isPreviousFieldTouched !== isBlurEvent);\n }\n }\n shouldUpdateField && shouldRender && _subjects.state.next(output);\n return shouldUpdateField ? output : {};\n };\n const shouldRenderByError = (name, isValid, error, fieldState) => {\n const previousFieldError = get(_formState.errors, name);\n const shouldUpdateValid = _proxyFormState.isValid &&\n isBoolean(isValid) &&\n _formState.isValid !== isValid;\n if (props.delayError && error) {\n delayErrorCallback = debounce(() => updateErrors(name, error));\n delayErrorCallback(props.delayError);\n }\n else {\n clearTimeout(timer);\n delayErrorCallback = null;\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n if ((error ? !deepEqual(previousFieldError, error) : previousFieldError) ||\n !isEmptyObject(fieldState) ||\n shouldUpdateValid) {\n const updatedFormState = {\n ...fieldState,\n ...(shouldUpdateValid && isBoolean(isValid) ? { isValid } : {}),\n errors: _formState.errors,\n name,\n };\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n _subjects.state.next(updatedFormState);\n }\n _updateIsValidating(false);\n };\n const _executeSchema = async (name) => _options.resolver(_formValues, _options.context, getResolverOptions(name || _names.mount, _fields, _options.criteriaMode, _options.shouldUseNativeValidation));\n const executeSchemaAndUpdateState = async (names) => {\n const { errors } = await _executeSchema();\n if (names) {\n for (const name of names) {\n const error = get(errors, name);\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n }\n else {\n _formState.errors = errors;\n }\n return errors;\n };\n const executeBuiltInValidation = async (fields, shouldOnlyCheckValid, context = {\n valid: true,\n }) => {\n for (const name in fields) {\n const field = fields[name];\n if (field) {\n const { _f, ...fieldValue } = field;\n if (_f) {\n const isFieldArrayRoot = _names.array.has(_f.name);\n const fieldError = await validateField(field, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !shouldOnlyCheckValid, isFieldArrayRoot);\n if (fieldError[_f.name]) {\n context.valid = false;\n if (shouldOnlyCheckValid) {\n break;\n }\n }\n !shouldOnlyCheckValid &&\n (get(fieldError, _f.name)\n ? isFieldArrayRoot\n ? updateFieldArrayRootError(_formState.errors, fieldError, _f.name)\n : set(_formState.errors, _f.name, fieldError[_f.name])\n : unset(_formState.errors, _f.name));\n }\n fieldValue &&\n (await executeBuiltInValidation(fieldValue, shouldOnlyCheckValid, context));\n }\n }\n return context.valid;\n };\n const _removeUnmounted = () => {\n for (const name of _names.unMount) {\n const field = get(_fields, name);\n field &&\n (field._f.refs\n ? field._f.refs.every((ref) => !live(ref))\n : !live(field._f.ref)) &&\n unregister(name);\n }\n _names.unMount = new Set();\n };\n const _getDirty = (name, data) => (name && data && set(_formValues, name, data),\n !deepEqual(getValues(), _defaultValues));\n const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, {\n ...(_state.mount\n ? _formValues\n : isUndefined(defaultValue)\n ? _defaultValues\n : isString(names)\n ? { [names]: defaultValue }\n : defaultValue),\n }, isGlobal, defaultValue);\n const _getFieldArray = (name) => compact(get(_state.mount ? _formValues : _defaultValues, name, props.shouldUnregister ? get(_defaultValues, name, []) : []));\n const setFieldValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n let fieldValue = value;\n if (field) {\n const fieldReference = field._f;\n if (fieldReference) {\n !fieldReference.disabled &&\n set(_formValues, name, getFieldValueAs(value, fieldReference));\n fieldValue =\n isHTMLElement(fieldReference.ref) && isNullOrUndefined(value)\n ? ''\n : value;\n if (isMultipleSelect(fieldReference.ref)) {\n [...fieldReference.ref.options].forEach((optionRef) => (optionRef.selected = fieldValue.includes(optionRef.value)));\n }\n else if (fieldReference.refs) {\n if (isCheckBoxInput(fieldReference.ref)) {\n fieldReference.refs.length > 1\n ? fieldReference.refs.forEach((checkboxRef) => (!checkboxRef.defaultChecked || !checkboxRef.disabled) &&\n (checkboxRef.checked = Array.isArray(fieldValue)\n ? !!fieldValue.find((data) => data === checkboxRef.value)\n : fieldValue === checkboxRef.value))\n : fieldReference.refs[0] &&\n (fieldReference.refs[0].checked = !!fieldValue);\n }\n else {\n fieldReference.refs.forEach((radioRef) => (radioRef.checked = radioRef.value === fieldValue));\n }\n }\n else if (isFileInput(fieldReference.ref)) {\n fieldReference.ref.value = '';\n }\n else {\n fieldReference.ref.value = fieldValue;\n if (!fieldReference.ref.type) {\n _subjects.values.next({\n name,\n values: { ..._formValues },\n });\n }\n }\n }\n }\n (options.shouldDirty || options.shouldTouch) &&\n updateTouchAndDirty(name, fieldValue, options.shouldTouch, options.shouldDirty, true);\n options.shouldValidate && trigger(name);\n };\n const setValues = (name, value, options) => {\n for (const fieldKey in value) {\n const fieldValue = value[fieldKey];\n const fieldName = `${name}.${fieldKey}`;\n const field = get(_fields, fieldName);\n (_names.array.has(name) ||\n !isPrimitive(fieldValue) ||\n (field && !field._f)) &&\n !isDateObject(fieldValue)\n ? setValues(fieldName, fieldValue, options)\n : setFieldValue(fieldName, fieldValue, options);\n }\n };\n const setValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n const isFieldArray = _names.array.has(name);\n const cloneValue = cloneObject(value);\n set(_formValues, name, cloneValue);\n if (isFieldArray) {\n _subjects.array.next({\n name,\n values: { ..._formValues },\n });\n if ((_proxyFormState.isDirty || _proxyFormState.dirtyFields) &&\n options.shouldDirty) {\n _subjects.state.next({\n name,\n dirtyFields: getDirtyFields(_defaultValues, _formValues),\n isDirty: _getDirty(name, cloneValue),\n });\n }\n }\n else {\n field && !field._f && !isNullOrUndefined(cloneValue)\n ? setValues(name, cloneValue, options)\n : setFieldValue(name, cloneValue, options);\n }\n isWatched(name, _names) && _subjects.state.next({ ..._formState });\n _subjects.values.next({\n name,\n values: { ..._formValues },\n });\n !_state.mount && flushRootRender();\n };\n const onChange = async (event) => {\n const target = event.target;\n let name = target.name;\n let isFieldValueUpdated = true;\n const field = get(_fields, name);\n const getCurrentFieldValue = () => target.type ? getFieldValue(field._f) : getEventValue(event);\n if (field) {\n let error;\n let isValid;\n const fieldValue = getCurrentFieldValue();\n const isBlurEvent = event.type === EVENTS.BLUR || event.type === EVENTS.FOCUS_OUT;\n const shouldSkipValidation = (!hasValidation(field._f) &&\n !_options.resolver &&\n !get(_formState.errors, name) &&\n !field._f.deps) ||\n skipValidation(isBlurEvent, get(_formState.touchedFields, name), _formState.isSubmitted, validationModeAfterSubmit, validationModeBeforeSubmit);\n const watched = isWatched(name, _names, isBlurEvent);\n set(_formValues, name, fieldValue);\n if (isBlurEvent) {\n field._f.onBlur && field._f.onBlur(event);\n delayErrorCallback && delayErrorCallback(0);\n }\n else if (field._f.onChange) {\n field._f.onChange(event);\n }\n const fieldState = updateTouchAndDirty(name, fieldValue, isBlurEvent, false);\n const shouldRender = !isEmptyObject(fieldState) || watched;\n !isBlurEvent &&\n _subjects.values.next({\n name,\n type: event.type,\n values: { ..._formValues },\n });\n if (shouldSkipValidation) {\n _proxyFormState.isValid && _updateValid();\n return (shouldRender &&\n _subjects.state.next({ name, ...(watched ? {} : fieldState) }));\n }\n !isBlurEvent && watched && _subjects.state.next({ ..._formState });\n _updateIsValidating(true);\n if (_options.resolver) {\n const { errors } = await _executeSchema([name]);\n const previousErrorLookupResult = schemaErrorLookup(_formState.errors, _fields, name);\n const errorLookupResult = schemaErrorLookup(errors, _fields, previousErrorLookupResult.name || name);\n error = errorLookupResult.error;\n name = errorLookupResult.name;\n isValid = isEmptyObject(errors);\n }\n else {\n error = (await validateField(field, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation))[name];\n isFieldValueUpdated =\n isNaN(fieldValue) ||\n fieldValue === get(_formValues, name, fieldValue);\n if (isFieldValueUpdated) {\n if (error) {\n isValid = false;\n }\n else if (_proxyFormState.isValid) {\n isValid = await executeBuiltInValidation(_fields, true);\n }\n }\n }\n if (isFieldValueUpdated) {\n field._f.deps &&\n trigger(field._f.deps);\n shouldRenderByError(name, isValid, error, fieldState);\n }\n }\n };\n const trigger = async (name, options = {}) => {\n let isValid;\n let validationResult;\n const fieldNames = convertToArrayPayload(name);\n _updateIsValidating(true);\n if (_options.resolver) {\n const errors = await executeSchemaAndUpdateState(isUndefined(name) ? name : fieldNames);\n isValid = isEmptyObject(errors);\n validationResult = name\n ? !fieldNames.some((name) => get(errors, name))\n : isValid;\n }\n else if (name) {\n validationResult = (await Promise.all(fieldNames.map(async (fieldName) => {\n const field = get(_fields, fieldName);\n return await executeBuiltInValidation(field && field._f ? { [fieldName]: field } : field);\n }))).every(Boolean);\n !(!validationResult && !_formState.isValid) && _updateValid();\n }\n else {\n validationResult = isValid = await executeBuiltInValidation(_fields);\n }\n _subjects.state.next({\n ...(!isString(name) ||\n (_proxyFormState.isValid && isValid !== _formState.isValid)\n ? {}\n : { name }),\n ...(_options.resolver || !name ? { isValid } : {}),\n errors: _formState.errors,\n isValidating: false,\n });\n options.shouldFocus &&\n !validationResult &&\n focusFieldBy(_fields, (key) => key && get(_formState.errors, key), name ? fieldNames : _names.mount);\n return validationResult;\n };\n const getValues = (fieldNames) => {\n const values = {\n ..._defaultValues,\n ...(_state.mount ? _formValues : {}),\n };\n return isUndefined(fieldNames)\n ? values\n : isString(fieldNames)\n ? get(values, fieldNames)\n : fieldNames.map((name) => get(values, name));\n };\n const getFieldState = (name, formState) => ({\n invalid: !!get((formState || _formState).errors, name),\n isDirty: !!get((formState || _formState).dirtyFields, name),\n isTouched: !!get((formState || _formState).touchedFields, name),\n error: get((formState || _formState).errors, name),\n });\n const clearErrors = (name) => {\n name &&\n convertToArrayPayload(name).forEach((inputName) => unset(_formState.errors, inputName));\n _subjects.state.next({\n errors: name ? _formState.errors : {},\n });\n };\n const setError = (name, error, options) => {\n const ref = (get(_fields, name, { _f: {} })._f || {}).ref;\n set(_formState.errors, name, {\n ...error,\n ref,\n });\n _subjects.state.next({\n name,\n errors: _formState.errors,\n isValid: false,\n });\n options && options.shouldFocus && ref && ref.focus && ref.focus();\n };\n const watch = (name, defaultValue) => isFunction(name)\n ? _subjects.values.subscribe({\n next: (payload) => name(_getWatch(undefined, defaultValue), payload),\n })\n : _getWatch(name, defaultValue, true);\n const unregister = (name, options = {}) => {\n for (const fieldName of name ? convertToArrayPayload(name) : _names.mount) {\n _names.mount.delete(fieldName);\n _names.array.delete(fieldName);\n if (!options.keepValue) {\n unset(_fields, fieldName);\n unset(_formValues, fieldName);\n }\n !options.keepError && unset(_formState.errors, fieldName);\n !options.keepDirty && unset(_formState.dirtyFields, fieldName);\n !options.keepTouched && unset(_formState.touchedFields, fieldName);\n !_options.shouldUnregister &&\n !options.keepDefaultValue &&\n unset(_defaultValues, fieldName);\n }\n _subjects.values.next({\n values: { ..._formValues },\n });\n _subjects.state.next({\n ..._formState,\n ...(!options.keepDirty ? {} : { isDirty: _getDirty() }),\n });\n !options.keepIsValid && _updateValid();\n };\n const register = (name, options = {}) => {\n let field = get(_fields, name);\n const disabledIsDefined = isBoolean(options.disabled);\n set(_fields, name, {\n ...(field || {}),\n _f: {\n ...(field && field._f ? field._f : { ref: { name } }),\n name,\n mount: true,\n ...options,\n },\n });\n _names.mount.add(name);\n field\n ? disabledIsDefined &&\n set(_formValues, name, options.disabled\n ? undefined\n : get(_formValues, name, getFieldValue(field._f)))\n : updateValidAndValue(name, true, options.value);\n return {\n ...(disabledIsDefined ? { disabled: options.disabled } : {}),\n ...(_options.shouldUseNativeValidation\n ? {\n required: !!options.required,\n min: getRuleValue(options.min),\n max: getRuleValue(options.max),\n minLength: getRuleValue(options.minLength),\n maxLength: getRuleValue(options.maxLength),\n pattern: getRuleValue(options.pattern),\n }\n : {}),\n name,\n onChange,\n onBlur: onChange,\n ref: (ref) => {\n if (ref) {\n register(name, options);\n field = get(_fields, name);\n const fieldRef = isUndefined(ref.value)\n ? ref.querySelectorAll\n ? ref.querySelectorAll('input,select,textarea')[0] || ref\n : ref\n : ref;\n const radioOrCheckbox = isRadioOrCheckbox(fieldRef);\n const refs = field._f.refs || [];\n if (radioOrCheckbox\n ? refs.find((option) => option === fieldRef)\n : fieldRef === field._f.ref) {\n return;\n }\n set(_fields, name, {\n _f: {\n ...field._f,\n ...(radioOrCheckbox\n ? {\n refs: [\n ...refs.filter(live),\n fieldRef,\n ...(Array.isArray(get(_defaultValues, name)) ? [{}] : []),\n ],\n ref: { type: fieldRef.type, name },\n }\n : { ref: fieldRef }),\n },\n });\n updateValidAndValue(name, false, undefined, fieldRef);\n }\n else {\n field = get(_fields, name, {});\n if (field._f) {\n field._f.mount = false;\n }\n (_options.shouldUnregister || options.shouldUnregister) &&\n !(isNameInFieldArray(_names.array, name) && _state.action) &&\n _names.unMount.add(name);\n }\n },\n };\n };\n const _focusError = () => _options.shouldFocusError &&\n focusFieldBy(_fields, (key) => key && get(_formState.errors, key), _names.mount);\n const handleSubmit = (onValid, onInvalid) => async (e) => {\n if (e) {\n e.preventDefault && e.preventDefault();\n e.persist && e.persist();\n }\n let fieldValues = cloneObject(_formValues);\n _subjects.state.next({\n isSubmitting: true,\n });\n if (_options.resolver) {\n const { errors, values } = await _executeSchema();\n _formState.errors = errors;\n fieldValues = values;\n }\n else {\n await executeBuiltInValidation(_fields);\n }\n unset(_formState.errors, 'root');\n if (isEmptyObject(_formState.errors)) {\n _subjects.state.next({\n errors: {},\n });\n await onValid(fieldValues, e);\n }\n else {\n if (onInvalid) {\n await onInvalid({ ..._formState.errors }, e);\n }\n _focusError();\n setTimeout(_focusError);\n }\n _subjects.state.next({\n isSubmitted: true,\n isSubmitting: false,\n isSubmitSuccessful: isEmptyObject(_formState.errors),\n submitCount: _formState.submitCount + 1,\n errors: _formState.errors,\n });\n };\n const resetField = (name, options = {}) => {\n if (get(_fields, name)) {\n if (isUndefined(options.defaultValue)) {\n setValue(name, get(_defaultValues, name));\n }\n else {\n setValue(name, options.defaultValue);\n set(_defaultValues, name, options.defaultValue);\n }\n if (!options.keepTouched) {\n unset(_formState.touchedFields, name);\n }\n if (!options.keepDirty) {\n unset(_formState.dirtyFields, name);\n _formState.isDirty = options.defaultValue\n ? _getDirty(name, get(_defaultValues, name))\n : _getDirty();\n }\n if (!options.keepError) {\n unset(_formState.errors, name);\n _proxyFormState.isValid && _updateValid();\n }\n _subjects.state.next({ ..._formState });\n }\n };\n const _reset = (formValues, keepStateOptions = {}) => {\n const updatedValues = formValues || _defaultValues;\n const cloneUpdatedValues = cloneObject(updatedValues);\n const values = formValues && !isEmptyObject(formValues)\n ? cloneUpdatedValues\n : _defaultValues;\n if (!keepStateOptions.keepDefaultValues) {\n _defaultValues = updatedValues;\n }\n if (!keepStateOptions.keepValues) {\n if (keepStateOptions.keepDirtyValues || shouldCaptureDirtyFields) {\n for (const fieldName of _names.mount) {\n get(_formState.dirtyFields, fieldName)\n ? set(values, fieldName, get(_formValues, fieldName))\n : setValue(fieldName, get(values, fieldName));\n }\n }\n else {\n if (isWeb && isUndefined(formValues)) {\n for (const name of _names.mount) {\n const field = get(_fields, name);\n if (field && field._f) {\n const fieldReference = Array.isArray(field._f.refs)\n ? field._f.refs[0]\n : field._f.ref;\n if (isHTMLElement(fieldReference)) {\n const form = fieldReference.closest('form');\n if (form) {\n form.reset();\n break;\n }\n }\n }\n }\n }\n _fields = {};\n }\n _formValues = props.shouldUnregister\n ? keepStateOptions.keepDefaultValues\n ? cloneObject(_defaultValues)\n : {}\n : cloneUpdatedValues;\n _subjects.array.next({\n values: { ...values },\n });\n _subjects.values.next({\n values: { ...values },\n });\n }\n _names = {\n mount: new Set(),\n unMount: new Set(),\n array: new Set(),\n watch: new Set(),\n watchAll: false,\n focus: '',\n };\n !_state.mount && flushRootRender();\n _state.mount = !_proxyFormState.isValid || !!keepStateOptions.keepIsValid;\n _state.watch = !!props.shouldUnregister;\n _subjects.state.next({\n submitCount: keepStateOptions.keepSubmitCount\n ? _formState.submitCount\n : 0,\n isDirty: keepStateOptions.keepDirty\n ? _formState.isDirty\n : !!(keepStateOptions.keepDefaultValues &&\n !deepEqual(formValues, _defaultValues)),\n isSubmitted: keepStateOptions.keepIsSubmitted\n ? _formState.isSubmitted\n : false,\n dirtyFields: keepStateOptions.keepDirtyValues\n ? _formState.dirtyFields\n : keepStateOptions.keepDefaultValues && formValues\n ? getDirtyFields(_defaultValues, formValues)\n : {},\n touchedFields: keepStateOptions.keepTouched\n ? _formState.touchedFields\n : {},\n errors: keepStateOptions.keepErrors ? _formState.errors : {},\n isSubmitting: false,\n isSubmitSuccessful: false,\n });\n };\n const reset = (formValues, keepStateOptions) => _reset(isFunction(formValues)\n ? formValues(_formValues)\n : formValues, keepStateOptions);\n const setFocus = (name, options = {}) => {\n const field = get(_fields, name);\n const fieldReference = field && field._f;\n if (fieldReference) {\n const fieldRef = fieldReference.refs\n ? fieldReference.refs[0]\n : fieldReference.ref;\n if (fieldRef.focus) {\n fieldRef.focus();\n options.shouldSelect && fieldRef.select();\n }\n }\n };\n const _updateFormState = (updatedFormState) => {\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n };\n const _resetDefaultValues = () => isFunction(_options.defaultValues) &&\n _options.defaultValues().then((values) => {\n reset(values, _options.resetOptions);\n _subjects.state.next({\n isLoading: false,\n });\n });\n return {\n control: {\n register,\n unregister,\n getFieldState,\n _executeSchema,\n _getWatch,\n _getDirty,\n _updateValid,\n _removeUnmounted,\n _updateFieldArray,\n _getFieldArray,\n _reset,\n _resetDefaultValues,\n _updateFormState,\n _subjects,\n _proxyFormState,\n get _fields() {\n return _fields;\n },\n get _formValues() {\n return _formValues;\n },\n get _state() {\n return _state;\n },\n set _state(value) {\n _state = value;\n },\n get _defaultValues() {\n return _defaultValues;\n },\n get _names() {\n return _names;\n },\n set _names(value) {\n _names = value;\n },\n get _formState() {\n return _formState;\n },\n set _formState(value) {\n _formState = value;\n },\n get _options() {\n return _options;\n },\n set _options(value) {\n _options = {\n ..._options,\n ...value,\n };\n },\n },\n trigger,\n register,\n handleSubmit,\n watch,\n setValue,\n getValues,\n reset,\n resetField,\n clearErrors,\n unregister,\n setError,\n setFocus,\n getFieldState,\n };\n}\n\n/**\n * Custom hook to manage the entire form.\n *\n * @remarks\n * [API](https://react-hook-form.com/api/useform) • [Demo](https://codesandbox.io/s/react-hook-form-get-started-ts-5ksmm) • [Video](https://www.youtube.com/watch?v=RkXv4AXXC_4)\n *\n * @param props - form configuration and validation parameters.\n *\n * @returns methods - individual functions to manage the form state. {@link UseFormReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, watch, formState: { errors } } = useForm();\n * const onSubmit = data => console.log(data);\n *\n * console.log(watch(\"example\"));\n *\n * return (\n *
\n * \n * \n * {errors.exampleRequired && This field is required}\n * \n *
\n * );\n * }\n * ```\n */\nfunction useForm(props = {}) {\n const _formControl = React.useRef();\n const [formState, updateFormState] = React.useState({\n isDirty: false,\n isValidating: false,\n isLoading: isFunction(props.defaultValues),\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n submitCount: 0,\n dirtyFields: {},\n touchedFields: {},\n errors: {},\n defaultValues: isFunction(props.defaultValues)\n ? undefined\n : props.defaultValues,\n });\n if (!_formControl.current) {\n _formControl.current = {\n ...createFormControl(props, () => updateFormState((formState) => ({ ...formState }))),\n formState,\n };\n }\n const control = _formControl.current.control;\n control._options = props;\n useSubscribe({\n subject: control._subjects.state,\n next: (value) => {\n if (shouldRenderFormState(value, control._proxyFormState, control._updateFormState, true)) {\n updateFormState({ ...control._formState });\n }\n },\n });\n React.useEffect(() => {\n if (props.values && !deepEqual(props.values, control._defaultValues)) {\n control._reset(props.values, control._options.resetOptions);\n }\n else {\n control._resetDefaultValues();\n }\n }, [props.values, control]);\n React.useEffect(() => {\n if (!control._state.mount) {\n control._updateValid();\n control._state.mount = true;\n }\n if (control._state.watch) {\n control._state.watch = false;\n control._subjects.state.next({ ...control._formState });\n }\n control._removeUnmounted();\n });\n _formControl.current.formState = getProxyFormState(formState, control);\n return _formControl.current;\n}\n\nexport { Controller, FormProvider, appendErrors, get, set, useController, useFieldArray, useForm, useFormContext, useFormState, useWatch };\n//# sourceMappingURL=index.esm.mjs.map\n","import p, { PureComponent as k, createRef as E } from \"react\";\nconst M = {\n x: 0,\n y: 0,\n width: 0,\n height: 0,\n unit: \"px\"\n}, v = (o, e, t) => Math.min(Math.max(o, e), t), S = (...o) => o.filter((e) => e && typeof e == \"string\").join(\" \"), Y = (o, e) => o === e || o.width === e.width && o.height === e.height && o.x === e.x && o.y === e.y && o.unit === e.unit;\nfunction H(o, e, t, h) {\n const i = y(o, t, h);\n return o.width && (i.height = i.width / e), o.height && (i.width = i.height * e), i.y + i.height > h && (i.height = h - i.y, i.width = i.height * e), i.x + i.width > t && (i.width = t - i.x, i.height = i.width / e), o.unit === \"%\" ? D(i, t, h) : i;\n}\nfunction I(o, e, t) {\n const h = y(o, e, t);\n return h.x = (e - h.width) / 2, h.y = (t - h.height) / 2, o.unit === \"%\" ? D(h, e, t) : h;\n}\nfunction D(o, e, t) {\n return o.unit === \"%\" ? { ...M, ...o, unit: \"%\" } : {\n unit: \"%\",\n x: o.x ? o.x / e * 100 : 0,\n y: o.y ? o.y / t * 100 : 0,\n width: o.width ? o.width / e * 100 : 0,\n height: o.height ? o.height / t * 100 : 0\n };\n}\nfunction y(o, e, t) {\n return o.unit ? o.unit === \"px\" ? { ...M, ...o, unit: \"px\" } : {\n unit: \"px\",\n x: o.x ? o.x * e / 100 : 0,\n y: o.y ? o.y * t / 100 : 0,\n width: o.width ? o.width * e / 100 : 0,\n height: o.height ? o.height * t / 100 : 0\n } : { ...M, ...o, unit: \"px\" };\n}\nfunction P(o, e, t, h, i, n = 0, s = 0, w = h, a = i) {\n const r = { ...o };\n let c = Math.min(n, h), d = Math.min(s, i), g = Math.min(w, h), l = Math.min(a, i);\n e && (e > 1 ? (c = s ? s * e : c, d = c / e, g = w * e) : (d = n ? n / e : d, c = d * e, l = a / e)), r.y < 0 && (r.height = Math.max(r.height + r.y, d), r.y = 0), r.x < 0 && (r.width = Math.max(r.width + r.x, c), r.x = 0);\n const m = h - (r.x + r.width);\n m < 0 && (r.x = Math.min(r.x, h - c), r.width += m);\n const x = i - (r.y + r.height);\n if (x < 0 && (r.y = Math.min(r.y, i - d), r.height += x), r.width < c && ((t === \"sw\" || t == \"nw\") && (r.x -= c - r.width), r.width = c), r.height < d && ((t === \"nw\" || t == \"ne\") && (r.y -= d - r.height), r.height = d), r.width > g && ((t === \"sw\" || t == \"nw\") && (r.x -= g - r.width), r.width = g), r.height > l && ((t === \"nw\" || t == \"ne\") && (r.y -= l - r.height), r.height = l), e) {\n const b = r.width / r.height;\n if (b < e) {\n const C = Math.max(r.width / e, d);\n (t === \"nw\" || t == \"ne\") && (r.y -= C - r.height), r.height = C;\n } else if (b > e) {\n const C = Math.max(r.height * e, c);\n (t === \"sw\" || t == \"nw\") && (r.x -= C - r.width), r.width = C;\n }\n }\n return r;\n}\nfunction _(o, e, t, h) {\n const i = { ...o };\n return e === \"ArrowLeft\" ? h === \"nw\" ? (i.x -= t, i.y -= t, i.width += t, i.height += t) : h === \"w\" ? (i.x -= t, i.width += t) : h === \"sw\" ? (i.x -= t, i.width += t, i.height += t) : h === \"ne\" ? (i.y += t, i.width -= t, i.height -= t) : h === \"e\" ? i.width -= t : h === \"se\" && (i.width -= t, i.height -= t) : e === \"ArrowRight\" && (h === \"nw\" ? (i.x += t, i.y += t, i.width -= t, i.height -= t) : h === \"w\" ? (i.x += t, i.width -= t) : h === \"sw\" ? (i.x += t, i.width -= t, i.height -= t) : h === \"ne\" ? (i.y -= t, i.width += t, i.height += t) : h === \"e\" ? i.width += t : h === \"se\" && (i.width += t, i.height += t)), e === \"ArrowUp\" ? h === \"nw\" ? (i.x -= t, i.y -= t, i.width += t, i.height += t) : h === \"n\" ? (i.y -= t, i.height += t) : h === \"ne\" ? (i.y -= t, i.width += t, i.height += t) : h === \"sw\" ? (i.x += t, i.width -= t, i.height -= t) : h === \"s\" ? i.height -= t : h === \"se\" && (i.width -= t, i.height -= t) : e === \"ArrowDown\" && (h === \"nw\" ? (i.x += t, i.y += t, i.width -= t, i.height -= t) : h === \"n\" ? (i.y += t, i.height -= t) : h === \"ne\" ? (i.y += t, i.width -= t, i.height -= t) : h === \"sw\" ? (i.x -= t, i.width += t, i.height += t) : h === \"s\" ? i.height += t : h === \"se\" && (i.width += t, i.height += t)), i;\n}\nconst f = { capture: !0, passive: !1 };\nlet $ = 0;\nconst u = class u extends k {\n constructor() {\n super(...arguments), this.docMoveBound = !1, this.mouseDownOnCrop = !1, this.dragStarted = !1, this.evData = {\n startClientX: 0,\n startClientY: 0,\n startCropX: 0,\n startCropY: 0,\n clientX: 0,\n clientY: 0,\n isResize: !0\n }, this.componentRef = E(), this.mediaRef = E(), this.initChangeCalled = !1, this.instanceId = `rc-${$++}`, this.state = {\n cropIsActive: !1,\n newCropIsBeingDrawn: !1\n }, this.onCropPointerDown = (e) => {\n const { crop: t, disabled: h } = this.props, i = this.getBox();\n if (!t)\n return;\n const n = y(t, i.width, i.height);\n if (h)\n return;\n e.cancelable && e.preventDefault(), this.bindDocMove(), this.componentRef.current.focus({ preventScroll: !0 });\n const s = e.target.dataset.ord, w = !!s;\n let a = e.clientX, r = e.clientY, c = n.x, d = n.y;\n if (s) {\n const g = e.clientX - i.x, l = e.clientY - i.y;\n let m = 0, x = 0;\n s === \"ne\" || s == \"e\" ? (m = g - (n.x + n.width), x = l - n.y, c = n.x, d = n.y + n.height) : s === \"se\" || s === \"s\" ? (m = g - (n.x + n.width), x = l - (n.y + n.height), c = n.x, d = n.y) : s === \"sw\" || s == \"w\" ? (m = g - n.x, x = l - (n.y + n.height), c = n.x + n.width, d = n.y) : (s === \"nw\" || s == \"n\") && (m = g - n.x, x = l - n.y, c = n.x + n.width, d = n.y + n.height), a = c + i.x + m, r = d + i.y + x;\n }\n this.evData = {\n startClientX: a,\n startClientY: r,\n startCropX: c,\n startCropY: d,\n clientX: e.clientX,\n clientY: e.clientY,\n isResize: w,\n ord: s\n }, this.mouseDownOnCrop = !0, this.setState({ cropIsActive: !0 });\n }, this.onComponentPointerDown = (e) => {\n const { crop: t, disabled: h, locked: i, keepSelection: n, onChange: s } = this.props, w = this.getBox();\n if (h || i || n && t)\n return;\n e.cancelable && e.preventDefault(), this.bindDocMove(), this.componentRef.current.focus({ preventScroll: !0 });\n const a = e.clientX - w.x, r = e.clientY - w.y, c = {\n unit: \"px\",\n x: a,\n y: r,\n width: 0,\n height: 0\n };\n this.evData = {\n startClientX: e.clientX,\n startClientY: e.clientY,\n startCropX: a,\n startCropY: r,\n clientX: e.clientX,\n clientY: e.clientY,\n isResize: !0\n }, this.mouseDownOnCrop = !0, s(y(c, w.width, w.height), D(c, w.width, w.height)), this.setState({ cropIsActive: !0, newCropIsBeingDrawn: !0 });\n }, this.onDocPointerMove = (e) => {\n const { crop: t, disabled: h, onChange: i, onDragStart: n } = this.props, s = this.getBox();\n if (h || !t || !this.mouseDownOnCrop)\n return;\n e.cancelable && e.preventDefault(), this.dragStarted || (this.dragStarted = !0, n && n(e));\n const { evData: w } = this;\n w.clientX = e.clientX, w.clientY = e.clientY;\n let a;\n w.isResize ? a = this.resizeCrop() : a = this.dragCrop(), Y(t, a) || i(\n y(a, s.width, s.height),\n D(a, s.width, s.height)\n );\n }, this.onComponentKeyDown = (e) => {\n const { crop: t, disabled: h, onChange: i, onComplete: n } = this.props;\n if (h)\n return;\n const s = e.key;\n let w = !1;\n if (!t)\n return;\n const a = this.getBox(), r = this.makePixelCrop(a), d = (navigator.platform.match(\"Mac\") ? e.metaKey : e.ctrlKey) ? u.nudgeStepLarge : e.shiftKey ? u.nudgeStepMedium : u.nudgeStep;\n if (s === \"ArrowLeft\" ? (r.x -= d, w = !0) : s === \"ArrowRight\" ? (r.x += d, w = !0) : s === \"ArrowUp\" ? (r.y -= d, w = !0) : s === \"ArrowDown\" && (r.y += d, w = !0), w) {\n e.cancelable && e.preventDefault(), r.x = v(r.x, 0, a.width - r.width), r.y = v(r.y, 0, a.height - r.height);\n const g = y(r, a.width, a.height), l = D(r, a.width, a.height);\n i(g, l), n && n(g, l);\n }\n }, this.onHandlerKeyDown = (e, t) => {\n const {\n aspect: h = 0,\n crop: i,\n disabled: n,\n minWidth: s = 0,\n minHeight: w = 0,\n maxWidth: a,\n maxHeight: r,\n onChange: c,\n onComplete: d\n } = this.props, g = this.getBox();\n if (n || !i)\n return;\n if (e.key === \"ArrowUp\" || e.key === \"ArrowDown\" || e.key === \"ArrowLeft\" || e.key === \"ArrowRight\")\n e.stopPropagation(), e.preventDefault();\n else\n return;\n const m = (navigator.platform.match(\"Mac\") ? e.metaKey : e.ctrlKey) ? u.nudgeStepLarge : e.shiftKey ? u.nudgeStepMedium : u.nudgeStep, x = y(i, g.width, g.height), b = _(x, e.key, m, t), C = P(\n b,\n h,\n t,\n g.width,\n g.height,\n s,\n w,\n a,\n r\n );\n if (!Y(i, C)) {\n const R = D(C, g.width, g.height);\n c(C, R), d && d(C, R);\n }\n }, this.onDocPointerDone = (e) => {\n const { crop: t, disabled: h, onComplete: i, onDragEnd: n } = this.props, s = this.getBox();\n this.unbindDocMove(), !(h || !t) && this.mouseDownOnCrop && (this.mouseDownOnCrop = !1, this.dragStarted = !1, n && n(e), i && i(y(t, s.width, s.height), D(t, s.width, s.height)), this.setState({ cropIsActive: !1, newCropIsBeingDrawn: !1 }));\n }, this.onDragFocus = () => {\n var e;\n (e = this.componentRef.current) == null || e.scrollTo(0, 0);\n };\n }\n get document() {\n return document;\n }\n // We unfortunately get the bounding box every time as x+y changes\n // due to scrolling.\n getBox() {\n const e = this.mediaRef.current;\n if (!e)\n return { x: 0, y: 0, width: 0, height: 0 };\n const { x: t, y: h, width: i, height: n } = e.getBoundingClientRect();\n return { x: t, y: h, width: i, height: n };\n }\n componentDidUpdate(e) {\n const { crop: t, onComplete: h } = this.props;\n if (h && !e.crop && t) {\n const { width: i, height: n } = this.getBox();\n i && n && h(y(t, i, n), D(t, i, n));\n }\n }\n componentWillUnmount() {\n this.resizeObserver && this.resizeObserver.disconnect(), this.unbindDocMove();\n }\n bindDocMove() {\n this.docMoveBound || (this.document.addEventListener(\"pointermove\", this.onDocPointerMove, f), this.document.addEventListener(\"pointerup\", this.onDocPointerDone, f), this.document.addEventListener(\"pointercancel\", this.onDocPointerDone, f), this.docMoveBound = !0);\n }\n unbindDocMove() {\n this.docMoveBound && (this.document.removeEventListener(\"pointermove\", this.onDocPointerMove, f), this.document.removeEventListener(\"pointerup\", this.onDocPointerDone, f), this.document.removeEventListener(\"pointercancel\", this.onDocPointerDone, f), this.docMoveBound = !1);\n }\n getCropStyle() {\n const { crop: e } = this.props;\n if (e)\n return {\n top: `${e.y}${e.unit}`,\n left: `${e.x}${e.unit}`,\n width: `${e.width}${e.unit}`,\n height: `${e.height}${e.unit}`\n };\n }\n dragCrop() {\n const { evData: e } = this, t = this.getBox(), h = this.makePixelCrop(t), i = e.clientX - e.startClientX, n = e.clientY - e.startClientY;\n return h.x = v(e.startCropX + i, 0, t.width - h.width), h.y = v(e.startCropY + n, 0, t.height - h.height), h;\n }\n getPointRegion(e, t, h, i) {\n const { evData: n } = this, s = n.clientX - e.x, w = n.clientY - e.y;\n let a;\n i && t ? a = t === \"nw\" || t === \"n\" || t === \"ne\" : a = w < n.startCropY;\n let r;\n return h && t ? r = t === \"nw\" || t === \"w\" || t === \"sw\" : r = s < n.startCropX, r ? a ? \"nw\" : \"sw\" : a ? \"ne\" : \"se\";\n }\n resolveMinDimensions(e, t, h = 0, i = 0) {\n const n = Math.min(h, e.width), s = Math.min(i, e.height);\n return !t || !n && !s ? [n, s] : t > 1 ? n ? [n, n / t] : [s * t, s] : s ? [s * t, s] : [n, n / t];\n }\n resizeCrop() {\n const { evData: e } = this, { aspect: t = 0, maxWidth: h, maxHeight: i } = this.props, n = this.getBox(), [s, w] = this.resolveMinDimensions(n, t, this.props.minWidth, this.props.minHeight);\n let a = this.makePixelCrop(n);\n const r = this.getPointRegion(n, e.ord, s, w), c = e.ord || r;\n let d = e.clientX - e.startClientX, g = e.clientY - e.startClientY;\n (s && c === \"nw\" || c === \"w\" || c === \"sw\") && (d = Math.min(d, -s)), (w && c === \"nw\" || c === \"n\" || c === \"ne\") && (g = Math.min(g, -w));\n const l = {\n unit: \"px\",\n x: 0,\n y: 0,\n width: 0,\n height: 0\n };\n r === \"ne\" ? (l.x = e.startCropX, l.width = d, t ? (l.height = l.width / t, l.y = e.startCropY - l.height) : (l.height = Math.abs(g), l.y = e.startCropY - l.height)) : r === \"se\" ? (l.x = e.startCropX, l.y = e.startCropY, l.width = d, t ? l.height = l.width / t : l.height = g) : r === \"sw\" ? (l.x = e.startCropX + d, l.y = e.startCropY, l.width = Math.abs(d), t ? l.height = l.width / t : l.height = g) : r === \"nw\" && (l.x = e.startCropX + d, l.width = Math.abs(d), t ? (l.height = l.width / t, l.y = e.startCropY - l.height) : (l.height = Math.abs(g), l.y = e.startCropY + g));\n const m = P(\n l,\n t,\n r,\n n.width,\n n.height,\n s,\n w,\n h,\n i\n );\n return t || u.xyOrds.indexOf(c) > -1 ? a = m : u.xOrds.indexOf(c) > -1 ? (a.x = m.x, a.width = m.width) : u.yOrds.indexOf(c) > -1 && (a.y = m.y, a.height = m.height), a.x = v(a.x, 0, n.width - a.width), a.y = v(a.y, 0, n.height - a.height), a;\n }\n renderCropSelection() {\n const {\n ariaLabels: e = u.defaultProps.ariaLabels,\n disabled: t,\n locked: h,\n renderSelectionAddon: i,\n ruleOfThirds: n,\n crop: s\n } = this.props, w = this.getCropStyle();\n if (s)\n return /* @__PURE__ */ p.createElement(\n \"div\",\n {\n style: w,\n className: \"ReactCrop__crop-selection\",\n onPointerDown: this.onCropPointerDown,\n \"aria-label\": e.cropArea,\n tabIndex: 0,\n onKeyDown: this.onComponentKeyDown,\n role: \"group\"\n },\n !t && !h && /* @__PURE__ */ p.createElement(\"div\", { className: \"ReactCrop__drag-elements\", onFocus: this.onDragFocus }, /* @__PURE__ */ p.createElement(\"div\", { className: \"ReactCrop__drag-bar ord-n\", \"data-ord\": \"n\" }), /* @__PURE__ */ p.createElement(\"div\", { className: \"ReactCrop__drag-bar ord-e\", \"data-ord\": \"e\" }), /* @__PURE__ */ p.createElement(\"div\", { className: \"ReactCrop__drag-bar ord-s\", \"data-ord\": \"s\" }), /* @__PURE__ */ p.createElement(\"div\", { className: \"ReactCrop__drag-bar ord-w\", \"data-ord\": \"w\" }), /* @__PURE__ */ p.createElement(\n \"div\",\n {\n className: \"ReactCrop__drag-handle ord-nw\",\n \"data-ord\": \"nw\",\n tabIndex: 0,\n \"aria-label\": e.nwDragHandle,\n onKeyDown: (a) => this.onHandlerKeyDown(a, \"nw\"),\n role: \"button\"\n }\n ), /* @__PURE__ */ p.createElement(\n \"div\",\n {\n className: \"ReactCrop__drag-handle ord-n\",\n \"data-ord\": \"n\",\n tabIndex: 0,\n \"aria-label\": e.nDragHandle,\n onKeyDown: (a) => this.onHandlerKeyDown(a, \"n\"),\n role: \"button\"\n }\n ), /* @__PURE__ */ p.createElement(\n \"div\",\n {\n className: \"ReactCrop__drag-handle ord-ne\",\n \"data-ord\": \"ne\",\n tabIndex: 0,\n \"aria-label\": e.neDragHandle,\n onKeyDown: (a) => this.onHandlerKeyDown(a, \"ne\"),\n role: \"button\"\n }\n ), /* @__PURE__ */ p.createElement(\n \"div\",\n {\n className: \"ReactCrop__drag-handle ord-e\",\n \"data-ord\": \"e\",\n tabIndex: 0,\n \"aria-label\": e.eDragHandle,\n onKeyDown: (a) => this.onHandlerKeyDown(a, \"e\"),\n role: \"button\"\n }\n ), /* @__PURE__ */ p.createElement(\n \"div\",\n {\n className: \"ReactCrop__drag-handle ord-se\",\n \"data-ord\": \"se\",\n tabIndex: 0,\n \"aria-label\": e.seDragHandle,\n onKeyDown: (a) => this.onHandlerKeyDown(a, \"se\"),\n role: \"button\"\n }\n ), /* @__PURE__ */ p.createElement(\n \"div\",\n {\n className: \"ReactCrop__drag-handle ord-s\",\n \"data-ord\": \"s\",\n tabIndex: 0,\n \"aria-label\": e.sDragHandle,\n onKeyDown: (a) => this.onHandlerKeyDown(a, \"s\"),\n role: \"button\"\n }\n ), /* @__PURE__ */ p.createElement(\n \"div\",\n {\n className: \"ReactCrop__drag-handle ord-sw\",\n \"data-ord\": \"sw\",\n tabIndex: 0,\n \"aria-label\": e.swDragHandle,\n onKeyDown: (a) => this.onHandlerKeyDown(a, \"sw\"),\n role: \"button\"\n }\n ), /* @__PURE__ */ p.createElement(\n \"div\",\n {\n className: \"ReactCrop__drag-handle ord-w\",\n \"data-ord\": \"w\",\n tabIndex: 0,\n \"aria-label\": e.wDragHandle,\n onKeyDown: (a) => this.onHandlerKeyDown(a, \"w\"),\n role: \"button\"\n }\n )),\n i && /* @__PURE__ */ p.createElement(\"div\", { className: \"ReactCrop__selection-addon\", onPointerDown: (a) => a.stopPropagation() }, i(this.state)),\n n && /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement(\"div\", { className: \"ReactCrop__rule-of-thirds-hz\" }), /* @__PURE__ */ p.createElement(\"div\", { className: \"ReactCrop__rule-of-thirds-vt\" }))\n );\n }\n makePixelCrop(e) {\n const t = { ...M, ...this.props.crop || {} };\n return y(t, e.width, e.height);\n }\n render() {\n const { aspect: e, children: t, circularCrop: h, className: i, crop: n, disabled: s, locked: w, style: a, ruleOfThirds: r } = this.props, { cropIsActive: c, newCropIsBeingDrawn: d } = this.state, g = n ? this.renderCropSelection() : null, l = S(\n \"ReactCrop\",\n i,\n c && \"ReactCrop--active\",\n s && \"ReactCrop--disabled\",\n w && \"ReactCrop--locked\",\n d && \"ReactCrop--new-crop\",\n n && e && \"ReactCrop--fixed-aspect\",\n n && h && \"ReactCrop--circular-crop\",\n n && r && \"ReactCrop--rule-of-thirds\",\n !this.dragStarted && n && !n.width && !n.height && \"ReactCrop--invisible-crop\",\n h && \"ReactCrop--no-animate\"\n );\n return /* @__PURE__ */ p.createElement(\"div\", { ref: this.componentRef, className: l, style: a }, /* @__PURE__ */ p.createElement(\"div\", { ref: this.mediaRef, className: \"ReactCrop__child-wrapper\", onPointerDown: this.onComponentPointerDown }, t), n ? /* @__PURE__ */ p.createElement(\"svg\", { className: \"ReactCrop__crop-mask\", width: \"100%\", height: \"100%\" }, /* @__PURE__ */ p.createElement(\"defs\", null, /* @__PURE__ */ p.createElement(\"mask\", { id: `hole-${this.instanceId}` }, /* @__PURE__ */ p.createElement(\"rect\", { width: \"100%\", height: \"100%\", fill: \"white\" }), h ? /* @__PURE__ */ p.createElement(\n \"ellipse\",\n {\n cx: `${n.x + n.width / 2}${n.unit}`,\n cy: `${n.y + n.height / 2}${n.unit}`,\n rx: `${n.width / 2}${n.unit}`,\n ry: `${n.height / 2}${n.unit}`,\n fill: \"black\"\n }\n ) : /* @__PURE__ */ p.createElement(\n \"rect\",\n {\n x: `${n.x}${n.unit}`,\n y: `${n.y}${n.unit}`,\n width: `${n.width}${n.unit}`,\n height: `${n.height}${n.unit}`,\n fill: \"black\"\n }\n ))), /* @__PURE__ */ p.createElement(\"rect\", { fill: \"black\", fillOpacity: 0.5, width: \"100%\", height: \"100%\", mask: `url(#hole-${this.instanceId})` })) : void 0, g);\n }\n};\nu.xOrds = [\"e\", \"w\"], u.yOrds = [\"n\", \"s\"], u.xyOrds = [\"nw\", \"ne\", \"se\", \"sw\"], u.nudgeStep = 1, u.nudgeStepMedium = 10, u.nudgeStepLarge = 100, u.defaultProps = {\n ariaLabels: {\n cropArea: \"Use the arrow keys to move the crop selection area\",\n nwDragHandle: \"Use the arrow keys to move the north west drag handle to change the crop selection area\",\n nDragHandle: \"Use the up and down arrow keys to move the north drag handle to change the crop selection area\",\n neDragHandle: \"Use the arrow keys to move the north east drag handle to change the crop selection area\",\n eDragHandle: \"Use the up and down arrow keys to move the east drag handle to change the crop selection area\",\n seDragHandle: \"Use the arrow keys to move the south east drag handle to change the crop selection area\",\n sDragHandle: \"Use the up and down arrow keys to move the south drag handle to change the crop selection area\",\n swDragHandle: \"Use the arrow keys to move the south west drag handle to change the crop selection area\",\n wDragHandle: \"Use the up and down arrow keys to move the west drag handle to change the crop selection area\"\n }\n};\nlet X = u;\nexport {\n X as Component,\n X as ReactCrop,\n Y as areCropsEqual,\n I as centerCrop,\n v as clamp,\n S as cls,\n P as containCrop,\n D as convertToPercentCrop,\n y as convertToPixelCrop,\n X as default,\n M as defaultCrop,\n H as makeAspectCrop,\n _ as nudgeCrop\n};\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * WordPress Block initialization.\n */\nimport './scss/block-backend-frontend.scss';\nimport './blocks/photo-block/index.js';\nimport './blocks/photo-caption-block/index.js';\nimport './plugins/GlobalStyles/index.js';\n"],"names":["getValueWithUnit","buildDimensionsCSS","buildBorderCSS","hexToRgba","rgb2hex","getColor","colorValue","opacityValue","arguments","length","undefined","indexOf","hex","getStyles","attributes","deviceType","uniqueId","useClass","containerWidth","containerHeight","containerMinWidth","containerMinHeight","containerMaxWidth","containerMaxHeight","captionPosition","photoPaddingSize","photoMarginSize","photoBorderRadius","photoDropShadow","photoObjectPosition","photoOpacity","photoBackgroundColor","photoBackgroundColorOpacity","photoObjectPositionCustom","photoBorder","photoBlur","photoObjectFit","captionCustomTypography","styles","concat","enabled","horizontal","vertical","blur","spread","color","opacity","classnames","useEffect","useRef","__","useResizeObserver","useDispatch","useSelect","dispatch","select","doAction","useBlockProps","useInnerBlocksProps","blockStore","InitialScreen","CaptionAppender","EditScreen","CropScreen","LoadingScreen","FeaturedImageScreen","globalStylesStore","uniqueIds","PhotoBlock","props","setAttributes","clientId","context","isSelected","innerBlockCount","coreSelect","getBlock","innerBlocks","newUniqueId","substr","replace","_useResizeObserver","_useResizeObserver2","_slicedToArray","resizeListener","width","modifierClassNames","pid","postId","queryLoop","query","setInQueryLoop","realUniqueId","includes","inQueryLoop","permUniqueId","oldStore","newBlockStore","setBlockUniqueId","setPhotoMode","getPhotoMode","setCaptionPosition","getCaptionPosition","setHasCaption","hasCaption","setImageData","getImageData","oldScreen","getCurrentScreen","newScreen","setScreen","screen","push","imageData","photoMode","_props$attributes","align","globalStyle","_useSelect","newSelect","maybeGlobalStyle","getGlobalStyleBySlug","Object","keys","globalStyleCSSClassName","css_class","_useDispatch","_useSelect2","currentScreen","isUploading","isProcessingUpload","isUploadError","filepondInstance","getFilepondInstance","blockUniqueId","getBlockUniqueId","blockProps","className","imageRef","captionInnerBlocksClasses","captionInnerBlockProps","allowedBlocks","templateInsertUpdatesSelection","renderAppender","React","createElement","numBlocks","initCurrentScreen","_extends","ref","innerBlockProps","preview","src","photoBlock","blockPreviewImage","alt","style","maxWidth","height","block","Fragment","id","redoSvg","processSvg","metadata","registerBlockType","createBlock","InnerBlocks","Edit","PhotoBlockIcon","icon","edit","save","Content","transforms","from","type","regExp","transform","blocks","url","full","title","caption","imageAttributes","to","geHierarchicalPlaceholderValue","getHierarchicalValueUnit","escapeEditableHTML","isURL","getCaptionStyles","captionBackgroundColor","captionPaddingSize","captionMarginSize","captionBorderRadius","captionBorder","captionTextColor","captionTypography","captionAlign","captionLinkColor","captionLinkHoverColor","captionAccentColor","captionSecondaryColor","captionTextFontFamily","captionHeadingsFontFamily","captionBaseFontSize","overlayBackgroundType","overlayBackgroundColor","overlayBackgroundColorHover","overlayBackgroundGradient","overlayBackgroundGradientOpacity","overlayBackgroundGradientOpacityHover","overlayBackgroundImage","overlayBorderRadius","overlayBorder","mode","enableSmartStyles","fontSize","fontSizeUnit","fontWeight","lineHeight","lineHeightUnit","textTransform","letterSpacing","letterSpacingUnit","fontFamilySlug","fontFamily","value","unit","backgroundColor","decodeURIComponent","encodeURIComponent","backgroundPosition","backgroundRepeat","backgroundSize","parseFloat","backgroundOpacity","backgroundOpacityHover","useState","applyFilters","BaseControl","PanelBody","PanelRow","SelectControl","ButtonGroup","Button","ToggleControl","ToolbarButton","ToolbarGroup","Modal","Popover","MenuGroup","Spinner","RangeControl","MenuItem","TextControl","useSettings","InspectorControls","InspectorAdvancedControls","RichText","BlockControls","store","Trash2","SeparatorHorizontal","Check","Shrink","Info","FormInput","Maximize","AlignLeft","AlignCenter","AlignRight","Shuffle","HtmlToReactParser","require","Parser","DimensionsResponsiveControl","BorderResponsiveControl","SizeResponsiveControl","useDeviceType","SendCommand","TypographyControl","ColorPickerControl","GradientPickerControl","getRandomGradient","RangeResponsiveControl","BackgroundSelectorControl","CustomAttributesControl","Notice","GlobalStyles","canSavePresets","photoBlockUser","heightUnits","fontFamilies","label","family","slug","fallback","PhotoCaptionBlock","oldAttrs","_objectSpread","hasGlobalStyle","_useState","_useState2","setCaption","_useState3","_useState4","captionLoading","setCaptionLoading","_useState5","_useState6","captionPositionPopoverVisible","setCaptionPositionPopoverVisible","_useState7","_useState8","captionPopoverRef","setCaptionPopoverRef","_useState9","_useState10","modePopoverRef","setModePopoverRef","_useState11","_useState12","modePopoverVisible","setModePopoverVisible","_useState13","_useState14","removeCaptionModalVisible","setRemoveCaptionModalVisible","_useState15","_useState16","dataModalVisible","setDataModalVisible","_useState17","_useState18","switchModeModalVisible","setSwitchModeModalVisible","_useState19","_useState20","isCaptionVisible","setIsCaptionVisible","_useState21","_useState22","captionInputRef","setCaptionInputRef","_useDispatch2","removeBlocks","_useDeviceType","_useDeviceType2","setDeviceType","_attributes","captionManual","captionBackgroundColorOpacity","overlayVerticalPosition","overlayCaptionVerticalPosition","overlayHorizontalPosition","overlayCaptionHorizontalPosition","overlayBackgroundColorOpacity","overlayBackgroundColorOpacityHover","overlayDisplayOnHover","overlayDisplayAnimation","htmlAnchor","captionCSSClasses","hideOnMobile","hideOnTablet","hideOnDesktop","captionInnerBlocks","template","placeholder","templateLock","DefaultBlockAppender","getPostId","currentPostId","wp","data","getCurrentPostId","getCaptionFromData","restNonce","restUrl","then","response","_response$data","success","error","focus","_useState23","_useState24","blockFontFamilies","setBlockFamilies","_useSettings","_useSettings2","blockLevelFontFamilies","themeFontFamilies","theme","forEach","font","name","mergedFontFamilies","settingsInspectorControls","initialOpen","options","onChange","checked","help","variant","onClick","key","newValue","onOpacityChange","newOpacity","defaultColors","palette","defaultColor","alpha","min","max","step","values","onValuesChange","labelTop","labelRight","labelBottom","labelLeft","labelAll","isBorderRadius","screenSize","formValues","newValues","units","advancedInspectorControls","imageCSSClasses","styleInspectorControls","scrollAfterOpen","allowNegatives","interfaceTabs","message","status","politeness","localToolbar","isActive","onRequestClose","placement","onClose","anchor","htmlToReactParser","getCaption","maybeOverlayStyles","maybeUniqueId","figClasses","parse","tagName","localInspectorControls","overlayStyles","Subtitles","fill","ToolbarDropdownMenu","AlignmentToolbar","getIcon","alignment","_ref","iconPosition","role","MediaUploadCheck","MediaUpload","useForm","Controller","useWatch","classNames","mediaUploadButton","backgroundSettingsVisible","setBackgroundSettingsVisible","backgroundSettingsPopoverAnchor","setBackgroundSettingsPopoverAnchor","isVisible","setIsVisible","isToggled","setIsToggled","errorImage","setErrorImage","getDefaultValues","_useForm","defaultValues","control","setValue","getValues","getBackgroundRepeat","render","_ref$field","field","toggleClose","setTimeout","getPopoverContent","_ref2","_ref2$field","_ref3","_ref3$field","getBackgroundUploader","_ref4","_ref4$field","onSelect","media","current","multiple","allowedTypes","_ref5","open","showTooltip","tooltipPosition","noArrow","anchorRef","offset","headerTitle","_ref6","_ref6$field","_ref7","_ref7$field","_ref8","_ref8$field","Link","Unlink","HeadingIconResponsive","BorderStyleSolidIcon","BorderStyleDashedIcon","BorderStyleDottedIcon","BorderStyleDoubleIcon","useUnits","_useUnits","onUnitChange","splitValues","getNumericValue","getUnitValue","startsWithNumber","showBorderStylePopoverSync","setShowBorderStylePopoverSync","showBorderStylePopoverTop","setShowBorderStylePopoverTop","showBorderStylePopoverRight","setShowBorderStylePopoverRight","showBorderStylePopoverBottom","setShowBorderStylePopoverBottom","showBorderStylePopoverLeft","setShowBorderStylePopoverLeft","borderStyleSyncButtonRef","setBorderSyncStyleButtonRef","borderStyleTopButtonRef","setBorderStyleTopButtonRef","borderStyleRightButtonRef","setBorderStyleRightButtonRef","borderStyleBottomButtonRef","setBorderStyleBottomButtonRef","borderStyleLeftButtonRef","setBorderStyleLeftButtonRef","mobile","top","borderStyle","right","bottom","left","unitSync","tablet","desktop","changeAllValues","oldValues","newValuesSplit","numericValue","unitValue","syncUnits","newUnit","currentValues","onDimensionChange","isSync","sync","getRangeControlMax","unitVar","subUnit","getRangeControlStep","getBorderStyle","getBorderStyleIcon","getPopoverButtonGroup","setPopoverClosed","isPressed","getSyncInterface","hideLabelFromVision","position","inputMode","autoComplete","_ref5$field","Number","withInputField","getManualInterface","_ref9","_ref9$field","_ref10","_ref10$field","_ref11","_ref11$field","_ref12","_ref12$field","_ref13","_ref13$field","_ref14","_ref14$field","_ref15","_ref15$field","_ref16","_ref16$field","_ref17","_ref17$field","_ref18","_ref18$field","heading","useContext","CSSGramButtonPreview","cssGramOptions","CSSGramButtonGroup","cssGramFilter","_select","currentFilter","setCurrentFilter","map","option","filter","fullUrl","photo","buttonRef","setButtonRef","showPopOver","setShowPopOver","handlePopoverOpen","handlePopoverClose","onMouseEnter","onMouseLeave","blockEditorStore","insertBlock","updateBlockAttributes","appendBlock","newBlocks","PropTypes","Tooltip","ColorPicker","ColorPalette","colorKey","setColorKey","setColor","setOpacity","_props$alpha","_props$hideLabelFromV","getDefaultColors","existingColors","newColors","maybeNewColor","index","opacityIcon","xmlns","viewBox","d","toggleVisible","text","background","onChangeComplete","newColor","disableAlpha","defaultValue","initialPosition","disabled","colors","disableCustomColors","clearable","propTypes","string","func","isRequired","bool","array","defaultProps","X","customAttributes","showCustomAttributes","customAttributeOutput","attributeValues","newCustomAttributes","_toConsumableArray","splice","_props$isBorderRadius","_props$allowNegatives","topUnit","rightUnit","bottomUnit","leftUnit","getRangeControlMin","TextareaControl","Toolbar","PlaceHolder","DropShadowControl","valueOpacity","inset","RadioControl","CheckboxControl","Save","Layers","Pencil","Trash","useFormState","CustomPresetsContext","CustomPresetSaveModal","GlobalStylesDeleteModal","GlobalStylesEditModal","GlobalStylesContainer","loading","setLoading","presetSaveType","setPresetSaveType","presetSaveLabel","setPresetSaveLabel","_useContext","savingPreset","setSavingPreset","editPresets","setEditPresets","showEditModal","setShowEditModal","showDeleteModal","setShowDeleteModal","refreshGlobalStyles","setRefreshGlobalStyles","setDefaultPreset","getGlobalStyles","setGlobalStyle","selectedGlobalStyle","applyAsPreset","_useDispatch3","createSuccessNotice","createWarningNotice","handleSubmit","trigger","setError","clearErrors","_useFormState","errors","globalStyleContainer","showLoading","generateGlobalStyle","ajaxUrl","ajaxurl","formDataNew","FormData","append","globalStylesGenerateNonce","fetch","method","body","headers","Accept","json","onSubmit","formData","_select$getBlocksByCl","globalStyleSlug","currentGlobalStyle","content","children","getBlocksByClientId","captionBlock","find","uniqueIdAttribute","photoBlockAttributes","photoAttributes","captionAttributes","captionBlockAttributes","savedPresets","getGlobalStylesForEditing","styleSelect","deleteNonce","delete_nonce","saveNonce","save_nonce","cssClass","editId","e","preventDefault","AlertCircle","isDeleting","setIsDeleting","setSavedPresets","removeGlobalStyle","shouldCloseOnClickOutside","isDestructive","deletionFailed","canSaveDefaultPresets","_errors$title","_errors$title2","_errors$cssClass","_errors$cssClass2","isSaving","setIsSaving","defaultPreset","rules","required","pattern","saveError","cleanForSlug","canSetDefaultPresets","GlobalStylesSaveModal","_errors$globalStyleLa2","_errors$globalStyleLa3","_errors$globalStyleCS2","_errors$globalStyleCS3","_errors$selectedGloba","setGlobalStyleRefresh","groupSelect","globalStyles","globalStyleLabel","globalStyleCSSClass","globalStyleApplyToBlock","getCurrentAttributes","currentBlock","parentClientId","currentBlockClientId","getBlockParents","parentAttributes","getBlockAttributes","allAttributes","saveNewPreset","overridePreset","hasErrors","applyGlobalStyle","_globalStyle$content","_globalStyle$content$","_select$getBlocksByCl2","currenBlockClientId","newParentClientId","date","Date","getTime","globalStylesSaveNewNonce","JSON","stringify","newData","maybeRefreshBlocks","incomingData","photoBlocks","getBlocks","_block$attributes","innerBlock","getPresetRadioOptions","radioOptions","selected","_errors$globalStyleLa","onBlur","_errors$globalStyleCS","radioValue","formAjaxError","GlobalStylesContext","createContext","Provider","CaptionBlockPreview","PhotoBlockPreview","GlobalStylesButtonPreview","blockPreview","setBlockPreview","_globalStyleObject$co","_globalStyleObject$co2","_globalStyleObject$co3","_globalStyleObject$co4","_globalStyleObject$co5","_globalStyleObject$co6","_globalStyleObject$co7","_globalStyleObject$co8","_globalStyleObject$co9","_globalStyleObject$co10","_globalStyleObject$co11","_globalStyleObject$co12","_globalStyleObject$co13","_globalStyleObject$co14","globalStyleObject","mediaLinkOverride","imageSizeOverride","imageSize","mediaLinkType","mediaLinkTitle","mediaLinkUrl","lightboxCaption","lightboxEnabled","lightboxShowCaption","getImageUrl","defaultImageUrl","defaultImagePlacheolder","classes","CircleMinus","Palette","GlobalStylesPicker","isRemoveModalOpen","setIsRemoveModalOpen","newGlobalStyle","captionBlockClientId","GradientPicker","gradientPickerButtonAnchor","setGradientPickerButtonAnchor","getGradientStyles","hexRegex","match","backgroundImage","gradients","Monitor","Tablet","Smartphone","AspectRatioIcon","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","xmlSpace","ColonIcon","filterURLForDisplay","Link2Off","Link2","Image","FileImage","ExternalLink","URLPicker","MediaLink","expandOnMobile","focusOnMount","restEndpoint","itemIcon","onItemSelect","savedValue","iconSize","href","target","rel","attachment_link","mediaLinkNewTab","mediaLinkRel","mediaLinkClass","mediaLinkAnchorId","speak","WPNotice","_classNames","inline","animate","animationType","hasIcon","Icon","containerClasses","_defineProperty","isDismissible","spokenMessage","actions","oneOf","elementType","animatitionType","PanelBodyControl","_props$initialOpen","_props$id","isPanelOpen","setIsPanelOpen","stored","localStorage","getItem","parent","window","storedValue","isOpen","onToggle","next","storageValueToSave","setItem","UnitPicker","setScreenSize","parseInt","SidebarImageAdvancedInspectorControl","figureCSSClasses","skipLazyLoading","imageProtectionEnabled","stylesInspectorControls","object","Droplet","Wand2","Globe","SidebarImageInspectorControl","newBlur","newDropShadowEnabled","newObjectFit","newObjectPosition","newObjectPositionCustom","forwardRef","CalculateAspectRatioFromPixels","CalculateDimensionsFromAspectRatio","ToolbarAspectRatio","aspectRatioWidth","getAspectRatioWidth","aspectRatioHeight","getAspectRatioHeight","aspectRatioWidthPixels","getAspectRatioWidthPixels","aspectRatioHeightPixels","getAspectRatioHeightPixels","aspectRatioToolbarSelection","getAspectRatioToolbarSelection","aspectRatioUnit","getAspectRatioUnit","setAspectRatio","setAspectRatioPixels","setAspectRatioUnit","aspectRatioWidthRatio","aspectRatioHeightRatio","isDirty","swapAspectRatio","ratioToCalculate","newAspectRatio","_props$fullsizePhoto","imageRatioPixels","fullsizePhoto","humanImageRatio","tooltip","Type","fontSizeUnitPopoverVisible","setFontSizeUnitPopoverVisible","fontSizeUnitPopoverAnchor","setFontSizeUnitPopoverAnchor","lineHeightUnitPopoverVisible","setLineHeightUnitPopoverVisible","lineHeightUnitPopoverAnchor","setLineHeightUnitPopoverAnchor","letterSpacingUnitPopoverVisible","setLetterSpacingUnitPopoverVisible","letterSpacingUnitPopoverAnchor","setLetterSpacingUnitPopoverAnchor","fontSettingsPopoverVisible","setFontSettingsPopoverVisible","fontSettingsPopoverAnchor","setFontSettingsPopoverAnchor","fontType","fontFallback","getFonts","fonts","unshift","getTextTransform","getFontSize","isPrimary","getFontWeights","fontWeights","getLineHeight","getFontType","getFontFallback","getLetterSpacing","_regeneratorRuntime","t","r","prototype","n","hasOwnProperty","o","defineProperty","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","getPrototypeOf","v","g","defineIteratorMethods","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","callInvokeWithMethodAndArg","Error","done","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","isNaN","displayName","isGeneratorFunction","constructor","mark","setPrototypeOf","__proto__","awrap","async","Promise","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","_catch","delegateYield","asyncGeneratorStep","gen","reject","_next","_throw","info","_asyncToGenerator","fn","self","args","apply","err","arr","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","minLen","_arrayLikeToArray","toString","Array","test","len","arr2","isArray","createRef","useCallback","UP","DOWN","ENTER","TAB","useInstanceId","useDebounce","Search","CornerDownLeft","XCircle","File","FileText","inputRef","restEndPoint","generatedUniqueId","suggestions","setSuggestions","showSuggestions","setShowSuggestions","isUpdatingSuggestions","setIsUpdatingSuggestions","currentSuggestionRequest","setCurrentSuggestionRequest","selectedSuggestion","setSelectedSuggestion","currentSuggestion","setCurrentSuggestion","selectedSuggestionIndex","setSelectedSuggestionIndex","suggestionListboxId","setSuggestionListboxId","suggestionValue","setSuggestionValue","savedSuggestionValue","setSavedSuggestionValue","uniqueInstanceId","setUniqueInstanceId","debouncedRequest","updateSuggestions","newSuggestion","permalink","hasInititialFocus","event","onFocus","onKeyDown","keyCode","selectionStart","setSelectionRange","previousIndex","nextIndex","getSuggestion","foundSuggestion","suggestion","_value","isInitialSuggestions","trim","abortController","AbortController","abort","_callee","_callee$","_context","signal","search","t0","suggestionId","suggestionClass","element","sprintf","_x","unitName","isSmall","Redo2","UploadStatus","setIsUploading","setIsUploadError","setIsProcessingUpload","removeFile","addFile","file","FilePond","registerPlugin","FilePondPluginImagePreview","FilePondPluginImageExifOrientation","FilePondPluginFileValidateType","Upload","UploadTarget","setFilepondInstance","allowMultiple","maxFiles","server","process","fieldName","load","progress","transfer","request","XMLHttpRequest","setRequestHeader","upload","onprogress","lengthComputable","loaded","total","onload","responseText","send","credits","stylePanelLayout","labelIdle","allowRemove","allowRevert","labelFileTypeNotAllowed","labelTapToCancel","acceptedFileTypes","onaddfilestart","onprocessfileabort","onerror","imagePreviewMaxFileSize","iconRetry","iconProcess","onprocessfile","Slot","Database","LucideImage","Download","Loader2","ImagePlus","ArrowBigLeftDash","UploadTypes","isUrlSelected","setIsUrlSelected","setUrl","urlInput","setUrlInput","isUrlValidationError","setIsUrlValidationError","isUrlSaving","setIsUrlSaving","urlValidationErrorMessage","setUrlValidationErrorMessage","getUrlIcon","getUrlLabel","isValidUrl","testUrl","urlValidation","validExtensions","parseUrl","URL","path","pathname","toLowerCase","some","extension","endsWith","_response$data$url","maybeUrl","_error$response$data$","_error$response","_error$response$data","errorMessage","newImage","urlImageData","handleSelect","newBlock","console","browse","fillProps","getDeviceType","unitList","number","defaultUnitValue","device","unitSlug","unitRegex","join","splitRegex","RegExp","split","singleValue","useMemo","addFilter","getStylesCaption","getGlobalStyleRefresh","returnRealtimeBlockAttributes","propAttributes","newAttributes","devices","setStyles","globalStyleRefresh","photoStyles","globalStylesCSS","deviceStyles","returnBlockAttributes","blockType","globalStyleAttributes","ToolbarItem","RotateCcw","RotateCw","Lock","ReactCrop","_fullsizePhoto$url","setJustCropped","setOriginalImageData","setAspectRatioToolbarSelection","shouldShowLoading","setShouldShowLoading","shouldFetchImage","setShouldFetchImage","setFullsizePhoto","modifiedPhoto","setModifiedPhoto","rotateDegrees","setRotateDegrees","crop","setCrop","lockCrop","setLockCrop","cropMaxWidth","setCropMaxWidth","cropMaxHeight","setCropMaxHeight","reactCropImageRef","setReactCropImageRef","isDiry","setIsDirty","_useState25","_useState26","cropAspectRatio","setCropAspectRatio","rotateImage","imgSrc","degrees","canvas","document","getContext","image","crossOrigin","radian","Math","PI","sin","cos","imgWidth","abs","imgHeight","translate","rotate","drawImage","toBlob","blob","newImageUrl","createObjectURL","getDegrees","newDegrees","cropImage","cropObject","imageId","displayDimensionsWidth","displayDimensionsHeight","originalDimensionsWidth","originalDimensionsHeight","scaleX","scaleY","scaledCropX","scaledCropY","scaledCropWidth","scaledCropHeight","offsetWidth","offsetHeight","naturalWidth","naturalHeight","x","cropX","cropY","cropWidth","cropHeight","_x2","_x3","setCenterCrop","imageWidth","imageHeight","maximumWidth","maximumHeight","initialCropRatio","minDimension","initialCropSize","newCrop","aspect","maxHeight","fetchImage","_fetchImage","_callee2","_callee2$","_context2","handleAspectRatioChange","newDimensions","newAspectSplit","newAspectRatioWidth","newAspectRatioHeight","as","croppedImage","imageResponse","attachment","minWidth","minHeight","ruleOfThirds","ownKeys","getOwnPropertySymbols","getOwnPropertyDescriptor","getOwnPropertyDescriptors","defineProperties","obj","_toPropertyKey","_toPrimitive","String","toPrimitive","TabPanel","debounce","Crop","Accessibility","Settings","Paintbrush","Undo2","imageLoading","setImageLoading","a11yButton","setA11yButton","a11yPopover","setA11yPopover","inspectorTab","setInspectorTab","imageSizeLoading","setImageSizeLoading","mediaLinkPopover","setMediaLinkPopover","mediaLinkRef","setMediaLinkRef","isSavingAlt","setIsSavingAlt","isSavingTitle","setIsSavingTitle","createInfoNotice","originalImageData","getOriginalImageData","isJustCropped","getJustCropped","_useSelect3","_attributes$imageData","imageUrl","getImageFromSize","size","handleAltChange","altText","handleTitleChange","_callee3","titleText","_callee3$","_context3","imageSizeOptions","imageSizes","photoImg","onLoad","dataImages","hasImage","setHasImage","dataFallbackImage","dataHasFallbackImage","dataFallbackImageSize","dataMediaLinkSource","dataMediaLinkNewTab","getImage","dataImageSize","_media$sizes$large$ur","_media$sizes","_media$sizes$large","_media$sizes$large$wi","_media$sizes2","_media$sizes2$large","_media$sizes$large$he","_media$sizes3","_media$sizes3$large","selectedMedia","sizes","large","border","globalstyle","dataMediaLinkRel","dataMediaLinkClass","imageStyles","isLoading","setIsLoading","setDataScreen","dataScreen","getDataScreen","queryId","isPremium","createReduxStore","register","DEFAULT_STATE","_photoBlock","refresh","reducer","state","action","newGlobalStyles","selectors","justCropped","createBlockStore","blockStores","storeName","isStoreRegistered","instantiate","getBlockStores","findGCF","b","gcf","simplifiedWidth","simplifiedHeight","aspectRatio","_aspectRatio$split$ma","_aspectRatio$split$ma2","round","randomIndex","floor","random","axios","qs","nonce","params","shorthandCSS","output","shorthandCSSUnits","valueObject","cssValue","numberOnly","dimensions","topValue","prefix","topColor","topBorderStyle","CSSRule","rightColor","bottomColor","leftColor","rightBorderStyle","bottomBorderStyle","leftBorderStyle","subType","getHierarchicalValueUnitSync"],"sourceRoot":""} \ No newline at end of file