Version Description
Download this release
Release Info
Developer | themeisle |
Plugin | Gutenberg Blocks and Template Library by Otter |
Version | 2.0.6 |
Comparing to | |
See all releases |
Code changes from version 2.0.5 to 2.0.6
- CHANGELOG.md +19 -0
- assets/animate/animate.compact.css +0 -8
- build/animation/blocks/blocks/about-author/block.json +0 -15
- build/animation/blocks/blocks/accordion/group/block.json +0 -38
- build/animation/blocks/blocks/accordion/item/block.json +0 -23
- build/animation/blocks/blocks/advanced-heading/block.json +0 -200
- build/animation/blocks/blocks/button-group/button/block.json +0 -139
- build/animation/blocks/blocks/button-group/group/block.json +0 -52
- build/animation/blocks/blocks/circle-counter/block.json +0 -57
- build/animation/blocks/blocks/countdown/block.json +0 -123
- build/animation/blocks/blocks/flip/block.json +0 -155
- build/animation/blocks/blocks/font-awesome-icons/block.json +0 -80
- build/animation/blocks/blocks/form/block.json +0 -47
- build/animation/blocks/blocks/form/input/block.json +0 -35
- build/animation/blocks/blocks/form/nonce/block.json +0 -19
- build/animation/blocks/blocks/form/textarea/block.json +0 -31
- build/animation/blocks/blocks/google-map/block.json +0 -72
- build/animation/blocks/blocks/icon-list/block.json +0 -57
- build/animation/blocks/blocks/icon-list/item/block.json +0 -34
- build/animation/blocks/blocks/leaflet-map/block.json +0 -58
- build/animation/blocks/blocks/lottie/block.json +0 -57
- build/animation/blocks/blocks/plugin-cards/block.json +0 -20
- build/animation/blocks/blocks/popup/block.json +0 -70
- build/animation/blocks/blocks/posts/block.json +0 -157
- build/animation/blocks/blocks/progress-bar/block.json +0 -57
- build/animation/blocks/blocks/review/block.json +0 -117
- build/animation/blocks/blocks/section/column/block.json +0 -116
- build/animation/blocks/blocks/section/columns/block.json +0 -304
- build/animation/blocks/blocks/sharing-icons/block.json +0 -79
- build/animation/blocks/blocks/slider/block.json +0 -87
- build/animation/blocks/blocks/structural/pricing/block.json +0 -10
- build/animation/blocks/blocks/structural/service/block.json +0 -10
- build/animation/blocks/blocks/structural/testimonials/block.json +0 -10
- build/animation/blocks/blocks/tabs/group/block.json +0 -33
- build/animation/blocks/blocks/tabs/item/block.json +0 -20
- build/animation/index.asset.php +1 -1
- build/animation/index.css +9 -0
- build/animation/pro/blocks/add-to-cart-button/block.json +0 -30
- build/animation/pro/blocks/business-hours/block.json +0 -61
- build/animation/pro/blocks/business-hours/item/block.json +0 -34
- build/animation/pro/blocks/review-comparison/block.json +0 -30
- build/animation/pro/blocks/woo-comparison/block.json +0 -47
- build/animation/pro/woocommerce/add-to-cart/block.json +0 -10
- build/animation/pro/woocommerce/images/block.json +0 -10
- build/animation/pro/woocommerce/meta/block.json +0 -10
- build/animation/pro/woocommerce/price/block.json +0 -10
- build/animation/pro/woocommerce/rating/block.json +0 -10
- build/animation/pro/woocommerce/related-products/block.json +0 -10
- build/animation/pro/woocommerce/short-description/block.json +0 -10
- build/animation/pro/woocommerce/stock/block.json +0 -10
- build/animation/pro/woocommerce/tabs/block.json +0 -10
- build/animation/pro/woocommerce/title/block.json +0 -10
- build/animation/pro/woocommerce/upsells/block.json +0 -10
- build/blocks/advanced-columns/editor.css +1 -1
- build/blocks/advanced-columns/editor.css.map +1 -1
- build/blocks/advanced-heading/editor.css +1 -1
- build/blocks/advanced-heading/editor.css.map +1 -1
- build/blocks/advanced-heading/style.css +1 -1
- build/blocks/advanced-heading/style.css.map +1 -1
- build/blocks/blocks.asset.php +1 -1
- build/blocks/blocks.js +76 -72
CHANGELOG.md
CHANGED
@@ -1,3 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
##### [Version 2.0.5](https://github.com/Codeinwp/otter-blocks/compare/v2.0.4...v2.0.5) (2022-05-27)
|
2 |
|
3 |
- Fix CSS notifications appearing multiple times
|
1 |
+
##### [Version 2.0.6](https://github.com/Codeinwp/otter-blocks/compare/v2.0.5...v2.0.6) (2022-07-01)
|
2 |
+
|
3 |
+
- Redesigned Form Block with new styling and options
|
4 |
+
- Optimize Animations Module
|
5 |
+
- Optimized front-end loading of scripts
|
6 |
+
- New Dynamic Content Extension
|
7 |
+
- Add Local Fonts Module in Otter Pro
|
8 |
+
- Add static background to Maps Block until in loading state
|
9 |
+
- Allow device-based alignment on Button Group Block
|
10 |
+
- Add Full Width option in Button Group Block
|
11 |
+
- Remove Template Library from Otter
|
12 |
+
- Fix Gallery Block not Converting to Slider Block
|
13 |
+
- Fix Sections width not being controlled in Single column
|
14 |
+
- Fix issue with multiple Tabs Blocks not working on the same page
|
15 |
+
- Fix Flip Block width on hover
|
16 |
+
- Fix Advanced Heading block not splitting properly when pressed Enter
|
17 |
+
- Fix alignment not working when Advanced Heading is set to Span
|
18 |
+
- Fix columns not working properly in Posts Block in the Editor mode
|
19 |
+
|
20 |
##### [Version 2.0.5](https://github.com/Codeinwp/otter-blocks/compare/v2.0.4...v2.0.5) (2022-05-27)
|
21 |
|
22 |
- Fix CSS notifications appearing multiple times
|
assets/animate/animate.compact.css
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
|
2 |
-
/*!
|
3 |
-
* animate.css - https://animate.style/
|
4 |
-
* Version - 4.1.1
|
5 |
-
* Licensed under the Hippocratic License 2.1 - http://firstdonoharm.dev
|
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}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/about-author/block.json
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/about-author",
|
5 |
-
"title": "About Author",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "About Author block is the easiest way to add a author bio below your posts. Powered by Otter.",
|
8 |
-
"keywords": [ "about", "author", "profile" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"supports": {
|
11 |
-
"html": false
|
12 |
-
},
|
13 |
-
"editorStyle": "otter-about-author-editor",
|
14 |
-
"style": "otter-about-author-style"
|
15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/accordion/group/block.json
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/accordion",
|
5 |
-
"title": "Accordion",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.",
|
8 |
-
"keywords": [ "accordions", "collapse", "faq" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"gap": {
|
15 |
-
"type": "string"
|
16 |
-
},
|
17 |
-
"titleColor": {
|
18 |
-
"type": "string"
|
19 |
-
},
|
20 |
-
"titleBackground": {
|
21 |
-
"type": "string"
|
22 |
-
},
|
23 |
-
"contentBackground": {
|
24 |
-
"type": "string"
|
25 |
-
},
|
26 |
-
"borderColor": {
|
27 |
-
"type": "string"
|
28 |
-
},
|
29 |
-
"isSynced": {
|
30 |
-
"type": "array"
|
31 |
-
}
|
32 |
-
},
|
33 |
-
"supports": {
|
34 |
-
"html": false
|
35 |
-
},
|
36 |
-
"editorStyle": "otter-accordion-editor",
|
37 |
-
"style": "otter-accordion-style"
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/accordion/item/block.json
DELETED
@@ -1,23 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/accordion-item",
|
5 |
-
"title": "Accordion Item",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.",
|
8 |
-
"keywords": [ "accordions", "collapse", "faq" ],
|
9 |
-
"parent": [ "themeisle-blocks/accordion" ],
|
10 |
-
"textdomain": "otter-blocks",
|
11 |
-
"attributes": {
|
12 |
-
"title": {
|
13 |
-
"type": "string"
|
14 |
-
},
|
15 |
-
"initialOpen": {
|
16 |
-
"type": "boolean",
|
17 |
-
"default": false
|
18 |
-
}
|
19 |
-
},
|
20 |
-
"supports": {
|
21 |
-
"reusable": false
|
22 |
-
}
|
23 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/advanced-heading/block.json
DELETED
@@ -1,200 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/advanced-heading",
|
5 |
-
"title": "Advanced Heading",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Advanced Heading gives a spin to editor's Heading block with much needed customization options. Powered by Otter.",
|
8 |
-
"keywords": [ "heading", "title", "advanced heading" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"content": {
|
15 |
-
"type": "string",
|
16 |
-
"source": "html",
|
17 |
-
"selector": "h1,h2,h3,h4,h5,h6,div,p,span",
|
18 |
-
"default": ""
|
19 |
-
},
|
20 |
-
"tag": {
|
21 |
-
"default": "h2",
|
22 |
-
"type": "string"
|
23 |
-
},
|
24 |
-
"align": {
|
25 |
-
"type": "string"
|
26 |
-
},
|
27 |
-
"alignTablet": {
|
28 |
-
"type": "string"
|
29 |
-
},
|
30 |
-
"alignMobile": {
|
31 |
-
"type": "string"
|
32 |
-
},
|
33 |
-
"headingColor": {
|
34 |
-
"type": "string"
|
35 |
-
},
|
36 |
-
"highlightColor": {
|
37 |
-
"type": "string"
|
38 |
-
},
|
39 |
-
"highlightBackground": {
|
40 |
-
"type": "string"
|
41 |
-
},
|
42 |
-
"fontSize": {
|
43 |
-
"type": "number"
|
44 |
-
},
|
45 |
-
"fontSizeTablet": {
|
46 |
-
"type": "number"
|
47 |
-
},
|
48 |
-
"fontSizeMobile": {
|
49 |
-
"type": "number"
|
50 |
-
},
|
51 |
-
"fontFamily": {
|
52 |
-
"type": "string"
|
53 |
-
},
|
54 |
-
"fontVariant": {
|
55 |
-
"type": "string"
|
56 |
-
},
|
57 |
-
"fontStyle": {
|
58 |
-
"type": "string"
|
59 |
-
},
|
60 |
-
"textTransform": {
|
61 |
-
"type": "string"
|
62 |
-
},
|
63 |
-
"lineHeight": {
|
64 |
-
"type": "number"
|
65 |
-
},
|
66 |
-
"letterSpacing": {
|
67 |
-
"type": "number"
|
68 |
-
},
|
69 |
-
"textShadow": {
|
70 |
-
"type": "boolean",
|
71 |
-
"default": false
|
72 |
-
},
|
73 |
-
"textShadowColor": {
|
74 |
-
"type": "string",
|
75 |
-
"default": "#000000"
|
76 |
-
},
|
77 |
-
"textShadowColorOpacity": {
|
78 |
-
"type": "number",
|
79 |
-
"default": 50
|
80 |
-
},
|
81 |
-
"textShadowBlur": {
|
82 |
-
"type": "number",
|
83 |
-
"default": 5
|
84 |
-
},
|
85 |
-
"textShadowHorizontal": {
|
86 |
-
"type": "number",
|
87 |
-
"default": 0
|
88 |
-
},
|
89 |
-
"textShadowVertical": {
|
90 |
-
"type": "number",
|
91 |
-
"default": 0
|
92 |
-
},
|
93 |
-
"paddingType": {
|
94 |
-
"type": "string",
|
95 |
-
"default": "linked"
|
96 |
-
},
|
97 |
-
"paddingTypeTablet": {
|
98 |
-
"type": "string",
|
99 |
-
"default": "linked"
|
100 |
-
},
|
101 |
-
"paddingTypeMobile": {
|
102 |
-
"type": "string",
|
103 |
-
"default": "linked"
|
104 |
-
},
|
105 |
-
"padding": {
|
106 |
-
"type": "number",
|
107 |
-
"default": 0
|
108 |
-
},
|
109 |
-
"paddingTablet": {
|
110 |
-
"type": "number"
|
111 |
-
},
|
112 |
-
"paddingMobile": {
|
113 |
-
"type": "number"
|
114 |
-
},
|
115 |
-
"paddingTop": {
|
116 |
-
"type": "number",
|
117 |
-
"default": 0
|
118 |
-
},
|
119 |
-
"paddingTopTablet": {
|
120 |
-
"type": "number"
|
121 |
-
},
|
122 |
-
"paddingTopMobile": {
|
123 |
-
"type": "number"
|
124 |
-
},
|
125 |
-
"paddingRight": {
|
126 |
-
"type": "number",
|
127 |
-
"default": 0
|
128 |
-
},
|
129 |
-
"paddingRightTablet": {
|
130 |
-
"type": "number"
|
131 |
-
},
|
132 |
-
"paddingRightMobile": {
|
133 |
-
"type": "number"
|
134 |
-
},
|
135 |
-
"paddingBottom": {
|
136 |
-
"type": "number",
|
137 |
-
"default": 0
|
138 |
-
},
|
139 |
-
"paddingBottomTablet": {
|
140 |
-
"type": "number"
|
141 |
-
},
|
142 |
-
"paddingBottomMobile": {
|
143 |
-
"type": "number"
|
144 |
-
},
|
145 |
-
"paddingLeft": {
|
146 |
-
"type": "number",
|
147 |
-
"default": 0
|
148 |
-
},
|
149 |
-
"paddingLeftTablet": {
|
150 |
-
"type": "number"
|
151 |
-
},
|
152 |
-
"paddingLeftMobile": {
|
153 |
-
"type": "number"
|
154 |
-
},
|
155 |
-
"marginType": {
|
156 |
-
"type": "string",
|
157 |
-
"default": "unlinked"
|
158 |
-
},
|
159 |
-
"marginTypeTablet": {
|
160 |
-
"type": "string",
|
161 |
-
"default": "unlinked"
|
162 |
-
},
|
163 |
-
"marginTypeMobile": {
|
164 |
-
"type": "string",
|
165 |
-
"default": "unlinked"
|
166 |
-
},
|
167 |
-
"margin": {
|
168 |
-
"type": "number",
|
169 |
-
"default": 0
|
170 |
-
},
|
171 |
-
"marginTablet": {
|
172 |
-
"type": "number"
|
173 |
-
},
|
174 |
-
"marginMobile": {
|
175 |
-
"type": "number"
|
176 |
-
},
|
177 |
-
"marginTop": {
|
178 |
-
"type": "number",
|
179 |
-
"default": 0
|
180 |
-
},
|
181 |
-
"marginTopTablet": {
|
182 |
-
"type": "number"
|
183 |
-
},
|
184 |
-
"marginTopMobile": {
|
185 |
-
"type": "number"
|
186 |
-
},
|
187 |
-
"marginBottom": {
|
188 |
-
"type": "number",
|
189 |
-
"default": 25
|
190 |
-
},
|
191 |
-
"marginBottomTablet": {
|
192 |
-
"type": "number"
|
193 |
-
},
|
194 |
-
"marginBottomMobile": {
|
195 |
-
"type": "number"
|
196 |
-
}
|
197 |
-
},
|
198 |
-
"editorStyle": "otter-advanced-heading-editor",
|
199 |
-
"style": "otter-advanced-heading-style"
|
200 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/button-group/button/block.json
DELETED
@@ -1,139 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/button",
|
5 |
-
"title": "Button",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Prompt visitors to take action with a button group. Powered by Otter.",
|
8 |
-
"keywords": [ "button", "buttons", "button group" ],
|
9 |
-
"parent": [ "themeisle-blocks/button-group" ],
|
10 |
-
"textdomain": "otter-blocks",
|
11 |
-
"attributes": {
|
12 |
-
"id": {
|
13 |
-
"type": "string"
|
14 |
-
},
|
15 |
-
"text": {
|
16 |
-
"type": "string",
|
17 |
-
"source": "html",
|
18 |
-
"selector": "span"
|
19 |
-
},
|
20 |
-
"link": {
|
21 |
-
"type": "string",
|
22 |
-
"source": "attribute",
|
23 |
-
"selector": "a",
|
24 |
-
"attribute": "href"
|
25 |
-
},
|
26 |
-
"newTab": {
|
27 |
-
"type": "boolean",
|
28 |
-
"default": false
|
29 |
-
},
|
30 |
-
"color": {
|
31 |
-
"type": "string"
|
32 |
-
},
|
33 |
-
"background": {
|
34 |
-
"type": "string"
|
35 |
-
},
|
36 |
-
"backgroundGradient": {
|
37 |
-
"type": "string"
|
38 |
-
},
|
39 |
-
"border": {
|
40 |
-
"type": "string"
|
41 |
-
},
|
42 |
-
"hoverColor": {
|
43 |
-
"type": "string"
|
44 |
-
},
|
45 |
-
"hoverBackground": {
|
46 |
-
"type": "string"
|
47 |
-
},
|
48 |
-
"hoverBackgroundGradient": {
|
49 |
-
"type": "string"
|
50 |
-
},
|
51 |
-
"hoverBorder": {
|
52 |
-
"type": "string"
|
53 |
-
},
|
54 |
-
"borderSize": {
|
55 |
-
"type": "number"
|
56 |
-
},
|
57 |
-
"borderRadius": {
|
58 |
-
"type": "number"
|
59 |
-
},
|
60 |
-
"boxShadow": {
|
61 |
-
"type": "boolean",
|
62 |
-
"default": false
|
63 |
-
},
|
64 |
-
"boxShadowColor": {
|
65 |
-
"type": "string"
|
66 |
-
},
|
67 |
-
"boxShadowColorOpacity": {
|
68 |
-
"type": "number",
|
69 |
-
"default": 50
|
70 |
-
},
|
71 |
-
"boxShadowBlur": {
|
72 |
-
"type": "number",
|
73 |
-
"default": 5
|
74 |
-
},
|
75 |
-
"boxShadowSpread": {
|
76 |
-
"type": "number",
|
77 |
-
"default": 1
|
78 |
-
},
|
79 |
-
"boxShadowHorizontal": {
|
80 |
-
"type": "number",
|
81 |
-
"default": 0
|
82 |
-
},
|
83 |
-
"boxShadowVertical": {
|
84 |
-
"type": "number",
|
85 |
-
"default": 0
|
86 |
-
},
|
87 |
-
"hoverBoxShadowColor": {
|
88 |
-
"type": "string"
|
89 |
-
},
|
90 |
-
"hoverBoxShadowColorOpacity": {
|
91 |
-
"type": "number",
|
92 |
-
"default": 50
|
93 |
-
},
|
94 |
-
"hoverBoxShadowBlur": {
|
95 |
-
"type": "number",
|
96 |
-
"default": 5
|
97 |
-
},
|
98 |
-
"hoverBoxShadowSpread": {
|
99 |
-
"type": "number",
|
100 |
-
"default": 1
|
101 |
-
},
|
102 |
-
"hoverBoxShadowHorizontal": {
|
103 |
-
"type": "number",
|
104 |
-
"default": 0
|
105 |
-
},
|
106 |
-
"hoverBoxShadowVertical": {
|
107 |
-
"type": "number",
|
108 |
-
"default": 0
|
109 |
-
},
|
110 |
-
"iconType": {
|
111 |
-
"type": "string",
|
112 |
-
"default": "none"
|
113 |
-
},
|
114 |
-
"library": {
|
115 |
-
"type": "string",
|
116 |
-
"default": "fontawesome"
|
117 |
-
},
|
118 |
-
"prefix": {
|
119 |
-
"type": "string"
|
120 |
-
},
|
121 |
-
"icon": {
|
122 |
-
"type": "string"
|
123 |
-
}
|
124 |
-
},
|
125 |
-
"supports": {
|
126 |
-
"reusable": false
|
127 |
-
},
|
128 |
-
"styles": [
|
129 |
-
{
|
130 |
-
"name": "fill",
|
131 |
-
"label": "Fill",
|
132 |
-
"isDefault": true
|
133 |
-
},
|
134 |
-
{
|
135 |
-
"name": "outline",
|
136 |
-
"label": "Outline"
|
137 |
-
}
|
138 |
-
]
|
139 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/button-group/group/block.json
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/button-group",
|
5 |
-
"title": "Button Group",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Prompt visitors to take action with a button group. Powered by Otter.",
|
8 |
-
"keywords": [ "button", "buttons", "button group" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"align": {
|
15 |
-
"type": "string"
|
16 |
-
},
|
17 |
-
"spacing": {
|
18 |
-
"type": "number",
|
19 |
-
"default": 20
|
20 |
-
},
|
21 |
-
"paddingTopBottom": {
|
22 |
-
"type": "number"
|
23 |
-
},
|
24 |
-
"paddingLeftRight": {
|
25 |
-
"type": "number"
|
26 |
-
},
|
27 |
-
"collapse": {
|
28 |
-
"type": "string",
|
29 |
-
"default": "collapse-none"
|
30 |
-
},
|
31 |
-
"fontSize": {
|
32 |
-
"type": "number"
|
33 |
-
},
|
34 |
-
"fontFamily": {
|
35 |
-
"type": "string"
|
36 |
-
},
|
37 |
-
"fontVariant": {
|
38 |
-
"type": "string"
|
39 |
-
},
|
40 |
-
"textTransform": {
|
41 |
-
"type": "string"
|
42 |
-
},
|
43 |
-
"fontStyle": {
|
44 |
-
"type": "string"
|
45 |
-
},
|
46 |
-
"lineHeight": {
|
47 |
-
"type": "number"
|
48 |
-
}
|
49 |
-
},
|
50 |
-
"editorStyle": "otter-button-group-editor",
|
51 |
-
"style": "otter-button-group-style"
|
52 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/circle-counter/block.json
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/circle-counter",
|
5 |
-
"title": "Circle Counter",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Show your progress with a beautiful Circle Counter block. Powered by Otter.",
|
8 |
-
"keywords": [ "progress", "circle", "counter" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"title": {
|
15 |
-
"type": "string",
|
16 |
-
"default": "Skill"
|
17 |
-
},
|
18 |
-
"percentage": {
|
19 |
-
"type": "number",
|
20 |
-
"default": 50
|
21 |
-
},
|
22 |
-
"duration": {
|
23 |
-
"type": "number",
|
24 |
-
"default": 2
|
25 |
-
},
|
26 |
-
"titleStyle": {
|
27 |
-
"type": "string",
|
28 |
-
"default": "default"
|
29 |
-
},
|
30 |
-
"height": {
|
31 |
-
"type": "number",
|
32 |
-
"default": 100
|
33 |
-
},
|
34 |
-
"fontSizeTitle": {
|
35 |
-
"type": "number"
|
36 |
-
},
|
37 |
-
"fontSizePercent": {
|
38 |
-
"type": "number"
|
39 |
-
},
|
40 |
-
"strokeWidth": {
|
41 |
-
"type": "number",
|
42 |
-
"default": 10
|
43 |
-
},
|
44 |
-
"backgroundColor": {
|
45 |
-
"type": "string"
|
46 |
-
},
|
47 |
-
"progressColor": {
|
48 |
-
"type": "string"
|
49 |
-
},
|
50 |
-
"titleColor": {
|
51 |
-
"type": "string"
|
52 |
-
}
|
53 |
-
},
|
54 |
-
"editorStyle": "otter-circle-counter-editor",
|
55 |
-
"style": "otter-circle-counter-style",
|
56 |
-
"script": "otter-circle-counter"
|
57 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/countdown/block.json
DELETED
@@ -1,123 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/countdown",
|
5 |
-
"title": "Countdown",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Set a countdown for a date. Powered by Otter.",
|
8 |
-
"keywords": [ "countdown", "time", "counter" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"date": {
|
15 |
-
"type": "string"
|
16 |
-
},
|
17 |
-
"exclude": {
|
18 |
-
"type": "array"
|
19 |
-
},
|
20 |
-
"backgroundColor": {
|
21 |
-
"type": "string"
|
22 |
-
},
|
23 |
-
"valueColor": {
|
24 |
-
"type": "string"
|
25 |
-
},
|
26 |
-
"labelColor": {
|
27 |
-
"type": "string"
|
28 |
-
},
|
29 |
-
"labelDistance": {
|
30 |
-
"type": "number"
|
31 |
-
},
|
32 |
-
"gap": {
|
33 |
-
"type": "number"
|
34 |
-
},
|
35 |
-
"gapTablet": {
|
36 |
-
"type": "number"
|
37 |
-
},
|
38 |
-
"gapMobile": {
|
39 |
-
"type": "number"
|
40 |
-
},
|
41 |
-
"width": {
|
42 |
-
"type": "number"
|
43 |
-
},
|
44 |
-
"widthTablet": {
|
45 |
-
"type": "number"
|
46 |
-
},
|
47 |
-
"widthMobile": {
|
48 |
-
"type": "number"
|
49 |
-
},
|
50 |
-
"height": {
|
51 |
-
"type": "number"
|
52 |
-
},
|
53 |
-
"heightTablet": {
|
54 |
-
"type": "number"
|
55 |
-
},
|
56 |
-
"heightMobile": {
|
57 |
-
"type": "number"
|
58 |
-
},
|
59 |
-
"borderRadius": {
|
60 |
-
"type": "number",
|
61 |
-
"default": 0
|
62 |
-
},
|
63 |
-
"borderRadiusType": {
|
64 |
-
"type": "string",
|
65 |
-
"default": "linked"
|
66 |
-
},
|
67 |
-
"borderRadiusTopRight": {
|
68 |
-
"type": "number",
|
69 |
-
"default": 0
|
70 |
-
},
|
71 |
-
"borderRadiusTopLeft": {
|
72 |
-
"type": "number",
|
73 |
-
"default": 0
|
74 |
-
},
|
75 |
-
"borderRadiusBottomRight": {
|
76 |
-
"type": "number",
|
77 |
-
"default": 0
|
78 |
-
},
|
79 |
-
"borderRadiusBottomLeft": {
|
80 |
-
"type": "number",
|
81 |
-
"default": 0
|
82 |
-
},
|
83 |
-
"borderWidth": {
|
84 |
-
"type": "number"
|
85 |
-
},
|
86 |
-
"borderWidthTablet": {
|
87 |
-
"type": "number"
|
88 |
-
},
|
89 |
-
"borderWidthMobile": {
|
90 |
-
"type": "number"
|
91 |
-
},
|
92 |
-
"borderColor": {
|
93 |
-
"type": "string"
|
94 |
-
},
|
95 |
-
"valueFontSize": {
|
96 |
-
"type": "number"
|
97 |
-
},
|
98 |
-
"valueFontSizeTablet": {
|
99 |
-
"type": "number"
|
100 |
-
},
|
101 |
-
"valueFontSizeMobile": {
|
102 |
-
"type": "number"
|
103 |
-
},
|
104 |
-
"labelFontSize": {
|
105 |
-
"type": "number"
|
106 |
-
},
|
107 |
-
"labelFontSizeTablet": {
|
108 |
-
"type": "number"
|
109 |
-
},
|
110 |
-
"labelFontSizeMobile": {
|
111 |
-
"type": "number"
|
112 |
-
},
|
113 |
-
"hasSeparators": {
|
114 |
-
"type": "boolean"
|
115 |
-
}
|
116 |
-
},
|
117 |
-
"supports": {
|
118 |
-
"align": [ "wide", "full" ]
|
119 |
-
},
|
120 |
-
"editorStyle": "otter-countdown-editor",
|
121 |
-
"style": "otter-countdown-style",
|
122 |
-
"script": "otter-countdown"
|
123 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/flip/block.json
DELETED
@@ -1,155 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/flip",
|
5 |
-
"title": "Flip Card",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Make a card with a flip effect. Powered by Otter.",
|
8 |
-
"keywords": [ "flip card", "container", "animation" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"isInverted": {
|
15 |
-
"type": "boolean"
|
16 |
-
},
|
17 |
-
"title": {
|
18 |
-
"type": "string"
|
19 |
-
},
|
20 |
-
"description": {
|
21 |
-
"type": "string"
|
22 |
-
},
|
23 |
-
"animType": {
|
24 |
-
"type": "string",
|
25 |
-
"default": "flipY"
|
26 |
-
},
|
27 |
-
"width": {
|
28 |
-
"type": "number"
|
29 |
-
},
|
30 |
-
"height": {
|
31 |
-
"type": "number"
|
32 |
-
},
|
33 |
-
"padding": {
|
34 |
-
"type": "number"
|
35 |
-
},
|
36 |
-
"borderWidth": {
|
37 |
-
"type": "number"
|
38 |
-
},
|
39 |
-
"borderColor": {
|
40 |
-
"type": "string"
|
41 |
-
},
|
42 |
-
"borderRadius": {
|
43 |
-
"type": "number"
|
44 |
-
},
|
45 |
-
"backgroundColor": {
|
46 |
-
"type": "string"
|
47 |
-
},
|
48 |
-
"frontVerticalAlign": {
|
49 |
-
"type": "string"
|
50 |
-
},
|
51 |
-
"frontHorizontalAlign": {
|
52 |
-
"type": "string"
|
53 |
-
},
|
54 |
-
"backVerticalAlign": {
|
55 |
-
"type": "string"
|
56 |
-
},
|
57 |
-
"frontMedia": {
|
58 |
-
"type": "object"
|
59 |
-
},
|
60 |
-
"frontMediaWidth": {
|
61 |
-
"type": "number"
|
62 |
-
},
|
63 |
-
"frontMediaHeight": {
|
64 |
-
"type": "number"
|
65 |
-
},
|
66 |
-
"frontBackgroundImage": {
|
67 |
-
"type": "object"
|
68 |
-
},
|
69 |
-
"frontBackgroundType": {
|
70 |
-
"type": "string",
|
71 |
-
"default": "color"
|
72 |
-
},
|
73 |
-
"frontBackgroundColor": {
|
74 |
-
"type": "string"
|
75 |
-
},
|
76 |
-
"frontBackgroundGradient": {
|
77 |
-
"type": "string"
|
78 |
-
},
|
79 |
-
"frontBackgroundPosition": {
|
80 |
-
"type": "object"
|
81 |
-
},
|
82 |
-
"frontBackgroundRepeat": {
|
83 |
-
"type": "string"
|
84 |
-
},
|
85 |
-
"frontBackgroundAttachment": {
|
86 |
-
"type": "string"
|
87 |
-
},
|
88 |
-
"frontBackgroundSize": {
|
89 |
-
"type": "string"
|
90 |
-
},
|
91 |
-
"backBackgroundImage": {
|
92 |
-
"type": "object"
|
93 |
-
},
|
94 |
-
"backBackgroundType": {
|
95 |
-
"type": "string",
|
96 |
-
"default": "color"
|
97 |
-
},
|
98 |
-
"backBackgroundColor": {
|
99 |
-
"type": "string"
|
100 |
-
},
|
101 |
-
"backBackgroundGradient": {
|
102 |
-
"type": "string"
|
103 |
-
},
|
104 |
-
"backBackgroundPosition": {
|
105 |
-
"type": "object"
|
106 |
-
},
|
107 |
-
"backBackgroundRepeat": {
|
108 |
-
"type": "string"
|
109 |
-
},
|
110 |
-
"backBackgroundSize": {
|
111 |
-
"type": "string"
|
112 |
-
},
|
113 |
-
"backBackgroundAttachment": {
|
114 |
-
"type": "string"
|
115 |
-
},
|
116 |
-
"boxShadow": {
|
117 |
-
"type": "boolean",
|
118 |
-
"default": false
|
119 |
-
},
|
120 |
-
"boxShadowColor": {
|
121 |
-
"type": "string",
|
122 |
-
"default": "#000000"
|
123 |
-
},
|
124 |
-
"boxShadowColorOpacity": {
|
125 |
-
"type": "number",
|
126 |
-
"default": 50
|
127 |
-
},
|
128 |
-
"boxShadowBlur": {
|
129 |
-
"type": "number",
|
130 |
-
"default": 5
|
131 |
-
},
|
132 |
-
"boxShadowHorizontal": {
|
133 |
-
"type": "number",
|
134 |
-
"default": 0
|
135 |
-
},
|
136 |
-
"boxShadowVertical": {
|
137 |
-
"type": "number",
|
138 |
-
"default": 0
|
139 |
-
},
|
140 |
-
"titleFontSize": {
|
141 |
-
"type": "number"
|
142 |
-
},
|
143 |
-
"descriptionFontSize": {
|
144 |
-
"type": "number"
|
145 |
-
},
|
146 |
-
"titleColor": {
|
147 |
-
"type": "string"
|
148 |
-
},
|
149 |
-
"descriptionColor": {
|
150 |
-
"type": "string"
|
151 |
-
}
|
152 |
-
},
|
153 |
-
"editorStyle": "otter-flip-editor",
|
154 |
-
"style": "otter-flip-style"
|
155 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/font-awesome-icons/block.json
DELETED
@@ -1,80 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/font-awesome-icons",
|
5 |
-
"title": "Icon",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Add icons from Font Awesome or ThemeIsle Icons library to your website. Powered by Otter.",
|
8 |
-
"keywords": [ "font awesome", "dashicons", "icons" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"align": {
|
15 |
-
"type": "string"
|
16 |
-
},
|
17 |
-
"library": {
|
18 |
-
"type": "string",
|
19 |
-
"default": "fontawesome"
|
20 |
-
},
|
21 |
-
"prefix": {
|
22 |
-
"type": "string",
|
23 |
-
"default": "fab"
|
24 |
-
},
|
25 |
-
"icon": {
|
26 |
-
"type": "string",
|
27 |
-
"default": "themeisle"
|
28 |
-
},
|
29 |
-
"link": {
|
30 |
-
"type": "string"
|
31 |
-
},
|
32 |
-
"newTab": {
|
33 |
-
"type": "boolean",
|
34 |
-
"default": false
|
35 |
-
},
|
36 |
-
"fontSize": {
|
37 |
-
"type": "number",
|
38 |
-
"default": 16
|
39 |
-
},
|
40 |
-
"padding": {
|
41 |
-
"type": "number",
|
42 |
-
"default": 5
|
43 |
-
},
|
44 |
-
"margin": {
|
45 |
-
"type": "number",
|
46 |
-
"default": 5
|
47 |
-
},
|
48 |
-
"backgroundColor": {
|
49 |
-
"type": "string"
|
50 |
-
},
|
51 |
-
"textColor": {
|
52 |
-
"type": "string"
|
53 |
-
},
|
54 |
-
"borderColor": {
|
55 |
-
"type": "string"
|
56 |
-
},
|
57 |
-
"backgroundColorHover": {
|
58 |
-
"type": "string"
|
59 |
-
},
|
60 |
-
"textColorHover": {
|
61 |
-
"type": "string"
|
62 |
-
},
|
63 |
-
"borderColorHover": {
|
64 |
-
"type": "string"
|
65 |
-
},
|
66 |
-
"borderSize": {
|
67 |
-
"type": "number",
|
68 |
-
"default": 0
|
69 |
-
},
|
70 |
-
"borderRadius": {
|
71 |
-
"type": "number",
|
72 |
-
"default": 0
|
73 |
-
},
|
74 |
-
"isSynced": {
|
75 |
-
"type": "array"
|
76 |
-
}
|
77 |
-
},
|
78 |
-
"editorStyle": "otter-font-awesome-editor",
|
79 |
-
"style": "otter-font-awesome-style"
|
80 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/form/block.json
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/form",
|
5 |
-
"title": "Form",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Display a form for your clients. Powered by Otter.",
|
8 |
-
"keywords": [ "business", "form", "email" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"subject": {
|
15 |
-
"type": "string"
|
16 |
-
},
|
17 |
-
"emailTo": {
|
18 |
-
"type": "string"
|
19 |
-
},
|
20 |
-
"optionName": {
|
21 |
-
"type": "string"
|
22 |
-
},
|
23 |
-
"hasCaptcha": {
|
24 |
-
"type": "boolean"
|
25 |
-
},
|
26 |
-
"provider": {
|
27 |
-
"type": "string",
|
28 |
-
"default": ""
|
29 |
-
},
|
30 |
-
"apiKey": {
|
31 |
-
"type": "string"
|
32 |
-
},
|
33 |
-
"listId": {
|
34 |
-
"type": "string"
|
35 |
-
},
|
36 |
-
"action": {
|
37 |
-
"type": "string",
|
38 |
-
"default": "subscribe"
|
39 |
-
}
|
40 |
-
},
|
41 |
-
"supports": {
|
42 |
-
"align": [ "wide", "full" ]
|
43 |
-
},
|
44 |
-
"editorStyle": "otter-form-editor",
|
45 |
-
"style": "otter-form-style",
|
46 |
-
"script": "otter-form"
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/form/input/block.json
DELETED
@@ -1,35 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/form-input",
|
5 |
-
"title": "Text Field",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Display a contact form for your clients.",
|
8 |
-
"keywords": [ "input", "text", "email" ],
|
9 |
-
"parent": [ "themeisle-blocks/form" ],
|
10 |
-
"textdomain": "otter-blocks",
|
11 |
-
"attributes": {
|
12 |
-
"id": {
|
13 |
-
"type": "string"
|
14 |
-
},
|
15 |
-
"type": {
|
16 |
-
"type": "string",
|
17 |
-
"default": "text"
|
18 |
-
},
|
19 |
-
"label": {
|
20 |
-
"type": "string"
|
21 |
-
},
|
22 |
-
"placeholder": {
|
23 |
-
"type": "string"
|
24 |
-
},
|
25 |
-
"isRequired": {
|
26 |
-
"type": "boolean"
|
27 |
-
},
|
28 |
-
"mappedName": {
|
29 |
-
"type": "string"
|
30 |
-
}
|
31 |
-
},
|
32 |
-
"supports": {
|
33 |
-
"align": [ "wide", "full" ]
|
34 |
-
}
|
35 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/form/nonce/block.json
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/form-nonce",
|
5 |
-
"title": "Nonce Field",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Protect the form from CSRF.",
|
8 |
-
"keywords": [ "protection", "csrf", "field" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"formId": {
|
12 |
-
"type": "string"
|
13 |
-
}
|
14 |
-
},
|
15 |
-
"supports": {
|
16 |
-
"align": [ "wide", "full" ],
|
17 |
-
"inserter": false
|
18 |
-
}
|
19 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/form/textarea/block.json
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/form-textarea",
|
5 |
-
"title": "Textarea Field",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Display a contact form for your clients.",
|
8 |
-
"keywords": [ "textarea", "message", "input" ],
|
9 |
-
"parent": [ "themeisle-blocks/form" ],
|
10 |
-
"textdomain": "otter-blocks",
|
11 |
-
"attributes": {
|
12 |
-
"id": {
|
13 |
-
"type": "string"
|
14 |
-
},
|
15 |
-
"label": {
|
16 |
-
"type": "string"
|
17 |
-
},
|
18 |
-
"placeholder": {
|
19 |
-
"type": "string"
|
20 |
-
},
|
21 |
-
"isRequired": {
|
22 |
-
"type": "boolean"
|
23 |
-
},
|
24 |
-
"mappedName": {
|
25 |
-
"type": "string"
|
26 |
-
}
|
27 |
-
},
|
28 |
-
"supports": {
|
29 |
-
"align": [ "wide", "full" ]
|
30 |
-
}
|
31 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/google-map/block.json
DELETED
@@ -1,72 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/google-map",
|
5 |
-
"title": "Google Maps",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Display Google Maps on your website with Google Map block. Powered by Otter.",
|
8 |
-
"keywords": [ "map", "google", "orbitfox" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"style": {
|
15 |
-
"type": "string",
|
16 |
-
"default": "standard"
|
17 |
-
},
|
18 |
-
"location": {
|
19 |
-
"type": "string",
|
20 |
-
"default": "La Sagrada Familia, Barcelona, Spain"
|
21 |
-
},
|
22 |
-
"latitude": {
|
23 |
-
"type": "string"
|
24 |
-
},
|
25 |
-
"longitude": {
|
26 |
-
"type": "string"
|
27 |
-
},
|
28 |
-
"type": {
|
29 |
-
"type": "string",
|
30 |
-
"default": "roadmap"
|
31 |
-
},
|
32 |
-
"zoom": {
|
33 |
-
"type": "number",
|
34 |
-
"default": 15
|
35 |
-
},
|
36 |
-
"height": {
|
37 |
-
"type": "number",
|
38 |
-
"default": 400
|
39 |
-
},
|
40 |
-
"draggable": {
|
41 |
-
"type": "boolean",
|
42 |
-
"default": true
|
43 |
-
},
|
44 |
-
"mapTypeControl": {
|
45 |
-
"type": "boolean",
|
46 |
-
"default": true
|
47 |
-
},
|
48 |
-
"zoomControl": {
|
49 |
-
"type": "boolean",
|
50 |
-
"default": true
|
51 |
-
},
|
52 |
-
"fullscreenControl": {
|
53 |
-
"type": "boolean",
|
54 |
-
"default": true
|
55 |
-
},
|
56 |
-
"streetViewControl": {
|
57 |
-
"type": "boolean",
|
58 |
-
"default": true
|
59 |
-
},
|
60 |
-
"markers": {
|
61 |
-
"type": "array",
|
62 |
-
"default": []
|
63 |
-
}
|
64 |
-
},
|
65 |
-
"supports": {
|
66 |
-
"align": [ "wide", "full" ],
|
67 |
-
"html": false
|
68 |
-
},
|
69 |
-
"editorStyle": "otter-google-map-editor",
|
70 |
-
"style": "otter-google-map-style",
|
71 |
-
"script": "google-maps"
|
72 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/icon-list/block.json
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/icon-list",
|
5 |
-
"title": "Icon List",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Display an icon list in a beautiful layout. Powered by Otter.",
|
8 |
-
"keywords": [ "icon", "list", "items" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"defaultLibrary": {
|
15 |
-
"type": "string",
|
16 |
-
"default": "fontawesome"
|
17 |
-
},
|
18 |
-
"defaultIconPrefix": {
|
19 |
-
"type": "string",
|
20 |
-
"default": "fas"
|
21 |
-
},
|
22 |
-
"defaultIcon": {
|
23 |
-
"type": "string",
|
24 |
-
"default": "angle-right"
|
25 |
-
},
|
26 |
-
"defaultContentColor": {
|
27 |
-
"type": "string"
|
28 |
-
},
|
29 |
-
"defaultIconColor": {
|
30 |
-
"type": "string"
|
31 |
-
},
|
32 |
-
"defaultSize": {
|
33 |
-
"type": "number",
|
34 |
-
"default": 20
|
35 |
-
},
|
36 |
-
"gap": {
|
37 |
-
"type": "number",
|
38 |
-
"default": 5
|
39 |
-
},
|
40 |
-
"horizontalAlign": {
|
41 |
-
"type": "string"
|
42 |
-
}
|
43 |
-
},
|
44 |
-
"styles": [
|
45 |
-
{
|
46 |
-
"name": "vertical",
|
47 |
-
"label": "Vertical",
|
48 |
-
"isDefault": true
|
49 |
-
},
|
50 |
-
{
|
51 |
-
"name": "horizontal",
|
52 |
-
"label": "Horizontal"
|
53 |
-
}
|
54 |
-
],
|
55 |
-
"editorStyle": "otter-icon-list-editor",
|
56 |
-
"style": "otter-icon-list-style"
|
57 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/icon-list/item/block.json
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/icon-list-item",
|
5 |
-
"title": "Icon List Item",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Display an item for the icon list. Powered by Otter.",
|
8 |
-
"keywords": [ "icon", "list", "items" ],
|
9 |
-
"parent": [ "themeisle-blocks/icon-list" ],
|
10 |
-
"textdomain": "otter-blocks",
|
11 |
-
"attributes": {
|
12 |
-
"id": {
|
13 |
-
"type": "string"
|
14 |
-
},
|
15 |
-
"content": {
|
16 |
-
"type": "string"
|
17 |
-
},
|
18 |
-
"contentColor": {
|
19 |
-
"type": "string"
|
20 |
-
},
|
21 |
-
"iconColor": {
|
22 |
-
"type": "string"
|
23 |
-
},
|
24 |
-
"library": {
|
25 |
-
"type": "string"
|
26 |
-
},
|
27 |
-
"iconPrefix": {
|
28 |
-
"type": "string"
|
29 |
-
},
|
30 |
-
"icon": {
|
31 |
-
"type": "string"
|
32 |
-
}
|
33 |
-
}
|
34 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/leaflet-map/block.json
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/leaflet-map",
|
5 |
-
"title": "Maps",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Display Open Street Maps on your website with Maps block. Powered by Otter.",
|
8 |
-
"keywords": [ "map", "opeenstreetmap", "location" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"location": {
|
15 |
-
"type": "string",
|
16 |
-
"default": "La Sagrada Familia, Barcelona, Spain"
|
17 |
-
},
|
18 |
-
"latitude": {
|
19 |
-
"type": "string",
|
20 |
-
"default": "41.4034789"
|
21 |
-
},
|
22 |
-
"longitude": {
|
23 |
-
"type": "string",
|
24 |
-
"default": "2.174410333009705"
|
25 |
-
},
|
26 |
-
"bbox": {
|
27 |
-
"type": "string",
|
28 |
-
"default": "2.1207046508789067%2C41.34807736149302%2C2.2288513183593754%2C41.45816618938139"
|
29 |
-
},
|
30 |
-
"zoom": {
|
31 |
-
"type": "number"
|
32 |
-
},
|
33 |
-
"height": {
|
34 |
-
"type": "number",
|
35 |
-
"default": 400
|
36 |
-
},
|
37 |
-
"markers": {
|
38 |
-
"type": "array",
|
39 |
-
"default": []
|
40 |
-
},
|
41 |
-
"zoomControl": {
|
42 |
-
"type": "boolean",
|
43 |
-
"default": true
|
44 |
-
},
|
45 |
-
"draggable": {
|
46 |
-
"type": "boolean",
|
47 |
-
"default": true
|
48 |
-
}
|
49 |
-
},
|
50 |
-
"supports": {
|
51 |
-
"align": [ "wide", "full" ],
|
52 |
-
"html": false
|
53 |
-
},
|
54 |
-
"editorStyle": "otter-leaflet-map-editor",
|
55 |
-
"style": "otter-leaflet-map-style",
|
56 |
-
"editorScript": "leaflet-gesture-handling",
|
57 |
-
"script": "otter-leaflet"
|
58 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/lottie/block.json
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/lottie",
|
5 |
-
"title": "Lottie Animation",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Add Lottie animations to your WordPress. Powered by Otter.",
|
8 |
-
"keywords": [ "media", "lottie", "animation" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"file": {
|
15 |
-
"type": "object"
|
16 |
-
},
|
17 |
-
"trigger": {
|
18 |
-
"type": "string",
|
19 |
-
"default": "none"
|
20 |
-
},
|
21 |
-
"loop": {
|
22 |
-
"type": "boolean",
|
23 |
-
"default": false
|
24 |
-
},
|
25 |
-
"count": {
|
26 |
-
"type": "number",
|
27 |
-
"default": 0
|
28 |
-
},
|
29 |
-
"speed": {
|
30 |
-
"type": "number",
|
31 |
-
"default": 1
|
32 |
-
},
|
33 |
-
"direction": {
|
34 |
-
"type": "boolean",
|
35 |
-
"default": false
|
36 |
-
},
|
37 |
-
"width": {
|
38 |
-
"type": [ "string" , "number" ]
|
39 |
-
},
|
40 |
-
"ariaLabel": {
|
41 |
-
"type": "string",
|
42 |
-
"default": ""
|
43 |
-
},
|
44 |
-
"backgroundColor": {
|
45 |
-
"type": "string"
|
46 |
-
},
|
47 |
-
"backgroundGradient": {
|
48 |
-
"type": "string"
|
49 |
-
}
|
50 |
-
},
|
51 |
-
"supports": {
|
52 |
-
"align": [ "left", "center", "right" ]
|
53 |
-
},
|
54 |
-
"editorStyle": "otter-lottie-editor",
|
55 |
-
"editorScript": "lottie-player",
|
56 |
-
"script": "otter-lottie"
|
57 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/plugin-cards/block.json
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/plugin-cards",
|
5 |
-
"title": "Plugin Card",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Plugin Card block lets you display plugins data in your blog posts. Powered by Otter.",
|
8 |
-
"keywords": [ "plugin", "card", "orbitfox" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"slug": {
|
12 |
-
"type": "string"
|
13 |
-
}
|
14 |
-
},
|
15 |
-
"supports": {
|
16 |
-
"html": false
|
17 |
-
},
|
18 |
-
"editorStyle": "otter-plugin-card-editor",
|
19 |
-
"style": "otter-plugin-card-style"
|
20 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/popup/block.json
DELETED
@@ -1,70 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/popup",
|
5 |
-
"title": "Popup",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Display your content in beautiful popup with many customization options. Powered by Otter.",
|
8 |
-
"keywords": [ "popup", "modal", "lightbox" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"minWidth": {
|
15 |
-
"type": "number"
|
16 |
-
},
|
17 |
-
"maxWidth": {
|
18 |
-
"type": "number"
|
19 |
-
},
|
20 |
-
"trigger": {
|
21 |
-
"type": "string"
|
22 |
-
},
|
23 |
-
"wait": {
|
24 |
-
"type": "number"
|
25 |
-
},
|
26 |
-
"anchor": {
|
27 |
-
"type": "string"
|
28 |
-
},
|
29 |
-
"scroll": {
|
30 |
-
"type": "number"
|
31 |
-
},
|
32 |
-
"showClose": {
|
33 |
-
"type": "boolean",
|
34 |
-
"default": true
|
35 |
-
},
|
36 |
-
"outsideClose": {
|
37 |
-
"type": "boolean",
|
38 |
-
"default": true
|
39 |
-
},
|
40 |
-
"anchorClose": {
|
41 |
-
"type": "boolean",
|
42 |
-
"default": false
|
43 |
-
},
|
44 |
-
"closeAnchor": {
|
45 |
-
"type": "string"
|
46 |
-
},
|
47 |
-
"recurringClose": {
|
48 |
-
"type": "boolean",
|
49 |
-
"default": false
|
50 |
-
},
|
51 |
-
"recurringTime": {
|
52 |
-
"type": "number"
|
53 |
-
},
|
54 |
-
"backgroundColor": {
|
55 |
-
"type": "string"
|
56 |
-
},
|
57 |
-
"closeColor": {
|
58 |
-
"type": "string"
|
59 |
-
},
|
60 |
-
"overlayColor": {
|
61 |
-
"type": "string"
|
62 |
-
},
|
63 |
-
"overlayOpacity": {
|
64 |
-
"type": "number"
|
65 |
-
}
|
66 |
-
},
|
67 |
-
"editorStyle": "otter-popup-editor",
|
68 |
-
"style": "otter-popup-style",
|
69 |
-
"script": "otter-popup"
|
70 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/posts/block.json
DELETED
@@ -1,157 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/posts-grid",
|
5 |
-
"title": "Posts",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Display a list of your most recent posts in a beautiful layout. Powered by Otter.",
|
8 |
-
"keywords": [ "posts", "grid", "news" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"style": {
|
15 |
-
"type": "string",
|
16 |
-
"default": "grid"
|
17 |
-
},
|
18 |
-
"postTypes": {
|
19 |
-
"type": "array",
|
20 |
-
"default": []
|
21 |
-
},
|
22 |
-
"columns": {
|
23 |
-
"type": "number",
|
24 |
-
"default": 3
|
25 |
-
},
|
26 |
-
"template": {
|
27 |
-
"type": "array",
|
28 |
-
"default": [
|
29 |
-
"category",
|
30 |
-
"title",
|
31 |
-
"meta",
|
32 |
-
"description"
|
33 |
-
]
|
34 |
-
},
|
35 |
-
"categories": {
|
36 |
-
"type": "array",
|
37 |
-
"items": {
|
38 |
-
"type": "object"
|
39 |
-
}
|
40 |
-
},
|
41 |
-
"postsToShow": {
|
42 |
-
"type": "number",
|
43 |
-
"default": 5
|
44 |
-
},
|
45 |
-
"order": {
|
46 |
-
"type": "string",
|
47 |
-
"default": "desc"
|
48 |
-
},
|
49 |
-
"orderBy": {
|
50 |
-
"type": "string",
|
51 |
-
"default": "date"
|
52 |
-
},
|
53 |
-
"offset": {
|
54 |
-
"type": "number",
|
55 |
-
"default": 0
|
56 |
-
},
|
57 |
-
"imageSize": {
|
58 |
-
"type": "string",
|
59 |
-
"default": "full"
|
60 |
-
},
|
61 |
-
"imageBoxShadow": {
|
62 |
-
"type": "boolean",
|
63 |
-
"default": true
|
64 |
-
},
|
65 |
-
"displayFeaturedImage": {
|
66 |
-
"type": "boolean",
|
67 |
-
"default": true
|
68 |
-
},
|
69 |
-
"displayCategory": {
|
70 |
-
"type": "boolean",
|
71 |
-
"default": true
|
72 |
-
},
|
73 |
-
"displayTitle": {
|
74 |
-
"type": "boolean",
|
75 |
-
"default": true
|
76 |
-
},
|
77 |
-
"titleTag": {
|
78 |
-
"type": "string",
|
79 |
-
"default": "h5"
|
80 |
-
},
|
81 |
-
"displayMeta": {
|
82 |
-
"type": "boolean",
|
83 |
-
"default": true
|
84 |
-
},
|
85 |
-
"displayDescription": {
|
86 |
-
"type": "boolean",
|
87 |
-
"default": true
|
88 |
-
},
|
89 |
-
"excerptLength": {
|
90 |
-
"type": "number",
|
91 |
-
"default": 100
|
92 |
-
},
|
93 |
-
"displayDate": {
|
94 |
-
"type": "boolean",
|
95 |
-
"default": true
|
96 |
-
},
|
97 |
-
"displayAuthor": {
|
98 |
-
"type": "boolean",
|
99 |
-
"default": true
|
100 |
-
},
|
101 |
-
"displayComments": {
|
102 |
-
"type": "boolean",
|
103 |
-
"default": true
|
104 |
-
},
|
105 |
-
"displayPostCategory": {
|
106 |
-
"type": "boolean",
|
107 |
-
"default": false
|
108 |
-
},
|
109 |
-
"displayReadMoreLink": {
|
110 |
-
"type": "boolean",
|
111 |
-
"default": false
|
112 |
-
},
|
113 |
-
"cropImage": {
|
114 |
-
"type": "boolean",
|
115 |
-
"default": false
|
116 |
-
},
|
117 |
-
"customTitleFontSize": {
|
118 |
-
"type": "number"
|
119 |
-
},
|
120 |
-
"customTitleFontSizeTable": {
|
121 |
-
"type": "number"
|
122 |
-
},
|
123 |
-
"customTitleFontSizeMobile": {
|
124 |
-
"type": "number"
|
125 |
-
},
|
126 |
-
"customDescriptionFontSize": {
|
127 |
-
"type": "number"
|
128 |
-
},
|
129 |
-
"customDescriptionFontSizeTablet": {
|
130 |
-
"type": "number"
|
131 |
-
},
|
132 |
-
"customDescriptionFontSizeMobile": {
|
133 |
-
"type": "number"
|
134 |
-
},
|
135 |
-
"borderRadius": {
|
136 |
-
"type": "number"
|
137 |
-
},
|
138 |
-
"textAlign": {
|
139 |
-
"type": "string"
|
140 |
-
},
|
141 |
-
"verticalAlign": {
|
142 |
-
"type": "string"
|
143 |
-
},
|
144 |
-
"enableFeaturedPost": {
|
145 |
-
"type": "boolean"
|
146 |
-
},
|
147 |
-
"imageWidth": {
|
148 |
-
"type": "number"
|
149 |
-
}
|
150 |
-
},
|
151 |
-
"supports": {
|
152 |
-
"align": [ "wide", "full" ],
|
153 |
-
"html": false
|
154 |
-
},
|
155 |
-
"editorStyle": "otter-posts-grid-editor",
|
156 |
-
"style": "otter-posts-grid-style"
|
157 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/progress-bar/block.json
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/progress-bar",
|
5 |
-
"title": "Progress Bar",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Show your progress with a beautiful Progress Bar block. Powered by Otter.",
|
8 |
-
"keywords": [ "progress", "bar", "skills" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"title": {
|
15 |
-
"type": "string",
|
16 |
-
"default": "Skill"
|
17 |
-
},
|
18 |
-
"percentage": {
|
19 |
-
"type": "number",
|
20 |
-
"default": 50
|
21 |
-
},
|
22 |
-
"duration": {
|
23 |
-
"type": "number",
|
24 |
-
"default": 2
|
25 |
-
},
|
26 |
-
"titleStyle": {
|
27 |
-
"type": "string",
|
28 |
-
"default": "default"
|
29 |
-
},
|
30 |
-
"percentagePosition": {
|
31 |
-
"type": "string",
|
32 |
-
"default": "default"
|
33 |
-
},
|
34 |
-
"height": {
|
35 |
-
"type": "number",
|
36 |
-
"default": 30
|
37 |
-
},
|
38 |
-
"borderRadius": {
|
39 |
-
"type": "number"
|
40 |
-
},
|
41 |
-
"backgroundColor": {
|
42 |
-
"type": "string"
|
43 |
-
},
|
44 |
-
"barBackgroundColor": {
|
45 |
-
"type": "string"
|
46 |
-
},
|
47 |
-
"titleColor": {
|
48 |
-
"type": "string"
|
49 |
-
},
|
50 |
-
"percentageColor": {
|
51 |
-
"type": "string"
|
52 |
-
}
|
53 |
-
},
|
54 |
-
"editorStyle": "otter-progress-bar-editor",
|
55 |
-
"style": "otter-progress-bar-style",
|
56 |
-
"script": "otter-progress-bar"
|
57 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/review/block.json
DELETED
@@ -1,117 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/review",
|
5 |
-
"title": "Product Review",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Turn your posts into smart reviews with ratings and generate leads with a performing review block. Powered by Otter.",
|
8 |
-
"keywords": [ "product", "review", "stars" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"title": {
|
15 |
-
"type": "string"
|
16 |
-
},
|
17 |
-
"currency": {
|
18 |
-
"type": "string",
|
19 |
-
"default": "USD"
|
20 |
-
},
|
21 |
-
"price": {
|
22 |
-
"type": "number"
|
23 |
-
},
|
24 |
-
"discounted": {
|
25 |
-
"type": "number"
|
26 |
-
},
|
27 |
-
"image": {
|
28 |
-
"type": "object"
|
29 |
-
},
|
30 |
-
"description": {
|
31 |
-
"type": "string"
|
32 |
-
},
|
33 |
-
"features": {
|
34 |
-
"type": "array",
|
35 |
-
"default": [
|
36 |
-
{
|
37 |
-
"title": "Stability",
|
38 |
-
"rating": 9
|
39 |
-
},
|
40 |
-
{
|
41 |
-
"title": "Ease of Use",
|
42 |
-
"rating": 4
|
43 |
-
},
|
44 |
-
{
|
45 |
-
"title": "Look & Feel",
|
46 |
-
"rating": 9
|
47 |
-
},
|
48 |
-
{
|
49 |
-
"title": "Price",
|
50 |
-
"rating": 7
|
51 |
-
}
|
52 |
-
]
|
53 |
-
},
|
54 |
-
"pros": {
|
55 |
-
"type": "array",
|
56 |
-
"default": [
|
57 |
-
"Easy to use",
|
58 |
-
"Good price",
|
59 |
-
"Sturdy build and ergonomics"
|
60 |
-
]
|
61 |
-
},
|
62 |
-
"cons": {
|
63 |
-
"type": "array",
|
64 |
-
"default": [
|
65 |
-
"Incompatible with old versions",
|
66 |
-
"Hard to assemble",
|
67 |
-
"Bad color combination"
|
68 |
-
]
|
69 |
-
},
|
70 |
-
"links": {
|
71 |
-
"type": "array",
|
72 |
-
"default": [
|
73 |
-
{
|
74 |
-
"label": "Buy on Amazon",
|
75 |
-
"href": "",
|
76 |
-
"isSponsored": false
|
77 |
-
},
|
78 |
-
{
|
79 |
-
"label": "Buy on eBay",
|
80 |
-
"href": "",
|
81 |
-
"isSponsored": false
|
82 |
-
}
|
83 |
-
]
|
84 |
-
},
|
85 |
-
"primaryColor": {
|
86 |
-
"type": "string"
|
87 |
-
},
|
88 |
-
"backgroundColor": {
|
89 |
-
"type": "string"
|
90 |
-
},
|
91 |
-
"textColor": {
|
92 |
-
"type": "string"
|
93 |
-
},
|
94 |
-
"buttonTextColor": {
|
95 |
-
"type": "string"
|
96 |
-
},
|
97 |
-
"isSynced": {
|
98 |
-
"type": "array"
|
99 |
-
}
|
100 |
-
},
|
101 |
-
"styles": [
|
102 |
-
{
|
103 |
-
"name": "default",
|
104 |
-
"label": "Default",
|
105 |
-
"isDefault": true
|
106 |
-
},
|
107 |
-
{
|
108 |
-
"name": "single-column",
|
109 |
-
"label": "Single Column"
|
110 |
-
}
|
111 |
-
],
|
112 |
-
"supports": {
|
113 |
-
"html": false
|
114 |
-
},
|
115 |
-
"editorStyle": "otter-review-editor",
|
116 |
-
"style": "otter-review-style"
|
117 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/section/column/block.json
DELETED
@@ -1,116 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/advanced-column",
|
5 |
-
"title": "Section Column",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "A single column within a Section block. Powered by Otter.",
|
8 |
-
"parent": [ "themeisle-blocks/advanced-columns" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"padding": {
|
15 |
-
"type": "object"
|
16 |
-
},
|
17 |
-
"paddingTablet": {
|
18 |
-
"type": "object"
|
19 |
-
},
|
20 |
-
"paddingMobile": {
|
21 |
-
"type": "object"
|
22 |
-
},
|
23 |
-
"margin": {
|
24 |
-
"type": "object"
|
25 |
-
},
|
26 |
-
"marginTablet": {
|
27 |
-
"type": "object"
|
28 |
-
},
|
29 |
-
"marginMobile": {
|
30 |
-
"type": "object"
|
31 |
-
},
|
32 |
-
"backgroundType": {
|
33 |
-
"type": "string",
|
34 |
-
"default": "color"
|
35 |
-
},
|
36 |
-
"backgroundColor": {
|
37 |
-
"type": "string"
|
38 |
-
},
|
39 |
-
"backgroundImage": {
|
40 |
-
"type": "object"
|
41 |
-
},
|
42 |
-
"backgroundAttachment": {
|
43 |
-
"type": "string",
|
44 |
-
"default": "scroll"
|
45 |
-
},
|
46 |
-
"backgroundPosition": {
|
47 |
-
"type": "object"
|
48 |
-
},
|
49 |
-
"backgroundRepeat": {
|
50 |
-
"type": "string",
|
51 |
-
"default": "repeat"
|
52 |
-
},
|
53 |
-
"backgroundSize": {
|
54 |
-
"type": "string",
|
55 |
-
"default": "auto"
|
56 |
-
},
|
57 |
-
"backgroundGradient": {
|
58 |
-
"type": "string",
|
59 |
-
"default": "linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"
|
60 |
-
},
|
61 |
-
"border": {
|
62 |
-
"type": "object"
|
63 |
-
},
|
64 |
-
"borderColor": {
|
65 |
-
"type": "string",
|
66 |
-
"default": "#000000"
|
67 |
-
},
|
68 |
-
"borderRadius": {
|
69 |
-
"type": "object"
|
70 |
-
},
|
71 |
-
"boxShadow": {
|
72 |
-
"type": "boolean",
|
73 |
-
"default": false
|
74 |
-
},
|
75 |
-
"boxShadowColor": {
|
76 |
-
"type": "string",
|
77 |
-
"default": "#000000"
|
78 |
-
},
|
79 |
-
"boxShadowColorOpacity": {
|
80 |
-
"type": "number",
|
81 |
-
"default": 50
|
82 |
-
},
|
83 |
-
"boxShadowBlur": {
|
84 |
-
"type": "number",
|
85 |
-
"default": 5
|
86 |
-
},
|
87 |
-
"boxShadowSpread": {
|
88 |
-
"type": "number",
|
89 |
-
"default": 0
|
90 |
-
},
|
91 |
-
"boxShadowHorizontal": {
|
92 |
-
"type": "number",
|
93 |
-
"default": 0
|
94 |
-
},
|
95 |
-
"boxShadowVertical": {
|
96 |
-
"type": "number",
|
97 |
-
"default": 0
|
98 |
-
},
|
99 |
-
"columnsHTMLTag": {
|
100 |
-
"type": "string",
|
101 |
-
"default": "div"
|
102 |
-
},
|
103 |
-
"columnWidth": {
|
104 |
-
"type": "string"
|
105 |
-
},
|
106 |
-
"isSynced": {
|
107 |
-
"type": "array"
|
108 |
-
}
|
109 |
-
},
|
110 |
-
"supports": {
|
111 |
-
"inserter": false,
|
112 |
-
"html": false
|
113 |
-
},
|
114 |
-
"editorStyle": "otter-advanced-columns-editor",
|
115 |
-
"style": "otter-advanced-columns-style"
|
116 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/section/columns/block.json
DELETED
@@ -1,304 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/advanced-columns",
|
5 |
-
"title": "Section",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like. Powered by Otter.",
|
8 |
-
"keywords": [ "advanced columns", "layout", "section" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"columns": {
|
15 |
-
"type": "number"
|
16 |
-
},
|
17 |
-
"layout": {
|
18 |
-
"type": "string"
|
19 |
-
},
|
20 |
-
"layoutTablet": {
|
21 |
-
"type": "string",
|
22 |
-
"default": "equal"
|
23 |
-
},
|
24 |
-
"layoutMobile": {
|
25 |
-
"type": "string",
|
26 |
-
"default": "equal"
|
27 |
-
},
|
28 |
-
"padding": {
|
29 |
-
"type": "object"
|
30 |
-
},
|
31 |
-
"paddingTablet": {
|
32 |
-
"type": "object"
|
33 |
-
},
|
34 |
-
"paddingMobile": {
|
35 |
-
"type": "object"
|
36 |
-
},
|
37 |
-
"margin": {
|
38 |
-
"type": "object"
|
39 |
-
},
|
40 |
-
"marginTablet": {
|
41 |
-
"type": "object"
|
42 |
-
},
|
43 |
-
"marginMobile": {
|
44 |
-
"type": "object"
|
45 |
-
},
|
46 |
-
"columnsWidth": {
|
47 |
-
"type": "number"
|
48 |
-
},
|
49 |
-
"horizontalAlign": {
|
50 |
-
"type": "string",
|
51 |
-
"default": "unset"
|
52 |
-
},
|
53 |
-
"columnsHeight": {
|
54 |
-
"type": "string",
|
55 |
-
"default": "auto"
|
56 |
-
},
|
57 |
-
"columnsHeightCustom": {
|
58 |
-
"type": "number"
|
59 |
-
},
|
60 |
-
"columnsHeightCustomTablet": {
|
61 |
-
"type": "number"
|
62 |
-
},
|
63 |
-
"columnsHeightCustomMobile": {
|
64 |
-
"type": "number"
|
65 |
-
},
|
66 |
-
"verticalAlign": {
|
67 |
-
"type": "string",
|
68 |
-
"default": "unset"
|
69 |
-
},
|
70 |
-
"backgroundType": {
|
71 |
-
"type": "string",
|
72 |
-
"default": "color"
|
73 |
-
},
|
74 |
-
"backgroundColor": {
|
75 |
-
"type": "string"
|
76 |
-
},
|
77 |
-
"backgroundImage": {
|
78 |
-
"type": "object"
|
79 |
-
},
|
80 |
-
"backgroundAttachment": {
|
81 |
-
"type": "string",
|
82 |
-
"default": "scroll"
|
83 |
-
},
|
84 |
-
"backgroundPosition": {
|
85 |
-
"type": "object"
|
86 |
-
},
|
87 |
-
"backgroundRepeat": {
|
88 |
-
"type": "string",
|
89 |
-
"default": "repeat"
|
90 |
-
},
|
91 |
-
"backgroundSize": {
|
92 |
-
"type": "string",
|
93 |
-
"default": "auto"
|
94 |
-
},
|
95 |
-
"backgroundGradient": {
|
96 |
-
"type": "string",
|
97 |
-
"default": "linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"
|
98 |
-
},
|
99 |
-
"backgroundOverlayOpacity": {
|
100 |
-
"type": "number",
|
101 |
-
"default": 50
|
102 |
-
},
|
103 |
-
"backgroundOverlayType": {
|
104 |
-
"type": "string",
|
105 |
-
"default": "color"
|
106 |
-
},
|
107 |
-
"backgroundOverlayColor": {
|
108 |
-
"type": "string"
|
109 |
-
},
|
110 |
-
"backgroundOverlayImage": {
|
111 |
-
"type": "object"
|
112 |
-
},
|
113 |
-
"backgroundOverlayAttachment": {
|
114 |
-
"type": "string",
|
115 |
-
"default": "scroll"
|
116 |
-
},
|
117 |
-
"backgroundOverlayPosition": {
|
118 |
-
"type": "object"
|
119 |
-
},
|
120 |
-
"backgroundOverlayRepeat": {
|
121 |
-
"type": "string",
|
122 |
-
"default": "repeat"
|
123 |
-
},
|
124 |
-
"backgroundOverlaySize": {
|
125 |
-
"type": "string",
|
126 |
-
"default": "auto"
|
127 |
-
},
|
128 |
-
"backgroundOverlayGradient": {
|
129 |
-
"type": "string",
|
130 |
-
"default": "linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"
|
131 |
-
},
|
132 |
-
"backgroundOverlayFilterBlur": {
|
133 |
-
"type": "number",
|
134 |
-
"default": 0
|
135 |
-
},
|
136 |
-
"backgroundOverlayFilterBrightness": {
|
137 |
-
"type": "number",
|
138 |
-
"default": 10
|
139 |
-
},
|
140 |
-
"backgroundOverlayFilterContrast": {
|
141 |
-
"type": "number",
|
142 |
-
"default": 10
|
143 |
-
},
|
144 |
-
"backgroundOverlayFilterGrayscale": {
|
145 |
-
"type": "number",
|
146 |
-
"default": 0
|
147 |
-
},
|
148 |
-
"backgroundOverlayFilterHue": {
|
149 |
-
"type": "number",
|
150 |
-
"default": 0
|
151 |
-
},
|
152 |
-
"backgroundOverlayFilterSaturate": {
|
153 |
-
"type": "number",
|
154 |
-
"default": 10
|
155 |
-
},
|
156 |
-
"backgroundOverlayBlend": {
|
157 |
-
"type": "string",
|
158 |
-
"default": "normal"
|
159 |
-
},
|
160 |
-
"border": {
|
161 |
-
"type": "object"
|
162 |
-
},
|
163 |
-
"borderColor": {
|
164 |
-
"type": "string",
|
165 |
-
"default": "#000000"
|
166 |
-
},
|
167 |
-
"borderRadius": {
|
168 |
-
"type": "object"
|
169 |
-
},
|
170 |
-
"boxShadow": {
|
171 |
-
"type": "boolean",
|
172 |
-
"default": false
|
173 |
-
},
|
174 |
-
"boxShadowColor": {
|
175 |
-
"type": "string",
|
176 |
-
"default": "#000000"
|
177 |
-
},
|
178 |
-
"boxShadowColorOpacity": {
|
179 |
-
"type": "number",
|
180 |
-
"default": 50
|
181 |
-
},
|
182 |
-
"boxShadowBlur": {
|
183 |
-
"type": "number",
|
184 |
-
"default": 5
|
185 |
-
},
|
186 |
-
"boxShadowSpread": {
|
187 |
-
"type": "number",
|
188 |
-
"default": 0
|
189 |
-
},
|
190 |
-
"boxShadowHorizontal": {
|
191 |
-
"type": "number",
|
192 |
-
"default": 0
|
193 |
-
},
|
194 |
-
"boxShadowVertical": {
|
195 |
-
"type": "number",
|
196 |
-
"default": 0
|
197 |
-
},
|
198 |
-
"dividerTopType": {
|
199 |
-
"type": "string",
|
200 |
-
"default": "none"
|
201 |
-
},
|
202 |
-
"dividerTopColor": {
|
203 |
-
"type": "string",
|
204 |
-
"default": "#000000"
|
205 |
-
},
|
206 |
-
"dividerTopWidth": {
|
207 |
-
"type": "number",
|
208 |
-
"default": 100
|
209 |
-
},
|
210 |
-
"dividerTopWidthTablet": {
|
211 |
-
"type": "number",
|
212 |
-
"default": 100
|
213 |
-
},
|
214 |
-
"dividerTopWidthMobile": {
|
215 |
-
"type": "number",
|
216 |
-
"default": 100
|
217 |
-
},
|
218 |
-
"dividerTopHeight": {
|
219 |
-
"type": "number",
|
220 |
-
"default": 100
|
221 |
-
},
|
222 |
-
"dividerTopHeightTablet": {
|
223 |
-
"type": "number",
|
224 |
-
"default": 100
|
225 |
-
},
|
226 |
-
"dividerTopHeightMobile": {
|
227 |
-
"type": "number",
|
228 |
-
"default": 100
|
229 |
-
},
|
230 |
-
"dividerTopInvert": {
|
231 |
-
"type": "boolean",
|
232 |
-
"default": false
|
233 |
-
},
|
234 |
-
"dividerBottomType": {
|
235 |
-
"type": "string",
|
236 |
-
"default": "none"
|
237 |
-
},
|
238 |
-
"dividerBottomColor": {
|
239 |
-
"type": "string",
|
240 |
-
"default": "#000000"
|
241 |
-
},
|
242 |
-
"dividerBottomWidth": {
|
243 |
-
"type": "number",
|
244 |
-
"default": 100
|
245 |
-
},
|
246 |
-
"dividerBottomWidthTablet": {
|
247 |
-
"type": "number",
|
248 |
-
"default": 100
|
249 |
-
},
|
250 |
-
"dividerBottomWidthMobile": {
|
251 |
-
"type": "number",
|
252 |
-
"default": 100
|
253 |
-
},
|
254 |
-
"dividerBottomHeight": {
|
255 |
-
"type": "number",
|
256 |
-
"default": 100
|
257 |
-
},
|
258 |
-
"dividerBottomHeightTablet": {
|
259 |
-
"type": "number",
|
260 |
-
"default": 100
|
261 |
-
},
|
262 |
-
"dividerBottomHeightMobile": {
|
263 |
-
"type": "number",
|
264 |
-
"default": 100
|
265 |
-
},
|
266 |
-
"dividerBottomInvert": {
|
267 |
-
"type": "boolean",
|
268 |
-
"default": false
|
269 |
-
},
|
270 |
-
"hide": {
|
271 |
-
"type": "boolean",
|
272 |
-
"default": false
|
273 |
-
},
|
274 |
-
"hideTablet": {
|
275 |
-
"type": "boolean",
|
276 |
-
"default": false
|
277 |
-
},
|
278 |
-
"hideMobile": {
|
279 |
-
"type": "boolean",
|
280 |
-
"default": false
|
281 |
-
},
|
282 |
-
"reverseColumnsTablet": {
|
283 |
-
"type": "boolean",
|
284 |
-
"default": false
|
285 |
-
},
|
286 |
-
"reverseColumnsMobile": {
|
287 |
-
"type": "boolean",
|
288 |
-
"default": false
|
289 |
-
},
|
290 |
-
"columnsHTMLTag": {
|
291 |
-
"type": "string",
|
292 |
-
"default": "div"
|
293 |
-
},
|
294 |
-
"isSynced": {
|
295 |
-
"type": "array"
|
296 |
-
}
|
297 |
-
},
|
298 |
-
"supports": {
|
299 |
-
"align": [ "wide", "full" ],
|
300 |
-
"html": false
|
301 |
-
},
|
302 |
-
"editorStyle": "otter-advanced-columns-editor",
|
303 |
-
"style": "otter-advanced-columns-style"
|
304 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/sharing-icons/block.json
DELETED
@@ -1,79 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/sharing-icons",
|
5 |
-
"title": "Sharing Icons",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Share buttons for your website visitors to share content on any social sharing service. Powered by Otter.",
|
8 |
-
"keywords": [ "social media", "sharing", "icons" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"facebook": {
|
15 |
-
"type": [ "object", "boolean" ],
|
16 |
-
"default": {
|
17 |
-
"active": true
|
18 |
-
}
|
19 |
-
},
|
20 |
-
"twitter": {
|
21 |
-
"type": [ "object", "boolean" ],
|
22 |
-
"default": {
|
23 |
-
"active": true
|
24 |
-
}
|
25 |
-
},
|
26 |
-
"linkedin": {
|
27 |
-
"type": [ "object", "boolean" ],
|
28 |
-
"default": {
|
29 |
-
"active": true
|
30 |
-
}
|
31 |
-
},
|
32 |
-
"pinterest": {
|
33 |
-
"type": [ "object", "boolean" ],
|
34 |
-
"default": {
|
35 |
-
"active": false
|
36 |
-
}
|
37 |
-
},
|
38 |
-
"tumblr": {
|
39 |
-
"type": [ "object", "boolean" ],
|
40 |
-
"default": {
|
41 |
-
"active": false
|
42 |
-
}
|
43 |
-
},
|
44 |
-
"reddit": {
|
45 |
-
"type": [ "object", "boolean" ],
|
46 |
-
"default": {
|
47 |
-
"active": false
|
48 |
-
}
|
49 |
-
},
|
50 |
-
"gap" : {
|
51 |
-
"type": "number"
|
52 |
-
},
|
53 |
-
"borderRadius": {
|
54 |
-
"type": "number"
|
55 |
-
},
|
56 |
-
"backgroundColor" : {
|
57 |
-
"type": "string"
|
58 |
-
},
|
59 |
-
"textColor" : {
|
60 |
-
"type": "string"
|
61 |
-
}
|
62 |
-
},
|
63 |
-
"styles": [
|
64 |
-
{
|
65 |
-
"name": "default",
|
66 |
-
"label": "Regular",
|
67 |
-
"isDefault": true
|
68 |
-
},
|
69 |
-
{
|
70 |
-
"name": "icons",
|
71 |
-
"label": "Icons Only"
|
72 |
-
}
|
73 |
-
],
|
74 |
-
"supports": {
|
75 |
-
"align": [ "left", "center", "right" ]
|
76 |
-
},
|
77 |
-
"editorStyle": "otter-sharing-icons-editor",
|
78 |
-
"style": "otter-sharing-icons-style"
|
79 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/slider/block.json
DELETED
@@ -1,87 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/slider",
|
5 |
-
"title": "Slider",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Minimal image slider to showcase beautiful images. Powered by Otter.",
|
8 |
-
"keywords": [ "slider", "gallery", "carousel" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"images": {
|
15 |
-
"type": "array",
|
16 |
-
"default": [],
|
17 |
-
"source": "query",
|
18 |
-
"selector": ".wp-block-themeisle-blocks-slider-item-wrapper",
|
19 |
-
"query": {
|
20 |
-
"id": {
|
21 |
-
"type": "number",
|
22 |
-
"source": "attribute",
|
23 |
-
"selector": "img",
|
24 |
-
"attribute": "data-id"
|
25 |
-
},
|
26 |
-
"url": {
|
27 |
-
"type": "string",
|
28 |
-
"source": "attribute",
|
29 |
-
"selector": "img",
|
30 |
-
"attribute": "src"
|
31 |
-
},
|
32 |
-
"alt": {
|
33 |
-
"type": "string",
|
34 |
-
"source": "attribute",
|
35 |
-
"selector": "img",
|
36 |
-
"attribute": "alt",
|
37 |
-
"default": ""
|
38 |
-
},
|
39 |
-
"caption": {
|
40 |
-
"type": "string",
|
41 |
-
"source": "html",
|
42 |
-
"selector": "figcaption",
|
43 |
-
"default": ""
|
44 |
-
}
|
45 |
-
}
|
46 |
-
},
|
47 |
-
"perView": {
|
48 |
-
"type": "number",
|
49 |
-
"default": 1
|
50 |
-
},
|
51 |
-
"gap": {
|
52 |
-
"type": "number",
|
53 |
-
"default": 0
|
54 |
-
},
|
55 |
-
"peek": {
|
56 |
-
"type": "number",
|
57 |
-
"default": 0
|
58 |
-
},
|
59 |
-
"autoplay": {
|
60 |
-
"type": "boolean",
|
61 |
-
"default": true
|
62 |
-
},
|
63 |
-
"delay": {
|
64 |
-
"type": "number",
|
65 |
-
"default": 2
|
66 |
-
},
|
67 |
-
"hideArrows": {
|
68 |
-
"type": "boolean",
|
69 |
-
"default": false
|
70 |
-
},
|
71 |
-
"hideBullets": {
|
72 |
-
"type": "boolean",
|
73 |
-
"default": false
|
74 |
-
},
|
75 |
-
"height": {
|
76 |
-
"type": "number",
|
77 |
-
"default": 400
|
78 |
-
}
|
79 |
-
},
|
80 |
-
"supports": {
|
81 |
-
"align": [ "wide", "full" ]
|
82 |
-
},
|
83 |
-
"editorStyle": "otter-slider-editor",
|
84 |
-
"style": "otter-slider-style",
|
85 |
-
"editorScript": "glidejs",
|
86 |
-
"script": "otter-slider"
|
87 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/structural/pricing/block.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/pricing",
|
5 |
-
"title": "Pricing",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Pricing tables are a critical part in showcasing your services, prices and overall offerings. Powered by Otter.",
|
8 |
-
"keywords": [ "pricing", "table", "money" ],
|
9 |
-
"textdomain": "otter-blocks"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/structural/service/block.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/service",
|
5 |
-
"title": "Service",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Use this Service block to showcase services your website offers. Powered by Otter.",
|
8 |
-
"keywords": [ "services", "icon", "features" ],
|
9 |
-
"textdomain": "otter-blocks"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/structural/testimonials/block.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/testimonials",
|
5 |
-
"title": "Testimonials",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Display kudos from customers and clients and display them on your website. Powered by Otter.",
|
8 |
-
"keywords": [ "testimonials", "quotes", "business" ],
|
9 |
-
"textdomain": "otter-blocks"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/tabs/group/block.json
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/tabs",
|
5 |
-
"title": "Tabs",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Organize and allow navigation between groups of content with Tabs block. Powered by Otter.",
|
8 |
-
"keywords": [ "media", "tabs", "select" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"tabColor": {
|
15 |
-
"type": "string"
|
16 |
-
},
|
17 |
-
"borderColor": {
|
18 |
-
"type": "string"
|
19 |
-
},
|
20 |
-
"borderWidth": {
|
21 |
-
"type": "number"
|
22 |
-
},
|
23 |
-
"activeTitleColor": {
|
24 |
-
"type": "string"
|
25 |
-
}
|
26 |
-
},
|
27 |
-
"supports": {
|
28 |
-
"align": [ "left", "center", "right" ]
|
29 |
-
},
|
30 |
-
"editorStyle": "otter-tabs-editor",
|
31 |
-
"style": "otter-tabs-style",
|
32 |
-
"script": "otter-tabs"
|
33 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/blocks/blocks/tabs/item/block.json
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/tabs-item",
|
5 |
-
"title": "Tab Item",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Organize and allow navigation between groups of content with Tabs block. Powered by Otter.",
|
8 |
-
"keywords": [ "media", "tab", "item" ],
|
9 |
-
"parent": [ "themeisle-blocks/tabs" ],
|
10 |
-
"textdomain": "otter-blocks",
|
11 |
-
"attributes": {
|
12 |
-
"title": {
|
13 |
-
"type": "string"
|
14 |
-
},
|
15 |
-
"defaultOpen": {
|
16 |
-
"type": "boolean",
|
17 |
-
"default": false
|
18 |
-
}
|
19 |
-
}
|
20 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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' => '
|
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' => '6fe12662667414baea32289f9f54b91a');
|
build/animation/index.css
CHANGED
@@ -1,3 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
.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}}.o-anim-typing-caret:after{-webkit-animation:blink 1s step-end infinite;animation:blink 1s step-end infinite;color:#2e3d48;content:"|";font-weight:100}@-webkit-keyframes blink{0%,to{color:transparent}50%{color:#000}}@keyframes blink{0%,to{color:transparent}50%{color:#000}}
|
2 |
.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}
|
3 |
|
1 |
+
|
2 |
+
/*!
|
3 |
+
* animate.css - https://animate.style/
|
4 |
+
* Version - 4.1.1
|
5 |
+
* Licensed under the Hippocratic License 2.1 - http://firstdonoharm.dev
|
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}}.o-anim-typing-caret:after{-webkit-animation:blink 1s step-end infinite;animation:blink 1s step-end infinite;color:#2e3d48;content:"|";font-weight:100}@-webkit-keyframes blink{0%,to{color:transparent}50%{color:#000}}@keyframes blink{0%,to{color:transparent}50%{color:#000}}
|
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/pro/blocks/add-to-cart-button/block.json
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/add-to-cart-button",
|
5 |
-
"title": "Add to Cart Button",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Display an Add to Cart button for your WooCommerce products. Powered by Otter.",
|
8 |
-
"keywords": [ "woocommerce", "add to cart", "products" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"product": {
|
12 |
-
"type": "number"
|
13 |
-
}
|
14 |
-
},
|
15 |
-
"styles": [
|
16 |
-
{
|
17 |
-
"name": "default",
|
18 |
-
"label": "Default",
|
19 |
-
"isDefault": true
|
20 |
-
},
|
21 |
-
{
|
22 |
-
"name": "primary",
|
23 |
-
"label": "Primary"
|
24 |
-
},
|
25 |
-
{
|
26 |
-
"name": "secondary",
|
27 |
-
"label": "Secondary"
|
28 |
-
}
|
29 |
-
]
|
30 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/pro/blocks/business-hours/block.json
DELETED
@@ -1,61 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/business-hours",
|
5 |
-
"title": "Business Hours",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Display your business schedule on your website. Powered by Otter.",
|
8 |
-
"keywords": [ "business", "schedule", "time" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"title": {
|
15 |
-
"type": "string"
|
16 |
-
},
|
17 |
-
"titleAlignment": {
|
18 |
-
"type": "string"
|
19 |
-
},
|
20 |
-
"titleFontSize": {
|
21 |
-
"type": "number"
|
22 |
-
},
|
23 |
-
"titleColor": {
|
24 |
-
"type": "string"
|
25 |
-
},
|
26 |
-
"itemsFontSize": {
|
27 |
-
"type": "number"
|
28 |
-
},
|
29 |
-
"backgroundColor": {
|
30 |
-
"type": "string"
|
31 |
-
},
|
32 |
-
"gap": {
|
33 |
-
"type": "number"
|
34 |
-
},
|
35 |
-
"borderWidth": {
|
36 |
-
"type": "number"
|
37 |
-
},
|
38 |
-
"borderColor": {
|
39 |
-
"type": "string"
|
40 |
-
},
|
41 |
-
"borderRadius": {
|
42 |
-
"type": "number"
|
43 |
-
}
|
44 |
-
},
|
45 |
-
"supports": {
|
46 |
-
"align": [ "wide", "full" ]
|
47 |
-
},
|
48 |
-
"styles": [
|
49 |
-
{
|
50 |
-
"name": "default",
|
51 |
-
"label": "Default",
|
52 |
-
"isDefault": true
|
53 |
-
},
|
54 |
-
{
|
55 |
-
"name": "black-white",
|
56 |
-
"label": "Black & White"
|
57 |
-
}
|
58 |
-
],
|
59 |
-
"editorStyle": "otter-business-hours-editor",
|
60 |
-
"style": "otter-business-hours-style"
|
61 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/pro/blocks/business-hours/item/block.json
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/business-hours-item",
|
5 |
-
"title": "Business Hours Item",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "Item used by Business Hours block to display the time. Powered by Otter.",
|
8 |
-
"keywords": [ "business", "schedule", "time" ],
|
9 |
-
"parent": [ "themeisle-blocks/business-hours" ],
|
10 |
-
"textdomain": "otter-blocks",
|
11 |
-
"attributes": {
|
12 |
-
"id": {
|
13 |
-
"type": "string"
|
14 |
-
},
|
15 |
-
"label": {
|
16 |
-
"type": "string"
|
17 |
-
},
|
18 |
-
"time": {
|
19 |
-
"type": "string"
|
20 |
-
},
|
21 |
-
"backgroundColor": {
|
22 |
-
"type": "string"
|
23 |
-
},
|
24 |
-
"labelColor": {
|
25 |
-
"type": "string"
|
26 |
-
},
|
27 |
-
"timeColor": {
|
28 |
-
"type": "string"
|
29 |
-
}
|
30 |
-
},
|
31 |
-
"supports": {
|
32 |
-
"align": [ "wide", "full" ]
|
33 |
-
}
|
34 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/pro/blocks/review-comparison/block.json
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/review-comparison",
|
5 |
-
"title": "Review Comparison Table",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "A way to compare different product reviews made on the website. Powered by Otter.",
|
8 |
-
"keywords": [ "product", "review", "comparison" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"reviews": {
|
15 |
-
"type": "array",
|
16 |
-
"default": []
|
17 |
-
},
|
18 |
-
"buttonColor": {
|
19 |
-
"type": "string"
|
20 |
-
},
|
21 |
-
"buttonText": {
|
22 |
-
"type": "string"
|
23 |
-
}
|
24 |
-
},
|
25 |
-
"supports": {
|
26 |
-
"html": false
|
27 |
-
},
|
28 |
-
"editorStyle": "otter-review-comparison-editor",
|
29 |
-
"style": "otter-review-comparison-style"
|
30 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/pro/blocks/woo-comparison/block.json
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/woo-comparison",
|
5 |
-
"title": "WooCommerce Comparison Table",
|
6 |
-
"category": "themeisle-blocks",
|
7 |
-
"description": "A way to compare different WooCommerce products made on the website. Powered by Otter.",
|
8 |
-
"keywords": [ "woocommerce", "comparison", "table" ],
|
9 |
-
"textdomain": "otter-blocks",
|
10 |
-
"attributes": {
|
11 |
-
"id": {
|
12 |
-
"type": "string"
|
13 |
-
},
|
14 |
-
"products": {
|
15 |
-
"type": "array",
|
16 |
-
"default": []
|
17 |
-
},
|
18 |
-
"listingType": {
|
19 |
-
"type": "string"
|
20 |
-
},
|
21 |
-
"altRow": {
|
22 |
-
"type": "boolean"
|
23 |
-
},
|
24 |
-
"fields": {
|
25 |
-
"type": "string"
|
26 |
-
},
|
27 |
-
"rowColor": {
|
28 |
-
"type": "string"
|
29 |
-
},
|
30 |
-
"headerColor": {
|
31 |
-
"type": "string"
|
32 |
-
},
|
33 |
-
"textColor": {
|
34 |
-
"type": "string"
|
35 |
-
},
|
36 |
-
"borderColor": {
|
37 |
-
"type": "string"
|
38 |
-
},
|
39 |
-
"altRowColor": {
|
40 |
-
"type": "string"
|
41 |
-
}
|
42 |
-
},
|
43 |
-
"supports": {
|
44 |
-
"html": false
|
45 |
-
},
|
46 |
-
"editorStyle": "otter-woo-comparison-editor"
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/pro/woocommerce/add-to-cart/block.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/product-add-to-cart",
|
5 |
-
"title": "Product Add to Cart",
|
6 |
-
"category": "themeisle-woocommerce-blocks",
|
7 |
-
"description": "Display the add to cart section of your WooCommerce product.",
|
8 |
-
"keywords": [ "woocommerce", "products", "add to cart" ],
|
9 |
-
"textdomain": "otter-blocks"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/pro/woocommerce/images/block.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/product-images",
|
5 |
-
"title": "Product Images",
|
6 |
-
"category": "themeisle-woocommerce-blocks",
|
7 |
-
"description": "Display images of your WooCommerce product.",
|
8 |
-
"keywords": [ "woocommerce", "products", "images" ],
|
9 |
-
"textdomain": "otter-blocks"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/pro/woocommerce/meta/block.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/product-meta",
|
5 |
-
"title": "Product Meta",
|
6 |
-
"category": "themeisle-woocommerce-blocks",
|
7 |
-
"description": "Display the meta of your WooCommerce product.",
|
8 |
-
"keywords": [ "woocommerce", "products", "meta" ],
|
9 |
-
"textdomain": "otter-blocks"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/pro/woocommerce/price/block.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/product-price",
|
5 |
-
"title": "Product Price",
|
6 |
-
"category": "themeisle-woocommerce-blocks",
|
7 |
-
"description": "Display the price of your WooCommerce product.",
|
8 |
-
"keywords": [ "woocommerce", "products", "price" ],
|
9 |
-
"textdomain": "otter-blocks"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/pro/woocommerce/rating/block.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/product-rating",
|
5 |
-
"title": "Product Rating",
|
6 |
-
"category": "themeisle-woocommerce-blocks",
|
7 |
-
"description": "Display the rating of your WooCommerce product.",
|
8 |
-
"keywords": [ "woocommerce", "products", "rating" ],
|
9 |
-
"textdomain": "otter-blocks"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/pro/woocommerce/related-products/block.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/product-related-products",
|
5 |
-
"title": "Product Related Products",
|
6 |
-
"category": "themeisle-woocommerce-blocks",
|
7 |
-
"description": "Display related products for your WooCommerce product.",
|
8 |
-
"keywords": [ "woocommerce", "products", "related products" ],
|
9 |
-
"textdomain": "otter-blocks"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/pro/woocommerce/short-description/block.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/product-short-description",
|
5 |
-
"title": "Product Short Description",
|
6 |
-
"category": "themeisle-woocommerce-blocks",
|
7 |
-
"description": "Display the short description of your WooCommerce product.",
|
8 |
-
"keywords": [ "woocommerce", "products", "short description" ],
|
9 |
-
"textdomain": "otter-blocks"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/pro/woocommerce/stock/block.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/product-stock",
|
5 |
-
"title": "Product Stock",
|
6 |
-
"category": "themeisle-woocommerce-blocks",
|
7 |
-
"description": "Display the stock description of your WooCommerce product.",
|
8 |
-
"keywords": [ "woocommerce", "products", "stock" ],
|
9 |
-
"textdomain": "otter-blocks"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/pro/woocommerce/tabs/block.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/product-tabs",
|
5 |
-
"title": "Product Tabs",
|
6 |
-
"category": "themeisle-woocommerce-blocks",
|
7 |
-
"description": "Display the tabs for your WooCommerce product.",
|
8 |
-
"keywords": [ "woocommerce", "products", "tabs" ],
|
9 |
-
"textdomain": "otter-blocks"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/pro/woocommerce/title/block.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/product-title",
|
5 |
-
"title": "Product Title",
|
6 |
-
"category": "themeisle-woocommerce-blocks",
|
7 |
-
"description": "Display the title of your WooCommerce product.",
|
8 |
-
"keywords": [ "woocommerce", "products", "title" ],
|
9 |
-
"textdomain": "otter-blocks"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/animation/pro/woocommerce/upsells/block.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
-
"apiVersion": 2,
|
4 |
-
"name": "themeisle-blocks/product-upsells",
|
5 |
-
"title": "Product Upsells",
|
6 |
-
"category": "themeisle-woocommerce-blocks",
|
7 |
-
"description": "Display upsells for your WooCommerce product.",
|
8 |
-
"keywords": [ "woocommerce", "products", "upsells" ],
|
9 |
-
"textdomain": "otter-blocks"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-onboarding-component{border:1px solid #e7e7e7;padding:25px}.wp-block-themeisle-onboarding-component .components-placeholder__label svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px;margin-right:10px}.wp-block-themeisle-onboarding-component .wp-block-themeisle-layout-picker{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:4px 0}.wp-block-themeisle-onboarding-component .wp-block-themeisle-blocks-advanced-column-layout{background:#fff;cursor:pointer;border:1px solid #0075af;max-width:68px;line-height:28px;flex-shrink:1;width:68px;height:68px;padding:0 12px 2px;margin:5px 10px 5px 0}.wp-block-themeisle-onboarding-component .wp-block-themeisle-blocks-advanced-column-layout svg{min-width:42px;fill:#0075af}.wp-block-themeisle-onboarding-component .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;box-shadow:none}.wp-block-themeisle-onboarding-component .wp-block-themeisle-blocks-advanced-column-layout:hover svg{fill:#005d8c}.wp-block-themeisle-onboarding-component .components-placeholder__fieldset .wp-block-themeisle-template-library{font-size:12px;height:auto;line-height:28px;padding:4px 10px;margin:15px 0 10px 0;display:flex;align-items:center;align-self:flex-start}.wp-block-themeisle-onboarding-component .components-placeholder__fieldset .wp-block-themeisle-template-library .dashicon{margin-right:10px}.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{--columnsWidth: initial;display:flex}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap{flex-basis:100%;width:100%;word-break:keep-all;max-width:var(--columnsWidth)}.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-section-layout-picker .components-placeholder.components-placeholder{padding:unset;box-shadow:unset;justify-content:unset;height:max-content;min-height:unset;margin-bottom:10px}.o-section-layout-picker .components-placeholder.components-placeholder .components-placeholder__label{display:none}.o-section-layout-picker .components-placeholder.components-placeholder .components-placeholder__instructions{display:none}#otter-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{--columnsWidth: initial;display:flex}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap{flex-basis:100%;width:100%;word-break:keep-all;max-width:var(--columnsWidth)}.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 */
|
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/
|
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,wBACA,aAEA,8DACC,gBACA,WACA,oBACA,8BAEA,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"}
|
build/blocks/advanced-heading/editor.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.o-heading-header-panel.is-opened{padding:0}.o-heading-header-panel .header-tab{display:inline-block;width:50%;height:auto;padding:10px 20px;text-align:center;cursor:pointer}.o-heading-header-panel .header-tab.is-selected{border-bottom:2px solid #0085ba;background:#f3f4f5}.o-heading-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-heading-header-panel .header-tab span{display:inline-block;font-size:12px}.o-heading-header-panel .header-tab span .dashicon{display:block;margin:0 auto;font-size:20px}.edit-post-settings-sidebar__panel-block .components-panel__body .components-color-palette{display:inline-block}.wp-themesiel-blocks-advanced-heading-popover-content .components-popover__content{padding:20px;width:300px}/*# sourceMappingURL=editor.css.map */
|
1 |
+
span.wp-block-themeisle-blocks-advanced-heading{display:block}span.wp-block-themeisle-blocks-advanced-heading.highlight{background-color:#ff0;color:#000}.o-heading-header-panel.is-opened{padding:0}.o-heading-header-panel .header-tab{display:inline-block;width:50%;height:auto;padding:10px 20px;text-align:center;cursor:pointer}.o-heading-header-panel .header-tab.is-selected{border-bottom:2px solid #0085ba;background:#f3f4f5}.o-heading-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-heading-header-panel .header-tab span{display:inline-block;font-size:12px}.o-heading-header-panel .header-tab span .dashicon{display:block;margin:0 auto;font-size:20px}.edit-post-settings-sidebar__panel-block .components-panel__body .components-color-palette{display:inline-block}.wp-themesiel-blocks-advanced-heading-popover-content .components-popover__content{padding:20px;width:300px}/*# sourceMappingURL=editor.css.map */
|
build/blocks/advanced-heading/editor.css.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sourceRoot":"","sources":["../../../src/blocks/blocks/advanced-heading/editor.scss"],"names":[],"mappings":"
|
1 |
+
{"version":3,"sourceRoot":"","sources":["../../../src/blocks/blocks/advanced-heading/style.scss","../../../src/blocks/blocks/advanced-heading/editor.scss"],"names":[],"mappings":"AAAA,gDACC,cACA,0DACC,sBACA,WCDD,kCACC,UAGD,oCACC,qBACA,UACA,YACA,kBACA,kBACA,eAEA,gDACC,gCACA,mBAIA,uJACC,mBACA,gBAIF,yCACC,qBACA,eAEA,mDACC,cACA,cACA,eAQH,2FACC,qBAKD,mFACC,aACA","file":"editor.css"}
|
build/blocks/advanced-heading/style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
span.wp-block-themeisle-blocks-advanced-heading{display:block}span.highlight{background-color:#ff0;color:#000}/*# sourceMappingURL=style.css.map */
|
1 |
+
span.wp-block-themeisle-blocks-advanced-heading{display:block}span.wp-block-themeisle-blocks-advanced-heading.highlight{background-color:#ff0;color:#000}/*# sourceMappingURL=style.css.map */
|
build/blocks/advanced-heading/style.css.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sourceRoot":"","sources":["../../../src/blocks/blocks/advanced-heading/style.scss"],"names":[],"mappings":"
|
1 |
+
{"version":3,"sourceRoot":"","sources":["../../../src/blocks/blocks/advanced-heading/style.scss"],"names":[],"mappings":"AAAA,gDACC,cACA,0DACC,sBACA","file":"style.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' => '
|
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' => 'fc6939e10b49bd6ef321767a400d7cb6');
|
build/blocks/blocks.js
CHANGED
@@ -1,29 +1,29 @@
|
|
1 |
-
!function(){"use strict";var e,t,o,l={
|
2 |
--titleColor: ${n("titleColor")};
|
3 |
--titleBackground: ${n("titleBackground")};
|
4 |
--borderColor: ${n("borderColor")};
|
5 |
--contentBackground: ${n("contentBackground")};
|
6 |
-
`,u=(0,m.useBlockProps)({id:o.id,className:s()({[`is-${o.gap}-gap`]:o.gap}),css:i});return(0,d.tZ)(c.Fragment,null,(0,d.tZ)(p,{attributes:o,setAttributes:l,getValue:n}),(0,d.tZ)("div",u,(0,d.tZ)(m.InnerBlocks,{allowedBlocks:["themeisle-blocks/accordion-item"],template:[["themeisle-blocks/accordion-item"]],renderAppender:r?m.InnerBlocks.ButtonBlockAppender:""})))},save:e=>{let{attributes:t}=e;const o=m.useBlockProps.save({id:t.id,className:s()({[`is-${t.gap}-gap`]:t.gap})});return(0,c.createElement)("div",o,(0,c.createElement)(m.InnerBlocks.Content,null))}})},7767:function(e,t,o){o(8398),o(1125)},1125:function(e,t,o){var l=o(5736),a=o(4981),r=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}}'),n=o(340),c=o(9307),i=o(6015),s=o(3904),d=o(2175),m=o(5609),u=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(d.InspectorControls,null,(0,c.createElement)(m.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(m.ToggleControl,{label:(0,l.__)("Initially Open","otter-blocks"),checked:t.initialOpen,onChange:e=>o({initialOpen:e})})))};const{name:b}=r;(0,a.registerBlockType)(b,{...r,title:(0,l.__)("Accordion Item","otter-blocks"),description:(0,l.__)("Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","otter-blocks"),icon:n.buttonsIcon,keywords:["accordions","collapse","faq"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[a,r]=(0,c.useState)(!0);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u,{attributes:t,setAttributes:o}),(0,c.createElement)("div",(0,d.useBlockProps)(),(0,c.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")?r(!0):r(!a)}},(0,c.createElement)(d.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.title,onChange:e=>{a||r(!0),o({title:e})},tagName:"span"}),(0,c.createElement)(m.Icon,{icon:a?i.Z:s.Z,size:24})),a&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,c.createElement)(d.InnerBlocks,{template:[["core/paragraph"]]}))))},save:e=>{let{attributes:t}=e;const o=d.useBlockProps.save({open:!!t.initialOpen});return(0,c.createElement)("details",o,(0,c.createElement)("summary",{className:"wp-block-themeisle-blocks-accordion-item__title"},(0,c.createElement)(d.RichText.Content,{tagName:"div",value:t.title})),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,c.createElement)(d.InnerBlocks.Content,null)))}})},4443:function(e,t,o){var l=o(5736),a=o(4981),r=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"}'),n=o(9307),c=o(6713),i=window.wp.richText,s=o(2175);const d="themeisle-blocks/highlight";(0,i.registerFormatType)(d,{name:d,title:(0,l.__)("Highlight","otter-blocks"),tagName:"span",className:"highlight",edit:e=>{let{isActive:t,value:o,onChange:a}=e;const r=()=>a((0,i.toggleFormat)(o,{type:d}));return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.RichTextShortcut,{type:"primary",character:"h",onUse:r}),(0,n.createElement)(s.RichTextToolbarButton,{icon:c.Z,title:(0,l.__)("Highlight","otter-blocks"),onClick:r,isActive:t,shortcutType:"access",shortcutCharacter:"h"}))}});var m=o(340),u=o(4184),b=o.n(u),p=o(80),g=o.n(p),h=[{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 ${g()(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,n.createElement)(s.RichText.Content,{tagName:o.tag,value:o.content,id:o.id,className:b()(o.id,l),style:a})}}],k={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})}}]},v=o(7462),y=o(5988),_=o(2819),f=o(4333),w=o(9818),C=o(5225),E=o(5609),x=o(9977),T=e=>{let{attributes:t,setAttributes:o}=e;const a=e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},r=e=>{switch(e){case"h1":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1"));case"h2":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2"));case"h3":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3"));case"h4":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4"));case"h5":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5"));case"h6":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6"));case"div":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV"));case"p":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{x:"0",y:"15"},"P"));case"span":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN"));default:return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DEFAULT"))}},c=e=>{o({tag:e})};return(0,n.createElement)(s.BlockControls,null,(0,n.createElement)(E.DropdownMenu,{icon:r(t.tag),label:(0,l.__)("Select tag","otter-blocks"),className:"components-toolbar",controls:[{title:(0,l.__)("Heading","otter-blocks")+" 1",icon:r("h1"),onClick:()=>c("h1")},{title:(0,l.__)("Heading","otter-blocks")+" 2",icon:r("h2"),onClick:()=>c("h2")},{title:(0,l.__)("Heading","otter-blocks")+" 3",icon:r("h3"),onClick:()=>c("h3")},{title:(0,l.__)("Heading","otter-blocks")+" 4",icon:r("h4"),onClick:()=>c("h4")},{title:(0,l.__)("Heading","otter-blocks")+" 5",icon:r("h5"),onClick:()=>c("h5")},{title:(0,l.__)("Heading","otter-blocks")+" 6",icon:r("h6"),onClick:()=>c("h6")},{title:(0,l.__)("Division","otter-blocks"),icon:r("div"),onClick:()=>c("div")},{title:(0,l.__)("Paragraph","otter-blocks"),icon:r("p"),onClick:()=>c("p")},{title:(0,l.__)("Span Tag","otter-blocks"),icon:r("span"),onClick:()=>c("span")}]}),(0,n.createElement)(E.ToolbarGroup,null,(0,n.createElement)(E.Dropdown,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:e=>{let{isOpen:t,onToggle:o}=e;return(0,n.createElement)(E.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,n.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:()=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(x.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,n.createElement)(E.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,step:.1,max:3}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),min:-50,max:100}))})))},M=o(2136),S=o(6993),B=o(2372),z=o(1661),P=e=>{let{values:t,setAttributes:o}=e;return(0,n.createElement)("div",{className:"o-clear-button"},(0,n.createElement)(E.Button,{isSmall:!0,isSecondary:!0,onClick:()=>{const e=((0,_.isArray)(t)?t:[t]).map((e=>{if((0,_.isString)(e))return e;if((0,_.isObject)(e)){const t=Object.keys(e);if(1===t.length)return e[t[0]]?t[0]:void 0}})).filter(_.isString).reduce(((e,t)=>(e[t]=void 0,e)),{});o(e)}},(0,l.__)("Clear","otter-blocks")))},V=e=>{let{attributes:t,setAttributes:o}=e;const a=(0,w.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[r,c]=(0,n.useState)("style"),i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},d={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},m={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},u=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"},g={top:"marginTopTablet",bottom:"marginBottomTablet"},h={top:"marginTopMobile",bottom:"marginBottomMobile"},k=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,n.createElement)(n.Fragment,null,(0,n.createElement)(s.InspectorControls,null,(0,n.createElement)(E.PanelBody,{className:"o-heading-header-panel"},(0,n.createElement)(E.Button,{className:b()("header-tab",{"is-selected":"style"===r}),onClick:()=>c("style")},(0,n.createElement)("span",null,(0,n.createElement)(E.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,n.createElement)(E.Button,{className:b()("header-tab",{"is-selected":"advanced"===r}),onClick:()=>c("advanced")},(0,n.createElement)("span",null,(0,n.createElement)(E.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"style"===r&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(E.PanelBody,{title:(0,l.__)("General Settings","otter-blocks"),className:"o-adv-h-panel"},(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Heading Color","otter-blocks"),colorValue:t.headingColor,onColorChange:e=>o({headingColor:e})}),(0,n.createElement)(S.Z,{label:(0,l.__)("Font Size","otter-blocks")},(0,n.createElement)(E.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})},min:1,max:500,allowReset:!0})),(0,n.createElement)(S.Z,{label:(0,l.__)("Alignment","otter-blocks")},(0,n.createElement)(s.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,n.createElement)(E.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,n.createElement)(x.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,n.createElement)(P,{values:["fontFamily","fontVariant","fontStyle","textTransform"],setAttributes:o}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,step:.1,max:3,allowReset:!0}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),min:-50,max:100,allowReset:!0}),(0,n.createElement)(E.ToggleControl,{label:(0,l.__)("Shadow Properties","otter-blocks"),checked:t.textShadow,onChange:e=>o({textShadow:e})}),t.textShadow&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.textShadowColor,onColorChange:e=>o({textShadowColor:e})}),(0,n.createElement)(M.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.textShadowColorOpacity,onChange:e=>o({textShadowColorOpacity:e}),min:0,max:100}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.textShadowBlur,onChange:e=>o({textShadowBlur:e}),min:0,max:100}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.textShadowHorizontal,onChange:e=>o({textShadowHorizontal:e}),min:-100,max:100}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.textShadowVertical,onChange:e=>o({textShadowVertical:e}),min:-100,max:100})))))||"advanced"===r&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(E.PanelBody,{title:(0,l.__)("Highlight Color","otter-blocks")},(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Color","otter-blocks"),colorValue:t.highlightColor,onColorChange:e=>o({highlightColor:e})}),(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Background","otter-blocks"),colorValue:t.highlightBackground,onColorChange:e=>o({highlightBackground:e})})),(0,n.createElement)(E.PanelBody,{title:(0,l.__)("Spacing","otter-blocks"),initialOpen:!1},(0,n.createElement)(S.Z,{label:(0,l.__)("Padding","otter-blocks")},(0,n.createElement)(B.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({[i[e]]:l});break;case"Tablet":"linked"===t.paddingTypeTablet?o({paddingTablet:l}):o({[d[e]]:l});break;case"Mobile":"linked"===t.paddingTypeMobile?o({paddingMobile:l}):o({[m[e]]:l})}},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:u("top")},{label:(0,l.__)("Right","otter-blocks"),type:"right",value:u("right")},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:u("bottom")},{label:(0,l.__)("Left","otter-blocks"),type:"left",value:u("left")}]})),(0,n.createElement)(P,{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,n.createElement)(S.Z,{label:(0,l.__)("Margin","otter-blocks")},(0,n.createElement)(B.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({[g[e]]:l});break;case"Mobile":"linked"===t.marginTypeMobile?o({marginMobile:l}):o({[h[e]]:l})}},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:k("top")},{label:(0,l.__)("Right","otter-blocks"),disabled:!0},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:k("bottom")},{label:(0,l.__)("Left","otter-blocks"),disabled:!0}]})),(0,n.createElement)(P,{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,n.createElement)(z.Z,{value:t.id,onChange:e=>o({id:e})}))};const{attributes:R}=r;const{name:L}=r;(0,a.registerBlockType)(L,{...r,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:m.headingIcon,keywords:["heading","title","advanced heading"],deprecated:h,transforms:k,edit:e=>{let{attributes:t,setAttributes:o,clientId:r,mergeBlocks:c,insertBlocksAfter:i,onReplace:d}=e;const{isViewportAvailable:m,isPreviewDesktop:u,isPreviewTablet:b,isPreviewMobile:p}=(0,w.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()}}),[]),h=(0,f.useViewportMatch)("large",">="),k=(0,f.useViewportMatch)("large","<="),E=(0,f.useViewportMatch)("small",">="),x=(0,f.useViewportMatch)("small","<=");(0,n.useEffect)((()=>{const e=(0,C.WX)(r,R);return()=>e(t.id)}),[t.id]);let M,S,B,z=h&&!k&&E&&!x,P=!h&&!k&&E&&!x,L=!(h||k||E||x);m&&!L&&(z=u,P=b,L=p),z&&(M={fontSize:t.fontSize?`${t.fontSize}px`:void 0},S={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`}),P&&(M={fontSize:t.fontSizeTablet?`${t.fontSizeTablet}px`:void 0},S={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`}),L&&(M={fontSize:t.fontSizeMobile?`${t.fontSizeMobile}px`:void 0},S={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&&(B={textShadow:`${t.textShadowHorizontal}px ${t.textShadowVertical}px ${t.textShadowBlur}px ${g()(t.textShadowColor?t.textShadowColor:"#000000",0<=t.textShadowColorOpacity?t.textShadowColorOpacity||1e-5:1)}`});const H=(0,_.omitBy)({color:t.headingColor,...M,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`,...S,...B},(e=>{var t;return null==e||null===(t=e.includes)||void 0===t?void 0:t.call(e,"undefined")})),N=(0,s.useBlockProps)({id:t.id,style:H});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)("style",null,`#${t.id} mark, #${t.id} .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}`),t.fontFamily&&(0,n.createElement)(y.Z,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&[t.fontVariant+("italic"===t.fontStyle?":i":"")]}]}),(0,n.createElement)(T,{attributes:t,setAttributes:o}),(0,n.createElement)(V,{attributes:t,setAttributes:o}),(0,n.createElement)(s.RichText,(0,v.Z)({identifier:"content",value:t.content,placeholder:(0,l.__)("Write heading…","otter-blocks"),tagName:t.tag,formattingControls:["bold","italic","link","strikethrough","highlight"],allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/highlight","themeisle-blocks/count-animation","themeisle-blocks/typing-animation"],onMerge:c,onSplit:i?function(e,t){o({content:e});for(var l=arguments.length,r=new Array(l>2?l-2:0),n=2;n<l;n++)r[n-2]=arguments[n];i([...r,(0,a.createBlock)("core/paragraph",{content:t})])}:void 0,onRemove:()=>d([]),onChange:e=>{o({content:e})}},N)))},save:e=>{let{attributes:t}=e;const o=s.useBlockProps.save({id:t.id,className:t.id});return(0,n.createElement)(s.RichText.Content,(0,v.Z)({tagName:t.tag,value:t.content},o))}})},9078:function(e,t,o){var l=o(5736),a=o(4981),r=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"}]}'),n=o(340),c=o(9307),i=o(5711),s=o(4184),d=o.n(s),m=o(80),u=o.n(m),b=o(2175),p=o(9818),g=o(8504),h=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,c.createElement)(b.BlockControls,null,(0,c.createElement)(g.Z,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))},k=o(5609),v=o(2136);const y=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var _=e=>{let{attributes:t,setAttributes:o}=e;const[a,r]=(0,c.useState)(!1),n=()=>(0,c.createElement)(k.ButtonGroup,null,(0,c.createElement)(k.Button,{isSmall:!0,isSecondary:a,isPrimary:!a,onClick:()=>r(!1)},(0,l.__)("Normal","otter-blocks")),(0,c.createElement)(k.Button,{isSmall:!0,isSecondary:!a,isPrimary:a,onClick:()=>r(!0)},(0,l.__)("Hover","otter-blocks")));return(0,c.createElement)(b.InspectorControls,null,(0,c.createElement)(k.PanelBody,{title:(0,l.__)("Color","otter-blocks")},(0,c.createElement)(n,null),a?(0,c.createElement)(c.Fragment,{key:"with-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Hover Color","otter-blocks"),colorValue:t.hoverColor,onColorChange:e=>o({hoverColor:e})}),(0,c.createElement)(b.__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,c.createElement)(c.Fragment,{key:"without-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.color,onColorChange:e=>o({color:e})}),(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:t.background,gradientValue:t.backgroundGradient,onColorChange:e=>o({background:e}),onGradientChange:e=>o({backgroundGradient:e})}))),(0,c.createElement)(k.PanelBody,{title:(0,l.__)("Border & Box Shadow","otter-blocks"),initialOpen:!1},(0,c.createElement)(n,null),a?(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Hover Border","otter-blocks"),colorValue:t.hoverBorder,onColorChange:e=>o({hoverBorder:e})}):(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.border,onColorChange:e=>o({border:e})}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),min:0,max:10}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),min:0,max:100}),(0,c.createElement)(v.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,c.createElement)(n,null),a?(0,c.createElement)(c.Fragment,{key:"with-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color on Hover","otter-blocks"),colorValue:t.hoverBoxShadowColor,onColorChange:e=>o({hoverBoxShadowColor:e})}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.hoverBoxShadowColorOpacity,onChange:e=>o({hoverBoxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.hoverBoxShadowBlur,onChange:e=>o({hoverBoxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.hoverBoxShadowSpread,onChange:e=>o({hoverBoxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.hoverBoxShadowHorizontal,onChange:e=>o({hoverBoxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.hoverBoxShadowVertical,onChange:e=>o({hoverBoxShadowVertical:e}),min:-100,max:100})):(0,c.createElement)(c.Fragment,{key:"without-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))),(0,c.createElement)(k.PanelBody,{title:(0,l.__)("Icon Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.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,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(k.Placeholder,null,(0,c.createElement)(k.Spinner,null))},(0,c.createElement)(y,{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})}}))))},f=o(48),w=o(5225);const{attributes:C}=r;const{name:E}=r;(0,a.registerBlockType)(E,{...r,title:(0,l.__)("Button","otter-blocks"),description:(0,l.__)("Prompt visitors to take action with a button group. Powered by Otter.","otter-blocks"),icon:n.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")}],edit:e=>{let{attributes:t,setAttributes:o,isSelected:a,clientId:r}=e;const{hasParent:n,parentAttributes:s}=(0,p.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),l=t(o(r));return{hasParent:!!l,parentAttributes:l?l.attributes:{}}}),[]);(0,c.useEffect)((()=>{const e=(0,w.WX)(r,C);return()=>e(t.id)}),[]);let m={},g={};t.boxShadow&&(m={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${u()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`}),n&&(g={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 k={color:t.color,background:t.background||t.backgroundGradient,border:`${t.borderSize}px solid ${t.border}`,borderRadius:t.borderRadius,...m,...g},v=i.iv`
|
|
|
|
|
|
|
|
|
7 |
&:hover {
|
8 |
color: ${t.hoverColor} !important;
|
9 |
background: ${t.hoverBackground||t.hoverBackgroundGradient} !important;
|
10 |
border-color: ${t.hoverBorder} !important;
|
11 |
-
${t.boxShadow&&`box-shadow: ${t.hoverBoxShadowHorizontal}px ${t.hoverBoxShadowVertical}px ${t.hoverBoxShadowBlur}px ${t.hoverBoxShadowSpread}px ${
|
12 |
}
|
13 |
|
14 |
&:hover svg {
|
15 |
fill: ${t.hoverColor} !important;
|
16 |
}
|
17 |
-
`,y={fill:t.color,width:s.fontSize&&`${s.fontSize}px`},E=f.ZP.icons[t.icon],x=(0,b.useBlockProps)({id:t.id,className:"wp-block-button",style:{}});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(h,{attributes:t,setAttributes:o,isSelected:a}),(0,i.tZ)(_,{attributes:t,setAttributes:o}),(0,i.tZ)("div",x,"none"!==t.iconType?(0,i.tZ)("div",{className:"wp-block-button__link",style:k,css:v},("left"===t.iconType||"only"===t.iconType)&&("themeisle-icons"===t.library&&t.icon?(0,i.tZ)(E,{className:d()({"margin-right":"left"===t.iconType}),style:y}):(0,i.tZ)("i",{className:d()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,i.tZ)(b.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.tZ)(E,{className:"margin-left",style:y}):(0,i.tZ)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))):(0,i.tZ)(b.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:k,css:v})))},save:e=>{let{attributes:t}=e;const o=f.ZP.icons[t.icon],l=b.useBlockProps.save({id:t.id,className:"wp-block-button"});return(0,c.createElement)("div",l,(0,c.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,c.createElement)(o,{className:d()({"margin-right":"left"===t.iconType})}):(0,c.createElement)("i",{className:d()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,c.createElement)(b.RichText.Content,{tagName:"span",value:t.text}),"right"===t.iconType&&("themeisle-icons"===t.library&&t.icon?(0,c.createElement)(o,{className:"margin-left"}):(0,c.createElement)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))))}})},9521:function(e,t,o){var l=o(5736),a=o(4981),r=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"},"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"}'),n=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(2819),m=o(2175);const u={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}]}},b=[{attributes:u,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,c.createElement)("div",{id:t.id,className:s()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,d.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,c.createElement)(c.Fragment,null,(0,c.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:s()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`),style:o},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,c.createElement)("i",{className:s()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,c.createElement)(m.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))})(e))))}},{attributes:u,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,c.createElement)("div",{id:t.id,className:s()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,d.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,c.createElement)(c.Fragment,null,(0,c.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:s()("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,c.createElement)("i",{className:s()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,c.createElement)(m.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))})(e))))}},{attributes:{...u,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,r;return"flex-start"===e.align&&(o="left"),"center"===e.align&&(o="center"),"flex-end"===e.align&&(o="right"),e.data&&(l=(0,d.pick)(e.data[0],["paddingLeftRight","paddingTopBottom"]),1<=Object.keys(l).length&&(l=(0,d.pick)(l,Object.keys(l).filter((e=>""!==l[e])))),r=e.data.filter(((t,o)=>o<e.buttons)).map((e=>{const t=(0,d.omit)(e,["paddingLeftRight","paddingTopBottom"]);return(0,a.createBlock)("themeisle-blocks/button",{...t})}))),[{...(0,d.omit)(e,["buttons","data"]),align:o,...l},[...r,...t]]},save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"";return(0,c.createElement)("div",{id:t.id,className:s()(o,l,"wp-block-button")},(0,d.times)(t.buttons,(e=>(e=>(0,c.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:s()("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,c.createElement)("i",{className:s()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,c.createElement)(m.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))(e))))}}];var p=b,g=o(5988),h=o(5711),k=o(4333),v=o(9818),y=o(1150),_=o(8065),f=o(199),w=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(m.BlockControls,null,(0,c.createElement)(m.AlignmentToolbar,{value:t.align,onChange:e=>o({align:e}),alignmentControls:[{icon:y.Z,title:(0,l.__)("Align left","otter-blocks"),align:"left"},{icon:_.Z,title:(0,l.__)("Align center","otter-blocks"),align:"center"},{icon:f.Z,title:(0,l.__)("Align right","otter-blocks"),align:"right"}]}))},C=o(5609),E=o(9977),x=o(2372),T=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(C.PanelBody,{title:(0,l.__)("Spacing","otter-blocks")},(0,c.createElement)(x.Z,{label:(0,l.__)("Padding","otter-blocks"),min:0,max:100,onChange:(e,t)=>{"top"!==e&&"bottom"!==e||o({paddingTopBottom:t}),"right"!==e&&"left"!==e||o({paddingLeftRight:t})},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:t.paddingTopBottom},{label:(0,l.__)("Right","otter-blocks"),type:"right",value:t.paddingLeftRight},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:t.paddingTopBottom},{label:(0,l.__)("Left","otter-blocks"),type:"left",value:t.paddingLeftRight}]}),(0,c.createElement)(C.RangeControl,{label:(0,l.__)("Spacing","otter-blocks"),value:t.spacing,onChange:e=>o({spacing:e}),min:0,max:50}),(0,c.createElement)(C.SelectControl,{label:(0,l.__)("Collapse On","otter-blocks"),value:t.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=>o({collapse:e})})),(0,c.createElement)(C.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(C.RangeControl,{label:(0,l.__)("Font Size","otter-blocks"),value:t.fontSize,onChange:e=>o({fontSize:e}),min:0,max:50}),(0,c.createElement)(E.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:void 0,fontVariant:void 0,fontStyle:void 0})},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,c.createElement)(C.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,max:200})))},M=o(5225);const{attributes:S}=r;const{name:B}=r;(0,a.registerBlockType)(B,{...r,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:n.buttonsIcon,keywords:["button","buttons","button group"],deprecated:p,edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const{isViewportAvailable:a,isPreviewDesktop:r,isPreviewTablet:n,isPreviewMobile:i}=(0,v.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,k.useViewportMatch)("large",">="),u=(0,k.useViewportMatch)("large","<="),b=(0,k.useViewportMatch)("small",">="),p=(0,k.useViewportMatch)("small","<=");(0,c.useEffect)((()=>{const e=(0,M.WX)(l,S);return()=>e(t.id)}),[]);let y=d&&!u&&b&&!p,_=!d&&!u&&b&&!p,f=!(d||u||b||p);a&&!f&&(y=r,_=n,f=i);const C=(0,m.useBlockProps)({id:t.id,className:s()("wp-block-buttons",{[`align-${t.align}`]:t.align,collapse:"collapse-desktop"===t.collapse&&(y||_||f)||"collapse-tablet"===t.collapse&&(_||f)||"collapse-mobile"===t.collapse&&f}),css:h.iv`
|
18 |
-
|
19 |
-
gap: ${t.spacing}px;
|
20 |
-
}
|
21 |
-
`});return(0,h.tZ)(c.Fragment,null,t.fontFamily&&(0,h.tZ)(g.Z,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&[t.fontVariant+("italic"===t.fontStyle?":i":"")]}]}),(0,h.tZ)(w,{attributes:t,setAttributes:o}),(0,h.tZ)(T,{attributes:t,setAttributes:o}),(0,h.tZ)("div",C,(0,h.tZ)(m.InnerBlocks,{allowedBlocks:["themeisle-blocks/button"],__experimentalMoverDirection:"horizontal",orientation:"horizontal",template:[["themeisle-blocks/button"]],renderAppender:m.InnerBlocks.DefaultAppender})))},save:e=>{let{attributes:t}=e;const o="collapse-none"!==t.collapse?t.collapse:"",l=m.useBlockProps.save({id:t.id,className:s()(o,"wp-block-buttons",{[`align-${t.align}`]:t.align})});return(0,c.createElement)("div",l,(0,c.createElement)(m.InnerBlocks.Content,null))}})},3312:function(e,t,o){o(9521),o(9078)},469:function(e,t,o){var l=o(269),a=o(5736),r=o(4981),n=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"}'),c=o(9307),i=o(5711),s=o(2819),d=o(5609),m=o(2175),u=e=>{let{attributes:t,setAttributes:o,onHeightChange:l}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Percentage","otter-blocks"),help:(0,a.__)("The value of the counter.","otter-blocks"),value:t.percentage,onChange:e=>{void 0!==e&&(e=(0,s.clamp)(e,0,100),o({percentage:e}))},min:0,max:100}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Duration","otter-blocks"),help:(0,a.__)("The duration of the animation.","otter-blocks"),value:t.duration,onChange:e=>{void 0!==e&&(e=(0,s.clamp)(e,0,3),o({duration:e}))},min:0,max:3,step:.1}),(0,c.createElement)(d.SelectControl,{label:(0,a.__)("Title Style","otter-blocks"),value:t.titleStyle,options:[{label:(0,a.__)("Default","otter-blocks"),value:"default"},{label:(0,a.__)("Hide","otter-blocks"),value:"hide"},{label:(0,a.__)("Bottom","otter-blocks"),value:"bottom"}],onChange:e=>{o({titleStyle:e})}})),(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Style","otter-blocks")},(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Height","otter-blocks"),help:(0,a.__)("The height of the circle counter.","otter-blocks"),value:t.height,onChange:l,min:0,max:240}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Circle Thickness","otter-blocks"),help:(0,a.__)("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,c.createElement)(d.RangeControl,{label:(0,a.__)("Font Size Title","otter-blocks"),help:(0,a.__)("Change the font size of the title.","otter-blocks"),value:t.fontSizeTitle,onChange:e=>{o({fontSizeTitle:e})},initialPosition:37,min:0,max:Math.round(.6*t.height)}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Font Size Percent","otter-blocks"),help:(0,a.__)("Change the font size of the inner text.","otter-blocks"),value:t.fontSizePercent,onChange:e=>{o({fontSizePercent:e})},initialPosition:27,min:0,max:Math.round(.27*t.height)}),"hide"!==t.titleStyle&&(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Title Color","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>{o({titleColor:e})}}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Progress Color","otter-blocks"),colorValue:t.progressColor,onColorChange:e=>{o({progressColor:e})}}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Background Color","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>{o({backgroundColor:e})}})))},b=e=>{let{attributes:t,progressRef:o,valueRef:l}=e;const a=t.height,r=a/2,n=a/2-t.strokeWidth/2,i=2*Math.PI*n;return 0>n?(0,c.createElement)("div",null):(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter__bar",style:{height:a+"px",width:a+"px"}},(0,c.createElement)("svg",{className:"wp-block-themeisle-blocks-circle-counter-container",width:a,height:a},(0,c.createElement)("circle",{className:"wp-block-themeisle-blocks-circle-counter-bg",cx:r,cy:r,r:n,strokeWidth:t.strokeWidth,style:{stroke:t.backgroundColor}}),(0,c.createElement)("circle",{ref:o,className:"wp-block-themeisle-blocks-circle-counter-progress",cx:r,cy:r,r:n,strokeWidth:t.strokeWidth,strokeDasharray:i,style:{stroke:t.progressColor}}),(0,c.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,"%")))},p=o(5225);const{attributes:g}=n;const{clamp:h,omit:k}=lodash;var v={to:[{type:"block",blocks:["themeisle-blocks/progress-bar"],transform:e=>{const t=k(e,["titleStyle","height","fontSize","strokeWidth","progressColor"]);return(0,r.createBlock)("themeisle-blocks/progress-bar",{...t,barBackgroundColor:e.progressColor,height:h(e.height/4,0,100),titleStyle:"default"})}}]};const{name:y}=n;(0,r.registerBlockType)(y,{...n,title:(0,a.__)("Circle Counter","otter-blocks"),description:(0,a.__)("Show your progress with a beautiful Circle Counter block. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["progress","circle","counter"],transforms:v,edit:e=>{let{clientId:t,attributes:o,setAttributes:l,isSelected:r,toggleSelection:n}=e;(0,c.useEffect)((()=>{const e=(0,p.WX)(t,g);return()=>e(o.id)}),[o.id]);const h=(0,c.useRef)(null),k=(0,c.useRef)(null),[v,y]=(0,c.useState)({}),_=o.height/2-o.strokeWidth/2,f=2*Math.PI*_;(0,c.useEffect)((()=>{if(!h.current||!h.current||0===o.duration)return;const e=o.percentage/(1e3*o.duration),t=(0,s.range)(0,1e3*o.duration+20,20).map((t=>t*e)).reverse();v&&clearInterval(v),h.current.style.strokeDashoffset=f,k.current.innerText="0%";const l=setInterval((()=>{if(!h.current)return void clearInterval(l);const e=Math.round(t.pop());h.current.style.strokeDashoffset=(100-e)/100*f,k.current.innerHTML=e+"%",0===t.length&&clearInterval(l)}),20);return y(l),()=>{clearInterval(l)}}),[o.duration]),(0,c.useEffect)((()=>{if(h.current&&h.current)return h.current.style.strokeDashoffset=(100-o.percentage)/100*f,k.current.innerHTML=o.percentage+"%",clearInterval(v),()=>{clearInterval(v)}}),[o.percentage,o.height]);const w=e=>{const t=(o.fontSizePercent||27)/o.height,a=(o.fontSizeTitle||37)/o.height;l({height:e,fontSizePercent:Math.round(e*t),fontSizeTitle:Math.round(e*a)})},C=e=>{l({title:e})},E=i.iv`
|
22 |
-
--fontSizeTitle: ${x=o.fontSizeTitle,x?`${x}px`:x};
|
23 |
-
`;var x;const T=(0,m.useBlockProps)({id:o.id,css:E});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(u,{attributes:o,setAttributes:l,onHeightChange:w}),(0,i.tZ)("div",T,"default"===o.titleStyle&&(0,i.tZ)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.tZ)(m.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:r?(0,a.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:C,multiline:!1,style:{color:o.titleColor}})),(0,i.tZ)(d.ResizableBox,{size:{height:o.height,width:o.height},minHeight:0,maxHeight:240,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:r,onResizeStop:(e,t,l,a)=>{w(parseInt(o.height+a.height,10)),n(!0)},onResizeStart:()=>{n(!1)}},(0,i.tZ)(b,{attributes:o,progressRef:h,valueRef:k})),"bottom"===o.titleStyle&&(0,i.tZ)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.tZ)(m.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:r?(0,a.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:C,multiline:!1,style:{color:o.titleColor}}))))},save:e=>{let{attributes:t}=e;const o=m.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,c.createElement)("div",o,"default"===t.titleStyle&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter__bar"}),"bottom"===t.titleStyle&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)))}})},4948:function(e,t,o){var l=o(2506),a=o(5736),r=o(4981),n=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"},"gap":{"type":"number"},"gapTablet":{"type":"number"},"gapMobile":{"type":"number"},"width":{"type":"number"},"widthTablet":{"type":"number"},"widthMobile":{"type":"number"},"height":{"type":"number"},"heightTablet":{"type":"number"},"heightMobile":{"type":"number"},"borderRadius":{"type":"number","default":0},"borderRadiusType":{"type":"string","default":"linked"},"borderRadiusTopRight":{"type":"number","default":0},"borderRadiusTopLeft":{"type":"number","default":0},"borderRadiusBottomRight":{"type":"number","default":0},"borderRadiusBottomLeft":{"type":"number","default":0},"borderWidth":{"type":"number"},"borderWidthTablet":{"type":"number"},"borderWidthMobile":{"type":"number"},"borderColor":{"type":"string"},"valueFontSize":{"type":"number"},"valueFontSizeTablet":{"type":"number"},"valueFontSizeMobile":{"type":"number"},"labelFontSize":{"type":"number"},"labelFontSizeTablet":{"type":"number"},"labelFontSizeMobile":{"type":"number"},"hasSeparators":{"type":"boolean"}},"supports":{"align":["wide","full"]},"editorStyle":"otter-countdown-editor","style":"otter-countdown-style","script":"otter-countdown"}'),c=o(9307),i=o(5711),s=o(2175),d=o(4333),m=o(9818),u=window.moment,b=o.n(u),p=o(5225),g=o(5609),h=o(9771),k=o(6993),v=o(2372),y=e=>{var t,o,l,r;let{attributes:n,setAttributes:i}=e;const d=(0,m.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),u=(e,t)=>{var o;i(e?{exclude:null==n||null===(o=n.exclude)||void 0===o?void 0:o.filter((e=>e!==t))}:{exclude:null!=n&&n.exclude?[...null==n?void 0:n.exclude,t]:[t]})},b=e=>{let t;return"top-right"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusTopRight),"top-left"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusTopLeft),"bottom-right"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusBottomRight),"bottom-left"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusBottomLeft),t},p={"top-right":"borderRadiusTopRight","top-left":"borderRadiusTopLeft","bottom-left":"borderRadiusBottomLeft","bottom-right":"borderRadiusBottomRight"},y=(0,h.__experimentalGetSettings)();return(0,c.createElement)(s.InspectorControls,null,(0,c.createElement)(g.PanelBody,{title:(0,a.__)("Time","otter-blocks")},(0,c.createElement)(g.Dropdown,{position:"bottom left",headerTitle:(0,a.__)("Select the date for the deadline","otter-blocks"),renderToggle:e=>{let{onToggle:t,isOpen:o}=e;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(g.Button,{onClick:t,isSecondary:!0,"aria-expanded":o},n.date?(0,h.format)(y.formats.datetime,n.date):(0,a.__)("Select Date","otter-blocks")))},renderContent:()=>(0,c.createElement)(g.DateTimePicker,{currentDate:n.date,onChange:e=>i({date:e})})})),(0,c.createElement)(g.PanelBody,{title:(0,a.__)("Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Days","otter-blocks"),checked:!(null!=n&&null!==(t=n.exclude)&&void 0!==t&&t.includes("day")),onChange:e=>u(e,"day")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Hours","otter-blocks"),checked:!(null!=n&&null!==(o=n.exclude)&&void 0!==o&&o.includes("hour")),onChange:e=>u(e,"hour")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Minutes","otter-blocks"),checked:!(null!=n&&null!==(l=n.exclude)&&void 0!==l&&l.includes("minute")),onChange:e=>u(e,"minute")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Seconds","otter-blocks"),checked:!(null!=n&&null!==(r=n.exclude)&&void 0!==r&&r.includes("second")),onChange:e=>u(e,"second")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Separators","otter-blocks"),checked:null==n?void 0:n.hasSeparators,onChange:e=>i({hasSeparators:e})}),(0,c.createElement)(k.Z,{label:(0,a.__)("Box Spacing","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.gapMobile:"Tablet"===d?n.gapTablet:n.gap,onChange:e=>{"Desktop"===d&&i({gap:Number(e)}),"Tablet"===d&&i({gapTablet:Number(e)}),"Mobile"===d&&i({gapMobile:Number(e)})},min:0,max:100})),(0,c.createElement)(k.Z,{label:(0,a.__)("Box Height","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.heightMobile:"Tablet"===d?n.heightTablet:n.height,onChange:e=>{"Desktop"===d&&i({height:Number(e)}),"Tablet"===d&&i({heightTablet:Number(e)}),"Mobile"===d&&i({heightMobile:Number(e)})},min:40,max:300})),(0,c.createElement)(k.Z,{label:(0,a.__)("Box Width","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.widthMobile:"Tablet"===d?n.widthTablet:n.width,onChange:e=>{"Desktop"===d&&i({width:Number(e)}),"Tablet"===d&&i({widthTablet:Number(e)}),"Mobile"===d&&i({widthMobile:Number(e)})},min:40,max:300})),(0,c.createElement)(k.Z,{label:(0,a.__)("Border Width","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.borderWidthMobile:"Tablet"===d?n.borderWidthTablet:n.borderWidth,onChange:e=>{"Desktop"===d&&i({borderWidth:Number(e)}),"Tablet"===d&&i({borderWidthTablet:Number(e)}),"Mobile"===d&&i({borderWidthMobile:Number(e)})},min:0,max:50})),(0,c.createElement)(k.Z,{label:(0,a.__)("Time Value Font Size","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.valueFontSizeMobile:"Tablet"===d?n.valueFontSizeTablet:n.valueFontSize,onChange:e=>{"Desktop"===d&&i({valueFontSize:Number(e)}),"Tablet"===d&&i({valueFontSizeTablet:Number(e)}),"Mobile"===d&&i({valueFontSizeMobile:Number(e)})},min:0,max:64})),(0,c.createElement)(k.Z,{label:(0,a.__)("Label Font Size","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.labelFontSizeMobile:"Tablet"===d?n.labelFontSizeTablet:n.labelFontSize,onChange:e=>{"Desktop"===d&&i({labelFontSize:Number(e)}),"Tablet"===d&&i({labelFontSizeTablet:Number(e)}),"Mobile"===d&&i({labelFontSizeMobile:Number(e)})},min:0,max:64})),(0,c.createElement)(v.Z,{label:(0,a.__)("Border Radius (%)","otter-blocks"),type:n.borderRadiusType,min:0,max:100,changeType:e=>{i({borderRadiusType:e})},onChange:(e,t)=>{"linked"===n.borderRadiusType?i({borderRadius:t}):i({[p[e]]:t})},options:[{label:(0,a.__)("Top Left","otter-blocks"),type:"top-left",value:b("top-left")},{label:(0,a.__)("Top Right","otter-blocks"),type:"top-right",value:b("top-right")},{label:(0,a.__)("Bottom Right","otter-blocks"),type:"bottom-right",value:b("bottom-right")},{label:(0,a.__)("Bottom Left","otter-blocks"),type:"bottom-left",value:b("bottom-left")}]})),(0,c.createElement)(s.PanelColorSettings,{title:(0,a.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:n.backgroundColor,onChange:e=>{i({backgroundColor:e})},label:(0,a.__)("Background","otter-blocks")},{value:n.labelColor,onChange:e=>{i({labelColor:e})},label:(0,a.__)("Label","otter-blocks")},{value:n.valueColor,onChange:e=>{i({valueColor:e})},label:(0,a.__)("Value","otter-blocks")},{value:n.borderColor,onChange:e=>{i({borderColor:e})},label:(0,a.__)("Border","otter-blocks")}]},(0,c.createElement)(s.ContrastChecker,{textColor:n.backgroundColor,backgroundColor:n.valueColor})))},_=o(4715),f=o(7462),w=o(4184),C=o.n(w);const E=e=>{let{name:t,value:o,tag:l,styles:a}=e;const r="sep"!==t?{...a.allComponents,...a.mainComponents}:a.allComponents;return(0,c.createElement)("div",{style:r,name:l,className:C()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,c.createElement)("div",{style:a.value,className:"otter-countdown__value"},o),(0,c.createElement)("div",{style:a.label,className:"otter-countdown__label"},t))};var x=e=>{let{time:t,hasSeparators:o,styles:l}=e;const a=o?(0,_.S3)(t,{name:"sep",value:":",tag:"separator"}):t,r=null==a?void 0:a.map(((e,t)=>(0,c.createElement)(E,(0,f.Z)({},e,{key:t,styles:l}))));return void 0!==t?(0,c.createElement)("div",{className:"otter-countdown__container"},(0,c.createElement)("div",{style:l.display,className:"otter-countdown__display"},r)):(0,c.createElement)(c.Fragment,null)};const{attributes:T}=n,M=e=>e?`${e}px`:e;const S=e=>{let{name:t,value:o,tag:l}=e;return(0,c.createElement)("div",{name:l,className:C()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,c.createElement)("div",{className:"otter-countdown__value"},o),(0,c.createElement)("div",{className:"otter-countdown__label"},t))},B=e=>{let{time:t,hasSeparators:o}=e;const l=o?(0,_.S3)(t,{name:"sep",value:":",tag:"separator"}):t,a=null==l?void 0:l.map(((e,t)=>(0,c.createElement)(S,(0,f.Z)({},e,{key:t}))));return void 0!==t?(0,c.createElement)("div",{className:"otter-countdown__container"},(0,c.createElement)("div",{className:"otter-countdown__display"},a)):(0,c.createElement)(c.Fragment,null)};const{name:z}=n;(0,r.registerBlockType)(z,{...n,title:(0,a.__)("Countdown","otter-blocks"),description:(0,a.__)("Set a countdown for a date. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["countdown","time","counter"],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const[a,r]=(0,c.useState)(0);(0,c.useEffect)((()=>{const e=(0,p.WX)(l,T);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{const e=setInterval((()=>{if(t.date){let e=t.date+(0,_.EP)();e=1e3*b()(e).unix(),r(new Date(e)-new Date)}}),500);return()=>{clearInterval(e)}}),[t.date]);const{isViewportAvailable:n,isPreviewDesktop:u,isPreviewTablet:g,isPreviewMobile:h}=(0,m.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()}}),[]),k=(0,d.useViewportMatch)("large",">="),v=(0,d.useViewportMatch)("large","<="),f=(0,d.useViewportMatch)("small",">="),w=(0,d.useViewportMatch)("small","<=");let C,E=k&&!v&&f&&!w,S=!k&&!v&&f&&!w,B=!(k||v||f||w);n&&!B&&(E=u,S=g,B=h),S?C={value:{fontSize:M(null==t?void 0:t.valueFontSizeTablet)},label:{fontSize:M(null==t?void 0:t.labelFontSizeTablet)},display:{gap:M(t.gapTablet)},allComponents:{height:M(null==t?void 0:t.heightTablet)},mainComponents:{width:M(null==t?void 0:t.widthTablet),borderWidth:M(t.borderWidthTablet)}}:B?C={value:{fontSize:M(t.valueFontSizeMobile)},label:{fontSize:M(t.labelFontSizeMobile)},display:{gap:M(t.gapMobile)},allComponents:{height:M(null==t?void 0:t.heightMobile)},mainComponents:{width:M(null==t?void 0:t.widthMobile),borderWidth:M(t.borderWidthMobile)}}:E&&(C={value:{fontSize:M(t.valueFontSize)},label:{fontSize:M(t.labelFontSize)},display:{gap:M(t.gap)},allComponents:{height:M(t.height)},mainComponents:{width:M(t.width),borderWidth:M(t.borderWidth)}});const z="linked"===t.borderRadiusType?t.borderRadius+"%":`${t.borderRadiusTopLeft}% ${t.borderRadiusTopRight}% ${t.borderRadiusBottomRight}% ${t.borderRadiusBottomLeft}%`,P=i.iv`
|
24 |
--backgroundColor: ${t.backgroundColor};
|
25 |
--borderColor: ${t.borderColor};
|
26 |
-
--borderRadius: ${
|
27 |
|
28 |
.otter-countdown__display-area .otter-countdown__value {
|
29 |
color: ${t.valueColor};
|
@@ -32,100 +32,104 @@
|
|
32 |
.otter-countdown__display-area .otter-countdown__label {
|
33 |
color: ${t.labelColor};
|
34 |
}
|
35 |
-
`,V=(0,s.useBlockProps)({id:t.id,css:P});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(y,{attributes:t,setAttributes:o}),(0,i.tZ)("div",V,(0,i.tZ)(x,{time:(0,_.Mg)(a,{exclude:null==t?void 0:t.exclude}),styles:C,hasSeparators:t.hasSeparators})))},save:e=>{let{attributes:t}=e;const o=s.useBlockProps.save({id:t.id,"data-date":t.date});return(0,c.createElement)("div",o,(0,c.createElement)(B,{time:(0,_.Mg)(0,{exclude:null==t?void 0:t.exclude}),hasSeparators:null==t?void 0:t.hasSeparators}))}})},9799:function(e,t,o){var l=o(269),a=o(5736),r=o(4981),n=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"}'),c=o(9307),i=o(4184),s=o.n(i),d=o(5711),m=o(2175),u=o(5609),b=e=>{let{attributes:t,setAttributes:o,isFliped:l}=e;const r=m.__experimentalBlockAlignmentMatrixControl||m.__experimentalBlockAlignmentMatrixToolbar;return(0,c.createElement)(m.BlockControls,null,(!t.isInverted&&!1===l||t.isInverted&&l)&&(0,c.createElement)(u.Toolbar,null,(0,c.createElement)(r,{label:(0,a.__)("Change front side content position","otter-blocks"),value:t.frontAlign,onChange:e=>o({frontAlign:e})})))},p=o(2819),g=o(2136),h=o(5452),k=e=>{var t;let{attributes:o,setAttributes:l}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Width","otter-blocks"),help:(0,a.__)("Width of the container. Make sure that the width match the size of your content.","otter-blocks"),value:o.width,onChange:e=>l({width:e}),min:0,max:1200,allowReset:!0}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Height","otter-blocks"),help:(0,a.__)("Height of the container. Make sure that the height match the size of your content.","otter-blocks"),value:o.height,onChange:e=>l({height:e}),min:0,max:1200,allowReset:!0}),(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Invert the sides","otter-blocks"),checked:o.isInverted,onChange:e=>l({isInverted:e}),help:(0,a.__)("Use this to display the back side first.","otter-blocks")})),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Front","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.BaseControl,{label:(0,a.__)("Media Image","otter-blocks"),help:(0,a.__)("Set an image as showcase.","otter-blocks")},null!==(t=o.frontMedia)&&void 0!==t&&t.url?(0,c.createElement)(u.BaseControl,null,(0,c.createElement)("img",{src:o.frontMedia.url,alt:o.frontMedia.alt,style:{border:"2px solid var( --wp-admin-theme-color)",maxHeight:"250px"}}),(0,c.createElement)(u.Button,{isSecondary:!0,onClick:()=>l({frontMedia:void 0})},(0,a.__)("Remove image","otter-blocks"))):(0,c.createElement)(m.MediaPlaceholder,{labels:{title:(0,a.__)("Media Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:o.frontMedia,onSelect:e=>l({frontMedia:(0,p.pick)(e,["id","alt","url"])})})),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Media Width","otter-blocks"),value:o.frontMediaWidth,onChange:e=>l({frontMediaWidth:e}),min:0,max:1e3,allowReset:!0}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Media Height","otter-blocks"),value:o.frontMediaHeight,onChange:e=>l({frontMediaHeight:e}),min:0,max:1e3,allowReset:!0}),(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Vertical Align","otter-blocks"),value:o.frontVerticalAlign,options:[{label:(0,a.__)("Default","otter-blocks"),value:""},{label:(0,a.__)("Top","otter-blocks"),value:"flex-start"},{label:(0,a.__)("Center","otter-blocks"),value:"center"},{label:(0,a.__)("Bottom","otter-blocks"),value:"flex-end"}],onChange:e=>l({frontVerticalAlign:e})}),(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Horizontal Align","otter-blocks"),value:o.frontHorizontalAlign,options:[{label:(0,a.__)("Default","otter-blocks"),value:""},{label:(0,a.__)("Left","otter-blocks"),value:"flex-start"},{label:(0,a.__)("Center","otter-blocks"),value:"center"},{label:(0,a.__)("Right","otter-blocks"),value:"flex-end"}],onChange:e=>l({frontHorizontalAlign:e})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Title Font Size","otter-blocks"),value:o.titleFontSize,onChange:e=>l({titleFontSize:e}),min:0,max:50,allowReset:!0}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Description Font Size","otter-blocks"),value:o.descriptionFontSize,onChange:e=>l({descriptionFontSize:e}),min:0,max:50,allowReset:!0}),(0,c.createElement)(h.Z,{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=>l({frontBackgroundType:e}),changeImage:e=>{l({frontBackgroundImage:(0,p.pick)(e,["id","url"])})},removeImage:()=>l({frontBackgroundImage:void 0}),changeColor:e=>l({frontBackgroundColor:e}),changeGradient:e=>l({frontBackgroundGradient:e}),changeBackgroundAttachment:e=>l({frontBackgroundAttachment:e}),changeBackgroundRepeat:e=>l({frontBackgroundRepeat:e}),changeFocalPoint:e=>l({frontBackgroundPosition:e}),changeBackgroundSize:e=>l({frontBackgroundSize:e})})),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Back","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.Z,{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=>l({backBackgroundType:e}),changeImage:e=>{l({backBackgroundImage:(0,p.pick)(e,["id","url"])})},removeImage:()=>l({backBackgroundImage:void 0}),changeColor:e=>l({backBackgroundColor:e}),changeGradient:e=>l({backBackgroundGradient:e}),changeBackgroundAttachment:e=>l({backBackgroundAttachment:e}),changeBackgroundRepeat:e=>l({backBackgroundRepeat:e}),changeFocalPoint:e=>l({backBackgroundPosition:e}),changeBackgroundSize:e=>l({backBackgroundSize:e})}),(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Vertical Align","otter-blocks"),value:o.backVerticalAlign,options:[{label:(0,a.__)("Default","otter-blocks"),value:""},{label:(0,a.__)("Top","otter-blocks"),value:"flex-start"},{label:(0,a.__)("Center","otter-blocks"),value:"center"},{label:(0,a.__)("Bottom","otter-blocks"),value:"flex-end"}],onChange:e=>l({backVerticalAlign:e})})),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Style","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Flip Type","otter-blocks"),value:o.animType,options:[{label:(0,a.__)("Bottom to Top","otter-blocks"),value:"flipX"},{label:(0,a.__)("Left to right","otter-blocks"),value:"flipY"}],onChange:e=>l({animType:e})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Padding","otter-blocks"),value:o.padding,onChange:e=>l({padding:e}),min:0,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Border Width","otter-blocks"),value:o.borderWidth,onChange:e=>l({borderWidth:e}),min:0,max:50}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Border Radius","otter-blocks"),value:o.borderRadius,onChange:e=>l({borderRadius:e}),min:0,max:50})),(0,c.createElement)(m.PanelColorSettings,{title:(0,a.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:o.borderColor,onChange:e=>l({borderColor:e}),label:(0,a.__)("Border Color","otter-blocks")},{value:o.titleColor,onChange:e=>l({titleColor:e}),label:(0,a.__)("Title Color","otter-blocks")},{value:o.descriptionColor,onChange:e=>l({descriptionColor:e}),label:(0,a.__)("Description Color","otter-blocks")}]}),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Box Shadow","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Shadow Properties","otter-blocks"),checked:o.boxShadow,onChange:e=>l({boxShadow:e})}),o.boxShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Color","otter-blocks"),colorValue:o.boxShadowColor,onColorChange:e=>{var t,a;l({boxShadowColor:100>o.boxShadowColorOpacity&&null!==(t=o.boxShadowColor)&&void 0!==t&&t.includes("var(")?getComputedStyle(document.documentElement,null).getPropertyValue(null==e||null===(a=e.replace("var(",""))||void 0===a?void 0:a.replace(")","")):e})}}),(0,c.createElement)(g.Z,{label:(0,a.__)("Shadow Properties","otter-blocks")},(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Opacity","otter-blocks"),value:o.boxShadowColorOpacity,onChange:e=>{var t;const a={boxShadowColorOpacity:e};100>e&&null!==(t=o.boxShadowColor)&&void 0!==t&&t.includes("var(")&&(a.boxShadowColor=getComputedStyle(document.documentElement,null).getPropertyValue(o.boxShadowColor.replace("var(","").replace(")",""))),l(a)},min:0,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Blur","otter-blocks"),value:o.boxShadowBlur,onChange:e=>l({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Horizontal","otter-blocks"),value:o.boxShadowHorizontal,onChange:e=>l({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Vertical","otter-blocks"),value:o.boxShadowVertical,onChange:e=>l({boxShadowVertical:e}),min:-100,max:100})))))},v=o(5225);const{attributes:y}=n;const{name:_}=n;(0,r.registerBlockType)(_,{...n,title:(0,a.__)("Flip Card","otter-blocks"),description:(0,a.__)("Make a card with a flip effect. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["flip card","container","animation"],edit:e=>{var t,o,l,r,n,i,p,g,h,_;let{attributes:f,setAttributes:w,clientId:C,isSelected:E}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(C,y);return()=>e(f.id)}),[f.id]);const[x,T]=(0,c.useState)(!1),M=d.iv`
|
36 |
-
${void 0!==
|
37 |
-
${void 0!==
|
38 |
-
${void 0!==
|
39 |
-
--borderColor: ${
|
40 |
-
${void 0!==
|
41 |
-
${"color"===
|
42 |
-
${"gradient"===
|
43 |
-
${"image"===
|
44 |
-
${"color"===
|
45 |
-
${"gradient"===
|
46 |
-
${"image"===
|
47 |
-
${void 0!==
|
48 |
-
${
|
49 |
-
--frontVerticalAlign: ${
|
50 |
-
--frontHorizontalAlign: ${
|
51 |
-
--backVerticalAlign: ${
|
52 |
-
${void 0!==
|
53 |
-
${void 0!==
|
54 |
|
55 |
.o-flip-inner {
|
56 |
-
transform: ${
|
57 |
}
|
58 |
|
59 |
.o-flip-front .o-flip-content h3 {
|
60 |
-
color: ${
|
61 |
-
${
|
62 |
}
|
63 |
|
64 |
.o-flip-front .o-flip-content p {
|
65 |
-
color: ${
|
66 |
-
${
|
67 |
}
|
68 |
-
`,S=(0,m.useBlockProps)({id:f.id,className:s()({flipX:"flipX"===f.animType,flipY:"flipY"===f.animType}),css:M});return(0,d.tZ)(c.Fragment,null,(0,d.tZ)(b,{attributes:f,setAttributes:w,isFliped:x}),(0,d.tZ)(k,{attributes:f,setAttributes:w}),(0,d.tZ)("div",S,(0,d.tZ)("div",{className:s()("o-flip-inner",{invert:f.isInverted})},(0,d.tZ)("div",{className:"o-flip-front"},(0,d.tZ)("div",{className:"o-flip-content"},(null===(h=f.frontMedia)||void 0===h?void 0:h.url)&&(0,d.tZ)("img",{className:"o-img",srcSet:null===(_=f.frontMedia)||void 0===_?void 0:_.url}),(0,d.tZ)(m.RichText,{tagName:"h3",value:f.title,onChange:e=>w({title:e}),placeholder:(0,a.__)("Insert a title","otter-blocks")}),(0,d.tZ)(m.RichText,{tagName:"p",value:f.description,onChange:e=>w({description:e}),placeholder:(0,a.__)("Insert a description","otter-blocks")}))),(0,d.tZ)("div",{className:"o-flip-back"},(0,d.tZ)(m.InnerBlocks,{renderAppender:E?m.InnerBlocks.ButtonBlockAppender:""}))),E&&(0,d.tZ)("div",{className:"o-switcher"},(0,d.tZ)(u.Button,{isPrimary:!0,onClick:()=>T(!x)},x?(0,a.__)("Flip to front","otter-blocks"):(0,a.__)("Flip to back","otter-blocks")))))},save:e=>{var t,o,l,a;let{attributes:r}=e;const n=m.useBlockProps.save({id:r.id,className:s()("anim",{flipX:"flipX"===r.animType,flipY:"flipY"===r.animType})});return(0,c.createElement)("div",n,(0,c.createElement)("div",{className:s()("o-flip-inner",{invert:r.isInverted})},(0,c.createElement)("div",{className:"o-flip-front"},(0,c.createElement)("div",{className:"o-flip-content"},(null===(t=r.frontMedia)||void 0===t?void 0:t.url)&&(0,c.createElement)("img",{className:"o-img",src:null===(o=r.frontMedia)||void 0===o?void 0:o.url,srcSet:null===(l=r.frontMedia)||void 0===l?void 0:l.url,alt:null===(a=r.frontMedia)||void 0===a?void 0:a.alt}),(0,c.createElement)(m.RichText.Content,{tagName:"h3",value:r.title}),(0,c.createElement)(m.RichText.Content,{tagName:"p",value:r.description}))),(0,c.createElement)("div",{className:"o-flip-back"},(0,c.createElement)(m.InnerBlocks.Content,null))))}})},191:function(e,t,o){var l=o(5736),a=o(4981),r=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"}'),n=o(340),c=o(9307),i=o(48),s=o(2175);const d={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}},m=[{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=i.ZP.icons[t.icon],l=s.useBlockProps.save({id:t.id});return(0,c.createElement)("p",l,(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?(0,c.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},"themeisle-icons"===t.library?(0,c.createElement)(o,null):(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})):"themeisle-icons"===t.library?(0,c.createElement)(o,null):(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})))}},{attributes:d,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,c.createElement)("p",{className:o,style:{textAlign:t.align}},(0,c.createElement)("span",{className:`${o}-container`,style:a},(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:l})))}},{attributes:{...d,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,c.createElement)("p",{className:o,style:{textAlign:t.align}},(0,c.createElement)("span",{className:"undefined-container",style:a},(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:l})))}},{attributes:{...d,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"},r=()=>(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:a});return(0,c.createElement)("p",{className:o,id:t.id,style:{textAlign:t.align}},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:l},t.link?(0,c.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",style:{color:t.textColor},rel:"noopener noreferrer"},(0,c.createElement)(r,null)):(0,c.createElement)(r,null)))}}];var u=m,b=o(5711),p=o(8504),g=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,c.createElement)(s.BlockControls,null,(0,c.createElement)(s.AlignmentToolbar,{value:t.align,onChange:e=>o({align:e})}),(0,c.createElement)(p.Z,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))},h=o(5609),k=o(3159);const v=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var y=e=>{let{attributes:t,setAttributes:o,getValue:a}=e;const[r,n]=(0,c.useState)(!1);return(0,c.createElement)(s.InspectorControls,null,(0,c.createElement)(h.PanelBody,{title:(0,l.__)("Icon","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(h.Placeholder,null,(0,c.createElement)(h.Spinner,null))},(0,c.createElement)(v,{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,c.createElement)(h.PanelBody,{title:(0,l.__)("Icon Sizes","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.Z,{field:"fontSize",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(h.RangeControl,{label:(0,l.__)("Icon Size","otter-blocks"),value:a("fontSize"),initialPosition:16,onChange:e=>o({fontSize:e}),min:12,max:140})),(0,c.createElement)(k.Z,{field:"padding",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(h.RangeControl,{label:(0,l.__)("Padding","otter-blocks"),value:a("padding"),initialPosition:5,onChange:e=>o({padding:e}),min:0,max:100})),(0,c.createElement)(k.Z,{field:"margin",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(h.RangeControl,{label:(0,l.__)("Margin","otter-blocks"),value:a("margin"),initialPosition:5,onChange:e=>o({margin:e}),min:0,max:100}))),(0,c.createElement)(h.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.ButtonGroup,null,(0,c.createElement)(h.Button,{isSmall:!0,isSecondary:r,isPrimary:!r,onClick:()=>n(!1)},(0,l.__)("Normal","otter-blocks")),(0,c.createElement)(h.Button,{isSmall:!0,isSecondary:!r,isPrimary:r,onClick:()=>n(!0)},(0,l.__)("Hover","otter-blocks"))),r?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(k.Z,{field:"backgroundColorHover",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Hover Background","otter-blocks"),colorValue:a("backgroundColorHover"),onColorChange:e=>o({backgroundColorHover:e})})),(0,c.createElement)(k.Z,{field:"textColorHover",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Hover Icon","otter-blocks"),colorValue:a("textColorHover"),onColorChange:e=>o({textColorHover:e})})),(0,c.createElement)(s.ContrastChecker,{textColor:a("textColorHover"),backgroundColor:a("backgroundColorHover")}),(0,c.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Hover Border","otter-blocks"),colorValue:t.borderColorHover,onColorChange:e=>o({borderColorHover:e})})):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(k.Z,{field:"backgroundColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:a("backgroundColor"),onColorChange:e=>o({backgroundColor:e})})),(0,c.createElement)(k.Z,{field:"textColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Icon","otter-blocks"),colorValue:a("textColor"),onColorChange:e=>o({textColor:e})})),(0,c.createElement)(s.ContrastChecker,{textColor:a("textColor"),backgroundColor:a("backgroundColor")}),(0,c.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}))),(0,c.createElement)(h.PanelBody,{title:(0,l.__)("Border Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.RangeControl,{label:(0,l.__)("Border Size","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),min:0,max:120}),(0,c.createElement)(h.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),min:0,max:100})))},_=o(5225);const{attributes:f}=r;const{name:w}=r;(0,a.registerBlockType)(w,{...r,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:n.faIcon,keywords:["font awesome","dashicons","icons"],deprecated:u,edit:e=>{let{name:t,attributes:o,setAttributes:l,isSelected:a,clientId:r}=e;(0,c.useEffect)((()=>{const e=(0,_.WX)(r,f);return()=>e(o.id)}),[o.id]);const n=i.ZP.icons[o.icon],d=e=>(0,_.Ih)({name:t,field:e,defaultAttributes:f,attributes:o}),m=b.iv`
|
69 |
--align: ${o.align};
|
70 |
--borderColor: ${o.borderColor};
|
71 |
${void 0!==o.borderSize&&`--borderSize: ${o.borderSize}px;`}
|
72 |
${void 0!==o.borderRadius&&`--borderRadius: ${o.borderRadius}%;`}
|
73 |
-
${void 0!==o.margin&&`--margin: ${
|
74 |
-
${void 0!==o.padding&&`--padding: ${
|
75 |
-
${void 0!==o.fontSize&&`--fontSize: ${
|
76 |
|
77 |
.wp-block-themeisle-blocks-font-awesome-icons-container {
|
78 |
-
color: ${
|
79 |
-
background-color: ${
|
80 |
}
|
81 |
|
82 |
.wp-block-themeisle-blocks-font-awesome-icons-container:hover {
|
83 |
-
color: ${
|
84 |
-
background-color: ${
|
85 |
border-color: ${o.borderColorHover};
|
86 |
}
|
87 |
|
88 |
.wp-block-themeisle-blocks-font-awesome-icons-container a {
|
89 |
-
color: ${
|
90 |
}
|
91 |
|
92 |
.wp-block-themeisle-blocks-font-awesome-icons-container i {
|
93 |
-
${
|
94 |
}
|
95 |
|
96 |
.wp-block-themeisle-blocks-font-awesome-icons-container svg {
|
97 |
-
fill: ${
|
98 |
}
|
99 |
|
100 |
.wp-block-themeisle-blocks-font-awesome-icons-container:hover svg {
|
101 |
-
fill: ${
|
102 |
-
}
|
103 |
-
`,u=(0,s.useBlockProps)({id:o.id,css:m});return(0,b.tZ)(c.Fragment,null,(0,b.tZ)(g,{attributes:o,setAttributes:l,isSelected:a}),(0,b.tZ)(y,{attributes:o,setAttributes:l,getValue:d}),(0,b.tZ)("div",u,(0,b.tZ)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},"themeisle-icons"===o.library?(0,b.tZ)(n,null):(0,b.tZ)("i",{className:`${o.prefix} fa-${o.icon}`}))))},save:e=>{let{attributes:t}=e;const o=i.ZP.icons[t.icon],l=s.useBlockProps.save({id:t.id});return(0,c.createElement)("div",l,(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?(0,c.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},"themeisle-icons"===t.library?(0,c.createElement)(o,null):(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})):"themeisle-icons"===t.library?(0,c.createElement)(o,null):(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})))}})},6051:function(e,t,o){var l=o(5736),a=o(4981),r=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"},"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"]},"editorStyle":"otter-form-editor","style":"otter-form-style","script":"otter-form"}'),n=o(340),c=o(9307),i=o(2819),s=o(8101),d=o.n(s),m=o(2175),u=o(9818),b=o(5225),p=o(5609),g=e=>{let{attributes:t,setAttributes:o}=e;const{createNotice:a}=(0,u.dispatch)("core/notices"),[r,n]=(0,c.useState)(""),[i,s]=(0,c.useState)(""),[b,g]=(0,c.useState)(!0),[h,k]=(0,c.useState)([{label:(0,l.__)("None","otter-blocks"),value:""}]),[v,y]=(0,c.useState)("loading");return(0,c.useEffect)((()=>{let e=!0;return t.optionName&&d().loadPromise.then((()=>{(new(d().models.Settings)).fetch().done((o=>{var l,a;null===(l=o.themeisle_blocks_form_emails)||void 0===l||null===(a=l.filter((e=>{let{form:o}=e;return o===t.optionName})))||void 0===a||a.forEach((t=>{e&&(s(null==t?void 0:t.email),g(!0),n(null==t?void 0:t.email))}))}))})),()=>{e=!1}}),[t.optionName]),(0,c.useEffect)((()=>{let e=!0;var o,r,n,c;return t.apiKey&&t.provider&&(o=t.provider,r=t.apiKey,n=o=>{o.splice(0,0,{label:(0,l.__)("None","otter-blocks"),value:""}),e&&(k(o),y("ready"));const r=1===o.map((e=>{let{value:t}=e;return t})).filter((e=>e===t.listId)).length;t.listId&&!r&&a("error",(0,l.__)("The current contact list is invalid! Please choose a new contact list.","otter-blocks"),{isDismissible:!0,type:"snackbar"})},c=t=>{a("error",null==t?void 0:t.error,{isDismissible:!0,type:"snackbar",id:"themeisle-form-server-error"}),e&&y("error")},window.wp.apiFetch({path:"otter/v1/integration",method:"POST",data:{provider:o,apiKey:r}}).then((e=>{if(null!=e&&e.success){var t;const o=(null==e||null===(t=e.list_id)||void 0===t?void 0:t.map((e=>{var t;return{label:e.name,value:null===(t=e.id)||void 0===t?void 0:t.toString()}})))||[];n(o)}else c(e)})).catch((e=>{console.log(e)}))),()=>{e=!1}}),[t.provider,t.apiKey]),(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Email Subject","otter-blocks"),placeholder:(0,l.__)("A new submission","otter-blocks"),value:t.subject,onChange:e=>o({subject:e}),help:(0,l.__)("Customize the email title send by this form.","otter-blocks")}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Email To","otter-blocks"),placeholder:(0,l.__)("Default is to admin site","otter-blocks"),value:i,onChange:e=>s(e),help:(0,l.__)("Send form data to another email. (Admin is default).","otter-blocks")}),(0,c.createElement)(p.Button,{isPrimary:!0,onClick:()=>{(new(d().models.Settings)).fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let r=!0,c=!1;if(null==o||o.forEach(((e,l)=>{let{form:a}=e;a===t.optionName&&(o[l].email!==i&&(o[l].email=i,c=!0),r=!1)})),r&&o.push({form:t.optionName,email:i}),r||c){const e=new(d().models.Settings)({themeisle_blocks_form_emails:o});g(!1),e.save().then((e=>{var o;null===(o=e.themeisle_blocks_form_emails)||void 0===o||o.filter((e=>{let{form:o}=e;return o===t.optionName})).forEach((e=>{g(!0),n(null==e?void 0:e.email),a("info",(0,l.__)("Email has been saved!","otter-blocks"),{isDismissible:!0,type:"snackbar"})}))}))}}))},disabled:i===r},(0,c.createElement)(c.Fragment,null,!b&&(0,c.createElement)(p.Spinner,null),(0,l.__)("Save","otter-blocks"))),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Add captcha checkbox","otter-blocks"),checked:t.hasCaptcha,onChange:e=>o({hasCaptcha:e}),help:(0,l.__)("Add Google reCaptcha V2 for protection againts bots.","otter-blocks")}),t.hasCaptcha&&(0,l.__)("You can change the API Keys in Settings > Otter","otter-blocks")),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Integration","otter-blocks"),initialOpen:!1},(0,l.__)("Add your client email to a Digital Marketing provider.","otter-blocks"),(0,c.createElement)("br",null)," ",(0,c.createElement)("br",null),(0,c.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,c.createElement)(p.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=>{o({provider:e,apiKey:"",listId:""})}}),t.provider&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.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,onChange:e=>{y("loading"),k([]),o({apiKey:e,listId:""})}}),t.apiKey&&2>h.length&&"loading"===v&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.Spinner,null),(0,l.__)("Fetching data from provider.","otter-blocks")),t.apiKey&&"ready"===v&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Contact List","otter-blocks"),value:t.listId,options:h,onChange:e=>o({listId:e})}),2<=(null==h?void 0:h.length)&&t.listId&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Action","otter-blocks"),value:t.action,options:[{label:(0,l.__)("None","otter-blocks"),value:""},{label:(0,l.__)("Subscribe","otter-blocks"),value:"subscribe"},{label:(0,l.__)("Submit & Subscribe","otter-blocks"),value:"submit-subscribe"}],onChange:e=>o({action:e})}),"submit-subscribe"===t.action&&(0,l.__)("This action will add the client to the contact list and send a separata 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"))))))},h=e=>{let{className:t,isAPILoaded:o,isAPISaved:a,isSaving:r,saveAPIKey:n,siteKey:i,secretKey:s,setSiteKey:d,setSecretKey:m}=e;return o?a?void 0:(0,c.createElement)(p.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,c.createElement)("div",{className:"components-placeholder__actions"},(0,c.createElement)(p.TextControl,{type:"text",label:(0,l.__)("Site Key","otter-blocks"),value:i,className:"components-placeholder__input",onChange:d}),(0,c.createElement)(p.TextControl,{type:"text",label:(0,l.__)("Secret Key","otter-blocks"),value:s,className:"components-placeholder__input",onChange:m}),(0,c.createElement)(p.Button,{isPrimary:!0,type:"submit",onClick:n,isBusy:r,disabled:""===i||""===s},(0,l.__)("Save","otter-blocks"))),(0,c.createElement)("div",{className:"components-placeholder__learn-more"},(0,l.__)("You need to activate reCaptcha API.","otter-blocks")," ",(0,c.createElement)(p.ExternalLink,{href:"http://www.google.com/recaptcha/admin"},(0,l.__)("Need an API key? Get one here.","otter-blocks")))):(0,c.createElement)(c.Fragment,null,(0,c.createElement)("br",null),(0,c.createElement)(p.Placeholder,null,(0,c.createElement)("div",null,(0,c.createElement)(p.Spinner,null),(0,l.__)("Checking the API Keys for reCaptcha","otter-blocks"))))};const{attributes:k}=r;var v=o(4184),y=o.n(v);const{name:_}=r;(0,a.registerBlockType)(_,{...r,title:(0,l.__)("Form","otter-blocks"),description:(0,l.__)("Display a form for your clients. Powered by Otter.","otter-blocks"),icon:n.contactIcon,keywords:["business","form","email"],edit:e=>{let{attributes:t,setAttributes:o,clientId:r,name:n}=e;const[s,p]=(0,c.useState)(""),[v,y]=(0,c.useState)(""),[_,f]=(0,c.useState)(!1),[w,C]=(0,c.useState)(!1),E=(0,c.useRef)(null),[x,T]=(0,c.useState)(!1),{insertBlock:M,removeBlock:S}=(0,u.useDispatch)("core/block-editor"),{replaceInnerBlocks:B}=(0,u.useDispatch)("core/block-editor"),{createNotice:z}=(0,u.dispatch)("core/notices"),P=(0,u.useSelect)((e=>0<e("core/block-editor").getBlocks(r).length),[r]),{blockType:V,defaultVariation:R,variations:L}=(0,u.useSelect)((e=>{const{getBlockVariations:t,getBlockType:o,getDefaultBlockVariation:l}=e("core/blocks");return{blockType:o(n),defaultVariation:l(n,"block"),variations:t(n,"block")}}),[n]),H=(0,u.useSelect)((e=>{const{getBlock:t}=e("core/block-editor");return t(r).innerBlocks}),[]);(0,c.useEffect)((()=>{const e=(0,b.WX)(r,k);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{var e;t.id&&(0,u.select)("core/edit-widgets")?o({optionName:`widget_${t.id.slice(-8)}`}):t.id&&Boolean(window.themeisleGutenberg.isBlockEditor)&&null!==(e=(0,u.select)("core/editor"))&&void 0!==e&&e.getCurrentPostId()&&o({optionName:`${(0,u.select)("core/editor").getCurrentPostId()}_${t.id.slice(-8)}`})}),[t.id]),(0,c.useEffect)((()=>{if(H){const e=H.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)&&r){const e=(0,a.createBlock)("themeisle-blocks/form-nonce");e&&(null==M||M(e,(null==H?void 0:H.length)||0,r,!1))}}}),[H]),(0,c.useEffect)((()=>{let e=!0;return d().loadPromise.then((()=>{E.current=new(d().models.Settings),e&&T(!0)})),()=>{e=!1}}),[]),(0,c.useEffect)((()=>{var e;void 0!==t.hasCaptcha&&(null==E||null===(e=E.current)||void 0===e||e.fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let a=!0,r=!1;null==o||o.forEach(((e,l)=>{let{form:n}=e;n===t.optionName&&(o[l].hasCaptcha!==t.hasCaptcha&&(r=!0),o[l].hasCaptcha=t.hasCaptcha,a=!1)})),a&&o.push({form:t.optionName,hasCaptcha:t.hasCaptcha}),(a||r)&&(new(d().models.Settings)({themeisle_blocks_form_emails:o}).save(),z("info",(0,l.__)("Form preference has been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"}))})))}),[t.hasCaptcha,E.current]),(0,c.useEffect)((()=>{let e=!0;return x&&t.hasCaptcha&&!w&&(async()=>{var t;_||null==E||null===(t=E.current)||void 0===t||t.fetch().then((t=>{f(!0),""!==t.themeisle_google_captcha_api_site_key&&""!==t.themeisle_google_captcha_api_secret_key&&e&&C(!0)}))})(),()=>{e=!1}}),[x,_,w,t.hasCaptcha]),(0,c.useEffect)((()=>{var e;null==E||null===(e=E.current)||void 0===e||e.fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let a=!0,r=!1,n=!1;null==o||o.forEach(((e,l)=>{let{form:c}=e;var i;c===t.optionName&&(null!==(i=o[l])&&void 0!==i&&i.integration||(o[l].integration={}),r=o[l].integration.provider!==t.provider||o[l].integration.apiKey!==t.apiKey||o[l].integration.listId!==t.listId||o[l].integration.action!==t.action,a=!1,n=t.apiKey&&(o[l].integration.listId!==t.listId||o[l].integration.action!==t.action),o[l].integration.provider=t.provider,o[l].integration.apiKey=t.apiKey,o[l].integration.listId=t.listId,o[l].integration.action=t.action)})),a&&o.push({form:t.optionName,integration:{provider:t.provider,apiKey:t.apiKey,listId:t.listId,action:t.action}}),(a||r)&&new(d().models.Settings)({themeisle_blocks_form_emails:o}).save().then((()=>{n&&z("info",(0,l.__)("Integration details have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})}))}))}),[t.optionName,t.provider,t.apiKey,t.listId,t.action,E.current]);const N=t.provider&&t.apiKey&&t.listId,I=(0,m.useBlockProps)({id:t.id});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(g,{attributes:t,setAttributes:o}),(0,c.createElement)("div",I,P?(0,c.createElement)("div",{className:"otter-form__container"},(0,c.createElement)(m.InnerBlocks,null),t.hasCaptcha&&(!_||!w)&&(0,c.createElement)(h,{className:"otter-form-captcha",isAPILoaded:_,isAPISaved:w,saveAPIKey:()=>{new window.wp.api.models.Settings({themeisle_google_captcha_api_site_key:s,themeisle_google_captcha_api_secret_key:v}).save().then((e=>{let t=!1;""!==e.themeisle_google_captcha_api_site_key&&""!==e.themeisle_google_captcha_api_secret_key&&(t=!0),C(t),y(""),p(""),z("info",(0,l.__)("API Keys have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})}))},siteKey:s,secretKey:v,setSiteKey:p,setSecretKey:y}),(0,c.createElement)("div",{className:"wp-block-button"},(0,c.createElement)("button",{className:"wp-block-button__link"},N&&"subscribe"===t.action?(0,l.__)("Subscribe","otter-blocks"):(0,l.__)("Submit","otter-blocks")))):(0,c.createElement)(m.__experimentalBlockVariationPicker,{icon:(0,i.get)(V,["icon","src"]),label:(0,i.get)(V,["title"]),variations:L,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R;e&&B(r,(0,a.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0})))},save:e=>{let{attributes:t}=e;const o=t.provider&&t.apiKey&&t.listId,a=m.useBlockProps.save({id:t.id,className:y()({"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,c.createElement)("div",a,(0,c.createElement)("div",{className:"otter-form__container"},(0,c.createElement)(m.InnerBlocks.Content,null),(0,c.createElement)("div",{className:"wp-block-button"},(0,c.createElement)("button",{className:"wp-block-button__link"},"subscribe"===t.action?(0,l.__)("Subscribe","otter-blocks"):(0,l.__)("Submit","otter-blocks")))))},variations:[{name:"themeisle-blocks/form-contact",description:(0,l.__)("Contact form for clients","otter-blocks"),icon:n.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:n.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"}]]}]})},6257:function(e,t,o){var l=o(5736),a=o(4981),r=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"],"parent":["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"}},"supports":{"align":["wide","full"]}}'),n=o(340),c=o(9307),i=o(2175),s=o(5225),d=o(5609),m=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(d.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,c.createElement)(d.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,c.createElement)(d.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholer,onChange:e=>o({placeholder:e})}),(0,c.createElement)(d.ToggleControl,{label:(0,l.__)("Is this field required?","otter-blocks"),help:(0,l.__)("If true, the input field must be filled out before submitting the form.","otter-blocks"),checked:t.isRequired,onChange:e=>o({isRequired:e})})))};const{attributes:u}=r;const{name:b}=r;(0,a.registerBlockType)(b,{...r,title:(0,l.__)("Text Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:n.inputIcon,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,c.useEffect)((()=>{const e=(0,s.WX)(a,u);return()=>e(t.id)}),[t.id]);const r=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m,{attributes:t,setAttributes:o}),(0,c.createElement)("div",r,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-input-label"},(0,c.createElement)(i.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,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("input",{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"})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save();return(0,c.createElement)("div",o,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-input-label"},(0,c.createElement)(i.RichText.Content,{value:t.label,className:"otter-form-input-label__label",tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("input",{type:t.type,name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,className:"otter-form-input"}))}})},7440:function(e,t,o){var l=o(5736),a=o(4981),r=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}}'),n=o(340),c=o(9818),i=o(9307);const{name:s}=r;(0,a.registerBlockType)(s,{...r,title:(0,l.__)("Nonce Field","otter-blocks"),description:(0,l.__)("Protect the form from CSRF.","otter-blocks"),icon:n.inputIcon,keywords:["protection","csrf","field"],edit:e=>{let{setAttributes:t,clientId:o}=e;const{parent:l}=(0,c.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})},1911:function(e,t,o){var l=o(5736),a=o(4981),r=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"],"parent":["themeisle-blocks/form"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"label":{"type":"string"},"placeholder":{"type":"string"},"isRequired":{"type":"boolean"},"mappedName":{"type":"string"}},"supports":{"align":["wide","full"]}}'),n=o(340),c=o(9307),i=o(2175),s=o(5225),d=o(5609),m=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(d.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,c.createElement)(d.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholer,onChange:e=>o({placeholder:e})}),(0,c.createElement)(d.ToggleControl,{label:(0,l.__)("Is this field required?","otter-blocks"),help:(0,l.__)("If true, the input field must be filled out before submitting the form.","otter-blocks"),checked:t.isRequired,onChange:e=>o({isRequired:e})})))};const{attributes:u}=r;const{name:b}=r;(0,a.registerBlockType)(b,{...r,title:(0,l.__)("Textarea Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:n.inputIcon,keywords:["textarea","message","input"],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,s.WX)(a,u);return()=>e(t.id)}),[t.id]);const r=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m,{attributes:t,setAttributes:o}),(0,c.createElement)("div",r,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-textarea-label"},(0,c.createElement)(i.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,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("textarea",{placeholder:t.placeholder,name:t.id,id:t.id,required:t.isRequired,disabled:!0,rows:10,className:"otter-form-textarea-input components-textarea-control__input"})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save();return(0,c.createElement)("div",o,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-textarea-label"},(0,c.createElement)(i.RichText.Content,{value:t.label,className:"otter-form-textarea-label__label",tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("textarea",{name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,rows:10,className:"otter-form-textarea-input"}))}})},2608:function(e,t,o){var l=o(5736),a=o(4981),r=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"}'),n=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(4586),m=o(2175),u=o(5609),b=e=>{let{api:t,error:o,isAPILoaded:a,isAPISaved:r,isSaving:n,changeAPI:i,saveAPIKey:d}=e;return a?r?void 0:(0,c.createElement)(u.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,c.createElement)("div",{className:"components-placeholder__actions"},(0,c.createElement)(u.TextControl,{type:"text",placeholder:(0,l.__)("Google Maps API Key","otter-blocks"),value:t,className:s()("components-placeholder__input",{"is-invalid":o}),onChange:i}),(0,c.createElement)(u.Button,{isPrimary:!0,type:"submit",onClick:d,isBusy:n,disabled:""===t||o},(0,l.__)("Save","otter-blocks"))),(0,c.createElement)("div",{className:"components-placeholder__learn-more"},o&&(0,c.createElement)("p",null,(0,l.__)("The API key could not be validated.","otter-blocks")),(0,c.createElement)("p",null,(0,l.__)("You need to activate Maps and Places API.","otter-blocks")," ",(0,c.createElement)(u.ExternalLink,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},(0,l.__)("Need an API key? Get one here.","otter-blocks"))))):(0,c.createElement)(u.Placeholder,null,(0,c.createElement)(u.Spinner,null),(0,l.__)("Loading…","otter-blocks"))},p=o(5241),g=o(4333);const h=e=>{let{value:t,onChange:o}=e;const a=(0,g.useInstanceId)(h);(0,c.useEffect)((()=>{window.wp.oldEditor.initialize(n.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(n.current.id);return e.on("change",(()=>o(e.getContent()))),()=>window.wp.oldEditor.remove(n.current.id)}),[]);const r=`inspector-textarea-control-${a}`,n=(0,c.useRef)(null);return(0,c.createElement)(u.BaseControl,{id:r,label:(0,l.__)("Description","otter-blocks")},(0,c.createElement)("textarea",{id:r,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:n}))};var k=h,v=e=>{let{marker:t,isOpen:o,isPlaceAPIAvailable:a,openMarker:r,removeMarker:n,changeMarkerProp:i}=e;const d=(0,c.useRef)(null);return(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker"},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker-title-area"},(0,c.createElement)(u.Button,{className:"wp-block-themeisle-blocks-google-map-marker-title",onClick:()=>r(t.id)},t.title||(0,l.__)("Custom Marker","otter-blocks")),(0,c.createElement)(u.Button,{icon:"no-alt",label:(0,l.__)("Remove Marker","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-google-map-marker-remove",onClick:()=>n(t.id)})),(0,c.createElement)("div",{className:s()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===o})},(0,c.createElement)(u.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,c.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();i(t.id,"location",o),i(t.id,"latitude",l),i(t.id,"longitude",a)}))}))},onChange:e=>i(t.id,"location",e.target.value),disabled:!a}),!a&&(0,c.createElement)("p",null,(0,l.__)("To enable locations earch, please ensure Places API is activated in the Google Developers Console.","otter-blocks")+" ",(0,c.createElement)(u.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:t.latitude,onChange:e=>i(t.id,"latitude",e)}),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:t.longitude,onChange:e=>i(t.id,"longitude",e)}),(0,c.createElement)(u.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=>i(t.id,"icon",e)}),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:t.title,onChange:e=>i(t.id,"title",e)}),(0,c.createElement)(k,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>i(t.id,"description",e)})))},y=e=>{let{initialOpen:t,markers:o,isPlaceAPIAvailable:a,addMarker:r,removeMarker:n,changeMarkerProp:i}=e;(0,c.useEffect)((()=>{!1!==t&&d(t)}),[t]);const[s,d]=(0,c.useState)(null),m=e=>{s===e&&(e=null),d(e)};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},o.map((e=>(0,c.createElement)(v,{key:e.id,marker:e,isOpen:s,isPlaceAPIAvailable:a,openMarker:m,removeMarker:n,changeMarkerProp:i})))),(0,c.createElement)(u.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:r},(0,l.__)("Add Marker","otter-blocks")))},_=e=>{let{attributes:t,setAttributes:o,map:a,changeStyle:r,isPlaceAPIAvailable:n,isMarkerOpen:i,setMarkerOpen:s,removeMarker:d,changeMarkerProp:b,addMarkerManual:g,api:h,isSaving:k,changeAPI:v,saveAPIKey:_}=e;const f=(0,c.useRef)(null);return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,c.createElement)(p.V,{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:r})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,c.createElement)(u.BaseControl,{label:(0,l.__)("Location"),id:"wp-block-themeisle-blocks-google-map-search"},(0,c.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:f,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const t=new window.google.maps.places.SearchBox(f.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(),r=new window.google.maps.LatLng(t,l);a.setCenter(r),o({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:e=>{o({location:e.target.value})},disabled:!n}),!n&&(0,c.createElement)("p",null,(0,l.__)("To enable locations earch, please ensure Places API is activated in the Google Developers Console.","otter-blocks")+" ",(0,c.createElement)(u.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,c.createElement)(u.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),r=t.longitude,n=new window.google.maps.LatLng(l,r);a.setCenter(n)}}),(0,c.createElement)(u.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 l=t.latitude,r=Number(e),n=new window.google.maps.LatLng(l,r);a.setCenter(n)}})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.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,c.createElement)(u.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,c.createElement)(u.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.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,c.createElement)(u.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Map Type Control","otter-blocks"),checked:t.mapTypeControl,onChange:()=>{o({mapTypeControl:!t.mapTypeControl})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Full Screen Control","otter-blocks"),checked:t.fullscreenControl,onChange:()=>{o({fullscreenControl:!t.fullscreenControl})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Streen View Control","otter-blocks"),checked:t.streetViewControl,onChange:()=>{o({streetViewControl:!t.streetViewControl})}})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1,opened:!1!==i||void 0,onToggle:()=>{!1!==i&&s(!0)}},(0,c.createElement)(y,{markers:t.markers,removeMarker:d,changeMarkerProp:b,addMarker:g,isPlaceAPIAvailable:n,initialOpen:i})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Global Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.TextControl,{label:(0,l.__)("Google Maps API Key","otter-blocks"),type:"text",placeholder:(0,l.__)("Google Maps API Key","otter-blocks"),value:h,className:"components-placeholder__input",onChange:v,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,c.createElement)(u.Button,{isSecondary:!0,type:"submit",onClick:_,isBusy:k},(0,l.__)("Save API Key","otter-blocks"))))},f=e=>{let{marker:t,isAdvanced:o,isPlaceAPIAvailable:a,addMarker:r,close:n}=e;(0,c.useEffect)((()=>{d(t.id),b(t.location),g(t.title),v(t.icon),_(t.description),w(t.latitude),E(t.longitude)}),[t]);const i=(0,c.useRef)(null),[s,d]=(0,c.useState)(t.id),[m,b]=(0,c.useState)(t.location),[p,g]=(0,c.useState)(t.title),[h,v]=(0,c.useState)(t.icon),[y,_]=(0,c.useState)(t.description),[f,w]=(0,c.useState)(t.latitude),[C,E]=(0,c.useState)(t.longitude);return(0,c.createElement)(u.Modal,{title:(0,l.__)("Add Marker","otter-blocks"),onRequestClose:n,shouldCloseOnClickOutside:!1},o&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,c.createElement)("input",{type:"text",id:`themeisle-location-search-${s}`,placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:m,className:"wp-block-themeisle-blocks-google-map-search",ref:i,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const t=new window.google.maps.places.SearchBox(i.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),w(o),E(l)}))}))},onChange:e=>b(e.target.value),disabled:!a})),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:f,onChange:w}),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:C,onChange:E})),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:p,onChange:g}),(0,c.createElement)(k,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:y,onChange:_}),(0,c.createElement)(u.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:v}),(0,c.createElement)(u.ButtonGroup,null,(0,c.createElement)(u.Button,{isPrimary:!0,onClick:()=>r(m,p,h,y,f,C)},(0,l.__)("Add","otter-blocks")),(0,c.createElement)(u.Button,{isSecondary:!0,onClick:n},(0,l.__)("Cancel","otter-blocks"))))},w=e=>{let{attributes:t,initMap:o,displayMap:a,isMapLoaded:r,selectMarker:n,isSelectingMarker:i}=e;return(0,c.useEffect)((()=>{a&&o()}),[a]),(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{id:t.id,className:s()({"is-selecting-marker":i}),style:{height:t.height+"px"}}),r&&(0,c.createElement)(u.Button,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:(0,l.__)("Add Button","otter-blocks"),onClick:n},(0,c.createElement)("span",{className:"dashicons dashicons-sticky"})))},C={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"}]}]},E=o(5225);const{attributes:x}=r;var T=o(2819),M={to:[{type:"block",blocks:["themeisle-blocks/leaflet-map"],transform:e=>{const t=(0,T.omit)(e,["style","mapTypeControl","fullscreenControl","streetViewControl"]);return(0,a.createBlock)("themeisle-blocks/leaflet-map",{...t})}}]};const{name:S}=r;(0,a.registerBlockType)(S,{...r,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:n.mapIcon,keywords:["map","google","orbitfox"],transforms:M,edit:e=>{let{attributes:t,setAttributes:o,clientId:a,isSelected:r,toggleSelection:n}=e;(0,c.useEffect)((()=>{const e=(0,E.WX)(a,x);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{let e=!0;return(async()=>{await window.wp.api.loadPromise.then((()=>{g.current=new window.wp.api.models.Settings})),!1===Boolean(window.themeisleGutenberg.mapsAPI)?S||g.current.fetch().then((t=>{e&&(M(t.themeisle_google_map_block_api_key),B(!0),""!==t.themeisle_google_map_block_api_key&&(P(!0),X(t.themeisle_google_map_block_api_key)))})):!S&&e&&(M(window.themeisleGutenberg.mapsAPI),B(!0),P(!0),X(window.themeisleGutenberg.mapsAPI))})(),window.isMapLoaded=window.isMapLoaded||!1,window[`removeMarker_${a.substr(0,8)}`]=oe,window.gm_authFailure=function(){P(!1),Q(!0)},h.current=document.createElement("script"),h.current.type="text/javascript",h.current.async=!0,h.current.defer=!0,h.current.id="themeisle-google-map-api-loading",()=>{e=!1}}),[]),(0,c.useEffect)((()=>{!1!==z&&void 0!==window.google&&k.current.setOptions({mapTypeControl:!!r||t.mapTypeControl,zoomControl:!!r||t.zoomControl,fullscreenControl:!!r||t.fullscreenControl,streetViewControl:!!r||t.streetViewControl})}),[r]),(0,c.useEffect)((()=>{y.current=[...t.markers]}),[t.markers]);const i=(0,c.useRef)([]),g=(0,c.useRef)(null),h=(0,c.useRef)(null),k=(0,c.useRef)(null),v=(0,c.useRef)(null),y=(0,c.useRef)([...t.markers]),[T,M]=(0,c.useState)(""),[S,B]=(0,c.useState)(!1),[z,P]=(0,c.useState)(!1),[V,R]=(0,c.useState)(!1),[L,H]=(0,c.useState)(!1),[N,I]=(0,c.useState)(!0),[O,A]=(0,c.useState)(!1),[G,$]=(0,c.useState)(!1),[Z,F]=(0,c.useState)(!1),[D,W]=(0,c.useState)(!1),[U,j]=(0,c.useState)(!1),[q,J]=(0,c.useState)({}),[K,Q]=(0,c.useState)(!1),X=e=>{window.isMapLoaded||(window.isMapLoaded=!0,h.current.onload=()=>{document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",A(!0)},h.current.src=`https://maps.googleapis.com/maps/api/js?key=${e}&libraries=places&cache=${Math.random()}`,document.head.appendChild(h.current)),document.getElementById("themeisle-google-map-api")&&A(!0)},Y=(e,t,o,r)=>{const n=`<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">${r?`<p>${r}</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>`,c=new window.google.maps.InfoWindow({content:n});e.addListener("click",(()=>{v.current=c,c.open(k.current,e)})),window.google.maps.event.addListener(c,"domready",(()=>{$(t)})),window.google.maps.event.addListener(c,"closeclick",(()=>{$(!1)}))},ee=e=>{e.forEach((e=>{const t=e.latitude,o=e.longitude,l=new window.google.maps.LatLng(t,o),a=new window.google.maps.Marker({position:l,map:k.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();te(e.id,"latitude",o),te(e.id,"longitude",l)})),i.current.push(a),window.google.maps.event.addListener(a,"click",(()=>{v.current&&v.current.close()})),Y(a,e.id,e.title,e.description)}))},te=(e,t,l)=>{const a=[...y.current];a.find((t=>t.id===e))[t]=l.toString(),le(),ee(a),o({markers:a})},oe=e=>{let t=[...y.current];t=t.filter((t=>t.id!==e)),o({markers:t}),le(),$(!1),0<t.length&&ee(t)},le=()=>{for(let e=0;e<i.current.length;e++)i.current[e].setMap(null);i.current=[]},ae=()=>{!1===Boolean(window.themeisleGutenberg.mapsAPI)&&(H(!0),new window.wp.api.models.Settings({themeisle_google_map_block_api_key:T}).save().then((e=>{let t=!1;""!==e.themeisle_google_map_block_api_key&&(t=!0),H(!1),P(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,X(e.themeisle_google_map_block_api_key))})))},re=e=>{o({style:e}),k.current.setOptions({styles:C[e]})},ne=(0,m.useBlockProps)({className:s()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":r})});return S&&z?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.d,{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:re}),(0,c.createElement)(_,{attributes:t,setAttributes:o,map:k.current,changeStyle:re,isPlaceAPIAvailable:N,isMarkerOpen:G,setMarkerOpen:$,removeMarker:oe,changeMarkerProp:te,addMarkerManual:()=>{const e=(0,d.Z)(),t=(0,l.__)("Custom Marker","otter-blocks"),o=k.current.getCenter(),a=o.lat(),r=o.lng();W(!0),j(!0),J({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:r})},api:T,isSaving:L,changeAPI:M,saveAPIKey:ae}),D&&(0,c.createElement)(f,{marker:q,isAdvanced:U,isPlaceAPIAvailable:N,close:()=>W(!1),addMarker:(e,l,a,r,n,c)=>{const s=new window.google.maps.LatLng(n,c),m=(0,d.Z)(),u=new window.google.maps.Marker({position:s,map:k.current,title:l,draggable:!0,icon:a});window.google.maps.event.addListener(u,"dragend",(e=>{const t=e.latLng.lat(),o=e.latLng.lng();te(m,"latitude",t),te(m,"longitude",o)})),i.current.push(u);const b=[...t.markers],p={id:m,location:e,title:l,icon:a,description:r,latitude:n,longitude:c};b.push(p),o({markers:b}),window.google.maps.event.addListener(u,"click",(()=>{v.current&&v.current.close()})),Y(u,p.id,l,r),W(!1),F(!1)}}),(0,c.createElement)("div",ne,(0,c.createElement)(u.ResizableBox,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{n(!1)},onResizeStop:(e,l,a,r)=>{o({height:parseInt(t.height+r.height,10)}),n(!0)}},(0,c.createElement)(w,{attributes:t,initMap:()=>{if(k.current=new window.google.maps.Map(document.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:C[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(k.current).findPlaceFromQuery(e,((e,t)=>{t===window.google.maps.places.PlacesServiceStatus.OK&&0<e.length&&k.current.setCenter(e[0].geometry.location)}))}window.google.maps.event.addListenerOnce(k.current,"idle",(()=>{R(!0)})),k.current.addListener("zoom_changed",(()=>{const e=k.current.getZoom();o({zoom:e})})),k.current.addListener("maptypeid_changed",(()=>{const e=k.current.getMapTypeId();o({type:e})})),k.current.addListener("bounds_changed",(()=>{const e=k.current.getCenter(),t=e.lat(),l=e.lng();o({latitude:t.toString(),longitude:l.toString()})})),0<t.markers.length&&ee(t.markers);const e={query:t.location,fields:["name","geometry"]};new window.google.maps.places.PlacesService(k.current).findPlaceFromQuery(e,((e,t)=>{"REQUEST_DENIED"===t&&I(!1)}))},displayMap:O,isMapLoaded:V,selectMarker:()=>{F(!Z),Z?window.google.maps.event.clearListeners(k.current,"click"):k.current.addListener("click",(e=>{window.google.maps.event.clearListeners(k.current,"click");const t=(0,d.Z)(),o=(0,l.__)("Custom Marker","otter-blocks"),a=e.latLng.lat(),r=e.latLng.lng();W(!0),j(!1),J({id:t,location:"",title:o,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:r})}))},isSelectingMarker:Z})))):(0,c.createElement)("div",ne,(0,c.createElement)(b,{api:T,error:K,isAPILoaded:S,isAPISaved:z,isSaving:L,changeAPI:e=>{M(e),Q(!1)},saveAPIKey:ae}))},save:()=>null})},2925:function(e,t,o){var l=o(5736),a=o(4981),r=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"},"defaultIconPrefix":{"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"}'),n=o(340),c=o(9307),i=o(2175),s=o(5711),d=o(5225),m=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(i.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})}}}))},u=o(5609);const b=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var p=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(u.Placeholder,null,(0,c.createElement)(u.Spinner,null))},(0,c.createElement)(b,{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,c.createElement)(u.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})},min:0,max:60,allowReset:!0}),(0,c.createElement)(u.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})},min:0,max:60,allowReset:!0}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Content Color","otter-blocks"),colorValue:t.defaultContentColor,onColorChange:e=>{o({defaultContentColor:e})}}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Icon Color","otter-blocks"),colorValue:t.defaultIconColor,onColorChange:e=>{o({defaultIconColor:e})}})))};const{attributes:g}=r;const{name:h}=r;(0,a.registerBlockType)(h,{...r,title:(0,l.__)("Icon List","otter-blocks"),description:(0,l.__)("Display an icon list in a beautiful layout. Powered by Otter.","otter-blocks"),icon:n.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,c.useEffect)((()=>{const e=(0,d.WX)(l,g);return()=>e(t.id)}),[t.id]);const a=s.iv`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
--horizontalAlign: ${t.horizontalAlign};
|
105 |
${t.gap&&`--gap: ${t.gap}px;`}
|
106 |
${t.defaultSize&&`--fontSize: ${t.defaultSize}px;`}
|
107 |
-
`,r=(0,i.useBlockProps)({id:t.id,css:a});return(0,s.tZ)(c.Fragment,null,(0,s.tZ)(m,{attributes:t,setAttributes:o}),(0,s.tZ)(p,{attributes:t,setAttributes:o}),(0,s.tZ)("div",r,(0,s.tZ)(i.InnerBlocks,{allowedBlocks:["themeisle-blocks/icon-list-item"],__experimentalMoverDirection:"vertical",orientation:"vertical",template:[["themeisle-blocks/icon-list-item"]],renderAppender:i.InnerBlocks.DefaultAppender})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({id:t.id});return(0,c.createElement)("div",o,(0,c.createElement)(i.InnerBlocks.Content,null))}})},598:function(e,t,o){var l=o(5736),a=o(4981),r=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"}}}'),n=o(340),c=o(9307),i=o(5711),s=o(4184),d=o.n(s),m=o(2175),u=o(9818),b=o(5609);const p=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var g=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(b.Placeholder,null,(0,c.createElement)(b.Spinner,null))},(0,c.createElement)(p,{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,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Content Color","otter-blocks"),colorValue:t.contentColor,onColorChange:e=>{o({contentColor:e})}}),"image"!==t.library&&(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Icon Color","otter-blocks"),colorValue:t.iconColor,onColorChange:e=>{o({iconColor:e})}})))},h=o(48),k=o(5225);const{attributes:v}=r;const{name:y}=r;(0,a.registerBlockType)(y,{...r,title:(0,l.__)("Icon List Item","otter-blocks"),description:(0,l.__)("Display an item for the icon list. Powered by Otter.","otter-blocks"),icon:n.faIcon,keywords:["item","icon","list"],merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:e=>{let{attributes:t,setAttributes:o,name:r,clientId:n,onReplace:s,onRemove:b,mergeBlocks:p}=e;const[y,_]=(0,c.useState)(!1),{hasParent:f,parentAttributes:w}=(0,u.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),l=t(o(n));return{hasParent:!!l,parentAttributes:l?l.attributes:{}}}),[]);(0,c.useEffect)((()=>{const e=(0,k.WX)(n,v);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{o({library:t.library||w.defaultLibrary,icon:t.icon||w.defaultIcon,iconPrefix:t.iconPrefix||w.defaultIconPrefix})}),[f,w,t]),(0,c.useEffect)((()=>{if("image"===t.library)try{const e=new URL(t.icon);"http:"!==(null==e?void 0:e.protocol)&&"https:"!==(null==e?void 0:e.protocol)||_(!0)}catch(e){_(!1)}}),[t.library,t.icon]);const C=h.ZP.icons[t.icon],E=`${t.iconPrefix||w.defaultIconPrefix} fa-${t.icon||w.defaultIcon}`,x=i.iv`
|
108 |
-
--contentColor: ${t.contentColor||w.defaultContentColor};
|
109 |
-
--iconColor: ${t.iconColor||w.defaultIconColor};
|
110 |
-
`,T=(0,m.useBlockProps)({css:x});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(g,{attributes:t,setAttributes:o}),(0,i.tZ)("div",T,"image"===t.library&&y?(0,i.tZ)("img",{src:t.icon}):"themeisle-icons"===t.library&&t.icon&&void 0!==C?(0,i.tZ)(C,{className:d()({"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}):(0,i.tZ)("i",{className:d()(E,{"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}),(0,i.tZ)(m.RichText,{identifier:"content",tagName:"p",placeholder:(0,l.__)("Write your content…","otter-blocks"),className:d()({"wp-block-themeisle-blocks-icon-list-item-content":!t.contentColor},{"wp-block-themeisle-blocks-icon-list-item-content-custom":t.contentColor}),value:t.content,onChange:e=>{o({content:e})},onSplit:e=>e?(0,a.createBlock)(r,{...t,content:e}):(0,a.createBlock)(r),onMerge:p,onReplace:s,onRemove:b})))},save:e=>{let{attributes:t}=e;const o=`${t.iconPrefix} fa-${t.icon}`,l=h.ZP.icons[t.icon],a=m.useBlockProps.save({id:t.id});return(0,c.createElement)("div",a,"image"===t.library&&t.icon?(0,c.createElement)("img",{src:t.icon}):"themeisle-icons"===t.library&&t.icon?(0,c.createElement)(l,{className:d()({"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}):(0,c.createElement)("i",{className:d()(o,{"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}),(0,c.createElement)(m.RichText.Content,{tagName:"p",className:d()({"wp-block-themeisle-blocks-icon-list-item-content":!t.contentColor},{"wp-block-themeisle-blocks-icon-list-item-content-custom":t.contentColor}),value:t.content}))}})},1254:function(e,t,o){var l=o(5736),a=o(4981),r=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"}'),n=o(340),c=o(9307),i=o(4586),s=o(4184),d=o.n(s),m=o(2819),u=o(2175),b=o(5609);async function p(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}var g=o(4333);const h=e=>{let{value:t,onChange:o}=e;const a=(0,g.useInstanceId)(h);(0,c.useEffect)((()=>{wp.oldEditor.initialize(n.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(n.current.id);return e.on("change",(()=>o(e.getContent()))),()=>wp.oldEditor.remove(n.current.id)}),[]);const r=`inspector-textarea-control-${a}`,n=(0,c.useRef)(null);return(0,c.createElement)(b.BaseControl,{id:r,label:(0,l.__)("Description","otter-blocks")},(0,c.createElement)("textarea",{id:r,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:n}))};var k=h,v=e=>{let{marker:t,isOpen:o,openMarker:a,dispatch:r}=e;const[n,i]=(0,c.useState)(t.location),[s,m]=(0,c.useState)(t.longitude),[u,g]=(0,c.useState)(t.latitude),[h,v]=(0,c.useState)(t.title),[y,_]=(0,c.useState)(t.description),[f,w]=(0,c.useState)({target:"",reason:""});return(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker"},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-title-area"},(0,c.createElement)(b.Button,{className:"wp-block-themeisle-blocks-leaflet-map-marker-title",onClick:()=>a()},t.title||(0,l.__)("Custom Marker","otter-blocks")),(0,c.createElement)(b.Button,{icon:"no-alt",label:(0,l.__)("Remove Marker","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-remove",onClick:()=>r({type:C.REMOVE,ids:[t.id]})})),o&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-control-area"},(0,c.createElement)(b.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:d()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===f.target}),value:n,onChange:e=>{i(e)},help:(0,l.__)("Press Enter to search the location","otter-blocks"),onKeyDown:e=>((e,o)=>{e.key===o&&(async()=>{const e=await p(n);e?(r({type:C.UPDATE,ids:[t.id],updatedProps:{location:n,latitude:e.latitude,longitude:e.longitude}}),g(e.latitude),m(e.longitude),"LOCATION"===f.target&&w({})):w({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:u,onChange:e=>{g(e),r({type:C.UPDATE,ids:[t.id],updatedProps:{latitude:e}})}}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:s,onChange:e=>{m(e),r({type:C.UPDATE,ids:[t.id],updatedProps:{longitude:e}})}}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:h,onChange:e=>{v(e),r({type:C.UPDATE,ids:[t.id],updatedProps:{title:e}})}}),(0,c.createElement)(k,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>{_(y),r({type:C.UPDATE,ids:[t.id],updatedProps:{description:e}})}})))},y=e=>{let{markers:t,dispatch:o,markersInteraction:a}=e;const{openMarker:r,setOpenMarker:n}=a;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-group"},t.map((e=>(0,c.createElement)(v,{key:e.id,marker:e,isOpen:r===e.id,openMarker:()=>n(a.openMarker!==e.id?e.id:null),dispatch:o})))),(0,c.createElement)(b.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-add",onClick:()=>{o({type:C.ADD,marker:{id:(0,i.Z)()},dispatch:o})}},(0,l.__)("Add Marker","otter-blocks")))},_=e=>{let{attributes:t,setAttributes:o,dispatch:a,markersInteraction:r}=e;const[n,i]=(0,c.useState)(t.location),[s,m]=(0,c.useState)({target:"",reason:""});return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,c.createElement)(b.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:d()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===s.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:n,onChange:i,onKeyDown:e=>((e,t)=>{e.key===t&&(async()=>{o({location:n});const e=await p(n);e?(o({latitude:e.latitude.toString(),longitude:e.longitude.toString()}),"LOCATION"===s.target&&m({})):m({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,c.createElement)(b.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,c.createElement)(b.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,c.createElement)(b.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.RangeControl,{label:(0,l.__)("Map Zoom Level","otter-blocks"),value:t.zoom,onChange:e=>{o({zoom:e})},min:0,max:20}),(0,c.createElement)(b.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.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,c.createElement)(b.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,c.createElement)(b.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}})),(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1},(0,c.createElement)(y,{markers:t.markers,dispatch:a,markersInteraction:r})))},f=o(5225);const{attributes:w}=r,C={ADD:"ADD",ADD_MANUAL:"ADD_MANUAL",REMOVE:"REMOVE",UPDATE:"UPDATE",INIT:"INIT"};var E={to:[{type:"block",blocks:["themeisle-blocks/google-map"],transform:e=>{const t=e;return(0,a.createBlock)("themeisle-blocks/google-map",{...t})}}]};const{name:x}=r;(0,a.registerBlockType)(x,{...r,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:n.mapIcon,keywords:["map","opeenstreetmap","location"],transforms:E,edit:e=>{let{clientId:t,attributes:o,setAttributes:a,isSelected:r,toggleSelection:n}=e;(0,c.useEffect)((()=>{const e=(0,f.WX)(t,w);return()=>e(o.id)}),[o.id]);const s=(0,c.useRef)(null),[p,g]=(0,c.useState)(null),[h,k]=(0,c.useState)(!1),[v,y]=(0,c.useState)(null),E=(e,t)=>{if(window.L&&p&&t&&e){var o,a,r,n,c;null!==(o=e.id)&&void 0!==o||(e.id=(0,i.Z)()),null!==(a=e.latitude)&&void 0!==a||(e.latitude=p.getCenter().lat),null!==(r=e.longitude)&&void 0!==r||(e.longitude=p.getCenter().lng),null!==(n=e.title)&&void 0!==n||(e.title=(0,l.__)("Add a title","otter-blocks")),null!==(c=e.description)&&void 0!==c||(e.description="");const s=window.L.marker([e.latitude,e.longitude]||0,{draggable:!0});return s.on("movestart",(()=>{s.closeTooltip(),s.closePopup()})),s.on("moveend",(()=>{const o=s.getLatLng();t({type:C.UPDATE,ids:[e.id],updatedProps:{latitude:o.lat,longitude:o.lng}})})),s.on("click",(()=>{y(e.id)})),s.markerProps=e,s}return null},[x,T]=(0,c.useReducer)(((e,t)=>{switch(t.type){case C.ADD:const o=E(t.marker,t.dispatch);return[...e,o];case C.ADD_MANUAL:if(h){const o=E(t.marker,t.dispatch);return[...e,o]}return e;case C.REMOVE:return e.filter((e=>{let{markerProps:o}=e;return t.ids.includes(o.id)})).forEach((e=>{p.hasLayer(e)&&p.removeLayer(e)})),e.filter((e=>{let{markerProps:o}=e;return!t.ids.includes(o.id)}));case C.INIT:const a=t.markers.map((e=>E(e,t.dispatch)));return[...e,...a];case C.UPDATE:return e.map((e=>{const o=e.markerProps;return t.ids.includes(o.id)&&(e.markerProps=(0,m.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}),[],(()=>[]));(0,c.useEffect)((()=>{(()=>{if(!s.current&&!window.L)return;s.current.innerHTML="";const e=window.L.map(s.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")}}});window.L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:["a","b","c"]}).addTo(e),e.on("zoom",(()=>{a({zoom:e.getZoom()})})),e.on("moveend",(()=>{const t=e.getCenter();a({latitude:t.lat.toString(),longitude:t.lng.toString()})})),e.on("click",(e=>{T({type:C.ADD_MANUAL,marker:{latitude:e.latlng.lat,longitude:e.latlng.lng},dispatch:T}),k(!1)})),window.L.Control.AddMarker=window.L.Control.extend({onAdd:()=>{const e=window.L.DomUtil.create("button","wp-block-themeisle-blocks-leaflet-map-marker-button"),t=window.L.DomUtil.create("span","dashicons dashicons-sticky",e);return window.L.DomEvent.on(e,"click",(e=>{window.L.DomEvent.stopPropagation(e),k(!h)})),e.title=(0,l.__)("Add marker on the map with a click","otter-blocks"),e.appendChild(t),e},onRemove:()=>{}}),window.L.control.addmarker=e=>new window.L.Control.AddMarker(e),window.L.control.addmarker({position:"bottomleft"}).addTo(e),g(e),T({type:C.INIT,markers:o.markers,dispatch:T})})()}),[]),(0,c.useEffect)((()=>{o.height&&p&&p.invalidateSize(!0)}),[o.height,p]),(0,c.useEffect)((()=>{o.latitude&&o.longitude&&p&&p.setView([o.latitude,o.longitude],o.zoom||15)}),[o.latitude,o.longitude,o.zoom,p]),(0,c.useEffect)((()=>{var e;null===(e=s.current)||void 0===e||e.classList.toggle("is-selecting-location",h)}),[h]),(0,c.useEffect)((()=>{o.latitude&&o.longitude&&p&&a({bbox:p.getBounds().toBBoxString()})}),[o.latitude,o.longitude,p]),(0,c.useEffect)((()=>{x&&(x.forEach((e=>{p.hasLayer(e)||p.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"),r=document.createElement("div"),n=document.createElement("p"),c=document.createElement("button");return a.innerHTML=e.title,n.innerHTML=e.description,c.onclick=()=>t({type:C.REMOVE,ids:[e.id]}),c.innerHTML=(0,l.__)("Delete Marker","otter-blocks"),o.classList.add("wp-block-themeisle-blocks-map-overview"),r.classList.add("wp-block-themeisle-blocks-map-overview-content"),a.classList.add("wp-block-themeisle-blocks-map-overview-title"),c.classList.add("wp-block-themeisle-blocks-map-overview-delete"),o.appendChild(a),o.appendChild(r),o.appendChild(c),r.appendChild(n),o})(t,T))})),o.markers.length!==x.length&&p&&a({markers:x.map((e=>{let{markerProps:t}=e;return t}))}))}),[x,p,o.markers]);const M=(0,u.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(_,{attributes:o,setAttributes:a,dispatch:T,markersInteraction:{openMarker:v,setOpenMarker:y}}),(0,c.createElement)("div",M,(0,c.createElement)(b.ResizableBox,{size:{height:o.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{n(!1)},onResizeStop:(e,t,l,r)=>{a({height:parseInt(o.height+r.height,10)}),n(!0)},className:d()("wp-block-themeisle-blocks-leaflet-map-resizer",{"is-focused":r})},(0,c.createElement)("div",{id:o.id,ref:s,style:{width:"100%",height:o.height||400}}))))},save:()=>null})},6099:function(e,t,o){var l=o(2553),a=o(5736),r=o(4981),n=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"}'),c=o(9307),i=o(2819),s=o(2175),d=o(5609),m=e=>{var t;let{className:o,file:r,onChange:n,attributes:i}=e;const[m,u]=(0,c.useState)((null===(t=i.file)||void 0===t?void 0:t.url)||null);return Boolean(window.themeisleGutenberg.isWPVIP)?(0,c.createElement)(d.Placeholder,{label:(0,a.__)("Lottie","otter-blocks"),instructions:(0,a.__)("Add Lottie animations and files to your website.","otter-blocks"),icon:(0,c.createElement)(s.BlockIcon,{icon:l.Z}),className:o},(0,c.createElement)("form",{onSubmit:e=>(e&&e.preventDefault(),n(m))},(0,c.createElement)("input",{type:"url",value:m||"",className:"components-placeholder__input","aria-label":(0,a.__)("Lottie","otter-blocks"),placeholder:(0,a.__)("Enter URL to embed here…","otter-blocks"),onChange:e=>u(e.target.value)}),(0,c.createElement)(d.Button,{isPrimary:!0,disabled:!m,type:"submit"},(0,a.__)("Embed","otter-blocks")))):(0,c.createElement)(s.MediaPlaceholder,{labels:{title:(0,a.__)("Lottie","otter-blocks"),instructions:(0,a.__)("Add Lottie animations and files to your website.","otter-blocks")},icon:(0,c.createElement)(s.BlockIcon,{icon:l.Z}),accept:["application/json"],allowedTypes:["application/json"],value:{...r},onSelectURL:n,onSelect:n})},u=e=>{let{attributes:t,setAttributes:o,playerRef:l}=e;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Settings","otter-blocks"),initialOpen:!0},(0,c.createElement)(d.SelectControl,{label:(0,a.__)("Trigger","otter-blocks"),help:(0,a.__)("Animation trigger. This will only work on the front-end.","otter-blocks"),value:t.trigger,options:[{label:(0,a.__)("Autoplay","otter-blocks"),value:"none"},{label:(0,a.__)("Scroll","otter-blocks"),value:"scroll"},{label:(0,a.__)("Hover","otter-blocks"),value:"hover"},{label:(0,a.__)("Click","otter-blocks"),value:"click"}],onChange:e=>{o({trigger:e})}}),"scroll"!==t.trigger&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(d.ToggleControl,{label:(0,a.__)("Loop","otter-blocks"),help:(0,a.__)("Whether to loop animation.","otter-blocks"),checked:t.loop,onChange:e=>{o({loop:e}),l.current.setLooping(e),t.direction&&l.current.seek("100%"),l.current.play()}}),t.loop&&(0,c.createElement)(d.TextControl,{label:(0,a.__)("Numbers of loops","otter-blocks"),help:(0,a.__)("Number of times to loop animation.","otter-blocks"),type:"number",value:t.count,onChange:e=>{o({count:Number(e)}),l.current.load(t.file.url)}}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Speed","otter-blocks"),help:(0,a.__)("Animation speed.","otter-blocks"),value:t.speed,onChange:e=>{o({speed:Number(e)}),l.current.setSpeed(e)},step:.1,min:.1,max:5}),(0,c.createElement)(d.ToggleControl,{label:(0,a.__)("Reverse","otter-blocks"),help:(0,a.__)("Direction of animation.","otter-blocks"),checked:t.direction,onChange:e=>{o({direction:e}),l.current.setDirection(e?-1:1),l.current.seek(e?"100%":0)}})),(0,c.createElement)(s.__experimentalUnitControl,{onChange:e=>{const t=parseInt(e.slice(0,-1)),l=e.slice(-1);100<t&&"%"===l&&(e="100%"),o({width:e})},label:(0,a.__)("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,c.createElement)(d.PanelBody,{title:(0,a.__)("Background","otter-blocks"),initialOpen:!1},(0,c.createElement)(s.__experimentalColorGradientControl,{colorValue:t.backgroundColor,gradientValue:t.backgroundGradient,onColorChange:e=>o({backgroundColor:e}),onGradientChange:e=>o({backgroundGradient:e}),className:"otter-lottie-background-control"}))),(0,c.createElement)(s.InspectorAdvancedControls,null,(0,c.createElement)(d.TextControl,{label:(0,a.__)("Aria Label","otter-blocks"),help:(0,a.__)("Describe the purpose of this animation on the page.","otter-blocks"),value:t.ariaLabel,onChange:e=>o({ariaLabel:e})})))},b=e=>{let{isEditing:t,setEditing:o}=e;return(0,c.createElement)(s.BlockControls,null,(0,c.createElement)(d.ToolbarGroup,null,(0,c.createElement)(d.Tooltip,{text:t?(0,a.__)("Save","otter-blocks"):(0,a.__)("Edit","otter-blocks")},(0,c.createElement)(d.Button,{onClick:()=>o(!t)},(0,c.createElement)(d.Dashicon,{icon:t?"yes":"edit"})))))},p=o(7462),g=e=>{let{attributes:t,isSelected:o,playerRef:l}=e;(0,c.useEffect)((()=>{!(0,i.isEmpty)(t.file)&&t.loop&&null!==l.current&&l.current.addEventListener("complete",a)}),[]),(0,c.useEffect)((()=>{o?(l.current.play(),t.direction&&l.current.seek("100%")):l.current.stop()}),[o]);const a=()=>{l.current&&(l.current.setLooping(t.loop),l.current.play(),l.current.removeEventListener("complete",a))};return(0,c.createElement)("lottie-player",(0,p.Z)({id:t.id,ref:l,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}))},h=o(5225);const{attributes:k}=n;const{name:v}=n;(0,r.registerBlockType)(v,{...n,title:(0,a.__)("Lottie Animation","otter-blocks"),description:(0,a.__)("Add Lottie animations to your WordPress. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["media","lottie","animation"],edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a}=e;const r=(0,c.useRef)(null),[n,d]=(0,c.useState)(!Boolean(t.file));(0,c.useEffect)((()=>{const e=(0,h.WX)(a,k);return()=>e(t.id)}),[t.id]);const p=(0,s.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(!(0,i.isEmpty)(t.file)&&n||!n)&&(0,c.createElement)(b,{isEditing:n,setEditing:d}),!((0,i.isEmpty)(t.file)||n)&&(0,c.createElement)(u,{attributes:t,setAttributes:o,playerRef:r}),(0,c.createElement)("div",p,((0,i.isEmpty)(t.file)||n)&&(0,c.createElement)(m,{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}}),d(!1)},attributes:t}),!((0,i.isEmpty)(t.file)||n)&&(0,c.createElement)(g,{attributes:t,isSelected:l,playerRef:r})))},save:e=>{let{attributes:t}=e;const o=s.useBlockProps.save({id:t.id,src:t.file?t.file.url:"",width:t.width});return"scroll"===t.trigger?(0,c.createElement)("lottie-player",(0,p.Z)({trigger:t.trigger,background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o)):(0,c.createElement)("lottie-player",(0,p.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))}})},5319:function(e,t,o){var l=o(5736),a=o(4981),r=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"}'),n=o(340),c=o(9307),i=o(2175),s=o(5609),d=o(8423),m=o.n(d),u=o(4932),b=o(2819),p=o(6989),g=o.n(p),h=o(9630),k=e=>{let{setAttributes:t,hasError:o,setError:a,className:r}=e;const n=(0,c.useRef)(null);let i=!1;const d=[],[m,p]=(0,c.useState)(!1),[k,v]=(0,c.useState)(""),[y,_]=(0,c.useState)({}),[f,w]=(0,c.useState)(null);(0,c.useEffect)((()=>{let e=null;return null===f||i||(i=!0,(0,u.Z)(d[f],n.current,{onlyScrollIfNeeded:!0}),d[f].focus(),e=setTimeout((()=>{i=!1}),100)),()=>{clearTimeout(e)}}),[f]);const C=e=>{if(Object.keys(y).length){e.stopPropagation(),e.preventDefault();const t=f?f-1:Object.keys(y).length-1;w(t)}},E=e=>{if(Object.keys(y).length){e.stopPropagation(),e.preventDefault();const t=null===f||f===Object.keys(y).length-1?0:f+1;w(t)}},x=e=>{t({slug:e.slug}),_({})};return(0,c.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:r},(0,c.createElement)("div",{className:"o-plugin-cards-search-field"},(0,c.createElement)(s.Dashicon,{icon:"search"}),m&&(0,c.createElement)(s.Spinner,null),(0,c.createElement)(s.TextControl,{type:"text",placeholder:(0,l.__)("Search for plugin…","otter-blocks"),value:k,onChange:v,onKeyDown:e=>{switch(e.keyCode){case h.UP:C(e);break;case h.DOWN:E(e);break;case h.TAB:Object.keys(y).length&&!e.shiftKey&&w(0);break;case h.ENTER:(async e=>{t({slug:""}),p(!0),a(!1);const o=await g()({path:`otter/v1/plugins?search=${encodeURIComponent(e)}`});if(o.data.errors)return a(!0),p(!1),w(null),void _({});p(!1),w(null),_(o.data.plugins)})(e.target.value)}},onFocus:()=>w(null)}),y&&(0,c.createElement)("div",{tabIndex:"-1",className:"o-plugin-cards-search-results",ref:n},Object.keys(y).map((e=>{const t=y[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,c.createElement)("button",{className:"o-plugin-cards-list-item",key:e,ref:(l=e,e=>{d[l]=e}),onClick:e=>{e.preventDefault(),x(t)},onKeyDown:e=>((e,t)=>{switch(e.keyCode){case h.UP:C(e);break;case h.DOWN:E(e);break;case h.TAB:if(e.shiftKey){0!==f&&C(e);break}if(f===Object.keys(y).length-1)break;E(e);break;case h.ENTER:x(t)}})(e,t)},(0,c.createElement)("img",{src:o}),(0,c.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,b.unescape)(t.name)}}));var l})))),o&&(0,c.createElement)("div",{className:"o-plugin-cards-error"},(0,c.createElement)("span",null,(0,l.__)("There seems to be an error. Make sure your internet is working properly.","otter-blocks"))))},v=e=>{let{setAttributes:t}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(s.ToolbarGroup,null,(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Edit","otter-blocks")},(0,c.createElement)(s.Button,{className:"components-icon-button components-toolbar__control o-plugin-cards-edit-plugin-card",onClick:()=>t({slug:void 0})},(0,c.createElement)(s.Dashicon,{icon:"edit"})))))};const{name:y}=r;(0,a.registerBlockType)(y,{...r,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:n.pluginsIcon,keywords:["plugin","card","orbitfox"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[l,a]=(0,c.useState)(!1),r=(0,i.useBlockProps)();return t.slug?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(v,{setAttributes:o}),(0,c.createElement)("div",r,(0,c.createElement)(s.Disabled,null,(0,c.createElement)(m(),{block:"themeisle-blocks/plugin-cards",attributes:{...t}})))):(0,c.createElement)("div",r,(0,c.createElement)(k,{attributes:t,setAttributes:o,hasError:l,setError:a}))},save:()=>null})},2693:function(e,t,o){var l=o(7682),a=o(5736),r=o(4981),n=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"}'),c=o(9307),i=o(5711),s=o(6755),d=o(7231),m=o(2175),u=o(5609),b=o(2694),p=o(9084);const g=()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u.Disabled,null,(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Close On Anchor Click","otter-blocks"),checked:!1,onChange:()=>{}}),(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Dismiss for Recurring Visitors","otter-blocks"),checked:!1,onChange:()=>{}})),(0,c.createElement)(p.Z,{notice:(0,c.createElement)(u.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,a.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"}));var h=e=>{let{attributes:t,setAttributes:o}=e,l=[{label:(0,a.__)("On Load","otter-blocks"),value:"onLoad"},{label:(0,a.__)("On Anchor Click (Pro)","otter-blocks"),value:"onClick",disabled:!0},{label:(0,a.__)("On Scroll (Pro)","otter-blocks"),value:"onScroll",disabled:!0},{label:(0,a.__)("On Exit (Pro)","otter-blocks"),value:"onExit",disabled:!0}];return l=(0,b.applyFilters)("otter.popupBlock.triggers",l),(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Open Trigger","otter-blocks"),help:!Boolean(window.themeisleGutenberg.hasPro)&&(0,a.__)("You need to have Otter Pro to activate Pro features.","otter-blocks"),options:l,value:t.trigger,onChange:e=>o({trigger:e})}),(void 0===t.trigger||"onLoad"===t.trigger)&&(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Wait Time","otter-blocks"),help:(0,a.__)("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,b.applyFilters)("otter.popupBlock.controls",(0,c.createElement)((()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Show Close Button","otter-blocks"),checked:t.showClose,onChange:()=>o({showClose:!t.showClose})}),(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Close on Click Outside","otter-blocks"),checked:t.outsideClose,onChange:()=>o({outsideClose:!t.outsideClose})}),!Boolean(window.themeisleGutenberg.hasPro)&&(0,c.createElement)(g,null))),null),t,o)),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Style","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Minimum Width","otter-blocks"),min:100,max:1e3,value:t.minWidth,allowReset:!0,onChange:e=>o({minWidth:Number(e)})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Maximum Width","otter-blocks"),min:100,max:1e3,value:t.maxWidth,allowReset:!0,onChange:e=>o({maxWidth:Number(e)})}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Background","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>o({backgroundColor:e})}),t.showClose&&(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Close Button","otter-blocks"),colorValue:t.closeColor,onColorChange:e=>o({closeColor:e})}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Overlay","otter-blocks"),colorValue:t.overlayColor,onColorChange:e=>o({overlayColor:e})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Overlay Opacity","otter-blocks"),value:t.overlayOpacity,onChange:e=>o({overlayOpacity:Number(e)})})))},k=o(5225);const{attributes:v}=n;const{name:y}=n;(0,r.registerBlockType)(y,{...n,title:(0,a.__)("Popup","otter-blocks"),description:(0,a.__)("Display your content in beautiful popup with many customization options. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["popup","modal","lightbox"],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;(0,c.useEffect)((()=>{const e=(0,k.WX)(l,v);return()=>e(t.id)}),[]);const[r,n]=(0,c.useState)(!1),b=i.iv`
|
111 |
--minWidth: ${t.minWidth?t.minWidth+"px":"400px"};
|
112 |
--maxWidth: ${t.maxWidth?t.maxWidth+"px":void 0};
|
113 |
--backgroundColor: ${t.backgroundColor};
|
114 |
--closeColor: ${t.closeColor};
|
115 |
--overlayColor: ${t.overlayColor};
|
116 |
--overlayOpacity: ${t.overlayOpacity?t.overlayOpacity/100:1};
|
117 |
-
`,
|
118 |
-
/* translators: %s Date posted */
|
119 |
-
(0,n.sprintf)((0,n.__)("on %s","otter-blocks"),(0,s.p6)(a.date)),t.displayAuthor&&void 0!==r&&
|
120 |
-
/* translators: %s Author of the post */
|
121 |
-
(0,n.sprintf)((0,n.__)(" by %s","otter-blocks"),r.name),t.displayComments&&(0,n.sprintf)(" - %1$s %2$s","0",(0,n.__)("comments","otter-blocks")),t.displayPostCategory&&void 0!==(null==c?void 0:c.name)&&(0,n.sprintf)((0,n.__)(" - %s","otter-blocks"),c.name)):""},b=e=>{let{attributes:t,element:o,post:a}=e;var r;return 0<t.excerptLength&&t.displayDescription?(0,l.createElement)("div",{key:o,className:"o-posts-grid-post-description"},(0,l.createElement)("p",null,(null===(r=a.excerpt)||void 0===r?void 0:r.rendered)&&(0,s.Uo)(a.excerpt.rendered).substring(0,t.excerptLength)+"…"),t.displayReadMoreLink&&(0,l.createElement)("a",{href:a.link,className:"o-posts-read-more"},(0,n.__)("Read more","otter-blocks"))):""};t.ZP=e=>{let{attributes:t,posts:o,categoriesList:a,authors:n}=e;return(0,l.createElement)("div",{className:"grid"===t.style?r()("is-grid",`o-posts-grid-columns-${t.columns}`,{"has-shadow":t.imageBoxShadow,"o-crop-img":t.cropImage}):r()("is-list",{"has-shadow":t.imageBoxShadow,"o-crop-img":t.cropImage})},o.filter((e=>e)).slice(t.enableFeaturedPost?1:0).map((e=>{var o,s;const p=a&&0<(null==e||null===(o=e.categories)||void 0===o?void 0:o.length)?a.find((t=>t.id===e.categories[0])):void 0,g=n&&e.author?n.find((t=>t.id===e.author)):void 0;return(0,l.createElement)("div",{key:e.link,className:"o-posts-grid-post-blog o-posts-grid-post-plain"},(0,l.createElement)("div",{className:r()("o-posts-grid-post")},0!==e.featured_media&&t.displayFeaturedImage&&(0,l.createElement)(i.Z,{id:e.featured_media,link:e.link,alt:null===(s=e.title)||void 0===s?void 0:s.rendered,size:t.imageSize,imgStyle:{borderRadius:void 0!==t.borderRadius?t.borderRadius+"px":void 0}}),(0,l.createElement)("div",{className:r()("o-posts-grid-post-body",{"is-full":!t.displayFeaturedImage})},t.template.map((o=>{switch(o){case"category":return(0,l.createElement)(d,{key:o,attributes:t,element:o,category:p,categoriesList:a});case"title":return(0,l.createElement)(m,{key:o,attributes:t,element:o,post:e});case"meta":return(0,l.createElement)(u,{key:o,attributes:t,element:o,post:e,author:g,category:p});case"description":return(0,l.createElement)(b,{key:o,attributes:t,element:o,post:e});default:return(0,c.applyFilters)("otter.postsBlock.templateLoop","",o,t)}})))))})))}},198:function(e,t,o){var l=o(9307),a=o(5609),r=o(9818);t.Z=e=>{let{id:t,link:o,alt:n,size:c,imgStyle:i}=e;const{featuredImage:s,altText:d}=(0,r.useSelect)((e=>{const o=e("core").getMedia(t);return{featuredImage:o?0<Object.keys(o.media_details.sizes).length&&o.media_details.sizes[c]?o.media_details.sizes[c].source_url:o.source_url:null,altText:o&&o.alt_text?o.alt_text:n}}),[c,t]);return null===s?(0,l.createElement)(l.Fragment,null):(0,l.createElement)("div",{className:"o-posts-grid-post-image"},(0,l.createElement)("a",{href:o},s?(0,l.createElement)("img",{src:s,size:c,alt:d,"data-id":t,style:i}):(0,l.createElement)(a.Placeholder,null,(0,l.createElement)(a.Spinner,null))))}},8061:function(e,t,o){var l=o(5736),a=o(4981),r=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"}'),n=o(340);const{attributes:c}=r;var i=[{attributes:{...c,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}],s=o(7462),d=o(9307),m=o(5711),u=o(2819),b=o(5609),p=o(2175),g=o(9818),h=e=>{let{attributes:t,setAttributes:o}=e;const a=p.BlockVerticalAlignmentToolbar;return(0,d.createElement)(p.BlockControls,null,(0,d.createElement)(a,{label:(0,l.__)("Change vertical alignment","otter-blocks"),value:t.verticalAlign,onChange:e=>o({verticalAlign:e})}))},k=o(454),v=o.n(k),y=o(4184),_=o.n(y),f=o(2694),w=o(1286),C=o(6993);const E=(0,w.W6)((()=>(0,d.createElement)("div",{className:"o-sortable-handle",tabIndex:"0"},(0,d.createElement)("span",null)))),x={image:"displayFeaturedImage",category:"displayCategory",title:"displayTitle",meta:"displayMeta",description:"displayDescription"},T=e=>{var t,o;let{attributes:a,setAttributes:r,template:n,disabled:c}=e;const[i,s]=(0,d.useState)(!1),m=null==n?void 0:n.startsWith("custom_"),p=null==a||null===(t=a.customMetas)||void 0===t||null===(o=t.filter((e=>{let{id:t}=e;return t===n})))||void 0===o?void 0:o.pop(),h={image:a.displayFeaturedImage,category:a.displayCategory,title:a.displayTitle,meta:a.displayMeta,description:a.displayDescription},k=(0,g.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={...p,...e};r({customMetas:a.customMetas.map((e=>e.id===p.id?t:e))})},y=m?(0,f.applyFilters)("otter.postsBlock.panelLabel","",p):(0,u.startCase)((0,u.toLower)(n)),w=h[n]||(null==p?void 0:p.display),T=w?"visibility":"hidden";
|
122 |
/* translators: %s Label */
|
123 |
-
let
|
124 |
/* translators: %s Label */
|
125 |
-
M=(0,l.sprintf)((0,l.__)("Hide %s","otter-blocks"),y)),(0,d.createElement)("div",{className:_()("o-sortable-item-area",`o-sortable-item-area-${n}`)},(0,d.createElement)("div",{className:_()("o-sortable-item",{disabled:c,hidden:!w,editable:w})},!c&&(0,d.createElement)(E,null),(0,d.createElement)("div",{className:"o-sortable-label"},y),w&&"category"!==n&&(0,d.createElement)(b.Button,{icon:i?"arrow-up-alt2":"arrow-down-alt2",label:i?(0,l.__)("Close Settings","otter-blocks"):(0,l.__)("Open Settings","otter-blocks"),showTooltip:!0,className:"o-sortable-button",onClick:()=>s(!i)}),(0,d.createElement)(b.Button,{icon:T,label:M,showTooltip:!0,className:"o-sortable-button",onClick:()=>{m?v({display:!p.display}):(e=>{const t=x[e]||e;r({[t]:!a[t]})})(n),s(!1)}})),w&&"category"!==n&&(0,d.createElement)("div",{className:_()("o-sortable-control-area",{opened:i&&w})},"image"===n&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.SelectControl,{label:(0,l.__)("Image Size","otter-blocks"),value:a.imageSize,options:window.themeisleGutenberg.imageSizes.map((e=>({label:(0,u.startCase)((0,u.toLower)(e)),value:e}))),onChange:e=>r({imageSize:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Crop image to fit","otter-blocks"),checked:a.cropImage,onChange:e=>r({cropImage:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display box shadow","otter-blocks"),checked:a.imageBoxShadow,onChange:e=>r({imageBoxShadow:e})}),(0,d.createElement)(b.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:a.borderRadius,onChange:e=>r({borderRadius:e}),min:0,max:50,allowReset:!0}),(0,d.createElement)(b.RangeControl,{label:(0,l.__)("Image Width","otter-blocks"),value:a.imageWidth,onChange:e=>r({imageWidth:e}),min:0,max:500,allowReset:!0})),"title"===n&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.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=>r({titleTag:e})}),(0,d.createElement)(C.Z,{label:(0,l.__)("Font size","otter-blocks")},(0,d.createElement)(b.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?r({customTitleFontSize:e}):"Tablet"===k?r({customTitleFontSizeTablet:e}):"Mobile"===k&&r({customTitleFontSizeMobile:e})},min:0,max:50,allowReset:!0}))),"meta"===n&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display post date","otter-blocks"),checked:a.displayDate,onChange:e=>r({displayDate:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display author","otter-blocks"),checked:a.displayAuthor,onChange:e=>r({displayAuthor:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display comments","otter-blocks"),checked:a.displayComments,onChange:e=>r({displayComments:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display category","otter-blocks"),checked:a.displayPostCategory,onChange:e=>r({displayPostCategory:e})})),"description"===n&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.TextControl,{label:(0,l.__)("Excerpt Limit","otter-blocks"),type:"number",value:a.excerptLength,onChange:e=>r({excerptLength:Number(e)})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display read more link","otter-blocks"),checked:a.displayReadMoreLink,onChange:e=>r({displayReadMoreLink:e})}),(0,d.createElement)(C.Z,{label:(0,l.__)("Font size","otter-blocks")},(0,d.createElement)(b.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?r({customDescriptionFontSize:e}):"Tablet"===k?r({customDescriptionFontSizeTablet:e}):"Mobile"===k&&r({customDescriptionFontSizeMobile:e})},min:0,max:50,allowReset:!0}))),(0,f.applyFilters)("otter.postsBlock.controls","",a,r,m,p,v)))},M=(0,w.W8)((e=>{let{attributes:t,setAttributes:o,template:l,disabled:a}=e;return(0,d.createElement)(T,{attributes:t,setAttributes:o,template:l,disabled:a})})),S=(0,w.JN)((e=>{var t;let{attributes:o,setAttributes:l}=e;return(0,d.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,d.createElement)(M,{key:`item-${e}`,index:t,attributes:o,setAttributes:l,template:e}))))}));var B=o(9084);const z=()=>(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.Button,{variant:"secondary",isSecondary:!0,className:"o-conditions__add",disabled:!0,onClick:()=>{}},(0,l.__)("Add Meta Field","otter-blocks")),(0,d.createElement)("br",null),(0,d.createElement)(B.Z,{notice:(0,d.createElement)(b.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,l.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"}));var P=e=>{let{attributes:t,setAttributes:o}=e;return(0,d.createElement)(d.Fragment,null,(0,d.createElement)("div",{className:_()("o-sortable",t.style)},(0,d.createElement)(T,{attributes:t,setAttributes:o,template:"image",disabled:!0}),(0,d.createElement)(S,{attributes:t,setAttributes:o,onSortEnd:e=>{let{oldIndex:l,newIndex:a}=e;const r=v()(t.template,l,a);o({template:r})},useDragHandle:!0,axis:"y",lockAxis:"y"}),(0,f.applyFilters)("otter.postsBlock.sortableContainer",(0,d.createElement)(z,null),t,o)))},V=o(5241),R=o(8286),L=o(4715),H=e=>{let{attributes:t,setAttributes:o,changeStyle:a,categoriesList:r}=e;const{slugs:n}=(0,g.useSelect)((e=>({slugs:e("otter-store").getPostsSlugs()})),[t.postTypes]),c=r.reduce(((e,t)=>({...e,[t.name]:t})),{}),i=t.categories?t.categories.map((e=>{const t=r.find((t=>t.id===Number(e.id)));return{id:e.id,name:(null==t?void 0:t.name)||(null==t?void 0:t.slug)||""}})):[],s="object"==typeof t.categories?1<=t.categories.length?t.categories[0].id:void 0:t.categories;return(0,d.createElement)(p.InspectorControls,null,(0,d.createElement)(b.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,d.createElement)(V.V,{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,d.createElement)(b.PanelBody,{title:(0,l.__)("Post Types","otter-blocks"),initialOpen:!1},(0,d.createElement)(b.BaseControl,null,(0,l.__)("Select the types of the post. If none is selected, the default WordPress post will be displayed.","otter-blocks")),(0,d.createElement)(b.SelectControl,{label:(0,l.__)("Post Type","otter-blocks"),value:t.postTypes[0]||null,onChange:e=>e&&o({postTypes:[e]}),options:n.map((e=>({label:(0,L.__)(e),value:e})))})),(0,d.createElement)(b.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},"grid"===t.style&&(0,d.createElement)(b.RangeControl,{label:(0,l.__)("Columns","otter-blocks"),value:t.columns,onChange:e=>{o({columns:e})},min:1,max:5}),(0,d.createElement)(b.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:c,selectedCategoryId:s,selectedCategories:i,onCategoryChange:e=>{let t;"object"==typeof e?0<e.length&&(t=e.map((e=>{if("object"==typeof e)return e;const t=r.find((t=>t.name===e));return t?{id:t.id,name:e}:void 0})).filter((e=>void 0!==e))):""!==e&&(t=[{id:e,name:r.find((t=>t.id===Number(e))).name}]),o({categories:t})}}),(0,d.createElement)(b.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,d.createElement)(b.ToggleControl,{label:(0,l.__)("Enable featured post","otter-blocks"),checked:t.enableFeaturedPost,onChange:e=>o({enableFeaturedPost:e})}),(0,d.createElement)(b.BaseControl,{label:(0,l.__)("Text alignment","otter-blocks")},(0,d.createElement)(R.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,d.createElement)(b.PanelBody,{title:(0,l.__)("Design & Layout","otter-blocks"),initialOpen:!1},(0,d.createElement)(P,{attributes:t,setAttributes:o})))},N=o(5225),I=o(374);const O={posts:{slugs:[],usedSlugs:[]}};(0,g.registerGenericStore)("otter-store",(()=>{let e=()=>{};const t=O,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 A=o(198),G=e=>{var t;let{post:o,attributes:l,author:a,category:r}=e;return o?(0,d.createElement)("div",{className:_()("o-featured-post",{"has-shadow":l.imageBoxShadow})},l.displayFeaturedImage&&(0,d.createElement)(A.Z,{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,d.createElement)("div",{className:"o-posts-grid-post-body"},l.template.map((e=>{switch(e){case"title":return(0,d.createElement)(I.te,{attributes:l,element:e,post:o});case"meta":return(0,d.createElement)(I.is,{attributes:l,element:e,post:o,author:a,category:r});case"description":return(0,d.createElement)(I.ue,{attributes:l,element:e,post:o});default:return(0,f.applyFilters)("otter.postsBlock.templateLoop","",e,l)}})))):""};const{attributes:$}=r;const{name:Z}=r;(0,a.registerBlockType)(Z,{...r,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:n.postsIcon,keywords:["posts","grid","news"],deprecated:i,edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,d.useEffect)((()=>{const e=(0,N.WX)(a,$);return()=>e(t.id)}),[t.id]);const[r,n]=(0,d.useState)([]),{posts:c,categoriesList:i,authors:k}=(0,g.useSelect)((e=>{const o=t.categories&&0<t.categories.length?t.categories.map((e=>e.id)):[],l=(0,u.pickBy)({categories:o,order:t.order,orderby:t.orderBy,per_page:t.postsToShow,offset:t.offset},(e=>!(0,u.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]),v=e=>{o({style:e})};(0,d.useEffect)((()=>{(async()=>{n(await(0,L.R3)())})()}),[]),(0,d.useEffect)((()=>{(0,g.dispatch)("otter-store").setPostsSlugs(r)}),[r]);const y=m.iv`
|
|
|
|
|
|
|
|
|
126 |
${t.imageWidth&&`--imgWidth: ${t.imageWidth}px;`}
|
127 |
${t.borderRadius&&`--imgBorderRadius: ${t.borderRadius}px;`}
|
128 |
-
--vertAlign: ${(0,
|
129 |
--textAlign: ${t.textAlign};
|
130 |
|
131 |
@media ( min-width: 960px ) {
|
@@ -142,7 +146,7 @@ M=(0,l.sprintf)((0,l.__)("Hide %s","otter-blocks"),y)),(0,d.createElement)("div"
|
|
142 |
${t.customTitleFontSizeMobile&&`--titleTextSize: ${t.customTitleFontSizeMobile}px;`}
|
143 |
${t.customDescriptionFontSizeMobile&&`--descriptionTextSize: ${t.customDescriptionFontSizeMobile}px;`}
|
144 |
}
|
145 |
-
`,_=(0,p.useBlockProps)();return c&&i&&k?0===c.length?(0,m.tZ)(d.Fragment,null,(0,m.tZ)("div",_,(0,m.tZ)(b.Placeholder,null,(0,l.__)("No Posts","otter-blocks"))),i&&t.offset||r.length?(0,m.tZ)(H,{attributes:t,setAttributes:o,changeStyle:v,categoriesList:i}):null):(0,m.tZ)(d.Fragment,null,(0,m.tZ)(V.d,{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:v}),(0,m.tZ)(H,{attributes:t,setAttributes:o,changeStyle:v,categoriesList:i,posts:c}),(0,m.tZ)(h,{attributes:t,setAttributes:o}),(0,m.tZ)("div",(0,s.Z)({},_,{css:y}),(0,m.tZ)(b.Disabled,null,t.enableFeaturedPost&&(0,m.tZ)(G,{attributes:t,post:null==c?void 0:c[0],category:i[0],author:k[0]}),(0,m.tZ)(I.ZP,{attributes:t,posts:c,categoriesList:i,authors:k})))):(0,m.tZ)(d.Fragment,null,(0,m.tZ)("div",_,(0,m.tZ)(b.Placeholder,null,(0,m.tZ)(b.Spinner,null),(0,l.__)("Loading Posts","otter-blocks"))),i&&t.offset?(0,m.tZ)(H,{attributes:t,setAttributes:o,changeStyle:v,categoriesList:i}):null)},save:()=>null})},6951:function(e,t,o){var l=o(5736),a=o(4981),r=o(9818),n=o(340),c=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 & 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 & 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 & 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:i}=(0,r.select)("core/blocks"),s=()=>{const e=setInterval((()=>{if(void 0===i("themeisle-blocks/advanced-columns"))return s();const t=(0,a.parse)(c.kQ);(0,a.registerBlockVariation)("themeisle-blocks/advanced-columns",{name:"themeisle-blocks/section-pricing",title:(0,l.__)("Pricing Section","otter-blocks"),icon:n.pricingIcon,scope:"inserter",attributes:t[0].attributes,innerBlocks:t[0].innerBlocks}),clearInterval(e)}),2e3)};s()},3105:function(e,t,o){var l=o(5736),a=o(4981),r=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"}'),n=o(9307),c=o(4184),i=o.n(c),s=o(5711),d=o(5609),m=o(2175),u=o(5225),b=o(2819),p=e=>{let{attributes:t,setAttributes:o,onHeightChange:a,heightMode:r,setHeightMode:c}=e;return(0,n.createElement)(m.InspectorControls,null,(0,n.createElement)(d.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,n.createElement)(d.TextControl,{label:(0,l.__)("Title","otter-blocks"),value:t.title,onChange:e=>{o({title:e})}}),(0,n.createElement)(d.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,b.clamp)(e,0,100),o({percentage:e}))},min:0,max:100}),(0,n.createElement)(d.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,b.clamp)(e,0,3),o({duration:e}))},min:0,max:3,step:.1}),30<=t.height&&(0,n.createElement)(d.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,n.createElement)(d.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=>{r.isAutomatic&&(r.percentagePosition=e,c({...r})),o({percentagePosition:e})}})),(0,n.createElement)(d.PanelBody,{title:(0,l.__)("Style","otter-blocks"),initialOpen:!1},(0,n.createElement)(d.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("The height of the progress bar.","otter-blocks"),value:t.height,onChange:a,min:0,max:100}),(0,n.createElement)(d.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})},initialPosition:5,min:0,max:35}),(0,n.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Progress Color","otter-blocks"),colorValue:t.barBackgroundColor,onColorChange:e=>{o({barBackgroundColor:e})}}),(0,n.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Title Color","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>{o({titleColor:e})}}),(0,n.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Percentage Color","otter-blocks"),colorValue:t.percentageColor,onColorChange:e=>{o({percentageColor:e})}}),(0,n.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Background Color","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>{o({backgroundColor:e})}})))};const{attributes:g}=r;var h={to:[{type:"block",blocks:["themeisle-blocks/circle-counter"],transform:e=>{const t=(0,b.omit)(e,["titleStyle","percentagePosition","height","borderRadius","barBackgroundColor","percentageColor"]);return(0,a.createBlock)("themeisle-blocks/circle-counter",{...t,progressColor:e.barBackgroundColor,height:(0,b.clamp)(4*e.height,0,240),titleStyle:"default"})}}]};const{name:k}=r;(0,a.registerBlockType)(k,{...r,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:h,edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a,toggleSelection:r}=e;(0,n.useEffect)((()=>{const e=(0,u.WX)(a,g);return()=>e(t.id)}),[t.id]);const[c,b]=(0,n.useState)(!1),[h,k]=(0,n.useState)({isAutomatic:!1,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),v=(0,n.useRef)(null);(0,n.useEffect)((()=>{let e=null;if(v.current)return b(!1),e=setTimeout((()=>b(!0)),1e3*t.duration),v.current.animate({width:`${t.percentage}%`},{duration:1e3*t.duration,easing:"linear",fill:"forwards"}),()=>{clearTimeout(e)}}),[t.percentage,t.duration]);const y=e=>{30>e?(h.isAutomatic||k({isAutomatic:!0,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),o({height:e,titleStyle:"outer",percentagePosition:"append"===t.percentagePosition||"default"===t.percentagePosition?"outer":t.percentagePosition})):(h.isAutomatic&&k({isAutomatic:!1}),o({titleStyle:h.isAutomatic?h.titleStyle:t.titleStyle,percentagePosition:h.isAutomatic?h.percentagePosition:t.percentagePosition,height:e}))},_=s.iv`
|
146 |
--titleColor: ${t.titleColor};
|
147 |
--percentageColor: ${t.percentageColor};
|
148 |
--percentageColorOuter: ${t.percentageColor};
|
@@ -152,32 +156,32 @@ M=(0,l.sprintf)((0,l.__)("Hide %s","otter-blocks"),y)),(0,d.createElement)("div"
|
|
152 |
--borderRadius: ${void 0!==t.borderRadius?t.borderRadius:5}px;
|
153 |
--height: ${void 0!==t.height?t.height:30}px;
|
154 |
--barBackground: ${t.barBackgroundColor};
|
155 |
-
`,f=(0,m.useBlockProps)({id:t.id,className:i()({"has-tooltip":"tooltip"===t.percentagePosition}),css:_});return(0,s.tZ)(n.Fragment,null,(0,s.tZ)(p,{attributes:t,setAttributes:o,onHeightChange:y,heightMode:h,setHeightMode:k}),(0,s.tZ)("div",f,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,s.tZ)(m.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-progress-bar__outer__title",value:t.title,onChange:e=>o({title:e})}),"outer"===t.percentagePosition&&c&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__outer__value"},`${t.percentage}%`)),(0,s.tZ)(d.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)=>{y(parseInt(t.height+a.height,10)),r(!0)},onResizeStart:()=>{r(!1)}},(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,s.tZ)("div",{className:i()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,s.tZ)(m.RichText,{tagName:"span",allowedFormats:[],value:t.title,onChange:e=>o({title:e})})),(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar show",ref:v},"tooltip"===t.percentagePosition&&c&&(0,s.tZ)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip show"},`${t.percentage}%`,(0,s.tZ)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&c&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append show"},`${t.percentage}%`)),"default"===t.percentagePosition&&c&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress"},`${t.percentage}%`)))))},save:e=>{let{attributes:t}=e;const o=m.useBlockProps.save({id:t.id,className:i()({"has-tooltip":"tooltip"===t.percentagePosition}),"data-percent":t.percentage,"data-duration":t.duration});return(0,n.createElement)("div",o,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__outer__title"},t.title),"outer"===t.percentagePosition&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer__value wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,n.createElement)("div",{className:i()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,n.createElement)("span",null,t.title)),(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar"},"tooltip"===t.percentagePosition&&(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip"},(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__number"},t.percentage),(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),"default"===t.percentagePosition&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__number"},`${t.percentage}%`)))}})},7902:function(e,t,o){var l=o(5736),a=o(4981),r=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"}'),n=o(340),c=o(9307),i=o(5711),s=o(4184),d=o.n(s),m=o(1463),u=o.n(m),b=o(2175),p=o(5609),g=o(2819),h=o(3159),k=o(9084);const v=e=>{let{title:t,remove:o,children:a}=e;const[r,n]=(0,c.useState)(!1);return(0,c.createElement)("div",{className:"o-review__inspector_panel_item"},(0,c.createElement)("div",{className:"o-review__inspector_panel_item__header"},(0,c.createElement)(p.Button,{className:"o-review__inspector_panel_item__title",onClick:()=>n(!r)},t),(0,c.createElement)(p.Button,{icon:"no-alt",label:(0,l.__)("Remove","otter-blocks"),showTooltip:!0,className:"o-review__inspector_panel_item__arrow",onClick:o})),r&&(0,c.createElement)("div",{className:"o-review__inspector_panel_item__content"},a))};var y=e=>{var t,o,a,r,n;let{attributes:i,setAttributes:s,getValue:d,productAttributes:m}=e;const u=(e,t)=>{const o=[...i.features];o[e]={...o[e],...t},s({features:o})},y=(e,t)=>{const o=[...i.links];o[e]={...o[e],...t},s({links:o})},_=e=>{let t=[...i.links];t=t.filter(((t,o)=>o!==e)),s({links:t})};return(0,c.createElement)(b.InspectorControls,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Product Details","otter-blocks")},i.product&&(0,c.createElement)(p.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,c.createElement)(p.TextControl,{label:(0,l.__)("Product Name","otter-blocks"),type:"text",placeholder:(0,l.__)("Name of your product…","otter-blocks"),value:(null==m?void 0:m.title)||i.title,disabled:i.product,onChange:e=>s({title:e})}),(0,c.createElement)(p.BaseControl,null,(0,c.createElement)(p.TextControl,{label:(0,l.__)("Currency","otter-blocks"),type:"text",placeholder:(0,l.__)("Currency code, like USD or EUR.","otter-blocks"),value:(null==m?void 0:m.currency)||i.currency,disabled:i.product,onChange:e=>s({currency:e})}),(0,l.__)("Currency code in three digit ISO 4217 code.","otter-blocks")+" ",(0,c.createElement)(p.ExternalLink,{href:"https://en.wikipedia.org/wiki/ISO_4217#Active_codes"},(0,l.__)("List of ISO 4217 codes.","otter-blocks"))),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Price","otter-blocks"),type:"number",value:(null==m?void 0:m.price)||i.price,disabled:i.product,onChange:e=>s({price:""!==e?Number(e):void 0})}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Discounted Price","otter-blocks"),type:"number",value:(null==m?void 0:m.discounted)||i.discounted,disabled:i.product,onChange:e=>s({discounted:""!==e?Number(e):void 0})}),i.image||null!=m&&m.image?(0,c.createElement)(p.BaseControl,{className:"o-review__inspector_image"},(0,c.createElement)("img",{src:(null==m||null===(t=m.image)||void 0===t?void 0:t.url)||i.image.url,alt:(null==m||null===(o=m.image)||void 0===o?void 0:o.url)||i.image.alt}),(0,c.createElement)(p.Button,{isSecondary:!0,onClick:()=>s({image:void 0}),disabled:i.product},(0,l.__)("Remove image","otter-blocks"))):(0,c.createElement)(b.MediaPlaceholder,{labels:{title:(0,l.__)("Product Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:i.image,onSelect:e=>s({image:(0,g.pick)(e,["id","alt","url"])})})),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Product Features","otter-blocks"),initialOpen:!1},0<i.features.length&&i.features.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e.title||(0,l.__)("Feature","otter-blocks"),remove:()=>(e=>{let t=[...i.features];t=t.filter(((t,o)=>o!==e)),s({features:t})})(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("Feature title","otter-blocks"),value:e.title,onChange:e=>u(t,{title:e})}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Rating","otter-blocks"),value:e.rating,onChange:e=>u(t,{rating:Number(e)}),min:1,max:10})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.features];e.push({title:(0,l.__)("Feature","otter-blocks"),rating:9}),s({features:e})}},(0,l.__)("Add Feature","otter-blocks"))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Pros","otter-blocks"),initialOpen:!1},0<i.pros.length&&i.pros.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e||(0,l.__)("Pro","otter-blocks"),remove:()=>(e=>{let t=[...i.pros];t=t.filter(((t,o)=>o!==e)),s({pros:t})})(t)},(0,c.createElement)(p.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=[...i.pros];o[e]=t,s({pros:o})})(t,e)})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.pros];e.push(""),s({pros:e})}},(0,l.__)("Add Item","otter-blocks"))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Cons","otter-blocks"),initialOpen:!1},0<i.cons.length&&i.cons.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e||(0,l.__)("Con","otter-blocks"),remove:()=>(e=>{let t=[...i.cons];t=t.filter(((t,o)=>o!==e)),s({cons:t})})(t)},(0,c.createElement)(p.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=[...i.cons];o[e]=t,s({cons:o})})(t,e)})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.cons];e.push(""),s({cons:e})}},(0,l.__)("Add Item","otter-blocks"))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Links","otter-blocks"),initialOpen:!1},i.product&&(0,c.createElement)(p.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==m||null===(a=m.links)||void 0===a?void 0:a.length)&&(null==m||null===(r=m.links)||void 0===r?void 0:r.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>_(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),disabled:i.product,value:e.label}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,disabled:i.product}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,disabled:i.product}))))),!(0<(null==m||null===(n=m.links)||void 0===n?void 0:n.length))&&(0,c.createElement)(c.Fragment,null,0<i.links.length&&i.links.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>_(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,onChange:e=>y(t,{label:e})}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,onChange:e=>y(t,{href:e})}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,onChange:()=>y(t,{isSponsored:!e.isSponsored})})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.links];e.push({label:(0,l.__)("Buy Now","otter-blocks"),href:""}),s({links:e})}},(0,l.__)("Add Links","otter-blocks")))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.Z,{field:"primaryColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Primary","otter-blocks"),colorValue:d("primaryColor"),onColorChange:e=>s({primaryColor:e})})),(0,c.createElement)(h.Z,{field:"backgroundColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:d("backgroundColor"),onColorChange:e=>s({backgroundColor:e})})),(0,c.createElement)(b.ContrastChecker,{textColor:d("primaryColor"),backgroundColor:d("backgroundColor")}),(0,c.createElement)(h.Z,{field:"textColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Text","otter-blocks"),colorValue:d("textColor"),onColorChange:e=>s({textColor:e})})),(0,c.createElement)(h.Z,{field:"buttonTextColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Button Text","otter-blocks"),colorValue:d("buttonTextColor"),onColorChange:e=>s({buttonTextColor:e})}))),!Boolean(window.themeisleGutenberg.hasPro)&&(0,c.createElement)(p.PanelBody,{title:(0,l.__)("More Features","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.Z,{notice:(0,c.createElement)(p.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,l.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"})))},_=o(5225);const{attributes:f}=r;const{name:w,attributes:C}=r;window.themeisleGutenberg.defaultReviewAttributes=C,(0,a.registerBlockType)(w,{...r,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:n.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,r,s;let{name:m,attributes:g,setAttributes:h,clientId:k,isSelected:v,status:w="isInactive",productAttributes:C={}}=e;(0,c.useEffect)((()=>{const e=(0,_.WX)(k,f);return()=>e(g.id)}),[g.id]);const E=e=>(0,_.Ih)({name:m,field:e,defaultAttributes:f,attributes:g}),x=(g.features.reduce(((e,t)=>e+t.rating),0)/g.features.length).toFixed(1),T=[];for(let e=0;10>e;e++)T.push((0,i.tZ)(n.StarFilled,{key:e,className:d()({low:3>=Math.round(x)&&e<Math.round(x),medium:3<Math.round(x)&&8>Math.round(x)&&e<Math.round(x),high:7<Math.round(x)&&10>=Math.round(x)&&e<Math.round(x)})}));const M=i.iv`
|
156 |
-
--backgroundColor: ${
|
157 |
-
--primaryColor: ${
|
158 |
-
--textColor: ${
|
159 |
-
--buttonTextColor: ${
|
160 |
-
`,
|
161 |
/** translators: %s Rating score. */
|
162 |
-
(0,l.sprintf)((0,l.__)("%f out of 10","otter-blocks"),Math.abs(x)||0))),(0,i.tZ)("span",{className:"o-review__header_price"},((null==C?void 0:C.price)&&(null==C?void 0:C.discounted)||g.price&&g.discounted)&&(0,i.tZ)("del",null,(null!==(t=u()((null==C?void 0:C.currency)||g.currency))&&void 0!==t?t:"$")+""+((null==C?void 0:C.price)||g.price)||0),(g.price||g.discounted||(null==C?void 0:C.price)||(null==C?void 0:C.discounted))&&(null!==(o=u()((null==C?void 0:C.currency)||g.currency))&&void 0!==o?o:"$")+""+(null!=C&&C.discounted||g.discounted?(null==C?void 0:C.discounted)||g.discounted:(null==C?void 0:C.price)||g.price)))),(0,i.tZ)("div",{className:"o-review__left"},(0,i.tZ)("div",{className:d()("o-review__left_details",{"is-single":!g.image||!v&&!g.description})},null!=C&&C.image?(0,i.tZ)("img",{src:null==C||null===(a=C.image)||void 0===a?void 0:a.url,alt:null==C||null===(r=C.image)||void 0===r?void 0:r.alt}):g.image&&(0,i.tZ)("img",{src:g.image.url,alt:g.image.alt}),!v&&!g.description||null!=C&&C.description?(0,i.tZ)(b.RichText.Content,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:null==C?void 0:C.description,tagName:"p"}):(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:g.description,onChange:e=>h({description:e}),tagName:"p"})),(0,i.tZ)("div",{className:"o-review__left_features"},0<g.features.length&&g.features.map(((e,t)=>{const o=[];for(let t=0;10>t;t++)o.push((0,i.tZ)(n.StarFilled,{key:t,className:d()({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.tZ)("div",{className:"o-review__left_feature",key:t},(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Feature title","otter-blocks"),value:e.title,className:"o-review__left_feature_title",onChange:e=>((e,t)=>{const o=[...g.features];o[e]={...o[e],...t},h({features:o})})(t,{title:e}),tagName:"span"}),(0,i.tZ)("div",{className:"o-review__left_feature_ratings"},o,(0,i.tZ)("span",null,e.rating.toFixed(1),"/10")))})))),(0,i.tZ)("div",{className:"o-review__right"},0<g.pros.length&&(0,i.tZ)("div",{className:"o-review__right_pros"},(0,i.tZ)("h4",null,(0,l.__)("Pros","otter-blocks")),g.pros.map(((e,t)=>(0,i.tZ)("div",{className:"o-review__right_pros_item",key:t},n.check,(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Why do you like the product?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...g.pros];o[e]=t,h({pros:o})})(t,e),tagName:"p"}))))),0<g.cons.length&&(0,i.tZ)("div",{className:"o-review__right_cons"},(0,i.tZ)("h4",null,(0,l.__)("Cons","otter-blocks")),g.cons.map(((e,t)=>(0,i.tZ)("div",{className:"o-review__right_cons_item",key:t},n.close,(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("What can be improved?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...g.cons];o[e]=t,h({cons:o})})(t,e),tagName:"p"})))))),(0<(null==C||null===(s=C.links)||void 0===s?void 0:s.length)||0<g.links.length)&&(0,i.tZ)("div",{className:"o-review__footer"},(0,i.tZ)("span",{className:"o-review__footer_label"},(0,l.__)("Buy this product","otter-blocks")),(0,i.tZ)("div",{className:"o-review__footer_buttons"},((null==C?void 0:C.links)||g.links).map(((e,t)=>(0,i.tZ)(b.RichText,{key:t,placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,disabled:0<(null==C?void 0:C.links),onChange:e=>((e,t)=>{const o=[...g.links];o[e]={...o[e],...t},h({links:o})})(t,{label:e}),tagName:"span"})))))))},save:()=>null})},3716:function(e,t,o){var l=o(5736),a=o(4981),r=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"}'),n=o(340),c=o(9307),i=o(80),s=o.n(i),d=o(2819),m=o(2175),u=o(4715);const b={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"}},p=[{attributes:b,supports:{inserter:!1,reusable:!1,html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,r,n,i;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&&(n={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(n={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(i={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${s()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const d={...a,...r,...n,...i};return(0,c.createElement)(l,{className:o,id:t.id,style:d},(0,c.createElement)(m.InnerBlocks.Content,null))}},{attributes:{...b,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}${s()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${s()(e.backgroundGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}%)`}return{...{...(0,d.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,c.createElement)(l,{className:o,id:t.id},(0,c.createElement)(m.InnerBlocks.Content,null))}},{attributes:{...(0,d.omit)(b,["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={},r={},n={},c={},i={};let s={},m={};"unlinked"===e.paddingType?(t.top=(0,d.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,d.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,d.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,d.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,d.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,d.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,d.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,d.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,d.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,d.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,d.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,d.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(a.top=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px",a.bottom=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px",a.left=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px",a.right=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px"):(a.top=(0,d.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",a.bottom=(0,d.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px",a.left=(0,d.isUndefined)(e.marginLeft)?"20px":e.marginLeft+"px",a.right=(0,d.isUndefined)(e.marginRight)?"20px":e.marginRight+"px"),"linked"===e.marginTypeTablet?(r.top=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",r.bottom=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",r.left=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",r.right=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(r.top=(0,d.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",r.bottom=(0,d.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px",r.left=(0,d.isUndefined)(e.marginLeftTablet)?null:e.marginLeftTablet+"px",r.right=(0,d.isUndefined)(e.marginRightTablet)?null:e.marginRightTablet+"px"),"linked"===e.marginTypeMobile?(n.top=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",n.bottom=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",n.left=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",n.right=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(n.top=(0,d.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",n.bottom=(0,d.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px",n.left=(0,d.isUndefined)(e.marginLeftMobile)?null:e.marginLeftMobile+"px",n.right=(0,d.isUndefined)(e.marginRightMobile)?null:e.marginRightMobile+"px"),"unlinked"===e.borderType?(c.top=(0,d.isUndefined)(e.borderTop)?null:e.borderTop+"px",c.bottom=(0,d.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",c.left=(0,d.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",c.right=(0,d.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(c.top=(0,d.isUndefined)(e.border)?null:e.border+"px",c.bottom=(0,d.isUndefined)(e.border)?null:e.border+"px",c.left=(0,d.isUndefined)(e.border)?null:e.border+"px",c.right=(0,d.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(i.top=(0,d.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",i.bottom=(0,d.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",i.left=(0,d.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",i.right=(0,d.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(i.top=(0,d.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.bottom=(0,d.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.left=(0,d.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.right=(0,d.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&&(m={"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,d.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,u.FH)(t)&&{padding:t},...!(0,u.FH)(o)&&{paddingTablet:o},...!(0,u.FH)(l)&&{paddingMobile:l},...!(0,u.FH)(a)&&{margin:a},...!(0,u.FH)(r)&&{marginTablet:r},...!(0,u.FH)(n)&&{marginMobile:n},...!(0,u.FH)(c)&&{border:c},...!(0,u.FH)(i)&&{borderRadius:i},...!(0,u.FH)(s)&&{backgroundImage:s},...!(0,u.FH)(m)&&{backgroundPosition:m}}}},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,d.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,c.createElement)(l,{className:o,id:t.id},(0,c.createElement)(m.InnerBlocks.Content,null))}}];var g=p,h=o(4333),k=o(9818),v=o(7400),y=o(4184),_=o.n(y),f=o(5609),w=o(6993),C=o(5452),E=o(2136),x=o(3159),T=e=>{let{attributes:t,setAttributes:o,getValue:a,parentBlock:r,updateBlockAttributes:n,currentBlockWidth:i,nextBlock:s,nextBlockWidth:b}=e;const p=(0,k.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[g,h]=(0,c.useState)("layout");return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(f.PanelBody,{className:"o-section-header-panel"},(0,c.createElement)(f.Button,{className:_()("header-tab",{"is-selected":"layout"===g}),onClick:()=>h("layout")},(0,c.createElement)("span",null,(0,c.createElement)(f.Dashicon,{icon:"editor-table"}),(0,l.__)("Layout","otter-blocks"))),(0,c.createElement)(f.Button,{className:_()("header-tab",{"is-selected":"style"===g}),onClick:()=>h("style")},(0,c.createElement)("span",null,(0,c.createElement)(f.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,c.createElement)(f.Button,{className:_()("header-tab",{"is-selected":"advanced"===g}),onClick:()=>h("advanced")},(0,c.createElement)("span",null,(0,c.createElement)(f.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"layout"===g&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.PanelBody,{title:(0,l.__)("Spacing","otter-blocks")},1<r.innerBlocks.length&&(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Column Width","otter-blocks"),value:Number(t.columnWidth),onChange:e=>{const t=e||10,l=Number(i.current)-t+Number(b.current);i.current=t,b.current=l,o({columnWidth:t.toFixed(2)}),n(s.current,{columnWidth:l.toFixed(2)})},min:10,max:Number(t.columnWidth)+Number(b.current)-10}),(0,c.createElement)(w.Z,{label:(0,l.__)("Screen Type","otter-blocks"),className:"otter-section-padding-responsive-control"},(0,c.createElement)(x.Z,{field:(()=>{switch(p){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(f.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{switch(p){case"Desktop":return a("padding");case"Tablet":return a("paddingTablet");case"Mobile":return a("paddingMobile");default:return}})(),inputProps:{min:0,max:500},onChange:e=>{switch((0,u.CJ)(e)&&(e=void 0),p){case"Desktop":return o({padding:e});case"Tablet":return o({paddingTablet:e});case"Mobile":return o({paddingMobile:e});default:return}}})),(0,c.createElement)(x.Z,{field:(()=>{switch(p){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(f.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{switch(p){case"Desktop":return a("margin");case"Tablet":return a("marginTablet");case"Mobile":return a("marginMobile");default:return}})(),inputProps:{min:-500,max:500},onChange:e=>{switch((0,u.CJ)(e)&&(e=void 0),p){case"Desktop":return o({margin:e});case"Tablet":return o({marginTablet:e});case"Mobile":return o({marginMobile:e});default:return}}})))))||"style"===g&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.PanelBody,{title:(0,l.__)("Background Settings","otter-blocks")},(0,c.createElement)(C.Z,{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,d.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,c.createElement)(f.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1},(0,c.createElement)(f.__experimentalBoxControl,{label:(0,l.__)("Border Width","otter-blocks"),values:t.border,inputProps:{min:0,max:500},units:[{value:"px",label:"px"}],onChange:e=>{(0,u.CJ)(e)&&(e=void 0),o({border:e})}}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}),(0,c.createElement)(f.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:t.borderRadius,inputProps:{min:0,max:500},units:[{value:"px",label:"px"},{value:"%",label:"%"}],id:"otter-border-raduis-box",onChange:e=>{(0,u.CJ)(e)&&(e=void 0),o({borderRadius:e})}}),(0,c.createElement)(f.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:t.boxShadow,onChange:()=>o({boxShadow:!t.boxShadow})}),t.boxShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,c.createElement)(E.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))))||"advanced"===g&&(0,c.createElement)(f.PanelBody,{title:(0,l.__)("Section Settings","otter-blocks")},(0,c.createElement)(f.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})})))},M=o(5225);const{attributes:S}=r;const{name:B}=r;(0,a.registerBlockType)(B,{...r,title:(0,l.__)("Section Column","otter-blocks"),description:(0,l.__)("A single column within a Section block. Powered by Otter.","otter-blocks"),icon:n.columnIcon,deprecated:g,edit:e=>{let{name:t,attributes:o,setAttributes:l,isSelected:a,clientId:r}=e;const{updateBlockAttributes:n}=(0,k.useDispatch)("core/block-editor"),{adjacentBlockClientId:i,adjacentBlock:u,parentBlock:b,hasInnerBlocks:p,isViewportAvailable:g,isPreviewDesktop:y,isPreviewTablet:_,isPreviewMobile:f}=(0,k.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(r),c=t(r);return{adjacentBlockClientId:c,adjacentBlock:o(c),parentBlock:o(l(r)),hasInnerBlocks:!(!n||!n.innerBlocks.length),isViewportAvailable:!!a,isPreviewDesktop:!!a&&"Desktop"===a(),isPreviewTablet:!!a&&"Tablet"===a(),isPreviewMobile:!!a&&"Mobile"===a()}}),[]),w=(0,h.useViewportMatch)("large",">="),C=(0,h.useViewportMatch)("large","<="),E=(0,h.useViewportMatch)("small",">="),x=(0,h.useViewportMatch)("small","<=");(0,c.useEffect)((()=>{const e=(0,M.WX)(r,S);return()=>e(o.id)}),[o.id]),(0,c.useEffect)((()=>{if(1<b.innerBlocks.length&&!i){const e=b.innerBlocks.findIndex((e=>e.clientId===r)),t=b.innerBlocks[e-1];z.current=t.clientId,P.current=t.attributes.columnWidth}}),[]),(0,c.useEffect)((()=>{if(1<b.innerBlocks.length)if(i)P.current=u.attributes.columnWidth,z.current=i,B.current=o.columnWidth;else{const e=b.innerBlocks.findIndex((e=>e.clientId===r)),t=b.innerBlocks[e-1];P.current=t.attributes.columnWidth,z.current=t.clientId,B.current=o.columnWidth}}),[a,o.columnWidth,b.innerBlocks.length]);const B=(0,c.useRef)(o.columnWidth),z=(0,c.useRef)(i&&i),P=(0,c.useRef)(u&&u.attributes.columnWidth),V=e=>(0,M.Ih)({name:t,field:e,defaultAttributes:S,attributes:o});let R=w&&!C&&E&&!x,L=!w&&!C&&E&&!x,H=!(w||C||E||x);if(g&&!H&&(R=y,L=_,H=f),void 0===o.columnWidth){const e=b.innerBlocks.findIndex((e=>e.clientId===r)),t=b.attributes.columns,o=b.attributes.layout;n(r,{columnWidth:v.Z[t][o][e]})}const N=o.columnsHTMLTag;let I,O,A,G,$;var Z,F,D,W,U,j,q,J,K,Q,X,Y,ee,te,oe,le,ae,re,ne,ce,ie,se,de,me,ue,be,pe;R&&(I={paddingTop:null===(Z=V("padding"))||void 0===Z?void 0:Z.top,paddingRight:null===(F=V("padding"))||void 0===F?void 0:F.right,paddingBottom:null===(D=V("padding"))||void 0===D?void 0:D.bottom,paddingLeft:null===(W=V("padding"))||void 0===W?void 0:W.left,marginTop:null===(U=V("margin"))||void 0===U?void 0:U.top,marginRight:null===(j=V("margin"))||void 0===j?void 0:j.right,marginBottom:null===(q=V("margin"))||void 0===q?void 0:q.bottom,marginLeft:null===(J=V("margin"))||void 0===J?void 0:J.left}),L&&(I={paddingTop:null===(K=V("paddingTablet"))||void 0===K?void 0:K.top,paddingRight:null===(Q=V("paddingTablet"))||void 0===Q?void 0:Q.right,paddingBottom:null===(X=V("paddingTablet"))||void 0===X?void 0:X.bottom,paddingLeft:null===(Y=V("paddingTablet"))||void 0===Y?void 0:Y.left,marginTop:null===(ee=V("marginTablet"))||void 0===ee?void 0:ee.top,marginRight:null===(te=V("marginTablet"))||void 0===te?void 0:te.right,marginBottom:null===(oe=V("marginTablet"))||void 0===oe?void 0:oe.bottom,marginLeft:null===(le=V("marginTablet"))||void 0===le?void 0:le.left}),H&&(I={paddingTop:null===(ae=V("paddingMobile"))||void 0===ae?void 0:ae.top,paddingRight:null===(re=V("paddingMobile"))||void 0===re?void 0:re.right,paddingBottom:null===(ne=V("paddingMobile"))||void 0===ne?void 0:ne.bottom,paddingLeft:null===(ce=V("paddingMobile"))||void 0===ce?void 0:ce.left,marginTop:null===(ie=V("marginMobile"))||void 0===ie?void 0:ie.top,marginRight:null===(se=V("marginMobile"))||void 0===se?void 0:se.right,marginBottom:null===(de=V("marginMobile"))||void 0===de?void 0:de.bottom,marginLeft:null===(me=V("marginMobile"))||void 0===me?void 0:me.left}),"color"===o.backgroundType&&(O={backgroundColor:o.backgroundColor}),"image"===o.backgroundType&&(O={backgroundImage:`url( '${null===(ue=o.backgroundImage)||void 0===ue?void 0:ue.url}' )`,backgroundAttachment:o.backgroundAttachment,backgroundPosition:`${Math.round(100*(null===(be=o.backgroundPosition)||void 0===be?void 0:be.x))}% ${Math.round(100*(null===(pe=o.backgroundPosition)||void 0===pe?void 0:pe.y))}%`,backgroundRepeat:o.backgroundRepeat,backgroundSize:o.backgroundSize}),"gradient"===o.backgroundType&&(O={backgroundImage:o.backgroundGradient}),o.border&&!(0,d.isEmpty)(o.border)&&(A={borderTopWidth:o.border.top,borderRightWidth:o.border.right,borderBottomWidth:o.border.bottom,borderLeftWidth:o.border.left,borderStyle:"solid",borderColor:o.borderColor}),o.borderRadius&&!(0,d.isEmpty)(o.borderRadius)&&(G={borderTopLeftRadius:o.borderRadius.top,borderTopRightRadius:o.borderRadius.right,borderBottomRightRadius:o.borderRadius.bottom,borderBottomLeftRadius:o.borderRadius.left}),!0===o.boxShadow&&($={boxShadow:`${o.boxShadowHorizontal}px ${o.boxShadowVertical}px ${o.boxShadowBlur}px ${o.boxShadowSpread}px ${s()(o.boxShadowColor?o.boxShadowColor:"#000000",o.boxShadowColorOpacity)}`});const ge={flexBasis:`${o.columnWidth}%`,...I,...O,...A,...G,...$},he=(0,m.useBlockProps)({id:o.id,style:ge});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(T,{attributes:o,setAttributes:l,getValue:V,parentBlock:b,updateBlockAttributes:n,currentBlockWidth:B,nextBlock:z,nextBlockWidth:P}),(0,c.createElement)(N,he,(0,c.createElement)(m.InnerBlocks,{templateLock:!1,renderAppender:!p&&m.InnerBlocks.ButtonBlockAppender})))},save:e=>{let{attributes:t}=e;const o=t.columnsHTMLTag,l=m.useBlockProps.save({id:t.id});return(0,c.createElement)(o,l,(0,c.createElement)(m.InnerBlocks.Content,null))}})},1116:function(e,t,o){var l=o(5736),a=o(4981),r=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","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":false},"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":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"}'),n=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(80),m=o.n(d),u=o(2819),b=o(2175),p=o(5609),g=o(4715);const h={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"}},k=e=>{let{type:t,front:o,style:l,fill:a,invert:r,width:n,height:i}=e;return"none"!==l&&(0,c.createElement)("div",{className:s()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&n?{transform:n?`scaleX( ${n/100} )`:""}:{}},"bigTriangle"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,c.createElement)(p.SVG,{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,c.createElement)(p.SVG,{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.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"})))},v=e=>{let{type:t,front:o,style:l,fill:a,invert:r,width:n,height:i}=e;return"none"!==l&&(0,c.createElement)("div",{className:s()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&n?{transform:n?`scaleX( ${n/100} )`:""}:{}},"bigTriangle"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"bottom"===t})},(0,c.createElement)(p.Path,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,c.createElement)(p.SVG,{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"bottom"===t})},(0,c.createElement)(p.Path,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"bottom"===t})},(0,c.createElement)(p.Path,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,c.createElement)(p.SVG,{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.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"})))},y=[{attributes:h,supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,r,n,i,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&&(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&&(i={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(i={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 ${m()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const u={...a,...n,...i,...d,justifyContent:t.horizontalAlign};if("color"===t.backgroundOverlayType&&(r={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(r={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}`,r={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 p={...r,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 g={};t.columnsWidth&&(g={maxWidth:t.columnsWidth+"px"});const h=t.hide?"":`has-desktop-${t.layout}-layout`,v=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,y=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,_=s()(o,`has-${t.columns}-columns`,h,v,y,{"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,c.createElement)(l,{className:_,id:t.id,style:u},(0,c.createElement)("div",{className:"wp-themeisle-block-overlay",style:p}),(0,c.createElement)(k,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap",style:g},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(k,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:h,supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,r,n,i,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&&(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&&(i={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(i={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 ${m()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const u={...a,...n,...i,...d,justifyContent:t.horizontalAlign};if("color"===t.backgroundOverlayType&&(r={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(r={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}`,r={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 p={...r,mixBlendMode:t.backgroundOverlayBlend};let g={};t.columnsWidth&&(g={maxWidth:t.columnsWidth+"px"});const h=t.hide?"":`has-desktop-${t.layout}-layout`,v=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,y=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,_=s()(o,`has-${t.columns}-columns`,h,v,y,{"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,c.createElement)(l,{className:_,id:t.id,style:u},(0,c.createElement)("div",{className:"wp-themeisle-block-overlay",style:p}),(0,c.createElement)(k,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap",style:g},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(k,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...h,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`,r=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,n=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,i=s()(o,`has-${t.columns}-columns`,a,r,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-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:i,id:t.id},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(v,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(v,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...h,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}${m()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${m()(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}${m()(e.backgroundOverlayGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientFirstLocation}%, ${m()(e.backgroundOverlayGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientSecondLocation}%)`}return{...{...(0,u.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`,r=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,n=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,i=s()(o,`has-${t.columns}-columns`,a,r,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-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:i,id:t.id},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(v,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(v,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...(0,u.omit)(h,["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={},r={},n={},c={},i={};let s={},d={},m={},b={};"unlinked"===e.paddingType?(t.top=(0,u.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,u.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,u.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,u.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,u.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,u.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,u.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,u.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,u.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,u.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,u.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,u.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,u.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,u.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,u.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,u.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,u.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,u.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,u.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,u.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,u.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,u.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,u.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,u.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(a.top=(0,u.isUndefined)(e.margin)?"20px":e.margin+"px",a.bottom=(0,u.isUndefined)(e.margin)?"20px":e.margin+"px"):(a.top=(0,u.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",a.bottom=(0,u.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px"),"linked"===e.marginTypeTablet?(r.top=(0,u.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",r.bottom=(0,u.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(r.top=(0,u.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",r.bottom=(0,u.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px"),"linked"===e.marginTypeMobile?(n.top=(0,u.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",n.bottom=(0,u.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(n.top=(0,u.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",n.bottom=(0,u.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px"),"unlinked"===e.borderType?(c.top=(0,u.isUndefined)(e.borderTop)?null:e.borderTop+"px",c.bottom=(0,u.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",c.left=(0,u.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",c.right=(0,u.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(c.top=(0,u.isUndefined)(e.border)?null:e.border+"px",c.bottom=(0,u.isUndefined)(e.border)?null:e.border+"px",c.left=(0,u.isUndefined)(e.border)?null:e.border+"px",c.right=(0,u.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(i.top=(0,u.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",i.bottom=(0,u.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",i.left=(0,u.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",i.right=(0,u.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(i.top=(0,u.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.bottom=(0,u.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.left=(0,u.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.right=(0,u.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 p={"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=p[e.backgroundPosition]),void 0!==e.backgroundOverlayPosition&&(b=p[e.backgroundOverlayPosition]),{...{...(0,u.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,g.FH)(t)&&{padding:t},...!(0,g.FH)(o)&&{paddingTablet:o},...!(0,g.FH)(l)&&{paddingMobile:l},...!(0,g.FH)(a)&&{margin:a},...!(0,g.FH)(r)&&{marginTablet:r},...!(0,g.FH)(n)&&{marginMobile:n},...!(0,g.FH)(c)&&{border:c},...!(0,g.FH)(i)&&{borderRadius:i},...!(0,g.FH)(s)&&{backgroundImage:s},...!(0,g.FH)(m)&&{backgroundPosition:m},...!(0,g.FH)(d)&&{backgroundOverlayImage:d},...!(0,g.FH)(b)&&{backgroundOverlayPosition:b}}}},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,u.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`,r=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,n=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,i=s()(o,`has-${t.columns}-columns`,a,r,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-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:i,id:t.id},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(v,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(v,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}}];var _=y,f=o(4333),w=o(9818),C=o(7400),E=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(b.BlockControls,null,(0,c.createElement)(b.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}))},x=o(9266),T=o(6993),M=o(2136),S=o(1661),B=o(5452),z=o(3159),P=o(8286),V=e=>{let{attributes:t,setAttributes:o,getValue:a,updateColumnsWidth:r,dividerViewType:n,setDividerViewType:i,changeColumnsNumbers:d}=e;const m=(0,w.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[h,k]=(0,c.useState)("layout"),[v,y]=(0,c.useState)(!1);(0,c.useEffect)((()=>{v&&(6>=t.columns?r(t.columns,"equal"):6<t.columns?r(6,"equal"):1>=t.columns&&r(1,"equal"),y(!1))}),[t.columns]);let _=()=>{switch(m){case"Desktop":return t.columnsHeightCustom;case"Tablet":return t.columnsHeightCustomTablet;case"Mobile":return t.columnsHeightCustomMobile;default:return}};_=_();const f="top"==n?t.dividerTopType:"bottom"==n?t.dividerBottomType:void 0,C=(e,t)=>{switch(t){case"Desktop":o({hide:e});break;case"Tablet":o({hideTablet:e});break;case"Mobile":o({hideMobile:e})}},E=(e,t)=>{"Tablet"===t?o({reverseColumnsTablet:e}):"Mobile"===t&&o({reverseColumnsMobile:e})};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(b.InspectorControls,null,(0,c.createElement)(p.PanelBody,{className:"o-section-header-panel"},(0,c.createElement)(p.Button,{className:s()("header-tab",{"is-selected":"layout"===h}),onClick:()=>k("layout")},(0,c.createElement)("span",null,(0,c.createElement)(p.Dashicon,{icon:"editor-table"}),(0,l.__)("Layout","otter-blocks"))),(0,c.createElement)(p.Button,{className:s()("header-tab",{"is-selected":"style"===h}),onClick:()=>k("style")},(0,c.createElement)("span",null,(0,c.createElement)(p.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,c.createElement)(p.Button,{className:s()("header-tab",{"is-selected":"advanced"===h}),onClick:()=>k("advanced")},(0,c.createElement)("span",null,(0,c.createElement)(p.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"layout"===h&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Columns & Layout","otter-blocks")},(0,c.createElement)(p.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"}),d(e),y(!0)},min:1,max:6}),(0,c.createElement)(x.Z,{label:(0,l.__)("Layout","otter-blocks"),columns:t.columns,layout:t.layout,layoutTablet:t.layoutTablet,layoutMobile:t.layoutMobile,onClick:e=>{switch(m){case"Desktop":o({layout:e}),r(t.columns,e);break;case"Tablet":o({layoutTablet:e});break;case"Mobile":o({layoutMobile:e})}}})),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Spacing","otter-blocks"),initialOpen:!1},(0,c.createElement)(T.Z,{label:(0,l.__)("Screen Type","otter-blocks"),className:"otter-section-padding-responsive-control"},(0,c.createElement)(z.Z,{field:(()=>{switch(m){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(p.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{switch(m){case"Desktop":return a("padding");case"Tablet":return a("paddingTablet");case"Mobile":return a("paddingMobile");default:return}})(),inputProps:{min:0,max:500},onChange:e=>{switch((0,g.CJ)(e)&&(e=void 0),m){case"Desktop":return o({padding:e});case"Tablet":return o({paddingTablet:e});case"Mobile":return o({paddingMobile:e});default:return}}})),(0,c.createElement)(z.Z,{field:(()=>{switch(m){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(p.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{switch(m){case"Desktop":return a("margin");case"Tablet":return a("marginTablet");case"Mobile":return a("marginMobile");default:return}})(),inputProps:{min:-500,max:500},sides:["top","bottom"],onChange:e=>{switch((0,g.CJ)(e)&&(e=void 0),"object"==typeof e&&(e=Object.fromEntries(Object.entries(e).filter((e=>{let[t,o]=e;return null!==o})))),m){case"Desktop":return o({margin:e});case"Tablet":return o({marginTablet:e});case"Mobile":return o({marginMobile:e});default:return}}})))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Section Structure","otter-blocks"),initialOpen:!1},(0,c.createElement)(z.Z,{field:"columnsWidth",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(p.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})},min:0,max:2400})),a("columnsWidth")&&(0,c.createElement)(z.Z,{field:"horizontalAlign",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(p.BaseControl,{label:(0,l.__)("Horizontal Align","otter-blocks")},(0,c.createElement)(P.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,c.createElement)(p.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,c.createElement)(T.Z,{label:(0,l.__)("Custom Height","otter-blocks")},(0,c.createElement)(p.RangeControl,{value:_||"",onChange:e=>{switch(m){case"Desktop":o({columnsHeightCustom:e});break;case"Tablet":o({columnsHeightCustomTablet:e});break;case"Mobile":o({columnsHeightCustomMobile:e})}},min:0,max:1e3}))))||"style"===h&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Background Settings","otter-blocks")},(0,c.createElement)(B.Z,{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,u.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,c.createElement)(p.PanelBody,{title:(0,l.__)("Background Overlay","otter-blocks"),initialOpen:!1},(0,c.createElement)(B.Z,{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,u.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,c.createElement)(p.RangeControl,{label:(0,l.__)("Overlay Opacity","otter-blocks"),value:t.backgroundOverlayOpacity,onChange:e=>o({backgroundOverlayOpacity:e}),min:0,max:100}),(0,c.createElement)(M.Z,{label:(0,l.__)("CSS Filters","otter-blocks")},(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.backgroundOverlayFilterBlur,onChange:e=>o({backgroundOverlayFilterBlur:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Brightness","otter-blocks"),value:t.backgroundOverlayFilterBrightness,onChange:e=>o({backgroundOverlayFilterBrightness:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Contrast","otter-blocks"),value:t.backgroundOverlayFilterContrast,onChange:e=>o({backgroundOverlayFilterContrast:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Grayscale","otter-blocks"),value:t.backgroundOverlayFilterGrayscale,onChange:e=>o({backgroundOverlayFilterGrayscale:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Hue","otter-blocks"),value:t.backgroundOverlayFilterHue,onChange:e=>o({backgroundOverlayFilterHue:e}),min:0,max:360}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Saturation","otter-blocks"),value:t.backgroundOverlayFilterSaturate,onChange:e=>o({backgroundOverlayFilterSaturate:e}),min:0,max:100})),(0,c.createElement)(p.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,c.createElement)(p.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1},(0,c.createElement)(p.__experimentalBoxControl,{label:(0,l.__)("Border Width","otter-blocks"),values:t.border,inputProps:{min:0,max:500},units:[{value:"px",label:"px"}],onChange:e=>{(0,g.CJ)(e)&&(e=void 0),o({border:e})}}),(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}),(0,c.createElement)(p.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:t.borderRadius,inputProps:{min:0,max:500},units:[{value:"px",label:"px"},{value:"%",label:"%"}],id:"otter-border-raduis-box",onChange:e=>{(0,g.CJ)(e)&&(e=void 0),o({borderRadius:e})}}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:t.boxShadow,onChange:()=>o({boxShadow:!t.boxShadow})}),t.boxShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,c.createElement)(M.Z,{label:(0,l.__)("Border Shadow","otter-blocks")},(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Shape Divider","otter-blocks"),initialOpen:!1,className:"wp-block-themeisle-shape-divider"},(0,c.createElement)(p.ButtonGroup,null,(0,c.createElement)(p.Button,{isSmall:!0,isSecondary:"top"!==n,isPrimary:"top"===n,onClick:()=>i("top")},(0,l.__)("Top","otter-blocks")),(0,c.createElement)(p.Button,{isSmall:!0,isSecondary:"bottom"!==n,isPrimary:"bottom"===n,onClick:()=>i("bottom")},(0,l.__)("Bottom","otter-blocks"))),(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Type","otter-blocks"),value:f,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"==n?o({dividerTopType:e}):"bottom"==n&&o({dividerBottomType:e})}}),"none"!==f&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:"top"==n?t.dividerTopColor:"bottom"==n?t.dividerBottomColor:void 0,onColorChange:e=>{"top"==n?o({dividerTopColor:e}):"bottom"==n&&o({dividerBottomColor:e})}}),(0,c.createElement)(T.Z,{label:(0,l.__)("Width","otter-blocks")},(0,c.createElement)(p.RangeControl,{value:(()=>{if("top"==n)switch(m){case"Desktop":return t.dividerTopWidth;case"Tablet":return t.dividerTopWidthTablet;case"Mobile":return t.dividerTopWidthMobile}else if("bottom"==n)switch(m){case"Desktop":return t.dividerBottomWidth;case"Tablet":return t.dividerBottomWidthTablet;case"Mobile":return t.dividerBottomWidthMobile}})(),onChange:e=>{if("top"==n)switch(m){case"Desktop":o({dividerTopWidth:e});break;case"Tablet":o({dividerTopWidthTablet:e});break;case"Mobile":o({dividerTopWidthMobile:e})}else if("bottom"==n)switch(m){case"Desktop":o({dividerBottomWidth:e});break;case"Tablet":o({dividerBottomWidthTablet:e});break;case"Mobile":o({dividerBottomWidthMobile:e})}},min:0,max:500})),(0,c.createElement)(T.Z,{label:(0,l.__)("Height","otter-blocks")},(0,c.createElement)(p.RangeControl,{value:(()=>{if("top"==n)switch(m){case"Desktop":return t.dividerTopHeight;case"Tablet":return t.dividerTopHeightTablet;case"Mobile":return t.dividerTopHeightMobile}else if("bottom"==n)switch(m){case"Desktop":return t.dividerBottomHeight;case"Tablet":return t.dividerBottomHeightTablet;case"Mobile":return t.dividerBottomHeightMobile}})(),onChange:e=>{if("top"==n)switch(m){case"Desktop":o({dividerTopHeight:e});break;case"Tablet":o({dividerTopHeightTablet:e});break;case"Mobile":o({dividerTopHeightMobile:e})}else if("bottom"==n)switch(m){case"Desktop":o({dividerBottomHeight:e});break;case"Tablet":o({dividerBottomHeightTablet:e});break;case"Mobile":o({dividerBottomHeightMobile:e})}},min:0,max:500})),"curve"!==f&&"cloud"!==f&&(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Invert Shape Divider","otter-blocks"),checked:(()=>{switch(n){case"top":return t.dividerTopInvert;case"bottom":return t.dividerBottomInvert;default:return}})(),onChange:()=>{switch(n){case"top":o({dividerTopInvert:!t.dividerTopInvert});break;case"bottom":o({dividerBottomInvert:!t.dividerBottomInvert})}}}))))||"advanced"===h&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Responsive","otter-blocks")},(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Hide this section on Desktop devices?","otter-blocks"),checked:t.hide,onChange:e=>C(e,"Desktop")}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Hide this section on Tablet devices?","otter-blocks"),checked:t.hideTablet,onChange:e=>C(e,"Tablet")}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Hide this section on Mobile devices?","otter-blocks"),checked:t.hideMobile,onChange:e=>C(e,"Mobile")}),(0,c.createElement)("hr",null),!t.hideTablet&&"collapsedRows"===t.layoutTablet&&(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Reverse Columns in Tablet devices?","otter-blocks"),checked:t.reverseColumnsTablet,onChange:e=>E(e,"Tablet")}),!t.hideMobile&&"collapsedRows"===t.layoutMobile&&(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Reverse Columns in Mobile devices?","otter-blocks"),checked:t.reverseColumnsMobile,onChange:e=>E(e,"Mobile")})),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Section Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(p.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,c.createElement)(S.Z,{value:t.id,onChange:e=>o({id:e})}))},R=o(2902),L=o(5225),H=o(5581);const{attributes:N}=r;var I=[{name:"themeisle-blocks/section-columns-1",description:(0,l.__)("Single column","otter-blocks"),icon:n.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"],isDefault:!0},{name:"themeisle-blocks/section-columns-equal",description:(0,l.__)("2 equal columns","otter-blocks"),icon:n.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:n.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:n.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:n.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:n.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:n.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:n.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:O}=r;(0,a.registerBlockType)(O,{...r,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:n.columnsIcon,keywords:["advanced columns","layout","section"],deprecated:_,variations:I,edit:e=>{let{attributes:t,setAttributes:o,clientId:r,name:n}=e;(0,c.useEffect)((()=>{const e=(0,L.WX)(r,N);return()=>e(t.id)}),[t.id]);const{updateBlockAttributes:i,replaceInnerBlocks:d}=(0,w.useDispatch)("core/block-editor"),{sectionBlock:g,isViewportAvailable:h,isPreviewDesktop:k,isPreviewTablet:v,isPreviewMobile:y,children:_,variations:x,defaultVariation:T}=(0,w.useSelect)((e=>{var t;const{getBlock:o}=e("core/block-editor"),{getBlockVariations:l,getBlockType:a,getDefaultBlockVariation:c}=e("core/blocks"),{__experimentalGetPreviewDeviceType:i}=!!e("core/edit-post")&&e("core/edit-post");return{sectionBlock:o(r),children:(null===(t=o(r))||void 0===t?void 0:t.innerBlocks)||[],isViewportAvailable:!!i,isPreviewDesktop:!!i&&"Desktop"===i(),isPreviewTablet:!!i&&"Tablet"===i(),isPreviewMobile:!!i&&"Mobile"===i(),blockType:a(n),defaultVariation:c(n,"block"),variations:l(n,"block").filter((e=>{let{isDefault:t}=e;return!t}))}}),[]),{insertBlock:M,removeBlock:S}=(0,w.useDispatch)("core/block-editor");(0,c.useEffect)((()=>{t.columns!==_.length&&o({columns:_.length})}),[_]);const B=e=>(0,L.Ih)({name:n,field:e,defaultAttributes:N,attributes:t}),z=(0,f.useViewportMatch)("large",">="),P=(0,f.useViewportMatch)("large","<="),I=(0,f.useViewportMatch)("small",">="),O=(0,f.useViewportMatch)("small","<=");let A=z&&!P&&I&&!O,G=!z&&!P&&I&&!O,$=!(z||P||I||O);h&&!$&&(A=k,G=v,$=y);const[Z,F]=(0,c.useState)("top"),D=e=>{let{mobile:t,tablet:o,desktop:l}=e;return $&&t||G&&o||A&&l||void 0},W=D({mobile:t.dividerTopWidthMobile,tablet:t.dividerTopWidthTablet,desktop:t.dividerTopWidth}),U=D({mobile:t.dividerBottomWidthMobile,tablet:t.dividerBottomWidthTablet,desktop:t.dividerBottomWidth}),j=D({mobile:t.dividerTopHeightMobile,tablet:t.dividerTopHeightTablet,desktop:t.dividerTopHeight}),q=D({mobile:t.dividerBottomHeightMobile,tablet:t.dividerBottomHeightTablet,desktop:t.dividerBottomHeight}),J=t.columnsHTMLTag;let K,Q,X,Y,ee,te;var oe,le,ae,re,ne,ce,ie,se,de,me,ue,be,pe,ge,he;A&&(K={paddingTop:B("padding")&&B("padding").top,paddingRight:B("padding")&&B("padding").right,paddingBottom:B("padding")&&B("padding").bottom,paddingLeft:B("padding")&&B("padding").left,marginTop:B("margin")&&B("margin").top,marginBottom:B("margin")&&B("margin").bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustom}px`:t.columnsHeight}),G&&(K={paddingTop:null===(oe=B("paddingTablet"))||void 0===oe?void 0:oe.top,paddingRight:null===(le=B("paddingTablet"))||void 0===le?void 0:le.right,paddingBottom:null===(ae=B("paddingTablet"))||void 0===ae?void 0:ae.bottom,paddingLeft:null===(re=B("paddingTablet"))||void 0===re?void 0:re.left,marginTop:null===(ne=B("marginTablet"))||void 0===ne?void 0:ne.top,marginBottom:null===(ce=B("marginTablet"))||void 0===ce?void 0:ce.bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustomTablet}px`:t.columnsHeight}),$&&(K={paddingTop:null===(ie=B("paddingMobile"))||void 0===ie?void 0:ie.top,paddingRight:null===(se=B("paddingMobile"))||void 0===se?void 0:se.right,paddingBottom:null===(de=B("paddingMobile"))||void 0===de?void 0:de.bottom,paddingLeft:null===(me=B("paddingMobile"))||void 0===me?void 0:me.left,marginTop:null===(ue=B("marginMobile"))||void 0===ue?void 0:ue.top,marginBottom:null===(be=B("marginMobile"))||void 0===be?void 0:be.bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustomMobile}px`:t.columnsHeight}),"color"===t.backgroundType&&(Q={backgroundColor:t.backgroundColor}),"image"===t.backgroundType&&(Q={backgroundImage:`url( '${null===(pe=t.backgroundImage)||void 0===pe?void 0:pe.url}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:`${Math.round(100*(null===(ge=t.backgroundPosition)||void 0===ge?void 0:ge.x))}% ${Math.round(100*(null===(he=t.backgroundPosition)||void 0===he?void 0:he.y))}%`,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType&&(Q={backgroundImage:t.backgroundGradient}),t.border&&!(0,u.isEmpty)(t.border)&&(Y={borderTopWidth:t.border.top,borderRightWidth:t.border.right,borderBottomWidth:t.border.bottom,borderLeftWidth:t.border.left,borderStyle:"solid",borderColor:t.borderColor}),t.borderRadius&&!(0,u.isEmpty)(t.borderRadius)&&(ee={borderTopLeftRadius:t.borderRadius.top,borderTopRightRadius:t.borderRadius.right,borderBottomRightRadius:t.borderRadius.bottom,borderBottomLeftRadius:t.borderRadius.left}),!0===t.boxShadow&&(te={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${m()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const ke={...K,...Q,...Y,...ee,...te};var ve,ye,_e;"color"===t.backgroundOverlayType&&(X={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(X={backgroundImage:`url( '${null===(ve=t.backgroundOverlayImage)||void 0===ve?void 0:ve.url}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:`${Math.round(100*(null===(ye=t.backgroundOverlayPosition)||void 0===ye?void 0:ye.x))}% ${Math.round(100*(null===(_e=t.backgroundOverlayPosition)||void 0===_e?void 0:_e.y))}%`,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType&&(X={background:t.backgroundOverlayGradient,opacity:t.backgroundOverlayOpacity/100});const fe={...X,...ee,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 we={};t.columnsWidth&&(we={maxWidth:t.columnsWidth+"px"});const Ce=s()(`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":A},{"has-viewport-tablet":G},{"has-viewport-mobile":$}),[Ee,xe]=(0,c.useState)(!1),Te=t.columns?(0,b.useBlockProps)({id:t.id,className:Ce,style:ke}):(0,b.useBlockProps)();return t.columns?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(E,{attributes:t,setAttributes:o}),(0,c.createElement)(V,{attributes:t,setAttributes:o,getValue:B,updateColumnsWidth:(e,t)=>{g.innerBlocks.map(((o,l)=>{i(o.clientId,{columnWidth:C.Z[e][t][l]})}))},dividerViewType:Z,setDividerViewType:F,changeColumnsNumbers:e=>{t.columns<e?(0,u.times)(e-t.columns,(()=>{const e=(0,a.createBlock)("themeisle-blocks/advanced-column");e&&M(e,(null==_?void 0:_.length)||0,r,!1)})):t.columns>e&&_.slice(e).forEach((e=>S(e.clientId,!1)))}}),(0,c.createElement)(J,Te,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:fe}),(0,c.createElement)(R.Z,{type:"top",style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert,width:W,height:j}),(0,c.createElement)("div",{className:"innerblocks-wrap",style:we},(0,c.createElement)(b.InnerBlocks,{allowedBlocks:["themeisle-blocks/advanced-column"],orientation:"horizontal"})),(0,c.createElement)(R.Z,{type:"bottom",style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert,width:U,height:q}))):(0,c.createElement)("div",Te,(0,c.createElement)(p.Placeholder,{label:(0,l.__)("Section","otter-blocks"),instructions:(0,l.__)("Select a layout to start with, or make one yourself.","otter-blocks"),className:"o-section-layout-picker"},(0,c.createElement)(b.__experimentalBlockVariationPicker,{variations:x,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T;e&&(d(r,(0,a.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0),o(e.attributes))},allowSkip:!0}),(0,c.createElement)(p.Tooltip,{text:(0,l.__)("Open Template Library","otter-blocks")},(0,c.createElement)(p.Button,{isPrimary:!0,className:"wp-block-themeisle-template-library",onClick:()=>xe(!0)},(0,c.createElement)(p.Dashicon,{icon:"category"}),(0,l.__)("Template Library","otter-blocks")),Ee&&(0,c.createElement)(H.Z,{clientId:r,close:()=>xe(!1)}))))},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`,r=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,n=s()(`has-${t.columns}-columns`,l,a,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-vertical-${t.verticalAlign}`),i=b.useBlockProps.save({id:t.id,className:n});return(0,c.createElement)(o,i,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(R.Z,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(R.Z,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}})},9266:function(e,t,o){var l=o(9307),a=o(4184),r=o.n(a),n=o(5736),c=o(5609),i=o(9818),s=o(6993),d=o(340);t.Z=e=>{let{label:t,onClick:o,layout:a,layoutTablet:m,layoutMobile:u,columns:b}=e;const p=(0,i.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]);let g;return"Desktop"===p?g=a:"Tablet"===p?g=m:"Mobile"===p&&(g=u),(0,l.createElement)(s.Z,{label:t,className:"wp-block-themeisle-blocks-advanced-columns-layout-control"},1===b&&(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Single Row","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.colsFull)()))||2===b&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Equal","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.cols2Equal)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("1:2","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===g}),onClick:()=>o("oneTwo")},(0,d.cols12)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("2:1","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===g}),onClick:()=>o("twoOne")},(0,d.cols21)())),("Mobile"==p||"Tablet"==p)&&(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Collapsed Rows","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===g}),onClick:()=>o("collapsedRows")},(0,d.rowsCollapsed)())))||3===b&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Equal","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.cols3Equal)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("1:1:2","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===g}),onClick:()=>o("oneOneTwo")},(0,d.cols112)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("2:1:1","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===g}),onClick:()=>o("twoOneOne")},(0,d.cols211)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("1:2:1","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===g}),onClick:()=>o("oneTwoOne")},(0,d.cols121)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("1:3:1","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===g}),onClick:()=>o("oneThreeOne")},(0,d.cols131)())),("Mobile"==p||"Tablet"==p)&&(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Collapsed Rows","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===g}),onClick:()=>o("collapsedRows")},(0,d.rowsCollapsed)())))||4===b&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Equal","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.cols4Equal)())),("Mobile"==p||"Tablet"==p)&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Two Column Grid","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===g}),onClick:()=>o("twoColumnGrid")},(0,d.colsCollapsed)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Collapsed Rows","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===g}),onClick:()=>o("collapsedRows")},(0,d.rowsCollapsed)()))))||5===b&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Equal","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.cols5Equal)())),("Mobile"==p||"Tablet"==p)&&(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Collapsed Rows","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===g}),onClick:()=>o("collapsedRows")},(0,d.rowsCollapsed)())))||6===b&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Equal","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.cols6Equal)())),("Mobile"==p||"Tablet"==p)&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Two Column Grid","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===g}),onClick:()=>o("twoColumnGrid")},(0,d.cols2Grid)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Three Column Grid","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===g}),onClick:()=>o("threeColumnGrid")},(0,d.cols3Grid)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Collapsed Rows","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===g}),onClick:()=>o("collapsedRows")},(0,d.rowsCollapsed)())))))}},1598:function(e,t,o){o(9307),o(5736),o(5609),o(340),o(5581)},2902:function(e,t,o){var l=o(9307),a=o(4184),r=o.n(a);t.Z=e=>{let{type:t,front:o,style:a,fill:n,invert:c,width:i,height:s}=e;return"none"!==a&&(0,l.createElement)("div",{className:r()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&i?{transform:i?`scaleX( ${i/100} )`:""}:{}},"bigTriangle"===a&&!1===c&&(0,l.createElement)("svg",{id:"bigTriangle",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"bottom"===t})},(0,l.createElement)("path",{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===c&&(0,l.createElement)("svg",{id:"bigTriangle",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},(0,l.createElement)("path",{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===c&&(0,l.createElement)("svg",{id:"rightCurve",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},(0,l.createElement)("path",{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===c&&(0,l.createElement)("svg",{id:"rightCurve",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},(0,l.createElement)("path",{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&(0,l.createElement)("svg",{id:"curve",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},(0,l.createElement)("path",{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===c&&(0,l.createElement)("svg",{id:"slant",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"bottom"===t})},(0,l.createElement)("path",{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===c&&(0,l.createElement)("svg",{id:"slant",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"bottom"===t})},(0,l.createElement)("path",{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&(0,l.createElement)("svg",{id:"cloud",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},(0,l.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"})))}},1700:function(e,t,o){o(1116),o(3716)},7400:function(e,t){t.Z={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"]}}},9866:function(e,t,o){var l=o(5736),a=o(4981),r=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"}'),n=o(340),c=o(9307),i=o(2175),s=o(5609),d=o(8423),m=o.n(d),u=o(4184),b=o.n(u),p=e=>{let{icon:t}=e;return"facebook"===t?(0,c.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 264 512"},(0,c.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,c.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,c.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,c.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},(0,c.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,c.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},(0,c.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,c.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},(0,c.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,c.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,c.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,c.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,c.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"}))},g=e=>{let{attributes:t,setAttributes:o,socialList:a}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(s.ToolbarGroup,null,Object.keys(a).map((e=>{var r;const n=null!==(r=t[e].active)&&void 0!==r?r:t[e];return(0,c.createElement)(s.Tooltip,{key:e
|
163 |
-
/* translators: %s Social Website */,text:(0,l.sprintf)((0,l.__)("Display %s","otter-blocks"),a[e].label)},(0,c.createElement)(s.Button,{className:
|
164 |
/* translators: %s Social Website */,label:(0,l.sprintf)((0,l.__)(" %s Background Color","otter-blocks"),a[o].label)},{value:t[o].textColor,onChange:e=>r(e,o,"textColor")
|
165 |
-
/* 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,c.createElement)(i.ContrastChecker,{backgroundColor:t[e].backgroundColor,textColor:t[e].textColor,key:e}):null}))))},
|
166 |
--iconsGap: ${d?d+"px":""};
|
167 |
--borderRadius: ${u?u+"px":""};
|
168 |
${n}
|
169 |
-
`,p=(0,i.useBlockProps)({id:o.id,css:b});return(0,y.tZ)(c.Fragment,null,(0,y.tZ)(g,{attributes:o,setAttributes:l,socialList:v}),(0,y.tZ)(h,{attributes:o,setAttributes:l,socialList:v}),(0,y.tZ)("div",p,(0,y.tZ)(s.Disabled,null,(0,y.tZ)(m(),{block:"themeisle-blocks/sharing-icons",attributes:o}))))},save:()=>null})},9300:function(e,t,o){var l=o(5736),a=o(4981),r=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"}'),n=o(9307),c=o(4184),i=o.n(c),s=o(2819),d=o(2175),m=o(5609);const u=e=>{let{attributes:t}=e;return(0,n.createElement)(n.Fragment,null,!t.hideArrows&&(0,n.createElement)("div",{className:"glide__arrows","data-glide-el":"controls"},(0,n.createElement)("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<"},(0,n.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},(0,n.createElement)(m.Path,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"}))),(0,n.createElement)("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">"},(0,n.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},(0,n.createElement)(m.Path,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"})))))},b=e=>{let{attributes:t}=e;return(0,n.createElement)(n.Fragment,null,!t.hideBullets&&(0,n.createElement)("div",{className:"glide__bullets","data-glide-el":"controls[nav]"},t.images.map(((e,t)=>(0,n.createElement)("button",{key:e.id,className:"glide__bullet","data-glide-dir":`=${t}`})))))};var p=e=>{let{attributes:t}=e;return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(u,{attributes:t}),(0,n.createElement)(b,{attributes:t}))};const g={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}},h=[{attributes:{...(0,s.omit)(g,["align"])},supports:{align:["wide","full"]},save:e=>{let{attributes:t,className:o}=e;return(0,n.createElement)("div",{id:t.id,className:i()("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,n.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,n.createElement)("div",{className:"glide__slides",style:{height:`${t.height}px`}},t.images.map((e=>(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},(0,n.createElement)("figure",null,(0,n.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}),!d.RichText.isEmpty(e.caption)&&(0,n.createElement)(d.RichText.Content,{tagName:"figcaption",value:e.caption})))))),(0,n.createElement)(p,{attributes:t})))}},{attributes:{...(0,s.omit)(g,["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,n.createElement)("div",{id:t.id,className:i()("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,n.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,n.createElement)("div",{className:"glide__slides"},t.images.map((e=>(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},(0,n.createElement)("figure",null,(0,n.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}),!d.RichText.isEmpty(e.caption)&&(0,n.createElement)(d.RichText.Content,{tagName:"figcaption",value:e.caption})))))),(0,n.createElement)(p,{attributes:t})))}}];var k=h;const v={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t}=e[0];t=(0,s.every)(e,["align",t])?t:void 0;const o=(0,s.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=>{let{images:t,align:o}=e;return(0,a.createBlock)("themeisle-blocks/slider",{images:t.map((e=>{let{id:t,url:o,alt:l,caption:a}=e;return{id:t,url:o,alt:l,caption:a}})),align:o})}}],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:r,caption:n}=e;return(0,a.createBlock)("core/image",{id:t,url:l,alt:r,caption:n,align:o})})):(0,a.createBlock)("core/image",{align:o})}},{type:"block",blocks:["core/gallery"],transform:e=>{let{images:t,align:o}=e;return(0,a.createBlock)("core/gallery",{images:t.map((e=>{let{id:t,url:o,alt:l,caption:a}=e;return{id:t,url:o,alt:l,caption:a}})),align:o})}}]};var y=v,_=e=>{let{labels:t,icon:o,isAppender:l=!1,value:a={},onSelectImages:r}=e;const c=(0,s.debounce)(r,250);return(0,n.createElement)(d.MediaPlaceholder,{labels:t,icon:o,accept:"image/*",allowedTypes:["image"],isAppender:l,className:"wp-block-themeisle-blocks-slider-uploader",value:a,onSelect:c,multiple:!0})},f=o(2285),w=e=>{let{attributes:t,setAttributes:o,slider:a,changePerView:r,onSelectImages:c}=e;return(0,n.createElement)(d.InspectorControls,null,(0,n.createElement)(m.PanelBody,{title:(0,l.__)("Images","otter-blocks"),initialOpen:!1},(0,n.createElement)(f.Z,{attributes:t,onSelectImages:c})),(0,n.createElement)(m.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},t.images.length&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(m.RangeControl,{label:(0,l.__)("Slides Per Page","otter-blocks"),help:(0,l.__)("A number of visible slides.","otter-blocks"),value:t.perView,onChange:r,min:1,max:(0,s.max)([Math.round(t.images.length/2),1])}),1<t.perView&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(m.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,n.createElement)(m.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,n.createElement)(m.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)})},min:100,max:1400}),(0,n.createElement)(m.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,n.createElement)(m.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,n.createElement)(m.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,n.createElement)(m.ToggleControl,{label:(0,l.__)("Hide Bullets","otter-blocks"),help:(0,l.__)("Hide navigation bullets.","otter-blocks"),checked:t.hideBullets,onChange:e=>{o({hideBullets:e})}}))))},C=o(1984),E=o(4310),x=o(5024),T=o(7231),M=e=>{let{images:t,image:o,index:a,isFirstItem:r,isLastItem:c,isSelected:u,setAttributes:b,setSelectedImage:p}=e;const g=(e,o)=>{const l=[...t];l.splice(o,1,t[e]),l.splice(e,1,t[o]),p(o),b({images:l})};return(0,n.createElement)("div",{className:i()("wp-block-themeisle-blocks-slider-item-wrapper glide__slide",{"is-selected":u}),tabIndex:"0",onClick:()=>p(o.id),onFocus:()=>p(o.id)},(0,n.createElement)("figure",null,(0,n.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}),u&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-move-menu"},(0,n.createElement)(m.Button,{icon:(0,n.createElement)(C.Z,{icon:E.Z}),label:(0,l.__)("Move image backward","otter-blocks"),showTooltip:!0,onClick:r?void 0:()=>{0!==a&&g(a,a-1)},className:"wp-block-themeisle-blocks-slider-item-move-backward","aria-disabled":r,disabled:!u}),(0,n.createElement)(m.Button,{icon:(0,n.createElement)(C.Z,{icon:x.Z}),label:(0,l.__)("Move image forward","otter-blocks"),showTooltip:!0,onClick:c?void 0:()=>{a!==t.length-1&&g(a,a+1)},className:"wp-block-themeisle-blocks-slider-item-move-forward","aria-disabled":c,disabled:!u})),(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-delete-menu"},(0,n.createElement)(m.Button,{icon:(0,n.createElement)(C.Z,{icon:T.Z}),label:(0,l.__)("Remove image","otter-blocks"),showTooltip:!0,onClick:()=>{const e=(0,s.filter)(t,((e,t)=>a!==t));p(null),b({images:e})},className:"wp-block-themeisle-blocks-slider-item-delete"}))),(u||!d.RichText.isEmpty(o.caption))&&(0,n.createElement)(d.RichText,{tagName:"figcaption",placeholder:u?(0,l.__)("Write caption…","otter-blocks"):null,value:o.caption,onChange:e=>{const o=[...t];o[a].caption=e,b({images:o})},multiline:!1})))},S=o(5225);const{attributes:B}=r,z={root:null,rootMargin:"0px",threshold:[0]};const{name:P}=r;(0,a.registerBlockType)(P,{...r,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:k,transforms:y,edit:e=>{let{attributes:t,setAttributes:o,clientId:a,isSelected:r,toggleSelection:c}=e;const u=(0,n.useRef)(null);(0,n.useEffect)((()=>{const e=(0,S.WX)(a,B);return()=>{e(t.id)}}),[t.id]),(0,n.useEffect)((()=>{const e=document.querySelector(`#${t.id}`);var o;if(e)return u.current=new IntersectionObserver((o=>{o.forEach((o=>{var l;o.isIntersecting&&0<=o.intersectionRect.height&&t.images.length&&(k(),null===(l=u.current)||void 0===l||l.unobserve(e))}))}),z),null===(o=u.current)||void 0===o||o.observe(e),()=>{t.images.length&&null!==b.current&&b.current.destroy()}}),[t.id]),(0,n.useEffect)((()=>{t.images.length&&(h(null),null!==b.current&&b.current.destroy(),k())}),[r,t.align]),(0,n.useEffect)((()=>{t.images.length&&t.perView>t.images.length&&y((0,s.max)([Math.round(t.images.length/2),1]))}),[t.images]);const b=(0,n.useRef)(null),[g,h]=(0,n.useState)(null),k=()=>{b.current=new window.Glide(`#${t.id}`,{type:"carousel",keyboard:!1,perView:t.perView,gap:t.gap,peek:t.peek,autoplay:!1,breakpoints:{800:{perView:1,peek:0,gap:0}}}).mount()},v=e=>{o({images:e.map((e=>({id:e.id,url:e.url,alt:e.alt,caption:e.caption})))}),null!==b.current&&b.current.destroy(),k()},y=e=>{o({perView:Number(e)}),b.current.update({perView:Number(e)}),1===e&&(o({gap:0,peek:0}),b.current.update({gap:0,peek:0}))},f=(0,d.useBlockProps)();return Array.isArray(t.images)&&!t.images.length?(0,n.createElement)("div",f,(0,n.createElement)(_,{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:v})):(0,n.createElement)(n.Fragment,null,(0,n.createElement)(w,{attributes:t,setAttributes:o,slider:b.current,changePerView:y,onSelectImages:v}),(0,n.createElement)("div",f,(0,n.createElement)(m.ResizableBox,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{c(!1)},onResizeStop:(e,l,a,r)=>{o({height:parseInt(t.height+r.height,10)}),c(!0)},className:i()("wp-block-themeisle-blocks-slider-resizer",{"is-focused":r})},(0,n.createElement)("div",{id:t.id,className:"glide"},(0,n.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,n.createElement)("div",{className:"glide__slides",style:{height:`${t.height}px`}},t.images.map(((e,l)=>(0,n.createElement)(M,{key:e.url,images:t.images,image:e,index:l,isFirstItem:0===l,isLastItem:l+1===t.images.length,isSelected:r&&e.id===g,setAttributes:o,setSelectedImage:h})))),(0,n.createElement)(p,{attributes:t})))),r&&(0,n.createElement)(_,{labels:{title:"",instructions:""},icon:null,onSelectImages:v,isAppender:!0,value:t.images})))},save:e=>{let{attributes:t}=e;const o=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay,l=d.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,n.createElement)("div",l,(0,n.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,n.createElement)("div",{className:"glide__slides"},t.images.map((e=>(0,n.createElement)("div",{key:e.id,className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},(0,n.createElement)("figure",null,(0,n.createElement)("img",{className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!d.RichText.isEmpty(e.caption)&&(0,n.createElement)(d.RichText.Content,{tagName:"figcaption",value:e.caption})))))),(0,n.createElement)(b,{attributes:t})))}})},4925:function(e,t,o){o(8493),o(1131),o(1256)},8493:function(e,t,o){var l=o(5736),a=o(4981),r=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"}'),n=o(340),c=o(9307),i=o(2175);const s=[["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:d}=r;(0,a.registerBlockType)(d,{...r,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:n.pricingIcon,keywords:["pricing","table","money"],edit:()=>{const e=(0,i.useBlockProps)();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks,{template:s}))},save:()=>{const e=i.useBlockProps.save();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks.Content,null))}})},1131:function(e,t,o){var l=o(5736),a=o(4981),r=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"}'),n=o(340),c=o(9307),i=o(2175);const s=[["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:d}=r;(0,a.registerBlockType)(d,{...r,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:n.servicesIcon,keywords:["services","icon","features"],edit:()=>{const e=(0,i.useBlockProps)();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks,{template:s}))},save:()=>{const e=i.useBlockProps.save();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks.Content,null))}})},1256:function(e,t,o){var l=o(5736),a=o(4981),r=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"}'),n=o(340),c=o(9307),i=o(2175);const s=[["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:d}=r;(0,a.registerBlockType)(d,{...r,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:n.testimonialsIcon,keywords:["testimonials","quotes","business"],edit:()=>{const e=(0,i.useBlockProps)();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks,{template:s}))},save:()=>{const e=i.useBlockProps.save();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks.Content,null))}})},9845:function(e,t,o){var l=o(2553),a=o(5736),r=o(4981),n=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"}'),c=o(9307),i=o(5117),s=o(4184),d=o.n(s),m=o(5711),u=o(2175),b=o(5609),p=o(9818),g=o(1286);const h=(0,g.W6)((()=>(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__drag",tabIndex:"0"},(0,c.createElement)("span",null)))),k=(0,g.W8)((e=>{let{tab:t,deleteTab:o,selectTab:l}=e;return(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-inspector-tab-option"},(0,c.createElement)(h,null),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__name"},t.attributes.title||(0,a.__)("Untitled Tab","otter-blocks")),(0,c.createElement)(b.Button,{icon:"edit",label:(0,a.__)("Edit Tab","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__actions",onClick:()=>l(t.clientId)}),(0,c.createElement)(b.Button,{icon:"no-alt",label:(0,a.__)("Remove Tab","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__actions",onClick:()=>o(t.clientId)}))}));var v=e=>{var t;let{attributes:o,setAttributes:l,children:r,deleteTab:n,selectTab:i,addTab:s,moveTab:d}=e;const[m,h]=(0,c.useState)(null===(t=r.find((e=>!0===e.attributes.defaultOpen)))||void 0===t?void 0:t.clientId),{updateBlockAttributes:v}=(0,p.useDispatch)("core/block-editor"),{getBlock:y}=(0,p.useSelect)("core/block-editor");(0,c.useEffect)((()=>{var e;h(null===(e=r.find((e=>!0===e.attributes.defaultOpen)))||void 0===e?void 0:e.clientId)}),[r]);const _=e=>{!0===y(e).attributes.defaultOpen&&v(r[0].clientId,{defaultOpen:!0}),n(e)},f=(0,g.JN)((e=>{let{items:t}=e;return(0,c.createElement)("div",null,t.map(((e,t)=>(0,c.createElement)(k,{key:e.clientId,tab:e,index:t,deleteTab:_,selectTab:i}))))})),w=r.map(((e,t)=>({label:`${t+1}. ${e.attributes.title||(0,a.__)("Untitled Tab","otter-blocks")}`,value:e.clientId})));return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(b.PanelBody,{title:(0,a.__)("Tabs Management","otter-blocks")},(0,c.createElement)("p",null,(0,a.__)("Press and hold to use drag and drop to sort the tabs","otter-blocks")),0<(null==r?void 0:r.length)&&(0,c.createElement)(f,{items:r,onSortEnd:e=>{let{oldIndex:t,newIndex:o}=e;d(r[t].clientId,o)},useDragHandle:!0,axis:"y",lockAxis:"y"}),(0,c.createElement)(b.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-tabs-inspector-add-tab",onClick:s},(0,a.__)("Add Tab","otter-blocks")),(0,c.createElement)(b.SelectControl,{label:(0,a.__)("Initial Tab","otter-blocks"),value:m,options:w,onChange:e=>{r.forEach(((e,t)=>{v(r[t].clientId,{defaultOpen:!1})})),v(e,{defaultOpen:!0}),h(e)}})),(0,c.createElement)(b.PanelBody,{title:(0,a.__)("Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.RangeControl,{label:(0,a.__)("Border Width","otter-blocks"),value:o.borderWidth,onChange:e=>{l({borderWidth:Number(e)})},min:0,max:5})),(0,c.createElement)(u.PanelColorSettings,{title:(0,a.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:o.activeTitleColor,onChange:e=>{l({activeTitleColor:e})},label:(0,a.__)("Active Title Color","otter-blocks")},{value:o.tabColor,onChange:e=>{l({tabColor:e})},label:(0,a.__)("Background","otter-blocks")},{value:o.borderColor,onChange:e=>{l({borderColor:e})},label:(0,a.__)("Border Color","otter-blocks")}]},(0,c.createElement)(u.ContrastChecker,{textColor:o.activeTitleColor,backgroundColor:o.tabColor})))},y=o(4688),_=o(4310),f=o(5024),w=e=>{let{children:t,selectedTab:o,moveTab:l,selectTab:r}=e;const n=null==t?void 0:t.findIndex((e=>{let{clientId:t}=e;return t===o})),i=e=>{switch(e){case"left":l(o,n-1);break;case"right":l(o,n+1)}};return(0,c.createElement)(u.BlockControls,null,(0,c.createElement)(b.ToolbarGroup,{label:(0,a.__)("Edit","otter-blocks")},(0,c.createElement)(b.ToolbarButton,{label:(0,a.__)("Edit tab","otter-blocks"),icon:y.Z,iconSize:24,className:"wp-block-themeisle-blocks-tabs-toolbar-edit",onClick:()=>r(o)})),(0,c.createElement)(b.ToolbarGroup,{label:(0,a.__)("Movement","otter-blocks")},(0,c.createElement)(b.ToolbarButton,{label:(0,a.__)("Move tab left","otter-blocks"),icon:_.Z,iconSize:24,disabled:0===n,className:"wp-block-themeisle-blocks-tabs-toolbar-mover",onClick:()=>i("left")}),(0,c.createElement)(b.ToolbarButton,{label:(0,a.__)("Move tab right","otter-blocks"),icon:f.Z,iconSize:24,disabled:(null==t?void 0:t.length)-1===n,className:"wp-block-themeisle-blocks-tabs-toolbar-mover",onClick:()=>i("right")})))},C=o(5225);const{attributes:E}=n;const{name:x}=n;(0,r.registerBlockType)(x,{...n,title:(0,a.__)("Tabs","otter-blocks"),description:(0,a.__)("Organize and allow navigation between groups of content with Tabs block. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["media","tabs","select"],edit:e=>{var t;let{attributes:o,setAttributes:l,isSelected:n,clientId:s}=e;(0,c.useEffect)((()=>{const e=(0,C.WX)(s,E);return()=>e(o.id)}),[o.id]);const g=(0,c.useRef)(null),h=(0,p.useSelect)((e=>{const{getBlock:t}=e("core/block-editor");return t(s).innerBlocks}),[]),[k,y]=(0,c.useState)(null===(t=h.find((e=>!0===e.attributes.defaultOpen)))||void 0===t?void 0:t.clientId),{insertBlock:_,removeBlock:f,selectBlock:x,moveBlockToPosition:T,updateBlockAttributes:M}=(0,p.useDispatch)("core/block-editor"),S=e=>{g.current&&(h.forEach((t=>{const o=g.current.querySelector(`#block-${t.clientId} .wp-block-themeisle-blocks-tabs-item__content`);null==o||o.classList.toggle("active",t.clientId===e)})),y(e))};(0,c.useEffect)((()=>{S(k)}),[]),(0,c.useEffect)((()=>{0<(null==h?void 0:h.length)&&(void 0!==k&&null!=h&&h.some((e=>e.clientId===k))||S(h[0].clientId))}),[k,h]);const B=e=>{if(0<(null==h?void 0:h.length)){const t=h.find((t=>t.clientId===e));x(t.clientId)}},z=(e,t)=>{var o;const l=null===(o=h.find((t=>t.clientId===e)))||void 0===o?void 0:o.clientId;l&&T(l,s,s,t)},P=()=>{const e=(0,r.createBlock)("themeisle-blocks/tabs-item");_(e,(null==h?void 0:h.length)||0,s,!1)},V=m.iv`
|
1 |
+
!function(){"use strict";var e,t,o,l={4966:function(e,t,o){var l=o(5736),a=o(4981),r=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"}'),n=o(340),c=o(9307),i=o(2175),s=o(5609),d=window.wp.serverSideRender,m=o.n(d);const{name:u}=r;(0,a.registerBlockType)(u,{...r,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:n.authorIcon,keywords:["about","author","profile"],edit:()=>(0,c.createElement)("div",(0,i.useBlockProps)(),(0,c.createElement)(s.Disabled,null,(0,c.createElement)(m(),{block:"themeisle-blocks/about-author"}))),save:()=>null});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(5711),k=o(3159),v=e=>{let{attributes:t,setAttributes:o,getValue:a}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.Z,{field:"titleColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Title","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>o({titleColor:e})})),(0,c.createElement)(k.Z,{field:"titleBackground",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Title Background","otter-blocks"),colorValue:t.titleBackground,onColorChange:e=>o({titleBackground:e})})),(0,c.createElement)(i.ContrastChecker,{textColor:a("titleColor"),backgroundColor:a("titleBackground")}),(0,c.createElement)(k.Z,{field:"contentBackground",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Content Background","otter-blocks"),colorValue:t.contentBackground,onColorChange:e=>o({contentBackground:e})})),(0,c.createElement)(k.Z,{field:"borderColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(i.__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:n.buttonsIcon,keywords:["accordions","collapse","faq"],edit:e=>{let{name:t,attributes:o,setAttributes:l,clientId:a,isSelected:r}=e;(0,c.useEffect)((()=>{const e=(0,y.WX)(a,_);return()=>e(o.id)}),[o.id]);const n=e=>(0,y.Ih)({name:t,field:e,defaultAttributes:_,attributes:o}),s=h.iv`
|
2 |
--titleColor: ${n("titleColor")};
|
3 |
--titleBackground: ${n("titleBackground")};
|
4 |
--borderColor: ${n("borderColor")};
|
5 |
--contentBackground: ${n("contentBackground")};
|
6 |
+
`,d=(0,i.useBlockProps)({id:o.id,className:g()({[`is-${o.gap}-gap`]:o.gap}),css:s});return(0,h.tZ)(c.Fragment,null,(0,h.tZ)(v,{attributes:o,setAttributes:l,getValue:n}),(0,h.tZ)("div",d,(0,h.tZ)(i.InnerBlocks,{allowedBlocks:["themeisle-blocks/accordion-item"],template:[["themeisle-blocks/accordion-item"]],renderAppender:r?i.InnerBlocks.ButtonBlockAppender:""})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({id:t.id,className:g()({[`is-${t.gap}-gap`]:t.gap})});return(0,c.createElement)("div",o,(0,c.createElement)(i.InnerBlocks.Content,null))}});var C=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),E=o(3904),x=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Initially Open","otter-blocks"),checked:t.initialOpen,onChange:e=>o({initialOpen:e})})))};const{name:T}=C;(0,a.registerBlockType)(T,{...C,title:(0,l.__)("Accordion Item","otter-blocks"),description:(0,l.__)("Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","otter-blocks"),icon:n.buttonsIcon,keywords:["accordions","collapse","faq"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[a,r]=(0,c.useState)(!0);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(x,{attributes:t,setAttributes:o}),(0,c.createElement)("div",(0,i.useBlockProps)(),(0,c.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")?r(!0):r(!a)}},(0,c.createElement)(i.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.title,onChange:e=>{a||r(!0),o({title:e})},tagName:"span"}),(0,c.createElement)(s.Icon,{icon:a?w.Z:E.Z,size:24})),a&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,c.createElement)(i.InnerBlocks,{template:[["core/paragraph"]]}))))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({open:!!t.initialOpen});return(0,c.createElement)("details",o,(0,c.createElement)("summary",{className:"wp-block-themeisle-blocks-accordion-item__title"},(0,c.createElement)(i.RichText.Content,{tagName:"div",value:t.title})),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,c.createElement)(i.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 r=()=>a((0,B.toggleFormat)(o,{type:z}));return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(i.RichTextShortcut,{type:"primary",character:"h",onUse:r}),(0,c.createElement)(i.RichTextToolbarButton,{icon:M.Z,title:(0,l.__)("Highlight","otter-blocks"),onClick:r,isActive:t,shortcutType:"access",shortcutCharacter:"h"}))}});var P=o(80),V=o.n(P);const R=[{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 ${V()(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,c.createElement)(i.RichText.Content,{tagName:o.tag,value:o.content,id:o.id,className:g()(o.id,l),style:a})}}];var L=R,H={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),I=o(5988),O=o(2819),A=o(4333),F=o(9818),G=o(9977),$=e=>{let{attributes:t,setAttributes:o}=e;const a=e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},r=e=>{switch(e){case"h1":return(0,c.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,c.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1"));case"h2":return(0,c.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,c.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2"));case"h3":return(0,c.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,c.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3"));case"h4":return(0,c.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,c.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4"));case"h5":return(0,c.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,c.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5"));case"h6":return(0,c.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,c.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6"));case"div":return(0,c.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,c.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV"));case"p":return(0,c.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,c.createElement)("text",{x:"0",y:"15"},"P"));case"span":return(0,c.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,c.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN"));default:return(0,c.createElement)(s.SVG,{style:{width:"25px",height:"20px"}},(0,c.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DEFAULT"))}},n=e=>{o({tag:e})};return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(s.DropdownMenu,{icon:r(t.tag),label:(0,l.__)("Select tag","otter-blocks"),className:"components-toolbar",controls:[{title:(0,l.__)("Heading","otter-blocks")+" 1",icon:r("h1"),onClick:()=>n("h1")},{title:(0,l.__)("Heading","otter-blocks")+" 2",icon:r("h2"),onClick:()=>n("h2")},{title:(0,l.__)("Heading","otter-blocks")+" 3",icon:r("h3"),onClick:()=>n("h3")},{title:(0,l.__)("Heading","otter-blocks")+" 4",icon:r("h4"),onClick:()=>n("h4")},{title:(0,l.__)("Heading","otter-blocks")+" 5",icon:r("h5"),onClick:()=>n("h5")},{title:(0,l.__)("Heading","otter-blocks")+" 6",icon:r("h6"),onClick:()=>n("h6")},{title:(0,l.__)("Division","otter-blocks"),icon:r("div"),onClick:()=>n("div")},{title:(0,l.__)("Paragraph","otter-blocks"),icon:r("p"),onClick:()=>n("p")},{title:(0,l.__)("Span Tag","otter-blocks"),icon:r("span"),onClick:()=>n("span")}]}),(0,c.createElement)(s.ToolbarGroup,null,(0,c.createElement)(s.Dropdown,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:e=>{let{isOpen:t,onToggle:o}=e;return(0,c.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,c.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(G.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,c.createElement)(s.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,step:.1,max:3}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),min:-50,max:100}))})))},Z=o(2136),D=o(6993),W=o(2372);const U=e=>{let{value:t,onChange:o}=e;const a=(0,A.useInstanceId)(U);(0,c.useEffect)((()=>m(t)),[t]);const[r,n]=(0,c.useState)(!1),[d,m]=(0,c.useState)(null),u=void 0!==window.themeisleGutenberg.blockIDs&&t!==d&&window.themeisleGutenberg.blockIDs.includes(d);return(0,c.createElement)(i.InspectorAdvancedControls,null,(0,c.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,c.createElement)("div",{className:"o-html-anchor-control"},(0,c.createElement)("input",{type:"text",className:"o-html-anchor-control-input",readOnly:!r&&"readonly",value:r?d:t,onChange:e=>m(e.target.value),onClick:e=>e.target.select()}),(0,c.createElement)(s.Button,{icon:r?"yes":"edit",label:r?(0,l.__)("Save","otter-blocks"):(0,l.__)("Edit","otter-blocks"),showTooltip:!0,disabled:!!u,className:g()("o-html-anchor-control-button",{"is-saved":!r}),onClick:()=>{if(r&&t!==d){const e=window.themeisleGutenberg.blockIDs.findIndex((e=>e===t));window.themeisleGutenberg.blockIDs[e]=d,o(d)}n(!r)}}))),u&&(0,c.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 j=U,q=e=>{let{values:t,setAttributes:o}=e;return(0,c.createElement)("div",{className:"o-clear-button"},(0,c.createElement)(s.Button,{isSmall:!0,isSecondary:!0,onClick:()=>{const e=((0,O.isArray)(t)?t:[t]).map((e=>{if((0,O.isString)(e))return e;if((0,O.isObject)(e)){const t=Object.keys(e);if(1===t.length)return e[t[0]]?t[0]:void 0}})).filter(O.isString).reduce(((e,t)=>(e[t]=void 0,e)),{});o(e)}},(0,l.__)("Clear","otter-blocks")))},K=e=>{let{attributes:t,setAttributes:o}=e;const a=(0,F.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[r,n]=(0,c.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,c.createElement)(c.Fragment,null,(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{className:"o-heading-header-panel"},(0,c.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"style"===r}),onClick:()=>n("style")},(0,c.createElement)("span",null,(0,c.createElement)(s.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,c.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"advanced"===r}),onClick:()=>n("advanced")},(0,c.createElement)("span",null,(0,c.createElement)(s.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"style"===r&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("General Settings","otter-blocks"),className:"o-adv-h-panel"},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Heading Color","otter-blocks"),colorValue:t.headingColor,onColorChange:e=>o({headingColor:e})}),(0,c.createElement)(D.Z,{label:(0,l.__)("Font Size","otter-blocks")},(0,c.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})},min:1,max:500,allowReset:!0})),(0,c.createElement)(D.Z,{label:(0,l.__)("Alignment","otter-blocks")},(0,c.createElement)(i.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(G.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,c.createElement)(q,{values:["fontFamily","fontVariant","fontStyle","textTransform"],setAttributes:o}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,step:.1,max:3,allowReset:!0}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),min:-50,max:100,allowReset:!0}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Shadow Properties","otter-blocks"),checked:t.textShadow,onChange:e=>o({textShadow:e})}),t.textShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.textShadowColor,onColorChange:e=>o({textShadowColor:e})}),(0,c.createElement)(Z.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.textShadowColorOpacity,onChange:e=>o({textShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.textShadowBlur,onChange:e=>o({textShadowBlur:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.textShadowHorizontal,onChange:e=>o({textShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.textShadowVertical,onChange:e=>o({textShadowVertical:e}),min:-100,max:100})))))||"advanced"===r&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Highlight Color","otter-blocks")},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Color","otter-blocks"),colorValue:t.highlightColor,onColorChange:e=>o({highlightColor:e})}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Background","otter-blocks"),colorValue:t.highlightBackground,onColorChange:e=>o({highlightBackground:e})})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Spacing","otter-blocks"),initialOpen:!1},(0,c.createElement)(D.Z,{label:(0,l.__)("Padding","otter-blocks")},(0,c.createElement)(W.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,c.createElement)(q,{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,c.createElement)(D.Z,{label:(0,l.__)("Margin","otter-blocks")},(0,c.createElement)(W.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,c.createElement)(q,{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,c.createElement)(j,{value:t.id,onChange:e=>o({id:e})}))};const{attributes:J}=S;const{name:X}=S;(0,a.registerBlockType)(X,{...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:n.headingIcon,keywords:["heading","title","advanced heading"],deprecated:L,transforms:H,edit:e=>{let{attributes:t,setAttributes:o,clientId:r,mergeBlocks:n,onReplace:s}=e;const{isViewportAvailable:d,isPreviewDesktop:m,isPreviewTablet:u,isPreviewMobile:b}=(0,F.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,A.useViewportMatch)("large",">="),g=(0,A.useViewportMatch)("large","<="),h=(0,A.useViewportMatch)("small",">="),k=(0,A.useViewportMatch)("small","<=");(0,c.useEffect)((()=>{const e=(0,y.WX)(r,J);return()=>e(t.id)}),[t.id]);let v,_,f,C=p&&!g&&h&&!k,w=!p&&!g&&h&&!k,E=!(p||g||h||k);d&&!E&&(C=m,w=u,E=b),C&&(v={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`}),w&&(v={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&&(v={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 ${V()(t.textShadowColor?t.textShadowColor:"#000000",0<=t.textShadowColorOpacity?t.textShadowColorOpacity||1e-5:1)}`});const x=(0,O.omitBy)({color:t.headingColor,...v,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,i.useBlockProps)({id:t.id,style:x});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("style",null,`#${t.id} mark, #${t.id} .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}`),t.fontFamily&&(0,c.createElement)(I.Z,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&[t.fontVariant+("italic"===t.fontStyle?":i":"")]}]}),(0,c.createElement)($,{attributes:t,setAttributes:o}),(0,c.createElement)(K,{attributes:t,setAttributes:o}),(0,c.createElement)(i.RichText,(0,N.Z)({identifier:"content",value:t.content,placeholder:(0,l.__)("Write heading…","otter-blocks"),tagName:t.tag,formattingControls:["bold","italic","link","strikethrough","highlight"],allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/highlight","themeisle-blocks/count-animation","themeisle-blocks/typing-animation"],onMerge:n,onSplit:(e,o)=>{let l;var n;return l=o||e?(0,a.createBlock)("themeisle-blocks/advanced-heading",{...t,content:e}):(0,a.createBlock)(null!==(n=(0,a.getDefaultBlockName)())&&void 0!==n?n:"themeisle-blocks/advanced-heading"),o&&(l.clientId=r),l},onReplace:s,onRemove:()=>s([]),onChange:e=>{o({content:e})}},T)))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({id:t.id,className:t.id});return(0,c.createElement)(i.RichText.Content,(0,N.Z)({tagName:t.tag,value:t.content},o))}});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}]}},ee=[{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,c.createElement)("div",{id:t.id,className:g()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,O.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,c.createElement)(c.Fragment,null,(0,c.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,c.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,c.createElement)(i.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.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,c.createElement)("div",{id:t.id,className:g()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,O.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,c.createElement)(c.Fragment,null,(0,c.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,c.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,c.createElement)(i.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.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,r;return"flex-start"===e.align&&(o="left"),"center"===e.align&&(o="center"),"flex-end"===e.align&&(o="right"),e.data&&(l=(0,O.pick)(e.data[0],["paddingLeftRight","paddingTopBottom"]),1<=Object.keys(l).length&&(l=(0,O.pick)(l,Object.keys(l).filter((e=>""!==l[e])))),r=e.data.filter(((t,o)=>o<e.buttons)).map((e=>{const t=(0,O.omit)(e,["paddingLeftRight","paddingTopBottom"]);return(0,a.createBlock)("themeisle-blocks/button",{...t})}))),[{...(0,O.omit)(e,["buttons","data"]),align:o,...l},[...r,...t]]},save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"";return(0,c.createElement)("div",{id:t.id,className:g()(o,l,"wp-block-button")},(0,O.times)(t.buttons,(e=>(e=>(0,c.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,c.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,c.createElement)(i.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))(e))))}}];var te=ee,oe=e=>{let{attributes:t,setAttributes:o,currentDevice:a}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Spacing","otter-blocks")},(0,c.createElement)(W.Z,{label:(0,l.__)("Padding","otter-blocks"),min:0,max:100,onChange:(e,t)=>{"top"!==e&&"bottom"!==e||o({paddingTopBottom:t}),"right"!==e&&"left"!==e||o({paddingLeftRight:t})},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:t.paddingTopBottom},{label:(0,l.__)("Right","otter-blocks"),type:"right",value:t.paddingLeftRight},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:t.paddingTopBottom},{label:(0,l.__)("Left","otter-blocks"),type:"left",value:t.paddingLeftRight}]}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Spacing","otter-blocks"),value:t.spacing,onChange:e=>o({spacing:e}),min:0,max:50}),(0,c.createElement)(s.SelectControl,{label:(0,l.__)("Collapse On","otter-blocks"),value:t.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=>o({collapse:e})}),(0,c.createElement)(D.Z,{label:(0,l.__)("Alignment","otter-blocks"),className:"buttons-alignment-control"},(0,c.createElement)(i.BlockAlignmentToolbar,{value:t.align?t.align[a]:void 0,isCollapsed:!1,controls:["left","center","right","full"],onChange:e=>{(e=>{const l=t.align?{desktop:t.align.desktop,tablet:t.align.tablet,mobile:t.align.mobile}:{};l[a]=e,o({align:l})})(e)}}))),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Font Size","otter-blocks"),value:t.fontSize,onChange:e=>o({fontSize:e}),min:0,max:50}),(0,c.createElement)(G.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:void 0,fontVariant:void 0,fontStyle:void 0})},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,c.createElement)(s.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,max:200})))};const{attributes:le}=Q;const{name:ae}=Q;(0,a.registerBlockType)(ae,{...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:n.buttonsIcon,keywords:["button","buttons","button group"],deprecated:te,edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const{isViewportAvailable:a,isPreviewDesktop:r,isPreviewTablet:n,isPreviewMobile:s}=(0,F.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,F.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,A.useViewportMatch)("large",">="),u=(0,A.useViewportMatch)("large","<="),b=(0,A.useViewportMatch)("small",">="),p=(0,A.useViewportMatch)("small","<=");(0,c.useEffect)((()=>{const e=(0,y.WX)(l,le);return()=>e(t.id)}),[]);let k=m&&!u&&b&&!p,v=!m&&!u&&b&&!p,_=!(m||u||b||p);a&&!_&&(k=r,v=n,_=s);const f=["desktop","tablet","mobile"].reduce(((e,o)=>(t.align&&t.align[o]&&e.push(`align-${t.align[o]}-${o}`),e)),[]),C=(0,i.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&&_},...f),css:h.iv`
|
7 |
+
.block-editor-block-list__layout {
|
8 |
+
gap: ${t.spacing}px;
|
9 |
+
}
|
10 |
+
`});return(0,h.tZ)(c.Fragment,null,t.fontFamily&&(0,h.tZ)(I.Z,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&[t.fontVariant+("italic"===t.fontStyle?":i":"")]}]}),(0,h.tZ)(oe,{attributes:t,setAttributes:o,currentDevice:d}),(0,h.tZ)("div",C,(0,h.tZ)(i.InnerBlocks,{allowedBlocks:["themeisle-blocks/button"],__experimentalMoverDirection:"horizontal",orientation:"horizontal",template:[["themeisle-blocks/button"]],renderAppender:i.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=i.useBlockProps.save({id:t.id,className:g()(o,"wp-block-buttons",{[`align-${t.align}`]:"string"==typeof t.align},...l)});return(0,c.createElement)("div",a,(0,c.createElement)(i.InnerBlocks.Content,null))}});var re=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"}]}'),ne=o(8406),ce=o(6421),ie=window.wp.keycodes,se=e=>{let{isSelected:t,url:o,setAttributes:a,opensInNewTab:r}=e;const[n,d]=(0,c.useState)(!1),m=!!o,u=m&&t,b=()=>(d(!0),!1),p=()=>{a({link:void 0,newTab:void 0}),d(!1)},g=n&&(0,c.createElement)(s.Popover,{position:"bottom right",onClose:()=>d(!1)},(0,c.createElement)(i.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:o,opensInNewTab:r},onChange:e=>{let{url:t="",opensInNewTab:o}=e;a({link:t}),r!==o&&a({newTab:o})}}));return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.ToolbarGroup,null,!m&&(0,c.createElement)(s.ToolbarButton,{name:"link",icon:ne.Z,title:(0,l.__)("Link","otter-blocks"),shortcut:ie.displayShortcut.primary("k"),onClick:b,className:"o-toolbar-icon"}),u&&(0,c.createElement)(s.ToolbarButton,{name:"link",icon:ce.Z,title:(0,l.__)("Unlink","otter-blocks"),shortcut:ie.displayShortcut.primaryShift("k"),onClick:p,isActive:!0,className:"o-toolbar-icon"})),t&&(0,c.createElement)(s.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{[ie.rawShortcut.primary("k")]:b,[ie.rawShortcut.primaryShift("k")]:p}}),g)},de=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(se,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))};const me=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var ue=e=>{let{attributes:t,setAttributes:o}=e;const[a,r]=(0,c.useState)(!1),n=()=>(0,c.createElement)(s.ButtonGroup,null,(0,c.createElement)(s.Button,{isSmall:!0,isSecondary:a,isPrimary:!a,onClick:()=>r(!1)},(0,l.__)("Normal","otter-blocks")),(0,c.createElement)(s.Button,{isSmall:!0,isSecondary:!a,isPrimary:a,onClick:()=>r(!0)},(0,l.__)("Hover","otter-blocks")));return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Color","otter-blocks")},(0,c.createElement)(n,null),a?(0,c.createElement)(c.Fragment,{key:"with-hover"},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Hover Color","otter-blocks"),colorValue:t.hoverColor,onColorChange:e=>o({hoverColor:e})}),(0,c.createElement)(i.__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,c.createElement)(c.Fragment,{key:"without-hover"},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.color,onColorChange:e=>o({color:e})}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:t.background,gradientValue:t.backgroundGradient,onColorChange:e=>o({background:e}),onGradientChange:e=>o({backgroundGradient:e})}))),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Border & Box Shadow","otter-blocks"),initialOpen:!1},(0,c.createElement)(n,null),a?(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Hover Border","otter-blocks"),colorValue:t.hoverBorder,onColorChange:e=>o({hoverBorder:e})}):(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.border,onColorChange:e=>o({border:e})}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),min:0,max:10}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),min:0,max:100}),(0,c.createElement)(Z.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,c.createElement)(n,null),a?(0,c.createElement)(c.Fragment,{key:"with-hover"},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color on Hover","otter-blocks"),colorValue:t.hoverBoxShadowColor,onColorChange:e=>o({hoverBoxShadowColor:e})}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.hoverBoxShadowColorOpacity,onChange:e=>o({hoverBoxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.hoverBoxShadowBlur,onChange:e=>o({hoverBoxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.hoverBoxShadowSpread,onChange:e=>o({hoverBoxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.hoverBoxShadowHorizontal,onChange:e=>o({hoverBoxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.hoverBoxShadowVertical,onChange:e=>o({hoverBoxShadowVertical:e}),min:-100,max:100})):(0,c.createElement)(c.Fragment,{key:"without-hover"},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Icon Settings","otter-blocks"),initialOpen:!1},(0,c.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,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(s.Placeholder,null,(0,c.createElement)(s.Spinner,null))},(0,c.createElement)(me,{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})}}))))},be=o(48);const{attributes:pe}=re;const{name:ge}=re;(0,a.registerBlockType)(ge,{...re,title:(0,l.__)("Button","otter-blocks"),description:(0,l.__)("Prompt visitors to take action with a button group. Powered by Otter.","otter-blocks"),icon:n.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:r}=e;const{hasParent:n,parentAttributes:s}=(0,F.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),l=t(o(r));return{hasParent:!!l,parentAttributes:l?l.attributes:{}}}),[]);(0,c.useEffect)((()=>{const e=(0,y.WX)(r,pe);return()=>e(t.id)}),[]);let d={},m={};t.boxShadow&&(d={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${V()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`}),n&&(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=h.iv`
|
11 |
&:hover {
|
12 |
color: ${t.hoverColor} !important;
|
13 |
background: ${t.hoverBackground||t.hoverBackgroundGradient} !important;
|
14 |
border-color: ${t.hoverBorder} !important;
|
15 |
+
${t.boxShadow&&`box-shadow: ${t.hoverBoxShadowHorizontal}px ${t.hoverBoxShadowVertical}px ${t.hoverBoxShadowBlur}px ${t.hoverBoxShadowSpread}px ${V()(t.hoverBoxShadowColor?t.hoverBoxShadowColor:"#000000",t.hoverBoxShadowColorOpacity)} !important;`}
|
16 |
}
|
17 |
|
18 |
&:hover svg {
|
19 |
fill: ${t.hoverColor} !important;
|
20 |
}
|
21 |
+
`,p={fill:t.color,width:s.fontSize&&`${s.fontSize}px`},k=be.ZP.icons[t.icon],v=(0,i.useBlockProps)({id:t.id,className:"wp-block-button",style:{}});return(0,h.tZ)(c.Fragment,null,(0,h.tZ)(de,{attributes:t,setAttributes:o,isSelected:a}),(0,h.tZ)(ue,{attributes:t,setAttributes:o}),(0,h.tZ)("div",v,"none"!==t.iconType?(0,h.tZ)("div",{className:"wp-block-button__link",style:u,css:b},("left"===t.iconType||"only"===t.iconType)&&("themeisle-icons"===t.library&&t.icon?(0,h.tZ)(k,{className:g()({"margin-right":"left"===t.iconType}),style:p}):(0,h.tZ)("i",{className:g()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,h.tZ)(i.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,h.tZ)(k,{className:"margin-left",style:p}):(0,h.tZ)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))):(0,h.tZ)(i.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,css:b})))},save:e=>{let{attributes:t}=e;const o=be.ZP.icons[t.icon],l=i.useBlockProps.save({id:t.id,className:"wp-block-button"});return(0,c.createElement)("div",l,(0,c.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,c.createElement)(o,{className:g()({"margin-right":"left"===t.iconType})}):(0,c.createElement)("i",{className:g()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,c.createElement)(i.RichText.Content,{tagName:"span",value:t.text}),"right"===t.iconType&&("themeisle-icons"===t.library&&t.icon?(0,c.createElement)(o,{className:"margin-left"}):(0,c.createElement)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))))}});var he=o(269),ke=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"}'),ve=e=>{let{attributes:t,setAttributes:o,onHeightChange:a}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.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,O.clamp)(e,0,100),o({percentage:e}))},min:0,max:100}),(0,c.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,O.clamp)(e,0,3),o({duration:e}))},min:0,max:3,step:.1}),(0,c.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Style","otter-blocks")},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("The height of the circle counter.","otter-blocks"),value:t.height,onChange:a,min:0,max:240}),(0,c.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,c.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:Math.round(.6*t.height)}),(0,c.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:Math.round(.27*t.height)}),"hide"!==t.titleStyle&&(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Title Color","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>{o({titleColor:e})}}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Progress Color","otter-blocks"),colorValue:t.progressColor,onColorChange:e=>{o({progressColor:e})}}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Background Color","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>{o({backgroundColor:e})}})))},ye=e=>{let{attributes:t,progressRef:o,valueRef:l}=e;const a=t.height,r=a/2,n=a/2-t.strokeWidth/2,i=2*Math.PI*n;return 0>n?(0,c.createElement)("div",null):(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter__bar",style:{height:a+"px",width:a+"px"}},(0,c.createElement)("svg",{className:"wp-block-themeisle-blocks-circle-counter-container",width:a,height:a},(0,c.createElement)("circle",{className:"wp-block-themeisle-blocks-circle-counter-bg",cx:r,cy:r,r:n,strokeWidth:t.strokeWidth,style:{stroke:t.backgroundColor}}),(0,c.createElement)("circle",{ref:o,className:"wp-block-themeisle-blocks-circle-counter-progress",cx:r,cy:r,r:n,strokeWidth:t.strokeWidth,strokeDasharray:i,style:{stroke:t.progressColor}}),(0,c.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:_e}=ke;const{clamp:fe,omit:Ce}=lodash,we={to:[{type:"block",blocks:["themeisle-blocks/progress-bar"],transform:e=>{const t=Ce(e,["titleStyle","height","fontSize","strokeWidth","progressColor"]);return(0,a.createBlock)("themeisle-blocks/progress-bar",{...t,barBackgroundColor:e.progressColor,height:fe(e.height/4,0,100),titleStyle:"default"})}}]};var Ee=we;const{name:xe}=ke;(0,a.registerBlockType)(xe,{...ke,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:he.Z,keywords:["progress","circle","counter"],transforms:Ee,edit:e=>{let{clientId:t,attributes:o,setAttributes:a,isSelected:r,toggleSelection:n}=e;(0,c.useEffect)((()=>{const e=(0,y.WX)(t,_e);return()=>e(o.id)}),[o.id]);const d=(0,c.useRef)(null),m=(0,c.useRef)(null),[u,b]=(0,c.useState)({}),p=o.height/2-o.strokeWidth/2,g=2*Math.PI*p;(0,c.useEffect)((()=>{if(!d.current||!d.current||0===o.duration)return;const e=o.percentage/(1e3*o.duration),t=(0,O.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,c.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 k=e=>{const t=(o.fontSizePercent||27)/o.height,l=(o.fontSizeTitle||37)/o.height;a({height:e,fontSizePercent:Math.round(e*t),fontSizeTitle:Math.round(e*l)})},v=e=>{a({title:e})},_=h.iv`
|
22 |
+
--fontSizeTitle: ${f=o.fontSizeTitle,f?`${f}px`:f};
|
23 |
+
`;var f;const C=(0,i.useBlockProps)({id:o.id,css:_});return(0,h.tZ)(c.Fragment,null,(0,h.tZ)(ve,{attributes:o,setAttributes:a,onHeightChange:k}),(0,h.tZ)("div",C,"default"===o.titleStyle&&(0,h.tZ)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,h.tZ)(i.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:r?(0,l.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:v,multiline:!1,style:{color:o.titleColor}})),(0,h.tZ)(s.ResizableBox,{size:{height:o.height,width:o.height},minHeight:0,maxHeight:240,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:r,onResizeStop:(e,t,l,a)=>{k(parseInt(o.height+a.height,10)),n(!0)},onResizeStart:()=>{n(!1)}},(0,h.tZ)(ye,{attributes:o,progressRef:d,valueRef:m})),"bottom"===o.titleStyle&&(0,h.tZ)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,h.tZ)(i.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:r?(0,l.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:v,multiline:!1,style:{color:o.titleColor}}))))},save:e=>{let{attributes:t}=e;const o=i.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,c.createElement)("div",o,"default"===t.titleStyle&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter__bar"}),"bottom"===t.titleStyle&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)))}});var Te=o(2506),Se=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"},"gap":{"type":"number"},"gapTablet":{"type":"number"},"gapMobile":{"type":"number"},"width":{"type":"number"},"widthTablet":{"type":"number"},"widthMobile":{"type":"number"},"height":{"type":"number"},"heightTablet":{"type":"number"},"heightMobile":{"type":"number"},"borderRadius":{"type":"number","default":0},"borderRadiusType":{"type":"string","default":"linked"},"borderRadiusTopRight":{"type":"number","default":0},"borderRadiusTopLeft":{"type":"number","default":0},"borderRadiusBottomRight":{"type":"number","default":0},"borderRadiusBottomLeft":{"type":"number","default":0},"borderWidth":{"type":"number"},"borderWidthTablet":{"type":"number"},"borderWidthMobile":{"type":"number"},"borderColor":{"type":"string"},"valueFontSize":{"type":"number"},"valueFontSizeTablet":{"type":"number"},"valueFontSizeMobile":{"type":"number"},"labelFontSize":{"type":"number"},"labelFontSizeTablet":{"type":"number"},"labelFontSizeMobile":{"type":"number"},"hasSeparators":{"type":"boolean"}},"supports":{"align":["wide","full"]},"editorStyle":"otter-countdown-editor","style":"otter-countdown-style","script":"otter-countdown"}'),Me=o(6292),Be=o.n(Me),ze=o(9771),Pe=e=>{var t,o,a,r;let{attributes:n,setAttributes:d}=e;const m=(0,F.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),u=(e,t)=>{var o;d(e?{exclude:null==n||null===(o=n.exclude)||void 0===o?void 0:o.filter((e=>e!==t))}:{exclude:null!=n&&n.exclude?[...null==n?void 0:n.exclude,t]:[t]})},b=e=>{let t;return"top-right"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusTopRight),"top-left"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusTopLeft),"bottom-right"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusBottomRight),"bottom-left"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusBottomLeft),t},p={"top-right":"borderRadiusTopRight","top-left":"borderRadiusTopLeft","bottom-left":"borderRadiusBottomLeft","bottom-right":"borderRadiusBottomRight"},g=(0,ze.__experimentalGetSettings)();return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Time","otter-blocks")},(0,c.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,c.createElement)(c.Fragment,null,(0,c.createElement)(s.Button,{onClick:t,isSecondary:!0,"aria-expanded":o},n.date?(0,ze.format)(g.formats.datetime,n.date):(0,l.__)("Select Date","otter-blocks")))},renderContent:()=>(0,c.createElement)(s.DateTimePicker,{currentDate:n.date,onChange:e=>d({date:e})})})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display Days","otter-blocks"),checked:!(null!=n&&null!==(t=n.exclude)&&void 0!==t&&t.includes("day")),onChange:e=>u(e,"day")}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display Hours","otter-blocks"),checked:!(null!=n&&null!==(o=n.exclude)&&void 0!==o&&o.includes("hour")),onChange:e=>u(e,"hour")}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display Minutes","otter-blocks"),checked:!(null!=n&&null!==(a=n.exclude)&&void 0!==a&&a.includes("minute")),onChange:e=>u(e,"minute")}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display Seconds","otter-blocks"),checked:!(null!=n&&null!==(r=n.exclude)&&void 0!==r&&r.includes("second")),onChange:e=>u(e,"second")}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display Separators","otter-blocks"),checked:null==n?void 0:n.hasSeparators,onChange:e=>d({hasSeparators:e})}),(0,c.createElement)(D.Z,{label:(0,l.__)("Box Spacing","otter-blocks")},(0,c.createElement)(s.RangeControl,{value:"Mobile"===m?n.gapMobile:"Tablet"===m?n.gapTablet:n.gap,onChange:e=>{"Desktop"===m&&d({gap:Number(e)}),"Tablet"===m&&d({gapTablet:Number(e)}),"Mobile"===m&&d({gapMobile:Number(e)})},min:0,max:100})),(0,c.createElement)(D.Z,{label:(0,l.__)("Box Height","otter-blocks")},(0,c.createElement)(s.RangeControl,{value:"Mobile"===m?n.heightMobile:"Tablet"===m?n.heightTablet:n.height,onChange:e=>{"Desktop"===m&&d({height:Number(e)}),"Tablet"===m&&d({heightTablet:Number(e)}),"Mobile"===m&&d({heightMobile:Number(e)})},min:40,max:300})),(0,c.createElement)(D.Z,{label:(0,l.__)("Box Width","otter-blocks")},(0,c.createElement)(s.RangeControl,{value:"Mobile"===m?n.widthMobile:"Tablet"===m?n.widthTablet:n.width,onChange:e=>{"Desktop"===m&&d({width:Number(e)}),"Tablet"===m&&d({widthTablet:Number(e)}),"Mobile"===m&&d({widthMobile:Number(e)})},min:40,max:300})),(0,c.createElement)(D.Z,{label:(0,l.__)("Border Width","otter-blocks")},(0,c.createElement)(s.RangeControl,{value:"Mobile"===m?n.borderWidthMobile:"Tablet"===m?n.borderWidthTablet:n.borderWidth,onChange:e=>{"Desktop"===m&&d({borderWidth:Number(e)}),"Tablet"===m&&d({borderWidthTablet:Number(e)}),"Mobile"===m&&d({borderWidthMobile:Number(e)})},min:0,max:50})),(0,c.createElement)(D.Z,{label:(0,l.__)("Time Value Font Size","otter-blocks")},(0,c.createElement)(s.RangeControl,{value:"Mobile"===m?n.valueFontSizeMobile:"Tablet"===m?n.valueFontSizeTablet:n.valueFontSize,onChange:e=>{"Desktop"===m&&d({valueFontSize:Number(e)}),"Tablet"===m&&d({valueFontSizeTablet:Number(e)}),"Mobile"===m&&d({valueFontSizeMobile:Number(e)})},min:0,max:64})),(0,c.createElement)(D.Z,{label:(0,l.__)("Label Font Size","otter-blocks")},(0,c.createElement)(s.RangeControl,{value:"Mobile"===m?n.labelFontSizeMobile:"Tablet"===m?n.labelFontSizeTablet:n.labelFontSize,onChange:e=>{"Desktop"===m&&d({labelFontSize:Number(e)}),"Tablet"===m&&d({labelFontSizeTablet:Number(e)}),"Mobile"===m&&d({labelFontSizeMobile:Number(e)})},min:0,max:64})),(0,c.createElement)(W.Z,{label:(0,l.__)("Border Radius (%)","otter-blocks"),type:n.borderRadiusType,min:0,max:100,changeType:e=>{d({borderRadiusType:e})},onChange:(e,t)=>{"linked"===n.borderRadiusType?d({borderRadius:t}):d({[p[e]]:t})},options:[{label:(0,l.__)("Top Left","otter-blocks"),type:"top-left",value:b("top-left")},{label:(0,l.__)("Top Right","otter-blocks"),type:"top-right",value:b("top-right")},{label:(0,l.__)("Bottom Right","otter-blocks"),type:"bottom-right",value:b("bottom-right")},{label:(0,l.__)("Bottom Left","otter-blocks"),type:"bottom-left",value:b("bottom-left")}]})),(0,c.createElement)(i.PanelColorSettings,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:n.backgroundColor,onChange:e=>{d({backgroundColor:e})},label:(0,l.__)("Background","otter-blocks")},{value:n.labelColor,onChange:e=>{d({labelColor:e})},label:(0,l.__)("Label","otter-blocks")},{value:n.valueColor,onChange:e=>{d({valueColor:e})},label:(0,l.__)("Value","otter-blocks")},{value:n.borderColor,onChange:e=>{d({borderColor:e})},label:(0,l.__)("Border","otter-blocks")}]},(0,c.createElement)(i.ContrastChecker,{textColor:n.backgroundColor,backgroundColor:n.valueColor})))},Ve=o(4715);const Re=e=>{let{name:t,value:o,tag:l,styles:a}=e;const r="sep"!==t?{...a.allComponents,...a.mainComponents}:a.allComponents;return(0,c.createElement)("div",{style:r,name:l,className:g()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,c.createElement)("div",{style:a.value,className:"otter-countdown__value"},o),(0,c.createElement)("div",{style:a.label,className:"otter-countdown__label"},t))};var Le=e=>{let{time:t,hasSeparators:o,styles:l}=e;const a=o?(0,Ve.S3)(t,{name:"sep",value:":",tag:"separator"}):t,r=null==a?void 0:a.map(((e,t)=>(0,c.createElement)(Re,(0,N.Z)({},e,{key:t,styles:l}))));return void 0!==t?(0,c.createElement)("div",{className:"otter-countdown__container"},(0,c.createElement)("div",{style:l.display,className:"otter-countdown__display"},r)):(0,c.createElement)(c.Fragment,null)};const{attributes:He}=Se,Ne=e=>e?`${e}px`:e;const Ie=e=>{let{name:t,value:o,tag:l}=e;return(0,c.createElement)("div",{name:l,className:g()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,c.createElement)("div",{className:"otter-countdown__value"},o),(0,c.createElement)("div",{className:"otter-countdown__label"},t))},Oe=e=>{let{time:t,hasSeparators:o}=e;const l=o?(0,Ve.S3)(t,{name:"sep",value:":",tag:"separator"}):t,a=null==l?void 0:l.map(((e,t)=>(0,c.createElement)(Ie,(0,N.Z)({},e,{key:t}))));return void 0!==t?(0,c.createElement)("div",{className:"otter-countdown__container"},(0,c.createElement)("div",{className:"otter-countdown__display"},a)):(0,c.createElement)(c.Fragment,null)};const{name:Ae}=Se;(0,a.registerBlockType)(Ae,{...Se,title:(0,l.__)("Countdown","otter-blocks"),description:(0,l.__)("Set a countdown for a date. Powered by Otter.","otter-blocks"),icon:Te.Z,keywords:["countdown","time","counter"],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const[a,r]=(0,c.useState)(0);(0,c.useEffect)((()=>{const e=(0,y.WX)(l,He);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{const e=setInterval((()=>{if(t.date){let e=t.date+(0,Ve.EP)();e=1e3*Be()(e).unix(),r(new Date(e)-new Date)}}),500);return()=>{clearInterval(e)}}),[t.date]);const{isViewportAvailable:n,isPreviewDesktop:s,isPreviewTablet:d,isPreviewMobile:m}=(0,F.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()}}),[]),u=(0,A.useViewportMatch)("large",">="),b=(0,A.useViewportMatch)("large","<="),p=(0,A.useViewportMatch)("small",">="),g=(0,A.useViewportMatch)("small","<=");let k,v=u&&!b&&p&&!g,_=!u&&!b&&p&&!g,f=!(u||b||p||g);n&&!f&&(v=s,_=d,f=m),_?k={value:{fontSize:Ne(null==t?void 0:t.valueFontSizeTablet)},label:{fontSize:Ne(null==t?void 0:t.labelFontSizeTablet)},display:{gap:Ne(t.gapTablet)},allComponents:{height:Ne(null==t?void 0:t.heightTablet)},mainComponents:{width:Ne(null==t?void 0:t.widthTablet),borderWidth:Ne(t.borderWidthTablet)}}:f?k={value:{fontSize:Ne(t.valueFontSizeMobile)},label:{fontSize:Ne(t.labelFontSizeMobile)},display:{gap:Ne(t.gapMobile)},allComponents:{height:Ne(null==t?void 0:t.heightMobile)},mainComponents:{width:Ne(null==t?void 0:t.widthMobile),borderWidth:Ne(t.borderWidthMobile)}}:v&&(k={value:{fontSize:Ne(t.valueFontSize)},label:{fontSize:Ne(t.labelFontSize)},display:{gap:Ne(t.gap)},allComponents:{height:Ne(t.height)},mainComponents:{width:Ne(t.width),borderWidth:Ne(t.borderWidth)}});const C="linked"===t.borderRadiusType?t.borderRadius+"%":`${t.borderRadiusTopLeft}% ${t.borderRadiusTopRight}% ${t.borderRadiusBottomRight}% ${t.borderRadiusBottomLeft}%`,w=h.iv`
|
|
|
|
|
|
|
|
|
24 |
--backgroundColor: ${t.backgroundColor};
|
25 |
--borderColor: ${t.borderColor};
|
26 |
+
--borderRadius: ${C};
|
27 |
|
28 |
.otter-countdown__display-area .otter-countdown__value {
|
29 |
color: ${t.valueColor};
|
32 |
.otter-countdown__display-area .otter-countdown__label {
|
33 |
color: ${t.labelColor};
|
34 |
}
|
35 |
+
`,E=(0,i.useBlockProps)({id:t.id,css:w});return(0,h.tZ)(c.Fragment,null,(0,h.tZ)(Pe,{attributes:t,setAttributes:o}),(0,h.tZ)("div",E,(0,h.tZ)(Le,{time:(0,Ve.Mg)(a,{exclude:null==t?void 0:t.exclude}),styles:k,hasSeparators:t.hasSeparators})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({id:t.id,"data-date":t.date});return(0,c.createElement)("div",o,(0,c.createElement)(Oe,{time:(0,Ve.Mg)(0,{exclude:null==t?void 0:t.exclude}),hasSeparators:null==t?void 0:t.hasSeparators}))}});var Fe=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"}'),Ge=e=>{let{attributes:t,setAttributes:o,isFliped:a}=e;const r=i.__experimentalBlockAlignmentMatrixControl||i.__experimentalBlockAlignmentMatrixToolbar;return(0,c.createElement)(i.BlockControls,null,(!t.isInverted&&!1===a||t.isInverted&&a)&&(0,c.createElement)(s.Toolbar,null,(0,c.createElement)(r,{label:(0,l.__)("Change front side content position","otter-blocks"),value:t.frontAlign,onChange:e=>o({frontAlign:e})})))};const $e=e=>{let{backgroundType:t,backgroundColor:o,image:a,gradient:r,backgroundAttachment:d,backgroundRepeat:m,backgroundSize:u,focalPoint:b,changeImage:p,changeColor:g,removeImage:h,changeBackgroundType:k,changeGradient:v,changeBackgroundAttachment:y,changeBackgroundRepeat:_,changeBackgroundSize:f,changeFocalPoint:C}=e;const w=`inspector-background-selector-control-${(0,A.useInstanceId)($e)}`;return(0,c.createElement)("div",{id:w,className:"components-base-control o-background-selector-control"},(0,c.createElement)("div",{className:"components-base-control__field"},(0,c.createElement)("div",{className:"components-base-control__title"},(0,c.createElement)("label",{className:"components-base-control__label"},(0,l.__)("Background Type","otter-blocks")),(0,c.createElement)(s.ButtonGroup,{className:"linking-controls"},(0,c.createElement)(s.Button,{icon:"admin-customizer",label:(0,l.__)("Color","otter-blocks"),showTooltip:!0,isPrimary:"color"===t,onClick:()=>k("color")}),(0,c.createElement)(s.Button,{icon:"format-image",label:(0,l.__)("Image","otter-blocks"),showTooltip:!0,isPrimary:"image"===t,onClick:()=>k("image")}),(0,c.createElement)(s.Button,{icon:()=>(0,c.createElement)(s.Icon,{icon:n.barcodeIcon}),label:(0,l.__)("Gradient","otter-blocks"),showTooltip:!0,isPrimary:"gradient"===t,onClick:()=>k("gradient")})))),"color"===t&&(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Background Color","otter-blocks"),colorValue:o,onColorChange:g})||"image"===t&&(null!=a&&a.url?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.FocalPointPicker,{label:(0,l.__)("Focal point picker","otter-blocks"),url:a.url,value:b,onDragStart:C,onDrag:C,onChange:C}),(0,c.createElement)(Z.Z,{label:(0,l.__)("Background Settings","otter-blocks")},(0,c.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,c.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,c.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,c.createElement)(s.PanelRow,null,(0,c.createElement)(s.Button,{isSmall:!0,isSecondary:!0,onClick:h},(0,l.__)("Clear Image","otter-blocks")))):(0,c.createElement)(i.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,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Background Gradient","otter-blocks"),gradientValue:r,disableCustomColors:!0,onGradientChange:v,clearable:!1}))};var Ze=$e,De=e=>{var t;let{attributes:o,setAttributes:a}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.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,c.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,c.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Front","otter-blocks"),initialOpen:!1},(0,c.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,c.createElement)(s.BaseControl,null,(0,c.createElement)("img",{src:o.frontMedia.url,alt:o.frontMedia.alt,style:{border:"2px solid var( --wp-admin-theme-color)",maxHeight:"250px"}}),(0,c.createElement)(s.Button,{isSecondary:!0,onClick:()=>a({frontMedia:void 0})},(0,l.__)("Remove image","otter-blocks"))):(0,c.createElement)(i.MediaPlaceholder,{labels:{title:(0,l.__)("Media Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:o.frontMedia,onSelect:e=>a({frontMedia:(0,O.pick)(e,["id","alt","url"])})})),(0,c.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,c.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,c.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,c.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,c.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,c.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,c.createElement)(Ze,{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,O.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Back","otter-blocks"),initialOpen:!1},(0,c.createElement)(Ze,{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,O.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,c.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Style","otter-blocks"),initialOpen:!1},(0,c.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,c.createElement)(s.RangeControl,{label:(0,l.__)("Padding","otter-blocks"),value:o.padding,onChange:e=>a({padding:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:o.borderWidth,onChange:e=>a({borderWidth:e}),min:0,max:50}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:o.borderRadius,onChange:e=>a({borderRadius:e}),min:0,max:50})),(0,c.createElement)(i.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Box Shadow","otter-blocks"),initialOpen:!1},(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Shadow Properties","otter-blocks"),checked:o.boxShadow,onChange:e=>a({boxShadow:e})}),o.boxShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(i.__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,c.createElement)(Z.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,c.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,c.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:o.boxShadowBlur,onChange:e=>a({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:o.boxShadowHorizontal,onChange:e=>a({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:o.boxShadowVertical,onChange:e=>a({boxShadowVertical:e}),min:-100,max:100})))))};const{attributes:We}=Fe;const{name:Ue}=Fe;(0,a.registerBlockType)(Ue,{...Fe,title:(0,l.__)("Flip Card","otter-blocks"),description:(0,l.__)("Make a card with a flip effect. Powered by Otter.","otter-blocks"),icon:he.Z,keywords:["flip card","container","animation"],edit:e=>{var t,o,a,r,n,d,m,u,b,p;let{attributes:k,setAttributes:v,clientId:_,isSelected:f}=e;(0,c.useEffect)((()=>{const e=(0,y.WX)(_,We);return()=>e(k.id)}),[k.id]);const[C,w]=(0,c.useState)(!1),E=h.iv`
|
36 |
+
${void 0!==k.width&&`--width: ${k.width}px;`}
|
37 |
+
${void 0!==k.height&&`--height: ${k.height}px;`}
|
38 |
+
${void 0!==k.borderWidth&&`--borderWidth: ${k.borderWidth}px;`}
|
39 |
+
--borderColor: ${k.borderColor};
|
40 |
+
${void 0!==k.borderRadius&&`--borderRadius: ${k.borderRadius}px;`}
|
41 |
+
${"color"===k.frontBackgroundType&&k.frontBackgroundColor&&`--frontBackground: ${k.frontBackgroundColor};`}
|
42 |
+
${"gradient"===k.frontBackgroundType&&k.frontBackgroundGradient&&`--frontBackground: ${k.frontBackgroundGradient};`}
|
43 |
+
${"image"===k.frontBackgroundType&&(null===(t=k.frontBackgroundImage)||void 0===t?void 0:t.url)&&`--frontBackground: url( ${null===(o=k.frontBackgroundImage)||void 0===o?void 0:o.url} ) ${k.frontBackgroundRepeat||"repeat"} ${k.frontBackgroundAttachment||"scroll"} ${Math.round(100*(null===(a=k.frontBackgroundPosition)||void 0===a?void 0:a.x))||50}% ${Math.round(100*(null===(r=k.frontBackgroundPosition)||void 0===r?void 0:r.y))||50}%/${k.frontBackgroundSize||"auto"};`}
|
44 |
+
${"color"===k.backBackgroundType&&k.backBackgroundColor&&`--backBackground: ${k.backBackgroundColor};`}
|
45 |
+
${"gradient"===k.backBackgroundType&&k.backBackgroundGradient&&`--backBackground: ${k.backBackgroundGradient};`}
|
46 |
+
${"image"===k.backBackgroundType&&(null===(n=k.backBackgroundImage)||void 0===n?void 0:n.url)&&`--backBackground: url( ${null===(d=k.backBackgroundImage)||void 0===d?void 0:d.url} ) ${k.backBackgroundRepeat||"repeat"} ${k.backBackgroundAttachment||"scroll"} ${Math.round(100*(null===(m=k.backBackgroundPosition)||void 0===m?void 0:m.x))||50}% ${Math.round(100*(null===(u=k.backBackgroundPosition)||void 0===u?void 0:u.y))||50}%/${k.backBackgroundSize||"auto"};`}
|
47 |
+
${void 0!==k.padding&&`--padding: ${k.padding}px;`}
|
48 |
+
${k.boxShadow&&`--boxShadow: ${k.boxShadowHorizontal}px ${k.boxShadowVertical}px ${k.boxShadowBlur}px ${k.boxShadowColor?k.boxShadowColor.includes("#")&&0<=k.boxShadowColorOpacity?hexToRgba(k.boxShadowColor,k.boxShadowColorOpacity||1e-5):k.boxShadowColor:hexToRgba("#000000",void 0!==k.boxShadowColorOpacity?k.boxShadowColorOpacity||1e-5:1)};`}
|
49 |
+
--frontVerticalAlign: ${k.frontVerticalAlign};
|
50 |
+
--frontHorizontalAlign: ${k.frontHorizontalAlign};
|
51 |
+
--backVerticalAlign: ${k.backVerticalAlign};
|
52 |
+
${void 0!==k.frontMediaWidth&&`--frontMediaWidth: ${k.frontMediaWidth}px;`}
|
53 |
+
${void 0!==k.frontMediaHeight&&`--frontMediaHeight: ${k.frontMediaHeight}px;`}
|
54 |
|
55 |
.o-flip-inner {
|
56 |
+
transform: ${C?"var( --flip-anim )":"unset"};
|
57 |
}
|
58 |
|
59 |
.o-flip-front .o-flip-content h3 {
|
60 |
+
color: ${k.titleColor};
|
61 |
+
${k.titleFontSize&&`font-size: ${k.titleFontSize}px;`}
|
62 |
}
|
63 |
|
64 |
.o-flip-front .o-flip-content p {
|
65 |
+
color: ${k.descriptionColor};
|
66 |
+
${k.descriptionFontSize&&`font-size: ${k.descriptionFontSize}px;`}
|
67 |
}
|
68 |
+
`,x=(0,i.useBlockProps)({id:k.id,className:g()({flipX:"flipX"===k.animType,flipY:"flipY"===k.animType}),css:E});return(0,h.tZ)(c.Fragment,null,(0,h.tZ)(Ge,{attributes:k,setAttributes:v,isFliped:C}),(0,h.tZ)(De,{attributes:k,setAttributes:v}),(0,h.tZ)("div",x,(0,h.tZ)("div",{className:g()("o-flip-inner",{invert:k.isInverted})},(0,h.tZ)("div",{className:"o-flip-front"},(0,h.tZ)("div",{className:"o-flip-content"},(null===(b=k.frontMedia)||void 0===b?void 0:b.url)&&(0,h.tZ)("img",{className:"o-img",srcSet:null===(p=k.frontMedia)||void 0===p?void 0:p.url}),(0,h.tZ)(i.RichText,{tagName:"h3",value:k.title,onChange:e=>v({title:e}),placeholder:(0,l.__)("Insert a title","otter-blocks")}),(0,h.tZ)(i.RichText,{tagName:"p",value:k.description,onChange:e=>v({description:e}),placeholder:(0,l.__)("Insert a description","otter-blocks")}))),(0,h.tZ)("div",{className:"o-flip-back"},(0,h.tZ)(i.InnerBlocks,{renderAppender:f?i.InnerBlocks.ButtonBlockAppender:""}))),f&&(0,h.tZ)("div",{className:"o-switcher"},(0,h.tZ)(s.Button,{isPrimary:!0,onClick:()=>w(!C)},C?(0,l.__)("Flip to front","otter-blocks"):(0,l.__)("Flip to back","otter-blocks")))))},save:e=>{var t,o,l,a;let{attributes:r}=e;const n=i.useBlockProps.save({id:r.id,className:g()("anim",{flipX:"flipX"===r.animType,flipY:"flipY"===r.animType})});return(0,c.createElement)("div",n,(0,c.createElement)("div",{className:g()("o-flip-inner",{invert:r.isInverted})},(0,c.createElement)("div",{className:"o-flip-front"},(0,c.createElement)("div",{className:"o-flip-content"},(null===(t=r.frontMedia)||void 0===t?void 0:t.url)&&(0,c.createElement)("img",{className:"o-img",src:null===(o=r.frontMedia)||void 0===o?void 0:o.url,srcSet:null===(l=r.frontMedia)||void 0===l?void 0:l.url,alt:null===(a=r.frontMedia)||void 0===a?void 0:a.alt}),(0,c.createElement)(i.RichText.Content,{tagName:"h3",value:r.title}),(0,c.createElement)(i.RichText.Content,{tagName:"p",value:r.description}))),(0,c.createElement)("div",{className:"o-flip-back"},(0,c.createElement)(i.InnerBlocks.Content,null))))}});var je=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 qe={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}},Ke=[{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=be.ZP.icons[t.icon],l=i.useBlockProps.save({id:t.id});return(0,c.createElement)("p",l,(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?(0,c.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},"themeisle-icons"===t.library?(0,c.createElement)(o,null):(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})):"themeisle-icons"===t.library?(0,c.createElement)(o,null):(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})))}},{attributes:qe,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,c.createElement)("p",{className:o,style:{textAlign:t.align}},(0,c.createElement)("span",{className:`${o}-container`,style:a},(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:l})))}},{attributes:{...qe,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,c.createElement)("p",{className:o,style:{textAlign:t.align}},(0,c.createElement)("span",{className:"undefined-container",style:a},(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:l})))}},{attributes:{...qe,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"},r=()=>(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:a});return(0,c.createElement)("p",{className:o,id:t.id,style:{textAlign:t.align}},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:l},t.link?(0,c.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",style:{color:t.textColor},rel:"noopener noreferrer"},(0,c.createElement)(r,null)):(0,c.createElement)(r,null)))}}];var Je=Ke,Xe=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(i.AlignmentToolbar,{value:t.align,onChange:e=>o({align:e})}),(0,c.createElement)(se,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))};const Qe=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var Ye=e=>{let{attributes:t,setAttributes:o,getValue:a}=e;const[r,n]=(0,c.useState)(!1);return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Icon","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(s.Placeholder,null,(0,c.createElement)(s.Spinner,null))},(0,c.createElement)(Qe,{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,c.createElement)(s.PanelBody,{title:(0,l.__)("Icon Sizes","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.Z,{field:"fontSize",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Icon Size","otter-blocks"),value:a("fontSize"),initialPosition:16,onChange:e=>o({fontSize:e}),min:12,max:140})),(0,c.createElement)(k.Z,{field:"padding",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Padding","otter-blocks"),value:a("padding"),initialPosition:5,onChange:e=>o({padding:e}),min:0,max:100})),(0,c.createElement)(k.Z,{field:"margin",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Margin","otter-blocks"),value:a("margin"),initialPosition:5,onChange:e=>o({margin:e}),min:0,max:100}))),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(s.ButtonGroup,null,(0,c.createElement)(s.Button,{isSmall:!0,isSecondary:r,isPrimary:!r,onClick:()=>n(!1)},(0,l.__)("Normal","otter-blocks")),(0,c.createElement)(s.Button,{isSmall:!0,isSecondary:!r,isPrimary:r,onClick:()=>n(!0)},(0,l.__)("Hover","otter-blocks"))),r?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(k.Z,{field:"backgroundColorHover",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Hover Background","otter-blocks"),colorValue:a("backgroundColorHover"),onColorChange:e=>o({backgroundColorHover:e})})),(0,c.createElement)(k.Z,{field:"textColorHover",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Hover Icon","otter-blocks"),colorValue:a("textColorHover"),onColorChange:e=>o({textColorHover:e})})),(0,c.createElement)(i.ContrastChecker,{textColor:a("textColorHover"),backgroundColor:a("backgroundColorHover")}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Hover Border","otter-blocks"),colorValue:t.borderColorHover,onColorChange:e=>o({borderColorHover:e})})):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(k.Z,{field:"backgroundColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:a("backgroundColor"),onColorChange:e=>o({backgroundColor:e})})),(0,c.createElement)(k.Z,{field:"textColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Icon","otter-blocks"),colorValue:a("textColor"),onColorChange:e=>o({textColor:e})})),(0,c.createElement)(i.ContrastChecker,{textColor:a("textColor"),backgroundColor:a("backgroundColor")}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}))),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Border Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Border Size","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),min:0,max:120}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),min:0,max:100})))};const{attributes:et}=je;const{name:tt}=je;(0,a.registerBlockType)(tt,{...je,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:n.faIcon,keywords:["font awesome","dashicons","icons"],deprecated:Je,edit:e=>{let{name:t,attributes:o,setAttributes:l,isSelected:a,clientId:r}=e;(0,c.useEffect)((()=>{const e=(0,y.WX)(r,et);return()=>e(o.id)}),[o.id]);const n=be.ZP.icons[o.icon],s=e=>(0,y.Ih)({name:t,field:e,defaultAttributes:et,attributes:o}),d=h.iv`
|
69 |
--align: ${o.align};
|
70 |
--borderColor: ${o.borderColor};
|
71 |
${void 0!==o.borderSize&&`--borderSize: ${o.borderSize}px;`}
|
72 |
${void 0!==o.borderRadius&&`--borderRadius: ${o.borderRadius}%;`}
|
73 |
+
${void 0!==o.margin&&`--margin: ${s("margin")}px;`}
|
74 |
+
${void 0!==o.padding&&`--padding: ${s("padding")}px;`}
|
75 |
+
${void 0!==o.fontSize&&`--fontSize: ${s("fontSize")}px;`}
|
76 |
|
77 |
.wp-block-themeisle-blocks-font-awesome-icons-container {
|
78 |
+
color: ${s("textColor")};
|
79 |
+
background-color: ${s("backgroundColor")};
|
80 |
}
|
81 |
|
82 |
.wp-block-themeisle-blocks-font-awesome-icons-container:hover {
|
83 |
+
color: ${s("textColorHover")};
|
84 |
+
background-color: ${s("backgroundColorHover")};
|
85 |
border-color: ${o.borderColorHover};
|
86 |
}
|
87 |
|
88 |
.wp-block-themeisle-blocks-font-awesome-icons-container a {
|
89 |
+
color: ${s("textColor")};
|
90 |
}
|
91 |
|
92 |
.wp-block-themeisle-blocks-font-awesome-icons-container i {
|
93 |
+
${s("fontSize")&&`font-size: ${s("fontSize")}px;`}
|
94 |
}
|
95 |
|
96 |
.wp-block-themeisle-blocks-font-awesome-icons-container svg {
|
97 |
+
fill: ${s("textColor")};
|
98 |
}
|
99 |
|
100 |
.wp-block-themeisle-blocks-font-awesome-icons-container:hover svg {
|
101 |
+
fill: ${s("textColorHover")};
|
102 |
+
}
|
103 |
+
`,m=(0,i.useBlockProps)({id:o.id,css:d});return(0,h.tZ)(c.Fragment,null,(0,h.tZ)(Xe,{attributes:o,setAttributes:l,isSelected:a}),(0,h.tZ)(Ye,{attributes:o,setAttributes:l,getValue:s}),(0,h.tZ)("div",m,(0,h.tZ)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},"themeisle-icons"===o.library?(0,h.tZ)(n,null):(0,h.tZ)("i",{className:`${o.prefix} fa-${o.icon}`}))))},save:e=>{let{attributes:t}=e;const o=be.ZP.icons[t.icon],l=i.useBlockProps.save({id:t.id});return(0,c.createElement)("div",l,(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?(0,c.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},"themeisle-icons"===t.library?(0,c.createElement)(o,null):(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})):"themeisle-icons"===t.library?(0,c.createElement)(o,null):(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})))}});var ot=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 lt=[{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=i.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,c.createElement)("div",a,(0,c.createElement)("div",{className:"otter-form__container"},(0,c.createElement)(i.InnerBlocks.Content,null),(0,c.createElement)("div",{className:"wp-block-button"},(0,c.createElement)("button",{className:"wp-block-button__link"},"subscribe"===t.action?(0,l.__)("Subscribe","otter-blocks"):(0,l.__)("Submit","otter-blocks")))))}}];var at=lt,rt=o(8101),nt=o.n(rt),ct=o(6989),it=o.n(ct);const st=e=>(null==e?void 0:e[1])&&e[0]!==e[1],dt=e=>Boolean(0<e.filter(st).length),mt=[{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 ut=e=>{var t,o,a,r,n,d,m,u,b,p,g;let{attributes:h,setAttributes:v}=e;const{listIDOptions:y,setListIDOptions:_,saveFormEmailOptions:f,saveIntegration:C,savedFormOptions:w,sendTestEmail:E,loadingState:x,formOptions:T,setFormOption:S,testService:M,hasEmailField:B}=(0,c.useContext)(gt),z=dt([[T.emailTo,null==w?void 0:w.email],[T.subject,null==w?void 0:w.emailSubject],[T.redirectLink,null==w?void 0:w.redirectLink],[T.fromName,null==w?void 0:w.fromName],[T.submitMessage,null==w?void 0:w.submitMessage],[T.cc,null==w?void 0:w.cc],[T.bcc,null==w?void 0:w.bcc],[T.hasCaptcha,null==w?void 0:w.hasCaptcha]]),P=dt([[T.provider,null==w||null===(t=w.integration)||void 0===t?void 0:t.provider],[T.listId,null==w||null===(o=w.integration)||void 0===o?void 0:o.listId],[T.action,null==w||null===(a=w.integration)||void 0===a?void 0:a.action]]);return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(i.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","otter-blocks")}]}),(0,c.createElement)(i.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Label Styling","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.Z,{field:"inputGap",isSynced:h.isSynced,setAttributes:v},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Spacing","otter-blocks"),value:null!==(r=h.inputGap)&&void 0!==r?r:16,onChange:e=>v({inputGap:e}),allowReset:!0,min:0,max:50,initialPositino:5})),(0,c.createElement)(k.Z,{field:"labelFontSize",isSynced:h.isSynced,setAttributes:v},(0,c.createElement)(s.FontSizePicker,{label:(0,l.__)("Font Size","otter-blocks"),fontSizes:mt,withReset:!0,value:h.labelFontSize,onChange:e=>v({labelFontSize:e})}))),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Input Styling","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.Z,{field:"inputFontSize",isSynced:h.isSynced,setAttributes:v},(0,c.createElement)(s.FontSizePicker,{label:(0,l.__)("Input Font Size","otter-blocks"),fontSizes:mt,withReset:!0,value:h.inputFontSize,onChange:e=>v({inputFontSize:e})})),(0,c.createElement)(k.Z,{field:"inputsGap",isSynced:h.isSynced,setAttributes:v},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Fields Spacing","otter-blocks"),value:null!==(n=h.inputsGap)&&void 0!==n?n:10,onChange:e=>v({inputsGap:e}),allowReset:!0,min:0,max:50,initialPosition:10})),(0,c.createElement)(k.Z,{field:"inputPadding",isSynced:h.isSynced,setAttributes:v},(0,c.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,c.createElement)(k.Z,{field:"inputsBorderRadius",isSynced:h.isSynced,setAttributes:v},(0,c.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,min:0,max:50})),(0,c.createElement)(k.Z,{field:"inputsBorderWidth",isSynced:h.isSynced,setAttributes:v},(0,c.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,min:0,max:50})),(0,c.createElement)(k.Z,{field:"helpFontSize",isSynced:h.isSynced,setAttributes:v},(0,c.createElement)("h2",null,(0,l.__)("Help Text Font Size","otter-blocks")),(0,c.createElement)(s.FontSizePicker,{label:(0,l.__)("Help Font Size","otter-blocks"),fontSizes:mt,withReset:!0,value:h.helpFontSize,onChange:e=>v({helpFontSize:e})}))),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Button","otter-blocks"),initialOpen:!1},(0,c.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,c.createElement)(k.Z,{field:"submitFontSize",isSynced:h.isSynced,setAttributes:v},(0,c.createElement)(s.FontSizePicker,{label:(0,l.__)("Font Size","otter-blocks"),fontSizes:mt,withReset:!0,value:h.submitFontSize,onChange:e=>v({submitFontSize:e})})),(0,c.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,c.createElement)(k.Z,{field:"messageFontSize",isSynced:h.isSynced,setAttributes:v},(0,c.createElement)("h2",null,(0,l.__)("Message Font Size","otter-blocks")),(0,c.createElement)(s.FontSizePicker,{label:(0,l.__)("Message Font Size","otter-blocks"),fontSizes:mt,withReset:!0,value:h.messageFontSize,onChange:e=>v({messageFontSize:e})}))),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Form Options","otter-blocks"),initialOpen:!1},"loading"===(null==x?void 0:x.formOptions)&&(0,c.createElement)("div",{className:"o-fetch-msg"},(0,c.createElement)(s.Spinner,null),(0,l.__)("Loading the options. Please wait...","otter-blocks")),(0,c.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,c.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,c.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,c.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,c.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,c.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,c.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,c.createElement)(s.ExternalLink,{href:T.redirectLink,style:{marginBottom:"10px",display:"block"}},(0,l.__)("Preview Redirect link.","otter-blocks")),(0,c.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,c.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,c.createElement)("div",{className:"o-fetch-msg o-error"},(0,l.__)("An error has occurred while saving. Please try again.","otter-blocks"))),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Test SMTP","otter-blocks"),initialOpen:!1},(0,c.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,c.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,c.createElement)("br",null),(0,c.createElement)(s.Button,{variant:"primary",isPrimary:!0,style:{marginTop:"8px"},onClick:E},(0,l.__)("Send Test Email","otter-blocks"))),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Bot Protection","otter-blocks"),initialOpen:!1},(0,c.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,c.createElement)("div",{style:{display:"flow-root",margin:"10px 0px"}},(0,l.__)("You can change the reCaptcha API Keys in Settings > Otter. ","otter-blocks"),(0,c.createElement)(s.ExternalLink,{href:"https://www.google.com/recaptcha/about/",target:"_blank"},(0,l.__)("Learn more about reCaptcha.","otter-blocks")))),(0,c.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,c.createElement)("br",null)," ",(0,c.createElement)("br",null),"loading"===(null==x?void 0:x.formIntegration)&&(0,c.createElement)("div",{className:"o-fetch-msg"},(0,c.createElement)(s.Spinner,null),(0,l.__)("Fetching data from server. Please wait.","otter-blocks")),(0,c.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,c.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,c.createElement)(c.Fragment,null,!T.apiKey&&(0,c.createElement)(c.Fragment,null,"mailchimp"===(null==T?void 0:T.provider)&&(0,c.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,c.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,c.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,c.createElement)(c.Fragment,null,(0,c.createElement)(s.Spinner,null),(0,l.__)("Loading the options.","otter-blocks"),(0,c.createElement)("br",null),(0,c.createElement)("br",null)),T.apiKey&&"error"===(null==x?void 0:x.listId)&&(0,c.createElement)(c.Fragment,null,(0,l.__)("Invalid API Key. Please check your API Key in the provider's Dashboard.","otter-blocks"),(0,c.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,c.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,c.createElement)(c.Fragment,null,(0,c.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,c.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,c.createElement)(c.Fragment,null,(0,c.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,c.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,c.createElement)("div",{style:{display:"flex",flexDirection:"row",gap:"10px"}},(0,c.createElement)(s.Button,{isPrimary:!0,variant:"primary",onClick:C,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==w||null===(b=w.integration)||void 0===b?void 0:b.provider)&&(null==w||null===(p=w.integration)||void 0===p?void 0:p.apiKey)&&(null==w||null===(g=w.integration)||void 0===g?void 0:g.listId)&&(0,c.createElement)(s.Button,{isSecondary:!0,variant:"secondary",onClick:M,isBusy:"saving"===(null==x?void 0:x.serviceTesting)},(0,c.createElement)(c.Fragment,null,(0,l.__)("Test Service","otter-blocks")))),"done"===(null==x?void 0:x.formIntegration)&&P&&(0,c.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,c.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,c.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,c.createElement)("div",{className:"o-fetch-msg o-error"},(0,l.__)("An error has occurred while saving. Please try again.","otter-blocks"))))},bt=e=>{let{className:t,loadingState:o,isSaving:a,saveAPIKey:r,siteKey:n,secretKey:i,setSiteKey:d,setSecretKey:m}=e;if("loading"===(null==o?void 0:o.captcha))return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("br",null),(0,c.createElement)(s.Placeholder,null,(0,c.createElement)("div",null,(0,c.createElement)(s.Spinner,null),(0,l.__)("Checking the API Keys for reCaptcha","otter-blocks"))));const u=i&&0<(null==i?void 0:i.length)-13?Array(i.length-13).fill("*").join("")+i.slice(-13):i;return(0,c.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,c.createElement)("div",{className:"components-placeholder__actions",style:{width:"100%"}},(0,c.createElement)(s.TextControl,{type:"text",label:(0,l.__)("Site Key","otter-blocks"),value:n,className:"components-placeholder__input",onChange:d}),(0,c.createElement)(s.TextControl,{type:"text",label:(0,l.__)("Secret Key","otter-blocks"),value:u,className:"components-placeholder__input",onChange:m}),(0,c.createElement)(s.Button,{isPrimary:!0,type:"submit",onClick:r,isBusy:a,disabled:""===n||""===i},(0,l.__)("Save","otter-blocks"))),(0,c.createElement)("div",{className:"components-placeholder__learn-more",style:{margin:"10px 0px"}},(0,l.__)("You need to activate reCaptcha API.","otter-blocks")," ",(0,c.createElement)(s.ExternalLink,{href:"http://www.google.com/recaptcha/admin"},(0,l.__)("Need an API key? Get one here.","otter-blocks"))))};const{attributes:pt}=ot,gt=(0,c.createContext)({});var ht=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"]}}'),kt=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.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,c.createElement)(s.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,c.createElement)(s.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholder,onChange:e=>o({placeholder:e})}),(0,c.createElement)(s.TextControl,{label:(0,l.__)("Help Text","otter-blocks"),value:t.helpText,onChange:e=>o({helpText:e})}),(0,c.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,c.createElement)(i.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:vt}=ht;const yt=[{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=i.useBlockProps.save();return(0,c.createElement)("div",o,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-input-label"},(0,c.createElement)(i.RichText.Content,{value:t.label,className:"otter-form-input-label__label",tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("input",{type:t.type,name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,className:"otter-form-input"}))}}];var _t=yt;const{name:ft}=ht;window.themeisleGutenberg.isAncestorTypeAvailable||(ht.parent=["themeisle-blocks/form"]),(0,a.registerBlockType)(ft,{...ht,title:(0,l.__)("Text Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:n.inputIcon,deprecated:_t,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,c.useEffect)((()=>{const e=(0,y.WX)(a,vt);return()=>e(t.id)}),[t.id]);const r=(0,i.useBlockProps)(),n=(0,c.useRef)(null),s=(0,c.useRef)(null),d=(0,c.useRef)(null);return(0,c.useEffect)((()=>{var e,o,l,a,r,c,i;s.current&&(null===(e=s.current)||void 0===e||null===(o=e.style)||void 0===o||o.setProperty("--inputWidth",(l=t.inputWidth)?l+"%":null)),n.current&&(null===(a=n.current)||void 0===a||null===(r=a.style)||void 0===r||r.setProperty("--labelColor",t.labelColor||null)),d.current&&(null===(c=d.current)||void 0===c||null===(i=c.style)||void 0===i||i.setProperty("--labelColor",t.labelColor||null))}),[s.current,n.current,d.current,t.labelColor,t.inputWidth]),(0,c.createElement)(c.Fragment,null,(0,c.createElement)(kt,{attributes:t,setAttributes:o}),(0,c.createElement)("div",r,(0,c.createElement)("label",{ref:n,htmlFor:t.id,className:"otter-form-input-label"},(0,c.createElement)(i.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,c.createElement)("span",{className:"required"},"*")),(0,c.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,c.createElement)("span",{className:"o-form-help",ref:d},t.helpText)))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({id:t.id});return(0,c.createElement)("div",o,(0,c.createElement)("label",{htmlFor:t.id?t.id+"-input":"",className:"otter-form-input-label"},(0,c.createElement)(i.RichText.Content,{value:t.label,className:"otter-form-input-label__label",tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},"*")),(0,c.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,c.createElement)("span",{className:"o-form-help"},t.helpText))}});var Ct=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:wt}=Ct;(0,a.registerBlockType)(wt,{...Ct,title:(0,l.__)("Nonce Field","otter-blocks"),description:(0,l.__)("Protect the form from CSRF.","otter-blocks"),icon:n.inputIcon,keywords:["protection","csrf","field"],edit:e=>{let{setAttributes:t,clientId:o}=e;const{parent:l}=(0,F.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:l}=e("core/block-editor");return{parent:t(l(o))}}),[]);return(0,c.useEffect)((()=>{l&&t({formId:l.attributes.id})}),[l]),null},save:()=>null});var Et=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"]}}'),xt=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(s.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,c.createElement)(s.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholder,onChange:e=>o({placeholder:e})}),(0,c.createElement)(s.TextControl,{label:(0,l.__)("Help Text","otter-blocks"),value:t.helpText,onChange:e=>o({helpText:e})}),(0,c.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:Tt}=Et;const St=[{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=i.useBlockProps.save();return(0,c.createElement)("div",o,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-textarea-label"},(0,c.createElement)(i.RichText.Content,{value:t.label,className:"otter-form-textarea-label__label",tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("textarea",{name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,rows:10,className:"otter-form-textarea-input"}))}}];var Mt=St;const{name:Bt}=Et;window.themeisleGutenberg.isAncestorTypeAvailable||(Et.parent=["themeisle-blocks/form"]),(0,a.registerBlockType)(Bt,{...Et,title:(0,l.__)("Textarea Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:n.inputIcon,deprecated:Mt,keywords:["textarea","message","input"],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,y.WX)(a,Tt);return()=>e(t.id)}),[t.id]);const r=(0,i.useBlockProps)(),n=(0,c.useRef)(null),s=(0,c.useRef)(null),d=(0,c.useRef)(null);return(0,c.useEffect)((()=>{var e,o,l,a,r,c,i;s.current&&(null===(e=s.current)||void 0===e||null===(o=e.style)||void 0===o||o.setProperty("--inputWidth",(l=t.inputWidth)?l+"%":l)),n.current&&(null===(a=n.current)||void 0===a||null===(r=a.style)||void 0===r||r.setProperty("--labelColor",t.labelColor||null)),d.current&&(null===(c=d.current)||void 0===c||null===(i=c.style)||void 0===i||i.setProperty("--labelColor",t.labelColor||null))}),[s.current,n.current,t]),(0,c.createElement)(c.Fragment,null,(0,c.createElement)(xt,{attributes:t,setAttributes:o}),(0,c.createElement)("div",r,(0,c.createElement)("label",{ref:n,htmlFor:t.id?t.id+"-input":"",className:"otter-form-textarea-label"},(0,c.createElement)(i.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,c.createElement)("span",{className:"required"},"*")),(0,c.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,c.createElement)("span",{className:"o-form-help",ref:d},t.helpText)))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({id:t.id});return(0,c.createElement)("div",o,(0,c.createElement)("label",{htmlFor:t.id?t.id+"-input":"",className:"otter-form-textarea-label"},(0,c.createElement)(i.RichText.Content,{value:t.label,className:"otter-form-textarea-label__label",tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},"*")),(0,c.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,c.createElement)("span",{className:"o-form-help"},t.helpText))}});const{name:zt}=ot;(0,a.registerBlockType)(zt,{...ot,title:(0,l.__)("Form","otter-blocks"),description:(0,l.__)("Display a form for your clients. Powered by Otter.","otter-blocks"),icon:n.contactIcon,keywords:["business","form","email"],edit:e=>{let{attributes:t,setAttributes:o,clientId:r,name:n}=e;const[s,d]=(0,c.useState)(""),[m,u]=(0,c.useState)(""),[b,p]=(0,c.useState)({formOptions:"done",formIntegration:"done",listId:"init",captcha:"init",serviceTesting:"init"}),k=e=>{p((t=>({...t,...e})))},[v,_]=(0,c.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,C]=(0,c.useState)(!0),[w,E]=(0,c.useState)([{label:(0,l.__)("None","otter-blocks"),value:""}]),{insertBlock:x,removeBlock:T}=(0,F.useDispatch)("core/block-editor"),{replaceInnerBlocks:S}=(0,F.useDispatch)("core/block-editor"),{createNotice:M}=(0,F.dispatch)("core/notices"),B=(0,F.useSelect)((e=>0<e("core/block-editor").getBlocks(r).length),[r]),{blockType:z,defaultVariation:P,variations:V}=(0,F.useSelect)((e=>{const{getBlockVariations:t,getBlockType:o,getDefaultBlockVariation:l}=e("core/blocks");return{blockType:o(n),defaultVariation:l(n,"block"),variations:t(n,"block")}}),[n]),{children:R,hasEmailField:L}=(0,F.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),o=t(r).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,c.useEffect)((()=>{const e=(0,y.WX)(r,pt);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{var e;t.id&&(0,F.select)("core/edit-widgets")?o({optionName:`widget_${t.id.slice(-8)}`}):t.id&&Boolean(window.themeisleGutenberg.isBlockEditor)&&null!==(e=(0,F.select)("core/editor"))&&void 0!==e&&e.getCurrentPostId()&&o({optionName:`${(0,F.select)("core/editor").getCurrentPostId()}_${t.id.slice(-8)}`})}),[t.id]),(0,c.useEffect)((()=>{if(R){const e=R.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=>{T(e.clientId,!1)}));else if(0===(null==e?void 0:e.length)&&r){const e=(0,a.createBlock)("themeisle-blocks/form-nonce");e&&(null==x||x(e,(null==R?void 0:R.length)||0,r,!1))}}}),[R]);const H=e=>null==e?void 0:e.filter((e=>{let{form:o}=e;return o===t.optionName})).pop(),N=e=>{var t,o,l,a;_({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,c.useEffect)((()=>{let e=new AbortController;const o=setTimeout((()=>{k({formOptions:"done",formIntegration:"done"})}),3e3);return t.optionName&&nt().loadPromise.then((()=>{k({formOptions:"loading",formIntegration:"loading"}),(new(nt().models.Settings)).fetch({signal:e.signal}).done((t=>{e=null;const l=H(t.themeisle_blocks_form_emails);l&&(N(l),C(l)),k({formIntegration:"done",formOptions:"done"}),clearTimeout(o)})).catch((()=>{k({formIntegration:"done",formOptions:"done"}),clearTimeout(o)}))})),()=>{var t;null===(t=e)||void 0===t||t.abort(),clearTimeout(o)}}),[t.optionName]),(0,c.useEffect)((()=>{let e,t=new AbortController;return v.apiKey&&v.provider&&(e=setTimeout((()=>k({listId:"timeout"})),6e3),k({listId:"loading"}),it()({path:"otter/v1/form/editor",method:"POST",data:{handler:"listId",payload:{provider:v.provider,apiKey:v.apiKey,action:v.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:""}),E(e),k({listId:"done"});const t=1===e.map((e=>{let{value:t}=e;return t})).filter((e=>e===v.listId)).length;v.listId&&!t&&M("error",(0,l.__)("The current contact list is invalid. Please choose a new contact list.","otter-blocks"),{isDismissible:!0,type:"snackbar"})}else M("error",null==o?void 0:o.error,{isDismissible:!0,type:"snackbar",id:"themeisle-form-server-error"}),k({listId:"error"})})).catch((e=>{console.error(e),k({listId:"error"})}))),()=>{var o;null===(o=t)||void 0===o||o.abort(),clearTimeout(e)}}),[v.apiKey,v.provider]),(0,c.useEffect)((()=>{let e=new AbortController;if(void 0!==t.hasCaptcha&&t.optionName)try{var o,a;null===(o=new(nt().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 r=!0,n=!1;null==a||a.forEach(((e,o)=>{let{form:l}=e;l===t.optionName&&(a[o].hasCaptcha!==t.hasCaptcha&&(n=!0),a[o].hasCaptcha=t.hasCaptcha,r=!1)})),r&&a.push({form:t.optionName,hasCaptcha:t.hasCaptcha}),(r||n)&&(new(nt().models.Settings)({themeisle_blocks_form_emails:a}).save(),M("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,c.useEffect)((()=>{let e=new AbortController;return t.hasCaptcha&&"init"===(null==b?void 0:b.captcha)&&(()=>{k({captcha:"loading"});try{var t;null===(t=new(nt().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?k({captcha:"done"}):(k({captcha:"missing"}),d(t.themeisle_google_captcha_api_site_key),u(t.themeisle_google_captcha_api_secret_key))})).catch((e=>{console.error(e),k({captcha:"error"})}))}catch(e){console.warn(e.message),k({captcha:"error"})}})(),()=>{var t;return null===(t=e)||void 0===t?void 0:t.abort()}}),[b.captcha,t.hasCaptcha]);const I={"--messageFontSize":void 0!==t.messageFontSize&&t.messageFontSize,"--inputFontSize":void 0!==t.inputFontSize&&t.inputFontSize,"--helpFontSize":void 0!==t.helpFontSize&&t.helpFontSize,"--inputColor":t.inputColor},A=(0,i.useBlockProps)({id:t.id,style:I}),G=(0,c.useRef)(null);return(0,c.useEffect)((()=>{const e=e=>void 0!==e?e+"px":null;var o,l,a,r,n,c,i,s,d,m,u,b,p,g,h,k,v,y,_,f,C,w,E,x,T,S,M;G.current&&(null===(o=G.current)||void 0===o||null===(l=o.style)||void 0===l||l.setProperty("--padding",(M=t.inputPadding)?M.top+" "+M.right+" "+M.bottom+" "+M.left:null),null===(a=G.current)||void 0===a||null===(r=a.style)||void 0===r||r.setProperty("--borderRadius",e(t.inputBorderRadius)),null===(n=G.current)||void 0===n||null===(c=n.style)||void 0===c||c.setProperty("--borderWidth",e(t.inputBorderWidth)),null===(i=G.current)||void 0===i||null===(s=i.style)||void 0===s||s.setProperty("--borderColor",t.inputBorderColor||null),null===(d=G.current)||void 0===d||null===(m=d.style)||void 0===m||m.setProperty("--labelColor",t.labelColor||null),null===(u=G.current)||void 0===u||null===(b=u.style)||void 0===b||b.setProperty("--inputWidth",(e=>void 0!==e?e+"%":null)(t.inputWidth)),null===(p=G.current)||void 0===p||null===(g=p.style)||void 0===g||g.setProperty("--submitColor",t.submitColor||null),null===(h=G.current)||void 0===h||null===(k=h.style)||void 0===k||k.setProperty("--requiredColor",t.inputRequiredColor||null),null===(v=G.current)||void 0===v||null===(y=v.style)||void 0===y||y.setProperty("--inputGap",e(t.inputGap)),null===(_=G.current)||void 0===_||null===(f=_.style)||void 0===f||f.setProperty("--inputsGap",e(t.inputsGap)),null===(C=G.current)||void 0===C||null===(w=C.style)||void 0===w||w.setProperty("--labelFontSize",t.labelFontSize),null===(E=G.current)||void 0===E||null===(x=E.style)||void 0===x||x.setProperty("--submitFontSize",t.submitFontSize),null===(T=G.current)||void 0===T||null===(S=T.style)||void 0===S||S.setProperty("--helpLabelColor",t.helpLabelColor))}),[G.current,t]),(0,h.tZ)(c.Fragment,null,(0,h.tZ)(gt.Provider,{value:{savedFormOptions:f,listIDOptions:w,setListIDOptions:E,saveFormEmailOptions:()=>{k({formOptions:"saving"}),(new(nt().models.Settings)).fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let a=!0,r=!1;null==o||o.forEach(((e,l)=>{let{form:n}=e;n===t.optionName&&(r=o[l].email!==v.emailTo||o[l].redirectLink!==v.redirectLink||o[l].emailSubject!==v.subject||o[l].submitMessage!==v.submitMessage||o[l].fromName!==v.fromName||o[l].cc!==v.cc||o[l].bcc!==v.bcc,o[l].email=v.emailTo,o[l].redirectLink=v.redirectLink,o[l].emailSubject=v.subject,o[l].submitMessage=v.submitMessage,o[l].fromName=v.fromName,o[l].cc=v.cc,o[l].bcc=v.bcc,a=!1)})),a&&o.push({form:t.optionName,email:v.emailTo,fromName:v.fromName,redirectLink:v.redirectLink,emailSubject:v.subject,submitMessage:v.submitMessage,cc:v.cc,bcc:v.bcc}),a||r?new(nt().models.Settings)({themeisle_blocks_form_emails:o}).save().then((e=>{const t=H(e.themeisle_blocks_form_emails);t?(N(t),C(t),k({formOptions:"done"}),M("info",(0,l.__)("Form options have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})):k({formOptions:"error"})})):k({formOptions:"done"})})).catch((()=>k({formOptions:"error"})))},formOptions:v,setFormOption:e=>{_((t=>({...t,...e})))},saveIntegration:()=>{var e;k({formIntegration:"saving"}),null===(e=new(nt().models.Settings))||void 0===e||e.fetch().done((e=>{const a=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let r=!0,n=!1;null==a||a.forEach(((e,o)=>{let{form:l}=e;var c,i,s,d,m;l===t.optionName&&(null!==(c=a[o])&&void 0!==c&&c.integration||(a[o].integration={}),n=(null===(i=a[o].integration)||void 0===i?void 0:i.provider)!==v.provider||(null===(s=a[o].integration)||void 0===s?void 0:s.listId)!==v.listId||(null===(d=a[o].integration)||void 0===d?void 0:d.action)!==v.action||(null===(m=a[o].integration)||void 0===m?void 0:m.apiKey)!==v.apiKey,r=!1,a[o].integration.provider=v.provider,a[o].integration.apiKey=v.apiKey,a[o].integration.listId=v.listId,a[o].integration.action=v.action)})),r&&a.push({form:t.optionName,integration:{provider:v.provider,apiKey:v.apiKey,listId:v.listId,action:v.action}}),r||n?new(nt().models.Settings)({themeisle_blocks_form_emails:a}).save().then((e=>{const t=H(e.themeisle_blocks_form_emails);var a;t&&(N(t),C(t),o({action:null==t||null===(a=t.integration)||void 0===a?void 0:a.action})),k({formIntegration:"done"}),n&&M("info",(0,l.__)("Integration details have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})})).catch((e=>{console.error(e),k({formIntegration:"error"})})):k({formIntegration:"done"})})).catch((()=>{k({formIntegration:"error"})}))},sendTestEmail:()=>{it()({path:"otter/v1/form/editor",method:"POST",data:{handler:"testEmail",payload:{provider:"default",to:null==v?void 0:v.emailTo,site:window.location.href}}}).then((e=>{null!=e&&e.success?M("info",(0,l.__)("The test email has been send. Check your emails for confirmation.","otter-blocks"),{isDismissible:!0,type:"snackbar"}):M("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),M("error",null==e?void 0:e.message,{isDismissible:!0,type:"snackbar"})}))},loadingState:b,testService:()=>{k({serviceTesting:"loading"}),it()({path:"otter/v1/form/editor",method:"POST",data:{handler:"testEmail",payload:{formOption:t.optionName}}}).then((e=>{null!=e&&e.success?(M("info",(0,l.__)("A test email has been registered to your contact list. Check your provider for confirmation.","otter-blocks"),{isDismissible:!0,type:"snackbar"}),k({serviceTesting:"done"})):(M("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"}),k({serviceTesting:"error"}))})).catch((e=>{console.error(e),M("error",null==e?void 0:e.message,{isDismissible:!0,type:"snackbar"}),k({testService:"error"})}))},hasEmailField:L}},(0,h.tZ)(ut,{attributes:t,setAttributes:o}),(0,h.tZ)("div",A,B?(0,h.tZ)("form",{ref:G,className:"otter-form__container",onSubmit:()=>!1},(0,h.tZ)(i.InnerBlocks,null),t.hasCaptcha&&"done"!==(null==b?void 0:b.captcha)&&(0,h.tZ)(bt,{className:"otter-form-captcha",loadingState:b,saveAPIKey:()=>{k({captcha:"loading"});try{var e,t,o;const a=new(nt().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?k({captcha:"done"}):k({captcha:"missing"}),u(""),d(""),M("info",(0,l.__)("Google reCaptcha API Keys have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"}).catch((e=>{console.error(e),k({captcha:"error"})}))})))||void 0===o||o.catch((e=>{console.error(e),k({captcha:"error"})}))}catch(e){console.warn(e.message),k({captcha:"error"})}},siteKey:s,secretKey:m,setSiteKey:d,setSecretKey:u}),"submit-subscribe"===t.action&&(0,h.tZ)("div",{className:"otter-form-consent"},(0,h.tZ)("input",{id:"o-consent",name:"o-consent",type:"checkbox"}),(0,h.tZ)("label",{htmlFor:"o-consent"},(0,l.__)("I have read and agreed the privacy statement.","otter-blocks"))),(0,h.tZ)("div",{className:g()("wp-block-button has-submit-msg",{right:"right"===t.submitStyle},{full:"full"===t.submitStyle})},(0,h.tZ)("button",{className:"wp-block-button__link",type:"submit",disabled:!0,css:h.iv`
|
104 |
+
${t.submitBackgroundColor&&`background-color: ${t.submitBackgroundColor} !important;`}
|
105 |
+
&:hover {
|
106 |
+
${t.submitBackgroundColorHover&&`background-color: ${t.submitBackgroundColorHover} !important;`}
|
107 |
+
}`},t.submitLabel?t.submitLabel:(0,l.__)("Submit","otter-blocks")),(0,h.tZ)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"}},(0,h.tZ)("div",{className:"o-form-server-response o-success",style:{color:t.submitMessageColor}},v.submitMessage||(0,l.__)("Success","otter-blocks")),(0,h.tZ)("div",{className:"o-form-server-response o-error",style:{color:t.submitMessageErrorColor,margin:"0px"}},(0,l.__)("Error. Please try again.","otter-blocks"))))):(0,h.tZ)(i.__experimentalBlockVariationPicker,{icon:(0,O.get)(z,["icon","src"]),label:(0,O.get)(z,["title"]),variations:V,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P;e&&S(r,(0,a.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0}))))},save:e=>{let{attributes:t}=e;const o=i.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,c.createElement)("div",o,(0,c.createElement)("form",{className:"otter-form__container"},(0,c.createElement)(i.InnerBlocks.Content,null),(0,c.createElement)("div",{className:g()("wp-block-button",{right:"right"===t.submitStyle},{full:"full"===t.submitStyle})},(0,c.createElement)("button",{className:"wp-block-button__link",type:"submit"},t.submitLabel?t.submitLabel:(0,l.__)("Submit","otter-blocks")))))},deprecated:at,variations:[{name:"themeisle-blocks/form-contact",description:(0,l.__)("Contact form for clients","otter-blocks"),icon:n.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:n.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 Pt=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"}'),Vt=o(4586),Rt=e=>{let{api:t,error:o,isAPILoaded:a,isAPISaved:r,isSaving:n,changeAPI:i,saveAPIKey:d}=e;return a?r?void 0:(0,c.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,c.createElement)("div",{className:"components-placeholder__actions"},(0,c.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:i}),(0,c.createElement)(s.Button,{isPrimary:!0,type:"submit",onClick:d,isBusy:n,disabled:""===t||o},(0,l.__)("Save","otter-blocks"))),(0,c.createElement)("div",{className:"components-placeholder__learn-more"},o&&(0,c.createElement)("p",null,(0,l.__)("The API key could not be validated.","otter-blocks")),(0,c.createElement)("p",null,(0,l.__)("You need to activate Maps and Places API.","otter-blocks")," ",(0,c.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,c.createElement)(s.Placeholder,null,(0,c.createElement)(s.Spinner,null),(0,l.__)("Loading…","otter-blocks"))};const Lt=e=>{let{label:t,value:o,options:l,onChange:a}=e;const r=`inspector-style-switcher-control-${(0,A.useInstanceId)(Lt)}`;return(0,c.createElement)(s.BaseControl,{id:r,label:t},(0,c.createElement)("div",{className:"o-style-switcher"},l.map((e=>(0,c.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,c.createElement)("div",{className:"o-style-switcher-item-preview"},(0,c.createElement)("img",{src:e.image})),(0,c.createElement)("div",{className:"o-style-switcher-item-label"},e.label))))))},Ht=Lt,Nt=e=>{let{label:t,value:o,options:l,onChange:a}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(s.ToolbarGroup,null,(0,c.createElement)(s.Dropdown,{contentClassName:"otter-styles-popover-content",position:"bottom center",renderToggle:e=>{let{isOpen:o,onToggle:l}=e;return(0,c.createElement)(s.Button,{className:"components-dropdown-menu__toggle",icon:"admin-appearance",onClick:l,"aria-haspopup":"true","aria-expanded":o,label:t,showTooltip:!0},(0,c.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"o-style-switcher"},l.map((e=>(0,c.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,c.createElement)("div",{className:"o-style-switcher-item-preview"},(0,c.createElement)("img",{src:e.image})),(0,c.createElement)("div",{className:"o-style-switcher-item-label"},e.label))))))})))},It=e=>{let{value:t,onChange:o}=e;const a=(0,A.useInstanceId)(It);(0,c.useEffect)((()=>{window.wp.oldEditor.initialize(n.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(n.current.id);return e.on("change",(()=>o(e.getContent()))),()=>window.wp.oldEditor.remove(n.current.id)}),[]);const r=`inspector-textarea-control-${a}`,n=(0,c.useRef)(null);return(0,c.createElement)(s.BaseControl,{id:r,label:(0,l.__)("Description","otter-blocks")},(0,c.createElement)("textarea",{id:r,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:n}))};var Ot=It,At=e=>{let{marker:t,isOpen:o,isPlaceAPIAvailable:a,openMarker:r,removeMarker:n,changeMarkerProp:i}=e;const d=(0,c.useRef)(null);return(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker"},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker-title-area"},(0,c.createElement)(s.Button,{className:"wp-block-themeisle-blocks-google-map-marker-title",onClick:()=>r(t.id)},t.title||(0,l.__)("Custom Marker","otter-blocks")),(0,c.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:()=>n(t.id)})),(0,c.createElement)("div",{className:g()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===o})},(0,c.createElement)(s.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,c.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();i(t.id,"location",o),i(t.id,"latitude",l),i(t.id,"longitude",a)}))}))},onChange:e=>i(t.id,"location",e.target.value),disabled:!a}),!a&&(0,c.createElement)("p",null,(0,l.__)("To enable locations earch, please ensure Places API is activated in the Google Developers Console.","otter-blocks")+" ",(0,c.createElement)(s.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,c.createElement)(s.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:t.latitude,onChange:e=>i(t.id,"latitude",e)}),(0,c.createElement)(s.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:t.longitude,onChange:e=>i(t.id,"longitude",e)}),(0,c.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=>i(t.id,"icon",e)}),(0,c.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:t.title,onChange:e=>i(t.id,"title",e)}),(0,c.createElement)(Ot,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>i(t.id,"description",e)})))},Ft=e=>{let{initialOpen:t,markers:o,isPlaceAPIAvailable:a,addMarker:r,removeMarker:n,changeMarkerProp:i}=e;(0,c.useEffect)((()=>{!1!==t&&m(t)}),[t]);const[d,m]=(0,c.useState)(null),u=e=>{d===e&&(e=null),m(e)};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},o.map((e=>(0,c.createElement)(At,{key:e.id,marker:e,isOpen:d,isPlaceAPIAvailable:a,openMarker:u,removeMarker:n,changeMarkerProp:i})))),(0,c.createElement)(s.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:r},(0,l.__)("Add Marker","otter-blocks")))},Gt=e=>{let{attributes:t,setAttributes:o,map:a,changeStyle:r,isPlaceAPIAvailable:n,isMarkerOpen:d,setMarkerOpen:m,removeMarker:u,changeMarkerProp:b,addMarkerManual:p,api:g,isSaving:h,changeAPI:k,saveAPIKey:v}=e;const y=(0,c.useRef)(null);return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,c.createElement)(Ht,{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:r})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,c.createElement)(s.BaseControl,{label:(0,l.__)("Location"),id:"wp-block-themeisle-blocks-google-map-search"},(0,c.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(),r=new window.google.maps.LatLng(t,l);a.setCenter(r),o({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:e=>{o({location:e.target.value})},disabled:!n}),!n&&(0,c.createElement)("p",null,(0,l.__)("To enable locations earch, please ensure Places API is activated in the Google Developers Console.","otter-blocks")+" ",(0,c.createElement)(s.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,c.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),r=t.longitude,n=new window.google.maps.LatLng(l,r);a.setCenter(n)}}),(0,c.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 l=t.latitude,r=Number(e),n=new window.google.maps.LatLng(l,r);a.setCenter(n)}})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,c.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,c.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,c.createElement)(s.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,c.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,c.createElement)(s.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Map Type Control","otter-blocks"),checked:t.mapTypeControl,onChange:()=>{o({mapTypeControl:!t.mapTypeControl})}}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Full Screen Control","otter-blocks"),checked:t.fullscreenControl,onChange:()=>{o({fullscreenControl:!t.fullscreenControl})}}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Streen View Control","otter-blocks"),checked:t.streetViewControl,onChange:()=>{o({streetViewControl:!t.streetViewControl})}})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1,opened:!1!==d||void 0,onToggle:()=>{!1!==d&&m(!0)}},(0,c.createElement)(Ft,{markers:t.markers,removeMarker:u,changeMarkerProp:b,addMarker:p,isPlaceAPIAvailable:n,initialOpen:d})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Global Settings","otter-blocks"),initialOpen:!1},(0,c.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,c.createElement)(s.Button,{isSecondary:!0,type:"submit",onClick:v,isBusy:h},(0,l.__)("Save API Key","otter-blocks"))))},$t=e=>{let{marker:t,isAdvanced:o,isPlaceAPIAvailable:a,addMarker:r,close:n}=e;(0,c.useEffect)((()=>{m(t.id),b(t.location),g(t.title),k(t.icon),y(t.description),f(t.latitude),w(t.longitude)}),[t]);const i=(0,c.useRef)(null),[d,m]=(0,c.useState)(t.id),[u,b]=(0,c.useState)(t.location),[p,g]=(0,c.useState)(t.title),[h,k]=(0,c.useState)(t.icon),[v,y]=(0,c.useState)(t.description),[_,f]=(0,c.useState)(t.latitude),[C,w]=(0,c.useState)(t.longitude);return(0,c.createElement)(s.Modal,{title:(0,l.__)("Add Marker","otter-blocks"),onRequestClose:n,shouldCloseOnClickOutside:!1},o&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,c.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:i,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const t=new window.google.maps.places.SearchBox(i.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),w(l)}))}))},onChange:e=>b(e.target.value),disabled:!a})),(0,c.createElement)(s.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:_,onChange:f}),(0,c.createElement)(s.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:C,onChange:w})),(0,c.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:p,onChange:g}),(0,c.createElement)(Ot,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:v,onChange:y}),(0,c.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,c.createElement)(s.ButtonGroup,null,(0,c.createElement)(s.Button,{isPrimary:!0,onClick:()=>r(u,p,h,v,_,C)},(0,l.__)("Add","otter-blocks")),(0,c.createElement)(s.Button,{isSecondary:!0,onClick:n},(0,l.__)("Cancel","otter-blocks"))))},Zt=e=>{let{attributes:t,initMap:o,displayMap:a,isMapLoaded:r,selectMarker:n,isSelectingMarker:i}=e;return(0,c.useEffect)((()=>{a&&o()}),[a]),(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{id:t.id,className:g()({"is-selecting-marker":i}),style:{height:t.height+"px"}}),r&&(0,c.createElement)(s.Button,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:(0,l.__)("Add Button","otter-blocks"),onClick:n},(0,c.createElement)("span",{className:"dashicons dashicons-sticky"})))},Dt={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:Wt}=Pt;const Ut={to:[{type:"block",blocks:["themeisle-blocks/leaflet-map"],transform:e=>{const t=(0,O.omit)(e,["style","mapTypeControl","fullscreenControl","streetViewControl"]);return(0,a.createBlock)("themeisle-blocks/leaflet-map",{...t})}}]};var jt=Ut;const{name:qt}=Pt;(0,a.registerBlockType)(qt,{...Pt,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:n.mapIcon,keywords:["map","google","orbitfox"],transforms:jt,edit:e=>{let{attributes:t,setAttributes:o,clientId:a,isSelected:r,toggleSelection:n}=e;(0,c.useEffect)((()=>{const e=(0,y.WX)(a,Wt);return()=>e(t.id)}),[t.id]),(0,c.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&&(w(!0),D(t.themeisle_google_map_block_api_key)))})):!_&&e&&(v(window.themeisleGutenberg.mapsAPI),f(!0),w(!0),D(window.themeisleGutenberg.mapsAPI))})(),window.isMapLoaded=window.isMapLoaded||!1,window[`removeMarker_${a.substr(0,8)}`]=q,window.gm_authFailure=function(){w(!1),Z(!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,c.useEffect)((()=>{!1!==C&&void 0!==window.google&&b.current.setOptions({mapTypeControl:!!r||t.mapTypeControl,zoomControl:!!r||t.zoomControl,fullscreenControl:!!r||t.fullscreenControl,streetViewControl:!!r||t.streetViewControl})}),[r]),(0,c.useEffect)((()=>{h.current=[...t.markers]}),[t.markers]);const d=(0,c.useRef)([]),m=(0,c.useRef)(null),u=(0,c.useRef)(null),b=(0,c.useRef)(null),p=(0,c.useRef)(null),h=(0,c.useRef)([...t.markers]),[k,v]=(0,c.useState)(""),[_,f]=(0,c.useState)(!1),[C,w]=(0,c.useState)(!1),[E,x]=(0,c.useState)(!1),[T,S]=(0,c.useState)(!1),[M,B]=(0,c.useState)(!0),[z,P]=(0,c.useState)(!1),[V,R]=(0,c.useState)(!1),[L,H]=(0,c.useState)(!1),[N,I]=(0,c.useState)(!1),[O,A]=(0,c.useState)(!1),[F,G]=(0,c.useState)({}),[$,Z]=(0,c.useState)(!1),D=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,r)=>{const n=`<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">${r?`<p>${r}</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>`,c=new window.google.maps.InfoWindow({content:n});e.addListener("click",(()=>{p.current=c,c.open(b.current,e)})),window.google.maps.event.addListener(c,"domready",(()=>{R(t)})),window.google.maps.event.addListener(c,"closeclick",(()=>{R(!1)}))},U=e=>{e.forEach((e=>{const t=e.latitude,o=e.longitude,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),w(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,D(e.themeisle_google_map_block_api_key))})))},X=e=>{o({style:e}),b.current.setOptions({styles:Dt[e]})},Q=(0,i.useBlockProps)({className:g()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":r})});return _&&C?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Nt,{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:X}),(0,c.createElement)(Gt,{attributes:t,setAttributes:o,map:b.current,changeStyle:X,isPlaceAPIAvailable:M,isMarkerOpen:V,setMarkerOpen:R,removeMarker:q,changeMarkerProp:j,addMarkerManual:()=>{const e=(0,Vt.Z)(),t=(0,l.__)("Custom Marker","otter-blocks"),o=b.current.getCenter(),a=o.lat(),r=o.lng();I(!0),A(!0),G({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:r})},api:k,isSaving:T,changeAPI:v,saveAPIKey:J}),N&&(0,c.createElement)($t,{marker:F,isAdvanced:O,isPlaceAPIAvailable:M,close:()=>I(!1),addMarker:(e,l,a,r,n,c)=>{const i=new window.google.maps.LatLng(n,c),s=(0,Vt.Z)(),m=new window.google.maps.Marker({position:i,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:r,latitude:n,longitude:c};u.push(g),o({markers:u}),window.google.maps.event.addListener(m,"click",(()=>{p.current&&p.current.close()})),W(m,g.id,l,r),I(!1),H(!1)}}),(0,c.createElement)("div",Q,(0,c.createElement)(s.ResizableBox,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{n(!1)},onResizeStop:(e,l,a,r)=>{o({height:parseInt(t.height+r.height,10)}),n(!0)}},(0,c.createElement)(Zt,{attributes:t,initMap:()=>{if(b.current=new window.google.maps.Map(document.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:Dt[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 e={query:t.location,fields:["name","geometry"]};new window.google.maps.places.PlacesService(b.current).findPlaceFromQuery(e,((e,t)=>{"REQUEST_DENIED"===t&&B(!1)}))},displayMap:z,isMapLoaded:E,selectMarker:()=>{H(!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,Vt.Z)(),o=(0,l.__)("Custom Marker","otter-blocks"),a=e.latLng.lat(),r=e.latLng.lng();I(!0),A(!1),G({id:t,location:"",title:o,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:r})}))},isSelectingMarker:L})))):(0,c.createElement)("div",Q,(0,c.createElement)(Rt,{api:k,error:$,isAPILoaded:_,isAPISaved:C,isSaving:T,changeAPI:e=>{v(e),Z(!1)},saveAPIKey:J}))},save:()=>null});var Kt=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"},"defaultIconPrefix":{"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"}'),Jt=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(i.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 Xt=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var Qt=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(s.Placeholder,null,(0,c.createElement)(s.Spinner,null))},(0,c.createElement)(Xt,{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,c.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})},min:0,max:60,allowReset:!0}),(0,c.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})},min:0,max:60,allowReset:!0}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Content Color","otter-blocks"),colorValue:t.defaultContentColor,onColorChange:e=>{o({defaultContentColor:e})}}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Icon Color","otter-blocks"),colorValue:t.defaultIconColor,onColorChange:e=>{o({defaultIconColor:e})}})))};const{attributes:Yt}=Kt;var eo=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 to=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var oo=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(s.Placeholder,null,(0,c.createElement)(s.Spinner,null))},(0,c.createElement)(to,{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,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Content Color","otter-blocks"),colorValue:t.contentColor,onColorChange:e=>{o({contentColor:e})}}),"image"!==t.library&&(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Icon Color","otter-blocks"),colorValue:t.iconColor,onColorChange:e=>{o({iconColor:e})}})))};const{attributes:lo}=eo;const{name:ao}=eo;(0,a.registerBlockType)(ao,{...eo,title:(0,l.__)("Icon List Item","otter-blocks"),description:(0,l.__)("Display an item for the icon list. Powered by Otter.","otter-blocks"),icon:n.faIcon,keywords:["item","icon","list"],merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:e=>{let{attributes:t,setAttributes:o,name:r,clientId:n,onReplace:s,onRemove:d,mergeBlocks:m}=e;const[u,b]=(0,c.useState)(!1),{hasParent:p,parentAttributes:k}=(0,F.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),l=t(o(n));return{hasParent:!!l,parentAttributes:l?l.attributes:{}}}),[]);(0,c.useEffect)((()=>{const e=(0,y.WX)(n,lo);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{o({library:t.library||k.defaultLibrary,icon:t.icon||k.defaultIcon,iconPrefix:t.iconPrefix||k.defaultIconPrefix})}),[p,k,t]),(0,c.useEffect)((()=>{if("image"===t.library)try{const e=new URL(t.icon);"http:"!==(null==e?void 0:e.protocol)&&"https:"!==(null==e?void 0:e.protocol)||b(!0)}catch(e){b(!1)}}),[t.library,t.icon]);const v=be.ZP.icons[t.icon],_=`${t.iconPrefix||k.defaultIconPrefix} fa-${t.icon||k.defaultIcon}`,f=h.iv`
|
108 |
+
--contentColor: ${t.contentColor||k.defaultContentColor};
|
109 |
+
--iconColor: ${t.iconColor||k.defaultIconColor};
|
110 |
+
`,C=(0,i.useBlockProps)({css:f});return(0,h.tZ)(c.Fragment,null,(0,h.tZ)(oo,{attributes:t,setAttributes:o}),(0,h.tZ)("div",C,"image"===t.library&&u?(0,h.tZ)("img",{src:t.icon}):"themeisle-icons"===t.library&&t.icon&&void 0!==v?(0,h.tZ)(v,{className:g()({"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}):(0,h.tZ)("i",{className:g()(_,{"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}),(0,h.tZ)(i.RichText,{identifier:"content",tagName:"p",placeholder:(0,l.__)("Write your content…","otter-blocks"),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,onChange:e=>{o({content:e})},onSplit:e=>e?(0,a.createBlock)(r,{...t,content:e}):(0,a.createBlock)(r),onMerge:m,onReplace:s,onRemove:d})))},save:e=>{let{attributes:t}=e;const o=`${t.iconPrefix} fa-${t.icon}`,l=be.ZP.icons[t.icon],a=i.useBlockProps.save({id:t.id});return(0,c.createElement)("div",a,"image"===t.library&&t.icon?(0,c.createElement)("img",{src:t.icon}):"themeisle-icons"===t.library&&t.icon?(0,c.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,c.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,c.createElement)(i.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:ro}=Kt;(0,a.registerBlockType)(ro,{...Kt,title:(0,l.__)("Icon List","otter-blocks"),description:(0,l.__)("Display an icon list in a beautiful layout. Powered by Otter.","otter-blocks"),icon:n.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,c.useEffect)((()=>{const e=(0,y.WX)(l,Yt);return()=>e(t.id)}),[t.id]);const a=h.iv`
|
111 |
--horizontalAlign: ${t.horizontalAlign};
|
112 |
${t.gap&&`--gap: ${t.gap}px;`}
|
113 |
${t.defaultSize&&`--fontSize: ${t.defaultSize}px;`}
|
114 |
+
`,r=(0,i.useBlockProps)({id:t.id,css:a});return(0,h.tZ)(c.Fragment,null,(0,h.tZ)(Jt,{attributes:t,setAttributes:o}),(0,h.tZ)(Qt,{attributes:t,setAttributes:o}),(0,h.tZ)("div",r,(0,h.tZ)(i.InnerBlocks,{allowedBlocks:["themeisle-blocks/icon-list-item"],__experimentalMoverDirection:"vertical",orientation:"vertical",template:[["themeisle-blocks/icon-list-item"]],renderAppender:i.InnerBlocks.DefaultAppender})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({id:t.id});return(0,c.createElement)("div",o,(0,c.createElement)(i.InnerBlocks.Content,null))}});var no=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 co(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 io=e=>{let{value:t,onChange:o}=e;const a=(0,A.useInstanceId)(io);(0,c.useEffect)((()=>{wp.oldEditor.initialize(n.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(n.current.id);return e.on("change",(()=>o(e.getContent()))),()=>wp.oldEditor.remove(n.current.id)}),[]);const r=`inspector-textarea-control-${a}`,n=(0,c.useRef)(null);return(0,c.createElement)(s.BaseControl,{id:r,label:(0,l.__)("Description","otter-blocks")},(0,c.createElement)("textarea",{id:r,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:n}))};var so=io,mo=e=>{let{marker:t,isOpen:o,openMarker:a,dispatch:r}=e;const[n,i]=(0,c.useState)(t.location),[d,m]=(0,c.useState)(t.longitude),[u,b]=(0,c.useState)(t.latitude),[p,h]=(0,c.useState)(t.title),[k,v]=(0,c.useState)(t.description),[y,_]=(0,c.useState)({target:"",reason:""});return(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker"},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-title-area"},(0,c.createElement)(s.Button,{className:"wp-block-themeisle-blocks-leaflet-map-marker-title",onClick:()=>a()},t.title||(0,l.__)("Custom Marker","otter-blocks")),(0,c.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:()=>r({type:go.REMOVE,ids:[t.id]})})),o&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-control-area"},(0,c.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:n,onChange:e=>{i(e)},help:(0,l.__)("Press Enter to search the location","otter-blocks"),onKeyDown:e=>((e,o)=>{e.key===o&&(async()=>{const e=await co(n);e?(r({type:go.UPDATE,ids:[t.id],updatedProps:{location:n,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,c.createElement)(s.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:u,onChange:e=>{b(e),r({type:go.UPDATE,ids:[t.id],updatedProps:{latitude:e}})}}),(0,c.createElement)(s.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:d,onChange:e=>{m(e),r({type:go.UPDATE,ids:[t.id],updatedProps:{longitude:e}})}}),(0,c.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:p,onChange:e=>{h(e),r({type:go.UPDATE,ids:[t.id],updatedProps:{title:e}})}}),(0,c.createElement)(so,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>{v(k),r({type:go.UPDATE,ids:[t.id],updatedProps:{description:e}})}})))},uo=e=>{let{markers:t,dispatch:o,markersInteraction:a}=e;const{openMarker:r,setOpenMarker:n}=a;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-group"},t.map((e=>(0,c.createElement)(mo,{key:e.id,marker:e,isOpen:r===e.id,openMarker:()=>n(a.openMarker!==e.id?e.id:null),dispatch:o})))),(0,c.createElement)(s.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-add",onClick:()=>{o({type:go.ADD,marker:{id:(0,Vt.Z)()},dispatch:o})}},(0,l.__)("Add Marker","otter-blocks")))},bo=e=>{let{attributes:t,setAttributes:o,dispatch:a,markersInteraction:r}=e;const[n,d]=(0,c.useState)(t.location),[m,u]=(0,c.useState)({target:"",reason:""});return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,c.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:n,onChange:d,onKeyDown:e=>((e,t)=>{e.key===t&&(async()=>{o({location:n});const e=await co(n);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,c.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,c.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Map Zoom Level","otter-blocks"),value:t.zoom,onChange:e=>{o({zoom:e})},min:0,max:20}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,c.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,c.createElement)(s.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1},(0,c.createElement)(uo,{markers:t.markers,dispatch:a,markersInteraction:r})))};const{attributes:po}=no,go={ADD:"ADD",ADD_MANUAL:"ADD_MANUAL",REMOVE:"REMOVE",UPDATE:"UPDATE",INIT:"INIT"};const ho={to:[{type:"block",blocks:["themeisle-blocks/google-map"],transform:e=>{const t=e;return(0,a.createBlock)("themeisle-blocks/google-map",{...t})}}]};var ko=ho;const{name:vo}=no;(0,a.registerBlockType)(vo,{...no,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:n.mapIcon,keywords:["map","opeenstreetmap","location"],transforms:ko,edit:e=>{let{clientId:t,attributes:o,setAttributes:a,isSelected:r,toggleSelection:n}=e;(0,c.useEffect)((()=>{const e=(0,y.WX)(t,po);return()=>e(o.id)}),[o.id]);const d=(0,c.useRef)(null),[m,u]=(0,c.useState)(null),[b,p]=(0,c.useState)(!1),[h,k]=(0,c.useState)(null),v=(e,t)=>{if(window.L&&m&&t&&e){var o,a,r,n,c;null!==(o=e.id)&&void 0!==o||(e.id=(0,Vt.Z)()),null!==(a=e.latitude)&&void 0!==a||(e.latitude=m.getCenter().lat),null!==(r=e.longitude)&&void 0!==r||(e.longitude=m.getCenter().lng),null!==(n=e.title)&&void 0!==n||(e.title=(0,l.__)("Add a title","otter-blocks")),null!==(c=e.description)&&void 0!==c||(e.description="");const i=window.L.marker([e.latitude,e.longitude]||0,{draggable:!0});return i.on("movestart",(()=>{i.closeTooltip(),i.closePopup()})),i.on("moveend",(()=>{const o=i.getLatLng();t({type:go.UPDATE,ids:[e.id],updatedProps:{latitude:o.lat,longitude:o.lng}})})),i.on("click",(()=>{k(e.id)})),i.markerProps=e,i}return null},[_,f]=(0,c.useReducer)(((e,t)=>{switch(t.type){case go.ADD:const o=v(t.marker,t.dispatch);return[...e,o];case go.ADD_MANUAL:if(b){const o=v(t.marker,t.dispatch);return[...e,o]}return e;case go.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 go.INIT:const a=t.markers.map((e=>v(e,t.dispatch)));return[...e,...a];case go.UPDATE:return e.map((e=>{const o=e.markerProps;return t.ids.includes(o.id)&&(e.markerProps=(0,O.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}),[],(()=>[]));(0,c.useEffect)((()=>{(()=>{if(!d.current&&!window.L)return;d.current.innerHTML="";const e=window.L.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")}}});window.L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:["a","b","c"]}).addTo(e),e.on("zoom",(()=>{a({zoom:e.getZoom()})})),e.on("moveend",(()=>{const t=e.getCenter();a({latitude:t.lat.toString(),longitude:t.lng.toString()})})),e.on("click",(e=>{f({type:go.ADD_MANUAL,marker:{latitude:e.latlng.lat,longitude:e.latlng.lng},dispatch:f}),p(!1)})),window.L.Control.AddMarker=window.L.Control.extend({onAdd:()=>{const e=window.L.DomUtil.create("button","wp-block-themeisle-blocks-leaflet-map-marker-button"),t=window.L.DomUtil.create("span","dashicons dashicons-sticky",e);return window.L.DomEvent.on(e,"click",(e=>{window.L.DomEvent.stopPropagation(e),p(!b)})),e.title=(0,l.__)("Add marker on the map with a click","otter-blocks"),e.appendChild(t),e},onRemove:()=>{}}),window.L.control.addmarker=e=>new window.L.Control.AddMarker(e),window.L.control.addmarker({position:"bottomleft"}).addTo(e),u(e),f({type:go.INIT,markers:o.markers,dispatch:f})})()}),[]),(0,c.useEffect)((()=>{o.height&&m&&m.invalidateSize(!0)}),[o.height,m]),(0,c.useEffect)((()=>{o.latitude&&o.longitude&&m&&m.setView([o.latitude,o.longitude],o.zoom||15)}),[o.latitude,o.longitude,o.zoom,m]),(0,c.useEffect)((()=>{var e;null===(e=d.current)||void 0===e||e.classList.toggle("is-selecting-location",b)}),[b]),(0,c.useEffect)((()=>{o.latitude&&o.longitude&&m&&a({bbox:m.getBounds().toBBoxString()})}),[o.latitude,o.longitude,m]),(0,c.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"),r=document.createElement("div"),n=document.createElement("p"),c=document.createElement("button");return a.innerHTML=e.title,n.innerHTML=e.description,c.onclick=()=>t({type:go.REMOVE,ids:[e.id]}),c.innerHTML=(0,l.__)("Delete Marker","otter-blocks"),o.classList.add("wp-block-themeisle-blocks-map-overview"),r.classList.add("wp-block-themeisle-blocks-map-overview-content"),a.classList.add("wp-block-themeisle-blocks-map-overview-title"),c.classList.add("wp-block-themeisle-blocks-map-overview-delete"),o.appendChild(a),o.appendChild(r),o.appendChild(c),r.appendChild(n),o})(t,f))})),o.markers.length!==_.length&&m&&a({markers:_.map((e=>{let{markerProps:t}=e;return t}))}))}),[_,m,o.markers]);const C=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(bo,{attributes:o,setAttributes:a,dispatch:f,markersInteraction:{openMarker:h,setOpenMarker:k}}),(0,c.createElement)("div",C,(0,c.createElement)(s.ResizableBox,{size:{height:o.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{n(!1)},onResizeStop:(e,t,l,r)=>{a({height:parseInt(o.height+r.height,10)}),n(!0)},className:g()("wp-block-themeisle-blocks-leaflet-map-resizer",{"is-focused":r})},(0,c.createElement)("div",{id:o.id,ref:d,style:{width:"100%",height:o.height||400}}))))},save:()=>null});var yo=o(2553),_o=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"}'),fo=e=>{var t;let{className:o,file:a,onChange:r,attributes:n}=e;const[d,m]=(0,c.useState)((null===(t=n.file)||void 0===t?void 0:t.url)||null);return Boolean(window.themeisleGutenberg.isWPVIP)?(0,c.createElement)(s.Placeholder,{label:(0,l.__)("Lottie","otter-blocks"),instructions:(0,l.__)("Add Lottie animations and files to your website.","otter-blocks"),icon:(0,c.createElement)(i.BlockIcon,{icon:yo.Z}),className:o},(0,c.createElement)("form",{onSubmit:e=>(e&&e.preventDefault(),r(d))},(0,c.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,c.createElement)(s.Button,{isPrimary:!0,disabled:!d,type:"submit"},(0,l.__)("Embed","otter-blocks")))):(0,c.createElement)(i.MediaPlaceholder,{labels:{title:(0,l.__)("Lottie","otter-blocks"),instructions:(0,l.__)("Add Lottie animations and files to your website.","otter-blocks")},icon:(0,c.createElement)(i.BlockIcon,{icon:yo.Z}),accept:["application/json"],allowedTypes:["application/json"],value:{...a},onSelectURL:r,onSelect:r})},Co=e=>{let{attributes:t,setAttributes:o,playerRef:a}=e;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks"),initialOpen:!0},(0,c.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,c.createElement)(c.Fragment,null,(0,c.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,c.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,c.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,c.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,c.createElement)(i.__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,c.createElement)(s.PanelBody,{title:(0,l.__)("Background","otter-blocks"),initialOpen:!1},(0,c.createElement)(i.__experimentalColorGradientControl,{colorValue:t.backgroundColor,gradientValue:t.backgroundGradient,onColorChange:e=>o({backgroundColor:e}),onGradientChange:e=>o({backgroundGradient:e}),className:"otter-lottie-background-control"}))),(0,c.createElement)(i.InspectorAdvancedControls,null,(0,c.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})})))},wo=e=>{let{isEditing:t,setEditing:o}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(s.ToolbarGroup,null,(0,c.createElement)(s.Tooltip,{text:t?(0,l.__)("Save","otter-blocks"):(0,l.__)("Edit","otter-blocks")},(0,c.createElement)(s.Button,{onClick:()=>o(!t)},(0,c.createElement)(s.Dashicon,{icon:t?"yes":"edit"})))))},Eo=e=>{let{attributes:t,isSelected:o,playerRef:l}=e;(0,c.useEffect)((()=>{!(0,O.isEmpty)(t.file)&&t.loop&&null!==l.current&&l.current.addEventListener("complete",a)}),[]),(0,c.useEffect)((()=>{o?(l.current.play(),t.direction&&l.current.seek("100%")):l.current.stop()}),[o]);const a=()=>{l.current&&(l.current.setLooping(t.loop),l.current.play(),l.current.removeEventListener("complete",a))};return(0,c.createElement)("lottie-player",(0,N.Z)({id:t.id,ref:l,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:xo}=_o;const{name:To}=_o;(0,a.registerBlockType)(To,{..._o,title:(0,l.__)("Lottie Animation","otter-blocks"),description:(0,l.__)("Add Lottie animations to your WordPress. Powered by Otter.","otter-blocks"),icon:yo.Z,keywords:["media","lottie","animation"],edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a}=e;const r=(0,c.useRef)(null),[n,s]=(0,c.useState)(!Boolean(t.file));(0,c.useEffect)((()=>{const e=(0,y.WX)(a,xo);return()=>e(t.id)}),[t.id]);const d=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(!(0,O.isEmpty)(t.file)&&n||!n)&&(0,c.createElement)(wo,{isEditing:n,setEditing:s}),!((0,O.isEmpty)(t.file)||n)&&(0,c.createElement)(Co,{attributes:t,setAttributes:o,playerRef:r}),(0,c.createElement)("div",d,((0,O.isEmpty)(t.file)||n)&&(0,c.createElement)(fo,{value:t.file,onChange:e=>{if(""===e||null===e)return;const t=(0,O.pick)(e,["id","url"]);(0,O.isEmpty)(t)&&(t.url=e),o({file:{...t}}),s(!1)},attributes:t}),!((0,O.isEmpty)(t.file)||n)&&(0,c.createElement)(Eo,{attributes:t,isSelected:l,playerRef:r})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({id:t.id,src:t.file?t.file.url:"",width:t.width});return"scroll"===t.trigger?(0,c.createElement)("lottie-player",(0,N.Z)({trigger:t.trigger,background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o)):(0,c.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))}});var So=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"}'),Mo=o(4932),Bo=e=>{let{setAttributes:t,hasError:o,setError:a,className:r}=e;const n=(0,c.useRef)(null);let i=!1;const d=[],[m,u]=(0,c.useState)(!1),[b,p]=(0,c.useState)(""),[g,h]=(0,c.useState)({}),[k,v]=(0,c.useState)(null);(0,c.useEffect)((()=>{let e=null;return null===k||i||(i=!0,(0,Mo.Z)(d[k],n.current,{onlyScrollIfNeeded:!0}),d[k].focus(),e=setTimeout((()=>{i=!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,c.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:r},(0,c.createElement)("div",{className:"o-plugin-cards-search-field"},(0,c.createElement)(s.Dashicon,{icon:"search"}),m&&(0,c.createElement)(s.Spinner,null),(0,c.createElement)(s.TextControl,{type:"text",placeholder:(0,l.__)("Search for plugin…","otter-blocks"),value:b,onChange:p,onKeyDown:e=>{switch(e.keyCode){case ie.UP:y(e);break;case ie.DOWN:_(e);break;case ie.TAB:Object.keys(g).length&&!e.shiftKey&&v(0);break;case ie.ENTER:(async e=>{t({slug:""}),u(!0),a(!1);const o=await it()({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,c.createElement)("div",{tabIndex:"-1",className:"o-plugin-cards-search-results",ref:n},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,c.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 ie.UP:y(e);break;case ie.DOWN:_(e);break;case ie.TAB:if(e.shiftKey){0!==k&&y(e);break}if(k===Object.keys(g).length-1)break;_(e);break;case ie.ENTER:f(t)}})(e,t)},(0,c.createElement)("img",{src:o}),(0,c.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,O.unescape)(t.name)}}));var l})))),o&&(0,c.createElement)("div",{className:"o-plugin-cards-error"},(0,c.createElement)("span",null,(0,l.__)("There seems to be an error. Make sure your internet is working properly.","otter-blocks"))))},zo=e=>{let{setAttributes:t}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(s.ToolbarGroup,null,(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Edit","otter-blocks")},(0,c.createElement)(s.Button,{className:"components-icon-button components-toolbar__control o-plugin-cards-edit-plugin-card",onClick:()=>t({slug:void 0})},(0,c.createElement)(s.Dashicon,{icon:"edit"})))))};const{name:Po}=So;(0,a.registerBlockType)(Po,{...So,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:n.pluginsIcon,keywords:["plugin","card","orbitfox"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[l,a]=(0,c.useState)(!1),r=(0,i.useBlockProps)();return t.slug?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(zo,{setAttributes:o}),(0,c.createElement)("div",r,(0,c.createElement)(s.Disabled,null,(0,c.createElement)(m(),{block:"themeisle-blocks/plugin-cards",attributes:{...t}})))):(0,c.createElement)("div",r,(0,c.createElement)(Bo,{attributes:t,setAttributes:o,hasError:l,setError:a}))},save:()=>null});var Vo=o(7682),Ro=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"}'),Lo=o(6755),Ho=o(7231),No=o(2694),Io=o(9084);const Oo=()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.Disabled,null,(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Close On Anchor Click","otter-blocks"),checked:!1,onChange:()=>{}}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Dismiss for Recurring Visitors","otter-blocks"),checked:!1,onChange:()=>{}})),(0,c.createElement)(Io.Z,{notice:(0,c.createElement)(s.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,l.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"}));var Ao=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,No.applyFilters)("otter.popupBlock.triggers",a),(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.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,c.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,No.applyFilters)("otter.popupBlock.controls",(0,c.createElement)((()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Show Close Button","otter-blocks"),checked:t.showClose,onChange:()=>o({showClose:!t.showClose})}),(0,c.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,c.createElement)(Oo,null))),null),t,o)),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Style","otter-blocks"),initialOpen:!1},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Minimum Width","otter-blocks"),min:100,max:1e3,value:t.minWidth,allowReset:!0,onChange:e=>o({minWidth:Number(e)})}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Maximum Width","otter-blocks"),min:100,max:1e3,value:t.maxWidth,allowReset:!0,onChange:e=>o({maxWidth:Number(e)})}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>o({backgroundColor:e})}),t.showClose&&(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Close Button","otter-blocks"),colorValue:t.closeColor,onColorChange:e=>o({closeColor:e})}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Overlay","otter-blocks"),colorValue:t.overlayColor,onColorChange:e=>o({overlayColor:e})}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Overlay Opacity","otter-blocks"),value:t.overlayOpacity,onChange:e=>o({overlayOpacity:Number(e)})})))};const{attributes:Fo}=Ro;const{name:Go}=Ro;(0,a.registerBlockType)(Go,{...Ro,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:Vo.Z,keywords:["popup","modal","lightbox"],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,y.WX)(a,Fo);return()=>e(t.id)}),[]);const[r,n]=(0,c.useState)(!1),d=h.iv`
|
|
|
|
|
|
|
115 |
--minWidth: ${t.minWidth?t.minWidth+"px":"400px"};
|
116 |
--maxWidth: ${t.maxWidth?t.maxWidth+"px":void 0};
|
117 |
--backgroundColor: ${t.backgroundColor};
|
118 |
--closeColor: ${t.closeColor};
|
119 |
--overlayColor: ${t.overlayColor};
|
120 |
--overlayOpacity: ${t.overlayOpacity?t.overlayOpacity/100:1};
|
121 |
+
`,m=(0,i.useBlockProps)({id:t.id,css:d});return(0,h.tZ)(c.Fragment,null,(0,h.tZ)(Ao,{attributes:t,setAttributes:o}),(0,h.tZ)("div",m,(0,h.tZ)(s.Button,{isPrimary:!0,icon:Lo.Z,onClick:()=>n(!0)},(0,l.__)("Edit Popup","otter-blocks")),r&&(0,h.tZ)("div",{className:"otter-popup__modal_wrap"},(0,h.tZ)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay",onClick:()=>n(!1)}),(0,h.tZ)("div",{className:"otter-popup__modal_content"},t.showClose&&(0,h.tZ)("div",{className:"otter-popup__modal_header"},(0,h.tZ)(s.Button,{icon:Ho.Z,onClick:()=>n(!1)})),(0,h.tZ)("div",{className:"otter-popup__modal_body"},(0,h.tZ)(i.InnerBlocks,null))))))},save:e=>{let{attributes:t}=e;const o=i.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,c.createElement)("div",o,(0,c.createElement)("div",{className:"otter-popup__modal_wrap"},(0,c.createElement)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay"}),(0,c.createElement)("div",{className:"otter-popup__modal_content"},t.showClose&&(0,c.createElement)("div",{className:"otter-popup__modal_header"},(0,c.createElement)("button",{type:"button",class:"components-button has-icon"},(0,c.createElement)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},(0,c.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,c.createElement)("div",{className:"otter-popup__modal_body"},(0,c.createElement)(i.InnerBlocks.Content,null)))))}});var $o=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:Zo}=$o;var Do=[{attributes:{...Zo,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}],Wo=e=>{let{attributes:t,setAttributes:o}=e;const a=i.BlockVerticalAlignmentToolbar;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(a,{label:(0,l.__)("Change vertical alignment","otter-blocks"),value:t.verticalAlign,onChange:e=>o({verticalAlign:e})}))},Uo=o(454),jo=o.n(Uo),qo=o(1286);const Ko=(0,qo.W6)((()=>(0,c.createElement)("div",{className:"o-sortable-handle",tabIndex:"0"},(0,c.createElement)("span",null)))),Jo={image:"displayFeaturedImage",category:"displayCategory",title:"displayTitle",meta:"displayMeta",description:"displayDescription"},Xo=e=>{var t,o;let{attributes:a,setAttributes:r,template:n,disabled:i}=e;const[d,m]=(0,c.useState)(!1),u=null==n?void 0:n.startsWith("custom_"),b=null==a||null===(t=a.customMetas)||void 0===t||null===(o=t.filter((e=>{let{id:t}=e;return t===n})))||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,F.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};r({customMetas:a.customMetas.map((e=>e.id===b.id?t:e))})},v=u?(0,No.applyFilters)("otter.postsBlock.panelLabel","",b):(0,O.startCase)((0,O.toLower)(n)),y=p[n]||(null==b?void 0:b.display),_=y?"visibility":"hidden";
|
|
|
|
|
|
|
|
|
122 |
/* translators: %s Label */
|
123 |
+
let f=(0,l.sprintf)((0,l.__)("Display %s","otter-blocks"),v);return y&&(
|
124 |
/* translators: %s Label */
|
125 |
+
f=(0,l.sprintf)((0,l.__)("Hide %s","otter-blocks"),v)),(0,c.createElement)("div",{className:g()("o-sortable-item-area",`o-sortable-item-area-${n}`)},(0,c.createElement)("div",{className:g()("o-sortable-item",{disabled:i,hidden:!y,editable:y})},!i&&(0,c.createElement)(Ko,null),(0,c.createElement)("div",{className:"o-sortable-label"},v),y&&"category"!==n&&(0,c.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,c.createElement)(s.Button,{icon:_,label:f,showTooltip:!0,className:"o-sortable-button",onClick:()=>{u?k({display:!b.display}):(e=>{const t=Jo[e]||e;r({[t]:!a[t]})})(n),m(!1)}})),y&&"category"!==n&&(0,c.createElement)("div",{className:g()("o-sortable-control-area",{opened:d&&y})},"image"===n&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.SelectControl,{label:(0,l.__)("Image Size","otter-blocks"),value:a.imageSize,options:window.themeisleGutenberg.imageSizes.map((e=>({label:(0,O.startCase)((0,O.toLower)(e)),value:e}))),onChange:e=>r({imageSize:e})}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Crop image to fit","otter-blocks"),checked:a.cropImage,onChange:e=>r({cropImage:e})}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display box shadow","otter-blocks"),checked:a.imageBoxShadow,onChange:e=>r({imageBoxShadow:e})}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:a.borderRadius,onChange:e=>r({borderRadius:e}),min:0,max:50,allowReset:!0}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Image Width","otter-blocks"),value:a.imageWidth,onChange:e=>r({imageWidth:e}),min:0,max:500,allowReset:!0})),"title"===n&&(0,c.createElement)(c.Fragment,null,(0,c.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=>r({titleTag:e})}),(0,c.createElement)(D.Z,{label:(0,l.__)("Font size","otter-blocks")},(0,c.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?r({customTitleFontSize:e}):"Tablet"===h?r({customTitleFontSizeTablet:e}):"Mobile"===h&&r({customTitleFontSizeMobile:e})},min:0,max:50,allowReset:!0}))),"meta"===n&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display post date","otter-blocks"),checked:a.displayDate,onChange:e=>r({displayDate:e})}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display author","otter-blocks"),checked:a.displayAuthor,onChange:e=>r({displayAuthor:e})}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display comments","otter-blocks"),checked:a.displayComments,onChange:e=>r({displayComments:e})}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display category","otter-blocks"),checked:a.displayPostCategory,onChange:e=>r({displayPostCategory:e})})),"description"===n&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.TextControl,{label:(0,l.__)("Excerpt Limit","otter-blocks"),type:"number",value:a.excerptLength,onChange:e=>r({excerptLength:Number(e)})}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display read more link","otter-blocks"),checked:a.displayReadMoreLink,onChange:e=>r({displayReadMoreLink:e})}),(0,c.createElement)(D.Z,{label:(0,l.__)("Font size","otter-blocks")},(0,c.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?r({customDescriptionFontSize:e}):"Tablet"===h?r({customDescriptionFontSizeTablet:e}):"Mobile"===h&&r({customDescriptionFontSizeMobile:e})},min:0,max:50,allowReset:!0}))),(0,No.applyFilters)("otter.postsBlock.controls","",a,r,u,b,k)))},Qo=(0,qo.W8)((e=>{let{attributes:t,setAttributes:o,template:l,disabled:a}=e;return(0,c.createElement)(Xo,{attributes:t,setAttributes:o,template:l,disabled:a})})),Yo=(0,qo.JN)((e=>{var t;let{attributes:o,setAttributes:l}=e;return(0,c.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,c.createElement)(Qo,{key:`item-${e}`,index:t,attributes:o,setAttributes:l,template:e}))))})),el=()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.Button,{variant:"secondary",isSecondary:!0,className:"o-conditions__add",disabled:!0,onClick:()=>{}},(0,l.__)("Add Meta Field","otter-blocks")),(0,c.createElement)("br",null),(0,c.createElement)(Io.Z,{notice:(0,c.createElement)(s.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,l.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"}));var tl=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:g()("o-sortable",t.style)},(0,c.createElement)(Xo,{attributes:t,setAttributes:o,template:"image",disabled:!0}),(0,c.createElement)(Yo,{attributes:t,setAttributes:o,onSortEnd:e=>{let{oldIndex:l,newIndex:a}=e;const r=jo()(t.template,l,a);o({template:r})},useDragHandle:!0,axis:"y",lockAxis:"y"}),(0,No.applyFilters)("otter.postsBlock.sortableContainer",(0,c.createElement)(el,null),t,o)))},ol=o(8286),ll=e=>{let{attributes:t,setAttributes:o,changeStyle:a,categoriesList:r}=e;const{slugs:n}=(0,F.useSelect)((e=>({slugs:e("otter-store").getPostsSlugs()})),[t.postTypes]),d=r.reduce(((e,t)=>({...e,[t.name]:t})),{}),m=t.categories?t.categories.map((e=>{const t=r.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,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,c.createElement)(Ht,{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,c.createElement)(s.PanelBody,{title:(0,l.__)("Post Types","otter-blocks"),initialOpen:!1},(0,c.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,c.createElement)(s.SelectControl,{label:(0,l.__)("Post Type","otter-blocks"),value:t.postTypes[0]||null,onChange:e=>e&&o({postTypes:[e]}),options:n.map((e=>({label:(0,Ve.__)(e),value:e})))})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},"grid"===t.style&&(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Columns","otter-blocks"),value:t.columns,onChange:e=>{o({columns:e})},min:1,max:5}),(0,c.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=r.find((t=>t.name===e));return t?{id:t.id,name:e}:void 0})).filter((e=>void 0!==e))):""!==e&&(t=[{id:e,name:r.find((t=>t.id===Number(e))).name}]),o({categories:t})}}),(0,c.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,c.createElement)(s.ToggleControl,{label:(0,l.__)("Enable featured post","otter-blocks"),checked:t.enableFeaturedPost,onChange:e=>o({enableFeaturedPost:e})}),(0,c.createElement)(s.BaseControl,{label:(0,l.__)("Text alignment","otter-blocks")},(0,c.createElement)(ol.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Design & Layout","otter-blocks"),initialOpen:!1},(0,c.createElement)(tl,{attributes:t,setAttributes:o})))},al=e=>{let{id:t,link:o,alt:l,size:a,imgStyle:r}=e;const{featuredImage:n,altText:i}=(0,F.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===n?(0,c.createElement)(c.Fragment,null):(0,c.createElement)("div",{className:"o-posts-grid-post-image"},(0,c.createElement)("a",{href:o},n?(0,c.createElement)("img",{src:n,size:a,alt:i,"data-id":t,style:r}):(0,c.createElement)(s.Placeholder,null,(0,c.createElement)(s.Spinner,null))))};const rl=e=>{let{attributes:t,element:o,category:l,categoriesList:a}=e;return void 0!==l&&t.displayCategory&&a?(0,c.createElement)("span",{key:o,className:"o-posts-grid-post-category"},l.name):""},nl=e=>{let{attributes:t,element:o,post:l}=e;const a=t.titleTag||"h5";var r;return t.displayTitle?(0,c.createElement)(a,{key:o,className:"o-posts-grid-post-title"},(0,c.createElement)("a",{href:l.link},(0,Ve.Uo)(null===(r=l.title)||void 0===r?void 0:r.rendered))):""},cl=e=>{let{attributes:t,element:o,post:a,author:r,category:n}=e;return t.displayMeta&&(t.displayDate||t.displayAuthor)?(0,c.createElement)("p",{key:o,className:"o-posts-grid-post-meta"},t.displayDate&&
|
126 |
+
/* translators: %s Date posted */
|
127 |
+
(0,l.sprintf)((0,l.__)("on %s","otter-blocks"),(0,Ve.p6)(a.date)),t.displayAuthor&&void 0!==r&&
|
128 |
+
/* translators: %s Author of the post */
|
129 |
+
(0,l.sprintf)((0,l.__)(" by %s","otter-blocks"),r.name),t.displayComments&&(0,l.sprintf)(" - %1$s %2$s","0",(0,l.__)("comments","otter-blocks")),t.displayPostCategory&&void 0!==(null==n?void 0:n.name)&&(0,l.sprintf)((0,l.__)(" - %s","otter-blocks"),n.name)):""},il=e=>{let{attributes:t,element:o,post:a}=e;var r;return 0<t.excerptLength&&t.displayDescription?(0,c.createElement)("div",{key:o,className:"o-posts-grid-post-description"},(0,c.createElement)("p",null,(null===(r=a.excerpt)||void 0===r?void 0:r.rendered)&&(0,Ve.Uo)(a.excerpt.rendered).substring(0,t.excerptLength)+"…"),t.displayReadMoreLink&&(0,c.createElement)("a",{href:a.link,className:"o-posts-read-more"},(0,l.__)("Read more","otter-blocks"))):""};var sl=e=>{let{attributes:t,posts:o,categoriesList:l,authors:a}=e;return(0,c.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,r;const n=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,i=a&&e.author?a.find((t=>t.id===e.author)):void 0;return(0,c.createElement)("div",{key:e.link,className:"o-posts-grid-post-blog o-posts-grid-post-plain"},(0,c.createElement)("div",{className:g()("o-posts-grid-post")},0!==e.featured_media&&t.displayFeaturedImage&&(0,c.createElement)(al,{id:e.featured_media,link:e.link,alt:null===(r=e.title)||void 0===r?void 0:r.rendered,size:t.imageSize,imgStyle:{borderRadius:void 0!==t.borderRadius?t.borderRadius+"px":void 0}}),(0,c.createElement)("div",{className:g()("o-posts-grid-post-body",{"is-full":!t.displayFeaturedImage})},t.template.map((o=>{switch(o){case"category":return(0,c.createElement)(rl,{key:o,attributes:t,element:o,category:n,categoriesList:l});case"title":return(0,c.createElement)(nl,{key:o,attributes:t,element:o,post:e});case"meta":return(0,c.createElement)(cl,{key:o,attributes:t,element:o,post:e,author:i,category:n});case"description":return(0,c.createElement)(il,{key:o,attributes:t,element:o,post:e});default:return(0,No.applyFilters)("otter.postsBlock.templateLoop","",o,t)}})))))})))};const dl={posts:{slugs:[],usedSlugs:[]}};(0,F.registerGenericStore)("otter-store",(()=>{let e=()=>{};const t=dl,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 ml=e=>{var t;let{post:o,attributes:l,author:a,category:r}=e;return o?(0,c.createElement)("div",{className:g()("o-featured-post",{"has-shadow":l.imageBoxShadow})},l.displayFeaturedImage&&(0,c.createElement)(al,{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,c.createElement)("div",{className:"o-posts-grid-post-body"},l.template.map((e=>{switch(e){case"title":return(0,c.createElement)(nl,{attributes:l,element:e,post:o});case"meta":return(0,c.createElement)(cl,{attributes:l,element:e,post:o,author:a,category:r});case"description":return(0,c.createElement)(il,{attributes:l,element:e,post:o});default:return(0,No.applyFilters)("otter.postsBlock.templateLoop","",e,l)}})))):""};const{attributes:ul}=$o;const{name:bl}=$o;(0,a.registerBlockType)(bl,{...$o,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:n.postsIcon,keywords:["posts","grid","news"],deprecated:Do,edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,y.WX)(a,ul);return()=>e(t.id)}),[t.id]);const[r,n]=(0,c.useState)([]),{posts:d,categoriesList:m,authors:u}=(0,F.useSelect)((e=>{const o=t.categories&&0<t.categories.length?t.categories.map((e=>e.id)):[],l=(0,O.pickBy)({categories:o,order:t.order,orderby:t.orderBy,per_page:t.postsToShow,offset:t.offset},(e=>!(0,O.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,c.useEffect)((()=>{(async()=>{n(await(0,Ve.R3)())})()}),[]),(0,c.useEffect)((()=>{(0,F.dispatch)("otter-store").setPostsSlugs(r)}),[r]);const p=h.iv`
|
130 |
${t.imageWidth&&`--imgWidth: ${t.imageWidth}px;`}
|
131 |
${t.borderRadius&&`--imgBorderRadius: ${t.borderRadius}px;`}
|
132 |
+
--vertAlign: ${(0,Ve.Vg)(t.verticalAlign)};
|
133 |
--textAlign: ${t.textAlign};
|
134 |
|
135 |
@media ( min-width: 960px ) {
|
146 |
${t.customTitleFontSizeMobile&&`--titleTextSize: ${t.customTitleFontSizeMobile}px;`}
|
147 |
${t.customDescriptionFontSizeMobile&&`--descriptionTextSize: ${t.customDescriptionFontSizeMobile}px;`}
|
148 |
}
|
149 |
+
`,g=(0,i.useBlockProps)();return d&&m&&u?0===d.length?(0,h.tZ)(c.Fragment,null,(0,h.tZ)("div",g,(0,h.tZ)(s.Placeholder,null,(0,l.__)("No Posts","otter-blocks"))),m&&t.offset||r.length?(0,h.tZ)(ll,{attributes:t,setAttributes:o,changeStyle:b,categoriesList:m}):null):(0,h.tZ)(c.Fragment,null,(0,h.tZ)(Nt,{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,h.tZ)(ll,{attributes:t,setAttributes:o,changeStyle:b,categoriesList:m,posts:d}),(0,h.tZ)(Wo,{attributes:t,setAttributes:o}),(0,h.tZ)("div",(0,N.Z)({},g,{css:p}),(0,h.tZ)(s.Disabled,null,t.enableFeaturedPost&&(0,h.tZ)(ml,{attributes:t,post:null==d?void 0:d[0],category:m[0],author:u[0]}),(0,h.tZ)(sl,{attributes:t,posts:d,categoriesList:m,authors:u})))):(0,h.tZ)(c.Fragment,null,(0,h.tZ)("div",g,(0,h.tZ)(s.Placeholder,null,(0,h.tZ)(s.Spinner,null),(0,l.__)("Loading Posts","otter-blocks"))),m&&t.offset?(0,h.tZ)(ll,{attributes:t,setAttributes:o,changeStyle:b,categoriesList:m}):null)},save:()=>null});var pl=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 & 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 & 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 & 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:gl}=(0,F.select)("core/blocks"),hl=()=>{const e=setInterval((()=>{if(void 0===gl("themeisle-blocks/advanced-columns"))return hl();const t=(0,a.parse)(pl.kQ);(0,a.registerBlockVariation)("themeisle-blocks/advanced-columns",{name:"themeisle-blocks/section-pricing",title:(0,l.__)("Pricing Section","otter-blocks"),icon:n.pricingIcon,scope:"inserter",attributes:t[0].attributes,innerBlocks:t[0].innerBlocks}),clearInterval(e)}),2e3)};hl();var kl=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"}'),vl=e=>{let{attributes:t,setAttributes:o,onHeightChange:a,heightMode:r,setHeightMode:n}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(s.TextControl,{label:(0,l.__)("Title","otter-blocks"),value:t.title,onChange:e=>{o({title:e})}}),(0,c.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,O.clamp)(e,0,100),o({percentage:e}))},min:0,max:100}),(0,c.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,O.clamp)(e,0,3),o({duration:e}))},min:0,max:3,step:.1}),30<=t.height&&(0,c.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,c.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=>{r.isAutomatic&&(r.percentagePosition=e,n({...r})),o({percentagePosition:e})}})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Style","otter-blocks"),initialOpen:!1},(0,c.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,min:0,max:100}),(0,c.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})},initialPosition:5,min:0,max:35}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Progress Color","otter-blocks"),colorValue:t.barBackgroundColor,onColorChange:e=>{o({barBackgroundColor:e})}}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Title Color","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>{o({titleColor:e})}}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Percentage Color","otter-blocks"),colorValue:t.percentageColor,onColorChange:e=>{o({percentageColor:e})}}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Background Color","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>{o({backgroundColor:e})}})))};const{attributes:yl}=kl;const _l={to:[{type:"block",blocks:["themeisle-blocks/circle-counter"],transform:e=>{const t=(0,O.omit)(e,["titleStyle","percentagePosition","height","borderRadius","barBackgroundColor","percentageColor"]);return(0,a.createBlock)("themeisle-blocks/circle-counter",{...t,progressColor:e.barBackgroundColor,height:(0,O.clamp)(4*e.height,0,240),titleStyle:"default"})}}]};var fl=_l;const{name:Cl}=kl;(0,a.registerBlockType)(Cl,{...kl,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:fl,edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a,toggleSelection:r}=e;(0,c.useEffect)((()=>{const e=(0,y.WX)(a,yl);return()=>e(t.id)}),[t.id]);const[n,d]=(0,c.useState)(!1),[m,u]=(0,c.useState)({isAutomatic:!1,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),b=(0,c.useRef)(null);(0,c.useEffect)((()=>{let e=null;if(b.current)return d(!1),e=setTimeout((()=>d(!0)),1e3*t.duration),b.current.animate({width:`${t.percentage}%`},{duration:1e3*t.duration,easing:"linear",fill:"forwards"}),()=>{clearTimeout(e)}}),[t.percentage,t.duration]);const p=e=>{30>e?(m.isAutomatic||u({isAutomatic:!0,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),o({height:e,titleStyle:"outer",percentagePosition:"append"===t.percentagePosition||"default"===t.percentagePosition?"outer":t.percentagePosition})):(m.isAutomatic&&u({isAutomatic:!1}),o({titleStyle:m.isAutomatic?m.titleStyle:t.titleStyle,percentagePosition:m.isAutomatic?m.percentagePosition:t.percentagePosition,height:e}))},k=h.iv`
|
150 |
--titleColor: ${t.titleColor};
|
151 |
--percentageColor: ${t.percentageColor};
|
152 |
--percentageColorOuter: ${t.percentageColor};
|
156 |
--borderRadius: ${void 0!==t.borderRadius?t.borderRadius:5}px;
|
157 |
--height: ${void 0!==t.height?t.height:30}px;
|
158 |
--barBackground: ${t.barBackgroundColor};
|
159 |
+
`,v=(0,i.useBlockProps)({id:t.id,className:g()({"has-tooltip":"tooltip"===t.percentagePosition}),css:k});return(0,h.tZ)(c.Fragment,null,(0,h.tZ)(vl,{attributes:t,setAttributes:o,onHeightChange:p,heightMode:m,setHeightMode:u}),(0,h.tZ)("div",v,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,h.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,h.tZ)(i.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-progress-bar__outer__title",value:t.title,onChange:e=>o({title:e})}),"outer"===t.percentagePosition&&n&&(0,h.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__outer__value"},`${t.percentage}%`)),(0,h.tZ)(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)=>{p(parseInt(t.height+a.height,10)),r(!0)},onResizeStart:()=>{r(!1)}},(0,h.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,h.tZ)("div",{className:g()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,h.tZ)(i.RichText,{tagName:"span",allowedFormats:[],value:t.title,onChange:e=>o({title:e})})),(0,h.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar show",ref:b},"tooltip"===t.percentagePosition&&n&&(0,h.tZ)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip show"},`${t.percentage}%`,(0,h.tZ)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&n&&(0,h.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append show"},`${t.percentage}%`)),"default"===t.percentagePosition&&n&&(0,h.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress"},`${t.percentage}%`)))))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({id:t.id,className:g()({"has-tooltip":"tooltip"===t.percentagePosition}),"data-percent":t.percentage,"data-duration":t.duration});return(0,c.createElement)("div",o,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__outer__title"},t.title),"outer"===t.percentagePosition&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer__value wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,c.createElement)("div",{className:g()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,c.createElement)("span",null,t.title)),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar"},"tooltip"===t.percentagePosition&&(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip"},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__number"},t.percentage),(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),"default"===t.percentagePosition&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__number"},`${t.percentage}%`)))}});var wl=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"}'),El=o(1463),xl=o.n(El);const Tl=e=>{let{title:t,remove:o,children:a}=e;const[r,n]=(0,c.useState)(!1);return(0,c.createElement)("div",{className:"o-review__inspector_panel_item"},(0,c.createElement)("div",{className:"o-review__inspector_panel_item__header"},(0,c.createElement)(s.Button,{className:"o-review__inspector_panel_item__title",onClick:()=>n(!r)},t),(0,c.createElement)(s.Button,{icon:"no-alt",label:(0,l.__)("Remove","otter-blocks"),showTooltip:!0,className:"o-review__inspector_panel_item__arrow",onClick:o})),r&&(0,c.createElement)("div",{className:"o-review__inspector_panel_item__content"},a))};var Sl=e=>{var t,o,a,r,n;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,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Product Details","otter-blocks")},d.product&&(0,c.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,c.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,c.createElement)(s.BaseControl,null,(0,c.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,c.createElement)(s.ExternalLink,{href:"https://en.wikipedia.org/wiki/ISO_4217#Active_codes"},(0,l.__)("List of ISO 4217 codes.","otter-blocks"))),(0,c.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,c.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,c.createElement)(s.BaseControl,{className:"o-review__inspector_image"},(0,c.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,c.createElement)(s.Button,{isSecondary:!0,onClick:()=>m({image:void 0}),disabled:d.product},(0,l.__)("Remove image","otter-blocks"))):(0,c.createElement)(i.MediaPlaceholder,{labels:{title:(0,l.__)("Product Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:d.image,onSelect:e=>m({image:(0,O.pick)(e,["id","alt","url"])})})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Product Features","otter-blocks"),initialOpen:!1},0<d.features.length&&d.features.map(((e,t)=>(0,c.createElement)(Tl,{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,c.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,c.createElement)(s.RangeControl,{label:(0,l.__)("Rating","otter-blocks"),value:e.rating,onChange:e=>p(t,{rating:Number(e)}),min:1,max:10})))),(0,c.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Pros","otter-blocks"),initialOpen:!1},0<d.pros.length&&d.pros.map(((e,t)=>(0,c.createElement)(Tl,{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,c.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,c.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Cons","otter-blocks"),initialOpen:!1},0<d.cons.length&&d.cons.map(((e,t)=>(0,c.createElement)(Tl,{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,c.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,c.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Links","otter-blocks"),initialOpen:!1},d.product&&(0,c.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===(r=b.links)||void 0===r?void 0:r.map(((e,t)=>(0,c.createElement)(Tl,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>h(t)},(0,c.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,c.createElement)(s.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,disabled:d.product}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,disabled:d.product}))))),!(0<(null==b||null===(n=b.links)||void 0===n?void 0:n.length))&&(0,c.createElement)(c.Fragment,null,0<d.links.length&&d.links.map(((e,t)=>(0,c.createElement)(Tl,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>h(t)},(0,c.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,c.createElement)(s.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,onChange:e=>g(t,{href:e})}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,onChange:()=>g(t,{isSponsored:!e.isSponsored})})))),(0,c.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.Z,{field:"primaryColor",isSynced:d.isSynced,setAttributes:m},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Primary","otter-blocks"),colorValue:u("primaryColor"),onColorChange:e=>m({primaryColor:e})})),(0,c.createElement)(k.Z,{field:"backgroundColor",isSynced:d.isSynced,setAttributes:m},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:u("backgroundColor"),onColorChange:e=>m({backgroundColor:e})})),(0,c.createElement)(i.ContrastChecker,{textColor:u("primaryColor"),backgroundColor:u("backgroundColor")}),(0,c.createElement)(k.Z,{field:"textColor",isSynced:d.isSynced,setAttributes:m},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Text","otter-blocks"),colorValue:u("textColor"),onColorChange:e=>m({textColor:e})})),(0,c.createElement)(k.Z,{field:"buttonTextColor",isSynced:d.isSynced,setAttributes:m},(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Button Text","otter-blocks"),colorValue:u("buttonTextColor"),onColorChange:e=>m({buttonTextColor:e})}))),!Boolean(window.themeisleGutenberg.hasPro)&&(0,c.createElement)(s.PanelBody,{title:(0,l.__)("More Features","otter-blocks"),initialOpen:!1},(0,c.createElement)(Io.Z,{notice:(0,c.createElement)(s.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,l.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"})))};const{attributes:Ml}=wl;const{name:Bl,attributes:zl}=wl;window.themeisleGutenberg.defaultReviewAttributes=zl,(0,a.registerBlockType)(Bl,{...wl,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:n.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,r,d;let{name:m,attributes:u,setAttributes:b,clientId:p,isSelected:k,status:v="isInactive",productAttributes:_={}}=e;(0,c.useEffect)((()=>{const e=(0,y.WX)(p,Ml);return()=>e(u.id)}),[u.id]);const f=e=>(0,y.Ih)({name:m,field:e,defaultAttributes:Ml,attributes:u}),C=(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,h.tZ)(n.StarFilled,{key:e,className:g()({low:3>=Math.round(C)&&e<Math.round(C),medium:3<Math.round(C)&&8>Math.round(C)&&e<Math.round(C),high:7<Math.round(C)&&10>=Math.round(C)&&e<Math.round(C)})}));const E=h.iv`
|
160 |
+
--backgroundColor: ${f("backgroundColor")};
|
161 |
+
--primaryColor: ${f("primaryColor")};
|
162 |
+
--textColor: ${f("textColor")};
|
163 |
+
--buttonTextColor: ${f("buttonTextColor")};
|
164 |
+
`,x="object"==typeof v&&null!==v&&v.isError||"isLoading"===v;let T=(0,i.useBlockProps)({id:u.id,className:x&&"is-placeholder",css:E});return"isLoading"===v?(0,h.tZ)(c.Fragment,null,(0,h.tZ)(Sl,{attributes:u,setAttributes:b,getValue:f,productAttributes:_}),(0,h.tZ)("div",T,(0,h.tZ)(s.Placeholder,null,(0,h.tZ)(s.Spinner,null)))):"object"==typeof v&&null!==v&&v.isError?(0,h.tZ)(c.Fragment,null,(0,h.tZ)(Sl,{attributes:u,setAttributes:b,getValue:f,productAttributes:_}),(0,h.tZ)("div",T,(0,h.tZ)(s.Placeholder,{instructions:v.message}))):(0,h.tZ)(c.Fragment,null,(0,h.tZ)(Sl,{attributes:u,setAttributes:b,getValue:f,productAttributes:_}),(0,h.tZ)("div",T,(0,h.tZ)("div",{className:"o-review__header"},null!=_&&_.title?(0,h.tZ)(i.RichText.Content,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:null==_?void 0:_.title,tagName:"h3"}):(0,h.tZ)(i.RichText,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:u.title,onChange:e=>b({title:e}),tagName:"h3"}),(0,h.tZ)("div",{className:"o-review__header_meta"},(0,h.tZ)("div",{className:"o-review__header_ratings"},w,(0,h.tZ)("span",null,
|
165 |
/** translators: %s Rating score. */
|
166 |
+
(0,l.sprintf)((0,l.__)("%f out of 10","otter-blocks"),Math.abs(C)||0))),(0,h.tZ)("span",{className:"o-review__header_price"},((null==_?void 0:_.price)&&(null==_?void 0:_.discounted)||u.price&&u.discounted)&&(0,h.tZ)("del",null,(null!==(t=xl()((null==_?void 0:_.currency)||u.currency))&&void 0!==t?t:"$")+""+((null==_?void 0:_.price)||u.price)||0),(u.price||u.discounted||(null==_?void 0:_.price)||(null==_?void 0:_.discounted))&&(null!==(o=xl()((null==_?void 0:_.currency)||u.currency))&&void 0!==o?o:"$")+""+(null!=_&&_.discounted||u.discounted?(null==_?void 0:_.discounted)||u.discounted:(null==_?void 0:_.price)||u.price)))),(0,h.tZ)("div",{className:"o-review__left"},(0,h.tZ)("div",{className:g()("o-review__left_details",{"is-single":!u.image||!k&&!u.description})},null!=_&&_.image?(0,h.tZ)("img",{src:null==_||null===(a=_.image)||void 0===a?void 0:a.url,alt:null==_||null===(r=_.image)||void 0===r?void 0:r.alt}):u.image&&(0,h.tZ)("img",{src:u.image.url,alt:u.image.alt}),!k&&!u.description||null!=_&&_.description?(0,h.tZ)(i.RichText.Content,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:null==_?void 0:_.description,tagName:"p"}):(0,h.tZ)(i.RichText,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:u.description,onChange:e=>b({description:e}),tagName:"p"})),(0,h.tZ)("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,h.tZ)(n.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,h.tZ)("div",{className:"o-review__left_feature",key:t},(0,h.tZ)(i.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,h.tZ)("div",{className:"o-review__left_feature_ratings"},o,(0,h.tZ)("span",null,e.rating.toFixed(1),"/10")))})))),(0,h.tZ)("div",{className:"o-review__right"},0<u.pros.length&&(0,h.tZ)("div",{className:"o-review__right_pros"},(0,h.tZ)("h4",null,(0,l.__)("Pros","otter-blocks")),u.pros.map(((e,t)=>(0,h.tZ)("div",{className:"o-review__right_pros_item",key:t},n.check,(0,h.tZ)(i.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,h.tZ)("div",{className:"o-review__right_cons"},(0,h.tZ)("h4",null,(0,l.__)("Cons","otter-blocks")),u.cons.map(((e,t)=>(0,h.tZ)("div",{className:"o-review__right_cons_item",key:t},n.close,(0,h.tZ)(i.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==_||null===(d=_.links)||void 0===d?void 0:d.length)||0<u.links.length)&&(0,h.tZ)("div",{className:"o-review__footer"},(0,h.tZ)("span",{className:"o-review__footer_label"},(0,l.__)("Buy this product","otter-blocks")),(0,h.tZ)("div",{className:"o-review__footer_buttons"},((null==_?void 0:_.links)||u.links).map(((e,t)=>(0,h.tZ)(i.RichText,{key:t,placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,disabled:0<(null==_?void 0:_.links),onChange:e=>((e,t)=>{const o=[...u.links];o[e]={...o[e],...t},b({links:o})})(t,{label:e}),tagName:"span"})))))))},save:()=>null});var Pl=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","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":false},"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":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 Vl={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"}},Rl=e=>{let{type:t,front:o,style:l,fill:a,invert:r,width:n,height:i}=e;return"none"!==l&&(0,c.createElement)("div",{className:g()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&n?{transform:n?`scaleX( ${n/100} )`:""}:{}},"bigTriangle"===l&&!1===r&&(0,c.createElement)(s.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(s.Path,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===r&&(0,c.createElement)(s.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(s.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===r&&(0,c.createElement)(s.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(s.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===r&&(0,c.createElement)(s.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(s.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,c.createElement)(s.SVG,{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(s.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===r&&(0,c.createElement)(s.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(s.Path,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===r&&(0,c.createElement)(s.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(s.Path,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,c.createElement)(s.SVG,{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.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"})))},Ll=e=>{let{type:t,front:o,style:l,fill:a,invert:r,width:n,height:i}=e;return"none"!==l&&(0,c.createElement)("div",{className:g()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&n?{transform:n?`scaleX( ${n/100} )`:""}:{}},"bigTriangle"===l&&!1===r&&(0,c.createElement)(s.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,c.createElement)(s.Path,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===r&&(0,c.createElement)(s.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,c.createElement)(s.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===r&&(0,c.createElement)(s.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,c.createElement)(s.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===r&&(0,c.createElement)(s.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,c.createElement)(s.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,c.createElement)(s.SVG,{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,c.createElement)(s.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===r&&(0,c.createElement)(s.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,c.createElement)(s.Path,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===r&&(0,c.createElement)(s.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,c.createElement)(s.Path,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,c.createElement)(s.SVG,{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,c.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"})))},Hl=[{attributes:Vl,supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,r,n,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&&(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&&(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 ${V()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const m={...a,...n,...s,...d,justifyContent:t.horizontalAlign};if("color"===t.backgroundOverlayType&&(r={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(r={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}`,r={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={...r,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,c.createElement)(l,{className:v,id:t.id,style:m},(0,c.createElement)("div",{className:"wp-themeisle-block-overlay",style:u}),(0,c.createElement)(Rl,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap",style:b},(0,c.createElement)(i.InnerBlocks.Content,null)),(0,c.createElement)(Rl,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:Vl,supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,r,n,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&&(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&&(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 ${V()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const m={...a,...n,...s,...d,justifyContent:t.horizontalAlign};if("color"===t.backgroundOverlayType&&(r={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(r={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}`,r={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={...r,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,c.createElement)(l,{className:v,id:t.id,style:m},(0,c.createElement)("div",{className:"wp-themeisle-block-overlay",style:u}),(0,c.createElement)(Rl,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap",style:b},(0,c.createElement)(i.InnerBlocks.Content,null)),(0,c.createElement)(Rl,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...Vl,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`,r=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,n=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,s=g()(o,`has-${t.columns}-columns`,a,r,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-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:s,id:t.id},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(Ll,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(i.InnerBlocks.Content,null)),(0,c.createElement)(Ll,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...Vl,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}${V()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${V()(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}${V()(e.backgroundOverlayGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientFirstLocation}%, ${V()(e.backgroundOverlayGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientSecondLocation}%)`}return{...{...(0,O.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`,r=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,n=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,s=g()(o,`has-${t.columns}-columns`,a,r,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-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:s,id:t.id},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(Ll,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(i.InnerBlocks.Content,null)),(0,c.createElement)(Ll,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...(0,O.omit)(Vl,["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={},r={},n={},c={},i={};let s={},d={},m={},u={};"unlinked"===e.paddingType?(t.top=(0,O.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,O.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,O.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,O.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,O.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,O.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,O.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,O.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,O.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,O.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,O.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,O.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,O.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,O.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,O.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,O.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,O.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,O.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,O.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,O.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,O.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,O.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,O.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,O.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(a.top=(0,O.isUndefined)(e.margin)?"20px":e.margin+"px",a.bottom=(0,O.isUndefined)(e.margin)?"20px":e.margin+"px"):(a.top=(0,O.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",a.bottom=(0,O.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px"),"linked"===e.marginTypeTablet?(r.top=(0,O.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",r.bottom=(0,O.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(r.top=(0,O.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",r.bottom=(0,O.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px"),"linked"===e.marginTypeMobile?(n.top=(0,O.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",n.bottom=(0,O.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(n.top=(0,O.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",n.bottom=(0,O.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px"),"unlinked"===e.borderType?(c.top=(0,O.isUndefined)(e.borderTop)?null:e.borderTop+"px",c.bottom=(0,O.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",c.left=(0,O.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",c.right=(0,O.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(c.top=(0,O.isUndefined)(e.border)?null:e.border+"px",c.bottom=(0,O.isUndefined)(e.border)?null:e.border+"px",c.left=(0,O.isUndefined)(e.border)?null:e.border+"px",c.right=(0,O.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(i.top=(0,O.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",i.bottom=(0,O.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",i.left=(0,O.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",i.right=(0,O.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(i.top=(0,O.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.bottom=(0,O.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.left=(0,O.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.right=(0,O.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,O.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,Ve.FH)(t)&&{padding:t},...!(0,Ve.FH)(o)&&{paddingTablet:o},...!(0,Ve.FH)(l)&&{paddingMobile:l},...!(0,Ve.FH)(a)&&{margin:a},...!(0,Ve.FH)(r)&&{marginTablet:r},...!(0,Ve.FH)(n)&&{marginMobile:n},...!(0,Ve.FH)(c)&&{border:c},...!(0,Ve.FH)(i)&&{borderRadius:i},...!(0,Ve.FH)(s)&&{backgroundImage:s},...!(0,Ve.FH)(m)&&{backgroundPosition:m},...!(0,Ve.FH)(d)&&{backgroundOverlayImage:d},...!(0,Ve.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,O.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`,r=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,n=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,s=g()(o,`has-${t.columns}-columns`,a,r,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-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:s,id:t.id},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(Ll,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(i.InnerBlocks.Content,null)),(0,c.createElement)(Ll,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}}];var Nl=Hl,Il={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"]}},Ol=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(i.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}))},Al=e=>{let{label:t,onClick:o,layout:a,layoutTablet:r,layoutMobile:i,columns:d}=e;const m=(0,F.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=r:"Mobile"===m&&(u=i),(0,c.createElement)(D.Z,{label:t,className:"wp-block-themeisle-blocks-advanced-columns-layout-control"},1===d&&(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Single Row","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,n.colsFull)()))||2===d&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Equal","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,n.cols2Equal)())),(0,c.createElement)(s.Tooltip,{text:(0,l.__)("1:2","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===u}),onClick:()=>o("oneTwo")},(0,n.cols12)())),(0,c.createElement)(s.Tooltip,{text:(0,l.__)("2:1","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===u}),onClick:()=>o("twoOne")},(0,n.cols21)())),("Mobile"==m||"Tablet"==m)&&(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===u}),onClick:()=>o("collapsedRows")},(0,n.rowsCollapsed)())))||3===d&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Equal","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,n.cols3Equal)())),(0,c.createElement)(s.Tooltip,{text:(0,l.__)("1:1:2","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===u}),onClick:()=>o("oneOneTwo")},(0,n.cols112)())),(0,c.createElement)(s.Tooltip,{text:(0,l.__)("2:1:1","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===u}),onClick:()=>o("twoOneOne")},(0,n.cols211)())),(0,c.createElement)(s.Tooltip,{text:(0,l.__)("1:2:1","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===u}),onClick:()=>o("oneTwoOne")},(0,n.cols121)())),(0,c.createElement)(s.Tooltip,{text:(0,l.__)("1:3:1","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===u}),onClick:()=>o("oneThreeOne")},(0,n.cols131)())),("Mobile"==m||"Tablet"==m)&&(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===u}),onClick:()=>o("collapsedRows")},(0,n.rowsCollapsed)())))||4===d&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Equal","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,n.cols4Equal)())),("Mobile"==m||"Tablet"==m)&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Two Column Grid","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===u}),onClick:()=>o("twoColumnGrid")},(0,n.colsCollapsed)())),(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===u}),onClick:()=>o("collapsedRows")},(0,n.rowsCollapsed)()))))||5===d&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Equal","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,n.cols5Equal)())),("Mobile"==m||"Tablet"==m)&&(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===u}),onClick:()=>o("collapsedRows")},(0,n.rowsCollapsed)())))||6===d&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Equal","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===u}),onClick:()=>o("equal")},(0,n.cols6Equal)())),("Mobile"==m||"Tablet"==m)&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Two Column Grid","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===u}),onClick:()=>o("twoColumnGrid")},(0,n.cols2Grid)())),(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Three Column Grid","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===u}),onClick:()=>o("threeColumnGrid")},(0,n.cols3Grid)())),(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks")},(0,c.createElement)(s.Button,{className:g()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===u}),onClick:()=>o("collapsedRows")},(0,n.rowsCollapsed)())))))},Fl=e=>{let{attributes:t,setAttributes:o,getValue:a,updateColumnsWidth:r,dividerViewType:n,setDividerViewType:d,changeColumnsNumbers:m}=e;const u=(0,F.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,c.useState)("layout");let h=()=>{switch(u){case"Desktop":return t.columnsHeightCustom;case"Tablet":return t.columnsHeightCustomTablet;case"Mobile":return t.columnsHeightCustomMobile;default:return}};h=h();const v="top"==n?t.dividerTopType:"bottom"==n?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,c.createElement)(c.Fragment,null,(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{className:"o-section-header-panel"},(0,c.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"layout"===b}),onClick:()=>p("layout")},(0,c.createElement)("span",null,(0,c.createElement)(s.Dashicon,{icon:"editor-table"}),(0,l.__)("Layout","otter-blocks"))),(0,c.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"style"===b}),onClick:()=>p("style")},(0,c.createElement)("span",null,(0,c.createElement)(s.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,c.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"advanced"===b}),onClick:()=>p("advanced")},(0,c.createElement)("span",null,(0,c.createElement)(s.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"layout"===b&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Columns & Layout","otter-blocks")},(0,c.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,c.createElement)(Al,{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}),r(t.columns,e);break;case"Tablet":o({layoutTablet:e});break;case"Mobile":o({layoutMobile:e})}}})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Spacing","otter-blocks"),initialOpen:!1},(0,c.createElement)(D.Z,{label:(0,l.__)("Screen Type","otter-blocks"),className:"otter-section-padding-responsive-control"},(0,c.createElement)(k.Z,{field:(()=>{switch(u){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{switch(u){case"Desktop":return a("padding");case"Tablet":return a("paddingTablet");case"Mobile":return a("paddingMobile");default:return}})(),inputProps:{min:0,max:500},onChange:e=>{switch((0,Ve.CJ)(e)&&(e=void 0),u){case"Desktop":return o({padding:e});case"Tablet":return o({paddingTablet:e});case"Mobile":return o({paddingMobile:e});default:return}}})),(0,c.createElement)(k.Z,{field:(()=>{switch(u){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{switch(u){case"Desktop":return a("margin");case"Tablet":return a("marginTablet");case"Mobile":return a("marginMobile");default:return}})(),inputProps:{min:-500,max:500},sides:["top","bottom"],onChange:e=>{switch((0,Ve.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:e});case"Mobile":return o({marginMobile:e});default:return}}})))),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Section Structure","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.Z,{field:"columnsWidth",isSynced:t.isSynced,setAttributes:o},(0,c.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})},min:0,max:2400})),a("columnsWidth")&&(0,c.createElement)(k.Z,{field:"horizontalAlign",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(s.BaseControl,{label:(0,l.__)("Horizontal Align","otter-blocks")},(0,c.createElement)(ol.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,c.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,c.createElement)(D.Z,{label:(0,l.__)("Custom Height","otter-blocks")},(0,c.createElement)(s.RangeControl,{value:h||"",onChange:e=>{switch(u){case"Desktop":o({columnsHeightCustom:e});break;case"Tablet":o({columnsHeightCustomTablet:e});break;case"Mobile":o({columnsHeightCustomMobile:e})}},min:0,max:1e3}))))||"style"===b&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Background Settings","otter-blocks")},(0,c.createElement)(Ze,{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,O.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Background Overlay","otter-blocks"),initialOpen:!1},(0,c.createElement)(Ze,{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,O.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,c.createElement)(s.RangeControl,{label:(0,l.__)("Overlay Opacity","otter-blocks"),value:t.backgroundOverlayOpacity,onChange:e=>o({backgroundOverlayOpacity:e}),min:0,max:100}),(0,c.createElement)(Z.Z,{label:(0,l.__)("CSS Filters","otter-blocks")},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.backgroundOverlayFilterBlur,onChange:e=>o({backgroundOverlayFilterBlur:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Brightness","otter-blocks"),value:t.backgroundOverlayFilterBrightness,onChange:e=>o({backgroundOverlayFilterBrightness:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Contrast","otter-blocks"),value:t.backgroundOverlayFilterContrast,onChange:e=>o({backgroundOverlayFilterContrast:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Grayscale","otter-blocks"),value:t.backgroundOverlayFilterGrayscale,onChange:e=>o({backgroundOverlayFilterGrayscale:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Hue","otter-blocks"),value:t.backgroundOverlayFilterHue,onChange:e=>o({backgroundOverlayFilterHue:e}),min:0,max:360}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Saturation","otter-blocks"),value:t.backgroundOverlayFilterSaturate,onChange:e=>o({backgroundOverlayFilterSaturate:e}),min:0,max:100})),(0,c.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1},(0,c.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,Ve.CJ)(e)&&(e=void 0),o({border:e})}}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}),(0,c.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,Ve.CJ)(e)&&(e=void 0),o({borderRadius:e})}}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:t.boxShadow,onChange:()=>o({boxShadow:!t.boxShadow})}),t.boxShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,c.createElement)(Z.Z,{label:(0,l.__)("Border Shadow","otter-blocks")},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Shape Divider","otter-blocks"),initialOpen:!1,className:"wp-block-themeisle-shape-divider"},(0,c.createElement)(s.ButtonGroup,null,(0,c.createElement)(s.Button,{isSmall:!0,isSecondary:"top"!==n,isPrimary:"top"===n,onClick:()=>d("top")},(0,l.__)("Top","otter-blocks")),(0,c.createElement)(s.Button,{isSmall:!0,isSecondary:"bottom"!==n,isPrimary:"bottom"===n,onClick:()=>d("bottom")},(0,l.__)("Bottom","otter-blocks"))),(0,c.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"==n?o({dividerTopType:e}):"bottom"==n&&o({dividerBottomType:e})}}),"none"!==v&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:"top"==n?t.dividerTopColor:"bottom"==n?t.dividerBottomColor:void 0,onColorChange:e=>{"top"==n?o({dividerTopColor:e}):"bottom"==n&&o({dividerBottomColor:e})}}),(0,c.createElement)(D.Z,{label:(0,l.__)("Width","otter-blocks")},(0,c.createElement)(s.RangeControl,{value:(()=>{if("top"==n)switch(u){case"Desktop":return t.dividerTopWidth;case"Tablet":return t.dividerTopWidthTablet;case"Mobile":return t.dividerTopWidthMobile}else if("bottom"==n)switch(u){case"Desktop":return t.dividerBottomWidth;case"Tablet":return t.dividerBottomWidthTablet;case"Mobile":return t.dividerBottomWidthMobile}})(),onChange:e=>{if("top"==n)switch(u){case"Desktop":o({dividerTopWidth:e});break;case"Tablet":o({dividerTopWidthTablet:e});break;case"Mobile":o({dividerTopWidthMobile:e})}else if("bottom"==n)switch(u){case"Desktop":o({dividerBottomWidth:e});break;case"Tablet":o({dividerBottomWidthTablet:e});break;case"Mobile":o({dividerBottomWidthMobile:e})}},min:0,max:500})),(0,c.createElement)(D.Z,{label:(0,l.__)("Height","otter-blocks")},(0,c.createElement)(s.RangeControl,{value:(()=>{if("top"==n)switch(u){case"Desktop":return t.dividerTopHeight;case"Tablet":return t.dividerTopHeightTablet;case"Mobile":return t.dividerTopHeightMobile}else if("bottom"==n)switch(u){case"Desktop":return t.dividerBottomHeight;case"Tablet":return t.dividerBottomHeightTablet;case"Mobile":return t.dividerBottomHeightMobile}})(),onChange:e=>{if("top"==n)switch(u){case"Desktop":o({dividerTopHeight:e});break;case"Tablet":o({dividerTopHeightTablet:e});break;case"Mobile":o({dividerTopHeightMobile:e})}else if("bottom"==n)switch(u){case"Desktop":o({dividerBottomHeight:e});break;case"Tablet":o({dividerBottomHeightTablet:e});break;case"Mobile":o({dividerBottomHeightMobile:e})}},min:0,max:500})),"curve"!==v&&"cloud"!==v&&(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Invert Shape Divider","otter-blocks"),checked:(()=>{switch(n){case"top":return t.dividerTopInvert;case"bottom":return t.dividerBottomInvert;default:return}})(),onChange:()=>{switch(n){case"top":o({dividerTopInvert:!t.dividerTopInvert});break;case"bottom":o({dividerBottomInvert:!t.dividerBottomInvert})}}}))))||"advanced"===b&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Responsive","otter-blocks")},(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Hide this section on Desktop devices?","otter-blocks"),checked:t.hide,onChange:e=>y(e,"Desktop")}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Hide this section on Tablet devices?","otter-blocks"),checked:t.hideTablet,onChange:e=>y(e,"Tablet")}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Hide this section on Mobile devices?","otter-blocks"),checked:t.hideMobile,onChange:e=>y(e,"Mobile")}),(0,c.createElement)("hr",null),!t.hideTablet&&"collapsedRows"===t.layoutTablet&&(0,c.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,c.createElement)(s.ToggleControl,{label:(0,l.__)("Reverse Columns in Mobile devices?","otter-blocks"),checked:t.reverseColumnsMobile,onChange:e=>_(e,"Mobile")})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Section Settings","otter-blocks"),initialOpen:!1},(0,c.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,c.createElement)(j,{value:t.id,onChange:e=>o({id:e})}))},Gl=e=>{let{type:t,front:o,style:l,fill:a,invert:r,width:n,height:i}=e;return"none"!==l&&(0,c.createElement)("div",{className:g()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&n?{transform:n?`scaleX( ${n/100} )`:""}:{}},"bigTriangle"===l&&!1===r&&(0,c.createElement)("svg",{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,c.createElement)("path",{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===r&&(0,c.createElement)("svg",{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,c.createElement)("path",{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===r&&(0,c.createElement)("svg",{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,c.createElement)("path",{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===r&&(0,c.createElement)("svg",{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,c.createElement)("path",{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,c.createElement)("svg",{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,c.createElement)("path",{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===r&&(0,c.createElement)("svg",{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,c.createElement)("path",{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===r&&(0,c.createElement)("svg",{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"bottom"===t})},(0,c.createElement)("path",{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,c.createElement)("svg",{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:g()({rotate:"top"===t})},(0,c.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:$l}=Pl;var Zl=[{name:"themeisle-blocks/section-columns-1",description:(0,l.__)("Single column","otter-blocks"),icon:n.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"],isDefault:!0},{name:"themeisle-blocks/section-columns-equal",description:(0,l.__)("2 equal columns","otter-blocks"),icon:n.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:n.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:n.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:n.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:n.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:n.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:n.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:Dl}=Pl;(0,a.registerBlockType)(Dl,{...Pl,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:n.columnsIcon,keywords:["advanced columns","layout","section"],deprecated:Nl,variations:Zl,edit:e=>{let{attributes:t,setAttributes:o,clientId:r,name:n}=e;(0,c.useEffect)((()=>{const e=(0,y.WX)(r,$l);return()=>e(t.id)}),[t.id]);const{updateBlockAttributes:s,replaceInnerBlocks:d}=(0,F.useDispatch)("core/block-editor"),{sectionBlock:m,isViewportAvailable:u,isPreviewDesktop:b,isPreviewTablet:p,isPreviewMobile:h,children:k,variations:v,defaultVariation:_}=(0,F.useSelect)((e=>{var t;const{getBlock:o}=e("core/block-editor"),{getBlockVariations:l,getBlockType:a,getDefaultBlockVariation:c}=e("core/blocks"),{__experimentalGetPreviewDeviceType:i}=!!e("core/edit-post")&&e("core/edit-post");return{sectionBlock:o(r),children:(null===(t=o(r))||void 0===t?void 0:t.innerBlocks)||[],isViewportAvailable:!!i,isPreviewDesktop:!!i&&"Desktop"===i(),isPreviewTablet:!!i&&"Tablet"===i(),isPreviewMobile:!!i&&"Mobile"===i(),blockType:a(n),defaultVariation:c(n,"block"),variations:l(n,"block").filter((e=>{let{isDefault:t}=e;return!t}))}}),[]),{insertBlock:f,removeBlock:C}=(0,F.useDispatch)("core/block-editor"),w=(e,t)=>{m.innerBlocks.map(((o,l)=>{s(o.clientId,{columnWidth:Il[e][t][l]})}))};(0,c.useEffect)((()=>{t.columns!==k.length&&(6>=k.length?w(k.length,"equal"):6<k.length?w(6,"equal"):1>=k.length&&w(1,"equal"),o({columns:k.length}))}),[k]);const E=e=>(0,y.Ih)({name:n,field:e,defaultAttributes:$l,attributes:t}),x=(0,A.useViewportMatch)("large",">="),T=(0,A.useViewportMatch)("large","<="),S=(0,A.useViewportMatch)("small",">="),M=(0,A.useViewportMatch)("small","<=");let B=x&&!T&&S&&!M,z=!x&&!T&&S&&!M,P=!(x||T||S||M);u&&!P&&(B=b,z=p,P=h);const[R,L]=(0,c.useState)("top"),H=e=>{let{mobile:t,tablet:o,desktop:l}=e;return P&&t||z&&o||B&&l||void 0},N=H({mobile:t.dividerTopWidthMobile,tablet:t.dividerTopWidthTablet,desktop:t.dividerTopWidth}),I=H({mobile:t.dividerBottomWidthMobile,tablet:t.dividerBottomWidthTablet,desktop:t.dividerBottomWidth}),G=H({mobile:t.dividerTopHeightMobile,tablet:t.dividerTopHeightTablet,desktop:t.dividerTopHeight}),$=H({mobile:t.dividerBottomHeightMobile,tablet:t.dividerBottomHeightTablet,desktop:t.dividerBottomHeight}),Z=t.columnsHTMLTag;let D,W,U,j,q,K;var J,X,Q,Y,ee,te,oe,le,ae,re,ne,ce,ie,se,de;B&&(D={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}),z&&(D={paddingTop:null===(J=E("paddingTablet"))||void 0===J?void 0:J.top,paddingRight:null===(X=E("paddingTablet"))||void 0===X?void 0:X.right,paddingBottom:null===(Q=E("paddingTablet"))||void 0===Q?void 0:Q.bottom,paddingLeft:null===(Y=E("paddingTablet"))||void 0===Y?void 0:Y.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}),P&&(D={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===(re=E("paddingMobile"))||void 0===re?void 0:re.left,marginTop:null===(ne=E("marginMobile"))||void 0===ne?void 0:ne.top,marginBottom:null===(ce=E("marginMobile"))||void 0===ce?void 0:ce.bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustomMobile}px`:t.columnsHeight}),"color"===t.backgroundType&&(W={backgroundColor:t.backgroundColor}),"image"===t.backgroundType&&(W={backgroundImage:`url( '${null===(ie=t.backgroundImage)||void 0===ie?void 0:ie.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&&(W={backgroundImage:t.backgroundGradient}),t.border&&!(0,O.isEmpty)(t.border)&&(j={borderTopWidth:t.border.top,borderRightWidth:t.border.right,borderBottomWidth:t.border.bottom,borderLeftWidth:t.border.left,borderStyle:"solid",borderColor:t.borderColor}),t.borderRadius&&!(0,O.isEmpty)(t.borderRadius)&&(q={borderTopLeftRadius:t.borderRadius.top,borderTopRightRadius:t.borderRadius.right,borderBottomRightRadius:t.borderRadius.bottom,borderBottomLeftRadius:t.borderRadius.left}),!0===t.boxShadow&&(K={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${V()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const me={...D,...W,...j,...q,...K};var ue,be,pe;"color"===t.backgroundOverlayType&&(U={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(U={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&&(U={background:t.backgroundOverlayGradient,opacity:t.backgroundOverlayOpacity/100});const ge={...U,...q,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":P}),ve=t.columns?(0,i.useBlockProps)({id:t.id,className:ke,style:me}):(0,i.useBlockProps)();return t.columns?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Ol,{attributes:t,setAttributes:o}),(0,c.createElement)(Fl,{attributes:t,setAttributes:o,getValue:E,updateColumnsWidth:w,dividerViewType:R,setDividerViewType:L,changeColumnsNumbers:e=>{t.columns<e?(0,O.times)(e-t.columns,(()=>{const e=(0,a.createBlock)("themeisle-blocks/advanced-column");e&&f(e,(null==k?void 0:k.length)||0,r,!1)})):t.columns>e&&k.slice(e).forEach((e=>C(e.clientId,!1)))}}),(0,c.createElement)(Z,ve,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:ge}),(0,c.createElement)(Gl,{type:"top",style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert,width:N,height:G}),(0,c.createElement)("div",{className:"innerblocks-wrap",style:he},(0,c.createElement)(i.InnerBlocks,{allowedBlocks:["themeisle-blocks/advanced-column"],orientation:"horizontal"})),(0,c.createElement)(Gl,{type:"bottom",style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert,width:I,height:$}))):(0,c.createElement)("div",ve,(0,c.createElement)(i.__experimentalBlockVariationPicker,{label:(0,l.__)("Section","otter-blocks"),instructions:(0,l.__)("Select a layout to start with, or make one yourself.","otter-blocks"),variations:v,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_;e&&(d(r,(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`,r=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,n=g()(`has-${t.columns}-columns`,l,a,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-vertical-${t.verticalAlign}`),s=i.useBlockProps.save({id:t.id,className:n});return(0,c.createElement)(o,s,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(Gl,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(i.InnerBlocks.Content,null)),(0,c.createElement)(Gl,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}});var Wl=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 Ul={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"}},jl=[{attributes:Ul,supports:{inserter:!1,reusable:!1,html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,r,n,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&&(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&&(n={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(n={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 ${V()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const d={...a,...r,...n,...s};return(0,c.createElement)(l,{className:o,id:t.id,style:d},(0,c.createElement)(i.InnerBlocks.Content,null))}},{attributes:{...Ul,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}${V()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${V()(e.backgroundGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}%)`}return{...{...(0,O.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,c.createElement)(l,{className:o,id:t.id},(0,c.createElement)(i.InnerBlocks.Content,null))}},{attributes:{...(0,O.omit)(Ul,["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={},r={},n={},c={},i={};let s={},d={};"unlinked"===e.paddingType?(t.top=(0,O.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,O.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,O.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,O.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,O.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,O.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,O.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,O.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,O.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,O.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,O.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,O.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,O.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,O.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,O.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,O.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,O.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,O.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,O.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,O.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,O.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,O.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,O.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,O.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(a.top=(0,O.isUndefined)(e.margin)?"20px":e.margin+"px",a.bottom=(0,O.isUndefined)(e.margin)?"20px":e.margin+"px",a.left=(0,O.isUndefined)(e.margin)?"20px":e.margin+"px",a.right=(0,O.isUndefined)(e.margin)?"20px":e.margin+"px"):(a.top=(0,O.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",a.bottom=(0,O.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px",a.left=(0,O.isUndefined)(e.marginLeft)?"20px":e.marginLeft+"px",a.right=(0,O.isUndefined)(e.marginRight)?"20px":e.marginRight+"px"),"linked"===e.marginTypeTablet?(r.top=(0,O.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",r.bottom=(0,O.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",r.left=(0,O.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",r.right=(0,O.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(r.top=(0,O.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",r.bottom=(0,O.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px",r.left=(0,O.isUndefined)(e.marginLeftTablet)?null:e.marginLeftTablet+"px",r.right=(0,O.isUndefined)(e.marginRightTablet)?null:e.marginRightTablet+"px"),"linked"===e.marginTypeMobile?(n.top=(0,O.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",n.bottom=(0,O.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",n.left=(0,O.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",n.right=(0,O.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(n.top=(0,O.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",n.bottom=(0,O.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px",n.left=(0,O.isUndefined)(e.marginLeftMobile)?null:e.marginLeftMobile+"px",n.right=(0,O.isUndefined)(e.marginRightMobile)?null:e.marginRightMobile+"px"),"unlinked"===e.borderType?(c.top=(0,O.isUndefined)(e.borderTop)?null:e.borderTop+"px",c.bottom=(0,O.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",c.left=(0,O.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",c.right=(0,O.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(c.top=(0,O.isUndefined)(e.border)?null:e.border+"px",c.bottom=(0,O.isUndefined)(e.border)?null:e.border+"px",c.left=(0,O.isUndefined)(e.border)?null:e.border+"px",c.right=(0,O.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(i.top=(0,O.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",i.bottom=(0,O.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",i.left=(0,O.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",i.right=(0,O.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(i.top=(0,O.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.bottom=(0,O.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.left=(0,O.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.right=(0,O.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,O.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,Ve.FH)(t)&&{padding:t},...!(0,Ve.FH)(o)&&{paddingTablet:o},...!(0,Ve.FH)(l)&&{paddingMobile:l},...!(0,Ve.FH)(a)&&{margin:a},...!(0,Ve.FH)(r)&&{marginTablet:r},...!(0,Ve.FH)(n)&&{marginMobile:n},...!(0,Ve.FH)(c)&&{border:c},...!(0,Ve.FH)(i)&&{borderRadius:i},...!(0,Ve.FH)(s)&&{backgroundImage:s},...!(0,Ve.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,O.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,c.createElement)(l,{className:o,id:t.id},(0,c.createElement)(i.InnerBlocks.Content,null))}}];var ql=jl,Kl=e=>{let{attributes:t,setAttributes:o,getValue:a,parentBlock:r,updateBlockAttributes:n,currentBlockWidth:d,nextBlock:m,nextBlockWidth:u}=e;const b=(0,F.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[p,h]=(0,c.useState)("layout");return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{className:"o-section-header-panel"},(0,c.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"layout"===p}),onClick:()=>h("layout")},(0,c.createElement)("span",null,(0,c.createElement)(s.Dashicon,{icon:"editor-table"}),(0,l.__)("Layout","otter-blocks"))),(0,c.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"style"===p}),onClick:()=>h("style")},(0,c.createElement)("span",null,(0,c.createElement)(s.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,c.createElement)(s.Button,{className:g()("header-tab",{"is-selected":"advanced"===p}),onClick:()=>h("advanced")},(0,c.createElement)("span",null,(0,c.createElement)(s.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"layout"===p&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Spacing","otter-blocks")},1<r.innerBlocks.length&&(0,c.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)}),n(m.current,{columnWidth:l.toFixed(2)})},min:10,max:Number(t.columnWidth)+Number(u.current)-10}),(0,c.createElement)(D.Z,{label:(0,l.__)("Screen Type","otter-blocks"),className:"otter-section-padding-responsive-control"},(0,c.createElement)(k.Z,{field:(()=>{switch(b){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{switch(b){case"Desktop":return a("padding");case"Tablet":return a("paddingTablet");case"Mobile":return a("paddingMobile");default:return}})(),inputProps:{min:0,max:500},onChange:e=>{switch((0,Ve.CJ)(e)&&(e=void 0),b){case"Desktop":return o({padding:e});case"Tablet":return o({paddingTablet:e});case"Mobile":return o({paddingMobile:e});default:return}}})),(0,c.createElement)(k.Z,{field:(()=>{switch(b){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{switch(b){case"Desktop":return a("margin");case"Tablet":return a("marginTablet");case"Mobile":return a("marginMobile");default:return}})(),inputProps:{min:-500,max:500},onChange:e=>{switch((0,Ve.CJ)(e)&&(e=void 0),b){case"Desktop":return o({margin:e});case"Tablet":return o({marginTablet:e});case"Mobile":return o({marginMobile:e});default:return}}})))))||"style"===p&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Background Settings","otter-blocks")},(0,c.createElement)(Ze,{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,O.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,c.createElement)(s.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1},(0,c.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,Ve.CJ)(e)&&(e=void 0),o({border:e})}}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}),(0,c.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,Ve.CJ)(e)&&(e=void 0),o({borderRadius:e})}}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:t.boxShadow,onChange:()=>o({boxShadow:!t.boxShadow})}),t.boxShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,c.createElement)(Z.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))))||"advanced"===p&&(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Section Settings","otter-blocks")},(0,c.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:Jl}=Wl;const{name:Xl}=Wl;(0,a.registerBlockType)(Xl,{...Wl,title:(0,l.__)("Section Column","otter-blocks"),description:(0,l.__)("A single column within a Section block. Powered by Otter.","otter-blocks"),icon:n.columnIcon,deprecated:ql,edit:e=>{let{name:t,attributes:o,setAttributes:l,isSelected:a,clientId:r}=e;const{updateBlockAttributes:n}=(0,F.useDispatch)("core/block-editor"),{adjacentBlockClientId:s,adjacentBlock:d,parentBlock:m,hasInnerBlocks:u,isViewportAvailable:b,isPreviewDesktop:p,isPreviewTablet:g,isPreviewMobile:h}=(0,F.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(r),c=t(r);return{adjacentBlockClientId:c,adjacentBlock:o(c),parentBlock:o(l(r)),hasInnerBlocks:!(!n||!n.innerBlocks.length),isViewportAvailable:!!a,isPreviewDesktop:!!a&&"Desktop"===a(),isPreviewTablet:!!a&&"Tablet"===a(),isPreviewMobile:!!a&&"Mobile"===a()}}),[]),k=(0,A.useViewportMatch)("large",">="),v=(0,A.useViewportMatch)("large","<="),_=(0,A.useViewportMatch)("small",">="),f=(0,A.useViewportMatch)("small","<=");(0,c.useEffect)((()=>{const e=(0,y.WX)(r,Jl);return()=>e(o.id)}),[o.id]),(0,c.useEffect)((()=>{if(1<m.innerBlocks.length&&!s){const e=m.innerBlocks.findIndex((e=>e.clientId===r)),t=m.innerBlocks[e-1];w.current=t.clientId,E.current=t.attributes.columnWidth}}),[]),(0,c.useEffect)((()=>{if(1<m.innerBlocks.length)if(s)E.current=d.attributes.columnWidth,w.current=s,C.current=o.columnWidth;else{const e=m.innerBlocks.findIndex((e=>e.clientId===r)),t=m.innerBlocks[e-1];E.current=t.attributes.columnWidth,w.current=t.clientId,C.current=o.columnWidth}}),[a,o.columnWidth,m.innerBlocks.length]);const C=(0,c.useRef)(o.columnWidth),w=(0,c.useRef)(s&&s),E=(0,c.useRef)(d&&d.attributes.columnWidth),x=e=>(0,y.Ih)({name:t,field:e,defaultAttributes:Jl,attributes:o});let T=k&&!v&&_&&!f,S=!k&&!v&&_&&!f,M=!(k||v||_||f);if(b&&!M&&(T=p,S=g,M=h),void 0===o.columnWidth){const e=m.innerBlocks.findIndex((e=>e.clientId===r)),t=m.attributes.columns,o=m.attributes.layout;n(r,{columnWidth:Il[t][o][e]})}const B=o.columnsHTMLTag;let z,P,R,L,H;var N,I,G,$,Z,D,W,U,j,q,K,J,X,Q,Y,ee,te,oe,le,ae,re,ne,ce,ie,se,de,me;T&&(z={paddingTop:null===(N=x("padding"))||void 0===N?void 0:N.top,paddingRight:null===(I=x("padding"))||void 0===I?void 0:I.right,paddingBottom:null===(G=x("padding"))||void 0===G?void 0:G.bottom,paddingLeft:null===($=x("padding"))||void 0===$?void 0:$.left,marginTop:null===(Z=x("margin"))||void 0===Z?void 0:Z.top,marginRight:null===(D=x("margin"))||void 0===D?void 0:D.right,marginBottom:null===(W=x("margin"))||void 0===W?void 0:W.bottom,marginLeft:null===(U=x("margin"))||void 0===U?void 0:U.left}),S&&(z={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===(K=x("paddingTablet"))||void 0===K?void 0:K.bottom,paddingLeft:null===(J=x("paddingTablet"))||void 0===J?void 0:J.left,marginTop:null===(X=x("marginTablet"))||void 0===X?void 0:X.top,marginRight:null===(Q=x("marginTablet"))||void 0===Q?void 0:Q.right,marginBottom:null===(Y=x("marginTablet"))||void 0===Y?void 0:Y.bottom,marginLeft:null===(ee=x("marginTablet"))||void 0===ee?void 0:ee.left}),M&&(z={paddingTop:null===(te=x("paddingMobile"))||void 0===te?void 0:te.top,paddingRight:null===(oe=x("paddingMobile"))||void 0===oe?void 0:oe.right,paddingBottom:null===(le=x("paddingMobile"))||void 0===le?void 0:le.bottom,paddingLeft:null===(ae=x("paddingMobile"))||void 0===ae?void 0:ae.left,marginTop:null===(re=x("marginMobile"))||void 0===re?void 0:re.top,marginRight:null===(ne=x("marginMobile"))||void 0===ne?void 0:ne.right,marginBottom:null===(ce=x("marginMobile"))||void 0===ce?void 0:ce.bottom,marginLeft:null===(ie=x("marginMobile"))||void 0===ie?void 0:ie.left}),"color"===o.backgroundType&&(P={backgroundColor:o.backgroundColor}),"image"===o.backgroundType&&(P={backgroundImage:`url( '${null===(se=o.backgroundImage)||void 0===se?void 0:se.url}' )`,backgroundAttachment:o.backgroundAttachment,backgroundPosition:`${Math.round(100*(null===(de=o.backgroundPosition)||void 0===de?void 0:de.x))}% ${Math.round(100*(null===(me=o.backgroundPosition)||void 0===me?void 0:me.y))}%`,backgroundRepeat:o.backgroundRepeat,backgroundSize:o.backgroundSize}),"gradient"===o.backgroundType&&(P={backgroundImage:o.backgroundGradient}),o.border&&!(0,O.isEmpty)(o.border)&&(R={borderTopWidth:o.border.top,borderRightWidth:o.border.right,borderBottomWidth:o.border.bottom,borderLeftWidth:o.border.left,borderStyle:"solid",borderColor:o.borderColor}),o.borderRadius&&!(0,O.isEmpty)(o.borderRadius)&&(L={borderTopLeftRadius:o.borderRadius.top,borderTopRightRadius:o.borderRadius.right,borderBottomRightRadius:o.borderRadius.bottom,borderBottomLeftRadius:o.borderRadius.left}),!0===o.boxShadow&&(H={boxShadow:`${o.boxShadowHorizontal}px ${o.boxShadowVertical}px ${o.boxShadowBlur}px ${o.boxShadowSpread}px ${V()(o.boxShadowColor?o.boxShadowColor:"#000000",o.boxShadowColorOpacity)}`});const ue={flexBasis:`${o.columnWidth}%`,...z,...P,...R,...L,...H},be=(0,i.useBlockProps)({id:o.id,style:ue});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Kl,{attributes:o,setAttributes:l,getValue:x,parentBlock:m,updateBlockAttributes:n,currentBlockWidth:C,nextBlock:w,nextBlockWidth:E}),(0,c.createElement)(B,be,(0,c.createElement)(i.InnerBlocks,{templateLock:!1,renderAppender:!u&&i.InnerBlocks.ButtonBlockAppender})))},save:e=>{let{attributes:t}=e;const o=t.columnsHTMLTag,l=i.useBlockProps.save({id:t.id});return(0,c.createElement)(o,l,(0,c.createElement)(i.InnerBlocks.Content,null))}});var Ql=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"}'),Yl=e=>{let{icon:t}=e;return"facebook"===t?(0,c.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 264 512"},(0,c.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,c.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,c.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,c.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},(0,c.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,c.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},(0,c.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,c.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},(0,c.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,c.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,c.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,c.createElement)(s.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,c.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"}))},ea=e=>{let{attributes:t,setAttributes:o,socialList:a}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(s.ToolbarGroup,null,Object.keys(a).map((e=>{var r;const n=null!==(r=t[e].active)&&void 0!==r?r:t[e];return(0,c.createElement)(s.Tooltip,{key:e
|
167 |
+
/* translators: %s Social Website */,text:(0,l.sprintf)((0,l.__)("Display %s","otter-blocks"),a[e].label)},(0,c.createElement)(s.Button,{className:g()("components-button","wp-block-themeisle-toolbar",{"is-active":n}),onClick:()=>(e=>{const l={...t[e]};l.active=!l.active,o({[e]:{...l}})})(e)},(0,c.createElement)(Yl,{icon:e})))}))))},ta=e=>{let{attributes:t,setAttributes:o,socialList:a}=e;const r=(e,l,a)=>{const r={...t[l]};r[a]=e,o({[l]:{...r}})};return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Items Gap","otter-blocks"),value:t.gap,onChange:e=>o({gap:e}),allowReset:!0,max:100}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Icons Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),allowReset:!0,max:50})),(0,c.createElement)(i.PanelColorSettings,{title:(0,l.__)("Color Settings"),className:"ott-color-controls",initialOpen:!1,colorSettings:Object.keys(a).reduce(((e,o)=>{var n;return(null!==(n=t[o].active)&&void 0!==n?n:t[o])?[...e,{value:t[o].backgroundColor,onChange:e=>r(e,o,"backgroundColor"),onGradientChange:e=>r(e,o,"backgroundColor")
|
168 |
/* translators: %s Social Website */,label:(0,l.sprintf)((0,l.__)(" %s Background Color","otter-blocks"),a[o].label)},{value:t[o].textColor,onChange:e=>r(e,o,"textColor")
|
169 |
+
/* 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,c.createElement)(i.ContrastChecker,{backgroundColor:t[e].backgroundColor,textColor:t[e].textColor,key:e}):null}))))},oa={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:la}=Ql;const{name:aa}=Ql;(0,a.registerBlockType)(aa,{...Ql,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:n.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{name:t,attributes:o,setAttributes:l,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,y.WX)(a,la);return()=>e(o.id)}),[o.id]);const r=e=>(0,y.Ih)({name:t,field:e,defaultAttributes:la,attributes:o}),n=Object.keys(oa).reduce(((e,t)=>{var o,l;const a=r(t);return`${e}\n\t\t.is-${t} {\n\t\t\t--iconBgColor: ${null!==(o=a.backgroundColor)&&void 0!==o?o:"unset"};\n\t\t\t--textColor: ${null!==(l=a.textColor)&&void 0!==l?l:"unset"};\n\t\t}`}),""),d=r("gap"),u=r("borderRadius"),b=h.iv`
|
170 |
--iconsGap: ${d?d+"px":""};
|
171 |
--borderRadius: ${u?u+"px":""};
|
172 |
${n}
|
173 |
+
`,p=(0,i.useBlockProps)({id:o.id,css:b});return(0,h.tZ)(c.Fragment,null,(0,h.tZ)(ea,{attributes:o,setAttributes:l,socialList:oa}),(0,h.tZ)(ta,{attributes:o,setAttributes:l,socialList:oa}),(0,h.tZ)("div",p,(0,h.tZ)(s.Disabled,null,(0,h.tZ)(m(),{block:"themeisle-blocks/sharing-icons",attributes:o}))))},save:()=>null});var ra=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 na=e=>{let{attributes:t}=e;return(0,c.createElement)(c.Fragment,null,!t.hideArrows&&(0,c.createElement)("div",{className:"glide__arrows","data-glide-el":"controls"},(0,c.createElement)("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<"},(0,c.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},(0,c.createElement)(s.Path,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"}))),(0,c.createElement)("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">"},(0,c.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},(0,c.createElement)(s.Path,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"})))))},ca=e=>{let{attributes:t}=e;return(0,c.createElement)(c.Fragment,null,!t.hideBullets&&(0,c.createElement)("div",{className:"glide__bullets","data-glide-el":"controls[nav]"},t.images.map(((e,t)=>(0,c.createElement)("button",{key:e.id,className:"glide__bullet","data-glide-dir":`=${t}`})))))};var ia=e=>{let{attributes:t}=e;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(na,{attributes:t}),(0,c.createElement)(ca,{attributes:t}))};const sa={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}},da=[{attributes:{...(0,O.omit)(sa,["align"])},supports:{align:["wide","full"]},save:e=>{let{attributes:t,className:o}=e;return(0,c.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,c.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,c.createElement)("div",{className:"glide__slides",style:{height:`${t.height}px`}},t.images.map((e=>(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},(0,c.createElement)("figure",null,(0,c.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}),!i.RichText.isEmpty(e.caption)&&(0,c.createElement)(i.RichText.Content,{tagName:"figcaption",value:e.caption})))))),(0,c.createElement)(ia,{attributes:t})))}},{attributes:{...(0,O.omit)(sa,["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,c.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,c.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,c.createElement)("div",{className:"glide__slides"},t.images.map((e=>(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},(0,c.createElement)("figure",null,(0,c.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}),!i.RichText.isEmpty(e.caption)&&(0,c.createElement)(i.RichText.Content,{tagName:"figcaption",value:e.caption})))))),(0,c.createElement)(ia,{attributes:t})))}}];var ma=da;const ua={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t}=e[0];t=(0,O.every)(e,["align",t])?t:void 0;const o=(0,O.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:r}=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:r}):(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:r})}}],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:r,caption:n}=e;return(0,a.createBlock)("core/image",{id:t,url:l,alt:r,caption:n,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:r,caption:n}=e;return(0,a.createBlock)("core/image",{id:t,url:o,alt:r,caption:n,align:l})})))}}]};var ba=ua,pa=e=>{let{labels:t,icon:o,isAppender:l=!1,value:a={},onSelectImages:r}=e;const n=(0,O.debounce)(r,250);return(0,c.createElement)(i.MediaPlaceholder,{labels:t,icon:o,accept:"image/*",allowedTypes:["image"],isAppender:l,className:"wp-block-themeisle-blocks-slider-uploader",value:a,onSelect:n,multiple:!0})},ga=o(2285),ha=e=>{let{attributes:t,setAttributes:o,slider:a,changePerView:r,onSelectImages:n}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Images","otter-blocks"),initialOpen:!1},(0,c.createElement)(ga.Z,{attributes:t,onSelectImages:n})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},t.images.length&&(0,c.createElement)(c.Fragment,null,(0,c.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:r,min:1,max:(0,O.max)([Math.round(t.images.length/2),1])}),1<t.perView&&(0,c.createElement)(c.Fragment,null,(0,c.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,c.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,c.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)})},min:100,max:1400}),(0,c.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,c.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,c.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,c.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})}}))))},ka=o(1984),va=o(4310),ya=o(5024),_a=e=>{let{images:t,image:o,index:a,isFirstItem:r,isLastItem:n,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,c.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,c.createElement)("figure",null,(0,c.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,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-move-menu"},(0,c.createElement)(s.Button,{icon:(0,c.createElement)(ka.Z,{icon:va.Z}),label:(0,l.__)("Move image backward","otter-blocks"),showTooltip:!0,onClick:r?void 0:()=>{0!==a&&b(a,a-1)},className:"wp-block-themeisle-blocks-slider-item-move-backward","aria-disabled":r,disabled:!d}),(0,c.createElement)(s.Button,{icon:(0,c.createElement)(ka.Z,{icon:ya.Z}),label:(0,l.__)("Move image forward","otter-blocks"),showTooltip:!0,onClick:n?void 0:()=>{a!==t.length-1&&b(a,a+1)},className:"wp-block-themeisle-blocks-slider-item-move-forward","aria-disabled":n,disabled:!d})),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-delete-menu"},(0,c.createElement)(s.Button,{icon:(0,c.createElement)(ka.Z,{icon:Ho.Z}),label:(0,l.__)("Remove image","otter-blocks"),showTooltip:!0,onClick:()=>{const e=(0,O.filter)(t,((e,t)=>a!==t));u(null),m({images:e})},className:"wp-block-themeisle-blocks-slider-item-delete"}))),(d||!i.RichText.isEmpty(o.caption))&&(0,c.createElement)(i.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:fa}=ra,Ca={root:null,rootMargin:"0px",threshold:[0]};const{name:wa}=ra;(0,a.registerBlockType)(wa,{...ra,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:ma,transforms:ba,edit:e=>{let{attributes:t,setAttributes:o,clientId:a,isSelected:r,toggleSelection:n}=e;const d=(0,c.useRef)(null),m=(0,c.useRef)(null);(0,c.useEffect)((()=>{const e=(0,y.WX)(a,fa);return()=>{e(t.id)}}),[t.id]),(0,c.useEffect)((()=>{const e=document.querySelector(`#${t.id}`);var o;if(e)return d.current=new IntersectionObserver((o=>{o.forEach((o=>{var l;o.isIntersecting&&0<=o.intersectionRect.height&&t.images.length&&(p(),null===(l=d.current)||void 0===l||l.unobserve(e))}))}),Ca),null===(o=d.current)||void 0===o||o.observe(e),()=>{t.images.length&&null!==m.current&&m.current.destroy()}}),[t.id]),(0,c.useEffect)((()=>{t.images.length&&(b(null),null!==m.current&&(m.current.destroy(),t.id&&p()))}),[r,t.id,m.current,t.images]),(0,c.useEffect)((()=>{t.images.length&&t.perView>t.images.length&&k((0,O.max)([Math.round(t.images.length/2),1]))}),[t.images]);const[u,b]=(0,c.useState)(null),p=()=>{m.current=new window.Glide(`#${t.id}`,{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}))},v=(0,i.useBlockProps)();return Array.isArray(t.images)&&!t.images.length?(0,c.createElement)("div",v,(0,c.createElement)(pa,{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,c.createElement)(c.Fragment,null,(0,c.createElement)(ha,{attributes:t,setAttributes:o,slider:m.current,changePerView:k,onSelectImages:h}),(0,c.createElement)("div",v,(0,c.createElement)(s.ResizableBox,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{n(!1)},onResizeStop:(e,l,a,r)=>{o({height:parseInt(t.height+r.height,10)}),n(!0)},className:g()("wp-block-themeisle-blocks-slider-resizer",{"is-focused":r})},(0,c.createElement)("div",{id:t.id,className:"glide"},(0,c.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,c.createElement)("div",{className:"glide__slides",style:{height:`${t.height}px`}},t.images.map(((e,l)=>(0,c.createElement)(_a,{key:e.url,images:t.images,image:e,index:l,isFirstItem:0===l,isLastItem:l+1===t.images.length,isSelected:r&&e.id===u,setAttributes:o,setSelectedImage:b})))),(0,c.createElement)(ia,{attributes:t})))),r&&(0,c.createElement)(pa,{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=i.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,c.createElement)("div",l,(0,c.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,c.createElement)("div",{className:"glide__slides"},t.images.map((e=>(0,c.createElement)("div",{key:e.id,className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},(0,c.createElement)("figure",null,(0,c.createElement)("img",{className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!i.RichText.isEmpty(e.caption)&&(0,c.createElement)(i.RichText.Content,{tagName:"figcaption",value:e.caption})))))),(0,c.createElement)(ca,{attributes:t})))}});var Ea=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 xa=[["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:Ta}=Ea;(0,a.registerBlockType)(Ta,{...Ea,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:n.pricingIcon,keywords:["pricing","table","money"],edit:()=>{const e=(0,i.useBlockProps)();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks,{template:xa}))},save:()=>{const e=i.useBlockProps.save();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks.Content,null))}});var Sa=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 Ma=[["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:Ba}=Sa;(0,a.registerBlockType)(Ba,{...Sa,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:n.servicesIcon,keywords:["services","icon","features"],edit:()=>{const e=(0,i.useBlockProps)();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks,{template:Ma}))},save:()=>{const e=i.useBlockProps.save();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks.Content,null))}});var za=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 Pa=[["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:Va}=za;(0,a.registerBlockType)(Va,{...za,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:n.testimonialsIcon,keywords:["testimonials","quotes","business"],edit:()=>{const e=(0,i.useBlockProps)();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks,{template:Pa}))},save:()=>{const e=i.useBlockProps.save();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks.Content,null))}});var Ra=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"}'),La=o(5117);const Ha=(0,qo.W6)((()=>(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__drag",tabIndex:"0"},(0,c.createElement)("span",null)))),Na=(0,qo.W8)((e=>{let{tab:t,deleteTab:o,selectTab:a}=e;return(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-inspector-tab-option"},(0,c.createElement)(Ha,null),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__name"},t.attributes.title||(0,l.__)("Untitled Tab","otter-blocks")),(0,c.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,c.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 Ia=e=>{var t;let{attributes:o,setAttributes:a,children:r,deleteTab:n,selectTab:d,addTab:m,moveTab:u}=e;const[b,p]=(0,c.useState)(null===(t=r.find((e=>!0===e.attributes.defaultOpen)))||void 0===t?void 0:t.clientId),{updateBlockAttributes:g}=(0,F.useDispatch)("core/block-editor"),{getBlock:h}=(0,F.useSelect)("core/block-editor");(0,c.useEffect)((()=>{var e;p(null===(e=r.find((e=>!0===e.attributes.defaultOpen)))||void 0===e?void 0:e.clientId)}),[r]);const k=e=>{!0===h(e).attributes.defaultOpen&&g(r[0].clientId,{defaultOpen:!0}),n(e)},v=(0,qo.JN)((e=>{let{items:t}=e;return(0,c.createElement)("div",null,t.map(((e,t)=>(0,c.createElement)(Na,{key:e.clientId,tab:e,index:t,deleteTab:k,selectTab:d}))))})),y=r.map(((e,t)=>({label:`${t+1}. ${e.attributes.title||(0,l.__)("Untitled Tab","otter-blocks")}`,va
|