Gutenberg Blocks and Template Library by Otter - Version 2.0.14

Version Description

Download this release

Release Info

Developer themeisle
Plugin Icon wp plugin Gutenberg Blocks and Template Library by Otter
Version 2.0.14
Comparing to
See all releases

Code changes from version 2.0.13 to 2.0.14

CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ##### [Version 2.0.13](https://github.com/Codeinwp/otter-blocks/compare/v2.0.12...v2.0.13) (2022-08-27)
2
 
3
  - Fix JS being loaded everywhere even when not required
1
+ ##### [Version 2.0.14](https://github.com/Codeinwp/otter-blocks/compare/v2.0.13...v2.0.14) (2022-09-12)
2
+
3
+ - Adding an onboarding experience in Otter
4
+ - Add Dynamic Links feature
5
+ - Progress Bar Block Enhancements
6
+ - Animation Extension Enhancements
7
+ - Add UI control for the input background color to Form Block
8
+ - Add edit link option for Button Group
9
+ - Add Float to Top/Bottom mode to Sticky Extension
10
+ - Fix Review Comparison Table not accessing reviews from inside Section Block
11
+ - Fix ThemeIsle Icons in Button Group not aligning to the text in Editor
12
+ - Fix CSS Editor listing not being able to override
13
+ - Fix Icon Block padding on ThemeIsle Icons library
14
+ - Fix animated elements in viewport flashing before animating
15
+ - Fix Flip Block not working correctly in Firefox
16
+ - Fix Google Fonts not working in responsive views in the Editor
17
+ - Remove AggregateRating from Review Block Schema
18
+
19
  ##### [Version 2.0.13](https://github.com/Codeinwp/otter-blocks/compare/v2.0.12...v2.0.13) (2022-08-27)
20
 
21
  - Fix JS being loaded everywhere even when not required
assets/images/guide/welcome-css.png ADDED
Binary file
assets/images/guide/welcome-finish.png ADDED
Binary file
assets/images/guide/welcome-logo.png ADDED
Binary file
assets/images/guide/welcome-pro.png ADDED
Binary file
assets/images/guide/welcome-section.png ADDED
Binary file
build/animation/anim-count.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array(), 'version' => 'c9316390d0905ba88e79eae02e308c83');
1
+ <?php return array('dependencies' => array(), 'version' => '80b0e4d86a4d944890bb');
build/animation/anim-typing.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array(), 'version' => '2a761e97780680948735c90ca8416ad0');
1
+ <?php return array('dependencies' => array(), 'version' => '5d7ba08ddfec4156a4a5');
build/animation/frontend.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array(), 'version' => '46ba73bc82a900e7582d4c6d635ccbde');
1
+ <?php return array('dependencies' => array(), 'version' => 'b6a928c1b2eccf07159a');
build/animation/frontend.js CHANGED
@@ -1 +1 @@
1
- !function(){const t=["none","bounce","flash","pulse","rubberBand","shakeX","shakeY","headShake","swing","tada","wobble","jello","heartBeat","hinge","jackInTheBox","backInDown","backInLeft","backInRight","backInUp","backOutDown","backOutLeft","backOutRight","backOutUp","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInTopLeft","fadeInTopRight","fadeInBottomLeft","fadeInBottomRight","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flip","flipInX","flipInY","flipOutX","flipOutY","lightSpeedInRight","lightSpeedInLeft","lightSpeedOutRight","lightSpeedOutLeft","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideInDown","slideInLeft","slideInRight","slideInUp","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollIn","rollOut"],e=["backOutDown","backOutLeft","backOutRight","backOutUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flipOutX","flipOutY","lightSpeedOutRight","lightSpeedOutLeft","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],o=["none","delay-100ms","delay-200ms","delay-500ms","delay-1s","delay-2s","delay-3s","delay-4s","delay-5s"],n=["none","slow","slower","fast","faster"];window.addEventListener("load",(()=>{const i=document.querySelectorAll(".animated");for(const u of i){if(classes=u.classList,u.animationClasses=[],!a(u)){const e=t.find((t=>Array.from(classes).find((e=>e===t)))),a=o.find((t=>Array.from(classes).find((e=>e===t)))),i=n.find((t=>Array.from(classes).find((e=>e===t))));u.classList.add("hidden-animated"),e&&(u.animationClasses.push(e),u.classList.remove(e)),a&&(u.animationClasses.push(a),u.classList.remove(a)),i&&(u.animationClasses.push(i),u.classList.remove(i))}e.forEach((t=>{u.className.includes(t)&&u.addEventListener("animationend",(()=>{u.classList.remove(t)}))}))}window.addEventListener("scroll",(()=>{for(const t of i)t.getBoundingClientRect().top<=.95*window.innerHeight&&0<t.getBoundingClientRect().top&&t.animationClasses&&0<t.animationClasses.length&&(t.animationClasses.forEach((e=>t.classList.add(e))),t.classList.remove("hidden-animated"),delete t.animationClasses)}))}));const a=t=>{const e=window.scrollY||window.pageYOffset,o=t.getBoundingClientRect().top+e,n=e,a=e+window.innerHeight,i=o,u=o+t.clientHeight;return u>=n&&u<=a||i<=a&&i>=n}}();
1
+ !function(){const t=["none","bounce","flash","pulse","rubberBand","shakeX","shakeY","headShake","swing","tada","wobble","jello","heartBeat","hinge","jackInTheBox","backInDown","backInLeft","backInRight","backInUp","backOutDown","backOutLeft","backOutRight","backOutUp","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInTopLeft","fadeInTopRight","fadeInBottomLeft","fadeInBottomRight","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flip","flipInX","flipInY","flipOutX","flipOutY","lightSpeedInRight","lightSpeedInLeft","lightSpeedOutRight","lightSpeedOutLeft","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideInDown","slideInLeft","slideInRight","slideInUp","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollIn","rollOut"],e=["backOutDown","backOutLeft","backOutRight","backOutUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flipOutX","flipOutY","lightSpeedOutRight","lightSpeedOutLeft","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],o=["none","delay-100ms","delay-200ms","delay-500ms","delay-1s","delay-2s","delay-3s","delay-4s","delay-5s"],n=["none","slow","slower","fast","faster"];window.addEventListener("load",(()=>{const i=document.querySelectorAll(".animated");for(const s of i){if(classes=s.classList,s.animationClasses=[],classes.add("o-anim-ready"),!a(s)){const e=t.find((t=>Array.from(classes).find((e=>e===t)))),a=o.find((t=>Array.from(classes).find((e=>e===t)))),i=n.find((t=>Array.from(classes).find((e=>e===t))));s.classList.add("hidden-animated"),e&&(s.animationClasses.push(e),s.classList.remove(e)),a&&(s.animationClasses.push(a),s.classList.remove(a)),i&&(s.animationClasses.push(i),s.classList.remove(i))}e.forEach((t=>{s.className.includes(t)&&s.addEventListener("animationend",(()=>{s.classList.remove(t)}))}))}window.addEventListener("scroll",(()=>{for(const t of i)t.getBoundingClientRect().top<=.95*window.innerHeight&&0<t.getBoundingClientRect().top&&t.animationClasses&&0<t.animationClasses.length&&(t.animationClasses.forEach((e=>t.classList.add(e))),t.classList.remove("hidden-animated"),delete t.animationClasses)}))}));const a=t=>{const e=window.scrollY||window.pageYOffset,o=t.getBoundingClientRect().top+e,n=e,a=e+window.innerHeight,i=o,s=o+t.clientHeight;return s>=n&&s<=a||i<=a&&i>=n}}();
build/animation/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives', 'wp-rich-text'), 'version' => 'd3df10ef0957067afc37e401f79456c0');
1
+ <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives', 'wp-rich-text'), 'version' => '0fec5b601e558df5cf0b');
build/animation/index.css CHANGED
@@ -7,6 +7,6 @@
7
  * Copyright (c) 2022 Animate.css
8
  */:root{--animate-duration:1s;--animate-delay:1s;--animate-repeat:1}.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated.repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animated.repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat)*2);animation-iteration-count:calc(var(--animate-repeat)*2)}.animated.repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat)*3);animation-iteration-count:calc(var(--animate-repeat)*3)}.animated.delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animated.delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay)*2);animation-delay:calc(var(--animate-delay)*2)}.animated.delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay)*3);animation-delay:calc(var(--animate-delay)*3)}.animated.delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay)*4);animation-delay:calc(var(--animate-delay)*4)}.animated.delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay)*5);animation-delay:calc(var(--animate-delay)*5)}.animated.faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration)/2);animation-duration:calc(var(--animate-duration)/2)}.animated.fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration)*.8);animation-duration:calc(var(--animate-duration)*.8)}.animated.slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2)}.animated.slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration)*3);animation-duration:calc(var(--animate-duration)*3)}@media (prefers-reduced-motion:reduce),print{.animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important}.animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95);-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95);-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}@keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}.shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translateX(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translateX(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translateX(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translateX(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translateX(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translateX(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translateX(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translateX(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translateX(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translateX(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translateX(0)}}.headShake{-webkit-animation-name:headShake;animation-name:headShake;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}@keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}.swing{-webkit-animation-name:swing;animation-name:swing;-webkit-transform-origin:top center;transform-origin:top center}@-webkit-keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skewX(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skewX(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skewX(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skewX(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skewX(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skewX(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skewX(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skewX(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skewX(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skewX(-.1953125deg) skewY(-.1953125deg)}}.jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.heartBeat{-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration)*1.3);animation-duration:calc(var(--animate-duration)*1.3);-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{opacity:.7;-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7)}80%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes backInDown{0%{opacity:.7;-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7)}80%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{opacity:.7;-webkit-transform:translateX(-2000px) scale(.7);transform:translateX(-2000px) scale(.7)}80%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes backInLeft{0%{opacity:.7;-webkit-transform:translateX(-2000px) scale(.7);transform:translateX(-2000px) scale(.7)}80%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{opacity:.7;-webkit-transform:translateX(2000px) scale(.7);transform:translateX(2000px) scale(.7)}80%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes backInRight{0%{opacity:.7;-webkit-transform:translateX(2000px) scale(.7);transform:translateX(2000px) scale(.7)}80%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{opacity:.7;-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7)}80%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes backInUp{0%{opacity:.7;-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7)}80%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:.7;-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7)}}@keyframes backOutDown{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:.7;-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7)}}.backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:.7;-webkit-transform:translateX(-2000px) scale(.7);transform:translateX(-2000px) scale(.7)}}@keyframes backOutLeft{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:.7;-webkit-transform:translateX(-2000px) scale(.7);transform:translateX(-2000px) scale(.7)}}.backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:.7;-webkit-transform:translateX(2000px) scale(.7);transform:translateX(2000px) scale(.7)}}@keyframes backOutRight{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:.7;-webkit-transform:translateX(2000px) scale(.7);transform:translateX(2000px) scale(.7)}}.backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:.7;-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7)}}@keyframes backOutUp{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:.7;-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7)}}.backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}.bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn)}40%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg)}50%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg)}80%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg)}to{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg)}}@keyframes flip{0%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn)}40%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg)}50%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg)}80%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg)}to{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg)}}.animated.flip{-webkit-animation-name:flip;animation-name:flip;-webkit-backface-visibility:visible;backface-visibility:visible}@-webkit-keyframes flipInX{0%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}40%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg)}60%{opacity:1;-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg)}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}40%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg)}60%{opacity:1;-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg)}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInX{-webkit-animation-name:flipInX;animation-name:flipInX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipInY{0%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0;-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg)}40%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg)}60%{opacity:1;-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg)}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0;-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg)}40%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg)}60%{opacity:1;-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg)}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInY{-webkit-animation-name:flipInY;animation-name:flipInY;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{opacity:1;-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg)}to{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{opacity:1;-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg)}to{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}}.flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{opacity:1;-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg)}to{opacity:0;-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg)}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{opacity:1;-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg)}to{opacity:0;-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg)}}.flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:flipOutY;animation-name:flipOutY;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes lightSpeedInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skewX(-30deg)}60%{opacity:1;-webkit-transform:skewX(20deg);transform:skewX(20deg)}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skewX(-30deg)}60%{opacity:1;-webkit-transform:skewX(20deg);transform:skewX(20deg)}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skewX(30deg)}60%{opacity:1;-webkit-transform:skewX(-20deg);transform:skewX(-20deg)}80%{-webkit-transform:skewX(5deg);transform:skewX(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skewX(30deg)}60%{opacity:1;-webkit-transform:skewX(-20deg);transform:skewX(-20deg)}80%{-webkit-transform:skewX(5deg);transform:skewX(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg)}}@keyframes lightSpeedOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg)}}.lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes lightSpeedOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skewX(-30deg)}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skewX(-30deg)}}.lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{opacity:0;-webkit-transform:rotate(-200deg);transform:rotate(-200deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rotateIn{0%{opacity:0;-webkit-transform:rotate(-200deg);transform:rotate(-200deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{opacity:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rotateInDownLeft{0%{opacity:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{opacity:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rotateInDownRight{0%{opacity:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{opacity:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rotateInUpLeft{0%{opacity:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{opacity:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rotateInUpRight{0%{opacity:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(200deg);transform:rotate(200deg)}}@keyframes rotateOut{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(200deg);transform:rotate(200deg)}}.rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}}@keyframes rotateOutDownLeft{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}}@keyframes rotateOutDownRight{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}}@keyframes rotateOutUpLeft{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(90deg);transform:rotate(90deg)}}@keyframes rotateOutUpRight{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(90deg);transform:rotate(90deg)}}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-transform:rotate(80deg);transform:rotate(80deg)}40%,80%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1;-webkit-transform:rotate(60deg);transform:rotate(60deg)}to{opacity:0;-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0)}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-transform:rotate(80deg);transform:rotate(80deg)}40%,80%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1;-webkit-transform:rotate(60deg);transform:rotate(60deg)}to{opacity:0;-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0)}}.hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}@-webkit-keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0)}}@keyframes zoomInDown{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0)}}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0)}}@keyframes zoomInLeft{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0)}}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0)}}@keyframes zoomInRight{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0)}}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0)}}@keyframes zoomInUp{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0)}}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0)}to{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0)}}@keyframes zoomOutDown{40%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0)}to{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0)}}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}@-webkit-keyframes zoomOutUp{40%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0)}to{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0)}}@keyframes zoomOutUp{40%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0)}to{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0)}}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:hidden}}@keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:hidden}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:hidden}}@keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:hidden}}.slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:hidden}}@keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:hidden}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:hidden}}@keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:hidden}}.slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}
9
 
10
- .animated.delay-100ms{-webkit-animation-delay:.1s;animation-delay:.1s}.animated.delay-200ms{-webkit-animation-delay:.2s;animation-delay:.2s}.animated.delay-500ms{-webkit-animation-delay:.5s;animation-delay:.5s}.o-animations-control__popover:not(.is-mobile).is-bottom{z-index:9999999}.o-animations-control__popover .components-popover__content{overflow-y:hidden}.o-animations-control__popover .components-menu-group{padding:7px}.o-animations-control__popover .components-popover__items{max-height:300px;overflow-y:auto}.o-animations-control__popover .components-popover__items button.is-selected{background:#f8f9f9}.o-animations-control__popover .components-popover__items button i{margin-right:5px}.o-animations-control__popover .components-popover__items .o-animations-control__category{font-weight:700}.o-animations-control .components-dropdown{display:flex}.o-animations-control .o-animations-control__button{background:transparent;border:1px solid #8d96a0;border-radius:4px;box-shadow:0 0 0 transparent;height:auto;line-height:28px;padding:0 12px 2px;position:relative;transition:box-shadow .1s linear;width:100%}.o-animations-control .o-animations-control__button.is-button{background:transparent}.o-animations-control .o-animations-control__button:hover{background:#fafafa;border-color:#999;box-shadow:inset 0 -1px 0 #999;color:#23282d;text-decoration:none}.o-animations-control .o-animations-control__button:focus{border:1px solid #000}.o-animations-control .o-animations-control__button:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid;content:"";display:block;height:0;margin-left:4px;margin-right:2px;pointer-events:none;position:absolute;right:8px;top:12px;width:0}.otter-animations-count-image{width:100%}@media screen{.hidden-animated{visibility:hidden}}@media(max-width:782px){.o-animations-control .o-animations-control__button{padding:5px 24px 5px 8px}.o-animations-control .o-animations-control__button:after{top:16px}}
11
  .o-control-panel-control{padding:10px 0}.o-control-panel-control .components-base-control__title{align-items:center;display:flex;justify-content:space-between}.o-control-panel-control .components-base-control__title label{padding:5px 0}.o-control-panel-control .components-base-control__title .floating-controls .components-dropdown{display:flex}.o-control-panel-control .components-base-control__title .floating-controls .components-dropdown button.is-tertiary{border:none;box-shadow:none;color:#1e1e1e}.o-control-panel-control .components-base-control__title .floating-controls .components-dropdown button.is-active,.o-control-panel-control .components-base-control__title .floating-controls .components-dropdown button.is-tertiary:hover{color:var(--wp-admin-theme-color)}.o-control-panel-control .components-base-control__title .floating-controls .components-dropdown button .dashicon{margin:2px}.otter-popover-settings{min-width:300px;overflow:hidden;padding:10px}.otter-popover-settings .components-button-group{padding-bottom:10px}
12
 
7
  * Copyright (c) 2022 Animate.css
8
  */:root{--animate-duration:1s;--animate-delay:1s;--animate-repeat:1}.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated.repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animated.repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat)*2);animation-iteration-count:calc(var(--animate-repeat)*2)}.animated.repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat)*3);animation-iteration-count:calc(var(--animate-repeat)*3)}.animated.delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animated.delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay)*2);animation-delay:calc(var(--animate-delay)*2)}.animated.delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay)*3);animation-delay:calc(var(--animate-delay)*3)}.animated.delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay)*4);animation-delay:calc(var(--animate-delay)*4)}.animated.delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay)*5);animation-delay:calc(var(--animate-delay)*5)}.animated.faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration)/2);animation-duration:calc(var(--animate-duration)/2)}.animated.fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration)*.8);animation-duration:calc(var(--animate-duration)*.8)}.animated.slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2)}.animated.slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration)*3);animation-duration:calc(var(--animate-duration)*3)}@media (prefers-reduced-motion:reduce),print{.animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important}.animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95);-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95);-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}@keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}.shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translateX(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translateX(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translateX(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translateX(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translateX(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translateX(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translateX(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translateX(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translateX(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translateX(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translateX(0)}}.headShake{-webkit-animation-name:headShake;animation-name:headShake;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}@keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}.swing{-webkit-animation-name:swing;animation-name:swing;-webkit-transform-origin:top center;transform-origin:top center}@-webkit-keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skewX(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skewX(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skewX(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skewX(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skewX(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skewX(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skewX(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skewX(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skewX(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skewX(-.1953125deg) skewY(-.1953125deg)}}.jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.heartBeat{-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration)*1.3);animation-duration:calc(var(--animate-duration)*1.3);-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{opacity:.7;-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7)}80%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes backInDown{0%{opacity:.7;-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7)}80%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{opacity:.7;-webkit-transform:translateX(-2000px) scale(.7);transform:translateX(-2000px) scale(.7)}80%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes backInLeft{0%{opacity:.7;-webkit-transform:translateX(-2000px) scale(.7);transform:translateX(-2000px) scale(.7)}80%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{opacity:.7;-webkit-transform:translateX(2000px) scale(.7);transform:translateX(2000px) scale(.7)}80%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes backInRight{0%{opacity:.7;-webkit-transform:translateX(2000px) scale(.7);transform:translateX(2000px) scale(.7)}80%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{opacity:.7;-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7)}80%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes backInUp{0%{opacity:.7;-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7)}80%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:.7;-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7)}}@keyframes backOutDown{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:.7;-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7)}}.backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:.7;-webkit-transform:translateX(-2000px) scale(.7);transform:translateX(-2000px) scale(.7)}}@keyframes backOutLeft{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:.7;-webkit-transform:translateX(-2000px) scale(.7);transform:translateX(-2000px) scale(.7)}}.backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:.7;-webkit-transform:translateX(2000px) scale(.7);transform:translateX(2000px) scale(.7)}}@keyframes backOutRight{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateX(0) scale(.7);transform:translateX(0) scale(.7)}to{opacity:.7;-webkit-transform:translateX(2000px) scale(.7);transform:translateX(2000px) scale(.7)}}.backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:.7;-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7)}}@keyframes backOutUp{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:.7;-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7)}to{opacity:.7;-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7)}}.backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}.bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn)}40%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg)}50%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg)}80%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg)}to{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg)}}@keyframes flip{0%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn)}40%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg)}50%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg)}80%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg)}to{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg)}}.animated.flip{-webkit-animation-name:flip;animation-name:flip;-webkit-backface-visibility:visible;backface-visibility:visible}@-webkit-keyframes flipInX{0%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}40%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg)}60%{opacity:1;-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg)}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}40%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg)}60%{opacity:1;-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg)}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInX{-webkit-animation-name:flipInX;animation-name:flipInX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipInY{0%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0;-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg)}40%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg)}60%{opacity:1;-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg)}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0;-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg)}40%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg)}60%{opacity:1;-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg)}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInY{-webkit-animation-name:flipInY;animation-name:flipInY;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{opacity:1;-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg)}to{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{opacity:1;-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg)}to{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}}.flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{opacity:1;-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg)}to{opacity:0;-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg)}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{opacity:1;-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg)}to{opacity:0;-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg)}}.flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:flipOutY;animation-name:flipOutY;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes lightSpeedInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skewX(-30deg)}60%{opacity:1;-webkit-transform:skewX(20deg);transform:skewX(20deg)}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skewX(-30deg)}60%{opacity:1;-webkit-transform:skewX(20deg);transform:skewX(20deg)}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skewX(30deg)}60%{opacity:1;-webkit-transform:skewX(-20deg);transform:skewX(-20deg)}80%{-webkit-transform:skewX(5deg);transform:skewX(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skewX(30deg)}60%{opacity:1;-webkit-transform:skewX(-20deg);transform:skewX(-20deg)}80%{-webkit-transform:skewX(5deg);transform:skewX(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg)}}@keyframes lightSpeedOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg)}}.lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes lightSpeedOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skewX(-30deg)}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skewX(-30deg)}}.lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{opacity:0;-webkit-transform:rotate(-200deg);transform:rotate(-200deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rotateIn{0%{opacity:0;-webkit-transform:rotate(-200deg);transform:rotate(-200deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{opacity:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rotateInDownLeft{0%{opacity:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{opacity:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rotateInDownRight{0%{opacity:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{opacity:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rotateInUpLeft{0%{opacity:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{opacity:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rotateInUpRight{0%{opacity:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(200deg);transform:rotate(200deg)}}@keyframes rotateOut{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(200deg);transform:rotate(200deg)}}.rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}}@keyframes rotateOutDownLeft{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}}@keyframes rotateOutDownRight{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}}@keyframes rotateOutUpLeft{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(90deg);transform:rotate(90deg)}}@keyframes rotateOutUpRight{0%{opacity:1}to{opacity:0;-webkit-transform:rotate(90deg);transform:rotate(90deg)}}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-transform:rotate(80deg);transform:rotate(80deg)}40%,80%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1;-webkit-transform:rotate(60deg);transform:rotate(60deg)}to{opacity:0;-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0)}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-transform:rotate(80deg);transform:rotate(80deg)}40%,80%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1;-webkit-transform:rotate(60deg);transform:rotate(60deg)}to{opacity:0;-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0)}}.hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}@-webkit-keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0)}}@keyframes zoomInDown{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0)}}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0)}}@keyframes zoomInLeft{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0)}}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0)}}@keyframes zoomInRight{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0)}}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0)}}@keyframes zoomInUp{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0)}}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0)}to{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0)}}@keyframes zoomOutDown{40%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0)}to{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0)}}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}@-webkit-keyframes zoomOutUp{40%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0)}to{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0)}}@keyframes zoomOutUp{40%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0)}to{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0)}}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:hidden}}@keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:hidden}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:hidden}}@keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:hidden}}.slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:hidden}}@keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:hidden}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:hidden}}@keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:hidden}}.slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}
9
 
10
+ .animated.delay-100ms{-webkit-animation-delay:.1s;animation-delay:.1s}.animated.delay-200ms{-webkit-animation-delay:.2s;animation-delay:.2s}.animated.delay-500ms{-webkit-animation-delay:.5s;animation-delay:.5s}.o-animations-control__popover:not(.is-mobile).is-bottom{z-index:9999999}.o-animations-control__popover .components-popover__content{overflow-y:hidden}.o-animations-control__popover .components-menu-group{padding:7px}.o-animations-control__popover .components-popover__items{max-height:300px;overflow-y:auto}.o-animations-control__popover .components-popover__items button.is-selected{background:#f8f9f9}.o-animations-control__popover .components-popover__items button i{margin-right:5px}.o-animations-control__popover .components-popover__items .o-animations-control__category{font-weight:700}.o-animations-control .components-dropdown{display:flex}.o-animations-control .o-animations-control__button{background:transparent;border:1px solid #8d96a0;border-radius:4px;box-shadow:0 0 0 transparent;height:auto;line-height:28px;padding:0 12px 2px;position:relative;transition:box-shadow .1s linear;width:100%}.o-animations-control .o-animations-control__button.is-button{background:transparent}.o-animations-control .o-animations-control__button:hover{background:#fafafa;border-color:#999;box-shadow:inset 0 -1px 0 #999;color:#23282d;text-decoration:none}.o-animations-control .o-animations-control__button:focus{border:1px solid #000}.o-animations-control .o-animations-control__button:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid;content:"";display:block;height:0;margin-left:4px;margin-right:2px;pointer-events:none;position:absolute;right:8px;top:12px;width:0}.otter-animations-count-image{width:100%}@media screen{.hidden-animated{visibility:hidden}}@media(max-width:782px){.o-animations-control .o-animations-control__button{padding:5px 24px 5px 8px}.o-animations-control .o-animations-control__button:after{top:16px}}.block-editor .animated,.block-editor-block-list__layout .animated{-webkit-animation-play-state:running;animation-play-state:running;visibility:initial}.customize-control-sidebar_block_editor .animated{-webkit-animation:none;animation:none}
11
  .o-control-panel-control{padding:10px 0}.o-control-panel-control .components-base-control__title{align-items:center;display:flex;justify-content:space-between}.o-control-panel-control .components-base-control__title label{padding:5px 0}.o-control-panel-control .components-base-control__title .floating-controls .components-dropdown{display:flex}.o-control-panel-control .components-base-control__title .floating-controls .components-dropdown button.is-tertiary{border:none;box-shadow:none;color:#1e1e1e}.o-control-panel-control .components-base-control__title .floating-controls .components-dropdown button.is-active,.o-control-panel-control .components-base-control__title .floating-controls .components-dropdown button.is-tertiary:hover{color:var(--wp-admin-theme-color)}.o-control-panel-control .components-base-control__title .floating-controls .components-dropdown button .dashicon{margin:2px}.otter-popover-settings{min-width:300px;overflow:hidden;padding:10px}.otter-popover-settings .components-button-group{padding-bottom:10px}
12
 
build/animation/index.js CHANGED
@@ -1 +1 @@
1
- !function(){var e={184:function(e,t){var l;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var l=arguments[t];if(l){var a=typeof l;if("string"===a||"number"===a)e.push(l);else if(Array.isArray(l)){if(l.length){var r=n.apply(null,l);r&&e.push(r)}}else if("object"===a)if(l.toString===Object.prototype.toString)for(var i in l)o.call(l,i)&&l[i]&&e.push(i);else e.push(l.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(l=function(){return n}.apply(t,[]))||(e.exports=l)}()}},t={};function l(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,l),a.exports}l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");o.length&&(e=o[o.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e}(),function(){"use strict";var e=window.wp.element,t=window.wp.i18n,o=window.wp.blocks,n=window.wp.components,a=window.wp.compose,r=window.wp.blockEditor,i=window.wp.hooks,c=window.wp.data,s=window.wp.richText;const u=[{label:(0,t.__)("None","otter-blocks"),value:"none"},{label:(0,t.__)("Back In Down","otter-blocks"),value:"backInDown"},{label:(0,t.__)("Back In Left","otter-blocks"),value:"backInLeft"},{label:(0,t.__)("Back In Right","otter-blocks"),value:"backInRight"},{label:(0,t.__)("Back In Up","otter-blocks"),value:"backInUp"},{label:(0,t.__)("Bounce","otter-blocks"),value:"bounce"},{label:(0,t.__)("Bounce In","otter-blocks"),value:"bounceIn"},{label:(0,t.__)("Bounce In Down","otter-blocks"),value:"bounceInDown"},{label:(0,t.__)("Bounce In Left","otter-blocks"),value:"bounceInLeft"},{label:(0,t.__)("Bounce In Right","otter-blocks"),value:"bounceInRight"},{label:(0,t.__)("Bounce In Up","otter-blocks"),value:"bounceInUp"},{label:(0,t.__)("Fade In","otter-blocks"),value:"fadeIn"},{label:(0,t.__)("Fade In Down","otter-blocks"),value:"fadeInDown"},{label:(0,t.__)("Fade In Down Big","otter-blocks"),value:"fadeInDownBig"},{label:(0,t.__)("Fade In Left","otter-blocks"),value:"fadeInLeft"},{label:(0,t.__)("Fade In Left Big","otter-blocks"),value:"fadeInLeftBig"},{label:(0,t.__)("Fade In Right","otter-blocks"),value:"fadeInRight"},{label:(0,t.__)("Fade In Right Big","otter-blocks"),value:"fadeInRightBig"},{label:(0,t.__)("Fade In Up","otter-blocks"),value:"fadeInUp"},{label:(0,t.__)("Fade In Top Left","otter-blocks"),value:"fadeInTopLeft"},{label:(0,t.__)("Fade In Top Right","otter-blocks"),value:"fadeInTopRight"},{label:(0,t.__)("Fade In Bottom Left","otter-blocks"),value:"fadeInBottomLeft"},{label:(0,t.__)("Fade In Bottom Right","otter-blocks"),value:"fadeInBottomRight"},{label:(0,t.__)("Flip","otter-blocks"),value:"flip"},{label:(0,t.__)("Flip In X","otter-blocks"),value:"flipInX"},{label:(0,t.__)("Flip In Y","otter-blocks"),value:"flipInY"},{label:(0,t.__)("Rotate In","otter-blocks"),value:"rotateIn"},{label:(0,t.__)("Rotate In Down Left","otter-blocks"),value:"rotateInDownLeft"},{label:(0,t.__)("Rotate In Down Right","otter-blocks"),value:"rotateInDownRight"},{label:(0,t.__)("Rotate In Up Left","otter-blocks"),value:"rotateInUpLeft"},{label:(0,t.__)("Rotate In Up Right","otter-blocks"),value:"rotateInUpRight"},{label:(0,t.__)("Slide In Down","otter-blocks"),value:"slideInDown"},{label:(0,t.__)("Slide In Left","otter-blocks"),value:"slideInLeft"},{label:(0,t.__)("Slide In Right","otter-blocks"),value:"slideInRight"},{label:(0,t.__)("Slide In Up","otter-blocks"),value:"slideInUp"},{label:(0,t.__)("Zoom In","otter-blocks"),value:"zoomIn"},{label:(0,t.__)("Zoom In Down","otter-blocks"),value:"zoomInDown"},{label:(0,t.__)("Zoom In Left","otter-blocks"),value:"zoomInLeft"},{label:(0,t.__)("Zoom In Right","otter-blocks"),value:"zoomInRight"},{label:(0,t.__)("Zoom In Up","otter-blocks"),value:"zoomInUp"},{label:(0,t.__)("Roll In","otter-blocks"),value:"rollIn"},{label:(0,t.__)("Light Speed In Right","otter-blocks"),value:"lightSpeedInRight"},{label:(0,t.__)("Light Speed In Left","otter-blocks"),value:"lightSpeedInLeft"},{label:(0,t.__)("Flash","otter-blocks"),value:"flash"},{label:(0,t.__)("Pulse","otter-blocks"),value:"pulse"},{label:(0,t.__)("Rubber Band","otter-blocks"),value:"rubberBand"},{label:(0,t.__)("Shake X","otter-blocks"),value:"shakeX"},{label:(0,t.__)("Shake Y","otter-blocks"),value:"shakeY"},{label:(0,t.__)("Head Shake","otter-blocks"),value:"headShake"},{label:(0,t.__)("Swing","otter-blocks"),value:"swing"},{label:(0,t.__)("TaDa","otter-blocks"),value:"tada"},{label:(0,t.__)("Wobble","otter-blocks"),value:"wobble"},{label:(0,t.__)("Jello","otter-blocks"),value:"jello"},{label:(0,t.__)("Heart Beat","otter-blocks"),value:"heartBeat"},{label:(0,t.__)("Hinge","otter-blocks"),value:"hinge"},{label:(0,t.__)("Jack In The Box","otter-blocks"),value:"jackInTheBox"}],b=[{label:(0,t.__)("Backing","otter-blocks"),value:"backInDown"},{label:(0,t.__)("Bouncing","otter-blocks"),value:"bounce"},{label:(0,t.__)("Fading","otter-blocks"),value:"fadeIn"},{label:(0,t.__)("Flipping","otter-blocks"),value:"flip"},{label:(0,t.__)("Rotating","otter-blocks"),value:"rotateIn"},{label:(0,t.__)("Sliding","otter-blocks"),value:"slideInDown"},{label:(0,t.__)("Zooming","otter-blocks"),value:"zoomIn"},{label:(0,t.__)("Rolling","otter-blocks"),value:"rollIn"},{label:(0,t.__)("Light Speed","otter-blocks"),value:"lightSpeedInRight"},{label:(0,t.__)("Other","otter-blocks"),value:"flash"}],m=["backOutDown","backOutLeft","backOutRight","backOutUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flipOutX","flipOutY","lightSpeedOutRight","lightSpeedOutLeft","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],d=[{label:(0,t.__)("None","otter-blocks"),value:"none"},{label:(0,t.__)("100 Milliseconds","otter-blocks"),value:"delay-100ms"},{label:(0,t.__)("200 Milliseconds","otter-blocks"),value:"delay-200ms"},{label:(0,t.__)("500 Milliseconds","otter-blocks"),value:"delay-500ms"},{label:(0,t.__)("One Second","otter-blocks"),value:"delay-1s"},{label:(0,t.__)("Two Second","otter-blocks"),value:"delay-2s"},{label:(0,t.__)("Three Second","otter-blocks"),value:"delay-3s"},{label:(0,t.__)("Four Second","otter-blocks"),value:"delay-4s"},{label:(0,t.__)("Five Second","otter-blocks"),value:"delay-5s"}],p=[{label:(0,t.__)("Default","otter-blocks"),value:"none"},{label:(0,t.__)("Slow","otter-blocks"),value:"slow"},{label:(0,t.__)("Slower","otter-blocks"),value:"slower"},{label:(0,t.__)("Fast","otter-blocks"),value:"fast"},{label:(0,t.__)("Faster","otter-blocks"),value:"faster"}];var g=function l(o){let{animationsList:r,updateAnimation:i,currentAnimationLabel:c,setCurrentAnimationLabel:s}=o;const u=(0,a.useInstanceId)(l),[m,_]=(0,e.useState)(""),[d,p]=(0,e.useState)(!1),g=`inspector-o-animations-control-${u}`;return(0,e.createElement)(n.BaseControl,{label:(0,t.__)("Animation","otter-blocks"),id:g},(0,e.createElement)(n.Dropdown,{contentClassName:"o-animations-control__popover",position:"bottom center",renderToggle:t=>{let{isOpen:l,onToggle:o}=t;return(0,e.createElement)(n.Button,{className:"o-animations-control__button",id:g,onClick:o,"aria-expanded":l},c)},renderContent:l=>{let{onToggle:o}=l;return(0,e.createElement)(n.MenuGroup,{label:(0,t.__)("Animations","otter-blocks")},(0,e.createElement)(n.TextControl,{placeholder:(0,t.__)("Search","otter-blocks"),value:m,onChange:e=>{_(e),p(!1)}}),(0,e.createElement)("div",{className:"components-popover__items"},r.map((t=>(0,e.createElement)(e.Fragment,null,""===m&&b.map((l=>l.value===t.value?(0,e.createElement)("div",{className:"o-animations-control__category"},l.label):"")),((t,l)=>{let o=!0;return m&&m.toLowerCase().split(" ").forEach((e=>{t.label.toLowerCase().includes(e)||(o=!1)})),o&&!d&&p(!0),o&&(0,e.createElement)(n.MenuItem,{className:c===t.label?"is-selected":"",onClick:()=>{s(t.label),i(t.value),l()}},t.label)})(t,o)))),!d&&(0,e.createElement)("div",null,(0,t.__)("Nothing found. Try searching for something else!","otter-blocks"))))}}))},v=l(184),f=l.n(v),k=function(t){let{icon:l,size:o=24,...n}=t;return(0,e.cloneElement)(l,{width:o,height:o,...n})},h=window.wp.primitives,w=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})),I=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));const E=l=>{let{label:o,attributes:r,setAttributes:i,resetValues:c,onClick:s,children:u}=l;(0,e.useEffect)((()=>{for(const e in c){if(c[e]!==r[e])return _(!0);_(!1)}}),[r]);const b=(0,a.useInstanceId)(E),[m,_]=(0,e.useState)(!1),d=`inspector-control-panel-control-${b}`;return(0,e.createElement)("div",{className:"o-control-panel-control"},(0,e.createElement)("div",{className:"components-base-control__field"},(0,e.createElement)("div",{className:"components-base-control__title"},(0,e.createElement)("label",{className:"components-base-control__label",htmlFor:d},o),(0,e.createElement)("div",{className:"floating-controls"},(0,e.createElement)(n.Dropdown,{position:"top left",headerTitle:o,expandOnMobile:!0,renderToggle:l=>{let{isOpen:a,onToggle:r}=l;return(0,e.createElement)(e.Fragment,null,m&&(0,e.createElement)(n.Button,{icon:(0,e.createElement)(k,{icon:w}),label:(0,t.__)("Reset to default","otter-blocks"),showTooltip:!0,isTertiary:!0,onClick:()=>i({...c})}),(0,e.createElement)(n.Button,{id:d,icon:I,label:o,showTooltip:!0,onClick:()=>{r(),s&&s()},"aria-expanded":a,className:f()({"is-active":m})}))},renderContent:()=>(0,e.createElement)("div",{className:"otter-popover-settings"},u)})))))};var y=E,S=l.p+"images/count-animation.1151d25d.png",O=l.p+"images/typing-animation.d84cccd1.png";const B="count",L="typing",R="default";var F=(0,e.memo)((function(l){let{clientId:a,attributes:r,setAttributes:i}=l;(0,e.useEffect)((()=>{let e;if(r.className){e=r.className,e=e.split(" ");let t=Array.from(u).find((t=>e.find((e=>e===t.value))));const l=Array.from(d).find((t=>e.find((e=>e===t.value)))),o=Array.from(p).find((t=>e.find((e=>e===t.value)))),n=Array.from(d).find((t=>e.find((e=>e===`o-count-${t.value}`)))),a=Array.from(p).find((t=>e.find((e=>e===`o-count-${t.value}`)))),i=Array.from(d).find((t=>e.find((e=>e===`o-typing-${t.value}`)))),c=Array.from(p).find((t=>e.find((e=>e===`o-typing-${t.value}`))));k(t?t.value:"none"),w(l?l.value:"none"),E(o?o.value:"none"),C(t?t.label:"none"),A(n?n.value:"none"),D(a?a.value:"none"),U(i?i.value:"none"),$(c?c.value:"none")}}),[]);const{hasCountFormat:b,hasTypingFormat:v}=(0,c.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),l=(0,o.serialize)(t(a)),n=(0,s.create)({html:l});let r=!1,i=!1;return n.formats&&(r=n.formats.some((e=>!0===e.some((e=>"themeisle-blocks/count-animation"===e.type)))),i=n.formats.some((e=>!0===e.some((e=>"themeisle-blocks/typing-animation"===e.type))))),{hasCountFormat:r,hasTypingFormat:i}}),[]),[f,k]=(0,e.useState)("none"),[h,w]=(0,e.useState)("none"),[I,E]=(0,e.useState)("none"),[F,C]=(0,e.useState)((0,t.__)("None","otter-blocks")),[T,A]=(0,e.useState)("none"),[N,D]=(0,e.useState)("none"),[x,U]=(0,e.useState)("none"),[z,$]=(0,e.useState)("none"),j=(e,t,l,o)=>{let n;switch(e){case B:n="o-count-";break;case L:n="o-typing-";break;case R:n=""}const a=n+t,c="none"!==l?n+l:"";let s;r.className?(s=r.className,s=s.split(" "),s.find((e=>e===a))?s=s.join(" ").replace(a,c):(s.push(c),s=s.join(" ").trim())):s=c,s=s.replace(/\s+/g," "),""===s&&(s=void 0),i({className:s}),null==o||o()};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(y,{label:(0,t.__)("Loading Animations","otter-blocks")},(0,e.createElement)("div",{className:"o-animations-control"},(0,e.createElement)(g,{animationsList:u,updateAnimation:e=>{let t,l="none"!==e?e:"";if(r.className){t=r.className,t=t.split(" ");const e=t.find((e=>e===f));t.find((e=>"animated"===e))||t.push("animated"),e?t=t.join(" ").replace(f,l):(t.push(l),t=t.join(" "))}else t=`animated ${l}`;"none"===e&&(t=t.replace("animated","").replace(h,"").replace(I,""),w("none"),E("none")),t=t.replace(/\s+/g," ").trim(),""===t&&(t=void 0),k(e),i({className:t});let o=document.querySelector(`#block-${a} .animated`)||document.querySelector(`#block-${a}.animated`);o&&m.forEach((e=>{o.className.includes(e)&&o.addEventListener("animationend",(()=>{o.classList.remove(e),o.addEventListener("animationstart",(()=>{o.classList.remove(e)}))}))}))},currentAnimationLabel:F,setCurrentAnimationLabel:C}),"none"!==f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:h||"none",options:d,onChange:e=>j(R,h,e,(()=>w(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:I||"none",options:p,onChange:e=>j(R,I,e,(()=>E(e)))})))),(0,e.createElement)(y,{label:(0,t.__)("Count Animations","otter-blocks")},b?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:T||"none",options:d,onChange:e=>j(B,T,e,(()=>A(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:N||"none",options:p,onChange:e=>j(B,N,e,(()=>$(e)))})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{src:O,alt:_("Using Count Animation in the Block Editor","otter-blocks"),className:"otter-animations-count-image"}),(0,e.createElement)("p",null,(0,t.__)("You can add counting animation from the format toolbar of this block. Once you have added them, you will see customization settings here.","otter-blocks")),(0,e.createElement)("p",null,(0,t.__)("Note: This feature is not available in all the blocks.","otter-blocks")))),(0,e.createElement)(y,{label:(0,t.__)("Typing Animations","otter-blocks")},v?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:x||"none",options:d,onChange:e=>j(L,x,e,(()=>U(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:z||"none",options:p,onChange:e=>j(L,z,e,(()=>$(e)))})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{src:S,alt:_("Using Typing Animation in the Block Editor","otter-blocks"),className:"otter-animations-count-image"}),(0,e.createElement)("p",null,(0,t.__)("You can add typing animation from the format toolbar of this block. Once you have added them, you will see customization settings here.","otter-blocks")),(0,e.createElement)("p",null,(0,t.__)("Note: This feature is not available in all the blocks.","otter-blocks")))))})),C=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"}));const T="themeisle-blocks/count-animation";(0,s.registerFormatType)(T,{name:T,title:(0,t.__)("Count Animation","otter-blocks"),tagName:"o-anim-count",className:null,edit:l=>{let{isActive:o,value:n,onChange:a}=l;const i=/^\$?[\d,]+(\.\d*)?$/;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RichTextToolbarButton,{icon:C,title:(0,t.__)("Count Animation","otter-blocks"),isDisabled:!o&&null===i.exec(n.text.substring(n.start,n.end)),onClick:()=>{(o||!o&&null!==i.exec(n.text.substring(n.start,n.end)))&&a((0,s.toggleFormat)(n,{type:T}))},isActive:o}))}});const A="themeisle-blocks/typing-animation";(0,s.registerFormatType)(A,{name:A,title:(0,t.__)("Typing Animation","otter-blocks"),tagName:"o-anim-typing",className:null,edit:l=>{let{isActive:o,value:n,onChange:a}=l;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RichTextToolbarButton,{icon:C,title:(0,t.__)("Typing Animation","otter-blocks"),onClick:()=>{a((0,s.toggleFormat)(n,{type:A}))},isActive:o}))}});const N=["themeisle-blocks/popup"],D=(0,a.createHigherOrderComponent)((l=>a=>(0,o.hasBlockSupport)(a.name,"customClassName",!0)&&a.isSelected&&!N.includes(a.name)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l,a),(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(n.PanelBody,{title:(0,t.__)("Animations","otter-blocks"),initialOpen:!1,className:"o-is-new"},(0,e.createElement)(F,{clientId:a.clientId,setAttributes:a.setAttributes,attributes:a.attributes}),(0,i.applyFilters)("otter.poweredBy","")))):(0,e.createElement)(l,a)),"withInspectorControl");(0,i.addFilter)("editor.BlockEdit","themeisle-custom-css/with-inspector-controls",D)}()}();
1
+ !function(){var e={184:function(e,t){var l;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var l=arguments[t];if(l){var a=typeof l;if("string"===a||"number"===a)e.push(l);else if(Array.isArray(l)){if(l.length){var r=n.apply(null,l);r&&e.push(r)}}else if("object"===a)if(l.toString===Object.prototype.toString)for(var i in l)o.call(l,i)&&l[i]&&e.push(i);else e.push(l.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(l=function(){return n}.apply(t,[]))||(e.exports=l)}()}},t={};function l(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,l),a.exports}l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");o.length&&(e=o[o.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e}(),function(){"use strict";var e=window.wp.element,t=window.wp.i18n,o=window.wp.blocks,n=window.wp.components,a=window.wp.compose,r=window.wp.blockEditor,i=window.wp.hooks,c=window.wp.data,s=window.wp.richText;const u=[{label:(0,t.__)("None","otter-blocks"),value:"none"},{label:(0,t.__)("Back In Down","otter-blocks"),value:"backInDown"},{label:(0,t.__)("Back In Left","otter-blocks"),value:"backInLeft"},{label:(0,t.__)("Back In Right","otter-blocks"),value:"backInRight"},{label:(0,t.__)("Back In Up","otter-blocks"),value:"backInUp"},{label:(0,t.__)("Bounce","otter-blocks"),value:"bounce"},{label:(0,t.__)("Bounce In","otter-blocks"),value:"bounceIn"},{label:(0,t.__)("Bounce In Down","otter-blocks"),value:"bounceInDown"},{label:(0,t.__)("Bounce In Left","otter-blocks"),value:"bounceInLeft"},{label:(0,t.__)("Bounce In Right","otter-blocks"),value:"bounceInRight"},{label:(0,t.__)("Bounce In Up","otter-blocks"),value:"bounceInUp"},{label:(0,t.__)("Fade In","otter-blocks"),value:"fadeIn"},{label:(0,t.__)("Fade In Down","otter-blocks"),value:"fadeInDown"},{label:(0,t.__)("Fade In Down Big","otter-blocks"),value:"fadeInDownBig"},{label:(0,t.__)("Fade In Left","otter-blocks"),value:"fadeInLeft"},{label:(0,t.__)("Fade In Left Big","otter-blocks"),value:"fadeInLeftBig"},{label:(0,t.__)("Fade In Right","otter-blocks"),value:"fadeInRight"},{label:(0,t.__)("Fade In Right Big","otter-blocks"),value:"fadeInRightBig"},{label:(0,t.__)("Fade In Up","otter-blocks"),value:"fadeInUp"},{label:(0,t.__)("Fade In Top Left","otter-blocks"),value:"fadeInTopLeft"},{label:(0,t.__)("Fade In Top Right","otter-blocks"),value:"fadeInTopRight"},{label:(0,t.__)("Fade In Bottom Left","otter-blocks"),value:"fadeInBottomLeft"},{label:(0,t.__)("Fade In Bottom Right","otter-blocks"),value:"fadeInBottomRight"},{label:(0,t.__)("Flip","otter-blocks"),value:"flip"},{label:(0,t.__)("Flip In X","otter-blocks"),value:"flipInX"},{label:(0,t.__)("Flip In Y","otter-blocks"),value:"flipInY"},{label:(0,t.__)("Rotate In","otter-blocks"),value:"rotateIn"},{label:(0,t.__)("Rotate In Down Left","otter-blocks"),value:"rotateInDownLeft"},{label:(0,t.__)("Rotate In Down Right","otter-blocks"),value:"rotateInDownRight"},{label:(0,t.__)("Rotate In Up Left","otter-blocks"),value:"rotateInUpLeft"},{label:(0,t.__)("Rotate In Up Right","otter-blocks"),value:"rotateInUpRight"},{label:(0,t.__)("Slide In Down","otter-blocks"),value:"slideInDown"},{label:(0,t.__)("Slide In Left","otter-blocks"),value:"slideInLeft"},{label:(0,t.__)("Slide In Right","otter-blocks"),value:"slideInRight"},{label:(0,t.__)("Slide In Up","otter-blocks"),value:"slideInUp"},{label:(0,t.__)("Zoom In","otter-blocks"),value:"zoomIn"},{label:(0,t.__)("Zoom In Down","otter-blocks"),value:"zoomInDown"},{label:(0,t.__)("Zoom In Left","otter-blocks"),value:"zoomInLeft"},{label:(0,t.__)("Zoom In Right","otter-blocks"),value:"zoomInRight"},{label:(0,t.__)("Zoom In Up","otter-blocks"),value:"zoomInUp"},{label:(0,t.__)("Roll In","otter-blocks"),value:"rollIn"},{label:(0,t.__)("Light Speed In Right","otter-blocks"),value:"lightSpeedInRight"},{label:(0,t.__)("Light Speed In Left","otter-blocks"),value:"lightSpeedInLeft"},{label:(0,t.__)("Flash","otter-blocks"),value:"flash"},{label:(0,t.__)("Pulse","otter-blocks"),value:"pulse"},{label:(0,t.__)("Rubber Band","otter-blocks"),value:"rubberBand"},{label:(0,t.__)("Shake X","otter-blocks"),value:"shakeX"},{label:(0,t.__)("Shake Y","otter-blocks"),value:"shakeY"},{label:(0,t.__)("Head Shake","otter-blocks"),value:"headShake"},{label:(0,t.__)("Swing","otter-blocks"),value:"swing"},{label:(0,t.__)("TaDa","otter-blocks"),value:"tada"},{label:(0,t.__)("Wobble","otter-blocks"),value:"wobble"},{label:(0,t.__)("Jello","otter-blocks"),value:"jello"},{label:(0,t.__)("Heart Beat","otter-blocks"),value:"heartBeat"},{label:(0,t.__)("Hinge","otter-blocks"),value:"hinge"},{label:(0,t.__)("Jack In The Box","otter-blocks"),value:"jackInTheBox"}],b=[{label:(0,t.__)("Backing","otter-blocks"),value:"backInDown"},{label:(0,t.__)("Bouncing","otter-blocks"),value:"bounce"},{label:(0,t.__)("Fading","otter-blocks"),value:"fadeIn"},{label:(0,t.__)("Flipping","otter-blocks"),value:"flip"},{label:(0,t.__)("Rotating","otter-blocks"),value:"rotateIn"},{label:(0,t.__)("Sliding","otter-blocks"),value:"slideInDown"},{label:(0,t.__)("Zooming","otter-blocks"),value:"zoomIn"},{label:(0,t.__)("Rolling","otter-blocks"),value:"rollIn"},{label:(0,t.__)("Light Speed","otter-blocks"),value:"lightSpeedInRight"},{label:(0,t.__)("Other","otter-blocks"),value:"flash"}],m=["backOutDown","backOutLeft","backOutRight","backOutUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flipOutX","flipOutY","lightSpeedOutRight","lightSpeedOutLeft","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],d=[{label:(0,t.__)("None","otter-blocks"),value:"none"},{label:(0,t.__)("100 Milliseconds","otter-blocks"),value:"delay-100ms"},{label:(0,t.__)("200 Milliseconds","otter-blocks"),value:"delay-200ms"},{label:(0,t.__)("500 Milliseconds","otter-blocks"),value:"delay-500ms"},{label:(0,t.__)("One Second","otter-blocks"),value:"delay-1s"},{label:(0,t.__)("Two Second","otter-blocks"),value:"delay-2s"},{label:(0,t.__)("Three Second","otter-blocks"),value:"delay-3s"},{label:(0,t.__)("Four Second","otter-blocks"),value:"delay-4s"},{label:(0,t.__)("Five Second","otter-blocks"),value:"delay-5s"}],p=[{label:(0,t.__)("Slow","otter-blocks"),value:"slow"},{label:(0,t.__)("Slower","otter-blocks"),value:"slower"},{label:(0,t.__)("Default","otter-blocks"),value:"none"},{label:(0,t.__)("Fast","otter-blocks"),value:"fast"},{label:(0,t.__)("Faster","otter-blocks"),value:"faster"}];var g=function l(o){let{animationsList:r,updateAnimation:i,currentAnimationLabel:c,setCurrentAnimationLabel:s}=o;const u=(0,a.useInstanceId)(l),[m,_]=(0,e.useState)(""),[d,p]=(0,e.useState)(!1),g=`inspector-o-animations-control-${u}`;return(0,e.createElement)(n.BaseControl,{label:(0,t.__)("Animation","otter-blocks"),id:g},(0,e.createElement)(n.Dropdown,{contentClassName:"o-animations-control__popover",position:"bottom center",renderToggle:t=>{let{isOpen:l,onToggle:o}=t;return(0,e.createElement)(n.Button,{className:"o-animations-control__button",id:g,onClick:o,"aria-expanded":l},c)},renderContent:l=>{let{onToggle:o}=l;return(0,e.createElement)(n.MenuGroup,{label:(0,t.__)("Animations","otter-blocks")},(0,e.createElement)(n.TextControl,{placeholder:(0,t.__)("Search","otter-blocks"),value:m,onChange:e=>{_(e),p(!1)}}),(0,e.createElement)("div",{className:"components-popover__items"},r.map((t=>(0,e.createElement)(e.Fragment,null,""===m&&b.map((l=>l.value===t.value?(0,e.createElement)("div",{className:"o-animations-control__category"},l.label):"")),((t,l)=>{let o=!0;return m&&m.toLowerCase().split(" ").forEach((e=>{t.label.toLowerCase().includes(e)||(o=!1)})),o&&!d&&p(!0),o&&(0,e.createElement)(n.MenuItem,{className:c===t.label?"is-selected":"",onClick:()=>{s(t.label),i(t.value),l()}},t.label)})(t,o)))),!d&&(0,e.createElement)("div",null,(0,t.__)("Nothing found. Try searching for something else!","otter-blocks"))))}}))},v=l(184),f=l.n(v),k=function(t){let{icon:l,size:o=24,...n}=t;return(0,e.cloneElement)(l,{width:o,height:o,...n})},h=window.wp.primitives,w=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})),I=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));const E=l=>{let{label:o,attributes:r,setAttributes:i,resetValues:c,onClick:s,children:u}=l;(0,e.useEffect)((()=>{for(const e in c){if(c[e]!==r[e])return _(!0);_(!1)}}),[r]);const b=(0,a.useInstanceId)(E),[m,_]=(0,e.useState)(!1),d=`inspector-control-panel-control-${b}`;return(0,e.createElement)("div",{className:"o-control-panel-control"},(0,e.createElement)("div",{className:"components-base-control__field"},(0,e.createElement)("div",{className:"components-base-control__title"},(0,e.createElement)("label",{className:"components-base-control__label",htmlFor:d},o),(0,e.createElement)("div",{className:"floating-controls"},(0,e.createElement)(n.Dropdown,{position:"top left",headerTitle:o,expandOnMobile:!0,renderToggle:l=>{let{isOpen:a,onToggle:r}=l;return(0,e.createElement)(e.Fragment,null,m&&(0,e.createElement)(n.Button,{icon:(0,e.createElement)(k,{icon:w}),label:(0,t.__)("Reset to default","otter-blocks"),showTooltip:!0,isTertiary:!0,onClick:()=>i({...c})}),(0,e.createElement)(n.Button,{id:d,icon:I,label:o,showTooltip:!0,onClick:()=>{r(),s&&s()},"aria-expanded":a,className:f()({"is-active":m})}))},renderContent:()=>(0,e.createElement)("div",{className:"otter-popover-settings"},u)})))))};var y=E,S=l.p+"images/count-animation.1151d25d.png",O=l.p+"images/typing-animation.d84cccd1.png";const B="count",L="typing",R="default";var F=(0,e.memo)((function(l){let{clientId:a,attributes:r,setAttributes:i}=l;(0,e.useEffect)((()=>{let e;if(r.className){e=r.className,e=e.split(" ");let t=Array.from(u).find((t=>e.find((e=>e===t.value))));const l=Array.from(d).find((t=>e.find((e=>e===t.value)))),o=Array.from(p).find((t=>e.find((e=>e===t.value)))),n=Array.from(d).find((t=>e.find((e=>e===`o-count-${t.value}`)))),a=Array.from(p).find((t=>e.find((e=>e===`o-count-${t.value}`)))),i=Array.from(d).find((t=>e.find((e=>e===`o-typing-${t.value}`)))),c=Array.from(p).find((t=>e.find((e=>e===`o-typing-${t.value}`))));k(t?t.value:"none"),w(l?l.value:"none"),E(o?o.value:"none"),C(t?t.label:"none"),N(n?n.value:"none"),D(a?a.value:"none"),U(i?i.value:"none"),$(c?c.value:"none")}}),[]);const{hasCountFormat:b,hasTypingFormat:v}=(0,c.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),l=(0,o.serialize)(t(a)),n=(0,s.create)({html:l});let r=!1,i=!1;return n.formats&&(r=n.formats.some((e=>!0===e.some((e=>"themeisle-blocks/count-animation"===e.type)))),i=n.formats.some((e=>!0===e.some((e=>"themeisle-blocks/typing-animation"===e.type))))),{hasCountFormat:r,hasTypingFormat:i}}),[]),[f,k]=(0,e.useState)("none"),[h,w]=(0,e.useState)("none"),[I,E]=(0,e.useState)("none"),[F,C]=(0,e.useState)((0,t.__)("None","otter-blocks")),[T,N]=(0,e.useState)("none"),[A,D]=(0,e.useState)("none"),[x,U]=(0,e.useState)("none"),[z,$]=(0,e.useState)("none"),j=(e,t,l,o)=>{let n;switch(e){case B:n="o-count-";break;case L:n="o-typing-";break;case R:n=""}const a=n+t,c="none"!==l?n+l:"";let s;r.className?(s=r.className,s=s.split(" "),s.find((e=>e===a))?s=s.join(" ").replace(a,c):(s.push(c),s=s.join(" ").trim())):s=c,s=s.replace(/\s+/g," "),""===s&&(s=void 0),i({className:s}),null==o||o()};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(y,{label:(0,t.__)("Loading Animations","otter-blocks")},(0,e.createElement)("div",{className:"o-animations-control"},(0,e.createElement)(g,{animationsList:u,updateAnimation:e=>{let t,l="none"!==e?e:"";if(r.className){t=r.className,t=t.split(" ");const e=t.find((e=>e===f));t.find((e=>"animated"===e))||t.push("animated"),e?t=t.join(" ").replace(f,l):(t.push(l),t=t.join(" "))}else t=`animated ${l}`;"none"===e&&(t=t.replace("animated","").replace(h,"").replace(I,""),w("none"),E("none")),t=t.replace(/\s+/g," ").trim(),""===t&&(t=void 0),k(e),i({className:t});let o=document.querySelector(`#block-${a} .animated`)||document.querySelector(`#block-${a}.animated`);o&&m.forEach((e=>{o.className.includes(e)&&o.addEventListener("animationend",(()=>{o.classList.remove(e),o.addEventListener("animationstart",(()=>{o.classList.remove(e)}))}))}))},currentAnimationLabel:F,setCurrentAnimationLabel:C}),"none"!==f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:h||"none",options:d,onChange:e=>j(R,h,e,(()=>w(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:I||"none",options:p,onChange:e=>j(R,I,e,(()=>E(e)))}),(0,e.createElement)(n.Button,{variant:"secondary",onClick:()=>{let e=r.className;e=e.replace(f,"o-replay"),i({className:e}),setTimeout((()=>i({className:e.replace("o-replay",f)})),100)}},(0,t.__)("Replay Animation","otter-blocks"))))),(0,e.createElement)(y,{label:(0,t.__)("Count Animations","otter-blocks")},b?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:T||"none",options:d,onChange:e=>j(B,T,e,(()=>N(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:A||"none",options:p,onChange:e=>j(B,A,e,(()=>$(e)))})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{src:O,alt:_("Using Count Animation in the Block Editor","otter-blocks"),className:"otter-animations-count-image"}),(0,e.createElement)("p",null,(0,t.__)("You can add counting animation from the format toolbar of this block. Once you have added them, you will see customization settings here.","otter-blocks")),(0,e.createElement)("p",null,(0,t.__)("Note: This feature is not available in all the blocks.","otter-blocks")))),(0,e.createElement)(y,{label:(0,t.__)("Typing Animations","otter-blocks")},v?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:x||"none",options:d,onChange:e=>j(L,x,e,(()=>U(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:z||"none",options:p,onChange:e=>j(L,z,e,(()=>$(e)))})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{src:S,alt:_("Using Typing Animation in the Block Editor","otter-blocks"),className:"otter-animations-count-image"}),(0,e.createElement)("p",null,(0,t.__)("You can add typing animation from the format toolbar of this block. Once you have added them, you will see customization settings here.","otter-blocks")),(0,e.createElement)("p",null,(0,t.__)("Note: This feature is not available in all the blocks.","otter-blocks")))))})),C=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"}));const T="themeisle-blocks/count-animation";(0,s.registerFormatType)(T,{name:T,title:(0,t.__)("Count Animation","otter-blocks"),tagName:"o-anim-count",className:null,edit:l=>{let{isActive:o,value:n,onChange:a}=l;const i=/^\$?[\d,]+(\.\d*)?$/;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RichTextToolbarButton,{icon:C,title:(0,t.__)("Count Animation","otter-blocks"),isDisabled:!o&&null===i.exec(n.text.substring(n.start,n.end)),onClick:()=>{(o||!o&&null!==i.exec(n.text.substring(n.start,n.end)))&&a((0,s.toggleFormat)(n,{type:T}))},isActive:o}))}});const N="themeisle-blocks/typing-animation";(0,s.registerFormatType)(N,{name:N,title:(0,t.__)("Typing Animation","otter-blocks"),tagName:"o-anim-typing",className:null,edit:l=>{let{isActive:o,value:n,onChange:a}=l;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RichTextToolbarButton,{icon:C,title:(0,t.__)("Typing Animation","otter-blocks"),onClick:()=>{a((0,s.toggleFormat)(n,{type:N}))},isActive:o}))}});const A=["themeisle-blocks/popup"],D=(0,a.createHigherOrderComponent)((l=>a=>(0,o.hasBlockSupport)(a.name,"customClassName",!0)&&a.isSelected&&!A.includes(a.name)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l,a),(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(n.PanelBody,{title:(0,t.__)("Animations","otter-blocks"),initialOpen:!1,className:"o-is-new"},(0,e.createElement)(F,{clientId:a.clientId,setAttributes:a.setAttributes,attributes:a.attributes}),(0,i.applyFilters)("otter.poweredBy","")))):(0,e.createElement)(l,a)),"withInspectorControl");(0,i.addFilter)("editor.BlockEdit","themeisle-custom-css/with-inspector-controls",D)}()}();
build/blocks/advanced-columns/editor.css CHANGED
@@ -1 +1 @@
1
- .wp-block-themeisle-blocks-advanced-columns-layout-control{margin:0 0 1.5em 0}.wp-block-themeisle-blocks-advanced-columns-layout-control .components-base-control__title{display:flex;justify-content:space-between;margin-bottom:5px}.wp-block-themeisle-blocks-advanced-columns-layout-control .components-base-control__title label{padding:5px 0}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout{cursor:pointer;width:33.3333333333%;height:auto;display:inline-block;padding:10px;border-radius:4px}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout svg{fill:#d5dadf}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link){background:#f1f1f1;border-color:#005d8c;color:#005d8c;text-decoration:none}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):not(.selected){box-shadow:none}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link) svg{fill:#0075af}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout.selected{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout.selected svg{fill:#6d7882}.wp-block-themeisle-blocks-advanced-columns-separators{position:absolute;left:0;width:100%}.wp-block-themeisle-blocks-advanced-columns-separators.top{top:0}.wp-block-themeisle-blocks-advanced-columns-separators.bottom{bottom:0}.wp-block-themeisle-blocks-advanced-columns-separators.bottom svg{position:absolute;bottom:0}.wp-block-themeisle-blocks-advanced-columns-separators .rotate{transform:rotate(180deg)}html[lang=ja] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=ko] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=zh] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=zh-Hans] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=zh-Hant] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap{word-break:normal}.wp-block-themeisle-blocks-advanced-columns{--columns-width: initial;display:flex}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap{flex-basis:100%;width:100%;word-break:keep-all;max-width:var(--columns-width)}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:flex;flex-wrap:nowrap}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout .wp-block-themeisle-blocks-advanced-column{display:flex;max-width:unset;margin:inherit;flex:1}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout .wp-block-themeisle-blocks-advanced-column>.block-editor-inner-blocks{flex:1}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout .wp-block-themeisle-blocks-advanced-column .wp-block-themeisle-blocks-advanced-columns{max-width:unset}.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-column .wp-block-themeisle-blocks-slider{display:grid}.wp-block-themeisle-blocks-advanced-columns .wp-themeisle-block-overlay,.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-columns-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.wp-block-themeisle-blocks-advanced-columns.has-default-gap .wp-block-themeisle-blocks-advanced-column{margin-left:10px;margin-right:10px}.wp-block-themeisle-blocks-advanced-columns.has-nogap-gap .wp-block-themeisle-blocks-advanced-column{margin-left:0;margin-right:0}.wp-block-themeisle-blocks-advanced-columns.has-narrow-gap .wp-block-themeisle-blocks-advanced-column{margin-left:5px;margin-right:5px}.wp-block-themeisle-blocks-advanced-columns.has-extended-gap .wp-block-themeisle-blocks-advanced-column{margin-left:15px;margin-right:15px}.wp-block-themeisle-blocks-advanced-columns.has-wide-gap .wp-block-themeisle-blocks-advanced-column{margin-left:20px;margin-right:20px}.wp-block-themeisle-blocks-advanced-columns.has-wider-gap .wp-block-themeisle-blocks-advanced-column{margin-left:30px;margin-right:30px}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start,.wp-block-themeisle-blocks-advanced-columns.has-vertical-top{align-items:flex-start}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start .wp-block-themeisle-blocks-advanced-column,.wp-block-themeisle-blocks-advanced-columns.has-vertical-top .wp-block-themeisle-blocks-advanced-column{align-items:flex-start}.wp-block-themeisle-blocks-advanced-columns.has-vertical-center{align-items:center}.wp-block-themeisle-blocks-advanced-columns.has-vertical-center .wp-block-themeisle-blocks-advanced-column{align-items:center}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-end,.wp-block-themeisle-blocks-advanced-columns.has-vertical-bottom{align-items:flex-end}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-end .wp-block-themeisle-blocks-advanced-column,.wp-block-themeisle-blocks-advanced-columns.has-vertical-bottom .wp-block-themeisle-blocks-advanced-column{align-items:flex-end}.wp-block-themeisle-blocks-advanced-columns.has-horizontal-flex-start{justify-content:flex-start}.wp-block-themeisle-blocks-advanced-columns.has-horizontal-center{justify-content:center}.wp-block-themeisle-blocks-advanced-columns.has-horizontal-flex-end{justify-content:flex-end}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-collapsedRows-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-collapsedRows-layout.has-reverse-columns-tablet>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column-reverse}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-twoColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-threeColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto auto}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-collapsedRows-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-collapsedRows-layout.has-reverse-columns-mobile>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column-reverse}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-twoColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-threeColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto auto}.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-column:before{inset:0}.components-popover.block-editor-block-list__block-popover>.components-popover__content .block-editor-block-contextual-toolbar.wp-block-themeisle-blocks-advanced-column{margin:0}.o-section-header-panel.is-opened{padding:0}.o-section-header-panel .header-tab{display:inline-block;width:33.3333333333%;height:auto;padding:10px 20px;text-align:center;cursor:pointer}.o-section-header-panel .header-tab.is-selected{border-bottom:2px solid #0085ba;background:#f3f4f5}.o-section-header-panel .header-tab:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link){background:#f3f4f5;box-shadow:none}.o-section-header-panel .header-tab span{display:inline-block;font-size:12px}.o-section-header-panel .header-tab span .dashicon{display:block;margin:0 auto;font-size:20px}.o-section-border-container.components-panel__body>.components-toggle-control{margin:1.5em 0 0 0}.o-section-border-container.components-panel__body>.components-toggle-control .components-base-control__field{margin-bottom:0}#o-border-raduis-box>.component-box-control__header-control-wrapper>.components-flex-item:first-child{transform:rotate(315deg)}/*# sourceMappingURL=editor.css.map */
1
+ .wp-block-themeisle-blocks-advanced-columns-layout-control{margin:0 0 1.5em 0}.wp-block-themeisle-blocks-advanced-columns-layout-control .components-base-control__title{display:flex;justify-content:space-between;margin-bottom:5px}.wp-block-themeisle-blocks-advanced-columns-layout-control .components-base-control__title label{padding:5px 0}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout{cursor:pointer;width:33.3333333333%;height:auto;display:inline-block;padding:10px;border-radius:4px}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout svg{fill:#d5dadf}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link){background:#f1f1f1;border-color:#005d8c;color:#005d8c;text-decoration:none}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):not(.selected){box-shadow:none}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link) svg{fill:#0075af}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout.selected{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout.selected svg{fill:#6d7882}.wp-block-themeisle-blocks-advanced-columns-separators{position:absolute;left:0;width:100%}.wp-block-themeisle-blocks-advanced-columns-separators.top{top:0}.wp-block-themeisle-blocks-advanced-columns-separators.bottom{bottom:0}.wp-block-themeisle-blocks-advanced-columns-separators.bottom svg{position:absolute;bottom:0}.wp-block-themeisle-blocks-advanced-columns-separators .rotate{transform:rotate(180deg)}html[lang=ja] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=ko] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=zh] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=zh-Hans] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=zh-Hant] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap{word-break:normal}.wp-block-themeisle-blocks-advanced-columns{--columns-width: initial;display:flex}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap{flex-basis:100%;width:100%;word-break:keep-all;max-width:var(--columns-width)}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:flex;flex-wrap:nowrap}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout .wp-block-themeisle-blocks-advanced-column{display:flex;max-width:unset;margin:inherit;flex:1}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout .wp-block-themeisle-blocks-advanced-column>.block-editor-inner-blocks{flex:1}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout .wp-block-themeisle-blocks-advanced-column .wp-block-themeisle-blocks-advanced-columns{max-width:unset}.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-column .wp-block-themeisle-blocks-slider{display:block}.wp-block-themeisle-blocks-advanced-columns .wp-themeisle-block-overlay,.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-columns-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.wp-block-themeisle-blocks-advanced-columns.has-default-gap .wp-block-themeisle-blocks-advanced-column{margin-left:10px;margin-right:10px}.wp-block-themeisle-blocks-advanced-columns.has-nogap-gap .wp-block-themeisle-blocks-advanced-column{margin-left:0;margin-right:0}.wp-block-themeisle-blocks-advanced-columns.has-narrow-gap .wp-block-themeisle-blocks-advanced-column{margin-left:5px;margin-right:5px}.wp-block-themeisle-blocks-advanced-columns.has-extended-gap .wp-block-themeisle-blocks-advanced-column{margin-left:15px;margin-right:15px}.wp-block-themeisle-blocks-advanced-columns.has-wide-gap .wp-block-themeisle-blocks-advanced-column{margin-left:20px;margin-right:20px}.wp-block-themeisle-blocks-advanced-columns.has-wider-gap .wp-block-themeisle-blocks-advanced-column{margin-left:30px;margin-right:30px}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start,.wp-block-themeisle-blocks-advanced-columns.has-vertical-top{align-items:flex-start}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start .wp-block-themeisle-blocks-advanced-column,.wp-block-themeisle-blocks-advanced-columns.has-vertical-top .wp-block-themeisle-blocks-advanced-column{align-items:flex-start}.wp-block-themeisle-blocks-advanced-columns.has-vertical-center{align-items:center}.wp-block-themeisle-blocks-advanced-columns.has-vertical-center .wp-block-themeisle-blocks-advanced-column{align-items:center}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-end,.wp-block-themeisle-blocks-advanced-columns.has-vertical-bottom{align-items:flex-end}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-end .wp-block-themeisle-blocks-advanced-column,.wp-block-themeisle-blocks-advanced-columns.has-vertical-bottom .wp-block-themeisle-blocks-advanced-column{align-items:flex-end}.wp-block-themeisle-blocks-advanced-columns.has-horizontal-flex-start{justify-content:flex-start}.wp-block-themeisle-blocks-advanced-columns.has-horizontal-center{justify-content:center}.wp-block-themeisle-blocks-advanced-columns.has-horizontal-flex-end{justify-content:flex-end}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-collapsedRows-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-collapsedRows-layout.has-reverse-columns-tablet>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column-reverse}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-twoColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-threeColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto auto}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-collapsedRows-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-collapsedRows-layout.has-reverse-columns-mobile>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column-reverse}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-twoColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-threeColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto auto}.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-column:before{inset:0}.components-popover.block-editor-block-list__block-popover>.components-popover__content .block-editor-block-contextual-toolbar.wp-block-themeisle-blocks-advanced-column{margin:0}.o-section-header-panel.is-opened{padding:0}.o-section-header-panel .header-tab{display:inline-block;width:33.3333333333%;height:auto;padding:10px 20px;text-align:center;cursor:pointer}.o-section-header-panel .header-tab.is-selected{border-bottom:2px solid #0085ba;background:#f3f4f5}.o-section-header-panel .header-tab:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link){background:#f3f4f5;box-shadow:none}.o-section-header-panel .header-tab span{display:inline-block;font-size:12px}.o-section-header-panel .header-tab span .dashicon{display:block;margin:0 auto;font-size:20px}.o-section-border-container.components-panel__body>.components-toggle-control{margin:1.5em 0 0 0}.o-section-border-container.components-panel__body>.components-toggle-control .components-base-control__field{margin-bottom:0}#o-border-raduis-box>.component-box-control__header-control-wrapper>.components-flex-item:first-child{transform:rotate(315deg)}/*# sourceMappingURL=editor.css.map */
build/blocks/advanced-columns/editor.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../../src/blocks/blocks/section/components/layout-control/editor.scss","../../../src/blocks/blocks/section/components/separators/editor.scss","../../../src/blocks/blocks/section/editor.scss"],"names":[],"mappings":"AAAA,2DACC,mBAEA,2FACC,aACA,8BACA,kBAEA,iGACC,cAIF,6GACC,eACA,qBACA,YACA,qBACA,aACA,kBAEA,iHACC,aAIA,gOACC,mBACA,qBACA,cACA,qBAEA,+OACC,gBAGD,oOACC,aAKH,sHACC,wDAEA,0HACC,aC9CJ,uDACC,kBACA,OACA,WAEA,2DACC,MAGD,8DACC,SAEA,kEACC,kBACA,SAIF,+DACC,yBCfD,sYACC,kBAIF,4CACC,yBACA,aAEA,8DACC,gBACA,WACA,oBACA,+BAEA,0HACC,aACA,iBAEA,qKACC,aACA,gBACA,eACA,OAEA,gMACC,OAGD,iNACC,gBAOH,yHACC,aAIF,wKAEC,kBACA,WACA,YACA,MACA,OAIA,uGACC,iBACA,kBAKD,qGACC,cACA,eAKD,sGACC,gBACA,iBAKD,wGACC,iBACA,kBAKD,oGACC,iBACA,kBAKD,qGACC,iBACA,kBAIF,iIAEC,uBAEA,uNACC,uBAIF,gEACC,mBAEA,2GACC,mBAIF,kIAEC,qBAEA,wNACC,qBAIF,sEACC,2BAGD,kEACC,uBAGD,oEACC,yBAKC,8KACC,sBAIA,yMACC,8BAMF,8KACC,aACA,gCAKD,gLACC,aACA,qCAOD,8KACC,sBAIA,yMACC,8BAMF,8KACC,aACA,gCAKD,gLACC,aACA,qCAMF,8FACC,QAOD,yKACC,SAMF,kCACC,UAGD,oCACC,qBACA,qBACA,YACA,kBACA,kBACA,eAEA,gDACC,gCACA,mBAIA,uJACC,mBACA,gBAIF,yCACC,qBACA,eAEA,mDACC,cACA,cACA,eAQF,8EACC,mBAEA,8GACC,gBASD,sGACC","file":"editor.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../../src/blocks/blocks/section/components/layout-control/editor.scss","../../../src/blocks/blocks/section/components/separators/editor.scss","../../../src/blocks/blocks/section/editor.scss"],"names":[],"mappings":"AAAA,2DACC,mBAEA,2FACC,aACA,8BACA,kBAEA,iGACC,cAIF,6GACC,eACA,qBACA,YACA,qBACA,aACA,kBAEA,iHACC,aAIA,gOACC,mBACA,qBACA,cACA,qBAEA,+OACC,gBAGD,oOACC,aAKH,sHACC,wDAEA,0HACC,aC9CJ,uDACC,kBACA,OACA,WAEA,2DACC,MAGD,8DACC,SAEA,kEACC,kBACA,SAIF,+DACC,yBCfD,sYACC,kBAIF,4CACC,yBACA,aAEA,8DACC,gBACA,WACA,oBACA,+BAEA,0HACC,aACA,iBAEA,qKACC,aACA,gBACA,eACA,OAEA,gMACC,OAGD,iNACC,gBAOH,yHACC,cAIF,wKAEC,kBACA,WACA,YACA,MACA,OAIA,uGACC,iBACA,kBAKD,qGACC,cACA,eAKD,sGACC,gBACA,iBAKD,wGACC,iBACA,kBAKD,oGACC,iBACA,kBAKD,qGACC,iBACA,kBAIF,iIAEC,uBAEA,uNACC,uBAIF,gEACC,mBAEA,2GACC,mBAIF,kIAEC,qBAEA,wNACC,qBAIF,sEACC,2BAGD,kEACC,uBAGD,oEACC,yBAKC,8KACC,sBAIA,yMACC,8BAMF,8KACC,aACA,gCAKD,gLACC,aACA,qCAOD,8KACC,sBAIA,yMACC,8BAMF,8KACC,aACA,gCAKD,gLACC,aACA,qCAMF,8FACC,QAOD,yKACC,SAMF,kCACC,UAGD,oCACC,qBACA,qBACA,YACA,kBACA,kBACA,eAEA,gDACC,gCACA,mBAIA,uJACC,mBACA,gBAIF,yCACC,qBACA,eAEA,mDACC,cACA,cACA,eAQF,8EACC,mBAEA,8GACC,gBASD,sGACC","file":"editor.css"}
build/blocks/blocks.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render'), 'version' => 'c4a85745dbe77580dc3d2f43c3cb6696');
1
+ <?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render'), 'version' => 'c169394c65ddb905a375');
build/blocks/blocks.js CHANGED
@@ -1,14 +1,14 @@
1
- !function(){"use strict";var e,t,o,l={4966:function(e,t,o){var l=o(5736),a=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/about-author","title":"About Author","category":"themeisle-blocks","description":"About Author block is the easiest way to add a author bio below your posts. Powered by Otter.","keywords":["about","author","profile"],"textdomain":"otter-blocks","supports":{"html":false},"editorStyle":"otter-about-author-editor","style":"otter-about-author-style"}'),r=o(340),i=o(9307),c=o(2175),s=o(5609),d=window.wp.serverSideRender,m=o.n(d);const{name:u}=n;(0,a.registerBlockType)(u,{...n,title:(0,l.__)("About Author","otter-blocks"),description:(0,l.__)("About Author block is the easiest way to add a author bio below your posts. Powered by Otter.","otter-blocks"),icon:r.authorIcon,keywords:["about","author","profile"],edit:()=>(0,i.createElement)("div",(0,c.useBlockProps)(),(0,i.createElement)(s.Disabled,null,(0,i.createElement)(m(),{block:"themeisle-blocks/about-author"}))),save:()=>null,supports:{inserter:Boolean(window.themeisleGutenberg.isLegacyPre59),html:!1},example:{}});var b=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/accordion","title":"Accordion","category":"themeisle-blocks","description":"Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","keywords":["accordions","collapse","faq"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"gap":{"type":"string"},"titleColor":{"type":"string"},"titleBackground":{"type":"string"},"contentBackground":{"type":"string"},"borderColor":{"type":"string"},"isSynced":{"type":"array"}},"supports":{"html":false},"editorStyle":"otter-accordion-editor","style":"otter-accordion-style"}'),p=o(4184),g=o.n(p),h=o(3159),k=e=>{let{attributes:t,setAttributes:o,getValue:a}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Gap","otter-blocks"),value:t.gap,options:[{label:(0,l.__)("No Gap","otter-blocks"),value:""},{label:(0,l.__)("Narrow (5px)","otter-blocks"),value:"narrow"},{label:(0,l.__)("Wide (10px)","otter-blocks"),value:"wide"},{label:(0,l.__)("Wider (20px)","otter-blocks"),value:"wider"}],onChange:e=>o({gap:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,i.createElement)(h.Z,{field:"titleColor",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Title","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>o({titleColor:e})})),(0,i.createElement)(h.Z,{field:"titleBackground",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Title Background","otter-blocks"),colorValue:t.titleBackground,onColorChange:e=>o({titleBackground:e})})),(0,i.createElement)(c.ContrastChecker,{textColor:a("titleColor"),backgroundColor:a("titleBackground")}),(0,i.createElement)(h.Z,{field:"contentBackground",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Content Background","otter-blocks"),colorValue:t.contentBackground,onColorChange:e=>o({contentBackground:e})})),(0,i.createElement)(h.Z,{field:"borderColor",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}))))},v=o(5225);const{attributes:y}=b;const{name:_}=b;(0,a.registerBlockType)(_,{...b,title:(0,l.__)("Accordion","otter-blocks"),description:(0,l.__)("Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","otter-blocks"),icon:r.buttonsIcon,keywords:["accordions","collapse","faq"],edit:e=>{let{name:t,attributes:o,setAttributes:l,clientId:a,isSelected:n}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(a,y);return()=>e(o.id)}),[o.id]);const r=e=>(0,v.getDefaultValueByField)({name:t,field:e,defaultAttributes:y,attributes:o}),s={"--title-color":r("titleColor"),"--title-background":r("titleBackground"),"--border-color":r("borderColor"),"--content-background":r("contentBackground")},d=(0,c.useBlockProps)({id:o.id,className:g()({[`is-${o.gap}-gap`]:o.gap}),style:s});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(k,{attributes:o,setAttributes:l,getValue:r}),(0,i.createElement)("div",d,(0,i.createElement)(c.InnerBlocks,{allowedBlocks:["themeisle-blocks/accordion-item"],template:[["themeisle-blocks/accordion-item"]],renderAppender:n?c.InnerBlocks.ButtonBlockAppender:""})))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,className:g()({[`is-${t.gap}-gap`]:t.gap})});return(0,i.createElement)("div",o,(0,i.createElement)(c.InnerBlocks.Content,null))},example:{attributes:{},innerBlocks:[{name:"themeisle-blocks/accordion-item",attributes:{initialOpen:!0,title:(0,l.__)("Accordion Item","otter-blocks")},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:"Lorem ipsum dolor sit amet, eu liber saperet est. Recusabo volutpat has ne, sed dicit eruditi detraxit ut, modus ancillae mei eu.",align:"left"}}]}]}});var f=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/accordion-item","title":"Accordion Item","category":"themeisle-blocks","description":"Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","keywords":["accordions","collapse","faq"],"parent":["themeisle-blocks/accordion"],"textdomain":"otter-blocks","attributes":{"title":{"type":"string"},"initialOpen":{"type":"boolean","default":false}},"supports":{"reusable":false}}'),w=o(6015),C=o(3904),E=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Initially Open","otter-blocks"),checked:t.initialOpen,onChange:e=>o({initialOpen:e})})))};const{name:x}=f;(0,a.registerBlockType)(x,{...f,title:(0,l.__)("Accordion Item","otter-blocks"),description:(0,l.__)("Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","otter-blocks"),icon:r.buttonsIcon,keywords:["accordions","collapse","faq"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[a,n]=(0,i.useState)(!0);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(E,{attributes:t,setAttributes:o}),(0,i.createElement)("div",(0,c.useBlockProps)(),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__title",onClick:e=>{"string"==typeof e.target.className&&e.target.className.includes("block-editor-rich-text__editable")?n(!0):n(!a)}},(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.title,onChange:e=>{a||n(!0),o({title:e})},tagName:"span"}),(0,i.createElement)(s.Icon,{icon:a?w.Z:C.Z,size:24})),a&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,i.createElement)(c.InnerBlocks,{template:[["core/paragraph"]]}))))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({open:!!t.initialOpen});return(0,i.createElement)("details",o,(0,i.createElement)("summary",{className:"wp-block-themeisle-blocks-accordion-item__title"},(0,i.createElement)(c.RichText.Content,{tagName:"div",value:t.title})),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,i.createElement)(c.InnerBlocks.Content,null)))}});var T=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-heading","title":"Advanced Heading","category":"themeisle-blocks","description":"Advanced Heading gives a spin to editor\'s Heading block with much needed customization options. Powered by Otter.","keywords":["heading","title","advanced heading"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"content":{"type":"string","source":"html","selector":"h1,h2,h3,h4,h5,h6,div,p,span","default":""},"tag":{"default":"h2","type":"string"},"align":{"type":"string"},"alignTablet":{"type":"string"},"alignMobile":{"type":"string"},"headingColor":{"type":"string"},"highlightColor":{"type":"string"},"highlightBackground":{"type":"string"},"fontSize":{"type":"number"},"fontSizeTablet":{"type":"number"},"fontSizeMobile":{"type":"number"},"fontFamily":{"type":"string"},"fontVariant":{"type":"string"},"fontStyle":{"type":"string"},"textTransform":{"type":"string"},"lineHeight":{"type":"number"},"letterSpacing":{"type":"number"},"textShadow":{"type":"boolean","default":false},"textShadowColor":{"type":"string","default":"#000000"},"textShadowColorOpacity":{"type":"number","default":50},"textShadowBlur":{"type":"number","default":5},"textShadowHorizontal":{"type":"number","default":0},"textShadowVertical":{"type":"number","default":0},"paddingType":{"type":"string","default":"linked"},"paddingTypeTablet":{"type":"string","default":"linked"},"paddingTypeMobile":{"type":"string","default":"linked"},"padding":{"type":"number","default":0},"paddingTablet":{"type":"number"},"paddingMobile":{"type":"number"},"paddingTop":{"type":"number","default":0},"paddingTopTablet":{"type":"number"},"paddingTopMobile":{"type":"number"},"paddingRight":{"type":"number","default":0},"paddingRightTablet":{"type":"number"},"paddingRightMobile":{"type":"number"},"paddingBottom":{"type":"number","default":0},"paddingBottomTablet":{"type":"number"},"paddingBottomMobile":{"type":"number"},"paddingLeft":{"type":"number","default":0},"paddingLeftTablet":{"type":"number"},"paddingLeftMobile":{"type":"number"},"marginType":{"type":"string","default":"unlinked"},"marginTypeTablet":{"type":"string","default":"unlinked"},"marginTypeMobile":{"type":"string","default":"unlinked"},"margin":{"type":"number","default":0},"marginTablet":{"type":"number"},"marginMobile":{"type":"number"},"marginTop":{"type":"number","default":0},"marginTopTablet":{"type":"number"},"marginTopMobile":{"type":"number"},"marginBottom":{"type":"number","default":25},"marginBottomTablet":{"type":"number"},"marginBottomMobile":{"type":"number"}},"editorStyle":"otter-advanced-heading-editor","style":"otter-advanced-heading-style"}'),S=o(6713),M=o(2629);const B="themeisle-blocks/highlight";(0,M.registerFormatType)(B,{name:B,title:(0,l.__)("Highlight","otter-blocks"),tagName:"span",className:"highlight",edit:e=>{let{isActive:t,value:o,onChange:a}=e;const n=()=>a((0,M.toggleFormat)(o,{type:B}));return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.RichTextShortcut,{type:"primary",character:"h",onUse:n}),(0,i.createElement)(c.RichTextToolbarButton,{icon:S.Z,title:(0,l.__)("Highlight","otter-blocks"),onClick:n,isActive:t,shortcutType:"access",shortcutCharacter:"h"}))}});var z=o(80),P=o.n(z);const V=[{attributes:{id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number",default:0},paddingMobile:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number",default:0},paddingTopMobile:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number",default:0},paddingRightMobile:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number",default:0},paddingBottomMobile:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number",default:0},paddingLeftMobile:{type:"number",default:0},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number",default:0},marginMobile:{type:"number",default:0},marginTop:{type:"number",default:0},marginTopTablet:{type:"number",default:0},marginTopMobile:{type:"number",default:0},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number",default:25},marginBottomMobile:{type:"number",default:20}},save:e=>{let t,{attributes:o,className:l}=e;o.textShadow&&(t={textShadow:`${o.textShadowHorizontal}px ${o.textShadowVertical}px ${o.textShadowBlur}px ${P()(o.textShadowColor?o.textShadowColor:"#000000",o.textShadowColorOpacity)}`});const a={color:o.headingColor,fontFamily:o.fontFamily,fontWeight:"regular"===o.fontVariant?"normal":o.fontVariant,fontStyle:o.fontStyle,textTransform:o.textTransform,lineHeight:o.lineHeight&&`${o.lineHeight}px`,letterSpacing:o.letterSpacing&&`${o.letterSpacing}px`,...t};return(0,i.createElement)(c.RichText.Content,{tagName:o.tag,value:o.content,id:o.id,className:g()(o.id,l),style:a})}}];var R=V,L={from:[{type:"block",blocks:["core/heading"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("themeisle-blocks/advanced-heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("themeisle-blocks/advanced-heading",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("core/paragraph",{content:t})}}]},N=o(7462),H=o(2819),I=o(4333),A=o(9818),O=o(9977),F=e=>{let{attributes:t,setAttributes:o}=e;const a=e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},n=e=>{switch(e){case"h1":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1"));case"h2":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2"));case"h3":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3"));case"h4":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4"));case"h5":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5"));case"h6":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6"));case"div":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV"));case"p":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{x:"0",y:"15"},"P"));case"span":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN"));default:return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DEFAULT"))}},r=e=>{o({tag:e})};return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(s.DropdownMenu,{icon:n(t.tag),label:(0,l.__)("Select tag","otter-blocks"),className:"components-toolbar",controls:[{title:(0,l.__)("Heading","otter-blocks")+" 1",icon:n("h1"),onClick:()=>r("h1")},{title:(0,l.__)("Heading","otter-blocks")+" 2",icon:n("h2"),onClick:()=>r("h2")},{title:(0,l.__)("Heading","otter-blocks")+" 3",icon:n("h3"),onClick:()=>r("h3")},{title:(0,l.__)("Heading","otter-blocks")+" 4",icon:n("h4"),onClick:()=>r("h4")},{title:(0,l.__)("Heading","otter-blocks")+" 5",icon:n("h5"),onClick:()=>r("h5")},{title:(0,l.__)("Heading","otter-blocks")+" 6",icon:n("h6"),onClick:()=>r("h6")},{title:(0,l.__)("Division","otter-blocks"),icon:n("div"),onClick:()=>r("div")},{title:(0,l.__)("Paragraph","otter-blocks"),icon:n("p"),onClick:()=>r("p")},{title:(0,l.__)("Span Tag","otter-blocks"),icon:n("span"),onClick:()=>r("span")}]}),(0,i.createElement)(s.ToolbarGroup,null,(0,i.createElement)(s.Dropdown,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:e=>{let{isOpen:t,onToggle:o}=e;return(0,i.createElement)(s.Button,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:o,"aria-haspopup":"true","aria-expanded":t,label:(0,l.__)("Typography Settings","otter-blocks"),showTooltip:!0},(0,i.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(O.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:a,valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),step:.1,min:0,max:3}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),step:.1,min:-50,max:100}))})))},G=o(2136),$=o(6993),D=o(2372);const Z=e=>{let{value:t,onChange:o}=e;const a=(0,I.useInstanceId)(Z);(0,i.useEffect)((()=>m(t)),[t]);const[n,r]=(0,i.useState)(!1),[d,m]=(0,i.useState)(null),u=void 0!==window.themeisleGutenberg.blockIDs&&t!==d&&window.themeisleGutenberg.blockIDs.includes(d);return(0,i.createElement)(c.InspectorAdvancedControls,null,(0,i.createElement)(s.BaseControl,{label:(0,l.__)("HTML Anchor","otter-blocks"),help:(0,l.__)("Anchors lets you link directly to a section on a page.","otter-blocks"),id:`o-html-anchor-control-${a}`},(0,i.createElement)("div",{className:"o-html-anchor-control"},(0,i.createElement)("input",{type:"text",className:"o-html-anchor-control-input",readOnly:!n&&"readonly",value:n?d:t,onChange:e=>m(e.target.value),onClick:e=>e.target.select()}),(0,i.createElement)(s.Button,{icon:n?"yes":"edit",label:n?(0,l.__)("Save","otter-blocks"):(0,l.__)("Edit","otter-blocks"),showTooltip:!0,disabled:!!u,className:g()("o-html-anchor-control-button",{"is-saved":!n}),onClick:()=>{if(n&&t!==d){const e=window.themeisleGutenberg.blockIDs.findIndex((e=>e===t));window.themeisleGutenberg.blockIDs[e]=d,o(d)}r(!n)}}))),u&&(0,i.createElement)(s.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice"},(0,l.__)("This ID has already been used in this page. Please consider using a different ID to avoid conflict.","otter-blocks")))};var W=Z,U=e=>{let{values:t,setAttributes:o}=e;return(0,i.createElement)("div",{className:"o-clear-button"},(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:!0,onClick:()=>{const e=((0,H.isArray)(t)?t:[t]).map((e=>{if((0,H.isString)(e))return e;if((0,H.isObject)(e)){const t=Object.keys(e);if(1===t.length)return e[t[0]]?t[0]:void 0}})).filter(H.isString).reduce(((e,t)=>(e[t]=void 0,e)),{});o(e)}},(0,l.__)("Clear","otter-blocks")))},j=e=>{let{attributes:t,setAttributes:o}=e;const a=(0,A.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[n,r]=(0,i.useState)("style"),d={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},m={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},u={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},b=e=>{if("top"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingTop;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile}else if("right"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingRight;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile}else if("bottom"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingBottom;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile}else if("left"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingLeft;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile}},p={top:"marginTop",bottom:"marginBottom"},h={top:"marginTopTablet",bottom:"marginBottomTablet"},k={top:"marginTopMobile",bottom:"marginBottomMobile"},v=e=>{if("top"==e)switch(a){case"Desktop":return"linked"===t.marginType?t.margin:t.marginTop;case"Tablet":return"linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet;case"Mobile":return"linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile}else if("bottom"==e)switch(a){case"Desktop":return"linked"===t.marginType?t.margin:t.marginBottom;case"Tablet":return"linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet;case"Mobile":return"linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile}};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{className:"o-heading-header-panel"},(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"style"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("General Settings","otter-blocks"),className:"o-adv-h-panel"},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Heading Color","otter-blocks"),colorValue:t.headingColor,onColorChange:e=>o({headingColor:e})}),(0,i.createElement)($.Z,{label:(0,l.__)("Font Size","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:(()=>{switch(a){case"Desktop":return t.fontSize;case"Tablet":return t.fontSizeTablet;case"Mobile":return t.fontSizeMobile;default:return}})()||"",onChange:e=>{"Desktop"===a?o({fontSize:e}):"Tablet"===a?o({fontSizeTablet:e}):"Mobile"===a&&o({fontSizeMobile:e})},step:.1,min:1,max:500,allowReset:!0})),(0,i.createElement)($.Z,{label:(0,l.__)("Alignment","otter-blocks")},(0,i.createElement)(c.AlignmentToolbar,{value:(()=>{switch(a){case"Desktop":return t.align;case"Tablet":return t.alignTablet;case"Mobile":return t.alignMobile;default:return}})(),onChange:e=>{"Desktop"===a?o({align:e}):"Tablet"===a?o({alignTablet:e}):"Mobile"===a&&o({alignMobile:e})},isCollapsed:!1}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,i.createElement)(O.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,i.createElement)(U,{values:["fontFamily","fontVariant","fontStyle","textTransform"],setAttributes:o}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),step:.1,min:0,max:3,allowReset:!0}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),step:.1,min:-50,max:100,allowReset:!0}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Shadow Properties","otter-blocks"),checked:t.textShadow,onChange:e=>o({textShadow:e})}),t.textShadow&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.textShadowColor,onColorChange:e=>o({textShadowColor:e})}),(0,i.createElement)(G.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.textShadowColorOpacity,onChange:e=>o({textShadowColorOpacity:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.textShadowBlur,onChange:e=>o({textShadowBlur:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.textShadowHorizontal,onChange:e=>o({textShadowHorizontal:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.textShadowVertical,onChange:e=>o({textShadowVertical:e}),min:-100,max:100})))))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Highlight Color","otter-blocks")},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Color","otter-blocks"),colorValue:t.highlightColor,onColorChange:e=>o({highlightColor:e})}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Background","otter-blocks"),colorValue:t.highlightBackground,onColorChange:e=>o({highlightBackground:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Spacing","otter-blocks"),initialOpen:!1},(0,i.createElement)($.Z,{label:(0,l.__)("Padding","otter-blocks")},(0,i.createElement)(D.Z,{type:(()=>{switch(a){case"Desktop":return t.paddingType;case"Tablet":return t.paddingTypeTablet;case"Mobile":return t.paddingTypeMobile;default:return}})(),min:0,max:500,changeType:e=>{"Desktop"===a?o({paddingType:e}):"Tablet"===a?o({paddingTypeTablet:e}):"Mobile"===a&&o({paddingTypeMobile:e})},onChange:(e,l)=>{switch(a){case"Desktop":"linked"===t.paddingType?o({padding:l}):o({[d[e]]:l});break;case"Tablet":"linked"===t.paddingTypeTablet?o({paddingTablet:l}):o({[m[e]]:l});break;case"Mobile":"linked"===t.paddingTypeMobile?o({paddingMobile:l}):o({[u[e]]:l})}},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:b("top")},{label:(0,l.__)("Right","otter-blocks"),type:"right",value:b("right")},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:b("bottom")},{label:(0,l.__)("Left","otter-blocks"),type:"left",value:b("left")}]})),(0,i.createElement)(U,{values:[{padding:"Desktop"===a&&"linked"===t.paddingType},{paddingTablet:"Tablet"===a&&"linked"===t.paddingType},{paddingMobile:"Mobile"===a&&"linked"===t.paddingType},{paddingRight:"Desktop"===a&&"linked"!==t.paddingType},{paddingRightTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingRightMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingTop:"Desktop"===a&&"linked"!==t.paddingType},{paddingTopTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingTopMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingBottom:"Desktop"===a&&"linked"!==t.paddingType},{paddingBottomTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingBottomMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingLeft:"Desktop"===a&&"linked"!==t.paddingType},{paddingLeftTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingLeftMobile:"Mobile"===a&&"linked"!==t.paddingType}],setAttributes:o}),(0,i.createElement)($.Z,{label:(0,l.__)("Margin","otter-blocks")},(0,i.createElement)(D.Z,{type:(()=>{switch(a){case"Desktop":return t.marginType;case"Tablet":return t.marginTypeTablet;case"Mobile":return t.marginTypeMobile;default:return}})(),min:-500,max:500,changeType:e=>{switch(a){case"Desktop":o({marginType:e});break;case"Tablet":o({marginTypeTablet:e});break;case"Mobile":o({marginTypeMobile:e})}},onChange:(e,l)=>{switch(a){case"Desktop":"linked"===t.marginType?o({margin:l}):o({[p[e]]:l});break;case"Tablet":"linked"===t.marginTypeTablet?o({marginTablet:l}):o({[h[e]]:l});break;case"Mobile":"linked"===t.marginTypeMobile?o({marginMobile:l}):o({[k[e]]:l})}},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:v("top")},{label:(0,l.__)("Right","otter-blocks"),disabled:!0},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:v("bottom")},{label:(0,l.__)("Left","otter-blocks"),disabled:!0}]})),(0,i.createElement)(U,{values:[{margin:"Desktop"===a&&"linked"===t.marginType},{marginTablet:"Tablet"===a&&"linked"===t.marginType},{marginMobile:"Mobile"===a&&"linked"===t.marginType},{marginTop:"Desktop"===a&&"linked"!==t.marginType},{marginTopTablet:"Tablet"===a&&"linked"!==t.marginType},{marginTopMobile:"Mobile"===a&&"linked"!==t.marginType},{marginBottom:"Desktop"===a&&"linked"!==t.marginType},{marginBottomTablet:"Tablet"===a&&"linked"!==t.marginType},{marginBottomMobile:"Mobile"===a&&"linked"!==t.marginType}],setAttributes:o})))),(0,i.createElement)(W,{value:t.id,onChange:e=>o({id:e})}))},q=o(2154);const{attributes:K}=T;const{name:J}=T;(0,a.registerBlockType)(J,{...T,title:(0,l.__)("Advanced Heading","otter-blocks"),description:(0,l.__)("Advanced Heading gives a spin to editor's Heading block with much needed customization options. Powered by Otter.","otter-blocks"),icon:r.headingIcon,keywords:["heading","title","advanced heading"],deprecated:R,transforms:L,edit:e=>{let{attributes:t,setAttributes:o,clientId:n,mergeBlocks:r,onReplace:s}=e;const{isViewportAvailable:d,isPreviewDesktop:m,isPreviewTablet:u,isPreviewMobile:b}=(0,A.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),p=(0,I.useViewportMatch)("large",">="),g=(0,I.useViewportMatch)("large","<="),h=(0,I.useViewportMatch)("small",">="),k=(0,I.useViewportMatch)("small","<=");(0,i.useEffect)((()=>{const e=(0,v.blockInit)(n,K);return()=>e(t.id)}),[t.id]);let y,_,f,w=p&&!g&&h&&!k,C=!p&&!g&&h&&!k,E=!(p||g||h||k);d&&!E&&(w=m,C=u,E=b),w&&(y={fontSize:t.fontSize?`${t.fontSize}px`:void 0},_={textAlign:t.align,paddingTop:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingTop}px`,paddingRight:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingRight}px`,paddingBottom:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingBottom}px`,paddingLeft:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingLeft}px`,marginTop:"linked"===t.marginType?`${t.margin}px`:`${t.marginTop}px`,marginBottom:"linked"===t.marginType?`${t.margin}px`:`${t.marginBottom}px`}),C&&(y={fontSize:t.fontSizeTablet?`${t.fontSizeTablet}px`:void 0},_={textAlign:t.alignTablet,paddingTop:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingTopTablet}px`,paddingRight:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingRightTablet}px`,paddingBottom:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingBottomTablet}px`,paddingLeft:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingLeftTablet}px`,marginTop:"linked"===t.marginTypeTablet?`${t.marginTablet}px`:`${t.marginTopTablet}px`,marginBottom:"linked"===t.marginTypeTablet?`${t.marginTablet}px`:`${t.marginBottomTablet}px`}),E&&(y={fontSize:t.fontSizeMobile?`${t.fontSizeMobile}px`:void 0},_={textAlign:t.alignMobile,paddingTop:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingTopMobile}px`,paddingRight:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingRightMobile}px`,paddingBottom:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingBottomMobile}px`,paddingLeft:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingLeftMobile}px`,marginTop:"linked"===t.marginTypeMobile?`${t.marginMobile}px`:`${t.marginTopMobile}px`,marginBottom:"linked"===t.marginTypeMobile?`${t.marginMobile}px`:`${t.marginBottomMobile}px`}),t.textShadow&&(f={textShadow:`${t.textShadowHorizontal}px ${t.textShadowVertical}px ${t.textShadowBlur}px ${P()(t.textShadowColor?t.textShadowColor:"#000000",0<=t.textShadowColorOpacity?t.textShadowColorOpacity||1e-5:1)}`});const x=(0,H.omitBy)({color:t.headingColor,...y,fontFamily:t.fontFamily||void 0,fontWeight:"regular"===t.fontVariant?"normal":t.fontVariant,fontStyle:t.fontStyle||void 0,textTransform:t.textTransform||void 0,lineHeight:(3<t.lineHeight?t.lineHeight+"px":t.lineHeight)||void 0,letterSpacing:t.letterSpacing&&`${t.letterSpacing}px`,..._,...f},(e=>{var t;return null==e||null===(t=e.includes)||void 0===t?void 0:t.call(e,"undefined")})),T=(0,c.useBlockProps)({id:t.id,style:x});return(0,i.useEffect)((()=>{t.fontFamily&&q.Z.loadFontToBrowser(t.fontFamily,t.fontVariant)}),[t.fontFamily]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",null,`#block-${n} mark, #block-${n} .highlight {\n\t\t\t\t\t\tcolor: ${t.highlightColor};\n\t\t\t\t\t\tbackground: ${t.highlightBackground};\n\t\t\t\t\t}`),(0,i.createElement)(F,{attributes:t,setAttributes:o}),(0,i.createElement)(j,{attributes:t,setAttributes:o}),(0,i.createElement)(c.RichText,(0,N.Z)({identifier:"content",value:t.content,placeholder:(0,l.__)("Write heading…","otter-blocks"),tagName:t.tag,allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/highlight","themeisle-blocks/count-animation","themeisle-blocks/typing-animation","themeisle-blocks/dynamic-value"],onMerge:r,onSplit:(e,o)=>{let l;var r;return l=o||e?(0,a.createBlock)("themeisle-blocks/advanced-heading",{...t,content:e}):(0,a.createBlock)(null!==(r=(0,a.getDefaultBlockName)())&&void 0!==r?r:"themeisle-blocks/advanced-heading"),o&&(l.clientId=n),l},onReplace:s,onRemove:()=>s([]),onChange:e=>{o({content:e})}},T)))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,className:t.id});return(0,i.createElement)(c.RichText.Content,(0,N.Z)({tagName:t.tag,value:t.content},o))},example:{attributes:{content:(0,l.__)("A heading with more customization options","otter-blocks")}}});var Q=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/button-group","title":"Button Group","category":"themeisle-blocks","description":"Prompt visitors to take action with a button group. Powered by Otter.","keywords":["button","buttons","button group"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"align":{"type":["string","object"]},"spacing":{"type":"number","default":20},"paddingTopBottom":{"type":"number"},"paddingLeftRight":{"type":"number"},"collapse":{"type":"string","default":"collapse-none"},"fontSize":{"type":"number"},"fontFamily":{"type":"string"},"fontVariant":{"type":"string"},"textTransform":{"type":"string"},"fontStyle":{"type":"string"},"lineHeight":{"type":"number"}},"editorStyle":"otter-button-group-editor","style":"otter-button-group-style"}');const Y={id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},X=[{attributes:Y,save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"",a={fontSize:`${t.fontSize}px`,fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&`${t.lineHeight}px`};return(0,i.createElement)("div",{id:t.id,className:g()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,H.times)(t.buttons,(e=>(e=>{const o={...a,borderWidth:`${t.data[e].borderSize}px`,borderRadius:`${t.data[e].borderRadius}px`,padding:`${t.data[e].paddingTopBottom}px ${t.data[e].paddingLeftRight}px`};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:g()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`),style:o},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,i.createElement)("i",{className:g()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,i.createElement)(c.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,i.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))})(e))))}},{attributes:Y,save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"",a={fontSize:`${t.fontSize}px`,fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&`${t.lineHeight}px`};return(0,i.createElement)("div",{id:t.id,className:g()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,H.times)(t.buttons,(e=>(e=>{const o={...a,borderWidth:`${t.data[e].borderSize}px`,borderRadius:`${t.data[e].borderRadius}px`,padding:`${t.data[e].paddingTopBottom}px ${t.data[e].paddingLeftRight}px`};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:g()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`),style:o,rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,i.createElement)("i",{className:g()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,i.createElement)(c.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,i.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))})(e))))}},{attributes:{...Y,fontSize:{type:"number"},fontStyle:{type:"string"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""},{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""}]}},migrate:(e,t)=>{let o,l,n;return"flex-start"===e.align&&(o="left"),"center"===e.align&&(o="center"),"flex-end"===e.align&&(o="right"),e.data&&(l=(0,H.pick)(e.data[0],["paddingLeftRight","paddingTopBottom"]),1<=Object.keys(l).length&&(l=(0,H.pick)(l,Object.keys(l).filter((e=>""!==l[e])))),n=e.data.filter(((t,o)=>o<e.buttons)).map((e=>{const t=(0,H.omit)(e,["paddingLeftRight","paddingTopBottom"]);return(0,a.createBlock)("themeisle-blocks/button",{...t})}))),[{...(0,H.omit)(e,["buttons","data"]),align:o,...l},[...n,...t]]},save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"";return(0,i.createElement)("div",{id:t.id,className:g()(o,l,"wp-block-button")},(0,H.times)(t.buttons,(e=>(e=>(0,i.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:g()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`,"wp-block-button__link"),rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,i.createElement)("i",{className:g()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,i.createElement)(c.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,i.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))(e))))}}];var ee=X,te=o(4022),oe=o(1138),le=o(4934),ae=o(2380),ne=o(9700),re=o(8286),ie=e=>{var t,o;let{attributes:a,setAttributes:n,currentDevice:r}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Spacing","otter-blocks")},(0,i.createElement)(D.Z,{label:(0,l.__)("Padding","otter-blocks"),min:0,max:100,onChange:(e,t)=>{"top"!==e&&"bottom"!==e||n({paddingTopBottom:t}),"right"!==e&&"left"!==e||n({paddingLeftRight:t})},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:a.paddingTopBottom},{label:(0,l.__)("Right","otter-blocks"),type:"right",value:a.paddingLeftRight},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:a.paddingTopBottom},{label:(0,l.__)("Left","otter-blocks"),type:"left",value:a.paddingLeftRight}]}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Spacing","otter-blocks"),value:a.spacing,onChange:e=>n({spacing:e}),step:.1,min:0,max:50}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Collapse On","otter-blocks"),value:a.collapse,options:[{label:(0,l.__)("None","otter-blocks"),value:"collapse-none"},{label:(0,l.__)("Desktop","otter-blocks"),value:"collapse-desktop"},{label:(0,l.__)("Tablet","otter-blocks"),value:"collapse-tablet"},{label:(0,l.__)("Mobile","otter-blocks"),value:"collapse-mobile"}],onChange:e=>n({collapse:e})}),(0,i.createElement)($.Z,{label:(0,l.__)("Alignment","otter-blocks"),className:"buttons-alignment-control"},(0,i.createElement)(re.Z,{value:null!==(t=null==a||null===(o=a.align)||void 0===o?void 0:o[r])&&void 0!==t?t:"none",options:[{icon:te.Z,label:(0,l.__)("None","otter-blocks"),value:"none"},{icon:oe.Z,label:(0,l.__)("Full","otter-blocks"),value:"full"},{icon:le.Z,label:(0,l.__)("Left","otter-blocks"),value:"left"},{icon:ae.Z,label:(0,l.__)("Center","otter-blocks"),value:"center"},{icon:ne.Z,label:(0,l.__)("Right","otter-blocks"),value:"right"}],onChange:e=>{const t=a.align?{desktop:a.align.desktop,tablet:a.align.tablet,mobile:a.align.mobile}:{};t[r]="none"===e?void 0:e,n({align:t})},hideLabels:!0,hasIcon:!0}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Font Size","otter-blocks"),value:a.fontSize,onChange:e=>n({fontSize:e}),step:.1,min:0,max:50}),(0,i.createElement)(O.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:a.fontFamily,onChangeFontFamily:e=>{n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:void 0,fontVariant:void 0,fontStyle:void 0})},valueVariant:a.fontVariant,onChangeFontVariant:e=>n({fontVariant:e}),valueStyle:a.fontStyle,onChangeFontStyle:e=>n({fontStyle:e}),valueTransform:a.textTransform,onChangeTextTransform:e=>n({textTransform:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:a.lineHeight,onChange:e=>n({lineHeight:e}),step:.1,min:0,max:200})))};const{attributes:ce}=Q;const{name:se}=Q;(0,a.registerBlockType)(se,{...Q,title:(0,l.__)("Button Group","otter-blocks"),description:(0,l.__)("Prompt visitors to take action with a button group. Powered by Otter.","otter-blocks"),icon:r.buttonsIcon,keywords:["button","buttons","button group"],deprecated:ee,edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const{isViewportAvailable:a,isPreviewDesktop:n,isPreviewTablet:r,isPreviewMobile:s}=(0,A.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),d=(0,A.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o().toLowerCase():t().toLowerCase()}),[]),m=(0,I.useViewportMatch)("large",">="),u=(0,I.useViewportMatch)("large","<="),b=(0,I.useViewportMatch)("small",">="),p=(0,I.useViewportMatch)("small","<=");(0,i.useEffect)((()=>{const e=(0,v.blockInit)(l,ce);return()=>e(t.id)}),[]);let h=m&&!u&&b&&!p,k=!m&&!u&&b&&!p,y=!(m||u||b||p);a&&!y&&(h=n,k=r,y=s);const _={"--spacing":t.spacing&&t.spacing+"px"},f=["desktop","tablet","mobile"].reduce(((e,o)=>(t.align&&t.align[o]&&e.push(`align-${t.align[o]}-${o}`),e)),[]),w=(0,c.useBlockProps)({id:t.id,className:g()("wp-block-buttons",{[`align-${t.align}`]:"string"==typeof t.align,collapse:"collapse-desktop"===t.collapse&&(h||k||y)||"collapse-tablet"===t.collapse&&(k||y)||"collapse-mobile"===t.collapse&&y},...f),style:_});return(0,i.useEffect)((()=>{t.fontFamily&&q.Z.loadFontToBrowser(t.fontFamily,t.fontVariant)}),[t.fontFamily]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(ie,{attributes:t,setAttributes:o,currentDevice:d}),(0,i.createElement)("div",w,(0,i.createElement)(c.InnerBlocks,{allowedBlocks:["themeisle-blocks/button"],__experimentalMoverDirection:"horizontal",orientation:"horizontal",template:[["themeisle-blocks/button"]],renderAppender:c.InnerBlocks.DefaultAppender})))},save:e=>{let{attributes:t}=e;const o="collapse-none"!==t.collapse?t.collapse:"",l=["desktop","tablet","mobile"].reduce(((e,o)=>(t.align&&t.align[o]&&e.push(`align-${t.align[o]}-${o}`),e)),[]),a=c.useBlockProps.save({id:t.id,className:g()(o,"wp-block-buttons",{[`align-${t.align}`]:"string"==typeof t.align},...l)});return(0,i.createElement)("div",a,(0,i.createElement)(c.InnerBlocks.Content,null))},example:{attributes:{spacing:20},innerBlocks:[{name:"themeisle-blocks/button",attributes:{text:(0,l.__)("Button 1","otter-blocks")}},{name:"themeisle-blocks/button",attributes:{text:(0,l.__)("Button 2","otter-blocks")}}]}});var de=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/button","title":"Button","category":"themeisle-blocks","description":"Prompt visitors to take action with a button group. Powered by Otter.","keywords":["button","buttons","button group"],"parent":["themeisle-blocks/button-group"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"text":{"type":"string","source":"html","selector":"span"},"link":{"type":"string","source":"attribute","selector":"a","attribute":"href"},"newTab":{"type":"boolean","default":false},"color":{"type":"string"},"background":{"type":"string"},"backgroundGradient":{"type":"string"},"border":{"type":"string"},"hoverColor":{"type":"string"},"hoverBackground":{"type":"string"},"hoverBackgroundGradient":{"type":"string"},"hoverBorder":{"type":"string"},"borderSize":{"type":"number"},"borderRadius":{"type":"number"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":1},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"hoverBoxShadowColor":{"type":"string"},"hoverBoxShadowColorOpacity":{"type":"number","default":50},"hoverBoxShadowBlur":{"type":"number","default":5},"hoverBoxShadowSpread":{"type":"number","default":1},"hoverBoxShadowHorizontal":{"type":"number","default":0},"hoverBoxShadowVertical":{"type":"number","default":0},"iconType":{"type":"string","default":"none"},"library":{"type":"string","default":"fontawesome"},"prefix":{"type":"string"},"icon":{"type":"string"}},"supports":{"reusable":false},"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"}]}'),me=o(8406),ue=o(6421),be=window.wp.keycodes,pe=e=>{let{isSelected:t,url:o,setAttributes:a,opensInNewTab:n}=e;const[r,d]=(0,i.useState)(!1),m=!!o,u=m&&t,b=()=>(d(!0),!1),p=()=>{a({link:void 0,newTab:void 0}),d(!1)},g=r&&(0,i.createElement)(s.Popover,{position:"bottom right",onClose:()=>d(!1)},(0,i.createElement)(c.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:o,opensInNewTab:n},onChange:e=>{let{url:t="",opensInNewTab:o}=e;a({link:t}),n!==o&&a({newTab:o})}}));return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.ToolbarGroup,null,!m&&(0,i.createElement)(s.ToolbarButton,{name:"link",icon:me.Z,title:(0,l.__)("Link","otter-blocks"),shortcut:be.displayShortcut.primary("k"),onClick:b,className:"o-toolbar-icon"}),u&&(0,i.createElement)(s.ToolbarButton,{name:"link",icon:ue.Z,title:(0,l.__)("Unlink","otter-blocks"),shortcut:be.displayShortcut.primaryShift("k"),onClick:p,isActive:!0,className:"o-toolbar-icon"})),t&&(0,i.createElement)(s.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{[be.rawShortcut.primary("k")]:b,[be.rawShortcut.primaryShift("k")]:p}}),g)},ge=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(pe,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))};const he=(0,i.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var ke=e=>{let{attributes:t,setAttributes:o}=e;const[a,n]=(0,i.useState)(!1),r=()=>(0,i.createElement)(s.ButtonGroup,null,(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:a,isPrimary:!a,onClick:()=>n(!1)},(0,l.__)("Normal","otter-blocks")),(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:!a,isPrimary:a,onClick:()=>n(!0)},(0,l.__)("Hover","otter-blocks")));return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Color","otter-blocks")},(0,i.createElement)(r,null),a?(0,i.createElement)(i.Fragment,{key:"with-hover"},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Hover Color","otter-blocks"),colorValue:t.hoverColor,onColorChange:e=>o({hoverColor:e})}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Hover Background","otter-blocks"),colorValue:t.hoverBackground,gradientValue:t.hoverBackgroundGradient,onColorChange:e=>o({hoverBackground:e}),onGradientChange:e=>o({hoverBackgroundGradient:e})})):(0,i.createElement)(i.Fragment,{key:"without-hover"},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.color,onColorChange:e=>o({color:e})}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:t.background,gradientValue:t.backgroundGradient,onColorChange:e=>o({background:e}),onGradientChange:e=>o({backgroundGradient:e})}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Border & Box Shadow","otter-blocks"),initialOpen:!1},(0,i.createElement)(r,null),a?(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Hover Border","otter-blocks"),colorValue:t.hoverBorder,onColorChange:e=>o({hoverBorder:e})}):(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.border,onColorChange:e=>o({border:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),step:.1,min:0,max:10}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),step:.1,min:0,max:100}),(0,i.createElement)(G.Z,{label:(0,l.__)("Box Shadow","otter-blocks"),attributes:t,setAttributes:o,resetValues:{boxShadow:!1,boxShadowColor:void 0,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:void 0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0},onClick:()=>o({boxShadow:!0})},(0,i.createElement)(r,null),a?(0,i.createElement)(i.Fragment,{key:"with-hover"},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color on Hover","otter-blocks"),colorValue:t.hoverBoxShadowColor,onColorChange:e=>o({hoverBoxShadowColor:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.hoverBoxShadowColorOpacity,onChange:e=>o({hoverBoxShadowColorOpacity:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.hoverBoxShadowBlur,onChange:e=>o({hoverBoxShadowBlur:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.hoverBoxShadowSpread,onChange:e=>o({hoverBoxShadowSpread:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.hoverBoxShadowHorizontal,onChange:e=>o({hoverBoxShadowHorizontal:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.hoverBoxShadowVertical,onChange:e=>o({hoverBoxShadowVertical:e}),min:-100,max:100})):(0,i.createElement)(i.Fragment,{key:"without-hover"},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Icon Settings","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Icon Position","otter-blocks"),value:t.iconType,options:[{label:(0,l.__)("No Icon","otter-blocks"),value:"none"},{label:(0,l.__)("Left","otter-blocks"),value:"left"},{label:(0,l.__)("Right","otter-blocks"),value:"right"},{label:(0,l.__)("Icon Only","otter-blocks"),value:"only"}],onChange:e=>o({iconType:e})}),"none"!==t.iconType&&(0,i.createElement)(i.Suspense,{fallback:(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null))},(0,i.createElement)(he,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.library,prefix:t.prefix,icon:t.icon,changeLibrary:e=>{o({library:e,icon:void 0,prefix:"fab"})},onChange:e=>{o("object"==typeof e?{icon:e.name,prefix:e.prefix}:{icon:e})}}))))},ve=o(48);const{attributes:ye}=de;const{name:_e}=de;(0,a.registerBlockType)(_e,{...de,title:(0,l.__)("Button","otter-blocks"),description:(0,l.__)("Prompt visitors to take action with a button group. Powered by Otter.","otter-blocks"),icon:r.buttonsIcon,keywords:["button","buttons","button group"],styles:[{name:"fill",label:(0,l.__)("Fill","otter-blocks"),isDefault:!0},{name:"outline",label:(0,l.__)("Outline","otter-blocks")},...window.themeisleGutenberg.hasNeve?[{name:"primary",label:(0,l.__)("Primary","otter-blocks")},{name:"secondary",label:(0,l.__)("Secondary","otter-blocks")}]:[]],edit:e=>{let{attributes:t,setAttributes:o,isSelected:a,clientId:n}=e;const{hasParent:r,parentAttributes:s}=(0,A.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),l=t(o(n));return{hasParent:!!l,parentAttributes:l?l.attributes:{}}}),[]);(0,i.useEffect)((()=>{const e=(0,v.blockInit)(n,ye);return()=>e(t.id)}),[]);let d={},m={};t.boxShadow&&(d={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${P()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`}),r&&(m={paddingTop:`${s.paddingTopBottom}px`,paddingBottom:`${s.paddingTopBottom}px`,paddingLeft:`${s.paddingLeftRight}px`,paddingRight:`${s.paddingLeftRight}px`,fontSize:s.fontSize&&`${s.fontSize}px`,fontFamily:s.fontFamily,fontWeight:s.fontVariant,fontStyle:s.fontStyle,textTransform:s.textTransform,lineHeight:s.lineHeight&&`${s.lineHeight}px`});const u={color:t.color,background:t.background||t.backgroundGradient,border:`${t.borderSize}px solid ${t.border}`,borderRadius:t.borderRadius,...d,...m},b={fill:t.color,width:s.fontSize&&`${s.fontSize}px`},p=ve.ZP.icons[t.icon],[h,k]=(0,v.useCSSNode)();(0,i.useEffect)((()=>{k([`.wp-block-button__link:hover {\n\t\t\t\tcolor: ${t.hoverColor} !important;\n\t\t\t\tbackground: ${t.hoverBackground||t.hoverBackgroundGradient} !important;\n\t\t\t\tborder-color: ${t.hoverBorder} !important;\n\t\t\t\t${t.boxShadow&&`box-shadow: ${t.hoverBoxShadowHorizontal}px ${t.hoverBoxShadowVertical}px ${t.hoverBoxShadowBlur}px ${t.hoverBoxShadowSpread}px ${P()(t.hoverBoxShadowColor?t.hoverBoxShadowColor:"#000000",t.hoverBoxShadowColorOpacity)} !important;`}\n\t\t\t}`,`.wp-block-button__link:hover svg {\n\t\t\t\tfill: ${t.hoverColor} !important;\n\t\t\t}`])}),[t.hoverColor,t.hoverBackground,t.hoverBackgroundGradient,t.hoverBorder,t.hoverColor,t.boxShadow,t.hoverBoxShadowHorizontal,t.hoverBoxShadowBlur,t.hoverBoxShadowSpread,t.hoverBoxShadowColor,t.hoverBoxShadowColorOpacity]);const y=(0,c.useBlockProps)({id:t.id,className:g()("wp-block-button",h),style:{}});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(ge,{attributes:t,setAttributes:o,isSelected:a}),(0,i.createElement)(ke,{attributes:t,setAttributes:o}),(0,i.createElement)("div",y,"none"!==t.iconType?(0,i.createElement)("div",{className:"wp-block-button__link",style:u},("left"===t.iconType||"only"===t.iconType)&&("themeisle-icons"===t.library&&t.icon?(0,i.createElement)(p,{className:g()({"margin-right":"left"===t.iconType}),style:b}):(0,i.createElement)("i",{className:g()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.text,onChange:e=>o({text:e}),tagName:"div",withoutInteractiveFormatting:!0}),"right"===t.iconType&&("themeisle-icons"===t.library&&t.icon?(0,i.createElement)(p,{className:"margin-left",style:b}):(0,i.createElement)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))):(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.text,onChange:e=>o({text:e}),tagName:"div",withoutInteractiveFormatting:!0,className:"wp-block-button__link",style:u})))},save:e=>{let{attributes:t}=e;const o=ve.ZP.icons[t.icon],l=c.useBlockProps.save({id:t.id,className:"wp-block-button"});return(0,i.createElement)("div",l,(0,i.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer",className:"wp-block-button__link"},("left"===t.iconType||"only"===t.iconType)&&("themeisle-icons"===t.library&&t.icon?(0,i.createElement)(o,{className:g()({"margin-right":"left"===t.iconType})}):(0,i.createElement)("i",{className:g()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,i.createElement)(c.RichText.Content,{tagName:"span",value:t.text}),"right"===t.iconType&&("themeisle-icons"===t.library&&t.icon?(0,i.createElement)(o,{className:"margin-left"}):(0,i.createElement)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))))},example:{attributes:{}}});var fe=o(269),we=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/circle-counter","title":"Circle Counter","category":"themeisle-blocks","description":"Show your progress with a beautiful Circle Counter block. Powered by Otter.","keywords":["progress","circle","counter"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string","default":"Skill"},"percentage":{"type":"number","default":50},"duration":{"type":"number","default":2},"titleStyle":{"type":"string","default":"default"},"height":{"type":"number","default":100},"fontSizeTitle":{"type":"number"},"fontSizePercent":{"type":"number"},"strokeWidth":{"type":"number","default":10},"backgroundColor":{"type":"string"},"progressColor":{"type":"string"},"titleColor":{"type":"string"}},"editorStyle":"otter-circle-counter-editor","style":"otter-circle-counter-style","script":"otter-circle-counter"}'),Ce=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Percentage","otter-blocks"),help:(0,l.__)("The value of the counter.","otter-blocks"),value:t.percentage,onChange:e=>{void 0!==e&&(e=(0,H.clamp)(e,0,100),o({percentage:e}))},min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Duration","otter-blocks"),help:(0,l.__)("The duration of the animation.","otter-blocks"),value:t.duration,onChange:e=>{void 0!==e&&(e=(0,H.clamp)(e,0,3),o({duration:e}))},min:0,max:3}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Title Style","otter-blocks"),value:t.titleStyle,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Hide","otter-blocks"),value:"hide"},{label:(0,l.__)("Bottom","otter-blocks"),value:"bottom"}],onChange:e=>o({titleStyle:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Style","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("The height of the circle counter.","otter-blocks"),value:t.height,onChange:e=>o({height:e}),min:0,max:240}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Circle Thickness","otter-blocks"),help:(0,l.__)("Change the thickness (stroke width) of the circle.","otter-blocks"),value:t.strokeWidth,onChange:e=>o({strokeWidth:e}),initialPosition:10,min:0,max:20}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Font Size Title","otter-blocks"),help:(0,l.__)("Change the font size of the title.","otter-blocks"),value:t.fontSizeTitle,onChange:e=>o({fontSizeTitle:e}),initialPosition:37,min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Font Size Percent","otter-blocks"),help:(0,l.__)("Change the font size of the inner text.","otter-blocks"),value:t.fontSizePercent,onChange:e=>o({fontSizePercent:e}),initialPosition:27,min:0,max:80}),"hide"!==t.titleStyle&&(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Title Color","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>o({titleColor:e})}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Progress Color","otter-blocks"),colorValue:t.progressColor,onColorChange:e=>o({progressColor:e})}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Background Color","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>o({backgroundColor:e})})))},Ee=e=>{let{attributes:t,progressRef:o,valueRef:l}=e;const a=t.height,n=a/2,r=a/2-t.strokeWidth/2,c=2*Math.PI*r;return 0>r?(0,i.createElement)("div",null):(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter__bar",style:{height:a+"px",width:a+"px"}},(0,i.createElement)("svg",{className:"wp-block-themeisle-blocks-circle-counter-container",width:a,height:a},(0,i.createElement)("circle",{className:"wp-block-themeisle-blocks-circle-counter-bg",cx:n,cy:n,r:r,strokeWidth:t.strokeWidth,style:{stroke:t.backgroundColor}}),(0,i.createElement)("circle",{ref:o,className:"wp-block-themeisle-blocks-circle-counter-progress",cx:n,cy:n,r:r,strokeWidth:t.strokeWidth,strokeDasharray:c,style:{stroke:t.progressColor}}),(0,i.createElement)("text",{ref:l,className:"wp-block-themeisle-blocks-circle-counter-text",x:"50%",y:"50%",style:{fill:t.progressColor,fontSize:t.fontSizePercent+"px"}},t.percentage,"%")))};const{attributes:xe}=we;const{clamp:Te,omit:Se}=lodash,Me={to:[{type:"block",blocks:["themeisle-blocks/progress-bar"],transform:e=>{const t=Se(e,["titleStyle","height","fontSize","strokeWidth","progressColor"]);return(0,a.createBlock)("themeisle-blocks/progress-bar",{...t,barBackgroundColor:e.progressColor,height:Te(e.height/4,0,100),titleStyle:"default"})}}]};var Be=Me;const{name:ze}=we;(0,a.registerBlockType)(ze,{...we,title:(0,l.__)("Circle Counter","otter-blocks"),description:(0,l.__)("Show your progress with a beautiful Circle Counter block. Powered by Otter.","otter-blocks"),icon:fe.Z,keywords:["progress","circle","counter"],transforms:Be,edit:e=>{let{clientId:t,attributes:o,setAttributes:a,isSelected:n,toggleSelection:r}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(t,xe);return()=>e(o.id)}),[o.id]);const d=(0,i.useRef)(null),m=(0,i.useRef)(null),[u,b]=(0,i.useState)({}),p=o.height/2-o.strokeWidth/2,g=2*Math.PI*p;(0,i.useEffect)((()=>{if(!d.current||!d.current||0===o.duration)return;const e=o.percentage/(1e3*o.duration),t=(0,H.range)(0,1e3*o.duration+20,20).map((t=>t*e)).reverse();u&&clearInterval(u),d.current.style.strokeDashoffset=g,m.current.innerText="0%";const l=setInterval((()=>{if(!d.current)return void clearInterval(l);const e=Math.round(t.pop());d.current.style.strokeDashoffset=(100-e)/100*g,m.current.innerHTML=e+"%",0===t.length&&clearInterval(l)}),20);return b(l),()=>{clearInterval(l)}}),[o.duration]),(0,i.useEffect)((()=>{if(d.current&&d.current)return d.current.style.strokeDashoffset=(100-o.percentage)/100*g,m.current.innerHTML=o.percentage+"%",clearInterval(u),()=>{clearInterval(u)}}),[o.percentage,o.height]);const h={"--font-size-title":(k=o.fontSizeTitle,k?`${k}px`:k)};var k;const y=(0,c.useBlockProps)({id:o.id,style:h});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Ce,{attributes:o,setAttributes:a}),(0,i.createElement)("div",y,"default"===o.titleStyle&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.createElement)(c.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:n?(0,l.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:e=>a({title:e}),multiline:!1,style:{color:o.titleColor}})),(0,i.createElement)(s.ResizableBox,{size:{height:o.height,width:o.height},minHeight:0,maxHeight:240,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:n,onResizeStop:(e,t,l,n)=>{a({height:parseInt(o.height+n.height,10)}),r(!0)},onResizeStart:()=>{r(!1)}},(0,i.createElement)(Ee,{attributes:o,progressRef:d,valueRef:m})),"bottom"===o.titleStyle&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.createElement)(c.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:n?(0,l.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:e=>a({title:e}),multiline:!1,style:{color:o.titleColor}}))))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,"data-percentage":t.percentage,"data-duration":t.duration,"data-height":t.height,"data-stroke-width":t.strokeWidth,"data-font-size-percent":t.fontSizePercent,"data-background-stroke":t.backgroundColor,"data-progress-stroke":t.progressColor});return(0,i.createElement)("div",o,"default"===t.titleStyle&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter__bar"}),"bottom"===t.titleStyle&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)))},example:{attributes:{title:"Lorem ipsum"}}});var Pe=o(2506),Ve=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/countdown","title":"Countdown","category":"themeisle-blocks","description":"Set a countdown for a date. Powered by Otter.","keywords":["countdown","time","counter"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"date":{"type":"string"},"exclude":{"type":"array"},"backgroundColor":{"type":"string"},"valueColor":{"type":"string"},"labelColor":{"type":"string"},"labelDistance":{"type":"number"},"separatorColor":{"type":"string"},"gap":{"type":"number"},"gapTablet":{"type":"number"},"gapMobile":{"type":"number"},"width":{"type":"number"},"widthTablet":{"type":"number"},"widthMobile":{"type":"number"},"containerWidth":{"type":"string"},"containerWidthTablet":{"type":"string"},"containerWidthMobile":{"type":"string"},"height":{"type":"number"},"heightTablet":{"type":"number"},"heightMobile":{"type":"number"},"borderRadius":{"type":["number","object"]},"borderRadiusBox":{"type":"object"},"borderStyle":{"type":"string"},"borderWidth":{"type":"number"},"borderWidthTablet":{"type":"number"},"borderWidthMobile":{"type":"number"},"borderColor":{"type":"string"},"valueFontSize":{"type":["number","string"]},"valueFontSizeTablet":{"type":["number","string"]},"valueFontSizeMobile":{"type":["number","string"]},"labelFontSize":{"type":["number","string"]},"labelFontSizeTablet":{"type":["number","string"]},"labelFontSizeMobile":{"type":["number","string"]},"hasSeparators":{"type":"boolean"},"valueFontWeight":{"type":"string"},"labelFontWeight":{"type":"string"},"alignment":{"type":"string"},"padding":{"type":"object"},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"borderRadiusTopRight":{"type":"number"},"borderRadiusTopLeft":{"type":"number"},"borderRadiusBottomRight":{"type":"number"},"borderRadiusBottomLeft":{"type":"number"},"borderRadiusType":{"type":"string","default":"linked"},"separatorAlignment":{"type":"string"}},"supports":{"align":["wide","full"]},"editorStyle":"otter-countdown-editor","style":"otter-countdown-style","script":"otter-countdown"}'),Re=o(6292),Le=o.n(Re),Ne=o(9771),He=o(4715);const Ie=[{name:(0,l.__)("Small","otter-blocks"),size:"0.875em",slug:"small"},{name:(0,l.__)("Medium","otter-blocks"),size:"1em",slug:"medium"},{name:(0,l.__)("Large","otter-blocks"),size:"1.125em",slug:"large"},{name:(0,l.__)("XL","otter-blocks"),size:"1.25em",slug:"xl"}],Ae=["","100","200","300","400","500","600","700","800","900"].map((e=>({label:e||"Default",value:e})));var Oe=e=>{var t,o,a,n,r,d,m,u,b;let{attributes:p,setAttributes:g}=e;const{responsiveSetAttributes:h,responsiveGetAttributes:k}=(0,A.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post"),l=o?o():t();return{responsiveSetAttributes:(0,He.GM)(g,l),responsiveGetAttributes:(0,He._c)(l)}}),[]),v=(e,t)=>{var o;g(e?{exclude:null==p||null===(o=p.exclude)||void 0===o?void 0:o.filter((e=>e!==t))}:{exclude:null!=p&&p.exclude?[...null==p?void 0:p.exclude,t]:[t]})},y=(0,Ne.__experimentalGetSettings)();return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Time","otter-blocks")},(0,i.createElement)(s.Dropdown,{position:"bottom left",headerTitle:(0,l.__)("Select the date for the deadline","otter-blocks"),renderToggle:e=>{let{onToggle:t,isOpen:o}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Button,{onClick:t,isSecondary:!0,"aria-expanded":o},p.date?(0,Ne.format)(y.formats.datetime,p.date):(0,l.__)("Select Date","otter-blocks")))},renderContent:()=>(0,i.createElement)(s.DateTimePicker,{currentDate:p.date,onChange:e=>g({date:e})})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display Days","otter-blocks"),checked:!(null!=p&&null!==(t=p.exclude)&&void 0!==t&&t.includes("day")),onChange:e=>v(e,"day")}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display Hours","otter-blocks"),checked:!(null!=p&&null!==(o=p.exclude)&&void 0!==o&&o.includes("hour")),onChange:e=>v(e,"hour")}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display Minutes","otter-blocks"),checked:!(null!=p&&null!==(a=p.exclude)&&void 0!==a&&a.includes("minute")),onChange:e=>v(e,"minute")}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display Seconds","otter-blocks"),checked:!(null!=p&&null!==(n=p.exclude)&&void 0!==n&&n.includes("second")),onChange:e=>v(e,"second")}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display Separators","otter-blocks"),checked:null==p?void 0:p.hasSeparators,onChange:e=>g({hasSeparators:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Dimensions & Spacing","otter-blocks"),initialOpen:!1},(0,i.createElement)($.Z,{label:(0,l.__)("Width","otter-blocks")},(0,i.createElement)(s.__experimentalUnitControl,{value:null!==(r=k([p.containerWidth,p.containerWidthTablet,p.containerWidthMobile]))&&void 0!==r?r:"100%",onChange:e=>h(e,["containerWidth","containerWidthTablet","containerWidthMobile"])})),(0,i.createElement)($.Z,{label:(0,l.__)("Height","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:null!==(d=k([p.height,p.heightTablet,p.heightMobile]))&&void 0!==d?d:100,onChange:e=>h(e,["height","heightTablet","heightMobile"]),min:50,max:800,allowReset:!0})),(0,i.createElement)($.Z,{label:(0,l.__)("Space Between","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:null!==(m=k([p.gap,p.gapTablet,p.gapMobile]))&&void 0!==m?m:6,onChange:e=>h(e,["gap","gapTablet","gapMobile"]),min:0,max:100,allowReset:!0})),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Position","otter-blocks"),value:p.alingment,onChange:e=>g({alignment:e||void 0}),options:[{label:(0,l.__)("Default","otter-blocks"),value:""},{label:(0,l.__)("Left","otter-blocks"),value:"flex-start"},{label:(0,l.__)("Center","otter-blocks"),value:"center"},{label:(0,l.__)("Right","otter-blocks"),value:"flex-end"}]}),p.hasSeparators&&(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Separator Alignment","otter-blocks"),value:p.separatorAlignment,onChange:e=>{g(e?{separatorAlignment:e}:{separatorAlignment:void 0})},options:[{label:(0,l.__)("Default","otter-blocks"),value:""},{label:(0,l.__)("Center","otter-blocks"),value:"center"}]})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Typography","otter-blocks"),initialOpen:!1},(0,i.createElement)($.Z,{label:(0,l.__)("Time Value Font Size","otter-blocks")},(0,i.createElement)(s.FontSizePicker,{fontSizes:Ie,withReset:!0,value:k([p.valueFontSize,p.valueFontSizeTablet,p.valueFontSizeMobile]),onChange:e=>h(e,["valueFontSize","valueFontSizeTablet","valueFontSizeMobile"])})),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Time Value Font Weight","otter-blocks"),value:p.valueFontWeight,onChange:e=>g({valueFontWeight:e||void 0}),options:Ae}),(0,i.createElement)($.Z,{label:(0,l.__)("Label Font Size","otter-blocks")},(0,i.createElement)(s.FontSizePicker,{fontSizes:Ie,withReset:!0,value:k([p.labelFontSize,p.labelFontSizeTablet,p.labelFontSizeMobile]),onChange:e=>h(e,["labelFontSize","labelFontSizeTablet","labelFontSizeMobile"])})),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Label Font Weight","otter-blocks"),value:p.labelFontWeight,onChange:e=>g({labelFontWeight:e||void 0}),options:Ae})),(0,i.createElement)(c.PanelColorSettings,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:p.backgroundColor,onChange:e=>g({backgroundColor:e}),label:(0,l.__)("Background","otter-blocks")},{value:p.valueColor,onChange:e=>g({valueColor:e}),label:(0,l.__)("Time Value","otter-blocks")},{value:p.labelColor,onChange:e=>g({labelColor:e}),label:(0,l.__)("Label","otter-blocks")},{value:p.separatorColor,onChange:e=>g({separatorColor:e}),label:(0,l.__)("Separator","otter-blocks")},{value:p.borderColor,onChange:e=>g({borderColor:e}),label:(0,l.__)("Border","otter-blocks")}]},(0,i.createElement)(c.ContrastChecker,{textColor:p.backgroundColor,backgroundColor:p.valueColor})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Border","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Type","otter-blocks"),value:null!==(u=p.borderStyle)&&void 0!==u?u:"solid",onChange:e=>g({borderStyle:"solid"===e?void 0:e}),options:[{label:(0,l.__)("None","otter-blocks"),value:"none"},{label:(0,l.__)("Solid","otter-blocks"),value:"solid"},{label:(0,l.__)("Double","otter-blocks"),value:"double"},{label:(0,l.__)("Dotted","otter-blocks"),value:"dotted"},{label:(0,l.__)("Dashed","otter-blocks"),value:"dashed"}]}),"none"!==p.borderStyle&&(0,i.createElement)($.Z,{label:(0,l.__)("Width","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:null!==(b=k([p.borderWidth,p.borderWidthTablet,p.borderWidthMobile]))&&void 0!==b?b:2,onChange:e=>h(e,["borderWidth","borderWidthTablet","borderWidthMobile"]),min:0,max:50,allowReset:!0})),(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:(0,He.Dv)(p.borderRadiusBox,{left:"0px",right:"0px",bottom:"0px",top:"0px"}),onChange:e=>{g({borderRadiusBox:(0,He.cg)(e,{left:"0px",right:"0px",bottom:"0px",top:"0px"})})},id:"o-border-raduis-box"})))};const Fe=e=>{let{name:t,value:o,tag:l}=e;return(0,i.createElement)("div",{name:l,className:g()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,i.createElement)("div",{className:"otter-countdown__value"},o),(0,i.createElement)("div",{className:"otter-countdown__label"},t))};var Ge=e=>{let{time:t,hasSeparators:o}=e;const l=o?(0,He.S3)(t,{name:"sep",value:":",tag:"separator"}):t,a=null==l?void 0:l.map(((e,t)=>(0,i.createElement)(Fe,(0,N.Z)({},e,{key:t}))));return void 0!==t?(0,i.createElement)("div",{className:"otter-countdown__container"},(0,i.createElement)("div",{className:"otter-countdown__display"},a)):(0,i.createElement)(i.Fragment,null)};const{attributes:$e}=Ve,De=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return(0,H.isNumber)(e)?`${e}${t}`:e};const Ze=e=>{let{name:t,value:o,tag:l}=e;return(0,i.createElement)("div",{name:l,className:g()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,i.createElement)("div",{className:"otter-countdown__value"},o),(0,i.createElement)("div",{className:"otter-countdown__label"},t))},We=e=>{let{time:t,hasSeparators:o}=e;const l=o?(0,He.S3)(t,{name:"sep",value:":",tag:"separator"}):t,a=null==l?void 0:l.map(((e,t)=>(0,i.createElement)(Ze,(0,N.Z)({},e,{key:t}))));return void 0!==t?(0,i.createElement)("div",{className:"otter-countdown__container"},(0,i.createElement)("div",{className:"otter-countdown__display"},a)):(0,i.createElement)(i.Fragment,null)};const{name:Ue}=Ve;(0,a.registerBlockType)(Ue,{...Ve,title:(0,l.__)("Countdown","otter-blocks"),description:(0,l.__)("Set a countdown for a date. Powered by Otter.","otter-blocks"),icon:Pe.Z,keywords:["countdown","time","counter"],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const[a,n]=(0,i.useState)(0);(0,i.useEffect)((()=>{const e=(0,v.blockInit)(l,$e);return()=>e(t.id)}),[t.id]),(0,i.useEffect)((()=>{if(void 0===t.borderRadiusBox&&(t.borderRadius||t.borderRadiusBottomLeft||t.borderRadiusTopRight||t.borderRadiusTopLeft||t.borderRadiusBottomRight)){const e=(0,H.pickBy)("linked"===(null==t?void 0:t.borderRadiusType)?{left:De(t.borderRadius,"%"),right:De(t.borderRadius,"%"),bottom:De(t.borderRadius,"%"),top:De(t.borderRadius,"%")}:{left:De(t.borderRadiusBottomLeft,"%"),right:De(t.borderRadiusTopRight,"%"),bottom:De(t.borderRadiusBottomRight,"%"),top:De(t.borderRadiusTopLeft,"%")},(e=>e));(0,H.isEmpty)(e)||o({borderRadiusBox:e,borderRadius:void 0,borderRadiusBottomLeft:void 0,borderRadiusTopRight:void 0,borderRadiusBottomRight:void 0,borderRadiusTopLeft:void 0,borderRadiusType:void 0})}}),[]),(0,i.useEffect)((()=>{const e=setInterval((()=>{if(t.date){let e=t.date+(0,He.EP)();e=1e3*Le()(e).unix(),n(new Date(e)-new Date)}}),500);return()=>{clearInterval(e)}}),[t.date]);const r={"--border-radius":(0,He.bv)(t.borderRadiusBox),"--border-style":t.borderStyle,"--background-color":t.backgroundColor,"--border-color":t.borderColor,"--container-width":t.containerWidth,"--container-width-tablet":t.containerWidthTablet,"--container-width-mobile":t.containerWidthMobile,"--height":De(t.height),"--height-tablet":De(t.heightTablet),"--height-mobile":De(t.heightMobile),"--border-width":De(t.borderWidth),"--border-width-tablet":De(t.borderWidthTablet),"--border-width-mobile":De(t.borderWidthMobile),"--gap":De(t.gap),"--gap-tablet":De(t.gapTablet),"--gap-mobile":De(t.gapMobile),"--value-font-size":De(t.valueFontSize),"--value-font-size-tablet":De(t.valueFontSizeTablet),"--value-font-size-mobile":De(t.valueFontSizeMobile),"--label-font-size":De(t.labelFontSize),"--label-font-size-tablet":De(t.labelFontSizeTablet),"--label-font-size-mobile":De(t.labelFontSizeMobile),"--alignment":t.alignment,"--padding":(0,He.bv)(t.padding),"--padding-tablet":(0,He.bv)(t.paddingTablet),"--padding-mobile":(0,He.bv)(t.paddingMobile),"--value-font-weight":t.valueFontWeight,"--label-font-weight":t.labelFontWeight},[s,d]=(0,v.useCSSNode)();(0,i.useEffect)((()=>{d([`.otter-countdown__display-area .otter-countdown__value {\n\t\t\t\tcolor: ${t.valueColor};\n\t\t\t}`,`.otter-countdown__display-area .otter-countdown__label {\n\t\t\t\tcolor: ${t.labelColor};\n\t\t\t}`,`.otter-countdown__display-area[name="separator"] .otter-countdown__value {\n\t\t\t\tcolor: ${t.separatorColor};\n\t\t\t}`,"center"===t.separatorAlignment?'\n\t\t\t.otter-countdown__display-area[name="separator"] .otter-countdown__label {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t':""])}),[t.valueColor,t.labelColor,t.separatorColor,t.separatorAlignment]);const m=(0,c.useBlockProps)({id:t.id,className:g()(s,"ready"),style:r});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Oe,{attributes:t,setAttributes:o}),(0,i.createElement)("div",m,(0,i.createElement)(Ge,{time:(0,He.Mg)(a,{exclude:null==t?void 0:t.exclude}),hasSeparators:t.hasSeparators})))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,"data-date":t.date});return(0,i.createElement)("div",o,(0,i.createElement)(We,{time:(0,He.Mg)(0,{exclude:null==t?void 0:t.exclude}),hasSeparators:null==t?void 0:t.hasSeparators}))},example:{attributes:{date:"2024-07-15T15:03:00"}}});var je=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/flip","title":"Flip Card","category":"themeisle-blocks","description":"Make a card with a flip effect. Powered by Otter.","keywords":["flip card","container","animation"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"isInverted":{"type":"boolean"},"title":{"type":"string"},"description":{"type":"string"},"animType":{"type":"string","default":"flipY"},"width":{"type":"number"},"height":{"type":"number"},"padding":{"type":"number"},"borderWidth":{"type":"number"},"borderColor":{"type":"string"},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"frontVerticalAlign":{"type":"string"},"frontHorizontalAlign":{"type":"string"},"backVerticalAlign":{"type":"string"},"frontMedia":{"type":"object"},"frontMediaWidth":{"type":"number"},"frontMediaHeight":{"type":"number"},"frontBackgroundImage":{"type":"object"},"frontBackgroundType":{"type":"string","default":"color"},"frontBackgroundColor":{"type":"string"},"frontBackgroundGradient":{"type":"string"},"frontBackgroundPosition":{"type":"object"},"frontBackgroundRepeat":{"type":"string"},"frontBackgroundAttachment":{"type":"string"},"frontBackgroundSize":{"type":"string"},"backBackgroundImage":{"type":"object"},"backBackgroundType":{"type":"string","default":"color"},"backBackgroundColor":{"type":"string"},"backBackgroundGradient":{"type":"string"},"backBackgroundPosition":{"type":"object"},"backBackgroundRepeat":{"type":"string"},"backBackgroundSize":{"type":"string"},"backBackgroundAttachment":{"type":"string"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"titleFontSize":{"type":"number"},"descriptionFontSize":{"type":"number"},"titleColor":{"type":"string"},"descriptionColor":{"type":"string"}},"editorStyle":"otter-flip-editor","style":"otter-flip-style"}'),qe=e=>{let{attributes:t,setAttributes:o,isFliped:a}=e;const n=c.__experimentalBlockAlignmentMatrixControl||c.__experimentalBlockAlignmentMatrixToolbar;return(0,i.createElement)(c.BlockControls,null,(!t.isInverted&&!1===a||t.isInverted&&a)&&(0,i.createElement)(s.Toolbar,null,(0,i.createElement)(n,{label:(0,l.__)("Change front side content position","otter-blocks"),value:t.frontAlign,onChange:e=>o({frontAlign:e})})))};const Ke=e=>{let{backgroundType:t,backgroundColor:o,image:a,gradient:n,backgroundAttachment:d,backgroundRepeat:m,backgroundSize:u,focalPoint:b,changeImage:p,changeColor:g,removeImage:h,changeBackgroundType:k,changeGradient:v,changeBackgroundAttachment:y,changeBackgroundRepeat:_,changeBackgroundSize:f,changeFocalPoint:w}=e;const C=`inspector-background-selector-control-${(0,I.useInstanceId)(Ke)}`;return(0,i.createElement)("div",{id:C,className:"components-base-control o-background-selector-control"},(0,i.createElement)("div",{className:"components-base-control__field"},(0,i.createElement)("div",{className:"components-base-control__title"},(0,i.createElement)("label",{className:"components-base-control__label"},(0,l.__)("Background Type","otter-blocks")),(0,i.createElement)(s.ButtonGroup,{className:"linking-controls"},(0,i.createElement)(s.Button,{icon:"admin-customizer",label:(0,l.__)("Color","otter-blocks"),showTooltip:!0,isPrimary:"color"===t,onClick:()=>k("color")}),(0,i.createElement)(s.Button,{icon:"format-image",label:(0,l.__)("Image","otter-blocks"),showTooltip:!0,isPrimary:"image"===t,onClick:()=>k("image")}),(0,i.createElement)(s.Button,{icon:()=>(0,i.createElement)(s.Icon,{icon:r.barcodeIcon}),label:(0,l.__)("Gradient","otter-blocks"),showTooltip:!0,isPrimary:"gradient"===t,onClick:()=>k("gradient")})))),("color"===t||void 0===t)&&(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Background Color","otter-blocks"),colorValue:o,onColorChange:g}),"image"===t&&(null!=a&&a.url?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.FocalPointPicker,{label:(0,l.__)("Focal point picker","otter-blocks"),url:a.url,value:b,onDragStart:w,onDrag:w,onChange:w}),(0,i.createElement)(G.Z,{label:(0,l.__)("Background Settings","otter-blocks")},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Background Attachment","otter-blocks"),value:d,options:[{label:(0,l.__)("Scroll","otter-blocks"),value:"scroll"},{label:(0,l.__)("Fixed","otter-blocks"),value:"fixed"},{label:(0,l.__)("Local","otter-blocks"),value:"local"}],onChange:y}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Background Repeat","otter-blocks"),value:m,options:[{label:(0,l.__)("Repeat","otter-blocks"),value:"repeat"},{label:(0,l.__)("No-repeat","otter-blocks"),value:"no-repeat"}],onChange:_}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Background Size","otter-blocks"),value:u,options:[{label:(0,l.__)("Auto","otter-blocks"),value:"auto"},{label:(0,l.__)("Cover","otter-blocks"),value:"cover"},{label:(0,l.__)("Contain","otter-blocks"),value:"contain"}],onChange:f})),(0,i.createElement)(s.PanelRow,null,(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:!0,onClick:h},(0,l.__)("Clear Image","otter-blocks")))):(0,i.createElement)(c.MediaPlaceholder,{icon:"format-image",labels:{title:(0,l.__)("Background Image","otter-blocks"),name:(0,l.__)("an image","otter-blocks")},value:null==a?void 0:a.id,onSelect:p,accept:"image/*",allowedTypes:["image"]})),"gradient"===t&&(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Background Gradient","otter-blocks"),gradientValue:n,disableCustomColors:!0,onGradientChange:v,clearable:!1}))};var Je=Ke,Qe=e=>{var t;let{attributes:o,setAttributes:a}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Width","otter-blocks"),help:(0,l.__)("Width of the container. Make sure that the width match the size of your content.","otter-blocks"),value:o.width,onChange:e=>a({width:e}),min:0,max:1200,allowReset:!0}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("Height of the container. Make sure that the height match the size of your content.","otter-blocks"),value:o.height,onChange:e=>a({height:e}),min:0,max:1200,allowReset:!0}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Invert the sides","otter-blocks"),checked:o.isInverted,onChange:e=>a({isInverted:e}),help:(0,l.__)("Use this to display the back side first.","otter-blocks")})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Front","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.BaseControl,{label:(0,l.__)("Media Image","otter-blocks"),help:(0,l.__)("Set an image as showcase.","otter-blocks")},null!==(t=o.frontMedia)&&void 0!==t&&t.url?(0,i.createElement)(s.BaseControl,null,(0,i.createElement)("img",{src:o.frontMedia.url,alt:o.frontMedia.alt,style:{border:"2px solid var( --wp-admin-theme-color)",maxHeight:"250px"}}),(0,i.createElement)(s.Button,{isSecondary:!0,onClick:()=>a({frontMedia:void 0})},(0,l.__)("Remove image","otter-blocks"))):(0,i.createElement)(c.MediaPlaceholder,{labels:{title:(0,l.__)("Media Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:o.frontMedia,onSelect:e=>a({frontMedia:(0,H.pick)(e,["id","alt","url"])})})),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Media Width","otter-blocks"),value:o.frontMediaWidth,onChange:e=>a({frontMediaWidth:e}),min:0,max:1e3,allowReset:!0}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Media Height","otter-blocks"),value:o.frontMediaHeight,onChange:e=>a({frontMediaHeight:e}),min:0,max:1e3,allowReset:!0}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Vertical Align","otter-blocks"),value:o.frontVerticalAlign,options:[{label:(0,l.__)("Default","otter-blocks"),value:""},{label:(0,l.__)("Top","otter-blocks"),value:"flex-start"},{label:(0,l.__)("Center","otter-blocks"),value:"center"},{label:(0,l.__)("Bottom","otter-blocks"),value:"flex-end"}],onChange:e=>a({frontVerticalAlign:e})}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Horizontal Align","otter-blocks"),value:o.frontHorizontalAlign,options:[{label:(0,l.__)("Default","otter-blocks"),value:""},{label:(0,l.__)("Left","otter-blocks"),value:"flex-start"},{label:(0,l.__)("Center","otter-blocks"),value:"center"},{label:(0,l.__)("Right","otter-blocks"),value:"flex-end"}],onChange:e=>a({frontHorizontalAlign:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Title Font Size","otter-blocks"),value:o.titleFontSize,onChange:e=>a({titleFontSize:e}),min:0,max:50,allowReset:!0}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Description Font Size","otter-blocks"),value:o.descriptionFontSize,onChange:e=>a({descriptionFontSize:e}),min:0,max:50,allowReset:!0}),(0,i.createElement)(Je,{backgroundType:o.frontBackgroundType,backgroundColor:o.frontBackgroundColor,image:o.frontBackgroundImage,gradient:o.frontBackgroundGradient,focalPoint:o.frontBackgroundPosition,backgroundAttachment:o.frontBackgroundAttachment,backgroundRepeat:o.frontBackgroundRepeat,backgroundSize:o.frontBackgroundSize,changeBackgroundType:e=>a({frontBackgroundType:e}),changeImage:e=>{a({frontBackgroundImage:(0,H.pick)(e,["id","url"])})},removeImage:()=>a({frontBackgroundImage:void 0}),changeColor:e=>a({frontBackgroundColor:e}),changeGradient:e=>a({frontBackgroundGradient:e}),changeBackgroundAttachment:e=>a({frontBackgroundAttachment:e}),changeBackgroundRepeat:e=>a({frontBackgroundRepeat:e}),changeFocalPoint:e=>a({frontBackgroundPosition:e}),changeBackgroundSize:e=>a({frontBackgroundSize:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Back","otter-blocks"),initialOpen:!1},(0,i.createElement)(Je,{backgroundType:o.backBackgroundType,backgroundColor:o.backBackgroundColor,image:o.backBackgroundImage,gradient:o.backBackgroundGradient,focalPoint:o.backBackgroundPosition,backgroundAttachment:o.backBackgroundAttachment,backgroundRepeat:o.backBackgroundRepeat,backgroundSize:o.backBackgroundSize,changeBackgroundType:e=>a({backBackgroundType:e}),changeImage:e=>{a({backBackgroundImage:(0,H.pick)(e,["id","url"])})},removeImage:()=>a({backBackgroundImage:void 0}),changeColor:e=>a({backBackgroundColor:e}),changeGradient:e=>a({backBackgroundGradient:e}),changeBackgroundAttachment:e=>a({backBackgroundAttachment:e}),changeBackgroundRepeat:e=>a({backBackgroundRepeat:e}),changeFocalPoint:e=>a({backBackgroundPosition:e}),changeBackgroundSize:e=>a({backBackgroundSize:e})}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Vertical Align","otter-blocks"),value:o.backVerticalAlign,options:[{label:(0,l.__)("Default","otter-blocks"),value:""},{label:(0,l.__)("Top","otter-blocks"),value:"flex-start"},{label:(0,l.__)("Center","otter-blocks"),value:"center"},{label:(0,l.__)("Bottom","otter-blocks"),value:"flex-end"}],onChange:e=>a({backVerticalAlign:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Style","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Flip Type","otter-blocks"),value:o.animType,options:[{label:(0,l.__)("Bottom to Top","otter-blocks"),value:"flipX"},{label:(0,l.__)("Left to right","otter-blocks"),value:"flipY"}],onChange:e=>a({animType:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Padding","otter-blocks"),value:o.padding,onChange:e=>a({padding:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:o.borderWidth,onChange:e=>a({borderWidth:e}),min:0,max:50}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:o.borderRadius,onChange:e=>a({borderRadius:e}),min:0,max:50})),(0,i.createElement)(c.PanelColorSettings,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:o.borderColor,onChange:e=>a({borderColor:e}),label:(0,l.__)("Border Color","otter-blocks")},{value:o.titleColor,onChange:e=>a({titleColor:e}),label:(0,l.__)("Title Color","otter-blocks")},{value:o.descriptionColor,onChange:e=>a({descriptionColor:e}),label:(0,l.__)("Description Color","otter-blocks")}]}),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Box Shadow","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Shadow Properties","otter-blocks"),checked:o.boxShadow,onChange:e=>a({boxShadow:e})}),o.boxShadow&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:o.boxShadowColor,onColorChange:e=>{var t,l;a({boxShadowColor:100>o.boxShadowColorOpacity&&null!==(t=o.boxShadowColor)&&void 0!==t&&t.includes("var(")?getComputedStyle(document.documentElement,null).getPropertyValue(null==e||null===(l=e.replace("var(",""))||void 0===l?void 0:l.replace(")","")):e})}}),(0,i.createElement)(G.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:o.boxShadowColorOpacity,onChange:e=>{var t;const l={boxShadowColorOpacity:e};100>e&&null!==(t=o.boxShadowColor)&&void 0!==t&&t.includes("var(")&&(l.boxShadowColor=getComputedStyle(document.documentElement,null).getPropertyValue(o.boxShadowColor.replace("var(","").replace(")",""))),a(l)},min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:o.boxShadowBlur,onChange:e=>a({boxShadowBlur:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:o.boxShadowHorizontal,onChange:e=>a({boxShadowHorizontal:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:o.boxShadowVertical,onChange:e=>a({boxShadowVertical:e}),min:-100,max:100})))))};const{attributes:Ye}=je;const{name:Xe}=je;(0,a.registerBlockType)(Xe,{...je,title:(0,l.__)("Flip Card","otter-blocks"),description:(0,l.__)("Make a card with a flip effect. Powered by Otter.","otter-blocks"),icon:fe.Z,keywords:["flip card","container","animation"],edit:e=>{var t,o,a,n,r,d,m,u,b,p;let{attributes:h,setAttributes:k,clientId:y,isSelected:_}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(y,Ye);return()=>e(h.id)}),[h.id]);const[f,w]=(0,i.useState)(!1),C={"--width":void 0!==h.width&&`${h.width}px`,"--height":void 0!==h.height&&`${h.height}px`,"--border-width":void 0!==h.borderWidth&&`${h.borderWidth}px`,"--border-color":h.borderColor,"--border-radius":void 0!==h.borderRadius&&`${h.borderRadius}px`,"--front-background":(0,He.nG)([["gradient"===h.frontBackgroundType&&h.frontBackgroundGradient,h.frontBackgroundGradient],["image"===h.frontBackgroundType&&(null===(t=h.frontBackgroundImage)||void 0===t?void 0:t.url),`url( ${null===(o=h.frontBackgroundImage)||void 0===o?void 0:o.url} ) ${h.frontBackgroundRepeat||"repeat"} ${h.frontBackgroundAttachment||"scroll"} ${Math.round(100*(null===(a=h.frontBackgroundPosition)||void 0===a?void 0:a.x))||50}% ${Math.round(100*(null===(n=h.frontBackgroundPosition)||void 0===n?void 0:n.y))||50}%/${h.frontBackgroundSize||"auto"}`],[h.frontBackgroundColor]]),"--back-background":(0,He.nG)([["gradient"===h.backBackgroundType&&h.backBackgroundGradient,h.backBackgroundGradient],["image"===h.backBackgroundType&&(null===(r=h.backBackgroundImage)||void 0===r?void 0:r.url),`url( ${null===(d=h.backBackgroundImage)||void 0===d?void 0:d.url} ) ${h.backBackgroundRepeat||"repeat"} ${h.backBackgroundAttachment||"scroll"} ${Math.round(100*(null===(m=h.backBackgroundPosition)||void 0===m?void 0:m.x))||50}% ${Math.round(100*(null===(u=h.backBackgroundPosition)||void 0===u?void 0:u.y))||50}%/${h.backBackgroundSize||"auto"}`],[h.backBackgroundColor]]),"--padding":void 0!==h.padding&&`${h.padding}px`,"--box-shadow":h.boxShadow&&`${h.boxShadowHorizontal}px ${h.boxShadowVertical}px ${h.boxShadowBlur}px ${h.boxShadowColor?h.boxShadowColor.includes("#")&&0<=h.boxShadowColorOpacity?hexToRgba(h.boxShadowColor,h.boxShadowColorOpacity||1e-5):h.boxShadowColor:hexToRgba("#000000",void 0!==h.boxShadowColorOpacity?h.boxShadowColorOpacity||1e-5:1)}`,"--front-vertical-align":h.frontVerticalAlign,"--front-horizontal-align":h.frontHorizontalAlign,"--back-vertical-align":h.backVerticalAlign,"--front-media-width":void 0!==h.frontMediaWidth&&`${h.frontMediaWidth}px`,"--front-media-height":void 0!==h.frontMediaHeight&&`${h.frontMediaHeight}px`},[E,x]=(0,v.useCSSNode)();(0,i.useEffect)((()=>{x([`.o-flip-inner {\n\t\t\t\ttransform: ${f?"var( --flip-anim )":"unset"};\n\t\t\t}`,`.o-flip-front .o-flip-content h3 {\n\t\t\t\tcolor: ${h.titleColor};\n\t\t\t\t${h.titleFontSize&&`font-size: ${h.titleFontSize}px;`}\n\t\t\t}`,`.o-flip-front .o-flip-content p {\n\t\t\t\tcolor: ${h.descriptionColor};\n\t\t\t\t${h.descriptionFontSize&&`font-size: ${h.descriptionFontSize}px;`}\n\t\t\t}`])}),[f,h.titleFontSize,h.descriptionFontSize,h.titleColor,h.descriptionColor]);const T=(0,c.useBlockProps)({id:h.id,className:g()({flipX:"flipX"===h.animType,flipY:"flipY"===h.animType},E),style:C});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(qe,{attributes:h,setAttributes:k,isFliped:f}),(0,i.createElement)(Qe,{attributes:h,setAttributes:k}),(0,i.createElement)("div",T,(0,i.createElement)("div",{className:g()("o-flip-inner",{invert:h.isInverted})},(0,i.createElement)("div",{className:"o-flip-front"},(0,i.createElement)("div",{className:"o-flip-content"},(null===(b=h.frontMedia)||void 0===b?void 0:b.url)&&(0,i.createElement)("img",{className:"o-img",srcSet:null===(p=h.frontMedia)||void 0===p?void 0:p.url}),(0,i.createElement)(c.RichText,{tagName:"h3",value:h.title,onChange:e=>k({title:e}),placeholder:(0,l.__)("Insert a title","otter-blocks")}),(0,i.createElement)(c.RichText,{tagName:"p",value:h.description,onChange:e=>k({description:e}),placeholder:(0,l.__)("Insert a description","otter-blocks")}))),(0,i.createElement)("div",{className:"o-flip-back"},(0,i.createElement)(c.InnerBlocks,{renderAppender:_?c.InnerBlocks.ButtonBlockAppender:""}))),_&&(0,i.createElement)("div",{className:"o-switcher"},(0,i.createElement)(s.Button,{isPrimary:!0,onClick:()=>w(!f)},f?(0,l.__)("Flip to front","otter-blocks"):(0,l.__)("Flip to back","otter-blocks")))))},save:e=>{var t,o,l,a;let{attributes:n}=e;const r=c.useBlockProps.save({id:n.id,className:g()("anim",{flipX:"flipX"===n.animType,flipY:"flipY"===n.animType})});return(0,i.createElement)("div",r,(0,i.createElement)("div",{className:g()("o-flip-inner",{invert:n.isInverted})},(0,i.createElement)("div",{className:"o-flip-front"},(0,i.createElement)("div",{className:"o-flip-content"},(null===(t=n.frontMedia)||void 0===t?void 0:t.url)&&(0,i.createElement)("img",{className:"o-img",src:null===(o=n.frontMedia)||void 0===o?void 0:o.url,srcSet:null===(l=n.frontMedia)||void 0===l?void 0:l.url,alt:null===(a=n.frontMedia)||void 0===a?void 0:a.alt}),(0,i.createElement)(c.RichText.Content,{tagName:"h3",value:n.title}),(0,i.createElement)(c.RichText.Content,{tagName:"p",value:n.description}))),(0,i.createElement)("div",{className:"o-flip-back"},(0,i.createElement)(c.InnerBlocks.Content,null))))},example:{attributes:{}}});var et=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/font-awesome-icons","title":"Icon","category":"themeisle-blocks","description":"Add icons from Font Awesome or ThemeIsle Icons library to your website. Powered by Otter.","keywords":["font awesome","dashicons","icons"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"align":{"type":"string"},"library":{"type":"string","default":"fontawesome"},"prefix":{"type":"string","default":"fab"},"icon":{"type":"string","default":"themeisle"},"link":{"type":"string"},"newTab":{"type":"boolean","default":false},"fontSize":{"type":"number","default":16},"padding":{"type":"number","default":5},"margin":{"type":"number","default":5},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"backgroundColorHover":{"type":"string"},"textColorHover":{"type":"string"},"borderColorHover":{"type":"string"},"borderSize":{"type":"number","default":0},"borderRadius":{"type":"number","default":0},"isSynced":{"type":"array"}},"editorStyle":"otter-font-awesome-editor","style":"otter-font-awesome-style"}');const tt={prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},ot=[{attributes:{id:{type:"string"},align:{type:"string"},library:{type:"string",default:"fontawesome"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0},isSynced:{type:"array"}},supports:{align:["left","center","right"]},save:e=>{let{attributes:t}=e;const o=ve.ZP.icons[t.icon],l=c.useBlockProps.save({id:t.id});return(0,i.createElement)("p",l,(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?(0,i.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},"themeisle-icons"===t.library?(0,i.createElement)(o,null):(0,i.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})):"themeisle-icons"===t.library?(0,i.createElement)(o,null):(0,i.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})))}},{attributes:tt,supports:{align:["left","center","right"]},migrate:e=>{let t="center";return e.className.includes("alignleft")&&(t="left"),e.className.includes("aligncenter")&&(t="center"),e.className.includes("alignright")&&(t="right"),{...e,align:t,className:""}},save:e=>{let{attributes:t,className:o}=e;const l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},a={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return(0,i.createElement)("p",{className:o,style:{textAlign:t.align}},(0,i.createElement)("span",{className:`${o}-container`,style:a},(0,i.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:l})))}},{attributes:{...tt,align:{type:"string"}},save:e=>{let{attributes:t,className:o}=e;const l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},a={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return(0,i.createElement)("p",{className:o,style:{textAlign:t.align}},(0,i.createElement)("span",{className:"undefined-container",style:a},(0,i.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:l})))}},{attributes:{...tt,id:{type:"string"},align:{type:"string"},link:{type:"string"},newTab:{type:"boolean",default:!1},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"}},save:e=>{let{attributes:t,className:o}=e;const l={borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"},a={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},n=()=>(0,i.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:a});return(0,i.createElement)("p",{className:o,id:t.id,style:{textAlign:t.align}},(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:l},t.link?(0,i.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",style:{color:t.textColor},rel:"noopener noreferrer"},(0,i.createElement)(n,null)):(0,i.createElement)(n,null)))}}];var lt=ot,at=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(c.AlignmentToolbar,{value:t.align,onChange:e=>o({align:e})}),(0,i.createElement)(pe,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))};const nt=(0,i.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var rt=e=>{let{attributes:t,setAttributes:o,getValue:a}=e;const[n,r]=(0,i.useState)(!1);return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Icon","otter-blocks")},(0,i.createElement)(i.Suspense,{fallback:(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null))},(0,i.createElement)(nt,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.library,prefix:t.prefix,icon:t.icon,changeLibrary:e=>{o({library:e,icon:"fontawesome"===e?"themeisle":"balance",prefix:"fab"})},onChange:e=>{o("object"==typeof e?{icon:e.name,prefix:e.prefix}:{icon:e})}}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Icon Sizes","otter-blocks"),initialOpen:!1},(0,i.createElement)(h.Z,{field:"fontSize",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Icon Size","otter-blocks"),value:a("fontSize"),initialPosition:16,onChange:e=>o({fontSize:e}),step:.1,min:12,max:140})),(0,i.createElement)(h.Z,{field:"padding",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Padding","otter-blocks"),value:a("padding"),initialPosition:5,onChange:e=>o({padding:e}),step:.1,min:0,max:100})),(0,i.createElement)(h.Z,{field:"margin",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Margin","otter-blocks"),value:a("margin"),initialPosition:5,onChange:e=>o({margin:e}),step:.1,min:0,max:100}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.ButtonGroup,null,(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:n,isPrimary:!n,onClick:()=>r(!1)},(0,l.__)("Normal","otter-blocks")),(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:!n,isPrimary:n,onClick:()=>r(!0)},(0,l.__)("Hover","otter-blocks"))),n?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(h.Z,{field:"backgroundColorHover",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Hover Background","otter-blocks"),colorValue:a("backgroundColorHover"),onColorChange:e=>o({backgroundColorHover:e})})),(0,i.createElement)(h.Z,{field:"textColorHover",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Hover Icon","otter-blocks"),colorValue:a("textColorHover"),onColorChange:e=>o({textColorHover:e})})),(0,i.createElement)(c.ContrastChecker,{textColor:a("textColorHover"),backgroundColor:a("backgroundColorHover")}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Hover Border","otter-blocks"),colorValue:t.borderColorHover,onColorChange:e=>o({borderColorHover:e})})):(0,i.createElement)(i.Fragment,null,(0,i.createElement)(h.Z,{field:"backgroundColor",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:a("backgroundColor"),onColorChange:e=>o({backgroundColor:e})})),(0,i.createElement)(h.Z,{field:"textColor",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Icon","otter-blocks"),colorValue:a("textColor"),onColorChange:e=>o({textColor:e})})),(0,i.createElement)(c.ContrastChecker,{textColor:a("textColor"),backgroundColor:a("backgroundColor")}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Border Settings","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Size","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),step:.1,min:0,max:120}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),step:.1,min:0,max:100})))};const{attributes:it}=et;const{name:ct}=et;(0,a.registerBlockType)(ct,{...et,title:(0,l.__)("Icon","otter-blocks"),description:(0,l.__)("Add icons from Font Awesome or ThemeIsle Icons library to your website. Powered by Otter.","otter-blocks"),icon:r.faIcon,keywords:["font awesome","dashicons","icons"],deprecated:lt,edit:e=>{let{name:t,attributes:o,setAttributes:l,isSelected:a,clientId:n}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(n,it);return()=>e(o.id)}),[o.id]);const r=ve.ZP.icons[o.icon],s=e=>(0,v.getDefaultValueByField)({name:t,field:e,defaultAttributes:it,attributes:o}),d={"--align":o.align,"--border-color":o.borderColor,"--border-size":void 0!==o.borderSize&&`${o.borderSize}px`,"--border-radius":void 0!==o.borderRadius&&`${o.borderRadius}%`,"--margin":void 0!==o.margin&&`${s("margin")}px`,"--padding":void 0!==o.padding&&`${s("padding")}px`,"--font-size":void 0!==o.fontSize&&`${s("fontSize")}px`},[m,u]=(0,v.useCSSNode)();(0,i.useEffect)((()=>{u([`.wp-block-themeisle-blocks-font-awesome-icons-container {\n\t\t\t\tcolor: ${s("textColor")};\n\t\t\t\tbackground-color: ${s("backgroundColor")};\n\t\t\t}`,`.wp-block-themeisle-blocks-font-awesome-icons-container:hover {\n\t\t\t\tcolor: ${s("textColorHover")};\n\t\t\t\tbackground-color: ${s("backgroundColorHover")};\n\t\t\t\tborder-color: ${o.borderColorHover};\n\t\t\t}`,`.wp-block-themeisle-blocks-font-awesome-icons-container a {\n\t\t\t\tcolor: ${s("textColor")};\n\t\t\t}`,`.wp-block-themeisle-blocks-font-awesome-icons-container i {\n\t\t\t\t${s("fontSize")&&`font-size: ${s("fontSize")}px;`}\n\t\t\t}`,`.wp-block-themeisle-blocks-font-awesome-icons-container svg {\n\t\t\t\tfill: ${s("textColor")};\n\t\t\t}`,`.wp-block-themeisle-blocks-font-awesome-icons-container:hover svg {\n\t\t\t\tfill: ${s("textColorHover")};\n\t\t\t}`])}),[o.textColor,o.backgroundColor,o.textColorHover,o.backgroundColorHover,o.borderColorHover,o.fontSize]);const b=(0,c.useBlockProps)({id:o.id,style:d,className:m});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(at,{attributes:o,setAttributes:l,isSelected:a}),(0,i.createElement)(rt,{attributes:o,setAttributes:l,getValue:s}),(0,i.createElement)("div",b,(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},"themeisle-icons"===o.library?(0,i.createElement)(r,null):(0,i.createElement)("i",{className:`${o.prefix} fa-${o.icon}`}))))},save:e=>{let{attributes:t}=e;const o=ve.ZP.icons[t.icon],l=c.useBlockProps.save({id:t.id});return(0,i.createElement)("div",l,(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?(0,i.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},"themeisle-icons"===t.library?(0,i.createElement)(o,null):(0,i.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})):"themeisle-icons"===t.library?(0,i.createElement)(o,null):(0,i.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})))},example:{attributes:{fontSize:70}}});var st=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form","title":"Form","category":"themeisle-blocks","description":"Display a form for your clients. Powered by Otter.","keywords":["business","form","email"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"subject":{"type":"string"},"emailTo":{"type":"string"},"fromName":{"type":"string"},"optionName":{"type":"string"},"hasCaptcha":{"type":"boolean"},"provider":{"type":"string","default":""},"listId":{"type":"string"},"action":{"type":"string","default":"subscribe"},"submitLabel":{"type":"string"},"sendUserEmail":{"type":"boolean"},"redirectLink":{"type":"string"},"inputPadding":{"type":"object"},"labelColor":{"type":"string"},"helpLabelColor":{"type":"string"},"inputRequiredColor":{"type":"string"},"inputBorderRadius":{"type":"number"},"inputBorderColor":{"type":"string"},"inputBorderWidth":{"type":"number"},"submitMessage":{"type":"string"},"inputWidth":{"type":"number"},"submitMessageColor":{"type":"string"},"submitMessageErrorColor":{"type":"string"},"submitBackgroundColor":{"type":"string"},"submitBackgroundColorHover":{"type":"string"},"submitColor":{"type":"string"},"inputGap":{"type":"number"},"inputColor":{"type":"string"},"inputsGap":{"type":"number"},"labelFontSize":{"type":"string"},"submitFontSize":{"type":"string"},"messageFontSize":{"type":"string"},"helpFontSize":{"type":"string"},"inputFontSize":{"type":"string"},"submitStyle":{"type":"string"},"isSynced":{"type":"array"}},"supports":{"align":["wide","full"]},"editorStyle":"otter-form-editor","style":"otter-form-style","script":"otter-form"}');const dt=[{attributes:{id:{type:"string"},subject:{type:"string"},emailTo:{type:"string"},optionName:{type:"string"},hasCaptcha:{type:"boolean"},provider:{type:"string",default:""},apiKey:{type:"string"},listId:{type:"string"},action:{type:"string",default:"subscribe"}},supports:{align:["wide","full"]},save:e=>{let{attributes:t}=e;const o=t.provider&&t.apiKey&&t.listId,a=c.useBlockProps.save({id:t.id,className:g()({"is-subscription":o&&"subscribe"===t.action,"can-submit-and-subscribe":o&&"submit-subscribe"===t.action,"has-captcha":t.hasCaptcha}),"data-email-subject":t.subject,"data-option-name":t.optionName});return(0,i.createElement)("div",a,(0,i.createElement)("div",{className:"otter-form__container"},(0,i.createElement)(c.InnerBlocks.Content,null),(0,i.createElement)("div",{className:"wp-block-button"},(0,i.createElement)("button",{className:"wp-block-button__link"},"subscribe"===t.action?(0,l.__)("Subscribe","otter-blocks"):(0,l.__)("Submit","otter-blocks")))))}}];var mt=dt,ut=o(8101),bt=o.n(ut),pt=o(6989),gt=o.n(pt);const ht=e=>(null==e?void 0:e[1])&&e[0]!==e[1],kt=e=>Boolean(0<e.filter(ht).length),vt=[{name:(0,l.__)("Small","otter-blocks"),size:"0.875em",slug:"small"},{name:(0,l.__)("Medium","otter-blocks"),size:"1em",slug:"medium"},{name:(0,l.__)("Large","otter-blocks"),size:"1.125em",slug:"large"},{name:(0,l.__)("XL","otter-blocks"),size:"1.25em",slug:"xl"}];var yt=e=>{var t,o,a,n,r,d,m,u,b,p,g;let{attributes:k,setAttributes:v}=e;const{listIDOptions:y,setListIDOptions:_,saveFormEmailOptions:f,saveIntegration:w,savedFormOptions:C,sendTestEmail:E,loadingState:x,formOptions:T,setFormOption:S,testService:M,hasEmailField:B}=(0,i.useContext)(wt),z=kt([[T.emailTo,null==C?void 0:C.email],[T.subject,null==C?void 0:C.emailSubject],[T.redirectLink,null==C?void 0:C.redirectLink],[T.fromName,null==C?void 0:C.fromName],[T.submitMessage,null==C?void 0:C.submitMessage],[T.cc,null==C?void 0:C.cc],[T.bcc,null==C?void 0:C.bcc],[T.hasCaptcha,null==C?void 0:C.hasCaptcha]]),P=kt([[T.provider,null==C||null===(t=C.integration)||void 0===t?void 0:t.provider],[T.listId,null==C||null===(o=C.integration)||void 0===o?void 0:o.listId],[T.action,null==C||null===(a=C.integration)||void 0===a?void 0:a.action]]);return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(c.PanelColorSettings,{title:(0,l.__)("Form Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:k.labelColor,onChange:e=>v({labelColor:e}),label:(0,l.__)("Label","otter-blocks")},{value:k.helpLabelColor,onChange:e=>v({helpLabelColor:e}),label:(0,l.__)("Help Label","otter-blocks")},{value:k.inputBorderColor,onChange:e=>v({inputBorderColor:e}),label:(0,l.__)("Border","otter-blocks")},{value:k.inputRequiredColor,onChange:e=>v({inputRequiredColor:e}),label:(0,l.__)("Label Required","otter-blocks")},{value:k.inputColor,onChange:e=>v({inputColor:e}),label:(0,l.__)("Input","otter-blocks")}]}),(0,i.createElement)(c.PanelColorSettings,{title:(0,l.__)("Button Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:k.submitColor,onChange:e=>v({submitColor:e}),label:(0,l.__)("Submit Text","otter-blocks")},{value:k.submitBackgroundColor,onChange:e=>v({submitBackgroundColor:e}),label:(0,l.__)("Button Background","otter-blocks")},{value:k.submitBackgroundColorHover,onChange:e=>v({submitBackgroundColorHover:e}),label:(0,l.__)("Button Background on Hover","otter-blocks")},{value:k.submitMessageColor,onChange:e=>v({submitMessageColor:e}),label:(0,l.__)("Successful Message","otter-blocks")},{value:k.submitMessageErrorColor,onChange:e=>v({submitMessageErrorColor:e}),label:(0,l.__)("Error Message","otter-blocks")}]}),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Label Styling","otter-blocks"),initialOpen:!1},(0,i.createElement)(h.Z,{field:"inputGap",isSynced:k.isSynced,setAttributes:v},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Spacing","otter-blocks"),value:null!==(n=k.inputGap)&&void 0!==n?n:16,onChange:e=>v({inputGap:e}),allowReset:!0,step:.1,min:0,max:50,initialPositino:5})),(0,i.createElement)(h.Z,{field:"labelFontSize",isSynced:k.isSynced,setAttributes:v},(0,i.createElement)(s.FontSizePicker,{label:(0,l.__)("Font Size","otter-blocks"),fontSizes:vt,withReset:!0,value:k.labelFontSize,onChange:e=>v({labelFontSize:e})}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Input Styling","otter-blocks"),initialOpen:!1},(0,i.createElement)(h.Z,{field:"inputFontSize",isSynced:k.isSynced,setAttributes:v},(0,i.createElement)(s.FontSizePicker,{label:(0,l.__)("Input Font Size","otter-blocks"),fontSizes:vt,withReset:!0,value:k.inputFontSize,onChange:e=>v({inputFontSize:e})})),(0,i.createElement)(h.Z,{field:"inputsGap",isSynced:k.isSynced,setAttributes:v},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Fields Spacing","otter-blocks"),value:null!==(r=k.inputsGap)&&void 0!==r?r:10,onChange:e=>v({inputsGap:e}),allowReset:!0,min:0,max:50,initialPosition:10})),(0,i.createElement)(h.Z,{field:"inputPadding",isSynced:k.isSynced,setAttributes:v},(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Input Padding","otter-blocks"),values:null!==(d=k.inputPadding)&&void 0!==d?d:{top:"8px",right:"8px",bottom:"8px",left:"8px"},inputProps:{min:0,max:500},onChange:e=>v({inputPadding:e})})),(0,i.createElement)(h.Z,{field:"inputsBorderRadius",isSynced:k.isSynced,setAttributes:v},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:null!==(m=k.inputBorderRadius)&&void 0!==m?m:4,onChange:e=>v({inputBorderRadius:e}),allowReset:!0,step:.1,min:0,max:50})),(0,i.createElement)(h.Z,{field:"inputsBorderWidth",isSynced:k.isSynced,setAttributes:v},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:null!==(u=k.inputBorderWidth)&&void 0!==u?u:1,onChange:e=>v({inputBorderWidth:e}),allowReset:!0,step:.1,min:0,max:50})),(0,i.createElement)(h.Z,{field:"helpFontSize",isSynced:k.isSynced,setAttributes:v},(0,i.createElement)("h2",null,(0,l.__)("Help Text Font Size","otter-blocks")),(0,i.createElement)(s.FontSizePicker,{label:(0,l.__)("Help Font Size","otter-blocks"),fontSizes:vt,withReset:!0,value:k.helpFontSize,onChange:e=>v({helpFontSize:e})}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Button","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Label","otter-blocks"),placeholder:(0,l.__)("Submit","otter-blocks"),value:k.submitLabel,onChange:e=>v({submitLabel:e}),help:(0,l.__)("Set the label for the submit button.","otter-blocks")}),(0,i.createElement)(h.Z,{field:"submitFontSize",isSynced:k.isSynced,setAttributes:v},(0,i.createElement)(s.FontSizePicker,{label:(0,l.__)("Font Size","otter-blocks"),fontSizes:vt,withReset:!0,value:k.submitFontSize,onChange:e=>v({submitFontSize:e})})),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Alignment","otter-blocks"),value:k.submitStyle,options:[{label:"Default",value:""},{label:"Right",value:"right"},{label:"Full",value:"full"}],onChange:e=>v({submitStyle:e})}),(0,i.createElement)(h.Z,{field:"messageFontSize",isSynced:k.isSynced,setAttributes:v},(0,i.createElement)("h2",null,(0,l.__)("Message Font Size","otter-blocks")),(0,i.createElement)(s.FontSizePicker,{label:(0,l.__)("Message Font Size","otter-blocks"),fontSizes:vt,withReset:!0,value:k.messageFontSize,onChange:e=>v({messageFontSize:e})}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Form Options","otter-blocks"),initialOpen:!1},"loading"===(null==x?void 0:x.formOptions)&&(0,i.createElement)("div",{className:"o-fetch-msg"},(0,i.createElement)(s.Spinner,null),(0,l.__)("Loading the options. Please wait...","otter-blocks")),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Email Subject","otter-blocks"),placeholder:(0,l.__)("A new submission","otter-blocks"),value:T.subject,onChange:e=>S({subject:e}),help:(0,l.__)("Customize the title of the email that you are gonna receive after a user submits the form.","otter-blocks")}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("From Name","otter-blocks"),value:T.fromName,onChange:e=>S({fromName:e}),help:(0,l.__)("Set the name of the sender. Some SMTP plugins might override this value.","otter-blocks")}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Email To","otter-blocks"),placeholder:(0,l.__)("Default is to admin site","otter-blocks"),type:"email",value:T.emailTo,onChange:e=>S({emailTo:e}),help:(0,l.__)("Send the form's data to another email. (Admin's email is default).","otter-blocks")}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Cc","otter-blocks"),placeholder:(0,l.__)("Send copies to","otter-blocks"),type:"text",value:T.cc,onChange:e=>S({cc:e}),help:(0,l.__)("Add emails separated by commas: example1@otter.com, example2@otter.com.","otter-blocks")}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Bcc","otter-blocks"),placeholder:(0,l.__)("Send copies to","otter-blocks"),type:"text",value:T.bcc,onChange:e=>S({bcc:e}),help:(0,l.__)("Add emails separated by commas: example1@otter.com, example2@otter.com.","otter-blocks")}),(0,i.createElement)(s.TextareaControl,{label:(0,l.__)("Submit Success Message","otter-blocks"),placeholder:(0,l.__)("Success","otter-blocks"),value:T.submitMessage,onChange:e=>S({submitMessage:e}),help:(0,l.__)("Show this message after the form was successfully submitted.","otter-blocks")}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Redirect To","otter-blocks"),type:"url",placeholder:(0,l.__)("https://example.com","otter-blocks"),value:T.redirectLink,onChange:e=>S({redirectLink:e}),help:(0,l.__)("Redirect the user to another page when submit is successful.","otter-blocks")}),T.redirectLink&&(0,i.createElement)(s.ExternalLink,{href:T.redirectLink,style:{marginBottom:"10px",display:"block"}},(0,l.__)("Preview Redirect link.","otter-blocks")),(0,i.createElement)(s.Button,{isPrimary:!0,onClick:f,help:(0,l.__)("[WIP] Do not forget to save the options ","otter-blocks"),isBusy:"saving"===(null==x?void 0:x.formOptions)},"saving"===(null==x?void 0:x.formOptions)?(0,l.__)("Saving...","otter-blocks"):(0,l.__)("Apply Options","otter-blocks")),"done"===(null==x?void 0:x.formOptions)&&z&&(0,i.createElement)("div",{className:"o-fetch-msg"},(0,l.__)("You have made some modifications. Do not forget to save the options.","otter-blocks")),"error"===(null==x?void 0:x.formOptions)&&(0,i.createElement)("div",{className:"o-fetch-msg o-error"},(0,l.__)("An error has occurred while saving. Please try again.","otter-blocks"))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Test SMTP","otter-blocks"),initialOpen:!1},(0,i.createElement)("span",null,(0,l.__)("In order for the Form to work properly, make sure your SMTP server is set up. The test email will be send to the address from the field Email To on Form Options.","otter-blocks")),(0,i.createElement)(s.ExternalLink,{href:"https://www.wpbeginner.com/wp-tutorials/how-to-use-smtp-server-to-send-wordpress-emails/",style:{marginLeft:"3px"}},(0,l.__)("Learn more.","otter-blocks")),(0,i.createElement)("br",null),(0,i.createElement)(s.Button,{variant:"primary",isPrimary:!0,style:{marginTop:"8px"},onClick:E},(0,l.__)("Send Test Email","otter-blocks"))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Bot Protection","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Add captcha checkbox","otter-blocks"),checked:k.hasCaptcha,onChange:e=>v({hasCaptcha:e}),help:(0,l.__)("Add Google reCaptcha V2 for protection againts bots. You will need an API Key.","otter-blocks")}),T.hasCaptcha&&(0,i.createElement)("div",{style:{display:"flow-root",margin:"10px 0px"}},(0,l.__)("You can change the reCaptcha API Keys in Settings > Otter. ","otter-blocks"),(0,i.createElement)(s.ExternalLink,{href:"https://www.google.com/recaptcha/about/",target:"_blank"},(0,l.__)("Learn more about reCaptcha.","otter-blocks")))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Marketing Integration","otter-blocks"),initialOpen:!1},(0,l.__)("Add your client email to a Digital Marketing provider.","otter-blocks"),(0,i.createElement)("br",null)," ",(0,i.createElement)("br",null),"loading"===(null==x?void 0:x.formIntegration)&&(0,i.createElement)("div",{className:"o-fetch-msg"},(0,i.createElement)(s.Spinner,null),(0,l.__)("Fetching data from server. Please wait.","otter-blocks")),(0,i.createElement)("b",null,(0,l.__)("You need to have at least one email field in your form. For multiple email fields, only the first will be used.","otter-blocks")),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Provider","otter-blocks"),value:T.provider,options:[{label:(0,l.__)("None","otter-blocks"),value:""},{label:(0,l.__)("Mailchimp","otter-blocks"),value:"mailchimp"},{label:(0,l.__)("Sendinblue","otter-blocks"),value:"sendinblue"}],onChange:e=>{S({provider:e,listId:"",apiKey:""})}}),T.provider&&(0,i.createElement)(i.Fragment,null,!T.apiKey&&(0,i.createElement)(i.Fragment,null,"mailchimp"===(null==T?void 0:T.provider)&&(0,i.createElement)(s.ExternalLink,{href:"https://us5.admin.mailchimp.com/account/api/",style:{marginBottom:"10px",display:"block"},target:"_blank"},(0,l.__)("Guide to generate the API Key.","otter-blocks")),"sendinblue"===(null==T?void 0:T.provider)&&(0,i.createElement)(s.ExternalLink,{href:"https://help.sendinblue.com/hc/en-us/articles/209467485-What-s-an-API-key-and-how-can-I-get-mine-",style:{marginBottom:"10px",display:"block"},target:"_blank"},(0,l.__)("Guide to generate the API Key.","otter-blocks"))),(0,i.createElement)(s.TextControl,{label:(0,l.__)("API Key","otter-blocks"),help:(0,l.__)("You can find the key in the provider's website","otter-blocks"),value:T.apiKey?`*************************${T.apiKey.slice(-8)}`:"",onChange:e=>{_([]),S({listId:"",apiKey:e})}}),T.apiKey&&2>y.length&&"loading"===(null==x?void 0:x.listId)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Spinner,null),(0,l.__)("Loading the options.","otter-blocks"),(0,i.createElement)("br",null),(0,i.createElement)("br",null)),T.apiKey&&"error"===(null==x?void 0:x.listId)&&(0,i.createElement)(i.Fragment,null,(0,l.__)("Invalid API Key. Please check your API Key in the provider's Dashboard.","otter-blocks"),(0,i.createElement)(s.ExternalLink,{target:"_blank",style:{marginBottom:"10px",display:"block"},href:"sendinblue"===T.provider?"https://account.sendinblue.com/advanced/api":"https://us5.admin.mailchimp.com/account/api/"},(0,l.__)("Go to Dashboard.","otter-blocks"))),T.apiKey&&"timeout"===(null==x?void 0:x.listId)&&(0,i.createElement)("p",null,(0,l.__)("Could no connect to the server. Please try again.","otter-blocks")),T.apiKey&&"done"===(null==x?void 0:x.listId)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Contact List","otter-blocks"),value:T.listId,options:y,onChange:e=>S({listId:e})}),1>=(null==y?void 0:y.length)&&(0,i.createElement)("p",null,(0,l.__)("No Contact list found. Please create a list in your provider interface or check if the API key is correct.","otter-blocks")),2<=(null==y?void 0:y.length)&&T.listId&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Action","otter-blocks"),value:T.action,options:[{label:(0,l.__)("Default","otter-blocks"),value:""},{label:(0,l.__)("Subscribe","otter-blocks"),value:"subscribe"},{label:(0,l.__)("Submit & Subscribe","otter-blocks"),value:"submit-subscribe"}],onChange:e=>S({action:e})}),"submit-subscribe"===T.action&&(0,i.createElement)("div",{style:{marginBottom:"10px"}},(0,l.__)("This action will add the client to the contact list and send a separate email with the form data to administrator or to the email mentioned in 'Form to' field. A checkbox for data-sharing consent with third-party will be added on form.","otter-blocks"))))),(0,i.createElement)("div",{style:{display:"flex",flexDirection:"row",gap:"10px"}},(0,i.createElement)(s.Button,{isPrimary:!0,variant:"primary",onClick:w,isBusy:"saving"===(null==x?void 0:x.formIntegration)},"saving"===(null==x?void 0:x.formIntegration)?(0,l.__)("Saving","otter-blocks"):(0,l.__)("Save","otter-blocks")),k.optionName&&(null==C||null===(b=C.integration)||void 0===b?void 0:b.provider)&&(null==C||null===(p=C.integration)||void 0===p?void 0:p.apiKey)&&(null==C||null===(g=C.integration)||void 0===g?void 0:g.listId)&&(0,i.createElement)(s.Button,{isSecondary:!0,variant:"secondary",onClick:M,isBusy:"saving"===(null==x?void 0:x.serviceTesting)},(0,i.createElement)(i.Fragment,null,(0,l.__)("Test Service","otter-blocks")))),"done"===(null==x?void 0:x.formIntegration)&&P&&(0,i.createElement)("div",{className:"o-fetch-msg"},(0,l.__)("You have made some modifications. Do not forget to save the options.","otter-blocks")),"done"===(null==x?void 0:x.serviceTesting)&&(0,i.createElement)("div",{className:"o-fetch-msg"},(0,l.__)("Remember to delete the test email from your provider's contact list.","otter-blocks")),"done"===(null==x?void 0:x.formIntegration)&&(null==T?void 0:T.apiKey)&&(null==T?void 0:T.listId)&&!B&&(0,i.createElement)("div",{className:"o-fetch-msg o-error"},(0,l.__)("Please add a Text Field with Email as type in your form for email registration.","otter-blocks")),"error"===(null==x?void 0:x.formIntegration)&&(0,i.createElement)("div",{className:"o-fetch-msg o-error"},(0,l.__)("An error has occurred while saving. Please try again.","otter-blocks"))))},_t=e=>{let{className:t,loadingState:o,isSaving:a,saveAPIKey:n,siteKey:r,secretKey:c,setSiteKey:d,setSecretKey:m}=e;if("loading"===(null==o?void 0:o.captcha))return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("br",null),(0,i.createElement)(s.Placeholder,null,(0,i.createElement)("div",null,(0,i.createElement)(s.Spinner,null),(0,l.__)("Checking the API Keys for reCaptcha","otter-blocks"))));const u=c&&0<(null==c?void 0:c.length)-13?Array(c.length-13).fill("*").join("")+c.slice(-13):c;return(0,i.createElement)(s.Placeholder,{icon:"admin-site",label:(0,l.__)("Google reCaptcha","otter-blocks"),instructions:(0,l.__)("A Google reCaptcha V2 API keys are required, please enter one below.","otter-blocks"),className:t},(0,i.createElement)("div",{className:"components-placeholder__actions",style:{width:"100%"}},(0,i.createElement)(s.TextControl,{type:"text",label:(0,l.__)("Site Key","otter-blocks"),value:r,className:"components-placeholder__input",onChange:d}),(0,i.createElement)(s.TextControl,{type:"text",label:(0,l.__)("Secret Key","otter-blocks"),value:u,className:"components-placeholder__input",onChange:m}),(0,i.createElement)(s.Button,{isPrimary:!0,type:"submit",onClick:n,isBusy:a,disabled:""===r||""===c},(0,l.__)("Save","otter-blocks"))),(0,i.createElement)("div",{className:"components-placeholder__learn-more",style:{margin:"10px 0px"}},(0,l.__)("You need to activate reCaptcha API.","otter-blocks")," ",(0,i.createElement)(s.ExternalLink,{href:"http://www.google.com/recaptcha/admin"},(0,l.__)("Need an API key? Get one here.","otter-blocks"))))};const{attributes:ft}=st,wt=(0,i.createContext)({});var Ct=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-input","title":"Text Field","category":"themeisle-blocks","description":"Display a contact form for your clients.","keywords":["input","text","email"],"ancestor":["themeisle-blocks/form"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"type":{"type":"string","default":"text"},"label":{"type":"string"},"placeholder":{"type":"string"},"isRequired":{"type":"boolean"},"mappedName":{"type":"string"},"labelColor":{"type":"string"},"inputWidth":{"type":"number"},"helpText":{"type":"string"}},"supports":{"align":["wide","full"]}}'),Et=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Field Type","otter-blocks"),value:t.type,options:[{label:(0,l.__)("Text","otter-blocks"),value:"text"},{label:(0,l.__)("Email","otter-blocks"),value:"email"},{label:(0,l.__)("Date","otter-blocks"),value:"date"},{label:(0,l.__)("Number","otter-blocks"),value:"number"}],onChange:e=>o({type:e})}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholder,onChange:e=>o({placeholder:e})}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Help Text","otter-blocks"),value:t.helpText,onChange:e=>o({helpText:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Required","otter-blocks"),help:(0,l.__)("If enabled, the input field must be filled out before submitting the form.","otter-blocks"),checked:t.isRequired,onChange:e=>o({isRequired:e})})),(0,i.createElement)(c.PanelColorSettings,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:t.labelColor,onChange:e=>o({labelColor:e}),label:(0,l.__)("Label Color","otter-blocks")}]}))};const{attributes:xt}=Ct;const Tt=[{attributes:{id:{type:"string"},type:{type:"string",default:"text"},label:{type:"string"},placeholder:{type:"string"},isRequired:{type:"boolean"},mappedName:{type:"string"}},supports:{align:["wide","full"]},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save();return(0,i.createElement)("div",o,(0,i.createElement)("label",{htmlFor:t.id,className:"otter-form-input-label"},(0,i.createElement)(c.RichText.Content,{value:t.label,className:"otter-form-input-label__label",tagName:"span"}),t.isRequired&&(0,i.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,i.createElement)("input",{type:t.type,name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,className:"otter-form-input"}))}}];var St=Tt;const{name:Mt}=Ct;window.themeisleGutenberg.isAncestorTypeAvailable||(Ct.parent=["themeisle-blocks/form"]),(0,a.registerBlockType)(Mt,{...Ct,title:(0,l.__)("Text Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:r.inputIcon,deprecated:St,keywords:["input","text","email"],variations:[{name:"themeisle-blocks/form-input-email",description:(0,l.__)("Insert an email field","otter-blocks"),icon:"email",title:(0,l.__)("Email Field","otter-blocks"),attributes:{type:"email"}},{name:"themeisle-blocks/form-input-number",description:(0,l.__)("Insert a number field","otter-blocks"),icon:"calculator",title:(0,l.__)("Number Field","otter-blocks"),attributes:{type:"number"}},{name:"themeisle-blocks/form-input-date",description:(0,l.__)("Insert a date field","otter-blocks"),icon:"calendar-alt",title:(0,l.__)("Date Field","otter-blocks"),attributes:{type:"date"}}],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(a,xt);return()=>e(t.id)}),[t.id]);const n=(0,c.useBlockProps)(),r=(0,i.useRef)(null),s=(0,i.useRef)(null),d=(0,i.useRef)(null);return(0,i.useEffect)((()=>{var e,o,l,a,n,i,c;s.current&&(null===(e=s.current)||void 0===e||null===(o=e.style)||void 0===o||o.setProperty("--input-width",(l=t.inputWidth)?l+"%":null)),r.current&&(null===(a=r.current)||void 0===a||null===(n=a.style)||void 0===n||n.setProperty("--label-color",t.labelColor||null)),d.current&&(null===(i=d.current)||void 0===i||null===(c=i.style)||void 0===c||c.setProperty("--label-color",t.labelColor||null))}),[s.current,r.current,d.current,t.labelColor,t.inputWidth]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Et,{attributes:t,setAttributes:o}),(0,i.createElement)("div",n,(0,i.createElement)("label",{ref:r,htmlFor:t.id,className:"otter-form-input-label"},(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Type here…","otter-blocks"),className:"otter-form-input-label__label",value:t.label,onChange:e=>o({label:e}),tagName:"span"}),t.isRequired&&(0,i.createElement)("span",{className:"required"},"*")),(0,i.createElement)("input",{ref:s,type:t.type,placeholder:t.placeholder,name:t.id,id:t.id,required:t.isRequired,disabled:!0,className:"otter-form-input components-text-control__input"}),t.helpText&&(0,i.createElement)("span",{className:"o-form-help",ref:d},t.helpText)))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id});return(0,i.createElement)("div",o,(0,i.createElement)("label",{htmlFor:t.id?t.id+"-input":"",className:"otter-form-input-label"},(0,i.createElement)(c.RichText.Content,{value:t.label,className:"otter-form-input-label__label",tagName:"span"}),t.isRequired&&(0,i.createElement)("span",{className:"required"},"*")),(0,i.createElement)("input",{type:t.type,name:t.mappedName,id:t.id?t.id+"-input":"",required:t.isRequired,placeholder:t.placeholder,className:"otter-form-input"}),t.helpText&&(0,i.createElement)("span",{className:"o-form-help"},t.helpText))}});var Bt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-nonce","title":"Nonce Field","category":"themeisle-blocks","description":"Protect the form from CSRF.","keywords":["protection","csrf","field"],"textdomain":"otter-blocks","attributes":{"formId":{"type":"string"}},"supports":{"align":["wide","full"],"inserter":false}}');const{name:zt}=Bt;(0,a.registerBlockType)(zt,{...Bt,title:(0,l.__)("Nonce Field","otter-blocks"),description:(0,l.__)("Protect the form from CSRF.","otter-blocks"),icon:r.inputIcon,keywords:["protection","csrf","field"],edit:e=>{let{setAttributes:t,clientId:o}=e;const{parent:l}=(0,A.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:l}=e("core/block-editor");return{parent:t(l(o))}}),[]);return(0,i.useEffect)((()=>{l&&t({formId:l.attributes.id})}),[l]),null},save:()=>null});var Pt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-textarea","title":"Textarea Field","category":"themeisle-blocks","description":"Display a contact form for your clients.","keywords":["textarea","message","input"],"ancestor":["themeisle-blocks/form"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"label":{"type":"string"},"placeholder":{"type":"string"},"isRequired":{"type":"boolean"},"mappedName":{"type":"string"},"labelColor":{"type":"string"},"inputWidth":{"type":"number"},"helpText":{"type":"string"}},"supports":{"align":["wide","full"]}}'),Vt=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholder,onChange:e=>o({placeholder:e})}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Help Text","otter-blocks"),value:t.helpText,onChange:e=>o({helpText:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Required","otter-blocks"),help:(0,l.__)("If enabled, the input field must be filled out before submitting the form.","otter-blocks"),checked:t.isRequired,onChange:e=>o({isRequired:e})})))};const{attributes:Rt}=Pt;const Lt=[{attributes:{id:{type:"string"},type:{type:"string",default:"text"},label:{type:"string"},placeholder:{type:"string"},isRequired:{type:"boolean"},mappedName:{type:"string"}},supports:{align:["wide","full"]},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save();return(0,i.createElement)("div",o,(0,i.createElement)("label",{htmlFor:t.id,className:"otter-form-textarea-label"},(0,i.createElement)(c.RichText.Content,{value:t.label,className:"otter-form-textarea-label__label",tagName:"span"}),t.isRequired&&(0,i.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,i.createElement)("textarea",{name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,rows:10,className:"otter-form-textarea-input"}))}}];var Nt=Lt;const{name:Ht}=Pt;window.themeisleGutenberg.isAncestorTypeAvailable||(Pt.parent=["themeisle-blocks/form"]),(0,a.registerBlockType)(Ht,{...Pt,title:(0,l.__)("Textarea Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:r.inputIcon,deprecated:Nt,keywords:["textarea","message","input"],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(a,Rt);return()=>e(t.id)}),[t.id]);const n=(0,c.useBlockProps)(),r=(0,i.useRef)(null),s=(0,i.useRef)(null),d=(0,i.useRef)(null);return(0,i.useEffect)((()=>{var e,o,l,a,n,i,c;s.current&&(null===(e=s.current)||void 0===e||null===(o=e.style)||void 0===o||o.setProperty("--input-width",(l=t.inputWidth)?l+"%":l)),r.current&&(null===(a=r.current)||void 0===a||null===(n=a.style)||void 0===n||n.setProperty("--label-color",t.labelColor||null)),d.current&&(null===(i=d.current)||void 0===i||null===(c=i.style)||void 0===c||c.setProperty("--label-color",t.labelColor||null))}),[s.current,r.current,t]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Vt,{attributes:t,setAttributes:o}),(0,i.createElement)("div",n,(0,i.createElement)("label",{ref:r,htmlFor:t.id?t.id+"-input":"",className:"otter-form-textarea-label"},(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Type here…","otter-blocks"),className:"otter-form-textarea-label__label",value:t.label,onChange:e=>o({label:e}),tagName:"span"}),t.isRequired&&(0,i.createElement)("span",{className:"required"},"*")),(0,i.createElement)("textarea",{ref:s,placeholder:t.placeholder,name:t.id,id:t.id?t.id+"-input":"",required:t.isRequired,disabled:!0,rows:10,className:"otter-form-textarea-input components-textarea-control__input"}),t.helpText&&(0,i.createElement)("span",{className:"o-form-help",ref:d},t.helpText)))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id});return(0,i.createElement)("div",o,(0,i.createElement)("label",{htmlFor:t.id?t.id+"-input":"",className:"otter-form-textarea-label"},(0,i.createElement)(c.RichText.Content,{value:t.label,className:"otter-form-textarea-label__label",tagName:"span"}),t.isRequired&&(0,i.createElement)("span",{className:"required"},"*")),(0,i.createElement)("textarea",{name:t.mappedName,id:t.id?t.id+"-input":"",required:t.isRequired,placeholder:t.placeholder,rows:10,className:"otter-form-textarea-input"}),t.helpText&&(0,i.createElement)("span",{className:"o-form-help"},t.helpText))}});const{name:It}=st;(0,a.registerBlockType)(It,{...st,title:(0,l.__)("Form","otter-blocks"),description:(0,l.__)("Display a form for your clients. Powered by Otter.","otter-blocks"),icon:r.contactIcon,keywords:["business","form","email"],edit:e=>{let{attributes:t,setAttributes:o,clientId:n,name:r}=e;const[s,d]=(0,i.useState)(""),[m,u]=(0,i.useState)(""),[b,p]=(0,i.useState)({formOptions:"done",formIntegration:"done",listId:"init",captcha:"init",serviceTesting:"init"}),h=e=>{p((t=>({...t,...e})))},[k,y]=(0,i.useState)({provider:void 0,redirectLink:void 0,fromName:void 0,emailTo:void 0,subject:void 0,email:void 0,listId:void 0,action:void 0,hasCaptcha:void 0,submitMessage:void 0,apiKey:void 0,cc:void 0,bcc:void 0}),[_,f]=(0,i.useState)(!0),[w,C]=(0,i.useState)([{label:(0,l.__)("None","otter-blocks"),value:""}]),{insertBlock:E,removeBlock:x}=(0,A.useDispatch)("core/block-editor"),{replaceInnerBlocks:T}=(0,A.useDispatch)("core/block-editor"),{createNotice:S}=(0,A.dispatch)("core/notices"),M=(0,A.useSelect)((e=>0<e("core/block-editor").getBlocks(n).length),[n]),{blockType:B,defaultVariation:z,variations:P}=(0,A.useSelect)((e=>{const{getBlockVariations:t,getBlockType:o,getDefaultBlockVariation:l}=e("core/blocks");return{blockType:o(r),defaultVariation:l(r,"block"),variations:t(r,"block")}}),[r]),{children:V,hasEmailField:R}=(0,A.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),o=t(n).innerBlocks;return{children:o,hasEmailField:null==o?void 0:o.some((e=>{var t;return"email"===(null==e||null===(t=e.attributes)||void 0===t?void 0:t.type)}))}}));(0,i.useEffect)((()=>{const e=(0,v.blockInit)(n,ft);return()=>e(t.id)}),[t.id]),(0,i.useEffect)((()=>{var e;t.id&&(0,A.select)("core/edit-widgets")?o({optionName:`widget_${t.id.slice(-8)}`}):t.id&&Boolean(window.themeisleGutenberg.isBlockEditor)&&null!==(e=(0,A.select)("core/editor"))&&void 0!==e&&e.getCurrentPostId()&&o({optionName:`${(0,A.select)("core/editor").getCurrentPostId()}_${t.id.slice(-8)}`})}),[t.id]),(0,i.useEffect)((()=>{if(V){const e=V.filter((e=>{let{name:t}=e;return"themeisle-blocks/form-nonce"===t}));if(2<=(null==e?void 0:e.length))e.slice(1).forEach((e=>{x(e.clientId,!1)}));else if(0===(null==e?void 0:e.length)&&n){const e=(0,a.createBlock)("themeisle-blocks/form-nonce");e&&(null==E||E(e,(null==V?void 0:V.length)||0,n,!1))}}}),[V]);const L=e=>null==e?void 0:e.filter((e=>{let{form:o}=e;return o===t.optionName})).pop(),N=e=>{var t,o,l,a;y({emailTo:null==e?void 0:e.email,fromName:null==e?void 0:e.fromName,redirectLink:null==e?void 0:e.redirectLink,subject:null==e?void 0:e.emailSubject,cc:null==e?void 0:e.cc,bcc:null==e?void 0:e.bcc,submitMessage:null==e?void 0:e.submitMessage,provider:null==e||null===(t=e.integration)||void 0===t?void 0:t.provider,apiKey:null==e||null===(o=e.integration)||void 0===o?void 0:o.apiKey,listId:null==e||null===(l=e.integration)||void 0===l?void 0:l.listId,action:null==e||null===(a=e.integration)||void 0===a?void 0:a.action,hasCaptcha:null==e?void 0:e.hasCaptcha})};(0,i.useEffect)((()=>{let e=new AbortController;const o=setTimeout((()=>{h({formOptions:"done",formIntegration:"done"})}),3e3);return t.optionName&&bt().loadPromise.then((()=>{h({formOptions:"loading",formIntegration:"loading"}),(new(bt().models.Settings)).fetch({signal:e.signal}).done((t=>{e=null;const l=L(t.themeisle_blocks_form_emails);l&&(N(l),f(l)),h({formIntegration:"done",formOptions:"done"}),clearTimeout(o)})).catch((()=>{h({formIntegration:"done",formOptions:"done"}),clearTimeout(o)}))})),()=>{var t;null===(t=e)||void 0===t||t.abort(),clearTimeout(o)}}),[t.optionName]),(0,i.useEffect)((()=>{let e,t=new AbortController;return k.apiKey&&k.provider&&(e=setTimeout((()=>h({listId:"timeout"})),6e3),h({listId:"loading"}),gt()({path:"otter/v1/form/editor",method:"POST",data:{handler:"listId",payload:{provider:k.provider,apiKey:k.apiKey,action:k.action}},signal:t.signal}).then((o=>{if(t=null,clearTimeout(e),null!=o&&o.success){var a;const e=(null==o||null===(a=o.list_id)||void 0===a?void 0:a.map((e=>{var t;return{label:e.name,value:null===(t=e.id)||void 0===t?void 0:t.toString()}})))||[];e.splice(0,0,{label:(0,l.__)("None","otter-blocks"),value:""}),C(e),h({listId:"done"});const t=1===e.map((e=>{let{value:t}=e;return t})).filter((e=>e===k.listId)).length;k.listId&&!t&&S("error",(0,l.__)("The current contact list is invalid. Please choose a new contact list.","otter-blocks"),{isDismissible:!0,type:"snackbar"})}else S("error",null==o?void 0:o.error,{isDismissible:!0,type:"snackbar",id:"themeisle-form-server-error"}),h({listId:"error"})})).catch((e=>{console.error(e),h({listId:"error"})}))),()=>{var o;null===(o=t)||void 0===o||o.abort(),clearTimeout(e)}}),[k.apiKey,k.provider]),(0,i.useEffect)((()=>{let e=new AbortController;if(void 0!==t.hasCaptcha&&t.optionName)try{var o,a;null===(o=new(bt().models.Settings))||void 0===o||null===(a=o.current)||void 0===a||a.fetch({signal:e.signal}).done((o=>{e=null;const a=o.themeisle_blocks_form_emails?o.themeisle_blocks_form_emails:[];let n=!0,r=!1;null==a||a.forEach(((e,o)=>{let{form:l}=e;l===t.optionName&&(a[o].hasCaptcha!==t.hasCaptcha&&(r=!0),a[o].hasCaptcha=t.hasCaptcha,n=!1)})),n&&a.push({form:t.optionName,hasCaptcha:t.hasCaptcha}),(n||r)&&(new(bt().models.Settings)({themeisle_blocks_form_emails:a}).save(),S("info",(0,l.__)("Form preferences have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"}))}))}catch(e){console.warn(e.message)}return()=>{var t;return null===(t=e)||void 0===t?void 0:t.abort()}}),[t.hasCaptcha,t.optionName]),(0,i.useEffect)((()=>{let e=new AbortController;return t.hasCaptcha&&"init"===(null==b?void 0:b.captcha)&&(()=>{h({captcha:"loading"});try{var t;null===(t=new(bt().models.Settings))||void 0===t||t.fetch({signal:e.signal}).then((t=>{e=null,""!==t.themeisle_google_captcha_api_site_key&&""!==t.themeisle_google_captcha_api_secret_key?h({captcha:"done"}):(h({captcha:"missing"}),d(t.themeisle_google_captcha_api_site_key),u(t.themeisle_google_captcha_api_secret_key))})).catch((e=>{console.error(e),h({captcha:"error"})}))}catch(e){console.warn(e.message),h({captcha:"error"})}})(),()=>{var t;return null===(t=e)||void 0===t?void 0:t.abort()}}),[b.captcha,t.hasCaptcha]);const I={"--message-font-size":void 0!==t.messageFontSize&&t.messageFontSize,"--input-font-size":void 0!==t.inputFontSize&&t.inputFontSize,"--help-font-size":void 0!==t.helpFontSize&&t.helpFontSize,"--input-color":t.inputColor,"--padding":(O=t.inputPadding,O?O.top+" "+O.right+" "+O.bottom+" "+O.left:null),"--border-radius":void 0!==t.inputBorderRadius&&t.inputBorderRadius+"px","--border-width":void 0!==t.inputBorderWidth&&t.inputBorderWidth+"px","--border-color":t.inputBorderColor,"--label-color":t.labelColor,"--input-width":void 0!==t.inputWidth&&t.inputWidth+"%","--submit-color":t.submitColor,"--required-color":t.inputRequiredColor,"--input-gap":void 0!==t.inputGap&&t.inputGap+"px","--inputs-gap":void 0!==t.inputsGap&&t.inputsGap+"px","--label-font-size":void 0!==t.labelFontSize&&t.labelFontSize+"px","--submit-font-size":void 0!==t.submitFontSize&&t.submitFontSize+"px","--help-label-color":t.helpLabelColor};var O;const[F,G]=(0,v.useCSSNode)();(0,i.useEffect)((()=>{G([`.otter-form__container .wp-block-button__link {\n\t\t\t\tbackground-color: ${t.submitBackgroundColor}\n\t\t\t}`,`.otter-form__container .wp-block-button__link:hover {\n\t\t\t\t${t.submitBackgroundColorHover&&`background-color: ${t.submitBackgroundColorHover}`}\n\t\t\t}`])}),[t.submitBackgroundColor,t.submitBackgroundColorHover]);const $=(0,c.useBlockProps)({id:t.id,style:I,className:F});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(wt.Provider,{value:{savedFormOptions:_,listIDOptions:w,setListIDOptions:C,saveFormEmailOptions:()=>{h({formOptions:"saving"}),(new(bt().models.Settings)).fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let a=!0,n=!1;null==o||o.forEach(((e,l)=>{let{form:r}=e;r===t.optionName&&(n=o[l].email!==k.emailTo||o[l].redirectLink!==k.redirectLink||o[l].emailSubject!==k.subject||o[l].submitMessage!==k.submitMessage||o[l].fromName!==k.fromName||o[l].cc!==k.cc||o[l].bcc!==k.bcc,o[l].email=k.emailTo,o[l].redirectLink=k.redirectLink,o[l].emailSubject=k.subject,o[l].submitMessage=k.submitMessage,o[l].fromName=k.fromName,o[l].cc=k.cc,o[l].bcc=k.bcc,a=!1)})),a&&o.push({form:t.optionName,email:k.emailTo,fromName:k.fromName,redirectLink:k.redirectLink,emailSubject:k.subject,submitMessage:k.submitMessage,cc:k.cc,bcc:k.bcc}),a||n?new(bt().models.Settings)({themeisle_blocks_form_emails:o}).save().then((e=>{const t=L(e.themeisle_blocks_form_emails);t?(N(t),f(t),h({formOptions:"done"}),S("info",(0,l.__)("Form options have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})):h({formOptions:"error"})})):h({formOptions:"done"})})).catch((()=>h({formOptions:"error"})))},formOptions:k,setFormOption:e=>{y((t=>({...t,...e})))},saveIntegration:()=>{var e;h({formIntegration:"saving"}),null===(e=new(bt().models.Settings))||void 0===e||e.fetch().done((e=>{const a=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let n=!0,r=!1;null==a||a.forEach(((e,o)=>{let{form:l}=e;var i,c,s,d,m;l===t.optionName&&(null!==(i=a[o])&&void 0!==i&&i.integration||(a[o].integration={}),r=(null===(c=a[o].integration)||void 0===c?void 0:c.provider)!==k.provider||(null===(s=a[o].integration)||void 0===s?void 0:s.listId)!==k.listId||(null===(d=a[o].integration)||void 0===d?void 0:d.action)!==k.action||(null===(m=a[o].integration)||void 0===m?void 0:m.apiKey)!==k.apiKey,n=!1,a[o].integration.provider=k.provider,a[o].integration.apiKey=k.apiKey,a[o].integration.listId=k.listId,a[o].integration.action=k.action)})),n&&a.push({form:t.optionName,integration:{provider:k.provider,apiKey:k.apiKey,listId:k.listId,action:k.action}}),n||r?new(bt().models.Settings)({themeisle_blocks_form_emails:a}).save().then((e=>{const t=L(e.themeisle_blocks_form_emails);var a;t&&(N(t),f(t),o({action:null==t||null===(a=t.integration)||void 0===a?void 0:a.action})),h({formIntegration:"done"}),r&&S("info",(0,l.__)("Integration details have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})})).catch((e=>{console.error(e),h({formIntegration:"error"})})):h({formIntegration:"done"})})).catch((()=>{h({formIntegration:"error"})}))},sendTestEmail:()=>{gt()({path:"otter/v1/form/editor",method:"POST",data:{handler:"testEmail",payload:{provider:"default",to:null==k?void 0:k.emailTo,site:window.location.href}}}).then((e=>{null!=e&&e.success?S("info",(0,l.__)("The test email has been send. Check your emails for confirmation.","otter-blocks"),{isDismissible:!0,type:"snackbar"}):S("error",(0,l.__)("An error has occurred: ","otter-blocks")+((null==e?void 0:e.error)||(0,l.__)("unknown","otter-blocks")),{isDismissible:!0,type:"snackbar"})})).catch((e=>{console.error(e),S("error",null==e?void 0:e.message,{isDismissible:!0,type:"snackbar"})}))},loadingState:b,testService:()=>{h({serviceTesting:"loading"}),gt()({path:"otter/v1/form/editor",method:"POST",data:{handler:"testEmail",payload:{formOption:t.optionName}}}).then((e=>{null!=e&&e.success?(S("info",(0,l.__)("A test email has been registered to your contact list. Check your provider for confirmation.","otter-blocks"),{isDismissible:!0,type:"snackbar"}),h({serviceTesting:"done"})):(S("error",(0,l.__)("An error has occurred: ","otter-blocks")+((null==e?void 0:e.error)||(0,l.__)("unknown","otter-blocks")+(0,l.__)(". Check your provider for confirmation.","otter-blocks")),{isDismissible:!0,type:"snackbar"}),h({serviceTesting:"error"}))})).catch((e=>{console.error(e),S("error",null==e?void 0:e.message,{isDismissible:!0,type:"snackbar"}),h({testService:"error"})}))},hasEmailField:R}},(0,i.createElement)(yt,{attributes:t,setAttributes:o}),(0,i.createElement)("div",$,M?(0,i.createElement)("form",{className:"otter-form__container",onSubmit:()=>!1},(0,i.createElement)(c.InnerBlocks,null),t.hasCaptcha&&"done"!==(null==b?void 0:b.captcha)&&(0,i.createElement)(_t,{className:"otter-form-captcha",loadingState:b,saveAPIKey:()=>{h({captcha:"loading"});try{var e,t,o;const a=new(bt().models.Settings)({themeisle_google_captcha_api_site_key:s,themeisle_google_captcha_api_secret_key:m});null==a||null===(e=a.save)||void 0===e||null===(t=e.call(a))||void 0===t||null===(o=t.then((e=>{""!==e.themeisle_google_captcha_api_site_key&&""!==e.themeisle_google_captcha_api_secret_key?h({captcha:"done"}):h({captcha:"missing"}),u(""),d(""),S("info",(0,l.__)("Google reCaptcha API Keys have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"}).catch((e=>{console.error(e),h({captcha:"error"})}))})))||void 0===o||o.catch((e=>{console.error(e),h({captcha:"error"})}))}catch(e){console.warn(e.message),h({captcha:"error"})}},siteKey:s,secretKey:m,setSiteKey:d,setSecretKey:u}),"submit-subscribe"===t.action&&(0,i.createElement)("div",{className:"otter-form-consent"},(0,i.createElement)("input",{id:"o-consent",name:"o-consent",type:"checkbox"}),(0,i.createElement)("label",{htmlFor:"o-consent"},(0,l.__)("I have read and agreed the privacy statement.","otter-blocks"))),(0,i.createElement)("div",{className:g()("wp-block-button has-submit-msg",{right:"right"===t.submitStyle},{full:"full"===t.submitStyle})},(0,i.createElement)("button",{className:"wp-block-button__link",type:"submit",disabled:!0},t.submitLabel?t.submitLabel:(0,l.__)("Submit","otter-blocks")),(0,i.createElement)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"}},(0,i.createElement)("div",{className:"o-form-server-response o-success",style:{color:t.submitMessageColor}},k.submitMessage||(0,l.__)("Success","otter-blocks")),(0,i.createElement)("div",{className:"o-form-server-response o-error",style:{color:t.submitMessageErrorColor,margin:"0px"}},(0,l.__)("Error. Please try again.","otter-blocks"))))):(0,i.createElement)(c.__experimentalBlockVariationPicker,{icon:(0,H.get)(B,["icon","src"]),label:(0,H.get)(B,["title"]),variations:P,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z;e&&T(n,(0,a.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0}))))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,className:g()({"can-submit-and-subscribe":"submit-subscribe"===t.action,"has-captcha":t.hasCaptcha}),"data-option-name":t.optionName});return(0,i.createElement)("div",o,(0,i.createElement)("form",{className:"otter-form__container"},(0,i.createElement)(c.InnerBlocks.Content,null),(0,i.createElement)("div",{className:g()("wp-block-button",{right:"right"===t.submitStyle},{full:"full"===t.submitStyle})},(0,i.createElement)("button",{className:"wp-block-button__link",type:"submit"},t.submitLabel?t.submitLabel:(0,l.__)("Submit","otter-blocks")))))},deprecated:mt,example:{attributes:{},innerBlocks:[{name:"themeisle-blocks/form-input",attributes:{label:(0,l.__)("Name","otter-blocks"),type:"text",isRequired:!0}},{name:"themeisle-blocks/form-input",attributes:{label:(0,l.__)("Email","otter-blocks"),type:"email",isRequired:!0}},{name:"themeisle-blocks/form-textarea",attributes:{label:(0,l.__)("Message","otter-blocks")}},{name:"core/paragraph",attributes:{content:(0,l.__)("You agree to receive email communication from us by submitting this form and understand that your contact information will be stored with us.","otter-blocks"),fontSize:"extra-small"}}]},variations:[{name:"themeisle-blocks/form-contact",description:(0,l.__)("Contact form for clients","otter-blocks"),icon:r.contactIcon,title:(0,l.__)("Contact Form","otter-blocks"),innerBlocks:[["themeisle-blocks/form-input",{label:(0,l.__)("Name","otter-blocks"),type:"text",isRequired:!0}],["themeisle-blocks/form-input",{label:(0,l.__)("Email","otter-blocks"),type:"email",isRequired:!0}],["themeisle-blocks/form-textarea",{label:(0,l.__)("Message","otter-blocks")}],["core/paragraph",{content:(0,l.__)("You agree to receive email communication from us by submitting this form and understand that your contact information will be stored with us.","otter-blocks"),fontSize:"extra-small"}]]},{name:"themeisle-blocks/form-subscribe",description:(0,l.__)("Add the clients to your subscription list","otter-blocks"),icon:r.contactIcon,title:(0,l.__)("Subscribe Form","otter-blocks"),innerBlocks:[["themeisle-blocks/form-input",{label:(0,l.__)("Name","otter-blocks"),type:"text",isRequired:!0}],["themeisle-blocks/form-input",{label:(0,l.__)("Email","otter-blocks"),type:"email",isRequired:!0}],["core/paragraph",{content:(0,l.__)("You agree to receive email communication from us by submitting this form and understand that your contact information will be stored with us.","otter-blocks"),fontSize:"extra-small"}]]}]});var At=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/google-map","title":"Google Maps","category":"themeisle-blocks","description":"Display Google Maps on your website with Google Map block. Powered by Otter.","keywords":["map","google","orbitfox"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"style":{"type":"string","default":"standard"},"location":{"type":"string","default":"La Sagrada Familia, Barcelona, Spain"},"latitude":{"type":"string"},"longitude":{"type":"string"},"type":{"type":"string","default":"roadmap"},"zoom":{"type":"number","default":15},"height":{"type":"number","default":400},"draggable":{"type":"boolean","default":true},"mapTypeControl":{"type":"boolean","default":true},"zoomControl":{"type":"boolean","default":true},"fullscreenControl":{"type":"boolean","default":true},"streetViewControl":{"type":"boolean","default":true},"markers":{"type":"array","default":[]}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-google-map-editor","style":"otter-google-map-style","script":"google-maps"}'),Ot=o(4586),Ft=e=>{let{api:t,error:o,isAPILoaded:a,isAPISaved:n,isSaving:r,changeAPI:c,saveAPIKey:d}=e;return a?n?void 0:(0,i.createElement)(s.Placeholder,{icon:"admin-site",label:(0,l.__)("Google Maps","otter-blocks"),instructions:(0,l.__)("A Google Maps API key is required, please enter one below.","otter-blocks")},(0,i.createElement)("div",{className:"components-placeholder__actions"},(0,i.createElement)(s.TextControl,{type:"text",placeholder:(0,l.__)("Google Maps API Key","otter-blocks"),value:t,className:g()("components-placeholder__input",{"is-invalid":o}),onChange:c}),(0,i.createElement)(s.Button,{isPrimary:!0,type:"submit",onClick:d,isBusy:r,disabled:""===t||o},(0,l.__)("Save","otter-blocks"))),(0,i.createElement)("div",{className:"components-placeholder__learn-more"},o&&(0,i.createElement)("p",null,(0,l.__)("The API key could not be validated.","otter-blocks")),(0,i.createElement)("p",null,(0,l.__)("You need to activate Maps and Places API.","otter-blocks")," ",(0,i.createElement)(s.ExternalLink,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},(0,l.__)("Need an API key? Get one here.","otter-blocks"))))):(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null),(0,l.__)("Loading…","otter-blocks"))};const Gt=e=>{let{label:t,value:o,options:l,onChange:a}=e;const n=`inspector-style-switcher-control-${(0,I.useInstanceId)(Gt)}`;return(0,i.createElement)(s.BaseControl,{id:n,label:t},(0,i.createElement)("div",{className:"o-style-switcher"},l.map((e=>(0,i.createElement)(s.Button,{key:e.value,className:g()("o-style-switcher-item",{"is-active":e.value===o}),tabIndex:"0",onClick:()=>(e=>a(e))(e.value)},(0,i.createElement)("div",{className:"o-style-switcher-item-preview"},(0,i.createElement)("img",{src:e.image})),(0,i.createElement)("div",{className:"o-style-switcher-item-label"},e.label))))))},$t=Gt,Dt=e=>{let{label:t,value:o,options:l,onChange:a}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(s.ToolbarGroup,null,(0,i.createElement)(s.Dropdown,{contentClassName:"otter-styles-popover-content",position:"bottom center",renderToggle:e=>{let{isOpen:o,onToggle:l}=e;return(0,i.createElement)(s.Button,{className:"components-dropdown-menu__toggle",icon:"admin-appearance",onClick:l,"aria-haspopup":"true","aria-expanded":o,label:t,showTooltip:!0},(0,i.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"o-style-switcher"},l.map((e=>(0,i.createElement)(s.Button,{key:e.value,className:g()("o-style-switcher-item",{"is-active":e.value===o}),tabIndex:"0",onClick:()=>(e=>a(e))(e.value)},(0,i.createElement)("div",{className:"o-style-switcher-item-preview"},(0,i.createElement)("img",{src:e.image})),(0,i.createElement)("div",{className:"o-style-switcher-item-label"},e.label))))))})))},Zt=e=>{let{value:t,onChange:o}=e;const a=(0,I.useInstanceId)(Zt);(0,i.useEffect)((()=>{window.wp.oldEditor.initialize(r.current.id,{tinymce:{classic_block_editor:!0,plugins:"lists,media,paste,tabfocus,wordpress,wpautoresize,wpeditimage,wpgallery,wplink,wpdialogs,wptextpattern,wpview",toolbar1:"formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker,wp_add_media"}});const e=window.tinymce.get(r.current.id);return e.on("change",(()=>o(e.getContent()))),()=>window.wp.oldEditor.remove(r.current.id)}),[]);const n=`inspector-textarea-control-${a}`,r=(0,i.useRef)(null);return(0,i.createElement)(s.BaseControl,{id:n,label:(0,l.__)("Description","otter-blocks")},(0,i.createElement)("textarea",{id:n,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:r}))};var Wt=Zt,Ut=e=>{let{marker:t,isOpen:o,isPlaceAPIAvailable:a,openMarker:n,removeMarker:r,changeMarkerProp:c}=e;const d=(0,i.useRef)(null);return(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker"},(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker-title-area"},(0,i.createElement)(s.Button,{className:"wp-block-themeisle-blocks-google-map-marker-title",onClick:()=>n(t.id)},t.title||(0,l.__)("Custom Marker","otter-blocks")),(0,i.createElement)(s.Button,{icon:"no-alt",label:(0,l.__)("Remove Marker","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-google-map-marker-remove",onClick:()=>r(t.id)})),(0,i.createElement)("div",{className:g()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===o})},(0,i.createElement)(s.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,i.createElement)("input",{type:"text",id:`themeisle-location-search-${t.id}`,placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:d,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const o=new window.google.maps.places.SearchBox(d.current);o.addListener("places_changed",(()=>{const e=o.getPlaces();e&&0<e.length&&e.forEach((e=>{const o=e.formatted_address||e.name,l=e.geometry.location.lat(),a=e.geometry.location.lng();c(t.id,"location",o),c(t.id,"latitude",l),c(t.id,"longitude",a)}))}))},onChange:e=>c(t.id,"location",e.target.value),disabled:!a}),!a&&(0,i.createElement)("p",null,(0,l.__)("To enable locations earch, please ensure Places API is activated in the Google Developers Console.","otter-blocks")+" ",(0,i.createElement)(s.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:t.latitude,onChange:e=>c(t.id,"latitude",e)}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:t.longitude,onChange:e=>c(t.id,"longitude",e)}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Map Icon","otter-blocks"),value:t.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:(0,l.__)("Red","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:(0,l.__)("Blue","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:(0,l.__)("Yellow","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:(0,l.__)("Green","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:(0,l.__)("Orange","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:e=>c(t.id,"icon",e)}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:t.title,onChange:e=>c(t.id,"title",e)}),(0,i.createElement)(Wt,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>c(t.id,"description",e)})))},jt=e=>{let{initialOpen:t,markers:o,isPlaceAPIAvailable:a,addMarker:n,removeMarker:r,changeMarkerProp:c}=e;(0,i.useEffect)((()=>{!1!==t&&m(t)}),[t]);const[d,m]=(0,i.useState)(null),u=e=>{d===e&&(e=null),m(e)};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},o.map((e=>(0,i.createElement)(Ut,{key:e.id,marker:e,isOpen:d,isPlaceAPIAvailable:a,openMarker:u,removeMarker:r,changeMarkerProp:c})))),(0,i.createElement)(s.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:n},(0,l.__)("Add Marker","otter-blocks")))},qt=e=>{let{attributes:t,setAttributes:o,map:a,changeStyle:n,isPlaceAPIAvailable:r,isMarkerOpen:d,setMarkerOpen:m,removeMarker:u,changeMarkerProp:b,addMarkerManual:p,api:g,isSaving:h,changeAPI:k,saveAPIKey:v}=e;const y=(0,i.useRef)(null);return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,i.createElement)($t,{value:t.style,options:[{label:(0,l.__)("Standard","otter-blocks"),value:"standard",image:window.themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:(0,l.__)("Silver","otter-blocks"),value:"silver",image:window.themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:(0,l.__)("Retro","otter-blocks"),value:"retro",image:window.themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:(0,l.__)("Dark","otter-blocks"),value:"dark",image:window.themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:(0,l.__)("Night","otter-blocks"),value:"night",image:window.themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:(0,l.__)("Aubergine","otter-blocks"),value:"aubergine",image:window.themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:n})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,i.createElement)(s.BaseControl,{label:(0,l.__)("Location"),id:"wp-block-themeisle-blocks-google-map-search"},(0,i.createElement)("input",{type:"text",id:"wp-block-themeisle-blocks-google-map-search",placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:y,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const t=new window.google.maps.places.SearchBox(y.current);t.addListener("places_changed",(()=>{const e=t.getPlaces();e&&0<e.length&&e.forEach((e=>{const t=e.geometry.location.lat(),l=e.geometry.location.lng(),n=new window.google.maps.LatLng(t,l);a.setCenter(n),o({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:e=>{o({location:e.target.value})},disabled:!r}),!r&&(0,i.createElement)("p",null,(0,l.__)("To enable locations earch, please ensure Places API is activated in the Google Developers Console.","otter-blocks")+" ",(0,i.createElement)(s.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter latitude…","otter-blocks"),value:t.latitude,onChange:e=>{o({latitude:e.toString()});const l=Number(e),{longitude:n}=t,r=new window.google.maps.LatLng(l,n);a.setCenter(r)}}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter longitude","otter-blocks"),value:t.longitude,onChange:e=>{o({longitude:e.toString()});const{latitude:l}=t,n=Number(e),r=new window.google.maps.LatLng(l,n);a.setCenter(r)}})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Map Type","otter-blocks"),value:t.type,options:[{label:(0,l.__)("Road Map","otter-blocks"),value:"roadmap"},{label:(0,l.__)("Satellite View","otter-blocks"),value:"satellite"},{label:(0,l.__)("Hybrid","otter-blocks"),value:"hybrid"},{label:(0,l.__)("Terrain","otter-blocks"),value:"terrain"}],onChange:e=>{o({type:e}),a.setMapTypeId(window.google.maps.MapTypeId[e.toUpperCase()])}}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Map Zoom Level","otter-blocks"),value:t.zoom,onChange:e=>{o({zoom:e}),a.setZoom(e)},min:0,max:20}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.BaseControl,null,(0,l.__)("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.","otter-blocks")),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Map Type Control","otter-blocks"),checked:t.mapTypeControl,onChange:()=>{o({mapTypeControl:!t.mapTypeControl})}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Full Screen Control","otter-blocks"),checked:t.fullscreenControl,onChange:()=>{o({fullscreenControl:!t.fullscreenControl})}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Streen View Control","otter-blocks"),checked:t.streetViewControl,onChange:()=>{o({streetViewControl:!t.streetViewControl})}})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1,opened:!1!==d||void 0,onToggle:()=>{!1!==d&&m(!0)}},(0,i.createElement)(jt,{markers:t.markers,removeMarker:u,changeMarkerProp:b,addMarker:p,isPlaceAPIAvailable:r,initialOpen:d})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Global Settings","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Google Maps API Key","otter-blocks"),type:"text",placeholder:(0,l.__)("Google Maps API Key","otter-blocks"),value:g,className:"components-placeholder__input",onChange:k,help:(0,l.__)("Changing the API key effects all Google Map Embed blocks. You will have to refresh the page after changing your API keys.","otter-blocks")}),(0,i.createElement)(s.Button,{isSecondary:!0,type:"submit",onClick:v,isBusy:h},(0,l.__)("Save API Key","otter-blocks"))))},Kt=e=>{let{marker:t,isAdvanced:o,isPlaceAPIAvailable:a,addMarker:n,close:r}=e;(0,i.useEffect)((()=>{m(t.id),b(t.location),g(t.title),k(t.icon),y(t.description),f(t.latitude),C(t.longitude)}),[t]);const c=(0,i.useRef)(null),[d,m]=(0,i.useState)(t.id),[u,b]=(0,i.useState)(t.location),[p,g]=(0,i.useState)(t.title),[h,k]=(0,i.useState)(t.icon),[v,y]=(0,i.useState)(t.description),[_,f]=(0,i.useState)(t.latitude),[w,C]=(0,i.useState)(t.longitude);return(0,i.createElement)(s.Modal,{title:(0,l.__)("Add Marker","otter-blocks"),onRequestClose:r,shouldCloseOnClickOutside:!1},o&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,i.createElement)("input",{type:"text",id:`themeisle-location-search-${d}`,placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:u,className:"wp-block-themeisle-blocks-google-map-search",ref:c,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const t=new window.google.maps.places.SearchBox(c.current);t.addListener("places_changed",(()=>{const e=t.getPlaces();e&&0<e.length&&e.forEach((e=>{const t=e.formatted_address||e.name,o=e.geometry.location.lat(),l=e.geometry.location.lng();b(t),f(o),C(l)}))}))},onChange:e=>b(e.target.value),disabled:!a})),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:_,onChange:f}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:w,onChange:C})),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:p,onChange:g}),(0,i.createElement)(Wt,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:v,onChange:y}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Map Icon","otter-blocks"),value:h||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:(0,l.__)("Red","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:(0,l.__)("Blue","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:(0,l.__)("Yellow","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:(0,l.__)("Green","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:(0,l.__)("Orange","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:k}),(0,i.createElement)(s.ButtonGroup,null,(0,i.createElement)(s.Button,{isPrimary:!0,onClick:()=>n(u,p,h,v,_,w)},(0,l.__)("Add","otter-blocks")),(0,i.createElement)(s.Button,{isSecondary:!0,onClick:r},(0,l.__)("Cancel","otter-blocks"))))},Jt=e=>{let{attributes:t,initMap:o,displayMap:a,isMapLoaded:n,selectMarker:r,isSelectingMarker:c}=e;return(0,i.useEffect)((()=>{a&&o()}),[a]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{id:t.id,className:g()({"is-selecting-marker":c}),style:{height:t.height+"px"}}),n&&(0,i.createElement)(s.Button,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:(0,l.__)("Add Button","otter-blocks"),onClick:r},(0,i.createElement)("span",{className:"dashicons dashicons-sticky"})))},Qt={standard:[],silver:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],retro:[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],dark:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],night:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],aubergine:[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]};const{attributes:Yt}=At;const Xt={to:[{type:"block",blocks:["themeisle-blocks/leaflet-map"],transform:e=>{const t=(0,H.omit)(e,["style","mapTypeControl","fullscreenControl","streetViewControl"]);return(0,a.createBlock)("themeisle-blocks/leaflet-map",{...t})}}]};var eo=Xt;const{name:to}=At;(0,a.registerBlockType)(to,{...At,title:(0,l.__)("Google Maps","otter-blocks"),description:(0,l.__)("Display Google Maps on your website with Google Map block. Powered by Otter.","otter-blocks"),icon:r.mapIcon,keywords:["map","google","orbitfox"],transforms:eo,edit:e=>{let{attributes:t,setAttributes:o,clientId:a,isSelected:n,toggleSelection:r}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(a,Yt);return()=>e(t.id)}),[t.id]),(0,i.useEffect)((()=>{let e=!0;return(async()=>{await window.wp.api.loadPromise.then((()=>{m.current=new window.wp.api.models.Settings})),!1===Boolean(window.themeisleGutenberg.mapsAPI)?_||m.current.fetch().then((t=>{e&&(y(t.themeisle_google_map_block_api_key),f(!0),""!==t.themeisle_google_map_block_api_key&&(C(!0),Z(t.themeisle_google_map_block_api_key)))})):!_&&e&&(y(window.themeisleGutenberg.mapsAPI),f(!0),C(!0),Z(window.themeisleGutenberg.mapsAPI))})(),window.isMapLoaded=window.isMapLoaded||!1,window[`removeMarker_${a.substr(0,8)}`]=q,window.gm_authFailure=function(){C(!1),D(!0)},u.current=document.createElement("script"),u.current.type="text/javascript",u.current.async=!0,u.current.defer=!0,u.current.id="themeisle-google-map-api-loading",()=>{e=!1}}),[]),(0,i.useEffect)((()=>{!1!==w&&void 0!==window.google&&b.current.setOptions({mapTypeControl:!!n||t.mapTypeControl,zoomControl:!!n||t.zoomControl,fullscreenControl:!!n||t.fullscreenControl,streetViewControl:!!n||t.streetViewControl})}),[n]),(0,i.useEffect)((()=>{h.current=[...t.markers]}),[t.markers]);const d=(0,i.useRef)([]),m=(0,i.useRef)(null),u=(0,i.useRef)(null),b=(0,i.useRef)(null),p=(0,i.useRef)(null),h=(0,i.useRef)([...t.markers]),[k,y]=(0,i.useState)(""),[_,f]=(0,i.useState)(!1),[w,C]=(0,i.useState)(!1),[E,x]=(0,i.useState)(!1),[T,S]=(0,i.useState)(!1),[M,B]=(0,i.useState)(!0),[z,P]=(0,i.useState)(!1),[V,R]=(0,i.useState)(!1),[L,N]=(0,i.useState)(!1),[H,I]=(0,i.useState)(!1),[A,O]=(0,i.useState)(!1),[F,G]=(0,i.useState)({}),[$,D]=(0,i.useState)(!1),Z=e=>{window.isMapLoaded||(window.isMapLoaded=!0,u.current.onload=()=>{document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",P(!0)},u.current.src=`https://maps.googleapis.com/maps/api/js?key=${e}&libraries=places&cache=${Math.random()}`,document.head.appendChild(u.current)),document.getElementById("themeisle-google-map-api")&&P(!0)},W=(e,t,o,n)=>{const r=`<div class="wp-block-themeisle-blocks-map-overview"><h6 class="wp-block-themeisle-blocks-map-overview-title">${o}</h6><div class="wp-block-themeisle-blocks-map-overview-content">${n?`<p>${n}</p>`:""}<a class="wp-block-themeisle-blocks-map-overview-delete" onclick="removeMarker_${a.substr(0,8)}( '${t}' )">${(0,l.__)("Delete Marker","otter-blocks")}</a></div></div>`,i=new window.google.maps.InfoWindow({content:r});e.addListener("click",(()=>{p.current=i,i.open(b.current,e)})),window.google.maps.event.addListener(i,"domready",(()=>{R(t)})),window.google.maps.event.addListener(i,"closeclick",(()=>{R(!1)}))},U=e=>{e.forEach((e=>{const{latitude:t}=e,{longitude:o}=e,l=new window.google.maps.LatLng(t,o),a=new window.google.maps.Marker({position:l,map:b.current,title:e.title,draggable:!0,icon:e.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png"});window.google.maps.event.addListener(a,"dragend",(t=>{const o=t.latLng.lat(),l=t.latLng.lng();j(e.id,"latitude",o),j(e.id,"longitude",l)})),d.current.push(a),window.google.maps.event.addListener(a,"click",(()=>{p.current&&p.current.close()})),W(a,e.id,e.title,e.description)}))},j=(e,t,l)=>{const a=[...h.current];a.find((t=>t.id===e))[t]=l.toString(),K(),U(a),o({markers:a})},q=e=>{let t=[...h.current];t=t.filter((t=>t.id!==e)),o({markers:t}),K(),R(!1),0<t.length&&U(t)},K=()=>{for(let e=0;e<d.current.length;e++)d.current[e].setMap(null);d.current=[]},J=()=>{!1===Boolean(window.themeisleGutenberg.mapsAPI)&&(S(!0),new window.wp.api.models.Settings({themeisle_google_map_block_api_key:k}).save().then((e=>{let t=!1;""!==e.themeisle_google_map_block_api_key&&(t=!0),S(!1),C(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,Z(e.themeisle_google_map_block_api_key))})))},Q=e=>{o({style:e}),b.current.setOptions({styles:Qt[e]})},Y=(0,c.useBlockProps)({className:g()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":n})});return _&&w?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Dt,{label:(0,l.__)("Block Styles","otter-blocks"),value:t.style,options:[{label:(0,l.__)("Standard","otter-blocks"),value:"standard",image:window.themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:(0,l.__)("Silver","otter-blocks"),value:"silver",image:window.themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:(0,l.__)("Retro","otter-blocks"),value:"retro",image:window.themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:(0,l.__)("Dark","otter-blocks"),value:"dark",image:window.themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:(0,l.__)("Night","otter-blocks"),value:"night",image:window.themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:(0,l.__)("Aubergine","otter-blocks"),value:"aubergine",image:window.themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:Q}),(0,i.createElement)(qt,{attributes:t,setAttributes:o,map:b.current,changeStyle:Q,isPlaceAPIAvailable:M,isMarkerOpen:V,setMarkerOpen:R,removeMarker:q,changeMarkerProp:j,addMarkerManual:()=>{const e=(0,Ot.Z)(),t=(0,l.__)("Custom Marker","otter-blocks"),o=b.current.getCenter(),a=o.lat(),n=o.lng();I(!0),O(!0),G({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:n})},api:k,isSaving:T,changeAPI:y,saveAPIKey:J}),H&&(0,i.createElement)(Kt,{marker:F,isAdvanced:A,isPlaceAPIAvailable:M,close:()=>I(!1),addMarker:(e,l,a,n,r,i)=>{const c=new window.google.maps.LatLng(r,i),s=(0,Ot.Z)(),m=new window.google.maps.Marker({position:c,map:b.current,title:l,draggable:!0,icon:a});window.google.maps.event.addListener(m,"dragend",(e=>{const t=e.latLng.lat(),o=e.latLng.lng();j(s,"latitude",t),j(s,"longitude",o)})),d.current.push(m);const u=[...t.markers],g={id:s,location:e,title:l,icon:a,description:n,latitude:r,longitude:i};u.push(g),o({markers:u}),window.google.maps.event.addListener(m,"click",(()=>{p.current&&p.current.close()})),W(m,g.id,l,n),I(!1),N(!1)}}),(0,i.createElement)("div",Y,(0,i.createElement)(s.ResizableBox,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{r(!1)},onResizeStop:(e,l,a,n)=>{o({height:parseInt(t.height+n.height,10)}),r(!0)}},(0,i.createElement)(Jt,{attributes:t,initMap:()=>{var e,l,a;const n=null!==(e=null===(l=(0,v.getEditorIframe)())||void 0===l||null===(a=l.contentWindow)||void 0===a?void 0:a.document)&&void 0!==e?e:document;if(b.current=new window.google.maps.Map(n.getElementById(t.id),{center:{lat:Number(t.latitude)||41.4036299,lng:Number(t.longitude)||2.1743558000000576},gestureHandling:"cooperative",zoom:t.zoom,mapTypeId:t.type,styles:Qt[t.style]}),t.location&&void 0===t.latitude&&void 0===t.longitude){const e={query:t.location,fields:["name","geometry"]};new window.google.maps.places.PlacesService(b.current).findPlaceFromQuery(e,((e,t)=>{t===window.google.maps.places.PlacesServiceStatus.OK&&0<e.length&&b.current.setCenter(e[0].geometry.location)}))}window.google.maps.event.addListenerOnce(b.current,"idle",(()=>{x(!0)})),b.current.addListener("zoom_changed",(()=>{const e=b.current.getZoom();o({zoom:e})})),b.current.addListener("maptypeid_changed",(()=>{const e=b.current.getMapTypeId();o({type:e})})),b.current.addListener("bounds_changed",(()=>{const e=b.current.getCenter(),t=e.lat(),l=e.lng();o({latitude:t.toString(),longitude:l.toString()})})),0<t.markers.length&&U(t.markers);const r={query:t.location,fields:["name","geometry"]};new window.google.maps.places.PlacesService(b.current).findPlaceFromQuery(r,((e,t)=>{"REQUEST_DENIED"===t&&B(!1)}))},displayMap:z,isMapLoaded:E,selectMarker:()=>{N(!L),L?window.google.maps.event.clearListeners(b.current,"click"):b.current.addListener("click",(e=>{window.google.maps.event.clearListeners(b.current,"click");const t=(0,Ot.Z)(),o=(0,l.__)("Custom Marker","otter-blocks"),a=e.latLng.lat(),n=e.latLng.lng();I(!0),O(!1),G({id:t,location:"",title:o,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:n})}))},isSelectingMarker:L})))):(0,i.createElement)("div",Y,(0,i.createElement)(Ft,{api:k,error:$,isAPILoaded:_,isAPISaved:w,isSaving:T,changeAPI:e=>{y(e),D(!1)},saveAPIKey:J}))},save:()=>null});var oo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/icon-list","title":"Icon List","category":"themeisle-blocks","description":"Display an icon list in a beautiful layout. Powered by Otter.","keywords":["icon","list","items"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"defaultLibrary":{"type":"string","default":"fontawesome"},"defaultPrefix":{"type":"string","default":"fas"},"defaultIcon":{"type":"string","default":"angle-right"},"defaultContentColor":{"type":"string"},"defaultIconColor":{"type":"string"},"defaultSize":{"type":"number","default":20},"gap":{"type":"number","default":5},"horizontalAlign":{"type":"string"}},"styles":[{"name":"vertical","label":"Vertical","isDefault":true},{"name":"horizontal","label":"Horizontal"}],"editorStyle":"otter-icon-list-editor","style":"otter-icon-list-style"}'),lo=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(c.AlignmentToolbar,{value:{"flex-start":"left",center:"center","flex-end":"right"}[t.horizontalAlign],onChange:e=>{switch(e){case"left":o({horizontalAlign:"flex-start"});break;case"center":o({horizontalAlign:"center"});break;case"right":o({horizontalAlign:"flex-end"});break;default:o({horizontalAlign:void 0})}}}))};const ao=(0,i.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var no=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(i.Suspense,{fallback:(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null))},(0,i.createElement)(ao,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.defaultLibrary,prefix:t.defaultPrefix,icon:t.defaultIcon,changeLibrary:e=>{o({defaultLibrary:e,defaultIcon:void 0,defaultPrefix:"fas"})},onChange:e=>{if("image"===t.defaultLibrary&&null!=e&&e.url)return o({defaultIcon:e.url});o("object"==typeof e?{defaultIcon:e.name,defaultPrefix:e.prefix}:{defaultIcon:e})},allowImage:!0})),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Font Size","otter-blocks"),help:(0,l.__)("The size of the font size of the content and icon.","otter-blocks"),value:t.defaultSize,onChange:e=>{o({defaultSize:e})},step:.1,min:0,max:60,allowReset:!0}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Gap","otter-blocks"),help:(0,l.__)("The distance between the items.","otter-blocks"),value:t.gap,onChange:e=>{o({gap:e})},step:.1,min:0,max:60,allowReset:!0}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Content Color","otter-blocks"),colorValue:t.defaultContentColor,onColorChange:e=>{o({defaultContentColor:e})}}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Icon Color","otter-blocks"),colorValue:t.defaultIconColor,onColorChange:e=>{o({defaultIconColor:e})}})))};const{attributes:ro}=oo;var io=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/icon-list-item","title":"Icon List Item","category":"themeisle-blocks","description":"Display an item for the icon list. Powered by Otter.","keywords":["icon","list","items"],"parent":["themeisle-blocks/icon-list"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"content":{"type":"string"},"contentColor":{"type":"string"},"iconColor":{"type":"string"},"library":{"type":"string"},"iconPrefix":{"type":"string"},"icon":{"type":"string"}}}');const co=(0,i.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var so=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(i.Suspense,{fallback:(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null))},(0,i.createElement)(co,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.library,prefix:t.iconPrefix,icon:t.icon,changeLibrary:e=>{o({library:e,icon:void 0,iconPrefix:"fab"})},onChange:e=>{if("image"===t.library&&null!=e&&e.url)return o({icon:e.url});o("object"==typeof e?{icon:e.name,iconPrefix:e.prefix}:{icon:e})},allowImage:!0})),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Content Color","otter-blocks"),colorValue:t.contentColor,onColorChange:e=>{o({contentColor:e})}}),"image"!==t.library&&(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Icon Color","otter-blocks"),colorValue:t.iconColor,onColorChange:e=>{o({iconColor:e})}})))};const{attributes:mo}=io;const{name:uo}=io;(0,a.registerBlockType)(uo,{...io,title:(0,l.__)("Icon List Item","otter-blocks"),description:(0,l.__)("Display an item for the icon list. Powered by Otter.","otter-blocks"),icon:r.faIcon,keywords:["item","icon","list"],merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:e=>{var t,o;let{attributes:n,setAttributes:r,name:s,clientId:d,onReplace:m,onRemove:u,mergeBlocks:b}=e;const[p,h]=(0,i.useState)(!1),{hasParent:k,parentAttributes:y}=(0,A.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),l=t(o(d));return{hasParent:!!l,parentAttributes:l?l.attributes:{}}}),[]);(0,i.useEffect)((()=>{const e=(0,v.blockInit)(d,mo);return()=>e(n.id)}),[n.id]),(0,i.useEffect)((()=>{r({library:n.library||y.defaultLibrary,icon:n.icon||y.defaultIcon,iconPrefix:n.iconPrefix||y.defaultPrefix})}),[k,y,n]),(0,i.useEffect)((()=>{if("image"===n.library)try{const e=new URL(n.icon);"http:"!==(null==e?void 0:e.protocol)&&"https:"!==(null==e?void 0:e.protocol)||h(!0)}catch(e){h(!1)}}),[n.library,n.icon]);const _=ve.ZP.icons[n.icon],f=`${n.iconPrefix||y.defaultPrefix} fa-${n.icon||y.defaultIcon}`,w={"--content-color":null!==(t=n.contentColor)&&void 0!==t?t:y.defaultContentColor,"--icon-color":null!==(o=n.iconColor)&&void 0!==o?o:y.defaultIconColor},C=(0,c.useBlockProps)({style:w});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(so,{attributes:n,setAttributes:r}),(0,i.createElement)("div",C,"image"===n.library&&p?(0,i.createElement)("img",{src:n.icon}):"themeisle-icons"===n.library&&n.icon&&void 0!==_?(0,i.createElement)(_,{className:g()({"wp-block-themeisle-blocks-icon-list-item-icon":!n.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":n.iconColor})}):(0,i.createElement)("i",{className:g()(f,{"wp-block-themeisle-blocks-icon-list-item-icon":!n.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":n.iconColor})}),(0,i.createElement)(c.RichText,{identifier:"content",tagName:"p",placeholder:(0,l.__)("Write your content…","otter-blocks"),className:g()({"wp-block-themeisle-blocks-icon-list-item-content":!n.contentColor},{"wp-block-themeisle-blocks-icon-list-item-content-custom":n.contentColor}),value:n.content,onChange:e=>{r({content:e})},onSplit:e=>e?(0,a.createBlock)(s,{...n,content:e}):(0,a.createBlock)(s),onMerge:b,onReplace:m,onRemove:u})))},save:e=>{let{attributes:t}=e;const o=`${t.iconPrefix} fa-${t.icon}`,l=ve.ZP.icons[t.icon],a=c.useBlockProps.save({id:t.id});return(0,i.createElement)("div",a,"image"===t.library&&t.icon?(0,i.createElement)("img",{src:t.icon}):"themeisle-icons"===t.library&&t.icon?(0,i.createElement)(l,{className:g()({"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}):(0,i.createElement)("i",{className:g()(o,{"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}),(0,i.createElement)(c.RichText.Content,{tagName:"p",className:g()({"wp-block-themeisle-blocks-icon-list-item-content":!t.contentColor},{"wp-block-themeisle-blocks-icon-list-item-content-custom":t.contentColor}),value:t.content}))}});const{name:bo}=oo;(0,a.registerBlockType)(bo,{...oo,title:(0,l.__)("Icon List","otter-blocks"),description:(0,l.__)("Display an icon list in a beautiful layout. Powered by Otter.","otter-blocks"),icon:r.faIcon,keywords:["icon","list","items"],styles:[{name:"vertical",label:(0,l.__)("Vertical","otter-blocks"),isDefault:!0},{name:"horizontal",label:(0,l.__)("Horizontal","otter-blocks")}],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(l,ro);return()=>e(t.id)}),[t.id]);const a={"--horizontal-align":t.horizontalAlign,"--gap":t.gap&&`${t.gap}px`,"--font-size":t.defaultSize&&`${t.defaultSize}px`},n=(0,c.useBlockProps)({id:t.id,style:a});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(lo,{attributes:t,setAttributes:o}),(0,i.createElement)(no,{attributes:t,setAttributes:o}),(0,i.createElement)("div",n,(0,i.createElement)(c.InnerBlocks,{allowedBlocks:["themeisle-blocks/icon-list-item"],__experimentalMoverDirection:"vertical",orientation:"vertical",template:[["themeisle-blocks/icon-list-item"]],renderAppender:c.InnerBlocks.DefaultAppender})))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id});return(0,i.createElement)("div",o,(0,i.createElement)(c.InnerBlocks.Content,null))},example:{innerBlocks:[{name:"themeisle-blocks/icon-list-item",attributes:{content:(0,l.__)("List Item 1","otter-blocks")}},{name:"themeisle-blocks/icon-list-item",attributes:{content:(0,l.__)("List Item 2","otter-blocks")}},{name:"themeisle-blocks/icon-list-item",attributes:{content:(0,l.__)("List Item 3","otter-blocks")}}]}});var po=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/leaflet-map","title":"Maps","category":"themeisle-blocks","description":"Display Open Street Maps on your website with Maps block. Powered by Otter.","keywords":["map","opeenstreetmap","location"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"location":{"type":"string","default":"La Sagrada Familia, Barcelona, Spain"},"latitude":{"type":"string","default":"41.4034789"},"longitude":{"type":"string","default":"2.174410333009705"},"bbox":{"type":"string","default":"2.1207046508789067%2C41.34807736149302%2C2.2288513183593754%2C41.45816618938139"},"zoom":{"type":"number"},"height":{"type":"number","default":400},"markers":{"type":"array","default":[]},"zoomControl":{"type":"boolean","default":true},"draggable":{"type":"boolean","default":true}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-leaflet-map-editor","style":"otter-leaflet-map-style","editorScript":"leaflet-gesture-handling","script":"otter-leaflet"}');async function go(e){const t=await async function(e){if("string"!=typeof e)throw(0,l.__)("Location must be a string","otter-blocks");const t="https://nominatim.openstreetmap.org/search?q="+e.split(" ").map((e=>encodeURIComponent(e))).join("+")+"&format=geojson",o=await fetch(t);return o.ok&&200===o.status?o.json():console.warn((0,l.__)("An error has occured: ","otter-blocks")+o.status)}(e);if(null!=t&&t.features.length){var o;const e=t.features[0];if(null!=e&&null!==(o=e.geometry)&&void 0!==o&&o.coordinates.length)return{longitude:e.geometry.coordinates[0],latitude:e.geometry.coordinates[1]}}return null}const ho=e=>{let{value:t,onChange:o}=e;const a=(0,I.useInstanceId)(ho);(0,i.useEffect)((()=>{wp.oldEditor.initialize(r.current.id,{tinymce:{classic_block_editor:!0,plugins:"lists,media,paste,tabfocus,wordpress,wpautoresize,wpeditimage,wpgallery,wplink,wpdialogs,wptextpattern,wpview",toolbar1:"formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker,wp_add_media"}});const e=window.tinymce.get(r.current.id);return e.on("change",(()=>o(e.getContent()))),()=>wp.oldEditor.remove(r.current.id)}),[]);const n=`inspector-textarea-control-${a}`,r=(0,i.useRef)(null);return(0,i.createElement)(s.BaseControl,{id:n,label:(0,l.__)("Description","otter-blocks")},(0,i.createElement)("textarea",{id:n,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:r}))};var ko=ho,vo=e=>{let{marker:t,isOpen:o,openMarker:a,dispatch:n}=e;const[r,c]=(0,i.useState)(t.location),[d,m]=(0,i.useState)(t.longitude),[u,b]=(0,i.useState)(t.latitude),[p,h]=(0,i.useState)(t.title),[k,v]=(0,i.useState)(t.description),[y,_]=(0,i.useState)({target:"",reason:""});return(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker"},(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-title-area"},(0,i.createElement)(s.Button,{className:"wp-block-themeisle-blocks-leaflet-map-marker-title",onClick:()=>a()},t.title||(0,l.__)("Custom Marker","otter-blocks")),(0,i.createElement)(s.Button,{icon:"no-alt",label:(0,l.__)("Remove Marker","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-remove",onClick:()=>n({type:wo.REMOVE,ids:[t.id]})})),o&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-control-area"},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:g()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===y.target}),value:r,onChange:e=>{c(e)},help:(0,l.__)("Press Enter to search the location","otter-blocks"),onKeyDown:e=>((e,o)=>{e.key===o&&(async()=>{const e=await go(r);e?(n({type:wo.UPDATE,ids:[t.id],updatedProps:{location:r,latitude:e.latitude,longitude:e.longitude}}),b(e.latitude),m(e.longitude),"LOCATION"===y.target&&_({})):_({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:u,onChange:e=>{b(e),n({type:wo.UPDATE,ids:[t.id],updatedProps:{latitude:e}})}}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:d,onChange:e=>{m(e),n({type:wo.UPDATE,ids:[t.id],updatedProps:{longitude:e}})}}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:p,onChange:e=>{h(e),n({type:wo.UPDATE,ids:[t.id],updatedProps:{title:e}})}}),(0,i.createElement)(ko,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>{v(k),n({type:wo.UPDATE,ids:[t.id],updatedProps:{description:e}})}})))},yo=e=>{let{markers:t,dispatch:o,markersInteraction:a}=e;const{openMarker:n,setOpenMarker:r}=a;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-group"},t.map((e=>(0,i.createElement)(vo,{key:e.id,marker:e,isOpen:n===e.id,openMarker:()=>r(a.openMarker!==e.id?e.id:null),dispatch:o})))),(0,i.createElement)(s.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-add",onClick:()=>{o({type:wo.ADD,marker:{id:(0,Ot.Z)()},dispatch:o})}},(0,l.__)("Add Marker","otter-blocks")))},_o=e=>{let{attributes:t,setAttributes:o,dispatch:a,markersInteraction:n}=e;const[r,d]=(0,i.useState)(t.location),[m,u]=(0,i.useState)({target:"",reason:""});return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:g()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===m.target}),placeholder:(0,l.__)("Enter location. E.g: La Sagrada Familia, Barcelona, Spain","otter-blocks"),help:(0,l.__)("Press Enter to search the location","otter-blocks"),value:r,onChange:d,onKeyDown:e=>((e,t)=>{e.key===t&&(async()=>{o({location:r});const e=await go(r);e?(o({latitude:e.latitude.toString(),longitude:e.longitude.toString()}),"LOCATION"===m.target&&u({})):u({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter latitude…","otter-blocks"),value:t.latitude,onChange:e=>{o({latitude:e.toString()})}}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter longitude","otter-blocks"),value:t.longitude,onChange:e=>{o({longitude:e.toString()})}})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Map Zoom Level","otter-blocks"),value:t.zoom,onChange:e=>{o({zoom:e})},min:0,max:20}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.BaseControl,null,(0,l.__)("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.","otter-blocks")),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1},(0,i.createElement)(yo,{markers:t.markers,dispatch:a,markersInteraction:n})))};const{attributes:fo}=po,wo={ADD:"ADD",ADD_MANUAL:"ADD_MANUAL",REMOVE:"REMOVE",UPDATE:"UPDATE",INIT:"INIT"};const Co={to:[{type:"block",blocks:["themeisle-blocks/google-map"],transform:e=>{const t=e;return(0,a.createBlock)("themeisle-blocks/google-map",{...t})}}]};var Eo=Co;const{name:xo}=po;(0,a.registerBlockType)(xo,{...po,title:(0,l.__)("Maps","otter-blocks"),description:(0,l.__)("Display Open Street Maps on your website with Maps block. Powered by Otter.","otter-blocks"),icon:r.mapIcon,keywords:["map","opeenstreetmap","location"],transforms:Eo,edit:e=>{let{clientId:t,attributes:o,setAttributes:a,isSelected:n,toggleSelection:r}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(t,fo);return()=>e(o.id)}),[o.id]);const d=(0,i.useRef)(null),[m,u]=(0,i.useState)(null),[b,p]=(0,i.useState)(!1),[h,k]=(0,i.useState)(null),y=(e,t)=>{if(window.L&&m&&t&&e){var o,a,n,r,i;null!==(o=e.id)&&void 0!==o||(e.id=(0,Ot.Z)()),null!==(a=e.latitude)&&void 0!==a||(e.latitude=m.getCenter().lat),null!==(n=e.longitude)&&void 0!==n||(e.longitude=m.getCenter().lng),null!==(r=e.title)&&void 0!==r||(e.title=(0,l.__)("Add a title","otter-blocks")),null!==(i=e.description)&&void 0!==i||(e.description="");const c=window.L.marker([e.latitude,e.longitude]||0,{draggable:!0});return c.on("movestart",(()=>{c.closeTooltip(),c.closePopup()})),c.on("moveend",(()=>{const o=c.getLatLng();t({type:wo.UPDATE,ids:[e.id],updatedProps:{latitude:o.lat,longitude:o.lng}})})),c.on("click",(()=>{k(e.id)})),c.markerProps=e,c}return null},[_,f]=(0,i.useReducer)(((e,t)=>{switch(t.type){case wo.ADD:const o=y(t.marker,t.dispatch);return[...e,o];case wo.ADD_MANUAL:if(b){const o=y(t.marker,t.dispatch);return[...e,o]}return e;case wo.REMOVE:return e.filter((e=>{let{markerProps:o}=e;return t.ids.includes(o.id)})).forEach((e=>{m.hasLayer(e)&&m.removeLayer(e)})),e.filter((e=>{let{markerProps:o}=e;return!t.ids.includes(o.id)}));case wo.INIT:const a=t.markers.map((e=>y(e,t.dispatch)));return[...e,...a];case wo.UPDATE:return e.map((e=>{const o=e.markerProps;return t.ids.includes(o.id)&&(e.markerProps=(0,H.merge)(e.markerProps,t.updatedProps)),e}));default:console.warn((0,l.__)("The action for the leaflet block do not have a defined action in marker's reducer: ","otter-blocks")+t.type)}return e}),[],(()=>[])),w=()=>{if(!d.current&&!window.L)return;let{L:e}=window;const t=(0,v.getEditorIframe)();var n;if(Boolean(t)&&(e=null===(n=t.contentWindow)||void 0===n?void 0:n.L),!e)return;d.current.innerHTML="";const r=e.map(d.current,{gestureHandling:!0,gestureHandlingOptions:{text:{touch:(0,l.__)("Use two fingers to move the map","otter-blocks"),scroll:(0,l.__)("Use ctrl + scroll to zoom the map","otter-blocks"),scrollMac:(0,l.__)("Use ⌘ + scroll to zoom the map","otter-blocks")}}});e.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:["a","b","c"]}).addTo(r),r.on("zoom",(()=>{a({zoom:r.getZoom()})})),r.on("moveend",(()=>{const e=r.getCenter();a({latitude:e.lat.toString(),longitude:e.lng.toString()})})),r.on("click",(e=>{f({type:wo.ADD_MANUAL,marker:{latitude:e.latlng.lat,longitude:e.latlng.lng},dispatch:f}),p(!1)})),e.Control.AddMarker=e.Control.extend({onAdd:()=>{const t=e.DomUtil.create("button","wp-block-themeisle-blocks-leaflet-map-marker-button"),o=e.DomUtil.create("span","dashicons dashicons-sticky",t);return e.DomEvent.on(t,"click",(t=>{e.DomEvent.stopPropagation(t),p(!b)})),t.title=(0,l.__)("Add marker on the map with a click","otter-blocks"),t.appendChild(o),t},onRemove:()=>{}}),e.control.addmarker=t=>new e.Control.AddMarker(t),e.control.addmarker({position:"bottomleft"}).addTo(r),u(r),f({type:wo.INIT,markers:o.markers,dispatch:f})};(0,i.useEffect)((()=>{(0,v.getEditorIframe)()?((0,v.copyScriptAssetToIframe)("#leaflet-js",(()=>{w()})),(0,v.copyScriptAssetToIframe)("#leaflet-gesture-handling-js",(()=>{}))):w()}),[]),(0,i.useEffect)((()=>{o.height&&m&&m.invalidateSize(!0)}),[o.height,m]),(0,i.useEffect)((()=>{o.latitude&&o.longitude&&m&&m.setView([o.latitude,o.longitude],o.zoom||15)}),[o.latitude,o.longitude,o.zoom,m]),(0,i.useEffect)((()=>{var e;null===(e=d.current)||void 0===e||e.classList.toggle("is-selecting-location",b)}),[b]),(0,i.useEffect)((()=>{o.latitude&&o.longitude&&m&&a({bbox:m.getBounds().toBBoxString()})}),[o.latitude,o.longitude,m]),(0,i.useEffect)((()=>{_&&(_.forEach((e=>{m.hasLayer(e)||m.addLayer(e);const{markerProps:t}=e;e.setLatLng([t.latitude,t.longitude]),e.closeTooltip(),e.unbindTooltip(),e.bindTooltip(t.title,{direction:"auto"}),e.closePopup(),e.unbindPopup(),e.bindPopup(((e,t)=>{const o=document.createElement("div"),a=document.createElement("h6"),n=document.createElement("div"),r=document.createElement("p"),i=document.createElement("button");return a.innerHTML=e.title,r.innerHTML=e.description,i.onclick=()=>t({type:wo.REMOVE,ids:[e.id]}),i.innerHTML=(0,l.__)("Delete Marker","otter-blocks"),o.classList.add("wp-block-themeisle-blocks-map-overview"),n.classList.add("wp-block-themeisle-blocks-map-overview-content"),a.classList.add("wp-block-themeisle-blocks-map-overview-title"),i.classList.add("wp-block-themeisle-blocks-map-overview-delete"),o.appendChild(a),o.appendChild(n),o.appendChild(i),n.appendChild(r),o})(t,f))})),o.markers.length!==_.length&&m&&a({markers:_.map((e=>{let{markerProps:t}=e;return t}))}))}),[_,m,o.markers]);const C=(0,c.useBlockProps)();return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(_o,{attributes:o,setAttributes:a,dispatch:f,markersInteraction:{openMarker:h,setOpenMarker:k}}),(0,i.createElement)("div",C,(0,i.createElement)(s.ResizableBox,{size:{height:o.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{r(!1)},onResizeStop:(e,t,l,n)=>{a({height:parseInt(o.height+n.height,10)}),r(!0)},className:g()("wp-block-themeisle-blocks-leaflet-map-resizer",{"is-focused":n})},(0,i.createElement)("div",{id:o.id,ref:d,style:{width:"100%",height:o.height||400}}))))},save:()=>null,example:{attributes:{}}});var To=o(2553),So=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/lottie","title":"Lottie Animation","category":"themeisle-blocks","description":"Add Lottie animations to your WordPress. Powered by Otter.","keywords":["media","lottie","animation"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"file":{"type":"object"},"trigger":{"type":"string","default":"none"},"loop":{"type":"boolean","default":false},"count":{"type":"number","default":0},"speed":{"type":"number","default":1},"direction":{"type":"boolean","default":false},"width":{"type":["string","number"]},"ariaLabel":{"type":"string","default":""},"backgroundColor":{"type":"string"},"backgroundGradient":{"type":"string"}},"supports":{"align":["left","center","right"]},"editorStyle":"otter-lottie-editor","editorScript":"lottie-player","script":"otter-lottie"}'),Mo=e=>{var t;let{className:o,file:a,onChange:n,attributes:r}=e;const[d,m]=(0,i.useState)((null===(t=r.file)||void 0===t?void 0:t.url)||null);return Boolean(window.themeisleGutenberg.isWPVIP)?(0,i.createElement)(s.Placeholder,{label:(0,l.__)("Lottie","otter-blocks"),instructions:(0,l.__)("Add Lottie animations and files to your website. You need to use a .json file.","otter-blocks"),icon:(0,i.createElement)(c.BlockIcon,{icon:To.Z}),className:o},(0,i.createElement)("form",{onSubmit:e=>(e&&e.preventDefault(),n(d))},(0,i.createElement)("input",{type:"url",value:d||"",className:"components-placeholder__input","aria-label":(0,l.__)("Lottie","otter-blocks"),placeholder:(0,l.__)("Enter URL to embed here…","otter-blocks"),onChange:e=>m(e.target.value)}),(0,i.createElement)(s.Button,{isPrimary:!0,disabled:!d,type:"submit"},(0,l.__)("Embed","otter-blocks")))):(0,i.createElement)(c.MediaPlaceholder,{labels:{title:(0,l.__)("Lottie","otter-blocks"),instructions:(0,l.__)("Add Lottie animations and files to your website.","otter-blocks")},icon:(0,i.createElement)(c.BlockIcon,{icon:To.Z}),accept:["application/json"],allowedTypes:["application/json"],value:{...a},onSelectURL:n,onSelect:n})},Bo=e=>{let{attributes:t,setAttributes:o,playerRef:a}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks"),initialOpen:!0},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Trigger","otter-blocks"),help:(0,l.__)("Animation trigger. This will only work on the front-end.","otter-blocks"),value:t.trigger,options:[{label:(0,l.__)("Autoplay","otter-blocks"),value:"none"},{label:(0,l.__)("Scroll","otter-blocks"),value:"scroll"},{label:(0,l.__)("Hover","otter-blocks"),value:"hover"},{label:(0,l.__)("Click","otter-blocks"),value:"click"}],onChange:e=>{o({trigger:e})}}),"scroll"!==t.trigger&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Loop","otter-blocks"),help:(0,l.__)("Whether to loop animation.","otter-blocks"),checked:t.loop,onChange:e=>{o({loop:e}),a.current.setLooping(e),t.direction&&a.current.seek("100%"),a.current.play()}}),t.loop&&(0,i.createElement)(s.TextControl,{label:(0,l.__)("Numbers of loops","otter-blocks"),help:(0,l.__)("Number of times to loop animation.","otter-blocks"),type:"number",value:t.count,onChange:e=>{o({count:Number(e)}),a.current.load(t.file.url)}}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Speed","otter-blocks"),help:(0,l.__)("Animation speed.","otter-blocks"),value:t.speed,onChange:e=>{o({speed:Number(e)}),a.current.setSpeed(e)},step:.1,min:.1,max:5}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Reverse","otter-blocks"),help:(0,l.__)("Direction of animation.","otter-blocks"),checked:t.direction,onChange:e=>{o({direction:e}),a.current.setDirection(e?-1:1),a.current.seek(e?"100%":0)}})),(0,i.createElement)(c.__experimentalUnitControl,{onChange:e=>{const t=parseInt(e.slice(0,-1)),l=e.slice(-1);100<t&&"%"===l&&(e="100%"),o({width:e})},label:(0,l.__)("Width","otter-blocks"),isUnitSelectTabbable:!0,isResetValueOnUnitChange:!0,__unstableInputWidth:"50%",value:Number.isInteger(t.width)?`${t.width}px`:t.width,units:[{value:"%",label:"%",default:100},{value:"px",label:"px",default:300}]})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Background","otter-blocks"),initialOpen:!1},(0,i.createElement)(c.__experimentalColorGradientControl,{colorValue:t.backgroundColor,gradientValue:t.backgroundGradient,onColorChange:e=>o({backgroundColor:e}),onGradientChange:e=>o({backgroundGradient:e}),className:"otter-lottie-background-control"}))),(0,i.createElement)(c.InspectorAdvancedControls,null,(0,i.createElement)(s.TextControl,{label:(0,l.__)("Aria Label","otter-blocks"),help:(0,l.__)("Describe the purpose of this animation on the page.","otter-blocks"),value:t.ariaLabel,onChange:e=>o({ariaLabel:e})})))},zo=e=>{let{isEditing:t,setEditing:o}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(s.ToolbarGroup,null,(0,i.createElement)(s.Tooltip,{text:t?(0,l.__)("Save","otter-blocks"):(0,l.__)("Edit","otter-blocks")},(0,i.createElement)(s.Button,{onClick:()=>o(!t)},(0,i.createElement)(s.Dashicon,{icon:t?"yes":"edit"})))))},Po=e=>{let{attributes:t,playerRef:o}=e;(0,i.useEffect)((()=>{const e=(0,v.getEditorIframe)();Boolean(e)?(0,v.copyScriptAssetToIframe)("#lottie-player-js",(()=>{!(0,H.isEmpty)(t.file)&&t.loop&&null!==o.current&&o.current.addEventListener("complete",l)})):!(0,H.isEmpty)(t.file)&&t.loop&&null!==o.current&&o.current.addEventListener("complete",l)}),[]);const l=()=>{o.current&&(o.current.setLooping(t.loop),o.current.play(),o.current.removeEventListener("complete",l))};return(0,i.createElement)("lottie-player",(0,N.Z)({id:t.id,ref:o,src:t.file.url,autoplay:!0,count:t.count,speed:t.speed,background:t.backgroundColor||t.backgroundGradient,direction:t.direction?-1:1,style:{width:!(!t.width||"%"===t.width.toString().slice(-1))&&`${t.width}px`,maxWidth:!(!t.width||"%"!==t.width.toString().slice(-1))&&`${t.width}`,height:"auto"},mode:"normal"},t.ariaLabel&&{"aria-label":t.ariaLabel}))};const{attributes:Vo}=So;const{name:Ro}=So;(0,a.registerBlockType)(Ro,{...So,title:(0,l.__)("Lottie Animation","otter-blocks"),description:(0,l.__)("Add Lottie animations to your WordPress. Powered by Otter.","otter-blocks"),icon:To.Z,keywords:["media","lottie","animation"],edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a}=e;const n=(0,i.useRef)(null),[r,s]=(0,i.useState)(!Boolean(t.file));(0,i.useEffect)((()=>{const e=(0,v.blockInit)(a,Vo);return()=>e(t.id)}),[t.id]),(0,i.useEffect)((()=>{var e,o,a,r,i,c;l?(null===(e=n.current)||void 0===e||null===(o=e.play)||void 0===o||o.call(e),t.direction&&(null===(a=n.current)||void 0===a||null===(r=a.seek)||void 0===r||r.call(a,"100%"))):null===(i=n.current)||void 0===i||null===(c=i.stop)||void 0===c||c.call(i)}),[l]);const d=(0,c.useBlockProps)();return(0,i.createElement)(i.Fragment,null,(!(0,H.isEmpty)(t.file)&&r||!r)&&(0,i.createElement)(zo,{isEditing:r,setEditing:s}),!((0,H.isEmpty)(t.file)||r)&&(0,i.createElement)(Bo,{attributes:t,setAttributes:o,playerRef:n}),(0,i.createElement)("div",d,((0,H.isEmpty)(t.file)||r)&&(0,i.createElement)(Mo,{value:t.file,onChange:e=>{if(""===e||null===e)return;const t=(0,H.pick)(e,["id","url"]);(0,H.isEmpty)(t)&&(t.url=e),o({file:{...t}}),s(!1)},attributes:t}),!((0,H.isEmpty)(t.file)||r)&&(0,i.createElement)(Po,{attributes:t,isSelected:l,playerRef:n})))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,src:t.file?t.file.url:"",width:t.width});return"scroll"===t.trigger?(0,i.createElement)("lottie-player",(0,N.Z)({trigger:t.trigger,background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o)):(0,i.createElement)("lottie-player",(0,N.Z)({autoplay:!0,loop:!0,count:t.direction?-1*t.count:t.count,speed:t.speed,direction:t.direction?-1:1,trigger:t.trigger,"data-loop":t.loop,mode:"normal",background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o))},example:{viewportWidth:1200,attributes:{id:"wp-block-themeisle-blocks-lottie-2",file:{url:"https://assets8.lottiefiles.com/packages/lf20_kd5rzej5.json"}}}});var Lo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/plugin-cards","title":"Plugin Card","category":"themeisle-blocks","description":"Plugin Card block lets you display plugins data in your blog posts. Powered by Otter.","keywords":["plugin","card","orbitfox"],"textdomain":"otter-blocks","attributes":{"slug":{"type":"string"}},"supports":{"html":false},"editorStyle":"otter-plugin-card-editor","style":"otter-plugin-card-style"}'),No=o(4932),Ho=e=>{let{setAttributes:t,hasError:o,setError:a,className:n}=e;const r=(0,i.useRef)(null);let c=!1;const d=[],[m,u]=(0,i.useState)(!1),[b,p]=(0,i.useState)(""),[g,h]=(0,i.useState)({}),[k,v]=(0,i.useState)(null);(0,i.useEffect)((()=>{let e=null;return null===k||c||(c=!0,(0,No.Z)(d[k],r.current,{onlyScrollIfNeeded:!0}),d[k].focus(),e=setTimeout((()=>{c=!1}),100)),()=>{clearTimeout(e)}}),[k]);const y=e=>{if(Object.keys(g).length){e.stopPropagation(),e.preventDefault();const t=k?k-1:Object.keys(g).length-1;v(t)}},_=e=>{if(Object.keys(g).length){e.stopPropagation(),e.preventDefault();const t=null===k||k===Object.keys(g).length-1?0:k+1;v(t)}},f=e=>{t({slug:e.slug}),h({})};return(0,i.createElement)(s.Placeholder,{icon:"admin-plugins",label:(0,l.__)("Plugin Card","otter-blocks"),instructions:(0,l.__)("Search for the plugin you want to display.","otter-blocks"),className:n},(0,i.createElement)("div",{className:"o-plugin-cards-search-field"},(0,i.createElement)(s.Dashicon,{icon:"search"}),m&&(0,i.createElement)(s.Spinner,null),(0,i.createElement)(s.TextControl,{type:"text",placeholder:(0,l.__)("Search for plugin…","otter-blocks"),value:b,onChange:p,onKeyDown:e=>{switch(e.keyCode){case be.UP:y(e);break;case be.DOWN:_(e);break;case be.TAB:Object.keys(g).length&&!e.shiftKey&&v(0);break;case be.ENTER:(async e=>{t({slug:""}),u(!0),a(!1);const o=await gt()({path:`otter/v1/plugins?search=${encodeURIComponent(e)}`});if(o.data.errors)return a(!0),u(!1),v(null),void h({});u(!1),v(null),h(o.data.plugins)})(e.target.value)}},onFocus:()=>v(null)}),g&&(0,i.createElement)("div",{tabIndex:"-1",className:"o-plugin-cards-search-results",ref:r},Object.keys(g).map((e=>{const t=g[e];let o;return t.icons.svg&&(o=t.icons.svg),t.icons["2x"]&&(o=t.icons["2x"]),t.icons["1x"]&&(o=t.icons["1x"]),t.icons.default&&(o=t.icons.default),(0,i.createElement)("button",{className:"o-plugin-cards-list-item",key:e,ref:(l=e,e=>{d[l]=e}),onClick:e=>{e.preventDefault(),f(t)},onKeyDown:e=>((e,t)=>{switch(e.keyCode){case be.UP:y(e);break;case be.DOWN:_(e);break;case be.TAB:if(e.shiftKey){0!==k&&y(e);break}if(k===Object.keys(g).length-1)break;_(e);break;case be.ENTER:f(t)}})(e,t)},(0,i.createElement)("img",{src:o}),(0,i.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,H.unescape)(t.name)}}));var l})))),o&&(0,i.createElement)("div",{className:"o-plugin-cards-error"},(0,i.createElement)("span",null,(0,l.__)("There seems to be an error. Make sure your internet is working properly.","otter-blocks"))))},Io=e=>{let{setAttributes:t}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(s.ToolbarGroup,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Edit","otter-blocks")},(0,i.createElement)(s.Button,{className:"components-icon-button components-toolbar__control o-plugin-cards-edit-plugin-card",onClick:()=>t({slug:void 0})},(0,i.createElement)(s.Dashicon,{icon:"edit"})))))};const{name:Ao}=Lo;(0,a.registerBlockType)(Ao,{...Lo,title:(0,l.__)("Plugin Card","otter-blocks"),description:(0,l.__)("Plugin Card block lets you display plugins data in your blog posts. Powered by Otter.","otter-blocks"),icon:r.pluginsIcon,keywords:["plugin","card","orbitfox"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[l,a]=(0,i.useState)(!1),n=(0,c.useBlockProps)();return t.slug?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Io,{setAttributes:o}),(0,i.createElement)("div",n,(0,i.createElement)(s.Disabled,null,(0,i.createElement)(m(),{block:"themeisle-blocks/plugin-cards",attributes:{...t}})))):(0,i.createElement)("div",n,(0,i.createElement)(Ho,{attributes:t,setAttributes:o,hasError:l,setError:a}))},save:()=>null,example:{attributes:{slug:"otter-blocks"}}});var Oo=o(7682),Fo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/popup","title":"Popup","category":"themeisle-blocks","description":"Display your content in beautiful popup with many customization options. Powered by Otter.","keywords":["popup","modal","lightbox"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"minWidth":{"type":"number"},"maxWidth":{"type":"number"},"trigger":{"type":"string"},"wait":{"type":"number"},"anchor":{"type":"string"},"scroll":{"type":"number"},"showClose":{"type":"boolean","default":true},"outsideClose":{"type":"boolean","default":true},"anchorClose":{"type":"boolean","default":false},"closeAnchor":{"type":"string"},"recurringClose":{"type":"boolean","default":false},"recurringTime":{"type":"number"},"backgroundColor":{"type":"string"},"closeColor":{"type":"string"},"overlayColor":{"type":"string"},"overlayOpacity":{"type":"number"}},"editorStyle":"otter-popup-editor","style":"otter-popup-style","script":"otter-popup"}'),Go=o(6755),$o=o(7231),Do=o(2694),Zo=o(9084);const Wo=()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Disabled,null,(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Close On Anchor Click","otter-blocks"),checked:!1,onChange:()=>{}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Dismiss for Recurring Visitors","otter-blocks"),checked:!1,onChange:()=>{}})),(0,i.createElement)(Zo.Z,{notice:(0,i.createElement)(s.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,l.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"}));var Uo=e=>{let{attributes:t,setAttributes:o}=e,a=[{label:(0,l.__)("On Load","otter-blocks"),value:"onLoad"},{label:(0,l.__)("On Anchor Click (Pro)","otter-blocks"),value:"onClick",disabled:!0},{label:(0,l.__)("On Scroll (Pro)","otter-blocks"),value:"onScroll",disabled:!0},{label:(0,l.__)("On Exit (Pro)","otter-blocks"),value:"onExit",disabled:!0}];return a=(0,Do.applyFilters)("otter.popupBlock.triggers",a),(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Open Trigger","otter-blocks"),help:!Boolean(window.themeisleGutenberg.hasPro)&&(0,l.__)("You need to have Otter Pro to activate Pro features.","otter-blocks"),options:a,value:t.trigger,onChange:e=>o({trigger:e})}),(void 0===t.trigger||"onLoad"===t.trigger)&&(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Wait Time","otter-blocks"),help:(0,l.__)("How much time to wait before showing the popup. Leave it empty to open instantly","otter-blocks"),min:0,max:100,value:t.wait,onChange:e=>o({wait:Number(e)})}),(0,Do.applyFilters)("otter.popupBlock.controls",(0,i.createElement)((()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Show Close Button","otter-blocks"),checked:t.showClose,onChange:()=>o({showClose:!t.showClose})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Close on Click Outside","otter-blocks"),checked:t.outsideClose,onChange:()=>o({outsideClose:!t.outsideClose})}),!Boolean(window.themeisleGutenberg.hasPro)&&(0,i.createElement)(Wo,null))),null),t,o)),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Style","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Minimum Width","otter-blocks"),step:.1,min:100,max:1e3,value:t.minWidth,allowReset:!0,onChange:e=>o({minWidth:Number(e)})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Maximum Width","otter-blocks"),step:.1,min:100,max:1e3,value:t.maxWidth,allowReset:!0,onChange:e=>o({maxWidth:Number(e)})}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>o({backgroundColor:e})}),t.showClose&&(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Close Button","otter-blocks"),colorValue:t.closeColor,onColorChange:e=>o({closeColor:e})}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Overlay","otter-blocks"),colorValue:t.overlayColor,onColorChange:e=>o({overlayColor:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Overlay Opacity","otter-blocks"),value:t.overlayOpacity,onChange:e=>o({overlayOpacity:Number(e)})})))};const{attributes:jo}=Fo;const{name:qo}=Fo;(0,a.registerBlockType)(qo,{...Fo,title:(0,l.__)("Popup","otter-blocks"),description:(0,l.__)("Display your content in beautiful popup with many customization options. Powered by Otter.","otter-blocks"),icon:Oo.Z,keywords:["popup","modal","lightbox"],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(a,jo);return()=>e(t.id)}),[]);const[n,r]=(0,i.useState)(!1),d={"--min-width":t.minWidth?t.minWidth+"px":"400px","--max-width":t.maxWidth?t.maxWidth+"px":void 0,"--background-color":t.backgroundColor,"--close-color":t.closeColor,"--overlay-color":t.overlayColor,"--overlay-opacity":t.overlayOpacity?t.overlayOpacity/100:1},m=(0,c.useBlockProps)({id:t.id,style:d});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Uo,{attributes:t,setAttributes:o}),(0,i.createElement)("div",m,(0,i.createElement)(s.Button,{isPrimary:!0,icon:Go.Z,onClick:()=>r(!0)},(0,l.__)("Edit Popup","otter-blocks")),n&&(0,i.createElement)("div",{className:"otter-popup__modal_wrap"},(0,i.createElement)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay",onClick:()=>r(!1)}),(0,i.createElement)("div",{className:"otter-popup__modal_content"},t.showClose&&(0,i.createElement)("div",{className:"otter-popup__modal_header"},(0,i.createElement)(s.Button,{icon:$o.Z,onClick:()=>r(!1)})),(0,i.createElement)("div",{className:"otter-popup__modal_body"},(0,i.createElement)(c.InnerBlocks,null))))))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,className:"is-front","data-open":t.trigger,"data-dismiss":t.recurringClose?t.recurringTime:"","data-time":void 0===t.trigger||"onLoad"===t.trigger?t.wait||0:"","data-anchor":"onClick"===t.trigger?t.anchor:"","data-offset":"onScroll"===t.trigger?t.scroll:"","data-outside":t.outsideClose?t.outsideClose:"","data-anchorclose":t.anchorClose?t.closeAnchor:""});return(0,i.createElement)("div",o,(0,i.createElement)("div",{className:"otter-popup__modal_wrap"},(0,i.createElement)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay"}),(0,i.createElement)("div",{className:"otter-popup__modal_content"},t.showClose&&(0,i.createElement)("div",{className:"otter-popup__modal_header"},(0,i.createElement)("button",{type:"button",class:"components-button has-icon"},(0,i.createElement)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},(0,i.createElement)("path",{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})))),(0,i.createElement)("div",{className:"otter-popup__modal_body"},(0,i.createElement)(c.InnerBlocks.Content,null)))))},example:{attributes:{}}});var Ko=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/posts-grid","title":"Posts","category":"themeisle-blocks","description":"Display a list of your most recent posts in a beautiful layout. Powered by Otter.","keywords":["posts","grid","news"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"style":{"type":"string","default":"grid"},"postTypes":{"type":"array","default":[]},"columns":{"type":"number","default":3},"template":{"type":"array","default":["category","title","meta","description"]},"categories":{"type":"array","items":{"type":"object"}},"postsToShow":{"type":"number","default":5},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"},"offset":{"type":"number","default":0},"imageSize":{"type":"string","default":"full"},"imageBoxShadow":{"type":"boolean","default":true},"displayFeaturedImage":{"type":"boolean","default":true},"displayCategory":{"type":"boolean","default":true},"displayTitle":{"type":"boolean","default":true},"titleTag":{"type":"string","default":"h5"},"displayMeta":{"type":"boolean","default":true},"displayDescription":{"type":"boolean","default":true},"excerptLength":{"type":"number","default":100},"displayDate":{"type":"boolean","default":true},"displayAuthor":{"type":"boolean","default":true},"displayComments":{"type":"boolean","default":true},"displayPostCategory":{"type":"boolean","default":false},"displayReadMoreLink":{"type":"boolean","default":false},"cropImage":{"type":"boolean","default":false},"customTitleFontSize":{"type":"number"},"customTitleFontSizeTable":{"type":"number"},"customTitleFontSizeMobile":{"type":"number"},"customDescriptionFontSize":{"type":"number"},"customDescriptionFontSizeTablet":{"type":"number"},"customDescriptionFontSizeMobile":{"type":"number"},"borderRadius":{"type":"number"},"textAlign":{"type":"string"},"verticalAlign":{"type":"string"},"enableFeaturedPost":{"type":"boolean"},"imageWidth":{"type":"number"}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-posts-grid-editor","style":"otter-posts-grid-style"}');const{attributes:Jo}=Ko;var Qo=[{attributes:{...Jo,categories:{type:"string"}},supports:{align:["wide","full"],html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:e=>{let{categories:t}=e;return t&&"string"==typeof t},save:()=>null}],Yo=e=>{let{attributes:t,setAttributes:o}=e;const a=c.BlockVerticalAlignmentToolbar;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(a,{label:(0,l.__)("Change vertical alignment","otter-blocks"),value:t.verticalAlign,onChange:e=>o({verticalAlign:e})}))},Xo=o(454),el=o.n(Xo),tl=o(1286);const ol=(0,tl.W6)((()=>(0,i.createElement)("div",{className:"o-sortable-handle",tabIndex:"0"},(0,i.createElement)("span",null)))),ll={image:"displayFeaturedImage",category:"displayCategory",title:"displayTitle",meta:"displayMeta",description:"displayDescription"},al=e=>{var t,o;let{attributes:a,setAttributes:n,template:r,disabled:c}=e;const[d,m]=(0,i.useState)(!1),u=null==r?void 0:r.startsWith("custom_"),b=null==a||null===(t=a.customMetas)||void 0===t||null===(o=t.filter((e=>{let{id:t}=e;return t===r})))||void 0===o?void 0:o.pop(),p={image:a.displayFeaturedImage,category:a.displayCategory,title:a.displayTitle,meta:a.displayMeta,description:a.displayDescription},h=(0,A.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),k=e=>{const t={...b,...e};n({customMetas:a.customMetas.map((e=>e.id===b.id?t:e))})},v=u?(0,Do.applyFilters)("otter.postsBlock.panelLabel","",b):(0,H.startCase)((0,H.toLower)(r)),y=p[r]||(null==b?void 0:b.display),_=y?"visibility":"hidden";
2
  /* translators: %s Label */
3
- let f=(0,l.sprintf)((0,l.__)("Display %s","otter-blocks"),v);return y&&(
4
  /* translators: %s Label */
5
- f=(0,l.sprintf)((0,l.__)("Hide %s","otter-blocks"),v)),(0,i.createElement)("div",{className:g()("o-sortable-item-area",`o-sortable-item-area-${r}`)},(0,i.createElement)("div",{className:g()("o-sortable-item",{disabled:c,hidden:!y,editable:y})},!c&&(0,i.createElement)(ol,null),(0,i.createElement)("div",{className:"o-sortable-label"},v),y&&"category"!==r&&(0,i.createElement)(s.Button,{icon:d?"arrow-up-alt2":"arrow-down-alt2",label:d?(0,l.__)("Close Settings","otter-blocks"):(0,l.__)("Open Settings","otter-blocks"),showTooltip:!0,className:"o-sortable-button",onClick:()=>m(!d)}),(0,i.createElement)(s.Button,{icon:_,label:f,showTooltip:!0,className:"o-sortable-button",onClick:()=>{u?k({display:!b.display}):(e=>{const t=ll[e]||e;n({[t]:!a[t]})})(r),m(!1)}})),y&&"category"!==r&&(0,i.createElement)("div",{className:g()("o-sortable-control-area",{opened:d&&y})},"image"===r&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Image Size","otter-blocks"),value:a.imageSize,options:window.themeisleGutenberg.imageSizes.map((e=>({label:(0,H.startCase)((0,H.toLower)(e)),value:e}))),onChange:e=>n({imageSize:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Crop image to fit","otter-blocks"),checked:a.cropImage,onChange:e=>n({cropImage:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display box shadow","otter-blocks"),checked:a.imageBoxShadow,onChange:e=>n({imageBoxShadow:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:a.borderRadius,onChange:e=>n({borderRadius:e}),step:.1,min:0,max:50,allowReset:!0}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Image Width","otter-blocks"),value:a.imageWidth,onChange:e=>n({imageWidth:e}),step:.1,min:0,max:500,allowReset:!0})),"title"===r&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Title Tag","otter-blocks"),value:a.titleTag||"h5",options:[{label:(0,l.__)("H1","otter-blocks"),value:"h1"},{label:(0,l.__)("H2","otter-blocks"),value:"h2"},{label:(0,l.__)("H3","otter-blocks"),value:"h3"},{label:(0,l.__)("H4","otter-blocks"),value:"h4"},{label:(0,l.__)("H5","otter-blocks"),value:"h5"},{label:(0,l.__)("H6","otter-blocks"),value:"h6"}],onChange:e=>n({titleTag:e})}),(0,i.createElement)($.Z,{label:(0,l.__)("Font size","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:(()=>{switch(h){case"Desktop":return a.customTitleFontSize;case"Tablet":return a.customTitleFontSizeTablet;case"Mobile":return a.customTitleFontSizeMobile;default:return}})(),onChange:e=>{"Desktop"===h?n({customTitleFontSize:e}):"Tablet"===h?n({customTitleFontSizeTablet:e}):"Mobile"===h&&n({customTitleFontSizeMobile:e})},step:.1,min:0,max:50,allowReset:!0}))),"meta"===r&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display post date","otter-blocks"),checked:a.displayDate,onChange:e=>n({displayDate:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display author","otter-blocks"),checked:a.displayAuthor,onChange:e=>n({displayAuthor:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display comments","otter-blocks"),checked:a.displayComments,onChange:e=>n({displayComments:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display category","otter-blocks"),checked:a.displayPostCategory,onChange:e=>n({displayPostCategory:e})})),"description"===r&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.TextControl,{label:(0,l.__)("Excerpt Limit","otter-blocks"),type:"number",value:a.excerptLength,onChange:e=>n({excerptLength:Number(e)})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display read more link","otter-blocks"),checked:a.displayReadMoreLink,onChange:e=>n({displayReadMoreLink:e})}),(0,i.createElement)($.Z,{label:(0,l.__)("Font size","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:(()=>{switch(h){case"Desktop":return a.customDescriptionFontSize;case"Tablet":return a.customDescriptionFontSizeTablet;case"Mobile":return a.customDescriptionFontSizeMobile;default:return}})(),onChange:e=>{"Desktop"===h?n({customDescriptionFontSize:e}):"Tablet"===h?n({customDescriptionFontSizeTablet:e}):"Mobile"===h&&n({customDescriptionFontSizeMobile:e})},step:.1,min:0,max:50,allowReset:!0}))),(0,Do.applyFilters)("otter.postsBlock.controls","",a,n,u,b,k)))},nl=(0,tl.W8)((e=>{let{attributes:t,setAttributes:o,template:l,disabled:a}=e;return(0,i.createElement)(al,{attributes:t,setAttributes:o,template:l,disabled:a})})),rl=(0,tl.JN)((e=>{var t;let{attributes:o,setAttributes:l}=e;return(0,i.createElement)("div",null,null==o||null===(t=o.template)||void 0===t?void 0:t.filter((e=>{var t,o;return!(null!=e&&e.startsWith("custom_")&&(void 0===(null===(t=window)||void 0===t?void 0:t.acf)||null===(o=window.themeisleGutenberg)||void 0===o||!o.hasPro))})).map(((e,t)=>(0,i.createElement)(nl,{key:`item-${e}`,index:t,attributes:o,setAttributes:l,template:e}))))})),il=()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",null,(0,l.__)("Add custom fields for the posts, using the ACF plugin & Otter Pro.","otter-blocks")),(0,i.createElement)(s.Button,{variant:"secondary",isSecondary:!0,className:"o-conditions__add",disabled:!0,onClick:()=>{}},(0,l.__)("Add Custom Field","otter-blocks")),(0,i.createElement)("br",null),(0,i.createElement)(Zo.Z,{notice:(0,i.createElement)(s.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,l.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"}));var cl=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:g()("o-sortable",t.style)},(0,i.createElement)(al,{attributes:t,setAttributes:o,template:"image",disabled:!0}),(0,i.createElement)(rl,{attributes:t,setAttributes:o,onSortEnd:e=>{let{oldIndex:l,newIndex:a}=e;const n=el()(t.template,l,a);o({template:n})},useDragHandle:!0,axis:"y",lockAxis:"y"}),(0,Do.applyFilters)("otter.postsBlock.sortableContainer",(0,i.createElement)(il,null),t,o)))},sl=e=>{let{attributes:t,setAttributes:o,changeStyle:a,categoriesList:n}=e;const{slugs:r}=(0,A.useSelect)((e=>({slugs:e("otter-store").getPostsSlugs()})),[t.postTypes]),d=n.reduce(((e,t)=>({...e,[t.name]:t})),{}),m=t.categories?t.categories.map((e=>{const t=n.find((t=>t.id===Number(e.id)));return{id:e.id,name:(null==t?void 0:t.name)||(null==t?void 0:t.slug)||""}})):[],u="object"==typeof t.categories?1<=t.categories.length?t.categories[0].id:void 0:t.categories;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,i.createElement)($t,{value:t.style,options:[{label:(0,l.__)("Grid","otter-blocks"),value:"grid",image:window.themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:(0,l.__)("List","otter-blocks"),value:"list",image:window.themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:a})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Post Types","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.BaseControl,null,(0,l.__)("Select the types of the post. If none is selected, the default WordPress post will be displayed.","otter-blocks")),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Post Type","otter-blocks"),value:t.postTypes[0]||null,onChange:e=>e&&o({postTypes:[e]}),options:r.map((e=>({label:(0,He.__)(e),value:e})))})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},"grid"===t.style&&(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Columns","otter-blocks"),value:t.columns,onChange:e=>{o({columns:e})},min:1,max:5}),(0,i.createElement)(s.QueryControls,{order:t.order,orderBy:t.orderBy,onOrderChange:e=>o({order:e}),onOrderByChange:e=>o({orderBy:e}),numberOfItems:t.postsToShow,onNumberOfItemsChange:e=>o({postsToShow:e}),categorySuggestions:d,selectedCategoryId:u,selectedCategories:m,onCategoryChange:e=>{let t;"object"==typeof e?0<e.length&&(t=e.map((e=>{if("object"==typeof e)return e;const t=n.find((t=>t.name===e));return t?{id:t.id,name:e}:void 0})).filter((e=>void 0!==e))):""!==e&&(t=[{id:e,name:n.find((t=>t.id===Number(e))).name}]),o({categories:t})}}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Offset","otter-blocks"),help:(0,l.__)("Number of post to displace or pass over.","otter-blocks"),type:"number",value:t.offset,min:0,onChange:e=>o({offset:Number(e)})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Enable featured post","otter-blocks"),checked:t.enableFeaturedPost,onChange:e=>o({enableFeaturedPost:e})}),(0,i.createElement)(s.BaseControl,{label:(0,l.__)("Text alignment","otter-blocks")},(0,i.createElement)(re.Z,{value:t.textAlign,options:[{icon:"editor-alignleft",label:(0,l.__)("Left","otter-blocks"),value:"left"},{icon:"editor-aligncenter",label:(0,l.__)("Center","otter-blocks"),value:"center"},{icon:"editor-alignright",label:(0,l.__)("Right","otter-blocks"),value:"right"}],onChange:e=>o({textAlign:e}),showBottomLabels:!0}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Design & Layout","otter-blocks"),initialOpen:!1},(0,i.createElement)(cl,{attributes:t,setAttributes:o})))},dl=e=>{let{id:t,link:o,alt:l,size:a,imgStyle:n}=e;const{featuredImage:r,altText:c}=(0,A.useSelect)((e=>{const o=e("core").getMedia(t);return{featuredImage:o?0<Object.keys(o.media_details.sizes).length&&o.media_details.sizes[a]?o.media_details.sizes[a].source_url:o.source_url:null,altText:o&&o.alt_text?o.alt_text:l}}),[a,t]);return null===r?(0,i.createElement)(i.Fragment,null):(0,i.createElement)("div",{className:"o-posts-grid-post-image"},(0,i.createElement)("a",{href:o},r?(0,i.createElement)("img",{src:r,size:a,alt:c,"data-id":t,style:n}):(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null))))};const ml=e=>{let{attributes:t,element:o,category:l,categoriesList:a}=e;return void 0!==l&&t.displayCategory&&a?(0,i.createElement)("span",{key:o,className:"o-posts-grid-post-category"},l.name):""},ul=e=>{let{attributes:t,element:o,post:l}=e;const a=t.titleTag||"h5";var n;return t.displayTitle?(0,i.createElement)(a,{key:o,className:"o-posts-grid-post-title"},(0,i.createElement)("a",{href:l.link},(0,He.Uo)(null===(n=l.title)||void 0===n?void 0:n.rendered))):""},bl=e=>{let{attributes:t,element:o,post:a,author:n,category:r}=e;return t.displayMeta&&(t.displayDate||t.displayAuthor||t.displayComments||t.displayPostCategory)?(0,i.createElement)("p",{key:o,className:"o-posts-grid-post-meta"},t.displayDate&&
6
  /* translators: %s Date posted */
7
  (0,l.sprintf)((0,l.__)("on %s","otter-blocks"),(0,He.p6)(a.date)),t.displayAuthor&&void 0!==n&&
8
  /* translators: %s Author of the post */
9
- (0,l.sprintf)((0,l.__)(" by %s","otter-blocks"),n.name),t.displayComments&&(0,l.sprintf)(" - %1$s %2$s","0",(0,l.__)("comments","otter-blocks")),t.displayPostCategory&&void 0!==(null==r?void 0:r.name)&&(0,l.sprintf)((0,l.__)(" - %s","otter-blocks"),r.name)):""},pl=e=>{let{attributes:t,element:o,post:a}=e;var n;return 0<t.excerptLength&&t.displayDescription?(0,i.createElement)("div",{key:o,className:"o-posts-grid-post-description"},(0,i.createElement)("p",null,(null===(n=a.excerpt)||void 0===n?void 0:n.rendered)&&(0,He.Uo)(a.excerpt.rendered).substring(0,t.excerptLength)+"…"),t.displayReadMoreLink&&(0,i.createElement)("a",{href:a.link,className:"o-posts-read-more"},(0,l.__)("Read more","otter-blocks"))):""};var gl=e=>{let{attributes:t,posts:o,categoriesList:l,authors:a}=e;return(0,i.createElement)("div",{className:"grid"===t.style?g()("is-grid",`o-posts-grid-columns-${t.columns}`,{"has-shadow":t.imageBoxShadow,"o-crop-img":t.cropImage}):g()("is-list",{"has-shadow":t.imageBoxShadow,"o-crop-img":t.cropImage})},o.filter((e=>e)).slice(t.enableFeaturedPost?1:0).map((e=>{var o,n;const r=l&&0<(null==e||null===(o=e.categories)||void 0===o?void 0:o.length)?l.find((t=>t.id===e.categories[0])):void 0,c=a&&e.author?a.find((t=>t.id===e.author)):void 0;return(0,i.createElement)("div",{key:e.link,className:"o-posts-grid-post-blog o-posts-grid-post-plain"},(0,i.createElement)("div",{className:g()("o-posts-grid-post")},0!==e.featured_media&&t.displayFeaturedImage&&(0,i.createElement)(dl,{id:e.featured_media,link:e.link,alt:null===(n=e.title)||void 0===n?void 0:n.rendered,size:t.imageSize,imgStyle:{borderRadius:void 0!==t.borderRadius?t.borderRadius+"px":void 0}}),(0,i.createElement)("div",{className:g()("o-posts-grid-post-body",{"is-full":!t.displayFeaturedImage})},t.template.map((o=>{switch(o){case"category":return(0,i.createElement)(ml,{key:o,attributes:t,element:o,category:r,categoriesList:l});case"title":return(0,i.createElement)(ul,{key:o,attributes:t,element:o,post:e});case"meta":return(0,i.createElement)(bl,{key:o,attributes:t,element:o,post:e,author:c,category:r});case"description":return(0,i.createElement)(pl,{key:o,attributes:t,element:o,post:e});default:return(0,Do.applyFilters)("otter.postsBlock.templateLoop","",o,t)}})))))})))};const hl={posts:{slugs:[],usedSlugs:[]}};(0,A.registerGenericStore)("otter-store",(()=>{let e=()=>{};const t=hl,o={getPostsSlugs:()=>t.posts.slugs,getPostsUsedSlugs:()=>t.posts.usedSlugs},l={setPostsSlugs(o){t.posts.slugs=o,e()},setPostsUsedSlugs(o){t.posts.usedSlugs.push(...o),e()},setOnlyOneSlug(o){t.posts.usedSlugs=[o],e()},removePostsUsedSlugs(o){t.posts.usedSlugs=t.posts.usedSlugs.filter((e=>!o.includes(e))),e()}};return{getSelectors:()=>o,getActions:()=>l,subscribe(t){e=t}}})());var kl=e=>{var t;let{post:o,attributes:l,author:a,category:n,categoriesList:r}=e;return o?(0,i.createElement)("div",{className:g()("o-featured-post",{"has-shadow":l.imageBoxShadow})},l.displayFeaturedImage&&(0,i.createElement)(dl,{id:o.featured_media,link:o.link,alt:null===(t=o.title)||void 0===t?void 0:t.rendered,imgStyle:{borderRadius:void 0!==l.borderRadius?l.borderRadius+"px":void 0}}),(0,i.createElement)("div",{className:"o-posts-grid-post-body"},l.template.map((e=>{switch(e){case"category":return(0,i.createElement)(ml,{attributes:l,element:e,category:n,categoriesList:r});case"title":return(0,i.createElement)(ul,{attributes:l,element:e,post:o});case"meta":return(0,i.createElement)(bl,{attributes:l,element:e,post:o,author:a,category:n});case"description":return(0,i.createElement)(pl,{attributes:l,element:e,post:o});default:return(0,Do.applyFilters)("otter.postsBlock.templateLoop","",e,l)}})))):""};const{attributes:vl}=Ko;const{name:yl}=Ko;(0,a.registerBlockType)(yl,{...Ko,title:(0,l.__)("Posts","otter-blocks"),description:(0,l.__)("Display a list of your most recent posts in a beautiful layout. Powered by Otter.","otter-blocks"),icon:r.postsIcon,keywords:["posts","grid","news"],deprecated:Qo,edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(a,vl);return()=>e(t.id)}),[t.id]);const[n,r]=(0,i.useState)([]),{posts:d,categoriesList:m,authors:u}=(0,A.useSelect)((e=>{const o=t.categories&&0<t.categories.length?t.categories.map((e=>e.id)):[],l=(0,H.pickBy)({categories:o,order:t.order,orderby:t.orderBy,per_page:t.postsToShow,offset:t.offset},(e=>!(0,H.isUndefined)(e))),a=t.postTypes;return{posts:0<a.length?a.map((t=>e("core").getEntityRecords("postType",t,l))).flat():e("core").getEntityRecords("postType","post",l),categoriesList:e("core").getEntityRecords("taxonomy","category",{per_page:100}),authors:e("core").getUsers({who:"authors"})}}),[t.categories,t.order,t.orderBy,t.postsToShow,t.offset,t.postTypes]),b=e=>{o({style:e})};(0,i.useEffect)((()=>{(async()=>{r(await(0,He.R3)())})()}),[]),(0,i.useEffect)((()=>{(0,A.dispatch)("otter-store").setPostsSlugs(n)}),[n]);const p={"--img-width":`${t.imageWidth}px`,"--img-border-radius":t.borderRadius&&`${t.borderRadius}px;`,"--vert-align":(0,He.Vg)(t.verticalAlign),"--text-align":t.textAlign},[g,h]=(0,v.useCSSNode)();(0,i.useEffect)((()=>{h([`{\n\t\t\t\t${t.customTitleFontSize&&`--title-text-size: ${t.customTitleFontSize}px;`}\n\t\t\t\t${t.customDescriptionFontSize&&`--description-text-size: ${t.customDescriptionFontSize}px;`}\n\t\t\t}`,`{\n\t\t\t\t${t.customTitleFontSizeTablet&&`--title-text-size: ${t.customTitleFontSizeTablet}px;`}\n\t\t\t\t${t.customDescriptionFontSizeTablet&&`--description-text-size: ${t.customDescriptionFontSizeTablet}px;`}\n\t\t\t}`,`{\n\t\t\t\t${t.customTitleFontSizeMobile&&`--title-text-size: ${t.customTitleFontSizeMobile}px;`}\n\t\t\t\t${t.customDescriptionFontSizeMobile&&`--description-text-size: ${t.customDescriptionFontSizeMobile}px;`}\n\t\t\t}`],["@media ( min-width: 960px )","@media ( min-width: 600px ) and ( max-width: 960px )","@media ( max-width: 600px )"])}),[t.customTitleFontSize,t.customTitleFontSize,t.customDescriptionFontSize,t.customDescriptionFontSize,t.customTitleFontSizeTablet,t.customTitleFontSizeTablet,t.customDescriptionFontSizeTablet,t.customDescriptionFontSizeTablet,t.customTitleFontSizeMobile,t.customTitleFontSizeMobile,t.customDescriptionFontSizeMobile,t.customDescriptionFontSizeMobile]);const k=(0,c.useBlockProps)({className:g});return d&&m&&u?0===d.length?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",k,(0,i.createElement)(s.Placeholder,null,(0,l.__)("No Posts","otter-blocks"))),m&&t.offset||n.length?(0,i.createElement)(sl,{attributes:t,setAttributes:o,changeStyle:b,categoriesList:m}):null):(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Dt,{label:(0,l.__)("Block Styles","otter-blocks"),value:t.style,options:[{label:(0,l.__)("Grid","otter-blocks"),value:"grid",image:window.themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:(0,l.__)("List","otter-blocks"),value:"list",image:window.themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:b}),(0,i.createElement)(sl,{attributes:t,setAttributes:o,changeStyle:b,categoriesList:m,posts:d}),(0,i.createElement)(Yo,{attributes:t,setAttributes:o}),(0,i.createElement)("div",(0,N.Z)({},k,{style:p}),(0,i.createElement)(s.Disabled,null,t.enableFeaturedPost&&(0,i.createElement)(kl,{attributes:t,post:null==d?void 0:d[0],category:m[0],categoriesList:m,author:u[0]}),(0,i.createElement)(gl,{attributes:t,posts:d,categoriesList:m,authors:u})))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",k,(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null),(0,l.__)("Loading Posts","otter-blocks"))),m&&t.offset?(0,i.createElement)(sl,{attributes:t,setAttributes:o,changeStyle:b,categoriesList:m}):null)},save:()=>null,example:{attributes:{}}});var _l=JSON.parse('{"kQ":"\x3c!-- wp:themeisle-blocks/advanced-columns {\\"id\\":\\"wp-block-themeisle-blocks-advanced-columns-e0e1ab2e\\",\\"columns\\":3,\\"layout\\":\\"equal\\",\\"layoutMobile\\":\\"collapsedRows\\",\\"padding\\":{\\"top\\":\\"80px\\",\\"bottom\\":\\"80px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingTablet\\":{\\"top\\":\\"40px\\",\\"bottom\\":\\"40px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\"},\\"columnsWidth\\":1170,\\"horizontalAlign\\":\\"center\\",\\"verticalAlign\\":\\"flex-start\\",\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"backgroundOverlayPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"columnsHTMLTag\\":\\"section\\",\\"align\\":\\"full\\"} --\x3e\\n<section id=\\"wp-block-themeisle-blocks-advanced-columns-e0e1ab2e\\" class=\\"wp-block-themeisle-blocks-advanced-columns alignfull has-3-columns has-desktop-equal-layout has-tablet-equal-layout has-mobile-collapsedRows-layout has-vertical-flex-start\\"><div class=\\"wp-block-themeisle-blocks-advanced-columns-overlay\\"></div><div class=\\"innerblocks-wrap\\">\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-43e17023\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-43e17023\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\">Essential</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-7d521980\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-7d521980\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-7d521980\\"><strong>$59</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-ee4f525b\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-ee4f525b\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-ee4f525b\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-1806e8e7\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-1806e8e7\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-26b966e4\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-26b966e4\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts &amp; Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-4aebde54\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-4aebde54\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-64264549\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-64264549\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-2489d76c\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-2489d76c\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-e30ccf77\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-e30ccf77\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-e30ccf77\\">Business</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\"><strong>$129</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-fe18de7e\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-fe18de7e\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-fe18de7e\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-fb8b7e9c\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-fb8b7e9c\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-78a49dfc\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-78a49dfc\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts &amp; Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-f341b063\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-f341b063\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-8216d9b3\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-8216d9b3\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-09158d16\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-09158d16\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-b3766bd8\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-b3766bd8\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-b3766bd8\\">VIP</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-e601353c\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-e601353c\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-e601353c\\"><strong>$199</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-39d2e261\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-39d2e261\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-39d2e261\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-2c744428\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-2c744428\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-b78d20f0\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-b78d20f0\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts &amp; Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-14fe631b\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-14fe631b\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-0ce7030d\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-0ce7030d\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e</div></section>\\n\x3c!-- /wp:themeisle-blocks/advanced-columns --\x3e"}');const{getBlockType:fl}=(0,A.select)("core/blocks"),wl=()=>{const e=setInterval((()=>{if(void 0===fl("themeisle-blocks/advanced-columns"))return wl();const t=(0,a.parse)(_l.kQ);(0,a.registerBlockVariation)("themeisle-blocks/advanced-columns",{name:"themeisle-blocks/section-pricing",title:(0,l.__)("Pricing Section","otter-blocks"),icon:r.pricingIcon,scope:"inserter",attributes:t[0].attributes,innerBlocks:t[0].innerBlocks,example:{attributes:t[0].attributes,innerBlocks:t[0].innerBlocks}}),clearInterval(e)}),2e3)};wl();var Cl=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/progress-bar","title":"Progress Bar","category":"themeisle-blocks","description":"Show your progress with a beautiful Progress Bar block. Powered by Otter.","keywords":["progress","bar","skills"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string","default":"Skill"},"percentage":{"type":"number","default":50},"duration":{"type":"number","default":2},"titleStyle":{"type":"string","default":"default"},"percentagePosition":{"type":"string","default":"default"},"height":{"type":"number","default":30},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"barBackgroundColor":{"type":"string"},"titleColor":{"type":"string"},"percentageColor":{"type":"string"}},"editorStyle":"otter-progress-bar-editor","style":"otter-progress-bar-style","script":"otter-progress-bar"}'),El=e=>{let{attributes:t,setAttributes:o,onHeightChange:a,heightMode:n,setHeightMode:r}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),value:t.title,onChange:e=>{o({title:e})}}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Percentage","otter-blocks"),help:(0,l.__)("The value of the progress bar.","otter-blocks"),value:t.percentage,onChange:e=>{void 0!==e&&(e=(0,H.clamp)(e,0,100),o({percentage:e}))},min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Duration","otter-blocks"),help:(0,l.__)("The duration of the animation.","otter-blocks"),value:t.duration,onChange:e=>{void 0!==e&&(e=(0,H.clamp)(e,0,3),o({duration:e}))},min:0,max:3,step:.1}),30<=t.height&&(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Title Style","otter-blocks"),value:t.titleStyle,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Highlight","otter-blocks"),value:"highlight"},{label:(0,l.__)("Outer","otter-blocks"),value:"outer"}],onChange:e=>{o({titleStyle:e})}}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Show Percentage","otter-blocks"),value:t.percentagePosition,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Append","otter-blocks"),value:"append"},{label:(0,l.__)("Tooltip","otter-blocks"),value:"tooltip"},{label:(0,l.__)("Outer","otter-blocks"),value:"outer"},{label:(0,l.__)("Hide","otter-blocks"),value:"hide"}],onChange:e=>{n.isAutomatic&&(n.percentagePosition=e,r({...n})),o({percentagePosition:e})}})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Style","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("The height of the progress bar.","otter-blocks"),value:t.height,onChange:a,step:.1,min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),help:(0,l.__)("Round the corners of the progress bar.","otter-blocks"),value:t.borderRadius,onChange:e=>{o({borderRadius:e})},step:.1,initialPosition:5,min:0,max:35}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Progress Color","otter-blocks"),colorValue:t.barBackgroundColor,onColorChange:e=>{o({barBackgroundColor:e})}}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Title Color","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>{o({titleColor:e})}}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Percentage Color","otter-blocks"),colorValue:t.percentageColor,onColorChange:e=>{o({percentageColor:e})}}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Background Color","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>{o({backgroundColor:e})}})))};const{attributes:xl}=Cl;const Tl={to:[{type:"block",blocks:["themeisle-blocks/circle-counter"],transform:e=>{const t=(0,H.omit)(e,["titleStyle","percentagePosition","height","borderRadius","barBackgroundColor","percentageColor"]);return(0,a.createBlock)("themeisle-blocks/circle-counter",{...t,progressColor:e.barBackgroundColor,height:(0,H.clamp)(4*e.height,0,240),titleStyle:"default"})}}]};var Sl=Tl;const{name:Ml}=Cl;(0,a.registerBlockType)(Ml,{...Cl,title:(0,l.__)("Progress Bar","otter-blocks"),description:(0,l.__)("Show your progress with a beautiful Progress Bar block. Powered by Otter.","otter-blocks"),icon:"minus",keywords:["progress","bar","skills"],transforms:Sl,edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a,toggleSelection:n}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(a,xl);return()=>e(t.id)}),[t.id]);const r=(0,i.useRef)(null),[d,m]=(0,i.useState)(!1),[u,b]=(0,i.useState)({isAutomatic:!1,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),p=(0,i.useRef)(null);(0,i.useEffect)((()=>{let e=null;if(p.current)return m(!1),e=setTimeout((()=>m(!0)),1e3*t.duration),p.current.animate({width:`${t.percentage}%`},{duration:1e3*t.duration,easing:"linear",fill:"forwards"}),()=>{clearTimeout(e)}}),[t.percentage,t.duration]);const h={"--title-color":t.titleColor,"--percentage-color":t.percentageColor,"--percentage-color-outer":t.percentageColor,"--percentage-color-tooltip":t.percentageColor,"--percentage-color-append":t.percentageColor,"--background-color":t.backgroundColor,"--border-radius":void 0!==t.borderRadius&&t.borderRadius+"px","--height":void 0!==t.height&&t.height+"px","--bar-background":t.barBackgroundColor},k=e=>{30>e?(u.isAutomatic||b({isAutomatic:!0,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),o({height:e,titleStyle:"outer",percentagePosition:"append"===t.percentagePosition||"default"===t.percentagePosition?"outer":t.percentagePosition})):(u.isAutomatic&&b({isAutomatic:!1}),o({titleStyle:u.isAutomatic?u.titleStyle:t.titleStyle,percentagePosition:u.isAutomatic?u.percentagePosition:t.percentagePosition,height:e}))},y=(0,c.useBlockProps)({id:t.id,className:g()({"has-tooltip":"tooltip"===t.percentagePosition}),style:h});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(El,{attributes:t,setAttributes:o,onHeightChange:k,heightMode:u,setHeightMode:b}),(0,i.createElement)("div",y,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,i.createElement)(c.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-progress-bar__outer__title",value:t.title,onChange:e=>o({title:e})}),"outer"===t.percentagePosition&&d&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__outer__value"},`${t.percentage}%`)),(0,i.createElement)(s.ResizableBox,{size:{height:t.height},minHeight:5,maxHeight:100,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:l,onResizeStop:(e,o,l,a)=>{k(parseInt(t.height+a.height,10)),n(!0)},onResizeStart:()=>{n(!1)}},(0,i.createElement)("div",{ref:r,className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,i.createElement)("div",{className:g()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,i.createElement)(c.RichText,{tagName:"span",allowedFormats:[],value:t.title,onChange:e=>o({title:e})})),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar show",ref:p},"tooltip"===t.percentagePosition&&d&&(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip show"},`${t.percentage}%`,(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&d&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append show"},`${t.percentage}%`)),"default"===t.percentagePosition&&d&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress"},`${t.percentage}%`)))))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,className:g()({"has-tooltip":"tooltip"===t.percentagePosition}),"data-percent":t.percentage,"data-duration":t.duration});return(0,i.createElement)("div",o,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__outer__title"},t.title),"outer"===t.percentagePosition&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer__value wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,i.createElement)("div",{className:g()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,i.createElement)("span",null,t.title)),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar"},"tooltip"===t.percentagePosition&&(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip"},(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__number"},t.percentage),(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),"default"===t.percentagePosition&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__number"},`${t.percentage}%`)))},example:{}});var Bl=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/review","title":"Product Review","category":"themeisle-blocks","description":"Turn your posts into smart reviews with ratings and generate leads with a performing review block. Powered by Otter.","keywords":["product","review","stars"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string"},"currency":{"type":"string","default":"USD"},"price":{"type":"number"},"discounted":{"type":"number"},"image":{"type":"object"},"description":{"type":"string"},"features":{"type":"array","default":[{"title":"Stability","rating":9},{"title":"Ease of Use","rating":4},{"title":"Look & Feel","rating":9},{"title":"Price","rating":7}]},"pros":{"type":"array","default":["Easy to use","Good price","Sturdy build and ergonomics"]},"cons":{"type":"array","default":["Incompatible with old versions","Hard to assemble","Bad color combination"]},"links":{"type":"array","default":[{"label":"Buy on Amazon","href":"","isSponsored":false},{"label":"Buy on eBay","href":"","isSponsored":false}]},"primaryColor":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"buttonTextColor":{"type":"string"},"isSynced":{"type":"array"}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"single-column","label":"Single Column"}],"supports":{"html":false},"editorStyle":"otter-review-editor","style":"otter-review-style"}'),zl=o(1463),Pl=o.n(zl);const Vl=e=>{let{title:t,remove:o,children:a}=e;const[n,r]=(0,i.useState)(!1);return(0,i.createElement)("div",{className:"o-review__inspector_panel_item"},(0,i.createElement)("div",{className:"o-review__inspector_panel_item__header"},(0,i.createElement)(s.Button,{className:"o-review__inspector_panel_item__title",onClick:()=>r(!n)},t),(0,i.createElement)(s.Button,{icon:"no-alt",label:(0,l.__)("Remove","otter-blocks"),showTooltip:!0,className:"o-review__inspector_panel_item__arrow",onClick:o})),n&&(0,i.createElement)("div",{className:"o-review__inspector_panel_item__content"},a))};var Rl=e=>{var t,o,a,n,r;let{attributes:d,setAttributes:m,getValue:u,productAttributes:b}=e;const p=(e,t)=>{const o=[...d.features];o[e]={...o[e],...t},m({features:o})},g=(e,t)=>{const o=[...d.links];o[e]={...o[e],...t},m({links:o})},k=e=>{let t=[...d.links];t=t.filter(((t,o)=>o!==e)),m({links:t})};return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Product Details","otter-blocks")},d.product&&(0,i.createElement)(s.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice"},(0,l.__)("WooCommerce product synchronization is active. Some options might be disabled.","otter-blocks")),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Product Name","otter-blocks"),type:"text",placeholder:(0,l.__)("Name of your product…","otter-blocks"),value:(null==b?void 0:b.title)||d.title,disabled:d.product,onChange:e=>m({title:e})}),(0,i.createElement)(s.BaseControl,null,(0,i.createElement)(s.TextControl,{label:(0,l.__)("Currency","otter-blocks"),type:"text",placeholder:(0,l.__)("Currency code, like USD or EUR.","otter-blocks"),value:(null==b?void 0:b.currency)||d.currency,disabled:d.product,onChange:e=>m({currency:e})}),(0,l.__)("Currency code in three digit ISO 4217 code.","otter-blocks")+" ",(0,i.createElement)(s.ExternalLink,{href:"https://en.wikipedia.org/wiki/ISO_4217#Active_codes"},(0,l.__)("List of ISO 4217 codes.","otter-blocks"))),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Price","otter-blocks"),type:"number",value:(null==b?void 0:b.price)||d.price,disabled:d.product,onChange:e=>m({price:""!==e?Number(e):void 0})}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Discounted Price","otter-blocks"),type:"number",value:(null==b?void 0:b.discounted)||d.discounted,disabled:d.product,onChange:e=>m({discounted:""!==e?Number(e):void 0})}),d.image||null!=b&&b.image?(0,i.createElement)(s.BaseControl,{className:"o-review__inspector_image"},(0,i.createElement)("img",{src:(null==b||null===(t=b.image)||void 0===t?void 0:t.url)||d.image.url,alt:(null==b||null===(o=b.image)||void 0===o?void 0:o.url)||d.image.alt}),(0,i.createElement)(s.Button,{isSecondary:!0,onClick:()=>m({image:void 0}),disabled:d.product},(0,l.__)("Remove image","otter-blocks"))):(0,i.createElement)(c.MediaPlaceholder,{labels:{title:(0,l.__)("Product Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:d.image,onSelect:e=>m({image:(0,H.pick)(e,["id","alt","url"])})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Product Features","otter-blocks"),initialOpen:!1},0<d.features.length&&d.features.map(((e,t)=>(0,i.createElement)(Vl,{key:t,title:e.title||(0,l.__)("Feature","otter-blocks"),remove:()=>(e=>{let t=[...d.features];t=t.filter(((t,o)=>o!==e)),m({features:t})})(t)},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("Feature title","otter-blocks"),value:e.title,onChange:e=>p(t,{title:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Rating","otter-blocks"),value:e.rating,onChange:e=>p(t,{rating:Number(e)}),step:.1,min:1,max:10})))),(0,i.createElement)(s.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...d.features];e.push({title:(0,l.__)("Feature","otter-blocks"),rating:9}),m({features:e})}},(0,l.__)("Add Feature","otter-blocks"))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Pros","otter-blocks"),initialOpen:!1},0<d.pros.length&&d.pros.map(((e,t)=>(0,i.createElement)(Vl,{key:t,title:e||(0,l.__)("Pro","otter-blocks"),remove:()=>(e=>{let t=[...d.pros];t=t.filter(((t,o)=>o!==e)),m({pros:t})})(t)},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("Why do you like the product?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...d.pros];o[e]=t,m({pros:o})})(t,e)})))),(0,i.createElement)(s.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...d.pros];e.push(""),m({pros:e})}},(0,l.__)("Add Item","otter-blocks"))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Cons","otter-blocks"),initialOpen:!1},0<d.cons.length&&d.cons.map(((e,t)=>(0,i.createElement)(Vl,{key:t,title:e||(0,l.__)("Con","otter-blocks"),remove:()=>(e=>{let t=[...d.cons];t=t.filter(((t,o)=>o!==e)),m({cons:t})})(t)},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("What can be improved?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...d.cons];o[e]=t,m({cons:o})})(t,e)})))),(0,i.createElement)(s.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...d.cons];e.push(""),m({cons:e})}},(0,l.__)("Add Item","otter-blocks"))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Links","otter-blocks"),initialOpen:!1},d.product&&(0,i.createElement)(s.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice"},(0,l.__)("WooCommerce product synchronization is active. Some options might be disabled.","otter-blocks")),0<(null==b||null===(a=b.links)||void 0===a?void 0:a.length)&&(null==b||null===(n=b.links)||void 0===n?void 0:n.map(((e,t)=>(0,i.createElement)(Vl,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>k(t)},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),disabled:d.product,value:e.label}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,disabled:d.product}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,disabled:d.product}))))),!(0<(null==b||null===(r=b.links)||void 0===r?void 0:r.length))&&(0,i.createElement)(i.Fragment,null,0<d.links.length&&d.links.map(((e,t)=>(0,i.createElement)(Vl,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>k(t)},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,onChange:e=>g(t,{label:e})}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,onChange:e=>g(t,{href:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,onChange:()=>g(t,{isSponsored:!e.isSponsored})})))),(0,i.createElement)(s.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...d.links];e.push({label:(0,l.__)("Buy Now","otter-blocks"),href:""}),m({links:e})}},(0,l.__)("Add Links","otter-blocks")))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,i.createElement)(h.Z,{field:"primaryColor",isSynced:d.isSynced,setAttributes:m},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Primary","otter-blocks"),colorValue:u("primaryColor"),onColorChange:e=>m({primaryColor:e})})),(0,i.createElement)(h.Z,{field:"backgroundColor",isSynced:d.isSynced,setAttributes:m},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:u("backgroundColor"),onColorChange:e=>m({backgroundColor:e})})),(0,i.createElement)(c.ContrastChecker,{textColor:u("primaryColor"),backgroundColor:u("backgroundColor")}),(0,i.createElement)(h.Z,{field:"textColor",isSynced:d.isSynced,setAttributes:m},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Text","otter-blocks"),colorValue:u("textColor"),onColorChange:e=>m({textColor:e})})),(0,i.createElement)(h.Z,{field:"buttonTextColor",isSynced:d.isSynced,setAttributes:m},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Button Text","otter-blocks"),colorValue:u("buttonTextColor"),onColorChange:e=>m({buttonTextColor:e})}))),!Boolean(window.themeisleGutenberg.hasPro)&&(0,i.createElement)(s.PanelBody,{title:(0,l.__)("More Features","otter-blocks"),initialOpen:!1},(0,i.createElement)(Zo.Z,{notice:(0,i.createElement)(s.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,l.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"})))};const{attributes:Ll}=Bl;const{name:Nl,attributes:Hl}=Bl;window.themeisleGutenberg.defaultReviewAttributes=Hl,(0,a.registerBlockType)(Nl,{...Bl,title:(0,l.__)("Product Review","otter-blocks"),description:(0,l.__)("Turn your posts into smart reviews with ratings and generate leads with a performing review block. Powered by Otter.","otter-blocks"),icon:r.faIcon,keywords:["product","review","stars"],styles:[{name:"default",label:(0,l.__)("Default","otter-blocks"),isDefault:!0},{name:"single-column",label:(0,l.__)("Single Column","otter-blocks")}],edit:e=>{var t,o,a,n,d;let{name:m,attributes:u,setAttributes:b,clientId:p,isSelected:h,status:k="isInactive",productAttributes:y={}}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(p,Ll);return()=>e(u.id)}),[u.id]);const _=e=>(0,v.getDefaultValueByField)({name:m,field:e,defaultAttributes:Ll,attributes:u}),f=(u.features.reduce(((e,t)=>e+t.rating),0)/u.features.length).toFixed(1),w=[];for(let e=0;10>e;e++)w.push((0,i.createElement)(r.StarFilled,{key:e,className:g()({low:3>=Math.round(f)&&e<Math.round(f),medium:3<Math.round(f)&&8>Math.round(f)&&e<Math.round(f),high:7<Math.round(f)&&10>=Math.round(f)&&e<Math.round(f)})}));const C={"--background-color":_("backgroundColor"),"--primary-color":_("primaryColor"),"--text-color":_("textColor"),"--button-text-color":_("buttonTextColor")},E="object"==typeof k&&null!==k&&k.isError||"isLoading"===k;let x=(0,c.useBlockProps)({id:u.id,className:E&&"is-placeholder",style:C});return"isLoading"===k?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Rl,{attributes:u,setAttributes:b,getValue:_,productAttributes:y}),(0,i.createElement)("div",x,(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null)))):"object"==typeof k&&null!==k&&k.isError?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Rl,{attributes:u,setAttributes:b,getValue:_,productAttributes:y}),(0,i.createElement)("div",x,(0,i.createElement)(s.Placeholder,{instructions:k.message}))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Rl,{attributes:u,setAttributes:b,getValue:_,productAttributes:y}),(0,i.createElement)("div",x,(0,i.createElement)("div",{className:"o-review__header"},null!=y&&y.title?(0,i.createElement)(c.RichText.Content,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:null==y?void 0:y.title,tagName:"h3"}):(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:u.title,onChange:e=>b({title:e}),tagName:"h3"}),(0,i.createElement)("div",{className:"o-review__header_meta"},(0,i.createElement)("div",{className:"o-review__header_ratings"},w,(0,i.createElement)("span",null,
10
  /** translators: %s Rating score. */
11
- (0,l.sprintf)((0,l.__)("%f out of 10","otter-blocks"),Math.abs(f)||0))),(0,i.createElement)("span",{className:"o-review__header_price"},((null==y?void 0:y.price)&&(null==y?void 0:y.discounted)||u.price&&u.discounted)&&(0,i.createElement)("del",null,(null!==(t=Pl()((null==y?void 0:y.currency)||u.currency))&&void 0!==t?t:"$")+""+((null==y?void 0:y.price)||u.price)||0),(u.price||u.discounted||(null==y?void 0:y.price)||(null==y?void 0:y.discounted))&&(null!==(o=Pl()((null==y?void 0:y.currency)||u.currency))&&void 0!==o?o:"$")+""+(null!=y&&y.discounted||u.discounted?(null==y?void 0:y.discounted)||u.discounted:(null==y?void 0:y.price)||u.price)))),(0,i.createElement)("div",{className:"o-review__left"},(0,i.createElement)("div",{className:g()("o-review__left_details",{"is-single":!u.image||!h&&!u.description})},null!=y&&y.image?(0,i.createElement)("img",{src:null==y||null===(a=y.image)||void 0===a?void 0:a.url,alt:null==y||null===(n=y.image)||void 0===n?void 0:n.alt}):u.image&&(0,i.createElement)("img",{src:u.image.url,alt:u.image.alt}),!h&&!u.description||null!=y&&y.description?(0,i.createElement)(c.RichText.Content,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:null==y?void 0:y.description,tagName:"p"}):(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:u.description,onChange:e=>b({description:e}),tagName:"p"})),(0,i.createElement)("div",{className:"o-review__left_features"},0<u.features.length&&u.features.map(((e,t)=>{const o=[];for(let t=0;10>t;t++)o.push((0,i.createElement)(r.StarFilled,{key:t,className:g()({low:3>=Math.round(e.rating)&&t<Math.round(e.rating),medium:3<Math.round(e.rating)&&8>Math.round(e.rating)&&t<Math.round(e.rating),high:7<Math.round(e.rating)&&10>=Math.round(e.rating)&&t<Math.round(e.rating)})}));return(0,i.createElement)("div",{className:"o-review__left_feature",key:t},(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Feature title","otter-blocks"),value:e.title,className:"o-review__left_feature_title",onChange:e=>((e,t)=>{const o=[...u.features];o[e]={...o[e],...t},b({features:o})})(t,{title:e}),tagName:"span"}),(0,i.createElement)("div",{className:"o-review__left_feature_ratings"},o,(0,i.createElement)("span",null,e.rating.toFixed(1),"/10")))})))),(0,i.createElement)("div",{className:"o-review__right"},0<u.pros.length&&(0,i.createElement)("div",{className:"o-review__right_pros"},(0,i.createElement)("h4",null,(0,l.__)("Pros","otter-blocks")),u.pros.map(((e,t)=>(0,i.createElement)("div",{className:"o-review__right_pros_item",key:t},r.check,(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Why do you like the product?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...u.pros];o[e]=t,b({pros:o})})(t,e),tagName:"p"}))))),0<u.cons.length&&(0,i.createElement)("div",{className:"o-review__right_cons"},(0,i.createElement)("h4",null,(0,l.__)("Cons","otter-blocks")),u.cons.map(((e,t)=>(0,i.createElement)("div",{className:"o-review__right_cons_item",key:t},r.close,(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("What can be improved?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...u.cons];o[e]=t,b({cons:o})})(t,e),tagName:"p"})))))),(0<(null==y||null===(d=y.links)||void 0===d?void 0:d.length)||0<u.links.length)&&(0,i.createElement)("div",{className:"o-review__footer"},(0,i.createElement)("span",{className:"o-review__footer_label"},(0,l.__)("Buy this product","otter-blocks")),(0,i.createElement)("div",{className:"o-review__footer_buttons"},((null==y?void 0:y.links)||u.links).map(((e,t)=>(0,i.createElement)(c.RichText,{key:t,placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,disabled:0<(null==y?void 0:y.links),onChange:e=>((e,t)=>{const o=[...u.links];o[e]={...o[e],...t},b({links:o})})(t,{label:e}),tagName:"span"})))))))},save:()=>null,example:{attributes:{}}});var Il=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-columns","title":"Section","category":"themeisle-blocks","description":"Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like. Powered by Otter.","keywords":["advanced columns","layout","section"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"columns":{"type":"number"},"layout":{"type":"string"},"layoutTablet":{"type":"string","default":"equal"},"layoutMobile":{"type":"string","default":"equal"},"padding":{"type":"object"},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"margin":{"type":"object"},"marginTablet":{"type":"object"},"marginMobile":{"type":"object"},"columnsWidth":{"type":"number"},"horizontalAlign":{"type":"string","default":"unset"},"columnsHeight":{"type":"string","default":"auto"},"columnsHeightCustom":{"type":"number"},"columnsHeightCustomTablet":{"type":"number"},"columnsHeightCustomMobile":{"type":"number"},"verticalAlign":{"type":"string","default":"unset"},"backgroundType":{"type":"string","default":"color"},"backgroundColor":{"type":"string"},"backgroundImage":{"type":"object"},"backgroundAttachment":{"type":"string","default":"scroll"},"backgroundPosition":{"type":"object"},"backgroundRepeat":{"type":"string","default":"repeat"},"backgroundSize":{"type":"string","default":"auto"},"backgroundGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayOpacity":{"type":"number","default":50},"backgroundOverlayType":{"type":"string","default":"color"},"backgroundOverlayColor":{"type":"string"},"backgroundOverlayImage":{"type":"object"},"backgroundOverlayAttachment":{"type":"string","default":"scroll"},"backgroundOverlayPosition":{"type":"object"},"backgroundOverlayRepeat":{"type":"string","default":"repeat"},"backgroundOverlaySize":{"type":"string","default":"auto"},"backgroundOverlayGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayFilterBlur":{"type":"number","default":0},"backgroundOverlayFilterBrightness":{"type":"number","default":10},"backgroundOverlayFilterContrast":{"type":"number","default":10},"backgroundOverlayFilterGrayscale":{"type":"number","default":0},"backgroundOverlayFilterHue":{"type":"number","default":0},"backgroundOverlayFilterSaturate":{"type":"number","default":10},"backgroundOverlayBlend":{"type":"string","default":"normal"},"border":{"type":"object"},"borderColor":{"type":"string","default":"#000000"},"borderRadius":{"type":"object"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":0},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"dividerTopType":{"type":"string","default":"none"},"dividerTopColor":{"type":"string","default":"#000000"},"dividerTopWidth":{"type":"number"},"dividerTopWidthTablet":{"type":"number"},"dividerTopWidthMobile":{"type":"number"},"dividerTopHeight":{"type":"number"},"dividerTopHeightTablet":{"type":"number"},"dividerTopHeightMobile":{"type":"number"},"dividerTopInvert":{"type":"boolean","default":false},"dividerBottomType":{"type":"string","default":"none"},"dividerBottomColor":{"type":"string","default":"#000000"},"dividerBottomWidth":{"type":"number"},"dividerBottomWidthTablet":{"type":"number"},"dividerBottomWidthMobile":{"type":"number"},"dividerBottomHeight":{"type":"number"},"dividerBottomHeightTablet":{"type":"number"},"dividerBottomHeightMobile":{"type":"number"},"dividerBottomInvert":{"type":"boolean","default":false},"hide":{"type":"boolean","default":false},"hideTablet":{"type":"boolean","default":false},"hideMobile":{"type":"boolean","default":false},"reverseColumnsTablet":{"type":"boolean","default":false},"reverseColumnsMobile":{"type":"boolean","default":false},"columnsHTMLTag":{"type":"string","default":"div"},"isSynced":{"type":"array"}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-advanced-columns-editor","style":"otter-advanced-columns-style"}');const Al={align:{type:"string"},id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},horizontalAlign:{type:"string",default:"unset"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},Ol=e=>{let{type:t,front:o,style:l,fill:a,invert:n,width:r,height:c}=e;return"none"!==l&&(0,i.createElement)("div",{className:g()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&r?{transform:r?`scaleX( ${r/100} )`:""}:{}},"bigTriangle"===l&&!1===n&&(0,i.createElement)(s.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===n&&(0,i.createElement)(s.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===n&&(0,i.createElement)(s.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===n&&(0,i.createElement)(s.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,i.createElement)(s.SVG,{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===n&&(0,i.createElement)(s.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===n&&(0,i.createElement)(s.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,i.createElement)(s.SVG,{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},Fl=e=>{let{type:t,front:o,style:l,fill:a,invert:n,width:r,height:c}=e;return"none"!==l&&(0,i.createElement)("div",{className:g()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&r?{transform:r?`scaleX( ${r/100} )`:""}:{}},"bigTriangle"===l&&!1===n&&(0,i.createElement)(s.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,i.createElement)(s.Path,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===n&&(0,i.createElement)(s.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)(s.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===n&&(0,i.createElement)(s.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)(s.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===n&&(0,i.createElement)(s.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)(s.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,i.createElement)(s.SVG,{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)(s.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===n&&(0,i.createElement)(s.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,i.createElement)(s.Path,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===n&&(0,i.createElement)(s.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,i.createElement)(s.Path,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,i.createElement)(s.SVG,{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)(s.Path,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},Gl=[{attributes:Al,supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,n,r,s,d;if("color"===t.backgroundType&&(a={background:t.backgroundColor}),"image"===t.backgroundType&&(a={backgroundImage:`url( '${t.backgroundImageURL}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType){let e;e="linear"===t.backgroundGradientType?`${t.backgroundGradientAngle}deg`:`at ${t.backgroundGradientPosition}`,a={background:`${t.backgroundGradientType}-gradient( ${e}, ${t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientFirstLocation}%, ${t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientSecondLocation}% )`}}"linked"===t.borderType&&(r={borderWidth:`${t.border}px`,borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(r={borderTopWidth:`${t.borderTop}px`,borderRightWidth:`${t.borderRight}px`,borderBottomWidth:`${t.borderBottom}px`,borderLeftWidth:`${t.borderLeft}px`,borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(s={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(s={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(d={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${P()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const m={...a,...r,...s,...d,justifyContent:t.horizontalAlign};if("color"===t.backgroundOverlayType&&(n={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(n={backgroundImage:`url( '${t.backgroundOverlayImageURL}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType){let e;e="linear"===t.backgroundOverlayGradientType?`${t.backgroundOverlayGradientAngle}deg`:`at ${t.backgroundOverlayGradientPosition}`,n={background:`${t.backgroundOverlayGradientType}-gradient( ${e}, ${t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientFirstLocation}%, ${t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientSecondLocation}% )`,opacity:t.backgroundOverlayOpacity/100}}const u={...n,mixBlendMode:t.backgroundOverlayBlend,filter:`blur( ${t.backgroundOverlayFilterBlur/10}px ) brightness( ${t.backgroundOverlayFilterBrightness/10} ) contrast( ${t.backgroundOverlayFilterContrast/10} ) grayscale( ${t.backgroundOverlayFilterGrayscale/100} ) hue-rotate( ${t.backgroundOverlayFilterHue}deg ) saturate( ${t.backgroundOverlayFilterSaturate/10} )`};let b={};t.columnsWidth&&(b={maxWidth:t.columnsWidth+"px"});const p=t.hide?"":`has-desktop-${t.layout}-layout`,h=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,k=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,v=g()(o,`has-${t.columns}-columns`,p,h,k,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},`has-${t.lcolumnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,i.createElement)(l,{className:v,id:t.id,style:m},(0,i.createElement)("div",{className:"wp-themeisle-block-overlay",style:u}),(0,i.createElement)(Ol,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,i.createElement)("div",{className:"innerblocks-wrap",style:b},(0,i.createElement)(c.InnerBlocks.Content,null)),(0,i.createElement)(Ol,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:Al,supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,n,r,s,d;if("color"===t.backgroundType&&(a={background:t.backgroundColor}),"image"===t.backgroundType&&(a={backgroundImage:`url( '${t.backgroundImageURL}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType){let e;e="linear"===t.backgroundGradientType?`${t.backgroundGradientAngle}deg`:`at ${t.backgroundGradientPosition}`,a={background:`${t.backgroundGradientType}-gradient( ${e}, ${t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientFirstLocation}%, ${t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientSecondLocation}% )`}}"linked"===t.borderType&&(r={borderWidth:`${t.border}px`,borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(r={borderTopWidth:`${t.borderTop}px`,borderRightWidth:`${t.borderRight}px`,borderBottomWidth:`${t.borderBottom}px`,borderLeftWidth:`${t.borderLeft}px`,borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(s={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(s={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(d={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${P()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const m={...a,...r,...s,...d,justifyContent:t.horizontalAlign};if("color"===t.backgroundOverlayType&&(n={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(n={backgroundImage:`url( '${t.backgroundOverlayImageURL}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType){let e;e="linear"===t.backgroundOverlayGradientType?`${t.backgroundOverlayGradientAngle}deg`:`at ${t.backgroundOverlayGradientPosition}`,n={background:`${t.backgroundOverlayGradientType}-gradient( ${e}, ${t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientFirstLocation}%, ${t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientSecondLocation}% )`,opacity:t.backgroundOverlayOpacity/100}}const u={...n,mixBlendMode:t.backgroundOverlayBlend};let b={};t.columnsWidth&&(b={maxWidth:t.columnsWidth+"px"});const p=t.hide?"":`has-desktop-${t.layout}-layout`,h=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,k=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,v=g()(o,`has-${t.columns}-columns`,p,h,k,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,i.createElement)(l,{className:v,id:t.id,style:m},(0,i.createElement)("div",{className:"wp-themeisle-block-overlay",style:u}),(0,i.createElement)(Ol,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,i.createElement)("div",{className:"innerblocks-wrap",style:b},(0,i.createElement)(c.InnerBlocks.Content,null)),(0,i.createElement)(Ol,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...Al,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag,a=t.hide?"":`has-desktop-${t.layout}-layout`,n=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,r=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,s=g()(o,`has-${t.columns}-columns`,a,n,r,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,i.createElement)(l,{className:s,id:t.id},(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,i.createElement)(Fl,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,i.createElement)("div",{className:"innerblocks-wrap"},(0,i.createElement)(c.InnerBlocks.Content,null)),(0,i.createElement)(Fl,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...Al,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},migrate:e=>{let t="",o="";if("gradient"===e.backgroundType){let o="";"linear"===e.backgroundGradientType&&(o=`${e.backgroundGradientAngle}deg, `),t=`${e.backgroundGradientType}-gradient(${o}${P()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${P()(e.backgroundGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}%)`}if("gradient"===e.backgroundOverlayType){let t="";"linear"===e.backgroundOverlayGradientType&&(t=`${e.backgroundOverlayGradientAngle}deg, `),o=`${e.backgroundOverlayGradientType}-gradient(${t}${P()(e.backgroundOverlayGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientFirstLocation}%, ${P()(e.backgroundOverlayGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientSecondLocation}%)`}return{...{...(0,H.omit)(e,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition","backgroundOverlayGradientFirstColor","backgroundOverlayGradientFirstLocation","backgroundOverlayGradientSecondColor","backgroundOverlayGradientSecondLocation","backgroundOverlayGradientType","backgroundOverlayGradientAngle","backgroundOverlayGradientPosition"]),backgroundGradient:t,backgroundOverlayGradient:o}}},isEligible:e=>"gradient"===e.backgroundType&&void 0!==e.backgroundGradientFirstColor||"gradient"===e.backgroundOverlayType&&void 0!==e.backgroundOverlayGradientFirstColor,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag,a=t.hide?"":`has-desktop-${t.layout}-layout`,n=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,r=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,s=g()(o,`has-${t.columns}-columns`,a,n,r,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,i.createElement)(l,{className:s,id:t.id},(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,i.createElement)(Fl,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,i.createElement)("div",{className:"innerblocks-wrap"},(0,i.createElement)(c.InnerBlocks.Content,null)),(0,i.createElement)(Fl,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...(0,H.omit)(Al,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition","backgroundOverlayGradientFirstColor","backgroundOverlayGradientFirstLocation","backgroundOverlayGradientSecondColor","backgroundOverlayGradientSecondLocation","backgroundOverlayGradientType","backgroundOverlayGradientAngle","backgroundOverlayGradientPosition"]),paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},backgroundGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},backgroundOverlayGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},migrate:e=>{const t={},o={},l={},a={},n={},r={},i={},c={};let s={},d={},m={},u={};"unlinked"===e.paddingType?(t.top=(0,H.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,H.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,H.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,H.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,H.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,H.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,H.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,H.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,H.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,H.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,H.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,H.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(a.top=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px",a.bottom=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px"):(a.top=(0,H.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",a.bottom=(0,H.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px"),"linked"===e.marginTypeTablet?(n.top=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",n.bottom=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(n.top=(0,H.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",n.bottom=(0,H.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px"),"linked"===e.marginTypeMobile?(r.top=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",r.bottom=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(r.top=(0,H.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",r.bottom=(0,H.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px"),"unlinked"===e.borderType?(i.top=(0,H.isUndefined)(e.borderTop)?null:e.borderTop+"px",i.bottom=(0,H.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",i.left=(0,H.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",i.right=(0,H.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(i.top=(0,H.isUndefined)(e.border)?null:e.border+"px",i.bottom=(0,H.isUndefined)(e.border)?null:e.border+"px",i.left=(0,H.isUndefined)(e.border)?null:e.border+"px",i.right=(0,H.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(c.top=(0,H.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",c.bottom=(0,H.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",c.left=(0,H.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",c.right=(0,H.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(c.top=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",c.bottom=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",c.left=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",c.right=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px"),void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID&&(s={id:e.backgroundImageID,url:e.backgroundImageURL}),void 0!==e.backgroundOverlayImageURL&&void 0!==e.backgroundOverlayImageID&&(d={id:e.backgroundOverlayImageID,url:e.backgroundOverlayImageURL});const b={"top left":{x:"0.00",y:"0.00"},"top center":{x:"0.50",y:"0.00"},"top right":{x:"1.00",y:"0.00"},"center left":{x:"0.00",y:"0.50"},"center center":{x:"0.50",y:"0.50"},"center right":{x:"1.00",y:"0.50"},"bottom left":{x:"0.00",y:"1.00"},"bottom center":{x:"0.50",y:"1.00"},"bottom right":{x:"1.00",y:"1.00"}};return void 0!==e.backgroundPosition&&(m=b[e.backgroundPosition]),void 0!==e.backgroundOverlayPosition&&(u=b[e.backgroundOverlayPosition]),{...{...(0,H.omit)(e,["columnsGap","paddingType","paddingTypeTablet","paddingTypeMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","marginType","marginTypeTablet","marginTypeMobile","marginTop","marginTopTablet","marginTopMobile","marginBottom","marginBottomTablet","marginBottomMobile","borderType","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"]),...!(0,He.FH)(t)&&{padding:t},...!(0,He.FH)(o)&&{paddingTablet:o},...!(0,He.FH)(l)&&{paddingMobile:l},...!(0,He.FH)(a)&&{margin:a},...!(0,He.FH)(n)&&{marginTablet:n},...!(0,He.FH)(r)&&{marginMobile:r},...!(0,He.FH)(i)&&{border:i},...!(0,He.FH)(c)&&{borderRadius:c},...!(0,He.FH)(s)&&{backgroundImage:s},...!(0,He.FH)(m)&&{backgroundPosition:m},...!(0,He.FH)(d)&&{backgroundOverlayImage:d},...!(0,He.FH)(u)&&{backgroundOverlayPosition:u}}}},isEligible:e=>["padding","paddingTablet","paddingMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","margin","marginTablet","marginMobile","marginTop","marginTopTablet","marginTopMobile","marginBottom","marginBottomTablet","marginBottomMobile","borderType","border","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadius","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"].some((t=>!(0,H.isUndefined)(e[t])&&("number"==typeof e[t]||null===typeof e[t])))||void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID||void 0!==e.backgroundOverlayImageURL&&void 0!==e.backgroundOverlayImageID||void 0!==e.backgroundPosition&&"object"!=typeof e.backgroundPosition||void 0!==e.backgroundOverlayPosition&&"object"!=typeof e.backgroundOverlayPosition||void 0!==e.columnsGap,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag,a=t.hide?"":`has-desktop-${t.layout}-layout`,n=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,r=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,s=g()(o,`has-${t.columns}-columns`,a,n,r,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,i.createElement)(l,{className:s,id:t.id},(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,i.createElement)(Fl,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,i.createElement)("div",{className:"innerblocks-wrap"},(0,i.createElement)(c.InnerBlocks.Content,null)),(0,i.createElement)(Fl,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}}];var $l=Gl,Dl={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"],collapsedRows:["100","100"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"],collapsedRows:["100","100","100"]},4:{equal:["25","25","25","25"],twoColumnGrid:["100","100","100","100"],collapsedRows:["100","100","100","100"]},5:{equal:["20","20","20","20","20"],collapsedRows:["100","100","100","100","100"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"],twoColumnGrid:["100","100","100","100","100","100"],threeColumnGrid:["100","100","100","100","100","100"],collapsedRows:["100","100","100","100","100","100"]}},Zl=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(c.BlockVerticalAlignmentToolbar,{onChange:e=>t.verticalAlign===e?o({verticalAlign:"unset"}):o({verticalAlign:e}),value:"flex-start"===t.verticalAlign?"top":"flex-end"===t.verticalAlign?"bottom":t.verticalAlign}))},Wl=e=>{let{label:t,onClick:o,layout:a,layoutTablet:n,layoutMobile:c,columns:d}=e;const m=(0,A.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]);let u;return"Desktop"===m?u=a:"Tablet"===m?u=n:"Mobile"===m&&(u=c),(0,i.createElement)($.Z,{label:t,className:"wp-block-themeisle-blocks-advanced-columns-layout-control"},1===d&&(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Single Row","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,r.colsFull)()))||2===d&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Equal","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,r.cols2Equal)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("1:2","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===u}),onClick:()=>o("oneTwo")},(0,r.cols12)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("2:1","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===u}),onClick:()=>o("twoOne")},(0,r.cols21)())),("Mobile"==m||"Tablet"==m)&&(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===u}),onClick:()=>o("collapsedRows")},(0,r.rowsCollapsed)())))||3===d&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Equal","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,r.cols3Equal)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("1:1:2","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===u}),onClick:()=>o("oneOneTwo")},(0,r.cols112)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("2:1:1","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===u}),onClick:()=>o("twoOneOne")},(0,r.cols211)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("1:2:1","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===u}),onClick:()=>o("oneTwoOne")},(0,r.cols121)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("1:3:1","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===u}),onClick:()=>o("oneThreeOne")},(0,r.cols131)())),("Mobile"==m||"Tablet"==m)&&(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===u}),onClick:()=>o("collapsedRows")},(0,r.rowsCollapsed)())))||4===d&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Equal","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,r.cols4Equal)())),("Mobile"==m||"Tablet"==m)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Two Column Grid","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===u}),onClick:()=>o("twoColumnGrid")},(0,r.colsCollapsed)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===u}),onClick:()=>o("collapsedRows")},(0,r.rowsCollapsed)()))))||5===d&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Equal","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,r.cols5Equal)())),("Mobile"==m||"Tablet"==m)&&(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===u}),onClick:()=>o("collapsedRows")},(0,r.rowsCollapsed)())))||6===d&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Equal","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,r.cols6Equal)())),("Mobile"==m||"Tablet"==m)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Two Column Grid","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===u}),onClick:()=>o("twoColumnGrid")},(0,r.cols2Grid)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Three Column Grid","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===u}),onClick:()=>o("threeColumnGrid")},(0,r.cols3Grid)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===u}),onClick:()=>o("collapsedRows")},(0,r.rowsCollapsed)())))))},Ul=e=>{let{attributes:t,setAttributes:o,getValue:a,updateColumnsWidth:n,dividerViewType:r,setDividerViewType:d,changeColumnsNumbers:m}=e;const u=(0,A.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[b,p]=(0,i.useState)("layout");let k=()=>{var e,o,l;switch(u){case"Desktop":return t.columnsHeightCustom;case"Tablet":return null!==(e=t.columnsHeightCustomTablet)&&void 0!==e?e:t.columnsHeightCustom;case"Mobile":return null!==(o=null!==(l=t.columnsHeightCustomMobile)&&void 0!==l?l:t.columnsHeightCustomTablet)&&void 0!==o?o:t.columnsHeightCustom;default:return}};k=k();const v="top"==r?t.dividerTopType:"bottom"==r?t.dividerBottomType:void 0,y=(e,t)=>{switch(t){case"Desktop":o({hide:e});break;case"Tablet":o({hideTablet:e});break;case"Mobile":o({hideMobile:e})}},_=(e,t)=>{"Tablet"===t?o({reverseColumnsTablet:e}):"Mobile"===t&&o({reverseColumnsMobile:e})};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{className:"o-section-header-panel"},(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"layout"===b}),onClick:()=>p("layout")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"editor-table"}),(0,l.__)("Layout","otter-blocks"))),(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"style"===b}),onClick:()=>p("style")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"advanced"===b}),onClick:()=>p("advanced")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"layout"===b&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Columns & Layout","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Columns","otter-blocks"),value:t.columns,onChange:e=>{6>=e&&o({layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),6<e&&o({layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),1>=e&&o({layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),m(e)},min:1,max:6}),(0,i.createElement)(Wl,{label:(0,l.__)("Layout","otter-blocks"),columns:t.columns,layout:t.layout,layoutTablet:t.layoutTablet,layoutMobile:t.layoutMobile,onClick:e=>{switch(u){case"Desktop":o({layout:e}),n(t.columns,e);break;case"Tablet":o({layoutTablet:e});break;case"Mobile":o({layoutMobile:e})}}})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Spacing","otter-blocks"),initialOpen:!1},(0,i.createElement)($.Z,{label:(0,l.__)("Screen Type","otter-blocks"),className:"otter-section-padding-responsive-control"},(0,i.createElement)(h.Z,{field:(()=>{switch(u){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{switch(u){case"Desktop":return a("padding");case"Tablet":return(0,H.merge)({...a("padding")},a("paddingTablet"));case"Mobile":return(0,H.merge)({...a("padding")},a("paddingTablet"),a("paddingMobile"));default:return}})(),inputProps:{min:0,max:500},onChange:e=>{switch((0,He.CJ)(e)&&(e=void 0),u){case"Desktop":return o({padding:e});case"Tablet":return o({paddingTablet:(0,He.cg)(e,t.padding)});case"Mobile":return o({paddingMobile:(0,He.cg)(e,{...t.padding,...t.paddingTablet})});default:return}}})),(0,i.createElement)(h.Z,{field:(()=>{switch(u){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{switch(u){case"Desktop":return a("margin");case"Tablet":return(0,H.merge)({...a("margin")},a("marginTablet"));case"Mobile":return(0,H.merge)({...a("margin")},a("marginTablet"),a("marginMobile"));default:return}})(),inputProps:{min:-500,max:500},sides:["top","bottom"],onChange:e=>{switch((0,He.CJ)(e)&&(e=void 0),"object"==typeof e&&(e=Object.fromEntries(Object.entries(e).filter((e=>{let[t,o]=e;return null!==o})))),u){case"Desktop":return o({margin:e});case"Tablet":return o({marginTablet:(0,He.cg)(e,t.margin)});case"Mobile":return o({marginMobile:(0,He.cg)(e,{...t.margin,...t.marginTablet})});default:return}}})))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Section Structure","otter-blocks"),initialOpen:!1},(0,i.createElement)(h.Z,{field:"columnsWidth",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Maximum Content Width","otter-blocks"),value:a("columnsWidth")||"",allowReset:!0,onChange:e=>{(0<=e&&2400>=e||void 0===e)&&o({columnsWidth:e})},step:.1,min:0,max:2400})),a("columnsWidth")&&(0,i.createElement)(h.Z,{field:"horizontalAlign",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.BaseControl,{label:(0,l.__)("Horizontal Align","otter-blocks")},(0,i.createElement)(re.Z,{value:t.horizontalAlign,options:[{icon:"editor-alignleft",label:(0,l.__)("Left","otter-blocks"),value:"flex-start"},{icon:"editor-aligncenter",label:(0,l.__)("Center","otter-blocks"),value:"center"},{icon:"editor-alignright",label:(0,l.__)("Right","otter-blocks"),value:"flex-end"}],onChange:e=>(e=>{if(t.horizontalAlign===e)return o({horizontalAlign:"unset"});o({horizontalAlign:e})})(e),hideLabels:!0}))),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Minimum Height","otter-blocks"),value:t.columnsHeight,options:[{label:(0,l.__)("Default","otter-blocks"),value:"auto"},{label:(0,l.__)("Fit to Screen","otter-blocks"),value:"100vh"},{label:(0,l.__)("Custom","otter-blocks"),value:"custom"}],onChange:e=>o({columnsHeight:e})}),"custom"===t.columnsHeight&&(0,i.createElement)($.Z,{label:(0,l.__)("Custom Height","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:k||"",onChange:e=>{switch(u){case"Desktop":o({columnsHeightCustom:e});break;case"Tablet":o({columnsHeightCustomTablet:e});break;case"Mobile":o({columnsHeightCustomMobile:e})}},step:.1,min:0,max:1e3}))))||"style"===b&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Background Settings","otter-blocks")},(0,i.createElement)(Je,{backgroundType:t.backgroundType,backgroundColor:t.backgroundColor,image:t.backgroundImage,gradient:t.backgroundGradient,focalPoint:t.backgroundPosition,backgroundAttachment:t.backgroundAttachment,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize,changeBackgroundType:e=>o({backgroundType:e}),changeImage:e=>{o({backgroundImage:(0,H.pick)(e,["id","url"])})},removeImage:()=>o({backgroundImage:void 0}),changeColor:e=>o({backgroundColor:e}),changeGradient:e=>o({backgroundGradient:e}),changeBackgroundAttachment:e=>o({backgroundAttachment:e}),changeBackgroundRepeat:e=>o({backgroundRepeat:e}),changeFocalPoint:e=>o({backgroundPosition:e}),changeBackgroundSize:e=>o({backgroundSize:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Background Overlay","otter-blocks"),initialOpen:!1},(0,i.createElement)(Je,{backgroundType:t.backgroundOverlayType,backgroundColor:t.backgroundOverlayColor,image:t.backgroundOverlayImage,gradient:t.backgroundOverlayGradient,focalPoint:t.backgroundOverlayPosition,backgroundAttachment:t.backgroundOverlayAttachment,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,changeBackgroundType:e=>o({backgroundOverlayType:e}),changeImage:e=>{o({backgroundOverlayImage:(0,H.pick)(e,["id","url"])})},removeImage:()=>o({backgroundOverlayImage:void 0}),changeColor:e=>o({backgroundOverlayColor:e}),changeGradient:e=>o({backgroundOverlayGradient:e}),changeBackgroundAttachment:e=>o({backgroundOverlayAttachment:e}),changeBackgroundRepeat:e=>o({backgroundOverlayRepeat:e}),changeFocalPoint:e=>o({backgroundOverlayPosition:e}),changeBackgroundSize:e=>o({backgroundOverlaySize:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Overlay Opacity","otter-blocks"),value:t.backgroundOverlayOpacity,onChange:e=>o({backgroundOverlayOpacity:e}),min:0,max:100}),(0,i.createElement)(G.Z,{label:(0,l.__)("CSS Filters","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.backgroundOverlayFilterBlur,onChange:e=>o({backgroundOverlayFilterBlur:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Brightness","otter-blocks"),value:t.backgroundOverlayFilterBrightness,onChange:e=>o({backgroundOverlayFilterBrightness:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Contrast","otter-blocks"),value:t.backgroundOverlayFilterContrast,onChange:e=>o({backgroundOverlayFilterContrast:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Grayscale","otter-blocks"),value:t.backgroundOverlayFilterGrayscale,onChange:e=>o({backgroundOverlayFilterGrayscale:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Hue","otter-blocks"),value:t.backgroundOverlayFilterHue,onChange:e=>o({backgroundOverlayFilterHue:e}),min:0,max:360}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Saturation","otter-blocks"),value:t.backgroundOverlayFilterSaturate,onChange:e=>o({backgroundOverlayFilterSaturate:e}),min:0,max:100})),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Blend Mode","otter-blocks"),value:t.backgroundOverlayBlend,options:[{label:(0,l.__)("Normal","otter-blocks"),value:"normal"},{label:(0,l.__)("Multiply","otter-blocks"),value:"multiply"},{label:(0,l.__)("Screen","otter-blocks"),value:"screen"},{label:(0,l.__)("Overlay","otter-blocks"),value:"overlay"},{label:(0,l.__)("Darken","otter-blocks"),value:"darken"},{label:(0,l.__)("Lighten","otter-blocks"),value:"lighten"},{label:(0,l.__)("Color Dodge","otter-blocks"),value:"color-dodge"},{label:(0,l.__)("Color Burn","otter-blocks"),value:"color-burn"},{label:(0,l.__)("Hard Light","otter-blocks"),value:"hard-light"},{label:(0,l.__)("Soft Light","otter-blocks"),value:"soft-light"},{label:(0,l.__)("Difference","otter-blocks"),value:"difference"},{label:(0,l.__)("Exclusion","otter-blocks"),value:"exclusion"},{label:(0,l.__)("Hue","otter-blocks"),value:"hue"},{label:(0,l.__)("Saturation","otter-blocks"),value:"saturation"},{label:(0,l.__)("Color","otter-blocks"),value:"color"},{label:(0,l.__)("Luminosity","otter-blocks"),value:"luminosity"}],onChange:e=>o({backgroundOverlayBlend:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1},(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Border Width","otter-blocks"),values:t.border,inputProps:{min:0,max:500},units:[{value:"px",label:"px"}],onChange:e=>{(0,He.CJ)(e)&&(e=void 0),o({border:e})}}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}),(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:t.borderRadius,inputProps:{min:0,max:500},units:[{value:"px",label:"px"},{value:"%",label:"%"}],id:"o-border-raduis-box",onChange:e=>{(0,He.CJ)(e)&&(e=void 0),o({borderRadius:e})}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:t.boxShadow,onChange:()=>o({boxShadow:!t.boxShadow})}),t.boxShadow&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,i.createElement)(G.Z,{label:(0,l.__)("Border Shadow","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Shape Divider","otter-blocks"),initialOpen:!1,className:"wp-block-themeisle-shape-divider"},(0,i.createElement)(s.ButtonGroup,null,(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:"top"!==r,isPrimary:"top"===r,onClick:()=>d("top")},(0,l.__)("Top","otter-blocks")),(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:"bottom"!==r,isPrimary:"bottom"===r,onClick:()=>d("bottom")},(0,l.__)("Bottom","otter-blocks"))),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Type","otter-blocks"),value:v,options:[{label:(0,l.__)("None","otter-blocks"),value:"none"},{label:(0,l.__)("Triangle","otter-blocks"),value:"bigTriangle"},{label:(0,l.__)("Right Curve","otter-blocks"),value:"rightCurve"},{label:(0,l.__)("Curve","otter-blocks"),value:"curve"},{label:(0,l.__)("Slant","otter-blocks"),value:"slant"},{label:(0,l.__)("Cloud","otter-blocks"),value:"cloud"}],onChange:e=>{"top"==r?o({dividerTopType:e}):"bottom"==r&&o({dividerBottomType:e})}}),"none"!==v&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:"top"==r?t.dividerTopColor:"bottom"==r?t.dividerBottomColor:void 0,onColorChange:e=>{"top"==r?o({dividerTopColor:e}):"bottom"==r&&o({dividerBottomColor:e})}}),(0,i.createElement)($.Z,{label:(0,l.__)("Width","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:(()=>{var e,o,l,a,n,i,c,s,d,m,b,p;if("top"==r)switch(u){case"Desktop":return null!==(e=t.dividerTopWidth)&&void 0!==e?e:100;case"Tablet":return null!==(o=null!==(l=t.dividerTopWidthTablet)&&void 0!==l?l:t.dividerTopWidth)&&void 0!==o?o:100;case"Mobile":return null!==(a=null!==(n=null!==(i=t.dividerTopWidthMobile)&&void 0!==i?i:t.dividerTopWidthTablet)&&void 0!==n?n:t.dividerTopWidth)&&void 0!==a?a:100}else if("bottom"==r)switch(u){case"Desktop":return null!==(c=t.dividerBottomWidth)&&void 0!==c?c:100;case"Tablet":return null!==(s=null!==(d=t.dividerBottomWidthTablet)&&void 0!==d?d:t.dividerBottomWidth)&&void 0!==s?s:100;case"Mobile":return null!==(m=null!==(b=null!==(p=t.dividerBottomWidthMobile)&&void 0!==p?p:t.dividerBottomWidthTablet)&&void 0!==b?b:t.dividerBottomWidth)&&void 0!==m?m:100}})(),onChange:e=>{if("top"==r)switch(u){case"Desktop":o({dividerTopWidth:e});break;case"Tablet":o({dividerTopWidthTablet:e});break;case"Mobile":o({dividerTopWidthMobile:e})}else if("bottom"==r)switch(u){case"Desktop":o({dividerBottomWidth:e});break;case"Tablet":o({dividerBottomWidthTablet:e});break;case"Mobile":o({dividerBottomWidthMobile:e})}},step:.1,min:0,max:500})),(0,i.createElement)($.Z,{label:(0,l.__)("Height","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:(()=>{if("top"==r)switch(u){case"Desktop":return t.dividerTopHeight;case"Tablet":return t.dividerTopHeightTablet;case"Mobile":return t.dividerTopHeightMobile}else if("bottom"==r)switch(u){case"Desktop":return t.dividerBottomHeight;case"Tablet":return t.dividerBottomHeightTablet;case"Mobile":return t.dividerBottomHeightMobile}})(),onChange:e=>{if("top"==r)switch(u){case"Desktop":o({dividerTopHeight:e});break;case"Tablet":o({dividerTopHeightTablet:e});break;case"Mobile":o({dividerTopHeightMobile:e})}else if("bottom"==r)switch(u){case"Desktop":o({dividerBottomHeight:e});break;case"Tablet":o({dividerBottomHeightTablet:e});break;case"Mobile":o({dividerBottomHeightMobile:e})}},step:.1,min:0,max:500})),"curve"!==v&&"cloud"!==v&&(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Invert Shape Divider","otter-blocks"),checked:(()=>{switch(r){case"top":return t.dividerTopInvert;case"bottom":return t.dividerBottomInvert;default:return}})(),onChange:()=>{switch(r){case"top":o({dividerTopInvert:!t.dividerTopInvert});break;case"bottom":o({dividerBottomInvert:!t.dividerBottomInvert})}}}))))||"advanced"===b&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Responsive","otter-blocks")},(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Hide this section on Desktop devices?","otter-blocks"),checked:t.hide,onChange:e=>y(e,"Desktop")}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Hide this section on Tablet devices?","otter-blocks"),checked:t.hideTablet,onChange:e=>y(e,"Tablet")}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Hide this section on Mobile devices?","otter-blocks"),checked:t.hideMobile,onChange:e=>y(e,"Mobile")}),(0,i.createElement)("hr",null),!t.hideTablet&&"collapsedRows"===t.layoutTablet&&(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Reverse Columns in Tablet devices?","otter-blocks"),checked:t.reverseColumnsTablet,onChange:e=>_(e,"Tablet")}),!t.hideMobile&&"collapsedRows"===t.layoutMobile&&(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Reverse Columns in Mobile devices?","otter-blocks"),checked:t.reverseColumnsMobile,onChange:e=>_(e,"Mobile")})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Section Settings","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("HTML Tag","otter-blocks"),value:t.columnsHTMLTag,options:[{label:(0,l.__)("Default (div)","otter-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>o({columnsHTMLTag:e})})))),(0,i.createElement)(W,{value:t.id,onChange:e=>o({id:e})}))},jl=e=>{let{type:t,front:o,style:l,fill:a,invert:n,width:r,height:c}=e;return"none"!==l&&(0,i.createElement)("div",{className:g()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&r?{transform:r?`scaleX( ${r/100} )`:""}:{}},"bigTriangle"===l&&!1===n&&(0,i.createElement)("svg",{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,i.createElement)("path",{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===n&&(0,i.createElement)("svg",{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)("path",{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===n&&(0,i.createElement)("svg",{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)("path",{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===n&&(0,i.createElement)("svg",{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)("path",{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,i.createElement)("svg",{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)("path",{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===n&&(0,i.createElement)("svg",{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,i.createElement)("path",{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===n&&(0,i.createElement)("svg",{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,i.createElement)("path",{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,i.createElement)("svg",{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)("path",{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))};const{attributes:ql}=Il;var Kl=[{name:"themeisle-blocks/section-columns-1",description:(0,l.__)("Single column","otter-blocks"),icon:r.colsFull,title:(0,l.__)("Full","otter-blocks"),attributes:{columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"100"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal",description:(0,l.__)("2 equal columns","otter-blocks"),icon:r.cols2Equal,title:(0,l.__)("1:1","otter-blocks"),attributes:{columns:2,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"50"}],["themeisle-blocks/advanced-column",{columnWidth:"50"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-1-2",description:(0,l.__)("1:2 columns","otter-blocks"),icon:r.cols12,title:(0,l.__)("1:2","otter-blocks"),attributes:{columns:2,layout:"oneTwo",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"33.34"}],["themeisle-blocks/advanced-column",{columnWidth:"66.66"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-2-1",description:(0,l.__)("2:1 columns","otter-blocks"),icon:r.cols21,title:(0,l.__)("2:1","otter-blocks"),attributes:{columns:2,layout:"twoOne",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"66.66"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal-3",description:(0,l.__)("3 equal columns","otter-blocks"),icon:r.cols3Equal,title:(0,l.__)("1:1:1","otter-blocks"),attributes:{columns:3,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"33.33"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-1-1-2",description:(0,l.__)("1:1:2 columns","otter-blocks"),icon:r.cols112,title:(0,l.__)("1:1:2","otter-blocks"),attributes:{columns:3,layout:"oneOneTwo",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"50"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-2-1-1",description:(0,l.__)("2:1:1 columns","otter-blocks"),icon:r.cols211,title:(0,l.__)("2:1:1","otter-blocks"),attributes:{columns:3,layout:"twoOneOne",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"50"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal-4",description:(0,l.__)("4 equal columns","otter-blocks"),icon:r.cols4Equal,title:(0,l.__)("1:1:1:1","otter-blocks"),attributes:{columns:4,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}]],scope:["block"]}];const{name:Jl}=Il;(0,a.registerBlockType)(Jl,{...Il,title:(0,l.__)("Section","otter-blocks"),description:(0,l.__)("Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like. Powered by Otter.","otter-blocks"),icon:r.columnsIcon,keywords:["advanced columns","layout","section"],deprecated:$l,variations:Kl,edit:e=>{let{attributes:t,setAttributes:o,clientId:n,name:r}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(n,ql);return()=>e(t.id)}),[t.id]);const{updateBlockAttributes:s,replaceInnerBlocks:d}=(0,A.useDispatch)("core/block-editor"),{sectionBlock:m,isViewportAvailable:u,isPreviewDesktop:b,isPreviewTablet:p,isPreviewMobile:h,children:k,variations:y,defaultVariation:_}=(0,A.useSelect)((e=>{var t;const{getBlock:o}=e("core/block-editor"),{getBlockVariations:l,getBlockType:a,getDefaultBlockVariation:i}=e("core/blocks"),{__experimentalGetPreviewDeviceType:c}=!!e("core/edit-post")&&e("core/edit-post");return{sectionBlock:o(n),children:(null===(t=o(n))||void 0===t?void 0:t.innerBlocks)||[],isViewportAvailable:!!c,isPreviewDesktop:!!c&&"Desktop"===c(),isPreviewTablet:!!c&&"Tablet"===c(),isPreviewMobile:!!c&&"Mobile"===c(),blockType:a(r),defaultVariation:i(r,"block"),variations:l(r,"block").filter((e=>{let{isDefault:t}=e;return!t}))}}),[]),{insertBlock:f,removeBlock:w}=(0,A.useDispatch)("core/block-editor"),C=(e,t)=>{m.innerBlocks.map(((o,l)=>{s(o.clientId,{columnWidth:Dl[e][t][l]})}))};(0,i.useEffect)((()=>{t.columns!==k.length&&(6>=k.length?C(k.length,"equal"):6<k.length?C(6,"equal"):1>=k.length&&C(1,"equal"),o({columns:k.length}))}),[k]);const E=e=>(0,v.getDefaultValueByField)({name:r,field:e,defaultAttributes:ql,attributes:t}),x=(0,I.useViewportMatch)("large",">="),T=(0,I.useViewportMatch)("large","<="),S=(0,I.useViewportMatch)("small",">="),M=(0,I.useViewportMatch)("small","<=");let B=x&&!T&&S&&!M,z=!x&&!T&&S&&!M,V=!(x||T||S||M);u&&!V&&(B=b,z=p,V=h);const[R,L]=(0,i.useState)("top"),N=e=>{var t,o;let{mobile:l,tablet:a,desktop:n}=e;return null!==(t=null!==(o=V&&l||z&&a||n)&&void 0!==o?o:n)&&void 0!==t?t:100},O=N({mobile:t.dividerTopWidthMobile,tablet:t.dividerTopWidthTablet,desktop:t.dividerTopWidth}),F=N({mobile:t.dividerBottomWidthMobile,tablet:t.dividerBottomWidthTablet,desktop:t.dividerBottomWidth}),G=N({mobile:t.dividerTopHeightMobile,tablet:t.dividerTopHeightTablet,desktop:t.dividerTopHeight}),$=N({mobile:t.dividerBottomHeightMobile,tablet:t.dividerBottomHeightTablet,desktop:t.dividerBottomHeight}),D=t.columnsHTMLTag;let Z,W,U,j,q,K={paddingTop:E("padding")&&E("padding").top,paddingRight:E("padding")&&E("padding").right,paddingBottom:E("padding")&&E("padding").bottom,paddingLeft:E("padding")&&E("padding").left,marginTop:E("margin")&&E("margin").top,marginBottom:E("margin")&&E("margin").bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustom}px`:t.columnsHeight};if(z||V){var J,Q,Y,X,ee,te;const e=(0,H.pickBy)({paddingTop:null===(J=E("paddingTablet"))||void 0===J?void 0:J.top,paddingRight:null===(Q=E("paddingTablet"))||void 0===Q?void 0:Q.right,paddingBottom:null===(Y=E("paddingTablet"))||void 0===Y?void 0:Y.bottom,paddingLeft:null===(X=E("paddingTablet"))||void 0===X?void 0:X.left,marginTop:null===(ee=E("marginTablet"))||void 0===ee?void 0:ee.top,marginBottom:null===(te=E("marginTablet"))||void 0===te?void 0:te.bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustomTablet}px`:t.columnsHeight},(e=>e));K=(0,H.merge)(K,e)}if(V){var oe,le,ae,ne,re,ie;const e=(0,H.pickBy)({paddingTop:null===(oe=E("paddingMobile"))||void 0===oe?void 0:oe.top,paddingRight:null===(le=E("paddingMobile"))||void 0===le?void 0:le.right,paddingBottom:null===(ae=E("paddingMobile"))||void 0===ae?void 0:ae.bottom,paddingLeft:null===(ne=E("paddingMobile"))||void 0===ne?void 0:ne.left,marginTop:null===(re=E("marginMobile"))||void 0===re?void 0:re.top,marginBottom:null===(ie=E("marginMobile"))||void 0===ie?void 0:ie.bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustomMobile}px`:t.columnsHeight},(e=>e));K=(0,H.merge)(K,e)}var ce,se,de;"color"===t.backgroundType&&(Z={backgroundColor:t.backgroundColor}),"image"===t.backgroundType&&(Z={backgroundImage:`url( '${null===(ce=t.backgroundImage)||void 0===ce?void 0:ce.url}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:`${Math.round(100*(null===(se=t.backgroundPosition)||void 0===se?void 0:se.x))}% ${Math.round(100*(null===(de=t.backgroundPosition)||void 0===de?void 0:de.y))}%`,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType&&(Z={backgroundImage:t.backgroundGradient}),t.border&&!(0,H.isEmpty)(t.border)&&(U={borderTopWidth:t.border.top,borderRightWidth:t.border.right,borderBottomWidth:t.border.bottom,borderLeftWidth:t.border.left,borderStyle:"solid",borderColor:t.borderColor}),t.borderRadius&&!(0,H.isEmpty)(t.borderRadius)&&(j={borderTopLeftRadius:t.borderRadius.top,borderTopRightRadius:t.borderRadius.right,borderBottomRightRadius:t.borderRadius.bottom,borderBottomLeftRadius:t.borderRadius.left}),!0===t.boxShadow&&(q={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${P()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const me={...K,...Z,...U,...j,...q};var ue,be,pe;"color"===t.backgroundOverlayType&&(W={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(W={backgroundImage:`url( '${null===(ue=t.backgroundOverlayImage)||void 0===ue?void 0:ue.url}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:`${Math.round(100*(null===(be=t.backgroundOverlayPosition)||void 0===be?void 0:be.x))}% ${Math.round(100*(null===(pe=t.backgroundOverlayPosition)||void 0===pe?void 0:pe.y))}%`,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType&&(W={background:t.backgroundOverlayGradient,opacity:t.backgroundOverlayOpacity/100});const ge={...W,...j,mixBlendMode:t.backgroundOverlayBlend,filter:`blur( ${t.backgroundOverlayFilterBlur/10}px ) brightness( ${t.backgroundOverlayFilterBrightness/10} ) contrast( ${t.backgroundOverlayFilterContrast/10} ) grayscale( ${t.backgroundOverlayFilterGrayscale/100} ) hue-rotate( ${t.backgroundOverlayFilterHue}deg ) saturate( ${t.backgroundOverlayFilterSaturate/10} )`};let he={};t.columnsWidth&&(he={maxWidth:t.columnsWidth+"px"});const ke=g()(`has-${t.columns}-columns`,`has-desktop-${t.layout}-layout`,`has-tablet-${t.layoutTablet}-layout`,`has-mobile-${t.layoutMobile}-layout`,`has-vertical-${t.verticalAlign}`,`has-horizontal-${t.horizontalAlign}`,{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},{"has-viewport-desktop":B},{"has-viewport-tablet":z},{"has-viewport-mobile":V}),ve=t.columns?(0,c.useBlockProps)({id:t.id,className:ke,style:me}):(0,c.useBlockProps)();return t.columns?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Zl,{attributes:t,setAttributes:o}),(0,i.createElement)(Ul,{attributes:t,setAttributes:o,getValue:E,updateColumnsWidth:C,dividerViewType:R,setDividerViewType:L,changeColumnsNumbers:e=>{t.columns<e?(0,H.times)(e-t.columns,(()=>{const e=(0,a.createBlock)("themeisle-blocks/advanced-column");e&&f(e,(null==k?void 0:k.length)||0,n,!1)})):t.columns>e&&k.slice(e).forEach((e=>w(e.clientId,!1)))}}),(0,i.createElement)(D,ve,(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:ge}),(0,i.createElement)(jl,{type:"top",style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert,width:O,height:G}),(0,i.createElement)("div",{className:"innerblocks-wrap",style:he},(0,i.createElement)(c.InnerBlocks,{allowedBlocks:["themeisle-blocks/advanced-column"],orientation:"horizontal"})),(0,i.createElement)(jl,{type:"bottom",style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert,width:F,height:$}))):(0,i.createElement)("div",ve,(0,i.createElement)(c.__experimentalBlockVariationPicker,{label:(0,l.__)("Section","otter-blocks"),instructions:(0,l.__)("Select a layout to start with, or make one yourself.","otter-blocks"),variations:y,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_;e&&(d(n,(0,a.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0),o(e.attributes))},allowSkip:!0}))},save:e=>{let{attributes:t}=e;const o=t.columnsHTMLTag,l=t.hide?"":`has-desktop-${t.layout}-layout`,a=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,n=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,r=g()(`has-${t.columns}-columns`,l,a,n,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-vertical-${t.verticalAlign}`),s=c.useBlockProps.save({id:t.id,className:r});return(0,i.createElement)(o,s,(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,i.createElement)(jl,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,i.createElement)("div",{className:"innerblocks-wrap"},(0,i.createElement)(c.InnerBlocks.Content,null)),(0,i.createElement)(jl,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))},example:{viewportWidth:1e3,attributes:{},innerBlocks:[{name:"themeisle-blocks/advanced-column",attributes:{margin:{right:"10px"}},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,l.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,l.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"themeisle-blocks/advanced-column",attributes:{margin:{left:"10px"}},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,l.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,l.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]}});var Ql=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-column","title":"Section Column","category":"themeisle-blocks","description":"A single column within a Section block. Powered by Otter.","parent":["themeisle-blocks/advanced-columns"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"padding":{"type":"object"},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"margin":{"type":"object"},"marginTablet":{"type":"object"},"marginMobile":{"type":"object"},"backgroundType":{"type":"string","default":"color"},"backgroundColor":{"type":"string"},"backgroundImage":{"type":"object"},"backgroundAttachment":{"type":"string","default":"scroll"},"backgroundPosition":{"type":"object"},"backgroundRepeat":{"type":"string","default":"repeat"},"backgroundSize":{"type":"string","default":"auto"},"backgroundGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"border":{"type":"object"},"borderColor":{"type":"string","default":"#000000"},"borderRadius":{"type":"object"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":0},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"columnsHTMLTag":{"type":"string","default":"div"},"columnWidth":{"type":"string"},"isSynced":{"type":"array"}},"supports":{"inserter":false,"html":false},"editorStyle":"otter-advanced-columns-editor","style":"otter-advanced-columns-style"}');const Yl={id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginRight:{type:"number",default:0},marginRightTablet:{type:"number",default:0},marginRightMobile:{type:"number",default:0},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number",default:0},marginLeftMobile:{type:"number",default:0},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},Xl=[{attributes:Yl,supports:{inserter:!1,reusable:!1,html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,n,r,s;if("color"===t.backgroundType&&(a={background:t.backgroundColor}),"image"===t.backgroundType&&(a={backgroundImage:`url( '${t.backgroundImageURL}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType){let e;e="linear"===t.backgroundGradientType?`${t.backgroundGradientAngle}deg`:`at ${t.backgroundGradientPosition}`,a={background:`${t.backgroundGradientType}-gradient( ${e}, ${t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientFirstLocation}%, ${t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientSecondLocation}% )`}}"linked"===t.borderType&&(n={borderWidth:`${t.border}px`,borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(n={borderTopWidth:`${t.borderTop}px`,borderRightWidth:`${t.borderRight}px`,borderBottomWidth:`${t.borderBottom}px`,borderLeftWidth:`${t.borderLeft}px`,borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(r={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(r={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(s={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${P()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const d={...a,...n,...r,...s};return(0,i.createElement)(l,{className:o,id:t.id,style:d},(0,i.createElement)(c.InnerBlocks.Content,null))}},{attributes:{...Yl,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"}},supports:{inserter:!1,reusable:!1,html:!1},migrate:e=>{let t="";if("gradient"===e.backgroundType){let o="";"linear"===e.backgroundGradientType&&(o=`${e.backgroundGradientAngle}deg, `),t=`${e.backgroundGradientType}-gradient(${o}${P()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${P()(e.backgroundGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}%)`}return{...{...(0,H.omit)(e,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition"]),backgroundGradient:t}}},isEligible:e=>"gradient"===e.backgroundType&&void 0!==e.backgroundGradientFirstColor,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;return(0,i.createElement)(l,{className:o,id:t.id},(0,i.createElement)(c.InnerBlocks.Content,null))}},{attributes:{...(0,H.omit)(Yl,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition"]),paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"},backgroundGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"}},supports:{inserter:!1,reusable:!1,html:!1},migrate:e=>{const t={},o={},l={},a={},n={},r={},i={},c={};let s={},d={};"unlinked"===e.paddingType?(t.top=(0,H.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,H.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,H.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,H.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,H.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,H.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,H.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,H.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,H.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,H.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,H.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,H.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(a.top=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px",a.bottom=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px",a.left=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px",a.right=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px"):(a.top=(0,H.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",a.bottom=(0,H.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px",a.left=(0,H.isUndefined)(e.marginLeft)?"20px":e.marginLeft+"px",a.right=(0,H.isUndefined)(e.marginRight)?"20px":e.marginRight+"px"),"linked"===e.marginTypeTablet?(n.top=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",n.bottom=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",n.left=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",n.right=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(n.top=(0,H.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",n.bottom=(0,H.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px",n.left=(0,H.isUndefined)(e.marginLeftTablet)?null:e.marginLeftTablet+"px",n.right=(0,H.isUndefined)(e.marginRightTablet)?null:e.marginRightTablet+"px"),"linked"===e.marginTypeMobile?(r.top=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",r.bottom=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",r.left=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",r.right=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(r.top=(0,H.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",r.bottom=(0,H.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px",r.left=(0,H.isUndefined)(e.marginLeftMobile)?null:e.marginLeftMobile+"px",r.right=(0,H.isUndefined)(e.marginRightMobile)?null:e.marginRightMobile+"px"),"unlinked"===e.borderType?(i.top=(0,H.isUndefined)(e.borderTop)?null:e.borderTop+"px",i.bottom=(0,H.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",i.left=(0,H.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",i.right=(0,H.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(i.top=(0,H.isUndefined)(e.border)?null:e.border+"px",i.bottom=(0,H.isUndefined)(e.border)?null:e.border+"px",i.left=(0,H.isUndefined)(e.border)?null:e.border+"px",i.right=(0,H.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(c.top=(0,H.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",c.bottom=(0,H.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",c.left=(0,H.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",c.right=(0,H.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(c.top=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",c.bottom=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",c.left=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",c.right=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px"),void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID&&(s={id:e.backgroundImageID,url:e.backgroundImageURL});return void 0!==e.backgroundPosition&&(d={"top left":{x:"0.00",y:"0.00"},"top center":{x:"0.50",y:"0.00"},"top right":{x:"1.00",y:"0.00"},"center left":{x:"0.00",y:"0.50"},"center center":{x:"0.50",y:"0.50"},"center right":{x:"1.00",y:"0.50"},"bottom left":{x:"0.00",y:"1.00"},"bottom center":{x:"0.50",y:"1.00"},"bottom right":{x:"1.00",y:"1.00"}}[e.backgroundPosition]),{...{...(0,H.omit)(e,["paddingType","paddingTypeTablet","paddingTypeMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","marginType","marginTypeTablet","marginTypeMobile","marginTop","marginTopTablet","marginTopMobile","marginRight","marginRightTablet","marginRightMobile","marginBottom","marginBottomTablet","marginBottomMobile","marginLeft","marginLeftTablet","marginLeftMobile","borderType","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"]),...!(0,He.FH)(t)&&{padding:t},...!(0,He.FH)(o)&&{paddingTablet:o},...!(0,He.FH)(l)&&{paddingMobile:l},...!(0,He.FH)(a)&&{margin:a},...!(0,He.FH)(n)&&{marginTablet:n},...!(0,He.FH)(r)&&{marginMobile:r},...!(0,He.FH)(i)&&{border:i},...!(0,He.FH)(c)&&{borderRadius:c},...!(0,He.FH)(s)&&{backgroundImage:s},...!(0,He.FH)(d)&&{backgroundPosition:d}}}},isEligible:e=>["padding","paddingTablet","paddingMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","margin","marginTablet","marginMobile","marginTop","marginTopTablet","marginTopMobile","marginRight","marginRightTablet","marginRightMobile","marginBottom","marginBottomTablet","marginBottomMobile","marginLeft","marginLeftTablet","marginLeftMobile","borderType","border","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadius","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"].some((t=>!(0,H.isUndefined)(e[t])&&"number"==typeof e[t]))||void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID||void 0!==e.backgroundPosition&&"object"!=typeof e.backgroundPosition,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;return(0,i.createElement)(l,{className:o,id:t.id},(0,i.createElement)(c.InnerBlocks.Content,null))}}];var ea=Xl,ta=e=>{let{attributes:t,setAttributes:o,getValue:a,parentBlock:n,updateBlockAttributes:r,currentBlockWidth:d,nextBlock:m,nextBlockWidth:u}=e;const b=(0,A.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[p,k]=(0,i.useState)("layout");return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{className:"o-section-header-panel"},(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"layout"===p}),onClick:()=>k("layout")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"editor-table"}),(0,l.__)("Layout","otter-blocks"))),(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"style"===p}),onClick:()=>k("style")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"advanced"===p}),onClick:()=>k("advanced")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"layout"===p&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Spacing","otter-blocks")},1<n.innerBlocks.length&&(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Column Width","otter-blocks"),value:Number(t.columnWidth),onChange:e=>{const t=e||10,l=Number(d.current)-t+Number(u.current);d.current=t,u.current=l,o({columnWidth:t.toFixed(2)}),r(m.current,{columnWidth:l.toFixed(2)})},step:.1,min:10,max:Number(t.columnWidth)+Number(u.current)-10}),(0,i.createElement)($.Z,{label:(0,l.__)("Screen Type","otter-blocks"),className:"otter-section-padding-responsive-control"},(0,i.createElement)(h.Z,{field:(()=>{switch(b){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{switch(b){case"Desktop":return a("padding");case"Tablet":return(0,H.merge)({...a("padding")},a("paddingTablet"));case"Mobile":return(0,H.merge)({...a("padding")},a("paddingTablet"),a("paddingMobile"));default:return}})(),inputProps:{min:0,max:500},onChange:e=>{switch((0,He.CJ)(e)&&(e=void 0),b){case"Desktop":return o({padding:e});case"Tablet":return o({paddingTablet:(0,He.cg)(e,t.padding)});case"Mobile":return o({paddingMobile:(0,He.cg)(e,{...t.padding,...t.paddingTablet})});default:return}}})),(0,i.createElement)(h.Z,{field:(()=>{switch(b){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{switch(b){case"Desktop":return a("margin");case"Tablet":return(0,H.merge)({...a("margin")},a("marginTablet"));case"Mobile":return(0,H.merge)({...a("margin")},a("marginTablet"),a("marginMobile"));default:return}})(),inputProps:{min:-500,max:500},onChange:e=>{switch((0,He.CJ)(e)&&(e=void 0),b){case"Desktop":return o({margin:e});case"Tablet":return o({marginTablet:(0,He.cg)(e,t.margin)});case"Mobile":return o({marginMobile:(0,He.cg)(e,{...t.margin,...t.marginTablet})});default:return}}})))))||"style"===p&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Background Settings","otter-blocks")},(0,i.createElement)(Je,{backgroundType:t.backgroundType,backgroundColor:t.backgroundColor,image:t.backgroundImage,gradient:t.backgroundGradient,focalPoint:t.backgroundPosition,backgroundAttachment:t.backgroundAttachment,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize,changeBackgroundType:e=>o({backgroundType:e}),changeImage:e=>{o({backgroundImage:(0,H.pick)(e,["id","url"])})},removeImage:()=>o({backgroundImage:void 0}),changeColor:e=>o({backgroundColor:e}),changeGradient:e=>o({backgroundGradient:e}),changeBackgroundAttachment:e=>o({backgroundAttachment:e}),changeBackgroundRepeat:e=>o({backgroundRepeat:e}),changeFocalPoint:e=>o({backgroundPosition:e}),changeBackgroundSize:e=>o({backgroundSize:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1},(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Border Width","otter-blocks"),values:t.border,inputProps:{min:0,max:500},units:[{value:"px",label:"px"}],onChange:e=>{(0,He.CJ)(e)&&(e=void 0),o({border:e})}}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}),(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:t.borderRadius,inputProps:{min:0,max:500},units:[{value:"px",label:"px"},{value:"%",label:"%"}],onChange:e=>{(0,He.CJ)(e)&&(e=void 0),o({borderRadius:e})}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:t.boxShadow,onChange:()=>o({boxShadow:!t.boxShadow})}),t.boxShadow&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,i.createElement)(G.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))))||"advanced"===p&&(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Section Settings","otter-blocks")},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("HTML Tag","otter-blocks"),value:t.columnsHTMLTag,options:[{label:(0,l.__)("Default (div)","otter-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>o({columnsHTMLTag:e})})))};const{attributes:oa}=Ql;const{name:la}=Ql;(0,a.registerBlockType)(la,{...Ql,title:(0,l.__)("Section Column","otter-blocks"),description:(0,l.__)("A single column within a Section block. Powered by Otter.","otter-blocks"),icon:r.columnIcon,deprecated:ea,edit:e=>{var t,o,l,a,n,r,s,d;let{name:m,attributes:u,setAttributes:b,isSelected:p,clientId:g}=e;const{updateBlockAttributes:h}=(0,A.useDispatch)("core/block-editor"),{adjacentBlockClientId:k,adjacentBlock:y,parentBlock:_,hasInnerBlocks:f,isViewportAvailable:w,isPreviewDesktop:C,isPreviewTablet:E,isPreviewMobile:x}=(0,A.useSelect)((e=>{const{getAdjacentBlockClientId:t,getBlock:o,getBlockRootClientId:l}=e("core/block-editor"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post"),n=o(g),r=t(g);return{adjacentBlockClientId:r,adjacentBlock:o(r),parentBlock:o(l(g)),hasInnerBlocks:!(!n||!n.innerBlocks.length),isViewportAvailable:!!a,isPreviewDesktop:!!a&&"Desktop"===a(),isPreviewTablet:!!a&&"Tablet"===a(),isPreviewMobile:!!a&&"Mobile"===a()}}),[]),T=(0,I.useViewportMatch)("large",">="),S=(0,I.useViewportMatch)("large","<="),M=(0,I.useViewportMatch)("small",">="),B=(0,I.useViewportMatch)("small","<=");(0,i.useEffect)((()=>{const e=(0,v.blockInit)(g,oa);return()=>e(u.id)}),[u.id]),(0,i.useEffect)((()=>{if(1<_.innerBlocks.length&&!k){const e=_.innerBlocks.findIndex((e=>e.clientId===g)),t=_.innerBlocks[e-1];V.current=t.clientId,R.current=t.attributes.columnWidth}}),[]),(0,i.useEffect)((()=>{if(1<_.innerBlocks.length)if(k)R.current=y.attributes.columnWidth,V.current=k,z.current=u.columnWidth;else{const e=_.innerBlocks.findIndex((e=>e.clientId===g)),t=_.innerBlocks[e-1];R.current=t.attributes.columnWidth,V.current=t.clientId,z.current=u.columnWidth}}),[p,u.columnWidth,_.innerBlocks.length]);const z=(0,i.useRef)(u.columnWidth),V=(0,i.useRef)(k&&k),R=(0,i.useRef)(y&&y.attributes.columnWidth),L=e=>(0,v.getDefaultValueByField)({name:m,field:e,defaultAttributes:oa,attributes:u});let N=T&&!S&&M&&!B,O=!T&&!S&&M&&!B,F=!(T||S||M||B);if(w&&!F&&(N=C,O=E,F=x),void 0===u.columnWidth){const e=_.innerBlocks.findIndex((e=>e.clientId===g)),{columns:t}=_.attributes,{layout:o}=_.attributes;h(g,{columnWidth:Dl[t][o][e]})}const G=u.columnsHTMLTag;let $,D,Z,W,U={paddingTop:null===(t=L("padding"))||void 0===t?void 0:t.top,paddingRight:null===(o=L("padding"))||void 0===o?void 0:o.right,paddingBottom:null===(l=L("padding"))||void 0===l?void 0:l.bottom,paddingLeft:null===(a=L("padding"))||void 0===a?void 0:a.left,marginTop:null===(n=L("margin"))||void 0===n?void 0:n.top,marginRight:null===(r=L("margin"))||void 0===r?void 0:r.right,marginBottom:null===(s=L("margin"))||void 0===s?void 0:s.bottom,marginLeft:null===(d=L("margin"))||void 0===d?void 0:d.left};if(O||F){var j,q,K,J,Q,Y,X,ee;const e=(0,H.pickBy)({paddingTop:null===(j=L("paddingTablet"))||void 0===j?void 0:j.top,paddingRight:null===(q=L("paddingTablet"))||void 0===q?void 0:q.right,paddingBottom:null===(K=L("paddingTablet"))||void 0===K?void 0:K.bottom,paddingLeft:null===(J=L("paddingTablet"))||void 0===J?void 0:J.left,marginTop:null===(Q=L("marginTablet"))||void 0===Q?void 0:Q.top,marginRight:null===(Y=L("marginTablet"))||void 0===Y?void 0:Y.right,marginBottom:null===(X=L("marginTablet"))||void 0===X?void 0:X.bottom,marginLeft:null===(ee=L("marginTablet"))||void 0===ee?void 0:ee.left},(e=>e));U=(0,H.merge)(U,e)}if(F){var te,oe,le,ae,ne,re,ie,ce;const e=(0,H.pickBy)({paddingTop:null===(te=L("paddingMobile"))||void 0===te?void 0:te.top,paddingRight:null===(oe=L("paddingMobile"))||void 0===oe?void 0:oe.right,paddingBottom:null===(le=L("paddingMobile"))||void 0===le?void 0:le.bottom,paddingLeft:null===(ae=L("paddingMobile"))||void 0===ae?void 0:ae.left,marginTop:null===(ne=L("marginMobile"))||void 0===ne?void 0:ne.top,marginRight:null===(re=L("marginMobile"))||void 0===re?void 0:re.right,marginBottom:null===(ie=L("marginMobile"))||void 0===ie?void 0:ie.bottom,marginLeft:null===(ce=L("marginMobile"))||void 0===ce?void 0:ce.left},(e=>e));U=(0,H.merge)(U,e)}var se,de,me;"color"===u.backgroundType&&($={backgroundColor:u.backgroundColor}),"image"===u.backgroundType&&($={backgroundImage:`url( '${null===(se=u.backgroundImage)||void 0===se?void 0:se.url}' )`,backgroundAttachment:u.backgroundAttachment,backgroundPosition:`${Math.round(100*(null===(de=u.backgroundPosition)||void 0===de?void 0:de.x))}% ${Math.round(100*(null===(me=u.backgroundPosition)||void 0===me?void 0:me.y))}%`,backgroundRepeat:u.backgroundRepeat,backgroundSize:u.backgroundSize}),"gradient"===u.backgroundType&&($={backgroundImage:u.backgroundGradient}),u.border&&!(0,H.isEmpty)(u.border)&&(D={borderTopWidth:u.border.top,borderRightWidth:u.border.right,borderBottomWidth:u.border.bottom,borderLeftWidth:u.border.left,borderStyle:"solid",borderColor:u.borderColor}),u.borderRadius&&!(0,H.isEmpty)(u.borderRadius)&&(Z={borderTopLeftRadius:u.borderRadius.top,borderTopRightRadius:u.borderRadius.right,borderBottomRightRadius:u.borderRadius.bottom,borderBottomLeftRadius:u.borderRadius.left}),!0===u.boxShadow&&(W={boxShadow:`${u.boxShadowHorizontal}px ${u.boxShadowVertical}px ${u.boxShadowBlur}px ${u.boxShadowSpread}px ${P()(u.boxShadowColor?u.boxShadowColor:"#000000",u.boxShadowColorOpacity)}`});const ue={flexBasis:`${u.columnWidth}%`,...U,...$,...D,...Z,...W},be=(0,c.useBlockProps)({id:u.id,style:ue});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(ta,{attributes:u,setAttributes:b,getValue:L,parentBlock:_,updateBlockAttributes:h,currentBlockWidth:z,nextBlock:V,nextBlockWidth:R}),(0,i.createElement)(G,be,(0,i.createElement)(c.InnerBlocks,{templateLock:!1,renderAppender:!f&&c.InnerBlocks.ButtonBlockAppender})))},save:e=>{let{attributes:t}=e;const o=t.columnsHTMLTag,l=c.useBlockProps.save({id:t.id});return(0,i.createElement)(o,l,(0,i.createElement)(c.InnerBlocks.Content,null))}});var aa=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/sharing-icons","title":"Sharing Icons","category":"themeisle-blocks","description":"Share buttons for your website visitors to share content on any social sharing service. Powered by Otter.","keywords":["social media","sharing","icons"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"facebook":{"type":["object","boolean"],"default":{"active":true}},"twitter":{"type":["object","boolean"],"default":{"active":true}},"linkedin":{"type":["object","boolean"],"default":{"active":true}},"pinterest":{"type":["object","boolean"],"default":{"active":false}},"tumblr":{"type":["object","boolean"],"default":{"active":false}},"reddit":{"type":["object","boolean"],"default":{"active":false}},"gap":{"type":"number"},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"}},"styles":[{"name":"default","label":"Regular","isDefault":true},{"name":"icons","label":"Icons Only"}],"supports":{"align":["left","center","right"]},"editorStyle":"otter-sharing-icons-editor","style":"otter-sharing-icons-style"}'),na=e=>{let{icon:t}=e;return"facebook"===t?(0,i.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 264 512"},(0,i.createElement)(s.Path,{fill:"currentColor",d:"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"})):"twitter"===t?(0,i.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,i.createElement)(s.Path,{fill:"currentColor",d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"})):"linkedin"===t?(0,i.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},(0,i.createElement)(s.Path,{fill:"currentColor",d:"M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"})):"pinterest"===t?(0,i.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},(0,i.createElement)(s.Path,{fill:"currentColor",d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"})):"tumblr"===t?(0,i.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},(0,i.createElement)(s.Path,{fill:"currentColor",d:"M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"})):"reddit"===t?(0,i.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,i.createElement)(s.Path,{fill:"currentColor",d:"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"})):(0,i.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,i.createElement)(s.Path,{fill:"currentColor",d:"M208 88.286c0-10 6.286-21.714 17.715-21.714 11.142 0 17.714 11.714 17.714 21.714 0 10.285-6.572 21.714-17.714 21.714C214.286 110 208 98.571 208 88.286zm304 160c0 36.001-11.429 102.286-36.286 129.714-22.858 24.858-87.428 61.143-120.857 70.572l-1.143.286v32.571c0 16.286-12.572 30.571-29.143 30.571-10 0-19.429-5.714-24.572-14.286-5.427 8.572-14.856 14.286-24.856 14.286-10 0-19.429-5.714-24.858-14.286-5.142 8.572-14.571 14.286-24.57 14.286-10.286 0-19.429-5.714-24.858-14.286-5.143 8.572-14.571 14.286-24.571 14.286-18.857 0-29.429-15.714-29.429-32.857-16.286 12.285-35.715 19.428-56.571 19.428-22 0-43.429-8.285-60.286-22.857 10.285-.286 20.571-2.286 30.285-5.714-20.857-5.714-39.428-18.857-52-36.286 21.37 4.645 46.209 1.673 67.143-11.143-22-22-56.571-58.857-68.572-87.428C1.143 321.714 0 303.714 0 289.429c0-49.714 20.286-160 86.286-160 10.571 0 18.857 4.858 23.143 14.857a158.792 158.792 0 0 1 12-15.428c2-2.572 5.714-5.429 7.143-8.286 7.999-12.571 11.714-21.142 21.714-34C182.571 45.428 232 17.143 285.143 17.143c6 0 12 .285 17.714 1.143C313.714 6.571 328.857 0 344.572 0c14.571 0 29.714 6 40 16.286.857.858 1.428 2.286 1.428 3.428 0 3.714-10.285 13.429-12.857 16.286 4.286 1.429 15.714 6.858 15.714 12 0 2.857-2.857 5.143-4.571 7.143 31.429 27.714 49.429 67.143 56.286 108 4.286-5.143 10.285-8.572 17.143-8.572 10.571 0 20.857 7.144 28.571 14.001C507.143 187.143 512 221.714 512 248.286zM188 89.428c0 18.286 12.571 37.143 32.286 37.143 19.714 0 32.285-18.857 32.285-37.143 0-18-12.571-36.857-32.285-36.857-19.715 0-32.286 18.858-32.286 36.857zM237.714 194c0-19.714 3.714-39.143 8.571-58.286-52.039 79.534-13.531 184.571 68.858 184.571 21.428 0 42.571-7.714 60-20 2-7.429 3.714-14.857 3.714-22.572 0-14.286-6.286-21.428-20.572-21.428-4.571 0-9.143.857-13.429 1.714-63.343 12.668-107.142 3.669-107.142-63.999zm-41.142 254.858c0-11.143-8.858-20.857-20.286-20.857-11.429 0-20 9.715-20 20.857v32.571c0 11.143 8.571 21.142 20 21.142 11.428 0 20.286-9.715 20.286-21.142v-32.571zm49.143 0c0-11.143-8.572-20.857-20-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20-10 20-21.142v-32.571zm49.713 0c0-11.143-8.857-20.857-20.285-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20.285-9.715 20.285-21.142v-32.571zm49.715 0c0-11.143-8.857-20.857-20.286-20.857-11.428 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.858 21.142 20.286 21.142 11.429 0 20.286-10 20.286-21.142v-32.571zM421.714 286c-30.857 59.142-90.285 102.572-158.571 102.572-96.571 0-160.571-84.572-160.571-176.572 0-16.857 2-33.429 6-49.714-20 33.715-29.714 72.572-29.714 111.429 0 60.286 24.857 121.715 71.429 160.857 5.143-9.714 14.857-16.286 26-16.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.571-14.286 24.858-14.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.857-14.286 24.858-14.286 10 0 19.428 5.714 24.857 14.286 5.143-8.571 14.571-14.286 24.572-14.286 10.857 0 20.857 6.572 25.714 16 43.427-36.286 68.569-92 71.426-148.286zm10.572-99.714c0-53.714-34.571-105.714-92.572-105.714-30.285 0-58.571 15.143-78.857 36.857C240.862 183.812 233.41 254 302.286 254c28.805 0 97.357-28.538 84.286 36.857 28.857-26 45.714-65.714 45.714-104.571z"}))},ra=e=>{let{attributes:t,setAttributes:o,socialList:a}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(s.ToolbarGroup,null,Object.keys(a).map((e=>{var n;const r=null!==(n=t[e].active)&&void 0!==n?n:t[e];return(0,i.createElement)(s.Tooltip,{key:e
12
  /* translators: %s Social Website */,text:(0,l.sprintf)((0,l.__)("Display %s","otter-blocks"),a[e].label)},(0,i.createElement)(s.Button,{className:g()("components-button","wp-block-themeisle-toolbar",{"is-active":r}),onClick:()=>(e=>{const l={...t[e]};l.active=!l.active,o({[e]:{...l}})})(e)},(0,i.createElement)(na,{icon:e})))}))))},ia=e=>{let{attributes:t,setAttributes:o,socialList:a}=e;const n=(e,l,a)=>{const n={...t[l]};n[a]=e,o({[l]:{...n}})};return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Items Gap","otter-blocks"),value:t.gap,onChange:e=>o({gap:e}),allowReset:!0,step:.1,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Icons Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),allowReset:!0,step:.1,max:50})),(0,i.createElement)(c.PanelColorSettings,{title:(0,l.__)("Color Settings"),className:"ott-color-controls",initialOpen:!1,colorSettings:Object.keys(a).reduce(((e,o)=>{var r;return(null!==(r=t[o].active)&&void 0!==r?r:t[o])?[...e,{value:t[o].backgroundColor,onChange:e=>n(e,o,"backgroundColor"),onGradientChange:e=>n(e,o,"backgroundColor")
13
  /* translators: %s Social Website */,label:(0,l.sprintf)((0,l.__)(" %s Background Color","otter-blocks"),a[o].label)},{value:t[o].textColor,onChange:e=>n(e,o,"textColor")
14
- /* translators: %s Social Website */,label:(0,l.sprintf)((0,l.__)(" %s Text Color","otter-blocks"),a[o].label)}]:e}),[])},Object.keys(a).map((e=>{var o;return(null!==(o=t[e].active)&&void 0!==o?o:t[e])?(0,i.createElement)(c.ContrastChecker,{backgroundColor:t[e].backgroundColor,textColor:t[e].textColor,key:e}):null}))))},ca={facebook:{label:(0,l.__)("Facebook","otter-blocks"),icon:"facebook-f"},twitter:{label:(0,l.__)("Twitter","otter-blocks"),icon:"twitter"},linkedin:{label:(0,l.__)("Linkedin","otter-blocks"),icon:"linkedin-in"},pinterest:{label:(0,l.__)("Pinterest","otter-blocks"),icon:"pinterest-p"},tumblr:{label:(0,l.__)("Tumblr","otter-blocks"),icon:"tumblr"},reddit:{label:(0,l.__)("Reddit","otter-blocks"),icon:"reddit-alien"}};const{attributes:sa}=aa;const{name:da}=aa;(0,a.registerBlockType)(da,{...aa,title:(0,l.__)("Sharing Icons","otter-blocks"),description:(0,l.__)("Share buttons for your website visitors to share content on any social sharing service. Powered by Otter.","otter-blocks"),icon:r.sharingIcon,keywords:["social media","sharing","icons"],styles:[{name:"default",label:(0,l.__)("Regular","otter-blocks"),isDefault:!0},{name:"icons",label:(0,l.__)("Icons Only","otter-blocks")}],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(l,sa);return()=>e(t.id)}),[t.id]);const a=(0,c.useBlockProps)();return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(ra,{attributes:t,setAttributes:o,socialList:ca}),(0,i.createElement)(ia,{attributes:t,setAttributes:o,socialList:ca}),(0,i.createElement)("div",a,(0,i.createElement)(s.Disabled,null,(0,i.createElement)(m(),{block:"themeisle-blocks/sharing-icons",attributes:t}))))},save:()=>null,example:{attributes:{}}});var ma=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/slider","title":"Slider","category":"themeisle-blocks","description":"Minimal image slider to showcase beautiful images. Powered by Otter.","keywords":["slider","gallery","carousel"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"images":{"type":"array","default":[],"source":"query","selector":".wp-block-themeisle-blocks-slider-item-wrapper","query":{"id":{"type":"number","source":"attribute","selector":"img","attribute":"data-id"},"url":{"type":"string","source":"attribute","selector":"img","attribute":"src"},"alt":{"type":"string","source":"attribute","selector":"img","attribute":"alt","default":""},"caption":{"type":"string","source":"html","selector":"figcaption","default":""}}},"perView":{"type":"number","default":1},"gap":{"type":"number","default":0},"peek":{"type":"number","default":0},"autoplay":{"type":"boolean","default":true},"delay":{"type":"number","default":2},"hideArrows":{"type":"boolean","default":false},"hideBullets":{"type":"boolean","default":false},"height":{"type":"number","default":400}},"supports":{"align":["wide","full"]},"editorStyle":"otter-slider-editor","style":"otter-slider-style","editorScript":"glidejs","script":"otter-slider"}');const ua=e=>{let{attributes:t}=e;return(0,i.createElement)(i.Fragment,null,!t.hideArrows&&(0,i.createElement)("div",{className:"glide__arrows","data-glide-el":"controls"},(0,i.createElement)("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<"},(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},(0,i.createElement)(s.Path,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"}))),(0,i.createElement)("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">"},(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},(0,i.createElement)(s.Path,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"})))))},ba=e=>{let{attributes:t}=e;return(0,i.createElement)(i.Fragment,null,!t.hideBullets&&(0,i.createElement)("div",{className:"glide__bullets","data-glide-el":"controls[nav]"},t.images.map(((e,t)=>(0,i.createElement)("button",{key:e.id,className:"glide__bullet","data-glide-dir":`=${t}`})))))};var pa=e=>{let{attributes:t}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(ua,{attributes:t}),(0,i.createElement)(ba,{attributes:t}))};const ga={id:{type:"string"},align:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},height:{type:"number",default:400}},ha=[{attributes:{...(0,H.omit)(ga,["align"])},supports:{align:["wide","full"]},save:e=>{let{attributes:t,className:o}=e;return(0,i.createElement)("div",{id:t.id,className:g()("wp-block-themeisle-blocks-slider","glide",o),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":t.autoplay},(0,i.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,i.createElement)("div",{className:"glide__slides",style:{height:`${t.height}px`}},t.images.map((e=>(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},(0,i.createElement)("figure",null,(0,i.createElement)("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!c.RichText.isEmpty(e.caption)&&(0,i.createElement)(c.RichText.Content,{tagName:"figcaption",value:e.caption})))))),(0,i.createElement)(pa,{attributes:t})))}},{attributes:{...(0,H.omit)(ga,["align"]),delay:{type:"number",default:2},hideArrows:{type:"boolean",default:!1},hideBullets:{type:"boolean",default:!1}},supports:{align:["wide","full"]},save:e=>{let{attributes:t,className:o}=e;const l=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay;return(0,i.createElement)("div",{id:t.id,className:g()("wp-block-themeisle-blocks-slider","glide",o),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":l,"data-height":`${t.height}px`},(0,i.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,i.createElement)("div",{className:"glide__slides"},t.images.map((e=>(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},(0,i.createElement)("figure",null,(0,i.createElement)("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!c.RichText.isEmpty(e.caption)&&(0,i.createElement)(c.RichText.Content,{tagName:"figcaption",value:e.caption})))))),(0,i.createElement)(pa,{attributes:t})))}}];var ka=ha;const va={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t}=e[0];t=(0,H.every)(e,["align",t])?t:void 0;const o=(0,H.filter)(e,(e=>{let{url:t}=e;return t}));return(0,a.createBlock)("themeisle-blocks/slider",{images:o.map((e=>{let{id:t,url:o,alt:l,caption:a}=e;return{id:t,url:o,alt:l,caption:a}})),align:t})}},{type:"block",blocks:["core/gallery"],transform:(e,t)=>{var o;let{images:l,align:n}=e;return null!==(o=window.themeisleGutenberg)&&void 0!==o&&o.isLegacyPre59?(0,a.createBlock)("themeisle-blocks/slider",{images:l.map((e=>{let{id:t,url:o,alt:l,caption:a}=e;return{id:t,url:o,alt:l,caption:a}})),align:n}):(0,a.createBlock)("themeisle-blocks/slider",{images:t.map((e=>{let{attributes:t}=e;return{id:t.id,url:t.url,alt:t.alt,caption:t.caption}})),align:n})}}],to:[{type:"block",blocks:["core/image"],transform:e=>{let{images:t,align:o}=e;return 0<t.length?t.map((e=>{let{id:t,url:l,alt:n,caption:r}=e;return(0,a.createBlock)("core/image",{id:t,url:l,alt:n,caption:r,align:o})})):(0,a.createBlock)("core/image",{align:o})}},{type:"block",blocks:["core/gallery"],transform:e=>{var t;let{images:o,align:l}=e;return null!==(t=window.themeisleGutenberg)&&void 0!==t&&t.isLegacyPre59?(0,a.createBlock)("core/gallery",{images:o.map((e=>{let{id:t,url:o,alt:l,caption:a}=e;return{id:t,url:o,alt:l,caption:a}})),align:l}):(0,a.createBlock)("core/gallery",{align:l},o.map((e=>{let{id:t,url:o,alt:n,caption:r}=e;return(0,a.createBlock)("core/image",{id:t,url:o,alt:n,caption:r,align:l})})))}}]};var ya=va,_a=e=>{let{labels:t,icon:o,isAppender:l=!1,value:a={},onSelectImages:n}=e;const r=(0,H.debounce)(n,250);return(0,i.createElement)(c.MediaPlaceholder,{labels:t,icon:o,accept:"image/*",allowedTypes:["image"],isAppender:l,className:"wp-block-themeisle-blocks-slider-uploader",value:a,onSelect:r,multiple:!0})},fa=o(2285),wa=e=>{let{attributes:t,setAttributes:o,slider:a,changePerView:n,onSelectImages:r}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Images","otter-blocks"),initialOpen:!1},(0,i.createElement)(fa.Z,{attributes:t,onSelectImages:r})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},t.images.length&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Slides Per Page","otter-blocks"),help:(0,l.__)("A number of visible slides.","otter-blocks"),value:t.perView,onChange:n,min:1,max:(0,H.max)([Math.round(t.images.length/2),1])}),1<t.perView&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Gap","otter-blocks"),help:(0,l.__)("A size of the space between slides.","otter-blocks"),value:t.gap,onChange:e=>{o({gap:Number(e)}),a.update({gap:Number(e)})},min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Peek","otter-blocks"),help:(0,l.__)("The value of the future slides which have to be visible in the current slide.","otter-blocks"),value:t.peek,onChange:e=>{o({peek:Number(e)}),a.update({peek:Number(e)})},min:0,max:100})),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("Slider height in pixels.","otter-blocks"),value:t.height,onChange:e=>{o({height:Number(e)})},step:.1,min:100,max:1400}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Autoplay","otter-blocks"),help:(0,l.__)("Autoplay slider in the front.","otter-blocks"),checked:t.autoplay,onChange:e=>{o({autoplay:e})}}),t.autoplay&&(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Delay","otter-blocks"),help:(0,l.__)("Delay in slide change (in seconds).","otter-blocks"),value:t.delay,onChange:e=>{o({delay:e})},min:1,max:10}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Hide Arrows","otter-blocks"),help:(0,l.__)("Hide navigation arrows.","otter-blocks"),checked:t.hideArrows,onChange:e=>{o({hideArrows:e})}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Hide Bullets","otter-blocks"),help:(0,l.__)("Hide navigation bullets.","otter-blocks"),checked:t.hideBullets,onChange:e=>{o({hideBullets:e})}}))))},Ca=o(1984),Ea=o(4310),xa=o(5024),Ta=e=>{let{images:t,image:o,index:a,isFirstItem:n,isLastItem:r,isSelected:d,setAttributes:m,setSelectedImage:u}=e;const b=(e,o)=>{const l=[...t];l.splice(o,1,t[e]),l.splice(e,1,t[o]),u(o),m({images:l})};return(0,i.createElement)("div",{className:g()("wp-block-themeisle-blocks-slider-item-wrapper glide__slide",{"is-selected":d}),tabIndex:"0",onClick:()=>u(o.id),onFocus:()=>u(o.id)},(0,i.createElement)("figure",null,(0,i.createElement)("img",{key:o.id,className:"wp-block-themeisle-blocks-slider-item",src:o.url,alt:o.alt,title:o.alt,"data-id":o.id}),d&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-move-menu"},(0,i.createElement)(s.Button,{icon:(0,i.createElement)(Ca.Z,{icon:Ea.Z}),label:(0,l.__)("Move image backward","otter-blocks"),showTooltip:!0,onClick:n?void 0:()=>{0!==a&&b(a,a-1)},className:"wp-block-themeisle-blocks-slider-item-move-backward","aria-disabled":n,disabled:!d}),(0,i.createElement)(s.Button,{icon:(0,i.createElement)(Ca.Z,{icon:xa.Z}),label:(0,l.__)("Move image forward","otter-blocks"),showTooltip:!0,onClick:r?void 0:()=>{a!==t.length-1&&b(a,a+1)},className:"wp-block-themeisle-blocks-slider-item-move-forward","aria-disabled":r,disabled:!d})),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-delete-menu"},(0,i.createElement)(s.Button,{icon:(0,i.createElement)(Ca.Z,{icon:$o.Z}),label:(0,l.__)("Remove image","otter-blocks"),showTooltip:!0,onClick:()=>{const e=(0,H.filter)(t,((e,t)=>a!==t));u(null),m({images:e})},className:"wp-block-themeisle-blocks-slider-item-delete"}))),(d||!c.RichText.isEmpty(o.caption))&&(0,i.createElement)(c.RichText,{tagName:"figcaption",placeholder:d?(0,l.__)("Write caption…","otter-blocks"):null,value:o.caption,onChange:e=>{const o=[...t];o[a].caption=e,m({images:o})},multiline:!1})))};const{attributes:Sa}=ma,Ma={root:null,rootMargin:"0px",threshold:[0]};const{name:Ba}=ma;(0,a.registerBlockType)(Ba,{...ma,title:(0,l.__)("Slider","otter-blocks"),description:(0,l.__)("Minimal image slider to showcase beautiful images. Powered by Otter.","otter-blocks"),icon:"images-alt2",keywords:["slider","gallery","carousel"],deprecated:ka,transforms:ya,edit:e=>{let{attributes:t,setAttributes:o,clientId:a,isSelected:n,toggleSelection:r}=e;const d=(0,i.useRef)(null),m=(0,i.useRef)(null);(0,i.useEffect)((()=>{const e=(0,v.blockInit)(a,Sa);return()=>{e(t.id)}}),[t.id]),(0,i.useEffect)((()=>{var e,o,l;const a=null!==(e=document.querySelector(`#${t.id}`))&&void 0!==e?e:null===(o=document.querySelector('iframe[name^="editor-canvas"]'))||void 0===o||null===(l=o.contentDocument)||void 0===l?void 0:l.querySelector(`#${t.id}`);var n;return a&&(d.current=new IntersectionObserver((e=>{e.forEach((e=>{var o;e.isIntersecting&&0<=e.intersectionRect.height&&t.images.length&&(p(),null===(o=d.current)||void 0===o||o.unobserve(a))}))}),Ma),null===(n=d.current)||void 0===n||n.observe(a)),()=>{var e,o;null!=t&&null!==(e=t.images)&&void 0!==e&&e.length&&(null==m||null===(o=m.current)||void 0===o||o.destroy())}}),[t.id]),(0,i.useEffect)((()=>{t.images.length&&(b(null),null!==m.current&&(m.current.destroy(),t.id&&p()))}),[n,t.id,m.current,t.images]),(0,i.useEffect)((()=>{t.images.length&&t.perView>t.images.length&&k((0,H.max)([Math.round(t.images.length/2),1]))}),[t.images]);const[u,b]=(0,i.useState)(null),p=()=>{var e,o;const l=(0,v.getEditorIframe)(),a=null!==(e=document.querySelector(`#${t.id}`))&&void 0!==e?e:null==l||null===(o=l.contentDocument)||void 0===o?void 0:o.querySelector(`#${t.id}`),n=()=>{var e;null!=l&&null!==(e=l.contentWindow)&&void 0!==e&&e.Glide&&(m.current=new l.contentWindow.Glide(a,{type:"carousel",keyboard:!1,perView:t.perView,gap:t.gap,peek:t.peek,autoplay:!1,breakpoints:{800:{perView:1,peek:0,gap:0}}}).mount())};var r;Boolean(l)?Boolean(null===(r=l.contentDocument)||void 0===r?void 0:r.querySelector("#glidejs-js"))?n():(0,v.copyScriptAssetToIframe)("#glidejs-js",n):m.current=new window.Glide(a,{type:"carousel",keyboard:!1,perView:t.perView,gap:t.gap,peek:t.peek,autoplay:!1,breakpoints:{800:{perView:1,peek:0,gap:0}}}).mount()},h=e=>{o({images:e.map((e=>({id:e.id,url:e.url,alt:e.alt,caption:e.caption})))}),null!==m.current&&m.current.destroy(),p()},k=e=>{o({perView:Number(e)}),m.current.update({perView:Number(e)}),1===e&&(o({gap:0,peek:0}),m.current.update({gap:0,peek:0}))},y=(0,c.useBlockProps)();return Array.isArray(t.images)&&!t.images.length?(0,i.createElement)("div",y,(0,i.createElement)(_a,{labels:{title:(0,l.__)("Slider","otter-blocks"),instructions:(0,l.__)("Drag images, upload new ones or select files from your library.","otter-blocks")},icon:"images-alt2",onSelectImages:h})):(0,i.createElement)(i.Fragment,null,(0,i.createElement)(wa,{attributes:t,setAttributes:o,slider:m.current,changePerView:k,onSelectImages:h}),(0,i.createElement)("div",y,(0,i.createElement)(s.ResizableBox,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{r(!1)},onResizeStop:(e,l,a,n)=>{o({height:parseInt(t.height+n.height,10)}),r(!0)},className:g()("wp-block-themeisle-blocks-slider-resizer",{"is-focused":n})},(0,i.createElement)("div",{id:t.id,className:"glide"},(0,i.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,i.createElement)("div",{className:"glide__slides",style:{height:`${t.height}px`}},t.images.map(((e,l)=>(0,i.createElement)(Ta,{key:e.url,images:t.images,image:e,index:l,isFirstItem:0===l,isLastItem:l+1===t.images.length,isSelected:n&&e.id===u,setAttributes:o,setSelectedImage:b})))),(0,i.createElement)(pa,{attributes:t})))),n&&(0,i.createElement)(_a,{labels:{title:"",instructions:""},icon:null,onSelectImages:h,isAppender:!0,value:t.images})))},save:e=>{let{attributes:t}=e;const o=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay,l=c.useBlockProps.save({id:t.id,className:"glide","data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":o,"data-height":`${t.height}px`,"data-hide-arrows":t.hideArrows});return(0,i.createElement)("div",l,(0,i.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,i.createElement)("div",{className:"glide__slides"},t.images.map((e=>(0,i.createElement)("div",{key:e.id,className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},(0,i.createElement)("figure",null,(0,i.createElement)("img",{className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!c.RichText.isEmpty(e.caption)&&(0,i.createElement)(c.RichText.Content,{tagName:"figcaption",value:e.caption})))))),(0,i.createElement)(ba,{attributes:t})))},example:{attributes:{images:[{id:1,url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{id:2,url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}}});var za=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/pricing","title":"Pricing","category":"themeisle-blocks","description":"Pricing tables are a critical part in showcasing your services, prices and overall offerings. Powered by Otter.","keywords":["pricing","table","money"],"textdomain":"otter-blocks"}');const Pa=[["themeisle-blocks/advanced-heading",{content:(0,l.__)("Basic","otter-blocks"),align:"center",tag:"h3",fontSize:24}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("$9.99","otter-blocks"),align:"center",tag:"h4",fontSize:36,fontFamily:"Roboto Slab",fontVariant:"normal"}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Per Month","otter-blocks"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("First Feature","otter-blocks"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Second Feature","otter-blocks"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Last Feature","otter-blocks"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:(0,l.__)("Buy Now","otter-blocks"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]];const{name:Va}=za;(0,a.registerBlockType)(Va,{...za,title:(0,l.__)("Pricing","otter-blocks"),description:(0,l.__)("Pricing tables are a critical part in showcasing your services, prices and overall offerings. Powered by Otter.","otter-blocks"),icon:r.pricingIcon,keywords:["pricing","table","money"],edit:()=>{const e=(0,c.useBlockProps)();return(0,i.createElement)("div",e,(0,i.createElement)(c.InnerBlocks,{template:Pa}))},save:()=>{const e=c.useBlockProps.save();return(0,i.createElement)("div",e,(0,i.createElement)(c.InnerBlocks.Content,null))},example:{attributes:{}}});var Ra=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/service","title":"Service","category":"themeisle-blocks","description":"Use this Service block to showcase services your website offers. Powered by Otter.","keywords":["services","icon","features"],"textdomain":"otter-blocks"}');const La=[["themeisle-blocks/font-awesome-icons",{fontSize:62,prefix:"fab",icon:"angellist"}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Basic","otter-blocks"),align:"center",tag:"h4",marginBottom:20}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Lorem ipsum dolor sit amet elit do, consectetur adipiscing, sed eiusmod tempor incididunt ut labore et dolore magna aliqua.","otter-blocks"),align:"center",color:"#999999",tag:"p",fontSize:14,marginBottom:20}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:(0,l.__)("Know More","otter-blocks"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]];const{name:Na}=Ra;(0,a.registerBlockType)(Na,{...Ra,title:(0,l.__)("Service","otter-blocks"),description:(0,l.__)("Use this Service block to showcase services your website offers. Powered by Otter.","otter-blocks"),icon:r.servicesIcon,keywords:["services","icon","features"],edit:()=>{const e=(0,c.useBlockProps)();return(0,i.createElement)("div",e,(0,i.createElement)(c.InnerBlocks,{template:La}))},save:()=>{const e=c.useBlockProps.save();return(0,i.createElement)("div",e,(0,i.createElement)(c.InnerBlocks.Content,null))},example:{attributes:{}}});var Ha=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/testimonials","title":"Testimonials","category":"themeisle-blocks","description":"Display kudos from customers and clients and display them on your website. Powered by Otter.","keywords":["testimonials","quotes","business"],"textdomain":"otter-blocks"}');const Ia=[["core/image",{align:"center"}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("John Doe","otter-blocks"),align:"center",fontSize:24,tag:"h3",marginTop:25,marginBottom:10,marginTopTablet:25,marginTopMobile:25}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Jedi Master","otter-blocks"),align:"center",fontSize:14,tag:"h4",marginTop:10,marginBottom:10}],["themeisle-blocks/advanced-heading",{content:(0,l.__)('"What is the point of being alive if you don’t at least try to do something remarkable?"',"otter-blocks"),align:"center",color:"#999999",tag:"p",fontSize:14,marginTop:10,marginBottom:20}]];const{name:Aa}=Ha;(0,a.registerBlockType)(Aa,{...Ha,title:(0,l.__)("Testimonials","otter-blocks"),description:(0,l.__)("Display kudos from customers and clients and display them on your website. Powered by Otter.","otter-blocks"),icon:r.testimonialsIcon,keywords:["testimonials","quotes","business"],edit:()=>{const e=(0,c.useBlockProps)();return(0,i.createElement)("div",e,(0,i.createElement)(c.InnerBlocks,{template:Ia}))},save:()=>{const e=c.useBlockProps.save();return(0,i.createElement)("div",e,(0,i.createElement)(c.InnerBlocks.Content,null))},example:{attributes:{},innerBlocks:[{name:"core/image",attributes:{align:"center",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg"}},{name:"themeisle-blocks/advanced-heading",attributes:{content:(0,l.__)("John Doe","otter-blocks"),align:"center",fontSize:24,tag:"h3",marginTop:25,marginBottom:10,marginTopTablet:25,marginTopMobile:25}},{name:"themeisle-blocks/advanced-heading",attributes:{content:(0,l.__)("Jedi Master","otter-blocks"),align:"center",fontSize:14,tag:"h4",marginTop:10,marginBottom:10}},{name:"themeisle-blocks/advanced-heading",attributes:{content:(0,l.__)('"What is the point of being alive if you don’t at least try to do something remarkable?"',"otter-blocks"),align:"center",color:"#999999",tag:"p",fontSize:14,marginTop:10,marginBottom:20}}]}});var Oa=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/tabs","title":"Tabs","category":"themeisle-blocks","description":"Organize and allow navigation between groups of content with Tabs block. Powered by Otter.","keywords":["media","tabs","select"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"tabColor":{"type":"string"},"borderColor":{"type":"string"},"borderWidth":{"type":"number"},"activeTitleColor":{"type":"string"}},"supports":{"align":["left","center","right"]},"editorStyle":"otter-tabs-editor","style":"otter-tabs-style","script":"otter-tabs"}'),Fa=o(5117);const Ga=(0,tl.W6)((()=>(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__drag",tabIndex:"0"},(0,i.createElement)("span",null)))),$a=(0,tl.W8)((e=>{let{tab:t,deleteTab:o,selectTab:a}=e;return(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-inspector-tab-option"},(0,i.createElement)(Ga,null),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__name"},t.attributes.title||(0,l.__)("Untitled Tab","otter-blocks")),(0,i.createElement)(s.Button,{icon:"edit",label:(0,l.__)("Edit Tab","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__actions",onClick:()=>a(t.clientId)}),(0,i.createElement)(s.Button,{icon:"no-alt",label:(0,l.__)("Remove Tab","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__actions",onClick:()=>o(t.clientId)}))}));var Da=e=>{var t;let{attributes:o,setAttributes:a,children:n,deleteTab:r,selectTab:d,addTab:m,moveTab:u}=e;const[b,p]=(0,i.useState)(null===(t=n.find((e=>!0===e.attributes.defaultOpen)))||void 0===t?void 0:t.clientId),{updateBlockAttributes:g}=(0,A.useDispatch)("core/block-editor"),{getBlock:h}=(0,A.useSelect)((e=>e("core/block-editor").getBlock));(0,i.useEffect)((()=>{var e;p(null===(e=n.find((e=>!0===e.attributes.defaultOpen)))||void 0===e?void 0:e.clientId)}),[n]);const k=e=>{!0===h(e).attributes.defaultOpen&&g(n[0].clientId,{defaultOpen:!0}),r(e)},v=(0,tl.JN)((e=>{let{items:t}=e;return(0,i.createElement)("div",null,t.map(((e,t)=>(0,i.createElement)($a,{key:e.clientId,tab:e,index:t,deleteTab:k,selectTab:d}))))})),y=n.map(((e,t)=>({label:`${t+1}. ${e.attributes.title||(0,l.__)("Untitled Tab","otter-blocks")}`,value:e.clientId})));return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Tabs Management","otter-blocks")},(0,i.createElement)("p",null,(0,l.__)("Press and hold to use drag and drop to sort the tabs","otter-blocks")),0<(null==n?void 0:n.length)&&(0,i.createElement)(v,{items:n,onSortEnd:e=>{let{oldIndex:t,newIndex:o}=e;u(n[t].clientId,o)},useDragHandle:!0,axis:"y",lockAxis:"y"}),(0,i.createElement)(s.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-tabs-inspector-add-tab",onClick:m},(0,l.__)("Add Tab","otter-blocks")),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Initial Tab","otter-blocks"),value:b,options:y,onChange:e=>{n.forEach(((e,t)=>{g(n[t].clientId,{defaultOpen:!1})})),g(e,{defaultOpen:!0}),p(e)}})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:o.borderWidth,onChange:e=>{a({borderWidth:Number(e)})},step:.1,min:0,max:5})),(0,i.createElement)(c.PanelColorSettings,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:o.activeTitleColor,onChange:e=>{a({activeTitleColor:e})},label:(0,l.__)("Active Title Color","otter-blocks")},{value:o.tabColor,onChange:e=>{a({tabColor:e})},label:(0,l.__)("Background","otter-blocks")},{value:o.borderColor,onChange:e=>{a({borderColor:e})},label:(0,l.__)("Border Color","otter-blocks")}]},(0,i.createElement)(c.ContrastChecker,{textColor:o.activeTitleColor,backgroundColor:o.tabColor})))},Za=o(4688),Wa=e=>{let{children:t,selectedTab:o,moveTab:a,selectTab:n}=e;const r=null==t?void 0:t.findIndex((e=>{let{clientId:t}=e;return t===o})),d=e=>{switch(e){case"left":a(o,r-1);break;case"right":a(o,r+1)}};return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(s.ToolbarGroup,{label:(0,l.__)("Edit","otter-blocks")},(0,i.createElement)(s.ToolbarButton,{label:(0,l.__)("Edit tab","otter-blocks"),icon:Za.Z,iconSize:24,className:"wp-block-themeisle-blocks-tabs-toolbar-edit",onClick:()=>n(o)})),(0,i.createElement)(s.ToolbarGroup,{label:(0,l.__)("Movement","otter-blocks")},(0,i.createElement)(s.ToolbarButton,{label:(0,l.__)("Move tab left","otter-blocks"),icon:Ea.Z,iconSize:24,disabled:0===r,className:"wp-block-themeisle-blocks-tabs-toolbar-mover",onClick:()=>d("left")}),(0,i.createElement)(s.ToolbarButton,{label:(0,l.__)("Move tab right","otter-blocks"),icon:xa.Z,iconSize:24,disabled:(null==t?void 0:t.length)-1===r,className:"wp-block-themeisle-blocks-tabs-toolbar-mover",onClick:()=>d("right")})))};const{attributes:Ua}=Oa;const{name:ja}=Oa;(0,a.registerBlockType)(ja,{...Oa,title:(0,l.__)("Tabs","otter-blocks"),description:(0,l.__)("Organize and allow navigation between groups of content with Tabs block. Powered by Otter.","otter-blocks"),icon:To.Z,keywords:["media","tabs","select"],edit:e=>{var t;let{attributes:o,setAttributes:n,isSelected:r,clientId:d}=e;(0,i.useEffect)((()=>{const e=(0,v.blockInit)(d,Ua);return()=>e(o.id)}),[o.id]);const m=(0,i.useRef)(null),u=(0,A.useSelect)((e=>{const{getBlock:t}=e("core/block-editor");return t(d).innerBlocks}),[]),[b,p]=(0,i.useState)(null===(t=u.find((e=>!0===e.attributes.defaultOpen)))||void 0===t?void 0:t.clientId),{insertBlock:h,removeBlock:k,selectBlock:y,moveBlockToPosition:_,updateBlockAttributes:f}=(0,A.useDispatch)("core/block-editor"),w=e=>{m.current&&(u.forEach((t=>{const o=m.current.querySelector(`#block-${t.clientId} .wp-block-themeisle-blocks-tabs-item__content`);null==o||o.classList.toggle("active",t.clientId===e)})),p(e))};(0,i.useEffect)((()=>{w(b)}),[]),(0,i.useEffect)((()=>{0<(null==u?void 0:u.length)&&(void 0!==b&&null!=u&&u.some((e=>e.clientId===b))||w(u[0].clientId))}),[b,u]);const C=e=>{if(0<(null==u?void 0:u.length)){const t=u.find((t=>t.clientId===e));y(t.clientId)}},E=(e,t)=>{var o;const l=null===(o=u.find((t=>t.clientId===e)))||void 0===o?void 0:o.clientId;l&&_(l,d,d,t)},x=()=>{const e=(0,a.createBlock)("themeisle-blocks/tabs-item");h(e,(null==u?void 0:u.length)||0,d,!1)},T={"--border-width":void 0!==o.borderWidth?o.borderWidth+"px":"3px","--border-color":o.borderColor,"--active-title-color":o.activeTitleColor,"--tab-color":o.tabColor},S=e=>{let{title:t,onClick:o,active:l}=e;return(0,i.createElement)("div",{className:g()("wp-block-themeisle-blocks-tabs__header_item",{active:l})},(0,i.createElement)("div",{onClick:o},t))},M=(0,c.useBlockProps)({id:o.id,style:T});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Wa,{children:u,setAttributes:n,selectedTab:b,selectTab:C,moveTab:E}),(0,i.createElement)(Da,{attributes:o,setAttributes:n,children:u,deleteTab:e=>{if(0<(null==u?void 0:u.length)){const t=u.find((t=>t.clientId===e));k(t.clientId,!1),b===e&&p("")}},selectTab:C,moveTab:E,addTab:x}),(0,i.createElement)("div",M,(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-tabs__header"},(null==u?void 0:u.map((e=>(0,i.createElement)(S,{key:e.clientId,title:e.attributes.title||(0,l.__)("Insert Title","otter-blocks"),active:e.clientId===b,onClick:()=>w(e.clientId)}))))||"",(r||0===u.length)&&(0,i.createElement)((()=>(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-tabs__header_item"},(0,i.createElement)("div",{onClick:x,style:{display:"flex",width:"30px",height:"30px",alignItems:"center"}},(0,i.createElement)(s.Icon,{icon:Fa.Z})))),null)),(0,i.createElement)("div",{ref:m,className:"wp-block-themeisle-blocks-tabs__content"},(0,i.createElement)(c.InnerBlocks,{allowedBlocks:["themeisle-blocks/tabs-item"],template:[["themeisle-blocks/tabs-item"]],orientation:"horizontal",renderAppender:!1}))))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id});return(0,i.createElement)("div",o,(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-tabs__content"},(0,i.createElement)(c.InnerBlocks.Content,null)))},example:{viewportWidth:1e3,attributes:{},innerBlocks:[]}});var qa=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/tabs-item","title":"Tab Item","category":"themeisle-blocks","description":"Organize and allow navigation between groups of content with Tabs block. Powered by Otter.","keywords":["media","tab","item"],"parent":["themeisle-blocks/tabs"],"textdomain":"otter-blocks","attributes":{"title":{"type":"string"},"defaultOpen":{"type":"boolean","default":false}}}'),Ka=e=>{let{setAttributes:t,selectParent:o}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.Button,{isSecondary:!0,onClick:()=>o()},(0,l.__)("Back to the Tabs","otter-blocks")),(0,i.createElement)(s.TextControl,{type:"text",label:(0,l.__)("Title","otter-blocks"),placeholder:(0,l.__)("Insert a title","otter-blocks"),onChange:e=>{t({title:e})}})))};const{name:Ja}=qa;(0,a.registerBlockType)(Ja,{...qa,title:(0,l.__)("Tab Item","otter-blocks"),description:(0,l.__)("Organize and allow navigation between groups of content with Tabs block. Powered by Otter.","otter-blocks"),icon:To.Z,keywords:["media","tab","item"],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;const n=(0,i.useRef)(null),{parentClientId:r}=(0,A.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor");return{parentClientId:t(o(a)).clientId}}),[]),{selectBlock:s}=(0,A.useDispatch)("core/block-editor"),d=(0,c.useBlockProps)({ref:n});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Ka,{setAttributes:o,selectParent:()=>s(r)}),(0,i.createElement)("div",d,(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Add title…","otter-blocks"),value:t.title,onChange:e=>o({title:e}),className:g()("wp-block-themeisle-blocks-tabs-item__header",{active:!!t.defaultOpen&&t.defaultOpen}),tagName:"div",onClick:()=>{const e=document.querySelectorAll(`#block-${r} .wp-block-themeisle-blocks-tabs__content .wp-block-themeisle-blocks-tabs-item`);var t,o;e&&e.forEach((e=>{var t,o;null===(t=e.querySelector(".wp-block-themeisle-blocks-tabs-item__header"))||void 0===t||t.classList.remove("active"),null===(o=e.querySelector(".wp-block-themeisle-blocks-tabs-item__content"))||void 0===o||o.classList.remove("active")})),n.current&&(null===(t=n.current.querySelector(".wp-block-themeisle-blocks-tabs-item__header"))||void 0===t||t.classList.add("active"),null===(o=n.current.querySelector(".wp-block-themeisle-blocks-tabs-item__content"))||void 0===o||o.classList.add("active"))},withoutInteractiveFormatting:!0}),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-item__content"},(0,i.createElement)(c.InnerBlocks,{template:[["core/paragraph"]]}))))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({"data-title":t.title,...t.defaultOpen&&{"data-default-open":t.defaultOpen}});return(0,i.createElement)("div",o,(0,i.createElement)(c.RichText.Content,{tagName:"div",className:"wp-block-themeisle-blocks-tabs-item__header",value:t.title||(0,l.__)("Untitled Tab","otter-blocks"),tabIndex:"0"}),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-item__content"},(0,i.createElement)(c.InnerBlocks.Content,null)))}})},2136:function(e,t,o){var l=o(9307),a=o(4184),n=o.n(a),r=o(1984),i=o(7968),c=o(9522),s=o(5736),d=o(5609),m=o(4333);const u=e=>{let{label:t,attributes:o,setAttributes:a,resetValues:b,onClick:p,children:g}=e;(0,l.useEffect)((()=>{for(const e in b){if(b[e]!==o[e])return v(!0);v(!1)}}),[o]);const h=(0,m.useInstanceId)(u),[k,v]=(0,l.useState)(!1),y=`inspector-control-panel-control-${h}`;return(0,l.createElement)("div",{className:"o-control-panel-control"},(0,l.createElement)("div",{className:"components-base-control__field"},(0,l.createElement)("div",{className:"components-base-control__title"},(0,l.createElement)("label",{className:"components-base-control__label",htmlFor:y},t),(0,l.createElement)("div",{className:"floating-controls"},(0,l.createElement)(d.Dropdown,{position:"top left",headerTitle:t,expandOnMobile:!0,renderToggle:e=>{let{isOpen:o,onToggle:m}=e;return(0,l.createElement)(l.Fragment,null,k&&(0,l.createElement)(d.Button,{icon:(0,l.createElement)(r.Z,{icon:i.Z}),label:(0,s.__)("Reset to default","otter-blocks"),showTooltip:!0,isTertiary:!0,onClick:()=>a({...b})}),(0,l.createElement)(d.Button,{id:y,icon:c.Z,label:t,showTooltip:!0,onClick:()=>{m(),p&&p()},"aria-expanded":o,className:n()({"is-active":k})}))},renderContent:()=>(0,l.createElement)("div",{className:"otter-popover-settings"},g)})))))};t.Z=u},9977:function(e,t,o){var l=o(9307),a=o(4184),n=o.n(a),r=o(2819),i=o(5736),c=o(4333),s=o(5609),d=o(2154);const m=e=>{let{label:t,value:o,valueVariant:a,valueStyle:u,valueTransform:b,isSelect:p=!1,onChangeFontFamily:g,onChangeFontVariant:h,onChangeFontStyle:k,onChangeTextTransform:v}=e;const y=(0,c.useInstanceId)(m);(0,l.useEffect)((()=>{d.Z.afterLoading().then((e=>{f(e.fonts),o&&C(e.getVariants(o))}))}),[]);const[_,f]=(0,l.useState)(null),[w,C]=(0,l.useState)(null),[E,x]=(0,l.useState)(""),T=`inspector-google-fonts-control-${y}`;return(0,l.createElement)("div",{className:"o-gfont-control"},(0,l.createElement)(s.BaseControl,{label:t,id:T},null!==_?p?(0,l.createElement)(s.SelectControl,{value:o||"",id:T,options:[{label:(0,i.__)("Default","otter-blocks"),value:""},..._.map((e=>({label:e.family,value:e.family})))],onChange:e=>{let t=[];if(loadFontToPage(e,"regular",_),""===e)return t=[{label:(0,i.__)("Regular","otter-blocks"),value:"regular"},{label:(0,i.__)("Italic","otter-blocks"),value:"italic"}],g(void 0),void C(t);g(e),t=_.find((t=>e===t.family)).variants.filter((e=>!1===e.includes("italic"))).map((e=>({label:(0,r.startCase)((0,r.toLower)(e)),value:e}))),C(t)}}):(0,l.createElement)(s.Dropdown,{contentClassName:"o-gfont-popover",position:"bottom center",renderToggle:e=>{let{isOpen:t,onToggle:a}=e;return(0,l.createElement)(s.Button,{className:"o-gfont-button",id:T,onClick:a,"aria-expanded":t},o||(0,i.__)("Select Font Family","otter-blocks"))},renderContent:e=>{let{onToggle:t}=e;return(0,l.createElement)(s.MenuGroup,{label:(0,i.__)("Google Fonts","otter-blocks")},(0,l.createElement)(s.TextControl,{value:E,onChange:e=>x(e)}),(0,l.createElement)("div",{className:"components-popover__items"},(0,l.createElement)(s.MenuItem,{onClick:()=>{t(),g(void 0),C([]),x("")}},(0,i.__)("Default","otter-blocks")),_.map(((e,a)=>{if(!E||e.family.toLowerCase().includes(E.toLowerCase()))return(0,l.createElement)(s.MenuItem,{key:a,className:n()({"is-selected":e.family===o}),onClick:()=>{t(),g(e.family);const o=e.variants.filter((e=>!1===e.includes("italic"))).map((e=>({label:(0,r.startCase)((0,r.toLower)(e)),value:e})));C(o),x("")}},e.family)}))))}}):(0,i.__)("Loading…","otter-blocks")),w&&(0,l.createElement)(s.SelectControl,{label:(0,i.__)("Font Weight","otter-blocks"),value:a||"regular",options:w,onChange:h}),(0,l.createElement)(s.SelectControl,{label:(0,i.__)("Font Style","otter-blocks"),value:u,options:[{label:(0,i.__)("Regular","otter-blocks"),value:"normal"},{label:(0,i.__)("Italic","otter-blocks"),value:"italic"}],onChange:k}),(0,l.createElement)(s.SelectControl,{label:(0,i.__)("Font Transform","otter-blocks"),value:b,options:[{label:(0,i.__)("Default","otter-blocks"),value:"none"},{label:(0,i.__)("Uppercase","otter-blocks"),value:"uppercase"},{label:(0,i.__)("Lowercase","otter-blocks"),value:"lowercase"},{label:(0,i.__)("Capitalize","otter-blocks"),value:"capitalize"}],onChange:v}))};t.Z=m},2285:function(e,t,o){o.d(t,{Z:function(){return v}});var l=o(9307),a=o(2819),n=o(2175),r=o(454),i=o.n(r),c=o(4184),s=o.n(c),d=o(1286),m=o(1984),u=o(5117),b=o(5736),p=o(5609),g=(0,d.W8)((e=>{let{value:t,selected:o,dragging:a,sorting:n,selectedItemsCount:r,onClick:i}=e;const c=a&&1<r;return(0,l.createElement)(p.Button,{className:s()("o-images-grid-component__image",{"is-selected":o,"is-sorting":o&&n}),onClick:()=>i(t),style:{backgroundImage:`url( ' ${t.url} ' )`}},c&&(0,l.createElement)("div",{className:"o-images-grid-component__image__count"},r))})),h=(0,d.JN)((e=>{let{items:t,className:o,onItemSelect:a,selectedItems:n,isSorting:r,sortingItemKey:i,open:c}=e;return(0,l.createElement)("div",{className:o,tabIndex:"0"},t.map(((e,t)=>{const o=n.includes(e),c=i===e;return(0,l.createElement)(g,{key:`image-${e.id}`,index:t,value:e,selected:o,dragging:c,sorting:r,selectedItemsCount:n.length,onClick:a})})),(0,l.createElement)(p.Button,{label:(0,b.__)("Add Images","otter-blocks"),icon:(0,l.createElement)(m.Z,{icon:u.Z}),isPrimary:!0,onClick:c}))})),k=e=>{let{attributes:t,onSelectImages:o,open:a}=e;const[n,r]=(0,l.useState)([]),[c,d]=(0,l.useState)(!1),[m,u]=(0,l.useState)(null);return(0,l.createElement)(h,{className:s()("o-images-grid-component",{"is-single":1===t.images.length}),open:a,items:t.images,onItemSelect:e=>{let t;t=n.includes(e)?n.filter((t=>t!==e)):[...n,e],r(t)},selectedItems:n,isSorting:c,sortingItemKey:m,shouldCancelStart:e=>{if(!e.target.sortableInfo)return!1;const o=t.images[e.target.sortableInfo.index];return!!n.length&&!n.includes(o)},updateBeforeSortStart:e=>{let{index:o}=e;return new Promise((e=>{d(!0),u(t.images[o]),e()}))},onSortEnd:e=>{let{oldIndex:l,newIndex:a}=e,c=i()(t.images,l,a);n.length&&(c=[...c.slice(0,a).filter((e=>!n.includes(e))),...n,...c.slice(a,c.length).filter((e=>!n.includes(e)))]),d(!1),u(null),r([]),o(c)},distance:3,axis:"xy"})},v=e=>{let{attributes:t,onSelectImages:o}=e;const r=(0,a.debounce)(o,250);return(0,l.createElement)(n.MediaUploadCheck,null,(0,l.createElement)(n.MediaUpload,{onSelect:r,allowedTypes:["image"],multiple:!0,addToGallery:!0,gallery:!0,value:t.images.map((e=>{let{id:t}=e;return t})),render:e=>{let{open:a}=e;return(0,l.createElement)(k,{attributes:t,open:a,onSelectImages:o})}}))}},4166:function(e,t,o){var l=o(7462),a=o(9307),n=o(5736),r=(o(2819),o(5609)),i=o(9818),c=window.wp.htmlEntities,s=o(9084);window.otterComponents={},window.otterComponents.SelectProducts=e=>{let{label:t,value:o,onChange:s,...d}=e;const{results:m,status:u,isLoading:b}=(0,i.useSelect)((e=>{let t=[],o="loading";const{COLLECTIONS_STORE_KEY:l}=window.wc.wcBlocksData;var a,r,i,s;return e(l).getCollectionError("/wc/store","products",{per_page:100})?o="error":(t="error"===o?[]:null===(a=null!==(r=null===(i=(s=e(l)).getCollection)||void 0===i?void 0:i.call(s,"/wc/store","products",{per_page:100}))&&void 0!==r?r:[])||void 0===a?void 0:a.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.name)}))),o="loaded",t=[{value:0,label:(0,n.__)("None","otter-blocks")},...t]),{results:t,status:o,isLoading:e(l).isResolving("getCollection",["/wc/store","products",{per_page:100}])}}),[]);return b?(0,a.createElement)(r.Placeholder,null,(0,a.createElement)(r.Spinner,null)):"error"===u?(0,a.createElement)("p",null,(0,n.__)("There seems to have been an error","otter-blocks")):(0,a.createElement)(r.SelectControl,(0,l.Z)({label:t,value:Number(o),options:m,onChange:e=>s(Number(e))},d))},window.otterComponents.Notice=s.Z},9084:function(e,t,o){var l=o(9307),a=o(5609),n=o(5430);t.Z=e=>{let{notice:t,variant:o="default",instructions:r}=e;return(0,l.createElement)("div",{className:`o-notice is-${o}`},t,r&&(0,l.createElement)(a.Tooltip,{text:r,position:"bottom center"},n.Z))}},6993:function(e,t,o){var l=o(9307),a=o(4184),n=o.n(a),r=o(5736),i=o(5609),c=o(4333),s=o(9818),d=o(340);const m=e=>{let{label:t,className:o,children:a}=e;const u=(0,c.useInstanceId)(m),b=(0,c.useViewportMatch)("large",">="),p=(0,c.useViewportMatch)("large","<="),g=(0,c.useViewportMatch)("small",">="),h=(0,c.useViewportMatch)("small","<="),k=!(b||p||g||h),v=(0,s.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o&&!k?o():t()}),[]),{updateView:y}=(0,s.useDispatch)("themeisle-gutenberg/data"),{__experimentalSetPreviewDeviceType:_}=!!(0,s.useDispatch)("core/edit-post")&&(0,s.useDispatch)("core/edit-post"),f=_&&!k?_:y,w=`inspector-responsive-control-${u}`;return(0,l.createElement)("div",{id:w,className:n()("o-responsive-control",o)},(0,l.createElement)("div",{className:"components-base-control__field"},(0,l.createElement)("div",{className:"components-base-control__title"},(0,l.createElement)("label",{className:"components-base-control__label"},t),(0,l.createElement)("div",{className:"floating-controls"},(0,l.createElement)(i.Dropdown,{position:"top left",renderToggle:e=>{let{isOpen:t,onToggle:o}=e;return(0,l.createElement)(i.Button,{icon:"Mobile"===v?"smartphone":v.toLowerCase(),label:(0,r.__)("Responsiveness Settings","otter-blocks"),showTooltip:!0,className:"is-button",onClick:o,"aria-expanded":t})},renderContent:()=>(0,l.createElement)("div",{className:"o-responsive-control-settings"},(0,l.createElement)("div",{className:"o-responsive-control-settings-title"},(0,r.__)("View","otter-blocks")),(0,l.createElement)(i.Button,{className:n()("o-responsive-control-settings-item",{"is-selected":"Desktop"===v}),onClick:()=>f("Desktop")},"Desktop"===v&&(0,l.createElement)(i.Icon,{icon:d.checkIcon}),(0,l.createElement)("span",{className:"popover-title"},(0,r.__)("Desktop","otter-blocks"))),(0,l.createElement)(i.Button,{className:n()("o-responsive-control-settings-item",{"is-selected":"Tablet"===v}),onClick:()=>f("Tablet")},"Tablet"===v&&(0,l.createElement)(i.Icon,{icon:d.checkIcon}),(0,l.createElement)("span",{className:"popover-title"},(0,r.__)("Tablet","otter-blocks"))),(0,l.createElement)(i.Button,{className:n()("o-responsive-control-settings-item",{"is-selected":"Mobile"===v}),onClick:()=>f("Mobile")},"Mobile"===v&&(0,l.createElement)(i.Icon,{icon:d.checkIcon}),(0,l.createElement)("span",{className:"popover-title"},(0,r.__)("Mobile","otter-blocks"))))}))),a))};t.Z=m},2372:function(e,t,o){o.d(t,{Z:function(){return m}});var l=o(9307),a=o(4184),n=o.n(a),r=o(5736),i=o(5609),c=o(4333),s=e=>{let{id:t,index:o,option:a,min:n,max:r,onChange:i}=e;const c=(0,l.useRef)(null);return(0,l.createElement)("div",{className:"o-sizing-control-item"},o.disabled?(0,l.createElement)("input",{type:"number",disabled:o.disabled,className:"o-sizing-control-item-input",id:`o-sizing-control-item-input-${a}`}):(0,l.createElement)(l.Fragment,null,(0,l.createElement)("input",{type:"number",className:"o-sizing-control-item-input",id:`o-sizing-control-item-input-${a}-${t}`,value:void 0!==o.value?o.value:"",min:n,max:r,ref:c,onChange:e=>i(o.type,parseInt(e.target.value))})),o.label&&(0,l.createElement)("label",{className:"o-sizing-control-item-label",htmlFor:`o-sizing-control-item-input-${a}-${t}`},o.label))};const d=e=>{let{label:t,type:o,min:a,max:m,changeType:u,options:b,onChange:p}=e;const g=(0,c.useInstanceId)(d),h=`inspector-sizing-control-${g}`;return b&&1>b.length?(0,r.__)("Please specify more options.","otter-blocks"):(0,l.createElement)("div",{id:h,className:"o-sizing-control"},(0,l.createElement)("div",{className:"components-base-control__field"},t&&(0,l.createElement)("label",{className:"components-base-control__label",htmlFor:h},t),(0,l.createElement)("div",{className:n()("o-sizing-control-wrapper",{linking:o})},b.map(((e,t)=>(0,l.createElement)(s,{key:t,id:g,index:e,option:t,min:a,max:m,onChange:p}))),o&&(0,l.createElement)("div",{className:n()("o-sizing-control-item","toggle-linking",{"is-linked":"linked"===o})},(0,l.createElement)(i.Button,{icon:"linked"===o?"admin-links":"editor-unlink",label:"linked"===o?(0,r.__)("Unlink Values","otter-blocks"):(0,r.__)("Link Values","otter-blocks"),showTooltip:!0,className:"o-sizing-control-item-input",onClick:()=>u("linked"===o?"unlinked":"linked")})))))};var m=d},3159:function(e,t,o){var l=o(9307),a=o(5736),n=o(5609),r=o(9818);t.Z=e=>{let{field:t,isSynced:o,setAttributes:i,children:c}=e;const{enableComplementaryArea:s}=(0,r.useDispatch)("core/interface"),d=null==o?void 0:o.includes(t);return(0,l.createElement)("fieldset",{className:"o-sync-control"},(0,l.createElement)("legend",null,(0,l.createElement)(n.ToggleControl,{label:(0,l.createElement)(l.Fragment,null,(0,a.__)("Sync with","otter-blocks")),checked:d,onChange:()=>{let e=[...o||[]];if(d){const o=e.indexOf(t);-1!==o&&e.splice(o,1)}else e.push(t);0===e.length&&(e=void 0),i({isSynced:e})}}),(0,l.createElement)("span",{tabIndex:"0",className:"clickable",onClick:()=>s("core/edit-post","themeisle-blocks/otter-options")},(0,a.__)("Globals","otter-blocks"))),d?(0,l.createElement)(n.Disabled,null,c):c)}},8286:function(e,t,o){var l=o(9307),a=o(4184),n=o.n(a),r=o(5609);t.Z=e=>{let{value:t,options:o,onChange:a,hideLabels:i,hideTooltip:c,showBottomLabels:s,hasIcon:d=!1}=e;return(0,l.createElement)(r.ButtonGroup,{className:n()("o-toggle-group-control",{"has-icon":d})},null==o?void 0:o.map((e=>(0,l.createElement)("div",{key:null==e?void 0:e.value,className:"o-toggle-option"},(0,l.createElement)(r.Button,{isPrimary:t==(null==e?void 0:e.value),variant:t==(null==e?void 0:e.value)?"primary":"secondary",icon:null==e?void 0:e.icon,label:null==e?void 0:e.label,onClick:()=>a(null==e?void 0:e.value),showTooltip:Boolean(c)},null==e||!e.label||Boolean(i)||Boolean(s)?"":null==e?void 0:e.label),(0,l.createElement)("p",null,null!=e&&e.label&&!Boolean(i)&&Boolean(s)?null==e?void 0:e.label:"")))))}},5225:function(e,t,o){o.r(t),o.d(t,{addBlockId:function(){return g},addGlobalDefaults:function(){return d},blockInit:function(){return w},copyScriptAssetToIframe:function(){return x},getDefaultValue:function(){return m},getDefaultValueByField:function(){return u},getEditorIframe:function(){return E},useCSSNode:function(){return C}});var l,a,n=o(4586),r=o(2819),i=o(9818),c=o(820),s=o(9307);null!==(a=(l=window.themeisleGutenberg).blockIDs)&&void 0!==a||(l.blockIDs=[]);const d=(e,t,o,l)=>{var a;if(void 0!==(null===(a=window.themeisleGutenberg)||void 0===a?void 0:a.globalDefaults)&&!(0,r.isEqual)(c.Z[o],window.themeisleGutenberg.globalDefaults[o])){const a={...window.themeisleGutenberg.globalDefaults[o]};t({...Object.keys(a).filter((t=>{var o;return(0,r.isEqual)(e[t],null===(o=l[t])||void 0===o?void 0:o.default)})).reduce(((e,t)=>(e[t]=a[t],e)),{})})}},m=(e,t,o)=>{var l,a;const n=null===(l=window.themeisleGutenberg.globalDefaults)||void 0===l?void 0:l[e];return null!=n&&n[t]?null==n?void 0:n[t]:null===(a=o[t])||void 0===a?void 0:a.default},u=e=>{var t;let{name:o,field:l,defaultAttributes:a,attributes:n}=e;return null!==(t=n.isSynced)&&void 0!==t&&t.includes(l)?m(o,l,a):n[l]},b={},p={},g=e=>{var t;const{attributes:o,setAttributes:l,clientId:a,idPrefix:r,name:i,defaultAttributes:c}=e;p[a]="busy";const s=window.themeisleGutenberg.blockIDs||[];if(void 0===o||void 0===l)return e=>{var t;null===(t=b[i])||void 0===t||t.delete(e)};null!==(t=b[i])&&void 0!==t||(b[i]=new Set);const m=Boolean(o.id&&b[i].has(o.id));if(void 0===o.id||m){const e=r||(e=>`wp-block-${e.replace("/","-")}-`)(i),t=((e,t,o)=>{const l=`${e}${t.slice(0,8)}`;if(o.has(l)){let t=`${e}${(0,n.Z)().slice(0,8)}`;for(;o.has(t);)t=`${e}${(0,n.Z)().slice(0,8)}`;return t}return l})(e,a,b[i]);return void 0===o.id?(d(o,l,i,c),b[i].add(t),s.push(t),l({id:t})):m&&(b[i].add(t),l({id:t})),e=>{b[i].delete(t||e)}}return b[i].add(o.id),s.push(o.id),e=>{p[a]="free",b[i].delete((null==o?void 0:o.id)||e)}},{getBlock:h}=(0,i.select)("core/block-editor"),{getBlockParents:k}=(0,i.select)("core/block-editor"),{updateBlockAttributes:v}=(0,i.dispatch)("core/block-editor"),{getSelectedBlockClientId:y}=(0,i.select)("core/block-editor"),_=e=>t=>{v(e,t)},f=e=>{const t=h(e);return{attributes:null==t?void 0:t.attributes,name:null==t?void 0:t.name}},w=(e,t)=>(void 0===p[e]&&(p[e]="free"),"busy"===p[e]||(e=>{var t;return null===(t=k(e))||void 0===t?void 0:t.some((e=>{var t;const{attributes:o,name:l}=null!==(t=h(e))&&void 0!==t?t:{};return"core/query"===l||(null==o?void 0:o.ref)}))})(e)&&y()!==e?()=>{}:g({clientId:e,defaultAttributes:t,setAttributes:_(e),...f(e)})),C=e=>{const[t,o]=(0,s.useState)({css:[],media:[]}),[l,a]=(0,s.useState)({node:null,cssNodeName:""});return(0,s.useEffect)((()=>{var t;let o;const l=document.createElement("style");return l.type="text/css",l.setAttribute("data-generator","otter-blocks"),setTimeout((()=>{var e,t;o=(null===(e=parent.document.querySelector('iframe[name="editor-canvas"]'))||void 0===e?void 0:e.contentWindow.document.head)||document.head,null===(t=o)||void 0===t||t.appendChild(l)}),500),a({node:l,cssNodeName:null!==(t=null==e?void 0:e.selector)&&void 0!==t?t:`o-node-${(0,n.Z)()}`}),()=>{var e;null===(e=o)||void 0===e||e.removeChild(l)}}),[]),(0,s.useEffect)((()=>{if(l.node&&l.cssNodeName&&void 0!==t.media){const e=(0,r.zip)(t.css,t.media).map((e=>{const[t,o]=e;return o?`${o} { \n\t .${l.cssNodeName} ${t} }`:`.${l.cssNodeName} ${t}`})).join("\n")||"";l.node.textContent=e}}),[t.css,t.media,l.node,l.cssNodeName]),[l.cssNodeName,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];o({css:e,media:t})},a]},E=()=>document.querySelector('iframe[name^="editor-canvas"]'),x=(e,t)=>{var o;const l=E();var a;if(null!==(o=t)&&void 0!==o||(t=()=>{}),Boolean(l))if(Boolean(null==l||null===(a=l.contentWindow)||void 0===a?void 0:a.document.querySelector(e))){var n;null===(n=t)||void 0===n||n()}else{var r;const o=document.querySelector(e);if(!Boolean(o))return void console.warn(`Selector: ${e} is invalid.`);const a=l.contentWindow.document.createElement("script");a.onload=t,a.id=o.id,a.type="text/javascript",null===(r=l.contentWindow.document)||void 0===r||r.head.appendChild(a),a.src=o.src}}},2154:function(e,t,o){var l=o(2819);const{getEditorIframe:a}=o(5225),n=new class{constructor(){this.fonts=[],this.status="none",this.controller=new AbortController,this.request=null,this.node=document.createElement("style"),this.node.type="text/css",this.node.setAttribute("data-generator","otter-blocks-fonts-loader"),this.usedFonts=[],this.nodeAppended=!1}async afterLoading(){return await this.requestFonts(),this}getFont(e){return this.fonts.find((t=>t.family===e))}getVariants(e){const t=this.getFont(e);return t?t.variants.filter((e=>!1===e.includes("italic"))).map((e=>({label:(0,l.startCase)((0,l.toLower)(e)),value:e}))):[]}async loadFontToBrowser(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"regular";if(!e)return Error("Empty font name.");"none"!==this.status&&"loading"!==this.status||await this.afterLoading();const o=this.getFont(e);return o?(this.usedFonts.find((o=>o.font.family===e&&o.variant===t))||(this.usedFonts.push({font:o,variant:t}),this.updateCSSNode()),o):Error("Font does not exists.")}async requestFonts(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return"done"===this.status?this.fonts:("none"===this.status&&(this.status="loading",this.request=new Promise((async(t,o)=>{"done"!==this.status||e||t(this.fonts),e&&this.controller.abort(),fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyClGdkPJ1BvgLOol5JAkQY4Mv2lkLYu00k",{signal:this.controller.signal}).then((e=>e.json())).then((e=>{this.fonts=e.items,this.status="done",t(this.fonts)})).catch((e=>{this.status="error",o(e)}))}))),this.request)}updateCSSNode(){var e,t,o;this.nodeAppended||((null!==(e=null===(t=a())||void 0===t||null===(o=t.contentWindow)||void 0===o?void 0:o.document)&&void 0!==e?e:document).head.appendChild(this.node),this.nodeAppended=!0);this.node.innerHTML=this.renderCSSFont()}renderCSSFont(){return Array.from(this.usedFonts).map((e=>{var t,o,l,a;let{font:n,variant:r}=e;const i=null===(t=null!==(o=null===(l=n.files)||void 0===l?void 0:l[r])&&void 0!==o?o:null===(a=n.files)||void 0===a?void 0:a.regular)||void 0===t?void 0:t.replace("http://","https://");return`\n\t\t\t\t@font-face {\n\t\t\t\t\tfont-family: "${n.family}";\n\t\t\t\t\tsrc: url('${i}'); /* IE9 Compat Modes */\n\t\t\t\t\tsrc: url('${i}') format('truetype'), /* Safari, Android, iOS */\n\t\t\t\t}\n\t\t\t`})).join("\n")}};Object.seal(n),t.Z=n},4715:function(e,t,o){o.d(t,{CJ:function(){return p},Dv:function(){return C},EP:function(){return b},FH:function(){return g},GM:function(){return x},Jc:function(){return y},Mg:function(){return u},R3:function(){return s},S3:function(){return m},Uo:function(){return i},Vg:function(){return k},_Z:function(){return v},__:function(){return d},_c:function(){return T},bv:function(){return f},cg:function(){return w},nG:function(){return _},p6:function(){return c}});var l=o(2819),a=o(5736),n=o(9771);const r=["wp_template","wp_template_part","wp_navigation","nav_menu_item","wp_block","attachment","sfwd-certificates","e-landing-page","piotnetforms-book","piotnetforms","piotnetforms-data","jet-menu","jet-popup","adsforwp-groups","pgc_simply_gallery","editor-story","pafe-form-booking","sfwd-assignment","sfwd-essays","pafe-formabandonment","frm_display","sfwd-transactions","jet-engine","jet-theme-core","reply","jet_options_preset","tutor_assignments","brizy_template","jet-smart-filters","pafe-fonts","pafe-form-database","ct_content_block","adsforwp","iamport_payment","tribe_events","mec_esb","elementor_library","testimonial","zion_template","popup","jet-engine-booking","tutor_quiz","piotnetforms-aban","forum","topic","sfwd-quiz","mec-events","jet-woo-builder","neve_custom_layouts","feedzy_imports","neve_cart_notices","visualizer"],i=e=>{const t=document.createElement("div");return t.innerHTML=e,void 0!==t.innerText?t.innerText:t.textContent},c=e=>{const t=(e=new Date(e)).getDate(),o=e.getMonth(),l=e.getFullYear();return t+" "+["January","February","March","April","May","June","July","August","September","October","November","December"][o]+", "+l},s=async()=>{const e=window.themeisleGutenberg.postTypes;if(e){const t=Object.keys(e);return(0,l.without)(t,...r)}},d=e=>{if("string"==typeof e||e instanceof String)return e[0].toUpperCase()+e.slice(1);throw"The parameter must be a string."},m=(e,t)=>{const o=[];return null==e||e.forEach(((l,a)=>{o.push(l),a<e.length-1&&o.push(t)})),o},u=(e,t)=>{e=e||0;const o=Math.floor(e/864e5),l=Math.floor(e/36e5%24),n=Math.floor(e/6e4%60),r=Math.floor(e/1e3%60);return[{tag:"day",name:1<o?(0,a.__)("Days","otter-blocks"):(0,a.__)("Day","otter-blocks"),value:o},{tag:"hour",name:1<l?(0,a.__)("Hours","otter-blocks"):(0,a.__)("Hour","otter-blocks"),value:l},{tag:"minute",name:1<n?(0,a.__)("Minutes","otter-blocks"):(0,a.__)("Minute","otter-blocks"),value:n},{tag:"second",name:1<r?(0,a.__)("Seconds","otter-blocks"):(0,a.__)("Second","otter-blocks"),value:r}].filter((e=>{var o;let{tag:l}=e;return!(null!=t&&null!==(o=t.exclude)&&void 0!==o&&o.includes(l))})).map((e=>(null!=t&&t.keepNeg||(e.value=Math.max(0,e.value)),e)))},b=()=>{const e=60*(0,n.__experimentalGetSettings)().timezone.offset,t=0>e?"-":"+",o=Math.abs(e);return(0,a.sprintf)("%s%02d:%02d",t,o/60,o%60)},p=e=>!Object.keys(e).some((t=>null!==e[t])),g=e=>Object.values(e).every((e=>void 0===e)),h={top:"flex-start",left:"flex-start",center:"center",bottom:"flex-end",right:"flex-end"},k=e=>h[e],v=e=>{-1<e.indexOf("?")&&(e=e.split("?")[1]);const t=e.split("&"),o={};return t.forEach((function(e){""!==(e=e.split("="))[0]&&(o[e[0]]=decodeURIComponent(e[1]||""))})),o},y=e=>Object.keys(e).map((t=>t+"="+e[t])).join("&"),_=e=>{var t,o;const l=null==e||null===(t=e.filter((e=>null==e?void 0:e[0])))||void 0===t?void 0:t[0];return null!==(o=null==l?void 0:l[1])&&void 0!==o?o:null==l?void 0:l[0]},f=(e,t)=>{var o,l,a,n,r,i,c,s;return`${null!==(o=null!==(l=null==e?void 0:e.top)&&void 0!==l?l:null==t?void 0:t.top)&&void 0!==o?o:"0px"} ${null!==(a=null!==(n=null==e?void 0:e.right)&&void 0!==n?n:null==t?void 0:t.right)&&void 0!==a?a:"0px"} ${null!==(r=null!==(i=null==e?void 0:e.bottom)&&void 0!==i?i:null==t?void 0:t.bottom)&&void 0!==r?r:"0px"} ${null!==(c=null!==(s=null==e?void 0:e.left)&&void 0!==s?s:null==t?void 0:t.left)&&void 0!==c?c:"0px"}`},w=(e,t)=>{const o=(0,l.omitBy)(e,((e,o)=>e===t[o]));return(0,l.isEmpty)(o)?void 0:o},C=(e,t)=>(0,l.merge)({left:"0px",right:"0px",bottom:"0px",top:"0px"},t,e),E={Desktop:0,Tablet:1,Mobile:2},x=(e,t)=>(o,l)=>{var a;e({[l[null!==(a=E[t])&&void 0!==a?a:0]]:o})},T=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Desktop",o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return l=>{var a,n;return!o||null!=l&&l[E[e]]||e===t?null!==(a=null==l?void 0:l[E[e]])&&void 0!==a?a:null==l?void 0:l[E[t]]:null!==(n=null==l?void 0:l[E[e]-1])&&void 0!==n?n:null==l?void 0:l[E[e]-2]}}},340:function(e,t,o){o.r(t),o.d(t,{StarFilled:function(){return S},StarHalf:function(){return M},alignBottom:function(){return j},alignCenter:function(){return q},alignTop:function(){return K},authorIcon:function(){return d},barcodeIcon:function(){return x},buttonsIcon:function(){return m},check:function(){return B},checkIcon:function(){return T},close:function(){return z},cols112:function(){return H},cols12:function(){return R},cols121:function(){return A},cols131:function(){return O},cols21:function(){return L},cols211:function(){return I},cols2Equal:function(){return V},cols2Grid:function(){return W},cols3Equal:function(){return N},cols3Grid:function(){return U},cols4Equal:function(){return F},cols5Equal:function(){return G},cols6Equal:function(){return Z},colsCollapsed:function(){return $},colsFull:function(){return P},columnIcon:function(){return g},columnsIcon:function(){return p},contactIcon:function(){return u},faIcon:function(){return k},headingIcon:function(){return h},inputIcon:function(){return b},mapIcon:function(){return y},otterIcon:function(){return c},otterIconColored:function(){return s},pluginsIcon:function(){return f},postsIcon:function(){return _},pricingIcon:function(){return C},rowsCollapsed:function(){return D},servicesIcon:function(){return w},sharingIcon:function(){return v},testimonialsIcon:function(){return E}});var l=o(7462),a=o(9307),n=o(4184),r=o.n(n),i=o(444);const c=e=>{let{className:t}=e;return(0,a.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 32",width:"20",height:"20",className:r()("otter-icon",t)},(0,a.createElement)(i.Path,{d:"M19.831 7.877c0.001-0.003 0.001-0.005 0.001-0.009s-0-0.006-0.001-0.009l0 0c-0.047-0.081-0.092-0.164-0.132-0.247l-0.057-0.115c-0.277-0.498-0.381-0.99-1.033-1.064h-0.045c-0.001 0-0.002 0-0.003 0-0.486 0-0.883 0.382-0.908 0.862l-0 0.002c0.674 0.126 1.252 0.278 1.813 0.468l-0.092-0.027 0.283 0.096 0.147 0.053s0.028 0 0.028-0.011z"}),(0,a.createElement)(i.Path,{d:"M23.982 13.574c-0.008-2.41-0.14-4.778-0.39-7.112l0.026 0.299 0.070-0.019c0.459-0.139 0.787-0.558 0.787-1.053 0-0.479-0.307-0.887-0.735-1.037l-0.008-0.002h-0.026c-0.479-0.164-0.874-0.468-1.149-0.861l-0.005-0.007c-2.7-3.96-8.252-3.781-8.252-3.781s-5.55-0.179-8.25 3.781c-0.28 0.401-0.676 0.704-1.14 0.862l-0.016 0.005c-0.441 0.148-0.754 0.557-0.754 1.040 0 0.009 0 0.017 0 0.026l-0-0.001c-0 0.010-0.001 0.022-0.001 0.034 0 0.493 0.335 0.907 0.789 1.029l0.007 0.002 0.045 0.011c-0.224 2.034-0.356 4.403-0.364 6.801l-0 0.012s-9.493 13.012-1.277 17.515c4.733 2.431 6.881-0.769 6.881-0.769s1.397-1.661-1.784-3.355v-4.609c0.006-0.344 0.282-0.621 0.625-0.628h1.212v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.274 0.001 0.496 0.224 0.496 0.498 0 0 0 0 0 0v0 0.59h2.721v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.271 0.005 0.49 0.226 0.49 0.498 0 0 0 0 0 0v0 0.59h1.209c0 0 0 0 0 0 0.349 0 0.633 0.28 0.639 0.627v4.584c-3.193 1.703-1.784 3.355-1.784 3.355s2.148 3.193 6.879 0.769c8.222-4.503-1.269-17.515-1.269-17.515zM22.586 10.261c-0.097 1.461-0.67 2.772-1.563 3.797l0.007-0.008c-1.703 2.010-4.407 3.249-6.721 4.432v0c-2.325-1.177-5.026-2.416-6.736-4.432-0.883-1.019-1.455-2.329-1.555-3.769l-0.001-0.020c-0.126-2.22 0.583-5.929 3.044-6.74 2.416-0.788 3.947 1.288 4.494 2.227 0.152 0.258 0.429 0.428 0.745 0.428s0.593-0.17 0.743-0.424l0.002-0.004c0.551-0.932 2.080-3.008 4.494-2.22 2.474 0.805 3.174 4.513 3.046 6.734z"}),(0,a.createElement)(i.Path,{d:"M19.463 10.087h-0.028c-0.192 0.026-0.121 0.251-0.047 0.356 0.254 0.349 0.407 0.787 0.407 1.26 0 0.006-0 0.012-0 0.018v-0.001c-0.001 0.469-0.255 0.878-0.633 1.1l-0.006 0.003c-0.739 0.426-1.377-0.145-2.054-0.398-0.72-0.269-1.552-0.434-2.42-0.455l-0.009-0v-1.033c1.020-0.233 1.894-0.76 2.551-1.486l0.004-0.004c0.151-0.163 0.244-0.383 0.244-0.623 0-0.316-0.159-0.595-0.402-0.76l-0.003-0.002c-0.768-0.551-1.728-0.881-2.764-0.881-1.054 0-2.029 0.341-2.819 0.92l0.013-0.009c-0.224 0.166-0.367 0.429-0.367 0.726 0 0.226 0.083 0.433 0.221 0.591l-0.001-0.001c0.665 0.751 1.55 1.295 2.553 1.53l0.033 0.007v1.050c-0.742 0.021-1.448 0.14-2.118 0.343l0.057-0.015c-0.341 0.103-0.631 0.219-0.908 0.358l0.033-0.015c-0.519 0.26-1.037 0.436-1.58 0.121-0.371-0.213-0.617-0.607-0.617-1.058 0-0.002 0-0.004 0-0.007v0c0-0.002 0-0.004 0-0.007 0-0.47 0.153-0.905 0.411-1.257l-0.004 0.006c0.047-0.068 0.089-0.17 0.026-0.241s-0.189 0-0.27 0.030c-0.189 0.099-0.348 0.227-0.479 0.381l-0.002 0.002c-0.245 0.296-0.394 0.679-0.394 1.097 0 0.004 0 0.007 0 0.011v-0.001c0.008 0.706 0.393 1.321 0.964 1.651l0.009 0.005c0.296 0.178 0.654 0.283 1.036 0.283 0.364 0 0.706-0.095 1.001-0.263l-0.010 0.005c0.877-0.461 1.917-0.731 3.019-0.731 0.069 0 0.137 0.001 0.206 0.003l-0.010-0h0.030c1.277 0 2.382 0.266 3.266 0.775 0.27 0.159 0.594 0.253 0.94 0.253 0.001 0 0.002 0 0.003 0h-0c0.355-0.002 0.688-0.098 0.974-0.265l-0.009 0.005c0.606-0.357 1.007-1.007 1.007-1.75 0-0.001 0-0.003 0-0.004v0c0.001-0.026 0.002-0.056 0.002-0.086 0-0.625-0.34-1.171-0.846-1.462l-0.008-0.004c-0.056-0.040-0.125-0.065-0.199-0.070l-0.001-0zM13.101 8.831c-0.238 0.213-0.468 0.581-0.832 0.345-0.061-0.041-0.114-0.086-0.161-0.136l-0-0c-0.063-0.063-0.101-0.15-0.101-0.247 0-0.133 0.074-0.248 0.182-0.308l0.002-0.001c0.594-0.309 1.203-0.543 1.884-0.49-0.324 0.281-0.649 0.56-0.973 0.837z"}),(0,a.createElement)(i.Path,{d:"M15.89 13.578c-0.367 0.483-0.941 0.792-1.588 0.792s-1.221-0.309-1.585-0.787l-0.004-0.005c-0.064-0.103-0.177-0.171-0.306-0.171-0.199 0-0.36 0.161-0.36 0.36 0 0.091 0.034 0.174 0.090 0.238l-0-0c0.499 0.659 1.283 1.080 2.164 1.080s1.665-0.421 2.159-1.073l0.005-0.007c0.043-0.059 0.068-0.132 0.068-0.212 0-0.116-0.055-0.22-0.14-0.286l-0.001-0.001c-0.059-0.045-0.134-0.072-0.215-0.072-0.117 0-0.221 0.056-0.286 0.143l-0.001 0.001z"}),(0,a.createElement)(i.Path,{d:"M18.507 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),(0,a.createElement)(i.Path,{d:"M17.389 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),(0,a.createElement)(i.Path,{d:"M10.798 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),(0,a.createElement)(i.Path,{d:"M11.918 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),(0,a.createElement)(i.Path,{d:"M8.773 7.877c-0.001-0.003-0.002-0.005-0.002-0.009s0.001-0.006 0.002-0.009l-0 0c0.047-0.081 0.089-0.164 0.132-0.247 0.019-0.038 0.036-0.079 0.057-0.115 0.275-0.498 0.379-0.99 1.033-1.064h0.045c0 0 0.001 0 0.001 0 0.487 0 0.884 0.382 0.91 0.862l0 0.002c-0.678 0.124-1.261 0.277-1.827 0.468l0.092-0.027-0.275 0.096-0.1 0.036-0.045 0.017s-0.023 0-0.023-0.011z"}))},s=e=>{let{className:t}=e;return(0,a.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:r()("otter-icon",t)},(0,a.createElement)(i.G,null,(0,a.createElement)(i.Path,{d:"M19.9877 9.42008C19.6369 9.61724 19.3785 10.0999 19.1922 10.38C19.3704 10.3719 19.6396 10.38 19.9061 10.3474C19.5651 12.7604 18.4405 14.9944 16.7053 16.7054C15.6732 17.7477 14.448 18.5791 13.098 19.1529C10.5336 20.2407 7.70811 20.2883 5.31094 19.2576C4.29167 18.8247 3.36554 18.1991 2.58336 17.4152C1.21259 16.0355 0.334714 14.2424 0.0855683 12.3136C0.478525 12.149 0.765424 11.6092 0.961223 11.3101C0.642655 11.3103 0.324535 11.334 0.00942443 11.3808C-0.100712 8.55259 1.00745 5.57482 3.29177 3.29186C6.55508 0.0285557 11.2379 -0.836221 14.8779 0.823987C14.7269 1.02115 14.6059 1.2319 14.4999 1.38827C14.7936 1.37195 15.3157 1.39643 15.6978 1.2523C16.0056 1.43293 16.3009 1.63418 16.5816 1.85465C16.515 1.95935 16.4456 2.05589 16.398 2.13747C16.534 2.13747 16.7135 2.13747 16.9106 2.12115C17.0833 2.26664 17.2533 2.42301 17.4151 2.58481C19.248 4.41906 20.0978 6.89102 19.9877 9.42008Z",fill:"#E8D3C9"}),(0,a.createElement)(i.Path,{d:"M4.32515 5.25665C3.92192 6.11059 3.77512 7.06318 3.90255 7.99889C4.02998 8.93461 4.42617 9.81325 5.04307 10.5283C5.78956 11.3645 6.80118 11.907 7.79105 12.4318C8.1473 12.6208 8.51714 12.8153 8.92097 12.8506C9.44718 12.8969 9.95843 12.6671 10.4167 12.406C11.5996 11.7357 12.6615 10.8016 13.3047 9.60365C13.9478 8.40574 14.1314 6.92774 13.6174 5.66864C13.3523 5.04048 12.9456 4.48207 12.429 4.03699C11.486 3.2291 10.2823 2.79004 9.04063 2.80101C8.43429 2.81396 7.83536 2.93698 7.273 3.16406C6.72912 3.36529 6.19611 3.39385 5.69166 3.70794C5.10339 4.08984 4.63083 4.62542 4.32515 5.25665Z",fill:"#D6AF99"}),(0,a.createElement)(i.Path,{d:"M13.1008 19.1488C12.6689 19.3318 12.2256 19.4867 11.7738 19.6125C11.5236 19.6832 11.2707 19.7485 11.0137 19.7933C10.9838 19.7933 10.9579 19.8042 10.928 19.8124C10.9172 19.811 10.9062 19.811 10.8954 19.8124C10.0118 19.9817 9.10938 20.0306 8.21268 19.9578C7.92865 19.9366 7.64591 19.9008 7.36558 19.8504C7.31397 19.8449 7.26269 19.8368 7.21193 19.826H7.19561L7.07732 19.8015C6.83665 19.7525 6.60006 19.6941 6.36483 19.6261C6.00688 19.5234 5.65582 19.398 5.31377 19.2508C5.24487 18.9778 5.20971 18.6975 5.20907 18.4159C5.15469 17.2072 5.10302 16.0024 5.05271 14.7937C5.01716 14.4481 5.04154 14.0989 5.12477 13.7616C5.18474 13.5696 5.28262 13.3916 5.41263 13.238C5.54264 13.0845 5.70213 12.9587 5.88165 12.8679C6.06118 12.7771 6.2571 12.7233 6.4578 12.7096C6.65851 12.6959 6.85992 12.7226 7.05012 12.7881C8.63555 12.5297 10.2726 12.2809 11.8336 12.6521C12.1926 12.7378 12.5692 12.8751 12.7772 13.181C12.9472 13.434 12.9689 13.7521 12.988 14.0567C13.0605 15.3104 13.133 16.5649 13.2055 17.8204C13.2327 18.2759 13.2545 18.7368 13.1008 19.1488Z",fill:"#F4816B"}),(0,a.createElement)(i.Path,{d:"M12.6452 8.15827C12.7187 7.47841 12.0361 6.85431 11.3535 6.93453C11.1316 6.97029 10.9165 7.04 10.7158 7.14121C10.5294 7.21597 10.3327 7.26182 10.1325 7.27718C9.81839 7.34244 9.5179 7.47841 9.2038 7.49745C8.93186 7.52056 8.57698 7.5532 8.31183 7.46346L7.57351 7.21599L7.40218 7.15344C7.2061 7.06715 6.99944 7.00725 6.7876 6.97532C6.01528 6.89782 5.30551 7.71228 5.5489 8.471C5.79229 9.22972 6.72777 9.36841 7.39403 9.18621C7.67413 9.11007 7.93791 8.99313 8.22345 8.92651C8.711 8.83154 9.21264 8.83523 9.69874 8.93739C10.1869 9.02169 10.6669 9.1495 11.1577 9.20933C11.7981 9.29363 12.4916 8.91563 12.6289 8.24801C12.6344 8.22082 12.6452 8.1909 12.6452 8.15827Z",fill:"#E8D3C9"}),(0,a.createElement)(i.Path,{d:"M8.21258 15.6802V19.966C7.92855 19.9448 7.64581 19.9089 7.36548 19.8586V15.6802C7.3657 15.5064 7.40363 15.3347 7.47663 15.1769C7.54964 15.0192 7.65599 14.8791 7.78835 14.7665C7.9211 14.8789 8.0278 15.0189 8.10106 15.1766C8.17432 15.3344 8.21237 15.5062 8.21258 15.6802Z",fill:"#D87768"}),(0,a.createElement)(i.Path,{d:"M11.7737 17.3839V19.6152C11.5235 19.6859 11.2706 19.7512 11.0136 19.7961C10.9837 19.7961 10.9579 19.8069 10.928 19.8151V17.3839C10.9282 16.9735 11.0787 16.5774 11.3508 16.2703C11.6236 16.5771 11.7741 16.9734 11.7737 17.3839Z",fill:"#F59085"}),(0,a.createElement)(i.Path,{d:"M7.89865 6.5035C7.82719 6.54284 7.76612 6.59863 7.72049 6.66625C7.67485 6.73387 7.64597 6.81138 7.63623 6.89238C7.6383 6.94844 7.65369 7.00321 7.68111 7.05215C7.70854 7.10109 7.74722 7.1428 7.79396 7.17384C7.88831 7.23528 7.99969 7.26527 8.11213 7.2595C8.30157 7.24621 8.4826 7.17608 8.63154 7.05826C8.78032 6.94126 8.91698 6.80962 9.03945 6.6653C9.0742 6.63585 9.10242 6.59948 9.12232 6.55851C9.14222 6.51754 9.15336 6.47287 9.15503 6.42736C9.12783 6.20164 8.78791 6.24379 8.62746 6.24243C8.36436 6.257 8.11116 6.3477 7.89865 6.5035Z",fill:"#E8D3C9"}),(0,a.createElement)(i.Path,{d:"M12.0756 6.35666C12.0763 6.35353 12.0763 6.35027 12.0756 6.34714C12.0498 6.30227 12.0253 6.2574 12.0035 6.21117C11.9926 6.19077 11.9831 6.16902 11.9709 6.14862C11.82 5.87668 11.7629 5.60473 11.4066 5.56666H11.3808C11.2524 5.56576 11.1286 5.61423 11.035 5.70204C10.9413 5.78986 10.885 5.91031 10.8777 6.03848C11.1999 6.09813 11.5179 6.17898 11.8295 6.28051L11.9845 6.33354L12.0389 6.35258L12.0647 6.36209C12.0658 6.36252 12.0669 6.36271 12.0681 6.36266C12.0692 6.36261 12.0703 6.36232 12.0714 6.36181C12.0724 6.36129 12.0733 6.36057 12.074 6.35968C12.0748 6.35879 12.0753 6.35776 12.0756 6.35666Z",fill:"#53484A"}),(0,a.createElement)(i.Path,{d:"M14.3489 9.47719C14.3489 9.47719 14.3489 7.40363 14.1504 5.75023C14.1631 5.74517 14.1763 5.74153 14.1898 5.73935C14.3124 5.70316 14.4203 5.62893 14.4979 5.52739C14.5755 5.42585 14.6188 5.30226 14.6215 5.17449C14.6242 5.04673 14.5862 4.92141 14.513 4.81665C14.4398 4.71189 14.3352 4.63313 14.2143 4.59175H14.198C13.942 4.50432 13.7209 4.33703 13.5671 4.11449C12.8791 3.10015 11.8498 2.58346 10.9496 2.31831C10.3317 2.13562 9.69042 2.04401 9.04604 2.04637C8.35768 2.04746 7.67354 2.15384 7.01735 2.36182C6.14986 2.63377 5.18174 3.15182 4.52364 4.11721C4.36993 4.33921 4.14865 4.50564 3.89274 4.59175C3.77192 4.63227 3.6672 4.71031 3.59382 4.8145C3.52045 4.91869 3.48226 5.04358 3.48482 5.17099C3.48245 5.30229 3.52435 5.43057 3.60378 5.53516C3.6832 5.63974 3.79553 5.71454 3.92265 5.74751L3.94712 5.75566C3.88186 6.28187 3.83835 6.84343 3.81115 7.37916C3.74997 8.51724 3.74997 9.48263 3.74997 9.48263C3.74997 9.48263 1.42214 12.6535 1.22362 15.5007C1.12028 16.9216 1.54723 18.2596 3.04564 19.0795C5.63725 20.4106 6.81612 18.658 6.81612 18.658C6.81612 18.658 7.58163 17.747 5.83712 16.8196V14.3042C5.83784 14.213 5.87455 14.1259 5.93924 14.0617C6.00393 13.9975 6.09136 13.9615 6.18249 13.9615H6.84467V13.6379C6.84467 13.5658 6.87332 13.4966 6.92432 13.4456C6.97532 13.3946 7.04449 13.366 7.11661 13.366H8.02762C8.09974 13.366 8.16891 13.3946 8.21991 13.4456C8.27091 13.4966 8.29956 13.5658 8.29956 13.6379V13.9615H9.78981V13.6379C9.78981 13.5658 9.81846 13.4966 9.86946 13.4456C9.92046 13.3946 9.98962 13.366 10.0617 13.366H10.9728C11.0449 13.366 11.114 13.3946 11.165 13.4456C11.216 13.4966 11.2447 13.5658 11.2447 13.6379V13.9615H11.9082C11.9989 13.9619 12.0857 13.9981 12.1496 14.0624C12.2136 14.1266 12.2495 14.2135 12.2495 14.3042V16.8169C10.5077 17.7442 11.2746 18.6552 11.2746 18.6552C11.2746 18.6552 12.4494 20.4079 15.0437 19.0768C19.5512 16.6089 14.3489 9.47719 14.3489 9.47719ZM13.5861 7.66198C13.5354 8.43053 13.2351 9.16149 12.7309 9.7437C11.7954 10.8437 10.3187 11.5236 9.04876 12.1708C7.77607 11.5236 6.29535 10.8437 5.35715 9.7437C4.8555 9.16014 4.5564 8.42977 4.50461 7.66198C4.4339 6.4464 4.82006 4.41363 6.17433 3.97036C7.49733 3.53661 8.33627 4.67469 8.63541 5.1941C8.67753 5.26489 8.73721 5.32361 8.80867 5.36458C8.88013 5.40555 8.96096 5.42739 9.04333 5.42797C9.12588 5.42833 9.20708 5.4069 9.2787 5.36584C9.35032 5.32477 9.40984 5.26553 9.45124 5.1941C9.75717 4.67469 10.5934 3.53525 11.9178 3.97036C13.2707 4.41363 13.6541 6.4464 13.5861 7.66198Z",fill:"#87574C"}),(0,a.createElement)(i.Path,{d:"M11.9763 7.60351C11.946 7.58302 11.9108 7.57083 11.8743 7.56816H11.858C11.7533 7.58176 11.7927 7.70413 11.8335 7.7626C11.9807 7.96822 12.0583 8.21546 12.0551 8.46829C12.0541 8.59201 12.02 8.71319 11.9564 8.81932C11.8928 8.92546 11.802 9.01269 11.6935 9.072C11.2855 9.30451 10.9415 8.9945 10.569 8.85445C10.144 8.70162 9.69741 8.61762 9.24598 8.60562V8.03182C9.78596 7.91128 10.2753 7.62625 10.6465 7.21599C10.695 7.1622 10.7316 7.09864 10.7536 7.02959C10.7756 6.96053 10.7825 6.88757 10.774 6.8156C10.7655 6.74362 10.7418 6.67429 10.7043 6.61226C10.6668 6.55023 10.6165 6.49692 10.5567 6.45591C10.1115 6.14086 9.57875 5.97303 9.03329 5.97596C8.48782 5.97889 7.95695 6.15242 7.51507 6.47223C7.4601 6.51237 7.41409 6.5635 7.37994 6.62238C7.34579 6.68125 7.32427 6.74659 7.31672 6.81423C7.30918 6.88187 7.31578 6.95034 7.33612 7.01529C7.35645 7.08024 7.39007 7.14026 7.43484 7.19152C7.80594 7.6164 8.30264 7.91214 8.85302 8.0359V8.6097C8.47005 8.61985 8.09011 8.68066 7.7231 8.79054C7.55681 8.83782 7.39487 8.89923 7.23904 8.9741C6.9535 9.11007 6.66932 9.21205 6.37291 9.03937C6.26953 8.98066 6.18374 8.89535 6.12444 8.7923C6.06515 8.68925 6.03451 8.57222 6.0357 8.45333C6.03418 8.20663 6.11081 7.96578 6.25461 7.76532C6.28181 7.72725 6.30356 7.67014 6.26821 7.62935C6.23286 7.58856 6.16351 7.62935 6.12 7.64566C6.02013 7.69831 5.93146 7.7699 5.85894 7.85642C5.71284 8.02755 5.63405 8.24602 5.6373 8.47101C5.63957 8.65652 5.69034 8.8382 5.78456 8.99802C5.87878 9.15783 6.01317 9.29022 6.17439 9.38202C6.34253 9.48028 6.5333 9.5332 6.72804 9.53558C6.92277 9.53797 7.11478 9.48974 7.28527 9.39561C7.8313 9.11543 8.43948 8.97836 9.0529 8.99722C9.05781 8.99848 9.06295 8.99848 9.06786 8.99722C9.6917 8.98021 10.3091 9.12695 10.8586 9.42281C11.0173 9.51459 11.1974 9.56292 11.3807 9.56292C11.5641 9.56292 11.7442 9.51459 11.9029 9.42281C12.072 9.32549 12.2124 9.18519 12.3098 9.01612C12.4072 8.84706 12.4582 8.65525 12.4576 8.46013C12.4667 8.28643 12.4262 8.11374 12.341 7.96211C12.2558 7.81047 12.1293 7.68613 11.9763 7.60351ZM8.388 6.88014C8.25203 6.99028 8.13102 7.1956 7.9325 7.06915C7.90018 7.04675 7.87012 7.02124 7.84276 6.993C7.8218 6.97182 7.80603 6.94607 7.79669 6.91778C7.78734 6.88948 7.78467 6.85941 7.78888 6.82991C7.7931 6.80041 7.80408 6.77229 7.82098 6.74774C7.83787 6.7232 7.86022 6.70289 7.88627 6.68843C8.1967 6.4998 8.55521 6.40533 8.91829 6.41648L8.388 6.88014Z",fill:"#53484A"}),(0,a.createElement)(i.Path,{d:"M9.915 9.48126C9.81366 9.6161 9.68234 9.72552 9.53143 9.80088C9.38052 9.87624 9.21415 9.91547 9.04547 9.91547C8.87679 9.91547 8.71042 9.87624 8.55951 9.80088C8.4086 9.72552 8.27728 9.6161 8.17593 9.48126C8.14456 9.43925 8.09778 9.41142 8.04589 9.4039C7.994 9.39638 7.94124 9.40978 7.89923 9.44115C7.85722 9.47253 7.82939 9.5193 7.82187 9.5712C7.81435 9.62309 7.82775 9.67584 7.85912 9.71785C7.99751 9.90144 8.17663 10.0504 8.38238 10.1529C8.58814 10.2555 8.81489 10.3089 9.04479 10.3089C9.27469 10.3089 9.50144 10.2555 9.7072 10.1529C9.91295 10.0504 10.0921 9.90144 10.2305 9.71785C10.246 9.69714 10.2573 9.67357 10.2637 9.64849C10.2701 9.62341 10.2716 9.59731 10.2679 9.57168C10.2642 9.54605 10.2556 9.52139 10.2424 9.49911C10.2292 9.47683 10.2117 9.45737 10.191 9.44183C10.1703 9.4263 10.1467 9.41499 10.1217 9.40857C10.0966 9.40214 10.0705 9.40072 10.0448 9.40438C10.0192 9.40804 9.99456 9.41672 9.97228 9.42991C9.95 9.4431 9.93054 9.46055 9.915 9.48126Z",fill:"#53484A"}),(0,a.createElement)(i.Path,{d:"M11.1577 8.64913C11.2643 8.64913 11.3508 8.56268 11.3508 8.45605C11.3508 8.34941 11.2643 8.26297 11.1577 8.26297C11.051 8.26297 10.9646 8.34941 10.9646 8.45605C10.9646 8.56268 11.051 8.64913 11.1577 8.64913Z",fill:"#53484A"}),(0,a.createElement)(i.Path,{d:"M10.5446 8.28743C10.6513 8.28743 10.7377 8.20099 10.7377 8.09435C10.7377 7.98772 10.6513 7.90128 10.5446 7.90128C10.438 7.90128 10.3516 7.98772 10.3516 8.09435C10.3516 8.20099 10.438 8.28743 10.5446 8.28743Z",fill:"#53484A"}),(0,a.createElement)(i.Path,{d:"M6.93307 8.64913C7.0397 8.64913 7.12615 8.56268 7.12615 8.45605C7.12615 8.34941 7.0397 8.26297 6.93307 8.26297C6.82643 8.26297 6.73999 8.34941 6.73999 8.45605C6.73999 8.56268 6.82643 8.64913 6.93307 8.64913Z",fill:"#53484A"}),(0,a.createElement)(i.Path,{d:"M7.54635 8.28743C7.65299 8.28743 7.73943 8.20099 7.73943 8.09435C7.73943 7.98772 7.65299 7.90128 7.54635 7.90128C7.43972 7.90128 7.35327 7.98772 7.35327 8.09435C7.35327 8.20099 7.43972 8.28743 7.54635 8.28743Z",fill:"#53484A"}),(0,a.createElement)(i.Path,{d:"M6.01525 6.35664C6.01445 6.35352 6.01445 6.35025 6.01525 6.34713C6.04109 6.30226 6.06556 6.25739 6.08868 6.21115C6.09955 6.19076 6.10907 6.169 6.11995 6.14861C6.27088 5.87667 6.32799 5.60472 6.68559 5.56665H6.71007C6.83819 5.56646 6.96151 5.61543 7.05461 5.70347C7.1477 5.7915 7.20348 5.91189 7.21044 6.03983C6.88812 6.09915 6.57014 6.18 6.25864 6.28186L6.10227 6.33489L6.04789 6.35392L6.02341 6.36344C6.02341 6.36344 6.01525 6.36208 6.01525 6.35664Z",fill:"#53484A"}),(0,a.createElement)(i.Path,{d:"M13.3525 15.1282C13.3523 15.3089 13.323 15.4884 13.2655 15.6598C13.2118 15.8229 13.1363 15.9779 13.0411 16.1207C13.0003 16.1903 12.9548 16.2571 12.9051 16.3206C12.8496 16.3777 12.7911 16.4317 12.7297 16.4824L12.7066 16.5042C12.6386 16.5627 12.5625 16.617 12.4904 16.6714L12.4659 16.6905L12.436 16.7081C12.4143 16.7217 12.3966 16.7353 12.3748 16.7462C12.3531 16.7571 12.3341 16.7734 12.315 16.7843L12.2824 16.8033L12.2525 16.8196C12.2497 16.7825 12.2497 16.7453 12.2525 16.7081V15.8162C12.2525 15.4762 12.2525 15.1363 12.2525 14.7937V14.3042C12.2525 14.2135 12.2166 14.1266 12.1526 14.0624C12.0886 13.9981 12.0018 13.9619 11.9112 13.9615H11.2463V13.6379C11.2463 13.5658 11.2176 13.4966 11.1666 13.4456C11.1156 13.3946 11.0465 13.366 10.9743 13.366H10.062C9.98985 13.366 9.92068 13.3946 9.86968 13.4456C9.81868 13.4966 9.79003 13.5658 9.79003 13.6379V13.9615H8.30115V13.6379C8.30115 13.5658 8.27249 13.4966 8.2215 13.4456C8.1705 13.3946 8.10133 13.366 8.0292 13.366H7.1182C7.04607 13.366 6.9769 13.3946 6.9259 13.4456C6.8749 13.4966 6.84625 13.5658 6.84625 13.6379V13.9615H6.18271C6.13754 13.9613 6.09277 13.9701 6.05096 13.9872C6.00916 14.0043 5.97114 14.0295 5.93907 14.0613C5.907 14.0931 5.88151 14.131 5.86405 14.1726C5.8466 14.2143 5.83753 14.259 5.83735 14.3042V16.6714C5.8412 16.7167 5.8412 16.7622 5.83735 16.8074C5.62372 16.6941 5.42806 16.5498 5.25675 16.3791C5.17926 16.3062 5.11161 16.2234 5.05551 16.133C5.16311 15.994 5.26298 15.8492 5.35465 15.6992C5.22956 15.7074 5.03648 15.6992 4.8502 15.7264C4.77619 15.5342 4.73794 15.3301 4.73734 15.1241C4.7369 15.0596 4.74053 14.9951 4.74822 14.931C4.86978 14.7846 4.97936 14.6286 5.07591 14.4646H4.86923C5.34105 13.3252 7.03389 12.4699 9.04627 12.4699C10.0345 12.4547 11.0113 12.6826 11.8908 13.1335C11.8201 13.2327 11.7548 13.3333 11.7099 13.4054C11.8991 13.4057 12.0881 13.3929 12.2756 13.3673C12.9446 13.8419 13.3525 14.4551 13.3525 15.1282Z",fill:"#775049"}),(0,a.createElement)(i.Path,{d:"M4.56173 9.71378C3.03477 10.9334 1.76752 13.589 1.22363 15.5007C1.42215 12.6535 3.74182 9.47719 3.74182 9.47719C3.74182 9.47719 3.74182 8.5118 3.80301 7.37372C3.84176 7.88946 3.96677 8.39504 4.17285 8.8694C4.05771 9.01407 3.95232 9.16624 3.85739 9.32491C3.98113 9.31675 4.17829 9.3249 4.36185 9.29771C4.42983 9.43912 4.49646 9.57917 4.56173 9.71378Z",fill:"#775049"}),(0,a.createElement)(i.Path,{d:"M9.04627 2.03956C8.35791 2.04065 7.67377 2.14703 7.01758 2.35501C7.22969 2.45427 7.42549 2.55897 7.60905 2.66639C7.51251 2.79284 7.43229 2.93833 7.36566 3.03079C7.60034 3.03533 7.83478 3.01344 8.06456 2.96552C8.1611 3.03623 8.24812 3.10965 8.3365 3.18172C8.29163 3.2497 8.2522 3.31769 8.21684 3.368C8.29707 3.368 8.40448 3.368 8.52006 3.35712C8.61198 3.45013 8.69654 3.55014 8.77297 3.65626C8.79314 3.68406 8.81962 3.70669 8.85022 3.7223C8.88083 3.73791 8.91469 3.74604 8.94905 3.74604C8.9834 3.74604 9.01727 3.73791 9.04787 3.7223C9.07848 3.70669 9.10496 3.68406 9.12513 3.65626C9.46914 3.16404 10.1014 2.70446 10.9539 2.31694C10.335 2.13201 9.69228 2.03857 9.04627 2.03956Z",fill:"#775049"}),(0,a.createElement)(i.Path,{d:"M16.107 12.6372C16.035 12.4672 15.9615 12.2972 15.884 12.1354C15.6814 11.6935 15.4652 11.2856 15.2613 10.928C15.1688 10.7635 15.0804 10.6126 14.9893 10.4725C14.6209 9.85655 14.3421 9.47719 14.3421 9.47719C14.3421 9.47719 14.3421 8.5118 14.2809 7.37372C14.2211 8.31192 13.8404 9.04888 13.5222 9.71378C13.6754 9.83888 13.8268 9.97485 13.9764 10.1217C14.1123 10.2577 14.2483 10.4072 14.3748 10.5636C14.4346 10.6316 14.4876 10.6996 14.5447 10.7744C14.4455 10.9035 14.3639 11.0463 14.2973 11.1401C14.4237 11.132 14.6127 11.1401 14.7976 11.117C15.0714 11.5 15.3211 11.8997 15.5455 12.3136C15.412 12.4654 15.2936 12.6297 15.1919 12.8044C15.3894 12.805 15.5866 12.7913 15.7821 12.7636C16.2263 13.6403 16.5873 14.5566 16.8603 15.5007C16.7978 14.538 16.4878 13.5373 16.107 12.6372Z",fill:"#775049"})),(0,a.createElement)(i.Defs,null,(0,a.createElement)("clipPath",null,(0,a.createElement)(i.Rect,{width:"20",height:"19.9986",fill:"white"}))))},d=()=>(0,a.createElement)(i.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(i.Path,{d:"M17.348 20.657v-0.135c1.029-0.471 1.758-1.446 1.916-2.563 0.434-0.157 0.739-0.576 0.739-1.051 0-0.408-0.221-0.774-0.562-0.969 0.036-0.111 0.065-0.223 0.087-0.335 0.182-0.901-0.025-1.822-0.583-2.592-0.548-0.758-1.373-1.281-2.321-1.473-0.255-0.051-0.515-0.077-0.773-0.077-0.813 0-1.607 0.262-2.234 0.739-0.646 0.49-1.088 1.187-1.244 1.962-0.118 0.587-0.070 1.193 0.139 1.762-0.355 0.191-0.59 0.566-0.59 0.985 0 0.481 0.31 0.901 0.751 1.055 0.163 1.144 0.916 2.128 1.978 2.587v0.106c-2.207 0.5-3.729 2.151-3.729 4.079v0.515h10.153v-0.515c0-1.929-1.522-3.58-3.729-4.080zM15.853 12.492c0.189 0 0.381 0.019 0.569 0.057 0.693 0.14 1.293 0.519 1.689 1.066 0.369 0.511 0.518 1.111 0.423 1.701-0.507-0.237-1.173-0.487-1.874-0.583-1.318-0.18-1.339-0.241-1.417-0.469l-0.252-0.728-0.579 0.512c-0.062 0.054-0.528 0.464-1.066 0.91-0.015-0.198-0.002-0.396 0.037-0.593 0.219-1.086 1.257-1.873 2.469-1.873zM13.67 16.025c0.361-0.292 0.718-0.594 0.977-0.816 0.358 0.323 0.916 0.414 1.874 0.545 0.65 0.089 1.287 0.349 1.748 0.578v1.161c0 1.268-1.031 2.299-2.299 2.299s-2.299-1.031-2.299-2.299v-1.468zM15.682 20.81c0.213 0.019 0.425 0.017 0.635-0.006v0.318l-0.318 0.177-0.317-0.176v-0.313zM12.006 24.22c0.237-1.154 1.25-2.113 2.646-2.501v0.010l1.346 0.748 1.35-0.748v-0.010c1.396 0.388 2.409 1.348 2.646 2.502l-7.987-0zM21.076 27.499h-10.153c-0.307 0-0.556-0.249-0.556-0.556s0.249-0.556 0.556-0.556h10.153c0.307 0 0.556 0.249 0.556 0.556s-0.249 0.556-0.556 0.556zM28.112 3.393h-9.422v-1.689c0-0.832-0.677-1.509-1.509-1.509h-2.363c-0.832 0-1.509 0.677-1.509 1.509v1.689h-9.422c-0.832 0-1.509 0.677-1.509 1.509v25.395c0 0.832 0.677 1.509 1.509 1.509h24.225c0.832 0 1.509-0.677 1.509-1.509v-25.395c-0-0.832-0.677-1.509-1.509-1.509zM14.421 1.703c0-0.219 0.178-0.397 0.397-0.397h2.363c0.219 0 0.397 0.178 0.397 0.397v5.083c0 0.219-0.178 0.397-0.397 0.397h-2.363c-0.219 0-0.397-0.178-0.397-0.397v-5.083zM28.509 30.297c0 0.219-0.178 0.397-0.397 0.397h-24.225c-0.219 0-0.397-0.178-0.397-0.397v-25.395c0-0.219 0.178-0.397 0.397-0.397h9.422v2.282c0 0.832 0.677 1.509 1.509 1.509h2.363c0.832 0 1.509-0.677 1.509-1.509v-2.282h9.422c0.219 0 0.397 0.178 0.397 0.397v25.395z"})),m=()=>(0,a.createElement)(i.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(i.Path,{d:"M30.457 11.777h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 18.886c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 15.523h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 23.388h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 30.497c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 27.134h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 0h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c0-0.829-0.674-1.503-1.503-1.503zM30.84 7.109c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM5.62 4.306c0 0.525-0.425 0.95-0.95 0.95s-0.95-0.425-0.95-0.95c0-0.525 0.425-0.95 0.95-0.95s0.95 0.425 0.95 0.95zM7.947 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 3.746h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56z"})),u=()=>(0,a.createElement)(i.SVG,{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(i.Path,{d:"M 5 5 L 5 27 L 27 27 L 27 5 Z M 7 7 L 25 7 L 25 25 L 7 25 Z M 14 9 L 14 15 L 23 15 L 23 9 Z M 9 11 L 9 13 L 12 13 L 12 11 Z M 16 11 L 21 11 L 21 13 L 16 13 Z M 14 17 L 14 23 L 23 23 L 23 17 Z M 9 19 L 9 21 L 12 21 L 12 19 Z M 16 19 L 21 19 L 21 21 L 16 21 Z"})),b=()=>(0,a.createElement)(i.SVG,{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(i.Path,{d:"M 1 9 L 1 10 L 1 23 L 31 23 L 31 9 L 1 9 z M 3 11 L 29 11 L 29 21 L 3 21 L 3 11 z M 5 17 L 5 19 L 7 19 L 7 17 L 5 17 z M 9 17 L 9 19 L 11 19 L 11 17 L 9 17 z M 13 17 L 13 19 L 15 19 L 15 17 L 13 17 z"})),p=()=>(0,a.createElement)(i.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(i.Path,{d:"M30.584 0.099h-29.068c-0.781 0-1.417 0.635-1.417 1.416v29.068c0 0.781 0.635 1.416 1.417 1.416h29.068c0.781 0 1.416-0.635 1.416-1.416v-29.068c0-0.781-0.635-1.416-1.416-1.416zM1.515 1.219h29.068c0.163 0 0.296 0.133 0.296 0.296v3.476h-29.661v-3.476c0-0.163 0.133-0.296 0.296-0.296zM30.584 30.88h-29.068c-0.163 0-0.296-0.133-0.296-0.296v-24.472h29.661v24.472c0 0.163-0.133 0.296-0.296 0.296zM26.999 20.461h-21.062c-0.838 0-1.52 0.682-1.52 1.52v5.601c0 0.838 0.682 1.52 1.52 1.52h21.062c0.838 0 1.52-0.682 1.52-1.52v-5.601c0-0.838-0.682-1.52-1.52-1.52zM27.399 27.582c0 0.221-0.18 0.4-0.4 0.4h-21.062c-0.221 0-0.4-0.18-0.4-0.4v-5.601c0-0.221 0.179-0.4 0.4-0.4h21.062c0.221 0 0.4 0.179 0.4 0.4v5.601zM5.937 16.247h5.432c0.838 0 1.52-0.682 1.52-1.52v-5.432c0-0.838-0.682-1.52-1.52-1.52h-5.432c-0.838 0-1.52 0.682-1.52 1.52v5.432c0 0.838 0.682 1.52 1.52 1.52zM5.537 9.294c0-0.221 0.179-0.4 0.4-0.4h5.432c0.221 0 0.4 0.179 0.4 0.4v5.432c0 0.221-0.18 0.4-0.4 0.4h-5.432c-0.221 0-0.4-0.18-0.4-0.4v-5.432zM27.959 17.714h-22.982c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h22.982c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 14.793h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 11.433h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 8.072h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM4.543 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM7.384 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM10.224 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9z"})),g=()=>(0,a.createElement)(i.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(i.Path,{d:"M31.276 3.351h-14.587l-3.23-3.028c-0.103-0.097-0.239-0.15-0.38-0.15h-12.354c-0.307 0-0.556 0.249-0.556 0.556v30.697c0 0.307 0.249 0.556 0.556 0.556h30.551c0.307 0 0.556-0.249 0.556-0.556v-27.518c0-0.307-0.249-0.556-0.556-0.556zM1.281 1.286h11.578l3.23 3.028c0.103 0.097 0.239 0.15 0.38 0.15h14.25v3.013h-29.439v-6.191zM30.719 30.87h-29.439v-22.281h29.439v22.281z"})),h=()=>(0,a.createElement)(i.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(i.Path,{d:"M30.958 13.988h-0.64c-0.572-5.298-4.029-9.744-8.764-11.73h5.439v0.555c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.229c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.229c0.309 0 0.559-0.25 0.559-0.559v-0.555h5.439c-4.735 1.987-8.191 6.432-8.764 11.73h-0.64c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-0.464c0.709-6.044 5.49-10.86 11.518-11.621v0.446c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-0.446c6.028 0.761 10.809 5.578 11.518 11.621h-0.464c-0.309 0-0.559 0.25-0.559 0.559v2.23c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559zM29.223 2.253h-1.111v-1.111h1.111v1.111zM2.777 1.142h1.111v1.111h-1.111v-1.111zM2.712 15.608v0.609h-1.111v-0.973c0.001-0.046 0.002-0.092 0.003-0.138h1.108v0.501zM16 1.142c0.186 0 0.371 0.005 0.555 0.012v1.099h-1.111v-1.099c0.184-0.007 0.37-0.012 0.556-0.012zM30.399 15.25v0.967h-1.111v-1.111h1.107c0.002 0.048 0.003 0.096 0.004 0.144zM16.512 4.461c-0.089-0.204-0.29-0.336-0.513-0.336s-0.424 0.132-0.513 0.336l-7.287 16.694c-0.058 0.134-0.062 0.285-0.011 0.421l0.009 0.023c0.059 0.157 0.186 0.279 0.345 0.333 1.743 0.585 2.914 2.213 2.914 4.052 0 0.766-0.206 1.518-0.595 2.175-0.012 0.020-0.022 0.041-0.032 0.063-0.063 0.091-0.101 0.201-0.101 0.32v2.832c0 0.307 0.248 0.557 0.555 0.559l9.42 0.068c0.001 0 0.003 0 0.004 0 0.307 0 0.557-0.248 0.559-0.555 0.002-0.309-0.246-0.561-0.555-0.563l-8.865-0.064v-1.405h8.654c0.234 0 0.443-0.145 0.524-0.364l0.153-0.41c0.059-0.158 0.043-0.335-0.043-0.48-0.389-0.657-0.595-1.409-0.595-2.174 0-1.838 1.171-3.467 2.914-4.052 0.16-0.054 0.287-0.176 0.346-0.334l0.009-0.023c0.051-0.136 0.047-0.287-0.011-0.42l-7.287-16.694zM16 20.028c0.619 0 1.122 0.503 1.122 1.122s-0.504 1.122-1.122 1.122c-0.619 0-1.122-0.503-1.122-1.122s0.503-1.122 1.122-1.122zM19.424 25.983c0 0.802 0.179 1.591 0.52 2.31h-7.887c0.341-0.719 0.52-1.509 0.52-2.31 0-2.121-1.235-4.020-3.127-4.894l5.991-13.726v11.616c-0.966 0.249-1.682 1.128-1.682 2.17 0 1.236 1.005 2.241 2.241 2.241s2.241-1.005 2.241-2.241c0-1.043-0.716-1.921-1.682-2.17v-11.616l5.991 13.726c-1.892 0.874-3.127 2.773-3.127 4.894z"})),k=()=>(0,a.createElement)(i.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(i.Path,{d:"M30.424 0.171h-28.847c-0.775 0-1.406 0.631-1.406 1.406v28.848c0 0.775 0.631 1.406 1.406 1.406h28.847c0.775 0 1.406-0.631 1.406-1.406v-28.848c0-0.775-0.631-1.406-1.406-1.406zM1.576 1.282h28.847c0.162 0 0.294 0.132 0.294 0.294v3.45h-29.435v-3.45c0-0.162 0.132-0.294 0.294-0.294zM30.424 30.718h-28.847c-0.162 0-0.294-0.132-0.294-0.294v-24.286h29.435v24.286c0 0.162-0.132 0.294-0.294 0.294zM3.688 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM6.507 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM9.326 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM20.662 19.394l3.855-3.758c0.152-0.148 0.206-0.369 0.141-0.57s-0.239-0.348-0.449-0.378l-5.328-0.774-2.383-4.828c-0.094-0.19-0.287-0.31-0.498-0.31s-0.405 0.12-0.498 0.31l-2.383 4.828-5.328 0.774c-0.209 0.030-0.383 0.177-0.449 0.378s-0.011 0.422 0.141 0.57l3.855 3.758-0.91 5.307c-0.036 0.209 0.050 0.419 0.221 0.544s0.398 0.141 0.585 0.042l4.766-2.506 4.766 2.506c0.081 0.043 0.17 0.064 0.259 0.064 0.115 0 0.23-0.036 0.327-0.106 0.171-0.124 0.257-0.335 0.221-0.544l-0.91-5.307zM16.259 21.661c-0.162-0.085-0.355-0.085-0.517 0l-4.027 2.117 0.769-4.485c0.031-0.18-0.029-0.364-0.16-0.492l-3.258-3.176 4.503-0.654c0.181-0.026 0.338-0.14 0.418-0.304l2.014-4.080 2.014 4.080c0.081 0.164 0.238 0.278 0.419 0.304l4.503 0.654-3.258 3.176c-0.131 0.128-0.191 0.312-0.16 0.492l0.769 4.485-4.027-2.117zM16 25.179c-0.307 0-0.556 0.249-0.556 0.556v1.887c0 0.307 0.249 0.556 0.556 0.556s0.556-0.249 0.556-0.556v-1.887c0-0.307-0.249-0.556-0.556-0.556zM25.319 20.446l-1.794-0.583c-0.293-0.095-0.606 0.065-0.7 0.357s0.065 0.606 0.357 0.7l1.794 0.583c0.057 0.019 0.115 0.027 0.172 0.027 0.234 0 0.452-0.149 0.529-0.384 0.095-0.292-0.065-0.606-0.357-0.7zM20.218 12.197c0.099 0.072 0.213 0.106 0.326 0.106 0.172 0 0.341-0.079 0.45-0.229l1.109-1.526c0.18-0.248 0.125-0.596-0.123-0.776s-0.596-0.125-0.776 0.123l-1.109 1.526c-0.18 0.248-0.125 0.596 0.123 0.776zM11.006 12.075c0.109 0.15 0.278 0.229 0.45 0.229 0.113 0 0.228-0.034 0.326-0.106 0.248-0.18 0.303-0.528 0.123-0.776l-1.109-1.526c-0.18-0.248-0.528-0.303-0.776-0.123s-0.303 0.528-0.123 0.776l1.109 1.526zM8.475 19.863l-1.794 0.583c-0.292 0.095-0.452 0.408-0.357 0.7 0.076 0.235 0.294 0.384 0.529 0.384 0.057 0 0.115-0.009 0.172-0.027l1.794-0.583c0.292-0.095 0.452-0.408 0.357-0.7s-0.408-0.452-0.7-0.357z"})),v=()=>(0,a.createElement)(i.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(i.Path,{d:"M6.348 13.197c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.803-2.873-2.769-2.873zM25.842 3.161c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557zM25.742 22.433c-0.826 0-1.641 0.22-2.359 0.636-0.567 0.328-1.040 0.758-1.41 1.252l-11.344-6.569c0.069-0.174 0.13-0.353 0.179-0.537 0.276-1.036 0.194-2.11-0.226-3.079l11.319-6.555c0.878 1.235 2.316 1.986 3.848 1.986 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353-0.826 0-1.641 0.22-2.359 0.636-2.051 1.188-2.872 3.694-2.015 5.833l-11.344 6.569c-0.884-1.176-2.285-1.888-3.776-1.888-0.825 0-1.641 0.22-2.359 0.636-2.25 1.303-3.021 4.194-1.718 6.444 0.841 1.452 2.406 2.353 4.085 2.353 0.826 0 1.641-0.22 2.359-0.636 0.595-0.345 1.097-0.805 1.483-1.35l11.319 6.554c-0.567 1.323-0.526 2.888 0.249 4.227 0.841 1.452 2.406 2.353 4.085 2.353 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353zM23.941 1.734c0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.798-0.995-1.719-0.407-3.927 1.312-4.922zM8.056 19.117c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189zM29.226 28.077c-0.248 0.93-0.843 1.707-1.675 2.189-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.832 0.611 1.803 0.363 2.733zM25.842 24.346c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873z"})),y=()=>(0,a.createElement)(i.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(i.Path,{d:"M16 27.667l7.849-7.849c0.146-0.139 0.464-0.469 0.478-0.483l0.006-0.007c1.972-2.116 3.059-4.874 3.059-7.766 0-6.282-5.11-11.392-11.392-11.392s-11.392 5.11-11.392 11.392c0 2.893 1.086 5.651 3.058 7.766l8.334 8.339zM16 1.265c5.677 0 10.297 4.619 10.297 10.297 0 2.613-0.981 5.104-2.761 7.016-0.092 0.096-0.343 0.353-0.446 0.451l-7.089 7.089-7.539-7.543c-1.779-1.911-2.758-4.401-2.758-7.012 0-5.678 4.619-10.297 10.297-10.297zM17.755 4.005c1.966 0 5.792 2.149 5.792 6.090 0 0.303 0.245 0.548 0.548 0.548s0.548-0.245 0.548-0.548c0-2.051-0.906-3.953-2.552-5.354-1.306-1.112-3.008-1.831-4.335-1.831-0.302 0-0.548 0.245-0.548 0.548s0.245 0.548 0.548 0.548zM22.875 24.197c-0.427-0.174-0.886-0.33-1.371-0.467l-0.897 0.897c2.645 0.631 4.275 1.756 4.275 2.802 0 1.564-3.648 3.306-8.882 3.306s-8.882-1.742-8.882-3.306c0-1.045 1.631-2.171 4.275-2.802l-0.897-0.897c-0.485 0.137-0.944 0.293-1.371 0.467-2.001 0.818-3.102 1.966-3.102 3.232s1.102 2.415 3.102 3.232c1.845 0.754 4.287 1.169 6.875 1.169s5.030-0.415 6.875-1.169c2.001-0.818 3.102-1.966 3.102-3.232s-1.102-2.415-3.102-3.232zM16.032 16.804c-3.043 0-5.519-2.476-5.519-5.519s2.476-5.519 5.519-5.519c3.043 0 5.519 2.476 5.519 5.519s-2.476 5.519-5.519 5.519zM16.032 6.862c-2.439 0-4.423 1.984-4.423 4.423s1.984 4.423 4.423 4.423c2.439 0 4.423-1.984 4.423-4.423s-1.984-4.423-4.423-4.423z"})),_=()=>(0,a.createElement)(i.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(i.Path,{d:"M4.285 5.775c0.004 0 0.009 0.001 0.013 0.001h8.279c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-8.279c-0.307 0-0.556 0.249-0.556 0.556 0 0.302 0.242 0.548 0.542 0.555zM3.743 8.005c0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-13.679c-0.307 0-0.556 0.249-0.556 0.556zM17.977 10.236h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 13.022h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 15.807h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 18.593h-13.679c-0.307 0-0.556 0.249-0.556 0.555s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.555-0.556-0.555zM17.977 21.379h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 24.165h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM21.93 4.466l-4.277-3.87c-0.094-0.085-0.212-0.132-0.334-0.139h-15.831c-0.812 0-1.473 0.664-1.473 1.481v28.153c0 0.817 0.661 1.481 1.473 1.481h19.174c0.812 0 1.473-0.664 1.473-1.481v-25.222c-0.008-0.163-0.086-0.308-0.205-0.403zM17.833 2.238l2.331 2.109h-2.331v-2.109zM21.043 30.091c0 0.215-0.171 0.39-0.381 0.39h-19.174c-0.21 0-0.382-0.175-0.382-0.39v-28.153c0-0.215 0.171-0.39 0.382-0.39h15.251v3.348c0 0.303 0.245 0.549 0.547 0.549h3.758v24.647zM31.975 3.213c-0.125-1.57-1.442-2.809-3.044-2.809-0 0-0 0-0 0-0.816 0-1.583 0.318-2.16 0.895-0.519 0.519-0.827 1.191-0.884 1.915h-0.010v0.242c0 0.001-0 0.002-0 0.003s0 0.001 0 0.001l-0 24.342h0.003c0.010 0.096 0.045 0.191 0.108 0.273l2.509 3.305c0.103 0.136 0.264 0.216 0.435 0.216s0.331-0.080 0.435-0.216l2.508-3.305c0.063-0.083 0.098-0.177 0.108-0.274h0.003v-24.589h-0.011zM27.543 2.070c0.371-0.371 0.864-0.575 1.388-0.575h0c0.893 0 1.649 0.6 1.886 1.417h-3.772c0.091-0.315 0.26-0.604 0.498-0.842zM28.362 26.711l-1.394 0 0-22.406h3.926v22.406h-1.442l0-18.071-1.090 0 0 18.071zM28.931 30.148l-1.781-2.346 3.562-0-1.781 2.346z"})),f=()=>(0,a.createElement)(i.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(i.Path,{d:"M31.908 1.543c0-0.815-0.677-1.478-1.51-1.478h-28.731c-0.815 0-1.478 0.677-1.478 1.51v14.441c0 0.022 0.002 0.044 0.004 0.065-0.003 0.021-0.004 0.043-0.004 0.065v14.357c0 0.815 0.677 1.478 1.51 1.478h28.731c0.815 0 1.478-0.677 1.478-1.51v-14.441c0-0.022-0.002-0.044-0.004-0.065 0.003-0.021 0.004-0.043 0.004-0.065v-14.357zM30.792 1.543v13.799h-4.324c0.587-0.66 0.932-1.525 0.932-2.453 0-0.737-0.218-1.423-0.592-2-0.648-1.066-1.82-1.78-3.156-1.78-2.034 0-3.689 1.655-3.689 3.689 0 0.745 0.223 1.449 0.615 2.039 0.111 0.178 0.236 0.347 0.376 0.504h-4.372v-6.025c0-0.184-0.090-0.347-0.228-0.449-0.101-0.103-0.242-0.167-0.398-0.167h-0.173c-0.24 0-0.453 0.153-0.529 0.38-0.352 1.049-1.332 1.754-2.439 1.754-0.419 0-0.815-0.101-1.166-0.28-0.776-0.444-1.301-1.279-1.301-2.235 0-1.419 1.154-2.574 2.574-2.574 0.408 0 0.799 0.096 1.147 0.27 0.546 0.305 0.976 0.804 1.185 1.426 0.052 0.155 0.169 0.275 0.314 0.335 0.092 0.065 0.204 0.103 0.322 0.103h0.133c0.308 0 0.558-0.25 0.558-0.558v-6.142h13.816c0.217 0 0.394 0.162 0.394 0.362zM1.305 1.575c0-0.217 0.162-0.394 0.362-0.394h13.732v4.404c-0.239-0.216-0.505-0.401-0.793-0.549-0.536-0.297-1.148-0.464-1.791-0.464-2.034 0-3.689 1.655-3.689 3.689 0 1.423 0.81 2.659 1.992 3.274 0.534 0.301 1.149 0.473 1.804 0.473 0.939 0 1.813-0.354 2.476-0.955v4.404h-6.016c-0.308 0-0.558 0.25-0.558 0.558v0.173c0 0.127 0.043 0.245 0.117 0.34 0.065 0.129 0.178 0.231 0.321 0.279 0.562 0.189 1.023 0.558 1.332 1.030 0.232 0.39 0.364 0.842 0.364 1.318 0 1.419-1.154 2.574-2.574 2.574-0.894 0-1.682-0.458-2.144-1.151-0.236-0.389-0.372-0.844-0.372-1.331-0-1.107 0.705-2.087 1.754-2.44 0.227-0.076 0.38-0.289 0.38-0.529v-0.133c0-0.106-0.030-0.204-0.081-0.288-0.068-0.231-0.282-0.4-0.535-0.4h-6.084v-13.883zM1.305 30.505v-13.799h4.324c-0.587 0.66-0.932 1.525-0.932 2.453 0 0.737 0.218 1.424 0.592 2 0.647 1.066 1.82 1.78 3.156 1.78 2.034 0 3.689-1.655 3.689-3.689-0-0.745-0.223-1.449-0.615-2.040-0.111-0.178-0.236-0.347-0.376-0.504h4.372v6.025c0 0.184 0.090 0.347 0.228 0.449 0.101 0.103 0.242 0.167 0.398 0.167h0.173c0.24 0 0.453-0.153 0.529-0.38 0.352-1.049 1.332-1.754 2.439-1.754 0.419 0 0.815 0.101 1.165 0.28 0.776 0.444 1.301 1.279 1.301 2.236 0 1.419-1.154 2.574-2.574 2.574-0.408 0-0.799-0.096-1.147-0.27-0.546-0.305-0.976-0.804-1.185-1.426-0.052-0.155-0.169-0.275-0.314-0.336-0.092-0.065-0.204-0.103-0.322-0.103h-0.133c-0.308 0-0.558 0.25-0.558 0.558v6.142h-13.816c-0.217-0-0.394-0.163-0.394-0.362zM30.792 30.472c0 0.217-0.162 0.394-0.362 0.394h-13.732v-4.404c0.239 0.216 0.505 0.401 0.792 0.548 0.536 0.297 1.148 0.464 1.791 0.464 2.034 0 3.689-1.655 3.689-3.689 0-1.423-0.81-2.659-1.993-3.274-0.534-0.301-1.149-0.473-1.804-0.473-0.939 0-1.813 0.354-2.476 0.955v-4.404h6.016c0.308 0 0.558-0.25 0.558-0.558v-0.173c0-0.126-0.044-0.245-0.117-0.34-0.064-0.129-0.178-0.231-0.321-0.279-0.562-0.189-1.023-0.558-1.332-1.030-0.232-0.389-0.363-0.842-0.363-1.318 0-1.419 1.154-2.574 2.574-2.574 0.894 0 1.682 0.458 2.144 1.151 0.236 0.389 0.372 0.844 0.372 1.331 0 1.107-0.705 2.087-1.754 2.439-0.227 0.076-0.38 0.289-0.38 0.529v0.133c0 0.106 0.030 0.204 0.081 0.289 0.068 0.231 0.282 0.4 0.535 0.4h6.084v13.883z"})),w=()=>(0,a.createElement)(i.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(i.Path,{d:"M15.517 23.581c-0.036 0.002-0.069-0.003-0.102-0.009-0.108-0.019-0.211-0.070-0.294-0.153l-9.153-9.153c-0.104-0.104-0.162-0.245-0.162-0.392s0.058-0.288 0.163-0.392l2.13-2.129c0.217-0.217 0.568-0.217 0.784 0l6.633 6.633 12.94-12.94c0.217-0.217 0.568-0.217 0.785 0l2.13 2.13c0.104 0.104 0.163 0.245 0.163 0.392s-0.058 0.288-0.162 0.392l-15.46 15.46c-0.104 0.104-0.245 0.163-0.392 0.163zM7.145 13.873l8.37 8.37 14.678-14.678-1.345-1.345-12.94 12.94c-0.217 0.217-0.568 0.217-0.785 0l-6.633-6.633-1.345 1.345zM30.087 11.781c0.401 1.337 0.618 2.753 0.618 4.219 0 8.108-6.596 14.704-14.705 14.704s-14.704-6.596-14.704-14.704c0-8.108 6.596-14.705 14.704-14.705 3.79 0 7.25 1.442 9.86 3.805l0.785-0.785c-2.812-2.564-6.549-4.129-10.645-4.129-8.72 0-15.814 7.094-15.814 15.814s7.094 15.814 15.814 15.814c8.72 0 15.814-7.094 15.814-15.814 0-1.784-0.297-3.501-0.845-5.102l-0.883 0.883z"})),C=()=>(0,a.createElement)(i.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(i.Path,{d:"M17.425 25.368h-3.22v-2.107c-1.234-0.109-2.518-0.463-3.389-0.944l-0.373-0.206 0.93-3.628 0.622 0.341c0.602 0.33 1.835 0.883 3.323 0.883 0.769 0 1.545-0.244 1.545-0.789 0-0.365-0.235-0.783-1.938-1.358-1.985-0.668-4.264-1.78-4.264-4.477 0-2.098 1.387-3.709 3.652-4.289v-2.162h3.22v1.931c1.366 0.11 2.263 0.465 2.838 0.736l0.416 0.196-0.937 3.53-0.621-0.298c-0.539-0.259-1.442-0.692-2.853-0.692-0.488 0-1.307 0.088-1.307 0.681 0 0.448 1.192 0.94 2.231 1.319 2.781 0.973 3.971 2.344 3.971 4.58 0 1.
1
+ !function(){"use strict";var e,t,o,l={9742:function(e,t,o){var l=o(5736),a=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/about-author","title":"About Author","category":"themeisle-blocks","description":"About Author block is the easiest way to add a author bio below your posts. Powered by Otter.","keywords":["about","author","profile"],"textdomain":"otter-blocks","supports":{"html":false},"editorStyle":"otter-about-author-editor","style":"otter-about-author-style"}'),r=o(340),i=o(9307),c=o(2175),s=o(5609),d=window.wp.serverSideRender,m=o.n(d);const{name:u}=n;(0,a.registerBlockType)(u,{...n,title:(0,l.__)("About Author","otter-blocks"),description:(0,l.__)("About Author block is the easiest way to add a author bio below your posts. Powered by Otter.","otter-blocks"),icon:r.authorIcon,keywords:["about","author","profile"],edit:()=>(0,i.createElement)("div",(0,c.useBlockProps)(),(0,i.createElement)(s.Disabled,null,(0,i.createElement)(m(),{block:"themeisle-blocks/about-author"}))),save:()=>null,supports:{inserter:Boolean(window.themeisleGutenberg.isLegacyPre59),html:!1},example:{}});var b=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/accordion","title":"Accordion","category":"themeisle-blocks","description":"Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","keywords":["accordions","collapse","faq"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"gap":{"type":"string"},"titleColor":{"type":"string"},"titleBackground":{"type":"string"},"contentBackground":{"type":"string"},"borderColor":{"type":"string"},"isSynced":{"type":"array"}},"supports":{"html":false},"editorStyle":"otter-accordion-editor","style":"otter-accordion-style"}'),p=o(4184),g=o.n(p),h=o(9818),k=e=>{let{field:t,isSynced:o,setAttributes:a,children:n}=e;const{enableComplementaryArea:r}=(0,h.useDispatch)("core/interface"),c=null==o?void 0:o.includes(t);return(0,i.createElement)("fieldset",{className:"o-sync-control"},(0,i.createElement)("legend",null,(0,i.createElement)(s.ToggleControl,{label:(0,i.createElement)(i.Fragment,null,(0,l.__)("Sync with","otter-blocks")),checked:c,onChange:()=>{let e=[...o||[]];if(c){const o=e.indexOf(t);-1!==o&&e.splice(o,1)}else e.push(t);0===e.length&&(e=void 0),a({isSynced:e})}}),(0,i.createElement)("span",{tabIndex:"0",className:"clickable",onClick:()=>r("core/edit-post","themeisle-blocks/otter-options")},(0,l.__)("Globals","otter-blocks"))),c?(0,i.createElement)(s.Disabled,null,n):n)},v=e=>{let{attributes:t,setAttributes:o,getValue:a}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Gap","otter-blocks"),value:t.gap,options:[{label:(0,l.__)("No Gap","otter-blocks"),value:""},{label:(0,l.__)("Narrow (5px)","otter-blocks"),value:"narrow"},{label:(0,l.__)("Wide (10px)","otter-blocks"),value:"wide"},{label:(0,l.__)("Wider (20px)","otter-blocks"),value:"wider"}],onChange:e=>o({gap:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,i.createElement)(k,{field:"titleColor",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Title","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>o({titleColor:e})})),(0,i.createElement)(k,{field:"titleBackground",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Title Background","otter-blocks"),colorValue:t.titleBackground,onColorChange:e=>o({titleBackground:e})})),(0,i.createElement)(c.ContrastChecker,{textColor:a("titleColor"),backgroundColor:a("titleBackground")}),(0,i.createElement)(k,{field:"contentBackground",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Content Background","otter-blocks"),colorValue:t.contentBackground,onColorChange:e=>o({contentBackground:e})})),(0,i.createElement)(k,{field:"borderColor",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}))))},y=o(5225);const{attributes:_}=b;const{name:f}=b;(0,a.registerBlockType)(f,{...b,title:(0,l.__)("Accordion","otter-blocks"),description:(0,l.__)("Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","otter-blocks"),icon:r.buttonsIcon,keywords:["accordions","collapse","faq"],edit:e=>{let{name:t,attributes:o,setAttributes:l,clientId:a,isSelected:n}=e;(0,i.useEffect)((()=>{const e=(0,y.blockInit)(a,_);return()=>e(o.id)}),[o.id]);const r=e=>(0,y.getDefaultValueByField)({name:t,field:e,defaultAttributes:_,attributes:o}),s={"--title-color":r("titleColor"),"--title-background":r("titleBackground"),"--border-color":r("borderColor"),"--content-background":r("contentBackground")},d=(0,c.useBlockProps)({id:o.id,className:g()({[`is-${o.gap}-gap`]:o.gap}),style:s});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(v,{attributes:o,setAttributes:l,getValue:r}),(0,i.createElement)("div",d,(0,i.createElement)(c.InnerBlocks,{allowedBlocks:["themeisle-blocks/accordion-item"],template:[["themeisle-blocks/accordion-item"]],renderAppender:n?c.InnerBlocks.ButtonBlockAppender:""})))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,className:g()({[`is-${t.gap}-gap`]:t.gap})});return(0,i.createElement)("div",o,(0,i.createElement)(c.InnerBlocks.Content,null))},example:{attributes:{},innerBlocks:[{name:"themeisle-blocks/accordion-item",attributes:{initialOpen:!0,title:(0,l.__)("Accordion Item","otter-blocks")},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:"Lorem ipsum dolor sit amet, eu liber saperet est. Recusabo volutpat has ne, sed dicit eruditi detraxit ut, modus ancillae mei eu.",align:"left"}}]}]}});var w=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/accordion-item","title":"Accordion Item","category":"themeisle-blocks","description":"Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","keywords":["accordions","collapse","faq"],"parent":["themeisle-blocks/accordion"],"textdomain":"otter-blocks","attributes":{"title":{"type":"string"},"initialOpen":{"type":"boolean","default":false}},"supports":{"reusable":false}}'),C=o(6015),E=o(3904),x=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Initially Open","otter-blocks"),checked:t.initialOpen,onChange:e=>o({initialOpen:e})})))};const{name:T}=w;(0,a.registerBlockType)(T,{...w,title:(0,l.__)("Accordion Item","otter-blocks"),description:(0,l.__)("Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","otter-blocks"),icon:r.buttonsIcon,keywords:["accordions","collapse","faq"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[a,n]=(0,i.useState)(!0);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(x,{attributes:t,setAttributes:o}),(0,i.createElement)("div",(0,c.useBlockProps)(),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__title",onClick:e=>{"string"==typeof e.target.className&&e.target.className.includes("block-editor-rich-text__editable")?n(!0):n(!a)}},(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.title,onChange:e=>{a||n(!0),o({title:e})},tagName:"span"}),(0,i.createElement)(s.Icon,{icon:a?C.Z:E.Z,size:24})),a&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,i.createElement)(c.InnerBlocks,{template:[["core/paragraph"]]}))))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({open:!!t.initialOpen});return(0,i.createElement)("details",o,(0,i.createElement)("summary",{className:"wp-block-themeisle-blocks-accordion-item__title"},(0,i.createElement)(c.RichText.Content,{tagName:"div",value:t.title})),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,i.createElement)(c.InnerBlocks.Content,null)))}});var S=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-heading","title":"Advanced Heading","category":"themeisle-blocks","description":"Advanced Heading gives a spin to editor\'s Heading block with much needed customization options. Powered by Otter.","keywords":["heading","title","advanced heading"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"content":{"type":"string","source":"html","selector":"h1,h2,h3,h4,h5,h6,div,p,span","default":""},"tag":{"default":"h2","type":"string"},"align":{"type":"string"},"alignTablet":{"type":"string"},"alignMobile":{"type":"string"},"headingColor":{"type":"string"},"highlightColor":{"type":"string"},"highlightBackground":{"type":"string"},"fontSize":{"type":"number"},"fontSizeTablet":{"type":"number"},"fontSizeMobile":{"type":"number"},"fontFamily":{"type":"string"},"fontVariant":{"type":"string"},"fontStyle":{"type":"string"},"textTransform":{"type":"string"},"lineHeight":{"type":"number"},"letterSpacing":{"type":"number"},"textShadow":{"type":"boolean","default":false},"textShadowColor":{"type":"string","default":"#000000"},"textShadowColorOpacity":{"type":"number","default":50},"textShadowBlur":{"type":"number","default":5},"textShadowHorizontal":{"type":"number","default":0},"textShadowVertical":{"type":"number","default":0},"paddingType":{"type":"string","default":"linked"},"paddingTypeTablet":{"type":"string","default":"linked"},"paddingTypeMobile":{"type":"string","default":"linked"},"padding":{"type":"number","default":0},"paddingTablet":{"type":"number"},"paddingMobile":{"type":"number"},"paddingTop":{"type":"number","default":0},"paddingTopTablet":{"type":"number"},"paddingTopMobile":{"type":"number"},"paddingRight":{"type":"number","default":0},"paddingRightTablet":{"type":"number"},"paddingRightMobile":{"type":"number"},"paddingBottom":{"type":"number","default":0},"paddingBottomTablet":{"type":"number"},"paddingBottomMobile":{"type":"number"},"paddingLeft":{"type":"number","default":0},"paddingLeftTablet":{"type":"number"},"paddingLeftMobile":{"type":"number"},"marginType":{"type":"string","default":"unlinked"},"marginTypeTablet":{"type":"string","default":"unlinked"},"marginTypeMobile":{"type":"string","default":"unlinked"},"margin":{"type":"number","default":0},"marginTablet":{"type":"number"},"marginMobile":{"type":"number"},"marginTop":{"type":"number","default":0},"marginTopTablet":{"type":"number"},"marginTopMobile":{"type":"number"},"marginBottom":{"type":"number","default":25},"marginBottomTablet":{"type":"number"},"marginBottomMobile":{"type":"number"}},"editorStyle":"otter-advanced-heading-editor","style":"otter-advanced-heading-style"}'),M=o(6713),B=o(2629);const z="themeisle-blocks/highlight";(0,B.registerFormatType)(z,{name:z,title:(0,l.__)("Highlight","otter-blocks"),tagName:"span",className:"highlight",edit:e=>{let{isActive:t,value:o,onChange:a}=e;const n=()=>a((0,B.toggleFormat)(o,{type:z}));return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.RichTextShortcut,{type:"primary",character:"h",onUse:n}),(0,i.createElement)(c.RichTextToolbarButton,{icon:M.Z,title:(0,l.__)("Highlight","otter-blocks"),onClick:n,isActive:t,shortcutType:"access",shortcutCharacter:"h"}))}});var P=o(80),R=o.n(P);const V=[{attributes:{id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number",default:0},paddingMobile:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number",default:0},paddingTopMobile:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number",default:0},paddingRightMobile:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number",default:0},paddingBottomMobile:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number",default:0},paddingLeftMobile:{type:"number",default:0},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number",default:0},marginMobile:{type:"number",default:0},marginTop:{type:"number",default:0},marginTopTablet:{type:"number",default:0},marginTopMobile:{type:"number",default:0},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number",default:25},marginBottomMobile:{type:"number",default:20}},save:e=>{let t,{attributes:o,className:l}=e;o.textShadow&&(t={textShadow:`${o.textShadowHorizontal}px ${o.textShadowVertical}px ${o.textShadowBlur}px ${R()(o.textShadowColor?o.textShadowColor:"#000000",o.textShadowColorOpacity)}`});const a={color:o.headingColor,fontFamily:o.fontFamily,fontWeight:"regular"===o.fontVariant?"normal":o.fontVariant,fontStyle:o.fontStyle,textTransform:o.textTransform,lineHeight:o.lineHeight&&`${o.lineHeight}px`,letterSpacing:o.letterSpacing&&`${o.letterSpacing}px`,...t};return(0,i.createElement)(c.RichText.Content,{tagName:o.tag,value:o.content,id:o.id,className:g()(o.id,l),style:a})}}];var L=V,N={from:[{type:"block",blocks:["core/heading"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("themeisle-blocks/advanced-heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("themeisle-blocks/advanced-heading",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("core/paragraph",{content:t})}}]},H=o(7462),I=o(2819),O=o(4333),F=o(9977),A=e=>{let{attributes:t,setAttributes:o}=e;const a=e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},n=e=>{switch(e){case"h1":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1"));case"h2":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2"));case"h3":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3"));case"h4":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4"));case"h5":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5"));case"h6":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6"));case"div":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV"));case"p":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{x:"0",y:"15"},"P"));case"span":return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN"));default:return(0,i.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,i.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DEFAULT"))}},r=e=>{o({tag:e})};return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(s.DropdownMenu,{icon:n(t.tag),label:(0,l.__)("Select tag","otter-blocks"),className:"components-toolbar",controls:[{title:(0,l.__)("Heading","otter-blocks")+" 1",icon:n("h1"),onClick:()=>r("h1")},{title:(0,l.__)("Heading","otter-blocks")+" 2",icon:n("h2"),onClick:()=>r("h2")},{title:(0,l.__)("Heading","otter-blocks")+" 3",icon:n("h3"),onClick:()=>r("h3")},{title:(0,l.__)("Heading","otter-blocks")+" 4",icon:n("h4"),onClick:()=>r("h4")},{title:(0,l.__)("Heading","otter-blocks")+" 5",icon:n("h5"),onClick:()=>r("h5")},{title:(0,l.__)("Heading","otter-blocks")+" 6",icon:n("h6"),onClick:()=>r("h6")},{title:(0,l.__)("Division","otter-blocks"),icon:n("div"),onClick:()=>r("div")},{title:(0,l.__)("Paragraph","otter-blocks"),icon:n("p"),onClick:()=>r("p")},{title:(0,l.__)("Span Tag","otter-blocks"),icon:n("span"),onClick:()=>r("span")}]}),(0,i.createElement)(s.ToolbarGroup,null,(0,i.createElement)(s.Dropdown,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:e=>{let{isOpen:t,onToggle:o}=e;return(0,i.createElement)(s.Button,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:o,"aria-haspopup":"true","aria-expanded":t,label:(0,l.__)("Typography Settings","otter-blocks"),showTooltip:!0},(0,i.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(F.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:a,valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),step:.1,min:0,max:3}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),step:.1,min:-50,max:100}))})))},G=o(2136),D=o(6993),$=o(2372);const Z=e=>{let{value:t,onChange:o}=e;const a=(0,O.useInstanceId)(Z);(0,i.useEffect)((()=>m(t)),[t]);const[n,r]=(0,i.useState)(!1),[d,m]=(0,i.useState)(null),u=void 0!==window.themeisleGutenberg.blockIDs&&t!==d&&window.themeisleGutenberg.blockIDs.includes(d);return(0,i.createElement)(c.InspectorAdvancedControls,null,(0,i.createElement)(s.BaseControl,{label:(0,l.__)("HTML Anchor","otter-blocks"),help:(0,l.__)("Anchors lets you link directly to a section on a page.","otter-blocks"),id:`o-html-anchor-control-${a}`},(0,i.createElement)("div",{className:"o-html-anchor-control"},(0,i.createElement)("input",{type:"text",className:"o-html-anchor-control-input",readOnly:!n&&"readonly",value:n?d:t,onChange:e=>m(e.target.value),onClick:e=>e.target.select()}),(0,i.createElement)(s.Button,{icon:n?"yes":"edit",label:n?(0,l.__)("Save","otter-blocks"):(0,l.__)("Edit","otter-blocks"),showTooltip:!0,disabled:!!u,className:g()("o-html-anchor-control-button",{"is-saved":!n}),onClick:()=>{if(n&&t!==d){const e=window.themeisleGutenberg.blockIDs.findIndex((e=>e===t));window.themeisleGutenberg.blockIDs[e]=d,o(d)}r(!n)}}))),u&&(0,i.createElement)(s.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice"},(0,l.__)("This ID has already been used in this page. Please consider using a different ID to avoid conflict.","otter-blocks")))};var W=Z,U=e=>{let{values:t,setAttributes:o}=e;return(0,i.createElement)("div",{className:"o-clear-button"},(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:!0,onClick:()=>{const e=((0,I.isArray)(t)?t:[t]).map((e=>{if((0,I.isString)(e))return e;if((0,I.isObject)(e)){const t=Object.keys(e);if(1===t.length)return e[t[0]]?t[0]:void 0}})).filter(I.isString).reduce(((e,t)=>(e[t]=void 0,e)),{});o(e)}},(0,l.__)("Clear","otter-blocks")))},j=e=>{let{attributes:t,setAttributes:o}=e;const a=(0,h.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[n,r]=(0,i.useState)("style"),d={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},m={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},u={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},b=e=>{if("top"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingTop;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile}else if("right"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingRight;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile}else if("bottom"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingBottom;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile}else if("left"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingLeft;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile}},p={top:"marginTop",bottom:"marginBottom"},k={top:"marginTopTablet",bottom:"marginBottomTablet"},v={top:"marginTopMobile",bottom:"marginBottomMobile"},y=e=>{if("top"==e)switch(a){case"Desktop":return"linked"===t.marginType?t.margin:t.marginTop;case"Tablet":return"linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet;case"Mobile":return"linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile}else if("bottom"==e)switch(a){case"Desktop":return"linked"===t.marginType?t.margin:t.marginBottom;case"Tablet":return"linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet;case"Mobile":return"linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile}};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{className:"o-heading-header-panel"},(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"style"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("General Settings","otter-blocks"),className:"o-adv-h-panel"},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Heading Color","otter-blocks"),colorValue:t.headingColor,onColorChange:e=>o({headingColor:e})}),(0,i.createElement)(D.Z,{label:(0,l.__)("Font Size","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:(()=>{switch(a){case"Desktop":return t.fontSize;case"Tablet":return t.fontSizeTablet;case"Mobile":return t.fontSizeMobile;default:return}})()||"",onChange:e=>{"Desktop"===a?o({fontSize:e}):"Tablet"===a?o({fontSizeTablet:e}):"Mobile"===a&&o({fontSizeMobile:e})},step:.1,min:1,max:500,allowReset:!0})),(0,i.createElement)(D.Z,{label:(0,l.__)("Alignment","otter-blocks")},(0,i.createElement)(c.AlignmentToolbar,{value:(()=>{switch(a){case"Desktop":return t.align;case"Tablet":return t.alignTablet;case"Mobile":return t.alignMobile;default:return}})(),onChange:e=>{"Desktop"===a?o({align:e}):"Tablet"===a?o({alignTablet:e}):"Mobile"===a&&o({alignMobile:e})},isCollapsed:!1}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,i.createElement)(F.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,i.createElement)(U,{values:["fontFamily","fontVariant","fontStyle","textTransform"],setAttributes:o}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),step:.1,min:0,max:3,allowReset:!0}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),step:.1,min:-50,max:100,allowReset:!0}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Shadow Properties","otter-blocks"),checked:t.textShadow,onChange:e=>o({textShadow:e})}),t.textShadow&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.textShadowColor,onColorChange:e=>o({textShadowColor:e})}),(0,i.createElement)(G.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.textShadowColorOpacity,onChange:e=>o({textShadowColorOpacity:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.textShadowBlur,onChange:e=>o({textShadowBlur:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.textShadowHorizontal,onChange:e=>o({textShadowHorizontal:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.textShadowVertical,onChange:e=>o({textShadowVertical:e}),min:-100,max:100})))))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Highlight Color","otter-blocks")},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Color","otter-blocks"),colorValue:t.highlightColor,onColorChange:e=>o({highlightColor:e})}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Background","otter-blocks"),colorValue:t.highlightBackground,onColorChange:e=>o({highlightBackground:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Spacing","otter-blocks"),initialOpen:!1},(0,i.createElement)(D.Z,{label:(0,l.__)("Padding","otter-blocks")},(0,i.createElement)($.Z,{type:(()=>{switch(a){case"Desktop":return t.paddingType;case"Tablet":return t.paddingTypeTablet;case"Mobile":return t.paddingTypeMobile;default:return}})(),min:0,max:500,changeType:e=>{"Desktop"===a?o({paddingType:e}):"Tablet"===a?o({paddingTypeTablet:e}):"Mobile"===a&&o({paddingTypeMobile:e})},onChange:(e,l)=>{switch(a){case"Desktop":"linked"===t.paddingType?o({padding:l}):o({[d[e]]:l});break;case"Tablet":"linked"===t.paddingTypeTablet?o({paddingTablet:l}):o({[m[e]]:l});break;case"Mobile":"linked"===t.paddingTypeMobile?o({paddingMobile:l}):o({[u[e]]:l})}},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:b("top")},{label:(0,l.__)("Right","otter-blocks"),type:"right",value:b("right")},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:b("bottom")},{label:(0,l.__)("Left","otter-blocks"),type:"left",value:b("left")}]})),(0,i.createElement)(U,{values:[{padding:"Desktop"===a&&"linked"===t.paddingType},{paddingTablet:"Tablet"===a&&"linked"===t.paddingType},{paddingMobile:"Mobile"===a&&"linked"===t.paddingType},{paddingRight:"Desktop"===a&&"linked"!==t.paddingType},{paddingRightTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingRightMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingTop:"Desktop"===a&&"linked"!==t.paddingType},{paddingTopTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingTopMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingBottom:"Desktop"===a&&"linked"!==t.paddingType},{paddingBottomTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingBottomMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingLeft:"Desktop"===a&&"linked"!==t.paddingType},{paddingLeftTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingLeftMobile:"Mobile"===a&&"linked"!==t.paddingType}],setAttributes:o}),(0,i.createElement)(D.Z,{label:(0,l.__)("Margin","otter-blocks")},(0,i.createElement)($.Z,{type:(()=>{switch(a){case"Desktop":return t.marginType;case"Tablet":return t.marginTypeTablet;case"Mobile":return t.marginTypeMobile;default:return}})(),min:-500,max:500,changeType:e=>{switch(a){case"Desktop":o({marginType:e});break;case"Tablet":o({marginTypeTablet:e});break;case"Mobile":o({marginTypeMobile:e})}},onChange:(e,l)=>{switch(a){case"Desktop":"linked"===t.marginType?o({margin:l}):o({[p[e]]:l});break;case"Tablet":"linked"===t.marginTypeTablet?o({marginTablet:l}):o({[k[e]]:l});break;case"Mobile":"linked"===t.marginTypeMobile?o({marginMobile:l}):o({[v[e]]:l})}},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:y("top")},{label:(0,l.__)("Right","otter-blocks"),disabled:!0},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:y("bottom")},{label:(0,l.__)("Left","otter-blocks"),disabled:!0}]})),(0,i.createElement)(U,{values:[{margin:"Desktop"===a&&"linked"===t.marginType},{marginTablet:"Tablet"===a&&"linked"===t.marginType},{marginMobile:"Mobile"===a&&"linked"===t.marginType},{marginTop:"Desktop"===a&&"linked"!==t.marginType},{marginTopTablet:"Tablet"===a&&"linked"!==t.marginType},{marginTopMobile:"Mobile"===a&&"linked"!==t.marginType},{marginBottom:"Desktop"===a&&"linked"!==t.marginType},{marginBottomTablet:"Tablet"===a&&"linked"!==t.marginType},{marginBottomMobile:"Mobile"===a&&"linked"!==t.marginType}],setAttributes:o})))),(0,i.createElement)(W,{value:t.id,onChange:e=>o({id:e})}))},q=o(2154);const{attributes:K}=S;const{name:J}=S;(0,a.registerBlockType)(J,{...S,title:(0,l.__)("Advanced Heading","otter-blocks"),description:(0,l.__)("Advanced Heading gives a spin to editor's Heading block with much needed customization options. Powered by Otter.","otter-blocks"),icon:r.headingIcon,keywords:["heading","title","advanced heading"],deprecated:L,transforms:N,edit:e=>{let{attributes:t,setAttributes:o,clientId:n,mergeBlocks:r,onReplace:s}=e;const{isViewportAvailable:d,isPreviewDesktop:m,isPreviewTablet:u,isPreviewMobile:b}=(0,h.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),p=(0,O.useViewportMatch)("large",">="),g=(0,O.useViewportMatch)("large","<="),k=(0,O.useViewportMatch)("small",">="),v=(0,O.useViewportMatch)("small","<=");(0,i.useEffect)((()=>{q.Z.attach();const e=(0,y.blockInit)(n,K);return()=>e(t.id)}),[t.id]);let _,f,w,C=p&&!g&&k&&!v,E=!p&&!g&&k&&!v,x=!(p||g||k||v);d&&!x&&(C=m,E=u,x=b),C&&(_={fontSize:t.fontSize?`${t.fontSize}px`:void 0},f={textAlign:t.align,paddingTop:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingTop}px`,paddingRight:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingRight}px`,paddingBottom:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingBottom}px`,paddingLeft:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingLeft}px`,marginTop:"linked"===t.marginType?`${t.margin}px`:`${t.marginTop}px`,marginBottom:"linked"===t.marginType?`${t.margin}px`:`${t.marginBottom}px`}),E&&(_={fontSize:t.fontSizeTablet?`${t.fontSizeTablet}px`:void 0},f={textAlign:t.alignTablet,paddingTop:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingTopTablet}px`,paddingRight:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingRightTablet}px`,paddingBottom:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingBottomTablet}px`,paddingLeft:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingLeftTablet}px`,marginTop:"linked"===t.marginTypeTablet?`${t.marginTablet}px`:`${t.marginTopTablet}px`,marginBottom:"linked"===t.marginTypeTablet?`${t.marginTablet}px`:`${t.marginBottomTablet}px`}),x&&(_={fontSize:t.fontSizeMobile?`${t.fontSizeMobile}px`:void 0},f={textAlign:t.alignMobile,paddingTop:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingTopMobile}px`,paddingRight:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingRightMobile}px`,paddingBottom:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingBottomMobile}px`,paddingLeft:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingLeftMobile}px`,marginTop:"linked"===t.marginTypeMobile?`${t.marginMobile}px`:`${t.marginTopMobile}px`,marginBottom:"linked"===t.marginTypeMobile?`${t.marginMobile}px`:`${t.marginBottomMobile}px`}),t.textShadow&&(w={textShadow:`${t.textShadowHorizontal}px ${t.textShadowVertical}px ${t.textShadowBlur}px ${R()(t.textShadowColor?t.textShadowColor:"#000000",0<=t.textShadowColorOpacity?t.textShadowColorOpacity||1e-5:1)}`});const T=(0,I.omitBy)({color:t.headingColor,..._,fontFamily:t.fontFamily||void 0,fontWeight:"regular"===t.fontVariant?"normal":t.fontVariant,fontStyle:t.fontStyle||void 0,textTransform:t.textTransform||void 0,lineHeight:(3<t.lineHeight?t.lineHeight+"px":t.lineHeight)||void 0,letterSpacing:t.letterSpacing&&`${t.letterSpacing}px`,...f,...w},(e=>{var t;return null==e||null===(t=e.includes)||void 0===t?void 0:t.call(e,"undefined")})),S=(0,c.useBlockProps)({id:t.id,style:T});return(0,i.useEffect)((()=>{t.fontFamily&&q.Z.loadFontToBrowser(t.fontFamily,t.fontVariant)}),[t.fontFamily]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",null,`#block-${n} mark, #block-${n} .highlight {\n\t\t\t\t\t\tcolor: ${t.highlightColor};\n\t\t\t\t\t\tbackground: ${t.highlightBackground};\n\t\t\t\t\t}`),(0,i.createElement)(A,{attributes:t,setAttributes:o}),(0,i.createElement)(j,{attributes:t,setAttributes:o}),(0,i.createElement)(c.RichText,(0,H.Z)({identifier:"content",value:t.content,placeholder:(0,l.__)("Write heading…","otter-blocks"),tagName:t.tag,allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/highlight","themeisle-blocks/count-animation","themeisle-blocks/typing-animation","themeisle-blocks/dynamic-value","themeisle-blocks/dynamic-link"],onMerge:r,onSplit:(e,o)=>{let l;var r;return l=o||e?(0,a.createBlock)("themeisle-blocks/advanced-heading",{...t,content:e}):(0,a.createBlock)(null!==(r=(0,a.getDefaultBlockName)())&&void 0!==r?r:"themeisle-blocks/advanced-heading"),o&&(l.clientId=n),l},onReplace:s,onRemove:()=>s([]),onChange:e=>{o({content:e})}},S)))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,className:t.id});return(0,i.createElement)(c.RichText.Content,(0,H.Z)({tagName:t.tag,value:t.content},o))},example:{attributes:{content:(0,l.__)("A heading with more customization options","otter-blocks")}}});var Q=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/button-group","title":"Button Group","category":"themeisle-blocks","description":"Prompt visitors to take action with a button group. Powered by Otter.","keywords":["button","buttons","button group"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"align":{"type":["string","object"]},"spacing":{"type":"number","default":20},"paddingTopBottom":{"type":"number"},"paddingLeftRight":{"type":"number"},"collapse":{"type":"string","default":"collapse-none"},"fontSize":{"type":"number"},"fontFamily":{"type":"string"},"fontVariant":{"type":"string"},"textTransform":{"type":"string"},"fontStyle":{"type":"string"},"lineHeight":{"type":"number"}},"editorStyle":"otter-button-group-editor","style":"otter-button-group-style"}');const Y={id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},X=[{attributes:Y,save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"",a={fontSize:`${t.fontSize}px`,fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&`${t.lineHeight}px`};return(0,i.createElement)("div",{id:t.id,className:g()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,I.times)(t.buttons,(e=>(e=>{const o={...a,borderWidth:`${t.data[e].borderSize}px`,borderRadius:`${t.data[e].borderRadius}px`,padding:`${t.data[e].paddingTopBottom}px ${t.data[e].paddingLeftRight}px`};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:g()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`),style:o},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,i.createElement)("i",{className:g()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,i.createElement)(c.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,i.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))})(e))))}},{attributes:Y,save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"",a={fontSize:`${t.fontSize}px`,fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&`${t.lineHeight}px`};return(0,i.createElement)("div",{id:t.id,className:g()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,I.times)(t.buttons,(e=>(e=>{const o={...a,borderWidth:`${t.data[e].borderSize}px`,borderRadius:`${t.data[e].borderRadius}px`,padding:`${t.data[e].paddingTopBottom}px ${t.data[e].paddingLeftRight}px`};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:g()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`),style:o,rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,i.createElement)("i",{className:g()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,i.createElement)(c.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,i.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))})(e))))}},{attributes:{...Y,fontSize:{type:"number"},fontStyle:{type:"string"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""},{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""}]}},migrate:(e,t)=>{let o,l,n;return"flex-start"===e.align&&(o="left"),"center"===e.align&&(o="center"),"flex-end"===e.align&&(o="right"),e.data&&(l=(0,I.pick)(e.data[0],["paddingLeftRight","paddingTopBottom"]),1<=Object.keys(l).length&&(l=(0,I.pick)(l,Object.keys(l).filter((e=>""!==l[e])))),n=e.data.filter(((t,o)=>o<e.buttons)).map((e=>{const t=(0,I.omit)(e,["paddingLeftRight","paddingTopBottom"]);return(0,a.createBlock)("themeisle-blocks/button",{...t})}))),[{...(0,I.omit)(e,["buttons","data"]),align:o,...l},[...n,...t]]},save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"";return(0,i.createElement)("div",{id:t.id,className:g()(o,l,"wp-block-button")},(0,I.times)(t.buttons,(e=>(e=>(0,i.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:g()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`,"wp-block-button__link"),rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,i.createElement)("i",{className:g()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,i.createElement)(c.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,i.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))(e))))}}];var ee=X,te=o(4022),oe=o(1138),le=o(4934),ae=o(2380),ne=o(9700),re=o(8286),ie=e=>{var t,o;let{attributes:a,setAttributes:n,currentDevice:r}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Spacing","otter-blocks")},(0,i.createElement)($.Z,{label:(0,l.__)("Padding","otter-blocks"),min:0,max:100,onChange:(e,t)=>{"top"!==e&&"bottom"!==e||n({paddingTopBottom:t}),"right"!==e&&"left"!==e||n({paddingLeftRight:t})},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:a.paddingTopBottom},{label:(0,l.__)("Right","otter-blocks"),type:"right",value:a.paddingLeftRight},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:a.paddingTopBottom},{label:(0,l.__)("Left","otter-blocks"),type:"left",value:a.paddingLeftRight}]}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Spacing","otter-blocks"),value:a.spacing,onChange:e=>n({spacing:e}),step:.1,min:0,max:50}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Collapse On","otter-blocks"),value:a.collapse,options:[{label:(0,l.__)("None","otter-blocks"),value:"collapse-none"},{label:(0,l.__)("Desktop","otter-blocks"),value:"collapse-desktop"},{label:(0,l.__)("Tablet","otter-blocks"),value:"collapse-tablet"},{label:(0,l.__)("Mobile","otter-blocks"),value:"collapse-mobile"}],onChange:e=>n({collapse:e})}),(0,i.createElement)(D.Z,{label:(0,l.__)("Alignment","otter-blocks"),className:"buttons-alignment-control"},(0,i.createElement)(re.Z,{value:null!==(t=null==a||null===(o=a.align)||void 0===o?void 0:o[r])&&void 0!==t?t:"none",options:[{icon:te.Z,label:(0,l.__)("None","otter-blocks"),value:"none"},{icon:oe.Z,label:(0,l.__)("Full","otter-blocks"),value:"full"},{icon:le.Z,label:(0,l.__)("Left","otter-blocks"),value:"left"},{icon:ae.Z,label:(0,l.__)("Center","otter-blocks"),value:"center"},{icon:ne.Z,label:(0,l.__)("Right","otter-blocks"),value:"right"}],onChange:e=>{const t=a.align?{desktop:a.align.desktop,tablet:a.align.tablet,mobile:a.align.mobile}:{};t[r]="none"===e?void 0:e,n({align:t})},hideLabels:!0,hasIcon:!0}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Font Size","otter-blocks"),value:a.fontSize,onChange:e=>n({fontSize:e}),step:.1,min:0,max:50}),(0,i.createElement)(F.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:a.fontFamily,onChangeFontFamily:e=>{n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:void 0,fontVariant:void 0,fontStyle:void 0})},valueVariant:a.fontVariant,onChangeFontVariant:e=>n({fontVariant:e}),valueStyle:a.fontStyle,onChangeFontStyle:e=>n({fontStyle:e}),valueTransform:a.textTransform,onChangeTextTransform:e=>n({textTransform:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:a.lineHeight,onChange:e=>n({lineHeight:e}),step:.1,min:0,max:200})))};const{attributes:ce}=Q;const{name:se}=Q;(0,a.registerBlockType)(se,{...Q,title:(0,l.__)("Button Group","otter-blocks"),description:(0,l.__)("Prompt visitors to take action with a button group. Powered by Otter.","otter-blocks"),icon:r.buttonsIcon,keywords:["button","buttons","button group"],deprecated:ee,edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const{isViewportAvailable:a,isPreviewDesktop:n,isPreviewTablet:r,isPreviewMobile:s}=(0,h.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),d=(0,h.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o().toLowerCase():t().toLowerCase()}),[]),m=(0,O.useViewportMatch)("large",">="),u=(0,O.useViewportMatch)("large","<="),b=(0,O.useViewportMatch)("small",">="),p=(0,O.useViewportMatch)("small","<=");(0,i.useEffect)((()=>{q.Z.attach();const e=(0,y.blockInit)(l,ce);return()=>e(t.id)}),[]);let k=m&&!u&&b&&!p,v=!m&&!u&&b&&!p,_=!(m||u||b||p);a&&!_&&(k=n,v=r,_=s);const f={"--spacing":t.spacing&&t.spacing+"px"},w=["desktop","tablet","mobile"].reduce(((e,o)=>(t.align&&t.align[o]&&e.push(`align-${t.align[o]}-${o}`),e)),[]),C=(0,c.useBlockProps)({id:t.id,className:g()("wp-block-buttons",{[`align-${t.align}`]:"string"==typeof t.align,collapse:"collapse-desktop"===t.collapse&&(k||v||_)||"collapse-tablet"===t.collapse&&(v||_)||"collapse-mobile"===t.collapse&&_},...w),style:f});return(0,i.useEffect)((()=>{t.fontFamily&&q.Z.loadFontToBrowser(t.fontFamily,t.fontVariant)}),[t.fontFamily]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(ie,{attributes:t,setAttributes:o,currentDevice:d}),(0,i.createElement)("div",C,(0,i.createElement)(c.InnerBlocks,{allowedBlocks:["themeisle-blocks/button"],__experimentalMoverDirection:"horizontal",orientation:"horizontal",template:[["themeisle-blocks/button"]],renderAppender:c.InnerBlocks.DefaultAppender})))},save:e=>{let{attributes:t}=e;const o="collapse-none"!==t.collapse?t.collapse:"",l=["desktop","tablet","mobile"].reduce(((e,o)=>(t.align&&t.align[o]&&e.push(`align-${t.align[o]}-${o}`),e)),[]),a=c.useBlockProps.save({id:t.id,className:g()(o,"wp-block-buttons",{[`align-${t.align}`]:"string"==typeof t.align},...l)});return(0,i.createElement)("div",a,(0,i.createElement)(c.InnerBlocks.Content,null))},example:{attributes:{spacing:20},innerBlocks:[{name:"themeisle-blocks/button",attributes:{text:(0,l.__)("Button 1","otter-blocks")}},{name:"themeisle-blocks/button",attributes:{text:(0,l.__)("Button 2","otter-blocks")}}]}});var de=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/button","title":"Button","category":"themeisle-blocks","description":"Prompt visitors to take action with a button group. Powered by Otter.","keywords":["button","buttons","button group"],"parent":["themeisle-blocks/button-group"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"text":{"type":"string","source":"html","selector":"span"},"link":{"type":"string","source":"attribute","selector":"a","attribute":"href"},"newTab":{"type":"boolean","default":false},"color":{"type":"string"},"background":{"type":"string"},"backgroundGradient":{"type":"string"},"border":{"type":"string"},"hoverColor":{"type":"string"},"hoverBackground":{"type":"string"},"hoverBackgroundGradient":{"type":"string"},"hoverBorder":{"type":"string"},"borderSize":{"type":"number"},"borderRadius":{"type":"number"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":1},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"hoverBoxShadowColor":{"type":"string"},"hoverBoxShadowColorOpacity":{"type":"number","default":50},"hoverBoxShadowBlur":{"type":"number","default":5},"hoverBoxShadowSpread":{"type":"number","default":1},"hoverBoxShadowHorizontal":{"type":"number","default":0},"hoverBoxShadowVertical":{"type":"number","default":0},"iconType":{"type":"string","default":"none"},"library":{"type":"string","default":"fontawesome"},"prefix":{"type":"string"},"icon":{"type":"string"}},"supports":{"reusable":false},"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"}]}'),me=o(8406),ue=o(6421),be=window.wp.keycodes,pe=e=>{let{isSelected:t,url:o,setAttributes:a,opensInNewTab:n}=e;const[r,d]=(0,i.useState)(!1),m=!!o,u=m&&t,b=()=>(d(!0),!1),p=()=>{a({link:void 0,newTab:void 0}),d(!1)},g=r&&(0,i.createElement)(s.Popover,{position:"bottom right",onClose:()=>d(!1)},(0,i.createElement)(c.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:o,opensInNewTab:n},onChange:e=>{let{url:t="",opensInNewTab:o}=e;a({link:t}),n!==o&&a({newTab:o})},onRemove:p}));return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.ToolbarGroup,null,!m&&(0,i.createElement)(s.ToolbarButton,{name:"link",icon:me.Z,title:(0,l.__)("Link","otter-blocks"),shortcut:be.displayShortcut.primary("k"),onClick:b,className:"o-toolbar-icon"}),u&&(0,i.createElement)(s.ToolbarButton,{name:"link",icon:ue.Z,title:(0,l.__)("Unlink","otter-blocks"),shortcut:be.displayShortcut.primaryShift("k"),onClick:Boolean(window.themeisleGutenberg.isLegacyPre59)?p:b,isActive:!0,className:"o-toolbar-icon"})),t&&(0,i.createElement)(s.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{[be.rawShortcut.primary("k")]:b,[be.rawShortcut.primaryShift("k")]:p}}),g)},ge=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(pe,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))};const he=(0,i.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var ke=e=>{let{attributes:t,setAttributes:o}=e;const[a,n]=(0,i.useState)(!1),r=()=>(0,i.createElement)(s.ButtonGroup,null,(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:a,isPrimary:!a,onClick:()=>n(!1)},(0,l.__)("Normal","otter-blocks")),(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:!a,isPrimary:a,onClick:()=>n(!0)},(0,l.__)("Hover","otter-blocks")));return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Color","otter-blocks")},(0,i.createElement)(r,null),a?(0,i.createElement)(i.Fragment,{key:"with-hover"},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Hover Color","otter-blocks"),colorValue:t.hoverColor,onColorChange:e=>o({hoverColor:e})}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Hover Background","otter-blocks"),colorValue:t.hoverBackground,gradientValue:t.hoverBackgroundGradient,onColorChange:e=>o({hoverBackground:e}),onGradientChange:e=>o({hoverBackgroundGradient:e})})):(0,i.createElement)(i.Fragment,{key:"without-hover"},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.color,onColorChange:e=>o({color:e})}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:t.background,gradientValue:t.backgroundGradient,onColorChange:e=>o({background:e}),onGradientChange:e=>o({backgroundGradient:e})}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Border & Box Shadow","otter-blocks"),initialOpen:!1},(0,i.createElement)(r,null),a?(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Hover Border","otter-blocks"),colorValue:t.hoverBorder,onColorChange:e=>o({hoverBorder:e})}):(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.border,onColorChange:e=>o({border:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),step:.1,min:0,max:10}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),step:.1,min:0,max:100}),(0,i.createElement)(G.Z,{label:(0,l.__)("Box Shadow","otter-blocks"),attributes:t,setAttributes:o,resetValues:{boxShadow:!1,boxShadowColor:void 0,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:void 0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0},onClick:()=>o({boxShadow:!0})},(0,i.createElement)(r,null),a?(0,i.createElement)(i.Fragment,{key:"with-hover"},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color on Hover","otter-blocks"),colorValue:t.hoverBoxShadowColor,onColorChange:e=>o({hoverBoxShadowColor:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.hoverBoxShadowColorOpacity,onChange:e=>o({hoverBoxShadowColorOpacity:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.hoverBoxShadowBlur,onChange:e=>o({hoverBoxShadowBlur:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.hoverBoxShadowSpread,onChange:e=>o({hoverBoxShadowSpread:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.hoverBoxShadowHorizontal,onChange:e=>o({hoverBoxShadowHorizontal:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.hoverBoxShadowVertical,onChange:e=>o({hoverBoxShadowVertical:e}),min:-100,max:100})):(0,i.createElement)(i.Fragment,{key:"without-hover"},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Icon Settings","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Icon Position","otter-blocks"),value:t.iconType,options:[{label:(0,l.__)("No Icon","otter-blocks"),value:"none"},{label:(0,l.__)("Left","otter-blocks"),value:"left"},{label:(0,l.__)("Right","otter-blocks"),value:"right"},{label:(0,l.__)("Icon Only","otter-blocks"),value:"only"}],onChange:e=>o({iconType:e})}),"none"!==t.iconType&&(0,i.createElement)(i.Suspense,{fallback:(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null))},(0,i.createElement)(he,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.library,prefix:t.prefix,icon:t.icon,changeLibrary:e=>{o({library:e,icon:void 0,prefix:"fab"})},onChange:e=>{o("object"==typeof e?{icon:e.name,prefix:e.prefix}:{icon:e})}}))))},ve=o(48);const{attributes:ye}=de;const{name:_e}=de;(0,a.registerBlockType)(_e,{...de,title:(0,l.__)("Button","otter-blocks"),description:(0,l.__)("Prompt visitors to take action with a button group. Powered by Otter.","otter-blocks"),icon:r.buttonsIcon,keywords:["button","buttons","button group"],styles:[{name:"fill",label:(0,l.__)("Fill","otter-blocks"),isDefault:!0},{name:"outline",label:(0,l.__)("Outline","otter-blocks")},...window.themeisleGutenberg.hasNeve?[{name:"primary",label:(0,l.__)("Primary","otter-blocks")},{name:"secondary",label:(0,l.__)("Secondary","otter-blocks")}]:[]],edit:e=>{let{attributes:t,setAttributes:o,isSelected:a,clientId:n}=e;const{hasParent:r,parentAttributes:s}=(0,h.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),l=t(o(n));return{hasParent:!!l,parentAttributes:l?l.attributes:{}}}),[]);(0,i.useEffect)((()=>{const e=(0,y.blockInit)(n,ye);return()=>e(t.id)}),[]);let d={},m={};t.boxShadow&&(d={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${R()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`}),r&&(m={paddingTop:`${s.paddingTopBottom}px`,paddingBottom:`${s.paddingTopBottom}px`,paddingLeft:`${s.paddingLeftRight}px`,paddingRight:`${s.paddingLeftRight}px`,fontSize:s.fontSize&&`${s.fontSize}px`,fontFamily:s.fontFamily,fontWeight:s.fontVariant,fontStyle:s.fontStyle,textTransform:s.textTransform,lineHeight:s.lineHeight&&`${s.lineHeight}px`});const u={color:t.color,background:t.background||t.backgroundGradient,border:`${t.borderSize}px solid ${t.border}`,borderRadius:t.borderRadius,...d,...m},b={fill:t.color,width:s.fontSize&&`${s.fontSize}px`},p=ve.ZP.icons[t.icon],[k,v]=(0,y.useCSSNode)();(0,i.useEffect)((()=>{v([`.wp-block-button__link:hover {\n\t\t\t\tcolor: ${t.hoverColor} !important;\n\t\t\t\tbackground: ${t.hoverBackground||t.hoverBackgroundGradient} !important;\n\t\t\t\tborder-color: ${t.hoverBorder} !important;\n\t\t\t\t${t.boxShadow&&`box-shadow: ${t.hoverBoxShadowHorizontal}px ${t.hoverBoxShadowVertical}px ${t.hoverBoxShadowBlur}px ${t.hoverBoxShadowSpread}px ${R()(t.hoverBoxShadowColor?t.hoverBoxShadowColor:"#000000",t.hoverBoxShadowColorOpacity)} !important;`}\n\t\t\t}`,`.wp-block-button__link:hover svg {\n\t\t\t\tfill: ${t.hoverColor} !important;\n\t\t\t}`])}),[t.hoverColor,t.hoverBackground,t.hoverBackgroundGradient,t.hoverBorder,t.hoverColor,t.boxShadow,t.hoverBoxShadowHorizontal,t.hoverBoxShadowBlur,t.hoverBoxShadowSpread,t.hoverBoxShadowColor,t.hoverBoxShadowColorOpacity]);const _=(0,c.useBlockProps)({id:t.id,className:g()("wp-block-button",k),style:{}});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(ge,{attributes:t,setAttributes:o,isSelected:a}),(0,i.createElement)(ke,{attributes:t,setAttributes:o}),(0,i.createElement)("div",_,"none"!==t.iconType?(0,i.createElement)("div",{className:"wp-block-button__link",style:u},("left"===t.iconType||"only"===t.iconType)&&("themeisle-icons"===t.library&&t.icon?(0,i.createElement)(p,{className:g()({"margin-right":"left"===t.iconType}),style:b}):(0,i.createElement)("i",{className:g()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.text,onChange:e=>o({text:e}),tagName:"div",withoutInteractiveFormatting:!0}),"right"===t.iconType&&("themeisle-icons"===t.library&&t.icon?(0,i.createElement)(p,{className:"margin-left",style:b}):(0,i.createElement)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))):(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.text,onChange:e=>o({text:e}),tagName:"div",withoutInteractiveFormatting:!0,className:"wp-block-button__link",style:u})))},save:e=>{let{attributes:t}=e;const o=ve.ZP.icons[t.icon],l=c.useBlockProps.save({id:t.id,className:"wp-block-button"});return(0,i.createElement)("div",l,(0,i.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer",className:"wp-block-button__link"},("left"===t.iconType||"only"===t.iconType)&&("themeisle-icons"===t.library&&t.icon?(0,i.createElement)(o,{className:g()({"margin-right":"left"===t.iconType})}):(0,i.createElement)("i",{className:g()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,i.createElement)(c.RichText.Content,{tagName:"span",value:t.text}),"right"===t.iconType&&("themeisle-icons"===t.library&&t.icon?(0,i.createElement)(o,{className:"margin-left"}):(0,i.createElement)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))))},example:{attributes:{}}});var fe=o(269),we=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/circle-counter","title":"Circle Counter","category":"themeisle-blocks","description":"Show your progress with a beautiful Circle Counter block. Powered by Otter.","keywords":["progress","circle","counter"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string","default":"Skill"},"percentage":{"type":"number","default":50},"duration":{"type":"number","default":2},"titleStyle":{"type":"string","default":"default"},"height":{"type":"number","default":100},"fontSizeTitle":{"type":"number"},"fontSizePercent":{"type":"number"},"strokeWidth":{"type":"number","default":10},"backgroundColor":{"type":"string"},"progressColor":{"type":"string"},"titleColor":{"type":"string"}},"editorStyle":"otter-circle-counter-editor","style":"otter-circle-counter-style","script":"otter-circle-counter"}'),Ce=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Percentage","otter-blocks"),help:(0,l.__)("The value of the counter.","otter-blocks"),value:t.percentage,onChange:e=>{void 0!==e&&(e=(0,I.clamp)(e,0,100),o({percentage:e}))},min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Duration","otter-blocks"),help:(0,l.__)("The duration of the animation.","otter-blocks"),value:t.duration,onChange:e=>{void 0!==e&&(e=(0,I.clamp)(e,0,3),o({duration:e}))},min:0,max:3}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Title Style","otter-blocks"),value:t.titleStyle,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Hide","otter-blocks"),value:"hide"},{label:(0,l.__)("Bottom","otter-blocks"),value:"bottom"}],onChange:e=>o({titleStyle:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Style","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("The height of the circle counter.","otter-blocks"),value:t.height,onChange:e=>o({height:e}),min:0,max:240}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Circle Thickness","otter-blocks"),help:(0,l.__)("Change the thickness (stroke width) of the circle.","otter-blocks"),value:t.strokeWidth,onChange:e=>o({strokeWidth:e}),initialPosition:10,min:0,max:20}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Font Size Title","otter-blocks"),help:(0,l.__)("Change the font size of the title.","otter-blocks"),value:t.fontSizeTitle,onChange:e=>o({fontSizeTitle:e}),initialPosition:37,min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Font Size Percent","otter-blocks"),help:(0,l.__)("Change the font size of the inner text.","otter-blocks"),value:t.fontSizePercent,onChange:e=>o({fontSizePercent:e}),initialPosition:27,min:0,max:80}),"hide"!==t.titleStyle&&(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Title Color","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>o({titleColor:e})}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Progress Color","otter-blocks"),colorValue:t.progressColor,onColorChange:e=>o({progressColor:e})}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Background Color","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>o({backgroundColor:e})})))},Ee=e=>{let{attributes:t,progressRef:o,valueRef:l}=e;const a=t.height,n=a/2,r=a/2-t.strokeWidth/2,c=2*Math.PI*r;return 0>r?(0,i.createElement)("div",null):(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter__bar",style:{height:a+"px",width:a+"px"}},(0,i.createElement)("svg",{className:"wp-block-themeisle-blocks-circle-counter-container",width:a,height:a},(0,i.createElement)("circle",{className:"wp-block-themeisle-blocks-circle-counter-bg",cx:n,cy:n,r:r,strokeWidth:t.strokeWidth,style:{stroke:t.backgroundColor}}),(0,i.createElement)("circle",{ref:o,className:"wp-block-themeisle-blocks-circle-counter-progress",cx:n,cy:n,r:r,strokeWidth:t.strokeWidth,strokeDasharray:c,style:{stroke:t.progressColor}}),(0,i.createElement)("text",{ref:l,className:"wp-block-themeisle-blocks-circle-counter-text",x:"50%",y:"50%",style:{fill:t.progressColor,fontSize:t.fontSizePercent+"px"}},t.percentage,"%")))};const{attributes:xe}=we;const{clamp:Te,omit:Se}=lodash,Me={to:[{type:"block",blocks:["themeisle-blocks/progress-bar"],transform:e=>{const t=Se(e,["titleStyle","height","fontSize","strokeWidth","progressColor"]);return(0,a.createBlock)("themeisle-blocks/progress-bar",{...t,barBackgroundColor:e.progressColor,height:Te(e.height/4,0,100),titleStyle:"default"})}}]};var Be=Me;const{name:ze}=we;(0,a.registerBlockType)(ze,{...we,title:(0,l.__)("Circle Counter","otter-blocks"),description:(0,l.__)("Show your progress with a beautiful Circle Counter block. Powered by Otter.","otter-blocks"),icon:fe.Z,keywords:["progress","circle","counter"],transforms:Be,edit:e=>{let{clientId:t,attributes:o,setAttributes:a,isSelected:n,toggleSelection:r}=e;(0,i.useEffect)((()=>{const e=(0,y.blockInit)(t,xe);return()=>e(o.id)}),[o.id]);const d=(0,i.useRef)(null),m=(0,i.useRef)(null),[u,b]=(0,i.useState)({}),p=o.height/2-o.strokeWidth/2,g=2*Math.PI*p;(0,i.useEffect)((()=>{if(!d.current||!d.current||0===o.duration)return;const e=o.percentage/(1e3*o.duration),t=(0,I.range)(0,1e3*o.duration+20,20).map((t=>t*e)).reverse();u&&clearInterval(u),d.current.style.strokeDashoffset=g,m.current.innerText="0%";const l=setInterval((()=>{if(!d.current)return void clearInterval(l);const e=Math.round(t.pop());d.current.style.strokeDashoffset=(100-e)/100*g,m.current.innerHTML=e+"%",0===t.length&&clearInterval(l)}),20);return b(l),()=>{clearInterval(l)}}),[o.duration]),(0,i.useEffect)((()=>{if(d.current&&d.current)return d.current.style.strokeDashoffset=(100-o.percentage)/100*g,m.current.innerHTML=o.percentage+"%",clearInterval(u),()=>{clearInterval(u)}}),[o.percentage,o.height]);const h={"--font-size-title":(k=o.fontSizeTitle,k?`${k}px`:k)};var k;const v=(0,c.useBlockProps)({id:o.id,style:h});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Ce,{attributes:o,setAttributes:a}),(0,i.createElement)("div",v,"default"===o.titleStyle&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.createElement)(c.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:n?(0,l.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:e=>a({title:e}),multiline:!1,style:{color:o.titleColor}})),(0,i.createElement)(s.ResizableBox,{size:{height:o.height,width:o.height},minHeight:0,maxHeight:240,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:n,onResizeStop:(e,t,l,n)=>{a({height:parseInt(o.height+n.height,10)}),r(!0)},onResizeStart:()=>{r(!1)}},(0,i.createElement)(Ee,{attributes:o,progressRef:d,valueRef:m})),"bottom"===o.titleStyle&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.createElement)(c.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:n?(0,l.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:e=>a({title:e}),multiline:!1,style:{color:o.titleColor}}))))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,"data-percentage":t.percentage,"data-duration":t.duration,"data-height":t.height,"data-stroke-width":t.strokeWidth,"data-font-size-percent":t.fontSizePercent,"data-background-stroke":t.backgroundColor,"data-progress-stroke":t.progressColor});return(0,i.createElement)("div",o,"default"===t.titleStyle&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter__bar"}),"bottom"===t.titleStyle&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)))},example:{attributes:{title:"Lorem ipsum"}}});var Pe=o(2506),Re=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/countdown","title":"Countdown","category":"themeisle-blocks","description":"Set a countdown for a date. Powered by Otter.","keywords":["countdown","time","counter"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"date":{"type":"string"},"exclude":{"type":"array"},"backgroundColor":{"type":"string"},"valueColor":{"type":"string"},"labelColor":{"type":"string"},"labelDistance":{"type":"number"},"separatorColor":{"type":"string"},"gap":{"type":"number"},"gapTablet":{"type":"number"},"gapMobile":{"type":"number"},"width":{"type":"number"},"widthTablet":{"type":"number"},"widthMobile":{"type":"number"},"containerWidth":{"type":"string"},"containerWidthTablet":{"type":"string"},"containerWidthMobile":{"type":"string"},"height":{"type":"number"},"heightTablet":{"type":"number"},"heightMobile":{"type":"number"},"borderRadius":{"type":["number","object"]},"borderRadiusBox":{"type":"object"},"borderStyle":{"type":"string"},"borderWidth":{"type":"number"},"borderWidthTablet":{"type":"number"},"borderWidthMobile":{"type":"number"},"borderColor":{"type":"string"},"valueFontSize":{"type":["number","string"]},"valueFontSizeTablet":{"type":["number","string"]},"valueFontSizeMobile":{"type":["number","string"]},"labelFontSize":{"type":["number","string"]},"labelFontSizeTablet":{"type":["number","string"]},"labelFontSizeMobile":{"type":["number","string"]},"hasSeparators":{"type":"boolean"},"valueFontWeight":{"type":"string"},"labelFontWeight":{"type":"string"},"alignment":{"type":"string"},"padding":{"type":"object"},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"borderRadiusTopRight":{"type":"number"},"borderRadiusTopLeft":{"type":"number"},"borderRadiusBottomRight":{"type":"number"},"borderRadiusBottomLeft":{"type":"number"},"borderRadiusType":{"type":"string","default":"linked"},"separatorAlignment":{"type":"string"}},"supports":{"align":["wide","full"]},"editorStyle":"otter-countdown-editor","style":"otter-countdown-style","script":"otter-countdown"}'),Ve=o(6292),Le=o.n(Ve),Ne=o(9771),He=o(4715);const Ie=[{name:(0,l.__)("Small","otter-blocks"),size:"0.875em",slug:"small"},{name:(0,l.__)("Medium","otter-blocks"),size:"1em",slug:"medium"},{name:(0,l.__)("Large","otter-blocks"),size:"1.125em",slug:"large"},{name:(0,l.__)("XL","otter-blocks"),size:"1.25em",slug:"xl"}],Oe=["","100","200","300","400","500","600","700","800","900"].map((e=>({label:e||"Default",value:e})));var Fe=e=>{var t,o,a,n,r,d,m,u,b;let{attributes:p,setAttributes:g}=e;const{responsiveSetAttributes:k,responsiveGetAttributes:v}=(0,h.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post"),l=o?o():t();return{responsiveSetAttributes:(0,He.GM)(g,l),responsiveGetAttributes:(0,He._c)(l)}}),[]),y=(e,t)=>{var o;g(e?{exclude:null==p||null===(o=p.exclude)||void 0===o?void 0:o.filter((e=>e!==t))}:{exclude:null!=p&&p.exclude?[...null==p?void 0:p.exclude,t]:[t]})},_=(0,Ne.__experimentalGetSettings)();return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Time","otter-blocks")},(0,i.createElement)(s.Dropdown,{position:"bottom left",headerTitle:(0,l.__)("Select the date for the deadline","otter-blocks"),renderToggle:e=>{let{onToggle:t,isOpen:o}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Button,{onClick:t,isSecondary:!0,"aria-expanded":o},p.date?(0,Ne.format)(_.formats.datetime,p.date):(0,l.__)("Select Date","otter-blocks")))},renderContent:()=>(0,i.createElement)(s.DateTimePicker,{currentDate:p.date,onChange:e=>g({date:e})})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display Days","otter-blocks"),checked:!(null!=p&&null!==(t=p.exclude)&&void 0!==t&&t.includes("day")),onChange:e=>y(e,"day")}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display Hours","otter-blocks"),checked:!(null!=p&&null!==(o=p.exclude)&&void 0!==o&&o.includes("hour")),onChange:e=>y(e,"hour")}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display Minutes","otter-blocks"),checked:!(null!=p&&null!==(a=p.exclude)&&void 0!==a&&a.includes("minute")),onChange:e=>y(e,"minute")}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display Seconds","otter-blocks"),checked:!(null!=p&&null!==(n=p.exclude)&&void 0!==n&&n.includes("second")),onChange:e=>y(e,"second")}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display Separators","otter-blocks"),checked:null==p?void 0:p.hasSeparators,onChange:e=>g({hasSeparators:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Dimensions & Spacing","otter-blocks"),initialOpen:!1},(0,i.createElement)(D.Z,{label:(0,l.__)("Width","otter-blocks")},(0,i.createElement)(s.__experimentalUnitControl,{value:null!==(r=v([p.containerWidth,p.containerWidthTablet,p.containerWidthMobile]))&&void 0!==r?r:"100%",onChange:e=>k(e,["containerWidth","containerWidthTablet","containerWidthMobile"])})),(0,i.createElement)(D.Z,{label:(0,l.__)("Height","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:null!==(d=v([p.height,p.heightTablet,p.heightMobile]))&&void 0!==d?d:100,onChange:e=>k(e,["height","heightTablet","heightMobile"]),min:50,max:800,allowReset:!0})),(0,i.createElement)(D.Z,{label:(0,l.__)("Space Between","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:null!==(m=v([p.gap,p.gapTablet,p.gapMobile]))&&void 0!==m?m:6,onChange:e=>k(e,["gap","gapTablet","gapMobile"]),min:0,max:100,allowReset:!0})),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Position","otter-blocks"),value:p.alingment,onChange:e=>g({alignment:e||void 0}),options:[{label:(0,l.__)("Default","otter-blocks"),value:""},{label:(0,l.__)("Left","otter-blocks"),value:"flex-start"},{label:(0,l.__)("Center","otter-blocks"),value:"center"},{label:(0,l.__)("Right","otter-blocks"),value:"flex-end"}]}),p.hasSeparators&&(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Separator Alignment","otter-blocks"),value:p.separatorAlignment,onChange:e=>{g(e?{separatorAlignment:e}:{separatorAlignment:void 0})},options:[{label:(0,l.__)("Default","otter-blocks"),value:""},{label:(0,l.__)("Center","otter-blocks"),value:"center"}]})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Typography","otter-blocks"),initialOpen:!1},(0,i.createElement)(D.Z,{label:(0,l.__)("Time Value Font Size","otter-blocks")},(0,i.createElement)(s.FontSizePicker,{fontSizes:Ie,withReset:!0,value:v([p.valueFontSize,p.valueFontSizeTablet,p.valueFontSizeMobile]),onChange:e=>k(e,["valueFontSize","valueFontSizeTablet","valueFontSizeMobile"])})),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Time Value Font Weight","otter-blocks"),value:p.valueFontWeight,onChange:e=>g({valueFontWeight:e||void 0}),options:Oe}),(0,i.createElement)(D.Z,{label:(0,l.__)("Label Font Size","otter-blocks")},(0,i.createElement)(s.FontSizePicker,{fontSizes:Ie,withReset:!0,value:v([p.labelFontSize,p.labelFontSizeTablet,p.labelFontSizeMobile]),onChange:e=>k(e,["labelFontSize","labelFontSizeTablet","labelFontSizeMobile"])})),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Label Font Weight","otter-blocks"),value:p.labelFontWeight,onChange:e=>g({labelFontWeight:e||void 0}),options:Oe})),(0,i.createElement)(c.PanelColorSettings,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:p.backgroundColor,onChange:e=>g({backgroundColor:e}),label:(0,l.__)("Background","otter-blocks")},{value:p.valueColor,onChange:e=>g({valueColor:e}),label:(0,l.__)("Time Value","otter-blocks")},{value:p.labelColor,onChange:e=>g({labelColor:e}),label:(0,l.__)("Label","otter-blocks")},{value:p.separatorColor,onChange:e=>g({separatorColor:e}),label:(0,l.__)("Separator","otter-blocks")},{value:p.borderColor,onChange:e=>g({borderColor:e}),label:(0,l.__)("Border","otter-blocks")}]},(0,i.createElement)(c.ContrastChecker,{textColor:p.backgroundColor,backgroundColor:p.valueColor})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Border","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Type","otter-blocks"),value:null!==(u=p.borderStyle)&&void 0!==u?u:"solid",onChange:e=>g({borderStyle:"solid"===e?void 0:e}),options:[{label:(0,l.__)("None","otter-blocks"),value:"none"},{label:(0,l.__)("Solid","otter-blocks"),value:"solid"},{label:(0,l.__)("Double","otter-blocks"),value:"double"},{label:(0,l.__)("Dotted","otter-blocks"),value:"dotted"},{label:(0,l.__)("Dashed","otter-blocks"),value:"dashed"}]}),"none"!==p.borderStyle&&(0,i.createElement)(D.Z,{label:(0,l.__)("Width","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:null!==(b=v([p.borderWidth,p.borderWidthTablet,p.borderWidthMobile]))&&void 0!==b?b:2,onChange:e=>k(e,["borderWidth","borderWidthTablet","borderWidthMobile"]),min:0,max:50,allowReset:!0})),(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:(0,He.Dv)(p.borderRadiusBox,{left:"0px",right:"0px",bottom:"0px",top:"0px"}),onChange:e=>{g({borderRadiusBox:(0,He.cg)(e,{left:"0px",right:"0px",bottom:"0px",top:"0px"})})},id:"o-border-raduis-box"})))};const Ae=e=>{let{name:t,value:o,tag:l}=e;return(0,i.createElement)("div",{name:l,className:g()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,i.createElement)("div",{className:"otter-countdown__value"},o),(0,i.createElement)("div",{className:"otter-countdown__label"},t))};var Ge=e=>{let{time:t,hasSeparators:o}=e;const l=o?(0,He.S3)(t,{name:"sep",value:":",tag:"separator"}):t,a=null==l?void 0:l.map(((e,t)=>(0,i.createElement)(Ae,(0,H.Z)({},e,{key:t}))));return void 0!==t?(0,i.createElement)("div",{className:"otter-countdown__container"},(0,i.createElement)("div",{className:"otter-countdown__display"},a)):(0,i.createElement)(i.Fragment,null)};const{attributes:De}=Re,$e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return(0,I.isNumber)(e)?`${e}${t}`:e};const Ze=e=>{let{name:t,value:o,tag:l}=e;return(0,i.createElement)("div",{name:l,className:g()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,i.createElement)("div",{className:"otter-countdown__value"},o),(0,i.createElement)("div",{className:"otter-countdown__label"},t))},We=e=>{let{time:t,hasSeparators:o}=e;const l=o?(0,He.S3)(t,{name:"sep",value:":",tag:"separator"}):t,a=null==l?void 0:l.map(((e,t)=>(0,i.createElement)(Ze,(0,H.Z)({},e,{key:t}))));return void 0!==t?(0,i.createElement)("div",{className:"otter-countdown__container"},(0,i.createElement)("div",{className:"otter-countdown__display"},a)):(0,i.createElement)(i.Fragment,null)};const{name:Ue}=Re;(0,a.registerBlockType)(Ue,{...Re,title:(0,l.__)("Countdown","otter-blocks"),description:(0,l.__)("Set a countdown for a date. Powered by Otter.","otter-blocks"),icon:Pe.Z,keywords:["countdown","time","counter"],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const[a,n]=(0,i.useState)(0);(0,i.useEffect)((()=>{const e=(0,y.blockInit)(l,De);return()=>e(t.id)}),[t.id]),(0,i.useEffect)((()=>{if(void 0===t.borderRadiusBox&&(t.borderRadius||t.borderRadiusBottomLeft||t.borderRadiusTopRight||t.borderRadiusTopLeft||t.borderRadiusBottomRight)){const e=(0,I.pickBy)("linked"===(null==t?void 0:t.borderRadiusType)?{left:$e(t.borderRadius,"%"),right:$e(t.borderRadius,"%"),bottom:$e(t.borderRadius,"%"),top:$e(t.borderRadius,"%")}:{left:$e(t.borderRadiusBottomLeft,"%"),right:$e(t.borderRadiusTopRight,"%"),bottom:$e(t.borderRadiusBottomRight,"%"),top:$e(t.borderRadiusTopLeft,"%")},(e=>e));(0,I.isEmpty)(e)||o({borderRadiusBox:e,borderRadius:void 0,borderRadiusBottomLeft:void 0,borderRadiusTopRight:void 0,borderRadiusBottomRight:void 0,borderRadiusTopLeft:void 0,borderRadiusType:void 0})}}),[]),(0,i.useEffect)((()=>{const e=setInterval((()=>{if(t.date){let e=t.date+(0,He.EP)();e=1e3*Le()(e).unix(),n(new Date(e)-new Date)}}),500);return()=>{clearInterval(e)}}),[t.date]);const r={"--border-radius":(0,He.bv)(t.borderRadiusBox),"--border-style":t.borderStyle,"--background-color":t.backgroundColor,"--border-color":t.borderColor,"--container-width":t.containerWidth,"--container-width-tablet":t.containerWidthTablet,"--container-width-mobile":t.containerWidthMobile,"--height":$e(t.height),"--height-tablet":$e(t.heightTablet),"--height-mobile":$e(t.heightMobile),"--border-width":$e(t.borderWidth),"--border-width-tablet":$e(t.borderWidthTablet),"--border-width-mobile":$e(t.borderWidthMobile),"--gap":$e(t.gap),"--gap-tablet":$e(t.gapTablet),"--gap-mobile":$e(t.gapMobile),"--value-font-size":$e(t.valueFontSize),"--value-font-size-tablet":$e(t.valueFontSizeTablet),"--value-font-size-mobile":$e(t.valueFontSizeMobile),"--label-font-size":$e(t.labelFontSize),"--label-font-size-tablet":$e(t.labelFontSizeTablet),"--label-font-size-mobile":$e(t.labelFontSizeMobile),"--alignment":t.alignment,"--padding":(0,He.bv)(t.padding),"--padding-tablet":(0,He.bv)(t.paddingTablet),"--padding-mobile":(0,He.bv)(t.paddingMobile),"--value-font-weight":t.valueFontWeight,"--label-font-weight":t.labelFontWeight},[s,d]=(0,y.useCSSNode)();(0,i.useEffect)((()=>{d([`.otter-countdown__display-area .otter-countdown__value {\n\t\t\t\tcolor: ${t.valueColor};\n\t\t\t}`,`.otter-countdown__display-area .otter-countdown__label {\n\t\t\t\tcolor: ${t.labelColor};\n\t\t\t}`,`.otter-countdown__display-area[name="separator"] .otter-countdown__value {\n\t\t\t\tcolor: ${t.separatorColor};\n\t\t\t}`,"center"===t.separatorAlignment?'\n\t\t\t.otter-countdown__display-area[name="separator"] .otter-countdown__label {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t':""])}),[t.valueColor,t.labelColor,t.separatorColor,t.separatorAlignment]);const m=(0,c.useBlockProps)({id:t.id,className:g()(s,"ready"),style:r});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Fe,{attributes:t,setAttributes:o}),(0,i.createElement)("div",m,(0,i.createElement)(Ge,{time:(0,He.Mg)(a,{exclude:null==t?void 0:t.exclude}),hasSeparators:t.hasSeparators})))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,"data-date":t.date});return(0,i.createElement)("div",o,(0,i.createElement)(We,{time:(0,He.Mg)(0,{exclude:null==t?void 0:t.exclude}),hasSeparators:null==t?void 0:t.hasSeparators}))},example:{attributes:{date:"2024-07-15T15:03:00"}}});var je=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/flip","title":"Flip Card","category":"themeisle-blocks","description":"Make a card with a flip effect. Powered by Otter.","keywords":["flip card","container","animation"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"isInverted":{"type":"boolean"},"title":{"type":"string"},"description":{"type":"string"},"animType":{"type":"string","default":"flipY"},"width":{"type":"number"},"height":{"type":"number"},"padding":{"type":"number"},"borderWidth":{"type":"number"},"borderColor":{"type":"string"},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"frontVerticalAlign":{"type":"string"},"frontHorizontalAlign":{"type":"string"},"backVerticalAlign":{"type":"string"},"frontMedia":{"type":"object"},"frontMediaWidth":{"type":"number"},"frontMediaHeight":{"type":"number"},"frontBackgroundImage":{"type":"object"},"frontBackgroundType":{"type":"string","default":"color"},"frontBackgroundColor":{"type":"string"},"frontBackgroundGradient":{"type":"string"},"frontBackgroundPosition":{"type":"object"},"frontBackgroundRepeat":{"type":"string"},"frontBackgroundAttachment":{"type":"string"},"frontBackgroundSize":{"type":"string"},"backBackgroundImage":{"type":"object"},"backBackgroundType":{"type":"string","default":"color"},"backBackgroundColor":{"type":"string"},"backBackgroundGradient":{"type":"string"},"backBackgroundPosition":{"type":"object"},"backBackgroundRepeat":{"type":"string"},"backBackgroundSize":{"type":"string"},"backBackgroundAttachment":{"type":"string"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"titleFontSize":{"type":"number"},"descriptionFontSize":{"type":"number"},"titleColor":{"type":"string"},"descriptionColor":{"type":"string"}},"editorStyle":"otter-flip-editor","style":"otter-flip-style"}'),qe=e=>{let{attributes:t,setAttributes:o,isFliped:a}=e;const n=c.__experimentalBlockAlignmentMatrixControl||c.__experimentalBlockAlignmentMatrixToolbar;return(0,i.createElement)(c.BlockControls,null,(!t.isInverted&&!1===a||t.isInverted&&a)&&(0,i.createElement)(s.Toolbar,null,(0,i.createElement)(n,{label:(0,l.__)("Change front side content position","otter-blocks"),value:t.frontAlign,onChange:e=>o({frontAlign:e})})))};const Ke=e=>{let{backgroundType:t,backgroundColor:o,image:a,gradient:n,backgroundAttachment:d,backgroundRepeat:m,backgroundSize:u,focalPoint:b,changeImage:p,changeColor:g,removeImage:h,changeBackgroundType:k,changeGradient:v,changeBackgroundAttachment:y,changeBackgroundRepeat:_,changeBackgroundSize:f,changeFocalPoint:w}=e;const C=`inspector-background-selector-control-${(0,O.useInstanceId)(Ke)}`;return(0,i.createElement)("div",{id:C,className:"components-base-control o-background-selector-control"},(0,i.createElement)("div",{className:"components-base-control__field"},(0,i.createElement)("div",{className:"components-base-control__title"},(0,i.createElement)("label",{className:"components-base-control__label"},(0,l.__)("Background Type","otter-blocks")),(0,i.createElement)(s.ButtonGroup,{className:"linking-controls"},(0,i.createElement)(s.Button,{icon:"admin-customizer",label:(0,l.__)("Color","otter-blocks"),showTooltip:!0,isPrimary:"color"===t,onClick:()=>k("color")}),(0,i.createElement)(s.Button,{icon:"format-image",label:(0,l.__)("Image","otter-blocks"),showTooltip:!0,isPrimary:"image"===t,onClick:()=>k("image")}),(0,i.createElement)(s.Button,{icon:()=>(0,i.createElement)(s.Icon,{icon:r.barcodeIcon}),label:(0,l.__)("Gradient","otter-blocks"),showTooltip:!0,isPrimary:"gradient"===t,onClick:()=>k("gradient")})))),("color"===t||void 0===t)&&(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Background Color","otter-blocks"),colorValue:o,onColorChange:g}),"image"===t&&(null!=a&&a.url?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.FocalPointPicker,{label:(0,l.__)("Focal point picker","otter-blocks"),url:a.url,value:b,onDragStart:w,onDrag:w,onChange:w}),(0,i.createElement)(G.Z,{label:(0,l.__)("Background Settings","otter-blocks")},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Background Attachment","otter-blocks"),value:d,options:[{label:(0,l.__)("Scroll","otter-blocks"),value:"scroll"},{label:(0,l.__)("Fixed","otter-blocks"),value:"fixed"},{label:(0,l.__)("Local","otter-blocks"),value:"local"}],onChange:y}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Background Repeat","otter-blocks"),value:m,options:[{label:(0,l.__)("Repeat","otter-blocks"),value:"repeat"},{label:(0,l.__)("No-repeat","otter-blocks"),value:"no-repeat"}],onChange:_}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Background Size","otter-blocks"),value:u,options:[{label:(0,l.__)("Auto","otter-blocks"),value:"auto"},{label:(0,l.__)("Cover","otter-blocks"),value:"cover"},{label:(0,l.__)("Contain","otter-blocks"),value:"contain"}],onChange:f})),(0,i.createElement)(s.PanelRow,null,(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:!0,onClick:h},(0,l.__)("Clear Image","otter-blocks")))):(0,i.createElement)(c.MediaPlaceholder,{icon:"format-image",labels:{title:(0,l.__)("Background Image","otter-blocks"),name:(0,l.__)("an image","otter-blocks")},value:null==a?void 0:a.id,onSelect:p,accept:"image/*",allowedTypes:["image"]})),"gradient"===t&&(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Background Gradient","otter-blocks"),gradientValue:n,disableCustomColors:!0,onGradientChange:v,clearable:!1}))};var Je=Ke,Qe=e=>{var t;let{attributes:o,setAttributes:a}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Width","otter-blocks"),help:(0,l.__)("Width of the container. Make sure that the width match the size of your content.","otter-blocks"),value:o.width,onChange:e=>a({width:e}),min:0,max:1200,allowReset:!0}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("Height of the container. Make sure that the height match the size of your content.","otter-blocks"),value:o.height,onChange:e=>a({height:e}),min:0,max:1200,allowReset:!0}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Invert the sides","otter-blocks"),checked:o.isInverted,onChange:e=>a({isInverted:e}),help:(0,l.__)("Use this to display the back side first.","otter-blocks")})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Front","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.BaseControl,{label:(0,l.__)("Media Image","otter-blocks"),help:(0,l.__)("Set an image as showcase.","otter-blocks")},null!==(t=o.frontMedia)&&void 0!==t&&t.url?(0,i.createElement)(s.BaseControl,null,(0,i.createElement)("img",{src:o.frontMedia.url,alt:o.frontMedia.alt,style:{border:"2px solid var( --wp-admin-theme-color)",maxHeight:"250px"}}),(0,i.createElement)(s.Button,{isSecondary:!0,onClick:()=>a({frontMedia:void 0})},(0,l.__)("Remove image","otter-blocks"))):(0,i.createElement)(c.MediaPlaceholder,{labels:{title:(0,l.__)("Media Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:o.frontMedia,onSelect:e=>a({frontMedia:(0,I.pick)(e,["id","alt","url"])})})),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Media Width","otter-blocks"),value:o.frontMediaWidth,onChange:e=>a({frontMediaWidth:e}),min:0,max:1e3,allowReset:!0}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Media Height","otter-blocks"),value:o.frontMediaHeight,onChange:e=>a({frontMediaHeight:e}),min:0,max:1e3,allowReset:!0}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Vertical Align","otter-blocks"),value:o.frontVerticalAlign,options:[{label:(0,l.__)("Default","otter-blocks"),value:""},{label:(0,l.__)("Top","otter-blocks"),value:"flex-start"},{label:(0,l.__)("Center","otter-blocks"),value:"center"},{label:(0,l.__)("Bottom","otter-blocks"),value:"flex-end"}],onChange:e=>a({frontVerticalAlign:e})}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Horizontal Align","otter-blocks"),value:o.frontHorizontalAlign,options:[{label:(0,l.__)("Default","otter-blocks"),value:""},{label:(0,l.__)("Left","otter-blocks"),value:"flex-start"},{label:(0,l.__)("Center","otter-blocks"),value:"center"},{label:(0,l.__)("Right","otter-blocks"),value:"flex-end"}],onChange:e=>a({frontHorizontalAlign:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Title Font Size","otter-blocks"),value:o.titleFontSize,onChange:e=>a({titleFontSize:e}),min:0,max:50,allowReset:!0}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Description Font Size","otter-blocks"),value:o.descriptionFontSize,onChange:e=>a({descriptionFontSize:e}),min:0,max:50,allowReset:!0}),(0,i.createElement)(Je,{backgroundType:o.frontBackgroundType,backgroundColor:o.frontBackgroundColor,image:o.frontBackgroundImage,gradient:o.frontBackgroundGradient,focalPoint:o.frontBackgroundPosition,backgroundAttachment:o.frontBackgroundAttachment,backgroundRepeat:o.frontBackgroundRepeat,backgroundSize:o.frontBackgroundSize,changeBackgroundType:e=>a({frontBackgroundType:e}),changeImage:e=>{a({frontBackgroundImage:(0,I.pick)(e,["id","url"])})},removeImage:()=>a({frontBackgroundImage:void 0}),changeColor:e=>a({frontBackgroundColor:e}),changeGradient:e=>a({frontBackgroundGradient:e}),changeBackgroundAttachment:e=>a({frontBackgroundAttachment:e}),changeBackgroundRepeat:e=>a({frontBackgroundRepeat:e}),changeFocalPoint:e=>a({frontBackgroundPosition:e}),changeBackgroundSize:e=>a({frontBackgroundSize:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Back","otter-blocks"),initialOpen:!1},(0,i.createElement)(Je,{backgroundType:o.backBackgroundType,backgroundColor:o.backBackgroundColor,image:o.backBackgroundImage,gradient:o.backBackgroundGradient,focalPoint:o.backBackgroundPosition,backgroundAttachment:o.backBackgroundAttachment,backgroundRepeat:o.backBackgroundRepeat,backgroundSize:o.backBackgroundSize,changeBackgroundType:e=>a({backBackgroundType:e}),changeImage:e=>{a({backBackgroundImage:(0,I.pick)(e,["id","url"])})},removeImage:()=>a({backBackgroundImage:void 0}),changeColor:e=>a({backBackgroundColor:e}),changeGradient:e=>a({backBackgroundGradient:e}),changeBackgroundAttachment:e=>a({backBackgroundAttachment:e}),changeBackgroundRepeat:e=>a({backBackgroundRepeat:e}),changeFocalPoint:e=>a({backBackgroundPosition:e}),changeBackgroundSize:e=>a({backBackgroundSize:e})}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Vertical Align","otter-blocks"),value:o.backVerticalAlign,options:[{label:(0,l.__)("Default","otter-blocks"),value:""},{label:(0,l.__)("Top","otter-blocks"),value:"flex-start"},{label:(0,l.__)("Center","otter-blocks"),value:"center"},{label:(0,l.__)("Bottom","otter-blocks"),value:"flex-end"}],onChange:e=>a({backVerticalAlign:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Style","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Flip Type","otter-blocks"),value:o.animType,options:[{label:(0,l.__)("Bottom to Top","otter-blocks"),value:"flipX"},{label:(0,l.__)("Left to right","otter-blocks"),value:"flipY"}],onChange:e=>a({animType:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Padding","otter-blocks"),value:o.padding,onChange:e=>a({padding:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:o.borderWidth,onChange:e=>a({borderWidth:e}),min:0,max:50}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:o.borderRadius,onChange:e=>a({borderRadius:e}),min:0,max:50})),(0,i.createElement)(c.PanelColorSettings,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:o.borderColor,onChange:e=>a({borderColor:e}),label:(0,l.__)("Border Color","otter-blocks")},{value:o.titleColor,onChange:e=>a({titleColor:e}),label:(0,l.__)("Title Color","otter-blocks")},{value:o.descriptionColor,onChange:e=>a({descriptionColor:e}),label:(0,l.__)("Description Color","otter-blocks")}]}),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Box Shadow","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Shadow Properties","otter-blocks"),checked:o.boxShadow,onChange:e=>a({boxShadow:e})}),o.boxShadow&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:o.boxShadowColor,onColorChange:e=>{var t,l;a({boxShadowColor:100>o.boxShadowColorOpacity&&null!==(t=o.boxShadowColor)&&void 0!==t&&t.includes("var(")?getComputedStyle(document.documentElement,null).getPropertyValue(null==e||null===(l=e.replace("var(",""))||void 0===l?void 0:l.replace(")","")):e})}}),(0,i.createElement)(G.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:o.boxShadowColorOpacity,onChange:e=>{var t;const l={boxShadowColorOpacity:e};100>e&&null!==(t=o.boxShadowColor)&&void 0!==t&&t.includes("var(")&&(l.boxShadowColor=getComputedStyle(document.documentElement,null).getPropertyValue(o.boxShadowColor.replace("var(","").replace(")",""))),a(l)},min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:o.boxShadowBlur,onChange:e=>a({boxShadowBlur:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:o.boxShadowHorizontal,onChange:e=>a({boxShadowHorizontal:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:o.boxShadowVertical,onChange:e=>a({boxShadowVertical:e}),min:-100,max:100})))))};const{attributes:Ye}=je;const{name:Xe}=je;(0,a.registerBlockType)(Xe,{...je,title:(0,l.__)("Flip Card","otter-blocks"),description:(0,l.__)("Make a card with a flip effect. Powered by Otter.","otter-blocks"),icon:fe.Z,keywords:["flip card","container","animation"],edit:e=>{var t,o,a,n,r,d,m,u,b,p;let{attributes:h,setAttributes:k,clientId:v,isSelected:_}=e;(0,i.useEffect)((()=>{const e=(0,y.blockInit)(v,Ye);return()=>e(h.id)}),[h.id]);const[f,w]=(0,i.useState)(!1),C={"--width":void 0!==h.width&&`${h.width}px`,"--height":void 0!==h.height&&`${h.height}px`,"--border-width":void 0!==h.borderWidth&&`${h.borderWidth}px`,"--border-color":h.borderColor,"--border-radius":void 0!==h.borderRadius&&`${h.borderRadius}px`,"--front-background":(0,He.nG)([["gradient"===h.frontBackgroundType&&h.frontBackgroundGradient,h.frontBackgroundGradient],["image"===h.frontBackgroundType&&(null===(t=h.frontBackgroundImage)||void 0===t?void 0:t.url),`url( ${null===(o=h.frontBackgroundImage)||void 0===o?void 0:o.url} ) ${h.frontBackgroundRepeat||"repeat"} ${h.frontBackgroundAttachment||"scroll"} ${Math.round(100*(null===(a=h.frontBackgroundPosition)||void 0===a?void 0:a.x))||50}% ${Math.round(100*(null===(n=h.frontBackgroundPosition)||void 0===n?void 0:n.y))||50}%/${h.frontBackgroundSize||"auto"}`],[h.frontBackgroundColor]]),"--back-background":(0,He.nG)([["gradient"===h.backBackgroundType&&h.backBackgroundGradient,h.backBackgroundGradient],["image"===h.backBackgroundType&&(null===(r=h.backBackgroundImage)||void 0===r?void 0:r.url),`url( ${null===(d=h.backBackgroundImage)||void 0===d?void 0:d.url} ) ${h.backBackgroundRepeat||"repeat"} ${h.backBackgroundAttachment||"scroll"} ${Math.round(100*(null===(m=h.backBackgroundPosition)||void 0===m?void 0:m.x))||50}% ${Math.round(100*(null===(u=h.backBackgroundPosition)||void 0===u?void 0:u.y))||50}%/${h.backBackgroundSize||"auto"}`],[h.backBackgroundColor]]),"--padding":void 0!==h.padding&&`${h.padding}px`,"--box-shadow":h.boxShadow&&`${h.boxShadowHorizontal}px ${h.boxShadowVertical}px ${h.boxShadowBlur}px ${h.boxShadowColor?h.boxShadowColor.includes("#")&&0<=h.boxShadowColorOpacity?hexToRgba(h.boxShadowColor,h.boxShadowColorOpacity||1e-5):h.boxShadowColor:hexToRgba("#000000",void 0!==h.boxShadowColorOpacity?h.boxShadowColorOpacity||1e-5:1)}`,"--front-vertical-align":h.frontVerticalAlign,"--front-horizontal-align":h.frontHorizontalAlign,"--back-vertical-align":h.backVerticalAlign,"--front-media-width":void 0!==h.frontMediaWidth&&`${h.frontMediaWidth}px`,"--front-media-height":void 0!==h.frontMediaHeight&&`${h.frontMediaHeight}px`},[E,x]=(0,y.useCSSNode)();(0,i.useEffect)((()=>{x([`.o-flip-inner {\n\t\t\t\ttransform: ${f?"var( --flip-anim )":"unset"};\n\t\t\t}`,`.o-flip-front .o-flip-content h3 {\n\t\t\t\tcolor: ${h.titleColor};\n\t\t\t\t${h.titleFontSize&&`font-size: ${h.titleFontSize}px;`}\n\t\t\t}`,`.o-flip-front .o-flip-content p {\n\t\t\t\tcolor: ${h.descriptionColor};\n\t\t\t\t${h.descriptionFontSize&&`font-size: ${h.descriptionFontSize}px;`}\n\t\t\t}`])}),[f,h.titleFontSize,h.descriptionFontSize,h.titleColor,h.descriptionColor]);const T=(0,c.useBlockProps)({id:h.id,className:g()({flipX:"flipX"===h.animType,flipY:"flipY"===h.animType},E),style:C});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(qe,{attributes:h,setAttributes:k,isFliped:f}),(0,i.createElement)(Qe,{attributes:h,setAttributes:k}),(0,i.createElement)("div",T,(0,i.createElement)("div",{className:g()("o-flip-inner",{invert:h.isInverted})},(0,i.createElement)("div",{className:"o-flip-front"},(0,i.createElement)("div",{className:"o-flip-content"},(null===(b=h.frontMedia)||void 0===b?void 0:b.url)&&(0,i.createElement)("img",{className:"o-img",srcSet:null===(p=h.frontMedia)||void 0===p?void 0:p.url}),(0,i.createElement)(c.RichText,{tagName:"h3",value:h.title,onChange:e=>k({title:e}),placeholder:(0,l.__)("Insert a title","otter-blocks")}),(0,i.createElement)(c.RichText,{tagName:"p",value:h.description,onChange:e=>k({description:e}),placeholder:(0,l.__)("Insert a description","otter-blocks")}))),(0,i.createElement)("div",{className:"o-flip-back"},(0,i.createElement)(c.InnerBlocks,{renderAppender:_?c.InnerBlocks.ButtonBlockAppender:""}))),_&&(0,i.createElement)("div",{className:"o-switcher"},(0,i.createElement)(s.Button,{isPrimary:!0,onClick:()=>w(!f)},f?(0,l.__)("Flip to front","otter-blocks"):(0,l.__)("Flip to back","otter-blocks")))))},save:e=>{var t,o,l,a;let{attributes:n}=e;const r=c.useBlockProps.save({id:n.id,className:g()("anim",{flipX:"flipX"===n.animType,flipY:"flipY"===n.animType})});return(0,i.createElement)("div",r,(0,i.createElement)("div",{className:g()("o-flip-inner",{invert:n.isInverted})},(0,i.createElement)("div",{className:"o-flip-front"},(0,i.createElement)("div",{className:"o-flip-content"},(null===(t=n.frontMedia)||void 0===t?void 0:t.url)&&(0,i.createElement)("img",{className:"o-img",src:null===(o=n.frontMedia)||void 0===o?void 0:o.url,srcSet:null===(l=n.frontMedia)||void 0===l?void 0:l.url,alt:null===(a=n.frontMedia)||void 0===a?void 0:a.alt}),(0,i.createElement)(c.RichText.Content,{tagName:"h3",value:n.title}),(0,i.createElement)(c.RichText.Content,{tagName:"p",value:n.description}))),(0,i.createElement)("div",{className:"o-flip-back"},(0,i.createElement)(c.InnerBlocks.Content,null))))},example:{attributes:{}}});var et=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/font-awesome-icons","title":"Icon","category":"themeisle-blocks","description":"Add icons from Font Awesome or ThemeIsle Icons library to your website. Powered by Otter.","keywords":["font awesome","dashicons","icons"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"align":{"type":"string"},"library":{"type":"string","default":"fontawesome"},"prefix":{"type":"string","default":"fab"},"icon":{"type":"string","default":"themeisle"},"link":{"type":"string"},"newTab":{"type":"boolean","default":false},"fontSize":{"type":"number","default":16},"padding":{"type":"number","default":5},"margin":{"type":"number","default":5},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"backgroundColorHover":{"type":"string"},"textColorHover":{"type":"string"},"borderColorHover":{"type":"string"},"borderSize":{"type":"number","default":0},"borderRadius":{"type":"number","default":0},"isSynced":{"type":"array"}},"editorStyle":"otter-font-awesome-editor","style":"otter-font-awesome-style"}');const tt={prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},ot=[{attributes:{id:{type:"string"},align:{type:"string"},library:{type:"string",default:"fontawesome"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0},isSynced:{type:"array"}},supports:{align:["left","center","right"]},save:e=>{let{attributes:t}=e;const o=ve.ZP.icons[t.icon],l=c.useBlockProps.save({id:t.id});return(0,i.createElement)("p",l,(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?(0,i.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},"themeisle-icons"===t.library?(0,i.createElement)(o,null):(0,i.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})):"themeisle-icons"===t.library?(0,i.createElement)(o,null):(0,i.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})))}},{attributes:tt,supports:{align:["left","center","right"]},migrate:e=>{let t="center";return e.className.includes("alignleft")&&(t="left"),e.className.includes("aligncenter")&&(t="center"),e.className.includes("alignright")&&(t="right"),{...e,align:t,className:""}},save:e=>{let{attributes:t,className:o}=e;const l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},a={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return(0,i.createElement)("p",{className:o,style:{textAlign:t.align}},(0,i.createElement)("span",{className:`${o}-container`,style:a},(0,i.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:l})))}},{attributes:{...tt,align:{type:"string"}},save:e=>{let{attributes:t,className:o}=e;const l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},a={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return(0,i.createElement)("p",{className:o,style:{textAlign:t.align}},(0,i.createElement)("span",{className:"undefined-container",style:a},(0,i.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:l})))}},{attributes:{...tt,id:{type:"string"},align:{type:"string"},link:{type:"string"},newTab:{type:"boolean",default:!1},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"}},save:e=>{let{attributes:t,className:o}=e;const l={borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"},a={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},n=()=>(0,i.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:a});return(0,i.createElement)("p",{className:o,id:t.id,style:{textAlign:t.align}},(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:l},t.link?(0,i.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",style:{color:t.textColor},rel:"noopener noreferrer"},(0,i.createElement)(n,null)):(0,i.createElement)(n,null)))}}];var lt=ot,at=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(c.AlignmentToolbar,{value:t.align,onChange:e=>o({align:e})}),(0,i.createElement)(pe,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))};const nt=(0,i.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var rt=e=>{let{attributes:t,setAttributes:o,getValue:a}=e;const[n,r]=(0,i.useState)(!1);return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Icon","otter-blocks")},(0,i.createElement)(i.Suspense,{fallback:(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null))},(0,i.createElement)(nt,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.library,prefix:t.prefix,icon:t.icon,changeLibrary:e=>{o({library:e,icon:"fontawesome"===e?"themeisle":"balance",prefix:"fab"})},onChange:e=>{o("object"==typeof e?{icon:e.name,prefix:e.prefix}:{icon:e})}}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Icon Sizes","otter-blocks"),initialOpen:!1},(0,i.createElement)(k,{field:"fontSize",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Icon Size","otter-blocks"),value:a("fontSize"),initialPosition:16,onChange:e=>o({fontSize:e}),step:.1,min:12,max:140})),(0,i.createElement)(k,{field:"padding",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Padding","otter-blocks"),value:a("padding"),initialPosition:5,onChange:e=>o({padding:e}),step:.1,min:0,max:100})),(0,i.createElement)(k,{field:"margin",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Margin","otter-blocks"),value:a("margin"),initialPosition:5,onChange:e=>o({margin:e}),step:.1,min:0,max:100}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.ButtonGroup,null,(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:n,isPrimary:!n,onClick:()=>r(!1)},(0,l.__)("Normal","otter-blocks")),(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:!n,isPrimary:n,onClick:()=>r(!0)},(0,l.__)("Hover","otter-blocks"))),n?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(k,{field:"backgroundColorHover",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Hover Background","otter-blocks"),colorValue:a("backgroundColorHover"),onColorChange:e=>o({backgroundColorHover:e})})),(0,i.createElement)(k,{field:"textColorHover",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Hover Icon","otter-blocks"),colorValue:a("textColorHover"),onColorChange:e=>o({textColorHover:e})})),(0,i.createElement)(c.ContrastChecker,{textColor:a("textColorHover"),backgroundColor:a("backgroundColorHover")}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Hover Border","otter-blocks"),colorValue:t.borderColorHover,onColorChange:e=>o({borderColorHover:e})})):(0,i.createElement)(i.Fragment,null,(0,i.createElement)(k,{field:"backgroundColor",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:a("backgroundColor"),onColorChange:e=>o({backgroundColor:e})})),(0,i.createElement)(k,{field:"textColor",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Icon","otter-blocks"),colorValue:a("textColor"),onColorChange:e=>o({textColor:e})})),(0,i.createElement)(c.ContrastChecker,{textColor:a("textColor"),backgroundColor:a("backgroundColor")}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Border Settings","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Size","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),step:.1,min:0,max:120}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),step:.1,min:0,max:100})))};const{attributes:it}=et;const{name:ct}=et;(0,a.registerBlockType)(ct,{...et,title:(0,l.__)("Icon","otter-blocks"),description:(0,l.__)("Add icons from Font Awesome or ThemeIsle Icons library to your website. Powered by Otter.","otter-blocks"),icon:r.faIcon,keywords:["font awesome","dashicons","icons"],deprecated:lt,edit:e=>{let{name:t,attributes:o,setAttributes:l,isSelected:a,clientId:n}=e;(0,i.useEffect)((()=>{const e=(0,y.blockInit)(n,it);return()=>e(o.id)}),[o.id]);const r=ve.ZP.icons[o.icon],s=e=>(0,y.getDefaultValueByField)({name:t,field:e,defaultAttributes:it,attributes:o}),d={"--align":o.align,"--border-color":o.borderColor,"--border-size":void 0!==o.borderSize&&`${o.borderSize}px`,"--border-radius":void 0!==o.borderRadius&&`${o.borderRadius}%`,"--margin":void 0!==o.margin&&`${s("margin")}px`,"--padding":void 0!==o.padding&&`${s("padding")}px`,"--font-size":void 0!==o.fontSize&&`${s("fontSize")}px`},[m,u]=(0,y.useCSSNode)();(0,i.useEffect)((()=>{u([`.wp-block-themeisle-blocks-font-awesome-icons-container {\n\t\t\t\tcolor: ${s("textColor")};\n\t\t\t\tbackground-color: ${s("backgroundColor")};\n\t\t\t}`,`.wp-block-themeisle-blocks-font-awesome-icons-container:hover {\n\t\t\t\tcolor: ${s("textColorHover")};\n\t\t\t\tbackground-color: ${s("backgroundColorHover")};\n\t\t\t\tborder-color: ${o.borderColorHover};\n\t\t\t}`,`.wp-block-themeisle-blocks-font-awesome-icons-container a {\n\t\t\t\tcolor: ${s("textColor")};\n\t\t\t}`,`.wp-block-themeisle-blocks-font-awesome-icons-container i {\n\t\t\t\t${s("fontSize")&&`font-size: ${s("fontSize")}px;`}\n\t\t\t}`,`.wp-block-themeisle-blocks-font-awesome-icons-container svg {\n\t\t\t\tfill: ${s("textColor")};\n\t\t\t}`,`.wp-block-themeisle-blocks-font-awesome-icons-container:hover svg {\n\t\t\t\tfill: ${s("textColorHover")};\n\t\t\t}`])}),[o.textColor,o.backgroundColor,o.textColorHover,o.backgroundColorHover,o.borderColorHover,o.fontSize]);const b=(0,c.useBlockProps)({id:o.id,style:d,className:m});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(at,{attributes:o,setAttributes:l,isSelected:a}),(0,i.createElement)(rt,{attributes:o,setAttributes:l,getValue:s}),(0,i.createElement)("div",b,(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},"themeisle-icons"===o.library?(0,i.createElement)(r,null):(0,i.createElement)("i",{className:`${o.prefix} fa-${o.icon}`}))))},save:e=>{let{attributes:t}=e;const o=ve.ZP.icons[t.icon],l=c.useBlockProps.save({id:t.id});return(0,i.createElement)("div",l,(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?(0,i.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},"themeisle-icons"===t.library?(0,i.createElement)(o,null):(0,i.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})):"themeisle-icons"===t.library?(0,i.createElement)(o,null):(0,i.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})))},example:{attributes:{fontSize:70}}});var st=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form","title":"Form","category":"themeisle-blocks","description":"Display a form for your clients. Powered by Otter.","keywords":["business","form","email"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"subject":{"type":"string"},"emailTo":{"type":"string"},"fromName":{"type":"string"},"optionName":{"type":"string"},"hasCaptcha":{"type":"boolean"},"provider":{"type":"string","default":""},"listId":{"type":"string"},"action":{"type":"string","default":"subscribe"},"submitLabel":{"type":"string"},"sendUserEmail":{"type":"boolean"},"redirectLink":{"type":"string"},"inputPadding":{"type":"object"},"labelColor":{"type":"string"},"helpLabelColor":{"type":"string"},"inputRequiredColor":{"type":"string"},"inputBorderRadius":{"type":"number"},"inputBorderColor":{"type":"string"},"inputBorderWidth":{"type":"number"},"submitMessage":{"type":"string"},"inputWidth":{"type":"number"},"submitMessageColor":{"type":"string"},"submitMessageErrorColor":{"type":"string"},"submitBackgroundColor":{"type":"string"},"submitBackgroundColorHover":{"type":"string"},"submitColor":{"type":"string"},"inputGap":{"type":"number"},"inputColor":{"type":"string"},"inputBackgroundColor":{"type":"string"},"inputsGap":{"type":"number"},"labelFontSize":{"type":"string"},"submitFontSize":{"type":"string"},"messageFontSize":{"type":"string"},"helpFontSize":{"type":"string"},"inputFontSize":{"type":"string"},"submitStyle":{"type":"string"},"isSynced":{"type":"array"}},"supports":{"align":["wide","full"]},"editorStyle":"otter-form-editor","style":"otter-form-style","script":"otter-form"}');const dt=[{attributes:{id:{type:"string"},subject:{type:"string"},emailTo:{type:"string"},optionName:{type:"string"},hasCaptcha:{type:"boolean"},provider:{type:"string",default:""},apiKey:{type:"string"},listId:{type:"string"},action:{type:"string",default:"subscribe"}},supports:{align:["wide","full"]},save:e=>{let{attributes:t}=e;const o=t.provider&&t.apiKey&&t.listId,a=c.useBlockProps.save({id:t.id,className:g()({"is-subscription":o&&"subscribe"===t.action,"can-submit-and-subscribe":o&&"submit-subscribe"===t.action,"has-captcha":t.hasCaptcha}),"data-email-subject":t.subject,"data-option-name":t.optionName});return(0,i.createElement)("div",a,(0,i.createElement)("div",{className:"otter-form__container"},(0,i.createElement)(c.InnerBlocks.Content,null),(0,i.createElement)("div",{className:"wp-block-button"},(0,i.createElement)("button",{className:"wp-block-button__link"},"subscribe"===t.action?(0,l.__)("Subscribe","otter-blocks"):(0,l.__)("Submit","otter-blocks")))))}}];var mt=dt,ut=o(8101),bt=o.n(ut),pt=o(6989),gt=o.n(pt);const ht=e=>(null==e?void 0:e[1])&&e[0]!==e[1],kt=e=>Boolean(0<e.filter(ht).length),vt=[{name:(0,l.__)("Small","otter-blocks"),size:"0.875em",slug:"small"},{name:(0,l.__)("Medium","otter-blocks"),size:"1em",slug:"medium"},{name:(0,l.__)("Large","otter-blocks"),size:"1.125em",slug:"large"},{name:(0,l.__)("XL","otter-blocks"),size:"1.25em",slug:"xl"}];var yt=e=>{var t,o,a,n,r,d,m,u,b,p,g;let{attributes:h,setAttributes:v}=e;const{listIDOptions:y,setListIDOptions:_,saveFormEmailOptions:f,saveIntegration:w,savedFormOptions:C,sendTestEmail:E,loadingState:x,formOptions:T,setFormOption:S,testService:M,hasEmailField:B}=(0,i.useContext)(wt),z=kt([[T.emailTo,null==C?void 0:C.email],[T.subject,null==C?void 0:C.emailSubject],[T.redirectLink,null==C?void 0:C.redirectLink],[T.fromName,null==C?void 0:C.fromName],[T.submitMessage,null==C?void 0:C.submitMessage],[T.cc,null==C?void 0:C.cc],[T.bcc,null==C?void 0:C.bcc],[T.hasCaptcha,null==C?void 0:C.hasCaptcha]]),P=kt([[T.provider,null==C||null===(t=C.integration)||void 0===t?void 0:t.provider],[T.listId,null==C||null===(o=C.integration)||void 0===o?void 0:o.listId],[T.action,null==C||null===(a=C.integration)||void 0===a?void 0:a.action]]);return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(c.PanelColorSettings,{title:(0,l.__)("Form Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:h.labelColor,onChange:e=>v({labelColor:e}),label:(0,l.__)("Label","otter-blocks")},{value:h.helpLabelColor,onChange:e=>v({helpLabelColor:e}),label:(0,l.__)("Help Label","otter-blocks")},{value:h.inputBorderColor,onChange:e=>v({inputBorderColor:e}),label:(0,l.__)("Border","otter-blocks")},{value:h.inputRequiredColor,onChange:e=>v({inputRequiredColor:e}),label:(0,l.__)("Label Required","otter-blocks")},{value:h.inputColor,onChange:e=>v({inputColor:e}),label:(0,l.__)("Input Text","otter-blocks")},{value:h.inputBackgroundColor,onChange:e=>v({inputBackgroundColor:e}),label:(0,l.__)("Input Background","otter-blocks")}]}),(0,i.createElement)(c.PanelColorSettings,{title:(0,l.__)("Button Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:h.submitColor,onChange:e=>v({submitColor:e}),label:(0,l.__)("Submit Text","otter-blocks")},{value:h.submitBackgroundColor,onChange:e=>v({submitBackgroundColor:e}),label:(0,l.__)("Button Background","otter-blocks")},{value:h.submitBackgroundColorHover,onChange:e=>v({submitBackgroundColorHover:e}),label:(0,l.__)("Button Background on Hover","otter-blocks")},{value:h.submitMessageColor,onChange:e=>v({submitMessageColor:e}),label:(0,l.__)("Successful Message","otter-blocks")},{value:h.submitMessageErrorColor,onChange:e=>v({submitMessageErrorColor:e}),label:(0,l.__)("Error Message","otter-blocks")}]}),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Label Styling","otter-blocks"),initialOpen:!1},(0,i.createElement)(k,{field:"inputGap",isSynced:h.isSynced,setAttributes:v},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Spacing","otter-blocks"),value:null!==(n=h.inputGap)&&void 0!==n?n:10,onChange:e=>v({inputGap:e}),allowReset:!0,step:.1,min:0,max:50,initialPositino:10})),(0,i.createElement)(k,{field:"labelFontSize",isSynced:h.isSynced,setAttributes:v},(0,i.createElement)(s.FontSizePicker,{label:(0,l.__)("Font Size","otter-blocks"),fontSizes:vt,withReset:!0,value:h.labelFontSize,onChange:e=>v({labelFontSize:e})}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Input Styling","otter-blocks"),initialOpen:!1},(0,i.createElement)(k,{field:"inputFontSize",isSynced:h.isSynced,setAttributes:v},(0,i.createElement)(s.FontSizePicker,{label:(0,l.__)("Input Font Size","otter-blocks"),fontSizes:vt,withReset:!0,value:h.inputFontSize,onChange:e=>v({inputFontSize:e})})),(0,i.createElement)(k,{field:"inputsGap",isSynced:h.isSynced,setAttributes:v},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Fields Spacing","otter-blocks"),value:null!==(r=h.inputsGap)&&void 0!==r?r:16,onChange:e=>v({inputsGap:e}),allowReset:!0,min:0,max:50,initialPosition:16})),(0,i.createElement)(k,{field:"inputPadding",isSynced:h.isSynced,setAttributes:v},(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Input Padding","otter-blocks"),values:null!==(d=h.inputPadding)&&void 0!==d?d:{top:"8px",right:"8px",bottom:"8px",left:"8px"},inputProps:{min:0,max:500},onChange:e=>v({inputPadding:e})})),(0,i.createElement)(k,{field:"inputsBorderRadius",isSynced:h.isSynced,setAttributes:v},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:null!==(m=h.inputBorderRadius)&&void 0!==m?m:4,onChange:e=>v({inputBorderRadius:e}),allowReset:!0,step:.1,min:0,max:50})),(0,i.createElement)(k,{field:"inputsBorderWidth",isSynced:h.isSynced,setAttributes:v},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:null!==(u=h.inputBorderWidth)&&void 0!==u?u:1,onChange:e=>v({inputBorderWidth:e}),allowReset:!0,step:.1,min:0,max:50})),(0,i.createElement)(k,{field:"helpFontSize",isSynced:h.isSynced,setAttributes:v},(0,i.createElement)(s.BaseControl,{label:(0,l.__)("Help Text Font Size","otter-blocks")},(0,i.createElement)(s.FontSizePicker,{label:(0,l.__)("Help Font Size","otter-blocks"),fontSizes:vt,withReset:!0,value:h.helpFontSize,onChange:e=>v({helpFontSize:e})})))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Button","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Label","otter-blocks"),placeholder:(0,l.__)("Submit","otter-blocks"),value:h.submitLabel,onChange:e=>v({submitLabel:e}),help:(0,l.__)("Set the label for the submit button.","otter-blocks")}),(0,i.createElement)(k,{field:"submitFontSize",isSynced:h.isSynced,setAttributes:v},(0,i.createElement)(s.FontSizePicker,{label:(0,l.__)("Font Size","otter-blocks"),fontSizes:vt,withReset:!0,value:h.submitFontSize,onChange:e=>v({submitFontSize:e})})),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Alignment","otter-blocks"),value:h.submitStyle,options:[{label:"Default",value:""},{label:"Right",value:"right"},{label:"Full",value:"full"}],onChange:e=>v({submitStyle:e})}),(0,i.createElement)(k,{field:"messageFontSize",isSynced:h.isSynced,setAttributes:v},(0,i.createElement)(s.BaseControl,{label:(0,l.__)("Message Font Size","otter-blocks")},(0,i.createElement)(s.FontSizePicker,{label:(0,l.__)("Message Font Size","otter-blocks"),fontSizes:vt,withReset:!0,value:h.messageFontSize,onChange:e=>v({messageFontSize:e})})))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Form Options","otter-blocks"),initialOpen:!1},"loading"===(null==x?void 0:x.formOptions)&&(0,i.createElement)("div",{className:"o-fetch-msg"},(0,i.createElement)(s.Spinner,null),(0,l.__)("Loading the options. Please wait...","otter-blocks")),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Email Subject","otter-blocks"),placeholder:(0,l.__)("A new submission","otter-blocks"),value:T.subject,onChange:e=>S({subject:e}),help:(0,l.__)("Customize the title of the email that you are gonna receive after a user submits the form.","otter-blocks")}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("From Name","otter-blocks"),value:T.fromName,onChange:e=>S({fromName:e}),help:(0,l.__)("Set the name of the sender. Some SMTP plugins might override this value.","otter-blocks")}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Email To","otter-blocks"),placeholder:(0,l.__)("Default is to admin site","otter-blocks"),type:"email",value:T.emailTo,onChange:e=>S({emailTo:e}),help:(0,l.__)("Send the form's data to another email. (Admin's email is default).","otter-blocks")}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Cc","otter-blocks"),placeholder:(0,l.__)("Send copies to","otter-blocks"),type:"text",value:T.cc,onChange:e=>S({cc:e}),help:(0,l.__)("Add emails separated by commas: example1@otter.com, example2@otter.com.","otter-blocks")}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Bcc","otter-blocks"),placeholder:(0,l.__)("Send copies to","otter-blocks"),type:"text",value:T.bcc,onChange:e=>S({bcc:e}),help:(0,l.__)("Add emails separated by commas: example1@otter.com, example2@otter.com.","otter-blocks")}),(0,i.createElement)(s.TextareaControl,{label:(0,l.__)("Submit Success Message","otter-blocks"),placeholder:(0,l.__)("Success","otter-blocks"),value:T.submitMessage,onChange:e=>S({submitMessage:e}),help:(0,l.__)("Show this message after the form was successfully submitted.","otter-blocks")}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Redirect To","otter-blocks"),type:"url",placeholder:(0,l.__)("https://example.com","otter-blocks"),value:T.redirectLink,onChange:e=>S({redirectLink:e}),help:(0,l.__)("Redirect the user to another page when submit is successful.","otter-blocks")}),T.redirectLink&&(0,i.createElement)(s.ExternalLink,{href:T.redirectLink,style:{marginBottom:"10px",display:"block"}},(0,l.__)("Preview Redirect link.","otter-blocks")),(0,i.createElement)(s.Button,{isPrimary:!0,onClick:f,help:(0,l.__)("[WIP] Do not forget to save the options ","otter-blocks"),isBusy:"saving"===(null==x?void 0:x.formOptions)},"saving"===(null==x?void 0:x.formOptions)?(0,l.__)("Saving...","otter-blocks"):(0,l.__)("Apply Options","otter-blocks")),"done"===(null==x?void 0:x.formOptions)&&z&&(0,i.createElement)("div",{className:"o-fetch-msg"},(0,l.__)("You have made some modifications. Do not forget to save the options.","otter-blocks")),"error"===(null==x?void 0:x.formOptions)&&(0,i.createElement)("div",{className:"o-fetch-msg o-error"},(0,l.__)("An error has occurred while saving. Please try again.","otter-blocks"))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Test SMTP","otter-blocks"),initialOpen:!1},(0,i.createElement)("span",null,(0,l.__)("In order for the Form to work properly, make sure your SMTP server is set up. The test email will be send to the address from the field Email To on Form Options.","otter-blocks")),(0,i.createElement)(s.ExternalLink,{href:"https://www.wpbeginner.com/wp-tutorials/how-to-use-smtp-server-to-send-wordpress-emails/",style:{marginLeft:"3px"}},(0,l.__)("Learn more.","otter-blocks")),(0,i.createElement)("br",null),(0,i.createElement)(s.Button,{variant:"primary",isPrimary:!0,style:{marginTop:"8px"},onClick:E},(0,l.__)("Send Test Email","otter-blocks"))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Bot Protection","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Add captcha checkbox","otter-blocks"),checked:h.hasCaptcha,onChange:e=>v({hasCaptcha:e}),help:(0,l.__)("Add Google reCaptcha V2 for protection againts bots. You will need an API Key.","otter-blocks")}),T.hasCaptcha&&(0,i.createElement)("div",{style:{display:"flow-root",margin:"10px 0px"}},(0,l.__)("You can change the reCaptcha API Keys in Settings > Otter. ","otter-blocks"),(0,i.createElement)(s.ExternalLink,{href:"https://www.google.com/recaptcha/about/",target:"_blank"},(0,l.__)("Learn more about reCaptcha.","otter-blocks")))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Marketing Integration","otter-blocks"),initialOpen:!1},(0,l.__)("Add your client email to a Digital Marketing provider.","otter-blocks"),(0,i.createElement)("br",null)," ",(0,i.createElement)("br",null),"loading"===(null==x?void 0:x.formIntegration)&&(0,i.createElement)("div",{className:"o-fetch-msg"},(0,i.createElement)(s.Spinner,null),(0,l.__)("Fetching data from server. Please wait.","otter-blocks")),(0,i.createElement)("b",null,(0,l.__)("You need to have at least one email field in your form. For multiple email fields, only the first will be used.","otter-blocks")),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Provider","otter-blocks"),value:T.provider,options:[{label:(0,l.__)("None","otter-blocks"),value:""},{label:(0,l.__)("Mailchimp","otter-blocks"),value:"mailchimp"},{label:(0,l.__)("Sendinblue","otter-blocks"),value:"sendinblue"}],onChange:e=>{S({provider:e,listId:"",apiKey:""})}}),T.provider&&(0,i.createElement)(i.Fragment,null,!T.apiKey&&(0,i.createElement)(i.Fragment,null,"mailchimp"===(null==T?void 0:T.provider)&&(0,i.createElement)(s.ExternalLink,{href:"https://us5.admin.mailchimp.com/account/api/",style:{marginBottom:"10px",display:"block"},target:"_blank"},(0,l.__)("Guide to generate the API Key.","otter-blocks")),"sendinblue"===(null==T?void 0:T.provider)&&(0,i.createElement)(s.ExternalLink,{href:"https://help.sendinblue.com/hc/en-us/articles/209467485-What-s-an-API-key-and-how-can-I-get-mine-",style:{marginBottom:"10px",display:"block"},target:"_blank"},(0,l.__)("Guide to generate the API Key.","otter-blocks"))),(0,i.createElement)(s.TextControl,{label:(0,l.__)("API Key","otter-blocks"),help:(0,l.__)("You can find the key in the provider's website","otter-blocks"),value:T.apiKey?`*************************${T.apiKey.slice(-8)}`:"",onChange:e=>{_([]),S({listId:"",apiKey:e})}}),T.apiKey&&2>y.length&&"loading"===(null==x?void 0:x.listId)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Spinner,null),(0,l.__)("Loading the options.","otter-blocks"),(0,i.createElement)("br",null),(0,i.createElement)("br",null)),T.apiKey&&"error"===(null==x?void 0:x.listId)&&(0,i.createElement)(i.Fragment,null,(0,l.__)("Invalid API Key. Please check your API Key in the provider's Dashboard.","otter-blocks"),(0,i.createElement)(s.ExternalLink,{target:"_blank",style:{marginBottom:"10px",display:"block"},href:"sendinblue"===T.provider?"https://account.sendinblue.com/advanced/api":"https://us5.admin.mailchimp.com/account/api/"},(0,l.__)("Go to Dashboard.","otter-blocks"))),T.apiKey&&"timeout"===(null==x?void 0:x.listId)&&(0,i.createElement)("p",null,(0,l.__)("Could no connect to the server. Please try again.","otter-blocks")),T.apiKey&&"done"===(null==x?void 0:x.listId)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Contact List","otter-blocks"),value:T.listId,options:y,onChange:e=>S({listId:e})}),1>=(null==y?void 0:y.length)&&(0,i.createElement)("p",null,(0,l.__)("No Contact list found. Please create a list in your provider interface or check if the API key is correct.","otter-blocks")),2<=(null==y?void 0:y.length)&&T.listId&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Action","otter-blocks"),value:T.action,options:[{label:(0,l.__)("Default","otter-blocks"),value:""},{label:(0,l.__)("Subscribe","otter-blocks"),value:"subscribe"},{label:(0,l.__)("Submit & Subscribe","otter-blocks"),value:"submit-subscribe"}],onChange:e=>S({action:e})}),"submit-subscribe"===T.action&&(0,i.createElement)("div",{style:{marginBottom:"10px"}},(0,l.__)("This action will add the client to the contact list and send a separate email with the form data to administrator or to the email mentioned in 'Form to' field. A checkbox for data-sharing consent with third-party will be added on form.","otter-blocks"))))),(0,i.createElement)("div",{style:{display:"flex",flexDirection:"row",gap:"10px"}},(0,i.createElement)(s.Button,{isPrimary:!0,variant:"primary",onClick:w,isBusy:"saving"===(null==x?void 0:x.formIntegration)},"saving"===(null==x?void 0:x.formIntegration)?(0,l.__)("Saving","otter-blocks"):(0,l.__)("Save","otter-blocks")),h.optionName&&(null==C||null===(b=C.integration)||void 0===b?void 0:b.provider)&&(null==C||null===(p=C.integration)||void 0===p?void 0:p.apiKey)&&(null==C||null===(g=C.integration)||void 0===g?void 0:g.listId)&&(0,i.createElement)(s.Button,{isSecondary:!0,variant:"secondary",onClick:M,isBusy:"saving"===(null==x?void 0:x.serviceTesting)},(0,i.createElement)(i.Fragment,null,(0,l.__)("Test Service","otter-blocks")))),"done"===(null==x?void 0:x.formIntegration)&&P&&(0,i.createElement)("div",{className:"o-fetch-msg"},(0,l.__)("You have made some modifications. Do not forget to save the options.","otter-blocks")),"done"===(null==x?void 0:x.serviceTesting)&&(0,i.createElement)("div",{className:"o-fetch-msg"},(0,l.__)("Remember to delete the test email from your provider's contact list.","otter-blocks")),"done"===(null==x?void 0:x.formIntegration)&&(null==T?void 0:T.apiKey)&&(null==T?void 0:T.listId)&&!B&&(0,i.createElement)("div",{className:"o-fetch-msg o-error"},(0,l.__)("Please add a Text Field with Email as type in your form for email registration.","otter-blocks")),"error"===(null==x?void 0:x.formIntegration)&&(0,i.createElement)("div",{className:"o-fetch-msg o-error"},(0,l.__)("An error has occurred while saving. Please try again.","otter-blocks"))))},_t=e=>{let{className:t,loadingState:o,isSaving:a,saveAPIKey:n,siteKey:r,secretKey:c,setSiteKey:d,setSecretKey:m}=e;if("loading"===(null==o?void 0:o.captcha))return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("br",null),(0,i.createElement)(s.Placeholder,null,(0,i.createElement)("div",null,(0,i.createElement)(s.Spinner,null),(0,l.__)("Checking the API Keys for reCaptcha","otter-blocks"))));const u=c&&0<(null==c?void 0:c.length)-13?Array(c.length-13).fill("*").join("")+c.slice(-13):c;return(0,i.createElement)(s.Placeholder,{icon:"admin-site",label:(0,l.__)("Google reCaptcha","otter-blocks"),instructions:(0,l.__)("A Google reCaptcha V2 API keys are required, please enter one below.","otter-blocks"),className:t},(0,i.createElement)("div",{className:"components-placeholder__actions",style:{width:"100%"}},(0,i.createElement)(s.TextControl,{type:"text",label:(0,l.__)("Site Key","otter-blocks"),value:r,className:"components-placeholder__input",onChange:d}),(0,i.createElement)(s.TextControl,{type:"text",label:(0,l.__)("Secret Key","otter-blocks"),value:u,className:"components-placeholder__input",onChange:m}),(0,i.createElement)(s.Button,{isPrimary:!0,type:"submit",onClick:n,isBusy:a,disabled:""===r||""===c},(0,l.__)("Save","otter-blocks"))),(0,i.createElement)("div",{className:"components-placeholder__learn-more",style:{margin:"10px 0px"}},(0,l.__)("You need to activate reCaptcha API.","otter-blocks")," ",(0,i.createElement)(s.ExternalLink,{href:"http://www.google.com/recaptcha/admin"},(0,l.__)("Need an API key? Get one here.","otter-blocks"))))};const{attributes:ft}=st,wt=(0,i.createContext)({});var Ct=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-input","title":"Text Field","category":"themeisle-blocks","description":"Display a contact form for your clients.","keywords":["input","text","email"],"ancestor":["themeisle-blocks/form"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"type":{"type":"string","default":"text"},"label":{"type":"string"},"placeholder":{"type":"string"},"isRequired":{"type":"boolean"},"mappedName":{"type":"string"},"labelColor":{"type":"string"},"inputWidth":{"type":"number"},"helpText":{"type":"string"}},"supports":{"align":["wide","full"]}}'),Et=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Field Type","otter-blocks"),value:t.type,options:[{label:(0,l.__)("Text","otter-blocks"),value:"text"},{label:(0,l.__)("Email","otter-blocks"),value:"email"},{label:(0,l.__)("Date","otter-blocks"),value:"date"},{label:(0,l.__)("Number","otter-blocks"),value:"number"}],onChange:e=>o({type:e})}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholder,onChange:e=>o({placeholder:e})}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Help Text","otter-blocks"),value:t.helpText,onChange:e=>o({helpText:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Required","otter-blocks"),help:(0,l.__)("If enabled, the input field must be filled out before submitting the form.","otter-blocks"),checked:t.isRequired,onChange:e=>o({isRequired:e})})),(0,i.createElement)(c.PanelColorSettings,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:t.labelColor,onChange:e=>o({labelColor:e}),label:(0,l.__)("Label Color","otter-blocks")}]}))};const{attributes:xt}=Ct;const Tt=[{attributes:{id:{type:"string"},type:{type:"string",default:"text"},label:{type:"string"},placeholder:{type:"string"},isRequired:{type:"boolean"},mappedName:{type:"string"}},supports:{align:["wide","full"]},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save();return(0,i.createElement)("div",o,(0,i.createElement)("label",{htmlFor:t.id,className:"otter-form-input-label"},(0,i.createElement)(c.RichText.Content,{value:t.label,className:"otter-form-input-label__label",tagName:"span"}),t.isRequired&&(0,i.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,i.createElement)("input",{type:t.type,name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,className:"otter-form-input"}))}}];var St=Tt;const{name:Mt}=Ct;window.themeisleGutenberg.isAncestorTypeAvailable||(Ct.parent=["themeisle-blocks/form"]),(0,a.registerBlockType)(Mt,{...Ct,title:(0,l.__)("Text Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:r.inputIcon,deprecated:St,keywords:["input","text","email"],variations:[{name:"themeisle-blocks/form-input-email",description:(0,l.__)("Insert an email field","otter-blocks"),icon:"email",title:(0,l.__)("Email Field","otter-blocks"),attributes:{type:"email"}},{name:"themeisle-blocks/form-input-number",description:(0,l.__)("Insert a number field","otter-blocks"),icon:"calculator",title:(0,l.__)("Number Field","otter-blocks"),attributes:{type:"number"}},{name:"themeisle-blocks/form-input-date",description:(0,l.__)("Insert a date field","otter-blocks"),icon:"calendar-alt",title:(0,l.__)("Date Field","otter-blocks"),attributes:{type:"date"}}],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,i.useEffect)((()=>{const e=(0,y.blockInit)(a,xt);return()=>e(t.id)}),[t.id]);const n=(0,c.useBlockProps)(),r=(0,i.useRef)(null),s=(0,i.useRef)(null),d=(0,i.useRef)(null);return(0,i.useEffect)((()=>{var e,o,l,a,n,i,c;s.current&&(null===(e=s.current)||void 0===e||null===(o=e.style)||void 0===o||o.setProperty("--input-width",(l=t.inputWidth)?l+"%":null)),r.current&&(null===(a=r.current)||void 0===a||null===(n=a.style)||void 0===n||n.setProperty("--label-color",t.labelColor||null)),d.current&&(null===(i=d.current)||void 0===i||null===(c=i.style)||void 0===c||c.setProperty("--label-color",t.labelColor||null))}),[s.current,r.current,d.current,t.labelColor,t.inputWidth]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Et,{attributes:t,setAttributes:o}),(0,i.createElement)("div",n,(0,i.createElement)("label",{ref:r,htmlFor:t.id,className:"otter-form-input-label"},(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Type here…","otter-blocks"),className:"otter-form-input-label__label",value:t.label,onChange:e=>o({label:e}),tagName:"span"}),t.isRequired&&(0,i.createElement)("span",{className:"required"},"*")),(0,i.createElement)("input",{ref:s,type:t.type,placeholder:t.placeholder,name:t.id,id:t.id,required:t.isRequired,disabled:!0,className:"otter-form-input components-text-control__input"}),t.helpText&&(0,i.createElement)("span",{className:"o-form-help",ref:d},t.helpText)))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id});return(0,i.createElement)("div",o,(0,i.createElement)("label",{htmlFor:t.id?t.id+"-input":"",className:"otter-form-input-label"},(0,i.createElement)(c.RichText.Content,{value:t.label,className:"otter-form-input-label__label",tagName:"span"}),t.isRequired&&(0,i.createElement)("span",{className:"required"},"*")),(0,i.createElement)("input",{type:t.type,name:t.mappedName,id:t.id?t.id+"-input":"",required:t.isRequired,placeholder:t.placeholder,className:"otter-form-input"}),t.helpText&&(0,i.createElement)("span",{className:"o-form-help"},t.helpText))}});var Bt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-nonce","title":"Nonce Field","category":"themeisle-blocks","description":"Protect the form from CSRF.","keywords":["protection","csrf","field"],"textdomain":"otter-blocks","attributes":{"formId":{"type":"string"}},"supports":{"align":["wide","full"],"inserter":false}}');const{name:zt}=Bt;(0,a.registerBlockType)(zt,{...Bt,title:(0,l.__)("Nonce Field","otter-blocks"),description:(0,l.__)("Protect the form from CSRF.","otter-blocks"),icon:r.inputIcon,keywords:["protection","csrf","field"],edit:e=>{let{setAttributes:t,clientId:o}=e;const{parent:l}=(0,h.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:l}=e("core/block-editor");return{parent:t(l(o))}}),[]);return(0,i.useEffect)((()=>{l&&t({formId:l.attributes.id})}),[l]),null},save:()=>null});var Pt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-textarea","title":"Textarea Field","category":"themeisle-blocks","description":"Display a contact form for your clients.","keywords":["textarea","message","input"],"ancestor":["themeisle-blocks/form"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"label":{"type":"string"},"placeholder":{"type":"string"},"isRequired":{"type":"boolean"},"mappedName":{"type":"string"},"labelColor":{"type":"string"},"inputWidth":{"type":"number"},"helpText":{"type":"string"}},"supports":{"align":["wide","full"]}}'),Rt=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholder,onChange:e=>o({placeholder:e})}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Help Text","otter-blocks"),value:t.helpText,onChange:e=>o({helpText:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Required","otter-blocks"),help:(0,l.__)("If enabled, the input field must be filled out before submitting the form.","otter-blocks"),checked:t.isRequired,onChange:e=>o({isRequired:e})})))};const{attributes:Vt}=Pt;const Lt=[{attributes:{id:{type:"string"},type:{type:"string",default:"text"},label:{type:"string"},placeholder:{type:"string"},isRequired:{type:"boolean"},mappedName:{type:"string"}},supports:{align:["wide","full"]},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save();return(0,i.createElement)("div",o,(0,i.createElement)("label",{htmlFor:t.id,className:"otter-form-textarea-label"},(0,i.createElement)(c.RichText.Content,{value:t.label,className:"otter-form-textarea-label__label",tagName:"span"}),t.isRequired&&(0,i.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,i.createElement)("textarea",{name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,rows:10,className:"otter-form-textarea-input"}))}}];var Nt=Lt;const{name:Ht}=Pt;window.themeisleGutenberg.isAncestorTypeAvailable||(Pt.parent=["themeisle-blocks/form"]),(0,a.registerBlockType)(Ht,{...Pt,title:(0,l.__)("Textarea Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:r.inputIcon,deprecated:Nt,keywords:["textarea","message","input"],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,i.useEffect)((()=>{const e=(0,y.blockInit)(a,Vt);return()=>e(t.id)}),[t.id]);const n=(0,c.useBlockProps)(),r=(0,i.useRef)(null),s=(0,i.useRef)(null),d=(0,i.useRef)(null);return(0,i.useEffect)((()=>{var e,o,l,a,n,i,c;s.current&&(null===(e=s.current)||void 0===e||null===(o=e.style)||void 0===o||o.setProperty("--input-width",(l=t.inputWidth)?l+"%":l)),r.current&&(null===(a=r.current)||void 0===a||null===(n=a.style)||void 0===n||n.setProperty("--label-color",t.labelColor||null)),d.current&&(null===(i=d.current)||void 0===i||null===(c=i.style)||void 0===c||c.setProperty("--label-color",t.labelColor||null))}),[s.current,r.current,t]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Rt,{attributes:t,setAttributes:o}),(0,i.createElement)("div",n,(0,i.createElement)("label",{ref:r,htmlFor:t.id?t.id+"-input":"",className:"otter-form-textarea-label"},(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Type here…","otter-blocks"),className:"otter-form-textarea-label__label",value:t.label,onChange:e=>o({label:e}),tagName:"span"}),t.isRequired&&(0,i.createElement)("span",{className:"required"},"*")),(0,i.createElement)("textarea",{ref:s,placeholder:t.placeholder,name:t.id,id:t.id?t.id+"-input":"",required:t.isRequired,disabled:!0,rows:10,className:"otter-form-textarea-input components-textarea-control__input"}),t.helpText&&(0,i.createElement)("span",{className:"o-form-help",ref:d},t.helpText)))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id});return(0,i.createElement)("div",o,(0,i.createElement)("label",{htmlFor:t.id?t.id+"-input":"",className:"otter-form-textarea-label"},(0,i.createElement)(c.RichText.Content,{value:t.label,className:"otter-form-textarea-label__label",tagName:"span"}),t.isRequired&&(0,i.createElement)("span",{className:"required"},"*")),(0,i.createElement)("textarea",{name:t.mappedName,id:t.id?t.id+"-input":"",required:t.isRequired,placeholder:t.placeholder,rows:10,className:"otter-form-textarea-input"}),t.helpText&&(0,i.createElement)("span",{className:"o-form-help"},t.helpText))}});const{name:It}=st;(0,a.registerBlockType)(It,{...st,title:(0,l.__)("Form","otter-blocks"),description:(0,l.__)("Display a form for your clients. Powered by Otter.","otter-blocks"),icon:r.contactIcon,keywords:["business","form","email"],edit:e=>{let{attributes:t,setAttributes:o,clientId:n,isSelected:r,name:s}=e;const[d,m]=(0,i.useState)(""),[u,b]=(0,i.useState)(""),[p,k]=(0,i.useState)({formOptions:"done",formIntegration:"done",listId:"init",captcha:"init",serviceTesting:"init"}),v=e=>{k((t=>({...t,...e})))},[_,f]=(0,i.useState)({provider:void 0,redirectLink:void 0,fromName:void 0,emailTo:void 0,subject:void 0,email:void 0,listId:void 0,action:void 0,hasCaptcha:void 0,submitMessage:void 0,apiKey:void 0,cc:void 0,bcc:void 0}),[w,C]=(0,i.useState)(!0),[E,x]=(0,i.useState)([{label:(0,l.__)("None","otter-blocks"),value:""}]),{insertBlock:T,removeBlock:S}=(0,h.useDispatch)("core/block-editor"),{replaceInnerBlocks:M}=(0,h.useDispatch)("core/block-editor"),{createNotice:B}=(0,h.dispatch)("core/notices"),z=(0,h.useSelect)((e=>0<e("core/block-editor").getBlocks(n).length),[n]),{blockType:P,defaultVariation:R,variations:V}=(0,h.useSelect)((e=>{const{getBlockVariations:t,getBlockType:o,getDefaultBlockVariation:l}=e("core/blocks");return{blockType:o(s),defaultVariation:l(s,"block"),variations:t(s,"block")}}),[s]),{children:L,hasEmailField:N}=(0,h.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),o=t(n).innerBlocks;return{children:o,hasEmailField:null==o?void 0:o.some((e=>{var t;return"email"===(null==e||null===(t=e.attributes)||void 0===t?void 0:t.type)}))}}));(0,i.useEffect)((()=>{const e=(0,y.blockInit)(n,ft);return()=>e(t.id)}),[t.id]),(0,i.useEffect)((()=>{var e;t.id&&(0,h.select)("core/edit-widgets")?o({optionName:`widget_${t.id.slice(-8)}`}):t.id&&Boolean(window.themeisleGutenberg.isBlockEditor)&&null!==(e=(0,h.select)("core/editor"))&&void 0!==e&&e.getCurrentPostId()&&o({optionName:`${(0,h.select)("core/editor").getCurrentPostId()}_${t.id.slice(-8)}`})}),[t.id]),(0,i.useEffect)((()=>{if(L){const e=L.filter((e=>{let{name:t}=e;return"themeisle-blocks/form-nonce"===t}));if(2<=(null==e?void 0:e.length))e.slice(1).forEach((e=>{S(e.clientId,!1)}));else if(0===(null==e?void 0:e.length)&&n){const e=(0,a.createBlock)("themeisle-blocks/form-nonce");e&&(null==T||T(e,(null==L?void 0:L.length)||0,n,!1))}}}),[L]);const H=e=>null==e?void 0:e.filter((e=>{let{form:o}=e;return o===t.optionName})).pop(),O=e=>{var t,o,l,a;f({emailTo:null==e?void 0:e.email,fromName:null==e?void 0:e.fromName,redirectLink:null==e?void 0:e.redirectLink,subject:null==e?void 0:e.emailSubject,cc:null==e?void 0:e.cc,bcc:null==e?void 0:e.bcc,submitMessage:null==e?void 0:e.submitMessage,provider:null==e||null===(t=e.integration)||void 0===t?void 0:t.provider,apiKey:null==e||null===(o=e.integration)||void 0===o?void 0:o.apiKey,listId:null==e||null===(l=e.integration)||void 0===l?void 0:l.listId,action:null==e||null===(a=e.integration)||void 0===a?void 0:a.action,hasCaptcha:null==e?void 0:e.hasCaptcha})};(0,i.useEffect)((()=>{let e=new AbortController;const o=setTimeout((()=>{v({formOptions:"done",formIntegration:"done"})}),3e3);return t.optionName&&bt().loadPromise.then((()=>{v({formOptions:"loading",formIntegration:"loading"}),(new(bt().models.Settings)).fetch({signal:e.signal}).done((t=>{e=null;const l=H(t.themeisle_blocks_form_emails);l&&(O(l),C(l)),v({formIntegration:"done",formOptions:"done"}),clearTimeout(o)})).catch((()=>{v({formIntegration:"done",formOptions:"done"}),clearTimeout(o)}))})),()=>{var t;null===(t=e)||void 0===t||t.abort(),clearTimeout(o)}}),[t.optionName]),(0,i.useEffect)((()=>{let e,t=new AbortController;return _.apiKey&&_.provider&&(e=setTimeout((()=>v({listId:"timeout"})),6e3),v({listId:"loading"}),gt()({path:"otter/v1/form/editor",method:"POST",data:{handler:"listId",payload:{provider:_.provider,apiKey:_.apiKey,action:_.action}},signal:t.signal}).then((o=>{if(t=null,clearTimeout(e),null!=o&&o.success){var a;const e=(null==o||null===(a=o.list_id)||void 0===a?void 0:a.map((e=>{var t;return{label:e.name,value:null===(t=e.id)||void 0===t?void 0:t.toString()}})))||[];e.splice(0,0,{label:(0,l.__)("None","otter-blocks"),value:""}),x(e),v({listId:"done"});const t=1===e.map((e=>{let{value:t}=e;return t})).filter((e=>e===_.listId)).length;_.listId&&!t&&B("error",(0,l.__)("The current contact list is invalid. Please choose a new contact list.","otter-blocks"),{isDismissible:!0,type:"snackbar"})}else B("error",null==o?void 0:o.error,{isDismissible:!0,type:"snackbar",id:"themeisle-form-server-error"}),v({listId:"error"})})).catch((e=>{console.error(e),v({listId:"error"})}))),()=>{var o;null===(o=t)||void 0===o||o.abort(),clearTimeout(e)}}),[_.apiKey,_.provider]),(0,i.useEffect)((()=>{let e=new AbortController;if(void 0!==t.hasCaptcha&&t.optionName)try{var o,a;null===(o=new(bt().models.Settings))||void 0===o||null===(a=o.current)||void 0===a||a.fetch({signal:e.signal}).done((o=>{e=null;const a=o.themeisle_blocks_form_emails?o.themeisle_blocks_form_emails:[];let n=!0,r=!1;null==a||a.forEach(((e,o)=>{let{form:l}=e;l===t.optionName&&(a[o].hasCaptcha!==t.hasCaptcha&&(r=!0),a[o].hasCaptcha=t.hasCaptcha,n=!1)})),n&&a.push({form:t.optionName,hasCaptcha:t.hasCaptcha}),(n||r)&&(new(bt().models.Settings)({themeisle_blocks_form_emails:a}).save(),B("info",(0,l.__)("Form preferences have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"}))}))}catch(e){console.warn(e.message)}return()=>{var t;return null===(t=e)||void 0===t?void 0:t.abort()}}),[t.hasCaptcha,t.optionName]),(0,i.useEffect)((()=>{let e=new AbortController;return t.hasCaptcha&&"init"===(null==p?void 0:p.captcha)&&(()=>{v({captcha:"loading"});try{var t;null===(t=new(bt().models.Settings))||void 0===t||t.fetch({signal:e.signal}).then((t=>{e=null,""!==t.themeisle_google_captcha_api_site_key&&""!==t.themeisle_google_captcha_api_secret_key?v({captcha:"done"}):(v({captcha:"missing"}),m(t.themeisle_google_captcha_api_site_key),b(t.themeisle_google_captcha_api_secret_key))})).catch((e=>{console.error(e),v({captcha:"error"})}))}catch(e){console.warn(e.message),v({captcha:"error"})}})(),()=>{var t;return null===(t=e)||void 0===t?void 0:t.abort()}}),[p.captcha,t.hasCaptcha]);const F={"--message-font-size":void 0!==t.messageFontSize&&t.messageFontSize,"--input-font-size":void 0!==t.inputFontSize&&t.inputFontSize,"--help-font-size":void 0!==t.helpFontSize&&t.helpFontSize,"--input-color":t.inputColor,"--padding":(A=t.inputPadding,A?A.top+" "+A.right+" "+A.bottom+" "+A.left:null),"--border-radius":void 0!==t.inputBorderRadius&&t.inputBorderRadius+"px","--border-width":void 0!==t.inputBorderWidth&&t.inputBorderWidth+"px","--border-color":t.inputBorderColor,"--label-color":t.labelColor,"--input-width":void 0!==t.inputWidth&&t.inputWidth+"%","--submit-color":t.submitColor,"--required-color":t.inputRequiredColor,"--input-gap":void 0!==t.inputGap&&t.inputGap+"px","--inputs-gap":void 0!==t.inputsGap&&t.inputsGap+"px","--label-font-size":void 0!==t.labelFontSize&&t.labelFontSize,"--submit-font-size":void 0!==t.submitFontSize&&t.submitFontSize,"--help-label-color":t.helpLabelColor,"--input-bg-color":t.inputBackgroundColor};var A;const[G,D]=(0,y.useCSSNode)();(0,i.useEffect)((()=>{D([`.otter-form__container .wp-block-button__link {\n\t\t\t\tbackground-color: ${t.submitBackgroundColor}\n\t\t\t}`,`.otter-form__container .wp-block-button__link:hover {\n\t\t\t\t${t.submitBackgroundColorHover&&`background-color: ${t.submitBackgroundColorHover}`}\n\t\t\t}`])}),[t.submitBackgroundColor,t.submitBackgroundColorHover]);const $=(0,c.useBlockProps)({id:t.id,style:F,className:G});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(wt.Provider,{value:{savedFormOptions:w,listIDOptions:E,setListIDOptions:x,saveFormEmailOptions:()=>{v({formOptions:"saving"}),(new(bt().models.Settings)).fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let a=!0,n=!1;null==o||o.forEach(((e,l)=>{let{form:r}=e;r===t.optionName&&(n=o[l].email!==_.emailTo||o[l].redirectLink!==_.redirectLink||o[l].emailSubject!==_.subject||o[l].submitMessage!==_.submitMessage||o[l].fromName!==_.fromName||o[l].cc!==_.cc||o[l].bcc!==_.bcc,o[l].email=_.emailTo,o[l].redirectLink=_.redirectLink,o[l].emailSubject=_.subject,o[l].submitMessage=_.submitMessage,o[l].fromName=_.fromName,o[l].cc=_.cc,o[l].bcc=_.bcc,a=!1)})),a&&o.push({form:t.optionName,email:_.emailTo,fromName:_.fromName,redirectLink:_.redirectLink,emailSubject:_.subject,submitMessage:_.submitMessage,cc:_.cc,bcc:_.bcc}),a||n?new(bt().models.Settings)({themeisle_blocks_form_emails:o}).save().then((e=>{const t=H(e.themeisle_blocks_form_emails);t?(O(t),C(t),v({formOptions:"done"}),B("info",(0,l.__)("Form options have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})):v({formOptions:"error"})})):v({formOptions:"done"})})).catch((()=>v({formOptions:"error"})))},formOptions:_,setFormOption:e=>{f((t=>({...t,...e})))},saveIntegration:()=>{var e;v({formIntegration:"saving"}),null===(e=new(bt().models.Settings))||void 0===e||e.fetch().done((e=>{const a=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let n=!0,r=!1;null==a||a.forEach(((e,o)=>{let{form:l}=e;var i,c,s,d,m;l===t.optionName&&(null!==(i=a[o])&&void 0!==i&&i.integration||(a[o].integration={}),r=(null===(c=a[o].integration)||void 0===c?void 0:c.provider)!==_.provider||(null===(s=a[o].integration)||void 0===s?void 0:s.listId)!==_.listId||(null===(d=a[o].integration)||void 0===d?void 0:d.action)!==_.action||(null===(m=a[o].integration)||void 0===m?void 0:m.apiKey)!==_.apiKey,n=!1,a[o].integration.provider=_.provider,a[o].integration.apiKey=_.apiKey,a[o].integration.listId=_.listId,a[o].integration.action=_.action)})),n&&a.push({form:t.optionName,integration:{provider:_.provider,apiKey:_.apiKey,listId:_.listId,action:_.action}}),n||r?new(bt().models.Settings)({themeisle_blocks_form_emails:a}).save().then((e=>{const t=H(e.themeisle_blocks_form_emails);var a;t&&(O(t),C(t),o({action:null==t||null===(a=t.integration)||void 0===a?void 0:a.action})),v({formIntegration:"done"}),r&&B("info",(0,l.__)("Integration details have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})})).catch((e=>{console.error(e),v({formIntegration:"error"})})):v({formIntegration:"done"})})).catch((()=>{v({formIntegration:"error"})}))},sendTestEmail:()=>{gt()({path:"otter/v1/form/editor",method:"POST",data:{handler:"testEmail",payload:{provider:"default",to:null==_?void 0:_.emailTo,site:window.location.href}}}).then((e=>{null!=e&&e.success?B("info",(0,l.__)("The test email has been send. Check your emails for confirmation.","otter-blocks"),{isDismissible:!0,type:"snackbar"}):B("error",(0,l.__)("An error has occurred: ","otter-blocks")+((null==e?void 0:e.error)||(0,l.__)("unknown","otter-blocks")),{isDismissible:!0,type:"snackbar"})})).catch((e=>{console.error(e),B("error",null==e?void 0:e.message,{isDismissible:!0,type:"snackbar"})}))},loadingState:p,testService:()=>{v({serviceTesting:"loading"}),gt()({path:"otter/v1/form/editor",method:"POST",data:{handler:"testEmail",payload:{formOption:t.optionName}}}).then((e=>{null!=e&&e.success?(B("info",(0,l.__)("A test email has been registered to your contact list. Check your provider for confirmation.","otter-blocks"),{isDismissible:!0,type:"snackbar"}),v({serviceTesting:"done"})):(B("error",(0,l.__)("An error has occurred: ","otter-blocks")+((null==e?void 0:e.error)||(0,l.__)("unknown","otter-blocks")+(0,l.__)(". Check your provider for confirmation.","otter-blocks")),{isDismissible:!0,type:"snackbar"}),v({serviceTesting:"error"}))})).catch((e=>{console.error(e),B("error",null==e?void 0:e.message,{isDismissible:!0,type:"snackbar"}),v({testService:"error"})}))},hasEmailField:N}},(0,i.createElement)(yt,{attributes:t,setAttributes:o}),(0,i.createElement)("div",$,z?(0,i.createElement)("form",{className:"otter-form__container",onSubmit:()=>!1},(0,i.createElement)(c.InnerBlocks,null),t.hasCaptcha&&"done"!==(null==p?void 0:p.captcha)&&(0,i.createElement)(_t,{className:"otter-form-captcha",loadingState:p,saveAPIKey:()=>{v({captcha:"loading"});try{var e,t,o;const a=new(bt().models.Settings)({themeisle_google_captcha_api_site_key:d,themeisle_google_captcha_api_secret_key:u});null==a||null===(e=a.save)||void 0===e||null===(t=e.call(a))||void 0===t||null===(o=t.then((e=>{""!==e.themeisle_google_captcha_api_site_key&&""!==e.themeisle_google_captcha_api_secret_key?v({captcha:"done"}):v({captcha:"missing"}),b(""),m(""),B("info",(0,l.__)("Google reCaptcha API Keys have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"}).catch((e=>{console.error(e),v({captcha:"error"})}))})))||void 0===o||o.catch((e=>{console.error(e),v({captcha:"error"})}))}catch(e){console.warn(e.message),v({captcha:"error"})}},siteKey:d,secretKey:u,setSiteKey:m,setSecretKey:b}),"submit-subscribe"===t.action&&(0,i.createElement)("div",{className:"otter-form-consent"},(0,i.createElement)("input",{id:"o-consent",name:"o-consent",type:"checkbox"}),(0,i.createElement)("label",{htmlFor:"o-consent"},(0,l.__)("I have read and agreed the privacy statement.","otter-blocks"))),(0,i.createElement)("div",{className:g()("wp-block-button has-submit-msg",{right:"right"===t.submitStyle},{full:"full"===t.submitStyle})},(0,i.createElement)("button",{className:"wp-block-button__link",type:"submit",disabled:!0},t.submitLabel?t.submitLabel:(0,l.__)("Submit","otter-blocks")),r&&(0,i.createElement)("div",null,(0,i.createElement)("div",{className:"o-form-server-response o-success",style:{color:t.submitMessageColor}},_.submitMessage||(0,l.__)("Success","otter-blocks")),(0,i.createElement)("div",{className:"o-form-server-response o-error",style:{color:t.submitMessageErrorColor,margin:"0px"}},(0,l.__)("Error. Please try again.","otter-blocks"))))):(0,i.createElement)(c.__experimentalBlockVariationPicker,{icon:(0,I.get)(P,["icon","src"]),label:(0,I.get)(P,["title"]),variations:V,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R;e&&M(n,(0,a.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0}))))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,className:g()({"can-submit-and-subscribe":"submit-subscribe"===t.action,"has-captcha":t.hasCaptcha}),"data-option-name":t.optionName});return(0,i.createElement)("div",o,(0,i.createElement)("form",{className:"otter-form__container"},(0,i.createElement)(c.InnerBlocks.Content,null),(0,i.createElement)("div",{className:g()("wp-block-button",{right:"right"===t.submitStyle},{full:"full"===t.submitStyle})},(0,i.createElement)("button",{className:"wp-block-button__link",type:"submit"},t.submitLabel?t.submitLabel:(0,l.__)("Submit","otter-blocks")))))},deprecated:mt,example:{attributes:{},innerBlocks:[{name:"themeisle-blocks/form-input",attributes:{label:(0,l.__)("Name","otter-blocks"),type:"text",isRequired:!0}},{name:"themeisle-blocks/form-input",attributes:{label:(0,l.__)("Email","otter-blocks"),type:"email",isRequired:!0}},{name:"themeisle-blocks/form-textarea",attributes:{label:(0,l.__)("Message","otter-blocks")}},{name:"core/paragraph",attributes:{content:(0,l.__)("You agree to receive email communication from us by submitting this form and understand that your contact information will be stored with us.","otter-blocks"),fontSize:"extra-small"}}]},variations:[{name:"themeisle-blocks/form-contact",description:(0,l.__)("Contact form for clients","otter-blocks"),icon:r.contactIcon,title:(0,l.__)("Contact Form","otter-blocks"),innerBlocks:[["themeisle-blocks/form-input",{label:(0,l.__)("Name","otter-blocks"),type:"text",isRequired:!0}],["themeisle-blocks/form-input",{label:(0,l.__)("Email","otter-blocks"),type:"email",isRequired:!0}],["themeisle-blocks/form-textarea",{label:(0,l.__)("Message","otter-blocks")}],["core/paragraph",{content:(0,l.__)("You agree to receive email communication from us by submitting this form and understand that your contact information will be stored with us.","otter-blocks"),fontSize:"extra-small"}]]},{name:"themeisle-blocks/form-subscribe",description:(0,l.__)("Add the clients to your subscription list","otter-blocks"),icon:r.contactIcon,title:(0,l.__)("Subscribe Form","otter-blocks"),innerBlocks:[["themeisle-blocks/form-input",{label:(0,l.__)("Name","otter-blocks"),type:"text",isRequired:!0}],["themeisle-blocks/form-input",{label:(0,l.__)("Email","otter-blocks"),type:"email",isRequired:!0}],["core/paragraph",{content:(0,l.__)("You agree to receive email communication from us by submitting this form and understand that your contact information will be stored with us.","otter-blocks"),fontSize:"extra-small"}]]}]});var Ot=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/google-map","title":"Google Maps","category":"themeisle-blocks","description":"Display Google Maps on your website with Google Map block. Powered by Otter.","keywords":["map","google","orbitfox"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"style":{"type":"string","default":"standard"},"location":{"type":"string","default":"La Sagrada Familia, Barcelona, Spain"},"latitude":{"type":"string"},"longitude":{"type":"string"},"type":{"type":"string","default":"roadmap"},"zoom":{"type":"number","default":15},"height":{"type":"number","default":400},"draggable":{"type":"boolean","default":true},"mapTypeControl":{"type":"boolean","default":true},"zoomControl":{"type":"boolean","default":true},"fullscreenControl":{"type":"boolean","default":true},"streetViewControl":{"type":"boolean","default":true},"markers":{"type":"array","default":[]}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-google-map-editor","style":"otter-google-map-style","script":"google-maps"}'),Ft=o(4586),At=e=>{let{api:t,error:o,isAPILoaded:a,isAPISaved:n,isSaving:r,changeAPI:c,saveAPIKey:d}=e;return a?n?void 0:(0,i.createElement)(s.Placeholder,{icon:"admin-site",label:(0,l.__)("Google Maps","otter-blocks"),instructions:(0,l.__)("A Google Maps API key is required, please enter one below.","otter-blocks")},(0,i.createElement)("div",{className:"components-placeholder__actions"},(0,i.createElement)(s.TextControl,{type:"text",placeholder:(0,l.__)("Google Maps API Key","otter-blocks"),value:t,className:g()("components-placeholder__input",{"is-invalid":o}),onChange:c}),(0,i.createElement)(s.Button,{isPrimary:!0,type:"submit",onClick:d,isBusy:r,disabled:""===t||o},(0,l.__)("Save","otter-blocks"))),(0,i.createElement)("div",{className:"components-placeholder__learn-more"},o&&(0,i.createElement)("p",null,(0,l.__)("The API key could not be validated.","otter-blocks")),(0,i.createElement)("p",null,(0,l.__)("You need to activate Maps and Places API.","otter-blocks")," ",(0,i.createElement)(s.ExternalLink,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},(0,l.__)("Need an API key? Get one here.","otter-blocks"))))):(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null),(0,l.__)("Loading…","otter-blocks"))};const Gt=e=>{let{label:t,value:o,options:l,onChange:a}=e;const n=`inspector-style-switcher-control-${(0,O.useInstanceId)(Gt)}`;return(0,i.createElement)(s.BaseControl,{id:n,label:t},(0,i.createElement)("div",{className:"o-style-switcher"},l.map((e=>(0,i.createElement)(s.Button,{key:e.value,className:g()("o-style-switcher-item",{"is-active":e.value===o}),tabIndex:"0",onClick:()=>(e=>a(e))(e.value)},(0,i.createElement)("div",{className:"o-style-switcher-item-preview"},(0,i.createElement)("img",{src:e.image})),(0,i.createElement)("div",{className:"o-style-switcher-item-label"},e.label))))))},Dt=Gt,$t=e=>{let{label:t,value:o,options:l,onChange:a}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(s.ToolbarGroup,null,(0,i.createElement)(s.Dropdown,{contentClassName:"otter-styles-popover-content",position:"bottom center",renderToggle:e=>{let{isOpen:o,onToggle:l}=e;return(0,i.createElement)(s.Button,{className:"components-dropdown-menu__toggle",icon:"admin-appearance",onClick:l,"aria-haspopup":"true","aria-expanded":o,label:t,showTooltip:!0},(0,i.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"o-style-switcher"},l.map((e=>(0,i.createElement)(s.Button,{key:e.value,className:g()("o-style-switcher-item",{"is-active":e.value===o}),tabIndex:"0",onClick:()=>(e=>a(e))(e.value)},(0,i.createElement)("div",{className:"o-style-switcher-item-preview"},(0,i.createElement)("img",{src:e.image})),(0,i.createElement)("div",{className:"o-style-switcher-item-label"},e.label))))))})))},Zt=e=>{let{value:t,onChange:o}=e;const a=(0,O.useInstanceId)(Zt);(0,i.useEffect)((()=>{window.wp.oldEditor.initialize(r.current.id,{tinymce:{classic_block_editor:!0,plugins:"lists,media,paste,tabfocus,wordpress,wpautoresize,wpeditimage,wpgallery,wplink,wpdialogs,wptextpattern,wpview",toolbar1:"formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker,wp_add_media"}});const e=window.tinymce.get(r.current.id);return e.on("change",(()=>o(e.getContent()))),()=>window.wp.oldEditor.remove(r.current.id)}),[]);const n=`inspector-textarea-control-${a}`,r=(0,i.useRef)(null);return(0,i.createElement)(s.BaseControl,{id:n,label:(0,l.__)("Description","otter-blocks")},(0,i.createElement)("textarea",{id:n,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:r}))};var Wt=Zt,Ut=e=>{let{marker:t,isOpen:o,isPlaceAPIAvailable:a,openMarker:n,removeMarker:r,changeMarkerProp:c}=e;const d=(0,i.useRef)(null);return(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker"},(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker-title-area"},(0,i.createElement)(s.Button,{className:"wp-block-themeisle-blocks-google-map-marker-title",onClick:()=>n(t.id)},t.title||(0,l.__)("Custom Marker","otter-blocks")),(0,i.createElement)(s.Button,{icon:"no-alt",label:(0,l.__)("Remove Marker","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-google-map-marker-remove",onClick:()=>r(t.id)})),(0,i.createElement)("div",{className:g()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===o})},(0,i.createElement)(s.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,i.createElement)("input",{type:"text",id:`themeisle-location-search-${t.id}`,placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:d,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const o=new window.google.maps.places.SearchBox(d.current);o.addListener("places_changed",(()=>{const e=o.getPlaces();e&&0<e.length&&e.forEach((e=>{const o=e.formatted_address||e.name,l=e.geometry.location.lat(),a=e.geometry.location.lng();c(t.id,"location",o),c(t.id,"latitude",l),c(t.id,"longitude",a)}))}))},onChange:e=>c(t.id,"location",e.target.value),disabled:!a}),!a&&(0,i.createElement)("p",null,(0,l.__)("To enable locations earch, please ensure Places API is activated in the Google Developers Console.","otter-blocks")+" ",(0,i.createElement)(s.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:t.latitude,onChange:e=>c(t.id,"latitude",e)}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:t.longitude,onChange:e=>c(t.id,"longitude",e)}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Map Icon","otter-blocks"),value:t.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:(0,l.__)("Red","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:(0,l.__)("Blue","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:(0,l.__)("Yellow","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:(0,l.__)("Green","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:(0,l.__)("Orange","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:e=>c(t.id,"icon",e)}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:t.title,onChange:e=>c(t.id,"title",e)}),(0,i.createElement)(Wt,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>c(t.id,"description",e)})))},jt=e=>{let{initialOpen:t,markers:o,isPlaceAPIAvailable:a,addMarker:n,removeMarker:r,changeMarkerProp:c}=e;(0,i.useEffect)((()=>{!1!==t&&m(t)}),[t]);const[d,m]=(0,i.useState)(null),u=e=>{d===e&&(e=null),m(e)};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},o.map((e=>(0,i.createElement)(Ut,{key:e.id,marker:e,isOpen:d,isPlaceAPIAvailable:a,openMarker:u,removeMarker:r,changeMarkerProp:c})))),(0,i.createElement)(s.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:n},(0,l.__)("Add Marker","otter-blocks")))},qt=e=>{let{attributes:t,setAttributes:o,map:a,changeStyle:n,isPlaceAPIAvailable:r,isMarkerOpen:d,setMarkerOpen:m,removeMarker:u,changeMarkerProp:b,addMarkerManual:p,api:g,isSaving:h,changeAPI:k,saveAPIKey:v}=e;const y=(0,i.useRef)(null);return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,i.createElement)(Dt,{value:t.style,options:[{label:(0,l.__)("Standard","otter-blocks"),value:"standard",image:window.themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:(0,l.__)("Silver","otter-blocks"),value:"silver",image:window.themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:(0,l.__)("Retro","otter-blocks"),value:"retro",image:window.themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:(0,l.__)("Dark","otter-blocks"),value:"dark",image:window.themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:(0,l.__)("Night","otter-blocks"),value:"night",image:window.themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:(0,l.__)("Aubergine","otter-blocks"),value:"aubergine",image:window.themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:n})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,i.createElement)(s.BaseControl,{label:(0,l.__)("Location"),id:"wp-block-themeisle-blocks-google-map-search"},(0,i.createElement)("input",{type:"text",id:"wp-block-themeisle-blocks-google-map-search",placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:y,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const t=new window.google.maps.places.SearchBox(y.current);t.addListener("places_changed",(()=>{const e=t.getPlaces();e&&0<e.length&&e.forEach((e=>{const t=e.geometry.location.lat(),l=e.geometry.location.lng(),n=new window.google.maps.LatLng(t,l);a.setCenter(n),o({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:e=>{o({location:e.target.value})},disabled:!r}),!r&&(0,i.createElement)("p",null,(0,l.__)("To enable locations earch, please ensure Places API is activated in the Google Developers Console.","otter-blocks")+" ",(0,i.createElement)(s.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter latitude…","otter-blocks"),value:t.latitude,onChange:e=>{o({latitude:e.toString()});const l=Number(e),{longitude:n}=t,r=new window.google.maps.LatLng(l,n);a.setCenter(r)}}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter longitude","otter-blocks"),value:t.longitude,onChange:e=>{o({longitude:e.toString()});const{latitude:l}=t,n=Number(e),r=new window.google.maps.LatLng(l,n);a.setCenter(r)}})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Map Type","otter-blocks"),value:t.type,options:[{label:(0,l.__)("Road Map","otter-blocks"),value:"roadmap"},{label:(0,l.__)("Satellite View","otter-blocks"),value:"satellite"},{label:(0,l.__)("Hybrid","otter-blocks"),value:"hybrid"},{label:(0,l.__)("Terrain","otter-blocks"),value:"terrain"}],onChange:e=>{o({type:e}),a.setMapTypeId(window.google.maps.MapTypeId[e.toUpperCase()])}}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Map Zoom Level","otter-blocks"),value:t.zoom,onChange:e=>{o({zoom:e}),a.setZoom(e)},min:0,max:20}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.BaseControl,null,(0,l.__)("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.","otter-blocks")),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Map Type Control","otter-blocks"),checked:t.mapTypeControl,onChange:()=>{o({mapTypeControl:!t.mapTypeControl})}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Full Screen Control","otter-blocks"),checked:t.fullscreenControl,onChange:()=>{o({fullscreenControl:!t.fullscreenControl})}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Street View Control","otter-blocks"),checked:t.streetViewControl,onChange:()=>{o({streetViewControl:!t.streetViewControl})}})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1,opened:!1!==d||void 0,onToggle:()=>{!1!==d&&m(!0)}},(0,i.createElement)(jt,{markers:t.markers,removeMarker:u,changeMarkerProp:b,addMarker:p,isPlaceAPIAvailable:r,initialOpen:d})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Global Settings","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Google Maps API Key","otter-blocks"),type:"text",placeholder:(0,l.__)("Google Maps API Key","otter-blocks"),value:g,className:"components-placeholder__input",onChange:k,help:(0,l.__)("Changing the API key effects all Google Map Embed blocks. You will have to refresh the page after changing your API keys.","otter-blocks")}),(0,i.createElement)(s.Button,{isSecondary:!0,type:"submit",onClick:v,isBusy:h},(0,l.__)("Save API Key","otter-blocks"))))},Kt=e=>{let{marker:t,isAdvanced:o,isPlaceAPIAvailable:a,addMarker:n,close:r}=e;(0,i.useEffect)((()=>{m(t.id),b(t.location),g(t.title),k(t.icon),y(t.description),f(t.latitude),C(t.longitude)}),[t]);const c=(0,i.useRef)(null),[d,m]=(0,i.useState)(t.id),[u,b]=(0,i.useState)(t.location),[p,g]=(0,i.useState)(t.title),[h,k]=(0,i.useState)(t.icon),[v,y]=(0,i.useState)(t.description),[_,f]=(0,i.useState)(t.latitude),[w,C]=(0,i.useState)(t.longitude);return(0,i.createElement)(s.Modal,{title:(0,l.__)("Add Marker","otter-blocks"),onRequestClose:r,shouldCloseOnClickOutside:!1},o&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,i.createElement)("input",{type:"text",id:`themeisle-location-search-${d}`,placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:u,className:"wp-block-themeisle-blocks-google-map-search",ref:c,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const t=new window.google.maps.places.SearchBox(c.current);t.addListener("places_changed",(()=>{const e=t.getPlaces();e&&0<e.length&&e.forEach((e=>{const t=e.formatted_address||e.name,o=e.geometry.location.lat(),l=e.geometry.location.lng();b(t),f(o),C(l)}))}))},onChange:e=>b(e.target.value),disabled:!a})),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:_,onChange:f}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:w,onChange:C})),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:p,onChange:g}),(0,i.createElement)(Wt,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:v,onChange:y}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Map Icon","otter-blocks"),value:h||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:(0,l.__)("Red","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:(0,l.__)("Blue","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:(0,l.__)("Yellow","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:(0,l.__)("Green","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:(0,l.__)("Orange","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:k}),(0,i.createElement)(s.ButtonGroup,null,(0,i.createElement)(s.Button,{isPrimary:!0,onClick:()=>n(u,p,h,v,_,w)},(0,l.__)("Add","otter-blocks")),(0,i.createElement)(s.Button,{isSecondary:!0,onClick:r},(0,l.__)("Cancel","otter-blocks"))))},Jt=e=>{let{attributes:t,initMap:o,displayMap:a,isMapLoaded:n,selectMarker:r,isSelectingMarker:c}=e;return(0,i.useEffect)((()=>{a&&o()}),[a]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{id:t.id,className:g()({"is-selecting-marker":c}),style:{height:t.height+"px"}}),n&&(0,i.createElement)(s.Button,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:(0,l.__)("Add Button","otter-blocks"),onClick:r},(0,i.createElement)("span",{className:"dashicons dashicons-sticky"})))},Qt={standard:[],silver:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],retro:[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],dark:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],night:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],aubergine:[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]};const{attributes:Yt}=Ot;const Xt={to:[{type:"block",blocks:["themeisle-blocks/leaflet-map"],transform:e=>{const t=(0,I.omit)(e,["style","mapTypeControl","fullscreenControl","streetViewControl"]);return(0,a.createBlock)("themeisle-blocks/leaflet-map",{...t})}}]};var eo=Xt;const{name:to}=Ot;(0,a.registerBlockType)(to,{...Ot,title:(0,l.__)("Google Maps","otter-blocks"),description:(0,l.__)("Display Google Maps on your website with Google Map block. Powered by Otter.","otter-blocks"),icon:r.mapIcon,keywords:["map","google","orbitfox"],transforms:eo,edit:e=>{let{attributes:t,setAttributes:o,clientId:a,isSelected:n,toggleSelection:r}=e;(0,i.useEffect)((()=>{const e=(0,y.blockInit)(a,Yt);return()=>e(t.id)}),[t.id]),(0,i.useEffect)((()=>{let e=!0;return(async()=>{await window.wp.api.loadPromise.then((()=>{m.current=new window.wp.api.models.Settings})),!1===Boolean(window.themeisleGutenberg.mapsAPI)?_||m.current.fetch().then((t=>{e&&(v(t.themeisle_google_map_block_api_key),f(!0),""!==t.themeisle_google_map_block_api_key&&(C(!0),Z(t.themeisle_google_map_block_api_key)))})):!_&&e&&(v(window.themeisleGutenberg.mapsAPI),f(!0),C(!0),Z(window.themeisleGutenberg.mapsAPI))})(),window.isMapLoaded=window.isMapLoaded||!1,window[`removeMarker_${a.substr(0,8)}`]=q,window.gm_authFailure=function(){C(!1),$(!0)},u.current=document.createElement("script"),u.current.type="text/javascript",u.current.async=!0,u.current.defer=!0,u.current.id="themeisle-google-map-api-loading",()=>{e=!1}}),[]),(0,i.useEffect)((()=>{!1!==w&&void 0!==window.google&&b.current.setOptions({mapTypeControl:!!n||t.mapTypeControl,zoomControl:!!n||t.zoomControl,fullscreenControl:!!n||t.fullscreenControl,streetViewControl:!!n||t.streetViewControl})}),[n]),(0,i.useEffect)((()=>{h.current=[...t.markers]}),[t.markers]);const d=(0,i.useRef)([]),m=(0,i.useRef)(null),u=(0,i.useRef)(null),b=(0,i.useRef)(null),p=(0,i.useRef)(null),h=(0,i.useRef)([...t.markers]),[k,v]=(0,i.useState)(""),[_,f]=(0,i.useState)(!1),[w,C]=(0,i.useState)(!1),[E,x]=(0,i.useState)(!1),[T,S]=(0,i.useState)(!1),[M,B]=(0,i.useState)(!0),[z,P]=(0,i.useState)(!1),[R,V]=(0,i.useState)(!1),[L,N]=(0,i.useState)(!1),[H,I]=(0,i.useState)(!1),[O,F]=(0,i.useState)(!1),[A,G]=(0,i.useState)({}),[D,$]=(0,i.useState)(!1),Z=e=>{window.isMapLoaded||(window.isMapLoaded=!0,u.current.onload=()=>{document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",P(!0)},u.current.src=`https://maps.googleapis.com/maps/api/js?key=${e}&libraries=places&cache=${Math.random()}`,document.head.appendChild(u.current)),document.getElementById("themeisle-google-map-api")&&P(!0)},W=(e,t,o,n)=>{const r=`<div class="wp-block-themeisle-blocks-map-overview"><h6 class="wp-block-themeisle-blocks-map-overview-title">${o}</h6><div class="wp-block-themeisle-blocks-map-overview-content">${n?`<p>${n}</p>`:""}<a class="wp-block-themeisle-blocks-map-overview-delete" onclick="removeMarker_${a.substr(0,8)}( '${t}' )">${(0,l.__)("Delete Marker","otter-blocks")}</a></div></div>`,i=new window.google.maps.InfoWindow({content:r});e.addListener("click",(()=>{p.current=i,i.open(b.current,e)})),window.google.maps.event.addListener(i,"domready",(()=>{V(t)})),window.google.maps.event.addListener(i,"closeclick",(()=>{V(!1)}))},U=e=>{e.forEach((e=>{const{latitude:t}=e,{longitude:o}=e,l=new window.google.maps.LatLng(t,o),a=new window.google.maps.Marker({position:l,map:b.current,title:e.title,draggable:!0,icon:e.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png"});window.google.maps.event.addListener(a,"dragend",(t=>{const o=t.latLng.lat(),l=t.latLng.lng();j(e.id,"latitude",o),j(e.id,"longitude",l)})),d.current.push(a),window.google.maps.event.addListener(a,"click",(()=>{p.current&&p.current.close()})),W(a,e.id,e.title,e.description)}))},j=(e,t,l)=>{const a=[...h.current];a.find((t=>t.id===e))[t]=l.toString(),K(),U(a),o({markers:a})},q=e=>{let t=[...h.current];t=t.filter((t=>t.id!==e)),o({markers:t}),K(),V(!1),0<t.length&&U(t)},K=()=>{for(let e=0;e<d.current.length;e++)d.current[e].setMap(null);d.current=[]},J=()=>{!1===Boolean(window.themeisleGutenberg.mapsAPI)&&(S(!0),new window.wp.api.models.Settings({themeisle_google_map_block_api_key:k}).save().then((e=>{let t=!1;""!==e.themeisle_google_map_block_api_key&&(t=!0),S(!1),C(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,Z(e.themeisle_google_map_block_api_key))})))},Q=e=>{o({style:e}),b.current.setOptions({styles:Qt[e]})},Y=(0,c.useBlockProps)({className:g()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":n})});return _&&w?(0,i.createElement)(i.Fragment,null,(0,i.createElement)($t,{label:(0,l.__)("Block Styles","otter-blocks"),value:t.style,options:[{label:(0,l.__)("Standard","otter-blocks"),value:"standard",image:window.themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:(0,l.__)("Silver","otter-blocks"),value:"silver",image:window.themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:(0,l.__)("Retro","otter-blocks"),value:"retro",image:window.themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:(0,l.__)("Dark","otter-blocks"),value:"dark",image:window.themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:(0,l.__)("Night","otter-blocks"),value:"night",image:window.themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:(0,l.__)("Aubergine","otter-blocks"),value:"aubergine",image:window.themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:Q}),(0,i.createElement)(qt,{attributes:t,setAttributes:o,map:b.current,changeStyle:Q,isPlaceAPIAvailable:M,isMarkerOpen:R,setMarkerOpen:V,removeMarker:q,changeMarkerProp:j,addMarkerManual:()=>{const e=(0,Ft.Z)(),t=(0,l.__)("Custom Marker","otter-blocks"),o=b.current.getCenter(),a=o.lat(),n=o.lng();I(!0),F(!0),G({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:n})},api:k,isSaving:T,changeAPI:v,saveAPIKey:J}),H&&(0,i.createElement)(Kt,{marker:A,isAdvanced:O,isPlaceAPIAvailable:M,close:()=>I(!1),addMarker:(e,l,a,n,r,i)=>{const c=new window.google.maps.LatLng(r,i),s=(0,Ft.Z)(),m=new window.google.maps.Marker({position:c,map:b.current,title:l,draggable:!0,icon:a});window.google.maps.event.addListener(m,"dragend",(e=>{const t=e.latLng.lat(),o=e.latLng.lng();j(s,"latitude",t),j(s,"longitude",o)})),d.current.push(m);const u=[...t.markers],g={id:s,location:e,title:l,icon:a,description:n,latitude:r,longitude:i};u.push(g),o({markers:u}),window.google.maps.event.addListener(m,"click",(()=>{p.current&&p.current.close()})),W(m,g.id,l,n),I(!1),N(!1)}}),(0,i.createElement)("div",Y,(0,i.createElement)(s.ResizableBox,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{r(!1)},onResizeStop:(e,l,a,n)=>{o({height:parseInt(t.height+n.height,10)}),r(!0)}},(0,i.createElement)(Jt,{attributes:t,initMap:()=>{var e,l,a;const n=null!==(e=null===(l=(0,y.getEditorIframe)())||void 0===l||null===(a=l.contentWindow)||void 0===a?void 0:a.document)&&void 0!==e?e:document;if(b.current=new window.google.maps.Map(n.getElementById(t.id),{center:{lat:Number(t.latitude)||41.4036299,lng:Number(t.longitude)||2.1743558000000576},gestureHandling:"cooperative",zoom:t.zoom,mapTypeId:t.type,styles:Qt[t.style]}),t.location&&void 0===t.latitude&&void 0===t.longitude){const e={query:t.location,fields:["name","geometry"]};new window.google.maps.places.PlacesService(b.current).findPlaceFromQuery(e,((e,t)=>{t===window.google.maps.places.PlacesServiceStatus.OK&&0<e.length&&b.current.setCenter(e[0].geometry.location)}))}window.google.maps.event.addListenerOnce(b.current,"idle",(()=>{x(!0)})),b.current.addListener("zoom_changed",(()=>{const e=b.current.getZoom();o({zoom:e})})),b.current.addListener("maptypeid_changed",(()=>{const e=b.current.getMapTypeId();o({type:e})})),b.current.addListener("bounds_changed",(()=>{const e=b.current.getCenter(),t=e.lat(),l=e.lng();o({latitude:t.toString(),longitude:l.toString()})})),0<t.markers.length&&U(t.markers);const r={query:t.location,fields:["name","geometry"]};new window.google.maps.places.PlacesService(b.current).findPlaceFromQuery(r,((e,t)=>{"REQUEST_DENIED"===t&&B(!1)}))},displayMap:z,isMapLoaded:E,selectMarker:()=>{N(!L),L?window.google.maps.event.clearListeners(b.current,"click"):b.current.addListener("click",(e=>{window.google.maps.event.clearListeners(b.current,"click");const t=(0,Ft.Z)(),o=(0,l.__)("Custom Marker","otter-blocks"),a=e.latLng.lat(),n=e.latLng.lng();I(!0),F(!1),G({id:t,location:"",title:o,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:n})}))},isSelectingMarker:L})))):(0,i.createElement)("div",Y,(0,i.createElement)(At,{api:k,error:D,isAPILoaded:_,isAPISaved:w,isSaving:T,changeAPI:e=>{v(e),$(!1)},saveAPIKey:J}))},save:()=>null});var oo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/icon-list","title":"Icon List","category":"themeisle-blocks","description":"Display an icon list in a beautiful layout. Powered by Otter.","keywords":["icon","list","items"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"defaultLibrary":{"type":"string","default":"fontawesome"},"defaultPrefix":{"type":"string","default":"fas"},"defaultIcon":{"type":"string","default":"angle-right"},"defaultContentColor":{"type":"string"},"defaultIconColor":{"type":"string"},"defaultSize":{"type":"number","default":20},"gap":{"type":"number","default":5},"horizontalAlign":{"type":"string"}},"styles":[{"name":"vertical","label":"Vertical","isDefault":true},{"name":"horizontal","label":"Horizontal"}],"editorStyle":"otter-icon-list-editor","style":"otter-icon-list-style"}'),lo=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(c.AlignmentToolbar,{value:{"flex-start":"left",center:"center","flex-end":"right"}[t.horizontalAlign],onChange:e=>{switch(e){case"left":o({horizontalAlign:"flex-start"});break;case"center":o({horizontalAlign:"center"});break;case"right":o({horizontalAlign:"flex-end"});break;default:o({horizontalAlign:void 0})}}}))};const ao=(0,i.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var no=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(i.Suspense,{fallback:(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null))},(0,i.createElement)(ao,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.defaultLibrary,prefix:t.defaultPrefix,icon:t.defaultIcon,changeLibrary:e=>{o({defaultLibrary:e,defaultIcon:void 0,defaultPrefix:"fas"})},onChange:e=>{if("image"===t.defaultLibrary&&null!=e&&e.url)return o({defaultIcon:e.url});o("object"==typeof e?{defaultIcon:e.name,defaultPrefix:e.prefix}:{defaultIcon:e})},allowImage:!0})),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Font Size","otter-blocks"),help:(0,l.__)("The size of the font size of the content and icon.","otter-blocks"),value:t.defaultSize,onChange:e=>{o({defaultSize:e})},step:.1,min:0,max:60,allowReset:!0}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Gap","otter-blocks"),help:(0,l.__)("The distance between the items.","otter-blocks"),value:t.gap,onChange:e=>{o({gap:e})},step:.1,min:0,max:60,allowReset:!0}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Content Color","otter-blocks"),colorValue:t.defaultContentColor,onColorChange:e=>{o({defaultContentColor:e})}}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Icon Color","otter-blocks"),colorValue:t.defaultIconColor,onColorChange:e=>{o({defaultIconColor:e})}})))};const{attributes:ro}=oo;var io=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/icon-list-item","title":"Icon List Item","category":"themeisle-blocks","description":"Display an item for the icon list. Powered by Otter.","keywords":["icon","list","items"],"parent":["themeisle-blocks/icon-list"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"content":{"type":"string"},"contentColor":{"type":"string"},"iconColor":{"type":"string"},"library":{"type":"string"},"iconPrefix":{"type":"string"},"icon":{"type":"string"}}}');const co=(0,i.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var so=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(i.Suspense,{fallback:(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null))},(0,i.createElement)(co,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.library,prefix:t.iconPrefix,icon:t.icon,changeLibrary:e=>{o({library:e,icon:void 0,iconPrefix:"fab"})},onChange:e=>{if("image"===t.library&&null!=e&&e.url)return o({icon:e.url});o("object"==typeof e?{icon:e.name,iconPrefix:e.prefix}:{icon:e})},allowImage:!0})),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Content Color","otter-blocks"),colorValue:t.contentColor,onColorChange:e=>{o({contentColor:e})}}),"image"!==t.library&&(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Icon Color","otter-blocks"),colorValue:t.iconColor,onColorChange:e=>{o({iconColor:e})}})))};const{attributes:mo}=io;const{name:uo}=io;(0,a.registerBlockType)(uo,{...io,title:(0,l.__)("Icon List Item","otter-blocks"),description:(0,l.__)("Display an item for the icon list. Powered by Otter.","otter-blocks"),icon:r.faIcon,keywords:["item","icon","list"],merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:e=>{var t,o;let{attributes:n,setAttributes:r,name:s,clientId:d,onReplace:m,onRemove:u,mergeBlocks:b}=e;const[p,k]=(0,i.useState)(!1),{hasParent:v,parentAttributes:_}=(0,h.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),l=t(o(d));return{hasParent:!!l,parentAttributes:l?l.attributes:{}}}),[]);(0,i.useEffect)((()=>{const e=(0,y.blockInit)(d,mo);return()=>e(n.id)}),[n.id]),(0,i.useEffect)((()=>{r({library:n.library||_.defaultLibrary,icon:n.icon||_.defaultIcon,iconPrefix:n.iconPrefix||_.defaultPrefix})}),[v,_,n]),(0,i.useEffect)((()=>{if("image"===n.library)try{const e=new URL(n.icon);"http:"!==(null==e?void 0:e.protocol)&&"https:"!==(null==e?void 0:e.protocol)||k(!0)}catch(e){k(!1)}}),[n.library,n.icon]);const f=ve.ZP.icons[n.icon],w=`${n.iconPrefix||_.defaultPrefix} fa-${n.icon||_.defaultIcon}`,C={"--content-color":null!==(t=n.contentColor)&&void 0!==t?t:_.defaultContentColor,"--icon-color":null!==(o=n.iconColor)&&void 0!==o?o:_.defaultIconColor},E=(0,c.useBlockProps)({style:C});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(so,{attributes:n,setAttributes:r}),(0,i.createElement)("div",E,"image"===n.library&&p?(0,i.createElement)("img",{src:n.icon}):"themeisle-icons"===n.library&&n.icon&&void 0!==f?(0,i.createElement)(f,{className:g()({"wp-block-themeisle-blocks-icon-list-item-icon":!n.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":n.iconColor})}):(0,i.createElement)("i",{className:g()(w,{"wp-block-themeisle-blocks-icon-list-item-icon":!n.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":n.iconColor})}),(0,i.createElement)(c.RichText,{identifier:"content",tagName:"p",placeholder:(0,l.__)("Write your content…","otter-blocks"),className:g()({"wp-block-themeisle-blocks-icon-list-item-content":!n.contentColor},{"wp-block-themeisle-blocks-icon-list-item-content-custom":n.contentColor}),value:n.content,onChange:e=>{r({content:e})},onSplit:e=>e?(0,a.createBlock)(s,{...n,content:e}):(0,a.createBlock)(s),onMerge:b,onReplace:m,onRemove:u})))},save:e=>{let{attributes:t}=e;const o=`${t.iconPrefix} fa-${t.icon}`,l=ve.ZP.icons[t.icon],a=c.useBlockProps.save({id:t.id});return(0,i.createElement)("div",a,"image"===t.library&&t.icon?(0,i.createElement)("img",{src:t.icon}):"themeisle-icons"===t.library&&t.icon?(0,i.createElement)(l,{className:g()({"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}):(0,i.createElement)("i",{className:g()(o,{"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}),(0,i.createElement)(c.RichText.Content,{tagName:"p",className:g()({"wp-block-themeisle-blocks-icon-list-item-content":!t.contentColor},{"wp-block-themeisle-blocks-icon-list-item-content-custom":t.contentColor}),value:t.content}))}});const{name:bo}=oo;(0,a.registerBlockType)(bo,{...oo,title:(0,l.__)("Icon List","otter-blocks"),description:(0,l.__)("Display an icon list in a beautiful layout. Powered by Otter.","otter-blocks"),icon:r.faIcon,keywords:["icon","list","items"],styles:[{name:"vertical",label:(0,l.__)("Vertical","otter-blocks"),isDefault:!0},{name:"horizontal",label:(0,l.__)("Horizontal","otter-blocks")}],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;(0,i.useEffect)((()=>{const e=(0,y.blockInit)(l,ro);return()=>e(t.id)}),[t.id]);const a={"--horizontal-align":t.horizontalAlign,"--gap":t.gap&&`${t.gap}px`,"--font-size":t.defaultSize&&`${t.defaultSize}px`},n=(0,c.useBlockProps)({id:t.id,style:a});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(lo,{attributes:t,setAttributes:o}),(0,i.createElement)(no,{attributes:t,setAttributes:o}),(0,i.createElement)("div",n,(0,i.createElement)(c.InnerBlocks,{allowedBlocks:["themeisle-blocks/icon-list-item"],__experimentalMoverDirection:"vertical",orientation:"vertical",template:[["themeisle-blocks/icon-list-item"]],renderAppender:c.InnerBlocks.DefaultAppender})))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id});return(0,i.createElement)("div",o,(0,i.createElement)(c.InnerBlocks.Content,null))},example:{innerBlocks:[{name:"themeisle-blocks/icon-list-item",attributes:{content:(0,l.__)("List Item 1","otter-blocks")}},{name:"themeisle-blocks/icon-list-item",attributes:{content:(0,l.__)("List Item 2","otter-blocks")}},{name:"themeisle-blocks/icon-list-item",attributes:{content:(0,l.__)("List Item 3","otter-blocks")}}]}});var po=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/leaflet-map","title":"Maps","category":"themeisle-blocks","description":"Display Open Street Maps on your website with Maps block. Powered by Otter.","keywords":["map","opeenstreetmap","location"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"location":{"type":"string","default":"La Sagrada Familia, Barcelona, Spain"},"latitude":{"type":"string","default":"41.4034789"},"longitude":{"type":"string","default":"2.174410333009705"},"bbox":{"type":"string","default":"2.1207046508789067%2C41.34807736149302%2C2.2288513183593754%2C41.45816618938139"},"zoom":{"type":"number"},"height":{"type":"number","default":400},"markers":{"type":"array","default":[]},"zoomControl":{"type":"boolean","default":true},"draggable":{"type":"boolean","default":true}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-leaflet-map-editor","style":"otter-leaflet-map-style","editorScript":"leaflet-gesture-handling","script":"otter-leaflet"}');async function go(e){const t=await async function(e){if("string"!=typeof e)throw(0,l.__)("Location must be a string","otter-blocks");const t="https://nominatim.openstreetmap.org/search?q="+e.split(" ").map((e=>encodeURIComponent(e))).join("+")+"&format=geojson",o=await fetch(t);return o.ok&&200===o.status?o.json():console.warn((0,l.__)("An error has occured: ","otter-blocks")+o.status)}(e);if(null!=t&&t.features.length){var o;const e=t.features[0];if(null!=e&&null!==(o=e.geometry)&&void 0!==o&&o.coordinates.length)return{longitude:e.geometry.coordinates[0],latitude:e.geometry.coordinates[1]}}return null}const ho=e=>{let{value:t,onChange:o}=e;const a=(0,O.useInstanceId)(ho);(0,i.useEffect)((()=>{wp.oldEditor.initialize(r.current.id,{tinymce:{classic_block_editor:!0,plugins:"lists,media,paste,tabfocus,wordpress,wpautoresize,wpeditimage,wpgallery,wplink,wpdialogs,wptextpattern,wpview",toolbar1:"formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker,wp_add_media"}});const e=window.tinymce.get(r.current.id);return e.on("change",(()=>o(e.getContent()))),()=>wp.oldEditor.remove(r.current.id)}),[]);const n=`inspector-textarea-control-${a}`,r=(0,i.useRef)(null);return(0,i.createElement)(s.BaseControl,{id:n,label:(0,l.__)("Description","otter-blocks")},(0,i.createElement)("textarea",{id:n,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:r}))};var ko=ho,vo=e=>{let{marker:t,isOpen:o,openMarker:a,dispatch:n}=e;const[r,c]=(0,i.useState)(t.location),[d,m]=(0,i.useState)(t.longitude),[u,b]=(0,i.useState)(t.latitude),[p,h]=(0,i.useState)(t.title),[k,v]=(0,i.useState)(t.description),[y,_]=(0,i.useState)({target:"",reason:""});return(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker"},(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-title-area"},(0,i.createElement)(s.Button,{className:"wp-block-themeisle-blocks-leaflet-map-marker-title",onClick:()=>a()},t.title||(0,l.__)("Custom Marker","otter-blocks")),(0,i.createElement)(s.Button,{icon:"no-alt",label:(0,l.__)("Remove Marker","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-remove",onClick:()=>n({type:wo.REMOVE,ids:[t.id]})})),o&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-control-area"},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:g()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===y.target}),value:r,onChange:e=>{c(e)},help:(0,l.__)("Press Enter to search the location","otter-blocks"),onKeyDown:e=>((e,o)=>{e.key===o&&(async()=>{const e=await go(r);e?(n({type:wo.UPDATE,ids:[t.id],updatedProps:{location:r,latitude:e.latitude,longitude:e.longitude}}),b(e.latitude),m(e.longitude),"LOCATION"===y.target&&_({})):_({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:u,onChange:e=>{b(e),n({type:wo.UPDATE,ids:[t.id],updatedProps:{latitude:e}})}}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:d,onChange:e=>{m(e),n({type:wo.UPDATE,ids:[t.id],updatedProps:{longitude:e}})}}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:p,onChange:e=>{h(e),n({type:wo.UPDATE,ids:[t.id],updatedProps:{title:e}})}}),(0,i.createElement)(ko,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>{v(k),n({type:wo.UPDATE,ids:[t.id],updatedProps:{description:e}})}})))},yo=e=>{let{markers:t,dispatch:o,markersInteraction:a}=e;const{openMarker:n,setOpenMarker:r}=a;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-group"},t.map((e=>(0,i.createElement)(vo,{key:e.id,marker:e,isOpen:n===e.id,openMarker:()=>r(a.openMarker!==e.id?e.id:null),dispatch:o})))),(0,i.createElement)(s.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-add",onClick:()=>{o({type:wo.ADD,marker:{id:(0,Ft.Z)()},dispatch:o})}},(0,l.__)("Add Marker","otter-blocks")))},_o=e=>{let{attributes:t,setAttributes:o,dispatch:a,markersInteraction:n}=e;const[r,d]=(0,i.useState)(t.location),[m,u]=(0,i.useState)({target:"",reason:""});return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:g()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===m.target}),placeholder:(0,l.__)("Enter location. E.g: La Sagrada Familia, Barcelona, Spain","otter-blocks"),help:(0,l.__)("Press Enter to search the location","otter-blocks"),value:r,onChange:d,onKeyDown:e=>((e,t)=>{e.key===t&&(async()=>{o({location:r});const e=await go(r);e?(o({latitude:e.latitude.toString(),longitude:e.longitude.toString()}),"LOCATION"===m.target&&u({})):u({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter latitude…","otter-blocks"),value:t.latitude,onChange:e=>{o({latitude:e.toString()})}}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter longitude","otter-blocks"),value:t.longitude,onChange:e=>{o({longitude:e.toString()})}})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Map Zoom Level","otter-blocks"),value:t.zoom,onChange:e=>{o({zoom:e})},min:0,max:20}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.BaseControl,null,(0,l.__)("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.","otter-blocks")),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1},(0,i.createElement)(yo,{markers:t.markers,dispatch:a,markersInteraction:n})))};const{attributes:fo}=po,wo={ADD:"ADD",ADD_MANUAL:"ADD_MANUAL",REMOVE:"REMOVE",UPDATE:"UPDATE",INIT:"INIT"};const Co={to:[{type:"block",blocks:["themeisle-blocks/google-map"],transform:e=>{const t=e;return(0,a.createBlock)("themeisle-blocks/google-map",{...t})}}]};var Eo=Co;const{name:xo}=po;(0,a.registerBlockType)(xo,{...po,title:(0,l.__)("Maps","otter-blocks"),description:(0,l.__)("Display Open Street Maps on your website with Maps block. Powered by Otter.","otter-blocks"),icon:r.mapIcon,keywords:["map","opeenstreetmap","location"],transforms:Eo,edit:e=>{let{clientId:t,attributes:o,setAttributes:a,isSelected:n,toggleSelection:r}=e;(0,i.useEffect)((()=>{const e=(0,y.blockInit)(t,fo);return()=>e(o.id)}),[o.id]);const d=(0,i.useRef)(null),[m,u]=(0,i.useState)(null),[b,p]=(0,i.useState)(!1),[h,k]=(0,i.useState)(null),v=(e,t)=>{if(window.L&&m&&t&&e){var o,a,n,r,i;null!==(o=e.id)&&void 0!==o||(e.id=(0,Ft.Z)()),null!==(a=e.latitude)&&void 0!==a||(e.latitude=m.getCenter().lat),null!==(n=e.longitude)&&void 0!==n||(e.longitude=m.getCenter().lng),null!==(r=e.title)&&void 0!==r||(e.title=(0,l.__)("Add a title","otter-blocks")),null!==(i=e.description)&&void 0!==i||(e.description="");const c=window.L.marker([e.latitude,e.longitude]||0,{draggable:!0});return c.on("movestart",(()=>{c.closeTooltip(),c.closePopup()})),c.on("moveend",(()=>{const o=c.getLatLng();t({type:wo.UPDATE,ids:[e.id],updatedProps:{latitude:o.lat,longitude:o.lng}})})),c.on("click",(()=>{k(e.id)})),c.markerProps=e,c}return null},[_,f]=(0,i.useReducer)(((e,t)=>{switch(t.type){case wo.ADD:const o=v(t.marker,t.dispatch);return[...e,o];case wo.ADD_MANUAL:if(b){const o=v(t.marker,t.dispatch);return[...e,o]}return e;case wo.REMOVE:return e.filter((e=>{let{markerProps:o}=e;return t.ids.includes(o.id)})).forEach((e=>{m.hasLayer(e)&&m.removeLayer(e)})),e.filter((e=>{let{markerProps:o}=e;return!t.ids.includes(o.id)}));case wo.INIT:const a=t.markers.map((e=>v(e,t.dispatch)));return[...e,...a];case wo.UPDATE:return e.map((e=>{const o=e.markerProps;return t.ids.includes(o.id)&&(e.markerProps=(0,I.merge)(e.markerProps,t.updatedProps)),e}));default:console.warn((0,l.__)("The action for the leaflet block do not have a defined action in marker's reducer: ","otter-blocks")+t.type)}return e}),[],(()=>[])),w=()=>{if(!d.current&&!window.L)return;let{L:e}=window;const t=(0,y.getEditorIframe)();var n;if(Boolean(t)&&(e=null===(n=t.contentWindow)||void 0===n?void 0:n.L),!e)return;d.current.innerHTML="";const r=e.map(d.current,{gestureHandling:!0,gestureHandlingOptions:{text:{touch:(0,l.__)("Use two fingers to move the map","otter-blocks"),scroll:(0,l.__)("Use ctrl + scroll to zoom the map","otter-blocks"),scrollMac:(0,l.__)("Use ⌘ + scroll to zoom the map","otter-blocks")}}});e.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:["a","b","c"]}).addTo(r),r.on("zoom",(()=>{a({zoom:r.getZoom()})})),r.on("moveend",(()=>{const e=r.getCenter();a({latitude:e.lat.toString(),longitude:e.lng.toString()})})),r.on("click",(e=>{f({type:wo.ADD_MANUAL,marker:{latitude:e.latlng.lat,longitude:e.latlng.lng},dispatch:f}),p(!1)})),e.Control.AddMarker=e.Control.extend({onAdd:()=>{const t=e.DomUtil.create("button","wp-block-themeisle-blocks-leaflet-map-marker-button"),o=e.DomUtil.create("span","dashicons dashicons-sticky",t);return e.DomEvent.on(t,"click",(t=>{e.DomEvent.stopPropagation(t),p(!b)})),t.title=(0,l.__)("Add marker on the map with a click","otter-blocks"),t.appendChild(o),t},onRemove:()=>{}}),e.control.addmarker=t=>new e.Control.AddMarker(t),e.control.addmarker({position:"bottomleft"}).addTo(r),u(r),f({type:wo.INIT,markers:o.markers,dispatch:f})};(0,i.useEffect)((()=>{(0,y.getEditorIframe)()?((0,y.copyScriptAssetToIframe)("#leaflet-js",(()=>{w()})),(0,y.copyScriptAssetToIframe)("#leaflet-gesture-handling-js",(()=>{}))):w()}),[]),(0,i.useEffect)((()=>{o.height&&m&&m.invalidateSize(!0)}),[o.height,m]),(0,i.useEffect)((()=>{o.latitude&&o.longitude&&m&&m.setView([o.latitude,o.longitude],o.zoom||15)}),[o.latitude,o.longitude,o.zoom,m]),(0,i.useEffect)((()=>{var e;null===(e=d.current)||void 0===e||e.classList.toggle("is-selecting-location",b)}),[b]),(0,i.useEffect)((()=>{o.latitude&&o.longitude&&m&&a({bbox:m.getBounds().toBBoxString()})}),[o.latitude,o.longitude,m]),(0,i.useEffect)((()=>{_&&(_.forEach((e=>{m.hasLayer(e)||m.addLayer(e);const{markerProps:t}=e;e.setLatLng([t.latitude,t.longitude]),e.closeTooltip(),e.unbindTooltip(),e.bindTooltip(t.title,{direction:"auto"}),e.closePopup(),e.unbindPopup(),e.bindPopup(((e,t)=>{const o=document.createElement("div"),a=document.createElement("h6"),n=document.createElement("div"),r=document.createElement("p"),i=document.createElement("button");return a.innerHTML=e.title,r.innerHTML=e.description,i.onclick=()=>t({type:wo.REMOVE,ids:[e.id]}),i.innerHTML=(0,l.__)("Delete Marker","otter-blocks"),o.classList.add("wp-block-themeisle-blocks-map-overview"),n.classList.add("wp-block-themeisle-blocks-map-overview-content"),a.classList.add("wp-block-themeisle-blocks-map-overview-title"),i.classList.add("wp-block-themeisle-blocks-map-overview-delete"),o.appendChild(a),o.appendChild(n),o.appendChild(i),n.appendChild(r),o})(t,f))})),o.markers.length!==_.length&&m&&a({markers:_.map((e=>{let{markerProps:t}=e;return t}))}))}),[_,m,o.markers]);const C=(0,c.useBlockProps)();return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(_o,{attributes:o,setAttributes:a,dispatch:f,markersInteraction:{openMarker:h,setOpenMarker:k}}),(0,i.createElement)("div",C,(0,i.createElement)(s.ResizableBox,{size:{height:o.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{r(!1)},onResizeStop:(e,t,l,n)=>{a({height:parseInt(o.height+n.height,10)}),r(!0)},className:g()("wp-block-themeisle-blocks-leaflet-map-resizer",{"is-focused":n})},(0,i.createElement)("div",{id:o.id,ref:d,style:{width:"100%",height:o.height||400}}))))},save:()=>null,example:{attributes:{}}});var To=o(2553),So=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/lottie","title":"Lottie Animation","category":"themeisle-blocks","description":"Add Lottie animations to your WordPress. Powered by Otter.","keywords":["media","lottie","animation"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"file":{"type":"object"},"trigger":{"type":"string","default":"none"},"loop":{"type":"boolean","default":false},"count":{"type":"number","default":0},"speed":{"type":"number","default":1},"direction":{"type":"boolean","default":false},"width":{"type":["string","number"]},"ariaLabel":{"type":"string","default":""},"backgroundColor":{"type":"string"},"backgroundGradient":{"type":"string"}},"supports":{"align":["left","center","right"]},"editorStyle":"otter-lottie-editor","editorScript":"lottie-player","script":"otter-lottie"}'),Mo=e=>{var t;let{className:o,file:a,onChange:n,attributes:r}=e;const[d,m]=(0,i.useState)((null===(t=r.file)||void 0===t?void 0:t.url)||null);return Boolean(window.themeisleGutenberg.isWPVIP)?(0,i.createElement)(s.Placeholder,{label:(0,l.__)("Lottie","otter-blocks"),instructions:(0,l.__)("Add Lottie animations and files to your website. You need to use a .json file.","otter-blocks"),icon:(0,i.createElement)(c.BlockIcon,{icon:To.Z}),className:o},(0,i.createElement)("form",{onSubmit:e=>(e&&e.preventDefault(),n(d))},(0,i.createElement)("input",{type:"url",value:d||"",className:"components-placeholder__input","aria-label":(0,l.__)("Lottie","otter-blocks"),placeholder:(0,l.__)("Enter URL to embed here…","otter-blocks"),onChange:e=>m(e.target.value)}),(0,i.createElement)(s.Button,{isPrimary:!0,disabled:!d,type:"submit"},(0,l.__)("Embed","otter-blocks")))):(0,i.createElement)(c.MediaPlaceholder,{labels:{title:(0,l.__)("Lottie","otter-blocks"),instructions:(0,l.__)("Add Lottie animations and files to your website.","otter-blocks")},icon:(0,i.createElement)(c.BlockIcon,{icon:To.Z}),accept:["application/json"],allowedTypes:["application/json"],value:{...a},onSelectURL:n,onSelect:n})},Bo=e=>{let{attributes:t,setAttributes:o,playerRef:a}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks"),initialOpen:!0},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Trigger","otter-blocks"),help:(0,l.__)("Animation trigger. This will only work on the front-end.","otter-blocks"),value:t.trigger,options:[{label:(0,l.__)("Autoplay","otter-blocks"),value:"none"},{label:(0,l.__)("Scroll","otter-blocks"),value:"scroll"},{label:(0,l.__)("Hover","otter-blocks"),value:"hover"},{label:(0,l.__)("Click","otter-blocks"),value:"click"}],onChange:e=>{o({trigger:e})}}),"scroll"!==t.trigger&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Loop","otter-blocks"),help:(0,l.__)("Whether to loop animation.","otter-blocks"),checked:t.loop,onChange:e=>{o({loop:e}),a.current.setLooping(e),t.direction&&a.current.seek("100%"),a.current.play()}}),t.loop&&(0,i.createElement)(s.TextControl,{label:(0,l.__)("Numbers of loops","otter-blocks"),help:(0,l.__)("Number of times to loop animation.","otter-blocks"),type:"number",value:t.count,onChange:e=>{o({count:Number(e)}),a.current.load(t.file.url)}}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Speed","otter-blocks"),help:(0,l.__)("Animation speed.","otter-blocks"),value:t.speed,onChange:e=>{o({speed:Number(e)}),a.current.setSpeed(e)},step:.1,min:.1,max:5}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Reverse","otter-blocks"),help:(0,l.__)("Direction of animation.","otter-blocks"),checked:t.direction,onChange:e=>{o({direction:e}),a.current.setDirection(e?-1:1),a.current.seek(e?"100%":0)}})),(0,i.createElement)(c.__experimentalUnitControl,{onChange:e=>{const t=parseInt(e.slice(0,-1)),l=e.slice(-1);100<t&&"%"===l&&(e="100%"),o({width:e})},label:(0,l.__)("Width","otter-blocks"),isUnitSelectTabbable:!0,isResetValueOnUnitChange:!0,__unstableInputWidth:"50%",value:Number.isInteger(t.width)?`${t.width}px`:t.width,units:[{value:"%",label:"%",default:100},{value:"px",label:"px",default:300}]})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Background","otter-blocks"),initialOpen:!1},(0,i.createElement)(c.__experimentalColorGradientControl,{colorValue:t.backgroundColor,gradientValue:t.backgroundGradient,onColorChange:e=>o({backgroundColor:e}),onGradientChange:e=>o({backgroundGradient:e}),className:"otter-lottie-background-control"}))),(0,i.createElement)(c.InspectorAdvancedControls,null,(0,i.createElement)(s.TextControl,{label:(0,l.__)("Aria Label","otter-blocks"),help:(0,l.__)("Describe the purpose of this animation on the page.","otter-blocks"),value:t.ariaLabel,onChange:e=>o({ariaLabel:e})})))},zo=e=>{let{isEditing:t,setEditing:o}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(s.ToolbarGroup,null,(0,i.createElement)(s.Tooltip,{text:t?(0,l.__)("Save","otter-blocks"):(0,l.__)("Edit","otter-blocks")},(0,i.createElement)(s.Button,{onClick:()=>o(!t)},(0,i.createElement)(s.Dashicon,{icon:t?"yes":"edit"})))))},Po=e=>{let{attributes:t,playerRef:o}=e;(0,i.useEffect)((()=>{const e=(0,y.getEditorIframe)();Boolean(e)?(0,y.copyScriptAssetToIframe)("#lottie-player-js",(()=>{!(0,I.isEmpty)(t.file)&&t.loop&&null!==o.current&&o.current.addEventListener("complete",l)})):!(0,I.isEmpty)(t.file)&&t.loop&&null!==o.current&&o.current.addEventListener("complete",l)}),[]);const l=()=>{o.current&&(o.current.setLooping(t.loop),o.current.play(),o.current.removeEventListener("complete",l))};return(0,i.createElement)("lottie-player",(0,H.Z)({id:t.id,ref:o,src:t.file.url,autoplay:!0,count:t.count,speed:t.speed,background:t.backgroundColor||t.backgroundGradient,direction:t.direction?-1:1,style:{width:!(!t.width||"%"===t.width.toString().slice(-1))&&`${t.width}px`,maxWidth:!(!t.width||"%"!==t.width.toString().slice(-1))&&`${t.width}`,height:"auto"},mode:"normal"},t.ariaLabel&&{"aria-label":t.ariaLabel}))};const{attributes:Ro}=So;const{name:Vo}=So;(0,a.registerBlockType)(Vo,{...So,title:(0,l.__)("Lottie Animation","otter-blocks"),description:(0,l.__)("Add Lottie animations to your WordPress. Powered by Otter.","otter-blocks"),icon:To.Z,keywords:["media","lottie","animation"],edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a}=e;const n=(0,i.useRef)(null),[r,s]=(0,i.useState)(!Boolean(t.file));(0,i.useEffect)((()=>{const e=(0,y.blockInit)(a,Ro);return()=>e(t.id)}),[t.id]),(0,i.useEffect)((()=>{var e,o,a,r,i,c;l?(null===(e=n.current)||void 0===e||null===(o=e.play)||void 0===o||o.call(e),t.direction&&(null===(a=n.current)||void 0===a||null===(r=a.seek)||void 0===r||r.call(a,"100%"))):null===(i=n.current)||void 0===i||null===(c=i.stop)||void 0===c||c.call(i)}),[l]);const d=(0,c.useBlockProps)();return(0,i.createElement)(i.Fragment,null,(!(0,I.isEmpty)(t.file)&&r||!r)&&(0,i.createElement)(zo,{isEditing:r,setEditing:s}),!((0,I.isEmpty)(t.file)||r)&&(0,i.createElement)(Bo,{attributes:t,setAttributes:o,playerRef:n}),(0,i.createElement)("div",d,((0,I.isEmpty)(t.file)||r)&&(0,i.createElement)(Mo,{value:t.file,onChange:e=>{if(""===e||null===e)return;const t=(0,I.pick)(e,["id","url"]);(0,I.isEmpty)(t)&&(t.url=e),o({file:{...t}}),s(!1)},attributes:t}),!((0,I.isEmpty)(t.file)||r)&&(0,i.createElement)(Po,{attributes:t,isSelected:l,playerRef:n})))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,src:t.file?t.file.url:"",width:t.width});return"scroll"===t.trigger?(0,i.createElement)("lottie-player",(0,H.Z)({trigger:t.trigger,background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o)):(0,i.createElement)("lottie-player",(0,H.Z)({autoplay:!0,loop:!0,count:t.direction?-1*t.count:t.count,speed:t.speed,direction:t.direction?-1:1,trigger:t.trigger,"data-loop":t.loop,mode:"normal",background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o))},example:{viewportWidth:1200,attributes:{id:"wp-block-themeisle-blocks-lottie-2",file:{url:"https://assets8.lottiefiles.com/packages/lf20_kd5rzej5.json"}}}});var Lo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/plugin-cards","title":"Plugin Card","category":"themeisle-blocks","description":"Plugin Card block lets you display plugins data in your blog posts. Powered by Otter.","keywords":["plugin","card","orbitfox"],"textdomain":"otter-blocks","attributes":{"slug":{"type":"string"}},"supports":{"html":false},"editorStyle":"otter-plugin-card-editor","style":"otter-plugin-card-style"}'),No=e=>{let{setAttributes:t,hasError:o,setError:a,className:n}=e;const[r,c]=(0,i.useState)(!1),[d,m]=(0,i.useState)(""),[u,b]=(0,i.useState)({}),[p,g]=(0,i.useState)(null),h=e=>{if(Object.keys(u).length){e.stopPropagation(),e.preventDefault();const t=p?p-1:Object.keys(u).length-1;g(t)}},k=e=>{if(Object.keys(u).length){e.stopPropagation(),e.preventDefault();const t=null===p||p===Object.keys(u).length-1?0:p+1;g(t)}},v=e=>{t({slug:e.slug}),b({})};return(0,i.createElement)(s.Placeholder,{icon:"admin-plugins",label:(0,l.__)("Plugin Card","otter-blocks"),instructions:(0,l.__)("Search for the plugin you want to display.","otter-blocks"),className:n},(0,i.createElement)("div",{className:"o-plugin-cards-search-field"},(0,i.createElement)(s.Dashicon,{icon:"search"}),r&&(0,i.createElement)(s.Spinner,null),(0,i.createElement)(s.TextControl,{type:"text",placeholder:(0,l.__)("Search for plugin…","otter-blocks"),value:d,onChange:m,onKeyDown:e=>{switch(e.keyCode){case be.UP:h(e);break;case be.DOWN:k(e);break;case be.TAB:Object.keys(u).length&&!e.shiftKey&&g(0);break;case be.ENTER:(async e=>{t({slug:""}),c(!0),a(!1);const o=await gt()({path:`otter/v1/plugins?search=${encodeURIComponent(e)}`});if(o.data.errors)return a(!0),c(!1),g(null),void b({});c(!1),g(null),b(o.data.plugins)})(e.target.value)}},onFocus:()=>g(null)}),u&&(0,i.createElement)("div",{tabIndex:"-1",className:"o-plugin-cards-search-results"},Object.keys(u).map((e=>{const t=u[e];let o;return t.icons.svg&&(o=t.icons.svg),t.icons["2x"]&&(o=t.icons["2x"]),t.icons["1x"]&&(o=t.icons["1x"]),t.icons.default&&(o=t.icons.default),(0,i.createElement)("button",{className:"o-plugin-cards-list-item",key:e,onClick:e=>{e.preventDefault(),v(t)},onKeyDown:e=>((e,t)=>{switch(e.keyCode){case be.UP:h(e);break;case be.DOWN:k(e);break;case be.TAB:if(e.shiftKey){0!==p&&h(e);break}if(p===Object.keys(u).length-1)break;k(e);break;case be.ENTER:v(t)}})(e,t)},(0,i.createElement)("img",{src:o}),(0,i.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,I.unescape)(t.name)}}))})))),o&&(0,i.createElement)("div",{className:"o-plugin-cards-error"},(0,i.createElement)("span",null,(0,l.__)("There seems to be an error. Make sure your internet is working properly.","otter-blocks"))))},Ho=e=>{let{setAttributes:t}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(s.ToolbarGroup,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Edit","otter-blocks")},(0,i.createElement)(s.Button,{className:"components-icon-button components-toolbar__control o-plugin-cards-edit-plugin-card",onClick:()=>t({slug:void 0})},(0,i.createElement)(s.Dashicon,{icon:"edit"})))))};const{name:Io}=Lo;(0,a.registerBlockType)(Io,{...Lo,title:(0,l.__)("Plugin Card","otter-blocks"),description:(0,l.__)("Plugin Card block lets you display plugins data in your blog posts. Powered by Otter.","otter-blocks"),icon:r.pluginsIcon,keywords:["plugin","card","orbitfox"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[l,a]=(0,i.useState)(!1),n=(0,c.useBlockProps)();return t.slug?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Ho,{setAttributes:o}),(0,i.createElement)("div",n,(0,i.createElement)(s.Disabled,null,(0,i.createElement)(m(),{block:"themeisle-blocks/plugin-cards",attributes:{...t}})))):(0,i.createElement)("div",n,(0,i.createElement)(No,{attributes:t,setAttributes:o,hasError:l,setError:a}))},save:()=>null,example:{attributes:{slug:"otter-blocks"}}});var Oo=o(7682),Fo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/popup","title":"Popup","category":"themeisle-blocks","description":"Display your content in beautiful popup with many customization options. Powered by Otter.","keywords":["popup","modal","lightbox"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"minWidth":{"type":"number"},"maxWidth":{"type":"number"},"trigger":{"type":"string"},"wait":{"type":"number"},"anchor":{"type":"string"},"scroll":{"type":"number"},"showClose":{"type":"boolean","default":true},"outsideClose":{"type":"boolean","default":true},"anchorClose":{"type":"boolean","default":false},"closeAnchor":{"type":"string"},"recurringClose":{"type":"boolean","default":false},"recurringTime":{"type":"number"},"backgroundColor":{"type":"string"},"closeColor":{"type":"string"},"overlayColor":{"type":"string"},"overlayOpacity":{"type":"number"}},"editorStyle":"otter-popup-editor","style":"otter-popup-style","script":"otter-popup"}'),Ao=o(6755),Go=o(7231),Do=o(2694),$o=o(9084);const Zo=()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Disabled,null,(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Close On Anchor Click","otter-blocks"),checked:!1,onChange:()=>{}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Dismiss for Recurring Visitors","otter-blocks"),checked:!1,onChange:()=>{}})),(0,i.createElement)($o.Z,{notice:(0,i.createElement)(s.ExternalLink,{href:(0,He.Wi)(window.themeisleGutenberg.upgradeLink,"popupblock")},(0,l.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"}));var Wo=e=>{let{attributes:t,setAttributes:o}=e,a=[{label:(0,l.__)("On Load","otter-blocks"),value:"onLoad"},{label:(0,l.__)("On Anchor Click (Pro)","otter-blocks"),value:"onClick",disabled:!0},{label:(0,l.__)("On Scroll (Pro)","otter-blocks"),value:"onScroll",disabled:!0},{label:(0,l.__)("On Exit (Pro)","otter-blocks"),value:"onExit",disabled:!0}];return a=(0,Do.applyFilters)("otter.popupBlock.triggers",a),(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Open Trigger","otter-blocks"),help:!Boolean(window.themeisleGutenberg.hasPro)&&(0,l.__)("You need to have Otter Pro to activate Pro features.","otter-blocks"),options:a,value:t.trigger,onChange:e=>o({trigger:e})}),(void 0===t.trigger||"onLoad"===t.trigger)&&(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Wait Time","otter-blocks"),help:(0,l.__)("How much time to wait before showing the popup. Leave it empty to open instantly","otter-blocks"),min:0,max:100,value:t.wait,onChange:e=>o({wait:Number(e)})}),(0,Do.applyFilters)("otter.popupBlock.controls",(0,i.createElement)((()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Show Close Button","otter-blocks"),checked:t.showClose,onChange:()=>o({showClose:!t.showClose})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Close on Click Outside","otter-blocks"),checked:t.outsideClose,onChange:()=>o({outsideClose:!t.outsideClose})}),!Boolean(window.themeisleGutenberg.hasPro)&&(0,i.createElement)(Zo,null))),null),t,o)),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Style","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Minimum Width","otter-blocks"),step:.1,min:100,max:1e3,value:t.minWidth,allowReset:!0,onChange:e=>o({minWidth:Number(e)})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Maximum Width","otter-blocks"),step:.1,min:100,max:1e3,value:t.maxWidth,allowReset:!0,onChange:e=>o({maxWidth:Number(e)})}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>o({backgroundColor:e})}),t.showClose&&(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Close Button","otter-blocks"),colorValue:t.closeColor,onColorChange:e=>o({closeColor:e})}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Overlay","otter-blocks"),colorValue:t.overlayColor,onColorChange:e=>o({overlayColor:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Overlay Opacity","otter-blocks"),value:t.overlayOpacity,onChange:e=>o({overlayOpacity:Number(e)})})))};const{attributes:Uo}=Fo;const{name:jo}=Fo;(0,a.registerBlockType)(jo,{...Fo,title:(0,l.__)("Popup","otter-blocks"),description:(0,l.__)("Display your content in beautiful popup with many customization options. Powered by Otter.","otter-blocks"),icon:Oo.Z,keywords:["popup","modal","lightbox"],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,i.useEffect)((()=>{const e=(0,y.blockInit)(a,Uo);return()=>e(t.id)}),[]);const[n,r]=(0,i.useState)(!1),d={"--min-width":t.minWidth?t.minWidth+"px":"400px","--max-width":t.maxWidth?t.maxWidth+"px":void 0,"--background-color":t.backgroundColor,"--close-color":t.closeColor,"--overlay-color":t.overlayColor,"--overlay-opacity":t.overlayOpacity?t.overlayOpacity/100:1},m=(0,c.useBlockProps)({id:t.id,style:d});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Wo,{attributes:t,setAttributes:o}),(0,i.createElement)("div",m,(0,i.createElement)(s.Button,{isPrimary:!0,icon:Ao.Z,onClick:()=>r(!0)},(0,l.__)("Edit Popup","otter-blocks")),n&&(0,i.createElement)("div",{className:"otter-popup__modal_wrap"},(0,i.createElement)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay",onClick:()=>r(!1)}),(0,i.createElement)("div",{className:"otter-popup__modal_content"},t.showClose&&(0,i.createElement)("div",{className:"otter-popup__modal_header"},(0,i.createElement)(s.Button,{icon:Go.Z,onClick:()=>r(!1)})),(0,i.createElement)("div",{className:"otter-popup__modal_body"},(0,i.createElement)(c.InnerBlocks,null))))))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,className:"is-front","data-open":t.trigger,"data-dismiss":t.recurringClose?t.recurringTime:"","data-time":void 0===t.trigger||"onLoad"===t.trigger?t.wait||0:"","data-anchor":"onClick"===t.trigger?t.anchor:"","data-offset":"onScroll"===t.trigger?t.scroll:"","data-outside":t.outsideClose?t.outsideClose:"","data-anchorclose":t.anchorClose?t.closeAnchor:""});return(0,i.createElement)("div",o,(0,i.createElement)("div",{className:"otter-popup__modal_wrap"},(0,i.createElement)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay"}),(0,i.createElement)("div",{className:"otter-popup__modal_content"},t.showClose&&(0,i.createElement)("div",{className:"otter-popup__modal_header"},(0,i.createElement)("button",{type:"button",class:"components-button has-icon"},(0,i.createElement)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},(0,i.createElement)("path",{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})))),(0,i.createElement)("div",{className:"otter-popup__modal_body"},(0,i.createElement)(c.InnerBlocks.Content,null)))))},example:{attributes:{}}});var qo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/posts-grid","title":"Posts","category":"themeisle-blocks","description":"Display a list of your most recent posts in a beautiful layout. Powered by Otter.","keywords":["posts","grid","news"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"style":{"type":"string","default":"grid"},"postTypes":{"type":"array","default":[]},"columns":{"type":"number","default":3},"template":{"type":"array","default":["category","title","meta","description"]},"categories":{"type":"array","items":{"type":"object"}},"postsToShow":{"type":"number","default":5},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"},"offset":{"type":"number","default":0},"imageSize":{"type":"string","default":"full"},"imageBoxShadow":{"type":"boolean","default":true},"displayFeaturedImage":{"type":"boolean","default":true},"displayCategory":{"type":"boolean","default":true},"displayTitle":{"type":"boolean","default":true},"titleTag":{"type":"string","default":"h5"},"displayMeta":{"type":"boolean","default":true},"displayDescription":{"type":"boolean","default":true},"excerptLength":{"type":"number","default":100},"displayDate":{"type":"boolean","default":true},"displayAuthor":{"type":"boolean","default":true},"displayComments":{"type":"boolean","default":true},"displayPostCategory":{"type":"boolean","default":false},"displayReadMoreLink":{"type":"boolean","default":false},"cropImage":{"type":"boolean","default":false},"customTitleFontSize":{"type":"number"},"customTitleFontSizeTable":{"type":"number"},"customTitleFontSizeMobile":{"type":"number"},"customDescriptionFontSize":{"type":"number"},"customDescriptionFontSizeTablet":{"type":"number"},"customDescriptionFontSizeMobile":{"type":"number"},"borderRadius":{"type":"number"},"textAlign":{"type":"string"},"verticalAlign":{"type":"string"},"enableFeaturedPost":{"type":"boolean"},"imageWidth":{"type":"number"}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-posts-grid-editor","style":"otter-posts-grid-style"}');const{attributes:Ko}=qo;var Jo=[{attributes:{...Ko,categories:{type:"string"}},supports:{align:["wide","full"],html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:e=>{let{categories:t}=e;return t&&"string"==typeof t},save:()=>null}],Qo=e=>{let{attributes:t,setAttributes:o}=e;const a=c.BlockVerticalAlignmentToolbar;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(a,{label:(0,l.__)("Change vertical alignment","otter-blocks"),value:t.verticalAlign,onChange:e=>o({verticalAlign:e})}))},Yo=o(454),Xo=o.n(Yo),el=o(1286);const tl=(0,el.W6)((()=>(0,i.createElement)("div",{className:"o-sortable-handle",tabIndex:"0"},(0,i.createElement)("span",null)))),ol={image:"displayFeaturedImage",category:"displayCategory",title:"displayTitle",meta:"displayMeta",description:"displayDescription"},ll=e=>{var t,o;let{attributes:a,setAttributes:n,template:r,disabled:c}=e;const[d,m]=(0,i.useState)(!1),u=null==r?void 0:r.startsWith("custom_"),b=null==a||null===(t=a.customMetas)||void 0===t||null===(o=t.filter((e=>{let{id:t}=e;return t===r})))||void 0===o?void 0:o.pop(),p={image:a.displayFeaturedImage,category:a.displayCategory,title:a.displayTitle,meta:a.displayMeta,description:a.displayDescription},k=(0,h.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),v=e=>{const t={...b,...e};n({customMetas:a.customMetas.map((e=>e.id===b.id?t:e))})},y=u?(0,Do.applyFilters)("otter.postsBlock.panelLabel","",b):(0,I.startCase)((0,I.toLower)(r)),_=p[r]||(null==b?void 0:b.display),f=_?"visibility":"hidden";
2
  /* translators: %s Label */
3
+ let w=(0,l.sprintf)((0,l.__)("Display %s","otter-blocks"),y);return _&&(
4
  /* translators: %s Label */
5
+ w=(0,l.sprintf)((0,l.__)("Hide %s","otter-blocks"),y)),(0,i.createElement)("div",{className:g()("o-sortable-item-area",`o-sortable-item-area-${r}`)},(0,i.createElement)("div",{className:g()("o-sortable-item",{disabled:c,hidden:!_,editable:_})},!c&&(0,i.createElement)(tl,null),(0,i.createElement)("div",{className:"o-sortable-label"},y),_&&"category"!==r&&(0,i.createElement)(s.Button,{icon:d?"arrow-up-alt2":"arrow-down-alt2",label:d?(0,l.__)("Close Settings","otter-blocks"):(0,l.__)("Open Settings","otter-blocks"),showTooltip:!0,className:"o-sortable-button",onClick:()=>m(!d)}),(0,i.createElement)(s.Button,{icon:f,label:w,showTooltip:!0,className:"o-sortable-button",onClick:()=>{u?v({display:!b.display}):(e=>{const t=ol[e]||e;n({[t]:!a[t]})})(r),m(!1)}})),_&&"category"!==r&&(0,i.createElement)("div",{className:g()("o-sortable-control-area",{opened:d&&_})},"image"===r&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Image Size","otter-blocks"),value:a.imageSize,options:window.themeisleGutenberg.imageSizes.map((e=>({label:(0,I.startCase)((0,I.toLower)(e)),value:e}))),onChange:e=>n({imageSize:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Crop image to fit","otter-blocks"),checked:a.cropImage,onChange:e=>n({cropImage:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display box shadow","otter-blocks"),checked:a.imageBoxShadow,onChange:e=>n({imageBoxShadow:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:a.borderRadius,onChange:e=>n({borderRadius:e}),step:.1,min:0,max:50,allowReset:!0}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Image Width","otter-blocks"),value:a.imageWidth,onChange:e=>n({imageWidth:e}),step:.1,min:0,max:500,allowReset:!0})),"title"===r&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Title Tag","otter-blocks"),value:a.titleTag||"h5",options:[{label:(0,l.__)("H1","otter-blocks"),value:"h1"},{label:(0,l.__)("H2","otter-blocks"),value:"h2"},{label:(0,l.__)("H3","otter-blocks"),value:"h3"},{label:(0,l.__)("H4","otter-blocks"),value:"h4"},{label:(0,l.__)("H5","otter-blocks"),value:"h5"},{label:(0,l.__)("H6","otter-blocks"),value:"h6"}],onChange:e=>n({titleTag:e})}),(0,i.createElement)(D.Z,{label:(0,l.__)("Font size","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:(()=>{switch(k){case"Desktop":return a.customTitleFontSize;case"Tablet":return a.customTitleFontSizeTablet;case"Mobile":return a.customTitleFontSizeMobile;default:return}})(),onChange:e=>{"Desktop"===k?n({customTitleFontSize:e}):"Tablet"===k?n({customTitleFontSizeTablet:e}):"Mobile"===k&&n({customTitleFontSizeMobile:e})},step:.1,min:0,max:50,allowReset:!0}))),"meta"===r&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display post date","otter-blocks"),checked:a.displayDate,onChange:e=>n({displayDate:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display author","otter-blocks"),checked:a.displayAuthor,onChange:e=>n({displayAuthor:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display comments","otter-blocks"),checked:a.displayComments,onChange:e=>n({displayComments:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display category","otter-blocks"),checked:a.displayPostCategory,onChange:e=>n({displayPostCategory:e})})),"description"===r&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.TextControl,{label:(0,l.__)("Excerpt Limit","otter-blocks"),type:"number",value:a.excerptLength,onChange:e=>n({excerptLength:Number(e)})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Display read more link","otter-blocks"),checked:a.displayReadMoreLink,onChange:e=>n({displayReadMoreLink:e})}),(0,i.createElement)(D.Z,{label:(0,l.__)("Font size","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:(()=>{switch(k){case"Desktop":return a.customDescriptionFontSize;case"Tablet":return a.customDescriptionFontSizeTablet;case"Mobile":return a.customDescriptionFontSizeMobile;default:return}})(),onChange:e=>{"Desktop"===k?n({customDescriptionFontSize:e}):"Tablet"===k?n({customDescriptionFontSizeTablet:e}):"Mobile"===k&&n({customDescriptionFontSizeMobile:e})},step:.1,min:0,max:50,allowReset:!0}))),(0,Do.applyFilters)("otter.postsBlock.controls","",a,n,u,b,v)))},al=(0,el.W8)((e=>{let{attributes:t,setAttributes:o,template:l,disabled:a}=e;return(0,i.createElement)(ll,{attributes:t,setAttributes:o,template:l,disabled:a})})),nl=(0,el.JN)((e=>{var t;let{attributes:o,setAttributes:l}=e;return(0,i.createElement)("div",null,null==o||null===(t=o.template)||void 0===t?void 0:t.filter((e=>{var t,o;return!(null!=e&&e.startsWith("custom_")&&(void 0===(null===(t=window)||void 0===t?void 0:t.acf)||null===(o=window.themeisleGutenberg)||void 0===o||!o.hasPro))})).map(((e,t)=>(0,i.createElement)(al,{key:`item-${e}`,index:t,attributes:o,setAttributes:l,template:e}))))})),rl=()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",null,(0,l.__)("Add custom fields for the posts, using the ACF plugin & Otter Pro.","otter-blocks")),(0,i.createElement)(s.Button,{variant:"secondary",isSecondary:!0,className:"o-conditions__add",disabled:!0,onClick:()=>{}},(0,l.__)("Add Custom Field","otter-blocks")),(0,i.createElement)("br",null),(0,i.createElement)($o.Z,{notice:(0,i.createElement)(s.ExternalLink,{href:(0,He.Wi)(window.themeisleGutenberg.upgradeLink,"customfield")},(0,l.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"}));var il=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:g()("o-sortable",t.style)},(0,i.createElement)(ll,{attributes:t,setAttributes:o,template:"image",disabled:!0}),(0,i.createElement)(nl,{attributes:t,setAttributes:o,onSortEnd:e=>{let{oldIndex:l,newIndex:a}=e;const n=Xo()(t.template,l,a);o({template:n})},useDragHandle:!0,axis:"y",lockAxis:"y"}),(0,Do.applyFilters)("otter.postsBlock.sortableContainer",(0,i.createElement)(rl,null),t,o)))},cl=e=>{let{attributes:t,setAttributes:o,changeStyle:a,categoriesList:n}=e;const{slugs:r}=(0,h.useSelect)((e=>({slugs:e("otter-store").getPostsSlugs()})),[t.postTypes]),d=n.reduce(((e,t)=>({...e,[t.name]:t})),{}),m=t.categories?t.categories.map((e=>{const t=n.find((t=>t.id===Number(e.id)));return{id:e.id,name:(null==t?void 0:t.name)||(null==t?void 0:t.slug)||""}})):[],u="object"==typeof t.categories?1<=t.categories.length?t.categories[0].id:void 0:t.categories;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,i.createElement)(Dt,{value:t.style,options:[{label:(0,l.__)("Grid","otter-blocks"),value:"grid",image:window.themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:(0,l.__)("List","otter-blocks"),value:"list",image:window.themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:a})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Post Types","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.BaseControl,null,(0,l.__)("Select the types of the post. If none is selected, the default WordPress post will be displayed.","otter-blocks")),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Post Type","otter-blocks"),value:t.postTypes[0]||null,onChange:e=>e&&o({postTypes:[e]}),options:r.map((e=>({label:(0,He.__)(e),value:e})))})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},"grid"===t.style&&(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Columns","otter-blocks"),value:t.columns,onChange:e=>{o({columns:e})},min:1,max:5}),(0,i.createElement)(s.QueryControls,{order:t.order,orderBy:t.orderBy,onOrderChange:e=>o({order:e}),onOrderByChange:e=>o({orderBy:e}),numberOfItems:t.postsToShow,onNumberOfItemsChange:e=>o({postsToShow:e}),categorySuggestions:d,selectedCategoryId:u,selectedCategories:m,onCategoryChange:e=>{let t;"object"==typeof e?0<e.length&&(t=e.map((e=>{if("object"==typeof e)return e;const t=n.find((t=>t.name===e));return t?{id:t.id,name:e}:void 0})).filter((e=>void 0!==e))):""!==e&&(t=[{id:e,name:n.find((t=>t.id===Number(e))).name}]),o({categories:t})}}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Offset","otter-blocks"),help:(0,l.__)("Number of post to displace or pass over.","otter-blocks"),type:"number",value:t.offset,min:0,onChange:e=>o({offset:Number(e)})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Enable featured post","otter-blocks"),checked:t.enableFeaturedPost,onChange:e=>o({enableFeaturedPost:e})}),(0,i.createElement)(s.BaseControl,{label:(0,l.__)("Text alignment","otter-blocks")},(0,i.createElement)(re.Z,{value:t.textAlign,options:[{icon:"editor-alignleft",label:(0,l.__)("Left","otter-blocks"),value:"left"},{icon:"editor-aligncenter",label:(0,l.__)("Center","otter-blocks"),value:"center"},{icon:"editor-alignright",label:(0,l.__)("Right","otter-blocks"),value:"right"}],onChange:e=>o({textAlign:e}),showBottomLabels:!0}))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Design & Layout","otter-blocks"),initialOpen:!1},(0,i.createElement)(il,{attributes:t,setAttributes:o})))},sl=e=>{let{id:t,link:o,alt:l,size:a,imgStyle:n}=e;const{featuredImage:r,altText:c}=(0,h.useSelect)((e=>{const o=e("core").getMedia(t);return{featuredImage:o?0<Object.keys(o.media_details.sizes).length&&o.media_details.sizes[a]?o.media_details.sizes[a].source_url:o.source_url:null,altText:o&&o.alt_text?o.alt_text:l}}),[a,t]);return null===r?(0,i.createElement)(i.Fragment,null):(0,i.createElement)("div",{className:"o-posts-grid-post-image"},(0,i.createElement)("a",{href:o},r?(0,i.createElement)("img",{src:r,size:a,alt:c,"data-id":t,style:n}):(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null))))};const dl=e=>{let{attributes:t,element:o,category:l,categoriesList:a}=e;return void 0!==l&&t.displayCategory&&a?(0,i.createElement)("span",{key:o,className:"o-posts-grid-post-category"},l.name):""},ml=e=>{let{attributes:t,element:o,post:l}=e;const a=t.titleTag||"h5";var n;return t.displayTitle?(0,i.createElement)(a,{key:o,className:"o-posts-grid-post-title"},(0,i.createElement)("a",{href:l.link},(0,He.Uo)(null===(n=l.title)||void 0===n?void 0:n.rendered))):""},ul=e=>{let{attributes:t,element:o,post:a,author:n,category:r}=e;return t.displayMeta&&(t.displayDate||t.displayAuthor||t.displayComments||t.displayPostCategory)?(0,i.createElement)("p",{key:o,className:"o-posts-grid-post-meta"},t.displayDate&&
6
  /* translators: %s Date posted */
7
  (0,l.sprintf)((0,l.__)("on %s","otter-blocks"),(0,He.p6)(a.date)),t.displayAuthor&&void 0!==n&&
8
  /* translators: %s Author of the post */
9
+ (0,l.sprintf)((0,l.__)(" by %s","otter-blocks"),n.name),t.displayComments&&(0,l.sprintf)(" - %1$s %2$s","0",(0,l.__)("comments","otter-blocks")),t.displayPostCategory&&void 0!==(null==r?void 0:r.name)&&(0,l.sprintf)((0,l.__)(" - %s","otter-blocks"),r.name)):""},bl=e=>{let{attributes:t,element:o,post:a}=e;var n;return 0<t.excerptLength&&t.displayDescription?(0,i.createElement)("div",{key:o,className:"o-posts-grid-post-description"},(0,i.createElement)("p",null,(null===(n=a.excerpt)||void 0===n?void 0:n.rendered)&&(0,He.Uo)(a.excerpt.rendered).substring(0,t.excerptLength)+"…"),t.displayReadMoreLink&&(0,i.createElement)("a",{href:a.link,className:"o-posts-read-more"},(0,l.__)("Read more","otter-blocks"))):""};var pl=e=>{let{attributes:t,posts:o,categoriesList:l,authors:a}=e;return(0,i.createElement)("div",{className:"grid"===t.style?g()("is-grid",`o-posts-grid-columns-${t.columns}`,{"has-shadow":t.imageBoxShadow,"o-crop-img":t.cropImage}):g()("is-list",{"has-shadow":t.imageBoxShadow,"o-crop-img":t.cropImage})},o.filter((e=>e)).slice(t.enableFeaturedPost?1:0).map((e=>{var o,n;const r=l&&0<(null==e||null===(o=e.categories)||void 0===o?void 0:o.length)?l.find((t=>t.id===e.categories[0])):void 0,c=a&&e.author?a.find((t=>t.id===e.author)):void 0;return(0,i.createElement)("div",{key:e.link,className:"o-posts-grid-post-blog o-posts-grid-post-plain"},(0,i.createElement)("div",{className:g()("o-posts-grid-post")},0!==e.featured_media&&t.displayFeaturedImage&&(0,i.createElement)(sl,{id:e.featured_media,link:e.link,alt:null===(n=e.title)||void 0===n?void 0:n.rendered,size:t.imageSize,imgStyle:{borderRadius:void 0!==t.borderRadius?t.borderRadius+"px":void 0}}),(0,i.createElement)("div",{className:g()("o-posts-grid-post-body",{"is-full":!t.displayFeaturedImage})},t.template.map((o=>{switch(o){case"category":return(0,i.createElement)(dl,{key:o,attributes:t,element:o,category:r,categoriesList:l});case"title":return(0,i.createElement)(ml,{key:o,attributes:t,element:o,post:e});case"meta":return(0,i.createElement)(ul,{key:o,attributes:t,element:o,post:e,author:c,category:r});case"description":return(0,i.createElement)(bl,{key:o,attributes:t,element:o,post:e});default:return(0,Do.applyFilters)("otter.postsBlock.templateLoop","",o,t)}})))))})))};const gl={posts:{slugs:[],usedSlugs:[]}};(0,h.registerGenericStore)("otter-store",(()=>{let e=()=>{};const t=gl,o={getPostsSlugs(){return t.posts.slugs},getPostsUsedSlugs(){return t.posts.usedSlugs}},l={setPostsSlugs(o){t.posts.slugs=o,e()},setPostsUsedSlugs(o){t.posts.usedSlugs.push(...o),e()},setOnlyOneSlug(o){t.posts.usedSlugs=[o],e()},removePostsUsedSlugs(o){t.posts.usedSlugs=t.posts.usedSlugs.filter((e=>!o.includes(e))),e()}};return{getSelectors(){return o},getActions(){return l},subscribe(t){e=t}}})());var hl=e=>{var t;let{post:o,attributes:l,author:a,category:n,categoriesList:r}=e;return o?(0,i.createElement)("div",{className:g()("o-featured-post",{"has-shadow":l.imageBoxShadow})},l.displayFeaturedImage&&(0,i.createElement)(sl,{id:o.featured_media,link:o.link,alt:null===(t=o.title)||void 0===t?void 0:t.rendered,imgStyle:{borderRadius:void 0!==l.borderRadius?l.borderRadius+"px":void 0}}),(0,i.createElement)("div",{className:"o-posts-grid-post-body"},l.template.map((e=>{switch(e){case"category":return(0,i.createElement)(dl,{attributes:l,element:e,category:n,categoriesList:r});case"title":return(0,i.createElement)(ml,{attributes:l,element:e,post:o});case"meta":return(0,i.createElement)(ul,{attributes:l,element:e,post:o,author:a,category:n});case"description":return(0,i.createElement)(bl,{attributes:l,element:e,post:o});default:return(0,Do.applyFilters)("otter.postsBlock.templateLoop","",e,l)}})))):""};const{attributes:kl}=qo;const{name:vl}=qo;(0,a.registerBlockType)(vl,{...qo,title:(0,l.__)("Posts","otter-blocks"),description:(0,l.__)("Display a list of your most recent posts in a beautiful layout. Powered by Otter.","otter-blocks"),icon:r.postsIcon,keywords:["posts","grid","news"],deprecated:Jo,edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,i.useEffect)((()=>{const e=(0,y.blockInit)(a,kl);return()=>e(t.id)}),[t.id]);const[n,r]=(0,i.useState)([]),{posts:d,categoriesList:m,authors:u}=(0,h.useSelect)((e=>{const o=t.categories&&0<t.categories.length?t.categories.map((e=>e.id)):[],l=(0,I.pickBy)({categories:o,order:t.order,orderby:t.orderBy,per_page:t.postsToShow,offset:t.offset},(e=>!(0,I.isUndefined)(e))),a=t.postTypes;return{posts:0<a.length?a.map((t=>e("core").getEntityRecords("postType",t,l))).flat():e("core").getEntityRecords("postType","post",l),categoriesList:e("core").getEntityRecords("taxonomy","category",{per_page:100}),authors:e("core").getUsers({who:"authors"})}}),[t.categories,t.order,t.orderBy,t.postsToShow,t.offset,t.postTypes]),b=e=>{o({style:e})};(0,i.useEffect)((()=>{(async()=>{r(await(0,He.R3)())})()}),[]),(0,i.useEffect)((()=>{(0,h.dispatch)("otter-store").setPostsSlugs(n)}),[n]);const p={"--img-width":`${t.imageWidth}px`,"--img-border-radius":t.borderRadius&&`${t.borderRadius}px;`,"--vert-align":(0,He.Vg)(t.verticalAlign),"--text-align":t.textAlign},[g,k]=(0,y.useCSSNode)();(0,i.useEffect)((()=>{k([`{\n\t\t\t\t${t.customTitleFontSize&&`--title-text-size: ${t.customTitleFontSize}px;`}\n\t\t\t\t${t.customDescriptionFontSize&&`--description-text-size: ${t.customDescriptionFontSize}px;`}\n\t\t\t}`,`{\n\t\t\t\t${t.customTitleFontSizeTablet&&`--title-text-size: ${t.customTitleFontSizeTablet}px;`}\n\t\t\t\t${t.customDescriptionFontSizeTablet&&`--description-text-size: ${t.customDescriptionFontSizeTablet}px;`}\n\t\t\t}`,`{\n\t\t\t\t${t.customTitleFontSizeMobile&&`--title-text-size: ${t.customTitleFontSizeMobile}px;`}\n\t\t\t\t${t.customDescriptionFontSizeMobile&&`--description-text-size: ${t.customDescriptionFontSizeMobile}px;`}\n\t\t\t}`],["@media ( min-width: 960px )","@media ( min-width: 600px ) and ( max-width: 960px )","@media ( max-width: 600px )"])}),[t.customTitleFontSize,t.customTitleFontSize,t.customDescriptionFontSize,t.customDescriptionFontSize,t.customTitleFontSizeTablet,t.customTitleFontSizeTablet,t.customDescriptionFontSizeTablet,t.customDescriptionFontSizeTablet,t.customTitleFontSizeMobile,t.customTitleFontSizeMobile,t.customDescriptionFontSizeMobile,t.customDescriptionFontSizeMobile]);const v=(0,c.useBlockProps)({className:g});return d&&m&&u?0===d.length?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",v,(0,i.createElement)(s.Placeholder,null,(0,l.__)("No Posts","otter-blocks"))),m&&t.offset||n.length?(0,i.createElement)(cl,{attributes:t,setAttributes:o,changeStyle:b,categoriesList:m}):null):(0,i.createElement)(i.Fragment,null,(0,i.createElement)($t,{label:(0,l.__)("Block Styles","otter-blocks"),value:t.style,options:[{label:(0,l.__)("Grid","otter-blocks"),value:"grid",image:window.themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:(0,l.__)("List","otter-blocks"),value:"list",image:window.themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:b}),(0,i.createElement)(cl,{attributes:t,setAttributes:o,changeStyle:b,categoriesList:m,posts:d}),(0,i.createElement)(Qo,{attributes:t,setAttributes:o}),(0,i.createElement)("div",(0,H.Z)({},v,{style:p}),(0,i.createElement)(s.Disabled,null,t.enableFeaturedPost&&(0,i.createElement)(hl,{attributes:t,post:null==d?void 0:d[0],category:m[0],categoriesList:m,author:u[0]}),(0,i.createElement)(pl,{attributes:t,posts:d,categoriesList:m,authors:u})))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",v,(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null),(0,l.__)("Loading Posts","otter-blocks"))),m&&t.offset?(0,i.createElement)(cl,{attributes:t,setAttributes:o,changeStyle:b,categoriesList:m}):null)},save:()=>null,example:{attributes:{}}});var yl=JSON.parse('{"kQ":"\x3c!-- wp:themeisle-blocks/advanced-columns {\\"id\\":\\"wp-block-themeisle-blocks-advanced-columns-e0e1ab2e\\",\\"columns\\":3,\\"layout\\":\\"equal\\",\\"layoutMobile\\":\\"collapsedRows\\",\\"padding\\":{\\"top\\":\\"80px\\",\\"bottom\\":\\"80px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingTablet\\":{\\"top\\":\\"40px\\",\\"bottom\\":\\"40px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\"},\\"columnsWidth\\":1170,\\"horizontalAlign\\":\\"center\\",\\"verticalAlign\\":\\"flex-start\\",\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"backgroundOverlayPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"columnsHTMLTag\\":\\"section\\",\\"align\\":\\"full\\"} --\x3e\\n<section id=\\"wp-block-themeisle-blocks-advanced-columns-e0e1ab2e\\" class=\\"wp-block-themeisle-blocks-advanced-columns alignfull has-3-columns has-desktop-equal-layout has-tablet-equal-layout has-mobile-collapsedRows-layout has-vertical-flex-start\\"><div class=\\"wp-block-themeisle-blocks-advanced-columns-overlay\\"></div><div class=\\"innerblocks-wrap\\">\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-43e17023\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-43e17023\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\">Essential</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-7d521980\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-7d521980\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-7d521980\\"><strong>$59</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-ee4f525b\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-ee4f525b\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-ee4f525b\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-1806e8e7\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-1806e8e7\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-26b966e4\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-26b966e4\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts &amp; Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-4aebde54\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-4aebde54\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-64264549\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-64264549\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-2489d76c\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-2489d76c\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-e30ccf77\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-e30ccf77\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-e30ccf77\\">Business</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\"><strong>$129</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-fe18de7e\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-fe18de7e\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-fe18de7e\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-fb8b7e9c\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-fb8b7e9c\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-78a49dfc\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-78a49dfc\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts &amp; Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-f341b063\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-f341b063\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-8216d9b3\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-8216d9b3\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-09158d16\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-09158d16\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-b3766bd8\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-b3766bd8\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-b3766bd8\\">VIP</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-e601353c\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-e601353c\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-e601353c\\"><strong>$199</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-39d2e261\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-39d2e261\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-39d2e261\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-2c744428\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-2c744428\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-b78d20f0\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-b78d20f0\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts &amp; Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-14fe631b\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-14fe631b\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-0ce7030d\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-0ce7030d\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e</div></section>\\n\x3c!-- /wp:themeisle-blocks/advanced-columns --\x3e"}');const{getBlockType:_l}=(0,h.select)("core/blocks"),fl=()=>{const e=setInterval((()=>{if(void 0===_l("themeisle-blocks/advanced-columns"))return fl();const t=(0,a.parse)(yl.kQ);(0,a.registerBlockVariation)("themeisle-blocks/advanced-columns",{name:"themeisle-blocks/section-pricing",title:(0,l.__)("Pricing Section","otter-blocks"),icon:r.pricingIcon,scope:"inserter",attributes:t[0].attributes,innerBlocks:t[0].innerBlocks,example:{attributes:t[0].attributes,innerBlocks:t[0].innerBlocks}}),clearInterval(e)}),2e3)};fl();var wl=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/progress-bar","title":"Progress Bar","category":"themeisle-blocks","description":"Show your progress with a beautiful Progress Bar block. Powered by Otter.","keywords":["progress","bar","skills"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string","default":"Skill"},"percentage":{"type":"number","default":50},"duration":{"type":"number","default":2},"titleStyle":{"type":"string","default":"default"},"percentagePosition":{"type":"string","default":"default"},"height":{"type":"number","default":30},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"barBackgroundColor":{"type":"string"},"titleColor":{"type":"string"},"percentageColor":{"type":"string"},"titleFontSize":{"type":"string"}},"editorStyle":"otter-progress-bar-editor","style":"otter-progress-bar-style","script":"otter-progress-bar"}');const Cl=[{name:(0,l.__)("Small","otter-blocks"),size:"0.875em",slug:"small"},{name:(0,l.__)("Medium","otter-blocks"),size:"1em",slug:"medium"},{name:(0,l.__)("Large","otter-blocks"),size:"1.125em",slug:"large"},{name:(0,l.__)("XL","otter-blocks"),size:"1.25em",slug:"xl"}];var El=e=>{let{attributes:t,setAttributes:o,onHeightChange:a,heightMode:n,setHeightMode:r}=e;return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),value:t.title,onChange:e=>{o({title:e})}}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Percentage","otter-blocks"),help:(0,l.__)("The value of the progress bar.","otter-blocks"),value:t.percentage,onChange:e=>{void 0!==e&&(e=(0,I.clamp)(e,0,100),o({percentage:e}))},min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Duration","otter-blocks"),help:(0,l.__)("The duration of the animation.","otter-blocks"),value:t.duration,onChange:e=>{void 0!==e&&(e=(0,I.clamp)(e,0,3),o({duration:e}))},min:0,max:3,step:.1})),(0,i.createElement)(c.PanelColorSettings,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:t.titleColor,onChange:e=>o({titleColor:e}),label:(0,l.__)("Title","otter-blocks")},{value:t.barBackgroundColor,onChange:e=>o({barBackgroundColor:e}),label:(0,l.__)("Progress","otter-blocks")},{value:t.percentageColor,onChange:e=>o({percentageColor:e}),label:(0,l.__)("Percentage","otter-blocks")},{value:t.backgroundColor,onChange:e=>o({backgroundColor:e}),label:(0,l.__)("Background","otter-blocks")}]}),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Style","otter-blocks"),initialOpen:!1},30<=t.height&&(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Title Style","otter-blocks"),value:t.titleStyle,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Highlight","otter-blocks"),value:"highlight"},{label:(0,l.__)("Outer","otter-blocks"),value:"outer"}],onChange:e=>{o({titleStyle:e})}}),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Show Percentage","otter-blocks"),value:t.percentagePosition,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Append","otter-blocks"),value:"append"},{label:(0,l.__)("Tooltip","otter-blocks"),value:"tooltip"},{label:(0,l.__)("Outer","otter-blocks"),value:"outer"},{label:(0,l.__)("Hide","otter-blocks"),value:"hide"}],onChange:e=>{n.isAutomatic&&(n.percentagePosition=e,r({...n})),o({percentagePosition:e})}}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("The height of the progress bar.","otter-blocks"),value:t.height,onChange:a,step:.1,min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),help:(0,l.__)("Round the corners of the progress bar.","otter-blocks"),value:t.borderRadius,onChange:e=>{o({borderRadius:e})},step:.1,initialPosition:5,min:0,max:35}),("outer"===t.titleStyle||"tooltip"===t.percentagePosition&&"outer"===t.percentagePosition)&&(0,i.createElement)(s.BaseControl,{label:(0,l.__)("Outer Text Font Size","otter-blocks")},(0,i.createElement)(s.FontSizePicker,{fontSizes:Cl,withReset:!0,value:t.titleFontSize,onChange:e=>o({titleFontSize:e})}))))};const{attributes:xl}=wl;const Tl={to:[{type:"block",blocks:["themeisle-blocks/circle-counter"],transform:e=>{const t=(0,I.omit)(e,["titleStyle","percentagePosition","height","borderRadius","barBackgroundColor","percentageColor"]);return(0,a.createBlock)("themeisle-blocks/circle-counter",{...t,progressColor:e.barBackgroundColor,height:(0,I.clamp)(4*e.height,0,240),titleStyle:"default"})}}]};var Sl=Tl;const{name:Ml}=wl;(0,a.registerBlockType)(Ml,{...wl,title:(0,l.__)("Progress Bar","otter-blocks"),description:(0,l.__)("Show your progress with a beautiful Progress Bar block. Powered by Otter.","otter-blocks"),icon:"minus",keywords:["progress","bar","skills"],transforms:Sl,edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a,toggleSelection:n}=e;(0,i.useEffect)((()=>{const e=(0,y.blockInit)(a,xl);return()=>e(t.id)}),[t.id]);const r=(0,i.useRef)(null),[d,m]=(0,i.useState)(!1),[u,b]=(0,i.useState)({isAutomatic:!1,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),p=(0,i.useRef)(null);(0,i.useEffect)((()=>{let e=null;if(p.current)return m(!1),e=setTimeout((()=>m(!0)),1e3*t.duration),p.current.animate({width:`${t.percentage}%`},{duration:1e3*t.duration,easing:"linear",fill:"forwards"}),()=>{clearTimeout(e)}}),[t.percentage,t.duration]);const h={"--title-color":t.titleColor,"--percentage-color":t.percentageColor,"--percentage-color-outer":t.percentageColor,"--percentage-color-tooltip":t.percentageColor,"--percentage-color-append":t.percentageColor,"--background-color":t.backgroundColor,"--border-radius":void 0!==t.borderRadius&&t.borderRadius+"px","--height":void 0!==t.height&&t.height+"px","--bar-background":t.barBackgroundColor,"--title-font-size":t.titleFontSize},k=e=>{30>e?(u.isAutomatic||b({isAutomatic:!0,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),o({height:e,titleStyle:"outer",percentagePosition:"append"===t.percentagePosition||"default"===t.percentagePosition?"outer":t.percentagePosition})):(u.isAutomatic&&b({isAutomatic:!1}),o({titleStyle:u.isAutomatic?u.titleStyle:t.titleStyle,percentagePosition:u.isAutomatic?u.percentagePosition:t.percentagePosition,height:e}))},v=(0,c.useBlockProps)({id:t.id,className:g()({"has-tooltip":"tooltip"===t.percentagePosition}),style:h});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(El,{attributes:t,setAttributes:o,onHeightChange:k,heightMode:u,setHeightMode:b}),(0,i.createElement)("div",v,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,i.createElement)(c.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-progress-bar__outer__title",value:t.title,onChange:e=>o({title:e})}),"outer"===t.percentagePosition&&d&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer__value wp-block-themeisle-blocks-progress-bar__number"},`${t.percentage}%`)),(0,i.createElement)(s.ResizableBox,{size:{height:t.height},minHeight:5,maxHeight:100,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:l,onResizeStop:(e,o,l,a)=>{k(parseInt(t.height+a.height,10)),n(!0)},onResizeStart:()=>{n(!1)}},(0,i.createElement)("div",{ref:r,className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,i.createElement)("div",{className:g()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,i.createElement)(c.RichText,{tagName:"span",allowedFormats:[],value:t.title,onChange:e=>o({title:e})})),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar show",ref:p},"tooltip"===t.percentagePosition&&d&&(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip show"},`${t.percentage}%`,(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&d&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append show"},`${t.percentage}%`)),"default"===t.percentagePosition&&d&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress"},`${t.percentage}%`)))))},save:e=>{let{attributes:t}=e;const o=c.useBlockProps.save({id:t.id,className:g()({"has-tooltip":"tooltip"===t.percentagePosition}),"data-percent":t.percentage,"data-duration":t.duration});return(0,i.createElement)("div",o,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__outer__title"},t.title),"outer"===t.percentagePosition&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer__value wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,i.createElement)("div",{className:g()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,i.createElement)("span",null,t.title)),(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar"},"tooltip"===t.percentagePosition&&(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip"},(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__number"},t.percentage),(0,i.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),"default"===t.percentagePosition&&(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__number"},`${t.percentage}%`)))},example:{}});var Bl=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/review","title":"Product Review","category":"themeisle-blocks","description":"Turn your posts into smart reviews with ratings and generate leads with a performing review block. Powered by Otter.","keywords":["product","review","stars"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string"},"currency":{"type":"string","default":"USD"},"price":{"type":"number"},"discounted":{"type":"number"},"image":{"type":"object"},"description":{"type":"string"},"features":{"type":"array","default":[{"title":"Stability","rating":9},{"title":"Ease of Use","rating":4},{"title":"Look & Feel","rating":9},{"title":"Price","rating":7}]},"pros":{"type":"array","default":["Easy to use","Good price","Sturdy build and ergonomics"]},"cons":{"type":"array","default":["Incompatible with old versions","Hard to assemble","Bad color combination"]},"links":{"type":"array","default":[{"label":"Buy on Amazon","href":"","isSponsored":false},{"label":"Buy on eBay","href":"","isSponsored":false}]},"primaryColor":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"buttonTextColor":{"type":"string"},"isSynced":{"type":"array"}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"single-column","label":"Single Column"}],"supports":{"html":false},"editorStyle":"otter-review-editor","style":"otter-review-style"}'),zl=o(1463),Pl=o.n(zl);const Rl=e=>{let{title:t,remove:o,children:a}=e;const[n,r]=(0,i.useState)(!1);return(0,i.createElement)("div",{className:"o-review__inspector_panel_item"},(0,i.createElement)("div",{className:"o-review__inspector_panel_item__header"},(0,i.createElement)(s.Button,{className:"o-review__inspector_panel_item__title",onClick:()=>r(!n)},t),(0,i.createElement)(s.Button,{icon:"no-alt",label:(0,l.__)("Remove","otter-blocks"),showTooltip:!0,className:"o-review__inspector_panel_item__arrow",onClick:o})),n&&(0,i.createElement)("div",{className:"o-review__inspector_panel_item__content"},a))};var Vl=e=>{var t,o,a,n,r;let{attributes:d,setAttributes:m,getValue:u,productAttributes:b}=e;const p=(e,t)=>{const o=[...d.features];o[e]={...o[e],...t},m({features:o})},g=(e,t)=>{const o=[...d.links];o[e]={...o[e],...t},m({links:o})},h=e=>{let t=[...d.links];t=t.filter(((t,o)=>o!==e)),m({links:t})};return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Product Details","otter-blocks")},d.product&&(0,i.createElement)(s.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice"},(0,l.__)("WooCommerce product synchronization is active. Some options might be disabled.","otter-blocks")),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Product Name","otter-blocks"),type:"text",placeholder:(0,l.__)("Name of your product…","otter-blocks"),value:(null==b?void 0:b.title)||d.title,disabled:d.product,onChange:e=>m({title:e})}),(0,i.createElement)(s.BaseControl,null,(0,i.createElement)(s.TextControl,{label:(0,l.__)("Currency","otter-blocks"),type:"text",placeholder:(0,l.__)("Currency code, like USD or EUR.","otter-blocks"),value:(null==b?void 0:b.currency)||d.currency,disabled:d.product,onChange:e=>m({currency:e})}),(0,l.__)("Currency code in three digit ISO 4217 code.","otter-blocks")+" ",(0,i.createElement)(s.ExternalLink,{href:"https://en.wikipedia.org/wiki/ISO_4217#Active_codes"},(0,l.__)("List of ISO 4217 codes.","otter-blocks"))),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Price","otter-blocks"),type:"number",value:(null==b?void 0:b.price)||d.price,disabled:d.product,onChange:e=>m({price:""!==e?Number(e):void 0})}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Discounted Price","otter-blocks"),type:"number",value:(null==b?void 0:b.discounted)||d.discounted,disabled:d.product,onChange:e=>m({discounted:""!==e?Number(e):void 0})}),d.image||null!=b&&b.image?(0,i.createElement)(s.BaseControl,{className:"o-review__inspector_image"},(0,i.createElement)("img",{src:(null==b||null===(t=b.image)||void 0===t?void 0:t.url)||d.image.url,alt:(null==b||null===(o=b.image)||void 0===o?void 0:o.url)||d.image.alt}),(0,i.createElement)(s.Button,{isSecondary:!0,onClick:()=>m({image:void 0}),disabled:d.product},(0,l.__)("Remove image","otter-blocks"))):(0,i.createElement)(c.MediaPlaceholder,{labels:{title:(0,l.__)("Product Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:d.image,onSelect:e=>m({image:(0,I.pick)(e,["id","alt","url"])})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Product Features","otter-blocks"),initialOpen:!1},0<d.features.length&&d.features.map(((e,t)=>(0,i.createElement)(Rl,{key:t,title:e.title||(0,l.__)("Feature","otter-blocks"),remove:()=>(e=>{let t=[...d.features];t=t.filter(((t,o)=>o!==e)),m({features:t})})(t)},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("Feature title","otter-blocks"),value:e.title,onChange:e=>p(t,{title:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Rating","otter-blocks"),value:e.rating,onChange:e=>p(t,{rating:Number(e)}),step:.1,min:1,max:10})))),(0,i.createElement)(s.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...d.features];e.push({title:(0,l.__)("Feature","otter-blocks"),rating:9}),m({features:e})}},(0,l.__)("Add Feature","otter-blocks"))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Pros","otter-blocks"),initialOpen:!1},0<d.pros.length&&d.pros.map(((e,t)=>(0,i.createElement)(Rl,{key:t,title:e||(0,l.__)("Pro","otter-blocks"),remove:()=>(e=>{let t=[...d.pros];t=t.filter(((t,o)=>o!==e)),m({pros:t})})(t)},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("Why do you like the product?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...d.pros];o[e]=t,m({pros:o})})(t,e)})))),(0,i.createElement)(s.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...d.pros];e.push(""),m({pros:e})}},(0,l.__)("Add Item","otter-blocks"))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Cons","otter-blocks"),initialOpen:!1},0<d.cons.length&&d.cons.map(((e,t)=>(0,i.createElement)(Rl,{key:t,title:e||(0,l.__)("Con","otter-blocks"),remove:()=>(e=>{let t=[...d.cons];t=t.filter(((t,o)=>o!==e)),m({cons:t})})(t)},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("What can be improved?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...d.cons];o[e]=t,m({cons:o})})(t,e)})))),(0,i.createElement)(s.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...d.cons];e.push(""),m({cons:e})}},(0,l.__)("Add Item","otter-blocks"))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Links","otter-blocks"),initialOpen:!1},d.product&&(0,i.createElement)(s.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice"},(0,l.__)("WooCommerce product synchronization is active. Some options might be disabled.","otter-blocks")),0<(null==b||null===(a=b.links)||void 0===a?void 0:a.length)&&(null==b||null===(n=b.links)||void 0===n?void 0:n.map(((e,t)=>(0,i.createElement)(Rl,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>h(t)},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),disabled:d.product,value:e.label}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,disabled:d.product}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,disabled:d.product}))))),!(0<(null==b||null===(r=b.links)||void 0===r?void 0:r.length))&&(0,i.createElement)(i.Fragment,null,0<d.links.length&&d.links.map(((e,t)=>(0,i.createElement)(Rl,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>h(t)},(0,i.createElement)(s.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,onChange:e=>g(t,{label:e})}),(0,i.createElement)(s.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,onChange:e=>g(t,{href:e})}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,onChange:()=>g(t,{isSponsored:!e.isSponsored})})))),(0,i.createElement)(s.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...d.links];e.push({label:(0,l.__)("Buy Now","otter-blocks"),href:""}),m({links:e})}},(0,l.__)("Add Links","otter-blocks")))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,i.createElement)(k,{field:"primaryColor",isSynced:d.isSynced,setAttributes:m},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Primary","otter-blocks"),colorValue:u("primaryColor"),onColorChange:e=>m({primaryColor:e})})),(0,i.createElement)(k,{field:"backgroundColor",isSynced:d.isSynced,setAttributes:m},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:u("backgroundColor"),onColorChange:e=>m({backgroundColor:e})})),(0,i.createElement)(c.ContrastChecker,{textColor:u("primaryColor"),backgroundColor:u("backgroundColor")}),(0,i.createElement)(k,{field:"textColor",isSynced:d.isSynced,setAttributes:m},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Text","otter-blocks"),colorValue:u("textColor"),onColorChange:e=>m({textColor:e})})),(0,i.createElement)(k,{field:"buttonTextColor",isSynced:d.isSynced,setAttributes:m},(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Button Text","otter-blocks"),colorValue:u("buttonTextColor"),onColorChange:e=>m({buttonTextColor:e})}))),!Boolean(window.themeisleGutenberg.hasPro)&&(0,i.createElement)(s.PanelBody,{title:(0,l.__)("More Features","otter-blocks"),initialOpen:!1},(0,i.createElement)($o.Z,{notice:(0,i.createElement)(s.ExternalLink,{href:(0,He.Wi)(window.themeisleGutenberg.upgradeLink,"reviewblock")},(0,l.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"})))};const{attributes:Ll}=Bl;const{name:Nl,attributes:Hl}=Bl;window.themeisleGutenberg.defaultReviewAttributes=Hl,(0,a.registerBlockType)(Nl,{...Bl,title:(0,l.__)("Product Review","otter-blocks"),description:(0,l.__)("Turn your posts into smart reviews with ratings and generate leads with a performing review block. Powered by Otter.","otter-blocks"),icon:r.faIcon,keywords:["product","review","stars"],styles:[{name:"default",label:(0,l.__)("Default","otter-blocks"),isDefault:!0},{name:"single-column",label:(0,l.__)("Single Column","otter-blocks")}],edit:e=>{var t,o,a,n,d;let{name:m,attributes:u,setAttributes:b,clientId:p,isSelected:h,status:k="isInactive",productAttributes:v={}}=e;(0,i.useEffect)((()=>{const e=(0,y.blockInit)(p,Ll);return()=>e(u.id)}),[u.id]);const _=e=>(0,y.getDefaultValueByField)({name:m,field:e,defaultAttributes:Ll,attributes:u}),f=(u.features.reduce(((e,t)=>e+t.rating),0)/u.features.length).toFixed(1),w=[];for(let e=0;10>e;e++)w.push((0,i.createElement)(r.StarFilled,{key:e,className:g()({low:3>=Math.round(f)&&e<Math.round(f),medium:3<Math.round(f)&&8>Math.round(f)&&e<Math.round(f),high:7<Math.round(f)&&10>=Math.round(f)&&e<Math.round(f)})}));const C={"--background-color":_("backgroundColor"),"--primary-color":_("primaryColor"),"--text-color":_("textColor"),"--button-text-color":_("buttonTextColor")},E="object"==typeof k&&null!==k&&k.isError||"isLoading"===k;let x=(0,c.useBlockProps)({id:u.id,className:E&&"is-placeholder",style:C});return"isLoading"===k?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Vl,{attributes:u,setAttributes:b,getValue:_,productAttributes:v}),(0,i.createElement)("div",x,(0,i.createElement)(s.Placeholder,null,(0,i.createElement)(s.Spinner,null)))):"object"==typeof k&&null!==k&&k.isError?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Vl,{attributes:u,setAttributes:b,getValue:_,productAttributes:v}),(0,i.createElement)("div",x,(0,i.createElement)(s.Placeholder,{instructions:k.message}))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Vl,{attributes:u,setAttributes:b,getValue:_,productAttributes:v}),(0,i.createElement)("div",x,(0,i.createElement)("div",{className:"o-review__header"},null!=v&&v.title?(0,i.createElement)(c.RichText.Content,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:null==v?void 0:v.title,tagName:"h3"}):(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:u.title,onChange:e=>b({title:e}),tagName:"h3"}),(0,i.createElement)("div",{className:"o-review__header_meta"},(0,i.createElement)("div",{className:"o-review__header_ratings"},w,(0,i.createElement)("span",null,
10
  /** translators: %s Rating score. */
11
+ (0,l.sprintf)((0,l.__)("%f out of 10","otter-blocks"),Math.abs(f)||0))),(0,i.createElement)("span",{className:"o-review__header_price"},((null==v?void 0:v.price)&&(null==v?void 0:v.discounted)||u.price&&u.discounted)&&(0,i.createElement)("del",null,(null!==(t=Pl()((null==v?void 0:v.currency)||u.currency))&&void 0!==t?t:"$")+""+((null==v?void 0:v.price)||u.price)||0),(u.price||u.discounted||(null==v?void 0:v.price)||(null==v?void 0:v.discounted))&&(null!==(o=Pl()((null==v?void 0:v.currency)||u.currency))&&void 0!==o?o:"$")+""+(null!=v&&v.discounted||u.discounted?(null==v?void 0:v.discounted)||u.discounted:(null==v?void 0:v.price)||u.price)))),(0,i.createElement)("div",{className:"o-review__left"},(0,i.createElement)("div",{className:g()("o-review__left_details",{"is-single":!u.image||!h&&!u.description})},null!=v&&v.image?(0,i.createElement)("img",{src:null==v||null===(a=v.image)||void 0===a?void 0:a.url,alt:null==v||null===(n=v.image)||void 0===n?void 0:n.alt}):u.image&&(0,i.createElement)("img",{src:u.image.url,alt:u.image.alt}),!h&&!u.description||null!=v&&v.description?(0,i.createElement)(c.RichText.Content,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:null==v?void 0:v.description,tagName:"p"}):(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:u.description,onChange:e=>b({description:e}),tagName:"p"})),(0,i.createElement)("div",{className:"o-review__left_features"},0<u.features.length&&u.features.map(((e,t)=>{const o=[];for(let t=0;10>t;t++)o.push((0,i.createElement)(r.StarFilled,{key:t,className:g()({low:3>=Math.round(e.rating)&&t<Math.round(e.rating),medium:3<Math.round(e.rating)&&8>Math.round(e.rating)&&t<Math.round(e.rating),high:7<Math.round(e.rating)&&10>=Math.round(e.rating)&&t<Math.round(e.rating)})}));return(0,i.createElement)("div",{className:"o-review__left_feature",key:t},(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Feature title","otter-blocks"),value:e.title,className:"o-review__left_feature_title",onChange:e=>((e,t)=>{const o=[...u.features];o[e]={...o[e],...t},b({features:o})})(t,{title:e}),tagName:"span"}),(0,i.createElement)("div",{className:"o-review__left_feature_ratings"},o,(0,i.createElement)("span",null,e.rating.toFixed(1),"/10")))})))),(0,i.createElement)("div",{className:"o-review__right"},0<u.pros.length&&(0,i.createElement)("div",{className:"o-review__right_pros"},(0,i.createElement)("h4",null,(0,l.__)("Pros","otter-blocks")),u.pros.map(((e,t)=>(0,i.createElement)("div",{className:"o-review__right_pros_item",key:t},r.check,(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("Why do you like the product?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...u.pros];o[e]=t,b({pros:o})})(t,e),tagName:"p"}))))),0<u.cons.length&&(0,i.createElement)("div",{className:"o-review__right_cons"},(0,i.createElement)("h4",null,(0,l.__)("Cons","otter-blocks")),u.cons.map(((e,t)=>(0,i.createElement)("div",{className:"o-review__right_cons_item",key:t},r.close,(0,i.createElement)(c.RichText,{placeholder:(0,l.__)("What can be improved?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...u.cons];o[e]=t,b({cons:o})})(t,e),tagName:"p"})))))),(0<(null==v||null===(d=v.links)||void 0===d?void 0:d.length)||0<u.links.length)&&(0,i.createElement)("div",{className:"o-review__footer"},(0,i.createElement)("span",{className:"o-review__footer_label"},(0,l.__)("Buy this product","otter-blocks")),(0,i.createElement)("div",{className:"o-review__footer_buttons"},((null==v?void 0:v.links)||u.links).map(((e,t)=>(0,i.createElement)(c.RichText,{key:t,placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,disabled:0<(null==v?void 0:v.links),onChange:e=>((e,t)=>{const o=[...u.links];o[e]={...o[e],...t},b({links:o})})(t,{label:e}),tagName:"span"})))))))},save:()=>null,example:{attributes:{}}});var Il=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-columns","title":"Section","category":"themeisle-blocks","description":"Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like. Powered by Otter.","keywords":["advanced columns","layout","section"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"columns":{"type":"number"},"layout":{"type":"string"},"layoutTablet":{"type":"string","default":"equal"},"layoutMobile":{"type":"string","default":"equal"},"padding":{"type":"object"},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"margin":{"type":"object"},"marginTablet":{"type":"object"},"marginMobile":{"type":"object"},"columnsWidth":{"type":"number"},"horizontalAlign":{"type":"string","default":"unset"},"columnsHeight":{"type":"string","default":"auto"},"columnsHeightCustom":{"type":"number"},"columnsHeightCustomTablet":{"type":"number"},"columnsHeightCustomMobile":{"type":"number"},"verticalAlign":{"type":"string","default":"unset"},"backgroundType":{"type":"string","default":"color"},"backgroundColor":{"type":"string"},"backgroundImage":{"type":"object"},"backgroundAttachment":{"type":"string","default":"scroll"},"backgroundPosition":{"type":"object"},"backgroundRepeat":{"type":"string","default":"repeat"},"backgroundSize":{"type":"string","default":"auto"},"backgroundGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayOpacity":{"type":"number","default":50},"backgroundOverlayType":{"type":"string","default":"color"},"backgroundOverlayColor":{"type":"string"},"backgroundOverlayImage":{"type":"object"},"backgroundOverlayAttachment":{"type":"string","default":"scroll"},"backgroundOverlayPosition":{"type":"object"},"backgroundOverlayRepeat":{"type":"string","default":"repeat"},"backgroundOverlaySize":{"type":"string","default":"auto"},"backgroundOverlayGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayFilterBlur":{"type":"number","default":0},"backgroundOverlayFilterBrightness":{"type":"number","default":10},"backgroundOverlayFilterContrast":{"type":"number","default":10},"backgroundOverlayFilterGrayscale":{"type":"number","default":0},"backgroundOverlayFilterHue":{"type":"number","default":0},"backgroundOverlayFilterSaturate":{"type":"number","default":10},"backgroundOverlayBlend":{"type":"string","default":"normal"},"border":{"type":"object"},"borderColor":{"type":"string","default":"#000000"},"borderRadius":{"type":"object"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":0},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"dividerTopType":{"type":"string","default":"none"},"dividerTopColor":{"type":"string","default":"#000000"},"dividerTopWidth":{"type":"number"},"dividerTopWidthTablet":{"type":"number"},"dividerTopWidthMobile":{"type":"number"},"dividerTopHeight":{"type":"number"},"dividerTopHeightTablet":{"type":"number"},"dividerTopHeightMobile":{"type":"number"},"dividerTopInvert":{"type":"boolean","default":false},"dividerBottomType":{"type":"string","default":"none"},"dividerBottomColor":{"type":"string","default":"#000000"},"dividerBottomWidth":{"type":"number"},"dividerBottomWidthTablet":{"type":"number"},"dividerBottomWidthMobile":{"type":"number"},"dividerBottomHeight":{"type":"number"},"dividerBottomHeightTablet":{"type":"number"},"dividerBottomHeightMobile":{"type":"number"},"dividerBottomInvert":{"type":"boolean","default":false},"hide":{"type":"boolean","default":false},"hideTablet":{"type":"boolean","default":false},"hideMobile":{"type":"boolean","default":false},"reverseColumnsTablet":{"type":"boolean","default":false},"reverseColumnsMobile":{"type":"boolean","default":false},"columnsHTMLTag":{"type":"string","default":"div"},"isSynced":{"type":"array"}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-advanced-columns-editor","style":"otter-advanced-columns-style"}');const Ol={align:{type:"string"},id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},horizontalAlign:{type:"string",default:"unset"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},Fl=e=>{let{type:t,front:o,style:l,fill:a,invert:n,width:r,height:c}=e;return"none"!==l&&(0,i.createElement)("div",{className:g()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&r?{transform:r?`scaleX( ${r/100} )`:""}:{}},"bigTriangle"===l&&!1===n&&(0,i.createElement)(s.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===n&&(0,i.createElement)(s.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===n&&(0,i.createElement)(s.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===n&&(0,i.createElement)(s.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,i.createElement)(s.SVG,{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===n&&(0,i.createElement)(s.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===n&&(0,i.createElement)(s.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,i.createElement)(s.SVG,{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,i.createElement)(s.Path,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},Al=e=>{let{type:t,front:o,style:l,fill:a,invert:n,width:r,height:c}=e;return"none"!==l&&(0,i.createElement)("div",{className:g()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&r?{transform:r?`scaleX( ${r/100} )`:""}:{}},"bigTriangle"===l&&!1===n&&(0,i.createElement)(s.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,i.createElement)(s.Path,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===n&&(0,i.createElement)(s.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)(s.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===n&&(0,i.createElement)(s.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)(s.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===n&&(0,i.createElement)(s.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)(s.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,i.createElement)(s.SVG,{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)(s.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===n&&(0,i.createElement)(s.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,i.createElement)(s.Path,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===n&&(0,i.createElement)(s.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,i.createElement)(s.Path,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,i.createElement)(s.SVG,{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)(s.Path,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},Gl=[{attributes:Ol,supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,n,r,s,d;if("color"===t.backgroundType&&(a={background:t.backgroundColor}),"image"===t.backgroundType&&(a={backgroundImage:`url( '${t.backgroundImageURL}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType){let e;e="linear"===t.backgroundGradientType?`${t.backgroundGradientAngle}deg`:`at ${t.backgroundGradientPosition}`,a={background:`${t.backgroundGradientType}-gradient( ${e}, ${t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientFirstLocation}%, ${t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientSecondLocation}% )`}}"linked"===t.borderType&&(r={borderWidth:`${t.border}px`,borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(r={borderTopWidth:`${t.borderTop}px`,borderRightWidth:`${t.borderRight}px`,borderBottomWidth:`${t.borderBottom}px`,borderLeftWidth:`${t.borderLeft}px`,borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(s={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(s={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(d={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${R()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const m={...a,...r,...s,...d,justifyContent:t.horizontalAlign};if("color"===t.backgroundOverlayType&&(n={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(n={backgroundImage:`url( '${t.backgroundOverlayImageURL}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType){let e;e="linear"===t.backgroundOverlayGradientType?`${t.backgroundOverlayGradientAngle}deg`:`at ${t.backgroundOverlayGradientPosition}`,n={background:`${t.backgroundOverlayGradientType}-gradient( ${e}, ${t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientFirstLocation}%, ${t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientSecondLocation}% )`,opacity:t.backgroundOverlayOpacity/100}}const u={...n,mixBlendMode:t.backgroundOverlayBlend,filter:`blur( ${t.backgroundOverlayFilterBlur/10}px ) brightness( ${t.backgroundOverlayFilterBrightness/10} ) contrast( ${t.backgroundOverlayFilterContrast/10} ) grayscale( ${t.backgroundOverlayFilterGrayscale/100} ) hue-rotate( ${t.backgroundOverlayFilterHue}deg ) saturate( ${t.backgroundOverlayFilterSaturate/10} )`};let b={};t.columnsWidth&&(b={maxWidth:t.columnsWidth+"px"});const p=t.hide?"":`has-desktop-${t.layout}-layout`,h=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,k=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,v=g()(o,`has-${t.columns}-columns`,p,h,k,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},`has-${t.lcolumnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,i.createElement)(l,{className:v,id:t.id,style:m},(0,i.createElement)("div",{className:"wp-themeisle-block-overlay",style:u}),(0,i.createElement)(Fl,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,i.createElement)("div",{className:"innerblocks-wrap",style:b},(0,i.createElement)(c.InnerBlocks.Content,null)),(0,i.createElement)(Fl,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:Ol,supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,n,r,s,d;if("color"===t.backgroundType&&(a={background:t.backgroundColor}),"image"===t.backgroundType&&(a={backgroundImage:`url( '${t.backgroundImageURL}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType){let e;e="linear"===t.backgroundGradientType?`${t.backgroundGradientAngle}deg`:`at ${t.backgroundGradientPosition}`,a={background:`${t.backgroundGradientType}-gradient( ${e}, ${t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientFirstLocation}%, ${t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientSecondLocation}% )`}}"linked"===t.borderType&&(r={borderWidth:`${t.border}px`,borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(r={borderTopWidth:`${t.borderTop}px`,borderRightWidth:`${t.borderRight}px`,borderBottomWidth:`${t.borderBottom}px`,borderLeftWidth:`${t.borderLeft}px`,borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(s={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(s={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(d={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${R()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const m={...a,...r,...s,...d,justifyContent:t.horizontalAlign};if("color"===t.backgroundOverlayType&&(n={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(n={backgroundImage:`url( '${t.backgroundOverlayImageURL}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType){let e;e="linear"===t.backgroundOverlayGradientType?`${t.backgroundOverlayGradientAngle}deg`:`at ${t.backgroundOverlayGradientPosition}`,n={background:`${t.backgroundOverlayGradientType}-gradient( ${e}, ${t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientFirstLocation}%, ${t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientSecondLocation}% )`,opacity:t.backgroundOverlayOpacity/100}}const u={...n,mixBlendMode:t.backgroundOverlayBlend};let b={};t.columnsWidth&&(b={maxWidth:t.columnsWidth+"px"});const p=t.hide?"":`has-desktop-${t.layout}-layout`,h=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,k=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,v=g()(o,`has-${t.columns}-columns`,p,h,k,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,i.createElement)(l,{className:v,id:t.id,style:m},(0,i.createElement)("div",{className:"wp-themeisle-block-overlay",style:u}),(0,i.createElement)(Fl,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,i.createElement)("div",{className:"innerblocks-wrap",style:b},(0,i.createElement)(c.InnerBlocks.Content,null)),(0,i.createElement)(Fl,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...Ol,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag,a=t.hide?"":`has-desktop-${t.layout}-layout`,n=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,r=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,s=g()(o,`has-${t.columns}-columns`,a,n,r,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,i.createElement)(l,{className:s,id:t.id},(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,i.createElement)(Al,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,i.createElement)("div",{className:"innerblocks-wrap"},(0,i.createElement)(c.InnerBlocks.Content,null)),(0,i.createElement)(Al,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...Ol,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},migrate:e=>{let t="",o="";if("gradient"===e.backgroundType){let o="";"linear"===e.backgroundGradientType&&(o=`${e.backgroundGradientAngle}deg, `),t=`${e.backgroundGradientType}-gradient(${o}${R()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${R()(e.backgroundGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}%)`}if("gradient"===e.backgroundOverlayType){let t="";"linear"===e.backgroundOverlayGradientType&&(t=`${e.backgroundOverlayGradientAngle}deg, `),o=`${e.backgroundOverlayGradientType}-gradient(${t}${R()(e.backgroundOverlayGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientFirstLocation}%, ${R()(e.backgroundOverlayGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientSecondLocation}%)`}return{...{...(0,I.omit)(e,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition","backgroundOverlayGradientFirstColor","backgroundOverlayGradientFirstLocation","backgroundOverlayGradientSecondColor","backgroundOverlayGradientSecondLocation","backgroundOverlayGradientType","backgroundOverlayGradientAngle","backgroundOverlayGradientPosition"]),backgroundGradient:t,backgroundOverlayGradient:o}}},isEligible:e=>"gradient"===e.backgroundType&&void 0!==e.backgroundGradientFirstColor||"gradient"===e.backgroundOverlayType&&void 0!==e.backgroundOverlayGradientFirstColor,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag,a=t.hide?"":`has-desktop-${t.layout}-layout`,n=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,r=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,s=g()(o,`has-${t.columns}-columns`,a,n,r,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,i.createElement)(l,{className:s,id:t.id},(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,i.createElement)(Al,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,i.createElement)("div",{className:"innerblocks-wrap"},(0,i.createElement)(c.InnerBlocks.Content,null)),(0,i.createElement)(Al,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...(0,I.omit)(Ol,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition","backgroundOverlayGradientFirstColor","backgroundOverlayGradientFirstLocation","backgroundOverlayGradientSecondColor","backgroundOverlayGradientSecondLocation","backgroundOverlayGradientType","backgroundOverlayGradientAngle","backgroundOverlayGradientPosition"]),paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},backgroundGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},backgroundOverlayGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},migrate:e=>{const t={},o={},l={},a={},n={},r={},i={},c={};let s={},d={},m={},u={};"unlinked"===e.paddingType?(t.top=(0,I.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,I.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,I.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,I.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,I.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,I.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,I.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,I.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,I.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,I.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,I.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,I.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,I.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,I.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,I.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,I.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,I.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,I.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,I.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,I.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,I.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,I.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,I.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,I.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(a.top=(0,I.isUndefined)(e.margin)?"20px":e.margin+"px",a.bottom=(0,I.isUndefined)(e.margin)?"20px":e.margin+"px"):(a.top=(0,I.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",a.bottom=(0,I.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px"),"linked"===e.marginTypeTablet?(n.top=(0,I.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",n.bottom=(0,I.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(n.top=(0,I.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",n.bottom=(0,I.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px"),"linked"===e.marginTypeMobile?(r.top=(0,I.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",r.bottom=(0,I.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(r.top=(0,I.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",r.bottom=(0,I.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px"),"unlinked"===e.borderType?(i.top=(0,I.isUndefined)(e.borderTop)?null:e.borderTop+"px",i.bottom=(0,I.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",i.left=(0,I.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",i.right=(0,I.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(i.top=(0,I.isUndefined)(e.border)?null:e.border+"px",i.bottom=(0,I.isUndefined)(e.border)?null:e.border+"px",i.left=(0,I.isUndefined)(e.border)?null:e.border+"px",i.right=(0,I.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(c.top=(0,I.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",c.bottom=(0,I.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",c.left=(0,I.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",c.right=(0,I.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(c.top=(0,I.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",c.bottom=(0,I.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",c.left=(0,I.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",c.right=(0,I.isUndefined)(e.borderRadius)?null:e.borderRadius+"px"),void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID&&(s={id:e.backgroundImageID,url:e.backgroundImageURL}),void 0!==e.backgroundOverlayImageURL&&void 0!==e.backgroundOverlayImageID&&(d={id:e.backgroundOverlayImageID,url:e.backgroundOverlayImageURL});const b={"top left":{x:"0.00",y:"0.00"},"top center":{x:"0.50",y:"0.00"},"top right":{x:"1.00",y:"0.00"},"center left":{x:"0.00",y:"0.50"},"center center":{x:"0.50",y:"0.50"},"center right":{x:"1.00",y:"0.50"},"bottom left":{x:"0.00",y:"1.00"},"bottom center":{x:"0.50",y:"1.00"},"bottom right":{x:"1.00",y:"1.00"}};return void 0!==e.backgroundPosition&&(m=b[e.backgroundPosition]),void 0!==e.backgroundOverlayPosition&&(u=b[e.backgroundOverlayPosition]),{...{...(0,I.omit)(e,["columnsGap","paddingType","paddingTypeTablet","paddingTypeMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","marginType","marginTypeTablet","marginTypeMobile","marginTop","marginTopTablet","marginTopMobile","marginBottom","marginBottomTablet","marginBottomMobile","borderType","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"]),...!(0,He.FH)(t)&&{padding:t},...!(0,He.FH)(o)&&{paddingTablet:o},...!(0,He.FH)(l)&&{paddingMobile:l},...!(0,He.FH)(a)&&{margin:a},...!(0,He.FH)(n)&&{marginTablet:n},...!(0,He.FH)(r)&&{marginMobile:r},...!(0,He.FH)(i)&&{border:i},...!(0,He.FH)(c)&&{borderRadius:c},...!(0,He.FH)(s)&&{backgroundImage:s},...!(0,He.FH)(m)&&{backgroundPosition:m},...!(0,He.FH)(d)&&{backgroundOverlayImage:d},...!(0,He.FH)(u)&&{backgroundOverlayPosition:u}}}},isEligible:e=>["padding","paddingTablet","paddingMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","margin","marginTablet","marginMobile","marginTop","marginTopTablet","marginTopMobile","marginBottom","marginBottomTablet","marginBottomMobile","borderType","border","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadius","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"].some((t=>!(0,I.isUndefined)(e[t])&&("number"==typeof e[t]||null===typeof e[t])))||void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID||void 0!==e.backgroundOverlayImageURL&&void 0!==e.backgroundOverlayImageID||void 0!==e.backgroundPosition&&"object"!=typeof e.backgroundPosition||void 0!==e.backgroundOverlayPosition&&"object"!=typeof e.backgroundOverlayPosition||void 0!==e.columnsGap,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag,a=t.hide?"":`has-desktop-${t.layout}-layout`,n=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,r=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,s=g()(o,`has-${t.columns}-columns`,a,n,r,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,i.createElement)(l,{className:s,id:t.id},(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,i.createElement)(Al,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,i.createElement)("div",{className:"innerblocks-wrap"},(0,i.createElement)(c.InnerBlocks.Content,null)),(0,i.createElement)(Al,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}}];var Dl=Gl,$l={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"],collapsedRows:["100","100"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"],collapsedRows:["100","100","100"]},4:{equal:["25","25","25","25"],twoColumnGrid:["100","100","100","100"],collapsedRows:["100","100","100","100"]},5:{equal:["20","20","20","20","20"],collapsedRows:["100","100","100","100","100"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"],twoColumnGrid:["100","100","100","100","100","100"],threeColumnGrid:["100","100","100","100","100","100"],collapsedRows:["100","100","100","100","100","100"]}},Zl=e=>{let{attributes:t,setAttributes:o}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(c.BlockVerticalAlignmentToolbar,{onChange:e=>t.verticalAlign===e?o({verticalAlign:"unset"}):o({verticalAlign:e}),value:"flex-start"===t.verticalAlign?"top":"flex-end"===t.verticalAlign?"bottom":t.verticalAlign}))},Wl=e=>{let{label:t,onClick:o,layout:a,layoutTablet:n,layoutMobile:c,columns:d}=e;const m=(0,h.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]);let u;return"Desktop"===m?u=a:"Tablet"===m?u=n:"Mobile"===m&&(u=c),(0,i.createElement)(D.Z,{label:t,className:"wp-block-themeisle-blocks-advanced-columns-layout-control"},1===d&&(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Single Row","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,r.colsFull)()))||2===d&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Equal","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,r.cols2Equal)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("1:2","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===u}),onClick:()=>o("oneTwo")},(0,r.cols12)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("2:1","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===u}),onClick:()=>o("twoOne")},(0,r.cols21)())),("Mobile"==m||"Tablet"==m)&&(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===u}),onClick:()=>o("collapsedRows")},(0,r.rowsCollapsed)())))||3===d&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Equal","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,r.cols3Equal)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("1:1:2","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===u}),onClick:()=>o("oneOneTwo")},(0,r.cols112)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("2:1:1","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===u}),onClick:()=>o("twoOneOne")},(0,r.cols211)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("1:2:1","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===u}),onClick:()=>o("oneTwoOne")},(0,r.cols121)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("1:3:1","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===u}),onClick:()=>o("oneThreeOne")},(0,r.cols131)())),("Mobile"==m||"Tablet"==m)&&(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===u}),onClick:()=>o("collapsedRows")},(0,r.rowsCollapsed)())))||4===d&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Equal","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,r.cols4Equal)())),("Mobile"==m||"Tablet"==m)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Two Column Grid","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===u}),onClick:()=>o("twoColumnGrid")},(0,r.colsCollapsed)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===u}),onClick:()=>o("collapsedRows")},(0,r.rowsCollapsed)()))))||5===d&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Equal","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,r.cols5Equal)())),("Mobile"==m||"Tablet"==m)&&(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===u}),onClick:()=>o("collapsedRows")},(0,r.rowsCollapsed)())))||6===d&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Equal","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,r.cols6Equal)())),("Mobile"==m||"Tablet"==m)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Two Column Grid","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===u}),onClick:()=>o("twoColumnGrid")},(0,r.cols2Grid)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Three Column Grid","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===u}),onClick:()=>o("threeColumnGrid")},(0,r.cols3Grid)())),(0,i.createElement)(s.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks")},(0,i.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===u}),onClick:()=>o("collapsedRows")},(0,r.rowsCollapsed)())))))},Ul=e=>{let{attributes:t,setAttributes:o,getValue:a,updateColumnsWidth:n,dividerViewType:r,setDividerViewType:d,changeColumnsNumbers:m}=e;const u=(0,h.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[b,p]=(0,i.useState)("layout");let v=()=>{var e,o,l;switch(u){case"Desktop":return t.columnsHeightCustom;case"Tablet":return null!==(e=t.columnsHeightCustomTablet)&&void 0!==e?e:t.columnsHeightCustom;case"Mobile":return null!==(o=null!==(l=t.columnsHeightCustomMobile)&&void 0!==l?l:t.columnsHeightCustomTablet)&&void 0!==o?o:t.columnsHeightCustom;default:return}};v=v();const y="top"==r?t.dividerTopType:"bottom"==r?t.dividerBottomType:void 0,_=(e,t)=>{switch(t){case"Desktop":o({hide:e});break;case"Tablet":o({hideTablet:e});break;case"Mobile":o({hideMobile:e})}},f=(e,t)=>{"Tablet"===t?o({reverseColumnsTablet:e}):"Mobile"===t&&o({reverseColumnsMobile:e})};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{className:"o-section-header-panel"},(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"layout"===b}),onClick:()=>p("layout")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"editor-table"}),(0,l.__)("Layout","otter-blocks"))),(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"style"===b}),onClick:()=>p("style")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"advanced"===b}),onClick:()=>p("advanced")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"layout"===b&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Columns & Layout","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Columns","otter-blocks"),value:t.columns,onChange:e=>{6>=e&&o({layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),6<e&&o({layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),1>=e&&o({layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),m(e)},min:1,max:6}),(0,i.createElement)(Wl,{label:(0,l.__)("Layout","otter-blocks"),columns:t.columns,layout:t.layout,layoutTablet:t.layoutTablet,layoutMobile:t.layoutMobile,onClick:e=>{switch(u){case"Desktop":o({layout:e}),n(t.columns,e);break;case"Tablet":o({layoutTablet:e});break;case"Mobile":o({layoutMobile:e})}}})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Spacing","otter-blocks"),initialOpen:!1},(0,i.createElement)(D.Z,{label:(0,l.__)("Screen Type","otter-blocks"),className:"otter-section-padding-responsive-control"},(0,i.createElement)(k,{field:(()=>{switch(u){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{switch(u){case"Desktop":return a("padding");case"Tablet":return(0,I.merge)({...a("padding")},a("paddingTablet"));case"Mobile":return(0,I.merge)({...a("padding")},a("paddingTablet"),a("paddingMobile"));default:return}})(),inputProps:{min:0,max:500},onChange:e=>{switch((0,He.CJ)(e)&&(e=void 0),u){case"Desktop":return o({padding:e});case"Tablet":return o({paddingTablet:(0,He.cg)(e,t.padding)});case"Mobile":return o({paddingMobile:(0,He.cg)(e,{...t.padding,...t.paddingTablet})});default:return}}})),(0,i.createElement)(k,{field:(()=>{switch(u){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{switch(u){case"Desktop":return a("margin");case"Tablet":return(0,I.merge)({...a("margin")},a("marginTablet"));case"Mobile":return(0,I.merge)({...a("margin")},a("marginTablet"),a("marginMobile"));default:return}})(),inputProps:{min:-500,max:500},sides:["top","bottom"],onChange:e=>{switch((0,He.CJ)(e)&&(e=void 0),"object"==typeof e&&(e=Object.fromEntries(Object.entries(e).filter((e=>{let[t,o]=e;return null!==o})))),u){case"Desktop":return o({margin:e});case"Tablet":return o({marginTablet:(0,He.cg)(e,t.margin)});case"Mobile":return o({marginMobile:(0,He.cg)(e,{...t.margin,...t.marginTablet})});default:return}}})))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Section Structure","otter-blocks"),initialOpen:!1},(0,i.createElement)(k,{field:"columnsWidth",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Maximum Content Width","otter-blocks"),value:a("columnsWidth")||"",allowReset:!0,onChange:e=>{(0<=e&&2400>=e||void 0===e)&&o({columnsWidth:e})},step:.1,min:0,max:2400})),a("columnsWidth")&&(0,i.createElement)(k,{field:"horizontalAlign",isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.BaseControl,{label:(0,l.__)("Horizontal Align","otter-blocks")},(0,i.createElement)(re.Z,{value:t.horizontalAlign,options:[{icon:"editor-alignleft",label:(0,l.__)("Left","otter-blocks"),value:"flex-start"},{icon:"editor-aligncenter",label:(0,l.__)("Center","otter-blocks"),value:"center"},{icon:"editor-alignright",label:(0,l.__)("Right","otter-blocks"),value:"flex-end"}],onChange:e=>(e=>{if(t.horizontalAlign===e)return o({horizontalAlign:"unset"});o({horizontalAlign:e})})(e),hideLabels:!0}))),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Minimum Height","otter-blocks"),value:t.columnsHeight,options:[{label:(0,l.__)("Default","otter-blocks"),value:"auto"},{label:(0,l.__)("Fit to Screen","otter-blocks"),value:"100vh"},{label:(0,l.__)("Custom","otter-blocks"),value:"custom"}],onChange:e=>o({columnsHeight:e})}),"custom"===t.columnsHeight&&(0,i.createElement)(D.Z,{label:(0,l.__)("Custom Height","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:v||"",onChange:e=>{switch(u){case"Desktop":o({columnsHeightCustom:e});break;case"Tablet":o({columnsHeightCustomTablet:e});break;case"Mobile":o({columnsHeightCustomMobile:e})}},step:.1,min:0,max:1e3}))))||"style"===b&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Background Settings","otter-blocks")},(0,i.createElement)(Je,{backgroundType:t.backgroundType,backgroundColor:t.backgroundColor,image:t.backgroundImage,gradient:t.backgroundGradient,focalPoint:t.backgroundPosition,backgroundAttachment:t.backgroundAttachment,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize,changeBackgroundType:e=>o({backgroundType:e}),changeImage:e=>{o({backgroundImage:(0,I.pick)(e,["id","url"])})},removeImage:()=>o({backgroundImage:void 0}),changeColor:e=>o({backgroundColor:e}),changeGradient:e=>o({backgroundGradient:e}),changeBackgroundAttachment:e=>o({backgroundAttachment:e}),changeBackgroundRepeat:e=>o({backgroundRepeat:e}),changeFocalPoint:e=>o({backgroundPosition:e}),changeBackgroundSize:e=>o({backgroundSize:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Background Overlay","otter-blocks"),initialOpen:!1},(0,i.createElement)(Je,{backgroundType:t.backgroundOverlayType,backgroundColor:t.backgroundOverlayColor,image:t.backgroundOverlayImage,gradient:t.backgroundOverlayGradient,focalPoint:t.backgroundOverlayPosition,backgroundAttachment:t.backgroundOverlayAttachment,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,changeBackgroundType:e=>o({backgroundOverlayType:e}),changeImage:e=>{o({backgroundOverlayImage:(0,I.pick)(e,["id","url"])})},removeImage:()=>o({backgroundOverlayImage:void 0}),changeColor:e=>o({backgroundOverlayColor:e}),changeGradient:e=>o({backgroundOverlayGradient:e}),changeBackgroundAttachment:e=>o({backgroundOverlayAttachment:e}),changeBackgroundRepeat:e=>o({backgroundOverlayRepeat:e}),changeFocalPoint:e=>o({backgroundOverlayPosition:e}),changeBackgroundSize:e=>o({backgroundOverlaySize:e})}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Overlay Opacity","otter-blocks"),value:t.backgroundOverlayOpacity,onChange:e=>o({backgroundOverlayOpacity:e}),min:0,max:100}),(0,i.createElement)(G.Z,{label:(0,l.__)("CSS Filters","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.backgroundOverlayFilterBlur,onChange:e=>o({backgroundOverlayFilterBlur:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Brightness","otter-blocks"),value:t.backgroundOverlayFilterBrightness,onChange:e=>o({backgroundOverlayFilterBrightness:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Contrast","otter-blocks"),value:t.backgroundOverlayFilterContrast,onChange:e=>o({backgroundOverlayFilterContrast:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Grayscale","otter-blocks"),value:t.backgroundOverlayFilterGrayscale,onChange:e=>o({backgroundOverlayFilterGrayscale:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Hue","otter-blocks"),value:t.backgroundOverlayFilterHue,onChange:e=>o({backgroundOverlayFilterHue:e}),min:0,max:360}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Saturation","otter-blocks"),value:t.backgroundOverlayFilterSaturate,onChange:e=>o({backgroundOverlayFilterSaturate:e}),min:0,max:100})),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Blend Mode","otter-blocks"),value:t.backgroundOverlayBlend,options:[{label:(0,l.__)("Normal","otter-blocks"),value:"normal"},{label:(0,l.__)("Multiply","otter-blocks"),value:"multiply"},{label:(0,l.__)("Screen","otter-blocks"),value:"screen"},{label:(0,l.__)("Overlay","otter-blocks"),value:"overlay"},{label:(0,l.__)("Darken","otter-blocks"),value:"darken"},{label:(0,l.__)("Lighten","otter-blocks"),value:"lighten"},{label:(0,l.__)("Color Dodge","otter-blocks"),value:"color-dodge"},{label:(0,l.__)("Color Burn","otter-blocks"),value:"color-burn"},{label:(0,l.__)("Hard Light","otter-blocks"),value:"hard-light"},{label:(0,l.__)("Soft Light","otter-blocks"),value:"soft-light"},{label:(0,l.__)("Difference","otter-blocks"),value:"difference"},{label:(0,l.__)("Exclusion","otter-blocks"),value:"exclusion"},{label:(0,l.__)("Hue","otter-blocks"),value:"hue"},{label:(0,l.__)("Saturation","otter-blocks"),value:"saturation"},{label:(0,l.__)("Color","otter-blocks"),value:"color"},{label:(0,l.__)("Luminosity","otter-blocks"),value:"luminosity"}],onChange:e=>o({backgroundOverlayBlend:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1},(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Border Width","otter-blocks"),values:t.border,inputProps:{min:0,max:500},units:[{value:"px",label:"px"}],onChange:e=>{(0,He.CJ)(e)&&(e=void 0),o({border:e})}}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}),(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:t.borderRadius,inputProps:{min:0,max:500},units:[{value:"px",label:"px"},{value:"%",label:"%"}],id:"o-border-raduis-box",onChange:e=>{(0,He.CJ)(e)&&(e=void 0),o({borderRadius:e})}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:t.boxShadow,onChange:()=>o({boxShadow:!t.boxShadow})}),t.boxShadow&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,i.createElement)(G.Z,{label:(0,l.__)("Border Shadow","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Shape Divider","otter-blocks"),initialOpen:!1,className:"wp-block-themeisle-shape-divider"},(0,i.createElement)(s.ButtonGroup,null,(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:"top"!==r,isPrimary:"top"===r,onClick:()=>d("top")},(0,l.__)("Top","otter-blocks")),(0,i.createElement)(s.Button,{isSmall:!0,isSecondary:"bottom"!==r,isPrimary:"bottom"===r,onClick:()=>d("bottom")},(0,l.__)("Bottom","otter-blocks"))),(0,i.createElement)(s.SelectControl,{label:(0,l.__)("Type","otter-blocks"),value:y,options:[{label:(0,l.__)("None","otter-blocks"),value:"none"},{label:(0,l.__)("Triangle","otter-blocks"),value:"bigTriangle"},{label:(0,l.__)("Right Curve","otter-blocks"),value:"rightCurve"},{label:(0,l.__)("Curve","otter-blocks"),value:"curve"},{label:(0,l.__)("Slant","otter-blocks"),value:"slant"},{label:(0,l.__)("Cloud","otter-blocks"),value:"cloud"}],onChange:e=>{"top"==r?o({dividerTopType:e}):"bottom"==r&&o({dividerBottomType:e})}}),"none"!==y&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:"top"==r?t.dividerTopColor:"bottom"==r?t.dividerBottomColor:void 0,onColorChange:e=>{"top"==r?o({dividerTopColor:e}):"bottom"==r&&o({dividerBottomColor:e})}}),(0,i.createElement)(D.Z,{label:(0,l.__)("Width","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:(()=>{var e,o,l,a,n,i,c,s,d,m,b,p;if("top"==r)switch(u){case"Desktop":return null!==(e=t.dividerTopWidth)&&void 0!==e?e:100;case"Tablet":return null!==(o=null!==(l=t.dividerTopWidthTablet)&&void 0!==l?l:t.dividerTopWidth)&&void 0!==o?o:100;case"Mobile":return null!==(a=null!==(n=null!==(i=t.dividerTopWidthMobile)&&void 0!==i?i:t.dividerTopWidthTablet)&&void 0!==n?n:t.dividerTopWidth)&&void 0!==a?a:100}else if("bottom"==r)switch(u){case"Desktop":return null!==(c=t.dividerBottomWidth)&&void 0!==c?c:100;case"Tablet":return null!==(s=null!==(d=t.dividerBottomWidthTablet)&&void 0!==d?d:t.dividerBottomWidth)&&void 0!==s?s:100;case"Mobile":return null!==(m=null!==(b=null!==(p=t.dividerBottomWidthMobile)&&void 0!==p?p:t.dividerBottomWidthTablet)&&void 0!==b?b:t.dividerBottomWidth)&&void 0!==m?m:100}})(),onChange:e=>{if("top"==r)switch(u){case"Desktop":o({dividerTopWidth:e});break;case"Tablet":o({dividerTopWidthTablet:e});break;case"Mobile":o({dividerTopWidthMobile:e})}else if("bottom"==r)switch(u){case"Desktop":o({dividerBottomWidth:e});break;case"Tablet":o({dividerBottomWidthTablet:e});break;case"Mobile":o({dividerBottomWidthMobile:e})}},step:.1,min:0,max:500})),(0,i.createElement)(D.Z,{label:(0,l.__)("Height","otter-blocks")},(0,i.createElement)(s.RangeControl,{value:(()=>{if("top"==r)switch(u){case"Desktop":return t.dividerTopHeight;case"Tablet":return t.dividerTopHeightTablet;case"Mobile":return t.dividerTopHeightMobile}else if("bottom"==r)switch(u){case"Desktop":return t.dividerBottomHeight;case"Tablet":return t.dividerBottomHeightTablet;case"Mobile":return t.dividerBottomHeightMobile}})(),onChange:e=>{if("top"==r)switch(u){case"Desktop":o({dividerTopHeight:e});break;case"Tablet":o({dividerTopHeightTablet:e});break;case"Mobile":o({dividerTopHeightMobile:e})}else if("bottom"==r)switch(u){case"Desktop":o({dividerBottomHeight:e});break;case"Tablet":o({dividerBottomHeightTablet:e});break;case"Mobile":o({dividerBottomHeightMobile:e})}},step:.1,min:0,max:500})),"curve"!==y&&"cloud"!==y&&(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Invert Shape Divider","otter-blocks"),checked:(()=>{switch(r){case"top":return t.dividerTopInvert;case"bottom":return t.dividerBottomInvert;default:return}})(),onChange:()=>{switch(r){case"top":o({dividerTopInvert:!t.dividerTopInvert});break;case"bottom":o({dividerBottomInvert:!t.dividerBottomInvert})}}}))))||"advanced"===b&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Responsive","otter-blocks")},(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Hide this section on Desktop devices?","otter-blocks"),checked:t.hide,onChange:e=>_(e,"Desktop")}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Hide this section on Tablet devices?","otter-blocks"),checked:t.hideTablet,onChange:e=>_(e,"Tablet")}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Hide this section on Mobile devices?","otter-blocks"),checked:t.hideMobile,onChange:e=>_(e,"Mobile")}),(0,i.createElement)("hr",null),!t.hideTablet&&"collapsedRows"===t.layoutTablet&&(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Reverse Columns in Tablet devices?","otter-blocks"),checked:t.reverseColumnsTablet,onChange:e=>f(e,"Tablet")}),!t.hideMobile&&"collapsedRows"===t.layoutMobile&&(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Reverse Columns in Mobile devices?","otter-blocks"),checked:t.reverseColumnsMobile,onChange:e=>f(e,"Mobile")})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Section Settings","otter-blocks"),initialOpen:!1},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("HTML Tag","otter-blocks"),value:t.columnsHTMLTag,options:[{label:(0,l.__)("Default (div)","otter-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>o({columnsHTMLTag:e})})))),(0,i.createElement)(W,{value:t.id,onChange:e=>o({id:e})}))},jl=e=>{let{type:t,front:o,style:l,fill:a,invert:n,width:r,height:c}=e;return"none"!==l&&(0,i.createElement)("div",{className:g()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&r?{transform:r?`scaleX( ${r/100} )`:""}:{}},"bigTriangle"===l&&!1===n&&(0,i.createElement)("svg",{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,i.createElement)("path",{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===n&&(0,i.createElement)("svg",{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)("path",{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===n&&(0,i.createElement)("svg",{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)("path",{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===n&&(0,i.createElement)("svg",{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)("path",{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,i.createElement)("svg",{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)("path",{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===n&&(0,i.createElement)("svg",{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,i.createElement)("path",{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===n&&(0,i.createElement)("svg",{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,i.createElement)("path",{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,i.createElement)("svg",{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:c?`${c}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,i.createElement)("path",{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))};const{attributes:ql}=Il;var Kl=[{name:"themeisle-blocks/section-columns-1",description:(0,l.__)("Single column","otter-blocks"),icon:r.colsFull,title:(0,l.__)("Full","otter-blocks"),attributes:{columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"100"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal",description:(0,l.__)("2 equal columns","otter-blocks"),icon:r.cols2Equal,title:(0,l.__)("1:1","otter-blocks"),attributes:{columns:2,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"50"}],["themeisle-blocks/advanced-column",{columnWidth:"50"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-1-2",description:(0,l.__)("1:2 columns","otter-blocks"),icon:r.cols12,title:(0,l.__)("1:2","otter-blocks"),attributes:{columns:2,layout:"oneTwo",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"33.34"}],["themeisle-blocks/advanced-column",{columnWidth:"66.66"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-2-1",description:(0,l.__)("2:1 columns","otter-blocks"),icon:r.cols21,title:(0,l.__)("2:1","otter-blocks"),attributes:{columns:2,layout:"twoOne",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"66.66"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal-3",description:(0,l.__)("3 equal columns","otter-blocks"),icon:r.cols3Equal,title:(0,l.__)("1:1:1","otter-blocks"),attributes:{columns:3,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"33.33"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-1-1-2",description:(0,l.__)("1:1:2 columns","otter-blocks"),icon:r.cols112,title:(0,l.__)("1:1:2","otter-blocks"),attributes:{columns:3,layout:"oneOneTwo",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"50"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-2-1-1",description:(0,l.__)("2:1:1 columns","otter-blocks"),icon:r.cols211,title:(0,l.__)("2:1:1","otter-blocks"),attributes:{columns:3,layout:"twoOneOne",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"50"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal-4",description:(0,l.__)("4 equal columns","otter-blocks"),icon:r.cols4Equal,title:(0,l.__)("1:1:1:1","otter-blocks"),attributes:{columns:4,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}]],scope:["block"]}];const{name:Jl}=Il;(0,a.registerBlockType)(Jl,{...Il,title:(0,l.__)("Section","otter-blocks"),description:(0,l.__)("Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like. Powered by Otter.","otter-blocks"),icon:r.columnsIcon,keywords:["advanced columns","layout","section"],deprecated:Dl,variations:Kl,edit:e=>{let{attributes:t,setAttributes:o,clientId:n,name:r}=e;(0,i.useEffect)((()=>{const e=(0,y.blockInit)(n,ql);return()=>e(t.id)}),[t.id]);const{updateBlockAttributes:s,replaceInnerBlocks:d}=(0,h.useDispatch)("core/block-editor"),{sectionBlock:m,isViewportAvailable:u,isPreviewDesktop:b,isPreviewTablet:p,isPreviewMobile:k,children:v,variations:_,defaultVariation:f}=(0,h.useSelect)((e=>{var t;const{getBlock:o}=e("core/block-editor"),{getBlockVariations:l,getBlockType:a,getDefaultBlockVariation:i}=e("core/blocks"),{__experimentalGetPreviewDeviceType:c}=!!e("core/edit-post")&&e("core/edit-post");return{sectionBlock:o(n),children:(null===(t=o(n))||void 0===t?void 0:t.innerBlocks)||[],isViewportAvailable:!!c,isPreviewDesktop:!!c&&"Desktop"===c(),isPreviewTablet:!!c&&"Tablet"===c(),isPreviewMobile:!!c&&"Mobile"===c(),blockType:a(r),defaultVariation:i(r,"block"),variations:l(r,"block").filter((e=>{let{isDefault:t}=e;return!t}))}}),[]),{insertBlock:w,removeBlock:C}=(0,h.useDispatch)("core/block-editor"),E=(e,t)=>{m.innerBlocks.map(((o,l)=>{s(o.clientId,{columnWidth:$l[e][t][l]})}))};(0,i.useEffect)((()=>{t.columns!==v.length&&(6>=v.length?E(v.length,"equal"):6<v.length?E(6,"equal"):1>=v.length&&E(1,"equal"),o({columns:v.length}))}),[v]);const x=e=>(0,y.getDefaultValueByField)({name:r,field:e,defaultAttributes:ql,attributes:t}),T=(0,O.useViewportMatch)("large",">="),S=(0,O.useViewportMatch)("large","<="),M=(0,O.useViewportMatch)("small",">="),B=(0,O.useViewportMatch)("small","<=");let z=T&&!S&&M&&!B,P=!T&&!S&&M&&!B,V=!(T||S||M||B);u&&!V&&(z=b,P=p,V=k);const[L,N]=(0,i.useState)("top"),H=e=>{var t,o;let{mobile:l,tablet:a,desktop:n}=e;return null!==(t=null!==(o=V&&l||P&&a||n)&&void 0!==o?o:n)&&void 0!==t?t:100},F=H({mobile:t.dividerTopWidthMobile,tablet:t.dividerTopWidthTablet,desktop:t.dividerTopWidth}),A=H({mobile:t.dividerBottomWidthMobile,tablet:t.dividerBottomWidthTablet,desktop:t.dividerBottomWidth}),G=H({mobile:t.dividerTopHeightMobile,tablet:t.dividerTopHeightTablet,desktop:t.dividerTopHeight}),D=H({mobile:t.dividerBottomHeightMobile,tablet:t.dividerBottomHeightTablet,desktop:t.dividerBottomHeight}),$=t.columnsHTMLTag;let Z,W,U,j,q,K={paddingTop:x("padding")&&x("padding").top,paddingRight:x("padding")&&x("padding").right,paddingBottom:x("padding")&&x("padding").bottom,paddingLeft:x("padding")&&x("padding").left,marginTop:x("margin")&&x("margin").top,marginBottom:x("margin")&&x("margin").bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustom}px`:t.columnsHeight};if(P||V){var J,Q,Y,X,ee,te;const e=(0,I.pickBy)({paddingTop:null===(J=x("paddingTablet"))||void 0===J?void 0:J.top,paddingRight:null===(Q=x("paddingTablet"))||void 0===Q?void 0:Q.right,paddingBottom:null===(Y=x("paddingTablet"))||void 0===Y?void 0:Y.bottom,paddingLeft:null===(X=x("paddingTablet"))||void 0===X?void 0:X.left,marginTop:null===(ee=x("marginTablet"))||void 0===ee?void 0:ee.top,marginBottom:null===(te=x("marginTablet"))||void 0===te?void 0:te.bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustomTablet}px`:t.columnsHeight},(e=>e));K=(0,I.merge)(K,e)}if(V){var oe,le,ae,ne,re,ie;const e=(0,I.pickBy)({paddingTop:null===(oe=x("paddingMobile"))||void 0===oe?void 0:oe.top,paddingRight:null===(le=x("paddingMobile"))||void 0===le?void 0:le.right,paddingBottom:null===(ae=x("paddingMobile"))||void 0===ae?void 0:ae.bottom,paddingLeft:null===(ne=x("paddingMobile"))||void 0===ne?void 0:ne.left,marginTop:null===(re=x("marginMobile"))||void 0===re?void 0:re.top,marginBottom:null===(ie=x("marginMobile"))||void 0===ie?void 0:ie.bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustomMobile}px`:t.columnsHeight},(e=>e));K=(0,I.merge)(K,e)}var ce,se,de;"color"===t.backgroundType&&(Z={backgroundColor:t.backgroundColor}),"image"===t.backgroundType&&(Z={backgroundImage:`url( '${null===(ce=t.backgroundImage)||void 0===ce?void 0:ce.url}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:`${Math.round(100*(null===(se=t.backgroundPosition)||void 0===se?void 0:se.x))}% ${Math.round(100*(null===(de=t.backgroundPosition)||void 0===de?void 0:de.y))}%`,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType&&(Z={backgroundImage:t.backgroundGradient}),t.border&&!(0,I.isEmpty)(t.border)&&(U={borderTopWidth:t.border.top,borderRightWidth:t.border.right,borderBottomWidth:t.border.bottom,borderLeftWidth:t.border.left,borderStyle:"solid",borderColor:t.borderColor}),t.borderRadius&&!(0,I.isEmpty)(t.borderRadius)&&(j={borderTopLeftRadius:t.borderRadius.top,borderTopRightRadius:t.borderRadius.right,borderBottomRightRadius:t.borderRadius.bottom,borderBottomLeftRadius:t.borderRadius.left}),!0===t.boxShadow&&(q={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${R()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const me={...K,...Z,...U,...j,...q};var ue,be,pe;"color"===t.backgroundOverlayType&&(W={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(W={backgroundImage:`url( '${null===(ue=t.backgroundOverlayImage)||void 0===ue?void 0:ue.url}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:`${Math.round(100*(null===(be=t.backgroundOverlayPosition)||void 0===be?void 0:be.x))}% ${Math.round(100*(null===(pe=t.backgroundOverlayPosition)||void 0===pe?void 0:pe.y))}%`,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType&&(W={background:t.backgroundOverlayGradient,opacity:t.backgroundOverlayOpacity/100});const ge={...W,...j,mixBlendMode:t.backgroundOverlayBlend,filter:`blur( ${t.backgroundOverlayFilterBlur/10}px ) brightness( ${t.backgroundOverlayFilterBrightness/10} ) contrast( ${t.backgroundOverlayFilterContrast/10} ) grayscale( ${t.backgroundOverlayFilterGrayscale/100} ) hue-rotate( ${t.backgroundOverlayFilterHue}deg ) saturate( ${t.backgroundOverlayFilterSaturate/10} )`};let he={};t.columnsWidth&&(he={maxWidth:t.columnsWidth+"px"});const ke=g()(`has-${t.columns}-columns`,`has-desktop-${t.layout}-layout`,`has-tablet-${t.layoutTablet}-layout`,`has-mobile-${t.layoutMobile}-layout`,`has-vertical-${t.verticalAlign}`,`has-horizontal-${t.horizontalAlign}`,{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},{"has-viewport-desktop":z},{"has-viewport-tablet":P},{"has-viewport-mobile":V}),ve=t.columns?(0,c.useBlockProps)({id:t.id,className:ke,style:me}):(0,c.useBlockProps)();return t.columns?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Zl,{attributes:t,setAttributes:o}),(0,i.createElement)(Ul,{attributes:t,setAttributes:o,getValue:x,updateColumnsWidth:E,dividerViewType:L,setDividerViewType:N,changeColumnsNumbers:e=>{t.columns<e?(0,I.times)(e-t.columns,(()=>{const e=(0,a.createBlock)("themeisle-blocks/advanced-column");e&&w(e,(null==v?void 0:v.length)||0,n,!1)})):t.columns>e&&v.slice(e).forEach((e=>C(e.clientId,!1)))}}),(0,i.createElement)($,ve,(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:ge}),(0,i.createElement)(jl,{type:"top",style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert,width:F,height:G}),(0,i.createElement)("div",{className:"innerblocks-wrap",style:he},(0,i.createElement)(c.InnerBlocks,{allowedBlocks:["themeisle-blocks/advanced-column"],orientation:"horizontal"})),(0,i.createElement)(jl,{type:"bottom",style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert,width:A,height:D}))):(0,i.createElement)("div",ve,(0,i.createElement)(c.__experimentalBlockVariationPicker,{label:(0,l.__)("Section","otter-blocks"),instructions:(0,l.__)("Select a layout to start with, or make one yourself.","otter-blocks"),variations:_,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e&&(d(n,(0,a.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0),o(e.attributes))},allowSkip:!0}))},save:e=>{let{attributes:t}=e;const o=t.columnsHTMLTag,l=t.hide?"":`has-desktop-${t.layout}-layout`,a=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,n=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,r=g()(`has-${t.columns}-columns`,l,a,n,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-vertical-${t.verticalAlign}`),s=c.useBlockProps.save({id:t.id,className:r});return(0,i.createElement)(o,s,(0,i.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,i.createElement)(jl,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,i.createElement)("div",{className:"innerblocks-wrap"},(0,i.createElement)(c.InnerBlocks.Content,null)),(0,i.createElement)(jl,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))},example:{viewportWidth:1e3,attributes:{},innerBlocks:[{name:"themeisle-blocks/advanced-column",attributes:{margin:{right:"10px"}},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,l.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,l.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"themeisle-blocks/advanced-column",attributes:{margin:{left:"10px"}},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,l.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,l.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]}});var Ql=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-column","title":"Section Column","category":"themeisle-blocks","description":"A single column within a Section block. Powered by Otter.","parent":["themeisle-blocks/advanced-columns"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"padding":{"type":"object"},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"margin":{"type":"object"},"marginTablet":{"type":"object"},"marginMobile":{"type":"object"},"backgroundType":{"type":"string","default":"color"},"backgroundColor":{"type":"string"},"backgroundImage":{"type":"object"},"backgroundAttachment":{"type":"string","default":"scroll"},"backgroundPosition":{"type":"object"},"backgroundRepeat":{"type":"string","default":"repeat"},"backgroundSize":{"type":"string","default":"auto"},"backgroundGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"border":{"type":"object"},"borderColor":{"type":"string","default":"#000000"},"borderRadius":{"type":"object"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":0},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"columnsHTMLTag":{"type":"string","default":"div"},"columnWidth":{"type":"string"},"isSynced":{"type":"array"}},"supports":{"inserter":false,"html":false},"editorStyle":"otter-advanced-columns-editor","style":"otter-advanced-columns-style"}');const Yl={id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginRight:{type:"number",default:0},marginRightTablet:{type:"number",default:0},marginRightMobile:{type:"number",default:0},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number",default:0},marginLeftMobile:{type:"number",default:0},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},Xl=[{attributes:Yl,supports:{inserter:!1,reusable:!1,html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,n,r,s;if("color"===t.backgroundType&&(a={background:t.backgroundColor}),"image"===t.backgroundType&&(a={backgroundImage:`url( '${t.backgroundImageURL}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType){let e;e="linear"===t.backgroundGradientType?`${t.backgroundGradientAngle}deg`:`at ${t.backgroundGradientPosition}`,a={background:`${t.backgroundGradientType}-gradient( ${e}, ${t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientFirstLocation}%, ${t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientSecondLocation}% )`}}"linked"===t.borderType&&(n={borderWidth:`${t.border}px`,borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(n={borderTopWidth:`${t.borderTop}px`,borderRightWidth:`${t.borderRight}px`,borderBottomWidth:`${t.borderBottom}px`,borderLeftWidth:`${t.borderLeft}px`,borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(r={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(r={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(s={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${R()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const d={...a,...n,...r,...s};return(0,i.createElement)(l,{className:o,id:t.id,style:d},(0,i.createElement)(c.InnerBlocks.Content,null))}},{attributes:{...Yl,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"}},supports:{inserter:!1,reusable:!1,html:!1},migrate:e=>{let t="";if("gradient"===e.backgroundType){let o="";"linear"===e.backgroundGradientType&&(o=`${e.backgroundGradientAngle}deg, `),t=`${e.backgroundGradientType}-gradient(${o}${R()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${R()(e.backgroundGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}%)`}return{...{...(0,I.omit)(e,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition"]),backgroundGradient:t}}},isEligible:e=>"gradient"===e.backgroundType&&void 0!==e.backgroundGradientFirstColor,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;return(0,i.createElement)(l,{className:o,id:t.id},(0,i.createElement)(c.InnerBlocks.Content,null))}},{attributes:{...(0,I.omit)(Yl,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition"]),paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"},backgroundGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"}},supports:{inserter:!1,reusable:!1,html:!1},migrate:e=>{const t={},o={},l={},a={},n={},r={},i={},c={};let s={},d={};"unlinked"===e.paddingType?(t.top=(0,I.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,I.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,I.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,I.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,I.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,I.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,I.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,I.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,I.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,I.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,I.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,I.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,I.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,I.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,I.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,I.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,I.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,I.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,I.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,I.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,I.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,I.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,I.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,I.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(a.top=(0,I.isUndefined)(e.margin)?"20px":e.margin+"px",a.bottom=(0,I.isUndefined)(e.margin)?"20px":e.margin+"px",a.left=(0,I.isUndefined)(e.margin)?"20px":e.margin+"px",a.right=(0,I.isUndefined)(e.margin)?"20px":e.margin+"px"):(a.top=(0,I.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",a.bottom=(0,I.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px",a.left=(0,I.isUndefined)(e.marginLeft)?"20px":e.marginLeft+"px",a.right=(0,I.isUndefined)(e.marginRight)?"20px":e.marginRight+"px"),"linked"===e.marginTypeTablet?(n.top=(0,I.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",n.bottom=(0,I.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",n.left=(0,I.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",n.right=(0,I.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(n.top=(0,I.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",n.bottom=(0,I.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px",n.left=(0,I.isUndefined)(e.marginLeftTablet)?null:e.marginLeftTablet+"px",n.right=(0,I.isUndefined)(e.marginRightTablet)?null:e.marginRightTablet+"px"),"linked"===e.marginTypeMobile?(r.top=(0,I.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",r.bottom=(0,I.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",r.left=(0,I.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",r.right=(0,I.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(r.top=(0,I.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",r.bottom=(0,I.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px",r.left=(0,I.isUndefined)(e.marginLeftMobile)?null:e.marginLeftMobile+"px",r.right=(0,I.isUndefined)(e.marginRightMobile)?null:e.marginRightMobile+"px"),"unlinked"===e.borderType?(i.top=(0,I.isUndefined)(e.borderTop)?null:e.borderTop+"px",i.bottom=(0,I.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",i.left=(0,I.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",i.right=(0,I.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(i.top=(0,I.isUndefined)(e.border)?null:e.border+"px",i.bottom=(0,I.isUndefined)(e.border)?null:e.border+"px",i.left=(0,I.isUndefined)(e.border)?null:e.border+"px",i.right=(0,I.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(c.top=(0,I.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",c.bottom=(0,I.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",c.left=(0,I.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",c.right=(0,I.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(c.top=(0,I.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",c.bottom=(0,I.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",c.left=(0,I.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",c.right=(0,I.isUndefined)(e.borderRadius)?null:e.borderRadius+"px"),void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID&&(s={id:e.backgroundImageID,url:e.backgroundImageURL});return void 0!==e.backgroundPosition&&(d={"top left":{x:"0.00",y:"0.00"},"top center":{x:"0.50",y:"0.00"},"top right":{x:"1.00",y:"0.00"},"center left":{x:"0.00",y:"0.50"},"center center":{x:"0.50",y:"0.50"},"center right":{x:"1.00",y:"0.50"},"bottom left":{x:"0.00",y:"1.00"},"bottom center":{x:"0.50",y:"1.00"},"bottom right":{x:"1.00",y:"1.00"}}[e.backgroundPosition]),{...{...(0,I.omit)(e,["paddingType","paddingTypeTablet","paddingTypeMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","marginType","marginTypeTablet","marginTypeMobile","marginTop","marginTopTablet","marginTopMobile","marginRight","marginRightTablet","marginRightMobile","marginBottom","marginBottomTablet","marginBottomMobile","marginLeft","marginLeftTablet","marginLeftMobile","borderType","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"]),...!(0,He.FH)(t)&&{padding:t},...!(0,He.FH)(o)&&{paddingTablet:o},...!(0,He.FH)(l)&&{paddingMobile:l},...!(0,He.FH)(a)&&{margin:a},...!(0,He.FH)(n)&&{marginTablet:n},...!(0,He.FH)(r)&&{marginMobile:r},...!(0,He.FH)(i)&&{border:i},...!(0,He.FH)(c)&&{borderRadius:c},...!(0,He.FH)(s)&&{backgroundImage:s},...!(0,He.FH)(d)&&{backgroundPosition:d}}}},isEligible:e=>["padding","paddingTablet","paddingMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","margin","marginTablet","marginMobile","marginTop","marginTopTablet","marginTopMobile","marginRight","marginRightTablet","marginRightMobile","marginBottom","marginBottomTablet","marginBottomMobile","marginLeft","marginLeftTablet","marginLeftMobile","borderType","border","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadius","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"].some((t=>!(0,I.isUndefined)(e[t])&&"number"==typeof e[t]))||void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID||void 0!==e.backgroundPosition&&"object"!=typeof e.backgroundPosition,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;return(0,i.createElement)(l,{className:o,id:t.id},(0,i.createElement)(c.InnerBlocks.Content,null))}}];var ea=Xl,ta=e=>{let{attributes:t,setAttributes:o,getValue:a,parentBlock:n,updateBlockAttributes:r,currentBlockWidth:d,nextBlock:m,nextBlockWidth:u}=e;const b=(0,h.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[p,v]=(0,i.useState)("layout");return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{className:"o-section-header-panel"},(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"layout"===p}),onClick:()=>v("layout")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"editor-table"}),(0,l.__)("Layout","otter-blocks"))),(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"style"===p}),onClick:()=>v("style")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,i.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"advanced"===p}),onClick:()=>v("advanced")},(0,i.createElement)("span",null,(0,i.createElement)(s.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"layout"===p&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Spacing","otter-blocks")},1<n.innerBlocks.length&&(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Column Width","otter-blocks"),value:Number(t.columnWidth),onChange:e=>{const t=e||10,l=Number(d.current)-t+Number(u.current);d.current=t,u.current=l,o({columnWidth:t.toFixed(2)}),r(m.current,{columnWidth:l.toFixed(2)})},step:.1,min:10,max:Number(t.columnWidth)+Number(u.current)-10}),(0,i.createElement)(D.Z,{label:(0,l.__)("Screen Type","otter-blocks"),className:"otter-section-padding-responsive-control"},(0,i.createElement)(k,{field:(()=>{switch(b){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{switch(b){case"Desktop":return a("padding");case"Tablet":return(0,I.merge)({...a("padding")},a("paddingTablet"));case"Mobile":return(0,I.merge)({...a("padding")},a("paddingTablet"),a("paddingMobile"));default:return}})(),inputProps:{min:0,max:500},onChange:e=>{switch((0,He.CJ)(e)&&(e=void 0),b){case"Desktop":return o({padding:e});case"Tablet":return o({paddingTablet:(0,He.cg)(e,t.padding)});case"Mobile":return o({paddingMobile:(0,He.cg)(e,{...t.padding,...t.paddingTablet})});default:return}}})),(0,i.createElement)(k,{field:(()=>{switch(b){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{switch(b){case"Desktop":return a("margin");case"Tablet":return(0,I.merge)({...a("margin")},a("marginTablet"));case"Mobile":return(0,I.merge)({...a("margin")},a("marginTablet"),a("marginMobile"));default:return}})(),inputProps:{min:-500,max:500},onChange:e=>{switch((0,He.CJ)(e)&&(e=void 0),b){case"Desktop":return o({margin:e});case"Tablet":return o({marginTablet:(0,He.cg)(e,t.margin)});case"Mobile":return o({marginMobile:(0,He.cg)(e,{...t.margin,...t.marginTablet})});default:return}}})))))||"style"===p&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Background Settings","otter-blocks")},(0,i.createElement)(Je,{backgroundType:t.backgroundType,backgroundColor:t.backgroundColor,image:t.backgroundImage,gradient:t.backgroundGradient,focalPoint:t.backgroundPosition,backgroundAttachment:t.backgroundAttachment,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize,changeBackgroundType:e=>o({backgroundType:e}),changeImage:e=>{o({backgroundImage:(0,I.pick)(e,["id","url"])})},removeImage:()=>o({backgroundImage:void 0}),changeColor:e=>o({backgroundColor:e}),changeGradient:e=>o({backgroundGradient:e}),changeBackgroundAttachment:e=>o({backgroundAttachment:e}),changeBackgroundRepeat:e=>o({backgroundRepeat:e}),changeFocalPoint:e=>o({backgroundPosition:e}),changeBackgroundSize:e=>o({backgroundSize:e})})),(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1},(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Border Width","otter-blocks"),values:t.border,inputProps:{min:0,max:500},units:[{value:"px",label:"px"}],onChange:e=>{(0,He.CJ)(e)&&(e=void 0),o({border:e})}}),(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}),(0,i.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:t.borderRadius,inputProps:{min:0,max:500},units:[{value:"px",label:"px"},{value:"%",label:"%"}],onChange:e=>{(0,He.CJ)(e)&&(e=void 0),o({borderRadius:e})}}),(0,i.createElement)(s.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:t.boxShadow,onChange:()=>o({boxShadow:!t.boxShadow})}),t.boxShadow&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,i.createElement)(G.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))))||"advanced"===p&&(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Section Settings","otter-blocks")},(0,i.createElement)(s.SelectControl,{label:(0,l.__)("HTML Tag","otter-blocks"),value:t.columnsHTMLTag,options:[{label:(0,l.__)("Default (div)","otter-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>o({columnsHTMLTag:e})})))};const{attributes:oa}=Ql;const{name:la}=Ql;(0,a.registerBlockType)(la,{...Ql,title:(0,l.__)("Section Column","otter-blocks"),description:(0,l.__)("A single column within a Section block. Powered by Otter.","otter-blocks"),icon:r.columnIcon,deprecated:ea,edit:e=>{var t,o,l,a,n,r,s,d;let{name:m,attributes:u,setAttributes:b,isSelected:p,clientId:g}=e;const{updateBlockAttributes:k}=(0,h.useDispatch)("core/block-editor"),{adjacentBlockClientId:v,adjacentBlock:_,parentBlock:f,hasInnerBlocks:w,isViewportAvailable:C,isPreviewDesktop:E,isPreviewTablet:x,isPreviewMobile:T}=(0,h.useSelect)((e=>{const{getAdjacentBlockClientId:t,getBlock:o,getBlockRootClientId:l}=e("core/block-editor"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post"),n=o(g),r=t(g);return{adjacentBlockClientId:r,adjacentBlock:o(r),parentBlock:o(l(g)),hasInnerBlocks:!(!n||!n.innerBlocks.length),isViewportAvailable:!!a,isPreviewDesktop:!!a&&"Desktop"===a(),isPreviewTablet:!!a&&"Tablet"===a(),isPreviewMobile:!!a&&"Mobile"===a()}}),[]),S=(0,O.useViewportMatch)("large",">="),M=(0,O.useViewportMatch)("large","<="),B=(0,O.useViewportMatch)("small",">="),z=(0,O.useViewportMatch)("small","<=");(0,i.useEffect)((()=>{const e=(0,y.blockInit)(g,oa);return()=>e(u.id)}),[u.id]),(0,i.useEffect)((()=>{if(1<f.innerBlocks.length&&!v){const e=f.innerBlocks.findIndex((e=>e.clientId===g)),t=f.innerBlocks[e-1];V.current=t.clientId,L.current=t.attributes.columnWidth}}),[]),(0,i.useEffect)((()=>{if(1<f.innerBlocks.length)if(v)L.current=_.attributes.columnWidth,V.current=v,P.current=u.columnWidth;else{const e=f.innerBlocks.findIndex((e=>e.clientId===g)),t=f.innerBlocks[e-1];L.current=t.attributes.columnWidth,V.current=t.clientId,P.current=u.columnWidth}}),[p,u.columnWidth,f.innerBlocks.length]);const P=(0,i.useRef)(u.columnWidth),V=(0,i.useRef)(v&&v),L=(0,i.useRef)(_&&_.attributes.columnWidth),N=e=>(0,y.getDefaultValueByField)({name:m,field:e,defaultAttributes:oa,attributes:u});let H=S&&!M&&B&&!z,F=!S&&!M&&B&&!z,A=!(S||M||B||z);if(C&&!A&&(H=E,F=x,A=T),void 0===u.columnWidth){const e=f.innerBlocks.findIndex((e=>e.clientId===g)),{columns:t}=f.attributes,{layout:o}=f.attributes;k(g,{columnWidth:$l[t][o][e]})}const G=u.columnsHTMLTag;let D,$,Z,W,U={paddingTop:null===(t=N("padding"))||void 0===t?void 0:t.top,paddingRight:null===(o=N("padding"))||void 0===o?void 0:o.right,paddingBottom:null===(l=N("padding"))||void 0===l?void 0:l.bottom,paddingLeft:null===(a=N("padding"))||void 0===a?void 0:a.left,marginTop:null===(n=N("margin"))||void 0===n?void 0:n.top,marginRight:null===(r=N("margin"))||void 0===r?void 0:r.right,marginBottom:null===(s=N("margin"))||void 0===s?void 0:s.bottom,marginLeft:null===(d=N("margin"))||void 0===d?void 0:d.left};if(F||A){var j,q,K,J,Q,Y,X,ee;const e=(0,I.pickBy)({paddingTop:null===(j=N("paddingTablet"))||void 0===j?void 0:j.top,paddingRight:null===(q=N("paddingTablet"))||void 0===q?void 0:q.right,paddingBottom:null===(K=N("paddingTablet"))||void 0===K?void 0:K.bottom,paddingLeft:null===(J=N("paddingTablet"))||void 0===J?void 0:J.left,marginTop:null===(Q=N("marginTablet"))||void 0===Q?void 0:Q.top,marginRight:null===(Y=N("marginTablet"))||void 0===Y?void 0:Y.right,marginBottom:null===(X=N("marginTablet"))||void 0===X?void 0:X.bottom,marginLeft:null===(ee=N("marginTablet"))||void 0===ee?void 0:ee.left},(e=>e));U=(0,I.merge)(U,e)}if(A){var te,oe,le,ae,ne,re,ie,ce;const e=(0,I.pickBy)({paddingTop:null===(te=N("paddingMobile"))||void 0===te?void 0:te.top,paddingRight:null===(oe=N("paddingMobile"))||void 0===oe?void 0:oe.right,paddingBottom:null===(le=N("paddingMobile"))||void 0===le?void 0:le.bottom,paddingLeft:null===(ae=N("paddingMobile"))||void 0===ae?void 0:ae.left,marginTop:null===(ne=N("marginMobile"))||void 0===ne?void 0:ne.top,marginRight:null===(re=N("marginMobile"))||void 0===re?void 0:re.right,marginBottom:null===(ie=N("marginMobile"))||void 0===ie?void 0:ie.bottom,marginLeft:null===(ce=N("marginMobile"))||void 0===ce?void 0:ce.left},(e=>e));U=(0,I.merge)(U,e)}var se,de,me;"color"===u.backgroundType&&(D={backgroundColor:u.backgroundColor}),"image"===u.backgroundType&&(D={backgroundImage:`url( '${null===(se=u.backgroundImage)||void 0===se?void 0:se.url}' )`,backgroundAttachment:u.backgroundAttachment,backgroundPosition:`${Math.round(100*(null===(de=u.backgroundPosition)||void 0===de?void 0:de.x))}% ${Math.round(100*(null===(me=u.backgroundPosition)||void 0===me?void 0:me.y))}%`,backgroundRepeat:u.backgroundRepeat,backgroundSize:u.backgroundSize}),"gradient"===u.backgroundType&&(D={backgroundImage:u.backgroundGradient}),u.border&&!(0,I.isEmpty)(u.border)&&($={borderTopWidth:u.border.top,borderRightWidth:u.border.right,borderBottomWidth:u.border.bottom,borderLeftWidth:u.border.left,borderStyle:"solid",borderColor:u.borderColor}),u.borderRadius&&!(0,I.isEmpty)(u.borderRadius)&&(Z={borderTopLeftRadius:u.borderRadius.top,borderTopRightRadius:u.borderRadius.right,borderBottomRightRadius:u.borderRadius.bottom,borderBottomLeftRadius:u.borderRadius.left}),!0===u.boxShadow&&(W={boxShadow:`${u.boxShadowHorizontal}px ${u.boxShadowVertical}px ${u.boxShadowBlur}px ${u.boxShadowSpread}px ${R()(u.boxShadowColor?u.boxShadowColor:"#000000",u.boxShadowColorOpacity)}`});const ue={flexBasis:`${u.columnWidth}%`,...U,...D,...$,...Z,...W},be=(0,c.useBlockProps)({id:u.id,style:ue});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(ta,{attributes:u,setAttributes:b,getValue:N,parentBlock:f,updateBlockAttributes:k,currentBlockWidth:P,nextBlock:V,nextBlockWidth:L}),(0,i.createElement)(G,be,(0,i.createElement)(c.InnerBlocks,{templateLock:!1,renderAppender:!w&&c.InnerBlocks.ButtonBlockAppender})))},save:e=>{let{attributes:t}=e;const o=t.columnsHTMLTag,l=c.useBlockProps.save({id:t.id});return(0,i.createElement)(o,l,(0,i.createElement)(c.InnerBlocks.Content,null))}});var aa=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/sharing-icons","title":"Sharing Icons","category":"themeisle-blocks","description":"Share buttons for your website visitors to share content on any social sharing service. Powered by Otter.","keywords":["social media","sharing","icons"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"facebook":{"type":["object","boolean"],"default":{"active":true}},"twitter":{"type":["object","boolean"],"default":{"active":true}},"linkedin":{"type":["object","boolean"],"default":{"active":true}},"pinterest":{"type":["object","boolean"],"default":{"active":false}},"tumblr":{"type":["object","boolean"],"default":{"active":false}},"reddit":{"type":["object","boolean"],"default":{"active":false}},"gap":{"type":"number"},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"}},"styles":[{"name":"default","label":"Regular","isDefault":true},{"name":"icons","label":"Icons Only"}],"supports":{"align":["left","center","right"]},"editorStyle":"otter-sharing-icons-editor","style":"otter-sharing-icons-style"}'),na=e=>{let{icon:t}=e;return"facebook"===t?(0,i.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 264 512"},(0,i.createElement)(s.Path,{fill:"currentColor",d:"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"})):"twitter"===t?(0,i.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,i.createElement)(s.Path,{fill:"currentColor",d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"})):"linkedin"===t?(0,i.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},(0,i.createElement)(s.Path,{fill:"currentColor",d:"M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"})):"pinterest"===t?(0,i.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},(0,i.createElement)(s.Path,{fill:"currentColor",d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"})):"tumblr"===t?(0,i.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},(0,i.createElement)(s.Path,{fill:"currentColor",d:"M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"})):"reddit"===t?(0,i.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,i.createElement)(s.Path,{fill:"currentColor",d:"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"})):(0,i.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,i.createElement)(s.Path,{fill:"currentColor",d:"M208 88.286c0-10 6.286-21.714 17.715-21.714 11.142 0 17.714 11.714 17.714 21.714 0 10.285-6.572 21.714-17.714 21.714C214.286 110 208 98.571 208 88.286zm304 160c0 36.001-11.429 102.286-36.286 129.714-22.858 24.858-87.428 61.143-120.857 70.572l-1.143.286v32.571c0 16.286-12.572 30.571-29.143 30.571-10 0-19.429-5.714-24.572-14.286-5.427 8.572-14.856 14.286-24.856 14.286-10 0-19.429-5.714-24.858-14.286-5.142 8.572-14.571 14.286-24.57 14.286-10.286 0-19.429-5.714-24.858-14.286-5.143 8.572-14.571 14.286-24.571 14.286-18.857 0-29.429-15.714-29.429-32.857-16.286 12.285-35.715 19.428-56.571 19.428-22 0-43.429-8.285-60.286-22.857 10.285-.286 20.571-2.286 30.285-5.714-20.857-5.714-39.428-18.857-52-36.286 21.37 4.645 46.209 1.673 67.143-11.143-22-22-56.571-58.857-68.572-87.428C1.143 321.714 0 303.714 0 289.429c0-49.714 20.286-160 86.286-160 10.571 0 18.857 4.858 23.143 14.857a158.792 158.792 0 0 1 12-15.428c2-2.572 5.714-5.429 7.143-8.286 7.999-12.571 11.714-21.142 21.714-34C182.571 45.428 232 17.143 285.143 17.143c6 0 12 .285 17.714 1.143C313.714 6.571 328.857 0 344.572 0c14.571 0 29.714 6 40 16.286.857.858 1.428 2.286 1.428 3.428 0 3.714-10.285 13.429-12.857 16.286 4.286 1.429 15.714 6.858 15.714 12 0 2.857-2.857 5.143-4.571 7.143 31.429 27.714 49.429 67.143 56.286 108 4.286-5.143 10.285-8.572 17.143-8.572 10.571 0 20.857 7.144 28.571 14.001C507.143 187.143 512 221.714 512 248.286zM188 89.428c0 18.286 12.571 37.143 32.286 37.143 19.714 0 32.285-18.857 32.285-37.143 0-18-12.571-36.857-32.285-36.857-19.715 0-32.286 18.858-32.286 36.857zM237.714 194c0-19.714 3.714-39.143 8.571-58.286-52.039 79.534-13.531 184.571 68.858 184.571 21.428 0 42.571-7.714 60-20 2-7.429 3.714-14.857 3.714-22.572 0-14.286-6.286-21.428-20.572-21.428-4.571 0-9.143.857-13.429 1.714-63.343 12.668-107.142 3.669-107.142-63.999zm-41.142 254.858c0-11.143-8.858-20.857-20.286-20.857-11.429 0-20 9.715-20 20.857v32.571c0 11.143 8.571 21.142 20 21.142 11.428 0 20.286-9.715 20.286-21.142v-32.571zm49.143 0c0-11.143-8.572-20.857-20-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20-10 20-21.142v-32.571zm49.713 0c0-11.143-8.857-20.857-20.285-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20.285-9.715 20.285-21.142v-32.571zm49.715 0c0-11.143-8.857-20.857-20.286-20.857-11.428 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.858 21.142 20.286 21.142 11.429 0 20.286-10 20.286-21.142v-32.571zM421.714 286c-30.857 59.142-90.285 102.572-158.571 102.572-96.571 0-160.571-84.572-160.571-176.572 0-16.857 2-33.429 6-49.714-20 33.715-29.714 72.572-29.714 111.429 0 60.286 24.857 121.715 71.429 160.857 5.143-9.714 14.857-16.286 26-16.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.571-14.286 24.858-14.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.857-14.286 24.858-14.286 10 0 19.428 5.714 24.857 14.286 5.143-8.571 14.571-14.286 24.572-14.286 10.857 0 20.857 6.572 25.714 16 43.427-36.286 68.569-92 71.426-148.286zm10.572-99.714c0-53.714-34.571-105.714-92.572-105.714-30.285 0-58.571 15.143-78.857 36.857C240.862 183.812 233.41 254 302.286 254c28.805 0 97.357-28.538 84.286 36.857 28.857-26 45.714-65.714 45.714-104.571z"}))},ra=e=>{let{attributes:t,setAttributes:o,socialList:a}=e;return(0,i.createElement)(c.BlockControls,null,(0,i.createElement)(s.ToolbarGroup,null,Object.keys(a).map((e=>{var n;const r=null!==(n=t[e].active)&&void 0!==n?n:t[e];return(0,i.createElement)(s.Tooltip,{key:e
12
  /* translators: %s Social Website */,text:(0,l.sprintf)((0,l.__)("Display %s","otter-blocks"),a[e].label)},(0,i.createElement)(s.Button,{className:g()("components-button","wp-block-themeisle-toolbar",{"is-active":r}),onClick:()=>(e=>{const l={...t[e]};l.active=!l.active,o({[e]:{...l}})})(e)},(0,i.createElement)(na,{icon:e})))}))))},ia=e=>{let{attributes:t,setAttributes:o,socialList:a}=e;const n=(e,l,a)=>{const n={...t[l]};n[a]=e,o({[l]:{...n}})};return(0,i.createElement)(c.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Items Gap","otter-blocks"),value:t.gap,onChange:e=>o({gap:e}),allowReset:!0,step:.1,max:100}),(0,i.createElement)(s.RangeControl,{label:(0,l.__)("Icons Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),allowReset:!0,step:.1,max:50})),(0,i.createElement)(c.PanelColorSettings,{title:(0,l.__)("Color Settings"),className:"ott-color-controls",initialOpen:!1,colorSettings:Object.keys(a).reduce(((e,o)=>{var r;return(null!==(r=t[o].active)&&void 0!==r?r:t[o])?[...e,{value:t[o].backgroundColor,onChange:e=>n(e,o,"backgroundColor"),onGradientChange:e=>n(e,o,"backgroundColor")
13
  /* translators: %s Social Website */,label:(0,l.sprintf)((0,l.__)(" %s Background Color","otter-blocks"),a[o].label)},{value:t[o].textColor,onChange:e=>n(e,o,"textColor")