diff --git a/build/index.asset.php b/build/index.asset.php index 2762f7e..9184337 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' => 'd1427e940782d307549c'); + 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' => '4837c7fc71cf9f0298d5'); diff --git a/build/index.css b/build/index.css index 4023141..7e3b418 100644 --- a/build/index.css +++ b/build/index.css @@ -1,4669 +1,42 @@ -/*!*********************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** 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__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; -} - -.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); - /* 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); - 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); - width: var(--photo-block-image-width, unset); - height: var(--photo-block-image-height, 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); - margin: var(--photo-block-image-margin, 0); - border-radius: var(--photo-block-image-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-image-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-caption-position-overlay .dlx-photo-block__image-wrapper img { - padding: unset; - margin: unset; - border-radius: unset; - border-top: unset; - border-right: unset; - border-bottom: unset; - border-left: unset; -} - -.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 { - 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; - /* 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 { - 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-overlay:hover:before { - background: var(--photo-block-caption-overlay-background-color-hover); -} - -.dlx-photo-block__caption-overlay.overlay-type-gradient: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: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-color); - background-image: var(--photo-block-caption-overlay-image, unset); - background-position: var(--photo-block-caption-overlay-background-position, center); - background-repeat: var(--photo-block-caption-overlay-background-repeat, no-repeat); - background-size: var(--photo-block-caption-overlay-background-size, cover); - opacity: var(--photo-block-caption-overlay-opacity, 1); -} - -.dlx-photo-block__caption-overlay.overlay-type-image:hover: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; - min-width: 400px; - margin: 0 auto; -} - -.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.11 - * 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.30.4 - * 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}.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/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/GlobalStyles/editor.scss ***! - \************************************************************************************************************************************************************************************************************************************************************************************************/ -/* Popover container */ -.photo-block-global-styles-popover { - position: relative; - padding: 25px; - top: 24px !important; -} -.photo-block-global-styles-popover .components-popover__content .photo-block-click-to-share { - margin: 20px !important; - width: 235px; -} -.photo-block-global-styles-popover .components-popover__content ~ .components-popover__arrow { - top: unset !important; - bottom: 34px; - right: 10px !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-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/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 ***! - \*********************************************************************************************************************************************************************************************************************************************************************************************************/ -.ReactCrop { - position: relative; - display: inline-block; - cursor: crosshair; - overflow: hidden; - 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 { - 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-selection { - position: absolute; - top: 0; - left: 0; - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - cursor: move; - -webkit-box-shadow: 0 0 0 9999em rgba(0, 0, 0, 0.5); - box-shadow: 0 0 0 9999em rgba(0, 0, 0, 0.5); - border: 1px dashed white; -} -.ReactCrop--disabled .ReactCrop__crop-selection { - cursor: inherit; -} -.ReactCrop--circular-crop .ReactCrop__crop-selection { - border-radius: 50%; - -webkit-box-shadow: 0px 0px 1px 1px white, 0 0 0 9999em rgba(0, 0, 0, 0.5); - box-shadow: 0px 0px 1px 1px white, 0 0 0 9999em rgba(0, 0, 0, 0.5); -} -.ReactCrop__crop-selection:focus { - outline: none; - border-color: blue; - border-style: solid; -} -.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; -} -.ReactCrop__drag-handle::after { - position: absolute; - content: ""; - display: block; - width: 10px; - height: 10px; - background-color: rgba(0, 0, 0, 0.2); - border: 1px solid rgba(255, 255, 255, 0.7); - outline: 1px solid transparent; -} -.ReactCrop__drag-handle:focus::after { - border-color: blue; - background: #2dbfff; -} -.ReactCrop .ord-nw { - top: 0; - left: 0; - margin-top: -5px; - margin-left: -5px; - cursor: nw-resize; -} -.ReactCrop .ord-nw::after { - top: 0; - left: 0; -} -.ReactCrop .ord-n { - top: 0; - left: 50%; - margin-top: -5px; - margin-left: -5px; - cursor: n-resize; -} -.ReactCrop .ord-n::after { - top: 0; -} -.ReactCrop .ord-ne { - top: 0; - right: 0; - margin-top: -5px; - margin-right: -5px; - cursor: ne-resize; -} -.ReactCrop .ord-ne::after { - top: 0; - right: 0; -} -.ReactCrop .ord-e { - top: 50%; - right: 0; - margin-top: -5px; - margin-right: -5px; - cursor: e-resize; -} -.ReactCrop .ord-e::after { - right: 0; -} -.ReactCrop .ord-se { - bottom: 0; - right: 0; - margin-bottom: -5px; - margin-right: -5px; - cursor: se-resize; -} -.ReactCrop .ord-se::after { - bottom: 0; - right: 0; -} -.ReactCrop .ord-s { - bottom: 0; - left: 50%; - margin-bottom: -5px; - margin-left: -5px; - cursor: s-resize; -} -.ReactCrop .ord-s::after { - bottom: 0; -} -.ReactCrop .ord-sw { - bottom: 0; - left: 0; - margin-bottom: -5px; - margin-left: -5px; - cursor: sw-resize; -} -.ReactCrop .ord-sw::after { - bottom: 0; - left: 0; -} -.ReactCrop .ord-w { - top: 50%; - left: 0; - margin-top: -5px; - margin-left: -5px; - cursor: w-resize; -} -.ReactCrop .ord-w::after { - left: 0; -} -.ReactCrop__disabled .ReactCrop__drag-handle { - cursor: inherit; -} -.ReactCrop__drag-bar { - position: absolute; -} -.ReactCrop__drag-bar.ord-n { - top: 0; - left: 0; - width: 100%; - height: 6px; - margin-top: -3px; -} -.ReactCrop__drag-bar.ord-e { - right: 0; - top: 0; - width: 6px; - height: 100%; - margin-right: -3px; -} -.ReactCrop__drag-bar.ord-s { - bottom: 0; - left: 0; - width: 100%; - height: 6px; - margin-bottom: -3px; -} -.ReactCrop__drag-bar.ord-w { - top: 0; - left: 0; - width: 6px; - height: 100%; - margin-left: -3px; -} -.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: 24px; - height: 24px; - } -} -/*!******************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** 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/Data/editor.scss ***! - \*************************************************************************************************************************************************************************************************************************************************************************************/ -.dlx-photo-block__screen-data { - max-width: 500px; - margin: 0 auto; -} - -.dlx-photo-block__data-row { - margin-bottom: 20px; -} -.dlx-photo-block__data-row:last-of-type { - margin-bottom: 0; -} - -.dlx-photo-block__screen-data-heading { - margin-bottom: 15px !important; /* override core style */ -} - -.dlx-photo-block__post-suggestions { - width: 100%; - position: relative; - top: 100%; - left: 0; - max-height: 250px; - overflow-y: auto; -} -.dlx-photo-block__post-suggestions .photo-block__post-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 !important; /* override core style */ - transition: all 0.4s ease-in-out; - min-height: 45px; -} -.dlx-photo-block__post-suggestions .photo-block__post-suggestion svg { - position: absolute; - width: 24px; - height: 24px; - top: calc(50% - 8px); - left: 10px; -} -.dlx-photo-block__post-suggestions .photo-block__post-suggestion svg path { - fill: unset; -} -.dlx-photo-block__post-suggestions .photo-block__post-suggestion:hover { - background: #f1f1f1; - border-color: var(--wp-admin-theme-color); -} -.dlx-photo-block__post-suggestions .photo-block__post-suggestion.is-selected { - background: #f1f1f1; - border-color: var(--wp-admin-theme-color); -} -.dlx-photo-block__post-suggestions .photo-block__post-suggestion .photo-block-search-item { - display: block; - margin-right: 8px; - white-space: pre-wrap; - overflow-wrap: break-word; -} -.dlx-photo-block__post-suggestions .photo-block__post-suggestion .photo-block-search-item-title { - display: block; - margin-bottom: 0.2em; - font-weight: 500; - position: relative; - overflow: hidden; - text-overflow: ellipsis; -} -.dlx-photo-block__post-suggestions .photo-block__post-suggestion .photo-block-search-item-title.no-margin { - margin: 0; -} -.dlx-photo-block__post-suggestions .photo-block__post-suggestion .photo-block-search-item-info { - word-break: break-all; - display: block; - color: #757575; - font-size: 0.9em; - line-height: 1.3; -} - -.dlx-photo-block__data-row.dlx-photo-block__data-button-apply { - color: #FFF; -} - -.dlx-photo-block__fallback-image-popover { - min-width: 350px; - padding: 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/AdvancedSelect/editor.scss ***! - \**************************************************************************************************************************************************************************************************************************************************************************************************/ -@keyframes photo-block-advanced-select-spin { - 100% { - transform: rotate(360deg); - } -} -.photo-block-post-search__input-wrapper ul { - margin: 0; - padding: 0; -} - -.photo-block-advanced-select { - margin-bottom: 8px; -} - -/** - * Make search input label look like other WP components. - */ -.photo-block-pub-advanced-select__input-label { - color: #1e1e1e; - font-size: 11px; - font-weight: 500; - line-height: 1.4; - text-transform: uppercase; - box-sizing: border-box; - display: block; - padding-top: 0px; - padding-bottom: 0px; - max-width: 100%; - margin-bottom: 8px; - z-index: 1; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -/** - * Style search component, layering the loading animation, and search button over the input. - */ -.photo-block-pub-advanced-select__input-search-wrapper { - position: relative; -} -.photo-block-pub-advanced-select__input-search-wrapper .photo-block-pub-advanced-select__input .components-base-control__field { - margin-bottom: 0; -} -.photo-block-pub-advanced-select__input-search-wrapper .photo-block-pub-advanced-select__loading { - position: absolute; - right: 28px; - top: calc(50% - 12px); - animation: photo-block-advanced-select-spin 1s linear infinite; -} -.photo-block-pub-advanced-select__input-search-wrapper .photo-block-pub-advanced-select__search-button { - position: absolute; - right: 0; - top: calc(50% - 18px); -} - -/** - * Style the results view. - */ -.photo-block-pub-advanced-select__suggestion-display-wrapper { - position: relative; - border: 1px solid rgb(75, 79, 88); - border-radius: 3px; - padding: 8px; - font-size: 13px; -} -.photo-block-pub-advanced-select__suggestion-display-wrapper .photo-block-pub-advanced-select__suggestion-display { - padding-right: 20px; -} -.photo-block-pub-advanced-select__suggestion-display-wrapper .photo-block-pub-advanced-select__suggestion-display-actions { - position: absolute; - right: 0; - top: calc(50% - 18px); -} -.photo-block-pub-advanced-select__suggestion-display-wrapper .photo-block-pub-advanced-select__suggestion-display-actions svg { - color: #AAA; -} -/*!*****************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** 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/DataEdit/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/DataSelect/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/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: 10px 15px; -} -.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: 1fr 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__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;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)}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;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-image-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);height:var(--photo-block-image-height,unset);margin:var(--photo-block-image-margin,0);-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);width:var(--photo-block-image-width,unset)}.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-image-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-caption-position-overlay .dlx-photo-block__image-wrapper img{border:unset;border-radius:unset;margin:unset;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{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{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);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);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-overlay:hover:before{background:var(--photo-block-caption-overlay-background-color-hover)}.dlx-photo-block__caption-overlay.overlay-type-gradient: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:before{background-color:var(--photo-block-caption-overlay-background-color);background-image:var(--photo-block-caption-overlay-image,unset);background-position:var(--photo-block-caption-overlay-background-position,center);background-repeat:var(--photo-block-caption-overlay-background-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-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: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;min-width:400px}.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;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} + +.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-popover{padding:25px;position:relative;top:24px!important}.photo-block-global-styles-popover .components-popover__content .photo-block-click-to-share{margin:20px!important;width:235px}.photo-block-global-styles-popover .components-popover__content~.components-popover__arrow{bottom:34px;right:10px!important;top:unset!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-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} +.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} +.ReactCrop{cursor:crosshair;display:inline-block;max-width:100%;overflow:hidden;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}.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-selection{border:1px dashed #fff;-webkit-box-shadow:0 0 0 9999em rgba(0,0,0,.5);box-shadow:0 0 0 9999em rgba(0,0,0,.5);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%;-webkit-box-shadow:0 0 1px 1px #fff,0 0 0 9999em rgba(0,0,0,.5);box-shadow:0 0 1px 1px #fff,0 0 0 9999em rgba(0,0,0,.5)}.ReactCrop__crop-selection:focus{border-color:blue;border-style:solid;outline:none}.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{position:absolute}.ReactCrop__drag-handle:after{background-color:rgba(0,0,0,.2);border:1px solid hsla(0,0%,100%,.7);content:"";display:block;height:10px;outline:1px solid transparent;position:absolute;width:10px}.ReactCrop__drag-handle:focus:after{background:#2dbfff;border-color:blue}.ReactCrop .ord-nw{cursor:nw-resize;left:0;margin-left:-5px;margin-top:-5px;top:0}.ReactCrop .ord-nw:after{left:0;top:0}.ReactCrop .ord-n{cursor:n-resize;left:50%;margin-left:-5px;margin-top:-5px;top:0}.ReactCrop .ord-n:after{top:0}.ReactCrop .ord-ne{cursor:ne-resize;margin-right:-5px;margin-top:-5px;right:0;top:0}.ReactCrop .ord-ne:after{right:0;top:0}.ReactCrop .ord-e{cursor:e-resize;margin-right:-5px;margin-top:-5px;right:0;top:50%}.ReactCrop .ord-e:after{right:0}.ReactCrop .ord-se{bottom:0;cursor:se-resize;margin-bottom:-5px;margin-right:-5px;right:0}.ReactCrop .ord-se:after{bottom:0;right:0}.ReactCrop .ord-s{bottom:0;cursor:s-resize;left:50%;margin-bottom:-5px;margin-left:-5px}.ReactCrop .ord-s:after{bottom:0}.ReactCrop .ord-sw{bottom:0;cursor:sw-resize;left:0;margin-bottom:-5px;margin-left:-5px}.ReactCrop .ord-sw:after{bottom:0;left:0}.ReactCrop .ord-w{cursor:w-resize;left:0;margin-left:-5px;margin-top:-5px;top:50%}.ReactCrop .ord-w:after{left:0}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{height:6px;left:0;margin-top:-3px;top:0;width:100%}.ReactCrop__drag-bar.ord-e{height:100%;margin-right:-3px;right:0;top:0;width:6px}.ReactCrop__drag-bar.ord-s{bottom:0;height:6px;left:0;margin-bottom:-3px;width:100%}.ReactCrop__drag-bar.ord-w{height:100%;left:0;margin-left:-3px;top:0;width:6px}.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:24px;width:24px}} +.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} +.dlx-photo-block__screen-data{margin:0 auto;max-width:500px}.dlx-photo-block__data-row{margin-bottom:20px}.dlx-photo-block__data-row:last-of-type{margin-bottom:0}.dlx-photo-block__screen-data-heading{margin-bottom:15px!important}.dlx-photo-block__post-suggestions{left:0;max-height:250px;overflow-y:auto;position:relative;top:100%;width:100%}.dlx-photo-block__post-suggestions .photo-block__post-suggestion{align-items:center;background:#fff;border:1px solid #ddd;border-radius:0;display:flex;height:auto;justify-content:flex-start;min-height:45px;padding:5px 20px 5px 40px!important;position:relative;text-align:left;transition:all .4s ease-in-out;width:100%}.dlx-photo-block__post-suggestions .photo-block__post-suggestion svg{height:24px;left:10px;position:absolute;top:calc(50% - 8px);width:24px}.dlx-photo-block__post-suggestions .photo-block__post-suggestion svg path{fill:unset}.dlx-photo-block__post-suggestions .photo-block__post-suggestion.is-selected,.dlx-photo-block__post-suggestions .photo-block__post-suggestion:hover{background:#f1f1f1;border-color:var(--wp-admin-theme-color)}.dlx-photo-block__post-suggestions .photo-block__post-suggestion .photo-block-search-item{display:block;margin-right:8px;overflow-wrap:break-word;white-space:pre-wrap}.dlx-photo-block__post-suggestions .photo-block__post-suggestion .photo-block-search-item-title{display:block;font-weight:500;margin-bottom:.2em;overflow:hidden;position:relative;text-overflow:ellipsis}.dlx-photo-block__post-suggestions .photo-block__post-suggestion .photo-block-search-item-title.no-margin{margin:0}.dlx-photo-block__post-suggestions .photo-block__post-suggestion .photo-block-search-item-info{color:#757575;display:block;font-size:.9em;line-height:1.3;word-break:break-all}.dlx-photo-block__data-row.dlx-photo-block__data-button-apply{color:#fff}.dlx-photo-block__fallback-image-popover{min-width:350px;padding:15px} +@keyframes photo-block-advanced-select-spin{to{transform:rotate(1turn)}}.photo-block-post-search__input-wrapper ul{margin:0;padding:0}.photo-block-advanced-select{margin-bottom:8px}.photo-block-pub-advanced-select__input-label{box-sizing:border-box;color:#1e1e1e;display:block;font-size:11px;font-weight:500;line-height:1.4;margin-bottom:8px;max-width:100%;overflow:hidden;padding-bottom:0;padding-top:0;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;z-index:1}.photo-block-pub-advanced-select__input-search-wrapper{position:relative}.photo-block-pub-advanced-select__input-search-wrapper .photo-block-pub-advanced-select__input .components-base-control__field{margin-bottom:0}.photo-block-pub-advanced-select__input-search-wrapper .photo-block-pub-advanced-select__loading{animation:photo-block-advanced-select-spin 1s linear infinite;position:absolute;right:28px;top:calc(50% - 12px)}.photo-block-pub-advanced-select__input-search-wrapper .photo-block-pub-advanced-select__search-button{position:absolute;right:0;top:calc(50% - 18px)}.photo-block-pub-advanced-select__suggestion-display-wrapper{border:1px solid #4b4f58;border-radius:3px;font-size:13px;padding:8px;position:relative}.photo-block-pub-advanced-select__suggestion-display-wrapper .photo-block-pub-advanced-select__suggestion-display{padding-right:20px}.photo-block-pub-advanced-select__suggestion-display-wrapper .photo-block-pub-advanced-select__suggestion-display-actions{position:absolute;right:0;top:calc(50% - 18px)}.photo-block-pub-advanced-select__suggestion-display-wrapper .photo-block-pub-advanced-select__suggestion-display-actions svg{color:#aaa} + + + +.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:10px 15px}.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:1fr 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 a267039..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;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F;AA1kCC;EACC;EACA;AA4kCF;AAxkCC;EACC;EACA;EACA;EACA;AA0kCF;AAxkCC;EACC;EACA;AA0kCF;AAtkCC;;;;;;;;;;;;EAYC;AAwkCF;AAtkCE;;;;;;;;;;;;EACC;AAmlCH;AAllCG;;;;;;;;;;;;EACC;AA+lCJ;AAzlCC;;;EAGC;EACA;EACA;AA2lCF;AAzlCC;EACC;AA2lCF;AA1lCE;EACC;EACA;EACA;AA4lCH;AA1lCE;EACC;EACA;EACA;AA4lCH;AArlCC;EACC;AAulCF;AAnlCC;EACC;EACA;EACA;AAqlCF;AAnlCC;EACC;EACA;EACA;AAqlCF;AAnlCC;EACC;EACA;EACA;AAqlCF;AAnlCC;EACC;EACA;EACA;AAqlCF;AAnlCC;EACC;EACA;EACA;AAqlCF;AAnlCC;EACC;EACA;EACA;AAqlCF;AAjlCC;;EAEC;EACA;AAmlCF;AAjlCC;;;;;;EAMC;EACA;AAmlCF;AA/kCC;EACC;AAilCF;AA/kCC;;EAEC;EACA;EACA;EACA;EACA;EACA;AAilCF;AA/kCE;;EACC;EACA;AAklCH;AA/kCC;;EAEC;AAilCF;AA9kCC;EACC;AAglCF;AA9kCC;EACC;AAglCF;AA9kCC;EACC;AAglCF;;AA1kCA;AACA;EACC;EACA;AA6kCD;AA3kCC;EACC;AA6kCF;AA3kCC;EACC;AA6kCF;AA3kCC;EACC;AA6kCF;AA3kCC;EACC;AA6kCF;AA3kCC;EACC;AA6kCF;;AA1kCA;AACA;EACC;AA6kCD;;AA3kCA;EACC;AA8kCD;;AA5kCA;EACC;AA+kCD;;AA7kCA;EACC;AAglCD;;AA9kCA;EACC;AAilCD;;AA/kCA;;EAAA;AAGA;;EAEC;AAklCD;;AAhlCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAmlCD;;AAjlCA;EACC;EACA;KAAA;EACA;EACA;EACA;EACA;KAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAolCD;;AAllCA;EACC;AAqlCD;;AAnlCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAslCD;;AAplCA;EACC;EACA;AAulCD;;AArlCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;AAwlCD;;AAtlCA;EACC;EACA;AAylCD;;AAvlCA;EACC;EACA;AA0lCD;;AAxlCA;EACC;AA2lCD;;AAzlCA;EACC;EACA;EACA;AA4lCD;;AA1lCA;EACC;EACA;EACA;EACA;EACA;AA6lCD;AA3lCC;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AA6lCF;AA1lCC;EACC;EACA;EACA;AA4lCF;AA1lCC;;EAEC;AA4lCF;AA1lCC;EACC;AA4lCF;AA1lCC;EACC;AA4lCF;AA1lCC;EACC;EACA;AA4lCF;AA1lCC;EACC;AA4lCF;AA1lCC;EACC;EACA;EACA;EACA;AA4lCF;AA1lCC;EACC;AA4lCF;AA1lCC;EACC;EACA;EACA;EACA;AA4lCF;AA1lCC;EACC;AA4lCF;AA1lCC;EACC;EACA;EACA;EACA;AA4lCF;AA1lCC;EACC;AA4lCF;;AAvlCC;EACC;EACA;EACA;EACA;EACA;EACA;AA0lCF;AAvlCC;EACC;AAylCF;AAtlCC;EACC;AAwlCF;AAtlCC;EACC;AAwlCF;AAtlCC;EACC;AAwlCF;AAtlCC;EACC;AAwlCF;AAtlCC;EACC;AAwlCF;AAtlCC;EACC;AAwlCF;AAtlCC;EACC;AAwlCF;AAtlCC;EACC;AAwlCF;AAtlCC;EACC;AAwlCF;AAtlCC;EACC;EACA;AAwlCF;AAtlCC;EACC;EACA;AAwlCF;AAtlCC;EACC;EACA;AAwlCF;;AArlCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAwlCD;AAtlCC;EACC;AAwlCF;AAtlCE;EACC;AAwlCH;;AAnlCA;EACC;AAslCD;;AAplCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAulCD;;AArlCA;EACC;EACA;EACA;EACA;AAwlCD;;AAtlCA;EACC;AAylCD;;AAvlCA;EACC;AA0lCD;;AAxlCA;EACC;AA2lCD;;AAzlCA;EACC;EACA;EACA;EACA;EACA;EACA;AA4lCD;;AA1lCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AA6lCD;;AA3lCA;EACC;AA8lCD;;AA5lCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AA+lCD;;AA7lCA;EACC;AAgmCD;;AA7lCA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;AA+lCD;;AA7lCA;EACC;AAgmCD;;AA7lCA;AACA;;EAEC;EACA;EACA;AAgmCD;;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;;;;A0BxuDA;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;E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;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;EACC;EACA;EACA;EACA;EACA;EACA;AACD;AACC;EACC;AACF;AAEC;EACC;AAAF;AAEC;EACC;AAAF;AAEC;EACC;AAAF,C;;;;ACnBA;AACA;EACC;EACA;EACA;AACD;AACE;EACC;EACA;AACH;AAEE;EACC;EACA;EACA;AAAH;;AAMC;EACC;AAHF;;AAMA;EACC;EACA;EACA;AAHD;AAKC;EACC;EACA;EACA;EACA;EACA;AAHF;AAKE;EACC;EACA;EACA;EACA;EACA;EACA;AAHH;;AAQA;AACA;EACC;EACA;EACA;AALD;;AAOA;EACC;AAJD;;AAOA;AACA;EAQC;AAXD;AAIC;EACC;EACA;AAFF;AAGE;EACC;AADH;;AAMA;EACC;AAHD;;AAKA;EACC;EACA;AAFD;AAIC;;EAEC;EACA;EACA;AAFF;AAIE;;EACC;AADH;;AAMA;AACA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAHD;AAIC;EAEC;EACA;AAHF;AAKC;EAEC;EACA;AAJF;;AAQC;EACC;EACA;EACA;AALF;AAOE;EAEC;EACA;AANH;AAQE;EAEC;EACA;AAPH;;AAYA;EACC;EACA;AATD;AAWC;EACC;EACA;EACA;AATF;AAUE;EACC;EACA;EACA;EACA;AARH;AAUE;EACC;AARH;AAUE;EACC;EACA;EACA;EACA;AARH;AAUE;EACC;EACA;EACA;AARH;;AAYA;EACC;AATD;AAWC;EACC;AATF;;AAaC;EACC;EACA;AAVF;;AAcA;AACA;EACC;AAXD;AAaC;EACC;EACA;AAXF;AAaC;EACC;AAXF;AAcC;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAZF;AAeC;EACC;AAbF;AAgBC;EACC;AAdF;;AAiBA;EACC;EACA;AAdD;AAgBC;EACC;EACA;EACA;EACA;EACA;AAdF;AAeE;EACC;EACA;EACA;EACA;AAbH;AAeE;EACC;AAbH;AAeE;EACC;EACA;EACA;EACA;AAbH;AAeE;EACC;EACA;EACA;AAbH;AAgBE;EACC;EACA;AAdH;;AAkBA;EACC;AAfD;AAiBC;EACC;AAfF;;AAkBA;EACC;EACA;EACA;AAfD;AAiBC;EACC;EACA;AAfF;AAiBC;EACC;EACA;EACA;AAfF;AAiBC;EACC;EACA;EACA;AAfF;;AAkBA;EACC;AAfD;;AAiBA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAdD;;AAgBA;EACC;EACA;AAbD;;AAeA;EACC;AAZD;;AAcA;EACC;AAXD,C;;;;ACrRA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;AACD;;AACA;EACC;AAED;;AAAA;EACC;EACA;EACA;EACA;OAAA;EACA;AAGD;AADC;EAC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4EE;EACE;EACA;EACA;EACA;EACA;AA1EJ;AA4EI;EACE;EACA;AA1EN;AA6EE;EACE;EACA;EACA;EACA;EACA;AA3EJ;AA6EI;EACE;AA3EN;AA8EE;EACE;EACA;EACA;EACA;EACA;AA5EJ;AA8EI;EACE;EACA;AA5EN;AA+EE;EACE;EACA;EACA;EACA;EACA;AA7EJ;AA+EI;EACE;AA7EN;AAmFE;EACE;AAjFJ;AAoFE;EACE;AAlFJ;AAoFI;EACE;EACA;EACA;EACA,WAzQU;EA0QV;AAlFN;AAoFI;EACE;EACA;EACA,UA/QU;EAgRV;EACA;AAlFN;AAoFI;EACE;EACA;EACA;EACA,WAvRU;EAwRV;AAlFN;AAoFI;EACE;EACA;EACA,UA7RU;EA8RV;EACA;AAlFN;AAsFE;EAGE;AAtFJ;AAyFE;EAIE;AA1FJ;AA6FE;EACE;;;;IAIE;EA3FJ;EA8FE;IACE,WAtTqB;IAuTrB,YAtTsB;EA0N1B;AACF,C;;;;ACzOA;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;;;;ACxCA;EACC;EACA;AACD;;AACA;EACC;AAED;AADC;EACC;AAGF;;AAAA;EACC;AAGD;;AADA;EACC;EACA;EACA;EACA;EACA;EACA;AAID;AAHC;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAKF;AAHE;EACC;EACA;EACA;EACA;EACA;AAKH;AAJG;EACC;AAMJ;AAFE;EACC;EACA;AAIH;AADE;EACC;EACA;AAGH;AAAE;EACC;EACA;EACA;EACA;AAEH;AAAE;EACC;EACA;EACA;EACA;EACA;EACA;AAEH;AAAG;EACC;AAEJ;AACE;EACC;EACA;EACA;EACA;EACA;AACH;;AAIA;EACC;AADD;;AAIA;EACC;EACA;AADD,C;;;;ACzFA;EACC;IACC;EACA;AACF;AACA;EACC;EACA;AACD;;AAEA;EACC;AACD;;AAEA;;EAAA;AAGA;EACC;EACA;EACG;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACH;EACG;EACA;EACA;EACA;AACJ;;AAEA;;EAAA;AAGA;EACC;AACD;AAEE;EACC;AAAH;AAIC;EACC;EACA;EACA;EACA;AAFF;AAKC;EACC;EACA;EACA;AAHF;;AAOA;;EAAA;AAGA;EACC;EACA;EACA;EACA;EACA;AAJD;AAMC;EACC;AAJF;AAMC;EACC;EACA;EACA;AAJF;AAKE;EACC;AAHH,C;;;;;;;;;;;;;;;;AC3EC;EACC;AAAF;;AAIC;EACC;AADF;AAEE;EACC;AAAH;;AAME;EACC;AAHH;;AAOA;EACC;EACA;EACA;AAJD,C;;;;ACnBA;AACA;EACC;AACD;AACC;EACC;EACA;AACF;AACC;EACC;EACA;AACF;AAEC;EACC;AAAF;AAGC;EACC;EACA;EACA;EACA;AADF;AAGE;EACC;EACA;EACA;OAAA;EACA;AADH;AAGG;EACC;EACA;EACA;EACA;AADJ;;AAQA;AAEC;EACC;EACA;EACA;EACA;AANF;AAQE;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AANH;AAQG;EAEC;AAPJ;;AAaA;AACA;EACC;AAVD;;AAeC;EACC;AAZF;AAeC;EACC;EACA;AAbF;AAgBC;EACC;EACA;EACA;EACA;EACA;AAdF;AAiBC;EACC;EACA;EACA;EACA;AAfF;AAiBE;EACC;AAfH;;AAmBA;EACC;EACA;AAhBD;AAkBC;EACC;AAhBF,C;;;;AC1FA;;;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/CustomAttributes/editor.scss","webpack://photo-block/./src/components/GlobalStyles/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/screens/Data/editor.scss","webpack://photo-block/./src/components/AdvancedSelect/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__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}\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\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\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\twidth: var( --photo-block-image-width, unset );\n\theight: var( --photo-block-image-height, unset );\n\tobject-position: var( --photo-block-image-object-position, center );\n\tpadding: var( --photo-block-image-padding, 0 );\n\tmargin: var( --photo-block-image-margin, 0 );\n\tborder-radius: var( --photo-block-image-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-image-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-caption-position-overlay .dlx-photo-block__image-wrapper img {\n\tpadding: unset;\n\tmargin: unset;\n\tborder-radius: unset;\n\tborder-top: unset;\n\tborder-right: unset;\n\tborder-bottom: unset;\n\tborder-left: unset;\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\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\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\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-overlay:hover:before {\n\tbackground: var( --photo-block-caption-overlay-background-color-hover );\n}\n.dlx-photo-block__caption-overlay.overlay-type-gradient: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: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-color );\n\tbackground-image: var( --photo-block-caption-overlay-image, unset );\n\tbackground-position: var( --photo-block-caption-overlay-background-position, center );\n\tbackground-repeat: var( --photo-block-caption-overlay-background-repeat, no-repeat );\n\tbackground-size: var( --photo-block-caption-overlay-background-size, cover );\n\topacity: var( --photo-block-caption-overlay-opacity, 1 );\n}\n.dlx-photo-block__caption-overlay.overlay-type-image:hover: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\tmin-width: 400px;\n\tmargin: 0 auto;\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.11\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.30.4\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}.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}",".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}","/* Popover container */\n.photo-block-global-styles-popover {\n\tposition: relative;\n\tpadding: 25px;\n\ttop: 24px !important;\n\t.components-popover__content {\n\t\t.photo-block-click-to-share {\n\t\t\tmargin: 20px !important;\n\t\t\twidth: 235px;\n\n\t\t}\n\t\t~ .components-popover__arrow {\n\t\t\ttop: unset !important;\n\t\t\tbottom: 34px;\n\t\t\tright: 10px !important;\n\t\t}\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-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}",".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// SASS variables for normal drag handle and bar size.\n// Override in your scss file by setting these variables FIRST, then including this file.\n$drag-handle-width: 10px !default;\n$drag-handle-height: 10px !default;\n$drag-bar-size: 6px !default;\n\n// Mobile handle/bar sizes. Override as above.\n$drag-handle-mobile-width: 24px !default;\n$drag-handle-mobile-height: 24px !default;\n\n// Handle color/border.\n$drag-handle-background-colour: rgba(0, 0, 0, 0.2) !default;\n$drag-handle-border: 1px solid rgba(255, 255, 255, 0.7) !default;\n$drag-handle-active-border-color: blue !default;\n$drag-handle-active-bg-color: #2dbfff !default;\n\n$half-drag-handle-height: math.div($drag-handle-height, 2);\n$half-drag-handle-width: math.div($drag-handle-width, 2);\n$half-drag-bar-size: math.div($drag-bar-size, 2);\n\n.ReactCrop {\n $root: &;\n\n position: relative;\n display: inline-block;\n cursor: crosshair;\n overflow: hidden;\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 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-selection {\n position: absolute;\n top: 0;\n left: 0;\n transform: translate3d(0, 0, 0);\n cursor: move;\n box-shadow: 0 0 0 9999em rgba(0, 0, 0, 0.5);\n\n .ReactCrop--disabled & {\n cursor: inherit;\n }\n\n .ReactCrop--circular-crop & {\n border-radius: 50%;\n box-shadow: 0px 0px 1px 1px white, 0 0 0 9999em rgba(0, 0, 0, 0.5);\n }\n\n border: 1px dashed white;\n\n &:focus {\n outline: none;\n border-color: $drag-handle-active-border-color;\n border-style: solid;\n }\n }\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\n &::after {\n position: absolute;\n content: '';\n display: block;\n width: $drag-handle-width;\n height: $drag-handle-height;\n background-color: $drag-handle-background-colour;\n border: $drag-handle-border;\n\n // This stops the borders disappearing when keyboard\n // nudging.\n outline: 1px solid transparent;\n }\n\n &:focus {\n &::after {\n border-color: $drag-handle-active-border-color;\n background: $drag-handle-active-bg-color;\n }\n }\n }\n\n .ord-nw {\n top: 0;\n left: 0;\n margin-top: -$half-drag-handle-height;\n margin-left: -$half-drag-handle-width;\n cursor: nw-resize;\n\n &::after {\n top: 0;\n left: 0;\n }\n }\n .ord-n {\n top: 0;\n left: 50%;\n margin-top: -$half-drag-handle-height;\n margin-left: -$half-drag-handle-width;\n cursor: n-resize;\n\n &::after {\n top: 0;\n }\n }\n .ord-ne {\n top: 0;\n right: 0;\n margin-top: -$half-drag-handle-height;\n margin-right: -$half-drag-handle-width;\n cursor: ne-resize;\n\n &::after {\n top: 0;\n right: 0;\n }\n }\n .ord-e {\n top: 50%;\n right: 0;\n margin-top: -$half-drag-handle-height;\n margin-right: -$half-drag-handle-width;\n cursor: e-resize;\n\n &::after {\n right: 0;\n }\n }\n .ord-se {\n bottom: 0;\n right: 0;\n margin-bottom: -$half-drag-handle-height;\n margin-right: -$half-drag-handle-width;\n cursor: se-resize;\n\n &::after {\n bottom: 0;\n right: 0;\n }\n }\n .ord-s {\n bottom: 0;\n left: 50%;\n margin-bottom: -$half-drag-handle-height;\n margin-left: -$half-drag-handle-width;\n cursor: s-resize;\n\n &::after {\n bottom: 0;\n }\n }\n .ord-sw {\n bottom: 0;\n left: 0;\n margin-bottom: -$half-drag-handle-height;\n margin-left: -$half-drag-handle-width;\n cursor: sw-resize;\n\n &::after {\n bottom: 0;\n left: 0;\n }\n }\n .ord-w {\n top: 50%;\n left: 0;\n margin-top: -$half-drag-handle-height;\n margin-left: -$half-drag-handle-width;\n cursor: w-resize;\n\n &::after {\n left: 0;\n }\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: $drag-bar-size;\n margin-top: -$half-drag-bar-size;\n }\n &.ord-e {\n right: 0;\n top: 0;\n width: $drag-bar-size;\n height: 100%;\n margin-right: -$half-drag-bar-size;\n }\n &.ord-s {\n bottom: 0;\n left: 0;\n width: 100%;\n height: $drag-bar-size;\n margin-bottom: -$half-drag-bar-size;\n }\n &.ord-w {\n top: 0;\n left: 0;\n width: $drag-bar-size;\n height: 100%;\n margin-left: -$half-drag-bar-size;\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: $drag-handle-mobile-width;\n height: $drag-handle-mobile-height;\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}",".dlx-photo-block__screen-data {\n\tmax-width: 500px;\n\tmargin: 0 auto;\n}\n.dlx-photo-block__data-row {\n\tmargin-bottom: 20px;\n\t&:last-of-type {\n\t\tmargin-bottom: 0;\n\t}\n}\n.dlx-photo-block__screen-data-heading {\n\tmargin-bottom: 15px !important; /* override core style */\n}\n.dlx-photo-block__post-suggestions {\n\twidth: 100%;\n\tposition: relative;\n\ttop: 100%;\n\tleft: 0;\n\tmax-height: 250px;\n\toverflow-y: auto;\n\t.photo-block__post-suggestion {\n\t\tposition: relative;\n\t\tborder: 1px solid #ddd;\n\t\tborder-radius: 0;\n\t\twidth: 100%;\n\t\theight: auto;\n\t\tbackground: #FFF;\n\t\tdisplay: flex;\n\t\tjustify-content: flex-start;\n\t\talign-items: center;\n\t\ttext-align: left;\n\t\tpadding: 5px 20px 5px 40px !important; /* override core style */\n\t\ttransition: all 0.4s ease-in-out;\n\t\tmin-height: 45px;\n\n\t\tsvg {\n\t\t\tposition: absolute;\n\t\t\twidth: 24px;\n\t\t\theight: 24px;\n\t\t\ttop: calc(50% - 8px);\n\t\t\tleft: 10px;\n\t\t\tpath {\n\t\t\t\tfill: unset;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: #f1f1f1;\n\t\t\tborder-color: var( --wp-admin-theme-color );\n\t\t}\n\n\t\t&.is-selected {\n\t\t\tbackground: #f1f1f1;\n\t\t\tborder-color: var( --wp-admin-theme-color );\n\t\t}\n\n\t\t.photo-block-search-item {\n\t\t\tdisplay: block;\n\t\t\tmargin-right: 8px;\n\t\t\twhite-space: pre-wrap;\n\t\t\toverflow-wrap: break-word;\n\t\t}\n\t\t.photo-block-search-item-title {\n\t\t\tdisplay: block;\n\t\t\tmargin-bottom: 0.2em;\n\t\t\tfont-weight: 500;\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&.no-margin {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t}\n\t\t.photo-block-search-item-info {\n\t\t\tword-break: break-all;\n\t\t\tdisplay: block;\n\t\t\tcolor: #757575;\n\t\t\tfont-size: .9em;\n\t\t\tline-height: 1.3;\n\t\t}\n\t}\n}\n\n.dlx-photo-block__data-row.dlx-photo-block__data-button-apply {\n\tcolor: #FFF;\n}\n\n.dlx-photo-block__fallback-image-popover {\n\tmin-width: 350px;\n\tpadding: 15px;\n}","@keyframes photo-block-advanced-select-spin {\n\t100% {\n\t\ttransform: rotate(360deg);\n\t}\n}\n.photo-block-post-search__input-wrapper ul {\n\tmargin: 0;\n\tpadding: 0;\n}\n\n.photo-block-advanced-select {\n\tmargin-bottom: 8px;\n}\n\n/**\n * Make search input label look like other WP components.\n */\n.photo-block-pub-advanced-select__input-label {\n\tcolor: #1e1e1e;\n\tfont-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n box-sizing: border-box;\n display: block;\n padding-top: 0px;\n padding-bottom: 0px;\n max-width: 100%;\n\tmargin-bottom: 8px;\n z-index: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/**\n * Style search component, layering the loading animation, and search button over the input.\n */\n.photo-block-pub-advanced-select__input-search-wrapper {\n\tposition: relative;\n\n\t.photo-block-pub-advanced-select__input {\n\t\t.components-base-control__field {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t}\n\n\t.photo-block-pub-advanced-select__loading {\n\t\tposition: absolute;\n\t\tright: 28px;\n\t\ttop: calc( 50% - 12px ); // Button SVG is 24.5px tall.\n\t\tanimation: photo-block-advanced-select-spin 1s linear infinite;\n\t}\n\n\t.photo-block-pub-advanced-select__search-button {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: calc( 50% - 18px ); // Button SVG is 18px tall.\n\t}\n}\n\n/**\n * Style the results view.\n */\n.photo-block-pub-advanced-select__suggestion-display-wrapper {\n\tposition: relative;\n\tborder: 1px solid rgb(75, 79, 88);\n\tborder-radius: 3px;\n\tpadding: 8px;\n\tfont-size: 13px;\n\n\t.photo-block-pub-advanced-select__suggestion-display {\n\t\tpadding-right: 20px;\n\t}\n\t.photo-block-pub-advanced-select__suggestion-display-actions {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: calc(50% - 18px); // Factor in SVG size and button padding.\n\t\tsvg {\n\t\t\tcolor: #AAA;\n\t\t}\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: 10px 15px;\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: 1fr 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 60763a3..9d3b7e9 100644 --- a/build/index.js +++ b/build/index.js @@ -1,52055 +1,5 @@ -/******/ (() => { // 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; - 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, - 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-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-image-border-radius: ").concat((0,_utils_TypographyHelper__WEBPACK_IMPORTED_MODULE_0__.buildDimensionsCSS)(photoBorderRadius, deviceType), ";\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\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"); - } 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-image-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_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 _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 _utils_Functions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../utils/Functions */ "./src/utils/Functions.js"); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/* harmony import */ var _screens_Initial__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../screens/Initial */ "./src/screens/Initial/index.js"); -/* harmony import */ var _components_CaptionAppender__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../components/CaptionAppender */ "./src/components/CaptionAppender/index.js"); -/* harmony import */ var _screens_Edit__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../screens/Edit */ "./src/screens/Edit/index.js"); -/* harmony import */ var _screens_Crop__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../screens/Crop */ "./src/screens/Crop/index.js"); -/* harmony import */ var _screens_Data__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../screens/Data */ "./src/screens/Data/index.js"); -/* harmony import */ var _screens_DataEdit__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../screens/DataEdit */ "./src/screens/DataEdit/index.js"); -/* harmony import */ var _screens_Loading__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../screens/Loading */ "./src/screens/Loading/index.js"); -/* harmony import */ var _screens_FeaturedImageEdit__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../screens/FeaturedImageEdit */ "./src/screens/FeaturedImageEdit/index.js"); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_18__ = __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); } - - - - - - - - - - - -//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('-', ''); - - /** - * 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_9__.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_9__.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_18__["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_9__.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_9__.blockStore)(uniqueId ? uniqueId : newUniqueId)).getCurrentScreen(), - isUploading: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(uniqueId ? uniqueId : newUniqueId)).isUploading(), - isProcessingUpload: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(uniqueId ? uniqueId : newUniqueId)).isProcessingUpload(), - isUploadError: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(uniqueId ? uniqueId : newUniqueId)).isUploadError(), - filepondInstance: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(uniqueId ? uniqueId : newUniqueId)).getFilepondInstance(), - hasCaption: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(uniqueId ? uniqueId : newUniqueId)).hasCaption(), - captionPosition: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(uniqueId ? uniqueId : newUniqueId)).getCaptionPosition(), - inQueryLoop: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(uniqueId ? uniqueId : newUniqueId)).inQueryLoop(), - photoMode: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.blockStore)(uniqueId ? uniqueId : newUniqueId)).getPhotoMode(), - blockUniqueId: select((0,_store__WEBPACK_IMPORTED_MODULE_9__.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 - }) - }); - - // 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_11__["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_16__["default"], _extends({}, props, { - blockUniqueId: blockUniqueId - })); - case 'initial': - return /*#__PURE__*/React.createElement(_screens_Initial__WEBPACK_IMPORTED_MODULE_10__["default"], { - attributes: attributes, - setAttributes: setAttributes, - blockUniqueId: blockUniqueId, - clientId: clientId - }); - case 'edit': - return /*#__PURE__*/React.createElement(_screens_Edit__WEBPACK_IMPORTED_MODULE_12__["default"], { - attributes: attributes, - setAttributes: setAttributes, - ref: imageRef, - innerBlockProps: captionInnerBlockProps, - clientId: clientId, - blockUniqueId: blockUniqueId - }); - case 'crop': - return /*#__PURE__*/React.createElement(_screens_Crop__WEBPACK_IMPORTED_MODULE_13__["default"], { - attributes: attributes, - setAttributes: setAttributes, - blockUniqueId: blockUniqueId - }); - case 'featuredImage': - return /*#__PURE__*/React.createElement(_screens_FeaturedImageEdit__WEBPACK_IMPORTED_MODULE_17__["default"], { - attributes: attributes, - setAttributes: setAttributes, - context: context, - innerBlockProps: captionInnerBlockProps, - blockUniqueId: blockUniqueId, - clientId: clientId - }); - case 'data': - return /*#__PURE__*/React.createElement(_screens_Data__WEBPACK_IMPORTED_MODULE_14__["default"], { - attributes: attributes, - setAttributes: setAttributes, - context: context, - blockUniqueId: blockUniqueId - }); - case 'data-edit': - return /*#__PURE__*/React.createElement(_screens_DataEdit__WEBPACK_IMPORTED_MODULE_15__["default"], { - attributes: attributes, - setAttributes: setAttributes, - context: context, - innerBlockProps: captionInnerBlockProps, - blockUniqueId: blockUniqueId - }); - case 'effects': - return null; - // return ( - // - // ); - } - return null; - }; - var block = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("section", { - className: "dlx-photo-block__container dlx-photo-block__block-wrapper", - id: uniqueId - }, 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'); - } - }], - 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 getStyles = function getStyles(attributes, deviceType, uniqueId) { - var useClass = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; - 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-image: url('").concat(decodeURIComponent(encodeURIComponent(overlayBackgroundImage.url)), " ');\n\t\t\t\t--photo-block-caption-overlay-background-position: ").concat((0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeEditableHTML)(overlayBackgroundImage.backgroundPosition), ";\n\t\t\t\t--photo-block-caption-overlay-background-repeat: ").concat((0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeEditableHTML)(overlayBackgroundImage.backgroundRepeat), ";\n\t\t\t\t--photo-block-caption-overlay-background-size: ").concat((0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeEditableHTML)(overlayBackgroundImage.backgroundSize), ";\n\t\t\t\t--photo-block-caption-overlay-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-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__ = (getStyles); - -/***/ }), - -/***/ "./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_25__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/shuffle.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/maximize.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/shrink.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/info.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/align-left.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/align-center.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/align-right.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/separator-horizontal.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/rectangle-ellipsis.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/trash-2.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_35__ = __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"); -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); - - - - - - - - - - - - - - - - - -/** - * 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]); - 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 ".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_25__["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') - })))); - - // 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_26__["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_27__["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_28__["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_29__["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_30__["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_31__["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_32__["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_33__["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_34__["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_35__["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_35__["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_35__["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_35__["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_35__["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/AdvancedSelect/index.js": -/*!************************************************!*\ - !*** ./src/components/AdvancedSelect/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/AdvancedSelect/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_13__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__); -/* 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/x.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/search.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/corner-down-left.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 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 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 - */ - - - - - - - - - -/** - * Content Picker for post type data. - * - * @param {Object} props Incoming props. - * - * @return {React.Component} AdvancedSelectControl component. - */ -var AdvancedSelectControl = function AdvancedSelectControl(props) { - /** - * Create Refs for inputs. - */ - var inputRef = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.createRef)(); - var restEndPoint = props.restEndpoint; - var restNonce = props.restNonce; - var children = props.children; - var params = props.params; - var acceptDirectInput = props.acceptDirectInput; - var currentSelectedSuggestion = props.currentSelectedSuggestion; - - /** - * Set Unique Instance ID. - */ - var generatedUniqueId = (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__.useInstanceId)(AdvancedSelectControl, 'photo-block'); - - /** - * 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)("post-search-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]; - var _useState25 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)('post'), - _useState26 = _slicedToArray(_useState25, 2), - dataType = _useState26[0], - setDataType = _useState26[1]; // Can be post, custom. - - /** - * 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 up effect for getting the selected suggestion and displaying it. - */ - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - if (false !== currentSelectedSuggestion) { - setCurrentSuggestion(currentSelectedSuggestion); - setShowSuggestions(false); - } - }, [currentSelectedSuggestion]); - - /** - * 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 {string} newValue The value of the input. - */ - var onChange = function onChange(newValue) { - setSuggestionValue(newValue); - }; - - /** - * Search when focus and no results are present. - * - * @param {event} event Focus event. - */ - var onFocus = function onFocus(event) { - event.preventDefault(); - if (null === selectedSuggestion) { - 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(); - - // If direct input is allowed, we should add the value as the current suggestion. - if (acceptDirectInput && '' !== suggestionValue) { - setCurrentSuggestion(suggestionValue); - setShowSuggestions(false); - props.onItemSelect(event, suggestionValue); - } else { - debouncedRequest(event.target.value); - } - break; - } - case _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_4__.TAB: - { - // If direct input is allowed, we should add the value as the current suggestion. - if (acceptDirectInput && '' !== suggestionValue) { - setCurrentSuggestion(suggestionValue); - setShowSuggestions(false); - props.onItemSelect(event, suggestionValue); - } - 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 direct input is allowed, we should add the value as the current suggestion. - if (acceptDirectInput && '' !== suggestionValue) { - setCurrentSuggestion(suggestionValue); - setShowSuggestions(false); - props.onItemSelect(event, suggestionValue); - } - break; - } - case _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_4__.ENTER: - { - event.preventDefault(); - if (acceptDirectInput && '' !== suggestionValue) { - setCurrentSuggestion(suggestionValue); - setShowSuggestions(false); - props.onItemSelect(event, suggestionValue); - } - 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(); - 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, _objectSpread({ - signal: abortController.signal, - search: encodeURIComponent(value) - }, params), 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-advanced-select" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-pub-advanced-select__wrapper" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-pub-advanced-select__input-wrapper" - }, null !== currentSuggestion && '' !== currentSuggestion && /*#__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: "photo-block-pub-advanced-select__input-label-wrapper" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("label", { - htmlFor: uniqueInstanceId, - className: "photo-block-pub-advanced-select__input-label" - }, props.label)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-pub-advanced-select__suggestion-display-wrapper" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-pub-advanced-select__suggestion-display" - }, currentSuggestion), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-pub-advanced-select__suggestion-display-actions" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - className: "photo-block-pub-advanced-select__suggestion-display-action", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(lucide_react__WEBPACK_IMPORTED_MODULE_10__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Clear', 'photo-block'), - onClick: function onClick() { - setCurrentSuggestion(null); - setSuggestionValue(''); - setShowSuggestions(false); - setSelectedSuggestion(null); - setSelectedSuggestionIndex(null); - setSuggestions([]); - props.onItemSelect(null, null); - } - })))), (null === currentSuggestion || '' === currentSuggestion) && /*#__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: "photo-block-pub-advanced-select__input-label-wrapper" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("label", { - htmlFor: uniqueInstanceId, - className: "photo-block-pub-advanced-select__input-label" - }, props.label)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-pub-advanced-select__input-search-wrapper" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.TextControl, { - id: uniqueInstanceId, - type: "text", - className: "photo-block-pub-advanced-select__input", - placeholder: props.placeholder, - value: suggestionValue, - onChange: onChange, - onFocus: onFocus, - onKeyDown: onKeyDown, - label: props.label, - hideLabelFromVision: true, - "aria-autocomplete": "list", - ref: inputRef - }), loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: "photo-block-pub-advanced-select__loading" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Spinner, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.Button, { - className: "photo-block-pub-advanced-select__search-button", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(lucide_react__WEBPACK_IMPORTED_MODULE_11__["default"], null), - iconSize: 18, - label: props.label, - 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-advanced-select__apply-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__.__)('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); - } - })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { - className: classnames__WEBPACK_IMPORTED_MODULE_2___default()({ - 'has-suggestions': showSuggestions && !!suggestions.length - }) - }, children(showSuggestions, suggestions, selectedSuggestion))); -}; -AdvancedSelectControl.defaultProps = { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Search by ID or title', 'photo-block'), - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Search by ID or title', 'photo-block'), - onItemSelect: function onItemSelect() {}, - children: function children() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null); - }, - hasInititialFocus: false, - acceptDirectInput: false, - itemIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null) -}; -AdvancedSelectControl.propTypes = { - restEndpoint: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string).isRequired, - restNonce: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string).isRequired, - label: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string).isRequired, - placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string).isRequired, - onItemSelect: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func).isRequired, - children: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func).isRequired, - hasInititialFocus: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool).isRequired, - acceptDirectInput: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool), - itemIcon: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element).isRequired -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AdvancedSelectControl); - -/***/ }), - -/***/ "./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(newColor); - _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/DataSelect/index.js": -/*!********************************************!*\ - !*** ./src/components/DataSelect/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 */ DataSelect: () => (/* binding */ DataSelect), -/* harmony export */ MetaFieldControl: () => (/* binding */ MetaFieldControl) -/* harmony export */ }); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editor.scss */ "./src/components/DataSelect/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_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/link-2.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/file-key.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/file-text.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/file.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__); -/* 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 _components_AdvancedSelect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../components/AdvancedSelect */ "./src/components/AdvancedSelect/index.js"); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../store */ "./src/store/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 _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 MetaFieldControl = function MetaFieldControl(props) { - var setAttributes = props.setAttributes, - attributeName = props.attributeName, - endpoint = props.endpoint, - params = props.params, - label = props.label, - placeholder = props.placeholder, - currentSuggestion = props.currentSuggestion, - acceptDirectInput = props.acceptDirectInput; - var _useState = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(currentSuggestion), - _useState2 = _slicedToArray(_useState, 2), - currentMetaFieldSuggestion = _useState2[0], - setCurrentMetaFieldSuggestion = _useState2[1]; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components_AdvancedSelect__WEBPACK_IMPORTED_MODULE_6__["default"], { - restNonce: photoBlock.restNonce, - restEndpoint: photoBlock.restUrl + endpoint /* '/search/types' */, - itemIcon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_8__["default"], null), - params: params, - savedValue: '', - placeholder: placeholder, - label: label, - currentSelectedSuggestion: currentMetaFieldSuggestion, - onItemSelect: function onItemSelect(event, suggestionValue) { - if (null === suggestionValue) { - setAttributes(_defineProperty({}, attributeName, '')); - } else { - setAttributes(_defineProperty({}, attributeName, suggestionValue)); - } - }, - acceptDirectInput: acceptDirectInput - }, function (showSuggestions, suggestions, selectedSuggestion) { - if (showSuggestions && suggestions.length > 0) { - // Render the suggestions as button items. - return /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__post-suggestions" - }, suggestions.map(function (suggestion, index) { - var isSelected = selectedSuggestion === index; - var suggestionClasses = classnames__WEBPACK_IMPORTED_MODULE_4___default()('photo-block__post-suggestion', { - 'is-selected': isSelected - }); - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { - key: index, - value: suggestion, - role: "option", - "aria-selected": suggestion === selectedSuggestion, - className: suggestionClasses, - onClick: function onClick(e) { - setCurrentMetaFieldSuggestion(suggestion); - setAttributes(_defineProperty({}, attributeName, suggestion)); - }, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_9__["default"], null), - iconSize: 2, - iconPosition: "left" - }, /*#__PURE__*/React.createElement("span", { - className: "photo-block-search-item" - }, /*#__PURE__*/React.createElement("span", { - className: "photo-block-search-item-title no-margin" - }, suggestion))); - })); - } - return /*#__PURE__*/React.createElement(React.Fragment, null); - })); -}; -var DataSelect = function DataSelect(props) { - var attributes = props.attributes, - setAttributes = props.setAttributes, - context = props.context, - title = props.title, - prefix = props.prefix, - blockUniqueId = props.blockUniqueId; - var _useState3 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(attributes["".concat(prefix, "PostTitle")]), - _useState4 = _slicedToArray(_useState3, 2), - postTypeSuggestion = _useState4[0], - setPostTypeSuggestion = _useState4[1]; - var dataSource = attributes.dataSource, - dataPostType = attributes.dataPostType, - dataPostId = attributes.dataPostId; - - // Get current block data. - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useSelect)(function (select) { - return { - inQueryLoop: select((0,_store__WEBPACK_IMPORTED_MODULE_7__.blockStore)(blockUniqueId)).inQueryLoop() - }; - }), - inQueryLoop = _useSelect.inQueryLoop; - - // Get query loop vars. - var postId = context.postId; - - /** - * Get a post ID either from the block or attribute. - * - * @return {number} The post ID. - */ - var getPostId = function getPostId() { - var currentPostId = 0; - // If data type is current post, get the current post ID. - if ('currentPost' === dataSource) { - // Determine if we're in a query block. - if (inQueryLoop) { - currentPostId = postId; - } else { - currentPostId = wp.data.select('core/editor').getCurrentPostId(); - } - return currentPostId; - } - // If data type is post type, get the post ID from the attribute. - if ('postType' === dataSource && '' !== dataPostId) { - return dataPostId; - } - return currentPostId; - }; - - /** - * Get a post type label. - * - * @param {string} postTypeValue The post type. - * @return {string} The post type label. - */ - var getPostTypeLabel = function getPostTypeLabel(postTypeValue) { - var postTypeLabel = ''; - photoBlock.postTypes.forEach(function (postTypeOption) { - if (postTypeOption.value === postTypeValue) { - var _postTypeOption$singu; - postTypeLabel = (_postTypeOption$singu = postTypeOption === null || postTypeOption === void 0 ? void 0 : postTypeOption.singular) !== null && _postTypeOption$singu !== void 0 ? _postTypeOption$singu : postTypeOption.label; - } - }); - return postTypeLabel; - }; - - /** - * Get an attribute based on prefix and source. - * - * @param {string} source The source variable. - * @return {string} The attribute. - */ - var getAttribute = function getAttribute(source) { - var attribute = null; - - // If prefix and source are in attributes, return value. - if (attributes["".concat(prefix).concat(source)]) { - attribute = attributes["".concat(prefix).concat(source)]; - } - return attribute; - }; - return /*#__PURE__*/React.createElement(React.Fragment, null, '' !== title && /*#__PURE__*/React.createElement("h3", null, title), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Data Source', 'photo-block'), - value: getAttribute('Source'), - onChange: function onChange(source) { - setAttributes(_defineProperty({}, "".concat(prefix, "Source"), source)); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Select where the alt text should come from.', 'photo-block') - }, /*#__PURE__*/React.createElement("option", { - value: "none" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('None', 'photo-block')), /*#__PURE__*/React.createElement("option", { - value: "currentImage" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Current Image', 'photo-block')), /*#__PURE__*/React.createElement("option", { - value: "currentPost" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Current Post', 'photo-block')), /*#__PURE__*/React.createElement("option", { - value: "postType" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Post Type', 'photo-block'))), getAttribute('Source') === 'postType' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Select a Post Type', 'photo-block'), - value: getAttribute('PostType'), - onChange: function onChange(value) { - setAttributes(_defineProperty({}, "".concat(prefix, "PostType"), value)); - }, - options: photoBlock.postTypes - }), /*#__PURE__*/React.createElement(_components_AdvancedSelect__WEBPACK_IMPORTED_MODULE_6__["default"], { - restNonce: photoBlock.restNonce, - restEndpoint: photoBlock.restUrl + '/search/types', - itemIcon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_8__["default"], null), - params: { - postType: getAttribute('PostType') - }, - savedValue: '', - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Search by ID or title', 'photo-block'), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.sprintf)( /* Translators: %s: post type label. */ - (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Select a %s', 'photo-block'), getPostTypeLabel(getAttribute('PostType'))), - currentSelectedSuggestion: postTypeSuggestion, - onItemSelect: function onItemSelect(event, suggestionValue) { - if (null === suggestionValue) { - setAttributes(_defineProperty({}, "".concat(prefix, "PostId"), '')); - } - } - }, function (showSuggestions, suggestions, selectedSuggestion) { - if (showSuggestions && suggestions.length > 0) { - // Render the suggestions as button items. - return /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__post-suggestions" - }, suggestions.map(function (suggestion, index) { - var isSelected = selectedSuggestion === index; - var suggestionClasses = classnames__WEBPACK_IMPORTED_MODULE_4___default()('photo-block__post-suggestion', { - 'is-selected': isSelected - }); - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { - key: index, - value: suggestion.value, - role: "option", - "aria-selected": suggestion.value === selectedSuggestion, - className: suggestionClasses, - onClick: function onClick(e) { - var _setAttributes7; - setPostTypeSuggestion(suggestion.label); - setAttributes((_setAttributes7 = {}, _defineProperty(_setAttributes7, "".concat(prefix, "PostId"), suggestion.value.toString()), _defineProperty(_setAttributes7, "".concat(prefix, "PostTitle"), suggestion.label), _setAttributes7)); - }, - icon: 'post' === suggestion.type ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_10__["default"], null) : /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_11__["default"], null), - iconSize: 2, - iconPosition: "left" - }, /*#__PURE__*/React.createElement("span", { - className: "photo-block-search-item" - }, /*#__PURE__*/React.createElement("span", { - className: "photo-block-search-item-title" - }, suggestion.label), /*#__PURE__*/React.createElement("span", { - className: "photo-block-search-item-info" - }, suggestion.permalink))); - })); - } - return /*#__PURE__*/React.createElement(React.Fragment, null); - }), getAttribute('PostId') !== '' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Post Data Type', 'photo-block'), - value: getAttribute('PostTypeSource'), - onChange: function onChange(type) { - setAttributes(_defineProperty({}, "".concat(prefix, "PostTypeSource"), type)); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Select the type of data to use for the alt text.', 'photo-block'), - options: [ - /* can be title, postAuthorName, postExcerpt, customField - */ - { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Post Title', 'photo-block'), - value: 'title' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Post Author Name', 'photo-block'), - value: 'postAuthorName' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Post Author Meta', 'photo-block'), - value: 'postAuthorMeta' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Post Excerpt', 'photo-block'), - value: 'postExcerpt' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Custom Field', 'photo-block'), - value: 'customField' - }] - }), getAttribute('PostTypeSource') === 'postAuthorMeta' && /*#__PURE__*/React.createElement(MetaFieldControl, { - setAttributes: setAttributes, - attributeName: "".concat(prefix, "PostTypeAuthorMeta"), - endpoint: '/search/author-meta', - params: { - postType: getAttribute('PostType'), - postId: getAttribute('PostId') - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Select an author meta field', 'photo-block'), - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Search for or enter an author meta field', 'photo-block'), - currentSuggestion: getAttribute('PostTypeAuthorMeta') - }), getAttribute('PostTypeSource') === 'customField' && /*#__PURE__*/React.createElement(MetaFieldControl, { - setAttributes: setAttributes, - attributeName: "".concat(prefix, "PostTypeCustomField"), - params: { - postType: getAttribute('PostType'), - postId: getPostId() - }, - currentSuggestion: getAttribute('PostTypeCustomField') - }))), getAttribute('Source') === 'currentImage' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Image Data Type', 'photo-block'), - value: getAttribute('Type'), - onChange: function onChange(type) { - setAttributes(_defineProperty({}, "".concat(prefix, "Type"), type)); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Select the type of data to use for the alt text.', 'photo-block'), - options: [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Alt Text', 'photo-block'), - value: 'altText' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Caption', 'photo-block'), - value: 'caption' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Image Title', 'photo-block'), - value: 'imageTitle' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Custom Field', 'photo-block'), - value: 'customField' - }] - }), getAttribute('Type') === 'customField' && /*#__PURE__*/React.createElement(MetaFieldControl, { - setAttributes: setAttributes, - attributeName: "".concat(prefix, "ImageCustomField"), - params: { - postType: 'attachment', - postId: 0 - }, - currentSuggestion: getAttribute('ImageCustomField') - })), getAttribute('Source') === 'currentPost' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Post Data Type', 'photo-block'), - value: getAttribute('TypePost'), - onChange: function onChange(type) { - setAttributes(_defineProperty({}, "".concat(prefix, "TypePost"), type)); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Select the type of data to use for the alt text.', 'photo-block'), - options: [ - /* can be title, postAuthorName, postExcerpt, customField - */ - { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Post Title', 'photo-block'), - value: 'title' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Post Author Name', 'photo-block'), - value: 'postAuthorName' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Post Author Meta', 'photo-block'), - value: 'postAuthorMeta' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Post Excerpt', 'photo-block'), - value: 'postExcerpt' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Custom Field', 'photo-block'), - value: 'customField' - }] - }), getAttribute('TypePost') === 'postAuthorMeta' && /*#__PURE__*/React.createElement(MetaFieldControl, { - setAttributes: setAttributes, - attributeName: "".concat(prefix, "TypePostAuthorMeta"), - endpoint: '/search/author-meta', - params: { - postType: dataPostType, - postId: getPostId() - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Select an author meta field', 'photo-block'), - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Search for or enter an author meta field', 'photo-block'), - currentSuggestion: getAttribute('TypePostAuthorMeta') - }), getAttribute('TypePost') === 'customField' && /*#__PURE__*/React.createElement(MetaFieldControl, { - setAttributes: setAttributes, - attributeName: "".concat(prefix, "TypePostCustomField"), - params: { - postType: dataPostType, - postId: getPostId() - }, - currentSuggestion: getAttribute('TypePostCustomField') - }))); -}; -MetaFieldControl.propTypes = { - setAttributes: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func).isRequired, - label: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string).isRequired, - placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), - acceptDirectInput: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool), - attributeName: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string).isRequired, - endpoint: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string) -}; -MetaFieldControl.defaultProps = { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Select a Custom Field', 'photo-block'), - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Search by ID or title', 'photo-block'), - acceptDirectInput: true, - endpoint: '/search/custom-fields' -}; - -/***/ }), - -/***/ "./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; } - - - - - - - - - - - - - -// import PresetButtonEdit from './PresetButtonEdit'; -// import CustomPresetEditModal from './CustomPresetEditModal'; -// import CustomPresetDeleteModal from './CustomPresetDeleteModal'; - -// 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, - clientId = props.clientId; - var _props$attributes = props.attributes, - uniqueId = _props$attributes.uniqueId, - globalStyle = _props$attributes.globalStyle; - 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, - 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 - }; - }), - getGlobalStyles = _useSelect.getGlobalStyles, - getGlobalStyleBySlug = _useSelect.getGlobalStyleBySlug; - 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 _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 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 && /*#__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 && !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)))); -}; -/* 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 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_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_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_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_6__ = __webpack_require__(/*! ./context */ "./src/components/GlobalStyles/context.js"); -/* harmony import */ var _Notice__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Notice */ "./src/components/Notice/index.js"); -/* harmony import */ var _store_global_styles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../store/global-styles */ "./src/store/global-styles.js"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../store */ "./src/store/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 _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, - attributes = props.attributes, - setAttributes = props.setAttributes, - clientId = props.clientId; - var _useContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_6__["default"]), - savedPresets = _useContext.savedPresets, - setSavedPresets = _useContext.setSavedPresets, - savingPreset = _useContext.savingPreset, - setSavingPreset = _useContext.setSavingPreset; - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useDispatch)(_store_global_styles__WEBPACK_IMPORTED_MODULE_8__["default"]), - setGlobalStyle = _useDispatch.setGlobalStyle; - var _useDispatch2 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useDispatch)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_9__.store), - updateBlockAttributes = _useDispatch2.updateBlockAttributes; - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useSelect)(function (groupSelect) { - return { - globalStyles: groupSelect(_store_global_styles__WEBPACK_IMPORTED_MODULE_8__["default"]).getGlobalStyles() - }; - }), - globalStyles = _useSelect.globalStyles; - var _useDispatch3 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useDispatch)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_9__.store), - setCaptionPosition = _useDispatch3.setCaptionPosition; - var getDefaultValues = function getDefaultValues() { - return { - globalStyleLabel: '', - globalStyleSlug: '', - globalStyleCSSClass: '', - selectedGlobalStyle: null - }; - }; - 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 _useDispatch4 = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useDispatch)('core/notices'), - createSuccessNotice = _useDispatch4.createSuccessNotice, - createWarningNotice = _useDispatch4.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 children = ((_select$getBlocksByCl = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.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; - }); - var captionAttributes = captionBlock ? captionBlock.attributes : {}; - - // Get the parent block attributes. - var parentAttributes = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.select)('core/block-editor').getBlockAttributes(clientId); - - // 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; - }; - 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_4__.__)('There was an error saving the global style CSS file.', 'photo-block'), { - type: 'snackbar' - }); - setIsSaving(false); - return; - } - createSuccessNotice((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Global style CSS File generated successfully.', 'photo-block'), { - type: 'snackbar' - }); - })["catch"](function (error) {}); - }; - - /** - * 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_4__.__)('There was an error saving the global style.', 'photo-block'), { - type: 'snackbar' - }); - setIsSaving(false); - return; - } - createSuccessNotice((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Global style saved successfully.', 'photo-block'), { - type: 'snackbar' - }); - setGlobalStyle(data, data.slug); - setIsSaving(false); - setSavingPreset(false); - 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_4__.__)('There was an error saving the global style override.', 'photo-block'), { - type: 'snackbar' - }); - setIsSaving(false); - return; - } - createSuccessNotice((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Global style saved successfully.', 'photo-block'), { - type: 'snackbar' - }); - maybeRefreshBlocks(newData); - setGlobalStyle(newData, newData.slug); - setIsSaving(false); - setSavingPreset(false); - generateGlobalStyle(); - })["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_5__.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; - if (globalStyle !== 'none' && '' !== globalStyle) { - updateBlockAttributes(block.clientId, { - date: new Date().getTime(), - globalStyle: globalStyle, - captionPosition: captionPosition - }); - - // Now get caption blocks and refresh. - var children = block.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_4__.__)('Save Global Style', 'photo-block'), - value: 'new' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Override Global Style', 'photo-block'), - value: 'override' - }]; - if (Object.keys(globalStyles).length === 0 || !canSaveDefaultPresets) { - radioOptions = [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('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_4__.__)('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_4__.__)('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_4__.__)('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_7__["default"], { - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('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_7__["default"], { - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('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_4__.__)('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_4__.__)('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_7__["default"], { - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('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_7__["default"], { - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('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_4__.__)('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_7__["default"], { - message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('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-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_4__.__)('Saving…', 'photo-block') : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('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_4__.__)('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_7__["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]; - 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 - } - }, /*#__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_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../store/index */ "./src/store/index.js"); -/* harmony import */ var _photo_block_preview__WEBPACK_IMPORTED_MODULE_8__ = __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 _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useDispatch)((0,_store_index__WEBPACK_IMPORTED_MODULE_7__.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$, _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; - } - props.setAttributes({ - globalStyle: globalStyle.slug, - hasCaption: hasCaption - }); - - // 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 && captionAttributes) { - 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 && captionAttributes) { - 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__css-gram-image-popover-wrapper" - }, /*#__PURE__*/React.createElement(_photo_block_preview__WEBPACK_IMPORTED_MODULE_8__["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 _store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../store */ "./src/store/index.js"); -/* harmony import */ var _caption_block_preview__WEBPACK_IMPORTED_MODULE_4__ = __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'); - var cssGramFilter = photoAttributes.cssGramFilter; - var captionPosition = captionAttributes.captionPosition; - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.useSelect)(function (select) { - return { - imageData: select((0,_store__WEBPACK_IMPORTED_MODULE_3__.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; - }; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("style", null, styles), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-edit", - 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_4__["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("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_4__["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_4__["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_9__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/trash.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 _store__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/* harmony import */ var _ButtonPreview__WEBPACK_IMPORTED_MODULE_8__ = __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 _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState4 = _slicedToArray(_useState3, 2), - isKeepStyleSettings = _useState4[0], - setIsKeepStyleSettings = _useState4[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_9__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Remove', '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_8__["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", { - className: "description" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Remove the global style from this photo.', 'photo-block')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.CheckboxControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Keep current style settings', 'photo-block'), - checked: isKeepStyleSettings, - onChange: function onChange() { - setIsKeepStyleSettings(!isKeepStyleSettings); - } - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.Button, { - onClick: function onClick() { - if (isKeepStyleSettings) { - 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); - } - } - } else { - props.setAttributes({ - globalStyle: 'none' - }); - // Updatge caption block if any. - 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, { - globalStyle: 'none' - }); - } - } - 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__.__)('Global Styles'), - initialOpen: true - }, 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_9__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/link-2-off.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/image.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/file-image.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/link-2.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_13__ = __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"); -/** - * 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; - var mediaLinkType = attributes.mediaLinkType, - mediaLinkTitle = attributes.mediaLinkTitle, - mediaLinkUrl = attributes.mediaLinkUrl, - lightboxCaption = attributes.lightboxCaption, - lightboxEnabled = attributes.lightboxEnabled, - lightboxShowCaption = attributes.lightboxShowCaption; - 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_9__["default"], null), - className: classnames__WEBPACK_IMPORTED_MODULE_5___default()({ - 'is-pressed': 'none' === mediaLinkType - }), - onClick: function onClick() { - 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_10__["default"], null), - className: classnames__WEBPACK_IMPORTED_MODULE_5___default()({ - 'is-pressed': 'image' === mediaLinkType - }), - onClick: function onClick() { - 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_11__["default"], null), - className: classnames__WEBPACK_IMPORTED_MODULE_5___default()({ - 'is-pressed': 'page' === mediaLinkType - }), - onClick: function onClick() { - 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_12__["default"], null), - className: classnames__WEBPACK_IMPORTED_MODULE_5___default()({ - 'is-pressed': 'custom' === mediaLinkType - }), - onClick: function onClick() { - 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_12__["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_13__["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_13__["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 && /*#__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)); - - // 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_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _components_CustomAttributes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../components/CustomAttributes */ "./src/components/CustomAttributes/index.js"); -/* harmony import */ var _GlobalStyles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../GlobalStyles */ "./src/components/GlobalStyles/index.js"); - - - - - - - -var canSavePresets = photoBlockUser.canSavePresets; -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; - var stylesInspectorControls = /*#__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_4__["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') - })), canSavePresets && /*#__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_3__.__)('Global Styles', 'photo-block'), - id: "photo-block-global-styles", - className: "photo-block-global-styles" - }, /*#__PURE__*/React.createElement(_GlobalStyles__WEBPACK_IMPORTED_MODULE_5__["default"], props)))); - return stylesInspectorControls; -}; -SidebarImageAdvancedInspectorControl.defaultProps = { - attributes: {}, - setAttributes: function setAttributes() {} -}; -SidebarImageAdvancedInspectorControl.propTypes = { - attributes: (prop_types__WEBPACK_IMPORTED_MODULE_6___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_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 lucide_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/palette.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/wand-sparkles.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/maximize.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/shrink.js"); -/* 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 _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"); -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; } - - - - - - - - - - - - - - - -/** - * 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, - containerHeight = attributes.containerHeight, - containerMaxWidth = attributes.containerMaxWidth, - containerMaxHeight = attributes.containerMaxHeight, - containerMinWidth = attributes.containerMinWidth, - containerMinHeight = attributes.containerMinHeight, - photoPaddingSize = attributes.photoPaddingSize, - photoMarginSize = attributes.photoMarginSize, - 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]; - var stylesInspectorControls = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components_PanelBody__WEBPACK_IMPORTED_MODULE_11__["default"], { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Image Styles', 'photo-block'), - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_12__["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) { - setAttributes({ - photoBackgroundColor: newValue - }); - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Background Color', 'highlight-and-share'), - defaultColors: photoBlock.palette, - defaultColor: 'transparent', - slug: 'background-color-photo' - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.RangeControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('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_3__.__)('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_3__.__)('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_3__.__)('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_3__.__)('CSS Styles', 'photo-block'), - className: "photo-block__inspector-panel", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_13__["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_3__.__)('Padding, Margin, and Border', 'photo-block'), - initialOpen: false, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_14__["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_3__.__)('Photo Padding', 'photo-block'), - values: photoPaddingSize, - onValuesChange: function onValuesChange(values) { - setAttributes({ - photoPaddingSize: 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'), - allowNegatives: false - }), /*#__PURE__*/React.createElement(_components_DimensionsResponsive__WEBPACK_IMPORTED_MODULE_9__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Photo Margin', 'photo-block'), - values: photoMarginSize, - onValuesChange: function onValuesChange(values) { - setAttributes({ - photoMarginSize: 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_10__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Photo Border', 'photo-block'), - values: photoBorder, - onValuesChange: function onValuesChange(values) { - setAttributes({ - photoBorder: 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'), - allowNegatives: false - }), /*#__PURE__*/React.createElement(_components_DimensionsResponsive__WEBPACK_IMPORTED_MODULE_9__["default"], { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Photo Border Radius', 'photo-block'), - values: photoBorderRadius, - onValuesChange: function onValuesChange(values) { - setAttributes({ - photoBorderRadius: 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, - allowNegatives: false - })), /*#__PURE__*/React.createElement(_components_PanelBody__WEBPACK_IMPORTED_MODULE_11__["default"], { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Container Sizing', 'photo-block'), - initialOpen: false, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_15__["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_3__.__)('Object Fit', 'photo-block'), - value: photoObjectFit, - options: [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('None', 'photo-block'), - value: 'none' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Inherit', 'photo-block'), - value: 'inherit' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Fill', 'photo-block'), - value: 'fill' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Contain', 'photo-block'), - value: 'contain' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Cover', 'photo-block'), - value: 'cover' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Scale Down', 'photo-block'), - value: 'scale-down' - }], - onChange: function onChange(newObjectFit) { - setAttributes({ - photoObjectFit: newObjectFit - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('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_3__.__)('Object Position', 'photo-block'), - value: photoObjectPosition, - options: [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('None', 'photo-block'), - value: 'none' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Top', 'photo-block'), - value: 'top' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Right', 'photo-block'), - value: 'right' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Bottom', 'photo-block'), - value: 'bottom' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Left', 'photo-block'), - value: 'left' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Custom', 'photo-block'), - value: 'custom' - }], - onChange: function onChange(newObjectPosition) { - setAttributes({ - photoObjectPosition: newObjectPosition - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('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_3__.__)('Custom Object Position', 'photo-block'), - value: photoObjectPositionCustom, - onChange: function onChange(newObjectPositionCustom) { - setAttributes({ - photoObjectPositionCustom: newObjectPositionCustom - }); - }, - help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('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_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_7__["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_7__["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_7__["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_7__["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_7__["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 - }); - } - })))); - return /*#__PURE__*/React.createElement(React.Fragment, null, stylesInspectorControls); -}; -SidebarImageInspectorControl.defaultProps = { - attributes: {}, - setAttributes: function setAttributes() {} -}; -SidebarImageInspectorControl.propTypes = { - attributes: (prop_types__WEBPACK_IMPORTED_MODULE_16___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 lucide_react__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/database.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) - }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, { - variant: "secondary", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_21__["default"], null), - onClick: function onClick() { - setAttributes({ - photoMode: 'data', - screen: 'data' - }); - setPhotoMode('data'); - setScreen('data'); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Data', 'photo-block')))); -}; -/* 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"); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../store */ "./src/store/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); } -var _photoBlock; -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 globalStyles = ((_photoBlock = photoBlock) === null || _photoBlock === void 0 ? void 0 : _photoBlock.globalStyles) || []; - - -(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 (select) { - return { - getGlobalStyleBySlug: select(_store_global_styles__WEBPACK_IMPORTED_MODULE_6__["default"]).getGlobalStyleBySlug - }; - }), - getGlobalStyleBySlug = _useSelect.getGlobalStyleBySlug; - 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 = maybeGlobalStyle.content.captionAttributes; - } else { - newAttributes = maybeGlobalStyle.content.photoAttributes; - } - - // Overwrite attributes with new ones. - 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 (select) { - return { - globalStyles: select(_store_global_styles__WEBPACK_IMPORTED_MODULE_6__["default"]).getGlobalStyles() - }; - }), - globalStyles = _useSelect2.globalStyles; - (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () { - 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); - }, [globalStyles]); - - // 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 = globalStyle.content.photoAttributes; - 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/premium/index.js": -/*!******************************!*\ - !*** ./src/premium/index.js ***! - \******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/plugins */ "@wordpress/plugins"); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_plugins__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 lucide_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/database.js"); -/* 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_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 _store_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../store/index */ "./src/store/index.js"); - - - - - - - - -// Run after block is initialized. -(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_2__.addAction)('dlx_photo_block_has_loaded', 'dlx-photo-block-data-image-type', function (uniqueId) { - var dataPlugin = (0,_wordpress_plugins__WEBPACK_IMPORTED_MODULE_0__.getPlugin)('dlx-photo-block-data-image-type'); - - // If already defined, return. - if (dataPlugin) { - return; - } - (0,_wordpress_plugins__WEBPACK_IMPORTED_MODULE_0__.registerPlugin)('dlx-photo-block-data-image-type', { - render: function render() { - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.useDispatch)((0,_store_index__WEBPACK_IMPORTED_MODULE_5__.blockStore)(uniqueId)), - setPhotoMode = _useDispatch.setPhotoMode, - setScreen = _useDispatch.setScreen; - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Fill, { - name: "dlx-photo-block.upload-types" - }, function (_ref) { - var setAttributes = _ref.setAttributes; - return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { - variant: "secondary", - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_6__["default"], null), - onClick: function onClick() { - setAttributes({ - photoMode: 'data', - screen: 'data' - }); - setPhotoMode('data'); - setScreen('data'); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Data', 'photo-block'))); - }); - } - }); -}); - -// registerPlugin( -// 'dlx-photo-block-data-image-type', -// { -// render: () => { -// const { -// setPhotoMode, -// setScreen, -// // eslint-disable-next-line react-hooks/rules-of-hooks -// } = useDispatch( blockStore( uniqueId ) ); - -// return ( -// -// { ( { setAttributes } ) => { -// return ( -// <> -// -// -// ); -// } } - -// -// ); -// }, -// } -// ); - -/***/ }), - -/***/ "./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/ReactCrop.min.js"); -/* harmony import */ var react_image_crop__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_image_crop__WEBPACK_IMPORTED_MODULE_7__); -/* 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 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); - } - 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')))); - var cropAspectRatio = aspectRatioWidth / aspectRatioHeight; - 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/Data/index.js": -/*!***********************************!*\ - !*** ./src/screens/Data/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/Data/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_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_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_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_9__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/log-out.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/link-2.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/file-text.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/file.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/file-key.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__); -/* harmony import */ var _components_AdvancedSelect__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../components/AdvancedSelect */ "./src/components/AdvancedSelect/index.js"); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_8__ = __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; } - - -// eslint-disable-next-line @wordpress/no-unsafe-wp-apis - - - - - - - - - -// Image Sizes. -var imageSizeOptions = []; -for (var key in photoBlock.imageSizes) { - var size = photoBlock.imageSizes[key]; - imageSizeOptions.push({ - value: key, - label: size.label - }); -} -var DataScreen = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) { - var attributes = props.attributes, - setAttributes = props.setAttributes, - blockUniqueId = props.blockUniqueId; - var dataSource = attributes.dataSource, - dataImageSource = attributes.dataImageSource, - dataImageSourceCustomField = attributes.dataImageSourceCustomField, - dataImageSourceAuthorMeta = attributes.dataImageSourceAuthorMeta, - dataPostType = attributes.dataPostType, - dataPostTitle = attributes.dataPostTitle, - dataPostId = attributes.dataPostId, - dataFallbackImage = attributes.dataFallbackImage, - dataHasFallbackImage = attributes.dataHasFallbackImage, - dataFallbackImageSize = attributes.dataFallbackImageSize, - dataScreen = attributes.dataScreen; - - // Post type suggestion for selecting a post. - var _useState = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(dataPostTitle ? dataPostTitle : false), - _useState2 = _slicedToArray(_useState, 2), - currentPostTypePostSuggestion = _useState2[0], - setCurrentPostTypePostSuggestion = _useState2[1]; - - // Custom field suggestion for selecting an image source. - var _useState3 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(dataImageSourceCustomField ? dataImageSourceCustomField : false), - _useState4 = _slicedToArray(_useState3, 2), - currentCustomFieldSuggestion = _useState4[0], - setCurrentCustomFieldSuggestion = _useState4[1]; - - // Author meta suggestion for selecting an image source. - var _useState5 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(dataImageSourceAuthorMeta ? dataImageSourceAuthorMeta : false), - _useState6 = _slicedToArray(_useState5, 2), - currentAuthorMetaSuggestion = _useState6[0], - setCurrentAuthorMetaSuggestion = _useState6[1]; - - // Load in setters. - var _useDispatch = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useDispatch)((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(blockUniqueId)), - setImageFile = _useDispatch.setImageFile, - setPhotoMode = _useDispatch.setPhotoMode, - setScreen = _useDispatch.setScreen; - var localToolbar = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.BlockControls, null, /*#__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_9__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Exit Data Mode', 'photo-block'), - onClick: function onClick() { - setAttributes({ - photoMode: 'none', - screen: 'initial' - }); - setPhotoMode('none'); - setScreen('initial'); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Exit Data Mode', 'photo-block'))))); - - /** - * Get a post type label. - * - * @param {string} postType The post type. - * @return {string} The post type label. - */ - var getPostTypeLabel = function getPostTypeLabel(postType) { - var postTypeLabel = ''; - photoBlock.postTypes.forEach(function (postTypeOption) { - if (postTypeOption.value === postType) { - var _postTypeOption$singu; - postTypeLabel = (_postTypeOption$singu = postTypeOption === null || postTypeOption === void 0 ? void 0 : postTypeOption.singular) !== null && _postTypeOption$singu !== void 0 ? _postTypeOption$singu : postTypeOption.label; - } - }); - return postTypeLabel; - }; - - /** - * Get a post ID either from the block or attribute. - * - * @return {number} The post ID. - */ - var getPostId = function getPostId() { - var postId = 0; - // If data type is current post, get the current post ID. - if ('currentPost' === dataSource) { - // Get post ID from block editor. - postId = wp.data.select('core/editor').getCurrentPostId(); - return postId; - } - // If data type is post type, get the post ID from the attribute. - if ('postType' === dataSource && '' !== dataPostId) { - postId = dataPostId; - return postId; - } - return postId; - }; - - /** - * Determine if the data apply button should be disabled. - * - * @return {boolean} Whether the button should be disabled. - */ - var isApplyButtonDisabled = function isApplyButtonDisabled() { - // If data type is current post, get the current post ID. - if ('postType' === dataSource) { - if ('' === dataPostType) { - return true; - } - if ('' === dataPostId) { - return true; - } - } - if ('customField' === dataImageSource) { - if ('' === dataImageSourceCustomField) { - return true; - } - } - return false; - }; - return /*#__PURE__*/React.createElement(React.Fragment, null, localToolbar, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__screen-data" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Card, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.CardHeader, { - isShady: true - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Dynamic Image Data', 'photo-block')), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.CardBody, { - isScrollable: true - }, /*#__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_3__.__)('Data Source', 'photo-block'), - value: dataSource, - onChange: function onChange(value) { - setAttributes({ - dataSource: value - }); - }, - options: [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Current post', 'photo-block'), - value: 'currentPost' - }, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Post type', 'photo-block'), - value: 'postType' - }] - })), 'postType' === dataSource && /*#__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_3__.__)('Select a Post Type', 'photo-block'), - value: dataPostType, - onChange: function onChange(value) { - setAttributes({ - dataPostType: value - }); - }, - options: photoBlock.postTypes - })), /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__data-row" - }, /*#__PURE__*/React.createElement(_components_AdvancedSelect__WEBPACK_IMPORTED_MODULE_7__["default"], { - restNonce: photoBlock.restNonce, - restEndpoint: photoBlock.restUrl + '/search/types', - itemIcon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_10__["default"], null), - params: { - postType: dataPostType - }, - savedValue: '', - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Search by ID or title', 'photo-block'), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.sprintf)( /* Translators: %s: post type label. */ - (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Select a %s', 'photo-block'), getPostTypeLabel(dataPostType)), - currentSelectedSuggestion: currentPostTypePostSuggestion, - onItemSelect: function onItemSelect(event, suggestionValue) { - if (null === suggestionValue) { - setAttributes({ - dataPostId: '' - }); - } - } - }, function (showSuggestions, suggestions, selectedSuggestion) { - if (showSuggestions && suggestions.length > 0) { - // Render the suggestions as button items. - return /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__post-suggestions" - }, suggestions.map(function (suggestion, index) { - var isSelected = selectedSuggestion === index; - var suggestionClasses = classnames__WEBPACK_IMPORTED_MODULE_6___default()('photo-block__post-suggestion', { - 'is-selected': isSelected - }); - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { - key: index, - value: suggestion.value, - role: "option", - "aria-selected": suggestion.value === selectedSuggestion, - className: suggestionClasses, - onClick: function onClick(e) { - setCurrentPostTypePostSuggestion(suggestion.label); - setAttributes({ - dataPostId: suggestion.value.toString(), - dataPostTitle: suggestion.label - }); - }, - icon: 'post' === suggestion.type ? /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_11__["default"], null) : /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_12__["default"], null), - iconSize: 2, - iconPosition: "left" - }, /*#__PURE__*/React.createElement("span", { - className: "photo-block-search-item" - }, /*#__PURE__*/React.createElement("span", { - className: "photo-block-search-item-title" - }, suggestion.label), /*#__PURE__*/React.createElement("span", { - className: "photo-block-search-item-info" - }, suggestion.permalink))); - })); - } - return /*#__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_3__.__)('Image Source', 'photo-block'), - value: dataImageSource, - onChange: function onChange(value) { - setAttributes({ - dataImageSource: value - }); - } - }, /*#__PURE__*/React.createElement("optgroup", { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Post Options', 'photo-block') - }, /*#__PURE__*/React.createElement("option", { - value: "featuredImage" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Featured Image', 'photo-block')), /*#__PURE__*/React.createElement("option", { - value: "customField" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Post Meta', 'photo-block'))), /*#__PURE__*/React.createElement("optgroup", { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Author', 'photo-block') - }, /*#__PURE__*/React.createElement("option", { - value: "authorAvatar" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Author Avatar', 'photo-block')), /*#__PURE__*/React.createElement("option", { - value: "authorMeta" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Author Meta', 'photo-block'))))), 'customField' === dataImageSource && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__data-row" - }, /*#__PURE__*/React.createElement(_components_AdvancedSelect__WEBPACK_IMPORTED_MODULE_7__["default"], { - restNonce: photoBlock.restNonce, - restEndpoint: photoBlock.restUrl + '/search/custom-fields', - params: { - postType: dataPostType, - postId: getPostId() - }, - savedValue: '', - onItemSelect: function onItemSelect(event, suggestionValue) { - if (null === suggestionValue) { - setAttributes({ - dataImageSourceCustomField: '' - }); - } else { - setAttributes({ - dataImageSourceCustomField: suggestionValue - }); - } - }, - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Search for or enter a custom field', 'photo-block'), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Select a Custom Field', 'photo-block'), - currentSelectedSuggestion: currentCustomFieldSuggestion, - acceptDirectInput: true - }, function (showSuggestions, suggestions, selectedSuggestion) { - if (showSuggestions && suggestions.length > 0) { - // Render the suggestions as button items. - return /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__post-suggestions" - }, suggestions.map(function (suggestion, index) { - var isSelected = selectedSuggestion === index; - var suggestionClasses = classnames__WEBPACK_IMPORTED_MODULE_6___default()('photo-block__post-suggestion', { - 'is-selected': isSelected - }); - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { - key: index, - value: suggestion, - role: "option", - "aria-selected": suggestion === selectedSuggestion, - className: suggestionClasses, - onClick: function onClick(e) { - setCurrentCustomFieldSuggestion(suggestion); - setAttributes({ - dataImageSourceCustomField: suggestion - }); - }, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_13__["default"], null), - iconSize: 2, - iconPosition: "left" - }, /*#__PURE__*/React.createElement("span", { - className: "photo-block-search-item" - }, /*#__PURE__*/React.createElement("span", { - className: "photo-block-search-item-title no-margin" - }, suggestion))); - })); - } - return /*#__PURE__*/React.createElement(React.Fragment, null); - }))), 'authorMeta' === dataImageSource && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__data-row" - }, /*#__PURE__*/React.createElement(_components_AdvancedSelect__WEBPACK_IMPORTED_MODULE_7__["default"], { - restNonce: photoBlock.restNonce, - restEndpoint: photoBlock.restUrl + '/search/author-meta', - params: { - postType: dataPostType, - postId: getPostId() - }, - savedValue: '', - onItemSelect: function onItemSelect(event, suggestionValue) { - if (null === suggestionValue) { - setAttributes({ - dataImageSourceAuthorMeta: '' - }); - } else { - setAttributes({ - dataImageSourceAuthorMeta: suggestionValue - }); - } - }, - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Search for or enter an author meta field', 'photo-block'), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Select an author meta field', 'photo-block'), - currentSelectedSuggestion: currentAuthorMetaSuggestion, - acceptDirectInput: true - }, function (showSuggestions, suggestions, selectedSuggestion) { - if (showSuggestions && suggestions.length > 0) { - // Render the suggestions as button items. - return /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__post-suggestions" - }, suggestions.map(function (suggestion, index) { - var isSelected = selectedSuggestion === index; - var suggestionClasses = classnames__WEBPACK_IMPORTED_MODULE_6___default()('photo-block__post-suggestion', { - 'is-selected': isSelected - }); - return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { - key: index, - value: suggestion, - role: "option", - "aria-selected": suggestion === selectedSuggestion, - className: suggestionClasses, - onClick: function onClick(e) { - setCurrentAuthorMetaSuggestion(suggestion); - setAttributes({ - dataImageSourceAuthorMeta: suggestion - }); - }, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_13__["default"], null), - iconSize: 2, - iconPosition: "left" - }, /*#__PURE__*/React.createElement("span", { - className: "photo-block-search-item" - }, /*#__PURE__*/React.createElement("span", { - className: "photo-block-search-item-title no-margin" - }, suggestion))); - })); - } - return /*#__PURE__*/React.createElement(React.Fragment, null); - })))), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.CardFooter, null, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__data-row dlx-photo-block__data-button-apply" - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.BaseControl, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { - variant: "primary", - onClick: function onClick() { - // Set photo and imageFile to empty. - var newPhoto = { - id: 0, - url: '', - alt: '', - title: '', - caption: '', - description: '' - }; - setAttributes({ - imageData: newPhoto - }); - setImageFile(newPhoto); - // Go to data edit screen. - setPhotoMode('data'); - setAttributes({ - dataScreen: 'data-edit' - }); - setScreen('data-edit'); - }, - disabled: isApplyButtonDisabled() - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Apply Changes and Preview', 'photo-block')))))))); -}); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DataScreen); - -/***/ }), - -/***/ "./src/screens/DataEdit/index.js": -/*!***************************************!*\ - !*** ./src/screens/DataEdit/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/DataEdit/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_17__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/layers.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/image.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/database.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/accessibility.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/case-sensitive.js"); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/link.js"); -/* 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 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__); -/* harmony import */ var hex_to_rgba__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! hex-to-rgba */ "./node_modules/hex-to-rgba/build/index.js"); -/* harmony import */ var hex_to_rgba__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(hex_to_rgba__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../store */ "./src/store/index.js"); -/* harmony import */ var _utils_SendCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../utils/SendCommand */ "./src/utils/SendCommand.js"); -/* harmony import */ var _hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../hooks/useDeviceType */ "./src/hooks/useDeviceType.js"); -/* harmony import */ var _components_PanelBody__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../components/PanelBody */ "./src/components/PanelBody/index.js"); -/* harmony import */ var _components_SidebarImageInspectorControl__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../components/SidebarImageInspectorControl */ "./src/components/SidebarImageInspectorControl/index.js"); -/* harmony import */ var _components_SidebarImageAdvancedInspectorControl__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../components/SidebarImageAdvancedInspectorControl */ "./src/components/SidebarImageAdvancedInspectorControl/index.js"); -/* harmony import */ var _components_DataSelect__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../components/DataSelect */ "./src/components/DataSelect/index.js"); -/* harmony import */ var _components_GlobalStyles__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../components/GlobalStyles */ "./src/components/GlobalStyles/index.js"); -/* harmony import */ var _blocks_photo_block_block_styles__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../blocks/photo-block/block-styles */ "./src/blocks/photo-block/block-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; } - - - - - - - - - - - - - - - - - - - -/** - * Image size. - */ -var imageSizeOptions = []; -for (var key in photoBlock.imageSizes) { - var size = photoBlock.imageSizes[key]; - imageSizeOptions.push({ - value: key, - label: size.label - }); -} -var dataImage = []; -var DataEditScreen = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) { - var _previewImage$width, _previewImage$height; - var attributes = props.attributes, - setAttributes = props.setAttributes, - innerBlockProps = props.innerBlockProps, - context = props.context, - blockUniqueId = props.blockUniqueId; - var _useState = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState2 = _slicedToArray(_useState, 2), - a11yButton = _useState2[0], - setA11yButton = _useState2[1]; - var _useState3 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState4 = _slicedToArray(_useState3, 2), - a11yPopover = _useState4[0], - setA11yPopover = _useState4[1]; - var _useState5 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState6 = _slicedToArray(_useState5, 2), - titleButton = _useState6[0], - setTitleButton = _useState6[1]; - var _useState7 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState8 = _slicedToArray(_useState7, 2), - titlePopover = _useState8[0], - setTitlePopover = _useState8[1]; - var _useState9 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState10 = _slicedToArray(_useState9, 2), - mediaLinkPopover = _useState10[0], - setMediaLinkPopover = _useState10[1]; - var _useState11 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState12 = _slicedToArray(_useState11, 2), - mediaLinkRef = _useState12[0], - setMediaLinkRef = _useState12[1]; - var _useState13 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(true), - _useState14 = _slicedToArray(_useState13, 2), - imageLoading = _useState14[0], - setImageLoading = _useState14[1]; - var _useState15 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState16 = _slicedToArray(_useState15, 2), - hasImage = _useState16[0], - setHasImage = _useState16[1]; - var _useState17 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(null), - _useState18 = _slicedToArray(_useState17, 2), - previewImage = _useState18[0], - setPreviewImage = _useState18[1]; - var uniqueId = attributes.uniqueId, - dataSource = attributes.dataSource, - dataImageSource = attributes.dataImageSource, - dataImageSourceCustomField = attributes.dataImageSourceCustomField, - dataImageSourceAuthorMeta = attributes.dataImageSourceAuthorMeta, - dataPostType = attributes.dataPostType, - dataPostId = attributes.dataPostId, - dataFallbackImage = attributes.dataFallbackImage, - dataHasFallbackImage = attributes.dataHasFallbackImage, - dataFallbackImageSize = attributes.dataFallbackImageSize, - dataMediaLinkSource = attributes.dataMediaLinkSource, - dataMediaLinkPostMeta = attributes.dataMediaLinkPostMeta, - dataMediaLinkImageCustomField = attributes.dataMediaLinkImageCustomField, - dataMediaLinkAuthorMeta = attributes.dataMediaLinkAuthorMeta, - imageSize = attributes.imageSize, - imageData = attributes.imageData, - 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_5__.useDispatch)((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(blockUniqueId)), - setScreen = _useDispatch.setScreen, - setImageData = _useDispatch.setImageData; - - // Get current block data. - var _useSelect = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useSelect)(function (select) { - return { - captionPosition: select((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(blockUniqueId)).getCaptionPosition(), - inQueryLoop: select((0,_store__WEBPACK_IMPORTED_MODULE_8__.blockStore)(blockUniqueId)).inQueryLoop() - }; - }), - captionPosition = _useSelect.captionPosition, - inQueryLoop = _useSelect.inQueryLoop; - - // Get query loop vars. - var postId = context.postId, - postType = context.postType; - var _useDeviceType = (0,_hooks_useDeviceType__WEBPACK_IMPORTED_MODULE_10__["default"])('Desktop'), - _useDeviceType2 = _slicedToArray(_useDeviceType, 2), - deviceType = _useDeviceType2[0], - setDeviceType = _useDeviceType2[1]; - - /** - * Get a post ID either from the block or attribute. - * - * @return {number} The post ID. - */ - var getPostId = function getPostId() { - var currentPostId = 0; - // If data type is current post, get the current post ID. - if ('currentPost' === dataSource) { - // Determine if we're in a query block. - if (inQueryLoop) { - currentPostId = postId; - } else { - currentPostId = wp.data.select('core/editor').getCurrentPostId(); - } - return currentPostId; - } - // If data type is post type, get the post ID from the attribute. - if ('postType' === dataSource && '' !== dataPostId) { - return dataPostId; - } - return currentPostId; - }; - - /** - * Set data image to empty array on mount in case someone changes data types. - */ - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - dataImage = []; - }, []); - - /** - * Set up effect for loading the image initially using data. - */ - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - var currentPostId = getPostId(); - - // Check for array key in dataImage. - if (dataImage[currentPostId]) { - setPreviewImage(dataImage[currentPostId]); - setHasImage(true); - setImageLoading(false); - return; - } - setImageLoading(true); - (0,_utils_SendCommand__WEBPACK_IMPORTED_MODULE_9__["default"])(photoBlock.restNonce, { - dataSource: dataSource, - dataCurrentPostId: currentPostId, - dataImageSize: imageSize, - dataImageSource: dataImageSource, - dataImageSourceCustomField: dataImageSourceCustomField, - dataPostType: dataPostType, - dataPostId: dataPostId, - dataFallbackImage: dataFallbackImage, - dataHasFallbackImage: dataHasFallbackImage, - dataFallbackImageSize: dataFallbackImageSize, - dataImageSourceAuthorMeta: dataImageSourceAuthorMeta - }, "".concat(photoBlock.restUrl + '/get-image-by-data'), '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; - } - - // Image must be URL. - setHasImage(true); - setPreviewImage(data); - setImageData(data); - dataImage[currentPostId] = data; - setAttributes({ - imageData: data - }); - return; - } - - // If object, set preview image. - if (data.url) { - setHasImage(true); - setImageData(data); - setPreviewImage(data); - dataImage[currentPostId] = data; - setAttributes({ - imageData: data - }); - } - })["catch"](function (error) { - // todo: error checking/display. - }).then(function () { - setImageLoading(false); - }); - }, [imageSize, dataFallbackImage, dataFallbackImageSize, dataHasFallbackImage]); - - // Set settings inspector Controls. - var settingsInspectorControls = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Presets', 'photo-block'), - initialOpen: false, - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_17__["default"], null), - className: "photo-block__inspector-panel" - }, /*#__PURE__*/React.createElement(_components_GlobalStyles__WEBPACK_IMPORTED_MODULE_15__["default"], props)), /*#__PURE__*/React.createElement(_components_PanelBody__WEBPACK_IMPORTED_MODULE_11__["default"], { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Photo Settings', 'photo-block'), - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_18__["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) { - setAttributes({ - imageSize: size - }); - - // Also set fallback image size. - setAttributes({ - dataFallbackImageSize: size - }); - }, - options: imageSizeOptions - }))), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { - icon: /*#__PURE__*/React.createElement(lucide_react__WEBPACK_IMPORTED_MODULE_18__["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_18__["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(_components_SidebarImageInspectorControl__WEBPACK_IMPORTED_MODULE_12__["default"], { - attributes: attributes, - setAttributes: setAttributes, - blockUniqueId: blockUniqueId - })); - - // Set the advanced inspector controls. - var advancedInspectorControls = /*#__PURE__*/React.createElement(_components_SidebarImageAdvancedInspectorControl__WEBPACK_IMPORTED_MODULE_13__["default"], { - attributes: attributes, - setAttributes: setAttributes - }); - - /** - * Get a post type label. - * - * @param {string} postTypeValue The post type. - * @return {string} The post type label. - */ - var getPostTypeLabel = function getPostTypeLabel(postTypeValue) { - var postTypeLabel = ''; - photoBlock.postTypes.forEach(function (postTypeOption) { - if (postTypeOption.value === postTypeValue) { - var _postTypeOption$singu; - postTypeLabel = (_postTypeOption$singu = postTypeOption === null || postTypeOption === void 0 ? void 0 : postTypeOption.singular) !== null && _postTypeOption$singu !== void 0 ? _postTypeOption$singu : postTypeOption.label; - } - }); - return postTypeLabel; - }; - var localToolbar = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.BlockControls, null, /*#__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_19__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Edit Data', 'photo-block'), - onClick: function onClick() { - setAttributes({ - dataScreen: 'data' - }); - setScreen('data'); - } - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Edit Data', '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_20__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Set Alt Text Dynamic Data', '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_21__["default"], null), - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Set Title Options', 'photo-block'), - onClick: function onClick() { - setTitlePopover(!titlePopover); - }, - ref: setTitleButton - }), /*#__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_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 - }, /*#__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: "imageFile" - }, (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("option", { - value: "imageMeta" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Image Meta', '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')), /*#__PURE__*/React.createElement("option", { - value: "customField" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Post Meta', 'photo-block'))), /*#__PURE__*/React.createElement("optgroup", { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Author', 'photo-block') - }, /*#__PURE__*/React.createElement("option", { - value: "authorPermalink" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Author Permalink', 'photo-block')), /*#__PURE__*/React.createElement("option", { - value: "authorArchive" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Author Archive', 'photo-block')), /*#__PURE__*/React.createElement("option", { - value: "authorMeta" - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Author Meta', 'photo-block')))), dataMediaLinkSource === 'customField' && /*#__PURE__*/React.createElement(_components_DataSelect__WEBPACK_IMPORTED_MODULE_14__.MetaFieldControl, { - setAttributes: setAttributes, - attributeName: 'dataMediaLinkPostMeta', - endpoint: '/search/custom-fields', - params: { - postType: dataPostType, - postId: getPostId() - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Select a custom field', 'photo-block'), - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Search for or enter a custom field name', 'photo-block'), - currentSuggestion: dataMediaLinkPostMeta - }), dataMediaLinkSource === 'imageMeta' && /*#__PURE__*/React.createElement(_components_DataSelect__WEBPACK_IMPORTED_MODULE_14__.MetaFieldControl, { - setAttributes: setAttributes, - attributeName: 'dataMediaLinkImageCustomField', - params: { - postType: 'attachment', - postId: 0 - }, - currentSuggestion: dataMediaLinkImageCustomField - }), dataMediaLinkSource === 'authorMeta' && /*#__PURE__*/React.createElement(_components_DataSelect__WEBPACK_IMPORTED_MODULE_14__.MetaFieldControl, { - setAttributes: setAttributes, - attributeName: 'dataMediaLinkAuthorMeta', - endpoint: '/search/author-meta', - params: { - postType: dataPostType, - postId: getPostId() - }, - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Select an author meta field', 'photo-block'), - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Search for or enter an author meta field', 'photo-block'), - currentSuggestion: dataMediaLinkAuthorMeta - }), 'imageFile' === 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', '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: attributes.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') - }))))), a11yPopover && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Popover, { - placement: "top-start", - anchor: a11yButton - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__a11y-popover" - }, /*#__PURE__*/React.createElement(_components_DataSelect__WEBPACK_IMPORTED_MODULE_14__.DataSelect, { - attributes: attributes, - setAttributes: setAttributes, - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Alt Text Data', 'photo-block'), - context: context, - prefix: "dataAltText" - }))), titlePopover && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Popover, { - placement: "top-start", - anchor: titleButton - }, /*#__PURE__*/React.createElement("div", { - className: "dlx-photo-block__a11y-popover" - }, /*#__PURE__*/React.createElement(_components_DataSelect__WEBPACK_IMPORTED_MODULE_14__.DataSelect, { - attributes: attributes, - setAttributes: setAttributes, - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Image Title Data', 'photo-block'), - context: context, - prefix: "dataImageTitle" - })))); - 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"); - if (photoDropShadow.enabled) { - styles += "\n\t\t\t#".concat(uniqueId, " img {\n\t\t\t\tbox-shadow: ").concat(photoDropShadow.inset ? 'inset ' : '').concat(photoDropShadow.horizontal, "px ").concat(photoDropShadow.vertical, "px ").concat(photoDropShadow.blur, "px ").concat(photoDropShadow.spread, "px ").concat(hex_to_rgba__WEBPACK_IMPORTED_MODULE_7___default()(photoDropShadow.color, photoDropShadow.opacity), ";\n\t\t\t\t-webkit-box-shadow: ").concat(photoDropShadow.inset ? 'inset ' : '').concat(photoDropShadow.horizontal, "px ").concat(photoDropShadow.vertical, "px ").concat(photoDropShadow.blur, "px ").concat(photoDropShadow.spread, "px ").concat(hex_to_rgba__WEBPACK_IMPORTED_MODULE_7___default()(photoDropShadow.color, photoDropShadow.opacity), ";\n\t\t\t}\n\t\t"); - } - var imageStyles = (0,_blocks_photo_block_block_styles__WEBPACK_IMPORTED_MODULE_16__["default"])(attributes, deviceType, uniqueId); - return /*#__PURE__*/React.createElement(React.Fragment, null, localInspectorControls, /*#__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 && /*#__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: { - minWidth: (_previewImage$width = previewImage === null || previewImage === void 0 ? void 0 : previewImage.width) !== null && _previewImage$width !== void 0 ? _previewImage$width : 500, - minHeight: (_previewImage$height = previewImage === null || previewImage === void 0 ? void 0 : previewImage.height) !== null && _previewImage$height !== void 0 ? _previewImage$height : 500, - maxWidth: '100%', - maxHeight: '100%' - } - }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Spinner, null)), !imageLoading && hasImage && typeof previewImage.url !== 'undefined' && /*#__PURE__*/React.createElement("img", { - src: previewImage.url, - className: classnames__WEBPACK_IMPORTED_MODULE_6___default()("photo-block-".concat(cssGramFilter), { - 'has-css-gram': cssGramFilter !== 'none' - }), - width: previewImage.width, - height: previewImage.height, - alt: "" - }), !imageLoading && hasImage && typeof previewImage === 'string' && /*#__PURE__*/React.createElement("img", { - src: previewImage, - className: classnames__WEBPACK_IMPORTED_MODULE_6___default()("photo-block-".concat(cssGramFilter), { - 'has-css-gram': cssGramFilter !== 'none' - }), - 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 && /*#__PURE__*/React.createElement(React.Fragment, null, "Image not found.")), '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__ = (DataEditScreen); - -/***/ }), - -/***/ "./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 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 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 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 () { - attributes = (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_8__.applyFilters)('dlx_photo_block_attributes', props.attributes, props.attributes.globalStyle, clientId, 'photo'); - }, [props.attributes]); - var _attributes = attributes, - 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); - } - }, []); - - /** - * 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)) { - _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)) { - _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')))), !hasGlobalStyle(globalStyle) && /*#__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) { - 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, !hasGlobalStyle(globalStyle) && /*#__PURE__*/React.createElement(_components_SidebarImageInspectorControl__WEBPACK_IMPORTED_MODULE_15__["default"], { - attributes: attributes, - setAttributes: setAttributes, - blockUniqueId: blockUniqueId - })); - - // 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, !hasGlobalStyle(globalStyle) && /*#__PURE__*/React.createElement(_components_SidebarImageAdvancedInspectorControl__WEBPACK_IMPORTED_MODULE_16__["default"], props)); - 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 - }), !hasGlobalStyle(globalStyle) && /*#__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), !hasGlobalStyle(attributes.globalStyle) && /*#__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) { - setAttributes({ - imageSize: size - }); - - // Also set fallback image size. - setAttributes({ - dataFallbackImageSize: size - }); - }, - options: imageSizeOptions - }))), /*#__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, !hasGlobalStyle(attributes.globalStyle) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components_SidebarImageInspectorControl__WEBPACK_IMPORTED_MODULE_11__["default"], { - attributes: attributes, - setAttributes: setAttributes - }))); - - // 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"); - if (photoDropShadow.enabled) { - styles += "\n\t\t\t#".concat(uniqueId, " img {\n\t\t\t\tbox-shadow: ").concat(photoDropShadow.inset ? 'inset ' : '').concat(photoDropShadow.horizontal, "px ").concat(photoDropShadow.vertical, "px ").concat(photoDropShadow.blur, "px ").concat(photoDropShadow.spread, "px ").concat(hex_to_rgba__WEBPACK_IMPORTED_MODULE_6___default()(photoDropShadow.color, photoDropShadow.opacity), ";\n\t\t\t\t-webkit-box-shadow: ").concat(photoDropShadow.inset ? 'inset ' : '').concat(photoDropShadow.horizontal, "px ").concat(photoDropShadow.vertical, "px ").concat(photoDropShadow.blur, "px ").concat(photoDropShadow.spread, "px ").concat(hex_to_rgba__WEBPACK_IMPORTED_MODULE_6___default()(photoDropShadow.color, photoDropShadow.opacity), ";\n\t\t\t}\n\t\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"); -/* harmony import */ var _screens_Data__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../screens/Data */ "./src/screens/Data/index.js"); -/* harmony import */ var _screens_DataEdit__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../screens/DataEdit */ "./src/screens/DataEdit/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) || [] -}; -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 - }; - } -}; -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 - }); - 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); - } - } -}); -(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/Functions.js": -/*!********************************!*\ - !*** ./src/utils/Functions.js ***! - \********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ generateUniqueId: () => (/* binding */ generateUniqueId) -/* harmony export */ }); -/** - * Generates a unique id based on the clientId - * - * @param {string} clientId The block clientId - * @return {string} The uniqueId - * - * Credit: Forked from GenerateBlocks. - */ -var generateUniqueId = function generateUniqueId(clientId) { - return clientId.substring(2, 9).replace('-', ''); -}; - -/***/ }), - -/***/ "./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/case-sensitive.js": -/*!********************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/case-sensitive.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 */ CaseSensitive) -/* 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 CaseSensitive = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("CaseSensitive", [ - ["path", { d: "m3 15 4-8 4 8", key: "1vwr6u" }], - ["path", { d: "M4 13h6", key: "1r9ots" }], - ["circle", { cx: "18", cy: "12", r: "3", key: "1kchzo" }], - ["path", { d: "M21 9v6", key: "anns31" }] -]); - - -//# sourceMappingURL=case-sensitive.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-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/database.js": -/*!**************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/database.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 */ Database) -/* 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 Database = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Database", [ - ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }], - ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }], - ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }] -]); - - -//# sourceMappingURL=database.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/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-key.js": -/*!**************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/file-key.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 */ FileKey) -/* 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 FileKey = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("FileKey", [ - ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }], - ["circle", { cx: "10", cy: "16", r: "2", key: "4ckbqe" }], - ["path", { d: "m16 10-4.5 4.5", key: "7p3ebg" }], - ["path", { d: "m15 11 1 1", key: "1bsyx3" }] -]); - - -//# sourceMappingURL=file-key.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/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/layers.js": -/*!************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/layers.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 */ Layers) -/* 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 Layers = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Layers", [ - [ - "path", - { - d: "m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z", - key: "8b97xw" - } - ], - ["path", { d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65", key: "dd6zsq" }], - ["path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65", key: "ep9fru" }] -]); - - -//# sourceMappingURL=layers.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/log-out.js": -/*!*************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/log-out.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 */ LogOut) -/* 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 LogOut = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("LogOut", [ - ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }], - ["polyline", { points: "16 17 21 12 16 7", key: "1gabdz" }], - ["line", { x1: "21", x2: "9", y1: "12", y2: "12", key: "1uyos4" }] -]); - - -//# sourceMappingURL=log-out.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/AdvancedSelect/editor.scss": -/*!***************************************************!*\ - !*** ./src/components/AdvancedSelect/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/DataSelect/editor.scss": -/*!***********************************************!*\ - !*** ./src/components/DataSelect/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/Data/editor.scss": -/*!**************************************!*\ - !*** ./src/screens/Data/editor.scss ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/screens/DataEdit/editor.scss": -/*!******************************************!*\ - !*** ./src/screens/DataEdit/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/react-image-crop/dist/ReactCrop.min.js": -/*!*************************************************************!*\ - !*** ./node_modules/react-image-crop/dist/ReactCrop.min.js ***! - \*************************************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -!function(e,t){ true?module.exports=t(__webpack_require__(/*! react */ "react")):0}(this,(e=>(()=>{"use strict";var t={899:t=>{t.exports=e}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{Component:()=>u,areCropsEqual:()=>h,centerCrop:()=>d,clamp:()=>a,containCrop:()=>p,convertToPercentCrop:()=>c,convertToPixelCrop:()=>l,default:()=>u,defaultCrop:()=>i,makeAspectCrop:()=>s,nudgeCrop:()=>g});var e=o(899),t=o.n(e);function n(e){var t,o,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;to&&(r.height=o-r.y,r.width=r.height*t),r.x+r.width>n&&(r.width=n-r.x,r.height=r.width/t),"%"===e.unit?c(r,n,o):r}function d(e,t,n){const o=l(e,t,n);return o.x=(t-o.width)/2,o.y=(n-o.height)/2,"%"===e.unit?c(o,t,n):o}function c(e,t,n){return"%"===e.unit?{...i,...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 l(e,t,n){return e.unit?"px"===e.unit?{...i,...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}:{...i,...e,unit:"px"}}function p(e,t,n,o,r,i=0,a=0,h=o,s=r){const d={...e};let c=Math.min(i,o),l=Math.min(a,r),p=Math.min(h,o),g=Math.min(s,r);t&&(t>1?(c=a?a*t:c,l=c/t,p=h*t):(l=i?i/t:l,c=l*t,g=s/t)),d.y<0&&(d.height=Math.max(d.height+d.y,l),d.y=0),d.x<0&&(d.width=Math.max(d.width+d.x,c),d.x=0);const w=o-(d.x+d.width);w<0&&(d.x=Math.min(d.x,o-c),d.width+=w);const u=r-(d.y+d.height);if(u<0&&(d.y=Math.min(d.y,r-l),d.height+=u),d.widthp&&("sw"!==n&&"nw"!=n||(d.x-=p-d.width),d.width=p),d.height>g&&("nw"!==n&&"ne"!=n||(d.y-=g-d.height),d.height=g),t){const e=d.width/d.height;if(et){const e=Math.max(d.height*t,c);"sw"!==n&&"nw"!=n||(d.x-=e-d.width),d.width=e}}return d}function g(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}const w={capture:!0,passive:!1};class u 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.state={cropIsActive:!1,newCropIsBeingDrawn:!1},this.onCropPointerDown=e=>{const{crop:t,disabled:n}=this.props,o=this.getBox();if(!t)return;const r=l(t,o.width,o.height);if(n)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const i=e.target.dataset.ord,a=Boolean(i);let h=e.clientX,s=e.clientY,d=r.x,c=r.y;if(i){const t=e.clientX-o.x,n=e.clientY-o.y;let a=0,l=0;"ne"===i||"e"==i?(a=t-(r.x+r.width),l=n-r.y,d=r.x,c=r.y+r.height):"se"===i||"s"===i?(a=t-(r.x+r.width),l=n-(r.y+r.height),d=r.x,c=r.y):"sw"===i||"w"==i?(a=t-r.x,l=n-(r.y+r.height),d=r.x+r.width,c=r.y):"nw"!==i&&"n"!=i||(a=t-r.x,l=n-r.y,d=r.x+r.width,c=r.y+r.height),h=d+o.x+a,s=c+o.y+l}this.evData={startClientX:h,startClientY:s,startCropX:d,startCropY:c,clientX:e.clientX,clientY:e.clientY,isResize:a,ord:i},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})},this.onComponentPointerDown=e=>{const{crop:t,disabled:n,locked:o,keepSelection:r,onChange:i}=this.props,a=this.getBox();if(n||o||r&&t)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const h=e.clientX-a.x,s=e.clientY-a.y,d={unit:"px",x:h,y:s,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:h,startCropY:s,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,i(l(d,a.width,a.height),c(d,a.width,a.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})},this.onDocPointerMove=e=>{const{crop:t,disabled:n,onChange:o,onDragStart:r}=this.props,i=this.getBox();if(n||!t||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,r&&r(e));const{evData:a}=this;let s;a.clientX=e.clientX,a.clientY=e.clientY,s=a.isResize?this.resizeCrop():this.dragCrop(),h(t,s)||o(l(s,i.width,i.height),c(s,i.width,i.height))},this.onComponentKeyDown=e=>{const{crop:t,disabled:n,onChange:o,onComplete:r}=this.props,i=this.getBox();if(n)return;const h=e.key;let s=!1;if(!t)return;const d=this.makePixelCrop(),p=(navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)?u.nudgeStepLarge:e.shiftKey?u.nudgeStepMedium:u.nudgeStep;if("ArrowLeft"===h?(d.x-=p,s=!0):"ArrowRight"===h?(d.x+=p,s=!0):"ArrowUp"===h?(d.y-=p,s=!0):"ArrowDown"===h&&(d.y+=p,s=!0),s){e.cancelable&&e.preventDefault(),d.x=a(d.x,0,i.width-d.width),d.y=a(d.y,0,i.height-d.height);const t=l(d,i.width,i.height),n=c(d,i.width,i.height);o(t,n),r&&r(t,n)}},this.onHandlerKeyDown=(e,t)=>{const{aspect:n=0,crop:o,disabled:r,minWidth:i=0,minHeight:a=0,maxWidth:s,maxHeight:d,onChange:w,onComplete:m}=this.props,y=this.getBox();if(r||!o)return;if("ArrowUp"!==e.key&&"ArrowDown"!==e.key&&"ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;e.stopPropagation(),e.preventDefault();const x=(navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)?u.nudgeStepLarge:e.shiftKey?u.nudgeStepMedium:u.nudgeStep,C=p(g(l(o,y.width,y.height),e.key,x,t),n,t,y.width,y.height,i,a,s,d);if(!h(o,C)){const e=c(C,y.width,y.height);w(C,e),m&&m(C,e)}},this.onDocPointerDone=e=>{const{crop:t,disabled:n,onComplete:o,onDragEnd:r}=this.props,i=this.getBox();this.unbindDocMove(),!n&&t&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,r&&r(e),o&&o(l(t,i.width,i.height),c(t,i.width,i.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))},this.onDragFocus=e=>{var t;null===(t=this.componentRef.current)||void 0===t||t.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(l(t,e,o),c(t,e,o))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,w),this.document.addEventListener("pointerup",this.onDocPointerDone,w),this.document.addEventListener("pointercancel",this.onDocPointerDone,w),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,w),this.document.removeEventListener("pointerup",this.onDocPointerDone,w),this.document.removeEventListener("pointercancel",this.onDocPointerDone,w),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(),o=e.clientX-e.startClientX,r=e.clientY-e.startClientY;return n.x=a(e.startCropX+o,0,t.width-n.width),n.y=a(e.startCropY+r,0,t.height-n.height),n}getPointRegion(e){const{evData:t}=this,n=t.clientX-e.x,o=t.clientY-e.y-1?(s.x=w.x,s.y=w.y,s.width=w.width,s.height=w.height):u.xOrds.indexOf(d)>-1?(s.x=w.x,s.width=w.width):u.yOrds.indexOf(d)>-1&&(s.y=w.y,s.height=w.height),s}createCropSelection(){const{ariaLabels:e=u.defaultProps.ariaLabels,disabled:n,locked:o,renderSelectionAddon:r,ruleOfThirds:i,crop:a}=this.props,h=this.getCropStyle();if(a)return t().createElement("div",{style:h,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":e.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!n&&!o&&t().createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},t().createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),t().createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),t().createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),t().createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":e.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"nw"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":e.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"n"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":e.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"ne"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":e.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"e"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":e.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"se"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":e.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"s"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":e.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"sw"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":e.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"w"),role:"button"})),r&&t().createElement("div",{className:"ReactCrop__selection-addon",onMouseDown:e=>e.stopPropagation()},r(this.state)),i&&t().createElement(t().Fragment,null,t().createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),t().createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(){const e={...i,...this.props.crop||{}},t=this.getBox();return l(e,t.width,t.height)}render(){const{aspect:e,children:o,circularCrop:r,className:i,crop:a,disabled:h,locked:s,style:d,ruleOfThirds:c}=this.props,{cropIsActive:l,newCropIsBeingDrawn:p}=this.state,g=a?this.createCropSelection():null,w=function(){for(var e,t,o=0,r="";o { - -/** - * 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 - - -/***/ }), - -/***/ "./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","apiVersion":3,"name":"dlxplugins/photo-block","category":"media","icon":"","description":"An easy-to-use and comprehensive photo 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":{"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":"#FFFFFF"},"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"},"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"},"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":{}},"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"); -/* harmony import */ var _premium_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./premium/index.js */ "./src/premium/index.js"); -/** - * WordPress Block initialization. - */ - - - - - // Temporary until in its own plugin. -})(); - -/******/ })() -; -//# 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},C=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}})},O=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,C=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+"#")}O++,t.element.classList.add("filepond--image-preview-overlay-".concat(n.status)),t.element.innerHTML=o.replace(/__UID__/g,O)},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(C(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=e.root,l=e.props,c=l.id,s=i.query("GET_ITEM",c);if(s){var u=URL.createObjectURL(s.file),p=function(){var e;(e=u,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(d)},d=function(e){URL.revokeObjectURL(u);var t=(s.getMetadata("exif")||{}).orientation||-1,n=e.width,o=e.height;if(n&&o){if(t>=5&&t<=8){var c=[o,n];n=c[0],o=c[1]}var p=Math.max(1,.75*window.devicePixelRatio),d=i.query("GET_IMAGE_PREVIEW_ZOOM_FACTOR")*p,f=o/n,h=i.rect.element.width,m=i.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=i.query("GET_IMAGE_PREVIEW_CALCULATE_AVERAGE_IMAGE_COLOR")?M(data):null;s.setMetadata("color",t,!0),"close"in e&&e.close(),i.ref.overlayShadow.opacity=1,a({root:i,props:l,image:y})},_=s.getMetadata("filter");_?r(i,_,y).then(v):v()}};if(t=s.file,((n=window.navigator.userAgent.match(/Firefox\/([0-9]+)\./))?parseInt(n[1]):null)<=58||!("createImageBitmap"in window)||!L(t))p();else{var f=o(A);f.post({file:s.file},(function(e){f.terminate(),e?d(e):p()}))}}},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,C=e.ignoreRect,O=void 0!==C&&C,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={},C={},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 O},_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:C,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)},C=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},O=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 O(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)?[]:O(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},Q=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)},Z=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)},$=function(e){return function(n,o,r){var a={};return t(e,(function(e){var t=Z(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_"+Z(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)},Ce=function(e){return e.filter((function(e){return!e.archived}))},Oe={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=Ce(e.items),n=Oe.EMPTY,o=Oe.ERROR,r=Oe.BUSY,a=Oe.IDLE,i=Oe.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(Ce(e.items),t)},GET_ACTIVE_ITEMS:function(){return Ce(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 Ce(e.items).filter((function(e){return e.status===t}))},GET_TOTAL_ITEMS:function(){return Ce(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},Qe=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},C=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,O(t)||i(ot("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},u.ontimeout=function(e){t.status=pt,t.request=null,O(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)},O=function(e){return 0!==e.retries.length&&(e.status=dt,clearTimeout(e.timeout),e.timeout=setTimeout((function(){C(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||C()};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=O(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})}},Ot=function(e,t,n){return{ABORT_ALL:function(){Ce(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=Ce(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=Ce(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=Ce(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(){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:Ct(n,(function(e){e.retryLoad()})),REQUEST_ITEM_PREPARE:Ct(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:Ct(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:Ct(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:Ct(n,(function(t){e("REQUEST_ITEM_PROCESSING",{query:t})})),REQUEST_REMOVE_ITEM:Ct(n,(function(n){xt(t("GET_BEFORE_REMOVE_FILE"),me(n)).then((function(t){t&&e("REMOVE_ITEM",{query:n})}))})),RELEASE_ITEM:Ct(n,(function(e){e.release()})),REMOVE_ITEM:Ct(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:Ct(n,(function(e){e.abortLoad()})),ABORT_ITEM_PROCESSING:Ct(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:Ct(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:Ct(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_"+Z(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=(l=t.query("GET_ACTIVE_ITEMS"),c=l.map((function(e){return e.id})),s=void 0,{setIndex:function(e){s=e},getIndex:function(){return s},getItemIndex:function(e){return c.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}))};document.addEventListener("pointermove",i),document.addEventListener("pointerup",(function e(l){l.isPrimary&&(document.removeEventListener("pointermove",i),document.removeEventListener("pointerup",e),n.dragOffset={x:l.pageX-r.x,y:l.pageY-r.y},t.dispatch("DID_DROP_ITEM",{id:n.id,dragState:a}),o&&setTimeout((function(){return t.element.addEventListener("click",t.ref.handleClick)}),0))}))}var l,c,s}))}},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"]}}),Cn=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}}),On=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(Cn({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]},Qn=function(e){e.query("GET_ACTIVE_ITEMS").forEach((function(t){e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])}))},Zn=function(e){var t=e.root;return Qn(t)},$n=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,Qn(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"):o.value=n.value,Qn(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:Zn,DID_SORT_ITEMS:Zn}),Jn=T({tag:"fieldset",name:"data",create:function(e){return e.root.ref.fields={}},write:$n,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},Co=!1,Oo=[],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&&Oo.forEach((function(t){return t(e)}))}))},Po=function(){var e=function(e){t.onload(e)},t={destroy:function(){var t;t=e,pe(Oo,Oo.indexOf(t)),0===Oo.length&&(document.removeEventListener("paste",Ao),Co=!1)},onload:function(){}};return function(e){Oo.includes(e)||(Oo.push(e),Co||(Co=!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))},Qo=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)})},Zo=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:Qo(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))},$o=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;$o(t,n)},DID_SET_ALLOW_DROP:function(e){var t=e.root;Zo(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;Zo(t),Jo(t),$o(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(On,{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,C=0,O=x;O>=I;O--)if(T[O]===T[O-2]&&C++,C>=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=(Zt=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 Zt}),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({},Oe),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),C=R.call(Function.call,String.prototype.replace),O=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=O(e,0,1),n=O(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 C(e,P,(function(e,t,n,r){o[o.length]=n?C(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",C="(?:"+E+"|"+S+")",O="(?:"+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("|")+")",O+"+"+P+"(?="+[b,x+C,"$"].join("|")+")",x+"?"+C+"+"+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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:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"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 Q=Object.prototype.toString,Z=W.Symbol,$=Z?Z.prototype:void 0,J=$?$.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)&&Q.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,C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="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(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!C)return!1;try{return C.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=O?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(t);return"object"!=typeof t||O?ne:Q(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))})),$("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))})),$("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 Z("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 Z("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return!("[object Number]"!==z(e)||A&&"object"==typeof e&&A in e)}(t))return Q(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 Q(X(x.call(t)));if(function(e){return!("[object Boolean]"!==z(e)||A&&"object"==typeof e&&A in e)}(t))return Q(h.call(t));if(function(e){return!("[object String]"!==z(e)||A&&"object"==typeof e&&A in e)}(t))return Q(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 Q(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function $(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 C,O=[];if(void 0===w)return O;if("comma"===a&&c(w))_&&p&&(w=r.maybeMap(w,p)),C=[{value:w.length>0?w.join(",")||null:void 0}];else if(c(d))C=d;else{var A=Object.keys(w);C=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(()=>{"use strict";var t={899:t=>{t.exports=e}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{Component:()=>m,areCropsEqual:()=>l,centerCrop:()=>s,clamp:()=>i,containCrop:()=>d,convertToPercentCrop:()=>u,convertToPixelCrop:()=>p,default:()=>m,defaultCrop:()=>a,makeAspectCrop:()=>c,nudgeCrop:()=>f});var e=o(899),t=o.n(e);function n(e){var t,o,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;to&&(r.height=o-r.y,r.width=r.height*t),r.x+r.width>n&&(r.width=n-r.x,r.height=r.width/t),"%"===e.unit?u(r,n,o):r}function s(e,t,n){const o=p(e,t,n);return o.x=(t-o.width)/2,o.y=(n-o.height)/2,"%"===e.unit?u(o,t,n):o}function u(e,t,n){return"%"===e.unit?{...a,...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 p(e,t,n){return e.unit?"px"===e.unit?{...a,...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}:{...a,...e,unit:"px"}}function d(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}function f(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}const h={capture:!0,passive:!1};class m 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.state={cropIsActive:!1,newCropIsBeingDrawn:!1},this.onCropPointerDown=e=>{const{crop:t,disabled:n}=this.props,o=this.getBox();if(!t)return;const r=p(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=Boolean(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(p(s,i.width,i.height),u(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 c;i.clientX=e.clientX,i.clientY=e.clientY,c=i.isResize?this.resizeCrop():this.dragCrop(),l(t,c)||o(p(c,a.width,a.height),u(c,a.width,a.height))},this.onComponentKeyDown=e=>{const{crop:t,disabled:n,onChange:o,onComplete:r}=this.props,a=this.getBox();if(n)return;const l=e.key;let c=!1;if(!t)return;const s=this.makePixelCrop(),d=(navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)?m.nudgeStepLarge:e.shiftKey?m.nudgeStepMedium:m.nudgeStep;if("ArrowLeft"===l?(s.x-=d,c=!0):"ArrowRight"===l?(s.x+=d,c=!0):"ArrowUp"===l?(s.y-=d,c=!0):"ArrowDown"===l&&(s.y+=d,c=!0),c){e.cancelable&&e.preventDefault(),s.x=i(s.x,0,a.width-s.width),s.y=i(s.y,0,a.height-s.height);const t=p(s,a.width,a.height),n=u(s,a.width,a.height);o(t,n),r&&r(t,n)}},this.onHandlerKeyDown=(e,t)=>{const{aspect:n=0,crop:o,disabled:r,minWidth:a=0,minHeight:i=0,maxWidth:c,maxHeight:s,onChange:h,onComplete:g}=this.props,b=this.getBox();if(r||!o)return;if("ArrowUp"!==e.key&&"ArrowDown"!==e.key&&"ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;e.stopPropagation(),e.preventDefault();const y=(navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)?m.nudgeStepLarge:e.shiftKey?m.nudgeStepMedium:m.nudgeStep,v=d(f(p(o,b.width,b.height),e.key,y,t),n,t,b.width,b.height,a,i,c,s);if(!l(o,v)){const e=u(v,b.width,b.height);h(v,e),g&&g(v,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(p(t,a.width,a.height),u(t,a.width,a.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))},this.onDragFocus=e=>{var t;null===(t=this.componentRef.current)||void 0===t||t.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(p(t,e,o),u(t,e,o))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,h),this.document.addEventListener("pointerup",this.onDocPointerDone,h),this.document.addEventListener("pointercancel",this.onDocPointerDone,h),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,h),this.document.removeEventListener("pointerup",this.onDocPointerDone,h),this.document.removeEventListener("pointercancel",this.onDocPointerDone,h),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(),o=e.clientX-e.startClientX,r=e.clientY-e.startClientY;return n.x=i(e.startCropX+o,0,t.width-n.width),n.y=i(e.startCropY+r,0,t.height-n.height),n}getPointRegion(e){const{evData:t}=this,n=t.clientX-e.x,o=t.clientY-e.y-1?(c.x=h.x,c.y=h.y,c.width=h.width,c.height=h.height):m.xOrds.indexOf(s)>-1?(c.x=h.x,c.width=h.width):m.yOrds.indexOf(s)>-1&&(c.y=h.y,c.height=h.height),c}createCropSelection(){const{ariaLabels:e=m.defaultProps.ariaLabels,disabled:n,locked:o,renderSelectionAddon:r,ruleOfThirds:a,crop:i}=this.props,l=this.getCropStyle();if(i)return t().createElement("div",{style:l,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":e.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!n&&!o&&t().createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},t().createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),t().createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),t().createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),t().createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":e.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"nw"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":e.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"n"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":e.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"ne"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":e.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"e"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":e.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"se"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":e.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"s"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":e.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"sw"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":e.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"w"),role:"button"})),r&&t().createElement("div",{className:"ReactCrop__selection-addon",onMouseDown:e=>e.stopPropagation()},r(this.state)),a&&t().createElement(t().Fragment,null,t().createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),t().createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(){const e={...a,...this.props.crop||{}},t=this.getBox();return p(e,t.width,t.height)}render(){const{aspect:e,children:o,circularCrop:r,className:a,crop:i,disabled:l,locked:c,style:s,ruleOfThirds:u}=this.props,{cropIsActive:p,newCropIsBeingDrawn:d}=this.state,f=i?this.createCropSelection():null,h=function(){for(var e,t,o=0,r="";o{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","apiVersion":3,"name":"dlxplugins/photo-block","category":"media","icon":"","description":"An easy-to-use and comprehensive photo 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":{"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":"#FFFFFF"},"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"},"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"},"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":{}},"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.components,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},_=n(1609),E=n.n(_),S={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 k=(e,t)=>{const n=(0,_.forwardRef)((({color:n="currentColor",size:o=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:i="",children:l,...c},s)=>{return(0,_.createElement)("svg",{ref:s,...S,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,_.createElement)(e,t))),...Array.isArray(l)?l:[l]]);var u}));return n.displayName=`${e}`,n},w=k("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),R=k("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"}]]),T=k("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"}]]),x=k("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"}]]),I=k("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=k("ArrowBigLeftDash",[["path",{d:"M19 15V9",key:"1hci5f"}],["path",{d:"M15 15h-3v4l-7-7 7-7v4h3v6z",key:"16tjna"}]]),O=k("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"}]]),A=k("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"}]]),P=k("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"}]]),D=k("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);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)},Q=U("Date"),Z=U("File"),$=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:Q,isFile:Z,isBlob:$,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 Ce(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 Oe=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 Qe(e){return!(!e||!e.__CANCEL__)}function Ze(e,t,n){ye.call(this,null==e?"canceled":e,ye.ERR_CANCELED,t,n),this.name="CanceledError"}he.inherits(Ze,ye,{__CANCEL__:!0});const $e=Ze,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(),Ce(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 $e(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 $e(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 Qe(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 Oe,response:new Oe}}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 $e(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=$e,Et.CancelToken=yt,Et.isCancel=Qe,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),C(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;C(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(O,null)),React.createElement("div",{className:"dlx-photo-block__upload-target__label-text"},(0,c.__)("Drag Photo Here or Click to Upload","photo-block")))))},$t=k("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,p=i.isUploadError,d=i.filepondInstance;return React.createElement(React.Fragment,null,React.createElement("div",{className:"dlx-photo-block__upload-status"},React.createElement(s.Button,{variant:"secondary",icon:React.createElement(x,null),onClick:function(){r(!1),o(!1),a(!1),d.removeFile()}},(0,c.__)("Cancel","photo-block")),p&&React.createElement(s.Button,{variant:"secondary",icon:React.createElement($t,null),onClick:function(){o(!0),r(!1),d.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(Zt,{attributes:e.attributes,setAttributes:e.setAttributes,blockUniqueId:t})))},en=k("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,p=i.updateBlockAttributes,d=(0,u.useDispatch)(v(a)).setHasCaption;return 0!==t?null:E().createElement("div",{className:"photo-block-admin__caption-appender"},E().createElement(s.Button,{variant:"primary",className:"dlx-photo-block__add-caption",label:(0,c.__)("Add Caption","photo-block"),onClick:function(){var e;d(!0),e=(0,o.createBlock)("dlxplugins/photo-caption-block"),l(e,void 0,n),p(n,{hasCaption:!0})},icon:E().createElement(en,null)},(0,c.__)("Add Caption","photo-block")))},nn=window.wp.compose,on=k("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"}]]),rn=k("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"}]]),an=k("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"}]]),ln=window.wp.url,cn=k("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"}]]),sn=k("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"}]]),un=k("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"}]]),pn=k("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"}]]),dn=window.wp.keycodes,fn=k("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),hn=k("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]),mn=k("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"}]]),gn=k("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 bn(e){return bn="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},bn(e)}function yn(){yn=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 O(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"==bn(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(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),C(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;C(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 vn(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 En(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 Sn(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)?Sn(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 Sn(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,ln.isURL)(t))return p([]),h(!1),void H(!1);if(!n&&t.length<2)return p([]),h(!1),void H(!1);g(!0),w(null),H(!0);var a,i=new AbortController;null!==y&&y.abort(),v(i),(a=yn().mark((function e(){return yn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,H(!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(){H(!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){vn(r,n,o,i,l,"next",e)}function l(e){vn(r,n,o,i,l,"throw",e)}i(void 0)}))})()};return E().createElement("div",{className:"photo-block-url-input"},E().createElement("div",{className:"photo-block-pub-url-input__wrapper"},E().createElement("div",{className:"photo-block-pub-url-input__input-wrapper"},null!==T&&E().createElement("div",{className:"photo-block-pub-url-input__suggestion"},E().createElement("div",{className:"photo-block-pub-url-input__suggestion-item"},E().createElement("span",{className:"photo-block-pub-url-input__suggestion-label"},E().createElement(s.Button,{variant:"link",icon:E().createElement(pn,null),iconSize:18,iconPosition:"right",label:(0,c.__)("Open in new tab","photo-block"),href:T.permalink,target:"_blank",rel:"noopener noreferrer"},(0,ln.filterURLForDisplay)(T.permalink))),E().createElement(s.Button,{variant:"secondary",icon:E().createElement(x,null),iconSize:18,label:(0,c.__)("Remove Current Selection","photo-block"),onClick:function(){I(null)}}))),null===T&&E().createElement("div",{className:"photo-block-pub-url-search-wrapper"},E().createElement("input",{type:"text",placeholder:(0,c.__)("Paste in URL or search","photo-block"),id:G,className:"photo-block-pub-url-input__input",value:L,onChange:function(e){M(e.target.value)},onFocus:function(e){e.preventDefault(),null!==k||""===L||(0,ln.isURL)(L)||z(L)},onKeyDown:function(e){if(!f&&!u.length||V){switch(e.keyCode){case dn.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case dn.DOWN:L!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(L.length,L.length));break;case dn.ENTER:e.preventDefault(),z(e.target.value)}return null}switch(e.keyCode){case dn.UP:e.preventDefault();var o=O?O-1:u.length-1;A(o),w(u[o].value);break;case dn.DOWN:if(e.preventDefault(),!f&&u.length>0)return h(!0),A(0),void w(u[0].value);var r=null===k||O===u.length-1?0:O+1;A(r),w(u[r].value);break;case dn.TAB:null!==k&&(0,Tt.speak)((0,c.__)("Link selected.","photo-block"));break;case dn.ENTER:e.preventDefault(),h(!1),null!==k&&(t.onItemSelect(e,(a=k,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}),V&&E().createElement("div",{className:"photo-block-pub-url-input__loading"},E().createElement(s.Spinner,null)),!V&&!(0,ln.isURL)(L)&&E().createElement(E().Fragment,null,E().createElement(s.Button,{className:"photo-block-pub-url-input__search-button",icon:E().createElement(fn,null),iconSize:18,label:(0,c.__)("Search for a Page","photo-block"),onClick:function(){h(!0)}})),!V&&(0,ln.isURL)(L)&&E().createElement(E().Fragment,null,E().createElement(s.Button,{className:"photo-block-pub-url-input__apply-button",icon:E().createElement(hn,null),iconSize:18,label:(0,c.__)("Apply Link","photo-block"),onClick:function(e){var n={permalink:L,label:(0,ln.filterURLForDisplay)(L),slug:"",value:""};I(n),t.onItemSelect(e,L)}}))))),f&&!!u.length&&E().createElement("div",{className:"photo-block-suggestions-wrapper"},E().createElement("div",{role:"listbox",id:D,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===k});return E().createElement(s.Button,{key:o,id:o,value:e.value,role:"option","aria-selected":e.value===k,className:r,onClick:function(o){w(parseInt(o.target.value)),A(n),I(e),h(!1),t.onItemSelect(o,e.permalink)},icon:"post"===e.type?E().createElement(mn,null):E().createElement(gn,null),iconSize:2,iconPosition:"left"},E().createElement("span",{className:"photo-block-search-item"},E().createElement("span",{className:"photo-block-search-item-title"},e.label),E().createElement("span",{className:"photo-block-search-item-info"},e.permalink)))})))))};kn.defaultProps={label:(0,c.__)("Page","photo-block"),onItemSelect:function(){},hasInititialFocus:!1,itemIcon:E().createElement(E().Fragment,null)},kn.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 wn=kn,Rn=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,p=a.imageData,d=t.mediaLinkType,f=t.mediaLinkTitle,h=t.mediaLinkUrl,m=t.lightboxCaption,g=t.lightboxEnabled,b=t.lightboxShowCaption;return React.createElement(React.Fragment,null,React.createElement(s.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(s.ButtonGroup,{className:"dlx-photo-block__media-link-button-group"},React.createElement(s.Button,{variant:"secondary",icon:React.createElement(cn,null),className:i()({"is-pressed":"none"===d}),onClick:function(){n({mediaLinkType:"none"})}},React.createElement("span",{className:"dlx-photo-block__media-link-button-text"},(0,c.__)("No link","photo-block"))),React.createElement(s.Button,{variant:"secondary",icon:React.createElement(A,null),className:i()({"is-pressed":"image"===d}),onClick:function(){n({mediaLinkType:"image"})}},(0,c.__)("The full size photo","photo-block")),React.createElement(s.Button,{variant:"secondary",icon:React.createElement(sn,null),className:i()({"is-pressed":"page"===d}),onClick:function(){n({mediaLinkType:"page"})},disabled:"photo"!==l},(0,c.__)("The photo's page","photo-block")),React.createElement(s.Button,{variant:"secondary",icon:React.createElement(un,null),className:i()({"is-pressed":"custom"===d}),onClick:function(){n({mediaLinkType:"custom"})}},(0,c.__)("Custom link","photo-block"))),"custom"===d&&React.createElement(React.Fragment,null,React.createElement(wn,{restNonce:photoBlock.restNonce,restEndpoint:photoBlock.restUrl+"/search/pages",itemIcon:React.createElement(un,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(s.Button,{variant:"link",icon:React.createElement(pn,null),iconSize:18,iconPosition:"right",label:(0,c.__)("Open in new tab","archive-pages-pro"),href:p.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(s.Button,{variant:"link",icon:React.createElement(pn,null),iconSize:18,iconPosition:"right",label:(0,c.__)("Open in new tab","archive-pages-pro"),href:p.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(s.PanelBody,{title:(0,c.__)("Lightbox","photo-block"),initialOpen:!1},React.createElement(s.PanelRow,null,React.createElement(s.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(s.PanelRow,null,React.createElement(s.ToggleControl,{label:(0,c.__)("Show caption","photo-block"),checked:b,onChange:function(e){n({lightboxShowCaption:e})}})),b&&React.createElement(s.PanelRow,null,React.createElement(s.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(s.PanelBody,{title:(0,c.__)("Advanced","photo-block"),initialOpen:!1},!g&&React.createElement(s.PanelRow,null,React.createElement(s.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(s.PanelRow,null,React.createElement(s.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(s.PanelRow,null,React.createElement(s.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(s.PanelRow,null,React.createElement(s.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(s.PanelRow,null,React.createElement(s.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")}))))))},Tn=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 xn(e){return xn="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},xn(e)}function In(){return In=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=Vn()(e).hex;return Gn()(n,t)}return 0===e.indexOf("rgb")?Gn()(Vn()(e).hex,t):w?Gn()(e,t):e},A=E().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 488.47 488.47"},E().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 E().createElement(s.BaseControl,{className:"photo-block-component-color-picker-wrapper"},!!S&&!x&&E().createElement("h3",{className:"photo-block-color-component-label"},E().createElement("span",null,S)),E().createElement("div",{className:"photo-block-component-color-picker"},E().createElement("div",{className:"photo-block-color-picker-area photo-block-component-color-picker-palette"},!r&&E().createElement(E().Fragment,null,E().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",b?"":"components-color-palette__custom-color")},E().createElement(s.Tooltip,{text:(0,c.__)("Choose Color","photo-block")},E().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:u}},E().createElement("span",{className:"components-color-palette__custom-color-gradient"}))))),r&&E().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",b?"":"components-color-palette__custom-color")},E().createElement(s.Tooltip,{text:(0,c.__)("Choose Color","photo-block")},E().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:u}},E().createElement("span",{className:"components-color-palette__custom-color-gradient"})))),r&&E().createElement(s.Popover,{className:"photo-block-component-color-picker",onClose:P,noArrow:!1},E().createElement(s.BaseControl,{key:n},E().createElement(s.ColorPicker,{key:n,color:u,onChangeComplete:function(e){var t=O(e.hex,f);p(t),y(R,t,e.hex)},disableAlpha:!0,defaultValue:m})),w&&E().createElement("div",{className:"photo-block-component-color-opacity"},E().createElement(s.Tooltip,{text:(0,c.__)("Opacity","photo-block")},A),E().createElement(s.RangeControl,{value:f,onChange:function(e){var t=O(u,e);h(e),p(t),y(R,t,u),v(e)},min:0,max:1,step:.01,initialPosition:1,disabled:0===u.indexOf("var(")})),E().createElement(s.BaseControl,{className:"photo-block-component-color-picker-palette"},E().createElement(s.ColorPalette,{colors:(I=[],C=[],g.forEach((function(e,t){I.includes(e.color)||(I.push(e.color),C.push(e))})),C),value:u,onChange:function(e){var t=O(e);y(R,t),p(t)},disableCustomColors:!0,clearable:!1})),E().createElement("div",{className:"components-color-clear-color"},E().createElement(s.Button,{onClick:function(){y(R,m),p(m)}},(0,c.__)("Clear Color","photo-block")))))))};Wn.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},Wn.defaultProps={label:(0,c.__)("Color","photo-block"),value:"",defaultColor:"transparent",alpha:!1,hideLabelFromVision:!1,onOpacityChange:function(){}};const Yn=Wn;function Xn(e){return Xn="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},Xn(e)}function Qn(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 Zn(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,io=e=>e instanceof Date,lo=e=>null==e;const co=e=>"object"==typeof e;var so=e=>!lo(e)&&!Array.isArray(e)&&co(e)&&!io(e),uo=e=>so(e)&&e.target?ao(e.target)?e.target.checked:e.target.value:e,po=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),fo=e=>{const t=e.constructor&&e.constructor.prototype;return so(t)&&t.hasOwnProperty("isPrototypeOf")},ho="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function mo(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(ho&&(e instanceof Blob||e instanceof FileList)||!n&&!so(e))return e;if(t=n?[]:{},Array.isArray(e)||fo(e))for(const n in e)t[n]=mo(e[n]);else t=e}return t}var go=e=>Array.isArray(e)?e.filter(Boolean):[],bo=e=>void 0===e,yo=(e,t,n)=>{if(!t||!so(e))return n;const o=go(t.split(/[,[\].]+?/)).reduce(((e,t)=>lo(e)?e:e[t]),e);return bo(o)||o===e?bo(e[t])?n:e[t]:o};const vo={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_o={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Eo="pattern",So="required",ko=_.createContext(null),wo=()=>_.useContext(ko);var Ro=(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]!==_o.all&&(t._proxyFormState[r]=!o||_o.all),n&&(n[r]=!0),e[r]}});return r},To=e=>so(e)&&!Object.keys(e).length,xo=(e,t,n,o)=>{n(e);const{name:r,...a}=e;return To(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find((e=>t[e]===(!o||_o.all)))},Io=e=>Array.isArray(e)?e:[e],Co=(e,t,n)=>n&&t?e===t:!e||!t||e===t||Io(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function Oo(e){const t=_.useRef(e);t.current=e,_.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}function Ao(e){const t=wo(),{control:n=t.control,disabled:o,name:r,exact:a}=e||{},[i,l]=_.useState(n._formState),c=_.useRef(!0),s=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=_.useRef(r);return u.current=r,Oo({disabled:o,next:e=>c.current&&Co(u.current,e.name,a)&&xo(e,s.current,n._updateFormState)&&l({...n._formState,...e}),subject:n._subjects.state}),_.useEffect((()=>(c.current=!0,s.current.isValid&&n._updateValid(!0),()=>{c.current=!1})),[n]),Ro(i,n,s.current,!1)}var Po=e=>"string"==typeof e,Do=(e,t,n,o,r)=>Po(e)?(o&&t.watch.add(e),yo(n,e,r)):Array.isArray(e)?e.map((e=>(o&&t.watch.add(e),yo(n,e)))):(o&&(t.watchAll=!0),n);function No(e){const t=wo(),{control:n=t.control,name:o,defaultValue:r,disabled:a,exact:i}=e||{},l=_.useRef(o);l.current=o,Oo({disabled:a,subject:n._subjects.values,next:e=>{Co(l.current,e.name,i)&&s(mo(Do(l.current,n._names,e.values||n._formValues,!1,r)))}});const[c,s]=_.useState(n._getWatch(o,r));return _.useEffect((()=>n._removeUnmounted())),c}var Lo=e=>/^\w*$/.test(e),Mo=e=>go(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Bo(e,t,n){let o=-1;const r=Lo(t)?[t]:Mo(t),a=r.length,i=a-1;for(;++oe.render(function(e){const t=wo(),{name:n,control:o=t.control,shouldUnregister:r}=e,a=po(o._names.array,n),i=No({control:o,name:n,defaultValue:yo(o._formValues,n,yo(o._defaultValues,n,e.defaultValue)),exact:!0}),l=Ao({control:o,name:n}),c=_.useRef(o.register(n,{...e.rules,value:i}));return _.useEffect((()=>{const e=o._options.shouldUnregister||r,t=(e,t)=>{const n=yo(o._fields,e);n&&(n._f.mount=t)};if(t(n,!0),e){const e=mo(yo(o._options.defaultValues,n));Bo(o._defaultValues,n,e),bo(yo(o._formValues,n))&&Bo(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:_.useCallback((e=>c.current.onChange({target:{value:uo(e),name:n},type:vo.CHANGE})),[n]),onBlur:_.useCallback((()=>c.current.onBlur({target:{value:yo(o._formValues,n),name:n},type:vo.BLUR})),[n,o]),ref:e=>{const t=yo(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:()=>!!yo(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!yo(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!yo(l.touchedFields,n)},error:{enumerable:!0,get:()=>yo(l.errors,n)}})}}(e));var Uo=(e,t,n,o,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[o]:r||!0}}:{};const Fo=(e,t,n)=>{for(const o of n||Object.keys(e)){const n=yo(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 so(o)&&Fo(o,t)}}};var Go=e=>({isOnSubmit:!e||e===_o.onSubmit,isOnBlur:e===_o.onBlur,isOnChange:e===_o.onChange,isOnAll:e===_o.all,isOnTouch:e===_o.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))))),Vo=(e,t,n)=>{const o=go(yo(e,n));return Bo(o,"root",t[n]),Bo(e,n,o),e},Ho=e=>"boolean"==typeof e,zo=e=>"file"===e.type,Wo=e=>"function"==typeof e,Yo=e=>{if(!ho)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Xo=e=>Po(e),Qo=e=>"radio"===e.type,Zo=e=>e instanceof RegExp;const $o={value:!1,isValid:!1},Jo={value:!0,isValid:!0};var Ko=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&&!bo(e[0].attributes.value)?bo(e[0].value)||""===e[0].value?Jo:{value:e[0].value,isValid:!0}:Jo:$o}return $o};const er={isValid:!1,value:null};var tr=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),er):er;function nr(e,t,n="validate"){if(Xo(e)||Array.isArray(e)&&e.every(Xo)||Ho(e)&&!e)return{type:n,message:Xo(e)?e:"",ref:t}}var or=e=>so(e)&&!Zo(e)?e:{value:e,message:""},rr=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=yo(t,h);if(!g||b)return{};const v=i?i[0]:a,_=e=>{o&&v.reportValidity&&(v.setCustomValidity(Ho(e)?"":e||""),v.reportValidity())},E={},S=Qo(a),k=ao(a),w=S||k,R=(m||zo(a))&&bo(a.value)&&bo(y)||Yo(a)&&""===a.value||""===y||Array.isArray(y)&&!y.length,T=Uo.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||lo(y))||Ho(y)&&!y||k&&!Ko(i).isValid||S&&!tr(i).isValid)){const{value:e,message:t}=Xo(l)?{value:!!l,message:l}:or(l);if(e&&(E[h]={type:So,message:t,ref:v,...T(So,t)},!n))return _(t),E}if(!(R||lo(u)&&lo(p))){let e,t;const o=or(p),r=or(u);if(lo(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;Po(o.value)&&y&&(e=l?i(y)>i(o.value):c?y>o.value:n>new Date(o.value)),Po(r.value)&&y&&(t=l?i(y)o.value),lo(r.value)||(t=n+e.value,r=!lo(t.value)&&y.length<+t.value;if((o||r)&&(x(o,e.message,t.message),!n))return _(E[h].message),E}if(d&&!R&&Po(y)){const{value:e,message:t}=or(d);if(Zo(e)&&!y.match(e)&&(E[h]={type:Eo,message:t,ref:a,...T(Eo,t)},!n))return _(t),E}if(f)if(Wo(f)){const e=nr(await f(y,t),v);if(e&&(E[h]={...e,...T("validate",e.message)},!n))return _(e.message),E}else if(so(f)){let e={};for(const o in f){if(!To(e)&&!n)break;const r=nr(await f[o](y,t),v,o);r&&(e={...r,...T(o,r.message)},_(r.message),n&&(E[h]=e))}if(!To(e)&&(E[h]={ref:v,...e},!n))return E}return _(!0),E};function ar(e,t){const n=Array.isArray(t)?t:Lo(t)?[t]:Mo(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 lr=e=>lo(e)||!co(e);function cr(e,t){if(lr(e)||lr(t))return e===t;if(io(e)&&io(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(io(n)&&io(e)||so(n)&&so(e)||Array.isArray(n)&&Array.isArray(e)?!cr(n,e):n!==e)return!1}}return!0}var sr=e=>"select-multiple"===e.type,ur=e=>Qo(e)||ao(e),pr=e=>Yo(e)&&e.isConnected,dr=e=>{for(const t in e)if(Wo(e[t]))return!0;return!1};function fr(e,t={}){const n=Array.isArray(e);if(so(e)||n)for(const n in e)Array.isArray(e[n])||so(e[n])&&!dr(e[n])?(t[n]=Array.isArray(e[n])?[]:{},fr(e[n],t[n])):lo(e[n])||(t[n]=!0);return t}function hr(e,t,n){const o=Array.isArray(e);if(so(e)||o)for(const o in e)Array.isArray(e[o])||so(e[o])&&!dr(e[o])?bo(t)||lr(n[o])?n[o]=Array.isArray(e[o])?fr(e[o],[]):{...fr(e[o])}:hr(e[o],lo(t)?{}:t[o],n[o]):n[o]=!cr(e[o],t[o]);return n}var mr=(e,t)=>hr(e,t,fr(t)),gr=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:o})=>bo(e)?e:t?""===e?NaN:e?+e:e:n&&Po(e)?new Date(e):o?o(e):e;function br(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return zo(t)?t.files:Qo(t)?tr(e.refs).value:sr(t)?[...t.selectedOptions].map((({value:e})=>e)):ao(t)?Ko(e.refs).value:gr(bo(t.value)?e.ref.value:t.value,e)}var yr=(e,t,n,o)=>{const r={};for(const n of e){const e=yo(t,n);e&&Bo(r,n,e._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:o}},vr=e=>bo(e)?e:Zo(e)?e.source:so(e)?Zo(e.value)?e.value.source:e.value:e,_r=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Er(e,t,n){const o=yo(e,n);if(o||Lo(n))return{error:o,name:n};const r=n.split(".");for(;r.length;){const o=r.join("."),a=yo(t,o),i=yo(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 Sr=(e,t,n,o,r)=>!r.isOnAll&&(!n&&r.isOnTouch?!(t||e):(n?o.isOnBlur:r.isOnBlur)?!e:!(n?o.isOnChange:r.isOnChange)||e),kr=(e,t)=>!go(yo(e,t)).length&&ar(e,t);const wr={mode:_o.onSubmit,reValidateMode:_o.onChange,shouldFocusError:!0};function Rr(e={},t){let n,o={...wr,...e},r={submitCount:0,isDirty:!1,isLoading:Wo(o.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},a={},i=(so(o.defaultValues)||so(o.values))&&mo(o.defaultValues||o.values)||{},l=o.shouldUnregister?{}:mo(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:ir(),array:ir(),state:ir()},f=e.resetOptions&&e.resetOptions.keepDirtyValues,h=Go(o.mode),m=Go(o.reValidateMode),g=o.criteriaMode===_o.all,b=async e=>{if(p.isValid||e){const e=o.resolver?To((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=yo(a,e);if(r){const a=yo(l,e,bo(n)?yo(i,e):n);bo(a)||o&&o.defaultChecked||t?Bo(l,e,t?a:br(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=cr(yo(i,e),t);c=yo(r.dirtyFields,e),n?ar(r.dirtyFields,e):Bo(r.dirtyFields,e,!0),s.dirtyFields=r.dirtyFields,l=l||p.dirtyFields&&c!==!n}if(n){const t=yo(r.touchedFields,e);t||(Bo(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,yr(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 rr(i,l,g,o.shouldUseNativeValidation&&!t,a);if(c[e.name]&&(n.valid=!1,t))break;!t&&(yo(c,e.name)?a?Vo(r.errors,c,e.name):Bo(r.errors,e.name,c[e.name]):ar(r.errors,e.name))}a&&await S(a,t,n)}}return n.valid},k=(e,t)=>(e&&t&&Bo(l,e,t),!cr(O(),i)),w=(e,t,n)=>Do(e,s,{...c.mount?l:bo(t)?i:Po(e)?{[e]:t}:t},n,t),R=(e,t,n={})=>{const o=yo(a,e);let r=t;if(o){const n=o._f;n&&(!n.disabled&&Bo(l,e,gr(t,n)),r=Yo(n.ref)&&lo(t)?"":t,sr(n.ref)?[...n.ref.options].forEach((e=>e.selected=r.includes(e.value))):n.refs?ao(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)):zo(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&&C(e)},T=(e,t,n)=>{for(const o in t){const r=t[o],i=`${e}.${o}`,l=yo(a,i);!s.array.has(e)&&lr(r)&&(!l||l._f)||io(r)?R(i,r,n):T(i,r,n)}},x=(e,n,o={})=>{const u=yo(a,e),f=s.array.has(e),h=mo(n);Bo(l,e,h),f?(d.array.next({name:e,values:{...l}}),(p.isDirty||p.dirtyFields)&&o.shouldDirty&&d.state.next({name:e,dirtyFields:mr(i,l),isDirty:k(e,h)})):!u||u._f||lo(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=yo(a,c);if(v){let k,w;const R=i.type?br(v._f):uo(t),T=t.type===vo.BLUR||t.type===vo.FOCUS_OUT,x=!_r(v._f)&&!o.resolver&&!yo(r.errors,c)&&!v._f.deps||Sr(T,yo(r.touchedFields,c),r.isSubmitted,m,h),I=qo(c,s,T);Bo(l,c,R),T?(v._f.onBlur&&v._f.onBlur(t),n&&n(0)):v._f.onChange&&v._f.onChange(t);const O=_(c,R,T,!1),A=!To(O)||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?{}:O});if(!T&&I&&d.state.next({...r}),y(!0),o.resolver){const{errors:e}=await E([c]),t=Er(r.errors,a,c),n=Er(e,a,t.name||c);k=n.error,c=n.name,w=To(e)}else k=(await rr(v,l,g,o.shouldUseNativeValidation))[c],f=isNaN(R)||R===yo(l,c,R),f&&(k?w=!1:p.isValid&&(w=await S(a,!0)));f&&(v._f.deps&&C(v._f.deps),((t,o,a,i)=>{const l=yo(r.errors,t),c=p.isValid&&Ho(o)&&r.isValid!==o;var s;if(e.delayError&&a?(s=()=>((e,t)=>{Bo(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?Bo(r.errors,t,a):ar(r.errors,t)),(a?!cr(l,a):l)||!To(i)||c){const e={...i,...c&&Ho(o)?{isValid:o}:{},errors:r.errors,name:t};r={...r,...e},d.state.next(e)}y(!1)})(c,w,k,O))}},C=async(e,t={})=>{let n,i;const l=Io(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=yo(t,n);e?Bo(r.errors,n,e):ar(r.errors,n)}else r.errors=t;return t})(bo(e)?e:l);n=To(t),i=e?!l.some((e=>yo(t,e))):n}else e?(i=(await Promise.all(l.map((async e=>{const t=yo(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({...!Po(e)||p.isValid&&n!==r.isValid?{}:{name:e},...o.resolver||!e?{isValid:n}:{},errors:r.errors,isValidating:!1}),t.shouldFocus&&!i&&Fo(a,(e=>e&&yo(r.errors,e)),e?l:s.mount),i},O=e=>{const t={...i,...c.mount?l:{}};return bo(e)?t:Po(e)?yo(t,e):e.map((e=>yo(t,e)))},A=(e,t)=>({invalid:!!yo((t||r).errors,e),isDirty:!!yo((t||r).dirtyFields,e),isTouched:!!yo((t||r).touchedFields,e),error:yo((t||r).errors,e)}),P=(e,t={})=>{for(const n of e?Io(e):s.mount)s.mount.delete(n),s.array.delete(n),t.keepValue||(ar(a,n),ar(l,n)),!t.keepError&&ar(r.errors,n),!t.keepDirty&&ar(r.dirtyFields,n),!t.keepTouched&&ar(r.touchedFields,n),!o.shouldUnregister&&!t.keepDefaultValue&&ar(i,n);d.values.next({values:{...l}}),d.state.next({...r,...t.keepDirty?{isDirty:k()}:{}}),!t.keepIsValid&&b()},D=(e,t={})=>{let n=yo(a,e);const r=Ho(t.disabled);return Bo(a,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),s.mount.add(e),n?r&&Bo(l,e,t.disabled?void 0:yo(l,e,br(n._f))):v(e,!0,t.value),{...r?{disabled:t.disabled}:{},...o.shouldUseNativeValidation?{required:!!t.required,min:vr(t.min),max:vr(t.max),minLength:vr(t.minLength),maxLength:vr(t.maxLength),pattern:vr(t.pattern)}:{},name:e,onChange:I,onBlur:I,ref:r=>{if(r){D(e,t),n=yo(a,e);const o=bo(r.value)&&r.querySelectorAll&&r.querySelectorAll("input,select,textarea")[0]||r,l=ur(o),c=n._f.refs||[];if(l?c.find((e=>e===o)):o===n._f.ref)return;Bo(a,e,{_f:{...n._f,...l?{refs:[...c.filter(pr),o,...Array.isArray(yo(i,e))?[{}]:[]],ref:{type:o.type,name:e}}:{ref:o}}}),v(e,!1,void 0,o)}else n=yo(a,e,{}),n._f&&(n._f.mount=!1),(o.shouldUnregister||t.shouldUnregister)&&(!po(s.array,e)||!c.action)&&s.unMount.add(e)}}},N=()=>o.shouldFocusError&&Fo(a,(e=>e&&yo(r.errors,e)),s.mount),L=(n,o={})=>{const u=n||i,h=mo(u),m=n&&!To(n)?h:i;if(o.keepDefaultValues||(i=u),!o.keepValues){if(o.keepDirtyValues||f)for(const e of s.mount)yo(r.dirtyFields,e)?Bo(m,e,yo(l,e)):x(e,yo(m,e));else{if(ho&&bo(n))for(const e of s.mount){const t=yo(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Yo(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}l=e.shouldUnregister?o.keepDefaultValues?mo(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||cr(n,i)),isSubmitted:!!o.keepIsSubmitted&&r.isSubmitted,dirtyFields:o.keepDirtyValues?r.dirtyFields:o.keepDefaultValues&&n?mr(i,n):{},touchedFields:o.keepTouched?r.touchedFields:{},errors:o.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},M=(e,t)=>L(Wo(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=yo(a,e);t&&(t._f.refs?t._f.refs.every((e=>!pr(e))):!pr(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(yo(a,e))){const t=n(yo(a,e),o.argA,o.argB);s&&Bo(a,e,t)}if(u&&Array.isArray(yo(r.errors,e))){const t=n(yo(r.errors,e),o.argA,o.argB);s&&Bo(r.errors,e,t),kr(r.errors,e)}if(p.touchedFields&&u&&Array.isArray(yo(r.touchedFields,e))){const t=n(yo(r.touchedFields,e),o.argA,o.argB);s&&Bo(r.touchedFields,e,t)}p.dirtyFields&&(r.dirtyFields=mr(i,l)),d.state.next({name:e,isDirty:k(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Bo(l,e,t)},_getFieldArray:t=>go(yo(c.mount?l:i,t,e.shouldUnregister?yo(i,t,[]):[])),_reset:L,_resetDefaultValues:()=>Wo(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:C,register:D,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=mo(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);ar(r.errors,"root"),To(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:To(r.errors),submitCount:r.submitCount+1,errors:r.errors})},watch:(e,t)=>Wo(e)?d.values.subscribe({next:n=>e(w(void 0,t),n)}):w(e,t,!0),setValue:x,getValues:O,reset:M,resetField:(e,t={})=>{yo(a,e)&&(bo(t.defaultValue)?x(e,yo(i,e)):(x(e,t.defaultValue),Bo(i,e,t.defaultValue)),t.keepTouched||ar(r.touchedFields,e),t.keepDirty||(ar(r.dirtyFields,e),r.isDirty=t.defaultValue?k(e,yo(i,e)):k()),t.keepError||(ar(r.errors,e),p.isValid&&b()),d.state.next({...r}))},clearErrors:e=>{e&&Io(e).forEach((e=>ar(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:P,setError:(e,t,n)=>{const o=(yo(a,e,{_f:{}})._f||{}).ref;Bo(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=yo(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 Tr(e={}){const t=_.useRef(),[n,o]=_.useState({isDirty:!1,isValidating:!1,isLoading:Wo(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Wo(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Rr(e,(()=>o((e=>({...e}))))),formState:n});const r=t.current.control;return r._options=e,Oo({subject:r._subjects.state,next:e=>{xo(e,r._proxyFormState,r._updateFormState,!0)&&o({...r._formState})}}),_.useEffect((()=>{e.values&&!cr(e.values,r._defaultValues)?r._reset(e.values,r._options.resetOptions):r._resetDefaultValues()}),[e.values,r]),_.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=Ro(n,r),t.current}const xr=function(e){e.label;var t=e.value,n=e.onClick,o=e.units;return E().createElement("div",{className:"components-photo-block-units-control-header__units ".concat(null==e?void 0:e.className)},E().createElement("div",{className:"components-photo-block-control__units"},E().createElement(s.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")),E().createElement(s.Tooltip,{text:(0,c.sprintf)(/* translators: Unit type (px, em, %) */ /* translators: Unit type (px, em, %) */ +(0,c.__)("%s Units","photo-block"),o),key:e},E().createElement(s.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 Ir(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 Cr=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()},Or=function(e,t){var n=Dr(t,e,t[e].width,"width"),o=Nr(t,e,t[e].unit,"unit");return n.match(/^(-)?[0-9]+$/)?"".concat(n).concat(o,";"):""===n||"0"===n?"unset;":"".concat(n,";")};function Ar(e,t){var n=e[t=t.toLowerCase()];if("desktop"===t){if(n.unitSync)return Ir(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 Cr(o,r,a,i,l,c,s,u)}if("tablet"===t||"mobile"===t){if(!0===Nr(e,t,n.unitSync)){var p=Dr(e,t,n.top,"top");return Ir(p,p,p,p,Dr(e,t,n.topUnit,"topUnit"))}var d=Dr(e,t,n.top,"top"),f=Dr(e,t,n.topUnit,"topUnit"),h=Dr(e,t,n.right,"right"),m=Dr(e,t,n.rightUnit,"rightUnit"),g=Dr(e,t,n.bottom,"bottom"),b=Dr(e,t,n.bottomUnit,"bottomUnit"),y=Dr(e,t,n.left,"left"),v=Dr(e,t,n.leftUnit,"leftUnit");return Cr(d,f,h,m,g,b,y,v)}return""}function Pr(e,t,n){var o=e[t=t.toLowerCase()];if(!0===Nr(e,t,o.unitSync,"unitSync")){var r=Dr(e,t,o.top.width,"top","width"),a=Dr(e,t,o.top.unit,"top","unit"),i=Dr(e,t,o.top.color,"top","color"),l=Dr(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=Dr(e,t,o.top.width,"top","width"),s=Dr(e,t,o.top.unit,"top","unit"),u=Dr(e,t,o.top.color,"top","color"),p=Dr(e,t,o.top.borderStyle,"top","borderStyle"),d=Dr(e,t,o.right.width,"right","width"),f=Dr(e,t,o.right.unit,"right","unit"),h=Dr(e,t,o.right.color,"right","color"),m=Dr(e,t,o.right.borderStyle,"right","borderStyle"),g=Dr(e,t,o.bottom.width,"bottom","width"),b=Dr(e,t,o.bottom.unit,"bottom","unit"),y=Dr(e,t,o.bottom.color,"bottom","color"),v=Dr(e,t,o.bottom.borderStyle,"bottom","borderStyle"),_=Dr(e,t,o.left.width,"left","width"),E=Dr(e,t,o.left.unit,"left","unit"),S=Dr(e,t,o.left.color,"left","color"),k=Dr(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 Dr(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 Nr(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 Lr=k("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),Mr=k("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"}]]),Br=k("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 jr(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=Fr.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(Nr(e.values,f,te(f)[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(Nr(e.values,f,te(f)[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 Nr(e.values,f,te(f)[t].borderStyle,t,"borderStyle")},ue=function(e){switch(se(e)){case"dashed":return Xr;case"dotted":return Qr;case"double":return Zr;default:return Yr}},pe=function(e,t){return React.createElement("div",{className:"dlx-photo-block__border-responsive-sync-interface-border-style-popover"},React.createElement(s.BaseControl,null,React.createElement("h3",null,(0,c.__)("Border Style","photo-block")),React.createElement(s.ButtonGroup,{className:"dlx-photo-block__border-responsive-sync-interface-border-style-popover-buttons"},React.createElement(jo,{name:"".concat(f,".").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(s.Button,{icon:Yr,label:(0,c.__)("Solid","photo-block"),onClick:function(){r("solid"),t(!0)},isPressed:"solid"===se(e)},(0,c.__)("Solid","photo-block")),React.createElement(s.Button,{icon:Xr,label:(0,c.__)("Dashed","photo-block"),isPressed:"dashed"===se(e),onClick:function(){r("dashed"),t(!0)}},(0,c.__)("Dashed","photo-block")),React.createElement(s.Button,{icon:Qr,label:(0,c.__)("Dotted","photo-block"),isPressed:"dotted"===se(e),onClick:function(){r("dotted"),t(!0)}},(0,c.__)("Dotted","photo-block")),React.createElement(s.Button,{icon:Zr,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(s.BaseControl,{className:"dlx-photo-block__border-responsive"},React.createElement(Ur,{heading:t,screenSize:f}),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(jo,{name:"".concat(f,".top.color"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(Yn,{value:Dr(o,f,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(s.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(s.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(s.BaseControl,null,React.createElement("h3",null,(0,c.__)("Border Style","photo-block")),React.createElement(s.ButtonGroup,{className:"dlx-photo-block__border-responsive-sync-interface-border-style-popover-buttons"},React.createElement(jo,{name:"".concat(f,".top.borderStyle"),control:K,render:function(e){var t=e.field,n=t.onChange;return t.value,React.createElement(React.Fragment,null,React.createElement(s.Button,{icon:Yr,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(s.Button,{icon:Xr,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(s.Button,{icon:Qr,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(s.Button,{icon:Zr,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(jo,{name:"".concat(f,".top.width"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(s.TextControl,{label:d,className:"dlx-photo-block__border-responsive-sync-interface-input",value:r,placeholder:Dr(o,f,te("".concat(f,".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(jo,{name:"".concat(f,".top.unit"),control:K,render:function(t){var n=t.field,o=n.onChange;return n.value,React.createElement(s.SelectControl,{className:"dlx-photo-block__border-responsive-sync-interface-select",label:(0,c.__)("Unit","photo-block"),value:Nr(e.values,f,te("".concat(f,".top.unit")),"top","unit"),options:$,onChange:function(e){o(e),re(e)},hideLabelFromVision:!0})}})),React.createElement("div",{className:"dlx-photo-block__border-responsive-sync-interface-range-sync"},React.createElement(jo,{name:"".concat(f,".top.width"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(s.RangeControl,{className:"dlx-photo-block__border-responsive-sync-interface-range",label:d,value:Number(Dr(o,f,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(s.Button,{variant:"secondary",className:"dlx-photo-block__border-responsive-sync-interface-button",onClick:function(){var t=te(f);t.unitSync=!1,ee(f,t),re(Nr(e.values,f,te("".concat(f,".top.unit")),"top","unit"))},label:(0,c.__)("Modify all values separately.","photo-block"),icon:React.createElement(Hr,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(jo,{name:"".concat(f,".top.color"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(Yn,{value:Dr(o,f,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(s.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(s.Popover,{position:"bottom center",onClose:function(){R(!1)},anchorRef:F,noArrow:!1},pe("top",R)),React.createElement(jo,{name:"".concat(f,".top.width"),control:K,render:function(e){var t=e.field,n=t.onChange,a=t.value;return React.createElement(s.TextControl,{label:r,className:"dlx-photo-block__border-responsive-sync-interface-input",value:a,placeholder:Dr(o,f,a,"top","width"),type:"text",min:0,onChange:function(e){m(e,n,ee,f,"top.unit")},hideLabelFromVision:!0,inputMode:"numeric",autoComplete:"off"})}}),React.createElement(jo,{name:"".concat(f,".top.unit"),control:K,render:function(t){var n=t.field,o=n.onChange,r=n.value;return React.createElement(s.SelectControl,{className:"dlx-photo-block__border-responsive-sync-interface-select",label:(0,c.__)("Unit","photo-block"),value:Nr(e.values,f,r,"top","unit"),options:$,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(jo,{name:"".concat(f,".right.color"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(Yn,{value:Dr(o,f,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(s.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(s.Popover,{placement:"left",onClose:function(){I(!1)},anchorRef:V,noArrow:!1},pe("right",I)),React.createElement(jo,{name:"".concat(f,".right.width"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(s.TextControl,{label:a,className:"dlx-photo-block__border-responsive-sync-interface-input",value:r,placeholder:Dr(o,f,r,"right","width"),type:"text",min:0,onChange:function(e){m(e,n,ee,f,"right.unit")},hideLabelFromVision:!0,inputMode:"numeric",autoComplete:"off"})}}),React.createElement(jo,{name:"".concat(f,".right.unit"),control:K,render:function(t){var n=t.field,o=n.onChange,r=n.value;return React.createElement(s.SelectControl,{className:"dlx-photo-block__border-responsive-sync-interface-select",label:(0,c.__)("Unit","photo-block"),value:Nr(e.values,f,r,"right","unit"),options:$,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(jo,{name:"".concat(f,".bottom.color"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(Yn,{value:Dr(o,f,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(s.Button,{className:"dlx-photo-block__border-responsive-sync-interface-border-style",label:(0,c.__)("Border Style","photo-block"),icon:ue("bottom"),onClick:function(){A(!O)},ref:Y}),O&&React.createElement(s.Popover,{position:"bottom center",onClose:function(){A(!1)},anchorRef:W,noArrow:!1},pe("bottom",A)),React.createElement(jo,{name:"".concat(f,".bottom.width"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(s.TextControl,{label:u,className:"dlx-photo-block__border-responsive-sync-interface-input",value:r,placeholder:Dr(o,f,r,"bottom","width"),type:"text",min:0,step:1,max:"Infinity",onChange:function(e){m(e,n,ee,f,"bottom.unit")},hideLabelFromVision:!0,inputMode:"numeric",autoComplete:"off"})}}),React.createElement(jo,{name:"".concat(f,".bottom.unit"),control:K,render:function(t){var n=t.field,o=n.onChange,r=n.value;return React.createElement(s.SelectControl,{className:"dlx-photo-block__border-responsive-sync-interface-select",label:(0,c.__)("Unit","photo-block"),value:Nr(e.values,f,r,"bottom","unit"),options:$,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(jo,{name:"".concat(f,".left.color"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(Yn,{value:Dr(o,f,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(s.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:Z}),N&&React.createElement(s.Popover,{position:"Left center",onClose:function(){L(!1)},anchorRef:Q,noArrow:!1},pe("left",L)),React.createElement(jo,{name:"".concat(f,".left.width"),control:K,render:function(e){var t=e.field,n=t.onChange,r=t.value;return React.createElement(s.TextControl,{label:p,className:"dlx-photo-block__border-responsive-sync-interface-input",value:r,placeholder:Dr(o,f,r,"left","width"),type:"text",min:0,step:1,max:"Infinity",onChange:function(e){m(e,n,ee,f,"left.unit")},hideLabelFromVision:!0,inputMode:"numeric",autoComplete:"off"})}}),React.createElement(jo,{name:"".concat(f,".left.unit"),control:K,render:function(t){var n=t.field,o=n.onChange,r=n.value;return React.createElement(s.SelectControl,{className:"dlx-photo-block__border-responsive-sync-interface-select",label:(0,c.__)("Unit","photo-block"),value:Nr(e.values,f,r,"left","unit"),options:$,onChange:function(e){o(e)},hideLabelFromVision:!0})}})),React.createElement(s.Button,{variant:"secondary",className:"dlx-photo-block__border-responsive-sync-manual-button",onClick:function(){var e=te(f);e.unitSync=!0,ee(f,e)},isPressed:!1,icon:React.createElement(P,null),label:(0,c.__)("Edit all values together","photo-block")}))))))};function ea(e){return ea="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},ea(e)}function ta(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 na(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);n0&&void 0!==arguments[0]?arguments[0]:Ea,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_GLOBAL_STYLE":var n=t.slug,o=va(va({},e.globalStyles),{},_a({},n,t.globalStyle));return va(va({},e),{},{globalStyles:o});case"REMOVE_GLOBAL_STYLE":var r=va({},e.globalStyles);return delete r[t.slug],va(va({},e),{},{globalStyles:r});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}}},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)}}});(0,u.register)(Sa);const ka=Sa;function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&E().createElement(s.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:q,onChange:function(e){f(e)}}),E().createElement("form",{onSubmit:C((function(e){"new"===d?function(e){g(!0);var t="".concat(ajaxurl),n=new FormData;n.append("action","dlx_photo_block_save_global_styles"),n.append("nonce",photoBlock.globalStylesSaveNewNonce),n.append("attributes",JSON.stringify(U())),n.append("formData",JSON.stringify(e)),fetch(t,{method:"POST",body:n,headers:{Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){var t=e.success,n=e.data;if(!t)return P("formAjaxError",{type:"ajax",message:n.message}),j((0,c.__)("There was an error saving the global style.","photo-block"),{type:"snackbar"}),void g(!1);B((0,c.__)("Global style saved successfully.","photo-block"),{type:"snackbar"}),k(n,n.slug),g(!1),S(!1),F()})).catch((function(e){g(!1),S(!1)}))}(e):function(e){g(!0);var t="".concat(ajaxurl),n=new FormData;n.append("action","dlx_photo_block_override_global_style"),n.append("nonce",photoBlock.globalStylesSaveNewNonce),n.append("attributes",JSON.stringify(U())),n.append("editId",e.selectedGlobalStyle),fetch(t,{method:"POST",body:n,headers:{Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){var t=e.success,n=e.data;if(!t)return P("formAjaxError",{type:"ajax",message:n.message}),j((0,c.__)("There was an error saving the global style override.","photo-block"),{type:"snackbar"}),void g(!1);B((0,c.__)("Global style saved successfully.","photo-block"),{type:"snackbar"}),G(n),k(n,n.slug),g(!1),S(!1),F()})).catch((function(e){S(!1)}))}(e)}))},"new"===d&&E().createElement(E().Fragment,null,E().createElement("div",{className:"photo-block-global-styles-modal-new-preset"},E().createElement("div",{className:"photo-block-global-styles-row"},E().createElement(jo,{name:"globalStyleLabel",control:x,rules:{required:!0,pattern:/^(?=[^0-9-_])[a-zA-Z0-9-_ ]+$/},render:function(e){var t,n=e.field;return E().createElement(s.TextControl,wa({},n,{label:(0,c.__)("Global Style Name","photo-block"),className:i()("photo-block-admin__text-control",{"is-required":!0,"has-error":"required"===(null===(t=L.globalStyleLabel)||void 0===t?void 0:t.type)}),onBlur:function(){""===N("globalStyleCSSClass")&&(O("globalStyleCSSClass",(0,ln.cleanForSlug)(n.value)),A("globalStyleCSSClass"))},onChange:function(e){D(),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=L.globalStyleLabel)||void 0===t?void 0:t.type)&&E().createElement(At,{message:(0,c.__)("The Global Style Name field is required."),status:"error",politeness:"assertive",icon:I}),"pattern"===(null===(n=L.globalStyleLabel)||void 0===n?void 0:n.type)&&E().createElement(At,{message:(0,c.__)("This Global Style label contains invalid characters."),status:"error",politeness:"assertive",icon:I})),E().createElement("div",{className:"photo-block-global-styles-row"},E().createElement(jo,{name:"globalStyleCSSClass",control:x,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 E().createElement(s.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=L.globalStyleCSSClass)||void 0===t?void 0:t.type)}),help:(0,c.__)("The CSS class used when outputting the block.","photo-block"),onChange:function(e){D(),o(e)}})}}),"pattern"===(null===(o=L.globalStyleCSSClass)||void 0===o?void 0:o.type)&&E().createElement(At,{message:(0,c.__)("The CSS class contains invalid characters and must be a CSS friendly name."),status:"error",politeness:"assertive",icon:I}),"required"===(null===(a=L.globalStyleCSSClass)||void 0===a?void 0:a.type)&&E().createElement(At,{message:(0,c.__)("The Global Style CSS Class field is required."),status:"error",politeness:"assertive",icon:I})))),"override"===d&&xa&&E().createElement(E().Fragment,null,Object.keys(R).length>0&&E().createElement("div",{className:"photo-block-global-styles-modal-override-preset"},E().createElement(jo,{name:"selectedGlobalStyle",control:x,rules:{required:!0},render:function(e){var t,n=e.field,o=n.onChange,r=n.value;return E().createElement(s.RadioControl,{label:(0,c.__)("Select a global style to override","photo-block"),className:"is-required",selected:r,options:(t=[],Object.values(R).forEach((function(e){t.push({label:e.title,value:e.id+""})})),t),onChange:function(e){return o(e)}})}}),"required"===(null===(l=L.selectedGlobalStyle)||void 0===l?void 0:l.type)&&E().createElement(At,{message:(0,c.__)("This field is required."),status:"error",politeness:"assertive",icon:I}))),E().createElement("div",{className:"photo-block-global-styles-modal-button-group"},E().createElement(s.Button,{type:"submit",variant:"primary",className:"photo-block-global-styles-modal-apply-button",disabled:m||Object.keys(L).length>0,icon:E().createElement(ma,null)},m?(0,c.__)("Saving…","photo-block"):(0,c.__)("Save Global Style","photo-block")),E().createElement(s.Button,{variant:"secondary",onClick:function(){S(!1)},className:"photo-block-global-styles-modal-cancel-button",disabled:m},(0,c.__)("Cancel","photo-block"))),(null==L?void 0:L.formAjaxError)&&E().createElement("div",{className:"photo-block-global-styles-row"},E().createElement(At,{message:L.formAjaxError.message,status:"error",politeness:"assertive",icon:I})))))};function Ca(){return Ca=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})})),E().createElement(E().Fragment,null,E().createElement("div",{className:"photo-block-global-styles-edit-grid"},n.map((function(e){return E().createElement("div",{key:e.value,className:"photo-block-global-styles-edit-item"},E().createElement("div",{className:"photo-block-global-styles-edit-item-title"},e.label),E().createElement("div",{className:"photo-block-global-styles-edit-item-actions"},E().createElement(s.ButtonGroup,null,E().createElement(s.Button,{icon:E().createElement(fa,null),onClick:function(){y({editId:e.id,title:e.label,saveNonce:e.saveNonce,slug:e.value,cssClass:e.cssClass})},label:(0,c.__)("Edit Global Style","photo-block")}),E().createElement(s.Button,{icon:E().createElement(ha,null),onClick:function(){S({editId:e.id,title:e.label,deleteNonce:e.deleteNonce,slug:e.value,cssClass:e.cssClass})},label:(0,c.__)("Delete Global Style","photo-block")}))))}))))):E().createElement(E().Fragment,null,E().createElement("p",null,ja?(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"))))),ja&&E().createElement("div",{className:"photo-block-global-styles-actions"},!m&&E().createElement(s.Button,{variant:"primary",onClick:function(e){e.preventDefault(),h(!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")),!m&&Object.keys(C).length>0&&E().createElement(s.Button,{variant:"secondary",onClick:function(e){e.preventDefault(),g(!0)},className:"photo-block-global-styles-edit-button",label:(0,c.__)("Edit Global Styles","photo-block")},(0,c.__)("Edit Global Styles","photo-block")),m&&!f&&E().createElement(s.Button,{variant:"primary",onClick:function(e){e.preventDefault(),g(!1)},className:"photo-block-global-styles-exit-button",label:(0,c.__)("Exit Edit Mode","photo-block")},(0,c.__)("Exit Edit Mode","photo-block")))),f&&E().createElement(Ia,La({title:(0,c.__)("Save Global Style","photo-block")},e))))};function Fa(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 Ga(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)?Ga(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 Ga(e,t){(null==t||t>e.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=Vn()(e).hex;return Gn()(n,t)}return 0===e.indexOf("rgb")?Gn()(Vn()(e).hex,t):t<1?Gn()(e,t):e};const Ya=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],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.photoObjectPositionCustom,v=e.photoBorder,_=e.photoBlur,E=e.photoObjectFit,S=(e.captionCustomTypography,"");return S+="overlay"===u?"\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(Or(t,r),"\n\t\t\t\t--photo-block-image-height: ").concat(Or(t,a),"\n\t\t\t\t--photo-block-image-min-width: ").concat(Or(t,i),"\n\t\t\t\t--photo-block-image-min-height: ").concat(Or(t,l),"\n\t\t\t\t--photo-block-image-max-width: ").concat(Or(t,c),"\n\t\t\t\t--photo-block-image-max-height: ").concat(Or(t,s),"\n\t\t\t\t--photo-block-image-padding: ").concat(Ar(p,t),";\n\t\t\t\t--photo-block-image-margin: ").concat(Ar(d,t),";\n\t\t\t\t").concat(Pr(v,t,"--photo-block-image"),";\n\t\t\t\t--photo-block-image-border-radius: ").concat(Ar(f,t),";\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(Wa(h.color,h.opacity),";\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(E,";\n\t\t\t\t--photo-block-blur: ").concat(_,"px;\n\t\t\t\t--photo-block-image-width: ").concat("none"!==E?"100%":"unset",";\n\t\t\t\t--photo-block-image-height: ").concat("none"!==E?"100%":"unset",";\n\t\t\t\t--photo-block-image-object-position: ").concat("custom"===m?y:m,";\n\t\t\t}\n\t\t"):"\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(Or(t,r),"\n\t\t\t\t--photo-block-image-height: ").concat(Or(t,a),"\n\t\t\t\t--photo-block-image-min-width: ").concat(Or(t,i),"\n\t\t\t\t--photo-block-image-min-height: ").concat(Or(t,l),"\n\t\t\t\t--photo-block-image-max-width: ").concat(Or(t,c),"\n\t\t\t\t--photo-block-image-max-height: ").concat(Or(t,s),"\n\t\t\t\t--photo-block-photo-border-radius: ").concat(Ar(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(E,";\n\t\t\t\t--photo-block-blur: ").concat(_,"px;\n\t\t\t\t--photo-block-image-width: ").concat("none"!==E?"100%":"unset",";\n\t\t\t\t--photo-block-image-height: ").concat("none"!==E?"100%":"unset",";\n\t\t\t\t--photo-block-image-object-position: ").concat("custom"===m?y:m,";\n\t\t\t\t--photo-block-image-padding: ").concat(Ar(p,t),";\n\t\t\t\t--photo-block-image-margin: ").concat(Ar(d,t),";\n\t\t\t\t").concat(Pr(v,t,"--photo-block-image"),";\n\t\t\t\t--photo-block-image-border-radius: ").concat(Ar(f,t),";\n\t\t\t}\n\t\t"),S+="".concat(o?".":"#").concat(n," .dlx-photo-block__figure { --photo-block-figure-margin: ").concat(Ar(d,t),"; }"),h.enabled&&(S+="\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(Wa(h.color,h.opacity),";\n\t\t\t}\n\t\t")),S},Xa=window.wp.escapeHtml,Qa=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],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,C=e.overlayBackgroundGradientOpacityHover,O=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(Or(t,r),"\n\t\t\t--photo-block-caption-height: ").concat(Or(t,a),"\n\t\t\t--photo-block-caption-min-width: ").concat(Or(t,i),"\n\t\t\t--photo-block-caption-min-height: ").concat(Or(t,l),"\n\t\t\t--photo-block-caption-max-width: ").concat(Or(t,c),"\n\t\t}\n\t\tfigcaption").concat(o?".":"#").concat(n," {\n\t\t\t--photo-block-caption-padding: ").concat(Ar(u,t),";\n\t\t\t--photo-block-caption-margin: ").concat(Ar(p,t),";\n\t\t\t--photo-block-caption-border-radius: ").concat(Ar(d,t),";\n\t\t\t--photo-block-caption-padding: ").concat(Ar(u,t),";\n\t\t\t--photo-block-caption-margin: ").concat(Ar(p,t),";\n\t\t\t--photo-block-caption-border-radius: ").concat(Ar(d,t),";\n\t\t\t").concat(Pr(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(Dr(m,t,m[t].fontSize,"fontSize")).concat(Nr(m,t,m[t].fontSizeUnit,"fontSizeUnit"),";\n\t\t\t\t--photo-block-caption-font-weight: ").concat(Dr(m,t,m[t].fontWeight,"fontWeight"),";\n\t\t\t\t--photo-block-caption-line-height: ").concat(Dr(m,t,m[t].lineHeight,"lineHeight")).concat(Nr(m,t,m[t].lineHeightUnit,"lineHeightUnit"),";\n\t\t\t\t--photo-block-caption-text-transform: ").concat(Dr(m,t,m[t].textTransform,"textTransform"),";\n\t\t\t\t--photo-block-caption-letter-spacing: ").concat(Dr(m,t,m[t].letterSpacing,"letterSpacing")).concat(Nr(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(Dr(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(Dr(k,t,k[t].value,"value")).concat(Nr(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(Ar(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(C,";\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(Ar(A,t),";\n\t\t\t}\n\t\t")),"overlay"===L&&"image"===w&&(0,ln.isURL)(O.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(O.backgroundColor,";\n\t\t\t\t--photo-block-caption-overlay-image: url('").concat(decodeURIComponent(encodeURIComponent(O.url))," ');\n\t\t\t\t--photo-block-caption-overlay-background-position: ").concat((0,Xa.escapeEditableHTML)(O.backgroundPosition),";\n\t\t\t\t--photo-block-caption-overlay-background-repeat: ").concat((0,Xa.escapeEditableHTML)(O.backgroundRepeat),";\n\t\t\t\t--photo-block-caption-overlay-background-size: ").concat((0,Xa.escapeEditableHTML)(O.backgroundSize),";\n\t\t\t\t--photo-block-caption-overlay-opacity: ").concat(parseFloat(O.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-opacity-hover: ").concat(parseFloat(O.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(Ar(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(Ar(d,t),";\n\t\t\t\t").concat(Pr(P,t,"--photo-block-caption"),"\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\t\t")),B},Za=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=Qa(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"))))},$a=function(e){var t=e.photoAttributes,n=e.captionAttributes,o=e.uniqueId;if(void 0===t)return null;var r,a,l=Ya(t,"desktop","photo-block-preview"),c=t.cssGramFilter,s=n.captionPosition,p=(0,u.useSelect)((function(e){return{imageData:e(v(o)).getImageData()}})).imageData;return React.createElement(React.Fragment,null,React.createElement("style",null,l),React.createElement("div",{className:"dlx-photo-block__screen-edit",id:"photo-block-preview"},React.createElement("figure",{className:"dlx-photo-block__screen-edit-image-wrapper dlx-photo-block__figure"},"top"===s&&React.createElement("div",{className:"dlx-photo-block__screen-edit-caption dlx-photo-block__caption"},React.createElement(Za,{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("img",{src:(r=p.url,a=p.id,r&&0!==a?r:photoBlock.defaultImagePlacheolder),className:i()("photo-block-".concat(c," dlx-photo-block__image"),{"has-css-gram":"none"!==c}),alt:"",style:{maxWidth:"100%",height:"auto"}}),"overlay"===s&&React.createElement("div",{className:"dlx-photo-block__screen-edit-caption dlx-photo-block__caption"},React.createElement(Za,{photoAttributes:t,captionAttributes:n,uniqueId:"photo-block-preview"}))),"bottom"===s&&React.createElement("div",{className:"dlx-photo-block__screen-edit-caption dlx-photo-block__caption"},React.createElement(Za,{photoAttributes:t,captionAttributes:n,uniqueId:"photo-block-preview"})))))};function Ja(e){return Ja="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},Ja(e)}function Ka(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 ei(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);n0){var c=(null==l?void 0:l.innerBlocks[0].clientId)||null;m(c,a)}}}else{e.setAttributes({globalStyle:"none"});var s=g(e.clientId);if((null==s?void 0:s.innerBlocks).length>0){var u=(null==s?void 0:s.innerBlocks[0].clientId)||null;m(u,{globalStyle:"none"})}}o(!1)},variant:"primary",className:"photo-block-global-styles-modal-apply-button"},(0,c.__)("Remove Global Style","photo-block")),E().createElement(s.Button,{onClick:function(){return o(!1)},variant:"secondary"},(0,c.__)("Cancel","photo-block")))),E().createElement(s.PanelBody,{title:(0,c.__)("Global Styles"),initialOpen:!0},function(){if(h(e.attributes.globalStyle)){var t=f(e.attributes.globalStyle);return 0===Object.keys(t).length?null:E().createElement("div",{className:"photo-block-global-styles-selected"},E().createElement("div",{className:"photo-block-global-styles-selected-title"},t.title),E().createElement("div",{className:"photo-block-global-styles-selected-actions"},E().createElement(s.Button,{onClick:function(){o(!0)},icon:E().createElement(ha,null),label:(0,c.__)("Remove","photo-block")})))}return E().createElement("div",{className:"photo-block-global-styles-picker-button-group"},Object.values(d).map((function(t){return E().createElement(ri,si({key:t.slug,globalStyle:t},e))})))}()))},fi=function(e){var t=e.attributes,n=e.setAttributes,o=t.align;return React.createElement(React.Fragment,null,React.createElement(s.ToolbarGroup,null,React.createElement(s.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(s.MenuGroup,{className:"dlx-photo-block__alignment-dropdown-group"},React.createElement(s.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(s.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(s.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(s.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(s.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(s.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 hi(e){return hi="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},hi(e)}function mi(){return mi=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),C(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;C(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 bi(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 yi(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=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),C(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;C(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 Fi(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 Gi(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function i(e){Fi(a,o,r,i,l,"next",e)}function l(e){Fi(a,o,r,i,l,"throw",e)}i(void 0)}))}}function qi(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 Vi(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)?Vi(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 Vi(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)),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)},ge=React.createElement(r.InspectorControls,null,React.createElement(s.PanelBody,{title:(0,c.__)("Crop Settings","photo-block")},React.createElement(s.PanelRow,null,"Crop options here"))),be=React.createElement(r.BlockControls,null,React.createElement(s.ToolbarButton,{label:(0,c.__)("Back","photo-block"),icon:React.createElement(C,null),variant:"secondary",onClick:function(){d("edit")},className:"dlx-photo-block__toolbar-back-button"},(0,c.__)("Back","photo-block")),React.createElement(s.ToolbarGroup,null,React.createElement(s.ToolbarDropdownMenu,{icon:React.createElement(Pi,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(s.MenuGroup,{className:"dlx-photo-block__aspect-ratio-group"},React.createElement(s.MenuItem,{icon:"original"===S?React.createElement(Ti,null):null,isSelected:"original"===S,onClick:function(){b("original"),me(null==N?void 0:N.width,null==N?void 0:N.height),t()},className:"is-active"},(0,c.__)("Original","photo-block")),React.createElement(s.MenuItem,{icon:"square"===S?React.createElement(Ti,null):null,isSelected:"square"===S,onClick:function(){b("square"),me(1,1),t()}},(0,c.__)("Square","photo-block")),React.createElement(s.MenuItem,{icon:"custom"===S?React.createElement(Ti,null):null,isSelected:"custom"===S,onClick:function(){b("custom"),t(),le(!0)}},(0,c.__)("Custom","photo-block"))),React.createElement(s.MenuGroup,{label:(0,c.__)("Landscape","photo-block"),className:"dlx-photo-block__aspect-ratio-group"},React.createElement(s.MenuItem,{icon:"16:10"===S?React.createElement(Ti,null):null,isSelected:"16:10"===S,onClick:function(){b("16:10"),me(16,10),t()}},(0,c.__)("16:10","photo-block")),React.createElement(s.MenuItem,{icon:"16:9"===S?React.createElement(Ti,null):null,isSelected:"16:9"===S,onClick:function(){b("16:9"),me(16,9),t()}},(0,c.__)("16:9","photo-block")),React.createElement(s.MenuItem,{icon:"4:3"===S?React.createElement(Ti,null):null,isSelected:"4:3"===S,onClick:function(){b("4:3"),me(4,3),t()}},(0,c.__)("4:3","photo-block")),React.createElement(s.MenuItem,{icon:"3:2"===S?React.createElement(Ti,null):null,isSelected:"3:2"===S,onClick:function(){b("3:2"),me(3,2),t()}},(0,c.__)("3:2","photo-block"))),React.createElement(s.MenuGroup,{label:(0,c.__)("Portrait","photo-block"),className:"dlx-photo-block__aspect-ratio-group"},React.createElement(s.MenuItem,{icon:"10:16"===S?React.createElement(Ti,null):null,isSelected:"10:16"===S,onClick:function(){b("10:16"),me(10,16),t()}},(0,c.__)("10:16","photo-block")),React.createElement(s.MenuItem,{icon:"9:16"===S?React.createElement(Ti,null):null,isSelected:"9:16"===S,onClick:function(){b("9:16"),me(9,16),t()}},(0,c.__)("9:16","photo-block")),React.createElement(s.MenuItem,{icon:"3:4"===S?React.createElement(Ti,null):null,isSelected:"3:4"===S,onClick:function(){b("3:4"),me(3,4),t()}},(0,c.__)("3:4","photo-block")),React.createElement(s.MenuItem,{icon:"2:3"===S?React.createElement(Ti,null):null,isSelected:"2:3"===S,onClick:function(){b("2:3"),me(2,3),t()}},(0,c.__)("2:3","photo-block"))))})),React.createElement(s.ToolbarButton,{className:"dlx-photo-block__lock-crop-button",icon:React.createElement(xi,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(s.ToolbarButton,{icon:React.createElement(Ii,null),label:(0,c.__)("Rotate Left","photo-block"),onClick:function(){var e=fe(-90);F(e),de(ce.url,e).then((function(e){L(e),B(e)}))}}),React.createElement(s.ToolbarButton,{icon:React.createElement(Ci,null),label:(0,c.__)("Rotate Right","photo-block"),onClick:function(){var e=fe(90);F(e),de(ce.url,e).then((function(e){L(e),B(e)}))}})),"custom"===S&&React.createElement(s.ToolbarGroup,null,React.createElement(s.ToolbarItem,{as:(0,l.forwardRef)((function(e,t){return React.createElement(Bi,{forwardRef:t,onChange:function(e){me(e.width,e.height)},fullsizePhoto:N,uniqueId:se})}))})),React.createElement(s.ToolbarGroup,null,React.createElement(s.ToolbarButton,{icon:X?React.createElement(w,null):React.createElement(ma,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||(Q(!0),g(ce),he(q,ce.id,U).then((function(e){var t=e.data;t.success&&(f(t.data.attachment),o({photoMode:"photo",imageData:t.data.attachment}),m(!0),h("photo"),d("edit"))})).catch((function(e){})).then((function(){Q(!1)})))}},X?(0,c.__)("Saving…","photo-block"):(0,c.__)("Apply Crop","photo-block")))),ye=_/E;return React.createElement(React.Fragment,null,ge,be,React.createElement("div",{className:"dlx-photo-block__screen-edit"},I&&React.createElement("div",{className:"dlx-photo-block__screen-edit-spinner",style:{minWidth:ue,minHeight:pe,maxWidth:"100%",maxHeight:"100%"}},React.createElement("h3",null,(0,c.__)("Loading Full Size Image","photo-block")),React.createElement(s.Spinner,null)),!I&&React.createElement(React.Fragment,null,React.createElement(Ai(),{aspect:z?ye:null,crop:q,onChange:function(e){V(e)},ruleOfThirds:!0,maxWidth:null!=$?$: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})))))},zi=k("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]),Wi=k("FileKey",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["circle",{cx:"10",cy:"16",r:"2",key:"4ckbqe"}],["path",{d:"m16 10-4.5 4.5",key:"7p3ebg"}],["path",{d:"m15 11 1 1",key:"1bsyx3"}]]);function Yi(e){return Yi="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},Yi(e)}function Xi(){Xi=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 O(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"==Yi(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(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),C(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;C(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 Qi(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 Zi(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"";null!==(e=t)&&void 0!==e&&e.length,t=(t=t.toString()).trim(),S(!0),I(null),W(!0);var n,a=new AbortController;null!==w&&w.abort(),R(a),(n=Xi().mark((function e(){return Xi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,W(!0),e.next=4,kt(r,Zi({signal:a.signal,search:encodeURIComponent(t)},l),o,"POST").then((function(e){R(null);var t=e.data.data;m(t),y(!0)})).catch((function(e){})).then((function(){W(!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(o,r){var a=n.apply(e,t);function i(e){Ji(a,o,r,i,l,"next",e)}function l(e){Ji(a,o,r,i,l,"throw",e)}i(void 0)}))})()};return E().createElement("div",{className:"photo-block-advanced-select"},E().createElement("div",{className:"photo-block-pub-advanced-select__wrapper"},E().createElement("div",{className:"photo-block-pub-advanced-select__input-wrapper"},null!==O&&""!==O&&E().createElement(E().Fragment,null,E().createElement("div",{className:"photo-block-pub-advanced-select__input-label-wrapper"},E().createElement("label",{htmlFor:V,className:"photo-block-pub-advanced-select__input-label"},t.label)),E().createElement("div",{className:"photo-block-pub-advanced-select__suggestion-display-wrapper"},E().createElement("div",{className:"photo-block-pub-advanced-select__suggestion-display"},O),E().createElement("div",{className:"photo-block-pub-advanced-select__suggestion-display-actions"},E().createElement(s.Button,{className:"photo-block-pub-advanced-select__suggestion-display-action",icon:E().createElement(ca,null),label:(0,c.__)("Clear","photo-block"),onClick:function(){A(null),j(""),y(!1),I(null),N(null),m([]),t.onItemSelect(null,null)}})))),(null===O||""===O)&&E().createElement(E().Fragment,null,E().createElement("div",{className:"photo-block-pub-advanced-select__input-label-wrapper"},E().createElement("label",{htmlFor:V,className:"photo-block-pub-advanced-select__input-label"},t.label)),E().createElement("div",{className:"photo-block-pub-advanced-select__input-search-wrapper"},E().createElement(s.TextControl,{id:V,type:"text",className:"photo-block-pub-advanced-select__input",placeholder:t.placeholder,value:B,onChange:function(e){j(e)},onFocus:function(e){e.preventDefault(),null===x&&X(B)},onKeyDown:function(e){if(!b&&!h.length||z){switch(e.keyCode){case dn.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case dn.DOWN:B!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(B.length,B.length));break;case dn.ENTER:e.preventDefault(),u&&""!==B?(A(B),y(!1),t.onItemSelect(e,B)):X(e.target.value);break;case dn.TAB:u&&""!==B&&(A(B),y(!1),t.onItemSelect(e,B))}return null}switch(e.keyCode){case dn.UP:e.preventDefault();var n=D?D-1:h.length-1;N(n),I(h[n].value);break;case dn.DOWN:if(e.preventDefault(),!b&&h.length>0)return y(!0),N(0),void I(h[0].value);var o=null===x||D===h.length-1?0:D+1;N(o),I(h[o].value);break;case dn.TAB:u&&""!==B&&(A(B),y(!1),t.onItemSelect(e,B));break;case dn.ENTER:e.preventDefault(),u&&""!==B&&(A(B),y(!1),t.onItemSelect(e,B))}},label:t.label,hideLabelFromVision:!0,"aria-autocomplete":"list",ref:n}),z&&E().createElement("div",{className:"photo-block-pub-advanced-select__loading"},E().createElement(s.Spinner,null)),E().createElement(s.Button,{className:"photo-block-pub-advanced-select__search-button",icon:E().createElement(fn,null),iconSize:18,label:t.label,onClick:function(){y(!0)}}),!z&&(0,ln.isURL)(B)&&E().createElement(E().Fragment,null,E().createElement(s.Button,{className:"photo-block-pub-advanced-select__apply-button",icon:E().createElement(hn,null),iconSize:18,label:(0,c.__)("Apply Link","photo-block"),onClick:function(e){var n={permalink:B,label:(0,ln.filterURLForDisplay)(B),slug:"",value:""};A(n),t.onItemSelect(e,B)}})))))),E().createElement("div",{className:i()({"has-suggestions":b&&!!h.length})},a(b,h,x)))};tl.defaultProps={label:(0,c.__)("Search by ID or title","photo-block"),placeholder:(0,c.__)("Search by ID or title","photo-block"),onItemSelect:function(){},children:function(){return E().createElement(E().Fragment,null)},hasInititialFocus:!1,acceptDirectInput:!1,itemIcon:E().createElement(E().Fragment,null)},tl.propTypes={restEndpoint:Rt().string.isRequired,restNonce:Rt().string.isRequired,label:Rt().string.isRequired,placeholder:Rt().string.isRequired,onItemSelect:Rt().func.isRequired,children:Rt().func.isRequired,hasInititialFocus:Rt().bool.isRequired,acceptDirectInput:Rt().bool,itemIcon:Rt().element.isRequired};const nl=tl;function ol(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 rl(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)?rl(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 rl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0?React.createElement("div",{className:"dlx-photo-block__post-suggestions"},t.map((function(e,t){var o=n===t,r=i()("photo-block__post-suggestion",{"is-selected":o});return React.createElement(s.Button,{key:t,value:e.value,role:"option","aria-selected":e.value===n,className:r,onClick:function(t){k(e.label),p({dataPostId:e.value.toString(),dataPostTitle:e.label})},icon:"post"===e.type?React.createElement(mn,null):React.createElement(gn,null),iconSize:2,iconPosition:"left"},React.createElement("span",{className:"photo-block-search-item"},React.createElement("span",{className:"photo-block-search-item-title"},e.label),React.createElement("span",{className:"photo-block-search-item-info"},e.permalink)))}))):React.createElement(React.Fragment,null)})))),React.createElement("div",{className:"dlx-photo-block__data-row"},React.createElement(s.SelectControl,{label:(0,c.__)("Image Source","photo-block"),value:h,onChange:function(e){p({dataImageSource:e})}},React.createElement("optgroup",{label:(0,c.__)("Post Options","photo-block")},React.createElement("option",{value:"featuredImage"},(0,c.__)("Featured Image","photo-block")),React.createElement("option",{value:"customField"},(0,c.__)("Post Meta","photo-block"))),React.createElement("optgroup",{label:(0,c.__)("Author","photo-block")},React.createElement("option",{value:"authorAvatar"},(0,c.__)("Author Avatar","photo-block")),React.createElement("option",{value:"authorMeta"},(0,c.__)("Author Meta","photo-block"))))),"customField"===h&&React.createElement(React.Fragment,null,React.createElement("div",{className:"dlx-photo-block__data-row"},React.createElement(nl,{restNonce:photoBlock.restNonce,restEndpoint:photoBlock.restUrl+"/search/custom-fields",params:{postType:b,postId:L()},savedValue:"",onItemSelect:function(e,t){p(null===t?{dataImageSourceCustomField:""}:{dataImageSourceCustomField:t})},placeholder:(0,c.__)("Search for or enter a custom field","photo-block"),label:(0,c.__)("Select a Custom Field","photo-block"),currentSelectedSuggestion:R,acceptDirectInput:!0},(function(e,t,n){return e&&t.length>0?React.createElement("div",{className:"dlx-photo-block__post-suggestions"},t.map((function(e,t){var o=n===t,r=i()("photo-block__post-suggestion",{"is-selected":o});return React.createElement(s.Button,{key:t,value:e,role:"option","aria-selected":e===n,className:r,onClick:function(t){T(e),p({dataImageSourceCustomField:e})},icon:React.createElement(Wi,null),iconSize:2,iconPosition:"left"},React.createElement("span",{className:"photo-block-search-item"},React.createElement("span",{className:"photo-block-search-item-title no-margin"},e)))}))):React.createElement(React.Fragment,null)})))),"authorMeta"===h&&React.createElement(React.Fragment,null,React.createElement("div",{className:"dlx-photo-block__data-row"},React.createElement(nl,{restNonce:photoBlock.restNonce,restEndpoint:photoBlock.restUrl+"/search/author-meta",params:{postType:b,postId:L()},savedValue:"",onItemSelect:function(e,t){p(null===t?{dataImageSourceAuthorMeta:""}:{dataImageSourceAuthorMeta:t})},placeholder:(0,c.__)("Search for or enter an author meta field","photo-block"),label:(0,c.__)("Select an author meta field","photo-block"),currentSelectedSuggestion:I,acceptDirectInput:!0},(function(e,t,n){return e&&t.length>0?React.createElement("div",{className:"dlx-photo-block__post-suggestions"},t.map((function(e,t){var o=n===t,r=i()("photo-block__post-suggestion",{"is-selected":o});return React.createElement(s.Button,{key:t,value:e,role:"option","aria-selected":e===n,className:r,onClick:function(t){C(e),p({dataImageSourceAuthorMeta:e})},icon:React.createElement(Wi,null),iconSize:2,iconPosition:"left"},React.createElement("span",{className:"photo-block-search-item"},React.createElement("span",{className:"photo-block-search-item-title no-margin"},e)))}))):React.createElement(React.Fragment,null)}))))),React.createElement(s.CardFooter,null,React.createElement("div",{className:"dlx-photo-block__data-row dlx-photo-block__data-button-apply"},React.createElement(s.BaseControl,null,React.createElement(s.Button,{variant:"primary",onClick:function(){var e={id:0,url:"",alt:"",title:"",caption:"",description:""};p({imageData:e}),A(e),P("data"),p({dataScreen:"data-edit"}),D("data-edit")},disabled:function(){if("postType"===f){if(""===b)return!0;if(""===_)return!0}return"customField"===h&&""===m}()},(0,c.__)("Apply Changes and Preview","photo-block"))))))))})),sl=k("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]),ul=k("CaseSensitive",[["path",{d:"m3 15 4-8 4 8",key:"1vwr6u"}],["path",{d:"M4 13h6",key:"1r9ots"}],["circle",{cx:"18",cy:"12",r:"3",key:"1kchzo"}],["path",{d:"M21 9v6",key:"anns31"}]]);function pl(e){return pl="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},pl(e)}function dl(e,t,n){var o;return o=function(e,t){if("object"!=pl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=pl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==pl(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fl(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 hl(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)?hl(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 hl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0?React.createElement("div",{className:"dlx-photo-block__post-suggestions"},o.map((function(e,o){var a=r===o,l=i()("photo-block__post-suggestion",{"is-selected":a});return React.createElement(s.Button,{key:o,value:e,role:"option","aria-selected":e===r,className:l,onClick:function(o){h(e),t(dl({},n,e))},icon:React.createElement(Wi,null),iconSize:2,iconPosition:"left"},React.createElement("span",{className:"photo-block-search-item"},React.createElement("span",{className:"photo-block-search-item-title no-margin"},e)))}))):React.createElement(React.Fragment,null)})))},gl=function(e){var t,n,o=e.attributes,r=e.setAttributes,a=e.context,p=e.title,d=e.prefix,f=e.blockUniqueId,h=fl((0,l.useState)(o["".concat(d,"PostTitle")]),2),m=h[0],g=h[1],b=o.dataSource,y=o.dataPostType,_=o.dataPostId,E=(0,u.useSelect)((function(e){return{inQueryLoop:e(v(f)).inQueryLoop()}})).inQueryLoop,S=a.postId,k=function(){var e=0;return"currentPost"===b?e=E?S:wp.data.select("core/editor").getCurrentPostId():"postType"===b&&""!==_?_:e},w=function(e){var t=null;return o["".concat(d).concat(e)]&&(t=o["".concat(d).concat(e)]),t};return React.createElement(React.Fragment,null,""!==p&&React.createElement("h3",null,p),React.createElement(s.SelectControl,{label:(0,c.__)("Data Source","photo-block"),value:w("Source"),onChange:function(e){r(dl({},"".concat(d,"Source"),e))},help:(0,c.__)("Select where the alt text should come from.","photo-block")},React.createElement("option",{value:"none"},(0,c.__)("None","photo-block")),React.createElement("option",{value:"currentImage"},(0,c.__)("Current Image","photo-block")),React.createElement("option",{value:"currentPost"},(0,c.__)("Current Post","photo-block")),React.createElement("option",{value:"postType"},(0,c.__)("Post Type","photo-block"))),"postType"===w("Source")&&React.createElement(React.Fragment,null,React.createElement(s.SelectControl,{label:(0,c.__)("Select a Post Type","photo-block"),value:w("PostType"),onChange:function(e){r(dl({},"".concat(d,"PostType"),e))},options:photoBlock.postTypes}),React.createElement(nl,{restNonce:photoBlock.restNonce,restEndpoint:photoBlock.restUrl+"/search/types",itemIcon:React.createElement(un,null),params:{postType:w("PostType")},savedValue:"",placeholder:(0,c.__)("Search by ID or title","photo-block"),label:(0,c.sprintf)(/* Translators: %s: post type label. */ /* Translators: %s: post type label. */ +(0,c.__)("Select a %s","photo-block"),(t=w("PostType"),n="",photoBlock.postTypes.forEach((function(e){var o;e.value===t&&(n=null!==(o=null==e?void 0:e.singular)&&void 0!==o?o:e.label)})),n)),currentSelectedSuggestion:m,onItemSelect:function(e,t){null===t&&r(dl({},"".concat(d,"PostId"),""))}},(function(e,t,n){return e&&t.length>0?React.createElement("div",{className:"dlx-photo-block__post-suggestions"},t.map((function(e,t){var o=n===t,a=i()("photo-block__post-suggestion",{"is-selected":o});return React.createElement(s.Button,{key:t,value:e.value,role:"option","aria-selected":e.value===n,className:a,onClick:function(t){var n;g(e.label),r((dl(n={},"".concat(d,"PostId"),e.value.toString()),dl(n,"".concat(d,"PostTitle"),e.label),n))},icon:"post"===e.type?React.createElement(mn,null):React.createElement(gn,null),iconSize:2,iconPosition:"left"},React.createElement("span",{className:"photo-block-search-item"},React.createElement("span",{className:"photo-block-search-item-title"},e.label),React.createElement("span",{className:"photo-block-search-item-info"},e.permalink)))}))):React.createElement(React.Fragment,null)})),""!==w("PostId")&&React.createElement(React.Fragment,null,React.createElement(s.SelectControl,{label:(0,c.__)("Post Data Type","photo-block"),value:w("PostTypeSource"),onChange:function(e){r(dl({},"".concat(d,"PostTypeSource"),e))},help:(0,c.__)("Select the type of data to use for the alt text.","photo-block"),options:[{label:(0,c.__)("Post Title","photo-block"),value:"title"},{label:(0,c.__)("Post Author Name","photo-block"),value:"postAuthorName"},{label:(0,c.__)("Post Author Meta","photo-block"),value:"postAuthorMeta"},{label:(0,c.__)("Post Excerpt","photo-block"),value:"postExcerpt"},{label:(0,c.__)("Custom Field","photo-block"),value:"customField"}]}),"postAuthorMeta"===w("PostTypeSource")&&React.createElement(ml,{setAttributes:r,attributeName:"".concat(d,"PostTypeAuthorMeta"),endpoint:"/search/author-meta",params:{postType:w("PostType"),postId:w("PostId")},label:(0,c.__)("Select an author meta field","photo-block"),placeholder:(0,c.__)("Search for or enter an author meta field","photo-block"),currentSuggestion:w("PostTypeAuthorMeta")}),"customField"===w("PostTypeSource")&&React.createElement(ml,{setAttributes:r,attributeName:"".concat(d,"PostTypeCustomField"),params:{postType:w("PostType"),postId:k()},currentSuggestion:w("PostTypeCustomField")}))),"currentImage"===w("Source")&&React.createElement(React.Fragment,null,React.createElement(s.SelectControl,{label:(0,c.__)("Image Data Type","photo-block"),value:w("Type"),onChange:function(e){r(dl({},"".concat(d,"Type"),e))},help:(0,c.__)("Select the type of data to use for the alt text.","photo-block"),options:[{label:(0,c.__)("Alt Text","photo-block"),value:"altText"},{label:(0,c.__)("Caption","photo-block"),value:"caption"},{label:(0,c.__)("Image Title","photo-block"),value:"imageTitle"},{label:(0,c.__)("Custom Field","photo-block"),value:"customField"}]}),"customField"===w("Type")&&React.createElement(ml,{setAttributes:r,attributeName:"".concat(d,"ImageCustomField"),params:{postType:"attachment",postId:0},currentSuggestion:w("ImageCustomField")})),"currentPost"===w("Source")&&React.createElement(React.Fragment,null,React.createElement(s.SelectControl,{label:(0,c.__)("Post Data Type","photo-block"),value:w("TypePost"),onChange:function(e){r(dl({},"".concat(d,"TypePost"),e))},help:(0,c.__)("Select the type of data to use for the alt text.","photo-block"),options:[{label:(0,c.__)("Post Title","photo-block"),value:"title"},{label:(0,c.__)("Post Author Name","photo-block"),value:"postAuthorName"},{label:(0,c.__)("Post Author Meta","photo-block"),value:"postAuthorMeta"},{label:(0,c.__)("Post Excerpt","photo-block"),value:"postExcerpt"},{label:(0,c.__)("Custom Field","photo-block"),value:"customField"}]}),"postAuthorMeta"===w("TypePost")&&React.createElement(ml,{setAttributes:r,attributeName:"".concat(d,"TypePostAuthorMeta"),endpoint:"/search/author-meta",params:{postType:y,postId:k()},label:(0,c.__)("Select an author meta field","photo-block"),placeholder:(0,c.__)("Search for or enter an author meta field","photo-block"),currentSuggestion:w("TypePostAuthorMeta")}),"customField"===w("TypePost")&&React.createElement(ml,{setAttributes:r,attributeName:"".concat(d,"TypePostCustomField"),params:{postType:y,postId:k()},currentSuggestion:w("TypePostCustomField")})))};function bl(){return bl=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);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);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(f," 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(s.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",mc({className:"dlx-photo-block__caption-inner"},rt)))},gt=React.createElement(r.InspectorControls,null,dt),bt="";T(f)||(bt=Qa(h,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&&$e,"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===d?null:K?React.createElement(React.Fragment,null,React.createElement("div",le,vt)):null},save:function(){return React.createElement(r.InnerBlocks.Content,null)}});const kc=window.wp.plugins;function wc(e){return wc="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},wc(e)}var Rc;function Tc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0){var r=o.content.photoAttributes;return Ic(Ic({},e),r)}}break;case"dlxplugins/photo-caption-block":if(void 0!==e.globalStyle&&"none"!==e.globalStyle&&""!==e.globalStyle){var a=(0,u.select)(ka).getGlobalStyleBySlug(e.globalStyle);if(Object.keys(a).length>0){var i=a.content.captionAttributes;return Ic(Ic({},e),i)}}}return e})),(0,p.addAction)("dlx_photo_block_has_loaded","dlx-photo-block-data-image-type",(function(e){(0,kc.getPlugin)("dlx-photo-block-data-image-type")||(0,kc.registerPlugin)("dlx-photo-block-data-image-type",{render:function(){var t=(0,u.useDispatch)(v(e)),n=t.setPhotoMode,o=t.setScreen;return React.createElement(s.Fill,{name:"dlx-photo-block.upload-types"},(function(e){var t=e.setAttributes;return React.createElement(React.Fragment,null,React.createElement(s.Button,{variant:"secondary",icon:React.createElement(D,null),onClick:function(){t({photoMode:"data",screen:"data"}),n("data"),o("data")}},(0,c.__)("Data","photo-block")))}))}})}))})()})(); \ No newline at end of file diff --git a/build/index.js.map b/build/index.js.map deleted file mode 100644 index 5345c0e..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;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,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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BAAO,CAAC,8DAAe;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA,iCAAiC;AACjC,KAAK;AACL;AACA;AACA,qCAAqC;AACrC;AACA,iCAAiC;AACjC,KAAK;AACL;AACA;AACA,qCAAqC;AACrC;AACA,iCAAiC;AACjC,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;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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;;;;ACHa;;AAEb,WAAW,aAAa;AACxB;;;;;;;;;;;;ACHa;;AAEb,WAAW,mBAAmB;AAC9B;;;;;;;;;;;;ACHa;;AAEb,WAAW,iBAAiB;AAC5B;;;;;;;;;;;;ACHa;;AAEb,WAAW,oBAAoB;AAC/B;;;;;;;;;;;;ACHa;;AAEb,WAAW,kBAAkB;AAC7B;;;;;;;;;;;;ACHa;;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;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;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;AAC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C5C,iCAAiC,YAAY;AAC7C,oBAAoB,qCAAqC;AACzD,sBAAsB,YAAY;AAClC,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,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;;AAEA;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;;AAEA;AACA;AACA;AACA;;AAEA,iDAAiD,oCAAoC;;AAErF;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;;AAEA;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;AACT;AACA;AACA;AACA;AACA;;AAEA;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;AACA;;AAEA;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,UAAU;AACV;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;AAC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;AACA;AACA,EAAE;AACF;;AAEA,iBAAiB,mBAAO,CAAC,wDAAa;AACtC,eAAe,mBAAO,CAAC,oDAAW;;AAElC;AACA;AACA,mBAAmB,sBAAsB;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;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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACvC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB,OAAO,UAAU,aAAa;AACjD;;AAEA,oBAAoB,kBAAkB;AACtC;AACA;;AAEA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA,6BAA6B,qBAAqB;AAClD;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,gBAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC3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ACA,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,w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;;;;;;;;;;;;;;;;;AC5EY;;AAEqB;AACO;AACK;AACE;AACK;AACS;AACC;AAChB;AACQ;AACC;AACZ;AACO;AACC;;AAEpD;AACA;AACA,uBAAuB,mEAAW;;AAElC;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA,iEAAe;AACf;AACA;AACA,2BAA2B,6DAAY;AACvC,SAAS,6BAA6B;AACtC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,QAAQ,iDAAK;AACb,UAAU,0DAAQ,0BAA0B,0DAAQ;AACpD,8CAA8C;AAC9C,QAAQ;AACR;AACA,oEAAoE;AACpE,yFAAyF;AACzF;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,kEAAa;;AAElC,8CAA8C,gEAAQ;;AAEtD;AACA;;AAEA;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;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,8DAAY;;AAEjC,4BAA4B,uEAAc,CAAC,iDAAK;;AAEhD,mBAAmB,8DAAQ;;AAE3B,uBAAuB,mEAAc;;AAErC;;AAEA;AACA,iEAAe,KAAK;;;;;;;;;;;;;;;;;ACxFP;;AAEkC;;AAE/C;AACA;AACA;AACA,WAAW,UAAU;AACrB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,yBAAyB,yDAAa;AACtC;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB,CAAC;;AAED;AACA,kDAAkD,YAAY;;AAE9D;AACA;AACA;;AAEA,EAAE,iDAAK;AACP;AACA,GAAG;AACH;AACA,GAAG;;AAEH;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA,iEAAe,UAAU,EAAC;;;;;;;;;;;;;;;;;;ACnGb;;AAEmB;AACsB;;AAEtD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAAS,iDAAK;AACd;;AAEA;AACA;AACA,2BAA2B,mBAAmB;AAC9C;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,MAAM,iDAAK;AACX;AACA;;AAEA;AACA;AACA;;AAEA,OAAO,iDAAK;;AAEZ,MAAM,iDAAK;AACX;AACA;;AAEA,MAAM,iDAAK;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA,uBAAuB,iDAAK;;AAE5B;AACA;AACA;AACA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AAM;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;;;;;;;;;;;;;;;;;;ACtErB;;AAE2C;AACJ;;AAEpD;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACe;AACf,kBAAkB,qEAAa;AAC/B,WAAW,mEAAW;AACtB;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;ACpBa;;AAEkC;AACF;AACD;AACW;AACJ;AACJ;;AAE/C;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc,gEAAa;AAC3B;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,SAAS;AACtB;AACe;AACf;;AAEA,mBAAmB,6DAAY;;AAE/B;AACA,gBAAgB,yDAAa;AAC7B;AACA;AACA;;AAEA;AACA;AACA;;AAEA,kBAAkB,6DAAQ,8BAA8B,0DAAQ;;AAEhE;AACA;;AAEA;AACA,oBAAoB,yDAAa;AACjC;AACA;AACA;AACA;;A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AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,cAAc,0DAAQ;AACtB,UAAU,0DAAQ;AAClB,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iDAAK;AACL;AACA,CAAC;;AAED,iEAAe,QAAQ,EAAC;;;;;;;;;;;;;;;;AC3JX;;AAEb,iEAAe;AACf;AACA;AACA;AACA,CAAC,EAAC;;;;;;;;;;;;;;;;ACNK;;;;;;;;;;;;;;;;ACAM;;AAE4B;;AAEzC;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,WAAW,qBAAqB;AAChC,WAAW,qBAAqB;AAChC;AACA,aAAa;AACb;AACA;AACA;;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;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U,iDAAK;AACf;AACA,QAAQ;AACR;AACA;;AAEA;AACA;;AAEA,0BAA0B,iDAAK;AAC/B;AACA;;AAEA;;AAEA,kBAAkB,iDAAK;AACvB;AACA;;AAEA;AACA;;AAEA,MAAM,iDAAK,yBAAyB,iDAAK;AACzC;;AAEA,IAAI,iDAAK;AACT;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA,iEAAe,cAAc,EAAC;;;;;;;;;;;;;;;;AC9FjB;;AAEb;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,SAAS;AACtB;AACe;AACf;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACda;;AAEqB;;AAElC;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA,aAAa,SAAS;AACtB;AACe;AACf,SAAS,iDAAK;AACd;;;;;;;;;;;;;;;;;;ACba;;AAEqB;AACU;;AAE5C,iEAAe,0DAAQ;;AAEvB;AACA;AACA;AACA;AACA;AACA;;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;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EAAC;;;;;;;;;;;;;;;;;;ACZF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAMA;;;;;;;;;;;;;;;;;;AC9CsC;AACI;;AAE3C,iEAAe;AACf,KAAK,6CAAK;AACV,KAAK,sDAAQ;AACb,CAAC;;;;;;;;;;;;;;;;;ACNY;;AAEwB;;AAErC;;AAEA,OAAO,UAAU;AACjB,OAAO,gBAAgB;;AAEvB;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,SAAS;AACtB;AACA,OAAO,SAAS;;AAEhB;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;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UCxxEA;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;AACN;AACb,CAAC,qC","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/AdvancedSelect/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/DataSelect/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/premium/index.js","webpack://photo-block/./src/screens/Crop/index.js","webpack://photo-block/./src/screens/Data/index.js","webpack://photo-block/./src/screens/DataEdit/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/Functions.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/case-sensitive.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-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/database.js","webpack://photo-block/./node_modules/lucide-react/dist/esm/icons/download.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-key.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/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/layers.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/log-out.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/AdvancedSelect/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/DataSelect/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/Data/editor.scss","webpack://photo-block/./src/screens/DataEdit/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/react-image-crop/dist/ReactCrop.min.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/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\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\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-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-image-border-radius: ${ buildDimensionsCSS( photoBorderRadius, deviceType ) };\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\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} 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-image-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, useState, useRef, useContext } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\n\nimport {\n\tPanelBody,\n\tPanelRow,\n\tRangeControl,\n\tTextControl,\n\tTextareaControl,\n\tButtonGroup,\n\tButton,\n\tToggleControl,\n\tToolbar,\n\tToolbarButton,\n\tToolbarGroup,\n\tToolbarDropdownMenu,\n\tPopover,\n\tPlaceHolder,\n\tMenuGroup,\n\tMenuItem,\n} from '@wordpress/components';\nimport { useDispatch, useSelect, dispatch, select } from '@wordpress/data';\nimport { doAction } from '@wordpress/hooks';\nimport {\n\tInspectorControls,\n\tuseBlockProps,\n\tuseInnerBlocksProps,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { generateUniqueId } from '../../utils/Functions';\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 DataScreen from '../../screens/Data';\nimport DataEditScreen from '../../screens/DataEdit';\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\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),\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 'data':\n\t\t\t\treturn ;\n\t\t\tcase 'data-edit':\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 block = (\n\t\t<>\n\t\t\t
\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],\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 getStyles = ( attributes, deviceType, uniqueId, useClass = false ) => {\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-image: url('${ decodeURIComponent( encodeURIComponent( overlayBackgroundImage.url ) ) } ');\n\t\t\t\t--photo-block-caption-overlay-background-position: ${ escapeEditableHTML( overlayBackgroundImage.backgroundPosition ) };\n\t\t\t\t--photo-block-caption-overlay-background-repeat: ${ escapeEditableHTML( overlayBackgroundImage.backgroundRepeat ) };\n\t\t\t\t--photo-block-caption-overlay-background-size: ${ escapeEditableHTML( overlayBackgroundImage.backgroundSize ) };\n\t\t\t\t--photo-block-caption-overlay-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-opacity-hover: ${ parseFloat( overlayBackgroundImage.backgroundOpacityHover ) };\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 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 getStyles;\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';\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 ] );\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 ${ 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}\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","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\tTextControl,\n\tBaseControl,\n} from '@wordpress/components';\nimport { useInstanceId, useDebounce } from '@wordpress/compose';\nimport { isURL, filterURLForDisplay } from '@wordpress/url';\n\nimport {\n\tSearch,\n\tCornerDownLeft,\n\tX,\n\n} from 'lucide-react';\n\nimport SendCommand from '../../utils/SendCommand';\n\n/**\n * Content Picker for post type data.\n *\n * @param {Object} props Incoming props.\n *\n * @return {React.Component} AdvancedSelectControl component.\n */\nconst AdvancedSelectControl = ( 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\tconst children = props.children;\n\tconst params = props.params;\n\tconst acceptDirectInput = props.acceptDirectInput;\n\tconst currentSelectedSuggestion = props.currentSelectedSuggestion;\n\n\t/**\n\t * Set Unique Instance ID.\n\t */\n\tconst generatedUniqueId = useInstanceId( AdvancedSelectControl, 'photo-block' );\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`post-search-control-${ generatedUniqueId }`\n\t);\n\tconst [ loading, setLoading ] = useState( false );\n\tconst [ dataType, setDataType ] = useState( 'post' ); // Can be post, custom.\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 up effect for getting the selected suggestion and displaying it.\n\t */\n\tuseEffect( () => {\n\t\tif ( false !== currentSelectedSuggestion ) {\n\t\t\tsetCurrentSuggestion( currentSelectedSuggestion );\n\t\t\tsetShowSuggestions( false );\n\t\t}\n\t}, [ currentSelectedSuggestion ] );\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 {string} newValue The value of the input.\n\t */\n\tconst onChange = ( newValue ) => {\n\t\tsetSuggestionValue( newValue );\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 ) {\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\n\t\t\t\t\t// If direct input is allowed, we should add the value as the current suggestion.\n\t\t\t\t\tif ( acceptDirectInput && '' !== suggestionValue ) {\n\t\t\t\t\t\tsetCurrentSuggestion( suggestionValue );\n\t\t\t\t\t\tsetShowSuggestions( false );\n\t\t\t\t\t\tprops.onItemSelect( event, suggestionValue );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdebouncedRequest( event.target.value );\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase TAB: {\n\t\t\t\t\t// If direct input is allowed, we should add the value as the current suggestion.\n\t\t\t\t\tif ( acceptDirectInput && '' !== suggestionValue ) {\n\t\t\t\t\t\tsetCurrentSuggestion( suggestionValue );\n\t\t\t\t\t\tsetShowSuggestions( false );\n\t\t\t\t\t\tprops.onItemSelect( event, suggestionValue );\n\t\t\t\t\t}\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\t// If direct input is allowed, we should add the value as the current suggestion.\n\t\t\t\tif ( acceptDirectInput && '' !== suggestionValue ) {\n\t\t\t\t\tsetCurrentSuggestion( suggestionValue );\n\t\t\t\t\tsetShowSuggestions( false );\n\t\t\t\t\tprops.onItemSelect( event, suggestionValue );\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\tif ( acceptDirectInput && '' !== suggestionValue ) {\n\t\t\t\t\tsetCurrentSuggestion( suggestionValue );\n\t\t\t\t\tsetShowSuggestions( false );\n\t\t\t\t\tprops.onItemSelect( event, suggestionValue );\n\t\t\t\t}\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\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\t...params,\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 && '' !== 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{ props.label }\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{ currentSuggestion }\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\tlabel={ __( 'Clear', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\t\tsetCurrentSuggestion( null );\n\t\t\t\t\t\t\t\t\t\t\tsetSuggestionValue( '' );\n\t\t\t\t\t\t\t\t\t\t\tsetShowSuggestions( false );\n\t\t\t\t\t\t\t\t\t\t\tsetSelectedSuggestion( null );\n\t\t\t\t\t\t\t\t\t\t\tsetSelectedSuggestionIndex( null );\n\t\t\t\t\t\t\t\t\t\t\tsetSuggestions( [] );\n\t\t\t\t\t\t\t\t\t\t\tprops.onItemSelect( null, null );\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{ ( null === currentSuggestion || '' === 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{ props.label }\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{\n\t\t\t\t\t\t\t\t\t( loading ) && (\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
\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={ props.label }\n\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\tsetShowSuggestions( 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{\n\t\t\t\t\t\t\t\t\t( ! loading && isURL( suggestionValue ) ) && (\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\ticonSize={ 18 }\n\t\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\t\tonClick={ ( e ) => {\n\t\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\t\tpermalink: suggestionValue,\n\t\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\t\tslug: '',\n\t\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\t};\n\t\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\t\tprops.onItemSelect( e, suggestionValue );\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\t\n\t\t\t\t{ children( showSuggestions, suggestions, selectedSuggestion ) }\n\t\t\t
\n\t\t\n\t);\n};\n\nAdvancedSelectControl.defaultProps = {\n\tlabel: __( 'Search by ID or title', 'photo-block' ),\n\tplaceholder: __( 'Search by ID or title', 'photo-block' ),\n\tonItemSelect: () => {},\n\tchildren: () => ( <> ),\n\thasInititialFocus: false,\n\tacceptDirectInput: false,\n\titemIcon: <>,\n};\n\nAdvancedSelectControl.propTypes = {\n\trestEndpoint: PropTypes.string.isRequired,\n\trestNonce: PropTypes.string.isRequired,\n\tlabel: PropTypes.string.isRequired,\n\tplaceholder: PropTypes.string.isRequired,\n\tonItemSelect: PropTypes.func.isRequired,\n\tchildren: PropTypes.func.isRequired,\n\thasInititialFocus: PropTypes.bool.isRequired,\n\tacceptDirectInput: PropTypes.bool,\n\titemIcon: PropTypes.element.isRequired,\n};\n\nexport default AdvancedSelectControl;\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( newColor );\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 {\n\tuseState,\n} from '@wordpress/element';\nimport {\n\tSelectControl,\n\tButton,\n} from '@wordpress/components';\nimport { __, sprintf } from '@wordpress/i18n';\nimport {\n\tFileKey,\n\tLink2,\n\tFileText,\n\tFile,\n} from 'lucide-react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport { useSelect } from '@wordpress/data';\nimport AdvancedSelectControl from '../../components/AdvancedSelect';\nimport { blockStore } from '../../store';\n\nexport const MetaFieldControl = ( props ) => {\n\tconst { setAttributes, attributeName, endpoint, params, label, placeholder, currentSuggestion, acceptDirectInput } = props;\n\n\tconst [ currentMetaFieldSuggestion, setCurrentMetaFieldSuggestion ] = useState( currentSuggestion );\n\n\treturn (\n\t\t<>\n\t\t\t }\n\t\t\t\tparams={ params }\n\t\t\t\tsavedValue={ '' }\n\t\t\t\tplaceholder={ placeholder }\n\t\t\t\tlabel={ label }\n\t\t\t\tcurrentSelectedSuggestion={ currentMetaFieldSuggestion }\n\t\t\t\tonItemSelect={ ( event, suggestionValue ) => {\n\t\t\t\t\tif ( null === suggestionValue ) {\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t[ attributeName ]: '',\n\t\t\t\t\t\t} );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t[ attributeName ]: suggestionValue,\n\t\t\t\t\t\t} );\n\t\t\t\t\t}\n\t\t\t\t} }\n\t\t\t\tacceptDirectInput={ acceptDirectInput }\n\t\t\t>\n\t\t\t\t{ ( showSuggestions, suggestions, selectedSuggestion ) => {\n\t\t\t\t\tif ( showSuggestions && suggestions.length > 0 ) {\n\t\t\t\t\t\t// Render the suggestions as button items.\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{ suggestions.map( ( suggestion, index ) => {\n\t\t\t\t\t\t\t\t\tconst isSelected = selectedSuggestion === index;\n\t\t\t\t\t\t\t\t\tconst suggestionClasses = classnames(\n\t\t\t\t\t\t\t\t\t\t'photo-block__post-suggestion',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t'is-selected': isSelected,\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\treturn (\n\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\tsetCurrentMetaFieldSuggestion( suggestion );\n\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[ attributeName ]: suggestion,\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\ticon={ }\n\t\t\t\t\t\t\t\t\t\t\ticonSize={ 2 }\n\t\t\t\t\t\t\t\t\t\t\ticonPosition=\"left\"\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{ suggestion }\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\treturn <>;\n\t\t\t\t} }\n\t\t\t\n\t\t\n\t);\n};\n\nexport const DataSelect = ( props ) => {\n\tconst { attributes, setAttributes, context, title, prefix, blockUniqueId } = props;\n\n\tconst [ postTypeSuggestion, setPostTypeSuggestion ] = useState( attributes[ `${ prefix }PostTitle` ] );\n\tconst {\n\t\tdataSource,\n\t\tdataPostType,\n\t\tdataPostId,\n\t} = attributes;\n\n\t// Get current block data.\n\tconst {\n\t\tinQueryLoop,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\tinQueryLoop: select( blockStore( blockUniqueId ) ).inQueryLoop(),\n\t\t};\n\t} );\n\n\t// Get query loop vars.\n\tconst { postId } = context;\n\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\t// If data type is current post, get the current post ID.\n\t\tif ( 'currentPost' === dataSource ) {\n\t\t\t// Determine if we're in a query block.\n\t\t\tif ( inQueryLoop ) {\n\t\t\t\tcurrentPostId = postId;\n\t\t\t} else {\n\t\t\t\tcurrentPostId = wp.data.select( 'core/editor' ).getCurrentPostId();\n\t\t\t}\n\t\t\treturn currentPostId;\n\t\t}\n\t\t// If data type is post type, get the post ID from the attribute.\n\t\tif ( 'postType' === dataSource && '' !== dataPostId ) {\n\t\t\treturn dataPostId;\n\t\t}\n\t\treturn currentPostId;\n\t};\n\n\t/**\n\t * Get a post type label.\n\t *\n\t * @param {string} postTypeValue The post type.\n\t * @return {string} The post type label.\n\t */\n\tconst getPostTypeLabel = ( postTypeValue ) => {\n\t\tlet postTypeLabel = '';\n\t\tphotoBlock.postTypes.forEach( ( postTypeOption ) => {\n\t\t\tif ( postTypeOption.value === postTypeValue ) {\n\t\t\t\tpostTypeLabel = postTypeOption?.singular ?? postTypeOption.label;\n\t\t\t}\n\t\t} );\n\t\treturn postTypeLabel;\n\t};\n\n\t/**\n\t * Get an attribute based on prefix and source.\n\t *\n\t * @param {string} source The source variable.\n\t * @return {string} The attribute.\n\t */\n\tconst getAttribute = ( source ) => {\n\t\tlet attribute = null;\n\n\t\t// If prefix and source are in attributes, return value.\n\t\tif ( attributes[ `${ prefix }${ source }` ] ) {\n\t\t\tattribute = attributes[ `${ prefix }${ source }` ];\n\t\t}\n\t\treturn attribute;\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t{\n\t\t\t\t'' !== title && (\n\t\t\t\t\t

{ title }

\n\t\t\t\t)\n\t\t\t}\n\t\t\t {\n\t\t\t\t\tsetAttributes( { [ `${ prefix }Source` ]: source } );\n\t\t\t\t} }\n\t\t\t\thelp={ __( 'Select where the alt text should come from.', 'photo-block' ) }\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\t{\n\t\t\t\t( getAttribute( 'Source' ) === 'postType' ) && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { [ `${ prefix }PostType` ]: value } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\toptions={ photoBlock.postTypes }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\tparams={ {\n\t\t\t\t\t\t\t\tpostType: getAttribute( 'PostType' ),\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tsavedValue={ '' }\n\t\t\t\t\t\t\tplaceholder={ __( 'Search by ID or title', 'photo-block' ) }\n\t\t\t\t\t\t\tlabel={ sprintf(\n\t\t\t\t\t\t\t\t/* Translators: %s: post type label. */\n\t\t\t\t\t\t\t\t__( 'Select a %s', 'photo-block' ),\n\t\t\t\t\t\t\t\tgetPostTypeLabel( getAttribute( 'PostType' ) )\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\tcurrentSelectedSuggestion={ postTypeSuggestion }\n\t\t\t\t\t\t\tonItemSelect={ ( event, suggestionValue ) => {\n\t\t\t\t\t\t\t\tif ( null === suggestionValue ) {\n\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\t[ `${ prefix }PostId` ]: '',\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\t{ ( showSuggestions, suggestions, selectedSuggestion ) => {\n\t\t\t\t\t\t\t\tif ( showSuggestions && suggestions.length > 0 ) {\n\t\t\t\t\t\t\t\t\t// Render the suggestions as button items.\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t{ suggestions.map( ( suggestion, index ) => {\n\t\t\t\t\t\t\t\t\t\t\t\tconst isSelected = selectedSuggestion === index;\n\t\t\t\t\t\t\t\t\t\t\t\tconst suggestionClasses = classnames(\n\t\t\t\t\t\t\t\t\t\t\t\t\t'photo-block__post-suggestion',\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'is-selected': isSelected,\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\treturn (\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\tsetPostTypeSuggestion(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsuggestion.label\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\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ `${ prefix }PostId` ]: suggestion.value.toString(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ `${ prefix }PostTitle` ]: suggestion.label,\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\ticon={\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'post' === suggestion.type ? (\n\t\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\t) : (\n\t\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\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\ticonSize={ 2 }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticonPosition=\"left\"\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\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\t\t{ suggestion.label }\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\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ suggestion.permalink }\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\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\treturn <>;\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( getAttribute( 'PostId' ) !== '' ) && (\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( { [ `${ prefix }PostTypeSource` ]: type } );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\thelp={ __( 'Select the type of data to use for the alt text.', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\toptions={ [\n\t\t\t\t\t\t\t\t\t\t\t/* can be title, postAuthorName, postExcerpt, customField\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{ label: __( 'Post Title', 'photo-block' ), value: 'title' },\n\t\t\t\t\t\t\t\t\t\t\t{ label: __( 'Post Author Name', 'photo-block' ), value: 'postAuthorName' },\n\t\t\t\t\t\t\t\t\t\t\t{ label: __( 'Post Author Meta', 'photo-block' ), value: 'postAuthorMeta' },\n\t\t\t\t\t\t\t\t\t\t\t{ label: __( 'Post Excerpt', 'photo-block' ), value: 'postExcerpt' },\n\t\t\t\t\t\t\t\t\t\t\t{ label: __( 'Custom Field', 'photo-block' ), value: 'customField' },\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( getAttribute( 'PostTypeSource' ) === 'postAuthorMeta' ) && (\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{\n\t\t\t\t\t\t\t\t\t\t( getAttribute( 'PostTypeSource' ) === 'customField' ) && (\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\t{\n\t\t\t\t( getAttribute( 'Source' ) === 'currentImage' ) && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { [ `${ prefix }Type` ]: type } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\thelp={ __( 'Select the type of data to use for the alt text.', 'photo-block' ) }\n\t\t\t\t\t\t\toptions={ [\n\t\t\t\t\t\t\t\t{ label: __( 'Alt Text', 'photo-block' ), value: 'altText' },\n\t\t\t\t\t\t\t\t{ label: __( 'Caption', 'photo-block' ), value: 'caption' },\n\t\t\t\t\t\t\t\t{ label: __( 'Image Title', 'photo-block' ), value: 'imageTitle' },\n\t\t\t\t\t\t\t\t{ label: __( 'Custom Field', 'photo-block' ), value: 'customField' },\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( getAttribute( 'Type' ) === 'customField' ) && (\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{\n\t\t\t\t( getAttribute( 'Source' ) === 'currentPost' ) && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { [ `${ prefix }TypePost` ]: type } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\thelp={ __( 'Select the type of data to use for the alt text.', 'photo-block' ) }\n\t\t\t\t\t\t\toptions={ [\n\t\t\t\t\t\t\t\t/* can be title, postAuthorName, postExcerpt, customField\n\t\t\t\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\t{ label: __( 'Post Title', 'photo-block' ), value: 'title' },\n\t\t\t\t\t\t\t\t{ label: __( 'Post Author Name', 'photo-block' ), value: 'postAuthorName' },\n\t\t\t\t\t\t\t\t{ label: __( 'Post Author Meta', 'photo-block' ), value: 'postAuthorMeta' },\n\t\t\t\t\t\t\t\t{ label: __( 'Post Excerpt', 'photo-block' ), value: 'postExcerpt' },\n\t\t\t\t\t\t\t\t{ label: __( 'Custom Field', 'photo-block' ), value: 'customField' },\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( getAttribute( 'TypePost' ) === 'postAuthorMeta' ) && (\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( getAttribute( 'TypePost' ) === 'customField' ) && (\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\nMetaFieldControl.propTypes = {\n\tsetAttributes: PropTypes.func.isRequired,\n\tlabel: PropTypes.string.isRequired,\n\tplaceholder: PropTypes.string,\n\tacceptDirectInput: PropTypes.bool,\n\tattributeName: PropTypes.string.isRequired,\n\tendpoint: PropTypes.string,\n};\n\nMetaFieldControl.defaultProps = {\n\tlabel: __( 'Select a Custom Field', 'photo-block' ),\n\tplaceholder: __( 'Search by ID or title', 'photo-block' ),\n\tacceptDirectInput: true,\n\tendpoint: '/search/custom-fields',\n};\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// import PresetButtonEdit from './PresetButtonEdit';\n// import CustomPresetEditModal from './CustomPresetEditModal';\n// import CustomPresetDeleteModal from './CustomPresetDeleteModal';\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, clientId } = props;\n\tconst { uniqueId, globalStyle } = 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\tsetDefaultPreset,\n\t} = useContext( CustomPresetsContext );\n\n\tconst {\n\t\tgetGlobalStyles,\n\t\tgetGlobalStyleBySlug,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\tgetGlobalStyles: select( globalStylesStore ).getGlobalStyles,\n\t\t\tgetGlobalStyleBySlug: select( globalStylesStore ).getGlobalStyleBySlug,\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 { 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\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 && (\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 && ! 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, { useRef, useEffect, 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 { useForm, Controller, useWatch, 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';\nimport { blockStore } from '../../store';\n\nconst canSaveDefaultPresets = photoBlockUser.canSetDefaultPresets;\n\nconst GlobalStylesSaveModal = ( props ) => {\n\tconst [ presetSaveType, setPresetSaveType ] = useState( 'new' );\n\tconst [ isSaving, setIsSaving ] = useState( false );\n\tconst { title, attributes, setAttributes, clientId } = props;\n\n\tconst { savedPresets, setSavedPresets, savingPreset, setSavingPreset } =\n\t\tuseContext( CustomPresetsContext );\n\n\tconst {\n\t\tsetGlobalStyle,\n\t} = useDispatch( globalStylesStore );\n\n\tconst {\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\tconst { setCaptionPosition } = useDispatch( blockEditorStore );\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};\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\tconst children = select( 'core/block-editor' ).getBlocksByClientId( clientId )[ 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( clientId );\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\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\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 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} )\n\t\t\t.catch( ( error ) => {\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 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\tsetGlobalStyle( data, data.slug );\n\t\t\t\tsetIsSaving( false );\n\t\t\t\tsetSavingPreset( false );\n\n\t\t\t\tgenerateGlobalStyle();\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\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\tmaybeRefreshBlocks( newData );\n\t\t\t\tsetGlobalStyle( newData, newData.slug );\n\t\t\t\tsetIsSaving( false );\n\t\t\t\tsetSavingPreset( false );\n\t\t\t\tgenerateGlobalStyle();\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\t\t\tif ( globalStyle !== 'none' && '' !== globalStyle ) {\n\t\t\t\tupdateBlockAttributes( block.clientId, {\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 = block.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>\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\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' );\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 { 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\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\tprops.setAttributes( {\n\t\t\t\t\t\tglobalStyle: globalStyle.slug,\n\t\t\t\t\t\thasCaption,\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 && captionAttributes ) {\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 && captionAttributes ) {\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 { 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\tconst styles = getStyles( photoAttributes, 'desktop', 'photo-block-preview' );\n\n\tconst {\n\t\tcssGramFilter,\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\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{ 'overlay' === captionPosition && (\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\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 { Trash } from 'lucide-react';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport globalStylesStore from '../../store/global-styles';\nimport { blockStore } from '../../store';\nimport GlobalStylesButtonPreview from './ButtonPreview';\n\nconst GlobalStylesPicker = ( props ) => {\n\tconst [ isRemoveModalOpen, setIsRemoveModalOpen ] = useState( false );\n\tconst [ isKeepStyleSettings, setIsKeepStyleSettings ] = 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', '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\tsetIsKeepStyleSettings( ! isKeepStyleSettings );\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\tif ( isKeepStyleSettings ) {\n\t\t\t\t\t\t\t\t\t\tif ( hasGlobalStyle( props.attributes.globalStyle ) ) {\n\t\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\t// Reset global style in attributes.\n\t\t\t\t\t\t\t\t\t\t\tconst newGlobalStyle = {\n\t\t\t\t\t\t\t\t\t\t\t\tglobalStyle: 'none',\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tconst photoAttributes = {\n\t\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\t...newGlobalStyle,\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tconst captionAttributes = {\n\t\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\t...newGlobalStyle,\n\t\t\t\t\t\t\t\t\t\t\t};\n\n\t\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\t\tupdateBlockAttributes( props.clientId, photoAttributes );\n\n\t\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\t\tconst block = getBlock( props.clientId );\n\t\t\t\t\t\t\t\t\t\t\tconst captionInnerBlocks = block?.innerBlocks;\n\t\t\t\t\t\t\t\t\t\t\tif ( captionInnerBlocks.length > 0 ) {\n\t\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\t// Need to apply global styles to the caption.\n\t\t\t\t\t\t\t\t\t\t\t\tupdateBlockAttributes( captionBlockClientId, captionAttributes );\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} else {\n\t\t\t\t\t\t\t\t\t\tprops.setAttributes( {\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\t// Updatge caption block if any.\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, {\n\t\t\t\t\t\t\t\t\t\t\t\tglobalStyle: 'none',\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\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\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';\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\tconst { mediaLinkType, mediaLinkTitle, mediaLinkUrl, lightboxCaption, lightboxEnabled, lightboxShowCaption } = 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\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\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\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\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 && (\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\tconst stored = localStorage.getItem( `photo-block-panel-body-${ uniqueId }` );\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\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 CustomAttributesControl from '../../components/CustomAttributes';\nimport GlobalStyles from '../GlobalStyles';\nconst canSavePresets = photoBlockUser.canSavePresets;\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\tconst stylesInspectorControls = (\n\t\t<>\n\t\t\t\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( { htmlAnchor: value } );\n\t\t\t\t\t} }\n\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/>\n\t\t\t\n\t\t\t\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( { figureCSSClasses: value } );\n\t\t\t\t\t} }\n\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/>\n\t\t\t\n\t\t\t\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( { imageCSSClasses: value } );\n\t\t\t\t\t} }\n\t\t\t\t\thelp={ __( 'Add CSS class(es) directly to the image tag.', 'photo-block' ) }\n\t\t\t\t/>\n\t\t\t\n\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\tsetAttributes( { skipLazyLoading: value } );\n\t\t\t\t\t} }\n\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/>\n\t\t\t\n\t\t\t\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( { imageProtectionEnabled: value } );\n\t\t\t\t\t} }\n\t\t\t\t\thelp={ __( 'Prevent this photo from being downloaded by using the right+click button.', 'photo-block' ) }\n\t\t\t\t/>\n\t\t\t\n\t\t\t\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( { hideOnMobile: value } );\n\t\t\t\t\t} }\n\t\t\t\t\thelp={ __( 'Hide this photo on mobile devices.', 'photo-block' ) }\n\t\t\t\t/>\n\t\t\t\n\t\t\t\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( { hideOnTablet: value } );\n\t\t\t\t\t} }\n\t\t\t\t\thelp={ __( 'Hide this photo on tablet devices.', 'photo-block' ) }\n\t\t\t\t/>\n\t\t\t\n\t\t\t\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( { hideOnDesktop: value } );\n\t\t\t\t\t} }\n\t\t\t\t\thelp={ __( 'Hide this photo on desktop devices.', 'photo-block' ) }\n\t\t\t\t/>\n\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\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} from '@wordpress/components';\nimport { InspectorControls } from '@wordpress/block-editor';\nimport { __ } from '@wordpress/i18n';\nimport {\n\tShrink,\n\tPalette,\n\tWand2,\n\tMaximize,\n} from 'lucide-react';\nimport PropTypes from 'prop-types';\n\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';\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\tcontainerHeight,\n\t\tcontainerMaxWidth,\n\t\tcontainerMaxHeight,\n\t\tcontainerMinWidth,\n\t\tcontainerMinHeight,\n\t\tphotoPaddingSize,\n\t\tphotoMarginSize,\n\t\tphotoBorderRadius,\n\t\tphotoBorder,\n\t\tcontainerWidth,\n\t} = attributes;\n\n\tconst [ deviceType ] = useDeviceType( 'Desktop' );\n\n\tconst stylesInspectorControls = (\n\t\t<>\n\t\t\t }\n\t\t\t\tclassName=\"photo-block__inspector-panel\"\n\t\t\t\tid=\"photo-block__photo-image-styles\"\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\tsetAttributes( { photoBackgroundColor: newValue } );\n\t\t\t\t\t} }\n\t\t\t\t\tlabel={ __( 'Background Color', 'highlight-and-share' ) }\n\t\t\t\t\tdefaultColors={ photoBlock.palette }\n\t\t\t\t\tdefaultColor={ 'transparent' }\n\t\t\t\t\tslug={ 'background-color-photo' }\n\t\t\t\t/>\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( { photoOpacity: newOpacity } );\n\t\t\t\t\t} }\n\t\t\t\t\tmin={ 0 }\n\t\t\t\t\tmax={ 1 }\n\t\t\t\t\tstep={ 0.01 }\n\t\t\t\t/>\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( { photoBlur: newBlur } );\n\t\t\t\t\t} }\n\t\t\t\t\tmin={ 0 }\n\t\t\t\t\tmax={ 10 }\n\t\t\t\t\tstep={ 0.01 }\n\t\t\t\t/>\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\tphotoDropShadow: {\n\t\t\t\t\t\t\t\t...photoDropShadow,\n\t\t\t\t\t\t\t\tenabled: newDropShadowEnabled,\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{ photoDropShadow.enabled && (\n\t\t\t\t\t\n\t\t\t\t) }\n\t\t\t\n\t\t\t }\n\t\t\t\tid=\"photo-block__photo-css-gram\"\n\t\t\t\tuniqueId={ uniqueId }\n\t\t\t\tinitialOpen={ false }\n\t\t\t\tscrollAfterOpen={ false }\n\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\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( { photoPaddingSize: 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\tallowNegatives={ false }\n\t\t\t\t/>\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( { photoMarginSize: 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( { photoBorder: 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\tallowNegatives={ false }\n\t\t\t\t/>\n\t\t\t\t {\n\t\t\t\t\t\tsetAttributes( { photoBorderRadius: 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\tallowNegatives={ false }\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( { photoObjectFit: newObjectFit } );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\thelp={ __(\n\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'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{ 'none' !== photoObjectFit && (\n\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetAttributes( { photoObjectPosition: newObjectPosition } );\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'How the image should be positioned inside the container.',\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\n\t\t\t\t) }\n\t\t\t\t{ ( 'none' !== photoObjectFit && 'custom' === photoObjectPosition ) && (\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\tphotoObjectPositionCustom: newObjectPositionCustom,\n\t\t\t\t\t\t\t\t} );\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'Enter a custom object position in CSS format.',\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\n\t\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\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\t }\n\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\tphotoMode: 'data',\n\t\t\t\t\t\t\tscreen: 'data',\n\t\t\t\t\t\t} );\n\t\t\t\t\t\tsetPhotoMode( 'data' );\n\t\t\t\t\t\tsetScreen( 'data' );\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Data', 'photo-block' ) }\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 { useDispatch, useSelect, select, dispatch } from '@wordpress/data';\nimport getStyles from '../../blocks/photo-block/block-styles';\nimport getStylesCaption from '../../blocks/photo-caption-block/block-styles';\n\nconst globalStyles = photoBlock?.globalStyles || [];\n\nimport globalStylesStore from '../../store/global-styles';\nimport { blockStore } from '../../store';\n\nregisterPlugin(\n\t'photo-block-global-styles',\n\t{\n\t\trender: () => {\n\n\t\t\tconst {\n\t\t\t\tgetGlobalStyleBySlug,\n\t\t\t} = useSelect( ( select ) => {\n\t\t\t\treturn {\n\t\t\t\t\tgetGlobalStyleBySlug: select( globalStylesStore ).getGlobalStyleBySlug,\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\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} else {\n\t\t\t\t\tnewAttributes = maybeGlobalStyle.content.photoAttributes;\n\t\t\t\t}\n\n\t\t\t\t// Overwrite attributes with new ones.\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\tglobalStyles,\n\t\t\t} = useSelect( ( select ) => {\n\t\t\t\treturn {\n\t\t\t\t\tglobalStyles: select( globalStylesStore ).getGlobalStyles(),\n\t\t\t\t};\n\t\t\t} );\n\n\t\t\tuseMemo( () => {\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\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}, [ globalStyles ] );\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\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 'blocks.getBlockAttributes',\n 'dlxplugins/photo-block',\n returnBlockAttributes\n);\n","import { registerPlugin, getPlugin } from '@wordpress/plugins';\nimport { useDispatch } from '@wordpress/data';\nimport { Database } from 'lucide-react';\nimport { addAction } from '@wordpress/hooks';\n\nimport { Fill, Button } from '@wordpress/components';\n\nimport { __ } from '@wordpress/i18n';\n\nimport { blockStore } from '../store/index';\n\n// Run after block is initialized.\naddAction(\n\t'dlx_photo_block_has_loaded',\n\t'dlx-photo-block-data-image-type',\n\t( uniqueId ) => {\n\t\tconst dataPlugin = getPlugin( 'dlx-photo-block-data-image-type' );\n\n\t\t// If already defined, return.\n\t\tif ( dataPlugin ) {\n\t\t\treturn;\n\t\t}\n\t\tregisterPlugin(\n\t\t\t'dlx-photo-block-data-image-type',\n\t\t\t{\n\t\t\t\trender: () => {\n\t\t\t\t\tconst {\n\t\t\t\t\t\tsetPhotoMode,\n\t\t\t\t\t\tsetScreen,\n\t\t\t\t\t// eslint-disable-next-line react-hooks/rules-of-hooks\n\t\t\t\t\t} = useDispatch( blockStore( uniqueId ) );\n\n\t\t\t\t\treturn (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{ ( { setAttributes } ) => {\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\tonClick={ () => {\n\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\tphotoMode: 'data',\n\t\t\t\t\t\t\t\t\t\t\t\t\tscreen: 'data',\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\tsetPhotoMode( 'data' );\n\t\t\t\t\t\t\t\t\t\t\t\tsetScreen( 'data' );\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\t{ __( 'Data', '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} }\n\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\n// registerPlugin(\n// \t'dlx-photo-block-data-image-type',\n// \t{\n// \t\trender: () => {\n// \t\t\tconst {\n// \t\t\t\tsetPhotoMode,\n// \t\t\t\tsetScreen,\n// \t\t\t// eslint-disable-next-line react-hooks/rules-of-hooks\n// \t\t\t} = useDispatch( blockStore( uniqueId ) );\n\n// \t\t\treturn (\n// \t\t\t\t\n// \t\t\t\t\t{ ( { setAttributes } ) => {\n// \t\t\t\t\t\treturn (\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\tonClick={ () => {\n// \t\t\t\t\t\t\t\t\t\tsetAttributes( {\n// \t\t\t\t\t\t\t\t\t\t\tphotoMode: 'data',\n// \t\t\t\t\t\t\t\t\t\t\tscreen: 'data',\n// \t\t\t\t\t\t\t\t\t\t} );\n// \t\t\t\t\t\t\t\t\t\tsetPhotoMode( 'data' );\n// \t\t\t\t\t\t\t\t\t\tsetScreen( 'data' );\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{ __( 'Data', '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\n// \t\t\t\t\n// \t\t\t);\n// \t\t},\n// \t}\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\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\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\tconst cropAspectRatio = aspectRatioWidth / aspectRatioHeight;\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\tuseState,\n\tforwardRef,\n} from '@wordpress/element';\n// eslint-disable-next-line @wordpress/no-unsafe-wp-apis\nimport {\n\tToolbarGroup,\n\tToolbarButton,\n\tSelectControl,\n\tButton,\n\t// eslint-disable-next-line @wordpress/no-unsafe-wp-apis\n\t__experimentalHeading as Heading,\n\tBaseControl,\n\tCard,\n\tCardHeader,\n\tCardBody,\n\tCardFooter,\n} from '@wordpress/components';\nimport { __, sprintf } from '@wordpress/i18n';\nimport {\n\tBlockControls,\n} from '@wordpress/block-editor';\nimport { useDispatch } from '@wordpress/data';\nimport { LogOut, Link2, File, FileText, FileKey, Image } from 'lucide-react';\nimport classNames from 'classnames';\nimport AdvancedSelectControl from '../../components/AdvancedSelect';\nimport { blockStore } from '../../store';\n\n// Image Sizes.\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 DataScreen = forwardRef( ( props, ref ) => {\n\tconst { attributes, setAttributes, blockUniqueId } = props;\n\tconst {\n\t\tdataSource,\n\t\tdataImageSource,\n\t\tdataImageSourceCustomField,\n\t\tdataImageSourceAuthorMeta,\n\t\tdataPostType,\n\t\tdataPostTitle,\n\t\tdataPostId,\n\t\tdataFallbackImage,\n\t\tdataHasFallbackImage,\n\t\tdataFallbackImageSize,\n\t\tdataScreen, /* can be `initial` or `edit` */\n\t} = attributes;\n\n\t// Post type suggestion for selecting a post.\n\tconst [ currentPostTypePostSuggestion, setCurrentPostTypePostSuggestion ] =\n\t\tuseState( dataPostTitle ? dataPostTitle : false );\n\n\t// Custom field suggestion for selecting an image source.\n\tconst [ currentCustomFieldSuggestion, setCurrentCustomFieldSuggestion ] =\n\t\tuseState( dataImageSourceCustomField ? dataImageSourceCustomField : false );\n\n\t// Author meta suggestion for selecting an image source.\n\tconst [ currentAuthorMetaSuggestion, setCurrentAuthorMetaSuggestion ] = useState(\n\t\tdataImageSourceAuthorMeta ? dataImageSourceAuthorMeta : false );\n\n\t// Load in setters.\n\tconst {\n\t\tsetImageFile,\n\t\tsetPhotoMode,\n\t\tsetScreen,\n\t} = useDispatch( blockStore( blockUniqueId ) );\n\n\tconst localToolbar = (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t }\n\t\t\t\t\t\tlabel={ __( 'Exit Data Mode', 'photo-block' ) }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\tsetAttributes( { photoMode: 'none', screen: 'initial' } );\n\t\t\t\t\t\t\tsetPhotoMode( 'none' );\n\t\t\t\t\t\t\tsetScreen( 'initial' );\n\t\t\t\t\t\t} }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Exit Data Mode', 'photo-block' ) }\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 post type label.\n\t *\n\t * @param {string} postType The post type.\n\t * @return {string} The post type label.\n\t */\n\tconst getPostTypeLabel = ( postType ) => {\n\t\tlet postTypeLabel = '';\n\t\tphotoBlock.postTypes.forEach( ( postTypeOption ) => {\n\t\t\tif ( postTypeOption.value === postType ) {\n\t\t\t\tpostTypeLabel = postTypeOption?.singular ?? postTypeOption.label;\n\t\t\t}\n\t\t} );\n\t\treturn postTypeLabel;\n\t};\n\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 postId = 0;\n\t\t// If data type is current post, get the current post ID.\n\t\tif ( 'currentPost' === dataSource ) {\n\t\t\t// Get post ID from block editor.\n\t\t\tpostId = wp.data.select( 'core/editor' ).getCurrentPostId();\n\t\t\treturn postId;\n\t\t}\n\t\t// If data type is post type, get the post ID from the attribute.\n\t\tif ( 'postType' === dataSource && '' !== dataPostId ) {\n\t\t\tpostId = dataPostId;\n\t\t\treturn postId;\n\t\t}\n\t\treturn postId;\n\t};\n\n\t/**\n\t * Determine if the data apply button should be disabled.\n\t *\n\t * @return {boolean} Whether the button should be disabled.\n\t */\n\tconst isApplyButtonDisabled = () => {\n\t\t// If data type is current post, get the current post ID.\n\t\tif ( 'postType' === dataSource ) {\n\t\t\tif ( '' === dataPostType ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif ( '' === dataPostId ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tif ( 'customField' === dataImageSource ) {\n\t\t\tif ( '' === dataImageSourceCustomField ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t{ localToolbar }\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{ __( 'Dynamic Image Data', 'photo-block' ) }\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( { dataSource: value } );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\toptions={ [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tlabel: __( 'Current post', 'photo-block' ),\n\t\t\t\t\t\t\t\t\t\tvalue: 'currentPost',\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{ label: __( 'Post type', 'photo-block' ), value: 'postType' },\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{ 'postType' === dataSource && (\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( { dataPostType: value } );\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\toptions={ photoBlock.postTypes }\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\tparams={ {\n\t\t\t\t\t\t\t\t\t\t\tpostType: dataPostType,\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\tsavedValue={ '' }\n\t\t\t\t\t\t\t\t\t\tplaceholder={ __( 'Search by ID or title', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\tlabel={ sprintf(\n\t\t\t\t\t\t\t\t\t\t\t/* Translators: %s: post type label. */\n\t\t\t\t\t\t\t\t\t\t\t__( 'Select a %s', 'photo-block' ),\n\t\t\t\t\t\t\t\t\t\t\tgetPostTypeLabel( dataPostType )\n\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\tcurrentSelectedSuggestion={ currentPostTypePostSuggestion }\n\t\t\t\t\t\t\t\t\t\tonItemSelect={ ( event, suggestionValue ) => {\n\t\t\t\t\t\t\t\t\t\t\tif ( null === suggestionValue ) {\n\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\tdataPostId: '',\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\t{ ( showSuggestions, suggestions, selectedSuggestion ) => {\n\t\t\t\t\t\t\t\t\t\t\tif ( showSuggestions && suggestions.length > 0 ) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Render the suggestions as button items.\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\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{ suggestions.map( ( suggestion, index ) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst isSelected = selectedSuggestion === index;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst suggestionClasses = classNames(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'photo-block__post-suggestion',\n\t\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\t\t\t'is-selected': isSelected,\n\t\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\t);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\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\t\t\t\tsetCurrentPostTypePostSuggestion(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsuggestion.label\n\t\t\t\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\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdataPostId: suggestion.value.toString(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdataPostTitle: suggestion.label,\n\t\t\t\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\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'post' === suggestion.type ? (\n\t\t\t\t\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\t\t\t\t) : (\n\t\t\t\t\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\t\t\t\t)\n\t\t\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\t\t\ticonSize={ 2 }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticonPosition=\"left\"\n\t\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\t\t\t\n\t\t\t\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\t\t\t\t\t{ suggestion.label }\n\t\t\t\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\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ suggestion.permalink }\n\t\t\t\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\t\t\t\n\t\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\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
\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\treturn <>;\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\tsetAttributes( { dataImageSource: value } );\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\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\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\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{ 'customField' === dataImageSource && (\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 ( null === suggestionValue ) {\n\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\tdataImageSourceCustomField: '',\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} else {\n\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\tdataImageSourceCustomField: suggestionValue,\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\tplaceholder={ __(\n\t\t\t\t\t\t\t\t\t\t\t'Search for or enter a custom field',\n\t\t\t\t\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\tlabel={ __( 'Select a Custom Field', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\tcurrentSelectedSuggestion={ currentCustomFieldSuggestion }\n\t\t\t\t\t\t\t\t\t\tacceptDirectInput={ true }\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{ ( showSuggestions, suggestions, selectedSuggestion ) => {\n\t\t\t\t\t\t\t\t\t\t\tif ( showSuggestions && suggestions.length > 0 ) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Render the suggestions as button items.\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\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{ suggestions.map( ( suggestion, index ) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst isSelected = selectedSuggestion === index;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst suggestionClasses = classNames(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'photo-block__post-suggestion',\n\t\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\t\t\t'is-selected': isSelected,\n\t\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\t);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\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\t\t\t\tsetCurrentCustomFieldSuggestion( suggestion );\n\t\t\t\t\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\t\t\t\t\tdataImageSourceCustomField: suggestion,\n\t\t\t\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\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={ }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticonSize={ 2 }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticonPosition=\"left\"\n\t\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\t\t\t\n\t\t\t\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\t\t\t\t\t{ suggestion }\n\t\t\t\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\t\t\t\n\t\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\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
\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\treturn <>;\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{ 'authorMeta' === dataImageSource && (\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 ( null === suggestionValue ) {\n\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\tdataImageSourceAuthorMeta: '',\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} else {\n\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\tdataImageSourceAuthorMeta: suggestionValue,\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\tplaceholder={ __(\n\t\t\t\t\t\t\t\t\t\t\t'Search for or enter an author meta field',\n\t\t\t\t\t\t\t\t\t\t\t'photo-block'\n\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\tlabel={ __( 'Select an author meta field', 'photo-block' ) }\n\t\t\t\t\t\t\t\t\t\tcurrentSelectedSuggestion={ currentAuthorMetaSuggestion }\n\t\t\t\t\t\t\t\t\t\tacceptDirectInput={ true }\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{ ( showSuggestions, suggestions, selectedSuggestion ) => {\n\t\t\t\t\t\t\t\t\t\t\tif ( showSuggestions && suggestions.length > 0 ) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Render the suggestions as button items.\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\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{ suggestions.map( ( suggestion, index ) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst isSelected = selectedSuggestion === index;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst suggestionClasses = classNames(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'photo-block__post-suggestion',\n\t\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\t\t\t'is-selected': isSelected,\n\t\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\t);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\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\t\t\t\tsetCurrentAuthorMetaSuggestion( suggestion );\n\t\t\t\t\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\t\t\t\t\tdataImageSourceAuthorMeta: suggestion,\n\t\t\t\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\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={ }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticonSize={ 2 }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticonPosition=\"left\"\n\t\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\t\t\t\n\t\t\t\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\t\t\t\t\t{ suggestion }\n\t\t\t\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\t\t\t\n\t\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\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
\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\treturn <>;\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 {\n\t\t\t\t\t\t\t\t\t\t// Set photo and imageFile to empty.\n\t\t\t\t\t\t\t\t\t\tconst newPhoto = {\n\t\t\t\t\t\t\t\t\t\t\tid: 0,\n\t\t\t\t\t\t\t\t\t\t\turl: '',\n\t\t\t\t\t\t\t\t\t\t\talt: '',\n\t\t\t\t\t\t\t\t\t\t\ttitle: '',\n\t\t\t\t\t\t\t\t\t\t\tcaption: '',\n\t\t\t\t\t\t\t\t\t\t\tdescription: '',\n\t\t\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\timageData: newPhoto,\n\t\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t\t\tsetImageFile( newPhoto );\n\t\t\t\t\t\t\t\t\t\t// Go to data edit screen.\n\t\t\t\t\t\t\t\t\t\tsetPhotoMode( 'data' );\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { dataScreen: 'data-edit' } );\n\t\t\t\t\t\t\t\t\t\tsetScreen( 'data-edit' );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tdisabled={ isApplyButtonDisabled() }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( 'Apply Changes and Preview', '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 DataScreen;\n","import './editor.scss';\n\nimport {\n\tuseContext,\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\tAccessibility,\n\tLink,\n\tCaseSensitive,\n\tDatabase,\n\tLayers,\n} from 'lucide-react';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport classnames from 'classnames';\nimport hexToRgba from 'hex-to-rgba';\n\nimport { blockStore } from '../../store';\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 { DataSelect, MetaFieldControl } from '../../components/DataSelect';\nimport GlobalStyles from '../../components/GlobalStyles';\nimport getStyles from '../../blocks/photo-block/block-styles';\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\nlet dataImage = [];\n\nconst DataEditScreen = forwardRef( ( props, ref ) => {\n\tconst { attributes, setAttributes, innerBlockProps, context, blockUniqueId } = props;\n\tconst [ a11yButton, setA11yButton ] = useState( null );\n\tconst [ a11yPopover, setA11yPopover ] = useState( null );\n\tconst [ titleButton, setTitleButton ] = useState( null );\n\tconst [ titlePopover, setTitlePopover ] = useState( null );\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 [ previewImage, setPreviewImage ] = useState( null );\n\tconst {\n\t\tuniqueId,\n\t\tdataSource,\n\t\tdataImageSource,\n\t\tdataImageSourceCustomField,\n\t\tdataImageSourceAuthorMeta,\n\t\tdataPostType,\n\t\tdataPostId,\n\t\tdataFallbackImage,\n\t\tdataHasFallbackImage,\n\t\tdataFallbackImageSize,\n\t\tdataMediaLinkSource,\n\t\tdataMediaLinkPostMeta,\n\t\tdataMediaLinkImageCustomField,\n\t\tdataMediaLinkAuthorMeta,\n\t\timageSize,\n\t\timageData,\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\tsetScreen,\n\t\tsetImageData,\n\t} = useDispatch( blockStore( blockUniqueId ) );\n\n\t// Get current block data.\n\tconst {\n\t\tcaptionPosition,\n\t\tinQueryLoop,\n\t} = useSelect( ( select ) => {\n\t\treturn {\n\t\t\tcaptionPosition: select( blockStore( blockUniqueId ) ).getCaptionPosition(),\n\t\t\tinQueryLoop: select( blockStore( blockUniqueId ) ).inQueryLoop(),\n\t\t};\n\t} );\n\n\t// Get query loop vars.\n\tconst { postId, postType } = context;\n\n\tconst [ deviceType, setDeviceType ] = useDeviceType( 'Desktop' );\n\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\t// If data type is current post, get the current post ID.\n\t\tif ( 'currentPost' === dataSource ) {\n\t\t\t// Determine if we're in a query block.\n\t\t\tif ( inQueryLoop ) {\n\t\t\t\tcurrentPostId = postId;\n\t\t\t} else {\n\t\t\t\tcurrentPostId = wp.data.select( 'core/editor' ).getCurrentPostId();\n\t\t\t}\n\t\t\treturn currentPostId;\n\t\t}\n\t\t// If data type is post type, get the post ID from the attribute.\n\t\tif ( 'postType' === dataSource && '' !== dataPostId ) {\n\t\t\treturn dataPostId;\n\t\t}\n\t\treturn currentPostId;\n\t};\n\n\t/**\n\t * Set data image to empty array on mount in case someone changes data types.\n\t */\n\tuseEffect( () => {\n\t\tdataImage = [];\n\t}, [] );\n\n\t/**\n\t * Set up effect for loading the image initially using data.\n\t */\n\tuseEffect( () => {\n\t\tconst currentPostId = getPostId();\n\n\t\t// Check for array key in dataImage.\n\t\tif ( dataImage[ currentPostId ] ) {\n\t\t\tsetPreviewImage( dataImage[ currentPostId ] );\n\t\t\tsetHasImage( true );\n\t\t\tsetImageLoading( false );\n\t\t\treturn;\n\t\t}\n\n\t\tsetImageLoading( true );\n\t\tSendCommand(\n\t\t\tphotoBlock.restNonce,\n\t\t\t{\n\t\t\t\tdataSource,\n\t\t\t\tdataCurrentPostId: currentPostId,\n\t\t\t\tdataImageSize: imageSize,\n\t\t\t\tdataImageSource,\n\t\t\t\tdataImageSourceCustomField,\n\t\t\t\tdataPostType,\n\t\t\t\tdataPostId,\n\t\t\t\tdataFallbackImage,\n\t\t\t\tdataHasFallbackImage,\n\t\t\t\tdataFallbackImageSize,\n\t\t\t\tdataImageSourceAuthorMeta,\n\t\t\t},\n\t\t\t`${ photoBlock.restUrl + '/get-image-by-data' }`,\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\n\t\t\t\t\t// Image must be URL.\n\t\t\t\t\tsetHasImage( true );\n\t\t\t\t\tsetPreviewImage( data );\n\t\t\t\t\tsetImageData( data );\n\t\t\t\t\tdataImage[ currentPostId ] = data;\n\t\t\t\t\tsetAttributes( { imageData: data } );\n\t\t\t\t\treturn;\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\tsetImageData( data );\n\t\t\t\t\tsetPreviewImage( data );\n\t\t\t\t\tdataImage[ currentPostId ] = data;\n\t\t\t\t\tsetAttributes( { imageData: 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}, [ 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\tclassName=\"photo-block__inspector-panel\"\n\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\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( { imageSize: size } );\n\n\t\t\t\t\t\t\t// Also set fallback image size.\n\t\t\t\t\t\t\tsetAttributes( { dataFallbackImageSize: size } );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\toptions={ imageSizeOptions }\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\n\t\t\t }\n\t\t\t\ttitle={ __( 'Fallback Image', 'photo-block' ) }\n\t\t\t\tinitialOpen={ true }\n\t\t\t\tclassName=\"photo-block__inspector-panel\"\n\t\t\t>\n\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes( { dataHasFallbackImage: value } );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\t{ dataHasFallbackImage && (\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( { 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\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\t }\n\t\t\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\t\t\topen();\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\t{ __( 'Set Fallback Image', '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\tonSelect={ ( media ) => {\n\t\t\t\t\t\t\t\t\t\tconst selectedMedia = {\n\t\t\t\t\t\t\t\t\t\t\tid: media.id,\n\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\twidth:\n\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\theight:\n\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\talt: media.alt,\n\t\t\t\t\t\t\t\t\t\t\tcaption: media.caption,\n\t\t\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\tdataFallbackImage: selectedMedia,\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{ dataFallbackImage?.url && (\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\t {\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { dataFallbackImage: {} } );\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{ __( 'Remove Fallback Image', '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\t// Set the local inspector controls.\n\tconst localInspectorControls = (\n\t\t\n\t\t\t{ settingsInspectorControls }\n\t\t\t \n\t\t\n\t);\n\n\t// Set the advanced inspector controls.\n\tconst advancedInspectorControls = ( );\n\n\t/**\n\t * Get a post type label.\n\t *\n\t * @param {string} postTypeValue The post type.\n\t * @return {string} The post type label.\n\t */\n\tconst getPostTypeLabel = ( postTypeValue ) => {\n\t\tlet postTypeLabel = '';\n\t\tphotoBlock.postTypes.forEach( ( postTypeOption ) => {\n\t\t\tif ( postTypeOption.value === postTypeValue ) {\n\t\t\t\tpostTypeLabel = postTypeOption?.singular ?? postTypeOption.label;\n\t\t\t}\n\t\t} );\n\t\treturn postTypeLabel;\n\t};\n\n\tconst localToolbar = (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t }\n\t\t\t\t\t\tlabel={ __( 'Edit Data', 'photo-block' ) }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\tsetAttributes( { dataScreen: 'data' } );\n\t\t\t\t\t\t\tsetScreen( 'data' );\n\t\t\t\t\t\t} }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Edit Data', '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 Alt Text Dynamic Data', '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\tlabel={ __( 'Set Title Options', 'photo-block' ) }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\tsetTitlePopover( ! titlePopover );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tref={ setTitleButton }\n\t\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
\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\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\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{ dataMediaLinkSource === 'customField' && (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) }\n\t\t\t\t\t\t{ dataMediaLinkSource === 'imageMeta' && (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) }\n\t\t\t\t\t\t{ dataMediaLinkSource === 'authorMeta' && (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) }\n\t\t\t\t\t\t{ 'imageFile' === 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\t{ a11yPopover && (\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\t{ titlePopover && (\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\tlet 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\tif ( photoDropShadow.enabled ) {\n\t\tstyles += `\n\t\t\t#${ uniqueId } img {\n\t\t\t\tbox-shadow: ${ photoDropShadow.inset ? 'inset ' : '' }${\n\tphotoDropShadow.horizontal\n}px ${ photoDropShadow.vertical }px ${ photoDropShadow.blur }px ${\n\tphotoDropShadow.spread\n}px ${ hexToRgba( photoDropShadow.color, photoDropShadow.opacity ) };\n\t\t\t\t-webkit-box-shadow: ${ photoDropShadow.inset ? 'inset ' : '' }${\n\tphotoDropShadow.horizontal\n}px ${ photoDropShadow.vertical }px ${ photoDropShadow.blur }px ${\n\tphotoDropShadow.spread\n}px ${ hexToRgba( photoDropShadow.color, photoDropShadow.opacity ) };\n\t\t\t}\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{ { advancedInspectorControls } }\n\t\t\t{ localToolbar }\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) }\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
\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 previewImage.url !== 'undefined' ) && (\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 previewImage === 'string' ) && (\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{ ( 'overlay' === captionPosition && ! imageLoading && hasImage ) && (\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 ) && (\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 && (\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 DataEditScreen;\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\tlet attributes = props.attributes || {};\n\n\t// Apply filters to attributes.\n\tuseEffect( () => {\n\t\tattributes = applyFilters( 'dlx_photo_block_attributes', props.attributes, props.attributes.globalStyle, clientId, 'photo' );\n\t}, [ props.attributes ] );\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 * 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 ) {\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 ) {\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! hasGlobalStyle( globalStyle ) && (\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( { imageSize: size } );\n\t\t\t\t\t\t\t\t\t\tgetImageFromSize( size );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\toptions={ imageSizeOptions }\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{ imageSizeLoading && (\n\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t
{ __( 'Loading image size…', '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 interfaceTabs = (\n\t\t<>\n\t\t\t{ settingsInspectorControls }\n\t\t\t{\n\t\t\t\t! hasGlobalStyle( globalStyle ) && (\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 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{ ! hasGlobalStyle( globalStyle ) && (\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{\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! hasGlobalStyle( globalStyle ) && (\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\tlabel={ __( 'Set Link Options', 'photo-block' ) }\n\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\tsetMediaLinkPopover( ! mediaLinkPopover );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tref={ setMediaLinkRef }\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{ 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! hasGlobalStyle( attributes.globalStyle ) && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\tclassName=\"photo-block__inspector-panel\"\n\t\t\t\t\t\t\tid=\"photo-block__photo-settings\"\n\t\t\t\t\t\t\tuniqueId={ uniqueId }\n\t\t\t\t\t\t\tinitialOpen={ true }\n\t\t\t\t\t\t\tscrollAfterOpen={ 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\tsetAttributes( { imageSize: size } );\n\n\t\t\t\t\t\t\t\t\t\t// Also set fallback image size.\n\t\t\t\t\t\t\t\t\t\tsetAttributes( { dataFallbackImageSize: size } );\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\toptions={ imageSizeOptions }\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\ttitle={ __( 'Fallback Image', 'photo-block' ) }\n\t\t\t\t\t\t\tinitialOpen={ true }\n\t\t\t\t\t\t\tclassName=\"photo-block__inspector-panel\"\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( { dataHasFallbackImage: 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\t{ dataHasFallbackImage && (\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( { dataFallbackImageSize: size } );\n\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\toptions={ imageSizeOptions }\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\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\t }\n\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\topen();\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{ __( 'Set Fallback Image', '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\tonSelect={ ( media ) => {\n\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\tid: media.id,\n\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\twidth:\n\t\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\theight:\n\t\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\talt: media.alt,\n\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};\n\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\tdataFallbackImage: selectedMedia,\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\t{ dataFallbackImage?.url && (\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
\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( { dataFallbackImage: {} } );\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\t\t{ __( 'Remove Fallback Image', 'photo-block' ) }\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{ ! hasGlobalStyle( attributes.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\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\tlet 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\tif ( photoDropShadow.enabled ) {\n\t\tstyles += `\n\t\t\t#${ uniqueId } img {\n\t\t\t\tbox-shadow: ${ photoDropShadow.inset ? 'inset ' : '' }${ photoDropShadow.horizontal\n}px ${ photoDropShadow.vertical }px ${ photoDropShadow.blur }px ${ photoDropShadow.spread\n}px ${ hexToRgba( photoDropShadow.color, photoDropShadow.opacity ) };\n\t\t\t\t-webkit-box-shadow: ${ photoDropShadow.inset ? 'inset ' : '' }${ photoDropShadow.horizontal\n}px ${ photoDropShadow.vertical }px ${ photoDropShadow.blur }px ${ photoDropShadow.spread\n}px ${ hexToRgba( photoDropShadow.color, photoDropShadow.opacity ) };\n\t\t\t}\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';\nimport DataScreen from '../../screens/Data';\nimport DataEditScreen from '../../screens/DataEdit';\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};\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};\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\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},\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","/**\n * Generates a unique id based on the clientId\n *\n * @param {string} clientId The block clientId\n * @return {string} The uniqueId\n *\n * Credit: Forked from GenerateBlocks.\n */\nexport const generateUniqueId = ( clientId ) => clientId.substring( 2, 9 ).replace( '-', '' );\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 CaseSensitive = createLucideIcon(\"CaseSensitive\", [\n [\"path\", { d: \"m3 15 4-8 4 8\", key: \"1vwr6u\" }],\n [\"path\", { d: \"M4 13h6\", key: \"1r9ots\" }],\n [\"circle\", { cx: \"18\", cy: \"12\", r: \"3\", key: \"1kchzo\" }],\n [\"path\", { d: \"M21 9v6\", key: \"anns31\" }]\n]);\n\nexport { CaseSensitive as default };\n//# sourceMappingURL=case-sensitive.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 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 Database = createLucideIcon(\"Database\", [\n [\"ellipse\", { cx: \"12\", cy: \"5\", rx: \"9\", ry: \"3\", key: \"msslwz\" }],\n [\"path\", { d: \"M3 5V19A9 3 0 0 0 21 19V5\", key: \"1wlel7\" }],\n [\"path\", { d: \"M3 12A9 3 0 0 0 21 12\", key: \"mv7ke4\" }]\n]);\n\nexport { Database as default };\n//# sourceMappingURL=database.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 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 FileKey = createLucideIcon(\"FileKey\", [\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 [\"circle\", { cx: \"10\", cy: \"16\", r: \"2\", key: \"4ckbqe\" }],\n [\"path\", { d: \"m16 10-4.5 4.5\", key: \"7p3ebg\" }],\n [\"path\", { d: \"m15 11 1 1\", key: \"1bsyx3\" }]\n]);\n\nexport { FileKey as default };\n//# sourceMappingURL=file-key.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 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 Layers = createLucideIcon(\"Layers\", [\n [\n \"path\",\n {\n d: \"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z\",\n key: \"8b97xw\"\n }\n ],\n [\"path\", { d: \"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65\", key: \"dd6zsq\" }],\n [\"path\", { d: \"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65\", key: \"ep9fru\" }]\n]);\n\nexport { Layers as default };\n//# sourceMappingURL=layers.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 LogOut = createLucideIcon(\"LogOut\", [\n [\"path\", { d: \"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\", key: \"1uf3rs\" }],\n [\"polyline\", { points: \"16 17 21 12 16 7\", key: \"1gabdz\" }],\n [\"line\", { x1: \"21\", x2: \"9\", y1: \"12\", y2: \"12\", key: \"1uyos4\" }]\n]);\n\nexport { LogOut as default };\n//# sourceMappingURL=log-out.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 {};","// 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","!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t(require(\"react\")):\"function\"==typeof define&&define.amd?define([\"react\"],t):\"object\"==typeof exports?exports.ReactCrop=t(require(\"react\")):e.ReactCrop=t(e.React)}(this,(e=>(()=>{\"use strict\";var t={899:t=>{t.exports=e}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{Component:()=>u,areCropsEqual:()=>h,centerCrop:()=>d,clamp:()=>a,containCrop:()=>p,convertToPercentCrop:()=>c,convertToPixelCrop:()=>l,default:()=>u,defaultCrop:()=>i,makeAspectCrop:()=>s,nudgeCrop:()=>g});var e=o(899),t=o.n(e);function n(e){var t,o,r=\"\";if(\"string\"==typeof e||\"number\"==typeof e)r+=e;else if(\"object\"==typeof e)if(Array.isArray(e))for(t=0;to&&(r.height=o-r.y,r.width=r.height*t),r.x+r.width>n&&(r.width=n-r.x,r.height=r.width/t),\"%\"===e.unit?c(r,n,o):r}function d(e,t,n){const o=l(e,t,n);return o.x=(t-o.width)/2,o.y=(n-o.height)/2,\"%\"===e.unit?c(o,t,n):o}function c(e,t,n){return\"%\"===e.unit?{...i,...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 l(e,t,n){return e.unit?\"px\"===e.unit?{...i,...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}:{...i,...e,unit:\"px\"}}function p(e,t,n,o,r,i=0,a=0,h=o,s=r){const d={...e};let c=Math.min(i,o),l=Math.min(a,r),p=Math.min(h,o),g=Math.min(s,r);t&&(t>1?(c=a?a*t:c,l=c/t,p=h*t):(l=i?i/t:l,c=l*t,g=s/t)),d.y<0&&(d.height=Math.max(d.height+d.y,l),d.y=0),d.x<0&&(d.width=Math.max(d.width+d.x,c),d.x=0);const w=o-(d.x+d.width);w<0&&(d.x=Math.min(d.x,o-c),d.width+=w);const u=r-(d.y+d.height);if(u<0&&(d.y=Math.min(d.y,r-l),d.height+=u),d.widthp&&(\"sw\"!==n&&\"nw\"!=n||(d.x-=p-d.width),d.width=p),d.height>g&&(\"nw\"!==n&&\"ne\"!=n||(d.y-=g-d.height),d.height=g),t){const e=d.width/d.height;if(et){const e=Math.max(d.height*t,c);\"sw\"!==n&&\"nw\"!=n||(d.x-=e-d.width),d.width=e}}return d}function g(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}const w={capture:!0,passive:!1};class u 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.state={cropIsActive:!1,newCropIsBeingDrawn:!1},this.onCropPointerDown=e=>{const{crop:t,disabled:n}=this.props,o=this.getBox();if(!t)return;const r=l(t,o.width,o.height);if(n)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const i=e.target.dataset.ord,a=Boolean(i);let h=e.clientX,s=e.clientY,d=r.x,c=r.y;if(i){const t=e.clientX-o.x,n=e.clientY-o.y;let a=0,l=0;\"ne\"===i||\"e\"==i?(a=t-(r.x+r.width),l=n-r.y,d=r.x,c=r.y+r.height):\"se\"===i||\"s\"===i?(a=t-(r.x+r.width),l=n-(r.y+r.height),d=r.x,c=r.y):\"sw\"===i||\"w\"==i?(a=t-r.x,l=n-(r.y+r.height),d=r.x+r.width,c=r.y):\"nw\"!==i&&\"n\"!=i||(a=t-r.x,l=n-r.y,d=r.x+r.width,c=r.y+r.height),h=d+o.x+a,s=c+o.y+l}this.evData={startClientX:h,startClientY:s,startCropX:d,startCropY:c,clientX:e.clientX,clientY:e.clientY,isResize:a,ord:i},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})},this.onComponentPointerDown=e=>{const{crop:t,disabled:n,locked:o,keepSelection:r,onChange:i}=this.props,a=this.getBox();if(n||o||r&&t)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const h=e.clientX-a.x,s=e.clientY-a.y,d={unit:\"px\",x:h,y:s,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:h,startCropY:s,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,i(l(d,a.width,a.height),c(d,a.width,a.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})},this.onDocPointerMove=e=>{const{crop:t,disabled:n,onChange:o,onDragStart:r}=this.props,i=this.getBox();if(n||!t||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,r&&r(e));const{evData:a}=this;let s;a.clientX=e.clientX,a.clientY=e.clientY,s=a.isResize?this.resizeCrop():this.dragCrop(),h(t,s)||o(l(s,i.width,i.height),c(s,i.width,i.height))},this.onComponentKeyDown=e=>{const{crop:t,disabled:n,onChange:o,onComplete:r}=this.props,i=this.getBox();if(n)return;const h=e.key;let s=!1;if(!t)return;const d=this.makePixelCrop(),p=(navigator.platform.match(\"Mac\")?e.metaKey:e.ctrlKey)?u.nudgeStepLarge:e.shiftKey?u.nudgeStepMedium:u.nudgeStep;if(\"ArrowLeft\"===h?(d.x-=p,s=!0):\"ArrowRight\"===h?(d.x+=p,s=!0):\"ArrowUp\"===h?(d.y-=p,s=!0):\"ArrowDown\"===h&&(d.y+=p,s=!0),s){e.cancelable&&e.preventDefault(),d.x=a(d.x,0,i.width-d.width),d.y=a(d.y,0,i.height-d.height);const t=l(d,i.width,i.height),n=c(d,i.width,i.height);o(t,n),r&&r(t,n)}},this.onHandlerKeyDown=(e,t)=>{const{aspect:n=0,crop:o,disabled:r,minWidth:i=0,minHeight:a=0,maxWidth:s,maxHeight:d,onChange:w,onComplete:m}=this.props,y=this.getBox();if(r||!o)return;if(\"ArrowUp\"!==e.key&&\"ArrowDown\"!==e.key&&\"ArrowLeft\"!==e.key&&\"ArrowRight\"!==e.key)return;e.stopPropagation(),e.preventDefault();const x=(navigator.platform.match(\"Mac\")?e.metaKey:e.ctrlKey)?u.nudgeStepLarge:e.shiftKey?u.nudgeStepMedium:u.nudgeStep,C=p(g(l(o,y.width,y.height),e.key,x,t),n,t,y.width,y.height,i,a,s,d);if(!h(o,C)){const e=c(C,y.width,y.height);w(C,e),m&&m(C,e)}},this.onDocPointerDone=e=>{const{crop:t,disabled:n,onComplete:o,onDragEnd:r}=this.props,i=this.getBox();this.unbindDocMove(),!n&&t&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,r&&r(e),o&&o(l(t,i.width,i.height),c(t,i.width,i.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))},this.onDragFocus=e=>{var t;null===(t=this.componentRef.current)||void 0===t||t.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(l(t,e,o),c(t,e,o))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}bindDocMove(){this.docMoveBound||(this.document.addEventListener(\"pointermove\",this.onDocPointerMove,w),this.document.addEventListener(\"pointerup\",this.onDocPointerDone,w),this.document.addEventListener(\"pointercancel\",this.onDocPointerDone,w),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener(\"pointermove\",this.onDocPointerMove,w),this.document.removeEventListener(\"pointerup\",this.onDocPointerDone,w),this.document.removeEventListener(\"pointercancel\",this.onDocPointerDone,w),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(),o=e.clientX-e.startClientX,r=e.clientY-e.startClientY;return n.x=a(e.startCropX+o,0,t.width-n.width),n.y=a(e.startCropY+r,0,t.height-n.height),n}getPointRegion(e){const{evData:t}=this,n=t.clientX-e.x,o=t.clientY-e.y-1?(s.x=w.x,s.y=w.y,s.width=w.width,s.height=w.height):u.xOrds.indexOf(d)>-1?(s.x=w.x,s.width=w.width):u.yOrds.indexOf(d)>-1&&(s.y=w.y,s.height=w.height),s}createCropSelection(){const{ariaLabels:e=u.defaultProps.ariaLabels,disabled:n,locked:o,renderSelectionAddon:r,ruleOfThirds:i,crop:a}=this.props,h=this.getCropStyle();if(a)return t().createElement(\"div\",{style:h,className:\"ReactCrop__crop-selection\",onPointerDown:this.onCropPointerDown,\"aria-label\":e.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:\"group\"},!n&&!o&&t().createElement(\"div\",{className:\"ReactCrop__drag-elements\",onFocus:this.onDragFocus},t().createElement(\"div\",{className:\"ReactCrop__drag-bar ord-n\",\"data-ord\":\"n\"}),t().createElement(\"div\",{className:\"ReactCrop__drag-bar ord-e\",\"data-ord\":\"e\"}),t().createElement(\"div\",{className:\"ReactCrop__drag-bar ord-s\",\"data-ord\":\"s\"}),t().createElement(\"div\",{className:\"ReactCrop__drag-bar ord-w\",\"data-ord\":\"w\"}),t().createElement(\"div\",{className:\"ReactCrop__drag-handle ord-nw\",\"data-ord\":\"nw\",tabIndex:0,\"aria-label\":e.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,\"nw\"),role:\"button\"}),t().createElement(\"div\",{className:\"ReactCrop__drag-handle ord-n\",\"data-ord\":\"n\",tabIndex:0,\"aria-label\":e.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,\"n\"),role:\"button\"}),t().createElement(\"div\",{className:\"ReactCrop__drag-handle ord-ne\",\"data-ord\":\"ne\",tabIndex:0,\"aria-label\":e.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,\"ne\"),role:\"button\"}),t().createElement(\"div\",{className:\"ReactCrop__drag-handle ord-e\",\"data-ord\":\"e\",tabIndex:0,\"aria-label\":e.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,\"e\"),role:\"button\"}),t().createElement(\"div\",{className:\"ReactCrop__drag-handle ord-se\",\"data-ord\":\"se\",tabIndex:0,\"aria-label\":e.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,\"se\"),role:\"button\"}),t().createElement(\"div\",{className:\"ReactCrop__drag-handle ord-s\",\"data-ord\":\"s\",tabIndex:0,\"aria-label\":e.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,\"s\"),role:\"button\"}),t().createElement(\"div\",{className:\"ReactCrop__drag-handle ord-sw\",\"data-ord\":\"sw\",tabIndex:0,\"aria-label\":e.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,\"sw\"),role:\"button\"}),t().createElement(\"div\",{className:\"ReactCrop__drag-handle ord-w\",\"data-ord\":\"w\",tabIndex:0,\"aria-label\":e.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,\"w\"),role:\"button\"})),r&&t().createElement(\"div\",{className:\"ReactCrop__selection-addon\",onMouseDown:e=>e.stopPropagation()},r(this.state)),i&&t().createElement(t().Fragment,null,t().createElement(\"div\",{className:\"ReactCrop__rule-of-thirds-hz\"}),t().createElement(\"div\",{className:\"ReactCrop__rule-of-thirds-vt\"})))}makePixelCrop(){const e={...i,...this.props.crop||{}},t=this.getBox();return l(e,t.width,t.height)}render(){const{aspect:e,children:o,circularCrop:r,className:i,crop:a,disabled:h,locked:s,style:d,ruleOfThirds:c}=this.props,{cropIsActive:l,newCropIsBeingDrawn:p}=this.state,g=a?this.createCropSelection():null,w=function(){for(var e,t,o=0,r=\"\";o\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","// 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';\nimport './premium/index.js'; // Temporary until in its own plugin.\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","photoObjectPositionCustom","photoBorder","photoBlur","photoObjectFit","captionCustomTypography","styles","concat","horizontal","vertical","blur","spread","color","opacity","enabled","classnames","useEffect","useState","useRef","useContext","__","PanelBody","PanelRow","RangeControl","TextControl","TextareaControl","ButtonGroup","Button","ToggleControl","Toolbar","ToolbarButton","ToolbarGroup","ToolbarDropdownMenu","Popover","PlaceHolder","MenuGroup","MenuItem","useDispatch","useSelect","dispatch","select","doAction","InspectorControls","useBlockProps","useInnerBlocksProps","store","blockEditorStore","generateUniqueId","blockStore","InitialScreen","CaptionAppender","EditScreen","CropScreen","DataScreen","DataEditScreen","LoadingScreen","FeaturedImageScreen","globalStylesStore","uniqueIds","PhotoBlock","props","setAttributes","clientId","context","isSelected","innerBlockCount","coreSelect","getBlock","innerBlocks","newUniqueId","substr","replace","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","block","Fragment","id","redoSvg","processSvg","metadata","registerBlockType","createBlock","InnerBlocks","Edit","PhotoBlockIcon","icon","edit","save","Content","transforms","from","type","regExp","transform","to","geHierarchicalPlaceholderValue","getHierarchicalValueUnit","escapeEditableHTML","isURL","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","url","backgroundColor","decodeURIComponent","encodeURIComponent","backgroundPosition","backgroundRepeat","backgroundSize","parseFloat","backgroundOpacity","backgroundOpacityHover","applyFilters","BaseControl","SelectControl","Modal","Spinner","useSettings","InspectorAdvancedControls","RichText","BlockControls","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","heightUnits","fontFamilies","label","family","slug","fallback","PhotoCaptionBlock","oldAttrs","_objectSpread","hasGlobalStyle","_useState","_useState2","_slicedToArray","caption","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","photoBlock","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","title","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","_regeneratorRuntime","e","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","d","getPrototypeOf","v","g","defineIteratorMethods","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","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","ownKeys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","apply","_defineProperty","getOwnPropertyDescriptors","defineProperties","obj","_toPropertyKey","_toPrimitive","String","toPrimitive","Number","asyncGeneratorStep","gen","reject","_next","_throw","info","_asyncToGenerator","fn","self","args","err","arr","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","minLen","_arrayLikeToArray","toString","Array","test","len","arr2","isArray","createRef","useCallback","classNames","PropTypes","UP","DOWN","ENTER","TAB","speak","useInstanceId","useDebounce","filterURLForDisplay","Search","CornerDownLeft","X","AdvancedSelectControl","inputRef","restEndPoint","restEndpoint","children","params","acceptDirectInput","currentSelectedSuggestion","generatedUniqueId","suggestions","setSuggestions","showSuggestions","setShowSuggestions","isUpdatingSuggestions","setIsUpdatingSuggestions","currentSuggestionRequest","setCurrentSuggestionRequest","selectedSuggestion","setSelectedSuggestion","currentSuggestion","setCurrentSuggestion","selectedSuggestionIndex","setSelectedSuggestionIndex","suggestionListboxId","setSuggestionListboxId","suggestionValue","setSuggestionValue","savedValue","savedSuggestionValue","setSavedSuggestionValue","uniqueInstanceId","setUniqueInstanceId","loading","setLoading","_useState25","_useState26","dataType","setDataType","debouncedRequest","updateSuggestions","newSuggestion","permalink","current","hasInititialFocus","onFocus","event","preventDefault","onKeyDown","keyCode","target","selectionStart","setSelectionRange","onItemSelect","previousIndex","nextIndex","getSuggestion","foundSuggestion","find","suggestion","_value","isInitialSuggestions","trim","abortController","AbortController","abort","_callee","_callee$","_context","signal","search","t0","htmlFor","hideLabelFromVision","iconSize","defaultProps","itemIcon","propTypes","string","isRequired","func","bool","element","AlignmentToolbar","getIcon","alignment","_ref","iconPosition","role","MediaUploadCheck","MediaUpload","useForm","Controller","useWatch","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","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","width","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","position","inputMode","autoComplete","_ref5$field","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","CSSGramButtonPreview","cssGramOptions","CSSGramButtonGroup","cssGramFilter","_select","currentFilter","setCurrentFilter","map","option","fullUrl","photo","buttonRef","setButtonRef","showPopOver","setShowPopOver","handlePopoverOpen","handlePopoverClose","onMouseEnter","onMouseLeave","src","height","style","maxWidth","alt","insertBlock","updateBlockAttributes","appendBlock","newBlocks","Tooltip","ColorPicker","ColorPalette","colorKey","setColorKey","setColor","setOpacity","_props$alpha","_props$hideLabelFromV","getDefaultColors","existingColors","newColors","maybeNewColor","index","opacityIcon","xmlns","viewBox","toggleVisible","text","background","onChangeComplete","newColor","disableAlpha","defaultValue","initialPosition","disabled","colors","disableCustomColors","clearable","array","customAttributes","showCustomAttributes","customAttributeOutput","attributeValues","newCustomAttributes","_toConsumableArray","splice","sprintf","FileKey","Link2","FileText","File","MetaFieldControl","attributeName","endpoint","currentMetaFieldSuggestion","setCurrentMetaFieldSuggestion","suggestionClasses","DataSelect","prefix","postTypeSuggestion","setPostTypeSuggestion","dataSource","dataPostType","dataPostId","getPostTypeLabel","postTypeValue","postTypeLabel","postTypes","postTypeOption","_postTypeOption$singu","singular","getAttribute","source","attribute","postType","_setAttributes7","_props$isBorderRadius","_props$allowNegatives","topUnit","rightUnit","bottomUnit","leftUnit","getRangeControlMin","DropShadowControl","valueOpacity","inset","RadioControl","CheckboxControl","Save","Layers","Pencil","Trash","useFormState","CustomPresetsContext","CustomPresetSaveModal","GlobalStylesDeleteModal","GlobalStylesEditModal","canSavePresets","photoBlockUser","GlobalStylesContainer","presetSaveType","setPresetSaveType","presetSaveLabel","setPresetSaveLabel","_useContext","savingPreset","setSavingPreset","editPresets","setEditPresets","showEditModal","setShowEditModal","showDeleteModal","setShowDeleteModal","setDefaultPreset","getGlobalStyles","setGlobalStyle","selectedGlobalStyle","applyAsPreset","handleSubmit","trigger","setError","clearErrors","_useFormState","errors","globalStyleContainer","showLoading","onSubmit","formData","_select$getBlocksByCl","globalStyleSlug","currentGlobalStyle","content","getBlocksByClientId","captionBlock","uniqueIdAttribute","photoBlockAttributes","photoAttributes","captionAttributes","captionBlockAttributes","savedPresets","getGlobalStylesForEditing","styleSelect","deleteNonce","delete_nonce","saveNonce","save_nonce","cssClass","editId","AlertCircle","isDeleting","setIsDeleting","setSavedPresets","removeGlobalStyle","createWarningNotice","createSuccessNotice","ajaxUrl","ajaxurl","FormData","append","fetch","body","headers","Accept","json","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","groupSelect","globalStyles","_useDispatch3","globalStyleLabel","globalStyleCSSClass","_useDispatch4","getCurrentAttributes","parentAttributes","getBlockAttributes","allAttributes","saveNewPreset","overridePreset","hasErrors","generateGlobalStyle","formDataNew","globalStylesGenerateNonce","globalStylesSaveNewNonce","JSON","stringify","newData","maybeRefreshBlocks","incomingData","photoBlocks","getBlocks","_block$attributes","date","Date","getTime","innerBlock","getPresetRadioOptions","radioOptions","selected","_errors$globalStyleLa","onBlur","_errors$globalStyleCS","radioValue","formAjaxError","GlobalStylesContext","createContext","GlobalStyles","Provider","CaptionBlockPreview","PhotoBlockPreview","GlobalStylesButtonPreview","blockPreview","setBlockPreview","_globalStyle$content","_globalStyle$content$","getImageUrl","defaultImageUrl","defaultImagePlacheolder","GlobalStylesPicker","isRemoveModalOpen","setIsRemoveModalOpen","isKeepStyleSettings","setIsKeepStyleSettings","newGlobalStyle","captionBlockClientId","GradientPicker","gradientPickerButtonAnchor","setGradientPickerButtonAnchor","getGradientStyles","hexRegex","match","backgroundImage","gradients","Monitor","Tablet","Smartphone","AspectRatioIcon","fillRule","strokeLinejoin","strokeMiterlimit","clipRule","xmlSpace","ColonIcon","Link2Off","Image","FileImage","ExternalLink","URLPicker","MediaLink","mediaLinkType","mediaLinkTitle","mediaLinkUrl","lightboxCaption","lightboxEnabled","lightboxShowCaption","expandOnMobile","focusOnMount","href","full","rel","attachment_link","mediaLinkNewTab","mediaLinkRel","mediaLinkClass","mediaLinkAnchorId","WPNotice","_classNames","inline","animate","animationType","hasIcon","Icon","containerClasses","isDismissible","spokenMessage","actions","oneOf","elementType","animatitionType","PanelBodyControl","_props$initialOpen","_props$id","isPanelOpen","setIsPanelOpen","stored","localStorage","getItem","storedValue","isOpen","onToggle","storageValueToSave","setItem","UnitPicker","setScreenSize","parseInt","SidebarImageAdvancedInspectorControl","figureCSSClasses","skipLazyLoading","imageProtectionEnabled","stylesInspectorControls","object","Palette","Wand2","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","XCircle","suggestionId","suggestionClass","_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","imageSize","newBlock","console","browse","fillProps","getDeviceType","unitList","number","defaultUnitValue","device","unitSlug","unitRegex","join","splitRegex","RegExp","split","singleValue","useMemo","addFilter","getStylesCaption","_photoBlock","returnRealtimeBlockAttributes","propAttributes","newAttributes","devices","setStyles","photoStyles","globalStylesCSS","deviceStyles","returnBlockAttributes","blockType","globalStyleAttributes","getPlugin","addAction","Fill","dataPlugin","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","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","cropAspectRatio","minWidth","minHeight","ruleOfThirds","__experimentalHeading","Heading","Card","CardHeader","CardBody","CardFooter","LogOut","imageSizeOptions","imageSizes","size","dataImageSource","dataImageSourceCustomField","dataImageSourceAuthorMeta","dataPostTitle","dataFallbackImage","dataHasFallbackImage","dataFallbackImageSize","dataScreen","currentPostTypePostSuggestion","setCurrentPostTypePostSuggestion","currentCustomFieldSuggestion","setCurrentCustomFieldSuggestion","currentAuthorMetaSuggestion","setCurrentAuthorMetaSuggestion","setImageFile","isApplyButtonDisabled","isShady","isScrollable","newPhoto","description","Accessibility","CaseSensitive","dataImage","_previewImage$width","_previewImage$height","a11yButton","setA11yButton","a11yPopover","setA11yPopover","titleButton","setTitleButton","titlePopover","setTitlePopover","mediaLinkPopover","setMediaLinkPopover","mediaLinkRef","setMediaLinkRef","imageLoading","setImageLoading","hasImage","setHasImage","previewImage","setPreviewImage","dataMediaLinkSource","dataMediaLinkPostMeta","dataMediaLinkImageCustomField","dataMediaLinkAuthorMeta","dataCurrentPostId","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","dataMediaLinkNewTab","dataMediaLinkRel","dataMediaLinkClass","imageStyles","TabPanel","debounce","Crop","Settings","Paintbrush","Undo2","inspectorTab","setInspectorTab","imageSizeLoading","setImageSizeLoading","isSavingAlt","setIsSavingAlt","isSavingTitle","setIsSavingTitle","createInfoNotice","originalImageData","getOriginalImageData","isJustCropped","getJustCropped","_useSelect3","_attributes$imageData","imageUrl","getImageFromSize","handleAltChange","altText","handleTitleChange","_callee3","titleText","_callee3$","_context3","photoImg","onLoad","dataImages","getImage","isLoading","setIsLoading","setDataScreen","getDataScreen","queryId","isPremium","createReduxStore","register","DEFAULT_STATE","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","substring","randomIndex","floor","random","axios","qs","nonce","shorthandCSS","output","shorthandCSSUnits","valueObject","cssValue","numberOnly","dimensions","topValue","topColor","topBorderStyle","CSSRule","rightColor","bottomColor","leftColor","rightBorderStyle","bottomBorderStyle","leftBorderStyle","subType","getHierarchicalValueUnitSync"],"sourceRoot":""} \ No newline at end of file diff --git a/premium/premium.js b/premium/premium.js index 425efda..c1a2541 100644 --- a/premium/premium.js +++ b/premium/premium.js @@ -1,63775 +1,2 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ "./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.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 */ createCache) -/* harmony export */ }); -/* harmony import */ var _emotion_sheet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @emotion/sheet */ "./node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js"); -/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Tokenizer.js"); -/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Utility.js"); -/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Enum.js"); -/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Serializer.js"); -/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Middleware.js"); -/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Parser.js"); -/* harmony import */ var _emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/weak-memoize */ "./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js"); -/* harmony import */ var _emotion_memoize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @emotion/memoize */ "./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"); - - - - - -var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) { - var previous = 0; - var character = 0; - - while (true) { - previous = character; - character = (0,stylis__WEBPACK_IMPORTED_MODULE_3__.peek)(); // &\f - - if (previous === 38 && character === 12) { - points[index] = 1; - } - - if ((0,stylis__WEBPACK_IMPORTED_MODULE_3__.token)(character)) { - break; - } - - (0,stylis__WEBPACK_IMPORTED_MODULE_3__.next)(); - } - - return (0,stylis__WEBPACK_IMPORTED_MODULE_3__.slice)(begin, stylis__WEBPACK_IMPORTED_MODULE_3__.position); -}; - -var toRules = function toRules(parsed, points) { - // pretend we've started with a comma - var index = -1; - var character = 44; - - do { - switch ((0,stylis__WEBPACK_IMPORTED_MODULE_3__.token)(character)) { - case 0: - // &\f - if (character === 38 && (0,stylis__WEBPACK_IMPORTED_MODULE_3__.peek)() === 12) { - // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings - // stylis inserts \f after & to know when & where it should replace this sequence with the context selector - // and when it should just concatenate the outer and inner selectors - // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here - points[index] = 1; - } - - parsed[index] += identifierWithPointTracking(stylis__WEBPACK_IMPORTED_MODULE_3__.position - 1, points, index); - break; - - case 2: - parsed[index] += (0,stylis__WEBPACK_IMPORTED_MODULE_3__.delimit)(character); - break; - - case 4: - // comma - if (character === 44) { - // colon - parsed[++index] = (0,stylis__WEBPACK_IMPORTED_MODULE_3__.peek)() === 58 ? '&\f' : ''; - points[index] = parsed[index].length; - break; - } - - // fallthrough - - default: - parsed[index] += (0,stylis__WEBPACK_IMPORTED_MODULE_4__.from)(character); - } - } while (character = (0,stylis__WEBPACK_IMPORTED_MODULE_3__.next)()); - - return parsed; -}; - -var getRules = function getRules(value, points) { - return (0,stylis__WEBPACK_IMPORTED_MODULE_3__.dealloc)(toRules((0,stylis__WEBPACK_IMPORTED_MODULE_3__.alloc)(value), points)); -}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11 - - -var fixedElements = /* #__PURE__ */new WeakMap(); -var compat = function compat(element) { - if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo - // negative .length indicates that this rule has been already prefixed - element.length < 1) { - return; - } - - var value = element.value, - parent = element.parent; - var isImplicitRule = element.column === parent.column && element.line === parent.line; - - while (parent.type !== 'rule') { - parent = parent.parent; - if (!parent) return; - } // short-circuit for the simplest case - - - if (element.props.length === 1 && value.charCodeAt(0) !== 58 - /* colon */ - && !fixedElements.get(parent)) { - return; - } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level) - // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent" - - - if (isImplicitRule) { - return; - } - - fixedElements.set(element, true); - var points = []; - var rules = getRules(value, points); - var parentRules = parent.props; - - for (var i = 0, k = 0; i < rules.length; i++) { - for (var j = 0; j < parentRules.length; j++, k++) { - element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i]; - } - } -}; -var removeLabel = function removeLabel(element) { - if (element.type === 'decl') { - var value = element.value; - - if ( // charcode for l - value.charCodeAt(0) === 108 && // charcode for b - value.charCodeAt(2) === 98) { - // this ignores label - element["return"] = ''; - element.value = ''; - } - } -}; -var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason'; - -var isIgnoringComment = function isIgnoringComment(element) { - return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1; -}; - -var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) { - return function (element, index, children) { - if (element.type !== 'rule' || cache.compat) return; - var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g); - - if (unsafePseudoClasses) { - var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent` - // - // considering this input: - // .a { - // .b /* comm */ {} - // color: hotpink; - // } - // we get output corresponding to this: - // .a { - // & { - // /* comm */ - // color: hotpink; - // } - // .b {} - // } - - var commentContainer = isNested ? element.parent.children : // global rule at the root level - children; - - for (var i = commentContainer.length - 1; i >= 0; i--) { - var node = commentContainer[i]; - - if (node.line < element.line) { - break; - } // it is quite weird but comments are *usually* put at `column: element.column - 1` - // so we seek *from the end* for the node that is earlier than the rule's `element` and check that - // this will also match inputs like this: - // .a { - // /* comm */ - // .b {} - // } - // - // but that is fine - // - // it would be the easiest to change the placement of the comment to be the first child of the rule: - // .a { - // .b { /* comm */ } - // } - // with such inputs we wouldn't have to search for the comment at all - // TODO: consider changing this comment placement in the next major version - - - if (node.column < element.column) { - if (isIgnoringComment(node)) { - return; - } - - break; - } - } - - unsafePseudoClasses.forEach(function (unsafePseudoClass) { - console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\"."); - }); - } - }; -}; - -var isImportRule = function isImportRule(element) { - return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64; -}; - -var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) { - for (var i = index - 1; i >= 0; i--) { - if (!isImportRule(children[i])) { - return true; - } - } - - return false; -}; // use this to remove incorrect elements from further processing -// so they don't get handed to the `sheet` (or anything else) -// as that could potentially lead to additional logs which in turn could be overhelming to the user - - -var nullifyElement = function nullifyElement(element) { - element.type = ''; - element.value = ''; - element["return"] = ''; - element.children = ''; - element.props = ''; -}; - -var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) { - if (!isImportRule(element)) { - return; - } - - if (element.parent) { - console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."); - nullifyElement(element); - } else if (isPrependedWithRegularRules(index, children)) { - console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."); - nullifyElement(element); - } -}; - -/* eslint-disable no-fallthrough */ - -function prefix(value, length) { - switch ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.hash)(value, length)) { - // color-adjust - case 5103: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + 'print-' + value + value; - // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function) - - case 5737: - case 4201: - case 3177: - case 3433: - case 1641: - case 4457: - case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break - - case 5572: - case 6356: - case 5844: - case 3191: - case 6645: - case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite, - - case 6391: - case 5879: - case 5623: - case 6135: - case 4599: - case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width) - - case 4215: - case 6389: - case 5109: - case 5365: - case 5621: - case 3829: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + value; - // appearance, user-select, transform, hyphens, text-size-adjust - - case 5349: - case 4246: - case 4810: - case 6968: - case 2756: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MOZ + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + value + value; - // flex, flex-direction - - case 6828: - case 4268: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + value + value; - // order - - case 6165: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'flex-' + value + value; - // align-items - - case 5187: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(\w+).+(:[^]+)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + 'box-$1$2' + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'flex-$1$2') + value; - // align-self - - case 5443: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'flex-item-' + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /flex-|-self/, '') + value; - // align-content - - case 4675: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'flex-line-pack' + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /align-content|flex-|-self/, '') + value; - // flex-shrink - - case 5548: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, 'shrink', 'negative') + value; - // flex-basis - - case 5292: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, 'basis', 'preferred-size') + value; - // flex-grow - - case 6060: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + 'box-' + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, '-grow', '') + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, 'grow', 'positive') + value; - // transition - - case 4554: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /([^-])(transform)/g, '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$2') + value; - // cursor - - case 6187: - return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)((0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)((0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(zoom-|grab)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$1'), /(image-set)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$1'), value, '') + value; - // background, background-image - - case 5495: - case 3959: - return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(image-set\([^]*)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$1' + '$`$1'); - // justify-content - - case 4968: - return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)((0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(.+:)(flex-)?(.*)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + 'box-pack:$3' + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + value; - // (margin|padding)-inline-(start|end) - - case 4095: - case 3583: - case 4068: - case 2532: - return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(.+)-inline(.+)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$1$2') + value; - // (min|max)?(width|height|inline-size|block-size) - - case 8116: - case 7059: - case 5753: - case 5535: - case 5445: - case 5701: - case 4933: - case 4677: - case 5533: - case 5789: - case 5021: - case 4765: - // stretch, max-content, min-content, fill-available - if ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.strlen)(value) - 1 - length > 6) switch ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, length + 1)) { - // (m)ax-content, (m)in-content - case 109: - // - - if ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, length + 4) !== 45) break; - // (f)ill-available, (f)it-content - - case 102: - return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(.+:)(.+)-([^]+)/, '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$2-$3' + '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.MOZ + ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, length + 3) == 108 ? '$3' : '$2-$3')) + value; - // (s)tretch - - case 115: - return ~(0,stylis__WEBPACK_IMPORTED_MODULE_4__.indexof)(value, 'stretch') ? prefix((0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, 'stretch', 'fill-available'), length) + value : value; - } - break; - // position: sticky - - case 4949: - // (s)ticky? - if ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, length + 1) !== 115) break; - // display: (flex|inline-flex) - - case 6444: - switch ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, (0,stylis__WEBPACK_IMPORTED_MODULE_4__.strlen)(value) - 3 - (~(0,stylis__WEBPACK_IMPORTED_MODULE_4__.indexof)(value, '!important') && 10))) { - // stic(k)y - case 107: - return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, ':', ':' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT) + value; - // (inline-)?fl(e)x - - case 101: - return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$2$3' + '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + '$2box$3') + value; - } - - break; - // writing-mode - - case 5936: - switch ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, length + 11)) { - // vertical-l(r) - case 114: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /[svh]\w+-[tblr]{2}/, 'tb') + value; - // vertical-r(l) - - case 108: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value; - // horizontal(-)tb - - case 45: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /[svh]\w+-[tblr]{2}/, 'lr') + value; - } - - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + value + value; - } - - return value; -} - -var prefixer = function prefixer(element, index, children, callback) { - if (element.length > -1) if (!element["return"]) switch (element.type) { - case stylis__WEBPACK_IMPORTED_MODULE_5__.DECLARATION: - element["return"] = prefix(element.value, element.length); - break; - - case stylis__WEBPACK_IMPORTED_MODULE_5__.KEYFRAMES: - return (0,stylis__WEBPACK_IMPORTED_MODULE_6__.serialize)([(0,stylis__WEBPACK_IMPORTED_MODULE_3__.copy)(element, { - value: (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(element.value, '@', '@' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT) - })], callback); - - case stylis__WEBPACK_IMPORTED_MODULE_5__.RULESET: - if (element.length) return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.combine)(element.props, function (value) { - switch ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.match)(value, /(::plac\w+|:read-\w+)/)) { - // :read-(only|write) - case ':read-only': - case ':read-write': - return (0,stylis__WEBPACK_IMPORTED_MODULE_6__.serialize)([(0,stylis__WEBPACK_IMPORTED_MODULE_3__.copy)(element, { - props: [(0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /:(read-\w+)/, ':' + stylis__WEBPACK_IMPORTED_MODULE_5__.MOZ + '$1')] - })], callback); - // :placeholder - - case '::placeholder': - return (0,stylis__WEBPACK_IMPORTED_MODULE_6__.serialize)([(0,stylis__WEBPACK_IMPORTED_MODULE_3__.copy)(element, { - props: [(0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /:(plac\w+)/, ':' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + 'input-$1')] - }), (0,stylis__WEBPACK_IMPORTED_MODULE_3__.copy)(element, { - props: [(0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /:(plac\w+)/, ':' + stylis__WEBPACK_IMPORTED_MODULE_5__.MOZ + '$1')] - }), (0,stylis__WEBPACK_IMPORTED_MODULE_3__.copy)(element, { - props: [(0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /:(plac\w+)/, stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'input-$1')] - })], callback); - } - - return ''; - }); - } -}; - -var defaultStylisPlugins = [prefixer]; - -var createCache = function createCache(options) { - var key = options.key; - - if ( true && !key) { - throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements."); - } - - if (key === 'css') { - var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration - // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be) - // note this very very intentionally targets all style elements regardless of the key to ensure - // that creating a cache works inside of render of a React component - - Array.prototype.forEach.call(ssrStyles, function (node) { - // we want to only move elements which have a space in the data-emotion attribute value - // because that indicates that it is an Emotion 11 server-side rendered style elements - // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector - // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes) - // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles - // will not result in the Emotion 10 styles being destroyed - var dataEmotionAttribute = node.getAttribute('data-emotion'); - - if (dataEmotionAttribute.indexOf(' ') === -1) { - return; - } - document.head.appendChild(node); - node.setAttribute('data-s', ''); - }); - } - - var stylisPlugins = options.stylisPlugins || defaultStylisPlugins; - - if (true) { - // $FlowFixMe - if (/[^a-z-]/.test(key)) { - throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed"); - } - } - - var inserted = {}; - var container; - var nodesToHydrate = []; - - { - container = options.container || document.head; - Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which - // means that the style elements we're looking at are only Emotion 11 server-rendered style elements - document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) { - var attrib = node.getAttribute("data-emotion").split(' '); // $FlowFixMe - - for (var i = 1; i < attrib.length; i++) { - inserted[attrib[i]] = true; - } - - nodesToHydrate.push(node); - }); - } - - var _insert; - - var omnipresentPlugins = [compat, removeLabel]; - - if (true) { - omnipresentPlugins.push(createUnsafeSelectorsAlarm({ - get compat() { - return cache.compat; - } - - }), incorrectImportAlarm); - } - - { - var currentSheet; - var finalizingPlugins = [stylis__WEBPACK_IMPORTED_MODULE_6__.stringify, true ? function (element) { - if (!element.root) { - if (element["return"]) { - currentSheet.insert(element["return"]); - } else if (element.value && element.type !== stylis__WEBPACK_IMPORTED_MODULE_5__.COMMENT) { - // insert empty rule in non-production environments - // so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet - currentSheet.insert(element.value + "{}"); - } - } - } : 0]; - var serializer = (0,stylis__WEBPACK_IMPORTED_MODULE_7__.middleware)(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins)); - - var stylis = function stylis(styles) { - return (0,stylis__WEBPACK_IMPORTED_MODULE_6__.serialize)((0,stylis__WEBPACK_IMPORTED_MODULE_8__.compile)(styles), serializer); - }; - - _insert = function insert(selector, serialized, sheet, shouldCache) { - currentSheet = sheet; - - if ( true && serialized.map !== undefined) { - currentSheet = { - insert: function insert(rule) { - sheet.insert(rule + serialized.map); - } - }; - } - - stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles); - - if (shouldCache) { - cache.inserted[serialized.name] = true; - } - }; - } - - var cache = { - key: key, - sheet: new _emotion_sheet__WEBPACK_IMPORTED_MODULE_0__.StyleSheet({ - key: key, - container: container, - nonce: options.nonce, - speedy: options.speedy, - prepend: options.prepend, - insertionPoint: options.insertionPoint - }), - nonce: options.nonce, - inserted: inserted, - registered: {}, - insert: _insert - }; - cache.sheet.hydrate(nodesToHydrate); - return cache; -}; - - - - -/***/ }), - -/***/ "./node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js": -/*!*******************************************************************************************!*\ - !*** ./node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.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 */ createEmotion) -/* harmony export */ }); -/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @emotion/cache */ "./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"); -/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/serialize */ "./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"); -/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @emotion/utils */ "./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"); - - - - -function insertWithoutScoping(cache, serialized) { - if (cache.inserted[serialized.name] === undefined) { - return cache.insert('', serialized, cache.sheet, true); - } -} - -function merge(registered, css, className) { - var registeredStyles = []; - var rawClassName = (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_2__.getRegisteredStyles)(registered, registeredStyles, className); - - if (registeredStyles.length < 2) { - return className; - } - - return rawClassName + css(registeredStyles); -} - -var createEmotion = function createEmotion(options) { - var cache = (0,_emotion_cache__WEBPACK_IMPORTED_MODULE_0__["default"])(options); // $FlowFixMe - - cache.sheet.speedy = function (value) { - if ( true && this.ctr !== 0) { - throw new Error('speedy must be changed before any rules are inserted'); - } - - this.isSpeedy = value; - }; - - cache.compat = true; - - var css = function css() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_1__.serializeStyles)(args, cache.registered, undefined); - (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_2__.insertStyles)(cache, serialized, false); - return cache.key + "-" + serialized.name; - }; - - var keyframes = function keyframes() { - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_1__.serializeStyles)(args, cache.registered); - var animation = "animation-" + serialized.name; - insertWithoutScoping(cache, { - name: serialized.name, - styles: "@keyframes " + animation + "{" + serialized.styles + "}" - }); - return animation; - }; - - var injectGlobal = function injectGlobal() { - for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { - args[_key3] = arguments[_key3]; - } - - var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_1__.serializeStyles)(args, cache.registered); - insertWithoutScoping(cache, serialized); - }; - - var cx = function cx() { - for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) { - args[_key4] = arguments[_key4]; - } - - return merge(cache.registered, css, classnames(args)); - }; - - return { - css: css, - cx: cx, - injectGlobal: injectGlobal, - keyframes: keyframes, - hydrate: function hydrate(ids) { - ids.forEach(function (key) { - cache.inserted[key] = true; - }); - }, - flush: function flush() { - cache.registered = {}; - cache.inserted = {}; - cache.sheet.flush(); - }, - // $FlowFixMe - sheet: cache.sheet, - cache: cache, - getRegisteredStyles: _emotion_utils__WEBPACK_IMPORTED_MODULE_2__.getRegisteredStyles.bind(null, cache.registered), - merge: merge.bind(null, cache.registered, css) - }; -}; - -var classnames = function classnames(args) { - var cls = ''; - - for (var i = 0; i < args.length; i++) { - var arg = args[i]; - if (arg == null) continue; - var toAdd = void 0; - - switch (typeof arg) { - case 'boolean': - break; - - case 'object': - { - if (Array.isArray(arg)) { - toAdd = classnames(arg); - } else { - toAdd = ''; - - for (var k in arg) { - if (arg[k] && k) { - toAdd && (toAdd += ' '); - toAdd += k; - } - } - } - - break; - } - - default: - { - toAdd = arg; - } - } - - if (toAdd) { - cls && (cls += ' '); - cls += toAdd; - } - } - - return cls; -}; - - - - -/***/ }), - -/***/ "./node_modules/@emotion/css/dist/emotion-css.esm.js": -/*!***********************************************************!*\ - !*** ./node_modules/@emotion/css/dist/emotion-css.esm.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ cache: () => (/* binding */ cache), -/* harmony export */ css: () => (/* binding */ css), -/* harmony export */ cx: () => (/* binding */ cx), -/* harmony export */ flush: () => (/* binding */ flush), -/* harmony export */ getRegisteredStyles: () => (/* binding */ getRegisteredStyles), -/* harmony export */ hydrate: () => (/* binding */ hydrate), -/* harmony export */ injectGlobal: () => (/* binding */ injectGlobal), -/* harmony export */ keyframes: () => (/* binding */ keyframes), -/* harmony export */ merge: () => (/* binding */ merge), -/* harmony export */ sheet: () => (/* binding */ sheet) -/* harmony export */ }); -/* harmony import */ var _create_instance_dist_emotion_css_create_instance_esm_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../create-instance/dist/emotion-css-create-instance.esm.js */ "./node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js"); -/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/cache */ "./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"); -/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @emotion/serialize */ "./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"); -/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @emotion/utils */ "./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"); - - - - - -var _createEmotion = (0,_create_instance_dist_emotion_css_create_instance_esm_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ - key: 'css' -}), - flush = _createEmotion.flush, - hydrate = _createEmotion.hydrate, - cx = _createEmotion.cx, - merge = _createEmotion.merge, - getRegisteredStyles = _createEmotion.getRegisteredStyles, - injectGlobal = _createEmotion.injectGlobal, - keyframes = _createEmotion.keyframes, - css = _createEmotion.css, - sheet = _createEmotion.sheet, - cache = _createEmotion.cache; - - - - -/***/ }), - -/***/ "./node_modules/@emotion/hash/dist/emotion-hash.esm.js": -/*!*************************************************************!*\ - !*** ./node_modules/@emotion/hash/dist/emotion-hash.esm.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 */ murmur2) -/* harmony export */ }); -/* eslint-disable */ -// Inspired by https://github.com/garycourt/murmurhash-js -// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86 -function murmur2(str) { - // 'm' and 'r' are mixing constants generated offline. - // They're not really 'magic', they just happen to work well. - // const m = 0x5bd1e995; - // const r = 24; - // Initialize the hash - var h = 0; // Mix 4 bytes at a time into the hash - - var k, - i = 0, - len = str.length; - - for (; len >= 4; ++i, len -= 4) { - k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24; - k = - /* Math.imul(k, m): */ - (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16); - k ^= - /* k >>> r: */ - k >>> 24; - h = - /* Math.imul(k, m): */ - (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^ - /* Math.imul(h, m): */ - (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16); - } // Handle the last few bytes of the input array - - - switch (len) { - case 3: - h ^= (str.charCodeAt(i + 2) & 0xff) << 16; - - case 2: - h ^= (str.charCodeAt(i + 1) & 0xff) << 8; - - case 1: - h ^= str.charCodeAt(i) & 0xff; - h = - /* Math.imul(h, m): */ - (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16); - } // Do a few final mixes of the hash to ensure the last few - // bytes are well-incorporated. - - - h ^= h >>> 13; - h = - /* Math.imul(h, m): */ - (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16); - return ((h ^ h >>> 15) >>> 0).toString(36); -} - - - - -/***/ }), - -/***/ "./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.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 */ isPropValid) -/* harmony export */ }); -/* harmony import */ var _emotion_memoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @emotion/memoize */ "./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"); - - -var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23 - -var isPropValid = /* #__PURE__ */(0,_emotion_memoize__WEBPACK_IMPORTED_MODULE_0__["default"])(function (prop) { - return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 - /* o */ - && prop.charCodeAt(1) === 110 - /* n */ - && prop.charCodeAt(2) < 91; -} -/* Z+1 */ -); - - - - -/***/ }), - -/***/ "./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@emotion/memoize/dist/emotion-memoize.esm.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 */ memoize) -/* harmony export */ }); -function memoize(fn) { - var cache = Object.create(null); - return function (arg) { - if (cache[arg] === undefined) cache[arg] = fn(arg); - return cache[arg]; - }; -} - - - - -/***/ }), - -/***/ "./node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js": -/*!*****************************************************************************************************!*\ - !*** ./node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.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 */ hoistNonReactStatics) -/* harmony export */ }); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0__); - - -// this file isolates this package that is not tree-shakeable -// and if this module doesn't actually contain any logic of its own -// then Rollup just use 'hoist-non-react-statics' directly in other chunks - -var hoistNonReactStatics = (function (targetComponent, sourceComponent) { - return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0___default()(targetComponent, sourceComponent); -}); - - - - -/***/ }), - -/***/ "./node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js ***! - \**********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ C: () => (/* binding */ CacheProvider), -/* harmony export */ E: () => (/* binding */ Emotion$1), -/* harmony export */ T: () => (/* binding */ ThemeContext), -/* harmony export */ _: () => (/* binding */ __unsafe_useEmotionCache), -/* harmony export */ a: () => (/* binding */ ThemeProvider), -/* harmony export */ b: () => (/* binding */ withTheme), -/* harmony export */ c: () => (/* binding */ createEmotionProps), -/* harmony export */ h: () => (/* binding */ hasOwn), -/* harmony export */ i: () => (/* binding */ isBrowser), -/* harmony export */ u: () => (/* binding */ useTheme), -/* harmony export */ w: () => (/* binding */ withEmotionCache) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/cache */ "./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @emotion/weak-memoize */ "./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js"); -/* harmony import */ var _isolated_hnrs_dist_emotion_react_isolated_hnrs_browser_esm_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js */ "./node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js"); -/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @emotion/utils */ "./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"); -/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @emotion/serialize */ "./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"); -/* harmony import */ var _emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @emotion/use-insertion-effect-with-fallbacks */ "./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js"); - - - - - - - - - - -var isBrowser = "object" !== 'undefined'; -var hasOwn = {}.hasOwnProperty; - -var EmotionCacheContext = /* #__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case -// because this module is primarily intended for the browser and node -// but it's also required in react native and similar environments sometimes -// and we could have a special build just for that -// but this is much easier and the native packages -// might use a different theme context in the future anyway -typeof HTMLElement !== 'undefined' ? /* #__PURE__ */(0,_emotion_cache__WEBPACK_IMPORTED_MODULE_1__["default"])({ - key: 'css' -}) : null); - -if (true) { - EmotionCacheContext.displayName = 'EmotionCacheContext'; -} - -var CacheProvider = EmotionCacheContext.Provider; -var __unsafe_useEmotionCache = function useEmotionCache() { - return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EmotionCacheContext); -}; - -var withEmotionCache = function withEmotionCache(func) { - // $FlowFixMe - return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) { - // the cache will never be null in the browser - var cache = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EmotionCacheContext); - return func(props, cache, ref); - }); -}; - -if (!isBrowser) { - withEmotionCache = function withEmotionCache(func) { - return function (props) { - var cache = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EmotionCacheContext); - - if (cache === null) { - // yes, we're potentially creating this on every render - // it doesn't actually matter though since it's only on the server - // so there will only every be a single render - // that could change in the future because of suspense and etc. but for now, - // this works and i don't want to optimise for a future thing that we aren't sure about - cache = (0,_emotion_cache__WEBPACK_IMPORTED_MODULE_1__["default"])({ - key: 'css' - }); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(EmotionCacheContext.Provider, { - value: cache - }, func(props, cache)); - } else { - return func(props, cache); - } - }; - }; -} - -var ThemeContext = /* #__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__.createContext({}); - -if (true) { - ThemeContext.displayName = 'EmotionThemeContext'; -} - -var useTheme = function useTheme() { - return react__WEBPACK_IMPORTED_MODULE_0__.useContext(ThemeContext); -}; - -var getTheme = function getTheme(outerTheme, theme) { - if (typeof theme === 'function') { - var mergedTheme = theme(outerTheme); - - if ( true && (mergedTheme == null || typeof mergedTheme !== 'object' || Array.isArray(mergedTheme))) { - throw new Error('[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!'); - } - - return mergedTheme; - } - - if ( true && (theme == null || typeof theme !== 'object' || Array.isArray(theme))) { - throw new Error('[ThemeProvider] Please make your theme prop a plain object'); - } - - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, outerTheme, theme); -}; - -var createCacheWithTheme = /* #__PURE__ */(0,_emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__["default"])(function (outerTheme) { - return (0,_emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__["default"])(function (theme) { - return getTheme(outerTheme, theme); - }); -}); -var ThemeProvider = function ThemeProvider(props) { - var theme = react__WEBPACK_IMPORTED_MODULE_0__.useContext(ThemeContext); - - if (props.theme !== theme) { - theme = createCacheWithTheme(theme)(props.theme); - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(ThemeContext.Provider, { - value: theme - }, props.children); -}; -function withTheme(Component) { - var componentName = Component.displayName || Component.name || 'Component'; - - var render = function render(props, ref) { - var theme = react__WEBPACK_IMPORTED_MODULE_0__.useContext(ThemeContext); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({ - theme: theme, - ref: ref - }, props)); - }; // $FlowFixMe - - - var WithTheme = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(render); - WithTheme.displayName = "WithTheme(" + componentName + ")"; - return (0,_isolated_hnrs_dist_emotion_react_isolated_hnrs_browser_esm_js__WEBPACK_IMPORTED_MODULE_7__["default"])(WithTheme, Component); -} - -var getLastPart = function getLastPart(functionName) { - // The match may be something like 'Object.createEmotionProps' or - // 'Loader.prototype.render' - var parts = functionName.split('.'); - return parts[parts.length - 1]; -}; - -var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) { - // V8 - var match = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line); - if (match) return getLastPart(match[1]); // Safari / Firefox - - match = /^([A-Za-z0-9$.]+)@/.exec(line); - if (match) return getLastPart(match[1]); - return undefined; -}; - -var internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS -// identifiers, thus we only need to replace what is a valid character for JS, -// but not for CSS. - -var sanitizeIdentifier = function sanitizeIdentifier(identifier) { - return identifier.replace(/\$/g, '-'); -}; - -var getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) { - if (!stackTrace) return undefined; - var lines = stackTrace.split('\n'); - - for (var i = 0; i < lines.length; i++) { - var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just "Error" - - if (!functionName) continue; // If we reach one of these, we have gone too far and should quit - - if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an - // uppercase letter - - if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName); - } - - return undefined; -}; - -var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__'; -var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__'; -var createEmotionProps = function createEmotionProps(type, props) { - if ( true && typeof props.css === 'string' && // check if there is a css declaration - props.css.indexOf(':') !== -1) { - throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + props.css + "`"); - } - - var newProps = {}; - - for (var key in props) { - if (hasOwn.call(props, key)) { - newProps[key] = props[key]; - } - } - - newProps[typePropName] = type; // For performance, only call getLabelFromStackTrace in development and when - // the label hasn't already been computed - - if ( true && !!props.css && (typeof props.css !== 'object' || typeof props.css.name !== 'string' || props.css.name.indexOf('-') === -1)) { - var label = getLabelFromStackTrace(new Error().stack); - if (label) newProps[labelPropName] = label; - } - - return newProps; -}; - -var Insertion = function Insertion(_ref) { - var cache = _ref.cache, - serialized = _ref.serialized, - isStringTag = _ref.isStringTag; - (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_4__.registerStyles)(cache, serialized, isStringTag); - (0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_6__.useInsertionEffectAlwaysWithSyncFallback)(function () { - return (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_4__.insertStyles)(cache, serialized, isStringTag); - }); - - return null; -}; - -var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) { - var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works - // not passing the registered cache to serializeStyles because it would - // make certain babel optimisations not possible - - if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) { - cssProp = cache.registered[cssProp]; - } - - var WrappedComponent = props[typePropName]; - var registeredStyles = [cssProp]; - var className = ''; - - if (typeof props.className === 'string') { - className = (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_4__.getRegisteredStyles)(cache.registered, registeredStyles, props.className); - } else if (props.className != null) { - className = props.className + " "; - } - - var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_5__.serializeStyles)(registeredStyles, undefined, react__WEBPACK_IMPORTED_MODULE_0__.useContext(ThemeContext)); - - if ( true && serialized.name.indexOf('-') === -1) { - var labelFromStack = props[labelPropName]; - - if (labelFromStack) { - serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_5__.serializeStyles)([serialized, 'label:' + labelFromStack + ';']); - } - } - - className += cache.key + "-" + serialized.name; - var newProps = {}; - - for (var key in props) { - if (hasOwn.call(props, key) && key !== 'css' && key !== typePropName && ( false || key !== labelPropName)) { - newProps[key] = props[key]; - } - } - - newProps.ref = ref; - newProps.className = className; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Insertion, { - cache: cache, - serialized: serialized, - isStringTag: typeof WrappedComponent === 'string' - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(WrappedComponent, newProps)); -}); - -if (true) { - Emotion.displayName = 'EmotionCssPropInternal'; -} - -var Emotion$1 = Emotion; - - - - -/***/ }), - -/***/ "./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js ***! - \*******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ serializeStyles: () => (/* binding */ serializeStyles) -/* harmony export */ }); -/* harmony import */ var _emotion_hash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @emotion/hash */ "./node_modules/@emotion/hash/dist/emotion-hash.esm.js"); -/* harmony import */ var _emotion_unitless__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/unitless */ "./node_modules/@emotion/serialize/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js"); -/* harmony import */ var _emotion_memoize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @emotion/memoize */ "./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"); - - - - -var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences"; -var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."; -var hyphenateRegex = /[A-Z]|^ms/g; -var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g; - -var isCustomProperty = function isCustomProperty(property) { - return property.charCodeAt(1) === 45; -}; - -var isProcessableValue = function isProcessableValue(value) { - return value != null && typeof value !== 'boolean'; -}; - -var processStyleName = /* #__PURE__ */(0,_emotion_memoize__WEBPACK_IMPORTED_MODULE_2__["default"])(function (styleName) { - return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase(); -}); - -var processStyleValue = function processStyleValue(key, value) { - switch (key) { - case 'animation': - case 'animationName': - { - if (typeof value === 'string') { - return value.replace(animationRegex, function (match, p1, p2) { - cursor = { - name: p1, - styles: p2, - next: cursor - }; - return p1; - }); - } - } - } - - if (_emotion_unitless__WEBPACK_IMPORTED_MODULE_1__["default"][key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) { - return value + 'px'; - } - - return value; -}; - -if (true) { - var contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/; - var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset']; - var oldProcessStyleValue = processStyleValue; - var msPattern = /^-ms-/; - var hyphenPattern = /-(.)/g; - var hyphenatedCache = {}; - - processStyleValue = function processStyleValue(key, value) { - if (key === 'content') { - if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) { - throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`"); - } - } - - var processed = oldProcessStyleValue(key, value); - - if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) { - hyphenatedCache[key] = true; - console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) { - return _char.toUpperCase(); - }) + "?"); - } - - return processed; - }; -} - -var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.'; - -function handleInterpolation(mergedProps, registered, interpolation) { - if (interpolation == null) { - return ''; - } - - if (interpolation.__emotion_styles !== undefined) { - if ( true && interpolation.toString() === 'NO_COMPONENT_SELECTOR') { - throw new Error(noComponentSelectorMessage); - } - - return interpolation; - } - - switch (typeof interpolation) { - case 'boolean': - { - return ''; - } - - case 'object': - { - if (interpolation.anim === 1) { - cursor = { - name: interpolation.name, - styles: interpolation.styles, - next: cursor - }; - return interpolation.name; - } - - if (interpolation.styles !== undefined) { - var next = interpolation.next; - - if (next !== undefined) { - // not the most efficient thing ever but this is a pretty rare case - // and there will be very few iterations of this generally - while (next !== undefined) { - cursor = { - name: next.name, - styles: next.styles, - next: cursor - }; - next = next.next; - } - } - - var styles = interpolation.styles + ";"; - - if ( true && interpolation.map !== undefined) { - styles += interpolation.map; - } - - return styles; - } - - return createStringFromObject(mergedProps, registered, interpolation); - } - - case 'function': - { - if (mergedProps !== undefined) { - var previousCursor = cursor; - var result = interpolation(mergedProps); - cursor = previousCursor; - return handleInterpolation(mergedProps, registered, result); - } else if (true) { - console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`"); - } - - break; - } - - case 'string': - if (true) { - var matched = []; - var replaced = interpolation.replace(animationRegex, function (match, p1, p2) { - var fakeVarName = "animation" + matched.length; - matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`"); - return "${" + fakeVarName + "}"; - }); - - if (matched.length) { - console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`")); - } - } - - break; - } // finalize string values (regular strings and functions interpolated into css calls) - - - if (registered == null) { - return interpolation; - } - - var cached = registered[interpolation]; - return cached !== undefined ? cached : interpolation; -} - -function createStringFromObject(mergedProps, registered, obj) { - var string = ''; - - if (Array.isArray(obj)) { - for (var i = 0; i < obj.length; i++) { - string += handleInterpolation(mergedProps, registered, obj[i]) + ";"; - } - } else { - for (var _key in obj) { - var value = obj[_key]; - - if (typeof value !== 'object') { - if (registered != null && registered[value] !== undefined) { - string += _key + "{" + registered[value] + "}"; - } else if (isProcessableValue(value)) { - string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";"; - } - } else { - if (_key === 'NO_COMPONENT_SELECTOR' && "development" !== 'production') { - throw new Error(noComponentSelectorMessage); - } - - if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) { - for (var _i = 0; _i < value.length; _i++) { - if (isProcessableValue(value[_i])) { - string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";"; - } - } - } else { - var interpolated = handleInterpolation(mergedProps, registered, value); - - switch (_key) { - case 'animation': - case 'animationName': - { - string += processStyleName(_key) + ":" + interpolated + ";"; - break; - } - - default: - { - if ( true && _key === 'undefined') { - console.error(UNDEFINED_AS_OBJECT_KEY_ERROR); - } - - string += _key + "{" + interpolated + "}"; - } - } - } - } - } - } - - return string; -} - -var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g; -var sourceMapPattern; - -if (true) { - sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g; -} // this is the cursor for keyframes -// keyframes are stored on the SerializedStyles object as a linked list - - -var cursor; -var serializeStyles = function serializeStyles(args, registered, mergedProps) { - if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) { - return args[0]; - } - - var stringMode = true; - var styles = ''; - cursor = undefined; - var strings = args[0]; - - if (strings == null || strings.raw === undefined) { - stringMode = false; - styles += handleInterpolation(mergedProps, registered, strings); - } else { - if ( true && strings[0] === undefined) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); - } - - styles += strings[0]; - } // we start at 1 since we've already handled the first arg - - - for (var i = 1; i < args.length; i++) { - styles += handleInterpolation(mergedProps, registered, args[i]); - - if (stringMode) { - if ( true && strings[i] === undefined) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); - } - - styles += strings[i]; - } - } - - var sourceMap; - - if (true) { - styles = styles.replace(sourceMapPattern, function (match) { - sourceMap = match; - return ''; - }); - } // using a global regex with .exec is stateful so lastIndex has to be reset each time - - - labelPattern.lastIndex = 0; - var identifierName = ''; - var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5 - - while ((match = labelPattern.exec(styles)) !== null) { - identifierName += '-' + // $FlowFixMe we know it's not null - match[1]; - } - - var name = (0,_emotion_hash__WEBPACK_IMPORTED_MODULE_0__["default"])(styles) + identifierName; - - if (true) { - // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it) - return { - name: name, - styles: styles, - map: sourceMap, - next: cursor, - toString: function toString() { - return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; - } - }; - } - - return { - name: name, - styles: styles, - next: cursor - }; -}; - - - - -/***/ }), - -/***/ "./node_modules/@emotion/serialize/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js": -/*!*****************************************************************************************************!*\ - !*** ./node_modules/@emotion/serialize/node_modules/@emotion/unitless/dist/emotion-unitless.esm.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 */ unitlessKeys) -/* harmony export */ }); -var unitlessKeys = { - animationIterationCount: 1, - aspectRatio: 1, - borderImageOutset: 1, - borderImageSlice: 1, - borderImageWidth: 1, - boxFlex: 1, - boxFlexGroup: 1, - boxOrdinalGroup: 1, - columnCount: 1, - columns: 1, - flex: 1, - flexGrow: 1, - flexPositive: 1, - flexShrink: 1, - flexNegative: 1, - flexOrder: 1, - gridRow: 1, - gridRowEnd: 1, - gridRowSpan: 1, - gridRowStart: 1, - gridColumn: 1, - gridColumnEnd: 1, - gridColumnSpan: 1, - gridColumnStart: 1, - msGridRow: 1, - msGridRowSpan: 1, - msGridColumn: 1, - msGridColumnSpan: 1, - fontWeight: 1, - lineHeight: 1, - opacity: 1, - order: 1, - orphans: 1, - tabSize: 1, - widows: 1, - zIndex: 1, - zoom: 1, - WebkitLineClamp: 1, - // SVG-related properties - fillOpacity: 1, - floodOpacity: 1, - stopOpacity: 1, - strokeDasharray: 1, - strokeDashoffset: 1, - strokeMiterlimit: 1, - strokeOpacity: 1, - strokeWidth: 1 -}; - - - - -/***/ }), - -/***/ "./node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ StyleSheet: () => (/* binding */ StyleSheet) -/* harmony export */ }); -/* - -Based off glamor's StyleSheet, thanks Sunil ❤️ - -high performance StyleSheet for css-in-js systems - -- uses multiple style tags behind the scenes for millions of rules -- uses `insertRule` for appending in production for *much* faster performance - -// usage - -import { StyleSheet } from '@emotion/sheet' - -let styleSheet = new StyleSheet({ key: '', container: document.head }) - -styleSheet.insert('#box { border: 1px solid red; }') -- appends a css rule into the stylesheet - -styleSheet.flush() -- empties the stylesheet of all its contents - -*/ -// $FlowFixMe -function sheetForTag(tag) { - if (tag.sheet) { - // $FlowFixMe - return tag.sheet; - } // this weirdness brought to you by firefox - - /* istanbul ignore next */ - - - for (var i = 0; i < document.styleSheets.length; i++) { - if (document.styleSheets[i].ownerNode === tag) { - // $FlowFixMe - return document.styleSheets[i]; - } - } -} - -function createStyleElement(options) { - var tag = document.createElement('style'); - tag.setAttribute('data-emotion', options.key); - - if (options.nonce !== undefined) { - tag.setAttribute('nonce', options.nonce); - } - - tag.appendChild(document.createTextNode('')); - tag.setAttribute('data-s', ''); - return tag; -} - -var StyleSheet = /*#__PURE__*/function () { - // Using Node instead of HTMLElement since container may be a ShadowRoot - function StyleSheet(options) { - var _this = this; - - this._insertTag = function (tag) { - var before; - - if (_this.tags.length === 0) { - if (_this.insertionPoint) { - before = _this.insertionPoint.nextSibling; - } else if (_this.prepend) { - before = _this.container.firstChild; - } else { - before = _this.before; - } - } else { - before = _this.tags[_this.tags.length - 1].nextSibling; - } - - _this.container.insertBefore(tag, before); - - _this.tags.push(tag); - }; - - this.isSpeedy = options.speedy === undefined ? "development" === 'production' : options.speedy; - this.tags = []; - this.ctr = 0; - this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets - - this.key = options.key; - this.container = options.container; - this.prepend = options.prepend; - this.insertionPoint = options.insertionPoint; - this.before = null; - } - - var _proto = StyleSheet.prototype; - - _proto.hydrate = function hydrate(nodes) { - nodes.forEach(this._insertTag); - }; - - _proto.insert = function insert(rule) { - // the max length is how many rules we have per style tag, it's 65000 in speedy mode - // it's 1 in dev because we insert source maps that map a single rule to a location - // and you can only have one source map per style tag - if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) { - this._insertTag(createStyleElement(this)); - } - - var tag = this.tags[this.tags.length - 1]; - - if (true) { - var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105; - - if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) { - // this would only cause problem in speedy mode - // but we don't want enabling speedy to affect the observable behavior - // so we report this error at all times - console.error("You're attempting to insert the following rule:\n" + rule + '\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.'); - } - this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule; - } - - if (this.isSpeedy) { - var sheet = sheetForTag(tag); - - try { - // this is the ultrafast version, works across browsers - // the big drawback is that the css won't be editable in devtools - sheet.insertRule(rule, sheet.cssRules.length); - } catch (e) { - if ( true && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) { - console.error("There was a problem inserting the following rule: \"" + rule + "\"", e); - } - } - } else { - tag.appendChild(document.createTextNode(rule)); - } - - this.ctr++; - }; - - _proto.flush = function flush() { - // $FlowFixMe - this.tags.forEach(function (tag) { - return tag.parentNode && tag.parentNode.removeChild(tag); - }); - this.tags = []; - this.ctr = 0; - - if (true) { - this._alreadyInsertedOrderInsensitiveRule = false; - } - }; - - return StyleSheet; -}(); - - - - -/***/ }), - -/***/ "./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.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 */ createStyled) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @emotion/is-prop-valid */ "./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js"); -/* harmony import */ var _emotion_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @emotion/react */ "./node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js"); -/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @emotion/utils */ "./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"); -/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @emotion/serialize */ "./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"); -/* harmony import */ var _emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @emotion/use-insertion-effect-with-fallbacks */ "./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js"); - - - - - - - - -var testOmitPropsOnStringTag = _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_2__["default"]; - -var testOmitPropsOnComponent = function testOmitPropsOnComponent(key) { - return key !== 'theme'; -}; - -var getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) { - return typeof tag === 'string' && // 96 is one less than the char code - // for "a" so this is checking that - // it's a lowercase character - tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent; -}; -var composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) { - var shouldForwardProp; - - if (options) { - var optionsShouldForwardProp = options.shouldForwardProp; - shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName) { - return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName); - } : optionsShouldForwardProp; - } - - if (typeof shouldForwardProp !== 'function' && isReal) { - shouldForwardProp = tag.__emotion_forwardProp; - } - - return shouldForwardProp; -}; - -var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences"; - -var Insertion = function Insertion(_ref) { - var cache = _ref.cache, - serialized = _ref.serialized, - isStringTag = _ref.isStringTag; - (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_3__.registerStyles)(cache, serialized, isStringTag); - (0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_5__.useInsertionEffectAlwaysWithSyncFallback)(function () { - return (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_3__.insertStyles)(cache, serialized, isStringTag); - }); - - return null; -}; - -var createStyled = function createStyled(tag, options) { - if (true) { - if (tag === undefined) { - throw new Error('You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.'); - } - } - - var isReal = tag.__emotion_real === tag; - var baseTag = isReal && tag.__emotion_base || tag; - var identifierName; - var targetClassName; - - if (options !== undefined) { - identifierName = options.label; - targetClassName = options.target; - } - - var shouldForwardProp = composeShouldForwardProps(tag, options, isReal); - var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag); - var shouldUseAs = !defaultShouldForwardProp('as'); - return function () { - var args = arguments; - var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : []; - - if (identifierName !== undefined) { - styles.push("label:" + identifierName + ";"); - } - - if (args[0] == null || args[0].raw === undefined) { - styles.push.apply(styles, args); - } else { - if ( true && args[0][0] === undefined) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); - } - - styles.push(args[0][0]); - var len = args.length; - var i = 1; - - for (; i < len; i++) { - if ( true && args[0][i] === undefined) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); - } - - styles.push(args[i], args[0][i]); - } - } // $FlowFixMe: we need to cast StatelessFunctionalComponent to our PrivateStyledComponent class - - - var Styled = (0,_emotion_react__WEBPACK_IMPORTED_MODULE_6__.w)(function (props, cache, ref) { - var FinalTag = shouldUseAs && props.as || baseTag; - var className = ''; - var classInterpolations = []; - var mergedProps = props; - - if (props.theme == null) { - mergedProps = {}; - - for (var key in props) { - mergedProps[key] = props[key]; - } - - mergedProps.theme = react__WEBPACK_IMPORTED_MODULE_1__.useContext(_emotion_react__WEBPACK_IMPORTED_MODULE_6__.T); - } - - if (typeof props.className === 'string') { - className = (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_3__.getRegisteredStyles)(cache.registered, classInterpolations, props.className); - } else if (props.className != null) { - className = props.className + " "; - } - - var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_4__.serializeStyles)(styles.concat(classInterpolations), cache.registered, mergedProps); - className += cache.key + "-" + serialized.name; - - if (targetClassName !== undefined) { - className += " " + targetClassName; - } - - var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp; - var newProps = {}; - - for (var _key in props) { - if (shouldUseAs && _key === 'as') continue; - - if ( // $FlowFixMe - finalShouldForwardProp(_key)) { - newProps[_key] = props[_key]; - } - } - - newProps.className = className; - newProps.ref = ref; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(Insertion, { - cache: cache, - serialized: serialized, - isStringTag: typeof FinalTag === 'string' - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(FinalTag, newProps)); - }); - Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")"; - Styled.defaultProps = tag.defaultProps; - Styled.__emotion_real = Styled; - Styled.__emotion_base = baseTag; - Styled.__emotion_styles = styles; - Styled.__emotion_forwardProp = shouldForwardProp; - Object.defineProperty(Styled, 'toString', { - value: function value() { - if (targetClassName === undefined && "development" !== 'production') { - return 'NO_COMPONENT_SELECTOR'; - } // $FlowFixMe: coerce undefined to string - - - return "." + targetClassName; - } - }); - - Styled.withComponent = function (nextTag, nextOptions) { - return createStyled(nextTag, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, options, nextOptions, { - shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true) - })).apply(void 0, styles); - }; - - return Styled; - }; -}; - - - - -/***/ }), - -/***/ "./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js": -/*!***********************************************************************************************************************************!*\ - !*** ./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js ***! - \***********************************************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useInsertionEffectAlwaysWithSyncFallback: () => (/* binding */ useInsertionEffectAlwaysWithSyncFallback), -/* harmony export */ useInsertionEffectWithLayoutFallback: () => (/* binding */ useInsertionEffectWithLayoutFallback) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var syncFallback = function syncFallback(create) { - return create(); -}; - -var useInsertionEffect = react__WEBPACK_IMPORTED_MODULE_0__['useInsertion' + 'Effect'] ? react__WEBPACK_IMPORTED_MODULE_0__['useInsertion' + 'Effect'] : false; -var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback; -var useInsertionEffectWithLayoutFallback = useInsertionEffect || react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect; - - - - -/***/ }), - -/***/ "./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getRegisteredStyles: () => (/* binding */ getRegisteredStyles), -/* harmony export */ insertStyles: () => (/* binding */ insertStyles), -/* harmony export */ registerStyles: () => (/* binding */ registerStyles) -/* harmony export */ }); -var isBrowser = "object" !== 'undefined'; -function getRegisteredStyles(registered, registeredStyles, classNames) { - var rawClassName = ''; - classNames.split(' ').forEach(function (className) { - if (registered[className] !== undefined) { - registeredStyles.push(registered[className] + ";"); - } else { - rawClassName += className + " "; - } - }); - return rawClassName; -} -var registerStyles = function registerStyles(cache, serialized, isStringTag) { - var className = cache.key + "-" + serialized.name; - - if ( // we only need to add the styles to the registered cache if the - // class name could be used further down - // the tree but if it's a string tag, we know it won't - // so we don't have to add it to registered cache. - // this improves memory usage since we can avoid storing the whole style string - (isStringTag === false || // we need to always store it if we're in compat mode and - // in node since emotion-server relies on whether a style is in - // the registered cache to know whether a style is global or not - // also, note that this check will be dead code eliminated in the browser - isBrowser === false ) && cache.registered[className] === undefined) { - cache.registered[className] = serialized.styles; - } -}; -var insertStyles = function insertStyles(cache, serialized, isStringTag) { - registerStyles(cache, serialized, isStringTag); - var className = cache.key + "-" + serialized.name; - - if (cache.inserted[serialized.name] === undefined) { - var current = serialized; - - do { - cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true); - - current = current.next; - } while (current !== undefined); - } -}; - - - - -/***/ }), - -/***/ "./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.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 */ weakMemoize) -/* harmony export */ }); -var weakMemoize = function weakMemoize(func) { - // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps - var cache = new WeakMap(); - return function (arg) { - if (cache.has(arg)) { - // $FlowFixMe - return cache.get(arg); - } - - var ret = func(arg); - cache.set(arg, ret); - return ret; - }; -}; - - - - -/***/ }), - -/***/ "./node_modules/@tannin/compile/index.js": -/*!***********************************************!*\ - !*** ./node_modules/@tannin/compile/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": () => (/* binding */ compile) -/* harmony export */ }); -/* harmony import */ var _tannin_postfix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tannin/postfix */ "./node_modules/@tannin/postfix/index.js"); -/* harmony import */ var _tannin_evaluate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tannin/evaluate */ "./node_modules/@tannin/evaluate/index.js"); - - - -/** - * Given a C expression, returns a function which can be called to evaluate its - * result. - * - * @example - * - * ```js - * import compile from '@tannin/compile'; - * - * const evaluate = compile( 'n > 1' ); - * - * evaluate( { n: 2 } ); - * // ⇒ true - * ``` - * - * @param {string} expression C expression. - * - * @return {(variables?:{[variable:string]:*})=>*} Compiled evaluator. - */ -function compile( expression ) { - var terms = (0,_tannin_postfix__WEBPACK_IMPORTED_MODULE_0__["default"])( expression ); - - return function( variables ) { - return (0,_tannin_evaluate__WEBPACK_IMPORTED_MODULE_1__["default"])( terms, variables ); - }; -} - - -/***/ }), - -/***/ "./node_modules/@tannin/evaluate/index.js": -/*!************************************************!*\ - !*** ./node_modules/@tannin/evaluate/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": () => (/* binding */ evaluate) -/* harmony export */ }); -/** - * Operator callback functions. - * - * @type {Object} - */ -var OPERATORS = { - '!': function( a ) { - return ! a; - }, - '*': function( a, b ) { - return a * b; - }, - '/': function( a, b ) { - return a / b; - }, - '%': function( a, b ) { - return a % b; - }, - '+': function( a, b ) { - return a + b; - }, - '-': function( a, b ) { - return a - b; - }, - '<': function( a, b ) { - return a < b; - }, - '<=': function( a, b ) { - return a <= b; - }, - '>': function( a, b ) { - return a > b; - }, - '>=': function( a, b ) { - return a >= b; - }, - '==': function( a, b ) { - return a === b; - }, - '!=': function( a, b ) { - return a !== b; - }, - '&&': function( a, b ) { - return a && b; - }, - '||': function( a, b ) { - return a || b; - }, - '?:': function( a, b, c ) { - if ( a ) { - throw b; - } - - return c; - }, -}; - -/** - * Given an array of postfix terms and operand variables, returns the result of - * the postfix evaluation. - * - * @example - * - * ```js - * import evaluate from '@tannin/evaluate'; - * - * // 3 + 4 * 5 / 6 ⇒ '3 4 5 * 6 / +' - * const terms = [ '3', '4', '5', '*', '6', '/', '+' ]; - * - * evaluate( terms, {} ); - * // ⇒ 6.333333333333334 - * ``` - * - * @param {string[]} postfix Postfix terms. - * @param {Object} variables Operand variables. - * - * @return {*} Result of evaluation. - */ -function evaluate( postfix, variables ) { - var stack = [], - i, j, args, getOperatorResult, term, value; - - for ( i = 0; i < postfix.length; i++ ) { - term = postfix[ i ]; - - getOperatorResult = OPERATORS[ term ]; - if ( getOperatorResult ) { - // Pop from stack by number of function arguments. - j = getOperatorResult.length; - args = Array( j ); - while ( j-- ) { - args[ j ] = stack.pop(); - } - - try { - value = getOperatorResult.apply( null, args ); - } catch ( earlyReturn ) { - return earlyReturn; - } - } else if ( variables.hasOwnProperty( term ) ) { - value = variables[ term ]; - } else { - value = +term; - } - - stack.push( value ); - } - - return stack[ 0 ]; -} - - -/***/ }), - -/***/ "./node_modules/@tannin/plural-forms/index.js": -/*!****************************************************!*\ - !*** ./node_modules/@tannin/plural-forms/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": () => (/* binding */ pluralForms) -/* harmony export */ }); -/* harmony import */ var _tannin_compile__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tannin/compile */ "./node_modules/@tannin/compile/index.js"); - - -/** - * Given a C expression, returns a function which, when called with a value, - * evaluates the result with the value assumed to be the "n" variable of the - * expression. The result will be coerced to its numeric equivalent. - * - * @param {string} expression C expression. - * - * @return {Function} Evaluator function. - */ -function pluralForms( expression ) { - var evaluate = (0,_tannin_compile__WEBPACK_IMPORTED_MODULE_0__["default"])( expression ); - - return function( n ) { - return +evaluate( { n: n } ); - }; -} - - -/***/ }), - -/***/ "./node_modules/@tannin/postfix/index.js": -/*!***********************************************!*\ - !*** ./node_modules/@tannin/postfix/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": () => (/* binding */ postfix) -/* harmony export */ }); -var PRECEDENCE, OPENERS, TERMINATORS, PATTERN; - -/** - * Operator precedence mapping. - * - * @type {Object} - */ -PRECEDENCE = { - '(': 9, - '!': 8, - '*': 7, - '/': 7, - '%': 7, - '+': 6, - '-': 6, - '<': 5, - '<=': 5, - '>': 5, - '>=': 5, - '==': 4, - '!=': 4, - '&&': 3, - '||': 2, - '?': 1, - '?:': 1, -}; - -/** - * Characters which signal pair opening, to be terminated by terminators. - * - * @type {string[]} - */ -OPENERS = [ '(', '?' ]; - -/** - * Characters which signal pair termination, the value an array with the - * opener as its first member. The second member is an optional operator - * replacement to push to the stack. - * - * @type {string[]} - */ -TERMINATORS = { - ')': [ '(' ], - ':': [ '?', '?:' ], -}; - -/** - * Pattern matching operators and openers. - * - * @type {RegExp} - */ -PATTERN = /<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/; - -/** - * Given a C expression, returns the equivalent postfix (Reverse Polish) - * notation terms as an array. - * - * If a postfix string is desired, simply `.join( ' ' )` the result. - * - * @example - * - * ```js - * import postfix from '@tannin/postfix'; - * - * postfix( 'n > 1' ); - * // ⇒ [ 'n', '1', '>' ] - * ``` - * - * @param {string} expression C expression. - * - * @return {string[]} Postfix terms. - */ -function postfix( expression ) { - var terms = [], - stack = [], - match, operator, term, element; - - while ( ( match = expression.match( PATTERN ) ) ) { - operator = match[ 0 ]; - - // Term is the string preceding the operator match. It may contain - // whitespace, and may be empty (if operator is at beginning). - term = expression.substr( 0, match.index ).trim(); - if ( term ) { - terms.push( term ); - } - - while ( ( element = stack.pop() ) ) { - if ( TERMINATORS[ operator ] ) { - if ( TERMINATORS[ operator ][ 0 ] === element ) { - // Substitution works here under assumption that because - // the assigned operator will no longer be a terminator, it - // will be pushed to the stack during the condition below. - operator = TERMINATORS[ operator ][ 1 ] || operator; - break; - } - } else if ( OPENERS.indexOf( element ) >= 0 || PRECEDENCE[ element ] < PRECEDENCE[ operator ] ) { - // Push to stack if either an opener or when pop reveals an - // element of lower precedence. - stack.push( element ); - break; - } - - // For each popped from stack, push to terms. - terms.push( element ); - } - - if ( ! TERMINATORS[ operator ] ) { - stack.push( operator ); - } - - // Slice matched fragment from expression to continue match. - expression = expression.substr( match.index + operator.length ); - } - - // Push remainder of operand, if exists, to terms. - expression = expression.trim(); - if ( expression ) { - terms.push( expression ); - } - - // Pop remaining items from stack into terms. - return terms.concat( stack.reverse() ); -} - - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/button/index.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/button/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 */ Button: () => (/* binding */ Button), -/* harmony export */ UnforwardedButton: () => (/* binding */ UnforwardedButton), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! clsx */ "./node_modules/@wordpress/components/node_modules/clsx/dist/clsx.mjs"); -/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/deprecated */ "./node_modules/@wordpress/deprecated/build-module/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/compose */ "./node_modules/@wordpress/compose/build-module/hooks/use-instance-id/index.js"); -/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tooltip */ "./node_modules/@wordpress/components/build-module/tooltip/index.js"); -/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./node_modules/@wordpress/components/build-module/icon/index.js"); -/* harmony import */ var _visually_hidden__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../visually-hidden */ "./node_modules/@wordpress/components/build-module/visually-hidden/component.js"); -/* harmony import */ var _popover_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../popover/utils */ "./node_modules/@wordpress/components/build-module/popover/utils.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - - - - -const disabledEventsOnDisabledButton = ['onMouseDown', 'onClick']; -function useDeprecatedProps({ - isDefault, - isPrimary, - isSecondary, - isTertiary, - isLink, - isPressed, - isSmall, - size, - variant, - ...otherProps -}) { - let computedSize = size; - let computedVariant = variant; - const newProps = { - // @todo Mark `isPressed` as deprecated - 'aria-pressed': isPressed - }; - if (isSmall) { - var _computedSize; - (_computedSize = computedSize) !== null && _computedSize !== void 0 ? _computedSize : computedSize = 'small'; - } - if (isPrimary) { - var _computedVariant; - (_computedVariant = computedVariant) !== null && _computedVariant !== void 0 ? _computedVariant : computedVariant = 'primary'; - } - if (isTertiary) { - var _computedVariant2; - (_computedVariant2 = computedVariant) !== null && _computedVariant2 !== void 0 ? _computedVariant2 : computedVariant = 'tertiary'; - } - if (isSecondary) { - var _computedVariant3; - (_computedVariant3 = computedVariant) !== null && _computedVariant3 !== void 0 ? _computedVariant3 : computedVariant = 'secondary'; - } - if (isDefault) { - var _computedVariant4; - (0,_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_2__["default"])('wp.components.Button `isDefault` prop', { - since: '5.4', - alternative: 'variant="secondary"' - }); - (_computedVariant4 = computedVariant) !== null && _computedVariant4 !== void 0 ? _computedVariant4 : computedVariant = 'secondary'; - } - if (isLink) { - var _computedVariant5; - (_computedVariant5 = computedVariant) !== null && _computedVariant5 !== void 0 ? _computedVariant5 : computedVariant = 'link'; - } - return { - ...newProps, - ...otherProps, - size: computedSize, - variant: computedVariant - }; -} -function UnforwardedButton(props, ref) { - const { - __next40pxDefaultSize, - isBusy, - isDestructive, - className, - disabled, - icon, - iconPosition = 'left', - iconSize, - showTooltip, - tooltipPosition, - shortcut, - label, - children, - size = 'default', - text, - variant, - __experimentalIsFocusable: isFocusable, - describedBy, - ...buttonOrAnchorProps - } = useDeprecatedProps(props); - const { - href, - target, - 'aria-checked': ariaChecked, - 'aria-pressed': ariaPressed, - 'aria-selected': ariaSelected, - ...additionalProps - } = 'href' in buttonOrAnchorProps ? buttonOrAnchorProps : { - href: undefined, - target: undefined, - ...buttonOrAnchorProps - }; - const instanceId = (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_3__["default"])(Button, 'components-button__description'); - const hasChildren = 'string' === typeof children && !!children || Array.isArray(children) && children?.[0] && children[0] !== null && - // Tooltip should not considered as a child - children?.[0]?.props?.className !== 'components-tooltip'; - const truthyAriaPressedValues = [true, 'true', 'mixed']; - const classes = (0,clsx__WEBPACK_IMPORTED_MODULE_0__["default"])('components-button', className, { - 'is-next-40px-default-size': __next40pxDefaultSize, - 'is-secondary': variant === 'secondary', - 'is-primary': variant === 'primary', - 'is-small': size === 'small', - 'is-compact': size === 'compact', - 'is-tertiary': variant === 'tertiary', - 'is-pressed': truthyAriaPressedValues.includes(ariaPressed), - 'is-pressed-mixed': ariaPressed === 'mixed', - 'is-busy': isBusy, - 'is-link': variant === 'link', - 'is-destructive': isDestructive, - 'has-text': !!icon && (hasChildren || text), - 'has-icon': !!icon - }); - const trulyDisabled = disabled && !isFocusable; - const Tag = href !== undefined && !trulyDisabled ? 'a' : 'button'; - const buttonProps = Tag === 'button' ? { - type: 'button', - disabled: trulyDisabled, - 'aria-checked': ariaChecked, - 'aria-pressed': ariaPressed, - 'aria-selected': ariaSelected - } : {}; - const anchorProps = Tag === 'a' ? { - href, - target - } : {}; - const disableEventProps = {}; - if (disabled && isFocusable) { - // In this case, the button will be disabled, but still focusable and - // perceivable by screen reader users. - buttonProps['aria-disabled'] = true; - anchorProps['aria-disabled'] = true; - for (const disabledEvent of disabledEventsOnDisabledButton) { - disableEventProps[disabledEvent] = event => { - if (event) { - event.stopPropagation(); - event.preventDefault(); - } - }; - } - } - - // Should show the tooltip if... - const shouldShowTooltip = !trulyDisabled && ( - // An explicit tooltip is passed or... - showTooltip && !!label || - // There's a shortcut or... - !!shortcut || - // There's a label and... - !!label && - // The children are empty and... - !children?.length && - // The tooltip is not explicitly disabled. - false !== showTooltip); - const descriptionId = describedBy ? instanceId : undefined; - const describedById = additionalProps['aria-describedby'] || descriptionId; - const commonProps = { - className: classes, - 'aria-label': additionalProps['aria-label'] || label, - 'aria-describedby': describedById, - ref - }; - const elementChildren = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment, { - children: [icon && iconPosition === 'left' && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], { - icon: icon, - size: iconSize - }), text && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment, { - children: text - }), children, icon && iconPosition === 'right' && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], { - icon: icon, - size: iconSize - })] - }); - const element = Tag === 'a' ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a", { - ...anchorProps, - ...additionalProps, - ...disableEventProps, - ...commonProps, - children: elementChildren - }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("button", { - ...buttonProps, - ...additionalProps, - ...disableEventProps, - ...commonProps, - children: elementChildren - }); - - // In order to avoid some React reconciliation issues, we are always rendering - // the `Tooltip` component even when `shouldShowTooltip` is `false`. - // In order to make sure that the tooltip doesn't show when it shouldn't, - // we don't pass the props to the `Tooltip` component. - const tooltipProps = shouldShowTooltip ? { - text: children?.length && describedBy ? describedBy : label, - shortcut, - placement: tooltipPosition && - // Convert legacy `position` values to be used with the new `placement` prop - (0,_popover_utils__WEBPACK_IMPORTED_MODULE_5__.positionToPlacement)(tooltipPosition) - } : {}; - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment, { - children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_tooltip__WEBPACK_IMPORTED_MODULE_6__["default"], { - ...tooltipProps, - children: element - }), describedBy && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_visually_hidden__WEBPACK_IMPORTED_MODULE_7__["default"], { - children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("span", { - id: descriptionId, - children: describedBy - }) - })] - }); -} - -/** - * Lets users take actions and make choices with a single click or tap. - * - * ```jsx - * import { Button } from '@wordpress/components'; - * const Mybutton = () => ( - * - * ); - * ``` - */ -const Button = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_8__.forwardRef)(UnforwardedButton); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Button); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/context/constants.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/context/constants.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ COMPONENT_NAMESPACE: () => (/* binding */ COMPONENT_NAMESPACE), -/* harmony export */ CONNECTED_NAMESPACE: () => (/* binding */ CONNECTED_NAMESPACE), -/* harmony export */ CONNECT_STATIC_NAMESPACE: () => (/* binding */ CONNECT_STATIC_NAMESPACE) -/* harmony export */ }); -const COMPONENT_NAMESPACE = 'data-wp-component'; -const CONNECTED_NAMESPACE = 'data-wp-c16t'; - -/** - * Special key where the connected namespaces are stored. - * This is attached to Context connected components as a static property. - */ -const CONNECT_STATIC_NAMESPACE = '__contextSystemKey__'; -//# sourceMappingURL=constants.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/context/context-connect.js": -/*!************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/context/context-connect.js ***! - \************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ contextConnect: () => (/* binding */ contextConnect), -/* harmony export */ contextConnectWithoutRef: () => (/* binding */ contextConnectWithoutRef), -/* harmony export */ getConnectNamespace: () => (/* binding */ getConnectNamespace), -/* harmony export */ hasConnectNamespace: () => (/* binding */ hasConnectNamespace) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/warning */ "./node_modules/@wordpress/components/node_modules/@wordpress/warning/build-module/index.js"); -/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "./node_modules/@wordpress/components/build-module/context/constants.js"); -/* harmony import */ var _get_styled_class_name_from_key__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./get-styled-class-name-from-key */ "./node_modules/@wordpress/components/build-module/context/get-styled-class-name-from-key.js"); -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -/** - * Forwards ref (React.ForwardRef) and "Connects" (or registers) a component - * within the Context system under a specified namespace. - * - * @param Component The component to register into the Context system. - * @param namespace The namespace to register the component under. - * @return The connected WordPressComponent - */ -function contextConnect(Component, namespace) { - return _contextConnect(Component, namespace, { - forwardsRef: true - }); -} - -/** - * "Connects" (or registers) a component within the Context system under a specified namespace. - * Does not forward a ref. - * - * @param Component The component to register into the Context system. - * @param namespace The namespace to register the component under. - * @return The connected WordPressComponent - */ -function contextConnectWithoutRef(Component, namespace) { - return _contextConnect(Component, namespace); -} - -// This is an (experimental) evolution of the initial connect() HOC. -// The hope is that we can improve render performance by removing functional -// component wrappers. -function _contextConnect(Component, namespace, options) { - const WrappedComponent = options?.forwardsRef ? (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(Component) : Component; - if (typeof namespace === 'undefined') { - globalThis.SCRIPT_DEBUG === true ? (0,_wordpress_warning__WEBPACK_IMPORTED_MODULE_1__["default"])('contextConnect: Please provide a namespace') : void 0; - } - - // @ts-expect-error internal property - let mergedNamespace = WrappedComponent[_constants__WEBPACK_IMPORTED_MODULE_2__.CONNECT_STATIC_NAMESPACE] || [namespace]; - - /** - * Consolidate (merge) namespaces before attaching it to the WrappedComponent. - */ - if (Array.isArray(namespace)) { - mergedNamespace = [...mergedNamespace, ...namespace]; - } - if (typeof namespace === 'string') { - mergedNamespace = [...mergedNamespace, namespace]; - } - - // @ts-expect-error We can't rely on inferred types here because of the - // `as` prop polymorphism we're handling in https://github.com/WordPress/gutenberg/blob/4f3a11243c365f94892e479bff0b922ccc4ccda3/packages/components/src/context/wordpress-component.ts#L32-L33 - return Object.assign(WrappedComponent, { - [_constants__WEBPACK_IMPORTED_MODULE_2__.CONNECT_STATIC_NAMESPACE]: [...new Set(mergedNamespace)], - displayName: namespace, - selector: `.${(0,_get_styled_class_name_from_key__WEBPACK_IMPORTED_MODULE_3__.getStyledClassNameFromKey)(namespace)}` - }); -} - -/** - * Attempts to retrieve the connected namespace from a component. - * - * @param Component The component to retrieve a namespace from. - * @return The connected namespaces. - */ -function getConnectNamespace(Component) { - if (!Component) { - return []; - } - let namespaces = []; - - // @ts-ignore internal property - if (Component[_constants__WEBPACK_IMPORTED_MODULE_2__.CONNECT_STATIC_NAMESPACE]) { - // @ts-ignore internal property - namespaces = Component[_constants__WEBPACK_IMPORTED_MODULE_2__.CONNECT_STATIC_NAMESPACE]; - } - - // @ts-ignore - if (Component.type && Component.type[_constants__WEBPACK_IMPORTED_MODULE_2__.CONNECT_STATIC_NAMESPACE]) { - // @ts-ignore - namespaces = Component.type[_constants__WEBPACK_IMPORTED_MODULE_2__.CONNECT_STATIC_NAMESPACE]; - } - return namespaces; -} - -/** - * Checks to see if a component is connected within the Context system. - * - * @param Component The component to retrieve a namespace from. - * @param match The namespace to check. - */ -function hasConnectNamespace(Component, match) { - if (!Component) { - return false; - } - if (typeof match === 'string') { - return getConnectNamespace(Component).includes(match); - } - if (Array.isArray(match)) { - return match.some(result => getConnectNamespace(Component).includes(result)); - } - return false; -} -//# sourceMappingURL=context-connect.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/context/context-system-provider.js": -/*!********************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/context/context-system-provider.js ***! - \********************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ComponentsContext: () => (/* binding */ ComponentsContext), -/* harmony export */ ContextSystemProvider: () => (/* binding */ ContextSystemProvider), -/* harmony export */ useComponentsContext: () => (/* binding */ useComponentsContext) -/* harmony export */ }); -/* harmony import */ var deepmerge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! deepmerge */ "./node_modules/deepmerge/dist/cjs.js"); -/* harmony import */ var deepmerge__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(deepmerge__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var fast_deep_equal_es6__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-deep-equal/es6 */ "./node_modules/fast-deep-equal/es6/index.js"); -/* harmony import */ var fast_deep_equal_es6__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fast_deep_equal_es6__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var is_plain_object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! is-plain-object */ "./node_modules/is-plain-object/dist/is-plain-object.mjs"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/warning */ "./node_modules/@wordpress/components/node_modules/@wordpress/warning/build-module/index.js"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils */ "./node_modules/@wordpress/components/build-module/utils/hooks/use-update-effect.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * External dependencies - */ - - - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -const ComponentsContext = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.createContext)( /** @type {Record} */{}); -const useComponentsContext = () => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useContext)(ComponentsContext); - -/** - * Consolidates incoming ContextSystem values with a (potential) parent ContextSystem value. - * - * Note: This function will warn if it detects an un-memoized `value` - * - * @param {Object} props - * @param {Record} props.value - * @return {Record} The consolidated value. - */ -function useContextSystemBridge({ - value -}) { - const parentContext = useComponentsContext(); - const valueRef = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useRef)(value); - (0,_utils__WEBPACK_IMPORTED_MODULE_5__["default"])(() => { - if ( - // Objects are equivalent. - fast_deep_equal_es6__WEBPACK_IMPORTED_MODULE_1___default()(valueRef.current, value) && - // But not the same reference. - valueRef.current !== value) { - globalThis.SCRIPT_DEBUG === true ? (0,_wordpress_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(`Please memoize your context: ${JSON.stringify(value)}`) : void 0; - } - }, [value]); - - // `parentContext` will always be memoized (i.e., the result of this hook itself) - // or the default value from when the `ComponentsContext` was originally - // initialized (which will never change, it's a static variable) - // so this memoization will prevent `deepmerge()` from rerunning unless - // the references to `value` change OR the `parentContext` has an actual material change - // (because again, it's guaranteed to be memoized or a static reference to the empty object - // so we know that the only changes for `parentContext` are material ones... i.e., why we - // don't have to warn in the `useUpdateEffect` hook above for `parentContext` and we only - // need to bother with the `value`). The `useUpdateEffect` above will ensure that we are - // correctly warning when the `value` isn't being properly memoized. All of that to say - // that this should be super safe to assume that `useMemo` will only run on actual - // changes to the two dependencies, therefore saving us calls to `deepmerge()`! - const config = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useMemo)(() => { - // Deep clone `parentContext` to avoid mutating it later. - return deepmerge__WEBPACK_IMPORTED_MODULE_0___default()(parentContext !== null && parentContext !== void 0 ? parentContext : {}, value !== null && value !== void 0 ? value : {}, { - isMergeableObject: is_plain_object__WEBPACK_IMPORTED_MODULE_2__.isPlainObject - }); - }, [parentContext, value]); - return config; -} - -/** - * A Provider component that can modify props for connected components within - * the Context system. - * - * @example - * ```jsx - * - * - * - * ``` - * - * @template {Record} T - * @param {Object} options - * @param {import('react').ReactNode} options.children Children to render. - * @param {T} options.value Props to render into connected components. - * @return {JSX.Element} A Provider wrapped component. - */ -const BaseContextSystemProvider = ({ - children, - value -}) => { - const contextValue = useContextSystemBridge({ - value - }); - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(ComponentsContext.Provider, { - value: contextValue, - children: children - }); -}; -const ContextSystemProvider = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.memo)(BaseContextSystemProvider); -//# sourceMappingURL=context-system-provider.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/context/get-styled-class-name-from-key.js": -/*!***************************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/context/get-styled-class-name-from-key.js ***! - \***************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getStyledClassNameFromKey: () => (/* binding */ getStyledClassNameFromKey) -/* harmony export */ }); -/* harmony import */ var change_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! change-case */ "./node_modules/param-case/dist.es2015/index.js"); -/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! memize */ "./node_modules/memize/dist/index.js"); -/** - * External dependencies - */ - - - -/** - * Generates the connected component CSS className based on the namespace. - * - * @param namespace The name of the connected component. - * @return The generated CSS className. - */ -function getStyledClassName(namespace) { - const kebab = (0,change_case__WEBPACK_IMPORTED_MODULE_1__.paramCase)(namespace); - return `components-${kebab}`; -} -const getStyledClassNameFromKey = (0,memize__WEBPACK_IMPORTED_MODULE_0__["default"])(getStyledClassName); -//# sourceMappingURL=get-styled-class-name-from-key.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/context/use-context-system.js": -/*!***************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/context/use-context-system.js ***! - \***************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useContextSystem: () => (/* binding */ useContextSystem) -/* harmony export */ }); -/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/warning */ "./node_modules/@wordpress/components/node_modules/@wordpress/warning/build-module/index.js"); -/* harmony import */ var _context_system_provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./context-system-provider */ "./node_modules/@wordpress/components/build-module/context/context-system-provider.js"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./node_modules/@wordpress/components/build-module/context/utils.js"); -/* harmony import */ var _get_styled_class_name_from_key__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get-styled-class-name-from-key */ "./node_modules/@wordpress/components/build-module/context/get-styled-class-name-from-key.js"); -/* harmony import */ var _utils_hooks_use_cx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/hooks/use-cx */ "./node_modules/@wordpress/components/build-module/utils/hooks/use-cx.js"); -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - - -/** - * @template TProps - * @typedef {TProps & { className: string }} ConnectedProps - */ - -/** - * Custom hook that derives registered props from the Context system. - * These derived props are then consolidated with incoming component props. - * - * @template {{ className?: string }} P - * @param {P} props Incoming props from the component. - * @param {string} namespace The namespace to register and to derive context props from. - * @return {ConnectedProps

} The connected props. - */ -function useContextSystem(props, namespace) { - const contextSystemProps = (0,_context_system_provider__WEBPACK_IMPORTED_MODULE_0__.useComponentsContext)(); - if (typeof namespace === 'undefined') { - globalThis.SCRIPT_DEBUG === true ? (0,_wordpress_warning__WEBPACK_IMPORTED_MODULE_1__["default"])('useContextSystem: Please provide a namespace') : void 0; - } - const contextProps = contextSystemProps?.[namespace] || {}; - - /* eslint-disable jsdoc/no-undefined-types */ - /** @type {ConnectedProps

} */ - // @ts-ignore We fill in the missing properties below - const finalComponentProps = { - ...(0,_utils__WEBPACK_IMPORTED_MODULE_2__.getConnectedNamespace)(), - ...(0,_utils__WEBPACK_IMPORTED_MODULE_2__.getNamespace)(namespace) - }; - /* eslint-enable jsdoc/no-undefined-types */ - - const { - _overrides: overrideProps, - ...otherContextProps - } = contextProps; - const initialMergedProps = Object.entries(otherContextProps).length ? Object.assign({}, otherContextProps, props) : props; - const cx = (0,_utils_hooks_use_cx__WEBPACK_IMPORTED_MODULE_3__.useCx)(); - const classes = cx((0,_get_styled_class_name_from_key__WEBPACK_IMPORTED_MODULE_4__.getStyledClassNameFromKey)(namespace), props.className); - - // Provides the ability to customize the render of the component. - const rendered = typeof initialMergedProps.renderChildren === 'function' ? initialMergedProps.renderChildren(initialMergedProps) : initialMergedProps.children; - for (const key in initialMergedProps) { - // @ts-ignore filling in missing props - finalComponentProps[key] = initialMergedProps[key]; - } - for (const key in overrideProps) { - // @ts-ignore filling in missing props - finalComponentProps[key] = overrideProps[key]; - } - - // Setting an `undefined` explicitly can cause unintended overwrites - // when a `cloneElement()` is involved. - if (rendered !== undefined) { - // @ts-ignore - finalComponentProps.children = rendered; - } - finalComponentProps.className = classes; - return finalComponentProps; -} -//# sourceMappingURL=use-context-system.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/context/utils.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/context/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 */ getConnectedNamespace: () => (/* binding */ getConnectedNamespace), -/* harmony export */ getNamespace: () => (/* binding */ getNamespace) -/* harmony export */ }); -/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "./node_modules/@wordpress/components/build-module/context/constants.js"); -/** - * Internal dependencies - */ - - -/** - * Creates a dedicated context namespace HTML attribute for components. - * ns is short for "namespace" - * - * @example - * ```jsx - *

- * ``` - * - * @param {string} componentName The name for the component. - * @return {Record} A props object with the namespaced HTML attribute. - */ -function getNamespace(componentName) { - return { - [_constants__WEBPACK_IMPORTED_MODULE_0__.COMPONENT_NAMESPACE]: componentName - }; -} - -/** - * Creates a dedicated connected context namespace HTML attribute for components. - * ns is short for "namespace" - * - * @example - * ```jsx - *
- * ``` - * - * @return {Record} A props object with the namespaced HTML attribute. - */ -function getConnectedNamespace() { - return { - [_constants__WEBPACK_IMPORTED_MODULE_0__.CONNECTED_NAMESPACE]: true - }; -} -//# sourceMappingURL=utils.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/dashicon/index.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/dashicon/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_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); - -/** - * @typedef OwnProps - * - * @property {import('./types').IconKey} icon Icon name - * @property {string} [className] Class name - * @property {number} [size] Size of the icon - */ - -/** - * Internal dependencies - */ - -function Dashicon({ - icon, - className, - size = 20, - style = {}, - ...extraProps -}) { - const iconClass = ['dashicon', 'dashicons', 'dashicons-' + icon, className].filter(Boolean).join(' '); - - // For retro-compatibility reasons (for example if people are overriding icon size with CSS), we add inline styles just if the size is different to the default - const sizeStyles = - // using `!=` to catch both 20 and "20" - // eslint-disable-next-line eqeqeq - 20 != size ? { - fontSize: `${size}px`, - width: `${size}px`, - height: `${size}px` - } : {}; - const styles = { - ...sizeStyles, - ...style - }; - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { - className: iconClass, - style: styles, - ...extraProps - }); -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Dashicon); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/icon/index.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/icon/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_2__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/primitives */ "./node_modules/@wordpress/components/node_modules/@wordpress/primitives/build-module/svg/index.js"); -/* harmony import */ var _dashicon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dashicon */ "./node_modules/@wordpress/components/build-module/dashicon/index.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -function Icon({ - icon = null, - size = 'string' === typeof icon ? 20 : 24, - ...additionalProps -}) { - if ('string' === typeof icon) { - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_dashicon__WEBPACK_IMPORTED_MODULE_1__["default"], { - icon: icon, - size: size, - ...additionalProps - }); - } - if ((0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.isValidElement)(icon) && _dashicon__WEBPACK_IMPORTED_MODULE_1__["default"] === icon.type) { - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.cloneElement)(icon, { - ...additionalProps - }); - } - if ('function' === typeof icon) { - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)(icon, { - size, - ...additionalProps - }); - } - if (icon && (icon.type === 'svg' || icon.type === _wordpress_primitives__WEBPACK_IMPORTED_MODULE_3__.SVG)) { - const appliedProps = { - ...icon.props, - width: size, - height: size, - ...additionalProps - }; - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_3__.SVG, { - ...appliedProps - }); - } - if ((0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.isValidElement)(icon)) { - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.cloneElement)(icon, { - // @ts-ignore Just forwarding the size prop along - size, - ...additionalProps - }); - } - return icon; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Icon); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/popover/utils.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/popover/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 */ computePopoverPosition: () => (/* binding */ computePopoverPosition), -/* harmony export */ getReferenceElement: () => (/* binding */ getReferenceElement), -/* harmony export */ placementToMotionAnimationProps: () => (/* binding */ placementToMotionAnimationProps), -/* harmony export */ positionToPlacement: () => (/* binding */ positionToPlacement) -/* harmony export */ }); -/** - * External dependencies - */ -// eslint-disable-next-line no-restricted-imports - -/** - * Internal dependencies - */ - -const POSITION_TO_PLACEMENT = { - bottom: 'bottom', - top: 'top', - 'middle left': 'left', - 'middle right': 'right', - 'bottom left': 'bottom-end', - 'bottom center': 'bottom', - 'bottom right': 'bottom-start', - 'top left': 'top-end', - 'top center': 'top', - 'top right': 'top-start', - 'middle left left': 'left', - 'middle left right': 'left', - 'middle left bottom': 'left-end', - 'middle left top': 'left-start', - 'middle right left': 'right', - 'middle right right': 'right', - 'middle right bottom': 'right-end', - 'middle right top': 'right-start', - 'bottom left left': 'bottom-end', - 'bottom left right': 'bottom-end', - 'bottom left bottom': 'bottom-end', - 'bottom left top': 'bottom-end', - 'bottom center left': 'bottom', - 'bottom center right': 'bottom', - 'bottom center bottom': 'bottom', - 'bottom center top': 'bottom', - 'bottom right left': 'bottom-start', - 'bottom right right': 'bottom-start', - 'bottom right bottom': 'bottom-start', - 'bottom right top': 'bottom-start', - 'top left left': 'top-end', - 'top left right': 'top-end', - 'top left bottom': 'top-end', - 'top left top': 'top-end', - 'top center left': 'top', - 'top center right': 'top', - 'top center bottom': 'top', - 'top center top': 'top', - 'top right left': 'top-start', - 'top right right': 'top-start', - 'top right bottom': 'top-start', - 'top right top': 'top-start', - // `middle`/`middle center [corner?]` positions are associated to a fallback - // `bottom` placement because there aren't any corresponding placement values. - middle: 'bottom', - 'middle center': 'bottom', - 'middle center bottom': 'bottom', - 'middle center left': 'bottom', - 'middle center right': 'bottom', - 'middle center top': 'bottom' -}; - -/** - * Converts the `Popover`'s legacy "position" prop to the new "placement" prop - * (used by `floating-ui`). - * - * @param position The legacy position - * @return The corresponding placement - */ -const positionToPlacement = position => { - var _POSITION_TO_PLACEMEN; - return (_POSITION_TO_PLACEMEN = POSITION_TO_PLACEMENT[position]) !== null && _POSITION_TO_PLACEMEN !== void 0 ? _POSITION_TO_PLACEMEN : 'bottom'; -}; - -/** - * @typedef AnimationOrigin - * @type {Object} - * @property {number} originX A number between 0 and 1 (in CSS logical properties jargon, 0 is "start", 0.5 is "center", and 1 is "end") - * @property {number} originY A number between 0 and 1 (0 is top, 0.5 is center, and 1 is bottom) - */ - -const PLACEMENT_TO_ANIMATION_ORIGIN = { - top: { - originX: 0.5, - originY: 1 - }, - // open from bottom, center - 'top-start': { - originX: 0, - originY: 1 - }, - // open from bottom, left - 'top-end': { - originX: 1, - originY: 1 - }, - // open from bottom, right - right: { - originX: 0, - originY: 0.5 - }, - // open from middle, left - 'right-start': { - originX: 0, - originY: 0 - }, - // open from top, left - 'right-end': { - originX: 0, - originY: 1 - }, - // open from bottom, left - bottom: { - originX: 0.5, - originY: 0 - }, - // open from top, center - 'bottom-start': { - originX: 0, - originY: 0 - }, - // open from top, left - 'bottom-end': { - originX: 1, - originY: 0 - }, - // open from top, right - left: { - originX: 1, - originY: 0.5 - }, - // open from middle, right - 'left-start': { - originX: 1, - originY: 0 - }, - // open from top, right - 'left-end': { - originX: 1, - originY: 1 - }, - // open from bottom, right - overlay: { - originX: 0.5, - originY: 0.5 - } // open from center, center -}; - -/** - * Given the floating-ui `placement`, compute the framer-motion props for the - * popover's entry animation. - * - * @param placement A placement string from floating ui - * @return The object containing the motion props - */ -const placementToMotionAnimationProps = placement => { - const translateProp = placement.startsWith('top') || placement.startsWith('bottom') ? 'translateY' : 'translateX'; - const translateDirection = placement.startsWith('top') || placement.startsWith('left') ? 1 : -1; - return { - style: PLACEMENT_TO_ANIMATION_ORIGIN[placement], - initial: { - opacity: 0, - scale: 0, - [translateProp]: `${2 * translateDirection}em` - }, - animate: { - opacity: 1, - scale: 1, - [translateProp]: 0 - }, - transition: { - duration: 0.1, - ease: [0, 0, 0.2, 1] - } - }; -}; -function isTopBottom(anchorRef) { - return !!anchorRef?.top; -} -function isRef(anchorRef) { - return !!anchorRef?.current; -} -const getReferenceElement = ({ - anchor, - anchorRef, - anchorRect, - getAnchorRect, - fallbackReferenceElement -}) => { - var _referenceElement; - let referenceElement = null; - if (anchor) { - referenceElement = anchor; - } else if (isTopBottom(anchorRef)) { - // Create a virtual element for the ref. The expectation is that - // if anchorRef.top is defined, then anchorRef.bottom is defined too. - // Seems to be used by the block toolbar, when multiple blocks are selected - // (top and bottom blocks are used to calculate the resulting rect). - referenceElement = { - getBoundingClientRect() { - const topRect = anchorRef.top.getBoundingClientRect(); - const bottomRect = anchorRef.bottom.getBoundingClientRect(); - return new window.DOMRect(topRect.x, topRect.y, topRect.width, bottomRect.bottom - topRect.top); - } - }; - } else if (isRef(anchorRef)) { - // Standard React ref. - referenceElement = anchorRef.current; - } else if (anchorRef) { - // If `anchorRef` holds directly the element's value (no `current` key) - // This is a weird scenario and should be deprecated. - referenceElement = anchorRef; - } else if (anchorRect) { - // Create a virtual element for the ref. - referenceElement = { - getBoundingClientRect() { - return anchorRect; - } - }; - } else if (getAnchorRect) { - // Create a virtual element for the ref. - referenceElement = { - getBoundingClientRect() { - var _rect$x, _rect$y, _rect$width, _rect$height; - const rect = getAnchorRect(fallbackReferenceElement); - return new window.DOMRect((_rect$x = rect.x) !== null && _rect$x !== void 0 ? _rect$x : rect.left, (_rect$y = rect.y) !== null && _rect$y !== void 0 ? _rect$y : rect.top, (_rect$width = rect.width) !== null && _rect$width !== void 0 ? _rect$width : rect.right - rect.left, (_rect$height = rect.height) !== null && _rect$height !== void 0 ? _rect$height : rect.bottom - rect.top); - } - }; - } else if (fallbackReferenceElement) { - // If no explicit ref is passed via props, fall back to - // anchoring to the popover's parent node. - referenceElement = fallbackReferenceElement.parentElement; - } - - // Convert any `undefined` value to `null`. - return (_referenceElement = referenceElement) !== null && _referenceElement !== void 0 ? _referenceElement : null; -}; - -/** - * Computes the final coordinate that needs to be applied to the floating - * element when applying transform inline styles, defaulting to `undefined` - * if the provided value is `null` or `NaN`. - * - * @param c input coordinate (usually as returned from floating-ui) - * @return The coordinate's value to be used for inline styles. An `undefined` - * return value means "no style set" for this coordinate. - */ -const computePopoverPosition = c => c === null || Number.isNaN(c) ? undefined : Math.round(c); -//# sourceMappingURL=utils.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/shortcut/index.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/shortcut/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_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); - -/** - * Internal dependencies - */ - -/** - * Shortcut component is used to display keyboard shortcuts, and it can be customized with a custom display and aria label if needed. - * - * ```jsx - * import { Shortcut } from '@wordpress/components'; - * - * const MyShortcut = () => { - * return ( - * - * ); - * }; - * ``` - */ -function Shortcut(props) { - const { - shortcut, - className - } = props; - if (!shortcut) { - return null; - } - let displayText; - let ariaLabel; - if (typeof shortcut === 'string') { - displayText = shortcut; - } - if (shortcut !== null && typeof shortcut === 'object') { - displayText = shortcut.display; - ariaLabel = shortcut.ariaLabel; - } - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { - className: className, - "aria-label": ariaLabel, - children: displayText - }); -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Shortcut); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/fill.js": -/*!*********************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/fill.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 */ Fill) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react-dom/index.js"); -/* harmony import */ var _use_slot__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./use-slot */ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js"); -/* harmony import */ var _style_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../style-provider */ "./node_modules/@wordpress/components/build-module/style-provider/index.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - -function useForceUpdate() { - const [, setState] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)({}); - const mounted = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useRef)(true); - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { - mounted.current = true; - return () => { - mounted.current = false; - }; - }, []); - return () => { - if (mounted.current) { - setState({}); - } - }; -} -function Fill(props) { - var _slot$fillProps; - const { - name, - children - } = props; - const { - registerFill, - unregisterFill, - ...slot - } = (0,_use_slot__WEBPACK_IMPORTED_MODULE_2__["default"])(name); - const rerender = useForceUpdate(); - const ref = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useRef)({ - rerender - }); - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { - // We register fills so we can keep track of their existence. - // Some Slot implementations need to know if there're already fills - // registered so they can choose to render themselves or not. - registerFill(ref); - return () => { - unregisterFill(ref); - }; - }, [registerFill, unregisterFill]); - if (!slot.ref || !slot.ref.current) { - return null; - } - - // When using a `Fill`, the `children` will be rendered in the document of the - // `Slot`. This means that we need to wrap the `children` in a `StyleProvider` - // to make sure we're referencing the right document/iframe (instead of the - // context of the `Fill`'s parent). - const wrappedChildren = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_style_provider__WEBPACK_IMPORTED_MODULE_3__["default"], { - document: slot.ref.current.ownerDocument, - children: typeof children === 'function' ? children((_slot$fillProps = slot.fillProps) !== null && _slot$fillProps !== void 0 ? _slot$fillProps : {}) : children - }); - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.createPortal)(wrappedChildren, slot.ref.current); -} -//# sourceMappingURL=fill.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js": -/*!**********************************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-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 _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/warning */ "./node_modules/@wordpress/components/node_modules/@wordpress/warning/build-module/index.js"); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/compose */ "./node_modules/@wordpress/compose/build-module/utils/observable-map/index.js"); -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - -const initialContextValue = { - slots: (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__.observableMap)(), - fills: (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__.observableMap)(), - registerSlot: () => { - globalThis.SCRIPT_DEBUG === true ? (0,_wordpress_warning__WEBPACK_IMPORTED_MODULE_1__["default"])('Components must be wrapped within `SlotFillProvider`. ' + 'See https://developer.wordpress.org/block-editor/components/slot-fill/') : void 0; - }, - updateSlot: () => {}, - unregisterSlot: () => {}, - registerFill: () => {}, - unregisterFill: () => {}, - // This helps the provider know if it's using the default context value or not. - isDefault: true -}; -const SlotFillContext = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createContext)(initialContextValue); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SlotFillContext); -//# sourceMappingURL=slot-fill-context.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js": -/*!***********************************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-provider.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 */ SlotFillProvider) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/is-shallow-equal */ "./node_modules/@wordpress/is-shallow-equal/build-module/index.js"); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/compose */ "./node_modules/@wordpress/compose/build-module/utils/observable-map/index.js"); -/* harmony import */ var _slot_fill_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./slot-fill-context */ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -function createSlotRegistry() { - const slots = (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__.observableMap)(); - const fills = (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__.observableMap)(); - const registerSlot = (name, ref, fillProps) => { - const slot = slots.get(name); - slots.set(name, { - ...slot, - ref: ref || slot?.ref, - fillProps: fillProps || slot?.fillProps || {} - }); - }; - const unregisterSlot = (name, ref) => { - // Make sure we're not unregistering a slot registered by another element - // See https://github.com/WordPress/gutenberg/pull/19242#issuecomment-590295412 - if (slots.get(name)?.ref === ref) { - slots.delete(name); - } - }; - const updateSlot = (name, fillProps) => { - const slot = slots.get(name); - if (!slot) { - return; - } - if ((0,_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_2__["default"])(slot.fillProps, fillProps)) { - return; - } - slot.fillProps = fillProps; - const slotFills = fills.get(name); - if (slotFills) { - // Force update fills. - slotFills.forEach(fill => fill.current.rerender()); - } - }; - const registerFill = (name, ref) => { - fills.set(name, [...(fills.get(name) || []), ref]); - }; - const unregisterFill = (name, ref) => { - const fillsForName = fills.get(name); - if (!fillsForName) { - return; - } - fills.set(name, fillsForName.filter(fillRef => fillRef !== ref)); - }; - return { - slots, - fills, - registerSlot, - updateSlot, - unregisterSlot, - registerFill, - unregisterFill - }; -} -function SlotFillProvider({ - children -}) { - const [registry] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useState)(createSlotRegistry); - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_slot_fill_context__WEBPACK_IMPORTED_MODULE_4__["default"].Provider, { - value: registry, - children: children - }); -} -//# sourceMappingURL=slot-fill-provider.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot.js": -/*!*********************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot.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_1__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/compose */ "./node_modules/@wordpress/compose/build-module/hooks/use-merge-refs/index.js"); -/* harmony import */ var _view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../view */ "./node_modules/@wordpress/components/build-module/view/component.js"); -/* harmony import */ var _slot_fill_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./slot-fill-context */ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - -function Slot(props, forwardedRef) { - const { - name, - fillProps = {}, - as, - // `children` is not allowed. However, if it is passed, - // it will be displayed as is, so remove `children`. - // @ts-ignore - children, - ...restProps - } = props; - const { - registerSlot, - unregisterSlot, - ...registry - } = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useContext)(_slot_fill_context__WEBPACK_IMPORTED_MODULE_2__["default"]); - const ref = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useRef)(null); - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(() => { - registerSlot(name, ref, fillProps); - return () => { - unregisterSlot(name, ref); - }; - // Ignore reason: We don't want to unregister and register the slot whenever - // `fillProps` change, which would cause the fill to be re-mounted. Instead, - // we can just update the slot (see hook below). - // For more context, see https://github.com/WordPress/gutenberg/pull/44403#discussion_r994415973 - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [registerSlot, unregisterSlot, name]); - // fillProps may be an update that interacts with the layout, so we - // useLayoutEffect. - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(() => { - registry.updateSlot(name, fillProps); - }); - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_view__WEBPACK_IMPORTED_MODULE_3__["default"], { - as: as, - ref: (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__["default"])([forwardedRef, ref]), - ...restProps - }); -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(Slot)); -//# sourceMappingURL=slot.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot-fills.js": -/*!*******************************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot-fills.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 */ useSlotFills) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/compose */ "./node_modules/@wordpress/compose/build-module/hooks/use-observable-value/index.js"); -/* harmony import */ var _slot_fill_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slot-fill-context */ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js"); -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - -function useSlotFills(name) { - const registry = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useContext)(_slot_fill_context__WEBPACK_IMPORTED_MODULE_1__["default"]); - return (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__["default"])(registry.fills, name); -} -//# sourceMappingURL=use-slot-fills.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js": -/*!*************************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.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 */ useSlot) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/compose */ "./node_modules/@wordpress/compose/build-module/hooks/use-observable-value/index.js"); -/* harmony import */ var _slot_fill_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slot-fill-context */ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js"); -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - -function useSlot(name) { - const registry = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useContext)(_slot_fill_context__WEBPACK_IMPORTED_MODULE_1__["default"]); - const slot = (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__["default"])(registry.slots, name); - const api = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => ({ - updateSlot: fillProps => registry.updateSlot(name, fillProps), - unregisterSlot: ref => registry.unregisterSlot(name, ref), - registerFill: ref => registry.registerFill(name, ref), - unregisterFill: ref => registry.unregisterFill(name, ref) - }), [name, registry]); - return { - ...slot, - ...api - }; -} -//# sourceMappingURL=use-slot.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/slot-fill/context.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/slot-fill/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 */ SlotFillContext: () => (/* binding */ SlotFillContext), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - -const initialValue = { - registerSlot: () => {}, - unregisterSlot: () => {}, - registerFill: () => {}, - unregisterFill: () => {}, - getSlot: () => undefined, - getFills: () => [], - subscribe: () => () => {} -}; -const SlotFillContext = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createContext)(initialValue); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SlotFillContext); -//# sourceMappingURL=context.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/slot-fill/fill.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/slot-fill/fill.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 */ Fill) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./context */ "./node_modules/@wordpress/components/build-module/slot-fill/context.js"); -/* harmony import */ var _use_slot__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./use-slot */ "./node_modules/@wordpress/components/build-module/slot-fill/use-slot.js"); -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -function Fill({ - name, - children -}) { - const { - registerFill, - unregisterFill - } = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_1__["default"]); - const slot = (0,_use_slot__WEBPACK_IMPORTED_MODULE_2__["default"])(name); - const ref = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)({ - name, - children - }); - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)(() => { - const refValue = ref.current; - registerFill(name, refValue); - return () => unregisterFill(name, refValue); - // Ignore reason: the useLayoutEffects here are written to fire at specific times, and introducing new dependencies could cause unexpected changes in behavior. - // We'll leave them as-is until a more detailed investigation/refactor can be performed. - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)(() => { - ref.current.children = children; - if (slot) { - slot.forceUpdate(); - } - // Ignore reason: the useLayoutEffects here are written to fire at specific times, and introducing new dependencies could cause unexpected changes in behavior. - // We'll leave them as-is until a more detailed investigation/refactor can be performed. - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [children]); - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)(() => { - if (name === ref.current.name) { - // Ignore initial effect. - return; - } - unregisterFill(ref.current.name, ref.current); - ref.current.name = name; - registerFill(name, ref.current); - // Ignore reason: the useLayoutEffects here are written to fire at specific times, and introducing new dependencies could cause unexpected changes in behavior. - // We'll leave them as-is until a more detailed investigation/refactor can be performed. - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [name]); - return null; -} -//# sourceMappingURL=fill.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/slot-fill/index.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/slot-fill/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 */ Fill: () => (/* binding */ Fill), -/* harmony export */ Provider: () => (/* binding */ Provider), -/* harmony export */ Slot: () => (/* binding */ Slot), -/* harmony export */ UnforwardedSlot: () => (/* binding */ UnforwardedSlot), -/* harmony export */ createPrivateSlotFill: () => (/* binding */ createPrivateSlotFill), -/* harmony export */ createSlotFill: () => (/* binding */ createSlotFill), -/* harmony export */ useSlot: () => (/* reexport safe */ _bubbles_virtually_use_slot__WEBPACK_IMPORTED_MODULE_1__["default"]), -/* harmony export */ useSlotFills: () => (/* reexport safe */ _bubbles_virtually_use_slot_fills__WEBPACK_IMPORTED_MODULE_2__["default"]) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _fill__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fill */ "./node_modules/@wordpress/components/build-module/slot-fill/fill.js"); -/* harmony import */ var _slot__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./slot */ "./node_modules/@wordpress/components/build-module/slot-fill/slot.js"); -/* harmony import */ var _bubbles_virtually_fill__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./bubbles-virtually/fill */ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/fill.js"); -/* harmony import */ var _bubbles_virtually_slot__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./bubbles-virtually/slot */ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot.js"); -/* harmony import */ var _bubbles_virtually_slot_fill_provider__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./bubbles-virtually/slot-fill-provider */ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js"); -/* harmony import */ var _provider__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./provider */ "./node_modules/@wordpress/components/build-module/slot-fill/provider.js"); -/* harmony import */ var _bubbles_virtually_slot_fill_context__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./bubbles-virtually/slot-fill-context */ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/* harmony import */ var _bubbles_virtually_use_slot__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bubbles-virtually/use-slot */ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js"); -/* harmony import */ var _bubbles_virtually_use_slot_fills__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bubbles-virtually/use-slot-fills */ "./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot-fills.js"); -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - - - - - - - - - -function Fill(props) { - // We're adding both Fills here so they can register themselves before - // their respective slot has been registered. Only the Fill that has a slot - // will render. The other one will return null. - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_fill__WEBPACK_IMPORTED_MODULE_3__["default"], { - ...props - }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_bubbles_virtually_fill__WEBPACK_IMPORTED_MODULE_4__["default"], { - ...props - })] - }); -} -function UnforwardedSlot(props, ref) { - const { - bubblesVirtually, - ...restProps - } = props; - if (bubblesVirtually) { - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_bubbles_virtually_slot__WEBPACK_IMPORTED_MODULE_5__["default"], { - ...restProps, - ref: ref - }); - } - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_slot__WEBPACK_IMPORTED_MODULE_6__["default"], { - ...restProps - }); -} -const Slot = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_7__.forwardRef)(UnforwardedSlot); -function Provider({ - children, - passthrough = false -}) { - const parent = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_7__.useContext)(_bubbles_virtually_slot_fill_context__WEBPACK_IMPORTED_MODULE_8__["default"]); - if (!parent.isDefault && passthrough) { - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: children - }); - } - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_provider__WEBPACK_IMPORTED_MODULE_9__["default"], { - children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_bubbles_virtually_slot_fill_provider__WEBPACK_IMPORTED_MODULE_10__["default"], { - children: children - }) - }); -} -function createSlotFill(key) { - const baseName = typeof key === 'symbol' ? key.description : key; - const FillComponent = props => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Fill, { - name: key, - ...props - }); - FillComponent.displayName = `${baseName}Fill`; - const SlotComponent = props => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Slot, { - name: key, - ...props - }); - SlotComponent.displayName = `${baseName}Slot`; - SlotComponent.__unstableName = key; - return { - Fill: FillComponent, - Slot: SlotComponent - }; -} -const createPrivateSlotFill = name => { - const privateKey = Symbol(name); - const privateSlotFill = createSlotFill(privateKey); - return { - privateKey, - ...privateSlotFill - }; -}; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/slot-fill/provider.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/slot-fill/provider.js ***! - \*******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SlotFillProvider: () => (/* binding */ SlotFillProvider), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./context */ "./node_modules/@wordpress/components/build-module/slot-fill/context.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -function createSlotRegistry() { - const slots = {}; - const fills = {}; - let listeners = []; - function registerSlot(name, slot) { - const previousSlot = slots[name]; - slots[name] = slot; - triggerListeners(); - - // Sometimes the fills are registered after the initial render of slot - // But before the registerSlot call, we need to rerender the slot. - forceUpdateSlot(name); - - // If a new instance of a slot is being mounted while another with the - // same name exists, force its update _after_ the new slot has been - // assigned into the instance, such that its own rendering of children - // will be empty (the new Slot will subsume all fills for this name). - if (previousSlot) { - previousSlot.forceUpdate(); - } - } - function registerFill(name, instance) { - fills[name] = [...(fills[name] || []), instance]; - forceUpdateSlot(name); - } - function unregisterSlot(name, instance) { - // If a previous instance of a Slot by this name unmounts, do nothing, - // as the slot and its fills should only be removed for the current - // known instance. - if (slots[name] !== instance) { - return; - } - delete slots[name]; - triggerListeners(); - } - function unregisterFill(name, instance) { - var _fills$name$filter; - fills[name] = (_fills$name$filter = fills[name]?.filter(fill => fill !== instance)) !== null && _fills$name$filter !== void 0 ? _fills$name$filter : []; - forceUpdateSlot(name); - } - function getSlot(name) { - return slots[name]; - } - function getFills(name, slotInstance) { - // Fills should only be returned for the current instance of the slot - // in which they occupy. - if (slots[name] !== slotInstance) { - return []; - } - return fills[name]; - } - function forceUpdateSlot(name) { - const slot = getSlot(name); - if (slot) { - slot.forceUpdate(); - } - } - function triggerListeners() { - listeners.forEach(listener => listener()); - } - function subscribe(listener) { - listeners.push(listener); - return () => { - listeners = listeners.filter(l => l !== listener); - }; - } - return { - registerSlot, - unregisterSlot, - registerFill, - unregisterFill, - getSlot, - getFills, - subscribe - }; -} -function SlotFillProvider({ - children -}) { - const [contextValue] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(createSlotRegistry); - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_context__WEBPACK_IMPORTED_MODULE_2__["default"].Provider, { - value: contextValue, - children: children - }); -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SlotFillProvider); -//# sourceMappingURL=provider.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/slot-fill/slot.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/slot-fill/slot.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_1__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/@wordpress/components/node_modules/@wordpress/element/build-module/utils.js"); -/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./context */ "./node_modules/@wordpress/components/build-module/slot-fill/context.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - -/** - * Whether the argument is a function. - * - * @param maybeFunc The argument to check. - * @return True if the argument is a function, false otherwise. - */ -function isFunction(maybeFunc) { - return typeof maybeFunc === 'function'; -} -class SlotComponent extends _wordpress_element__WEBPACK_IMPORTED_MODULE_1__.Component { - constructor(props) { - super(props); - this.isUnmounted = false; - } - componentDidMount() { - const { - registerSlot - } = this.props; - this.isUnmounted = false; - registerSlot(this.props.name, this); - } - componentWillUnmount() { - const { - unregisterSlot - } = this.props; - this.isUnmounted = true; - unregisterSlot(this.props.name, this); - } - componentDidUpdate(prevProps) { - const { - name, - unregisterSlot, - registerSlot - } = this.props; - if (prevProps.name !== name) { - unregisterSlot(prevProps.name, this); - registerSlot(name, this); - } - } - forceUpdate() { - if (this.isUnmounted) { - return; - } - super.forceUpdate(); - } - render() { - var _getFills; - const { - children, - name, - fillProps = {}, - getFills - } = this.props; - const fills = ((_getFills = getFills(name, this)) !== null && _getFills !== void 0 ? _getFills : []).map(fill => { - const fillChildren = isFunction(fill.children) ? fill.children(fillProps) : fill.children; - return _wordpress_element__WEBPACK_IMPORTED_MODULE_1__.Children.map(fillChildren, (child, childIndex) => { - if (!child || typeof child === 'string') { - return child; - } - let childKey = childIndex; - if (typeof child === 'object' && 'key' in child && child?.key) { - childKey = child.key; - } - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(child, { - key: childKey - }); - }); - }).filter( - // In some cases fills are rendered only when some conditions apply. - // This ensures that we only use non-empty fills when rendering, i.e., - // it allows us to render wrappers only when the fills are actually present. - element => !(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.isEmptyElement)(element)); - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: isFunction(children) ? children(fills) : fills - }); - } -} -const Slot = props => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_context__WEBPACK_IMPORTED_MODULE_3__["default"].Consumer, { - children: ({ - registerSlot, - unregisterSlot, - getFills - }) => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SlotComponent, { - ...props, - registerSlot: registerSlot, - unregisterSlot: unregisterSlot, - getFills: getFills - }) -}); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Slot); -//# sourceMappingURL=slot.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/slot-fill/use-slot.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/slot-fill/use-slot.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 */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./context */ "./node_modules/@wordpress/components/build-module/slot-fill/context.js"); -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - -/** - * React hook returning the active slot given a name. - * - * @param name Slot name. - * @return Slot object. - */ -const useSlot = name => { - const { - getSlot, - subscribe - } = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_1__["default"]); - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useSyncExternalStore)(subscribe, () => getSlot(name), () => getSlot(name)); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useSlot); -//# sourceMappingURL=use-slot.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/style-provider/index.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/style-provider/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 */ StyleProvider: () => (/* binding */ StyleProvider), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _emotion_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @emotion/react */ "./node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js"); -/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @emotion/cache */ "./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"); -/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid */ "./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/v4.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * External dependencies - */ - - - - -/** - * Internal dependencies - */ - -const uuidCache = new Set(); -// Use a weak map so that when the container is detached it's automatically -// dereferenced to avoid memory leak. -const containerCacheMap = new WeakMap(); -const memoizedCreateCacheWithContainer = container => { - if (containerCacheMap.has(container)) { - return containerCacheMap.get(container); - } - - // Emotion only accepts alphabetical and hyphenated keys so we just - // strip the numbers from the UUID. It _should_ be fine. - let key = uuid__WEBPACK_IMPORTED_MODULE_2__["default"]().replace(/[0-9]/g, ''); - while (uuidCache.has(key)) { - key = uuid__WEBPACK_IMPORTED_MODULE_2__["default"]().replace(/[0-9]/g, ''); - } - uuidCache.add(key); - const cache = (0,_emotion_cache__WEBPACK_IMPORTED_MODULE_0__["default"])({ - container, - key - }); - containerCacheMap.set(container, cache); - return cache; -}; -function StyleProvider(props) { - const { - children, - document - } = props; - if (!document) { - return null; - } - const cache = memoizedCreateCacheWithContainer(document.head); - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_emotion_react__WEBPACK_IMPORTED_MODULE_3__.C, { - value: cache, - children: children - }); -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StyleProvider); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/tooltip/index.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/tooltip/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 */ TOOLTIP_DELAY: () => (/* binding */ TOOLTIP_DELAY), -/* harmony export */ Tooltip: () => (/* binding */ Tooltip), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _ariakit_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ariakit/react */ "./node_modules/@ariakit/react-core/esm/__chunks/2QMN5E6B.js"); -/* harmony import */ var _ariakit_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ariakit/react */ "./node_modules/@ariakit/react-core/esm/__chunks/FSFPRQFR.js"); -/* harmony import */ var _ariakit_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ariakit/react */ "./node_modules/@ariakit/react-core/esm/tooltip/tooltip-anchor.js"); -/* harmony import */ var _ariakit_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ariakit/react */ "./node_modules/@ariakit/react-core/esm/tooltip/tooltip.js"); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/compose */ "./node_modules/@wordpress/compose/build-module/hooks/use-instance-id/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/deprecated */ "./node_modules/@wordpress/deprecated/build-module/index.js"); -/* harmony import */ var _shortcut__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../shortcut */ "./node_modules/@wordpress/components/build-module/shortcut/index.js"); -/* harmony import */ var _popover_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../popover/utils */ "./node_modules/@wordpress/components/build-module/popover/utils.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * External dependencies - */ -// eslint-disable-next-line no-restricted-imports - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - - -const TooltipInternalContext = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.createContext)({ - isNestedInTooltip: false -}); - -/** - * Time over anchor to wait before showing tooltip - */ -const TOOLTIP_DELAY = 700; -const CONTEXT_VALUE = { - isNestedInTooltip: true -}; -function UnforwardedTooltip(props, ref) { - const { - children, - delay = TOOLTIP_DELAY, - hideOnClick = true, - placement, - position, - shortcut, - text, - ...restProps - } = props; - const { - isNestedInTooltip - } = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useContext)(TooltipInternalContext); - const baseId = (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__["default"])(Tooltip, 'tooltip'); - const describedById = text || shortcut ? baseId : undefined; - const isOnlyChild = _wordpress_element__WEBPACK_IMPORTED_MODULE_1__.Children.count(children) === 1; - // console error if more than one child element is added - if (!isOnlyChild) { - if (true) { - // eslint-disable-next-line no-console - console.error('wp-components.Tooltip should be called with only a single child element.'); - } - } - - // Compute tooltip's placement: - // - give priority to `placement` prop, if defined - // - otherwise, compute it from the legacy `position` prop (if defined) - // - finally, fallback to the default placement: 'bottom' - let computedPlacement; - if (placement !== undefined) { - computedPlacement = placement; - } else if (position !== undefined) { - computedPlacement = (0,_popover_utils__WEBPACK_IMPORTED_MODULE_3__.positionToPlacement)(position); - (0,_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_4__["default"])('`position` prop in wp.components.tooltip', { - since: '6.4', - alternative: '`placement` prop' - }); - } - computedPlacement = computedPlacement || 'bottom'; - const tooltipStore = _ariakit_react__WEBPACK_IMPORTED_MODULE_5__.useTooltipStore({ - placement: computedPlacement, - showTimeout: delay - }); - if (isNestedInTooltip) { - return isOnlyChild ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ariakit_react__WEBPACK_IMPORTED_MODULE_6__.Role, { - ...restProps, - render: children - }) : children; - } - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(TooltipInternalContext.Provider, { - value: CONTEXT_VALUE, - children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ariakit_react__WEBPACK_IMPORTED_MODULE_7__.TooltipAnchor, { - onClick: hideOnClick ? tooltipStore.hide : undefined, - store: tooltipStore, - render: isOnlyChild ? children : undefined, - ref: ref, - children: isOnlyChild ? undefined : children - }), isOnlyChild && (text || shortcut) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_ariakit_react__WEBPACK_IMPORTED_MODULE_8__.Tooltip, { - ...restProps, - className: "components-tooltip", - unmountOnHide: true, - gutter: 4, - id: describedById, - overflowPadding: 0.5, - store: tooltipStore, - children: [text, shortcut && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_shortcut__WEBPACK_IMPORTED_MODULE_9__["default"], { - className: text ? 'components-tooltip__shortcut' : '', - shortcut: shortcut - })] - })] - }); -} -const Tooltip = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(UnforwardedTooltip); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Tooltip); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/utils/hooks/use-cx.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/utils/hooks/use-cx.js ***! - \*******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useCx: () => (/* binding */ useCx) -/* harmony export */ }); -/* harmony import */ var _emotion_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @emotion/react */ "./node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js"); -/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @emotion/utils */ "./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"); -/* harmony import */ var _emotion_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/css */ "./node_modules/@emotion/css/dist/emotion-css.esm.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__); -/** - * External dependencies - */ - - -// eslint-disable-next-line no-restricted-imports - -// eslint-disable-next-line no-restricted-imports - - -/** - * WordPress dependencies - */ - -const isSerializedStyles = o => typeof o !== 'undefined' && o !== null && ['name', 'styles'].every(p => typeof o[p] !== 'undefined'); - -/** - * Retrieve a `cx` function that knows how to handle `SerializedStyles` - * returned by the `@emotion/react` `css` function in addition to what - * `cx` normally knows how to handle. It also hooks into the Emotion - * Cache, allowing `css` calls to work inside iframes. - * - * ```jsx - * import { css } from '@emotion/react'; - * - * const styles = css` - * color: red - * `; - * - * function RedText( { className, ...props } ) { - * const cx = useCx(); - * - * const classes = cx(styles, className); - * - * return ; - * } - * ``` - */ -const useCx = () => { - const cache = (0,_emotion_react__WEBPACK_IMPORTED_MODULE_2__._)(); - const cx = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useCallback)((...classNames) => { - if (cache === null) { - throw new Error('The `useCx` hook should be only used within a valid Emotion Cache Context'); - } - return (0,_emotion_css__WEBPACK_IMPORTED_MODULE_1__.cx)(...classNames.map(arg => { - if (isSerializedStyles(arg)) { - (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_0__.insertStyles)(cache, arg, false); - return `${cache.key}-${arg.name}`; - } - return arg; - })); - }, [cache]); - return cx; -}; -//# sourceMappingURL=use-cx.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/utils/hooks/use-update-effect.js": -/*!******************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/utils/hooks/use-update-effect.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 */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/** - * WordPress dependencies - */ - - -/** - * A `React.useEffect` that will not run on the first render. - * Source: - * https://github.com/ariakit/ariakit/blob/reakit/packages/reakit-utils/src/useUpdateEffect.ts - * - * @param {import('react').EffectCallback} effect - * @param {import('react').DependencyList} deps - */ -function useUpdateEffect(effect, deps) { - const mounted = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(false); - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (mounted.current) { - return effect(); - } - mounted.current = true; - return undefined; - // Disable reasons: - // 1. This hook needs to pass a dep list that isn't an array literal - // 2. `effect` is missing from the array, and will need to be added carefully to avoid additional warnings - // see https://github.com/WordPress/gutenberg/pull/41166 - // eslint-disable-next-line react-hooks/exhaustive-deps - }, deps); -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useUpdateEffect); -//# sourceMappingURL=use-update-effect.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/view/component.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/view/component.js ***! - \***************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ View: () => (/* binding */ View), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @emotion/styled/base */ "./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - -const PolymorphicDiv = /*#__PURE__*/(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__["default"])("div", false ? 0 : { - target: "e19lxcc00", - label: "PolymorphicDiv" -})( false ? 0 : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvdmlldy9jb21wb25lbnQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWVpQyIsImZpbGUiOiJAd29yZHByZXNzL2NvbXBvbmVudHMvc3JjL3ZpZXcvY29tcG9uZW50LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5j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HQ8L1ZpZXc+XG4gKiBcdCk7XG4gKiB9XG4gKiBgYGBcbiAqL1xuZXhwb3J0IGNvbnN0IFZpZXcgPSBPYmplY3QuYXNzaWduKCBmb3J3YXJkUmVmKCBVbmZvcndhcmRlZFZpZXcgKSwge1xuXHRzZWxlY3RvcjogJy5jb21wb25lbnRzLXZpZXcnLFxufSApO1xuXG5leHBvcnQgZGVmYXVsdCBWaWV3O1xuIl19 */"); -function UnforwardedView({ - as, - ...restProps -}, ref) { - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(PolymorphicDiv, { - as: as, - ref: ref, - ...restProps - }); -} - -/** - * `View` is a core component that renders everything in the library. - * It is the principle component in the entire library. - * - * ```jsx - * import { View } from `@wordpress/components`; - * - * function Example() { - * return ( - * - * Code is Poetry - * - * ); - * } - * ``` - */ -const View = Object.assign((0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(UnforwardedView), { - selector: '.components-view' -}); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (View); -//# sourceMappingURL=component.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/visually-hidden/component.js": -/*!**************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/visually-hidden/component.js ***! - \**************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ VisuallyHidden: () => (/* binding */ VisuallyHidden), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../context */ "./node_modules/@wordpress/components/build-module/context/use-context-system.js"); -/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../context */ "./node_modules/@wordpress/components/build-module/context/context-connect.js"); -/* harmony import */ var _styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./styles */ "./node_modules/@wordpress/components/build-module/visually-hidden/styles.js"); -/* harmony import */ var _view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../view */ "./node_modules/@wordpress/components/build-module/view/component.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * External dependencies - */ - -/** - * Internal dependencies - */ - - - - - -function UnconnectedVisuallyHidden(props, forwardedRef) { - const { - style: styleProp, - ...contextProps - } = (0,_context__WEBPACK_IMPORTED_MODULE_1__.useContextSystem)(props, 'VisuallyHidden'); - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_view__WEBPACK_IMPORTED_MODULE_2__["default"], { - ref: forwardedRef, - ...contextProps, - style: { - ..._styles__WEBPACK_IMPORTED_MODULE_3__.visuallyHidden, - ...(styleProp || {}) - } - }); -} - -/** - * `VisuallyHidden` is a component used to render text intended to be visually - * hidden, but will show for alternate devices, for example a screen reader. - * - * ```jsx - * import { VisuallyHidden } from `@wordpress/components`; - * - * function Example() { - * return ( - * - * - * - * ); - * } - * ``` - */ -const VisuallyHidden = (0,_context__WEBPACK_IMPORTED_MODULE_4__.contextConnect)(UnconnectedVisuallyHidden, 'VisuallyHidden'); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VisuallyHidden); -//# sourceMappingURL=component.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/build-module/visually-hidden/styles.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@wordpress/components/build-module/visually-hidden/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 */ visuallyHidden: () => (/* binding */ visuallyHidden) -/* harmony export */ }); -/** - * External dependencies - */ - -const visuallyHidden = { - border: 0, - clip: 'rect(1px, 1px, 1px, 1px)', - WebkitClipPath: 'inset( 50% )', - clipPath: 'inset( 50% )', - height: '1px', - margin: '-1px', - overflow: 'hidden', - padding: 0, - position: 'absolute', - width: '1px', - wordWrap: 'normal' -}; -//# sourceMappingURL=styles.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/node_modules/@wordpress/element/build-module/utils.js": -/*!**************************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/node_modules/@wordpress/element/build-module/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 */ isEmptyElement: () => (/* binding */ isEmptyElement) -/* harmony export */ }); -/** - * Checks if the provided WP element is empty. - * - * @param {*} element WP element to check. - * @return {boolean} True when an element is considered empty. - */ -const isEmptyElement = element => { - if (typeof element === 'number') { - return false; - } - if (typeof element?.valueOf() === 'string' || Array.isArray(element)) { - return !element.length; - } - return !element; -}; -//# sourceMappingURL=utils.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/node_modules/@wordpress/primitives/build-module/svg/index.js": -/*!*********************************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/node_modules/@wordpress/primitives/build-module/svg/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 */ Circle: () => (/* binding */ Circle), -/* harmony export */ Defs: () => (/* binding */ Defs), -/* harmony export */ G: () => (/* binding */ G), -/* harmony export */ Line: () => (/* binding */ Line), -/* harmony export */ LinearGradient: () => (/* binding */ LinearGradient), -/* harmony export */ Path: () => (/* binding */ Path), -/* harmony export */ Polygon: () => (/* binding */ Polygon), -/* harmony export */ RadialGradient: () => (/* binding */ RadialGradient), -/* harmony export */ Rect: () => (/* binding */ Rect), -/* harmony export */ SVG: () => (/* binding */ SVG), -/* harmony export */ Stop: () => (/* binding */ Stop) -/* harmony export */ }); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! clsx */ "./node_modules/@wordpress/components/node_modules/clsx/dist/clsx.mjs"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - -/** @typedef {{isPressed?: boolean} & import('react').ComponentPropsWithoutRef<'svg'>} SVGProps */ - -/** - * @param {import('react').ComponentPropsWithoutRef<'circle'>} props - * - * @return {JSX.Element} Circle component - */ - -const Circle = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('circle', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'g'>} props - * - * @return {JSX.Element} G component - */ -const G = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('g', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'line'>} props - * - * @return {JSX.Element} Path component - */ -const Line = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('line', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'path'>} props - * - * @return {JSX.Element} Path component - */ -const Path = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('path', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'polygon'>} props - * - * @return {JSX.Element} Polygon component - */ -const Polygon = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('polygon', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'rect'>} props - * - * @return {JSX.Element} Rect component - */ -const Rect = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('rect', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'defs'>} props - * - * @return {JSX.Element} Defs component - */ -const Defs = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('defs', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props - * - * @return {JSX.Element} RadialGradient component - */ -const RadialGradient = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('radialGradient', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props - * - * @return {JSX.Element} LinearGradient component - */ -const LinearGradient = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('linearGradient', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'stop'>} props - * - * @return {JSX.Element} Stop component - */ -const Stop = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('stop', props); -const SVG = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.forwardRef)( -/** - * @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed. - * Other props will be passed through to svg component. - * @param {import('react').ForwardedRef} ref The forwarded ref to the SVG element. - * - * @return {JSX.Element} Stop component - */ -({ - className, - isPressed, - ...props -}, ref) => { - const appliedProps = { - ...props, - className: (0,clsx__WEBPACK_IMPORTED_MODULE_0__["default"])(className, { - 'is-pressed': isPressed - }) || undefined, - 'aria-hidden': true, - focusable: false - }; - - // Disable reason: We need to have a way to render HTML tag for web. - // eslint-disable-next-line react/forbid-elements - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("svg", { - ...appliedProps, - ref: ref - }); -}); -SVG.displayName = 'SVG'; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/node_modules/@wordpress/warning/build-module/index.js": -/*!**************************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/node_modules/@wordpress/warning/build-module/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": () => (/* binding */ warning) -/* harmony export */ }); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./node_modules/@wordpress/components/node_modules/@wordpress/warning/build-module/utils.js"); -/** - * Internal dependencies - */ - -function isDev() { - // eslint-disable-next-line @wordpress/wp-global-usage - return globalThis.SCRIPT_DEBUG === true; -} - -/** - * Shows a warning with `message` if environment is not `production`. - * - * @param {string} message Message to show in the warning. - * - * @example - * ```js - * import warning from '@wordpress/warning'; - * - * function MyComponent( props ) { - * if ( ! props.title ) { - * warning( '`props.title` was not passed' ); - * } - * ... - * } - * ``` - */ -function warning(message) { - if (!isDev()) { - return; - } - - // Skip if already logged. - if (_utils__WEBPACK_IMPORTED_MODULE_0__.logged.has(message)) { - return; - } - - // eslint-disable-next-line no-console - console.warn(message); - - // Throwing an error and catching it immediately to improve debugging - // A consumer can use 'pause on caught exceptions' - // https://github.com/facebook/react/issues/4216 - try { - throw Error(message); - } catch (x) { - // Do nothing. - } - _utils__WEBPACK_IMPORTED_MODULE_0__.logged.add(message); -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/node_modules/@wordpress/warning/build-module/utils.js": -/*!**************************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/node_modules/@wordpress/warning/build-module/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 */ logged: () => (/* binding */ logged) -/* harmony export */ }); -/** - * Object map tracking messages which have been logged, for use in ensuring a - * message is only logged once. - * - * @type {Set} - */ -const logged = new Set(); -//# sourceMappingURL=utils.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/native.js": -/*!*****************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/native.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 */ }); -const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - randomUUID -}); - -/***/ }), - -/***/ "./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/regex.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/regex.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 default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i); - -/***/ }), - -/***/ "./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/rng.js": -/*!**************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/rng.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 */ rng) -/* harmony export */ }); -// Unique ID creation requires a high quality random # generator. In the browser we therefore -// require the crypto API and do not support built-in fallback to lower quality random number -// generators (like Math.random()). -let getRandomValues; -const rnds8 = new Uint8Array(16); -function rng() { - // lazy load so that environments that need to polyfill have a chance to do so - if (!getRandomValues) { - // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. - getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto); - - if (!getRandomValues) { - throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); - } - } - - return getRandomValues(rnds8); -} - -/***/ }), - -/***/ "./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/stringify.js": -/*!********************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/stringify.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 */ unsafeStringify: () => (/* binding */ unsafeStringify) -/* harmony export */ }); -/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/validate.js"); - -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ - -const byteToHex = []; - -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).slice(1)); -} - -function unsafeStringify(arr, offset = 0) { - // Note: Be careful editing this code! It's been tuned for performance - // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 - return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]; -} - -function stringify(arr, offset = 0) { - const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one - // of the following: - // - One or more input array values don't map to a hex octet (leading to - // "undefined" in the uuid) - // - Invalid input values for the RFC `version` or `variant` fields - - if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - - return uuid; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (stringify); - -/***/ }), - -/***/ "./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/v4.js": -/*!*************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/v4.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 _native_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./native.js */ "./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/native.js"); -/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./rng.js */ "./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/rng.js"); -/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/stringify.js"); - - - - -function v4(options, buf, offset) { - if (_native_js__WEBPACK_IMPORTED_MODULE_0__["default"].randomUUID && !buf && !options) { - return _native_js__WEBPACK_IMPORTED_MODULE_0__["default"].randomUUID(); - } - - options = options || {}; - const rnds = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_1__["default"])(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - - rnds[6] = rnds[6] & 0x0f | 0x40; - rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided - - if (buf) { - offset = offset || 0; - - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - - return buf; - } - - return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_2__.unsafeStringify)(rnds); -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v4); - -/***/ }), - -/***/ "./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/validate.js": -/*!*******************************************************************************************!*\ - !*** ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/validate.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 _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ "./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/regex.js"); - - -function validate(uuid) { - return typeof uuid === 'string' && _regex_js__WEBPACK_IMPORTED_MODULE_0__["default"].test(uuid); -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validate); - -/***/ }), - -/***/ "./node_modules/@wordpress/compose/build-module/higher-order/compose.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@wordpress/compose/build-module/higher-order/compose.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 _pipe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pipe */ "./node_modules/@wordpress/compose/build-module/higher-order/pipe.js"); -/** - * Internal dependencies - */ - - -/** - * Composes multiple higher-order components into a single higher-order component. Performs right-to-left function - * composition, where each successive invocation is supplied the return value of the previous. - * - * This is inspired by `lodash`'s `flowRight` function. - * - * @see https://lodash.com/docs/4#flow-right - */ -const compose = (0,_pipe__WEBPACK_IMPORTED_MODULE_0__.basePipe)(true); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (compose); -//# sourceMappingURL=compose.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/compose/build-module/higher-order/pipe.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@wordpress/compose/build-module/higher-order/pipe.js ***! - \***************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ basePipe: () => (/* binding */ basePipe), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/** - * Parts of this source were derived and modified from lodash, - * released under the MIT license. - * - * https://github.com/lodash/lodash - * - * Copyright JS Foundation and other contributors - * - * Based on Underscore.js, copyright Jeremy Ashkenas, - * DocumentCloud and Investigative Reporters & Editors - * - * This software consists of voluntary contributions made by many - * individuals. For exact contribution history, see the revision history - * available at https://github.com/lodash/lodash - * - * The following license applies to all parts of this software except as - * documented below: - * - * ==== - * - * Permission is hereby granted, free of charge, to any person obtaining - * a copy of this software and associated documentation files (the - * "Software"), to deal in the Software without restriction, including - * without limitation the rights to use, copy, modify, merge, publish, - * distribute, sublicense, and/or sell copies of the Software, and to - * permit persons to whom the Software is furnished to do so, subject to - * the following conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ - -/** - * Creates a pipe function. - * - * Allows to choose whether to perform left-to-right or right-to-left composition. - * - * @see https://lodash.com/docs/4#flow - * - * @param {boolean} reverse True if right-to-left, false for left-to-right composition. - */ -const basePipe = (reverse = false) => (...funcs) => (...args) => { - const functions = funcs.flat(); - if (reverse) { - functions.reverse(); - } - return functions.reduce((prev, func) => [func(...prev)], args)[0]; -}; - -/** - * Composes multiple higher-order components into a single higher-order component. Performs left-to-right function - * composition, where each successive invocation is supplied the return value of the previous. - * - * This is inspired by `lodash`'s `flow` function. - * - * @see https://lodash.com/docs/4#flow - */ -const pipe = basePipe(); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (pipe); -//# sourceMappingURL=pipe.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/compose/build-module/higher-order/pure/index.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/@wordpress/compose/build-module/higher-order/pure/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_is_shallow_equal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/is-shallow-equal */ "./node_modules/@wordpress/is-shallow-equal/build-module/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _utils_create_higher_order_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/create-higher-order-component */ "./node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/index.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -/** - * Given a component returns the enhanced component augmented with a component - * only re-rendering when its props/state change - * - * @deprecated Use `memo` or `PureComponent` instead. - */ - -const pure = (0,_utils_create_higher_order_component__WEBPACK_IMPORTED_MODULE_1__.createHigherOrderComponent)(function (WrappedComponent) { - if (WrappedComponent.prototype instanceof _wordpress_element__WEBPACK_IMPORTED_MODULE_2__.Component) { - return class extends WrappedComponent { - shouldComponentUpdate(nextProps, nextState) { - return !(0,_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_3__["default"])(nextProps, this.props) || !(0,_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_3__["default"])(nextState, this.state); - } - }; - } - return class extends _wordpress_element__WEBPACK_IMPORTED_MODULE_2__.Component { - shouldComponentUpdate(nextProps) { - return !(0,_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_3__["default"])(nextProps, this.props); - } - render() { - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(WrappedComponent, { - ...this.props - }); - } - }; -}, 'pure'); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (pure); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/compose/build-module/hooks/use-instance-id/index.js": -/*!*************************************************************************************!*\ - !*** ./node_modules/@wordpress/compose/build-module/hooks/use-instance-id/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 */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/** - * WordPress dependencies - */ - -const instanceMap = new WeakMap(); - -/** - * Creates a new id for a given object. - * - * @param object Object reference to create an id for. - * @return The instance id (index). - */ -function createId(object) { - const instances = instanceMap.get(object) || 0; - instanceMap.set(object, instances + 1); - return instances; -} - -/** - * Specify the useInstanceId *function* signatures. - * - * More accurately, useInstanceId distinguishes between three different - * signatures: - * - * 1. When only object is given, the returned value is a number - * 2. When object and prefix is given, the returned value is a string - * 3. When preferredId is given, the returned value is the type of preferredId - * - * @param object Object reference to create an id for. - */ - -/** - * Provides a unique instance ID. - * - * @param object Object reference to create an id for. - * @param [prefix] Prefix for the unique id. - * @param [preferredId] Default ID to use. - * @return The unique instance id. - */ -function useInstanceId(object, prefix, preferredId) { - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => { - if (preferredId) { - return preferredId; - } - const id = createId(object); - return prefix ? `${prefix}-${id}` : id; - }, [object, preferredId, prefix]); -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useInstanceId); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/compose/build-module/hooks/use-isomorphic-layout-effect/index.js": -/*!**************************************************************************************************!*\ - !*** ./node_modules/@wordpress/compose/build-module/hooks/use-isomorphic-layout-effect/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 */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/** - * WordPress dependencies - */ - - -/** - * Preferred over direct usage of `useLayoutEffect` when supporting - * server rendered components (SSR) because currently React - * throws a warning when using useLayoutEffect in that environment. - */ -const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useIsomorphicLayoutEffect); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/compose/build-module/hooks/use-merge-refs/index.js": -/*!************************************************************************************!*\ - !*** ./node_modules/@wordpress/compose/build-module/hooks/use-merge-refs/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": () => (/* binding */ useMergeRefs) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/** - * WordPress dependencies - */ - - -/* eslint-disable jsdoc/valid-types */ -/** - * @template T - * @typedef {T extends import('react').Ref ? R : never} TypeFromRef - */ -/* eslint-enable jsdoc/valid-types */ - -/** - * @template T - * @param {import('react').Ref} ref - * @param {T} value - */ -function assignRef(ref, value) { - if (typeof ref === 'function') { - ref(value); - } else if (ref && ref.hasOwnProperty('current')) { - /* eslint-disable jsdoc/no-undefined-types */ - /** @type {import('react').MutableRefObject} */ref.current = value; - /* eslint-enable jsdoc/no-undefined-types */ - } -} - -/** - * Merges refs into one ref callback. - * - * It also ensures that the merged ref callbacks are only called when they - * change (as a result of a `useCallback` dependency update) OR when the ref - * value changes, just as React does when passing a single ref callback to the - * component. - * - * As expected, if you pass a new function on every render, the ref callback - * will be called after every render. - * - * If you don't wish a ref callback to be called after every render, wrap it - * with `useCallback( callback, dependencies )`. When a dependency changes, the - * old ref callback will be called with `null` and the new ref callback will be - * called with the same value. - * - * To make ref callbacks easier to use, you can also pass the result of - * `useRefEffect`, which makes cleanup easier by allowing you to return a - * cleanup function instead of handling `null`. - * - * It's also possible to _disable_ a ref (and its behaviour) by simply not - * passing the ref. - * - * ```jsx - * const ref = useRefEffect( ( node ) => { - * node.addEventListener( ... ); - * return () => { - * node.removeEventListener( ... ); - * }; - * }, [ ...dependencies ] ); - * const otherRef = useRef(); - * const mergedRefs useMergeRefs( [ - * enabled && ref, - * otherRef, - * ] ); - * return
; - * ``` - * - * @template {import('react').Ref} TRef - * @param {Array} refs The refs to be merged. - * - * @return {import('react').RefCallback>} The merged ref callback. - */ -function useMergeRefs(refs) { - const element = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - const isAttached = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(false); - const didElementChange = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(false); - /* eslint-disable jsdoc/no-undefined-types */ - /** @type {import('react').MutableRefObject} */ - /* eslint-enable jsdoc/no-undefined-types */ - const previousRefs = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)([]); - const currentRefs = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(refs); - - // Update on render before the ref callback is called, so the ref callback - // always has access to the current refs. - currentRefs.current = refs; - - // If any of the refs change, call the previous ref with `null` and the new - // ref with the node, except when the element changes in the same cycle, in - // which case the ref callbacks will already have been called. - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)(() => { - if (didElementChange.current === false && isAttached.current === true) { - refs.forEach((ref, index) => { - const previousRef = previousRefs.current[index]; - if (ref !== previousRef) { - assignRef(previousRef, null); - assignRef(ref, element.current); - } - }); - } - previousRefs.current = refs; - }, refs); - - // No dependencies, must be reset after every render so ref callbacks are - // correctly called after a ref change. - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)(() => { - didElementChange.current = false; - }); - - // There should be no dependencies so that `callback` is only called when - // the node changes. - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useCallback)(value => { - // Update the element so it can be used when calling ref callbacks on a - // dependency change. - assignRef(element, value); - didElementChange.current = true; - isAttached.current = value !== null; - - // When an element changes, the current ref callback should be called - // with the new element and the previous one with `null`. - const refsToAssign = value ? currentRefs.current : previousRefs.current; - - // Update the latest refs. - for (const ref of refsToAssign) { - assignRef(ref, value); - } - }, []); -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/compose/build-module/hooks/use-observable-value/index.js": -/*!******************************************************************************************!*\ - !*** ./node_modules/@wordpress/compose/build-module/hooks/use-observable-value/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": () => (/* binding */ useObservableValue) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - -/** - * React hook that lets you observe an entry in an `ObservableMap`. The hook returns the - * current value corresponding to the key, or `undefined` when there is no value stored. - * It also observes changes to the value and triggers an update of the calling component - * in case the value changes. - * - * @template K The type of the keys in the map. - * @template V The type of the values in the map. - * @param map The `ObservableMap` to observe. - * @param name The map key to observe. - * @return The value corresponding to the map key requested. - */ -function useObservableValue(map, name) { - const [subscribe, getValue] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => [listener => map.subscribe(name, listener), () => map.get(name)], [map, name]); - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useSyncExternalStore)(subscribe, getValue, getValue); -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/index.js": -/*!***************************************************************************************************!*\ - !*** ./node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/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 */ createHigherOrderComponent: () => (/* binding */ createHigherOrderComponent) -/* harmony export */ }); -/* harmony import */ var change_case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! change-case */ "./node_modules/pascal-case/dist.es2015/index.js"); -/** - * External dependencies - */ - -/** - * Given a function mapping a component to an enhanced component and modifier - * name, returns the enhanced component augmented with a generated displayName. - * - * @param mapComponent Function mapping component to enhanced component. - * @param modifierName Seed name from which to generated display name. - * - * @return Component class with generated display name assigned. - */ -function createHigherOrderComponent(mapComponent, modifierName) { - return Inner => { - const Outer = mapComponent(Inner); - Outer.displayName = hocName(modifierName, Inner); - return Outer; - }; -} - -/** - * Returns a displayName for a higher-order component, given a wrapper name. - * - * @example - * hocName( 'MyMemo', Widget ) === 'MyMemo(Widget)'; - * hocName( 'MyMemo',
) === 'MyMemo(Component)'; - * - * @param name Name assigned to higher-order component's wrapper component. - * @param Inner Wrapped component inside higher-order component. - * @return Wrapped name of higher-order component. - */ -const hocName = (name, Inner) => { - const inner = Inner.displayName || Inner.name || 'Component'; - const outer = (0,change_case__WEBPACK_IMPORTED_MODULE_0__.pascalCase)(name !== null && name !== void 0 ? name : ''); - return `${outer}(${inner})`; -}; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/compose/build-module/utils/observable-map/index.js": -/*!************************************************************************************!*\ - !*** ./node_modules/@wordpress/compose/build-module/utils/observable-map/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 */ observableMap: () => (/* binding */ observableMap) -/* harmony export */ }); -/** - * A constructor (factory) for `ObservableMap`, a map-like key/value data structure - * where the individual entries are observable: using the `subscribe` method, you can - * subscribe to updates for a particular keys. Each subscriber always observes one - * specific key and is not notified about any unrelated changes (for different keys) - * in the `ObservableMap`. - * - * @template K The type of the keys in the map. - * @template V The type of the values in the map. - * @return A new instance of the `ObservableMap` type. - */ -function observableMap() { - const map = new Map(); - const listeners = new Map(); - function callListeners(name) { - const list = listeners.get(name); - if (!list) { - return; - } - for (const listener of list) { - listener(); - } - } - return { - get(name) { - return map.get(name); - }, - set(name, value) { - map.set(name, value); - callListeners(name); - }, - delete(name) { - map.delete(name); - callListeners(name); - }, - subscribe(name, listener) { - let list = listeners.get(name); - if (!list) { - list = new Set(); - listeners.set(name, list); - } - list.add(listener); - return () => { - list.delete(listener); - if (list.size === 0) { - listeners.delete(name); - } - }; - } - }; -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/components/async-mode-provider/context.js": -/*!*********************************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/components/async-mode-provider/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 */ AsyncModeConsumer: () => (/* binding */ AsyncModeConsumer), -/* harmony export */ Context: () => (/* binding */ Context), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/** - * WordPress dependencies - */ - -const Context = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createContext)(false); -const { - Consumer, - Provider -} = Context; -const AsyncModeConsumer = Consumer; - -/** - * Context Provider Component used to switch the data module component rerendering - * between Sync and Async modes. - * - * @example - * - * ```js - * import { useSelect, AsyncModeProvider } from '@wordpress/data'; - * import { store as blockEditorStore } from '@wordpress/block-editor'; - * - * function BlockCount() { - * const count = useSelect( ( select ) => { - * return select( blockEditorStore ).getBlockCount() - * }, [] ); - * - * return count; - * } - * - * function App() { - * return ( - * - * - * - * ); - * } - * ``` - * - * In this example, the BlockCount component is rerendered asynchronously. - * It means if a more critical task is being performed (like typing in an input), - * the rerendering is delayed until the browser becomes IDLE. - * It is possible to nest multiple levels of AsyncModeProvider to fine-tune the rendering behavior. - * - * @param {boolean} props.value Enable Async Mode. - * @return {Component} The component to be rendered. - */ -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Provider); -//# sourceMappingURL=context.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/components/async-mode-provider/use-async-mode.js": -/*!****************************************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/components/async-mode-provider/use-async-mode.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 */ useAsyncMode) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./context */ "./node_modules/@wordpress/data/build-module/components/async-mode-provider/context.js"); -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - -function useAsyncMode() { - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_1__.Context); -} -//# sourceMappingURL=use-async-mode.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/components/registry-provider/context.js": -/*!*******************************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/components/registry-provider/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 */ Context: () => (/* binding */ Context), -/* harmony export */ RegistryConsumer: () => (/* binding */ RegistryConsumer), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _default_registry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../default-registry */ "./node_modules/@wordpress/data/build-module/default-registry.js"); -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - -const Context = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createContext)(_default_registry__WEBPACK_IMPORTED_MODULE_1__["default"]); -const { - Consumer, - Provider -} = Context; - -/** - * A custom react Context consumer exposing the provided `registry` to - * children components. Used along with the RegistryProvider. - * - * You can read more about the react context api here: - * https://reactjs.org/docs/context.html#contextprovider - * - * @example - * ```js - * import { - * RegistryProvider, - * RegistryConsumer, - * createRegistry - * } from '@wordpress/data'; - * - * const registry = createRegistry( {} ); - * - * const App = ( { props } ) => { - * return - *
Hello There
- * - * { ( registry ) => ( - * - *
- * } - * ``` - */ -const RegistryConsumer = Consumer; - -/** - * A custom Context provider for exposing the provided `registry` to children - * components via a consumer. - * - * See RegistryConsumer documentation for - * example. - */ -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Provider); -//# sourceMappingURL=context.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/components/registry-provider/use-registry.js": -/*!************************************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/components/registry-provider/use-registry.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 */ useRegistry) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./context */ "./node_modules/@wordpress/data/build-module/components/registry-provider/context.js"); -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -/** - * A custom react hook exposing the registry context for use. - * - * This exposes the `registry` value provided via the - * Registry Provider to a component implementing - * this hook. - * - * It acts similarly to the `useContext` react hook. - * - * Note: Generally speaking, `useRegistry` is a low level hook that in most cases - * won't be needed for implementation. Most interactions with the `@wordpress/data` - * API can be performed via the `useSelect` hook, or the `withSelect` and - * `withDispatch` higher order components. - * - * @example - * ```js - * import { - * RegistryProvider, - * createRegistry, - * useRegistry, - * } from '@wordpress/data'; - * - * const registry = createRegistry( {} ); - * - * const SomeChildUsingRegistry = ( props ) => { - * const registry = useRegistry(); - * // ...logic implementing the registry in other react hooks. - * }; - * - * - * const ParentProvidingRegistry = ( props ) => { - * return - * - * - * }; - * ``` - * - * @return {Function} A custom react hook exposing the registry context value. - */ -function useRegistry() { - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_1__.Context); -} -//# sourceMappingURL=use-registry.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/components/use-dispatch/use-dispatch-with-map.js": -/*!****************************************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/components/use-dispatch/use-dispatch-with-map.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_1__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/compose */ "./node_modules/@wordpress/compose/build-module/hooks/use-isomorphic-layout-effect/index.js"); -/* harmony import */ var _registry_provider_use_registry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../registry-provider/use-registry */ "./node_modules/@wordpress/data/build-module/components/registry-provider/use-registry.js"); -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -/** - * Custom react hook for returning aggregate dispatch actions using the provided - * dispatchMap. - * - * Currently this is an internal api only and is implemented by `withDispatch` - * - * @param {Function} dispatchMap Receives the `registry.dispatch` function as - * the first argument and the `registry` object - * as the second argument. Should return an - * object mapping props to functions. - * @param {Array} deps An array of dependencies for the hook. - * @return {Object} An object mapping props to functions created by the passed - * in dispatchMap. - */ -const useDispatchWithMap = (dispatchMap, deps) => { - const registry = (0,_registry_provider_use_registry__WEBPACK_IMPORTED_MODULE_0__["default"])(); - const currentDispatchMap = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useRef)(dispatchMap); - (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__["default"])(() => { - currentDispatchMap.current = dispatchMap; - }); - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => { - const currentDispatchProps = currentDispatchMap.current(registry.dispatch, registry); - return Object.fromEntries(Object.entries(currentDispatchProps).map(([propName, dispatcher]) => { - if (typeof dispatcher !== 'function') { - // eslint-disable-next-line no-console - console.warn(`Property ${propName} returned from dispatchMap in useDispatchWithMap must be a function.`); - } - return [propName, (...args) => currentDispatchMap.current(registry.dispatch, registry)[propName](...args)]; - })); - }, [registry, ...deps]); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useDispatchWithMap); -//# sourceMappingURL=use-dispatch-with-map.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/components/use-dispatch/use-dispatch.js": -/*!*******************************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/components/use-dispatch/use-dispatch.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 _registry_provider_use_registry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../registry-provider/use-registry */ "./node_modules/@wordpress/data/build-module/components/registry-provider/use-registry.js"); -/** - * Internal dependencies - */ - - -/** - * @typedef {import('../../types').StoreDescriptor} StoreDescriptor - * @template {import('../../types').AnyConfig} StoreConfig - */ -/** - * @typedef {import('../../types').UseDispatchReturn} UseDispatchReturn - * @template StoreNameOrDescriptor - */ - -/** - * A custom react hook returning the current registry dispatch actions creators. - * - * Note: The component using this hook must be within the context of a - * RegistryProvider. - * - * @template {undefined | string | StoreDescriptor} StoreNameOrDescriptor - * @param {StoreNameOrDescriptor} [storeNameOrDescriptor] Optionally provide the name of the - * store or its descriptor from which to - * retrieve action creators. If not - * provided, the registry.dispatch - * function is returned instead. - * - * @example - * This illustrates a pattern where you may need to retrieve dynamic data from - * the server via the `useSelect` hook to use in combination with the dispatch - * action. - * - * ```jsx - * import { useCallback } from 'react'; - * import { useDispatch, useSelect } from '@wordpress/data'; - * import { store as myCustomStore } from 'my-custom-store'; - * - * function Button( { onClick, children } ) { - * return - * } - * - * const SaleButton = ( { children } ) => { - * const { stockNumber } = useSelect( - * ( select ) => select( myCustomStore ).getStockNumber(), - * [] - * ); - * const { startSale } = useDispatch( myCustomStore ); - * const onClick = useCallback( () => { - * const discountPercent = stockNumber > 50 ? 10: 20; - * startSale( discountPercent ); - * }, [ stockNumber ] ); - * return - * } - * - * // Rendered somewhere in the application: - * // - * // Start Sale! - * ``` - * @return {UseDispatchReturn} A custom react hook. - */ -const useDispatch = storeNameOrDescriptor => { - const { - dispatch - } = (0,_registry_provider_use_registry__WEBPACK_IMPORTED_MODULE_0__["default"])(); - return storeNameOrDescriptor === void 0 ? dispatch : dispatch(storeNameOrDescriptor); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useDispatch); -//# sourceMappingURL=use-dispatch.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/components/use-select/index.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/components/use-select/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": () => (/* binding */ useSelect), -/* harmony export */ useSuspenseSelect: () => (/* binding */ useSuspenseSelect) -/* harmony export */ }); -/* harmony import */ var _wordpress_priority_queue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/priority-queue */ "./node_modules/@wordpress/priority-queue/build-module/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/is-shallow-equal */ "./node_modules/@wordpress/is-shallow-equal/build-module/index.js"); -/* harmony import */ var _registry_provider_use_registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../registry-provider/use-registry */ "./node_modules/@wordpress/data/build-module/components/registry-provider/use-registry.js"); -/* harmony import */ var _async_mode_provider_use_async_mode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../async-mode-provider/use-async-mode */ "./node_modules/@wordpress/data/build-module/components/async-mode-provider/use-async-mode.js"); -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -const renderQueue = (0,_wordpress_priority_queue__WEBPACK_IMPORTED_MODULE_0__.createQueue)(); - -/** - * @typedef {import('../../types').StoreDescriptor} StoreDescriptor - * @template {import('../../types').AnyConfig} C - */ -/** - * @typedef {import('../../types').ReduxStoreConfig} ReduxStoreConfig - * @template State - * @template {Record} Actions - * @template Selectors - */ -/** @typedef {import('../../types').MapSelect} MapSelect */ -/** - * @typedef {import('../../types').UseSelectReturn} UseSelectReturn - * @template {MapSelect|StoreDescriptor} T - */ - -function Store(registry, suspense) { - const select = suspense ? registry.suspendSelect : registry.select; - const queueContext = {}; - let lastMapSelect; - let lastMapResult; - let lastMapResultValid = false; - let lastIsAsync; - let subscriber; - let didWarnUnstableReference; - const storeStatesOnMount = new Map(); - function getStoreState(name) { - var _registry$stores$name; - // If there's no store property (custom generic store), return an empty - // object. When comparing the state, the empty objects will cause the - // equality check to fail, setting `lastMapResultValid` to false. - return (_registry$stores$name = registry.stores[name]?.store?.getState?.()) !== null && _registry$stores$name !== void 0 ? _registry$stores$name : {}; - } - const createSubscriber = stores => { - // The set of stores the `subscribe` function is supposed to subscribe to. Here it is - // initialized, and then the `updateStores` function can add new stores to it. - const activeStores = [...stores]; - - // The `subscribe` function, which is passed to the `useSyncExternalStore` hook, could - // be called multiple times to establish multiple subscriptions. That's why we need to - // keep a set of active subscriptions; - const activeSubscriptions = new Set(); - function subscribe(listener) { - // Maybe invalidate the value right after subscription was created. - // React will call `getValue` after subscribing, to detect store - // updates that happened in the interval between the `getValue` call - // during render and creating the subscription, which is slightly - // delayed. We need to ensure that this second `getValue` call will - // compute a fresh value only if any of the store states have - // changed in the meantime. - if (lastMapResultValid) { - for (const name of activeStores) { - if (storeStatesOnMount.get(name) !== getStoreState(name)) { - lastMapResultValid = false; - } - } - } - storeStatesOnMount.clear(); - const onStoreChange = () => { - // Invalidate the value on store update, so that a fresh value is computed. - lastMapResultValid = false; - listener(); - }; - const onChange = () => { - if (lastIsAsync) { - renderQueue.add(queueContext, onStoreChange); - } else { - onStoreChange(); - } - }; - const unsubs = []; - function subscribeStore(storeName) { - unsubs.push(registry.subscribe(onChange, storeName)); - } - for (const storeName of activeStores) { - subscribeStore(storeName); - } - activeSubscriptions.add(subscribeStore); - return () => { - activeSubscriptions.delete(subscribeStore); - for (const unsub of unsubs.values()) { - // The return value of the subscribe function could be undefined if the store is a custom generic store. - unsub?.(); - } - // Cancel existing store updates that were already scheduled. - renderQueue.cancel(queueContext); - }; - } - - // Check if `newStores` contains some stores we're not subscribed to yet, and add them. - function updateStores(newStores) { - for (const newStore of newStores) { - if (activeStores.includes(newStore)) { - continue; - } - - // New `subscribe` calls will subscribe to `newStore`, too. - activeStores.push(newStore); - - // Add `newStore` to existing subscriptions. - for (const subscription of activeSubscriptions) { - subscription(newStore); - } - } - } - return { - subscribe, - updateStores - }; - }; - return (mapSelect, isAsync) => { - function updateValue() { - // If the last value is valid, and the `mapSelect` callback hasn't changed, - // then we can safely return the cached value. The value can change only on - // store update, and in that case value will be invalidated by the listener. - if (lastMapResultValid && mapSelect === lastMapSelect) { - return lastMapResult; - } - const listeningStores = { - current: null - }; - const mapResult = registry.__unstableMarkListeningStores(() => mapSelect(select, registry), listeningStores); - if (true) { - if (!didWarnUnstableReference) { - const secondMapResult = mapSelect(select, registry); - if (!(0,_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_1__["default"])(mapResult, secondMapResult)) { - // eslint-disable-next-line no-console - console.warn(`The 'useSelect' hook returns different values when called with the same state and parameters. This can lead to unnecessary rerenders.`); - didWarnUnstableReference = true; - } - } - } - if (!subscriber) { - for (const name of listeningStores.current) { - storeStatesOnMount.set(name, getStoreState(name)); - } - subscriber = createSubscriber(listeningStores.current); - } else { - subscriber.updateStores(listeningStores.current); - } - - // If the new value is shallow-equal to the old one, keep the old one so - // that we don't trigger unwanted updates that do a `===` check. - if (!(0,_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_1__["default"])(lastMapResult, mapResult)) { - lastMapResult = mapResult; - } - lastMapSelect = mapSelect; - lastMapResultValid = true; - } - function getValue() { - // Update the value in case it's been invalidated or `mapSelect` has changed. - updateValue(); - return lastMapResult; - } - - // When transitioning from async to sync mode, cancel existing store updates - // that have been scheduled, and invalidate the value so that it's freshly - // computed. It might have been changed by the update we just cancelled. - if (lastIsAsync && !isAsync) { - lastMapResultValid = false; - renderQueue.cancel(queueContext); - } - updateValue(); - lastIsAsync = isAsync; - - // Return a pair of functions that can be passed to `useSyncExternalStore`. - return { - subscribe: subscriber.subscribe, - getValue - }; - }; -} -function useStaticSelect(storeName) { - return (0,_registry_provider_use_registry__WEBPACK_IMPORTED_MODULE_2__["default"])().select(storeName); -} -function useMappingSelect(suspense, mapSelect, deps) { - const registry = (0,_registry_provider_use_registry__WEBPACK_IMPORTED_MODULE_2__["default"])(); - const isAsync = (0,_async_mode_provider_use_async_mode__WEBPACK_IMPORTED_MODULE_3__["default"])(); - const store = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useMemo)(() => Store(registry, suspense), [registry, suspense]); - - // These are "pass-through" dependencies from the parent hook, - // and the parent should catch any hook rule violations. - // eslint-disable-next-line react-hooks/exhaustive-deps - const selector = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useCallback)(mapSelect, deps); - const { - subscribe, - getValue - } = store(selector, isAsync); - const result = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useSyncExternalStore)(subscribe, getValue, getValue); - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useDebugValue)(result); - return result; -} - -/** - * Custom react hook for retrieving props from registered selectors. - * - * In general, this custom React hook follows the - * [rules of hooks](https://reactjs.org/docs/hooks-rules.html). - * - * @template {MapSelect | StoreDescriptor} T - * @param {T} mapSelect Function called on every state change. The returned value is - * exposed to the component implementing this hook. The function - * receives the `registry.select` method on the first argument - * and the `registry` on the second argument. - * When a store key is passed, all selectors for the store will be - * returned. This is only meant for usage of these selectors in event - * callbacks, not for data needed to create the element tree. - * @param {unknown[]} deps If provided, this memoizes the mapSelect so the same `mapSelect` is - * invoked on every state change unless the dependencies change. - * - * @example - * ```js - * import { useSelect } from '@wordpress/data'; - * import { store as myCustomStore } from 'my-custom-store'; - * - * function HammerPriceDisplay( { currency } ) { - * const price = useSelect( ( select ) => { - * return select( myCustomStore ).getPrice( 'hammer', currency ); - * }, [ currency ] ); - * return new Intl.NumberFormat( 'en-US', { - * style: 'currency', - * currency, - * } ).format( price ); - * } - * - * // Rendered in the application: - * // - * ``` - * - * In the above example, when `HammerPriceDisplay` is rendered into an - * application, the price will be retrieved from the store state using the - * `mapSelect` callback on `useSelect`. If the currency prop changes then - * any price in the state for that currency is retrieved. If the currency prop - * doesn't change and other props are passed in that do change, the price will - * not change because the dependency is just the currency. - * - * When data is only used in an event callback, the data should not be retrieved - * on render, so it may be useful to get the selectors function instead. - * - * **Don't use `useSelect` this way when calling the selectors in the render - * function because your component won't re-render on a data change.** - * - * ```js - * import { useSelect } from '@wordpress/data'; - * import { store as myCustomStore } from 'my-custom-store'; - * - * function Paste( { children } ) { - * const { getSettings } = useSelect( myCustomStore ); - * function onPaste() { - * // Do something with the settings. - * const settings = getSettings(); - * } - * return
{ children }
; - * } - * ``` - * @return {UseSelectReturn} A custom react hook. - */ -function useSelect(mapSelect, deps) { - // On initial call, on mount, determine the mode of this `useSelect` call - // and then never allow it to change on subsequent updates. - const staticSelectMode = typeof mapSelect !== 'function'; - const staticSelectModeRef = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useRef)(staticSelectMode); - if (staticSelectMode !== staticSelectModeRef.current) { - const prevMode = staticSelectModeRef.current ? 'static' : 'mapping'; - const nextMode = staticSelectMode ? 'static' : 'mapping'; - throw new Error(`Switching useSelect from ${prevMode} to ${nextMode} is not allowed`); - } - - /* eslint-disable react-hooks/rules-of-hooks */ - // `staticSelectMode` is not allowed to change during the hook instance's, - // lifetime, so the rules of hooks are not really violated. - return staticSelectMode ? useStaticSelect(mapSelect) : useMappingSelect(false, mapSelect, deps); - /* eslint-enable react-hooks/rules-of-hooks */ -} - -/** - * A variant of the `useSelect` hook that has the same API, but is a compatible - * Suspense-enabled data source. - * - * @template {MapSelect} T - * @param {T} mapSelect Function called on every state change. The - * returned value is exposed to the component - * using this hook. The function receives the - * `registry.suspendSelect` method as the first - * argument and the `registry` as the second one. - * @param {Array} deps A dependency array used to memoize the `mapSelect` - * so that the same `mapSelect` is invoked on every - * state change unless the dependencies change. - * - * @throws {Promise} A suspense Promise that is thrown if any of the called - * selectors is in an unresolved state. - * - * @return {ReturnType} Data object returned by the `mapSelect` function. - */ -function useSuspenseSelect(mapSelect, deps) { - return useMappingSelect(true, mapSelect, deps); -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/components/with-dispatch/index.js": -/*!*************************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/components/with-dispatch/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_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/compose */ "./node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/index.js"); -/* harmony import */ var _use_dispatch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../use-dispatch */ "./node_modules/@wordpress/data/build-module/components/use-dispatch/use-dispatch-with-map.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -/** @typedef {import('react').ComponentType} ComponentType */ - -/** - * Higher-order component used to add dispatch props using registered action - * creators. - * - * @param {Function} mapDispatchToProps A function of returning an object of - * prop names where value is a - * dispatch-bound action creator, or a - * function to be called with the - * component's props and returning an - * action creator. - * - * @example - * ```jsx - * function Button( { onClick, children } ) { - * return ; - * } - * - * import { withDispatch } from '@wordpress/data'; - * import { store as myCustomStore } from 'my-custom-store'; - * - * const SaleButton = withDispatch( ( dispatch, ownProps ) => { - * const { startSale } = dispatch( myCustomStore ); - * const { discountPercent } = ownProps; - * - * return { - * onClick() { - * startSale( discountPercent ); - * }, - * }; - * } )( Button ); - * - * // Rendered in the application: - * // - * // Start Sale! - * ``` - * - * @example - * In the majority of cases, it will be sufficient to use only two first params - * passed to `mapDispatchToProps` as illustrated in the previous example. - * However, there might be some very advanced use cases where using the - * `registry` object might be used as a tool to optimize the performance of - * your component. Using `select` function from the registry might be useful - * when you need to fetch some dynamic data from the store at the time when the - * event is fired, but at the same time, you never use it to render your - * component. In such scenario, you can avoid using the `withSelect` higher - * order component to compute such prop, which might lead to unnecessary - * re-renders of your component caused by its frequent value change. - * Keep in mind, that `mapDispatchToProps` must return an object with functions - * only. - * - * ```jsx - * function Button( { onClick, children } ) { - * return ; - * } - * - * import { withDispatch } from '@wordpress/data'; - * import { store as myCustomStore } from 'my-custom-store'; - * - * const SaleButton = withDispatch( ( dispatch, ownProps, { select } ) => { - * // Stock number changes frequently. - * const { getStockNumber } = select( myCustomStore ); - * const { startSale } = dispatch( myCustomStore ); - * return { - * onClick() { - * const discountPercent = getStockNumber() > 50 ? 10 : 20; - * startSale( discountPercent ); - * }, - * }; - * } )( Button ); - * - * // Rendered in the application: - * // - * // Start Sale! - * ``` - * - * _Note:_ It is important that the `mapDispatchToProps` function always - * returns an object with the same keys. For example, it should not contain - * conditions under which a different value would be returned. - * - * @return {ComponentType} Enhanced component with merged dispatcher props. - */ - -const withDispatch = mapDispatchToProps => (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__.createHigherOrderComponent)(WrappedComponent => ownProps => { - const mapDispatch = (dispatch, registry) => mapDispatchToProps(dispatch, ownProps, registry); - const dispatchProps = (0,_use_dispatch__WEBPACK_IMPORTED_MODULE_2__["default"])(mapDispatch, []); - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(WrappedComponent, { - ...ownProps, - ...dispatchProps - }); -}, 'withDispatch'); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (withDispatch); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/components/with-registry/index.js": -/*!*************************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/components/with-registry/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_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/compose */ "./node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/index.js"); -/* harmony import */ var _registry_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../registry-provider */ "./node_modules/@wordpress/data/build-module/components/registry-provider/context.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -/** - * Higher-order component which renders the original component with the current - * registry context passed as its `registry` prop. - * - * @param {Component} OriginalComponent Original component. - * - * @return {Component} Enhanced component. - */ - -const withRegistry = (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__.createHigherOrderComponent)(OriginalComponent => props => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_registry_provider__WEBPACK_IMPORTED_MODULE_2__.RegistryConsumer, { - children: registry => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(OriginalComponent, { - ...props, - registry: registry - }) -}), 'withRegistry'); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (withRegistry); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/components/with-select/index.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/components/with-select/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_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/compose */ "./node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/index.js"); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/compose */ "./node_modules/@wordpress/compose/build-module/higher-order/pure/index.js"); -/* harmony import */ var _use_select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../use-select */ "./node_modules/@wordpress/data/build-module/components/use-select/index.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -/** @typedef {import('react').ComponentType} ComponentType */ - -/** - * Higher-order component used to inject state-derived props using registered - * selectors. - * - * @param {Function} mapSelectToProps Function called on every state change, - * expected to return object of props to - * merge with the component's own props. - * - * @example - * ```js - * import { withSelect } from '@wordpress/data'; - * import { store as myCustomStore } from 'my-custom-store'; - * - * function PriceDisplay( { price, currency } ) { - * return new Intl.NumberFormat( 'en-US', { - * style: 'currency', - * currency, - * } ).format( price ); - * } - * - * const HammerPriceDisplay = withSelect( ( select, ownProps ) => { - * const { getPrice } = select( myCustomStore ); - * const { currency } = ownProps; - * - * return { - * price: getPrice( 'hammer', currency ), - * }; - * } )( PriceDisplay ); - * - * // Rendered in the application: - * // - * // - * ``` - * In the above example, when `HammerPriceDisplay` is rendered into an - * application, it will pass the price into the underlying `PriceDisplay` - * component and update automatically if the price of a hammer ever changes in - * the store. - * - * @return {ComponentType} Enhanced component with merged state data props. - */ - -const withSelect = mapSelectToProps => (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__.createHigherOrderComponent)(WrappedComponent => (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__["default"])(ownProps => { - const mapSelect = (select, registry) => mapSelectToProps(select, ownProps, registry); - const mergeProps = (0,_use_select__WEBPACK_IMPORTED_MODULE_3__["default"])(mapSelect); - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(WrappedComponent, { - ...ownProps, - ...mergeProps - }); -}), 'withSelect'); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (withSelect); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/controls.js": -/*!***************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/controls.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ builtinControls: () => (/* binding */ builtinControls), -/* harmony export */ controls: () => (/* binding */ controls) -/* harmony export */ }); -/* harmony import */ var _factory__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./factory */ "./node_modules/@wordpress/data/build-module/factory.js"); -/** - * Internal dependencies - */ - - -/** @typedef {import('./types').StoreDescriptor} StoreDescriptor */ - -const SELECT = '@@data/SELECT'; -const RESOLVE_SELECT = '@@data/RESOLVE_SELECT'; -const DISPATCH = '@@data/DISPATCH'; -function isObject(object) { - return object !== null && typeof object === 'object'; -} - -/** - * Dispatches a control action for triggering a synchronous registry select. - * - * Note: This control synchronously returns the current selector value, triggering the - * resolution, but not waiting for it. - * - * @param {string|StoreDescriptor} storeNameOrDescriptor Unique namespace identifier for the store - * @param {string} selectorName The name of the selector. - * @param {Array} args Arguments for the selector. - * - * @example - * ```js - * import { controls } from '@wordpress/data'; - * - * // Action generator using `select`. - * export function* myAction() { - * const isEditorSideBarOpened = yield controls.select( 'core/edit-post', 'isEditorSideBarOpened' ); - * // Do stuff with the result from the `select`. - * } - * ``` - * - * @return {Object} The control descriptor. - */ -function select(storeNameOrDescriptor, selectorName, ...args) { - return { - type: SELECT, - storeKey: isObject(storeNameOrDescriptor) ? storeNameOrDescriptor.name : storeNameOrDescriptor, - selectorName, - args - }; -} - -/** - * Dispatches a control action for triggering and resolving a registry select. - * - * Note: when this control action is handled, it automatically considers - * selectors that may have a resolver. In such case, it will return a `Promise` that resolves - * after the selector finishes resolving, with the final result value. - * - * @param {string|StoreDescriptor} storeNameOrDescriptor Unique namespace identifier for the store - * @param {string} selectorName The name of the selector - * @param {Array} args Arguments for the selector. - * - * @example - * ```js - * import { controls } from '@wordpress/data'; - * - * // Action generator using resolveSelect - * export function* myAction() { - * const isSidebarOpened = yield controls.resolveSelect( 'core/edit-post', 'isEditorSideBarOpened' ); - * // do stuff with the result from the select. - * } - * ``` - * - * @return {Object} The control descriptor. - */ -function resolveSelect(storeNameOrDescriptor, selectorName, ...args) { - return { - type: RESOLVE_SELECT, - storeKey: isObject(storeNameOrDescriptor) ? storeNameOrDescriptor.name : storeNameOrDescriptor, - selectorName, - args - }; -} - -/** - * Dispatches a control action for triggering a registry dispatch. - * - * @param {string|StoreDescriptor} storeNameOrDescriptor Unique namespace identifier for the store - * @param {string} actionName The name of the action to dispatch - * @param {Array} args Arguments for the dispatch action. - * - * @example - * ```js - * import { controls } from '@wordpress/data-controls'; - * - * // Action generator using dispatch - * export function* myAction() { - * yield controls.dispatch( 'core/editor', 'togglePublishSidebar' ); - * // do some other things. - * } - * ``` - * - * @return {Object} The control descriptor. - */ -function dispatch(storeNameOrDescriptor, actionName, ...args) { - return { - type: DISPATCH, - storeKey: isObject(storeNameOrDescriptor) ? storeNameOrDescriptor.name : storeNameOrDescriptor, - actionName, - args - }; -} -const controls = { - select, - resolveSelect, - dispatch -}; -const builtinControls = { - [SELECT]: (0,_factory__WEBPACK_IMPORTED_MODULE_0__.createRegistryControl)(registry => ({ - storeKey, - selectorName, - args - }) => registry.select(storeKey)[selectorName](...args)), - [RESOLVE_SELECT]: (0,_factory__WEBPACK_IMPORTED_MODULE_0__.createRegistryControl)(registry => ({ - storeKey, - selectorName, - args - }) => { - const method = registry.select(storeKey)[selectorName].hasResolver ? 'resolveSelect' : 'select'; - return registry[method](storeKey)[selectorName](...args); - }), - [DISPATCH]: (0,_factory__WEBPACK_IMPORTED_MODULE_0__.createRegistryControl)(registry => ({ - storeKey, - actionName, - args - }) => registry.dispatch(storeKey)[actionName](...args)) -}; -//# sourceMappingURL=controls.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/default-registry.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/default-registry.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 _registry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./registry */ "./node_modules/@wordpress/data/build-module/registry.js"); -/** - * Internal dependencies - */ - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_registry__WEBPACK_IMPORTED_MODULE_0__.createRegistry)()); -//# sourceMappingURL=default-registry.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/dispatch.js": -/*!***************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/dispatch.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ dispatch: () => (/* binding */ dispatch) -/* harmony export */ }); -/* harmony import */ var _default_registry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default-registry */ "./node_modules/@wordpress/data/build-module/default-registry.js"); -/** - * Internal dependencies - */ - - - -/** - * Given a store descriptor, returns an object of the store's action creators. - * Calling an action creator will cause it to be dispatched, updating the state value accordingly. - * - * Note: Action creators returned by the dispatch will return a promise when - * they are called. - * - * @param storeNameOrDescriptor The store descriptor. The legacy calling convention of passing - * the store name is also supported. - * - * @example - * ```js - * import { dispatch } from '@wordpress/data'; - * import { store as myCustomStore } from 'my-custom-store'; - * - * dispatch( myCustomStore ).setPrice( 'hammer', 9.75 ); - * ``` - * @return Object containing the action creators. - */ -function dispatch(storeNameOrDescriptor) { - return _default_registry__WEBPACK_IMPORTED_MODULE_0__["default"].dispatch(storeNameOrDescriptor); -} -//# sourceMappingURL=dispatch.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/factory.js": -/*!**************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/factory.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createRegistryControl: () => (/* binding */ createRegistryControl), -/* harmony export */ createRegistrySelector: () => (/* binding */ createRegistrySelector) -/* harmony export */ }); -/** - * Creates a selector function that takes additional curried argument with the - * registry `select` function. While a regular selector has signature - * ```js - * ( state, ...selectorArgs ) => ( result ) - * ``` - * that allows to select data from the store's `state`, a registry selector - * has signature: - * ```js - * ( select ) => ( state, ...selectorArgs ) => ( result ) - * ``` - * that supports also selecting from other registered stores. - * - * @example - * ```js - * import { store as coreStore } from '@wordpress/core-data'; - * import { store as editorStore } from '@wordpress/editor'; - * - * const getCurrentPostId = createRegistrySelector( ( select ) => ( state ) => { - * return select( editorStore ).getCurrentPostId(); - * } ); - * - * const getPostEdits = createRegistrySelector( ( select ) => ( state ) => { - * // calling another registry selector just like any other function - * const postType = getCurrentPostType( state ); - * const postId = getCurrentPostId( state ); - * return select( coreStore ).getEntityRecordEdits( 'postType', postType, postId ); - * } ); - * ``` - * - * Note how the `getCurrentPostId` selector can be called just like any other function, - * (it works even inside a regular non-registry selector) and we don't need to pass the - * registry as argument. The registry binding happens automatically when registering the selector - * with a store. - * - * @param {Function} registrySelector Function receiving a registry `select` - * function and returning a state selector. - * - * @return {Function} Registry selector that can be registered with a store. - */ -function createRegistrySelector(registrySelector) { - const selectorsByRegistry = new WeakMap(); - // Create a selector function that is bound to the registry referenced by `selector.registry` - // and that has the same API as a regular selector. Binding it in such a way makes it - // possible to call the selector directly from another selector. - const wrappedSelector = (...args) => { - let selector = selectorsByRegistry.get(wrappedSelector.registry); - // We want to make sure the cache persists even when new registry - // instances are created. For example patterns create their own editors - // with their own core/block-editor stores, so we should keep track of - // the cache for each registry instance. - if (!selector) { - selector = registrySelector(wrappedSelector.registry.select); - selectorsByRegistry.set(wrappedSelector.registry, selector); - } - return selector(...args); - }; - - /** - * Flag indicating that the selector is a registry selector that needs the correct registry - * reference to be assigned to `selector.registry` to make it work correctly. - * be mapped as a registry selector. - * - * @type {boolean} - */ - wrappedSelector.isRegistrySelector = true; - return wrappedSelector; -} - -/** - * Creates a control function that takes additional curried argument with the `registry` object. - * While a regular control has signature - * ```js - * ( action ) => ( iteratorOrPromise ) - * ``` - * where the control works with the `action` that it's bound to, a registry control has signature: - * ```js - * ( registry ) => ( action ) => ( iteratorOrPromise ) - * ``` - * A registry control is typically used to select data or dispatch an action to a registered - * store. - * - * When registering a control created with `createRegistryControl` with a store, the store - * knows which calling convention to use when executing the control. - * - * @param {Function} registryControl Function receiving a registry object and returning a control. - * - * @return {Function} Registry control that can be registered with a store. - */ -function createRegistryControl(registryControl) { - registryControl.isRegistryControl = true; - return registryControl; -} -//# sourceMappingURL=factory.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/index.js": -/*!************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/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 */ AsyncModeProvider: () => (/* reexport safe */ _components_async_mode_provider__WEBPACK_IMPORTED_MODULE_7__["default"]), -/* harmony export */ RegistryConsumer: () => (/* reexport safe */ _components_registry_provider__WEBPACK_IMPORTED_MODULE_3__.RegistryConsumer), -/* harmony export */ RegistryProvider: () => (/* reexport safe */ _components_registry_provider__WEBPACK_IMPORTED_MODULE_3__["default"]), -/* harmony export */ combineReducers: () => (/* binding */ combineReducers), -/* harmony export */ controls: () => (/* reexport safe */ _controls__WEBPACK_IMPORTED_MODULE_11__.controls), -/* harmony export */ createReduxStore: () => (/* reexport safe */ _redux_store__WEBPACK_IMPORTED_MODULE_12__["default"]), -/* harmony export */ createRegistry: () => (/* reexport safe */ _registry__WEBPACK_IMPORTED_MODULE_8__.createRegistry), -/* harmony export */ createRegistryControl: () => (/* reexport safe */ _factory__WEBPACK_IMPORTED_MODULE_9__.createRegistryControl), -/* harmony export */ createRegistrySelector: () => (/* reexport safe */ _factory__WEBPACK_IMPORTED_MODULE_9__.createRegistrySelector), -/* harmony export */ createSelector: () => (/* reexport safe */ _create_selector__WEBPACK_IMPORTED_MODULE_10__["default"]), -/* harmony export */ dispatch: () => (/* reexport safe */ _dispatch__WEBPACK_IMPORTED_MODULE_13__.dispatch), -/* harmony export */ plugins: () => (/* reexport module object */ _plugins__WEBPACK_IMPORTED_MODULE_15__), -/* harmony export */ register: () => (/* binding */ register), -/* harmony export */ registerGenericStore: () => (/* binding */ registerGenericStore), -/* harmony export */ registerStore: () => (/* binding */ registerStore), -/* harmony export */ resolveSelect: () => (/* binding */ resolveSelect), -/* harmony export */ select: () => (/* reexport safe */ _select__WEBPACK_IMPORTED_MODULE_14__.select), -/* harmony export */ subscribe: () => (/* binding */ subscribe), -/* harmony export */ suspendSelect: () => (/* binding */ suspendSelect), -/* harmony export */ use: () => (/* binding */ use), -/* harmony export */ useDispatch: () => (/* reexport safe */ _components_use_dispatch__WEBPACK_IMPORTED_MODULE_6__["default"]), -/* harmony export */ useRegistry: () => (/* reexport safe */ _components_registry_provider__WEBPACK_IMPORTED_MODULE_4__["default"]), -/* harmony export */ useSelect: () => (/* reexport safe */ _components_use_select__WEBPACK_IMPORTED_MODULE_5__["default"]), -/* harmony export */ useSuspenseSelect: () => (/* reexport safe */ _components_use_select__WEBPACK_IMPORTED_MODULE_5__.useSuspenseSelect), -/* harmony export */ withDispatch: () => (/* reexport safe */ _components_with_dispatch__WEBPACK_IMPORTED_MODULE_1__["default"]), -/* harmony export */ withRegistry: () => (/* reexport safe */ _components_with_registry__WEBPACK_IMPORTED_MODULE_2__["default"]), -/* harmony export */ withSelect: () => (/* reexport safe */ _components_with_select__WEBPACK_IMPORTED_MODULE_0__["default"]) -/* harmony export */ }); -/* harmony import */ var _default_registry__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./default-registry */ "./node_modules/@wordpress/data/build-module/default-registry.js"); -/* harmony import */ var _plugins__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./plugins */ "./node_modules/@wordpress/data/build-module/plugins/index.js"); -/* harmony import */ var _redux_store__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./redux-store */ "./node_modules/@wordpress/data/build-module/redux-store/combine-reducers.js"); -/* harmony import */ var _components_with_select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/with-select */ "./node_modules/@wordpress/data/build-module/components/with-select/index.js"); -/* harmony import */ var _components_with_dispatch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/with-dispatch */ "./node_modules/@wordpress/data/build-module/components/with-dispatch/index.js"); -/* harmony import */ var _components_with_registry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/with-registry */ "./node_modules/@wordpress/data/build-module/components/with-registry/index.js"); -/* harmony import */ var _components_registry_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/registry-provider */ "./node_modules/@wordpress/data/build-module/components/registry-provider/context.js"); -/* harmony import */ var _components_registry_provider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/registry-provider */ "./node_modules/@wordpress/data/build-module/components/registry-provider/use-registry.js"); -/* harmony import */ var _components_use_select__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/use-select */ "./node_modules/@wordpress/data/build-module/components/use-select/index.js"); -/* harmony import */ var _components_use_dispatch__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/use-dispatch */ "./node_modules/@wordpress/data/build-module/components/use-dispatch/use-dispatch.js"); -/* harmony import */ var _components_async_mode_provider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/async-mode-provider */ "./node_modules/@wordpress/data/build-module/components/async-mode-provider/context.js"); -/* harmony import */ var _registry__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./registry */ "./node_modules/@wordpress/data/build-module/registry.js"); -/* harmony import */ var _factory__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./factory */ "./node_modules/@wordpress/data/build-module/factory.js"); -/* harmony import */ var _create_selector__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./create-selector */ "./node_modules/rememo/rememo.js"); -/* harmony import */ var _controls__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./controls */ "./node_modules/@wordpress/data/build-module/controls.js"); -/* harmony import */ var _redux_store__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./redux-store */ "./node_modules/@wordpress/data/build-module/redux-store/index.js"); -/* harmony import */ var _dispatch__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./dispatch */ "./node_modules/@wordpress/data/build-module/dispatch.js"); -/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./select */ "./node_modules/@wordpress/data/build-module/select.js"); -/** - * Internal dependencies - */ - - - - -/** @typedef {import('./types').StoreDescriptor} StoreDescriptor */ - - - - - - - - - - - - - - - - -/** - * Object of available plugins to use with a registry. - * - * @see [use](#use) - * - * @type {Object} - */ - - -/** - * The combineReducers helper function turns an object whose values are different - * reducing functions into a single reducing function you can pass to registerReducer. - * - * @type {import('./types').combineReducers} - * @param {Object} reducers An object whose values correspond to different reducing - * functions that need to be combined into one. - * - * @example - * ```js - * import { combineReducers, createReduxStore, register } from '@wordpress/data'; - * - * const prices = ( state = {}, action ) => { - * return action.type === 'SET_PRICE' ? - * { - * ...state, - * [ action.item ]: action.price, - * } : - * state; - * }; - * - * const discountPercent = ( state = 0, action ) => { - * return action.type === 'START_SALE' ? - * action.discountPercent : - * state; - * }; - * - * const store = createReduxStore( 'my-shop', { - * reducer: combineReducers( { - * prices, - * discountPercent, - * } ), - * } ); - * register( store ); - * ``` - * - * @return {Function} A reducer that invokes every reducer inside the reducers - * object, and constructs a state object with the same shape. - */ -const combineReducers = _redux_store__WEBPACK_IMPORTED_MODULE_16__.combineReducers; - -/** - * Given a store descriptor, returns an object containing the store's selectors pre-bound to state - * so that you only need to supply additional arguments, and modified so that they return promises - * that resolve to their eventual values, after any resolvers have ran. - * - * @param {StoreDescriptor|string} storeNameOrDescriptor The store descriptor. The legacy calling - * convention of passing the store name is - * also supported. - * - * @example - * ```js - * import { resolveSelect } from '@wordpress/data'; - * import { store as myCustomStore } from 'my-custom-store'; - * - * resolveSelect( myCustomStore ).getPrice( 'hammer' ).then(console.log) - * ``` - * - * @return {Object} Object containing the store's promise-wrapped selectors. - */ -const resolveSelect = _default_registry__WEBPACK_IMPORTED_MODULE_17__["default"].resolveSelect; - -/** - * Given a store descriptor, returns an object containing the store's selectors pre-bound to state - * so that you only need to supply additional arguments, and modified so that they throw promises - * in case the selector is not resolved yet. - * - * @param {StoreDescriptor|string} storeNameOrDescriptor The store descriptor. The legacy calling - * convention of passing the store name is - * also supported. - * - * @return {Object} Object containing the store's suspense-wrapped selectors. - */ -const suspendSelect = _default_registry__WEBPACK_IMPORTED_MODULE_17__["default"].suspendSelect; - -/** - * Given a listener function, the function will be called any time the state value - * of one of the registered stores has changed. If you specify the optional - * `storeNameOrDescriptor` parameter, the listener function will be called only - * on updates on that one specific registered store. - * - * This function returns an `unsubscribe` function used to stop the subscription. - * - * @param {Function} listener Callback function. - * @param {string|StoreDescriptor?} storeNameOrDescriptor Optional store name. - * - * @example - * ```js - * import { subscribe } from '@wordpress/data'; - * - * const unsubscribe = subscribe( () => { - * // You could use this opportunity to test whether the derived result of a - * // selector has subsequently changed as the result of a state update. - * } ); - * - * // Later, if necessary... - * unsubscribe(); - * ``` - */ -const subscribe = _default_registry__WEBPACK_IMPORTED_MODULE_17__["default"].subscribe; - -/** - * Registers a generic store instance. - * - * @deprecated Use `register( storeDescriptor )` instead. - * - * @param {string} name Store registry name. - * @param {Object} store Store instance (`{ getSelectors, getActions, subscribe }`). - */ -const registerGenericStore = _default_registry__WEBPACK_IMPORTED_MODULE_17__["default"].registerGenericStore; - -/** - * Registers a standard `@wordpress/data` store. - * - * @deprecated Use `register` instead. - * - * @param {string} storeName Unique namespace identifier for the store. - * @param {Object} options Store description (reducer, actions, selectors, resolvers). - * - * @return {Object} Registered store object. - */ -const registerStore = _default_registry__WEBPACK_IMPORTED_MODULE_17__["default"].registerStore; - -/** - * Extends a registry to inherit functionality provided by a given plugin. A - * plugin is an object with properties aligning to that of a registry, merged - * to extend the default registry behavior. - * - * @param {Object} plugin Plugin object. - */ -const use = _default_registry__WEBPACK_IMPORTED_MODULE_17__["default"].use; - -/** - * Registers a standard `@wordpress/data` store descriptor. - * - * @example - * ```js - * import { createReduxStore, register } from '@wordpress/data'; - * - * const store = createReduxStore( 'demo', { - * reducer: ( state = 'OK' ) => state, - * selectors: { - * getValue: ( state ) => state, - * }, - * } ); - * register( store ); - * ``` - * - * @param {StoreDescriptor} store Store descriptor. - */ -const register = _default_registry__WEBPACK_IMPORTED_MODULE_17__["default"].register; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/lock-unlock.js": -/*!******************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/lock-unlock.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ lock: () => (/* binding */ lock), -/* harmony export */ unlock: () => (/* binding */ unlock) -/* harmony export */ }); -/* harmony import */ var _wordpress_private_apis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/private-apis */ "./node_modules/@wordpress/private-apis/build-module/implementation.js"); -/** - * WordPress dependencies - */ - -const { - lock, - unlock -} = (0,_wordpress_private_apis__WEBPACK_IMPORTED_MODULE_0__.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/data'); -//# sourceMappingURL=lock-unlock.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/plugins/index.js": -/*!********************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/plugins/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 */ persistence: () => (/* reexport safe */ _persistence__WEBPACK_IMPORTED_MODULE_0__["default"]) -/* harmony export */ }); -/* harmony import */ var _persistence__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./persistence */ "./node_modules/@wordpress/data/build-module/plugins/persistence/index.js"); - -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/plugins/persistence/index.js": -/*!********************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/plugins/persistence/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 */ createPersistenceInterface: () => (/* binding */ createPersistenceInterface), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ withLazySameState: () => (/* binding */ withLazySameState) -/* harmony export */ }); -/* harmony import */ var is_plain_object__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! is-plain-object */ "./node_modules/is-plain-object/dist/is-plain-object.mjs"); -/* harmony import */ var deepmerge__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! deepmerge */ "./node_modules/deepmerge/dist/cjs.js"); -/* harmony import */ var deepmerge__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(deepmerge__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _storage_default__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./storage/default */ "./node_modules/@wordpress/data/build-module/plugins/persistence/storage/default.js"); -/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../ */ "./node_modules/@wordpress/data/build-module/index.js"); -/** - * External dependencies - */ - - - -/** - * Internal dependencies - */ - - - -/** @typedef {import('../../registry').WPDataRegistry} WPDataRegistry */ - -/** @typedef {import('../../registry').WPDataPlugin} WPDataPlugin */ - -/** - * @typedef {Object} WPDataPersistencePluginOptions Persistence plugin options. - * - * @property {Storage} storage Persistent storage implementation. This must - * at least implement `getItem` and `setItem` of - * the Web Storage API. - * @property {string} storageKey Key on which to set in persistent storage. - */ - -/** - * Default plugin storage. - * - * @type {Storage} - */ -const DEFAULT_STORAGE = _storage_default__WEBPACK_IMPORTED_MODULE_2__["default"]; - -/** - * Default plugin storage key. - * - * @type {string} - */ -const DEFAULT_STORAGE_KEY = 'WP_DATA'; - -/** - * Higher-order reducer which invokes the original reducer only if state is - * inequal from that of the action's `nextState` property, otherwise returning - * the original state reference. - * - * @param {Function} reducer Original reducer. - * - * @return {Function} Enhanced reducer. - */ -const withLazySameState = reducer => (state, action) => { - if (action.nextState === state) { - return state; - } - return reducer(state, action); -}; - -/** - * Creates a persistence interface, exposing getter and setter methods (`get` - * and `set` respectively). - * - * @param {WPDataPersistencePluginOptions} options Plugin options. - * - * @return {Object} Persistence interface. - */ -function createPersistenceInterface(options) { - const { - storage = DEFAULT_STORAGE, - storageKey = DEFAULT_STORAGE_KEY - } = options; - let data; - - /** - * Returns the persisted data as an object, defaulting to an empty object. - * - * @return {Object} Persisted data. - */ - function getData() { - if (data === undefined) { - // If unset, getItem is expected to return null. Fall back to - // empty object. - const persisted = storage.getItem(storageKey); - if (persisted === null) { - data = {}; - } else { - try { - data = JSON.parse(persisted); - } catch (error) { - // Similarly, should any error be thrown during parse of - // the string (malformed JSON), fall back to empty object. - data = {}; - } - } - } - return data; - } - - /** - * Merges an updated reducer state into the persisted data. - * - * @param {string} key Key to update. - * @param {*} value Updated value. - */ - function setData(key, value) { - data = { - ...data, - [key]: value - }; - storage.setItem(storageKey, JSON.stringify(data)); - } - return { - get: getData, - set: setData - }; -} - -/** - * Data plugin to persist store state into a single storage key. - * - * @param {WPDataRegistry} registry Data registry. - * @param {?WPDataPersistencePluginOptions} pluginOptions Plugin options. - * - * @return {WPDataPlugin} Data plugin. - */ -function persistencePlugin(registry, pluginOptions) { - const persistence = createPersistenceInterface(pluginOptions); - - /** - * Creates an enhanced store dispatch function, triggering the state of the - * given store name to be persisted when changed. - * - * @param {Function} getState Function which returns current state. - * @param {string} storeName Store name. - * @param {?Array} keys Optional subset of keys to save. - * - * @return {Function} Enhanced dispatch function. - */ - function createPersistOnChange(getState, storeName, keys) { - let getPersistedState; - if (Array.isArray(keys)) { - // Given keys, the persisted state should by produced as an object - // of the subset of keys. This implementation uses combineReducers - // to leverage its behavior of returning the same object when none - // of the property values changes. This allows a strict reference - // equality to bypass a persistence set on an unchanging state. - const reducers = keys.reduce((accumulator, key) => Object.assign(accumulator, { - [key]: (state, action) => action.nextState[key] - }), {}); - getPersistedState = withLazySameState((0,___WEBPACK_IMPORTED_MODULE_3__.combineReducers)(reducers)); - } else { - getPersistedState = (state, action) => action.nextState; - } - let lastState = getPersistedState(undefined, { - nextState: getState() - }); - return () => { - const state = getPersistedState(lastState, { - nextState: getState() - }); - if (state !== lastState) { - persistence.set(storeName, state); - lastState = state; - } - }; - } - return { - registerStore(storeName, options) { - if (!options.persist) { - return registry.registerStore(storeName, options); - } - - // Load from persistence to use as initial state. - const persistedState = persistence.get()[storeName]; - if (persistedState !== undefined) { - let initialState = options.reducer(options.initialState, { - type: '@@WP/PERSISTENCE_RESTORE' - }); - if ((0,is_plain_object__WEBPACK_IMPORTED_MODULE_0__.isPlainObject)(initialState) && (0,is_plain_object__WEBPACK_IMPORTED_MODULE_0__.isPlainObject)(persistedState)) { - // If state is an object, ensure that: - // - Other keys are left intact when persisting only a - // subset of keys. - // - New keys in what would otherwise be used as initial - // state are deeply merged as base for persisted value. - initialState = deepmerge__WEBPACK_IMPORTED_MODULE_1___default()(initialState, persistedState, { - isMergeableObject: is_plain_object__WEBPACK_IMPORTED_MODULE_0__.isPlainObject - }); - } else { - // If there is a mismatch in object-likeness of default - // initial or persisted state, defer to persisted value. - initialState = persistedState; - } - options = { - ...options, - initialState - }; - } - const store = registry.registerStore(storeName, options); - store.subscribe(createPersistOnChange(store.getState, storeName, options.persist)); - return store; - } - }; -} -persistencePlugin.__unstableMigrate = () => {}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (persistencePlugin); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/plugins/persistence/storage/default.js": -/*!******************************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/plugins/persistence/storage/default.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 _object__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./object */ "./node_modules/@wordpress/data/build-module/plugins/persistence/storage/object.js"); -/** - * Internal dependencies - */ - -let storage; -try { - // Private Browsing in Safari 10 and earlier will throw an error when - // attempting to set into localStorage. The test here is intentional in - // causing a thrown error as condition for using fallback object storage. - storage = window.localStorage; - storage.setItem('__wpDataTestLocalStorage', ''); - storage.removeItem('__wpDataTestLocalStorage'); -} catch (error) { - storage = _object__WEBPACK_IMPORTED_MODULE_0__["default"]; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (storage); -//# sourceMappingURL=default.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/plugins/persistence/storage/object.js": -/*!*****************************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/plugins/persistence/storage/object.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 */ }); -let objectStorage; -const storage = { - getItem(key) { - if (!objectStorage || !objectStorage[key]) { - return null; - } - return objectStorage[key]; - }, - setItem(key, value) { - if (!objectStorage) { - storage.clear(); - } - objectStorage[key] = String(value); - }, - clear() { - objectStorage = Object.create(null); - } -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (storage); -//# sourceMappingURL=object.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/promise-middleware.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/promise-middleware.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 is_promise__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! is-promise */ "./node_modules/is-promise/index.mjs"); -/** - * External dependencies - */ - - -/** - * Simplest possible promise redux middleware. - * - * @type {import('redux').Middleware} - */ -const promiseMiddleware = () => next => action => { - if ((0,is_promise__WEBPACK_IMPORTED_MODULE_0__["default"])(action)) { - return action.then(resolvedAction => { - if (resolvedAction) { - return next(resolvedAction); - } - }); - } - return next(action); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (promiseMiddleware); -//# sourceMappingURL=promise-middleware.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/redux-store/combine-reducers.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/redux-store/combine-reducers.js ***! - \***********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ combineReducers: () => (/* binding */ combineReducers) -/* harmony export */ }); -function combineReducers(reducers) { - const keys = Object.keys(reducers); - return function combinedReducer(state = {}, action) { - const nextState = {}; - let hasChanged = false; - for (const key of keys) { - const reducer = reducers[key]; - const prevStateForKey = state[key]; - const nextStateForKey = reducer(prevStateForKey, action); - nextState[key] = nextStateForKey; - hasChanged = hasChanged || nextStateForKey !== prevStateForKey; - } - return hasChanged ? nextState : state; - }; -} -//# sourceMappingURL=combine-reducers.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/redux-store/index.js": -/*!************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/redux-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 */ combineReducers: () => (/* reexport safe */ _combine_reducers__WEBPACK_IMPORTED_MODULE_1__.combineReducers), -/* harmony export */ "default": () => (/* binding */ createReduxStore) -/* harmony export */ }); -/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! redux */ "./node_modules/redux/es/redux.js"); -/* harmony import */ var equivalent_key_map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! equivalent-key-map */ "./node_modules/equivalent-key-map/equivalent-key-map.js"); -/* harmony import */ var equivalent_key_map__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(equivalent_key_map__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_redux_routine__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/redux-routine */ "./node_modules/@wordpress/redux-routine/build-module/index.js"); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/compose */ "./node_modules/@wordpress/compose/build-module/higher-order/compose.js"); -/* harmony import */ var _combine_reducers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./combine-reducers */ "./node_modules/@wordpress/data/build-module/redux-store/combine-reducers.js"); -/* harmony import */ var _controls__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../controls */ "./node_modules/@wordpress/data/build-module/controls.js"); -/* harmony import */ var _lock_unlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../lock-unlock */ "./node_modules/@wordpress/data/build-module/lock-unlock.js"); -/* harmony import */ var _promise_middleware__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../promise-middleware */ "./node_modules/@wordpress/data/build-module/promise-middleware.js"); -/* harmony import */ var _resolvers_cache_middleware__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../resolvers-cache-middleware */ "./node_modules/@wordpress/data/build-module/resolvers-cache-middleware.js"); -/* harmony import */ var _thunk_middleware__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./thunk-middleware */ "./node_modules/@wordpress/data/build-module/redux-store/thunk-middleware.js"); -/* harmony import */ var _metadata_reducer__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./metadata/reducer */ "./node_modules/@wordpress/data/build-module/redux-store/metadata/reducer.js"); -/* harmony import */ var _metadata_selectors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./metadata/selectors */ "./node_modules/@wordpress/data/build-module/redux-store/metadata/selectors.js"); -/* harmony import */ var _metadata_actions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./metadata/actions */ "./node_modules/@wordpress/data/build-module/redux-store/metadata/actions.js"); -/** - * External dependencies - */ - - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - - - - - - - - - -/** @typedef {import('../types').DataRegistry} DataRegistry */ -/** @typedef {import('../types').ListenerFunction} ListenerFunction */ -/** - * @typedef {import('../types').StoreDescriptor} StoreDescriptor - * @template {import('../types').AnyConfig} C - */ -/** - * @typedef {import('../types').ReduxStoreConfig} ReduxStoreConfig - * @template State - * @template {Record} Actions - * @template Selectors - */ - -const trimUndefinedValues = array => { - const result = [...array]; - for (let i = result.length - 1; i >= 0; i--) { - if (result[i] === undefined) { - result.splice(i, 1); - } - } - return result; -}; - -/** - * Creates a new object with the same keys, but with `callback()` called as - * a transformer function on each of the values. - * - * @param {Object} obj The object to transform. - * @param {Function} callback The function to transform each object value. - * @return {Array} Transformed object. - */ -const mapValues = (obj, callback) => Object.fromEntries(Object.entries(obj !== null && obj !== void 0 ? obj : {}).map(([key, value]) => [key, callback(value, key)])); - -// Convert non serializable types to plain objects -const devToolsReplacer = (key, state) => { - if (state instanceof Map) { - return Object.fromEntries(state); - } - if (state instanceof window.HTMLElement) { - return null; - } - return state; -}; - -/** - * Create a cache to track whether resolvers started running or not. - * - * @return {Object} Resolvers Cache. - */ -function createResolversCache() { - const cache = {}; - return { - isRunning(selectorName, args) { - return cache[selectorName] && cache[selectorName].get(trimUndefinedValues(args)); - }, - clear(selectorName, args) { - if (cache[selectorName]) { - cache[selectorName].delete(trimUndefinedValues(args)); - } - }, - markAsRunning(selectorName, args) { - if (!cache[selectorName]) { - cache[selectorName] = new (equivalent_key_map__WEBPACK_IMPORTED_MODULE_0___default())(); - } - cache[selectorName].set(trimUndefinedValues(args), true); - } - }; -} -function createBindingCache(bind) { - const cache = new WeakMap(); - return { - get(item, itemName) { - let boundItem = cache.get(item); - if (!boundItem) { - boundItem = bind(item, itemName); - cache.set(item, boundItem); - } - return boundItem; - } - }; -} - -/** - * Creates a data store descriptor for the provided Redux store configuration containing - * properties describing reducer, actions, selectors, controls and resolvers. - * - * @example - * ```js - * import { createReduxStore } from '@wordpress/data'; - * - * const store = createReduxStore( 'demo', { - * reducer: ( state = 'OK' ) => state, - * selectors: { - * getValue: ( state ) => state, - * }, - * } ); - * ``` - * - * @template State - * @template {Record} Actions - * @template Selectors - * @param {string} key Unique namespace identifier. - * @param {ReduxStoreConfig} options Registered store options, with properties - * describing reducer, actions, selectors, - * and resolvers. - * - * @return {StoreDescriptor>} Store Object. - */ -function createReduxStore(key, options) { - const privateActions = {}; - const privateSelectors = {}; - const privateRegistrationFunctions = { - privateActions, - registerPrivateActions: actions => { - Object.assign(privateActions, actions); - }, - privateSelectors, - registerPrivateSelectors: selectors => { - Object.assign(privateSelectors, selectors); - } - }; - const storeDescriptor = { - name: key, - instantiate: registry => { - /** - * Stores listener functions registered with `subscribe()`. - * - * When functions register to listen to store changes with - * `subscribe()` they get added here. Although Redux offers - * its own `subscribe()` function directly, by wrapping the - * subscription in this store instance it's possible to - * optimize checking if the state has changed before calling - * each listener. - * - * @type {Set} - */ - const listeners = new Set(); - const reducer = options.reducer; - const thunkArgs = { - registry, - get dispatch() { - return thunkActions; - }, - get select() { - return thunkSelectors; - }, - get resolveSelect() { - return getResolveSelectors(); - } - }; - const store = instantiateReduxStore(key, options, registry, thunkArgs); - // Expose the private registration functions on the store - // so they can be copied to a sub registry in registry.js. - (0,_lock_unlock__WEBPACK_IMPORTED_MODULE_2__.lock)(store, privateRegistrationFunctions); - const resolversCache = createResolversCache(); - function bindAction(action) { - return (...args) => Promise.resolve(store.dispatch(action(...args))); - } - const actions = { - ...mapValues(_metadata_actions__WEBPACK_IMPORTED_MODULE_3__, bindAction), - ...mapValues(options.actions, bindAction) - }; - const boundPrivateActions = createBindingCache(bindAction); - const allActions = new Proxy(() => {}, { - get: (target, prop) => { - const privateAction = privateActions[prop]; - return privateAction ? boundPrivateActions.get(privateAction, prop) : actions[prop]; - } - }); - const thunkActions = new Proxy(allActions, { - apply: (target, thisArg, [action]) => store.dispatch(action) - }); - (0,_lock_unlock__WEBPACK_IMPORTED_MODULE_2__.lock)(actions, allActions); - const resolvers = options.resolvers ? mapResolvers(options.resolvers) : {}; - function bindSelector(selector, selectorName) { - if (selector.isRegistrySelector) { - selector.registry = registry; - } - const boundSelector = (...args) => { - args = normalize(selector, args); - const state = store.__unstableOriginalGetState(); - // Before calling the selector, switch to the correct - // registry. - if (selector.isRegistrySelector) { - selector.registry = registry; - } - return selector(state.root, ...args); - }; - - // Expose normalization method on the bound selector - // in order that it can be called when fullfilling - // the resolver. - boundSelector.__unstableNormalizeArgs = selector.__unstableNormalizeArgs; - const resolver = resolvers[selectorName]; - if (!resolver) { - boundSelector.hasResolver = false; - return boundSelector; - } - return mapSelectorWithResolver(boundSelector, selectorName, resolver, store, resolversCache); - } - function bindMetadataSelector(metaDataSelector) { - const boundSelector = (...args) => { - const state = store.__unstableOriginalGetState(); - const originalSelectorName = args && args[0]; - const originalSelectorArgs = args && args[1]; - const targetSelector = options?.selectors?.[originalSelectorName]; - - // Normalize the arguments passed to the target selector. - if (originalSelectorName && targetSelector) { - args[1] = normalize(targetSelector, originalSelectorArgs); - } - return metaDataSelector(state.metadata, ...args); - }; - boundSelector.hasResolver = false; - return boundSelector; - } - const selectors = { - ...mapValues(_metadata_selectors__WEBPACK_IMPORTED_MODULE_4__, bindMetadataSelector), - ...mapValues(options.selectors, bindSelector) - }; - const boundPrivateSelectors = createBindingCache(bindSelector); - - // Pre-bind the private selectors that have been registered by the time of - // instantiation, so that registry selectors are bound to the registry. - for (const [selectorName, selector] of Object.entries(privateSelectors)) { - boundPrivateSelectors.get(selector, selectorName); - } - const allSelectors = new Proxy(() => {}, { - get: (target, prop) => { - const privateSelector = privateSelectors[prop]; - return privateSelector ? boundPrivateSelectors.get(privateSelector, prop) : selectors[prop]; - } - }); - const thunkSelectors = new Proxy(allSelectors, { - apply: (target, thisArg, [selector]) => selector(store.__unstableOriginalGetState()) - }); - (0,_lock_unlock__WEBPACK_IMPORTED_MODULE_2__.lock)(selectors, allSelectors); - const resolveSelectors = mapResolveSelectors(selectors, store); - const suspendSelectors = mapSuspendSelectors(selectors, store); - const getSelectors = () => selectors; - const getActions = () => actions; - const getResolveSelectors = () => resolveSelectors; - const getSuspendSelectors = () => suspendSelectors; - - // We have some modules monkey-patching the store object - // It's wrong to do so but until we refactor all of our effects to controls - // We need to keep the same "store" instance here. - store.__unstableOriginalGetState = store.getState; - store.getState = () => store.__unstableOriginalGetState().root; - - // Customize subscribe behavior to call listeners only on effective change, - // not on every dispatch. - const subscribe = store && (listener => { - listeners.add(listener); - return () => listeners.delete(listener); - }); - let lastState = store.__unstableOriginalGetState(); - store.subscribe(() => { - const state = store.__unstableOriginalGetState(); - const hasChanged = state !== lastState; - lastState = state; - if (hasChanged) { - for (const listener of listeners) { - listener(); - } - } - }); - - // This can be simplified to just { subscribe, getSelectors, getActions } - // Once we remove the use function. - return { - reducer, - store, - actions, - selectors, - resolvers, - getSelectors, - getResolveSelectors, - getSuspendSelectors, - getActions, - subscribe - }; - } - }; - - // Expose the private registration functions on the store - // descriptor. That's a natural choice since that's where the - // public actions and selectors are stored . - (0,_lock_unlock__WEBPACK_IMPORTED_MODULE_2__.lock)(storeDescriptor, privateRegistrationFunctions); - return storeDescriptor; -} - -/** - * Creates a redux store for a namespace. - * - * @param {string} key Unique namespace identifier. - * @param {Object} options Registered store options, with properties - * describing reducer, actions, selectors, - * and resolvers. - * @param {DataRegistry} registry Registry reference. - * @param {Object} thunkArgs Argument object for the thunk middleware. - * @return {Object} Newly created redux store. - */ -function instantiateReduxStore(key, options, registry, thunkArgs) { - const controls = { - ...options.controls, - ..._controls__WEBPACK_IMPORTED_MODULE_5__.builtinControls - }; - const normalizedControls = mapValues(controls, control => control.isRegistryControl ? control(registry) : control); - const middlewares = [(0,_resolvers_cache_middleware__WEBPACK_IMPORTED_MODULE_6__["default"])(registry, key), _promise_middleware__WEBPACK_IMPORTED_MODULE_7__["default"], (0,_wordpress_redux_routine__WEBPACK_IMPORTED_MODULE_8__["default"])(normalizedControls), (0,_thunk_middleware__WEBPACK_IMPORTED_MODULE_9__["default"])(thunkArgs)]; - const enhancers = [(0,redux__WEBPACK_IMPORTED_MODULE_10__.applyMiddleware)(...middlewares)]; - if (typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__) { - enhancers.push(window.__REDUX_DEVTOOLS_EXTENSION__({ - name: key, - instanceId: key, - serialize: { - replacer: devToolsReplacer - } - })); - } - const { - reducer, - initialState - } = options; - const enhancedReducer = (0,_combine_reducers__WEBPACK_IMPORTED_MODULE_1__.combineReducers)({ - metadata: _metadata_reducer__WEBPACK_IMPORTED_MODULE_11__["default"], - root: reducer - }); - return (0,redux__WEBPACK_IMPORTED_MODULE_10__.createStore)(enhancedReducer, { - root: initialState - }, (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_12__["default"])(enhancers)); -} - -/** - * Maps selectors to functions that return a resolution promise for them - * - * @param {Object} selectors Selectors to map. - * @param {Object} store The redux store the selectors select from. - * - * @return {Object} Selectors mapped to their resolution functions. - */ -function mapResolveSelectors(selectors, store) { - const { - getIsResolving, - hasStartedResolution, - hasFinishedResolution, - hasResolutionFailed, - isResolving, - getCachedResolvers, - getResolutionState, - getResolutionError, - hasResolvingSelectors, - countSelectorsByStatus, - ...storeSelectors - } = selectors; - return mapValues(storeSelectors, (selector, selectorName) => { - // If the selector doesn't have a resolver, just convert the return value - // (including exceptions) to a Promise, no additional extra behavior is needed. - if (!selector.hasResolver) { - return async (...args) => selector.apply(null, args); - } - return (...args) => { - return new Promise((resolve, reject) => { - const hasFinished = () => selectors.hasFinishedResolution(selectorName, args); - const finalize = result => { - const hasFailed = selectors.hasResolutionFailed(selectorName, args); - if (hasFailed) { - const error = selectors.getResolutionError(selectorName, args); - reject(error); - } else { - resolve(result); - } - }; - const getResult = () => selector.apply(null, args); - // Trigger the selector (to trigger the resolver) - const result = getResult(); - if (hasFinished()) { - return finalize(result); - } - const unsubscribe = store.subscribe(() => { - if (hasFinished()) { - unsubscribe(); - finalize(getResult()); - } - }); - }); - }; - }); -} - -/** - * Maps selectors to functions that throw a suspense promise if not yet resolved. - * - * @param {Object} selectors Selectors to map. - * @param {Object} store The redux store the selectors select from. - * - * @return {Object} Selectors mapped to their suspense functions. - */ -function mapSuspendSelectors(selectors, store) { - return mapValues(selectors, (selector, selectorName) => { - // Selector without a resolver doesn't have any extra suspense behavior. - if (!selector.hasResolver) { - return selector; - } - return (...args) => { - const result = selector.apply(null, args); - if (selectors.hasFinishedResolution(selectorName, args)) { - if (selectors.hasResolutionFailed(selectorName, args)) { - throw selectors.getResolutionError(selectorName, args); - } - return result; - } - throw new Promise(resolve => { - const unsubscribe = store.subscribe(() => { - if (selectors.hasFinishedResolution(selectorName, args)) { - resolve(); - unsubscribe(); - } - }); - }); - }; - }); -} - -/** - * Convert resolvers to a normalized form, an object with `fulfill` method and - * optional methods like `isFulfilled`. - * - * @param {Object} resolvers Resolver to convert - */ -function mapResolvers(resolvers) { - return mapValues(resolvers, resolver => { - if (resolver.fulfill) { - return resolver; - } - return { - ...resolver, - // Copy the enumerable properties of the resolver function. - fulfill: resolver // Add the fulfill method. - }; - }); -} - -/** - * Returns a selector with a matched resolver. - * Resolvers are side effects invoked once per argument set of a given selector call, - * used in ensuring that the data needs for the selector are satisfied. - * - * @param {Object} selector The selector function to be bound. - * @param {string} selectorName The selector name. - * @param {Object} resolver Resolver to call. - * @param {Object} store The redux store to which the resolvers should be mapped. - * @param {Object} resolversCache Resolvers Cache. - */ -function mapSelectorWithResolver(selector, selectorName, resolver, store, resolversCache) { - function fulfillSelector(args) { - const state = store.getState(); - if (resolversCache.isRunning(selectorName, args) || typeof resolver.isFulfilled === 'function' && resolver.isFulfilled(state, ...args)) { - return; - } - const { - metadata - } = store.__unstableOriginalGetState(); - if (_metadata_selectors__WEBPACK_IMPORTED_MODULE_4__.hasStartedResolution(metadata, selectorName, args)) { - return; - } - resolversCache.markAsRunning(selectorName, args); - setTimeout(async () => { - resolversCache.clear(selectorName, args); - store.dispatch(_metadata_actions__WEBPACK_IMPORTED_MODULE_3__.startResolution(selectorName, args)); - try { - const action = resolver.fulfill(...args); - if (action) { - await store.dispatch(action); - } - store.dispatch(_metadata_actions__WEBPACK_IMPORTED_MODULE_3__.finishResolution(selectorName, args)); - } catch (error) { - store.dispatch(_metadata_actions__WEBPACK_IMPORTED_MODULE_3__.failResolution(selectorName, args, error)); - } - }, 0); - } - const selectorResolver = (...args) => { - args = normalize(selector, args); - fulfillSelector(args); - return selector(...args); - }; - selectorResolver.hasResolver = true; - return selectorResolver; -} - -/** - * Applies selector's normalization function to the given arguments - * if it exists. - * - * @param {Object} selector The selector potentially with a normalization method property. - * @param {Array} args selector arguments to normalize. - * @return {Array} Potentially normalized arguments. - */ -function normalize(selector, args) { - if (selector.__unstableNormalizeArgs && typeof selector.__unstableNormalizeArgs === 'function' && args?.length) { - return selector.__unstableNormalizeArgs(args); - } - return args; -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/redux-store/metadata/actions.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/redux-store/metadata/actions.js ***! - \***********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ failResolution: () => (/* binding */ failResolution), -/* harmony export */ failResolutions: () => (/* binding */ failResolutions), -/* harmony export */ finishResolution: () => (/* binding */ finishResolution), -/* harmony export */ finishResolutions: () => (/* binding */ finishResolutions), -/* harmony export */ invalidateResolution: () => (/* binding */ invalidateResolution), -/* harmony export */ invalidateResolutionForStore: () => (/* binding */ invalidateResolutionForStore), -/* harmony export */ invalidateResolutionForStoreSelector: () => (/* binding */ invalidateResolutionForStoreSelector), -/* harmony export */ startResolution: () => (/* binding */ startResolution), -/* harmony export */ startResolutions: () => (/* binding */ startResolutions) -/* harmony export */ }); -/** - * Returns an action object used in signalling that selector resolution has - * started. - * - * @param {string} selectorName Name of selector for which resolver triggered. - * @param {unknown[]} args Arguments to associate for uniqueness. - * - * @return {{ type: 'START_RESOLUTION', selectorName: string, args: unknown[] }} Action object. - */ -function startResolution(selectorName, args) { - return { - type: 'START_RESOLUTION', - selectorName, - args - }; -} - -/** - * Returns an action object used in signalling that selector resolution has - * completed. - * - * @param {string} selectorName Name of selector for which resolver triggered. - * @param {unknown[]} args Arguments to associate for uniqueness. - * - * @return {{ type: 'FINISH_RESOLUTION', selectorName: string, args: unknown[] }} Action object. - */ -function finishResolution(selectorName, args) { - return { - type: 'FINISH_RESOLUTION', - selectorName, - args - }; -} - -/** - * Returns an action object used in signalling that selector resolution has - * failed. - * - * @param {string} selectorName Name of selector for which resolver triggered. - * @param {unknown[]} args Arguments to associate for uniqueness. - * @param {Error|unknown} error The error that caused the failure. - * - * @return {{ type: 'FAIL_RESOLUTION', selectorName: string, args: unknown[], error: Error|unknown }} Action object. - */ -function failResolution(selectorName, args, error) { - return { - type: 'FAIL_RESOLUTION', - selectorName, - args, - error - }; -} - -/** - * Returns an action object used in signalling that a batch of selector resolutions has - * started. - * - * @param {string} selectorName Name of selector for which resolver triggered. - * @param {unknown[][]} args Array of arguments to associate for uniqueness, each item - * is associated to a resolution. - * - * @return {{ type: 'START_RESOLUTIONS', selectorName: string, args: unknown[][] }} Action object. - */ -function startResolutions(selectorName, args) { - return { - type: 'START_RESOLUTIONS', - selectorName, - args - }; -} - -/** - * Returns an action object used in signalling that a batch of selector resolutions has - * completed. - * - * @param {string} selectorName Name of selector for which resolver triggered. - * @param {unknown[][]} args Array of arguments to associate for uniqueness, each item - * is associated to a resolution. - * - * @return {{ type: 'FINISH_RESOLUTIONS', selectorName: string, args: unknown[][] }} Action object. - */ -function finishResolutions(selectorName, args) { - return { - type: 'FINISH_RESOLUTIONS', - selectorName, - args - }; -} - -/** - * Returns an action object used in signalling that a batch of selector resolutions has - * completed and at least one of them has failed. - * - * @param {string} selectorName Name of selector for which resolver triggered. - * @param {unknown[]} args Array of arguments to associate for uniqueness, each item - * is associated to a resolution. - * @param {(Error|unknown)[]} errors Array of errors to associate for uniqueness, each item - * is associated to a resolution. - * @return {{ type: 'FAIL_RESOLUTIONS', selectorName: string, args: unknown[], errors: Array }} Action object. - */ -function failResolutions(selectorName, args, errors) { - return { - type: 'FAIL_RESOLUTIONS', - selectorName, - args, - errors - }; -} - -/** - * Returns an action object used in signalling that we should invalidate the resolution cache. - * - * @param {string} selectorName Name of selector for which resolver should be invalidated. - * @param {unknown[]} args Arguments to associate for uniqueness. - * - * @return {{ type: 'INVALIDATE_RESOLUTION', selectorName: string, args: any[] }} Action object. - */ -function invalidateResolution(selectorName, args) { - return { - type: 'INVALIDATE_RESOLUTION', - selectorName, - args - }; -} - -/** - * Returns an action object used in signalling that the resolution - * should be invalidated. - * - * @return {{ type: 'INVALIDATE_RESOLUTION_FOR_STORE' }} Action object. - */ -function invalidateResolutionForStore() { - return { - type: 'INVALIDATE_RESOLUTION_FOR_STORE' - }; -} - -/** - * Returns an action object used in signalling that the resolution cache for a - * given selectorName should be invalidated. - * - * @param {string} selectorName Name of selector for which all resolvers should - * be invalidated. - * - * @return {{ type: 'INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR', selectorName: string }} Action object. - */ -function invalidateResolutionForStoreSelector(selectorName) { - return { - type: 'INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR', - selectorName - }; -} -//# sourceMappingURL=actions.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/redux-store/metadata/reducer.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/redux-store/metadata/reducer.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 equivalent_key_map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! equivalent-key-map */ "./node_modules/equivalent-key-map/equivalent-key-map.js"); -/* harmony import */ var equivalent_key_map__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(equivalent_key_map__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./node_modules/@wordpress/data/build-module/redux-store/metadata/utils.js"); -/** - * External dependencies - */ - -/** - * Internal dependencies - */ - -/** - * Reducer function returning next state for selector resolution of - * subkeys, object form: - * - * selectorName -> EquivalentKeyMap - */ -const subKeysIsResolved = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.onSubKey)('selectorName')((state = new (equivalent_key_map__WEBPACK_IMPORTED_MODULE_0___default())(), action) => { - switch (action.type) { - case 'START_RESOLUTION': - { - const nextState = new (equivalent_key_map__WEBPACK_IMPORTED_MODULE_0___default())(state); - nextState.set((0,_utils__WEBPACK_IMPORTED_MODULE_1__.selectorArgsToStateKey)(action.args), { - status: 'resolving' - }); - return nextState; - } - case 'FINISH_RESOLUTION': - { - const nextState = new (equivalent_key_map__WEBPACK_IMPORTED_MODULE_0___default())(state); - nextState.set((0,_utils__WEBPACK_IMPORTED_MODULE_1__.selectorArgsToStateKey)(action.args), { - status: 'finished' - }); - return nextState; - } - case 'FAIL_RESOLUTION': - { - const nextState = new (equivalent_key_map__WEBPACK_IMPORTED_MODULE_0___default())(state); - nextState.set((0,_utils__WEBPACK_IMPORTED_MODULE_1__.selectorArgsToStateKey)(action.args), { - status: 'error', - error: action.error - }); - return nextState; - } - case 'START_RESOLUTIONS': - { - const nextState = new (equivalent_key_map__WEBPACK_IMPORTED_MODULE_0___default())(state); - for (const resolutionArgs of action.args) { - nextState.set((0,_utils__WEBPACK_IMPORTED_MODULE_1__.selectorArgsToStateKey)(resolutionArgs), { - status: 'resolving' - }); - } - return nextState; - } - case 'FINISH_RESOLUTIONS': - { - const nextState = new (equivalent_key_map__WEBPACK_IMPORTED_MODULE_0___default())(state); - for (const resolutionArgs of action.args) { - nextState.set((0,_utils__WEBPACK_IMPORTED_MODULE_1__.selectorArgsToStateKey)(resolutionArgs), { - status: 'finished' - }); - } - return nextState; - } - case 'FAIL_RESOLUTIONS': - { - const nextState = new (equivalent_key_map__WEBPACK_IMPORTED_MODULE_0___default())(state); - action.args.forEach((resolutionArgs, idx) => { - const resolutionState = { - status: 'error', - error: undefined - }; - const error = action.errors[idx]; - if (error) { - resolutionState.error = error; - } - nextState.set((0,_utils__WEBPACK_IMPORTED_MODULE_1__.selectorArgsToStateKey)(resolutionArgs), resolutionState); - }); - return nextState; - } - case 'INVALIDATE_RESOLUTION': - { - const nextState = new (equivalent_key_map__WEBPACK_IMPORTED_MODULE_0___default())(state); - nextState.delete((0,_utils__WEBPACK_IMPORTED_MODULE_1__.selectorArgsToStateKey)(action.args)); - return nextState; - } - } - return state; -}); - -/** - * Reducer function returning next state for selector resolution, object form: - * - * selectorName -> EquivalentKeyMap - * - * @param state Current state. - * @param action Dispatched action. - * - * @return Next state. - */ -const isResolved = (state = {}, action) => { - switch (action.type) { - case 'INVALIDATE_RESOLUTION_FOR_STORE': - return {}; - case 'INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR': - { - if (action.selectorName in state) { - const { - [action.selectorName]: removedSelector, - ...restState - } = state; - return restState; - } - return state; - } - case 'START_RESOLUTION': - case 'FINISH_RESOLUTION': - case 'FAIL_RESOLUTION': - case 'START_RESOLUTIONS': - case 'FINISH_RESOLUTIONS': - case 'FAIL_RESOLUTIONS': - case 'INVALIDATE_RESOLUTION': - return subKeysIsResolved(state, action); - } - return state; -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isResolved); -//# sourceMappingURL=reducer.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/redux-store/metadata/selectors.js": -/*!*************************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/redux-store/metadata/selectors.js ***! - \*************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ countSelectorsByStatus: () => (/* binding */ countSelectorsByStatus), -/* harmony export */ getCachedResolvers: () => (/* binding */ getCachedResolvers), -/* harmony export */ getIsResolving: () => (/* binding */ getIsResolving), -/* harmony export */ getResolutionError: () => (/* binding */ getResolutionError), -/* harmony export */ getResolutionState: () => (/* binding */ getResolutionState), -/* harmony export */ hasFinishedResolution: () => (/* binding */ hasFinishedResolution), -/* harmony export */ hasResolutionFailed: () => (/* binding */ hasResolutionFailed), -/* harmony export */ hasResolvingSelectors: () => (/* binding */ hasResolvingSelectors), -/* harmony export */ hasStartedResolution: () => (/* binding */ hasStartedResolution), -/* harmony export */ isResolving: () => (/* binding */ isResolving) -/* harmony export */ }); -/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/deprecated */ "./node_modules/@wordpress/deprecated/build-module/index.js"); -/* harmony import */ var _create_selector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../create-selector */ "./node_modules/rememo/rememo.js"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./node_modules/@wordpress/data/build-module/redux-store/metadata/utils.js"); -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - -/** @typedef {Record} State */ -/** @typedef {import('./reducer').StateValue} StateValue */ -/** @typedef {import('./reducer').Status} Status */ - -/** - * Returns the raw resolution state value for a given selector name, - * and arguments set. May be undefined if the selector has never been resolved - * or not resolved for the given set of arguments, otherwise true or false for - * resolution started and completed respectively. - * - * @param {State} state Data state. - * @param {string} selectorName Selector name. - * @param {unknown[]?} args Arguments passed to selector. - * - * @return {StateValue|undefined} isResolving value. - */ -function getResolutionState(state, selectorName, args) { - const map = state[selectorName]; - if (!map) { - return; - } - return map.get((0,_utils__WEBPACK_IMPORTED_MODULE_0__.selectorArgsToStateKey)(args)); -} - -/** - * Returns an `isResolving`-like value for a given selector name and arguments set. - * Its value is either `undefined` if the selector has never been resolved or has been - * invalidated, or a `true`/`false` boolean value if the resolution is in progress or - * has finished, respectively. - * - * This is a legacy selector that was implemented when the "raw" internal data had - * this `undefined | boolean` format. Nowadays the internal value is an object that - * can be retrieved with `getResolutionState`. - * - * @deprecated - * - * @param {State} state Data state. - * @param {string} selectorName Selector name. - * @param {unknown[]?} args Arguments passed to selector. - * - * @return {boolean | undefined} isResolving value. - */ -function getIsResolving(state, selectorName, args) { - (0,_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1__["default"])('wp.data.select( store ).getIsResolving', { - since: '6.6', - version: '6.8', - alternative: 'wp.data.select( store ).getResolutionState' - }); - const resolutionState = getResolutionState(state, selectorName, args); - return resolutionState && resolutionState.status === 'resolving'; -} - -/** - * Returns true if resolution has already been triggered for a given - * selector name, and arguments set. - * - * @param {State} state Data state. - * @param {string} selectorName Selector name. - * @param {unknown[]?} args Arguments passed to selector. - * - * @return {boolean} Whether resolution has been triggered. - */ -function hasStartedResolution(state, selectorName, args) { - return getResolutionState(state, selectorName, args) !== undefined; -} - -/** - * Returns true if resolution has completed for a given selector - * name, and arguments set. - * - * @param {State} state Data state. - * @param {string} selectorName Selector name. - * @param {unknown[]?} args Arguments passed to selector. - * - * @return {boolean} Whether resolution has completed. - */ -function hasFinishedResolution(state, selectorName, args) { - const status = getResolutionState(state, selectorName, args)?.status; - return status === 'finished' || status === 'error'; -} - -/** - * Returns true if resolution has failed for a given selector - * name, and arguments set. - * - * @param {State} state Data state. - * @param {string} selectorName Selector name. - * @param {unknown[]?} args Arguments passed to selector. - * - * @return {boolean} Has resolution failed - */ -function hasResolutionFailed(state, selectorName, args) { - return getResolutionState(state, selectorName, args)?.status === 'error'; -} - -/** - * Returns the resolution error for a given selector name, and arguments set. - * Note it may be of an Error type, but may also be null, undefined, or anything else - * that can be `throw`-n. - * - * @param {State} state Data state. - * @param {string} selectorName Selector name. - * @param {unknown[]?} args Arguments passed to selector. - * - * @return {Error|unknown} Last resolution error - */ -function getResolutionError(state, selectorName, args) { - const resolutionState = getResolutionState(state, selectorName, args); - return resolutionState?.status === 'error' ? resolutionState.error : null; -} - -/** - * Returns true if resolution has been triggered but has not yet completed for - * a given selector name, and arguments set. - * - * @param {State} state Data state. - * @param {string} selectorName Selector name. - * @param {unknown[]?} args Arguments passed to selector. - * - * @return {boolean} Whether resolution is in progress. - */ -function isResolving(state, selectorName, args) { - return getResolutionState(state, selectorName, args)?.status === 'resolving'; -} - -/** - * Returns the list of the cached resolvers. - * - * @param {State} state Data state. - * - * @return {State} Resolvers mapped by args and selectorName. - */ -function getCachedResolvers(state) { - return state; -} - -/** - * Whether the store has any currently resolving selectors. - * - * @param {State} state Data state. - * - * @return {boolean} True if one or more selectors are resolving, false otherwise. - */ -function hasResolvingSelectors(state) { - return Object.values(state).some(selectorState => - /** - * This uses the internal `_map` property of `EquivalentKeyMap` for - * optimization purposes, since the `EquivalentKeyMap` implementation - * does not support a `.values()` implementation. - * - * @see https://github.com/aduth/equivalent-key-map - */ - Array.from(selectorState._map.values()).some(resolution => resolution[1]?.status === 'resolving')); -} - -/** - * Retrieves the total number of selectors, grouped per status. - * - * @param {State} state Data state. - * - * @return {Object} Object, containing selector totals by status. - */ -const countSelectorsByStatus = (0,_create_selector__WEBPACK_IMPORTED_MODULE_2__["default"])(state => { - const selectorsByStatus = {}; - Object.values(state).forEach(selectorState => - /** - * This uses the internal `_map` property of `EquivalentKeyMap` for - * optimization purposes, since the `EquivalentKeyMap` implementation - * does not support a `.values()` implementation. - * - * @see https://github.com/aduth/equivalent-key-map - */ - Array.from(selectorState._map.values()).forEach(resolution => { - var _resolution$1$status; - const currentStatus = (_resolution$1$status = resolution[1]?.status) !== null && _resolution$1$status !== void 0 ? _resolution$1$status : 'error'; - if (!selectorsByStatus[currentStatus]) { - selectorsByStatus[currentStatus] = 0; - } - selectorsByStatus[currentStatus]++; - })); - return selectorsByStatus; -}, state => [state]); -//# sourceMappingURL=selectors.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/redux-store/metadata/utils.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/redux-store/metadata/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 */ onSubKey: () => (/* binding */ onSubKey), -/* harmony export */ selectorArgsToStateKey: () => (/* binding */ selectorArgsToStateKey) -/* harmony export */ }); -/** - * External dependencies - */ - -/** - * Higher-order reducer creator which creates a combined reducer object, keyed - * by a property on the action object. - * - * @param actionProperty Action property by which to key object. - * @return Higher-order reducer. - */ -const onSubKey = actionProperty => reducer => (state = {}, action) => { - // Retrieve subkey from action. Do not track if undefined; useful for cases - // where reducer is scoped by action shape. - const key = action[actionProperty]; - if (key === undefined) { - return state; - } - - // Avoid updating state if unchanged. Note that this also accounts for a - // reducer which returns undefined on a key which is not yet tracked. - const nextKeyState = reducer(state[key], action); - if (nextKeyState === state[key]) { - return state; - } - return { - ...state, - [key]: nextKeyState - }; -}; - -/** - * Normalize selector argument array by defaulting `undefined` value to an empty array - * and removing trailing `undefined` values. - * - * @param args Selector argument array - * @return Normalized state key array - */ -function selectorArgsToStateKey(args) { - if (args === undefined || args === null) { - return []; - } - const len = args.length; - let idx = len; - while (idx > 0 && args[idx - 1] === undefined) { - idx--; - } - return idx === len ? args : args.slice(0, idx); -} -//# sourceMappingURL=utils.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/redux-store/thunk-middleware.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/redux-store/thunk-middleware.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 */ createThunkMiddleware) -/* harmony export */ }); -function createThunkMiddleware(args) { - return () => next => action => { - if (typeof action === 'function') { - return action(args); - } - return next(action); - }; -} -//# sourceMappingURL=thunk-middleware.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/registry.js": -/*!***************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/registry.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createRegistry: () => (/* binding */ createRegistry) -/* harmony export */ }); -/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/deprecated */ "./node_modules/@wordpress/deprecated/build-module/index.js"); -/* harmony import */ var _redux_store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./redux-store */ "./node_modules/@wordpress/data/build-module/redux-store/index.js"); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./store */ "./node_modules/@wordpress/data/build-module/store/index.js"); -/* harmony import */ var _utils_emitter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils/emitter */ "./node_modules/@wordpress/data/build-module/utils/emitter.js"); -/* harmony import */ var _lock_unlock__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lock-unlock */ "./node_modules/@wordpress/data/build-module/lock-unlock.js"); -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - - -/** @typedef {import('./types').StoreDescriptor} StoreDescriptor */ - -/** - * @typedef {Object} WPDataRegistry An isolated orchestrator of store registrations. - * - * @property {Function} registerGenericStore Given a namespace key and settings - * object, registers a new generic - * store. - * @property {Function} registerStore Given a namespace key and settings - * object, registers a new namespace - * store. - * @property {Function} subscribe Given a function callback, invokes - * the callback on any change to state - * within any registered store. - * @property {Function} select Given a namespace key, returns an - * object of the store's registered - * selectors. - * @property {Function} dispatch Given a namespace key, returns an - * object of the store's registered - * action dispatchers. - */ - -/** - * @typedef {Object} WPDataPlugin An object of registry function overrides. - * - * @property {Function} registerStore registers store. - */ - -function getStoreName(storeNameOrDescriptor) { - return typeof storeNameOrDescriptor === 'string' ? storeNameOrDescriptor : storeNameOrDescriptor.name; -} -/** - * Creates a new store registry, given an optional object of initial store - * configurations. - * - * @param {Object} storeConfigs Initial store configurations. - * @param {Object?} parent Parent registry. - * - * @return {WPDataRegistry} Data registry. - */ -function createRegistry(storeConfigs = {}, parent = null) { - const stores = {}; - const emitter = (0,_utils_emitter__WEBPACK_IMPORTED_MODULE_0__.createEmitter)(); - let listeningStores = null; - - /** - * Global listener called for each store's update. - */ - function globalListener() { - emitter.emit(); - } - - /** - * Subscribe to changes to any data, either in all stores in registry, or - * in one specific store. - * - * @param {Function} listener Listener function. - * @param {string|StoreDescriptor?} storeNameOrDescriptor Optional store name. - * - * @return {Function} Unsubscribe function. - */ - const subscribe = (listener, storeNameOrDescriptor) => { - // subscribe to all stores - if (!storeNameOrDescriptor) { - return emitter.subscribe(listener); - } - - // subscribe to one store - const storeName = getStoreName(storeNameOrDescriptor); - const store = stores[storeName]; - if (store) { - return store.subscribe(listener); - } - - // Trying to access a store that hasn't been registered, - // this is a pattern rarely used but seen in some places. - // We fallback to global `subscribe` here for backward-compatibility for now. - // See https://github.com/WordPress/gutenberg/pull/27466 for more info. - if (!parent) { - return emitter.subscribe(listener); - } - return parent.subscribe(listener, storeNameOrDescriptor); - }; - - /** - * Calls a selector given the current state and extra arguments. - * - * @param {string|StoreDescriptor} storeNameOrDescriptor Unique namespace identifier for the store - * or the store descriptor. - * - * @return {*} The selector's returned value. - */ - function select(storeNameOrDescriptor) { - const storeName = getStoreName(storeNameOrDescriptor); - listeningStores?.add(storeName); - const store = stores[storeName]; - if (store) { - return store.getSelectors(); - } - return parent?.select(storeName); - } - function __unstableMarkListeningStores(callback, ref) { - listeningStores = new Set(); - try { - return callback.call(this); - } finally { - ref.current = Array.from(listeningStores); - listeningStores = null; - } - } - - /** - * Given a store descriptor, returns an object containing the store's selectors pre-bound to - * state so that you only need to supply additional arguments, and modified so that they return - * promises that resolve to their eventual values, after any resolvers have ran. - * - * @param {StoreDescriptor|string} storeNameOrDescriptor The store descriptor. The legacy calling - * convention of passing the store name is - * also supported. - * - * @return {Object} Each key of the object matches the name of a selector. - */ - function resolveSelect(storeNameOrDescriptor) { - const storeName = getStoreName(storeNameOrDescriptor); - listeningStores?.add(storeName); - const store = stores[storeName]; - if (store) { - return store.getResolveSelectors(); - } - return parent && parent.resolveSelect(storeName); - } - - /** - * Given a store descriptor, returns an object containing the store's selectors pre-bound to - * state so that you only need to supply additional arguments, and modified so that they throw - * promises in case the selector is not resolved yet. - * - * @param {StoreDescriptor|string} storeNameOrDescriptor The store descriptor. The legacy calling - * convention of passing the store name is - * also supported. - * - * @return {Object} Object containing the store's suspense-wrapped selectors. - */ - function suspendSelect(storeNameOrDescriptor) { - const storeName = getStoreName(storeNameOrDescriptor); - listeningStores?.add(storeName); - const store = stores[storeName]; - if (store) { - return store.getSuspendSelectors(); - } - return parent && parent.suspendSelect(storeName); - } - - /** - * Returns the available actions for a part of the state. - * - * @param {string|StoreDescriptor} storeNameOrDescriptor Unique namespace identifier for the store - * or the store descriptor. - * - * @return {*} The action's returned value. - */ - function dispatch(storeNameOrDescriptor) { - const storeName = getStoreName(storeNameOrDescriptor); - const store = stores[storeName]; - if (store) { - return store.getActions(); - } - return parent && parent.dispatch(storeName); - } - - // - // Deprecated - // TODO: Remove this after `use()` is removed. - function withPlugins(attributes) { - return Object.fromEntries(Object.entries(attributes).map(([key, attribute]) => { - if (typeof attribute !== 'function') { - return [key, attribute]; - } - return [key, function () { - return registry[key].apply(null, arguments); - }]; - })); - } - - /** - * Registers a store instance. - * - * @param {string} name Store registry name. - * @param {Function} createStore Function that creates a store object (getSelectors, getActions, subscribe). - */ - function registerStoreInstance(name, createStore) { - if (stores[name]) { - // eslint-disable-next-line no-console - console.error('Store "' + name + '" is already registered.'); - return stores[name]; - } - const store = createStore(); - if (typeof store.getSelectors !== 'function') { - throw new TypeError('store.getSelectors must be a function'); - } - if (typeof store.getActions !== 'function') { - throw new TypeError('store.getActions must be a function'); - } - if (typeof store.subscribe !== 'function') { - throw new TypeError('store.subscribe must be a function'); - } - // The emitter is used to keep track of active listeners when the registry - // get paused, that way, when resumed we should be able to call all these - // pending listeners. - store.emitter = (0,_utils_emitter__WEBPACK_IMPORTED_MODULE_0__.createEmitter)(); - const currentSubscribe = store.subscribe; - store.subscribe = listener => { - const unsubscribeFromEmitter = store.emitter.subscribe(listener); - const unsubscribeFromStore = currentSubscribe(() => { - if (store.emitter.isPaused) { - store.emitter.emit(); - return; - } - listener(); - }); - return () => { - unsubscribeFromStore?.(); - unsubscribeFromEmitter?.(); - }; - }; - stores[name] = store; - store.subscribe(globalListener); - - // Copy private actions and selectors from the parent store. - if (parent) { - try { - (0,_lock_unlock__WEBPACK_IMPORTED_MODULE_1__.unlock)(store.store).registerPrivateActions((0,_lock_unlock__WEBPACK_IMPORTED_MODULE_1__.unlock)(parent).privateActionsOf(name)); - (0,_lock_unlock__WEBPACK_IMPORTED_MODULE_1__.unlock)(store.store).registerPrivateSelectors((0,_lock_unlock__WEBPACK_IMPORTED_MODULE_1__.unlock)(parent).privateSelectorsOf(name)); - } catch (e) { - // unlock() throws if store.store was not locked. - // The error indicates there's nothing to do here so let's - // ignore it. - } - } - return store; - } - - /** - * Registers a new store given a store descriptor. - * - * @param {StoreDescriptor} store Store descriptor. - */ - function register(store) { - registerStoreInstance(store.name, () => store.instantiate(registry)); - } - function registerGenericStore(name, store) { - (0,_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_2__["default"])('wp.data.registerGenericStore', { - since: '5.9', - alternative: 'wp.data.register( storeDescriptor )' - }); - registerStoreInstance(name, () => store); - } - - /** - * Registers a standard `@wordpress/data` store. - * - * @param {string} storeName Unique namespace identifier. - * @param {Object} options Store description (reducer, actions, selectors, resolvers). - * - * @return {Object} Registered store object. - */ - function registerStore(storeName, options) { - if (!options.reducer) { - throw new TypeError('Must specify store reducer'); - } - const store = registerStoreInstance(storeName, () => (0,_redux_store__WEBPACK_IMPORTED_MODULE_3__["default"])(storeName, options).instantiate(registry)); - return store.store; - } - function batch(callback) { - // If we're already batching, just call the callback. - if (emitter.isPaused) { - callback(); - return; - } - emitter.pause(); - Object.values(stores).forEach(store => store.emitter.pause()); - callback(); - emitter.resume(); - Object.values(stores).forEach(store => store.emitter.resume()); - } - let registry = { - batch, - stores, - namespaces: stores, - // TODO: Deprecate/remove this. - subscribe, - select, - resolveSelect, - suspendSelect, - dispatch, - use, - register, - registerGenericStore, - registerStore, - __unstableMarkListeningStores - }; - - // - // TODO: - // This function will be deprecated as soon as it is no longer internally referenced. - function use(plugin, options) { - if (!plugin) { - return; - } - registry = { - ...registry, - ...plugin(registry, options) - }; - return registry; - } - registry.register(_store__WEBPACK_IMPORTED_MODULE_4__["default"]); - for (const [name, config] of Object.entries(storeConfigs)) { - registry.register((0,_redux_store__WEBPACK_IMPORTED_MODULE_3__["default"])(name, config)); - } - if (parent) { - parent.subscribe(globalListener); - } - const registryWithPlugins = withPlugins(registry); - (0,_lock_unlock__WEBPACK_IMPORTED_MODULE_1__.lock)(registryWithPlugins, { - privateActionsOf: name => { - try { - return (0,_lock_unlock__WEBPACK_IMPORTED_MODULE_1__.unlock)(stores[name].store).privateActions; - } catch (e) { - // unlock() throws an error the store was not locked – this means - // there no private actions are available - return {}; - } - }, - privateSelectorsOf: name => { - try { - return (0,_lock_unlock__WEBPACK_IMPORTED_MODULE_1__.unlock)(stores[name].store).privateSelectors; - } catch (e) { - return {}; - } - } - }); - return registryWithPlugins; -} -//# sourceMappingURL=registry.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/resolvers-cache-middleware.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/resolvers-cache-middleware.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 */ }); -/** @typedef {import('./registry').WPDataRegistry} WPDataRegistry */ - -/** - * Creates a middleware handling resolvers cache invalidation. - * - * @param {WPDataRegistry} registry Registry for which to create the middleware. - * @param {string} storeName Name of the store for which to create the middleware. - * - * @return {Function} Middleware function. - */ -const createResolversCacheMiddleware = (registry, storeName) => () => next => action => { - const resolvers = registry.select(storeName).getCachedResolvers(); - const resolverEntries = Object.entries(resolvers); - resolverEntries.forEach(([selectorName, resolversByArgs]) => { - const resolver = registry.stores[storeName]?.resolvers?.[selectorName]; - if (!resolver || !resolver.shouldInvalidate) { - return; - } - resolversByArgs.forEach((value, args) => { - // Works around a bug in `EquivalentKeyMap` where `map.delete` merely sets an entry value - // to `undefined` and `map.forEach` then iterates also over these orphaned entries. - if (value === undefined) { - return; - } - - // resolversByArgs is the map Map([ args ] => boolean) storing the cache resolution status for a given selector. - // If the value is "finished" or "error" it means this resolver has finished its resolution which means we need - // to invalidate it, if it's true it means it's inflight and the invalidation is not necessary. - if (value.status !== 'finished' && value.status !== 'error') { - return; - } - if (!resolver.shouldInvalidate(action, ...args)) { - return; - } - - // Trigger cache invalidation - registry.dispatch(storeName).invalidateResolution(selectorName, args); - }); - }); - return next(action); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createResolversCacheMiddleware); -//# sourceMappingURL=resolvers-cache-middleware.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/select.js": -/*!*************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/select.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ select: () => (/* binding */ select) -/* harmony export */ }); -/* harmony import */ var _default_registry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default-registry */ "./node_modules/@wordpress/data/build-module/default-registry.js"); -/** - * Internal dependencies - */ - - - -/** - * Given a store descriptor, returns an object of the store's selectors. - * The selector functions are been pre-bound to pass the current state automatically. - * As a consumer, you need only pass arguments of the selector, if applicable. - * - * - * @param storeNameOrDescriptor The store descriptor. The legacy calling convention - * of passing the store name is also supported. - * - * @example - * ```js - * import { select } from '@wordpress/data'; - * import { store as myCustomStore } from 'my-custom-store'; - * - * select( myCustomStore ).getPrice( 'hammer' ); - * ``` - * - * @return Object containing the store's selectors. - */ -function select(storeNameOrDescriptor) { - return _default_registry__WEBPACK_IMPORTED_MODULE_0__["default"].select(storeNameOrDescriptor); -} -//# sourceMappingURL=select.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/store/index.js": -/*!******************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/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 */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -const coreDataStore = { - name: 'core/data', - instantiate(registry) { - const getCoreDataSelector = selectorName => (key, ...args) => { - return registry.select(key)[selectorName](...args); - }; - const getCoreDataAction = actionName => (key, ...args) => { - return registry.dispatch(key)[actionName](...args); - }; - return { - getSelectors() { - return Object.fromEntries(['getIsResolving', 'hasStartedResolution', 'hasFinishedResolution', 'isResolving', 'getCachedResolvers'].map(selectorName => [selectorName, getCoreDataSelector(selectorName)])); - }, - getActions() { - return Object.fromEntries(['startResolution', 'finishResolution', 'invalidateResolution', 'invalidateResolutionForStore', 'invalidateResolutionForStoreSelector'].map(actionName => [actionName, getCoreDataAction(actionName)])); - }, - subscribe() { - // There's no reasons to trigger any listener when we subscribe to this store - // because there's no state stored in this store that need to retrigger selectors - // if a change happens, the corresponding store where the tracking stated live - // would have already triggered a "subscribe" call. - return () => () => {}; - } - }; - } -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (coreDataStore); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/data/build-module/utils/emitter.js": -/*!********************************************************************!*\ - !*** ./node_modules/@wordpress/data/build-module/utils/emitter.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createEmitter: () => (/* binding */ createEmitter) -/* harmony export */ }); -/** - * Create an event emitter. - * - * @return {import("../types").DataEmitter} Emitter. - */ -function createEmitter() { - let isPaused = false; - let isPending = false; - const listeners = new Set(); - const notifyListeners = () => - // We use Array.from to clone the listeners Set - // This ensures that we don't run a listener - // that was added as a response to another listener. - Array.from(listeners).forEach(listener => listener()); - return { - get isPaused() { - return isPaused; - }, - subscribe(listener) { - listeners.add(listener); - return () => listeners.delete(listener); - }, - pause() { - isPaused = true; - }, - resume() { - isPaused = false; - if (isPending) { - isPending = false; - notifyListeners(); - } - }, - emit() { - if (isPaused) { - isPending = true; - return; - } - notifyListeners(); - } - }; -} -//# sourceMappingURL=emitter.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/deprecated/build-module/index.js": -/*!******************************************************************!*\ - !*** ./node_modules/@wordpress/deprecated/build-module/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": () => (/* binding */ deprecated), -/* harmony export */ logged: () => (/* binding */ logged) -/* harmony export */ }); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/hooks */ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/index.js"); -/** - * WordPress dependencies - */ - - -/** - * Object map tracking messages which have been logged, for use in ensuring a - * message is only logged once. - * - * @type {Record} - */ -const logged = Object.create(null); - -/** - * Logs a message to notify developers about a deprecated feature. - * - * @param {string} feature Name of the deprecated feature. - * @param {Object} [options] Personalisation options - * @param {string} [options.since] Version in which the feature was deprecated. - * @param {string} [options.version] Version in which the feature will be removed. - * @param {string} [options.alternative] Feature to use instead - * @param {string} [options.plugin] Plugin name if it's a plugin feature - * @param {string} [options.link] Link to documentation - * @param {string} [options.hint] Additional message to help transition away from the deprecated feature. - * - * @example - * ```js - * import deprecated from '@wordpress/deprecated'; - * - * deprecated( 'Eating meat', { - * since: '2019.01.01' - * version: '2020.01.01', - * alternative: 'vegetables', - * plugin: 'the earth', - * hint: 'You may find it beneficial to transition gradually.', - * } ); - * - * // Logs: 'Eating meat is deprecated since version 2019.01.01 and will be removed from the earth in version 2020.01.01. Please use vegetables instead. Note: You may find it beneficial to transition gradually.' - * ``` - */ -function deprecated(feature, options = {}) { - const { - since, - version, - alternative, - plugin, - link, - hint - } = options; - const pluginMessage = plugin ? ` from ${plugin}` : ''; - const sinceMessage = since ? ` since version ${since}` : ''; - const versionMessage = version ? ` and will be removed${pluginMessage} in version ${version}` : ''; - const useInsteadMessage = alternative ? ` Please use ${alternative} instead.` : ''; - const linkMessage = link ? ` See: ${link}` : ''; - const hintMessage = hint ? ` Note: ${hint}` : ''; - const message = `${feature} is deprecated${sinceMessage}${versionMessage}.${useInsteadMessage}${linkMessage}${hintMessage}`; - - // Skip if already logged. - if (message in logged) { - return; - } - - /** - * Fires whenever a deprecated feature is encountered - * - * @param {string} feature Name of the deprecated feature. - * @param {?Object} options Personalisation options - * @param {string} options.since Version in which the feature was deprecated. - * @param {?string} options.version Version in which the feature will be removed. - * @param {?string} options.alternative Feature to use instead - * @param {?string} options.plugin Plugin name if it's a plugin feature - * @param {?string} options.link Link to documentation - * @param {?string} options.hint Additional message to help transition away from the deprecated feature. - * @param {?string} message Message sent to console.warn - */ - (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__.doAction)('deprecated', feature, options, message); - - // eslint-disable-next-line no-console - console.warn(message); - logged[message] = true; -} - -/** @typedef {import('utility-types').NonUndefined[1]>} DeprecatedOptions */ -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createAddHook.js": -/*!********************************************************************************************************!*\ - !*** ./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createAddHook.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 _validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateNamespace.js */ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/validateNamespace.js"); -/* harmony import */ var _validateHookName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./validateHookName.js */ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/validateHookName.js"); -/** - * Internal dependencies - */ - - - -/** - * @callback AddHook - * - * Adds the hook to the appropriate hooks container. - * - * @param {string} hookName Name of hook to add - * @param {string} namespace The unique namespace identifying the callback in the form `vendor/plugin/function`. - * @param {import('.').Callback} callback Function to call when the hook is run - * @param {number} [priority=10] Priority of this hook - */ - -/** - * Returns a function which, when invoked, will add a hook. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * - * @return {AddHook} Function that adds a new hook. - */ -function createAddHook(hooks, storeKey) { - return function addHook(hookName, namespace, callback, priority = 10) { - const hooksStore = hooks[storeKey]; - if (!(0,_validateHookName_js__WEBPACK_IMPORTED_MODULE_1__["default"])(hookName)) { - return; - } - if (!(0,_validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__["default"])(namespace)) { - return; - } - if ('function' !== typeof callback) { - // eslint-disable-next-line no-console - console.error('The hook callback must be a function.'); - return; - } - - // Validate numeric priority - if ('number' !== typeof priority) { - // eslint-disable-next-line no-console - console.error('If specified, the hook priority must be a number.'); - return; - } - const handler = { - callback, - priority, - namespace - }; - if (hooksStore[hookName]) { - // Find the correct insert index of the new hook. - const handlers = hooksStore[hookName].handlers; - - /** @type {number} */ - let i; - for (i = handlers.length; i > 0; i--) { - if (priority >= handlers[i - 1].priority) { - break; - } - } - if (i === handlers.length) { - // If append, operate via direct assignment. - handlers[i] = handler; - } else { - // Otherwise, insert before index via splice. - handlers.splice(i, 0, handler); - } - - // We may also be currently executing this hook. If the callback - // we're adding would come after the current callback, there's no - // problem; otherwise we need to increase the execution index of - // any other runs by 1 to account for the added element. - hooksStore.__current.forEach(hookInfo => { - if (hookInfo.name === hookName && hookInfo.currentIndex >= i) { - hookInfo.currentIndex++; - } - }); - } else { - // This is the first hook of its type. - hooksStore[hookName] = { - handlers: [handler], - runs: 0 - }; - } - if (hookName !== 'hookAdded') { - hooks.doAction('hookAdded', hookName, namespace, callback, priority); - } - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createAddHook); -//# sourceMappingURL=createAddHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createCurrentHook.js": -/*!************************************************************************************************************!*\ - !*** ./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createCurrentHook.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 a function which, when invoked, will return the name of the - * currently running hook, or `null` if no hook of the given type is currently - * running. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * - * @return {() => string | null} Function that returns the current hook name or null. - */ -function createCurrentHook(hooks, storeKey) { - return function currentHook() { - var _hooksStore$__current; - const hooksStore = hooks[storeKey]; - return (_hooksStore$__current = hooksStore.__current[hooksStore.__current.length - 1]?.name) !== null && _hooksStore$__current !== void 0 ? _hooksStore$__current : null; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createCurrentHook); -//# sourceMappingURL=createCurrentHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createDidHook.js": -/*!********************************************************************************************************!*\ - !*** ./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createDidHook.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 _validateHookName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateHookName.js */ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/validateHookName.js"); -/** - * Internal dependencies - */ - - -/** - * @callback DidHook - * - * Returns the number of times an action has been fired. - * - * @param {string} hookName The hook name to check. - * - * @return {number | undefined} The number of times the hook has run. - */ - -/** - * Returns a function which, when invoked, will return the number of times a - * hook has been called. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * - * @return {DidHook} Function that returns a hook's call count. - */ -function createDidHook(hooks, storeKey) { - return function didHook(hookName) { - const hooksStore = hooks[storeKey]; - if (!(0,_validateHookName_js__WEBPACK_IMPORTED_MODULE_0__["default"])(hookName)) { - return; - } - return hooksStore[hookName] && hooksStore[hookName].runs ? hooksStore[hookName].runs : 0; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createDidHook); -//# sourceMappingURL=createDidHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createDoingHook.js": -/*!**********************************************************************************************************!*\ - !*** ./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createDoingHook.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 */ }); -/** - * @callback DoingHook - * Returns whether a hook is currently being executed. - * - * @param {string} [hookName] The name of the hook to check for. If - * omitted, will check for any hook being executed. - * - * @return {boolean} Whether the hook is being executed. - */ - -/** - * Returns a function which, when invoked, will return whether a hook is - * currently being executed. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * - * @return {DoingHook} Function that returns whether a hook is currently - * being executed. - */ -function createDoingHook(hooks, storeKey) { - return function doingHook(hookName) { - const hooksStore = hooks[storeKey]; - - // If the hookName was not passed, check for any current hook. - if ('undefined' === typeof hookName) { - return 'undefined' !== typeof hooksStore.__current[0]; - } - - // Return the __current hook. - return hooksStore.__current[0] ? hookName === hooksStore.__current[0].name : false; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createDoingHook); -//# sourceMappingURL=createDoingHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createHasHook.js": -/*!********************************************************************************************************!*\ - !*** ./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createHasHook.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 */ }); -/** - * @callback HasHook - * - * Returns whether any handlers are attached for the given hookName and optional namespace. - * - * @param {string} hookName The name of the hook to check for. - * @param {string} [namespace] Optional. The unique namespace identifying the callback - * in the form `vendor/plugin/function`. - * - * @return {boolean} Whether there are handlers that are attached to the given hook. - */ -/** - * Returns a function which, when invoked, will return whether any handlers are - * attached to a particular hook. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * - * @return {HasHook} Function that returns whether any handlers are - * attached to a particular hook and optional namespace. - */ -function createHasHook(hooks, storeKey) { - return function hasHook(hookName, namespace) { - const hooksStore = hooks[storeKey]; - - // Use the namespace if provided. - if ('undefined' !== typeof namespace) { - return hookName in hooksStore && hooksStore[hookName].handlers.some(hook => hook.namespace === namespace); - } - return hookName in hooksStore; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createHasHook); -//# sourceMappingURL=createHasHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createHooks.js": -/*!******************************************************************************************************!*\ - !*** ./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createHooks.js ***! - \******************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ _Hooks: () => (/* binding */ _Hooks), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _createAddHook__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createAddHook */ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createAddHook.js"); -/* harmony import */ var _createRemoveHook__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createRemoveHook */ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createRemoveHook.js"); -/* harmony import */ var _createHasHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createHasHook */ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createHasHook.js"); -/* harmony import */ var _createRunHook__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createRunHook */ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createRunHook.js"); -/* harmony import */ var _createCurrentHook__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./createCurrentHook */ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createCurrentHook.js"); -/* harmony import */ var _createDoingHook__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createDoingHook */ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createDoingHook.js"); -/* harmony import */ var _createDidHook__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./createDidHook */ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createDidHook.js"); -/** - * Internal dependencies - */ - - - - - - - - -/** - * Internal class for constructing hooks. Use `createHooks()` function - * - * Note, it is necessary to expose this class to make its type public. - * - * @private - */ -class _Hooks { - constructor() { - /** @type {import('.').Store} actions */ - this.actions = Object.create(null); - this.actions.__current = []; - - /** @type {import('.').Store} filters */ - this.filters = Object.create(null); - this.filters.__current = []; - this.addAction = (0,_createAddHook__WEBPACK_IMPORTED_MODULE_0__["default"])(this, 'actions'); - this.addFilter = (0,_createAddHook__WEBPACK_IMPORTED_MODULE_0__["default"])(this, 'filters'); - this.removeAction = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__["default"])(this, 'actions'); - this.removeFilter = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__["default"])(this, 'filters'); - this.hasAction = (0,_createHasHook__WEBPACK_IMPORTED_MODULE_2__["default"])(this, 'actions'); - this.hasFilter = (0,_createHasHook__WEBPACK_IMPORTED_MODULE_2__["default"])(this, 'filters'); - this.removeAllActions = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__["default"])(this, 'actions', true); - this.removeAllFilters = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__["default"])(this, 'filters', true); - this.doAction = (0,_createRunHook__WEBPACK_IMPORTED_MODULE_3__["default"])(this, 'actions'); - this.applyFilters = (0,_createRunHook__WEBPACK_IMPORTED_MODULE_3__["default"])(this, 'filters', true); - this.currentAction = (0,_createCurrentHook__WEBPACK_IMPORTED_MODULE_4__["default"])(this, 'actions'); - this.currentFilter = (0,_createCurrentHook__WEBPACK_IMPORTED_MODULE_4__["default"])(this, 'filters'); - this.doingAction = (0,_createDoingHook__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'actions'); - this.doingFilter = (0,_createDoingHook__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'filters'); - this.didAction = (0,_createDidHook__WEBPACK_IMPORTED_MODULE_6__["default"])(this, 'actions'); - this.didFilter = (0,_createDidHook__WEBPACK_IMPORTED_MODULE_6__["default"])(this, 'filters'); - } -} - -/** @typedef {_Hooks} Hooks */ - -/** - * Returns an instance of the hooks object. - * - * @return {Hooks} A Hooks instance. - */ -function createHooks() { - return new _Hooks(); -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createHooks); -//# sourceMappingURL=createHooks.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createRemoveHook.js": -/*!***********************************************************************************************************!*\ - !*** ./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createRemoveHook.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 _validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateNamespace.js */ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/validateNamespace.js"); -/* harmony import */ var _validateHookName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./validateHookName.js */ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/validateHookName.js"); -/** - * Internal dependencies - */ - - - -/** - * @callback RemoveHook - * Removes the specified callback (or all callbacks) from the hook with a given hookName - * and namespace. - * - * @param {string} hookName The name of the hook to modify. - * @param {string} namespace The unique namespace identifying the callback in the - * form `vendor/plugin/function`. - * - * @return {number | undefined} The number of callbacks removed. - */ - -/** - * Returns a function which, when invoked, will remove a specified hook or all - * hooks by the given name. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * @param {boolean} [removeAll=false] Whether to remove all callbacks for a hookName, - * without regard to namespace. Used to create - * `removeAll*` functions. - * - * @return {RemoveHook} Function that removes hooks. - */ -function createRemoveHook(hooks, storeKey, removeAll = false) { - return function removeHook(hookName, namespace) { - const hooksStore = hooks[storeKey]; - if (!(0,_validateHookName_js__WEBPACK_IMPORTED_MODULE_1__["default"])(hookName)) { - return; - } - if (!removeAll && !(0,_validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__["default"])(namespace)) { - return; - } - - // Bail if no hooks exist by this name. - if (!hooksStore[hookName]) { - return 0; - } - let handlersRemoved = 0; - if (removeAll) { - handlersRemoved = hooksStore[hookName].handlers.length; - hooksStore[hookName] = { - runs: hooksStore[hookName].runs, - handlers: [] - }; - } else { - // Try to find the specified callback to remove. - const handlers = hooksStore[hookName].handlers; - for (let i = handlers.length - 1; i >= 0; i--) { - if (handlers[i].namespace === namespace) { - handlers.splice(i, 1); - handlersRemoved++; - // This callback may also be part of a hook that is - // currently executing. If the callback we're removing - // comes after the current callback, there's no problem; - // otherwise we need to decrease the execution index of any - // other runs by 1 to account for the removed element. - hooksStore.__current.forEach(hookInfo => { - if (hookInfo.name === hookName && hookInfo.currentIndex >= i) { - hookInfo.currentIndex--; - } - }); - } - } - } - if (hookName !== 'hookRemoved') { - hooks.doAction('hookRemoved', hookName, namespace); - } - return handlersRemoved; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createRemoveHook); -//# sourceMappingURL=createRemoveHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createRunHook.js": -/*!********************************************************************************************************!*\ - !*** ./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createRunHook.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 a function which, when invoked, will execute all callbacks - * registered to a hook of the specified type, optionally returning the final - * value of the call chain. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * @param {boolean} [returnFirstArg=false] Whether each hook callback is expected to - * return its first argument. - * - * @return {(hookName:string, ...args: unknown[]) => undefined|unknown} Function that runs hook callbacks. - */ -function createRunHook(hooks, storeKey, returnFirstArg = false) { - return function runHooks(hookName, ...args) { - const hooksStore = hooks[storeKey]; - if (!hooksStore[hookName]) { - hooksStore[hookName] = { - handlers: [], - runs: 0 - }; - } - hooksStore[hookName].runs++; - const handlers = hooksStore[hookName].handlers; - - // The following code is stripped from production builds. - if (true) { - // Handle any 'all' hooks registered. - if ('hookAdded' !== hookName && hooksStore.all) { - handlers.push(...hooksStore.all.handlers); - } - } - if (!handlers || !handlers.length) { - return returnFirstArg ? args[0] : undefined; - } - const hookInfo = { - name: hookName, - currentIndex: 0 - }; - hooksStore.__current.push(hookInfo); - while (hookInfo.currentIndex < handlers.length) { - const handler = handlers[hookInfo.currentIndex]; - const result = handler.callback.apply(null, args); - if (returnFirstArg) { - args[0] = result; - } - hookInfo.currentIndex++; - } - hooksStore.__current.pop(); - if (returnFirstArg) { - return args[0]; - } - return undefined; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createRunHook); -//# sourceMappingURL=createRunHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/index.js": -/*!************************************************************************************************!*\ - !*** ./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/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 */ actions: () => (/* binding */ actions), -/* harmony export */ addAction: () => (/* binding */ addAction), -/* harmony export */ addFilter: () => (/* binding */ addFilter), -/* harmony export */ applyFilters: () => (/* binding */ applyFilters), -/* harmony export */ createHooks: () => (/* reexport safe */ _createHooks__WEBPACK_IMPORTED_MODULE_0__["default"]), -/* harmony export */ currentAction: () => (/* binding */ currentAction), -/* harmony export */ currentFilter: () => (/* binding */ currentFilter), -/* harmony export */ defaultHooks: () => (/* binding */ defaultHooks), -/* harmony export */ didAction: () => (/* binding */ didAction), -/* harmony export */ didFilter: () => (/* binding */ didFilter), -/* harmony export */ doAction: () => (/* binding */ doAction), -/* harmony export */ doingAction: () => (/* binding */ doingAction), -/* harmony export */ doingFilter: () => (/* binding */ doingFilter), -/* harmony export */ filters: () => (/* binding */ filters), -/* harmony export */ hasAction: () => (/* binding */ hasAction), -/* harmony export */ hasFilter: () => (/* binding */ hasFilter), -/* harmony export */ removeAction: () => (/* binding */ removeAction), -/* harmony export */ removeAllActions: () => (/* binding */ removeAllActions), -/* harmony export */ removeAllFilters: () => (/* binding */ removeAllFilters), -/* harmony export */ removeFilter: () => (/* binding */ removeFilter) -/* harmony export */ }); -/* harmony import */ var _createHooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createHooks */ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/createHooks.js"); -/** - * Internal dependencies - */ - - -/** @typedef {(...args: any[])=>any} Callback */ - -/** - * @typedef Handler - * @property {Callback} callback The callback - * @property {string} namespace The namespace - * @property {number} priority The namespace - */ - -/** - * @typedef Hook - * @property {Handler[]} handlers Array of handlers - * @property {number} runs Run counter - */ - -/** - * @typedef Current - * @property {string} name Hook name - * @property {number} currentIndex The index - */ - -/** - * @typedef {Record & {__current: Current[]}} Store - */ - -/** - * @typedef {'actions' | 'filters'} StoreKey - */ - -/** - * @typedef {import('./createHooks').Hooks} Hooks - */ - -const defaultHooks = (0,_createHooks__WEBPACK_IMPORTED_MODULE_0__["default"])(); -const { - addAction, - addFilter, - removeAction, - removeFilter, - hasAction, - hasFilter, - removeAllActions, - removeAllFilters, - doAction, - applyFilters, - currentAction, - currentFilter, - doingAction, - doingFilter, - didAction, - didFilter, - actions, - filters -} = defaultHooks; - -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/validateHookName.js": -/*!***********************************************************************************************************!*\ - !*** ./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/validateHookName.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 */ }); -/** - * Validate a hookName string. - * - * @param {string} hookName The hook name to validate. Should be a non empty string containing - * only numbers, letters, dashes, periods and underscores. Also, - * the hook name cannot begin with `__`. - * - * @return {boolean} Whether the hook name is valid. - */ -function validateHookName(hookName) { - if ('string' !== typeof hookName || '' === hookName) { - // eslint-disable-next-line no-console - console.error('The hook name must be a non-empty string.'); - return false; - } - if (/^__/.test(hookName)) { - // eslint-disable-next-line no-console - console.error('The hook name cannot begin with `__`.'); - return false; - } - if (!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(hookName)) { - // eslint-disable-next-line no-console - console.error('The hook name can only contain numbers, letters, dashes, periods and underscores.'); - return false; - } - return true; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validateHookName); -//# sourceMappingURL=validateHookName.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/validateNamespace.js": -/*!************************************************************************************************************!*\ - !*** ./node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks/build-module/validateNamespace.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 */ }); -/** - * Validate a namespace string. - * - * @param {string} namespace The namespace to validate - should take the form - * `vendor/plugin/function`. - * - * @return {boolean} Whether the namespace is valid. - */ -function validateNamespace(namespace) { - if ('string' !== typeof namespace || '' === namespace) { - // eslint-disable-next-line no-console - console.error('The namespace must be a non-empty string.'); - return false; - } - if (!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(namespace)) { - // eslint-disable-next-line no-console - console.error('The namespace can only contain numbers, letters, dashes, periods, underscores and slashes.'); - return false; - } - return true; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validateNamespace); -//# sourceMappingURL=validateNamespace.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createAddHook.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createAddHook.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 _validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateNamespace.js */ "./node_modules/@wordpress/hooks/build-module/validateNamespace.js"); -/* harmony import */ var _validateHookName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./validateHookName.js */ "./node_modules/@wordpress/hooks/build-module/validateHookName.js"); -/** - * Internal dependencies - */ - - - -/** - * @callback AddHook - * - * Adds the hook to the appropriate hooks container. - * - * @param {string} hookName Name of hook to add - * @param {string} namespace The unique namespace identifying the callback in the form `vendor/plugin/function`. - * @param {import('.').Callback} callback Function to call when the hook is run - * @param {number} [priority=10] Priority of this hook - */ - -/** - * Returns a function which, when invoked, will add a hook. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * - * @return {AddHook} Function that adds a new hook. - */ -function createAddHook(hooks, storeKey) { - return function addHook(hookName, namespace, callback, priority = 10) { - const hooksStore = hooks[storeKey]; - if (!(0,_validateHookName_js__WEBPACK_IMPORTED_MODULE_1__["default"])(hookName)) { - return; - } - if (!(0,_validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__["default"])(namespace)) { - return; - } - if ('function' !== typeof callback) { - // eslint-disable-next-line no-console - console.error('The hook callback must be a function.'); - return; - } - - // Validate numeric priority - if ('number' !== typeof priority) { - // eslint-disable-next-line no-console - console.error('If specified, the hook priority must be a number.'); - return; - } - const handler = { - callback, - priority, - namespace - }; - if (hooksStore[hookName]) { - // Find the correct insert index of the new hook. - const handlers = hooksStore[hookName].handlers; - - /** @type {number} */ - let i; - for (i = handlers.length; i > 0; i--) { - if (priority >= handlers[i - 1].priority) { - break; - } - } - if (i === handlers.length) { - // If append, operate via direct assignment. - handlers[i] = handler; - } else { - // Otherwise, insert before index via splice. - handlers.splice(i, 0, handler); - } - - // We may also be currently executing this hook. If the callback - // we're adding would come after the current callback, there's no - // problem; otherwise we need to increase the execution index of - // any other runs by 1 to account for the added element. - hooksStore.__current.forEach(hookInfo => { - if (hookInfo.name === hookName && hookInfo.currentIndex >= i) { - hookInfo.currentIndex++; - } - }); - } else { - // This is the first hook of its type. - hooksStore[hookName] = { - handlers: [handler], - runs: 0 - }; - } - if (hookName !== 'hookAdded') { - hooks.doAction('hookAdded', hookName, namespace, callback, priority); - } - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createAddHook); -//# sourceMappingURL=createAddHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createCurrentHook.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createCurrentHook.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 a function which, when invoked, will return the name of the - * currently running hook, or `null` if no hook of the given type is currently - * running. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * - * @return {() => string | null} Function that returns the current hook name or null. - */ -function createCurrentHook(hooks, storeKey) { - return function currentHook() { - var _hooksStore$__current; - const hooksStore = hooks[storeKey]; - return (_hooksStore$__current = hooksStore.__current[hooksStore.__current.length - 1]?.name) !== null && _hooksStore$__current !== void 0 ? _hooksStore$__current : null; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createCurrentHook); -//# sourceMappingURL=createCurrentHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createDidHook.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createDidHook.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 _validateHookName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateHookName.js */ "./node_modules/@wordpress/hooks/build-module/validateHookName.js"); -/** - * Internal dependencies - */ - - -/** - * @callback DidHook - * - * Returns the number of times an action has been fired. - * - * @param {string} hookName The hook name to check. - * - * @return {number | undefined} The number of times the hook has run. - */ - -/** - * Returns a function which, when invoked, will return the number of times a - * hook has been called. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * - * @return {DidHook} Function that returns a hook's call count. - */ -function createDidHook(hooks, storeKey) { - return function didHook(hookName) { - const hooksStore = hooks[storeKey]; - if (!(0,_validateHookName_js__WEBPACK_IMPORTED_MODULE_0__["default"])(hookName)) { - return; - } - return hooksStore[hookName] && hooksStore[hookName].runs ? hooksStore[hookName].runs : 0; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createDidHook); -//# sourceMappingURL=createDidHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createDoingHook.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createDoingHook.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 */ }); -/** - * @callback DoingHook - * Returns whether a hook is currently being executed. - * - * @param {string} [hookName] The name of the hook to check for. If - * omitted, will check for any hook being executed. - * - * @return {boolean} Whether the hook is being executed. - */ - -/** - * Returns a function which, when invoked, will return whether a hook is - * currently being executed. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * - * @return {DoingHook} Function that returns whether a hook is currently - * being executed. - */ -function createDoingHook(hooks, storeKey) { - return function doingHook(hookName) { - const hooksStore = hooks[storeKey]; - - // If the hookName was not passed, check for any current hook. - if ('undefined' === typeof hookName) { - return 'undefined' !== typeof hooksStore.__current[0]; - } - - // Return the __current hook. - return hooksStore.__current[0] ? hookName === hooksStore.__current[0].name : false; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createDoingHook); -//# sourceMappingURL=createDoingHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createHasHook.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createHasHook.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 */ }); -/** - * @callback HasHook - * - * Returns whether any handlers are attached for the given hookName and optional namespace. - * - * @param {string} hookName The name of the hook to check for. - * @param {string} [namespace] Optional. The unique namespace identifying the callback - * in the form `vendor/plugin/function`. - * - * @return {boolean} Whether there are handlers that are attached to the given hook. - */ -/** - * Returns a function which, when invoked, will return whether any handlers are - * attached to a particular hook. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * - * @return {HasHook} Function that returns whether any handlers are - * attached to a particular hook and optional namespace. - */ -function createHasHook(hooks, storeKey) { - return function hasHook(hookName, namespace) { - const hooksStore = hooks[storeKey]; - - // Use the namespace if provided. - if ('undefined' !== typeof namespace) { - return hookName in hooksStore && hooksStore[hookName].handlers.some(hook => hook.namespace === namespace); - } - return hookName in hooksStore; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createHasHook); -//# sourceMappingURL=createHasHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createHooks.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createHooks.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ _Hooks: () => (/* binding */ _Hooks), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _createAddHook__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createAddHook */ "./node_modules/@wordpress/hooks/build-module/createAddHook.js"); -/* harmony import */ var _createRemoveHook__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createRemoveHook */ "./node_modules/@wordpress/hooks/build-module/createRemoveHook.js"); -/* harmony import */ var _createHasHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createHasHook */ "./node_modules/@wordpress/hooks/build-module/createHasHook.js"); -/* harmony import */ var _createRunHook__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createRunHook */ "./node_modules/@wordpress/hooks/build-module/createRunHook.js"); -/* harmony import */ var _createCurrentHook__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./createCurrentHook */ "./node_modules/@wordpress/hooks/build-module/createCurrentHook.js"); -/* harmony import */ var _createDoingHook__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createDoingHook */ "./node_modules/@wordpress/hooks/build-module/createDoingHook.js"); -/* harmony import */ var _createDidHook__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./createDidHook */ "./node_modules/@wordpress/hooks/build-module/createDidHook.js"); -/** - * Internal dependencies - */ - - - - - - - - -/** - * Internal class for constructing hooks. Use `createHooks()` function - * - * Note, it is necessary to expose this class to make its type public. - * - * @private - */ -class _Hooks { - constructor() { - /** @type {import('.').Store} actions */ - this.actions = Object.create(null); - this.actions.__current = []; - - /** @type {import('.').Store} filters */ - this.filters = Object.create(null); - this.filters.__current = []; - this.addAction = (0,_createAddHook__WEBPACK_IMPORTED_MODULE_0__["default"])(this, 'actions'); - this.addFilter = (0,_createAddHook__WEBPACK_IMPORTED_MODULE_0__["default"])(this, 'filters'); - this.removeAction = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__["default"])(this, 'actions'); - this.removeFilter = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__["default"])(this, 'filters'); - this.hasAction = (0,_createHasHook__WEBPACK_IMPORTED_MODULE_2__["default"])(this, 'actions'); - this.hasFilter = (0,_createHasHook__WEBPACK_IMPORTED_MODULE_2__["default"])(this, 'filters'); - this.removeAllActions = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__["default"])(this, 'actions', true); - this.removeAllFilters = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__["default"])(this, 'filters', true); - this.doAction = (0,_createRunHook__WEBPACK_IMPORTED_MODULE_3__["default"])(this, 'actions'); - this.applyFilters = (0,_createRunHook__WEBPACK_IMPORTED_MODULE_3__["default"])(this, 'filters', true); - this.currentAction = (0,_createCurrentHook__WEBPACK_IMPORTED_MODULE_4__["default"])(this, 'actions'); - this.currentFilter = (0,_createCurrentHook__WEBPACK_IMPORTED_MODULE_4__["default"])(this, 'filters'); - this.doingAction = (0,_createDoingHook__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'actions'); - this.doingFilter = (0,_createDoingHook__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'filters'); - this.didAction = (0,_createDidHook__WEBPACK_IMPORTED_MODULE_6__["default"])(this, 'actions'); - this.didFilter = (0,_createDidHook__WEBPACK_IMPORTED_MODULE_6__["default"])(this, 'filters'); - } -} - -/** @typedef {_Hooks} Hooks */ - -/** - * Returns an instance of the hooks object. - * - * @return {Hooks} A Hooks instance. - */ -function createHooks() { - return new _Hooks(); -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createHooks); -//# sourceMappingURL=createHooks.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createRemoveHook.js": -/*!************************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createRemoveHook.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 _validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateNamespace.js */ "./node_modules/@wordpress/hooks/build-module/validateNamespace.js"); -/* harmony import */ var _validateHookName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./validateHookName.js */ "./node_modules/@wordpress/hooks/build-module/validateHookName.js"); -/** - * Internal dependencies - */ - - - -/** - * @callback RemoveHook - * Removes the specified callback (or all callbacks) from the hook with a given hookName - * and namespace. - * - * @param {string} hookName The name of the hook to modify. - * @param {string} namespace The unique namespace identifying the callback in the - * form `vendor/plugin/function`. - * - * @return {number | undefined} The number of callbacks removed. - */ - -/** - * Returns a function which, when invoked, will remove a specified hook or all - * hooks by the given name. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * @param {boolean} [removeAll=false] Whether to remove all callbacks for a hookName, - * without regard to namespace. Used to create - * `removeAll*` functions. - * - * @return {RemoveHook} Function that removes hooks. - */ -function createRemoveHook(hooks, storeKey, removeAll = false) { - return function removeHook(hookName, namespace) { - const hooksStore = hooks[storeKey]; - if (!(0,_validateHookName_js__WEBPACK_IMPORTED_MODULE_1__["default"])(hookName)) { - return; - } - if (!removeAll && !(0,_validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__["default"])(namespace)) { - return; - } - - // Bail if no hooks exist by this name. - if (!hooksStore[hookName]) { - return 0; - } - let handlersRemoved = 0; - if (removeAll) { - handlersRemoved = hooksStore[hookName].handlers.length; - hooksStore[hookName] = { - runs: hooksStore[hookName].runs, - handlers: [] - }; - } else { - // Try to find the specified callback to remove. - const handlers = hooksStore[hookName].handlers; - for (let i = handlers.length - 1; i >= 0; i--) { - if (handlers[i].namespace === namespace) { - handlers.splice(i, 1); - handlersRemoved++; - // This callback may also be part of a hook that is - // currently executing. If the callback we're removing - // comes after the current callback, there's no problem; - // otherwise we need to decrease the execution index of any - // other runs by 1 to account for the removed element. - hooksStore.__current.forEach(hookInfo => { - if (hookInfo.name === hookName && hookInfo.currentIndex >= i) { - hookInfo.currentIndex--; - } - }); - } - } - } - if (hookName !== 'hookRemoved') { - hooks.doAction('hookRemoved', hookName, namespace); - } - return handlersRemoved; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createRemoveHook); -//# sourceMappingURL=createRemoveHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createRunHook.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createRunHook.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 a function which, when invoked, will execute all callbacks - * registered to a hook of the specified type, optionally returning the final - * value of the call chain. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * @param {boolean} [returnFirstArg=false] Whether each hook callback is expected to - * return its first argument. - * - * @return {(hookName:string, ...args: unknown[]) => undefined|unknown} Function that runs hook callbacks. - */ -function createRunHook(hooks, storeKey, returnFirstArg = false) { - return function runHooks(hookName, ...args) { - const hooksStore = hooks[storeKey]; - if (!hooksStore[hookName]) { - hooksStore[hookName] = { - handlers: [], - runs: 0 - }; - } - hooksStore[hookName].runs++; - const handlers = hooksStore[hookName].handlers; - - // The following code is stripped from production builds. - if (true) { - // Handle any 'all' hooks registered. - if ('hookAdded' !== hookName && hooksStore.all) { - handlers.push(...hooksStore.all.handlers); - } - } - if (!handlers || !handlers.length) { - return returnFirstArg ? args[0] : undefined; - } - const hookInfo = { - name: hookName, - currentIndex: 0 - }; - hooksStore.__current.push(hookInfo); - while (hookInfo.currentIndex < handlers.length) { - const handler = handlers[hookInfo.currentIndex]; - const result = handler.callback.apply(null, args); - if (returnFirstArg) { - args[0] = result; - } - hookInfo.currentIndex++; - } - hooksStore.__current.pop(); - if (returnFirstArg) { - return args[0]; - } - return undefined; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createRunHook); -//# sourceMappingURL=createRunHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/index.js": -/*!*************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/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 */ actions: () => (/* binding */ actions), -/* harmony export */ addAction: () => (/* binding */ addAction), -/* harmony export */ addFilter: () => (/* binding */ addFilter), -/* harmony export */ applyFilters: () => (/* binding */ applyFilters), -/* harmony export */ createHooks: () => (/* reexport safe */ _createHooks__WEBPACK_IMPORTED_MODULE_0__["default"]), -/* harmony export */ currentAction: () => (/* binding */ currentAction), -/* harmony export */ currentFilter: () => (/* binding */ currentFilter), -/* harmony export */ defaultHooks: () => (/* binding */ defaultHooks), -/* harmony export */ didAction: () => (/* binding */ didAction), -/* harmony export */ didFilter: () => (/* binding */ didFilter), -/* harmony export */ doAction: () => (/* binding */ doAction), -/* harmony export */ doingAction: () => (/* binding */ doingAction), -/* harmony export */ doingFilter: () => (/* binding */ doingFilter), -/* harmony export */ filters: () => (/* binding */ filters), -/* harmony export */ hasAction: () => (/* binding */ hasAction), -/* harmony export */ hasFilter: () => (/* binding */ hasFilter), -/* harmony export */ removeAction: () => (/* binding */ removeAction), -/* harmony export */ removeAllActions: () => (/* binding */ removeAllActions), -/* harmony export */ removeAllFilters: () => (/* binding */ removeAllFilters), -/* harmony export */ removeFilter: () => (/* binding */ removeFilter) -/* harmony export */ }); -/* harmony import */ var _createHooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createHooks */ "./node_modules/@wordpress/hooks/build-module/createHooks.js"); -/** - * Internal dependencies - */ - - -/** @typedef {(...args: any[])=>any} Callback */ - -/** - * @typedef Handler - * @property {Callback} callback The callback - * @property {string} namespace The namespace - * @property {number} priority The namespace - */ - -/** - * @typedef Hook - * @property {Handler[]} handlers Array of handlers - * @property {number} runs Run counter - */ - -/** - * @typedef Current - * @property {string} name Hook name - * @property {number} currentIndex The index - */ - -/** - * @typedef {Record & {__current: Current[]}} Store - */ - -/** - * @typedef {'actions' | 'filters'} StoreKey - */ - -/** - * @typedef {import('./createHooks').Hooks} Hooks - */ - -const defaultHooks = (0,_createHooks__WEBPACK_IMPORTED_MODULE_0__["default"])(); -const { - addAction, - addFilter, - removeAction, - removeFilter, - hasAction, - hasFilter, - removeAllActions, - removeAllFilters, - doAction, - applyFilters, - currentAction, - currentFilter, - doingAction, - doingFilter, - didAction, - didFilter, - actions, - filters -} = defaultHooks; - -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/validateHookName.js": -/*!************************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/validateHookName.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 */ }); -/** - * Validate a hookName string. - * - * @param {string} hookName The hook name to validate. Should be a non empty string containing - * only numbers, letters, dashes, periods and underscores. Also, - * the hook name cannot begin with `__`. - * - * @return {boolean} Whether the hook name is valid. - */ -function validateHookName(hookName) { - if ('string' !== typeof hookName || '' === hookName) { - // eslint-disable-next-line no-console - console.error('The hook name must be a non-empty string.'); - return false; - } - if (/^__/.test(hookName)) { - // eslint-disable-next-line no-console - console.error('The hook name cannot begin with `__`.'); - return false; - } - if (!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(hookName)) { - // eslint-disable-next-line no-console - console.error('The hook name can only contain numbers, letters, dashes, periods and underscores.'); - return false; - } - return true; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validateHookName); -//# sourceMappingURL=validateHookName.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/validateNamespace.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/validateNamespace.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 */ }); -/** - * Validate a namespace string. - * - * @param {string} namespace The namespace to validate - should take the form - * `vendor/plugin/function`. - * - * @return {boolean} Whether the namespace is valid. - */ -function validateNamespace(namespace) { - if ('string' !== typeof namespace || '' === namespace) { - // eslint-disable-next-line no-console - console.error('The namespace must be a non-empty string.'); - return false; - } - if (!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(namespace)) { - // eslint-disable-next-line no-console - console.error('The namespace can only contain numbers, letters, dashes, periods, underscores and slashes.'); - return false; - } - return true; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validateNamespace); -//# sourceMappingURL=validateNamespace.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/i18n/build-module/create-i18n.js": -/*!******************************************************************!*\ - !*** ./node_modules/@wordpress/i18n/build-module/create-i18n.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createI18n: () => (/* binding */ createI18n) -/* harmony export */ }); -/* harmony import */ var tannin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tannin */ "./node_modules/tannin/index.js"); -/** - * External dependencies - */ - - -/** - * @typedef {Record} LocaleData - */ - -/** - * Default locale data to use for Tannin domain when not otherwise provided. - * Assumes an English plural forms expression. - * - * @type {LocaleData} - */ -const DEFAULT_LOCALE_DATA = { - '': { - /** @param {number} n */ - plural_forms(n) { - return n === 1 ? 0 : 1; - } - } -}; - -/* - * Regular expression that matches i18n hooks like `i18n.gettext`, `i18n.ngettext`, - * `i18n.gettext_domain` or `i18n.ngettext_with_context` or `i18n.has_translation`. - */ -const I18N_HOOK_REGEXP = /^i18n\.(n?gettext|has_translation)(_|$)/; - -/** - * @typedef {(domain?: string) => LocaleData} GetLocaleData - * - * Returns locale data by domain in a - * Jed-formatted JSON object shape. - * - * @see http://messageformat.github.io/Jed/ - */ -/** - * @typedef {(data?: LocaleData, domain?: string) => void} SetLocaleData - * - * Merges locale data into the Tannin instance by domain. Note that this - * function will overwrite the domain configuration. Accepts data in a - * Jed-formatted JSON object shape. - * - * @see http://messageformat.github.io/Jed/ - */ -/** - * @typedef {(data?: LocaleData, domain?: string) => void} AddLocaleData - * - * Merges locale data into the Tannin instance by domain. Note that this - * function will also merge the domain configuration. Accepts data in a - * Jed-formatted JSON object shape. - * - * @see http://messageformat.github.io/Jed/ - */ -/** - * @typedef {(data?: LocaleData, domain?: string) => void} ResetLocaleData - * - * Resets all current Tannin instance locale data and sets the specified - * locale data for the domain. Accepts data in a Jed-formatted JSON object shape. - * - * @see http://messageformat.github.io/Jed/ - */ -/** @typedef {() => void} SubscribeCallback */ -/** @typedef {() => void} UnsubscribeCallback */ -/** - * @typedef {(callback: SubscribeCallback) => UnsubscribeCallback} Subscribe - * - * Subscribes to changes of locale data - */ -/** - * @typedef {(domain?: string) => string} GetFilterDomain - * Retrieve the domain to use when calling domain-specific filters. - */ -/** - * @typedef {(text: string, domain?: string) => string} __ - * - * Retrieve the translation of text. - * - * @see https://developer.wordpress.org/reference/functions/__/ - */ -/** - * @typedef {(text: string, context: string, domain?: string) => string} _x - * - * Retrieve translated string with gettext context. - * - * @see https://developer.wordpress.org/reference/functions/_x/ - */ -/** - * @typedef {(single: string, plural: string, number: number, domain?: string) => string} _n - * - * Translates and retrieves the singular or plural form based on the supplied - * number. - * - * @see https://developer.wordpress.org/reference/functions/_n/ - */ -/** - * @typedef {(single: string, plural: string, number: number, context: string, domain?: string) => string} _nx - * - * Translates and retrieves the singular or plural form based on the supplied - * number, with gettext context. - * - * @see https://developer.wordpress.org/reference/functions/_nx/ - */ -/** - * @typedef {() => boolean} IsRtl - * - * Check if current locale is RTL. - * - * **RTL (Right To Left)** is a locale property indicating that text is written from right to left. - * For example, the `he` locale (for Hebrew) specifies right-to-left. Arabic (ar) is another common - * language written RTL. The opposite of RTL, LTR (Left To Right) is used in other languages, - * including English (`en`, `en-US`, `en-GB`, etc.), Spanish (`es`), and French (`fr`). - */ -/** - * @typedef {(single: string, context?: string, domain?: string) => boolean} HasTranslation - * - * Check if there is a translation for a given string in singular form. - */ -/** @typedef {import('@wordpress/hooks').Hooks} Hooks */ - -/** - * An i18n instance - * - * @typedef I18n - * @property {GetLocaleData} getLocaleData Returns locale data by domain in a Jed-formatted JSON object shape. - * @property {SetLocaleData} setLocaleData Merges locale data into the Tannin instance by domain. Note that this - * function will overwrite the domain configuration. Accepts data in a - * Jed-formatted JSON object shape. - * @property {AddLocaleData} addLocaleData Merges locale data into the Tannin instance by domain. Note that this - * function will also merge the domain configuration. Accepts data in a - * Jed-formatted JSON object shape. - * @property {ResetLocaleData} resetLocaleData Resets all current Tannin instance locale data and sets the specified - * locale data for the domain. Accepts data in a Jed-formatted JSON object shape. - * @property {Subscribe} subscribe Subscribes to changes of Tannin locale data. - * @property {__} __ Retrieve the translation of text. - * @property {_x} _x Retrieve translated string with gettext context. - * @property {_n} _n Translates and retrieves the singular or plural form based on the supplied - * number. - * @property {_nx} _nx Translates and retrieves the singular or plural form based on the supplied - * number, with gettext context. - * @property {IsRtl} isRTL Check if current locale is RTL. - * @property {HasTranslation} hasTranslation Check if there is a translation for a given string. - */ - -/** - * Create an i18n instance - * - * @param {LocaleData} [initialData] Locale data configuration. - * @param {string} [initialDomain] Domain for which configuration applies. - * @param {Hooks} [hooks] Hooks implementation. - * - * @return {I18n} I18n instance. - */ -const createI18n = (initialData, initialDomain, hooks) => { - /** - * The underlying instance of Tannin to which exported functions interface. - * - * @type {Tannin} - */ - const tannin = new tannin__WEBPACK_IMPORTED_MODULE_0__["default"]({}); - const listeners = new Set(); - const notifyListeners = () => { - listeners.forEach(listener => listener()); - }; - - /** - * Subscribe to changes of locale data. - * - * @param {SubscribeCallback} callback Subscription callback. - * @return {UnsubscribeCallback} Unsubscribe callback. - */ - const subscribe = callback => { - listeners.add(callback); - return () => listeners.delete(callback); - }; - - /** @type {GetLocaleData} */ - const getLocaleData = (domain = 'default') => tannin.data[domain]; - - /** - * @param {LocaleData} [data] - * @param {string} [domain] - */ - const doSetLocaleData = (data, domain = 'default') => { - tannin.data[domain] = { - ...tannin.data[domain], - ...data - }; - - // Populate default domain configuration (supported locale date which omits - // a plural forms expression). - tannin.data[domain][''] = { - ...DEFAULT_LOCALE_DATA[''], - ...tannin.data[domain]?.[''] - }; - - // Clean up cached plural forms functions cache as it might be updated. - delete tannin.pluralForms[domain]; - }; - - /** @type {SetLocaleData} */ - const setLocaleData = (data, domain) => { - doSetLocaleData(data, domain); - notifyListeners(); - }; - - /** @type {AddLocaleData} */ - const addLocaleData = (data, domain = 'default') => { - tannin.data[domain] = { - ...tannin.data[domain], - ...data, - // Populate default domain configuration (supported locale date which omits - // a plural forms expression). - '': { - ...DEFAULT_LOCALE_DATA[''], - ...tannin.data[domain]?.[''], - ...data?.[''] - } - }; - - // Clean up cached plural forms functions cache as it might be updated. - delete tannin.pluralForms[domain]; - notifyListeners(); - }; - - /** @type {ResetLocaleData} */ - const resetLocaleData = (data, domain) => { - // Reset all current Tannin locale data. - tannin.data = {}; - - // Reset cached plural forms functions cache. - tannin.pluralForms = {}; - setLocaleData(data, domain); - }; - - /** - * Wrapper for Tannin's `dcnpgettext`. Populates default locale data if not - * otherwise previously assigned. - * - * @param {string|undefined} domain Domain to retrieve the translated text. - * @param {string|undefined} context Context information for the translators. - * @param {string} single Text to translate if non-plural. Used as - * fallback return value on a caught error. - * @param {string} [plural] The text to be used if the number is - * plural. - * @param {number} [number] The number to compare against to use - * either the singular or plural form. - * - * @return {string} The translated string. - */ - const dcnpgettext = (domain = 'default', context, single, plural, number) => { - if (!tannin.data[domain]) { - // Use `doSetLocaleData` to set silently, without notifying listeners. - doSetLocaleData(undefined, domain); - } - return tannin.dcnpgettext(domain, context, single, plural, number); - }; - - /** @type {GetFilterDomain} */ - const getFilterDomain = (domain = 'default') => domain; - - /** @type {__} */ - const __ = (text, domain) => { - let translation = dcnpgettext(domain, undefined, text); - if (!hooks) { - return translation; - } - - /** - * Filters text with its translation. - * - * @param {string} translation Translated text. - * @param {string} text Text to translate. - * @param {string} domain Text domain. Unique identifier for retrieving translated strings. - */ - translation = /** @type {string} */ - /** @type {*} */hooks.applyFilters('i18n.gettext', translation, text, domain); - return /** @type {string} */( - /** @type {*} */hooks.applyFilters('i18n.gettext_' + getFilterDomain(domain), translation, text, domain) - ); - }; - - /** @type {_x} */ - const _x = (text, context, domain) => { - let translation = dcnpgettext(domain, context, text); - if (!hooks) { - return translation; - } - - /** - * Filters text with its translation based on context information. - * - * @param {string} translation Translated text. - * @param {string} text Text to translate. - * @param {string} context Context information for the translators. - * @param {string} domain Text domain. Unique identifier for retrieving translated strings. - */ - translation = /** @type {string} */ - /** @type {*} */hooks.applyFilters('i18n.gettext_with_context', translation, text, context, domain); - return /** @type {string} */( - /** @type {*} */hooks.applyFilters('i18n.gettext_with_context_' + getFilterDomain(domain), translation, text, context, domain) - ); - }; - - /** @type {_n} */ - const _n = (single, plural, number, domain) => { - let translation = dcnpgettext(domain, undefined, single, plural, number); - if (!hooks) { - return translation; - } - - /** - * Filters the singular or plural form of a string. - * - * @param {string} translation Translated text. - * @param {string} single The text to be used if the number is singular. - * @param {string} plural The text to be used if the number is plural. - * @param {string} number The number to compare against to use either the singular or plural form. - * @param {string} domain Text domain. Unique identifier for retrieving translated strings. - */ - translation = /** @type {string} */ - /** @type {*} */hooks.applyFilters('i18n.ngettext', translation, single, plural, number, domain); - return /** @type {string} */( - /** @type {*} */hooks.applyFilters('i18n.ngettext_' + getFilterDomain(domain), translation, single, plural, number, domain) - ); - }; - - /** @type {_nx} */ - const _nx = (single, plural, number, context, domain) => { - let translation = dcnpgettext(domain, context, single, plural, number); - if (!hooks) { - return translation; - } - - /** - * Filters the singular or plural form of a string with gettext context. - * - * @param {string} translation Translated text. - * @param {string} single The text to be used if the number is singular. - * @param {string} plural The text to be used if the number is plural. - * @param {string} number The number to compare against to use either the singular or plural form. - * @param {string} context Context information for the translators. - * @param {string} domain Text domain. Unique identifier for retrieving translated strings. - */ - translation = /** @type {string} */ - /** @type {*} */hooks.applyFilters('i18n.ngettext_with_context', translation, single, plural, number, context, domain); - return /** @type {string} */( - /** @type {*} */hooks.applyFilters('i18n.ngettext_with_context_' + getFilterDomain(domain), translation, single, plural, number, context, domain) - ); - }; - - /** @type {IsRtl} */ - const isRTL = () => { - return 'rtl' === _x('ltr', 'text direction'); - }; - - /** @type {HasTranslation} */ - const hasTranslation = (single, context, domain) => { - const key = context ? context + '\u0004' + single : single; - let result = !!tannin.data?.[domain !== null && domain !== void 0 ? domain : 'default']?.[key]; - if (hooks) { - /** - * Filters the presence of a translation in the locale data. - * - * @param {boolean} hasTranslation Whether the translation is present or not.. - * @param {string} single The singular form of the translated text (used as key in locale data) - * @param {string} context Context information for the translators. - * @param {string} domain Text domain. Unique identifier for retrieving translated strings. - */ - result = /** @type { boolean } */ - /** @type {*} */hooks.applyFilters('i18n.has_translation', result, single, context, domain); - result = /** @type { boolean } */ - /** @type {*} */hooks.applyFilters('i18n.has_translation_' + getFilterDomain(domain), result, single, context, domain); - } - return result; - }; - if (initialData) { - setLocaleData(initialData, initialDomain); - } - if (hooks) { - /** - * @param {string} hookName - */ - const onHookAddedOrRemoved = hookName => { - if (I18N_HOOK_REGEXP.test(hookName)) { - notifyListeners(); - } - }; - hooks.addAction('hookAdded', 'core/i18n', onHookAddedOrRemoved); - hooks.addAction('hookRemoved', 'core/i18n', onHookAddedOrRemoved); - } - return { - getLocaleData, - setLocaleData, - addLocaleData, - resetLocaleData, - subscribe, - __, - _x, - _n, - _nx, - isRTL, - hasTranslation - }; -}; -//# sourceMappingURL=create-i18n.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/i18n/build-module/default-i18n.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@wordpress/i18n/build-module/default-i18n.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ __: () => (/* binding */ __), -/* harmony export */ _n: () => (/* binding */ _n), -/* harmony export */ _nx: () => (/* binding */ _nx), -/* harmony export */ _x: () => (/* binding */ _x), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ getLocaleData: () => (/* binding */ getLocaleData), -/* harmony export */ hasTranslation: () => (/* binding */ hasTranslation), -/* harmony export */ isRTL: () => (/* binding */ isRTL), -/* harmony export */ resetLocaleData: () => (/* binding */ resetLocaleData), -/* harmony export */ setLocaleData: () => (/* binding */ setLocaleData), -/* harmony export */ subscribe: () => (/* binding */ subscribe) -/* harmony export */ }); -/* harmony import */ var _create_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./create-i18n */ "./node_modules/@wordpress/i18n/build-module/create-i18n.js"); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/hooks */ "./node_modules/@wordpress/hooks/build-module/index.js"); -/** - * Internal dependencies - */ - - -/** - * WordPress dependencies - */ - -const i18n = (0,_create_i18n__WEBPACK_IMPORTED_MODULE_0__.createI18n)(undefined, undefined, _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.defaultHooks); - -/** - * Default, singleton instance of `I18n`. - */ -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (i18n); - -/* - * Comments in this file are duplicated from ./i18n due to - * https://github.com/WordPress/gutenberg/pull/20318#issuecomment-590837722 - */ - -/** - * @typedef {import('./create-i18n').LocaleData} LocaleData - * @typedef {import('./create-i18n').SubscribeCallback} SubscribeCallback - * @typedef {import('./create-i18n').UnsubscribeCallback} UnsubscribeCallback - */ - -/** - * Returns locale data by domain in a Jed-formatted JSON object shape. - * - * @see http://messageformat.github.io/Jed/ - * - * @param {string} [domain] Domain for which to get the data. - * @return {LocaleData} Locale data. - */ -const getLocaleData = i18n.getLocaleData.bind(i18n); - -/** - * Merges locale data into the Tannin instance by domain. Accepts data in a - * Jed-formatted JSON object shape. - * - * @see http://messageformat.github.io/Jed/ - * - * @param {LocaleData} [data] Locale data configuration. - * @param {string} [domain] Domain for which configuration applies. - */ -const setLocaleData = i18n.setLocaleData.bind(i18n); - -/** - * Resets all current Tannin instance locale data and sets the specified - * locale data for the domain. Accepts data in a Jed-formatted JSON object shape. - * - * @see http://messageformat.github.io/Jed/ - * - * @param {LocaleData} [data] Locale data configuration. - * @param {string} [domain] Domain for which configuration applies. - */ -const resetLocaleData = i18n.resetLocaleData.bind(i18n); - -/** - * Subscribes to changes of locale data - * - * @param {SubscribeCallback} callback Subscription callback - * @return {UnsubscribeCallback} Unsubscribe callback - */ -const subscribe = i18n.subscribe.bind(i18n); - -/** - * Retrieve the translation of text. - * - * @see https://developer.wordpress.org/reference/functions/__/ - * - * @param {string} text Text to translate. - * @param {string} [domain] Domain to retrieve the translated text. - * - * @return {string} Translated text. - */ -const __ = i18n.__.bind(i18n); - -/** - * Retrieve translated string with gettext context. - * - * @see https://developer.wordpress.org/reference/functions/_x/ - * - * @param {string} text Text to translate. - * @param {string} context Context information for the translators. - * @param {string} [domain] Domain to retrieve the translated text. - * - * @return {string} Translated context string without pipe. - */ -const _x = i18n._x.bind(i18n); - -/** - * Translates and retrieves the singular or plural form based on the supplied - * number. - * - * @see https://developer.wordpress.org/reference/functions/_n/ - * - * @param {string} single The text to be used if the number is singular. - * @param {string} plural The text to be used if the number is plural. - * @param {number} number The number to compare against to use either the - * singular or plural form. - * @param {string} [domain] Domain to retrieve the translated text. - * - * @return {string} The translated singular or plural form. - */ -const _n = i18n._n.bind(i18n); - -/** - * Translates and retrieves the singular or plural form based on the supplied - * number, with gettext context. - * - * @see https://developer.wordpress.org/reference/functions/_nx/ - * - * @param {string} single The text to be used if the number is singular. - * @param {string} plural The text to be used if the number is plural. - * @param {number} number The number to compare against to use either the - * singular or plural form. - * @param {string} context Context information for the translators. - * @param {string} [domain] Domain to retrieve the translated text. - * - * @return {string} The translated singular or plural form. - */ -const _nx = i18n._nx.bind(i18n); - -/** - * Check if current locale is RTL. - * - * **RTL (Right To Left)** is a locale property indicating that text is written from right to left. - * For example, the `he` locale (for Hebrew) specifies right-to-left. Arabic (ar) is another common - * language written RTL. The opposite of RTL, LTR (Left To Right) is used in other languages, - * including English (`en`, `en-US`, `en-GB`, etc.), Spanish (`es`), and French (`fr`). - * - * @return {boolean} Whether locale is RTL. - */ -const isRTL = i18n.isRTL.bind(i18n); - -/** - * Check if there is a translation for a given string (in singular form). - * - * @param {string} single Singular form of the string to look up. - * @param {string} [context] Context information for the translators. - * @param {string} [domain] Domain to retrieve the translated text. - * @return {boolean} Whether the translation exists or not. - */ -const hasTranslation = i18n.hasTranslation.bind(i18n); -//# sourceMappingURL=default-i18n.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/i18n/build-module/index.js": -/*!************************************************************!*\ - !*** ./node_modules/@wordpress/i18n/build-module/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 */ __: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__.__), -/* harmony export */ _n: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__._n), -/* harmony export */ _nx: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__._nx), -/* harmony export */ _x: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__._x), -/* harmony export */ createI18n: () => (/* reexport safe */ _create_i18n__WEBPACK_IMPORTED_MODULE_1__.createI18n), -/* harmony export */ defaultI18n: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__["default"]), -/* harmony export */ getLocaleData: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__.getLocaleData), -/* harmony export */ hasTranslation: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__.hasTranslation), -/* harmony export */ isRTL: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__.isRTL), -/* harmony export */ resetLocaleData: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__.resetLocaleData), -/* harmony export */ setLocaleData: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__.setLocaleData), -/* harmony export */ sprintf: () => (/* reexport safe */ _sprintf__WEBPACK_IMPORTED_MODULE_0__.sprintf), -/* harmony export */ subscribe: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__.subscribe) -/* harmony export */ }); -/* harmony import */ var _sprintf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sprintf */ "./node_modules/@wordpress/i18n/build-module/sprintf.js"); -/* harmony import */ var _create_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create-i18n */ "./node_modules/@wordpress/i18n/build-module/create-i18n.js"); -/* harmony import */ var _default_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./default-i18n */ "./node_modules/@wordpress/i18n/build-module/default-i18n.js"); - - - -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/i18n/build-module/sprintf.js": -/*!**************************************************************!*\ - !*** ./node_modules/@wordpress/i18n/build-module/sprintf.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ sprintf: () => (/* binding */ sprintf) -/* harmony export */ }); -/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! memize */ "./node_modules/memize/dist/index.js"); -/* harmony import */ var sprintf_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sprintf-js */ "./node_modules/sprintf-js/src/sprintf.js"); -/* harmony import */ var sprintf_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sprintf_js__WEBPACK_IMPORTED_MODULE_1__); -/** - * External dependencies - */ - - - -/** - * Log to console, once per message; or more precisely, per referentially equal - * argument set. Because Jed throws errors, we log these to the console instead - * to avoid crashing the application. - * - * @param {...*} args Arguments to pass to `console.error` - */ -const logErrorOnce = (0,memize__WEBPACK_IMPORTED_MODULE_0__["default"])(console.error); // eslint-disable-line no-console - -/** - * Returns a formatted string. If an error occurs in applying the format, the - * original format string is returned. - * - * @param {string} format The format of the string to generate. - * @param {...*} args Arguments to apply to the format. - * - * @see https://www.npmjs.com/package/sprintf-js - * - * @return {string} The formatted string. - */ -function sprintf(format, ...args) { - try { - return sprintf_js__WEBPACK_IMPORTED_MODULE_1___default().sprintf(format, ...args); - } catch (error) { - if (error instanceof Error) { - logErrorOnce('sprintf error: \n\n' + error.toString()); - } - return format; - } -} -//# sourceMappingURL=sprintf.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/is-shallow-equal/build-module/arrays.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@wordpress/is-shallow-equal/build-module/arrays.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 */ isShallowEqualArrays) -/* harmony export */ }); -/** - * Returns true if the two arrays are shallow equal, or false otherwise. - * - * @param {any[]} a First array to compare. - * @param {any[]} b Second array to compare. - * - * @return {boolean} Whether the two arrays are shallow equal. - */ -function isShallowEqualArrays(a, b) { - if (a === b) { - return true; - } - if (a.length !== b.length) { - return false; - } - for (let i = 0, len = a.length; i < len; i++) { - if (a[i] !== b[i]) { - return false; - } - } - return true; -} -//# sourceMappingURL=arrays.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/is-shallow-equal/build-module/index.js": -/*!************************************************************************!*\ - !*** ./node_modules/@wordpress/is-shallow-equal/build-module/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": () => (/* binding */ isShallowEqual), -/* harmony export */ isShallowEqualArrays: () => (/* reexport safe */ _arrays__WEBPACK_IMPORTED_MODULE_1__["default"]), -/* harmony export */ isShallowEqualObjects: () => (/* reexport safe */ _objects__WEBPACK_IMPORTED_MODULE_0__["default"]) -/* harmony export */ }); -/* harmony import */ var _objects__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./objects */ "./node_modules/@wordpress/is-shallow-equal/build-module/objects.js"); -/* harmony import */ var _arrays__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./arrays */ "./node_modules/@wordpress/is-shallow-equal/build-module/arrays.js"); -/** - * Internal dependencies - */ - - - - - -/** - * @typedef {Record} ComparableObject - */ - -/** - * Returns true if the two arrays or objects are shallow equal, or false - * otherwise. Also handles primitive values, just in case. - * - * @param {unknown} a First object or array to compare. - * @param {unknown} b Second object or array to compare. - * - * @return {boolean} Whether the two values are shallow equal. - */ -function isShallowEqual(a, b) { - if (a && b) { - if (a.constructor === Object && b.constructor === Object) { - return (0,_objects__WEBPACK_IMPORTED_MODULE_0__["default"])(a, b); - } else if (Array.isArray(a) && Array.isArray(b)) { - return (0,_arrays__WEBPACK_IMPORTED_MODULE_1__["default"])(a, b); - } - } - return a === b; -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/is-shallow-equal/build-module/objects.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@wordpress/is-shallow-equal/build-module/objects.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 */ isShallowEqualObjects) -/* harmony export */ }); -/** - * Returns true if the two objects are shallow equal, or false otherwise. - * - * @param {import('.').ComparableObject} a First object to compare. - * @param {import('.').ComparableObject} b Second object to compare. - * - * @return {boolean} Whether the two objects are shallow equal. - */ -function isShallowEqualObjects(a, b) { - if (a === b) { - return true; - } - const aKeys = Object.keys(a); - const bKeys = Object.keys(b); - if (aKeys.length !== bKeys.length) { - return false; - } - let i = 0; - while (i < aKeys.length) { - const key = aKeys[i]; - const aValue = a[key]; - if ( - // In iterating only the keys of the first object after verifying - // equal lengths, account for the case that an explicit `undefined` - // value in the first is implicitly undefined in the second. - // - // Example: isShallowEqualObjects( { a: undefined }, { b: 5 } ) - aValue === undefined && !b.hasOwnProperty(key) || aValue !== b[key]) { - return false; - } - i++; - } - return true; -} -//# sourceMappingURL=objects.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/build-module/api/index.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/build-module/api/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 */ getPlugin: () => (/* binding */ getPlugin), -/* harmony export */ getPlugins: () => (/* binding */ getPlugins), -/* harmony export */ registerPlugin: () => (/* binding */ registerPlugin), -/* harmony export */ unregisterPlugin: () => (/* binding */ unregisterPlugin) -/* harmony export */ }); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/hooks */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/index.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/icons/build-module/library/plugins.js"); -/* eslint no-console: [ 'error', { allow: [ 'error' ] } ] */ -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Defined behavior of a plugin type. - */ - -/** - * Plugin definitions keyed by plugin name. - */ -const plugins = {}; - -/** - * Registers a plugin to the editor. - * - * @param name A string identifying the plugin. Must be - * unique across all registered plugins. - * @param settings The settings for this plugin. - * - * @example - * ```js - * // Using ES5 syntax - * var el = React.createElement; - * var Fragment = wp.element.Fragment; - * var PluginSidebar = wp.editor.PluginSidebar; - * var PluginSidebarMoreMenuItem = wp.editor.PluginSidebarMoreMenuItem; - * var registerPlugin = wp.plugins.registerPlugin; - * var moreIcon = React.createElement( 'svg' ); //... svg element. - * - * function Component() { - * return el( - * Fragment, - * {}, - * el( - * PluginSidebarMoreMenuItem, - * { - * target: 'sidebar-name', - * }, - * 'My Sidebar' - * ), - * el( - * PluginSidebar, - * { - * name: 'sidebar-name', - * title: 'My Sidebar', - * }, - * 'Content of the sidebar' - * ) - * ); - * } - * registerPlugin( 'plugin-name', { - * icon: moreIcon, - * render: Component, - * scope: 'my-page', - * } ); - * ``` - * - * @example - * ```js - * // Using ESNext syntax - * import { PluginSidebar, PluginSidebarMoreMenuItem } from '@wordpress/editor'; - * import { registerPlugin } from '@wordpress/plugins'; - * import { more } from '@wordpress/icons'; - * - * const Component = () => ( - * <> - * - * My Sidebar - * - * - * Content of the sidebar - * - * - * ); - * - * registerPlugin( 'plugin-name', { - * icon: more, - * render: Component, - * scope: 'my-page', - * } ); - * ``` - * - * @return The final plugin settings object. - */ -function registerPlugin(name, settings) { - if (typeof settings !== 'object') { - console.error('No settings object provided!'); - return null; - } - if (typeof name !== 'string') { - console.error('Plugin name must be string.'); - return null; - } - if (!/^[a-z][a-z0-9-]*$/.test(name)) { - console.error('Plugin name must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-plugin".'); - return null; - } - if (plugins[name]) { - console.error(`Plugin "${name}" is already registered.`); - } - settings = (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__.applyFilters)('plugins.registerPlugin', settings, name); - const { - render, - scope - } = settings; - if (typeof render !== 'function') { - console.error('The "render" property must be specified and must be a valid function.'); - return null; - } - if (scope) { - if (typeof scope !== 'string') { - console.error('Plugin scope must be string.'); - return null; - } - if (!/^[a-z][a-z0-9-]*$/.test(scope)) { - console.error('Plugin scope must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-page".'); - return null; - } - } - plugins[name] = { - name, - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_1__["default"], - ...settings - }; - (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__.doAction)('plugins.pluginRegistered', settings, name); - return settings; -} - -/** - * Unregisters a plugin by name. - * - * @param name Plugin name. - * - * @example - * ```js - * // Using ES5 syntax - * var unregisterPlugin = wp.plugins.unregisterPlugin; - * - * unregisterPlugin( 'plugin-name' ); - * ``` - * - * @example - * ```js - * // Using ESNext syntax - * import { unregisterPlugin } from '@wordpress/plugins'; - * - * unregisterPlugin( 'plugin-name' ); - * ``` - * - * @return The previous plugin settings object, if it has been - * successfully unregistered; otherwise `undefined`. - */ -function unregisterPlugin(name) { - if (!plugins[name]) { - console.error('Plugin "' + name + '" is not registered.'); - return; - } - const oldPlugin = plugins[name]; - delete plugins[name]; - (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__.doAction)('plugins.pluginUnregistered', oldPlugin, name); - return oldPlugin; -} - -/** - * Returns a registered plugin settings. - * - * @param name Plugin name. - * - * @return Plugin setting. - */ -function getPlugin(name) { - return plugins[name]; -} - -/** - * Returns all registered plugins without a scope or for a given scope. - * - * @param scope The scope to be used when rendering inside - * a plugin area. No scope by default. - * - * @return The list of plugins without a scope or for a given scope. - */ -function getPlugins(scope) { - return Object.values(plugins).filter(plugin => plugin.scope === scope); -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/build-module/components/index.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/build-module/components/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 */ PluginArea: () => (/* reexport safe */ _plugin_area__WEBPACK_IMPORTED_MODULE_0__["default"]), -/* harmony export */ usePluginContext: () => (/* reexport safe */ _plugin_context__WEBPACK_IMPORTED_MODULE_1__.usePluginContext), -/* harmony export */ withPluginContext: () => (/* reexport safe */ _plugin_context__WEBPACK_IMPORTED_MODULE_1__.withPluginContext) -/* harmony export */ }); -/* harmony import */ var _plugin_area__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./plugin-area */ "./node_modules/@wordpress/plugins/build-module/components/plugin-area/index.js"); -/* harmony import */ var _plugin_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./plugin-context */ "./node_modules/@wordpress/plugins/build-module/components/plugin-context/index.js"); - - -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/build-module/components/plugin-area/index.js": -/*!**************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/build-module/components/plugin-area/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 memize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! memize */ "./node_modules/memize/dist/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/hooks */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/index.js"); -/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/is-shallow-equal */ "./node_modules/@wordpress/is-shallow-equal/build-module/index.js"); -/* harmony import */ var _plugin_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../plugin-context */ "./node_modules/@wordpress/plugins/build-module/components/plugin-context/index.js"); -/* harmony import */ var _plugin_error_boundary__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../plugin-error-boundary */ "./node_modules/@wordpress/plugins/build-module/components/plugin-error-boundary/index.js"); -/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../api */ "./node_modules/@wordpress/plugins/build-module/api/index.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - -const getPluginContext = (0,memize__WEBPACK_IMPORTED_MODULE_0__["default"])((icon, name) => ({ - icon, - name -})); - -/** - * A component that renders all plugin fills in a hidden div. - * - * @param props - * @param props.scope - * @param props.onError - * @example - * ```js - * // Using ES5 syntax - * var el = React.createElement; - * var PluginArea = wp.plugins.PluginArea; - * - * function Layout() { - * return el( - * 'div', - * { scope: 'my-page' }, - * 'Content of the page', - * PluginArea - * ); - * } - * ``` - * - * @example - * ```js - * // Using ESNext syntax - * import { PluginArea } from '@wordpress/plugins'; - * - * const Layout = () => ( - *
- * Content of the page - * - *
- * ); - * ``` - * - * @return {Component} The component to be rendered. - */ -function PluginArea({ - scope, - onError -}) { - const store = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.useMemo)(() => { - let lastValue = []; - return { - subscribe(listener) { - (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addAction)('plugins.pluginRegistered', 'core/plugins/plugin-area/plugins-registered', listener); - (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addAction)('plugins.pluginUnregistered', 'core/plugins/plugin-area/plugins-unregistered', listener); - return () => { - (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.removeAction)('plugins.pluginRegistered', 'core/plugins/plugin-area/plugins-registered'); - (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.removeAction)('plugins.pluginUnregistered', 'core/plugins/plugin-area/plugins-unregistered'); - }; - }, - getValue() { - const nextValue = (0,_api__WEBPACK_IMPORTED_MODULE_4__.getPlugins)(scope); - if (!(0,_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_7__["default"])(lastValue, nextValue)) { - lastValue = nextValue; - } - return lastValue; - } - }; - }, [scope]); - const plugins = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.useSyncExternalStore)(store.subscribe, store.getValue, store.getValue); - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", { - style: { - display: 'none' - }, - children: plugins.map(({ - icon, - name, - render: Plugin - }) => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_plugin_context__WEBPACK_IMPORTED_MODULE_2__.PluginContextProvider, { - value: getPluginContext(icon, name), - children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_plugin_error_boundary__WEBPACK_IMPORTED_MODULE_3__.PluginErrorBoundary, { - name: name, - onError: onError, - children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(Plugin, {}) - }) - }, name)) - }); -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PluginArea); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/build-module/components/plugin-context/index.js": -/*!*****************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/build-module/components/plugin-context/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 */ PluginContextProvider: () => (/* binding */ PluginContextProvider), -/* harmony export */ usePluginContext: () => (/* binding */ usePluginContext), -/* harmony export */ withPluginContext: () => (/* binding */ withPluginContext) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/compose */ "./node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/index.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - -const Context = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.createContext)({ - name: null, - icon: null -}); -const PluginContextProvider = Context.Provider; - -/** - * A hook that returns the plugin context. - * - * @return {PluginContext} Plugin context - */ -function usePluginContext() { - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useContext)(Context); -} - -/** - * A Higher Order Component used to inject Plugin context to the - * wrapped component. - * - * @param mapContextToProps Function called on every context change, - * expected to return object of props to - * merge with the component's own props. - * - * @return {Component} Enhanced component with injected context as props. - */ -const withPluginContext = mapContextToProps => (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__.createHigherOrderComponent)(OriginalComponent => { - return props => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Context.Consumer, { - children: context => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(OriginalComponent, { - ...props, - ...mapContextToProps(context, props) - }) - }); -}, 'withPluginContext'); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/build-module/components/plugin-error-boundary/index.js": -/*!************************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/build-module/components/plugin-error-boundary/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 */ PluginErrorBoundary: () => (/* binding */ PluginErrorBoundary) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/** - * WordPress dependencies - */ - -class PluginErrorBoundary extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component { - /** - * @param {Object} props - */ - constructor(props) { - super(props); - this.state = { - hasError: false - }; - } - static getDerivedStateFromError() { - return { - hasError: true - }; - } - - /** - * @param {Error} error Error object passed by React. - */ - componentDidCatch(error) { - const { - name, - onError - } = this.props; - if (onError) { - onError(name, error); - } - } - render() { - if (!this.state.hasError) { - return this.props.children; - } - return null; - } -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/build-module/index.js": -/*!***************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/build-module/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 */ PluginArea: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.PluginArea), -/* harmony export */ getPlugin: () => (/* reexport safe */ _api__WEBPACK_IMPORTED_MODULE_1__.getPlugin), -/* harmony export */ getPlugins: () => (/* reexport safe */ _api__WEBPACK_IMPORTED_MODULE_1__.getPlugins), -/* harmony export */ registerPlugin: () => (/* reexport safe */ _api__WEBPACK_IMPORTED_MODULE_1__.registerPlugin), -/* harmony export */ unregisterPlugin: () => (/* reexport safe */ _api__WEBPACK_IMPORTED_MODULE_1__.unregisterPlugin), -/* harmony export */ usePluginContext: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.usePluginContext), -/* harmony export */ withPluginContext: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.withPluginContext) -/* harmony export */ }); -/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components */ "./node_modules/@wordpress/plugins/build-module/components/index.js"); -/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./api */ "./node_modules/@wordpress/plugins/build-module/api/index.js"); - - -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createAddHook.js": -/*!*****************************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createAddHook.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 _validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateNamespace.js */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/validateNamespace.js"); -/* harmony import */ var _validateHookName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./validateHookName.js */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/validateHookName.js"); -/** - * Internal dependencies - */ - - - -/** - * @callback AddHook - * - * Adds the hook to the appropriate hooks container. - * - * @param {string} hookName Name of hook to add - * @param {string} namespace The unique namespace identifying the callback in the form `vendor/plugin/function`. - * @param {import('.').Callback} callback Function to call when the hook is run - * @param {number} [priority=10] Priority of this hook - */ - -/** - * Returns a function which, when invoked, will add a hook. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * - * @return {AddHook} Function that adds a new hook. - */ -function createAddHook(hooks, storeKey) { - return function addHook(hookName, namespace, callback, priority = 10) { - const hooksStore = hooks[storeKey]; - if (!(0,_validateHookName_js__WEBPACK_IMPORTED_MODULE_1__["default"])(hookName)) { - return; - } - if (!(0,_validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__["default"])(namespace)) { - return; - } - if ('function' !== typeof callback) { - // eslint-disable-next-line no-console - console.error('The hook callback must be a function.'); - return; - } - - // Validate numeric priority - if ('number' !== typeof priority) { - // eslint-disable-next-line no-console - console.error('If specified, the hook priority must be a number.'); - return; - } - const handler = { - callback, - priority, - namespace - }; - if (hooksStore[hookName]) { - // Find the correct insert index of the new hook. - const handlers = hooksStore[hookName].handlers; - - /** @type {number} */ - let i; - for (i = handlers.length; i > 0; i--) { - if (priority >= handlers[i - 1].priority) { - break; - } - } - if (i === handlers.length) { - // If append, operate via direct assignment. - handlers[i] = handler; - } else { - // Otherwise, insert before index via splice. - handlers.splice(i, 0, handler); - } - - // We may also be currently executing this hook. If the callback - // we're adding would come after the current callback, there's no - // problem; otherwise we need to increase the execution index of - // any other runs by 1 to account for the added element. - hooksStore.__current.forEach(hookInfo => { - if (hookInfo.name === hookName && hookInfo.currentIndex >= i) { - hookInfo.currentIndex++; - } - }); - } else { - // This is the first hook of its type. - hooksStore[hookName] = { - handlers: [handler], - runs: 0 - }; - } - if (hookName !== 'hookAdded') { - hooks.doAction('hookAdded', hookName, namespace, callback, priority); - } - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createAddHook); -//# sourceMappingURL=createAddHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createCurrentHook.js": -/*!*********************************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createCurrentHook.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 a function which, when invoked, will return the name of the - * currently running hook, or `null` if no hook of the given type is currently - * running. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * - * @return {() => string | null} Function that returns the current hook name or null. - */ -function createCurrentHook(hooks, storeKey) { - return function currentHook() { - var _hooksStore$__current; - const hooksStore = hooks[storeKey]; - return (_hooksStore$__current = hooksStore.__current[hooksStore.__current.length - 1]?.name) !== null && _hooksStore$__current !== void 0 ? _hooksStore$__current : null; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createCurrentHook); -//# sourceMappingURL=createCurrentHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createDidHook.js": -/*!*****************************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createDidHook.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 _validateHookName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateHookName.js */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/validateHookName.js"); -/** - * Internal dependencies - */ - - -/** - * @callback DidHook - * - * Returns the number of times an action has been fired. - * - * @param {string} hookName The hook name to check. - * - * @return {number | undefined} The number of times the hook has run. - */ - -/** - * Returns a function which, when invoked, will return the number of times a - * hook has been called. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * - * @return {DidHook} Function that returns a hook's call count. - */ -function createDidHook(hooks, storeKey) { - return function didHook(hookName) { - const hooksStore = hooks[storeKey]; - if (!(0,_validateHookName_js__WEBPACK_IMPORTED_MODULE_0__["default"])(hookName)) { - return; - } - return hooksStore[hookName] && hooksStore[hookName].runs ? hooksStore[hookName].runs : 0; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createDidHook); -//# sourceMappingURL=createDidHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createDoingHook.js": -/*!*******************************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createDoingHook.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 */ }); -/** - * @callback DoingHook - * Returns whether a hook is currently being executed. - * - * @param {string} [hookName] The name of the hook to check for. If - * omitted, will check for any hook being executed. - * - * @return {boolean} Whether the hook is being executed. - */ - -/** - * Returns a function which, when invoked, will return whether a hook is - * currently being executed. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * - * @return {DoingHook} Function that returns whether a hook is currently - * being executed. - */ -function createDoingHook(hooks, storeKey) { - return function doingHook(hookName) { - const hooksStore = hooks[storeKey]; - - // If the hookName was not passed, check for any current hook. - if ('undefined' === typeof hookName) { - return 'undefined' !== typeof hooksStore.__current[0]; - } - - // Return the __current hook. - return hooksStore.__current[0] ? hookName === hooksStore.__current[0].name : false; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createDoingHook); -//# sourceMappingURL=createDoingHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createHasHook.js": -/*!*****************************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createHasHook.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 */ }); -/** - * @callback HasHook - * - * Returns whether any handlers are attached for the given hookName and optional namespace. - * - * @param {string} hookName The name of the hook to check for. - * @param {string} [namespace] Optional. The unique namespace identifying the callback - * in the form `vendor/plugin/function`. - * - * @return {boolean} Whether there are handlers that are attached to the given hook. - */ -/** - * Returns a function which, when invoked, will return whether any handlers are - * attached to a particular hook. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * - * @return {HasHook} Function that returns whether any handlers are - * attached to a particular hook and optional namespace. - */ -function createHasHook(hooks, storeKey) { - return function hasHook(hookName, namespace) { - const hooksStore = hooks[storeKey]; - - // Use the namespace if provided. - if ('undefined' !== typeof namespace) { - return hookName in hooksStore && hooksStore[hookName].handlers.some(hook => hook.namespace === namespace); - } - return hookName in hooksStore; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createHasHook); -//# sourceMappingURL=createHasHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createHooks.js": -/*!***************************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createHooks.js ***! - \***************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ _Hooks: () => (/* binding */ _Hooks), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _createAddHook__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createAddHook */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createAddHook.js"); -/* harmony import */ var _createRemoveHook__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createRemoveHook */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createRemoveHook.js"); -/* harmony import */ var _createHasHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createHasHook */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createHasHook.js"); -/* harmony import */ var _createRunHook__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createRunHook */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createRunHook.js"); -/* harmony import */ var _createCurrentHook__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./createCurrentHook */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createCurrentHook.js"); -/* harmony import */ var _createDoingHook__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createDoingHook */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createDoingHook.js"); -/* harmony import */ var _createDidHook__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./createDidHook */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createDidHook.js"); -/** - * Internal dependencies - */ - - - - - - - - -/** - * Internal class for constructing hooks. Use `createHooks()` function - * - * Note, it is necessary to expose this class to make its type public. - * - * @private - */ -class _Hooks { - constructor() { - /** @type {import('.').Store} actions */ - this.actions = Object.create(null); - this.actions.__current = []; - - /** @type {import('.').Store} filters */ - this.filters = Object.create(null); - this.filters.__current = []; - this.addAction = (0,_createAddHook__WEBPACK_IMPORTED_MODULE_0__["default"])(this, 'actions'); - this.addFilter = (0,_createAddHook__WEBPACK_IMPORTED_MODULE_0__["default"])(this, 'filters'); - this.removeAction = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__["default"])(this, 'actions'); - this.removeFilter = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__["default"])(this, 'filters'); - this.hasAction = (0,_createHasHook__WEBPACK_IMPORTED_MODULE_2__["default"])(this, 'actions'); - this.hasFilter = (0,_createHasHook__WEBPACK_IMPORTED_MODULE_2__["default"])(this, 'filters'); - this.removeAllActions = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__["default"])(this, 'actions', true); - this.removeAllFilters = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__["default"])(this, 'filters', true); - this.doAction = (0,_createRunHook__WEBPACK_IMPORTED_MODULE_3__["default"])(this, 'actions'); - this.applyFilters = (0,_createRunHook__WEBPACK_IMPORTED_MODULE_3__["default"])(this, 'filters', true); - this.currentAction = (0,_createCurrentHook__WEBPACK_IMPORTED_MODULE_4__["default"])(this, 'actions'); - this.currentFilter = (0,_createCurrentHook__WEBPACK_IMPORTED_MODULE_4__["default"])(this, 'filters'); - this.doingAction = (0,_createDoingHook__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'actions'); - this.doingFilter = (0,_createDoingHook__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'filters'); - this.didAction = (0,_createDidHook__WEBPACK_IMPORTED_MODULE_6__["default"])(this, 'actions'); - this.didFilter = (0,_createDidHook__WEBPACK_IMPORTED_MODULE_6__["default"])(this, 'filters'); - } -} - -/** @typedef {_Hooks} Hooks */ - -/** - * Returns an instance of the hooks object. - * - * @return {Hooks} A Hooks instance. - */ -function createHooks() { - return new _Hooks(); -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createHooks); -//# sourceMappingURL=createHooks.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createRemoveHook.js": -/*!********************************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createRemoveHook.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 _validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateNamespace.js */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/validateNamespace.js"); -/* harmony import */ var _validateHookName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./validateHookName.js */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/validateHookName.js"); -/** - * Internal dependencies - */ - - - -/** - * @callback RemoveHook - * Removes the specified callback (or all callbacks) from the hook with a given hookName - * and namespace. - * - * @param {string} hookName The name of the hook to modify. - * @param {string} namespace The unique namespace identifying the callback in the - * form `vendor/plugin/function`. - * - * @return {number | undefined} The number of callbacks removed. - */ - -/** - * Returns a function which, when invoked, will remove a specified hook or all - * hooks by the given name. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * @param {boolean} [removeAll=false] Whether to remove all callbacks for a hookName, - * without regard to namespace. Used to create - * `removeAll*` functions. - * - * @return {RemoveHook} Function that removes hooks. - */ -function createRemoveHook(hooks, storeKey, removeAll = false) { - return function removeHook(hookName, namespace) { - const hooksStore = hooks[storeKey]; - if (!(0,_validateHookName_js__WEBPACK_IMPORTED_MODULE_1__["default"])(hookName)) { - return; - } - if (!removeAll && !(0,_validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__["default"])(namespace)) { - return; - } - - // Bail if no hooks exist by this name. - if (!hooksStore[hookName]) { - return 0; - } - let handlersRemoved = 0; - if (removeAll) { - handlersRemoved = hooksStore[hookName].handlers.length; - hooksStore[hookName] = { - runs: hooksStore[hookName].runs, - handlers: [] - }; - } else { - // Try to find the specified callback to remove. - const handlers = hooksStore[hookName].handlers; - for (let i = handlers.length - 1; i >= 0; i--) { - if (handlers[i].namespace === namespace) { - handlers.splice(i, 1); - handlersRemoved++; - // This callback may also be part of a hook that is - // currently executing. If the callback we're removing - // comes after the current callback, there's no problem; - // otherwise we need to decrease the execution index of any - // other runs by 1 to account for the removed element. - hooksStore.__current.forEach(hookInfo => { - if (hookInfo.name === hookName && hookInfo.currentIndex >= i) { - hookInfo.currentIndex--; - } - }); - } - } - } - if (hookName !== 'hookRemoved') { - hooks.doAction('hookRemoved', hookName, namespace); - } - return handlersRemoved; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createRemoveHook); -//# sourceMappingURL=createRemoveHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createRunHook.js": -/*!*****************************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createRunHook.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 a function which, when invoked, will execute all callbacks - * registered to a hook of the specified type, optionally returning the final - * value of the call chain. - * - * @param {import('.').Hooks} hooks Hooks instance. - * @param {import('.').StoreKey} storeKey - * @param {boolean} [returnFirstArg=false] Whether each hook callback is expected to - * return its first argument. - * - * @return {(hookName:string, ...args: unknown[]) => undefined|unknown} Function that runs hook callbacks. - */ -function createRunHook(hooks, storeKey, returnFirstArg = false) { - return function runHooks(hookName, ...args) { - const hooksStore = hooks[storeKey]; - if (!hooksStore[hookName]) { - hooksStore[hookName] = { - handlers: [], - runs: 0 - }; - } - hooksStore[hookName].runs++; - const handlers = hooksStore[hookName].handlers; - - // The following code is stripped from production builds. - if (true) { - // Handle any 'all' hooks registered. - if ('hookAdded' !== hookName && hooksStore.all) { - handlers.push(...hooksStore.all.handlers); - } - } - if (!handlers || !handlers.length) { - return returnFirstArg ? args[0] : undefined; - } - const hookInfo = { - name: hookName, - currentIndex: 0 - }; - hooksStore.__current.push(hookInfo); - while (hookInfo.currentIndex < handlers.length) { - const handler = handlers[hookInfo.currentIndex]; - const result = handler.callback.apply(null, args); - if (returnFirstArg) { - args[0] = result; - } - hookInfo.currentIndex++; - } - hooksStore.__current.pop(); - if (returnFirstArg) { - return args[0]; - } - return undefined; - }; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createRunHook); -//# sourceMappingURL=createRunHook.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/index.js": -/*!*********************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/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 */ actions: () => (/* binding */ actions), -/* harmony export */ addAction: () => (/* binding */ addAction), -/* harmony export */ addFilter: () => (/* binding */ addFilter), -/* harmony export */ applyFilters: () => (/* binding */ applyFilters), -/* harmony export */ createHooks: () => (/* reexport safe */ _createHooks__WEBPACK_IMPORTED_MODULE_0__["default"]), -/* harmony export */ currentAction: () => (/* binding */ currentAction), -/* harmony export */ currentFilter: () => (/* binding */ currentFilter), -/* harmony export */ defaultHooks: () => (/* binding */ defaultHooks), -/* harmony export */ didAction: () => (/* binding */ didAction), -/* harmony export */ didFilter: () => (/* binding */ didFilter), -/* harmony export */ doAction: () => (/* binding */ doAction), -/* harmony export */ doingAction: () => (/* binding */ doingAction), -/* harmony export */ doingFilter: () => (/* binding */ doingFilter), -/* harmony export */ filters: () => (/* binding */ filters), -/* harmony export */ hasAction: () => (/* binding */ hasAction), -/* harmony export */ hasFilter: () => (/* binding */ hasFilter), -/* harmony export */ removeAction: () => (/* binding */ removeAction), -/* harmony export */ removeAllActions: () => (/* binding */ removeAllActions), -/* harmony export */ removeAllFilters: () => (/* binding */ removeAllFilters), -/* harmony export */ removeFilter: () => (/* binding */ removeFilter) -/* harmony export */ }); -/* harmony import */ var _createHooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createHooks */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/createHooks.js"); -/** - * Internal dependencies - */ - - -/** @typedef {(...args: any[])=>any} Callback */ - -/** - * @typedef Handler - * @property {Callback} callback The callback - * @property {string} namespace The namespace - * @property {number} priority The namespace - */ - -/** - * @typedef Hook - * @property {Handler[]} handlers Array of handlers - * @property {number} runs Run counter - */ - -/** - * @typedef Current - * @property {string} name Hook name - * @property {number} currentIndex The index - */ - -/** - * @typedef {Record & {__current: Current[]}} Store - */ - -/** - * @typedef {'actions' | 'filters'} StoreKey - */ - -/** - * @typedef {import('./createHooks').Hooks} Hooks - */ - -const defaultHooks = (0,_createHooks__WEBPACK_IMPORTED_MODULE_0__["default"])(); -const { - addAction, - addFilter, - removeAction, - removeFilter, - hasAction, - hasFilter, - removeAllActions, - removeAllFilters, - doAction, - applyFilters, - currentAction, - currentFilter, - doingAction, - doingFilter, - didAction, - didFilter, - actions, - filters -} = defaultHooks; - -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/validateHookName.js": -/*!********************************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/validateHookName.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 */ }); -/** - * Validate a hookName string. - * - * @param {string} hookName The hook name to validate. Should be a non empty string containing - * only numbers, letters, dashes, periods and underscores. Also, - * the hook name cannot begin with `__`. - * - * @return {boolean} Whether the hook name is valid. - */ -function validateHookName(hookName) { - if ('string' !== typeof hookName || '' === hookName) { - // eslint-disable-next-line no-console - console.error('The hook name must be a non-empty string.'); - return false; - } - if (/^__/.test(hookName)) { - // eslint-disable-next-line no-console - console.error('The hook name cannot begin with `__`.'); - return false; - } - if (!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(hookName)) { - // eslint-disable-next-line no-console - console.error('The hook name can only contain numbers, letters, dashes, periods and underscores.'); - return false; - } - return true; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validateHookName); -//# sourceMappingURL=validateHookName.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/validateNamespace.js": -/*!*********************************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/node_modules/@wordpress/hooks/build-module/validateNamespace.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 */ }); -/** - * Validate a namespace string. - * - * @param {string} namespace The namespace to validate - should take the form - * `vendor/plugin/function`. - * - * @return {boolean} Whether the namespace is valid. - */ -function validateNamespace(namespace) { - if ('string' !== typeof namespace || '' === namespace) { - // eslint-disable-next-line no-console - console.error('The namespace must be a non-empty string.'); - return false; - } - if (!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(namespace)) { - // eslint-disable-next-line no-console - console.error('The namespace can only contain numbers, letters, dashes, periods, underscores and slashes.'); - return false; - } - return true; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validateNamespace); -//# sourceMappingURL=validateNamespace.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/node_modules/@wordpress/icons/build-module/library/plugins.js": -/*!*******************************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/node_modules/@wordpress/icons/build-module/library/plugins.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_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "./node_modules/@wordpress/plugins/node_modules/@wordpress/primitives/build-module/svg/index.js"); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * WordPress dependencies - */ - - -const plugins = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24", - children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z" - }) -}); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (plugins); -//# sourceMappingURL=plugins.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/plugins/node_modules/@wordpress/primitives/build-module/svg/index.js": -/*!******************************************************************************************************!*\ - !*** ./node_modules/@wordpress/plugins/node_modules/@wordpress/primitives/build-module/svg/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 */ Circle: () => (/* binding */ Circle), -/* harmony export */ Defs: () => (/* binding */ Defs), -/* harmony export */ G: () => (/* binding */ G), -/* harmony export */ Line: () => (/* binding */ Line), -/* harmony export */ LinearGradient: () => (/* binding */ LinearGradient), -/* harmony export */ Path: () => (/* binding */ Path), -/* harmony export */ Polygon: () => (/* binding */ Polygon), -/* harmony export */ RadialGradient: () => (/* binding */ RadialGradient), -/* harmony export */ Rect: () => (/* binding */ Rect), -/* harmony export */ SVG: () => (/* binding */ SVG), -/* harmony export */ Stop: () => (/* binding */ Stop) -/* harmony export */ }); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! clsx */ "./node_modules/@wordpress/plugins/node_modules/clsx/dist/clsx.mjs"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "./node_modules/react/index.js"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - -/** @typedef {{isPressed?: boolean} & import('react').ComponentPropsWithoutRef<'svg'>} SVGProps */ - -/** - * @param {import('react').ComponentPropsWithoutRef<'circle'>} props - * - * @return {JSX.Element} Circle component - */ - -const Circle = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('circle', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'g'>} props - * - * @return {JSX.Element} G component - */ -const G = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('g', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'line'>} props - * - * @return {JSX.Element} Path component - */ -const Line = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('line', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'path'>} props - * - * @return {JSX.Element} Path component - */ -const Path = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('path', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'polygon'>} props - * - * @return {JSX.Element} Polygon component - */ -const Polygon = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('polygon', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'rect'>} props - * - * @return {JSX.Element} Rect component - */ -const Rect = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('rect', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'defs'>} props - * - * @return {JSX.Element} Defs component - */ -const Defs = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('defs', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props - * - * @return {JSX.Element} RadialGradient component - */ -const RadialGradient = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('radialGradient', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props - * - * @return {JSX.Element} LinearGradient component - */ -const LinearGradient = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('linearGradient', props); - -/** - * @param {import('react').ComponentPropsWithoutRef<'stop'>} props - * - * @return {JSX.Element} Stop component - */ -const Stop = props => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)('stop', props); -const SVG = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.forwardRef)( -/** - * @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed. - * Other props will be passed through to svg component. - * @param {import('react').ForwardedRef} ref The forwarded ref to the SVG element. - * - * @return {JSX.Element} Stop component - */ -({ - className, - isPressed, - ...props -}, ref) => { - const appliedProps = { - ...props, - className: (0,clsx__WEBPACK_IMPORTED_MODULE_0__["default"])(className, { - 'is-pressed': isPressed - }) || undefined, - 'aria-hidden': true, - focusable: false - }; - - // Disable reason: We need to have a way to render HTML tag for web. - // eslint-disable-next-line react/forbid-elements - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("svg", { - ...appliedProps, - ref: ref - }); -}); -SVG.displayName = 'SVG'; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/priority-queue/build-module/index.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@wordpress/priority-queue/build-module/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 */ createQueue: () => (/* binding */ createQueue) -/* harmony export */ }); -/* harmony import */ var _request_idle_callback__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./request-idle-callback */ "./node_modules/@wordpress/priority-queue/build-module/request-idle-callback.js"); -/** - * Internal dependencies - */ - - -/** - * Enqueued callback to invoke once idle time permits. - * - * @typedef {()=>void} WPPriorityQueueCallback - */ - -/** - * An object used to associate callbacks in a particular context grouping. - * - * @typedef {{}} WPPriorityQueueContext - */ - -/** - * Function to add callback to priority queue. - * - * @typedef {(element:WPPriorityQueueContext,item:WPPriorityQueueCallback)=>void} WPPriorityQueueAdd - */ - -/** - * Function to flush callbacks from priority queue. - * - * @typedef {(element:WPPriorityQueueContext)=>boolean} WPPriorityQueueFlush - */ - -/** - * Reset the queue. - * - * @typedef {()=>void} WPPriorityQueueReset - */ - -/** - * Priority queue instance. - * - * @typedef {Object} WPPriorityQueue - * - * @property {WPPriorityQueueAdd} add Add callback to queue for context. - * @property {WPPriorityQueueFlush} flush Flush queue for context. - * @property {WPPriorityQueueFlush} cancel Clear queue for context. - * @property {WPPriorityQueueReset} reset Reset queue. - */ - -/** - * Creates a context-aware queue that only executes - * the last task of a given context. - * - * @example - *```js - * import { createQueue } from '@wordpress/priority-queue'; - * - * const queue = createQueue(); - * - * // Context objects. - * const ctx1 = {}; - * const ctx2 = {}; - * - * // For a given context in the queue, only the last callback is executed. - * queue.add( ctx1, () => console.log( 'This will be printed first' ) ); - * queue.add( ctx2, () => console.log( 'This won\'t be printed' ) ); - * queue.add( ctx2, () => console.log( 'This will be printed second' ) ); - *``` - * - * @return {WPPriorityQueue} Queue object with `add`, `flush` and `reset` methods. - */ -const createQueue = () => { - /** @type {Map} */ - const waitingList = new Map(); - let isRunning = false; - - /** - * Callback to process as much queue as time permits. - * - * Map Iteration follows the original insertion order. This means that here - * we can iterate the queue and know that the first contexts which were - * added will be run first. On the other hand, if anyone adds a new callback - * for an existing context it will supplant the previously-set callback for - * that context because we reassigned that map key's value. - * - * In the case that a callback adds a new callback to its own context then - * the callback it adds will appear at the end of the iteration and will be - * run only after all other existing contexts have finished executing. - * - * @param {IdleDeadline|number} deadline Idle callback deadline object, or - * animation frame timestamp. - */ - const runWaitingList = deadline => { - for (const [nextElement, callback] of waitingList) { - waitingList.delete(nextElement); - callback(); - if ('number' === typeof deadline || deadline.timeRemaining() <= 0) { - break; - } - } - if (waitingList.size === 0) { - isRunning = false; - return; - } - (0,_request_idle_callback__WEBPACK_IMPORTED_MODULE_0__["default"])(runWaitingList); - }; - - /** - * Add a callback to the queue for a given context. - * - * If errors with undefined callbacks are encountered double check that - * all of your useSelect calls have the right dependencies set correctly - * in their second parameter. Missing dependencies can cause unexpected - * loops and race conditions in the queue. - * - * @type {WPPriorityQueueAdd} - * - * @param {WPPriorityQueueContext} element Context object. - * @param {WPPriorityQueueCallback} item Callback function. - */ - const add = (element, item) => { - waitingList.set(element, item); - if (!isRunning) { - isRunning = true; - (0,_request_idle_callback__WEBPACK_IMPORTED_MODULE_0__["default"])(runWaitingList); - } - }; - - /** - * Flushes queue for a given context, returning true if the flush was - * performed, or false if there is no queue for the given context. - * - * @type {WPPriorityQueueFlush} - * - * @param {WPPriorityQueueContext} element Context object. - * - * @return {boolean} Whether flush was performed. - */ - const flush = element => { - const callback = waitingList.get(element); - if (undefined === callback) { - return false; - } - waitingList.delete(element); - callback(); - return true; - }; - - /** - * Clears the queue for a given context, cancelling the callbacks without - * executing them. Returns `true` if there were scheduled callbacks to cancel, - * or `false` if there was is no queue for the given context. - * - * @type {WPPriorityQueueFlush} - * - * @param {WPPriorityQueueContext} element Context object. - * - * @return {boolean} Whether any callbacks got cancelled. - */ - const cancel = element => { - return waitingList.delete(element); - }; - - /** - * Reset the queue without running the pending callbacks. - * - * @type {WPPriorityQueueReset} - */ - const reset = () => { - waitingList.clear(); - isRunning = false; - }; - return { - add, - flush, - cancel, - reset - }; -}; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/priority-queue/build-module/request-idle-callback.js": -/*!**************************************************************************************!*\ - !*** ./node_modules/@wordpress/priority-queue/build-module/request-idle-callback.js ***! - \**************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createRequestIdleCallback: () => (/* binding */ createRequestIdleCallback), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var requestidlecallback__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! requestidlecallback */ "./node_modules/requestidlecallback/index.js"); -/* harmony import */ var requestidlecallback__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(requestidlecallback__WEBPACK_IMPORTED_MODULE_0__); -/** - * External dependencies - */ - - -/** - * @typedef {( timeOrDeadline: IdleDeadline | number ) => void} Callback - */ - -/** - * @return {(callback: Callback) => void} RequestIdleCallback - */ -function createRequestIdleCallback() { - if (typeof window === 'undefined') { - return callback => { - setTimeout(() => callback(Date.now()), 0); - }; - } - return window.requestIdleCallback; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createRequestIdleCallback()); -//# sourceMappingURL=request-idle-callback.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/private-apis/build-module/implementation.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/@wordpress/private-apis/build-module/implementation.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ __dangerousOptInToUnstableAPIsOnlyForCoreModules: () => (/* binding */ __dangerousOptInToUnstableAPIsOnlyForCoreModules), -/* harmony export */ allowCoreModule: () => (/* binding */ allowCoreModule), -/* harmony export */ resetAllowedCoreModules: () => (/* binding */ resetAllowedCoreModules), -/* harmony export */ resetRegisteredPrivateApis: () => (/* binding */ resetRegisteredPrivateApis) -/* harmony export */ }); -/** - * wordpress/private-apis – the utilities to enable private cross-package - * exports of private APIs. - * - * This "implementation.js" file is needed for the sake of the unit tests. It - * exports more than the public API of the package to aid in testing. - */ - -/** - * The list of core modules allowed to opt-in to the private APIs. - */ -const CORE_MODULES_USING_PRIVATE_APIS = ['@wordpress/block-directory', '@wordpress/block-editor', '@wordpress/block-library', '@wordpress/blocks', '@wordpress/commands', '@wordpress/components', '@wordpress/core-commands', '@wordpress/core-data', '@wordpress/customize-widgets', '@wordpress/data', '@wordpress/edit-post', '@wordpress/edit-site', '@wordpress/edit-widgets', '@wordpress/editor', '@wordpress/format-library', '@wordpress/interface', '@wordpress/patterns', '@wordpress/preferences', '@wordpress/reusable-blocks', '@wordpress/router', '@wordpress/dataviews']; - -/** - * A list of core modules that already opted-in to - * the privateApis package. - * - * @type {string[]} - */ -const registeredPrivateApis = []; - -/* - * Warning for theme and plugin developers. - * - * The use of private developer APIs is intended for use by WordPress Core - * and the Gutenberg plugin exclusively. - * - * Dangerously opting in to using these APIs is NOT RECOMMENDED. Furthermore, - * the WordPress Core philosophy to strive to maintain backward compatibility - * for third-party developers DOES NOT APPLY to private APIs. - * - * THE CONSENT STRING FOR OPTING IN TO THESE APIS MAY CHANGE AT ANY TIME AND - * WITHOUT NOTICE. THIS CHANGE WILL BREAK EXISTING THIRD-PARTY CODE. SUCH A - * CHANGE MAY OCCUR IN EITHER A MAJOR OR MINOR RELEASE. - */ -const requiredConsent = 'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.'; - -/** @type {boolean} */ -let allowReRegistration; -// The safety measure is meant for WordPress core where IS_WORDPRESS_CORE -// is set to true. -// For the general use-case, the re-registration should be allowed by default -// Let's default to true, then. Try/catch will fall back to "true" even if the -// environment variable is not explicitly defined. -try { - allowReRegistration = globalThis.IS_WORDPRESS_CORE ? false : true; -} catch (error) { - allowReRegistration = true; -} - -/** - * Called by a @wordpress package wishing to opt-in to accessing or exposing - * private private APIs. - * - * @param {string} consent The consent string. - * @param {string} moduleName The name of the module that is opting in. - * @return {{lock: typeof lock, unlock: typeof unlock}} An object containing the lock and unlock functions. - */ -const __dangerousOptInToUnstableAPIsOnlyForCoreModules = (consent, moduleName) => { - if (!CORE_MODULES_USING_PRIVATE_APIS.includes(moduleName)) { - throw new Error(`You tried to opt-in to unstable APIs as module "${moduleName}". ` + 'This feature is only for JavaScript modules shipped with WordPress core. ' + 'Please do not use it in plugins and themes as the unstable APIs will be removed ' + 'without a warning. If you ignore this error and depend on unstable features, ' + 'your product will inevitably break on one of the next WordPress releases.'); - } - if (!allowReRegistration && registeredPrivateApis.includes(moduleName)) { - // This check doesn't play well with Story Books / Hot Module Reloading - // and isn't included in the Gutenberg plugin. It only matters in the - // WordPress core release. - throw new Error(`You tried to opt-in to unstable APIs as module "${moduleName}" which is already registered. ` + 'This feature is only for JavaScript modules shipped with WordPress core. ' + 'Please do not use it in plugins and themes as the unstable APIs will be removed ' + 'without a warning. If you ignore this error and depend on unstable features, ' + 'your product will inevitably break on one of the next WordPress releases.'); - } - if (consent !== requiredConsent) { - throw new Error(`You tried to opt-in to unstable APIs without confirming you know the consequences. ` + 'This feature is only for JavaScript modules shipped with WordPress core. ' + 'Please do not use it in plugins and themes as the unstable APIs will removed ' + 'without a warning. If you ignore this error and depend on unstable features, ' + 'your product will inevitably break on the next WordPress release.'); - } - registeredPrivateApis.push(moduleName); - return { - lock, - unlock - }; -}; - -/** - * Binds private data to an object. - * It does not alter the passed object in any way, only - * registers it in an internal map of private data. - * - * The private data can't be accessed by any other means - * than the `unlock` function. - * - * @example - * ```js - * const object = {}; - * const privateData = { a: 1 }; - * lock( object, privateData ); - * - * object - * // {} - * - * unlock( object ); - * // { a: 1 } - * ``` - * - * @param {any} object The object to bind the private data to. - * @param {any} privateData The private data to bind to the object. - */ -function lock(object, privateData) { - if (!object) { - throw new Error('Cannot lock an undefined object.'); - } - if (!(__private in object)) { - object[__private] = {}; - } - lockedData.set(object[__private], privateData); -} - -/** - * Unlocks the private data bound to an object. - * - * It does not alter the passed object in any way, only - * returns the private data paired with it using the `lock()` - * function. - * - * @example - * ```js - * const object = {}; - * const privateData = { a: 1 }; - * lock( object, privateData ); - * - * object - * // {} - * - * unlock( object ); - * // { a: 1 } - * ``` - * - * @param {any} object The object to unlock the private data from. - * @return {any} The private data bound to the object. - */ -function unlock(object) { - if (!object) { - throw new Error('Cannot unlock an undefined object.'); - } - if (!(__private in object)) { - throw new Error('Cannot unlock an object that was not locked before. '); - } - return lockedData.get(object[__private]); -} -const lockedData = new WeakMap(); - -/** - * Used by lock() and unlock() to uniquely identify the private data - * related to a containing object. - */ -const __private = Symbol('Private API ID'); - -// Unit tests utilities: - -/** - * Private function to allow the unit tests to allow - * a mock module to access the private APIs. - * - * @param {string} name The name of the module. - */ -function allowCoreModule(name) { - CORE_MODULES_USING_PRIVATE_APIS.push(name); -} - -/** - * Private function to allow the unit tests to set - * a custom list of allowed modules. - */ -function resetAllowedCoreModules() { - while (CORE_MODULES_USING_PRIVATE_APIS.length) { - CORE_MODULES_USING_PRIVATE_APIS.pop(); - } -} -/** - * Private function to allow the unit tests to reset - * the list of registered private apis. - */ -function resetRegisteredPrivateApis() { - while (registeredPrivateApis.length) { - registeredPrivateApis.pop(); - } -} -//# sourceMappingURL=implementation.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/redux-routine/build-module/index.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@wordpress/redux-routine/build-module/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": () => (/* binding */ createMiddleware) -/* harmony export */ }); -/* harmony import */ var _is_generator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./is-generator */ "./node_modules/@wordpress/redux-routine/build-module/is-generator.js"); -/* harmony import */ var _runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./runtime */ "./node_modules/@wordpress/redux-routine/build-module/runtime.js"); -/** - * Internal dependencies - */ - - - -/** - * Creates a Redux middleware, given an object of controls where each key is an - * action type for which to act upon, the value a function which returns either - * a promise which is to resolve when evaluation of the action should continue, - * or a value. The value or resolved promise value is assigned on the return - * value of the yield assignment. If the control handler returns undefined, the - * execution is not continued. - * - * @param {Record Promise | boolean>} controls Object of control handlers. - * - * @return {import('redux').Middleware} Co-routine runtime - */ -function createMiddleware(controls = {}) { - return store => { - const runtime = (0,_runtime__WEBPACK_IMPORTED_MODULE_0__["default"])(controls, store.dispatch); - return next => action => { - if (!(0,_is_generator__WEBPACK_IMPORTED_MODULE_1__["default"])(action)) { - return next(action); - } - return runtime(action); - }; - }; -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/redux-routine/build-module/is-action.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@wordpress/redux-routine/build-module/is-action.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ isAction: () => (/* binding */ isAction), -/* harmony export */ isActionOfType: () => (/* binding */ isActionOfType) -/* harmony export */ }); -/* harmony import */ var is_plain_object__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! is-plain-object */ "./node_modules/is-plain-object/dist/is-plain-object.mjs"); -/** - * External dependencies - */ - - -/* eslint-disable jsdoc/valid-types */ -/** - * Returns true if the given object quacks like an action. - * - * @param {any} object Object to test - * - * @return {object is import('redux').AnyAction} Whether object is an action. - */ -function isAction(object) { - return (0,is_plain_object__WEBPACK_IMPORTED_MODULE_0__.isPlainObject)(object) && typeof object.type === 'string'; -} - -/** - * Returns true if the given object quacks like an action and has a specific - * action type - * - * @param {unknown} object Object to test - * @param {string} expectedType The expected type for the action. - * - * @return {object is import('redux').AnyAction} Whether object is an action and is of specific type. - */ -function isActionOfType(object, expectedType) { - /* eslint-enable jsdoc/valid-types */ - return isAction(object) && object.type === expectedType; -} -//# sourceMappingURL=is-action.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/redux-routine/build-module/is-generator.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@wordpress/redux-routine/build-module/is-generator.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 */ isGenerator) -/* harmony export */ }); -/* eslint-disable jsdoc/valid-types */ -/** - * Returns true if the given object is a generator, or false otherwise. - * - * @see https://www.ecma-international.org/ecma-262/6.0/#sec-generator-objects - * - * @param {any} object Object to test. - * - * @return {object is Generator} Whether object is a generator. - */ -function isGenerator(object) { - /* eslint-enable jsdoc/valid-types */ - // Check that iterator (next) and iterable (Symbol.iterator) interfaces are satisfied. - // These checks seem to be compatible with several generator helpers as well as the native implementation. - return !!object && typeof object[Symbol.iterator] === 'function' && typeof object.next === 'function'; -} -//# sourceMappingURL=is-generator.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/redux-routine/build-module/runtime.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@wordpress/redux-routine/build-module/runtime.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 */ createRuntime) -/* harmony export */ }); -/* harmony import */ var rungen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rungen */ "./node_modules/rungen/dist/index.js"); -/* harmony import */ var rungen__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rungen__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var is_promise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! is-promise */ "./node_modules/is-promise/index.mjs"); -/* harmony import */ var _is_action__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./is-action */ "./node_modules/@wordpress/redux-routine/build-module/is-action.js"); -/** - * External dependencies - */ - - - -/** - * Internal dependencies - */ - - -/** - * Create a co-routine runtime. - * - * @param controls Object of control handlers. - * @param dispatch Unhandled action dispatch. - */ -function createRuntime(controls = {}, dispatch) { - const rungenControls = Object.entries(controls).map(([actionType, control]) => (value, next, iterate, yieldNext, yieldError) => { - if (!(0,_is_action__WEBPACK_IMPORTED_MODULE_2__.isActionOfType)(value, actionType)) { - return false; - } - const routine = control(value); - if ((0,is_promise__WEBPACK_IMPORTED_MODULE_1__["default"])(routine)) { - // Async control routine awaits resolution. - routine.then(yieldNext, yieldError); - } else { - yieldNext(routine); - } - return true; - }); - const unhandledActionControl = (value, next) => { - if (!(0,_is_action__WEBPACK_IMPORTED_MODULE_2__.isAction)(value)) { - return false; - } - dispatch(value); - next(); - return true; - }; - rungenControls.push(unhandledActionControl); - const rungenRuntime = (0,rungen__WEBPACK_IMPORTED_MODULE_0__.create)(rungenControls); - return action => new Promise((resolve, reject) => rungenRuntime(action, result => { - if ((0,_is_action__WEBPACK_IMPORTED_MODULE_2__.isAction)(result)) { - dispatch(result); - } - resolve(result); - }, reject)); -} -//# sourceMappingURL=runtime.js.map - -/***/ }), - -/***/ "./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 */ "./node_modules/@wordpress/data/build-module/redux-store/index.js"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/data */ "./node_modules/@wordpress/data/build-module/select.js"); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/data */ "./node_modules/@wordpress/data/build-module/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); } - -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__["default"])("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_1__.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_2__.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; -}; - - -/***/ }), - -/***/ "./node_modules/deepmerge/dist/cjs.js": -/*!********************************************!*\ - !*** ./node_modules/deepmerge/dist/cjs.js ***! - \********************************************/ -/***/ ((module) => { - -"use strict"; - - -var isMergeableObject = function isMergeableObject(value) { - return isNonNullObject(value) - && !isSpecial(value) -}; - -function isNonNullObject(value) { - return !!value && typeof value === 'object' -} - -function isSpecial(value) { - var stringValue = Object.prototype.toString.call(value); - - return stringValue === '[object RegExp]' - || stringValue === '[object Date]' - || isReactElement(value) -} - -// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25 -var canUseSymbol = typeof Symbol === 'function' && Symbol.for; -var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7; - -function isReactElement(value) { - return value.$$typeof === REACT_ELEMENT_TYPE -} - -function emptyTarget(val) { - return Array.isArray(val) ? [] : {} -} - -function cloneUnlessOtherwiseSpecified(value, options) { - return (options.clone !== false && options.isMergeableObject(value)) - ? deepmerge(emptyTarget(value), value, options) - : value -} - -function defaultArrayMerge(target, source, options) { - return target.concat(source).map(function(element) { - return cloneUnlessOtherwiseSpecified(element, options) - }) -} - -function getMergeFunction(key, options) { - if (!options.customMerge) { - return deepmerge - } - var customMerge = options.customMerge(key); - return typeof customMerge === 'function' ? customMerge : deepmerge -} - -function getEnumerableOwnPropertySymbols(target) { - return Object.getOwnPropertySymbols - ? Object.getOwnPropertySymbols(target).filter(function(symbol) { - return Object.propertyIsEnumerable.call(target, symbol) - }) - : [] -} - -function getKeys(target) { - return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target)) -} - -function propertyIsOnObject(object, property) { - try { - return property in object - } catch(_) { - return false - } -} - -// Protects from prototype poisoning and unexpected merging up the prototype chain. -function propertyIsUnsafe(target, key) { - return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet, - && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain, - && Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable. -} - -function mergeObject(target, source, options) { - var destination = {}; - if (options.isMergeableObject(target)) { - getKeys(target).forEach(function(key) { - destination[key] = cloneUnlessOtherwiseSpecified(target[key], options); - }); - } - getKeys(source).forEach(function(key) { - if (propertyIsUnsafe(target, key)) { - return - } - - if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) { - destination[key] = getMergeFunction(key, options)(target[key], source[key], options); - } else { - destination[key] = cloneUnlessOtherwiseSpecified(source[key], options); - } - }); - return destination -} - -function deepmerge(target, source, options) { - options = options || {}; - options.arrayMerge = options.arrayMerge || defaultArrayMerge; - options.isMergeableObject = options.isMergeableObject || isMergeableObject; - // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge() - // implementations can use it. The caller may not replace it. - options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified; - - var sourceIsArray = Array.isArray(source); - var targetIsArray = Array.isArray(target); - var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray; - - if (!sourceAndTargetTypesMatch) { - return cloneUnlessOtherwiseSpecified(source, options) - } else if (sourceIsArray) { - return options.arrayMerge(target, source, options) - } else { - return mergeObject(target, source, options) - } -} - -deepmerge.all = function deepmergeAll(array, options) { - if (!Array.isArray(array)) { - throw new Error('first argument should be an array') - } - - return array.reduce(function(prev, next) { - return deepmerge(prev, next, options) - }, {}) -}; - -var deepmerge_1 = deepmerge; - -module.exports = deepmerge_1; - - -/***/ }), - -/***/ "./node_modules/dot-case/dist.es2015/index.js": -/*!****************************************************!*\ - !*** ./node_modules/dot-case/dist.es2015/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 */ dotCase: () => (/* binding */ dotCase) -/* harmony export */ }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); -/* harmony import */ var no_case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! no-case */ "./node_modules/no-case/dist.es2015/index.js"); - - -function dotCase(input, options) { - if (options === void 0) { options = {}; } - return (0,no_case__WEBPACK_IMPORTED_MODULE_0__.noCase)(input, (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__assign)({ delimiter: "." }, options)); -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/equivalent-key-map/equivalent-key-map.js": -/*!***************************************************************!*\ - !*** ./node_modules/equivalent-key-map/equivalent-key-map.js ***! - \***************************************************************/ -/***/ ((module) => { - -"use strict"; - - -function _typeof(obj) { - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function (obj) { - return typeof obj; - }; - } else { - _typeof = function (obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - - return _typeof(obj); -} - -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a 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); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; -} - -/** - * Given an instance of EquivalentKeyMap, returns its internal value pair tuple - * for a key, if one exists. The tuple members consist of the last reference - * value for the key (used in efficient subsequent lookups) and the value - * assigned for the key at the leaf node. - * - * @param {EquivalentKeyMap} instance EquivalentKeyMap instance. - * @param {*} key The key for which to return value pair. - * - * @return {?Array} Value pair, if exists. - */ -function getValuePair(instance, key) { - var _map = instance._map, - _arrayTreeMap = instance._arrayTreeMap, - _objectTreeMap = instance._objectTreeMap; // Map keeps a reference to the last object-like key used to set the - // value, which can be used to shortcut immediately to the value. - - if (_map.has(key)) { - return _map.get(key); - } // Sort keys to ensure stable retrieval from tree. - - - var properties = Object.keys(key).sort(); // Tree by type to avoid conflicts on numeric object keys, empty value. - - var map = Array.isArray(key) ? _arrayTreeMap : _objectTreeMap; - - for (var i = 0; i < properties.length; i++) { - var property = properties[i]; - map = map.get(property); - - if (map === undefined) { - return; - } - - var propertyValue = key[property]; - map = map.get(propertyValue); - - if (map === undefined) { - return; - } - } - - var valuePair = map.get('_ekm_value'); - - if (!valuePair) { - return; - } // If reached, it implies that an object-like key was set with another - // reference, so delete the reference and replace with the current. - - - _map.delete(valuePair[0]); - - valuePair[0] = key; - map.set('_ekm_value', valuePair); - - _map.set(key, valuePair); - - return valuePair; -} -/** - * Variant of a Map object which enables lookup by equivalent (deeply equal) - * object and array keys. - */ - - -var EquivalentKeyMap = -/*#__PURE__*/ -function () { - /** - * Constructs a new instance of EquivalentKeyMap. - * - * @param {Iterable.<*>} iterable Initial pair of key, value for map. - */ - function EquivalentKeyMap(iterable) { - _classCallCheck(this, EquivalentKeyMap); - - this.clear(); - - if (iterable instanceof EquivalentKeyMap) { - // Map#forEach is only means of iterating with support for IE11. - var iterablePairs = []; - iterable.forEach(function (value, key) { - iterablePairs.push([key, value]); - }); - iterable = iterablePairs; - } - - if (iterable != null) { - for (var i = 0; i < iterable.length; i++) { - this.set(iterable[i][0], iterable[i][1]); - } - } - } - /** - * Accessor property returning the number of elements. - * - * @return {number} Number of elements. - */ - - - _createClass(EquivalentKeyMap, [{ - key: "set", - - /** - * Add or update an element with a specified key and value. - * - * @param {*} key The key of the element to add. - * @param {*} value The value of the element to add. - * - * @return {EquivalentKeyMap} Map instance. - */ - value: function set(key, value) { - // Shortcut non-object-like to set on internal Map. - if (key === null || _typeof(key) !== 'object') { - this._map.set(key, value); - - return this; - } // Sort keys to ensure stable assignment into tree. - - - var properties = Object.keys(key).sort(); - var valuePair = [key, value]; // Tree by type to avoid conflicts on numeric object keys, empty value. - - var map = Array.isArray(key) ? this._arrayTreeMap : this._objectTreeMap; - - for (var i = 0; i < properties.length; i++) { - var property = properties[i]; - - if (!map.has(property)) { - map.set(property, new EquivalentKeyMap()); - } - - map = map.get(property); - var propertyValue = key[property]; - - if (!map.has(propertyValue)) { - map.set(propertyValue, new EquivalentKeyMap()); - } - - map = map.get(propertyValue); - } // If an _ekm_value exists, there was already an equivalent key. Before - // overriding, ensure that the old key reference is removed from map to - // avoid memory leak of accumulating equivalent keys. This is, in a - // sense, a poor man's WeakMap, while still enabling iterability. - - - var previousValuePair = map.get('_ekm_value'); - - if (previousValuePair) { - this._map.delete(previousValuePair[0]); - } - - map.set('_ekm_value', valuePair); - - this._map.set(key, valuePair); - - return this; - } - /** - * Returns a specified element. - * - * @param {*} key The key of the element to return. - * - * @return {?*} The element associated with the specified key or undefined - * if the key can't be found. - */ - - }, { - key: "get", - value: function get(key) { - // Shortcut non-object-like to get from internal Map. - if (key === null || _typeof(key) !== 'object') { - return this._map.get(key); - } - - var valuePair = getValuePair(this, key); - - if (valuePair) { - return valuePair[1]; - } - } - /** - * Returns a boolean indicating whether an element with the specified key - * exists or not. - * - * @param {*} key The key of the element to test for presence. - * - * @return {boolean} Whether an element with the specified key exists. - */ - - }, { - key: "has", - value: function has(key) { - if (key === null || _typeof(key) !== 'object') { - return this._map.has(key); - } // Test on the _presence_ of the pair, not its value, as even undefined - // can be a valid member value for a key. - - - return getValuePair(this, key) !== undefined; - } - /** - * Removes the specified element. - * - * @param {*} key The key of the element to remove. - * - * @return {boolean} Returns true if an element existed and has been - * removed, or false if the element does not exist. - */ - - }, { - key: "delete", - value: function _delete(key) { - if (!this.has(key)) { - return false; - } // This naive implementation will leave orphaned child trees. A better - // implementation should traverse and remove orphans. - - - this.set(key, undefined); - return true; - } - /** - * Executes a provided function once per each key/value pair, in insertion - * order. - * - * @param {Function} callback Function to execute for each element. - * @param {*} thisArg Value to use as `this` when executing - * `callback`. - */ - - }, { - key: "forEach", - value: function forEach(callback) { - var _this = this; - - var thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this; - - this._map.forEach(function (value, key) { - // Unwrap value from object-like value pair. - if (key !== null && _typeof(key) === 'object') { - value = value[1]; - } - - callback.call(thisArg, value, key, _this); - }); - } - /** - * Removes all elements. - */ - - }, { - key: "clear", - value: function clear() { - this._map = new Map(); - this._arrayTreeMap = new Map(); - this._objectTreeMap = new Map(); - } - }, { - key: "size", - get: function get() { - return this._map.size; - } - }]); - - return EquivalentKeyMap; -}(); - -module.exports = EquivalentKeyMap; - - -/***/ }), - -/***/ "./node_modules/fast-deep-equal/es6/index.js": -/*!***************************************************!*\ - !*** ./node_modules/fast-deep-equal/es6/index.js ***! - \***************************************************/ -/***/ ((module) => { - -"use strict"; - - -// do not edit .js files directly - edit src/index.jst - - - var envHasBigInt64Array = typeof BigInt64Array !== 'undefined'; - - -module.exports = function equal(a, b) { - if (a === b) return true; - - if (a && b && typeof a == 'object' && typeof b == 'object') { - if (a.constructor !== b.constructor) return false; - - var length, i, keys; - if (Array.isArray(a)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (!equal(a[i], b[i])) return false; - return true; - } - - - if ((a instanceof Map) && (b instanceof Map)) { - if (a.size !== b.size) return false; - for (i of a.entries()) - if (!b.has(i[0])) return false; - for (i of a.entries()) - if (!equal(i[1], b.get(i[0]))) return false; - return true; - } - - if ((a instanceof Set) && (b instanceof Set)) { - if (a.size !== b.size) return false; - for (i of a.entries()) - if (!b.has(i[0])) return false; - return true; - } - - if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (a[i] !== b[i]) return false; - return true; - } - - - if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; - if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); - if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); - - keys = Object.keys(a); - length = keys.length; - if (length !== Object.keys(b).length) return false; - - for (i = length; i-- !== 0;) - if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false; - - for (i = length; i-- !== 0;) { - var key = keys[i]; - - if (!equal(a[key], b[key])) return false; - } - - return true; - } - - // true if both NaN, false otherwise - return a!==a && b!==b; -}; - - -/***/ }), - -/***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js ***! - \**********************************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var reactIs = __webpack_require__(/*! react-is */ "./node_modules/hoist-non-react-statics/node_modules/react-is/index.js"); - -/** - * Copyright 2015, Yahoo! Inc. - * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. - */ -var REACT_STATICS = { - childContextTypes: true, - contextType: true, - contextTypes: true, - defaultProps: true, - displayName: true, - getDefaultProps: true, - getDerivedStateFromError: true, - getDerivedStateFromProps: true, - mixins: true, - propTypes: true, - type: true -}; -var KNOWN_STATICS = { - name: true, - length: true, - prototype: true, - caller: true, - callee: true, - arguments: true, - arity: true -}; -var FORWARD_REF_STATICS = { - '$$typeof': true, - render: true, - defaultProps: true, - displayName: true, - propTypes: true -}; -var MEMO_STATICS = { - '$$typeof': true, - compare: true, - defaultProps: true, - displayName: true, - propTypes: true, - type: true -}; -var TYPE_STATICS = {}; -TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; -TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; - -function getStatics(component) { - // React v16.11 and below - if (reactIs.isMemo(component)) { - return MEMO_STATICS; - } // React v16.12 and above - - - return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; -} - -var defineProperty = Object.defineProperty; -var getOwnPropertyNames = Object.getOwnPropertyNames; -var getOwnPropertySymbols = Object.getOwnPropertySymbols; -var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; -var getPrototypeOf = Object.getPrototypeOf; -var objectPrototype = Object.prototype; -function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { - if (typeof sourceComponent !== 'string') { - // don't hoist over string (html) components - if (objectPrototype) { - var inheritedComponent = getPrototypeOf(sourceComponent); - - if (inheritedComponent && inheritedComponent !== objectPrototype) { - hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); - } - } - - var keys = getOwnPropertyNames(sourceComponent); - - if (getOwnPropertySymbols) { - keys = keys.concat(getOwnPropertySymbols(sourceComponent)); - } - - var targetStatics = getStatics(targetComponent); - var sourceStatics = getStatics(sourceComponent); - - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - - if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { - var descriptor = getOwnPropertyDescriptor(sourceComponent, key); - - try { - // Avoid failures from read-only properties - defineProperty(targetComponent, key, descriptor); - } catch (e) {} - } - } - } - - return targetComponent; -} - -module.exports = hoistNonReactStatics; - - -/***/ }), - -/***/ "./node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js": -/*!************************************************************************************************!*\ - !*** ./node_modules/hoist-non-react-statics/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/hoist-non-react-statics/node_modules/react-is/index.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/hoist-non-react-statics/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/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js"); -} - - -/***/ }), - -/***/ "./node_modules/lower-case/dist.es2015/index.js": -/*!******************************************************!*\ - !*** ./node_modules/lower-case/dist.es2015/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 */ localeLowerCase: () => (/* binding */ localeLowerCase), -/* harmony export */ lowerCase: () => (/* binding */ lowerCase) -/* harmony export */ }); -/** - * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt - */ -var SUPPORTED_LOCALE = { - tr: { - regexp: /\u0130|\u0049|\u0049\u0307/g, - map: { - İ: "\u0069", - I: "\u0131", - İ: "\u0069", - }, - }, - az: { - regexp: /\u0130/g, - map: { - İ: "\u0069", - I: "\u0131", - İ: "\u0069", - }, - }, - lt: { - regexp: /\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g, - map: { - I: "\u0069\u0307", - J: "\u006A\u0307", - Į: "\u012F\u0307", - Ì: "\u0069\u0307\u0300", - Í: "\u0069\u0307\u0301", - Ĩ: "\u0069\u0307\u0303", - }, - }, -}; -/** - * Localized lower case. - */ -function localeLowerCase(str, locale) { - var lang = SUPPORTED_LOCALE[locale.toLowerCase()]; - if (lang) - return lowerCase(str.replace(lang.regexp, function (m) { return lang.map[m]; })); - return lowerCase(str); -} -/** - * Lower case as a function. - */ -function lowerCase(str) { - return str.toLowerCase(); -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./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 */ "./node_modules/react/index.js"); -/* 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/database.js": -/*!**************************************************************!*\ - !*** ./node_modules/lucide-react/dist/esm/icons/database.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 */ Database) -/* 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 Database = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Database", [ - ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }], - ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }], - ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }] -]); - - -//# sourceMappingURL=database.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/no-case/dist.es2015/index.js": -/*!***************************************************!*\ - !*** ./node_modules/no-case/dist.es2015/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 */ noCase: () => (/* binding */ noCase) -/* harmony export */ }); -/* harmony import */ var lower_case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lower-case */ "./node_modules/lower-case/dist.es2015/index.js"); - -// Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case"). -var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g]; -// Remove all non-word characters. -var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi; -/** - * Normalize the string into something other libraries can manipulate easier. - */ -function noCase(input, options) { - if (options === void 0) { options = {}; } - var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lower_case__WEBPACK_IMPORTED_MODULE_0__.lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d; - var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0"); - var start = 0; - var end = result.length; - // Trim the delimiter from around the output string. - while (result.charAt(start) === "\0") - start++; - while (result.charAt(end - 1) === "\0") - end--; - // Transform each token independently. - return result.slice(start, end).split("\0").map(transform).join(delimiter); -} -/** - * Replace `re` in the input string with the replacement value. - */ -function replace(input, re, value) { - if (re instanceof RegExp) - return input.replace(re, value); - return re.reduce(function (input, re) { return input.replace(re, value); }, input); -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/param-case/dist.es2015/index.js": -/*!******************************************************!*\ - !*** ./node_modules/param-case/dist.es2015/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 */ paramCase: () => (/* binding */ paramCase) -/* harmony export */ }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); -/* harmony import */ var dot_case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dot-case */ "./node_modules/dot-case/dist.es2015/index.js"); - - -function paramCase(input, options) { - if (options === void 0) { options = {}; } - return (0,dot_case__WEBPACK_IMPORTED_MODULE_0__.dotCase)(input, (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__assign)({ delimiter: "-" }, options)); -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/pascal-case/dist.es2015/index.js": -/*!*******************************************************!*\ - !*** ./node_modules/pascal-case/dist.es2015/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 */ pascalCase: () => (/* binding */ pascalCase), -/* harmony export */ pascalCaseTransform: () => (/* binding */ pascalCaseTransform), -/* harmony export */ pascalCaseTransformMerge: () => (/* binding */ pascalCaseTransformMerge) -/* harmony export */ }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); -/* harmony import */ var no_case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! no-case */ "./node_modules/no-case/dist.es2015/index.js"); - - -function pascalCaseTransform(input, index) { - var firstChar = input.charAt(0); - var lowerChars = input.substr(1).toLowerCase(); - if (index > 0 && firstChar >= "0" && firstChar <= "9") { - return "_" + firstChar + lowerChars; - } - return "" + firstChar.toUpperCase() + lowerChars; -} -function pascalCaseTransformMerge(input) { - return input.charAt(0).toUpperCase() + input.slice(1).toLowerCase(); -} -function pascalCase(input, options) { - if (options === void 0) { options = {}; } - return (0,no_case__WEBPACK_IMPORTED_MODULE_0__.noCase)(input, (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__assign)({ delimiter: "", transform: pascalCaseTransform }, options)); -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/react-dom/cjs/react-dom.development.js": -/*!*************************************************************!*\ - !*** ./node_modules/react-dom/cjs/react-dom.development.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -/** - * @license React - * react-dom.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -if (true) { - (function() { - - 'use strict'; - -/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ -if ( - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === - 'function' -) { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); -} - var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -var Scheduler = __webpack_require__(/*! scheduler */ "./node_modules/scheduler/index.js"); - -var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - -var suppressWarning = false; -function setSuppressWarning(newSuppressWarning) { - { - suppressWarning = newSuppressWarning; - } -} // In DEV, calls to console.warn and console.error get replaced -// by calls to these methods by a Babel plugin. -// -// In PROD (or in packages without access to React internals), -// they are left as they are instead. - -function warn(format) { - { - if (!suppressWarning) { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - printWarning('warn', format, args); - } - } -} -function error(format) { - { - if (!suppressWarning) { - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - - printWarning('error', format, args); - } - } -} - -function printWarning(level, format, args) { - // When changing this logic, you might want to also - // update consoleWithStackDev.www.js as well. - { - var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; - var stack = ReactDebugCurrentFrame.getStackAddendum(); - - if (stack !== '') { - format += '%s'; - args = args.concat([stack]); - } // eslint-disable-next-line react-internal/safe-string-coercion - - - var argsWithFormat = args.map(function (item) { - return String(item); - }); // Careful: RN currently depends on this prefix - - argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it - // breaks IE9: https://github.com/facebook/react/issues/13610 - // eslint-disable-next-line react-internal/no-production-logging - - Function.prototype.apply.call(console[level], console, argsWithFormat); - } -} - -var FunctionComponent = 0; -var ClassComponent = 1; -var IndeterminateComponent = 2; // Before we know whether it is function or class - -var HostRoot = 3; // Root of a host tree. Could be nested inside another node. - -var HostPortal = 4; // A subtree. Could be an entry point to a different renderer. - -var HostComponent = 5; -var HostText = 6; -var Fragment = 7; -var Mode = 8; -var ContextConsumer = 9; -var ContextProvider = 10; -var ForwardRef = 11; -var Profiler = 12; -var SuspenseComponent = 13; -var MemoComponent = 14; -var SimpleMemoComponent = 15; -var LazyComponent = 16; -var IncompleteClassComponent = 17; -var DehydratedFragment = 18; -var SuspenseListComponent = 19; -var ScopeComponent = 21; -var OffscreenComponent = 22; -var LegacyHiddenComponent = 23; -var CacheComponent = 24; -var TracingMarkerComponent = 25; - -// ----------------------------------------------------------------------------- - -var enableClientRenderFallbackOnTextMismatch = true; // TODO: Need to review this code one more time before landing -// the react-reconciler package. - -var enableNewReconciler = false; // Support legacy Primer support on internal FB www - -var enableLazyContextPropagation = false; // FB-only usage. The new API has different semantics. - -var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber - -var enableSuspenseAvoidThisFallback = false; // Enables unstable_avoidThisFallback feature in Fizz -// React DOM Chopping Block -// -// Similar to main Chopping Block but only flags related to React DOM. These are -// grouped because we will likely batch all of them into a single major release. -// ----------------------------------------------------------------------------- -// Disable support for comment nodes as React DOM containers. Already disabled -// in open source, but www codebase still relies on it. Need to remove. - -var disableCommentsAsDOMContainers = true; // Disable javascript: URL strings in href for XSS protection. -// and client rendering, mostly to allow JSX attributes to apply to the custom -// element's object properties instead of only HTML attributes. -// https://github.com/facebook/react/issues/11347 - -var enableCustomElementPropertySupport = false; // Disables children for