Version Description
Download this release
Release Info
Developer | themeisle |
Plugin | Gutenberg Blocks and Template Library by Otter |
Version | 2.0.8 |
Comparing to | |
See all releases |
Code changes from version 2.0.7 to 2.0.8
- CHANGELOG.md +9 -0
- build/animation/anim-count.asset.php +1 -1
- build/animation/anim-count.js +1 -1
- build/animation/index.asset.php +1 -1
- build/animation/index.js +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 +4 -177
CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
##### [Version 2.0.7](https://github.com/Codeinwp/otter-blocks/compare/v2.0.6...v2.0.7) (2022-07-04)
|
2 |
|
3 |
- Fix Google Fonts not loading in certain cases
|
1 |
+
##### [Version 2.0.8](https://github.com/Codeinwp/otter-blocks/compare/v2.0.7...v2.0.8) (2022-07-14)
|
2 |
+
|
3 |
+
- Fip Block styling issue
|
4 |
+
- Fix styles & scripts not loading in FSE & responsive mode in the editor
|
5 |
+
- Fix editor slowness
|
6 |
+
- Add single column option to Section
|
7 |
+
- Fix Font Module failing in specific scenarios
|
8 |
+
- Fix WooCommerce Product Select component keeps spinning when no products are available
|
9 |
+
|
10 |
##### [Version 2.0.7](https://github.com/Codeinwp/otter-blocks/compare/v2.0.6...v2.0.7) (2022-07-04)
|
11 |
|
12 |
- Fix Google Fonts not loading in certain cases
|
build/animation/anim-count.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array(), 'version' => '
|
1 |
+
<?php return array('dependencies' => array(), 'version' => 'c9316390d0905ba88e79eae02e308c83');
|
build/animation/anim-count.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){"use strict";const e={none:void 0,"o-count-slower":3,"o-count-slow":2,"o-count-fast":1.5,"o-count-fastest":1},t=new Set(Array.from("0123456789,.")),n=new Set(Array.from(","));var o;o=()=>{const o={root:null,rootMargin:"0px",threshold:[.6]},r=new Set("0123456789");setTimeout((()=>{document.querySelectorAll("o-anim-count").forEach((
|
1 |
+
!function(){"use strict";const e={none:void 0,"o-count-slower":3,"o-count-slow":2,"o-count-fast":1.5,"o-count-fastest":1},t=new Set(Array.from("0123456789,.")),n=new Set(Array.from(","));var o;o=()=>{const o={root:null,rootMargin:"0px",threshold:[.6]},r=new Set("0123456789");setTimeout((()=>{document.querySelectorAll("o-anim-count").forEach((s=>{if(Array.from(s.innerHTML).some((e=>r.has(e)))){const r=new IntersectionObserver((o=>{o.forEach((o=>{o.isIntersecting&&0<o.intersectionRect.height&&(r.unobserve(s),(o=>{var r,s,l;const i=(null==o?void 0:o.innerHTML)||"",a=(t=>{let n=t.parentElement;for(let t=0;t<3;++t)if(Array.from(n.classList).some((e=>e.includes("o-count-")))){var o,r;const t=Array.from(n.classList),s=t.filter((e=>e.includes("o-count-delay-"))).pop(),l=parseInt((null==s||null===(o=s.split("-"))||void 0===o?void 0:o[3])||"0"),i=null==s?void 0:s.includes("ms"),a=Object.keys(e),u=(null==t||null===(r=t.filter((e=>a.includes(e))))||void 0===r?void 0:r.pop())||"fast";return{speed:e[u],delay:l*(i?0:1e3)}}})(o),{suffix:u,prefix:c,number:d}=(e=>{const n=Array.from(e),o=[],r=[],s=[];let l=!0,i=!1;for(let e of n)t.has(e)?(l&&(l=!1),i?r.push(e):s.push(e)):l?o.push(e):(i||(i=!0),r.push(e));return{prefix:o.join(""),suffix:r.join(""),number:s}})(i),p=[...d].reverse().map(((e,t)=>n.has(e)?{position:t,character:e}:null)).filter((e=>e)),f=(null===(r=d.join(""))||void 0===r||null===(s=r.split("."))||void 0===s||null===(l=s[1])||void 0===l?void 0:l.length)||0,v=parseFloat(d.filter((e=>","!==e)).join("")),h=i.length-u.length,m=e=>{const t=e.split("").reverse();return p.forEach((e=>{e.position<t.length&&t.splice(e.position,0,e.character)})),((c||"")+t.reverse().join("")).padStart(h," ")+u||""},{start:y,steps:L}=((e,t)=>{let n,o=0;const r=Math.ceil(e/.05)+1||1,s=e=>{clearInterval(n),null==e||e()};return{steps:r,start:(e,t)=>{n=setInterval((()=>{o<r?(null==e||e(o),o+=1):s(t)}),50)},stop:s}})((null==a?void 0:a.speed)||2),S=parseFloat((v/L).toFixed(f||2));if(1e-12>S)return;let g=[0];for(let e=1;e<L;++e)g.push(g[e-1]+S);g=g.map((e=>e.toFixed(f))),0<g.length&&(g[L-1]=v.toFixed(f||0),o.innerHTML=m(g[0]),setTimeout((()=>{o.style.whiteSpace="pre",y((e=>{o.innerHTML=m(g[e])}),(()=>{o.style.whiteSpace="",o.innerHTML=i}))}),(null==a?void 0:a.delay)||0))})(s))}))}),o);r.observe(s)}}))}),300)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",o):o())}();
|
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' => '9f32ea0b8c26123e4246dfd9e916b8d4');
|
build/animation/index.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){var e={184:function(e,t){var l;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var l=arguments[t];if(l){var a=typeof l;if("string"===a||"number"===a)e.push(l);else if(Array.isArray(l)){if(l.length){var r=n.apply(null,l);r&&e.push(r)}}else if("object"===a)if(l.toString===Object.prototype.toString)for(var i in l)o.call(l,i)&&l[i]&&e.push(i);else e.push(l.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(l=function(){return n}.apply(t,[]))||(e.exports=l)}()}},t={};function l(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,l),a.exports}l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");o.length&&(e=o[o.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e}(),function(){"use strict";var e=window.wp.element,t=window.wp.i18n,o=window.wp.blocks,n=window.wp.components,a=window.wp.compose,r=window.wp.blockEditor,i=window.wp.hooks,c=window.wp.data,s=window.wp.richText;const u=[{label:(0,t.__)("None","otter-blocks"),value:"none"},{label:(0,t.__)("Back In Down","otter-blocks"),value:"backInDown"},{label:(0,t.__)("Back In Left","otter-blocks"),value:"backInLeft"},{label:(0,t.__)("Back In Right","otter-blocks"),value:"backInRight"},{label:(0,t.__)("Back In Up","otter-blocks"),value:"backInUp"},{label:(0,t.__)("Bounce","otter-blocks"),value:"bounce"},{label:(0,t.__)("Bounce In","otter-blocks"),value:"bounceIn"},{label:(0,t.__)("Bounce In Down","otter-blocks"),value:"bounceInDown"},{label:(0,t.__)("Bounce In Left","otter-blocks"),value:"bounceInLeft"},{label:(0,t.__)("Bounce In Right","otter-blocks"),value:"bounceInRight"},{label:(0,t.__)("Bounce In Up","otter-blocks"),value:"bounceInUp"},{label:(0,t.__)("Fade In","otter-blocks"),value:"fadeIn"},{label:(0,t.__)("Fade In Down","otter-blocks"),value:"fadeInDown"},{label:(0,t.__)("Fade In Down Big","otter-blocks"),value:"fadeInDownBig"},{label:(0,t.__)("Fade In Left","otter-blocks"),value:"fadeInLeft"},{label:(0,t.__)("Fade In Left Big","otter-blocks"),value:"fadeInLeftBig"},{label:(0,t.__)("Fade In Right","otter-blocks"),value:"fadeInRight"},{label:(0,t.__)("Fade In Right Big","otter-blocks"),value:"fadeInRightBig"},{label:(0,t.__)("Fade In Up","otter-blocks"),value:"fadeInUp"},{label:(0,t.__)("Fade In Top Left","otter-blocks"),value:"fadeInTopLeft"},{label:(0,t.__)("Fade In Top Right","otter-blocks"),value:"fadeInTopRight"},{label:(0,t.__)("Fade In Bottom Left","otter-blocks"),value:"fadeInBottomLeft"},{label:(0,t.__)("Fade In Bottom Right","otter-blocks"),value:"fadeInBottomRight"},{label:(0,t.__)("Flip","otter-blocks"),value:"flip"},{label:(0,t.__)("Flip In X","otter-blocks"),value:"flipInX"},{label:(0,t.__)("Flip In Y","otter-blocks"),value:"flipInY"},{label:(0,t.__)("Rotate In","otter-blocks"),value:"rotateIn"},{label:(0,t.__)("Rotate In Down Left","otter-blocks"),value:"rotateInDownLeft"},{label:(0,t.__)("Rotate In Down Right","otter-blocks"),value:"rotateInDownRight"},{label:(0,t.__)("Rotate In Up Left","otter-blocks"),value:"rotateInUpLeft"},{label:(0,t.__)("Rotate In Up Right","otter-blocks"),value:"rotateInUpRight"},{label:(0,t.__)("Slide In Down","otter-blocks"),value:"slideInDown"},{label:(0,t.__)("Slide In Left","otter-blocks"),value:"slideInLeft"},{label:(0,t.__)("Slide In Right","otter-blocks"),value:"slideInRight"},{label:(0,t.__)("Slide In Up","otter-blocks"),value:"slideInUp"},{label:(0,t.__)("Zoom In","otter-blocks"),value:"zoomIn"},{label:(0,t.__)("Zoom In Down","otter-blocks"),value:"zoomInDown"},{label:(0,t.__)("Zoom In Left","otter-blocks"),value:"zoomInLeft"},{label:(0,t.__)("Zoom In Right","otter-blocks"),value:"zoomInRight"},{label:(0,t.__)("Zoom In Up","otter-blocks"),value:"zoomInUp"},{label:(0,t.__)("Roll In","otter-blocks"),value:"rollIn"},{label:(0,t.__)("Light Speed In Right","otter-blocks"),value:"lightSpeedInRight"},{label:(0,t.__)("Light Speed In Left","otter-blocks"),value:"lightSpeedInLeft"},{label:(0,t.__)("Flash","otter-blocks"),value:"flash"},{label:(0,t.__)("Pulse","otter-blocks"),value:"pulse"},{label:(0,t.__)("Rubber Band","otter-blocks"),value:"rubberBand"},{label:(0,t.__)("Shake X","otter-blocks"),value:"shakeX"},{label:(0,t.__)("Shake Y","otter-blocks"),value:"shakeY"},{label:(0,t.__)("Head Shake","otter-blocks"),value:"headShake"},{label:(0,t.__)("Swing","otter-blocks"),value:"swing"},{label:(0,t.__)("TaDa","otter-blocks"),value:"tada"},{label:(0,t.__)("Wobble","otter-blocks"),value:"wobble"},{label:(0,t.__)("Jello","otter-blocks"),value:"jello"},{label:(0,t.__)("Heart Beat","otter-blocks"),value:"heartBeat"},{label:(0,t.__)("Hinge","otter-blocks"),value:"hinge"},{label:(0,t.__)("Jack In The Box","otter-blocks"),value:"jackInTheBox"}],b=[{label:(0,t.__)("Backing","otter-blocks"),value:"backInDown"},{label:(0,t.__)("Bouncing","otter-blocks"),value:"bounce"},{label:(0,t.__)("Fading","otter-blocks"),value:"fadeIn"},{label:(0,t.__)("Flipping","otter-blocks"),value:"flip"},{label:(0,t.__)("Rotating","otter-blocks"),value:"rotateIn"},{label:(0,t.__)("Sliding","otter-blocks"),value:"slideInDown"},{label:(0,t.__)("Zooming","otter-blocks"),value:"zoomIn"},{label:(0,t.__)("Rolling","otter-blocks"),value:"rollIn"},{label:(0,t.__)("Light Speed","otter-blocks"),value:"lightSpeedInRight"},{label:(0,t.__)("Other","otter-blocks"),value:"flash"}],m=["backOutDown","backOutLeft","backOutRight","backOutUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flipOutX","flipOutY","lightSpeedOutRight","lightSpeedOutLeft","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],d=[{label:(0,t.__)("None","otter-blocks"),value:"none"},{label:(0,t.__)("100 Milliseconds","otter-blocks"),value:"delay-100ms"},{label:(0,t.__)("200 Milliseconds","otter-blocks"),value:"delay-200ms"},{label:(0,t.__)("500 Milliseconds","otter-blocks"),value:"delay-500ms"},{label:(0,t.__)("One Second","otter-blocks"),value:"delay-1s"},{label:(0,t.__)("Two Second","otter-blocks"),value:"delay-2s"},{label:(0,t.__)("Three Second","otter-blocks"),value:"delay-3s"},{label:(0,t.__)("Four Second","otter-blocks"),value:"delay-4s"},{label:(0,t.__)("Five Second","otter-blocks"),value:"delay-5s"}],p=[{label:(0,t.__)("Default","otter-blocks"),value:"none"},{label:(0,t.__)("Slow","otter-blocks"),value:"slow"},{label:(0,t.__)("Slower","otter-blocks"),value:"slower"},{label:(0,t.__)("Fast","otter-blocks"),value:"fast"},{label:(0,t.__)("Faster","otter-blocks"),value:"faster"}];var g=function l(o){let{animationsList:r,updateAnimation:i,currentAnimationLabel:c,setCurrentAnimationLabel:s}=o;const u=(0,a.useInstanceId)(l),[m,_]=(0,e.useState)(""),[d,p]=(0,e.useState)(!1),g=`inspector-o-animations-control-${u}`;return(0,e.createElement)(n.BaseControl,{label:(0,t.__)("Animation","otter-blocks"),id:g},(0,e.createElement)(n.Dropdown,{contentClassName:"o-animations-control__popover",position:"bottom center",renderToggle:t=>{let{isOpen:l,onToggle:o}=t;return(0,e.createElement)(n.Button,{className:"o-animations-control__button",id:g,onClick:o,"aria-expanded":l},c)},renderContent:l=>{let{onToggle:o}=l;return(0,e.createElement)(n.MenuGroup,{label:(0,t.__)("Animations","otter-blocks")},(0,e.createElement)(n.TextControl,{placeholder:(0,t.__)("Search","otter-blocks"),value:m,onChange:e=>{_(e),p(!1)}}),(0,e.createElement)("div",{className:"components-popover__items"},r.map((t=>(0,e.createElement)(e.Fragment,null,""===m&&b.map((l=>l.value===t.value?(0,e.createElement)("div",{className:"o-animations-control__category"},l.label):"")),((t,l)=>{let o=!0;return m&&m.toLowerCase().split(" ").forEach((e=>{t.label.toLowerCase().includes(e)||(o=!1)})),o&&!d&&p(!0),o&&(0,e.createElement)(n.MenuItem,{className:c===t.label?"is-selected":"",onClick:()=>{s(t.label),i(t.value),l()}},t.label)})(t,o)))),!d&&(0,e.createElement)("div",null,(0,t.__)("Nothing found. Try searching for something else!","otter-blocks"))))}}))},v=l(184),f=l.n(v),k=function(t){let{icon:l,size:o=24,...n}=t;return(0,e.cloneElement)(l,{width:o,height:o,...n})},h=window.wp.primitives,w=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})),I=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));const E=l=>{let{label:o,attributes:r,setAttributes:i,resetValues:c,onClick:s,children:u}=l;(0,e.useEffect)((()=>{for(const e in c){if(c[e]!==r[e])return _(!0);_(!1)}}),[r]);const b=(0,a.useInstanceId)(E),[m,_]=(0,e.useState)(!1),d=`inspector-control-panel-control-${b}`;return(0,e.createElement)("div",{className:"o-control-panel-control"},(0,e.createElement)("div",{className:"components-base-control__field"},(0,e.createElement)("div",{className:"components-base-control__title"},(0,e.createElement)("label",{className:"components-base-control__label",htmlFor:d},o),(0,e.createElement)("div",{className:"floating-controls"},(0,e.createElement)(n.Dropdown,{position:"top left",headerTitle:o,expandOnMobile:!0,renderToggle:l=>{let{isOpen:a,onToggle:r}=l;return(0,e.createElement)(e.Fragment,null,m&&(0,e.createElement)(n.Button,{icon:(0,e.createElement)(k,{icon:w}),label:(0,t.__)("Reset to default","otter-blocks"),showTooltip:!0,isTertiary:!0,onClick:()=>i({...c})}),(0,e.createElement)(n.Button,{id:d,icon:I,label:o,showTooltip:!0,onClick:()=>{r(),s&&s()},"aria-expanded":a,className:f()({"is-active":m})}))},renderContent:()=>(0,e.createElement)("div",{className:"otter-popover-settings"},u)})))))};var y=E,S=l.p+"images/count-animation.1151d25d.png",O=l.p+"images/typing-animation.d84cccd1.png";const B="count",L="typing",R="default";var F=(0,e.memo)((function(l){let{clientId:a,attributes:r,setAttributes:i}=l;(0,e.useEffect)((()=>{let e;if(r.className){e=r.className,e=e.split(" ");let t=Array.from(u).find((t=>e.find((e=>e===t.value))));const l=Array.from(d).find((t=>e.find((e=>e===t.value)))),o=Array.from(p).find((t=>e.find((e=>e===t.value)))),n=Array.from(d).find((t=>e.find((e=>e===`o-count-${t.value}`)))),a=Array.from(p).find((t=>e.find((e=>e===`o-count-${t.value}`)))),i=Array.from(d).find((t=>e.find((e=>e===`o-typing-${t.value}`)))),c=Array.from(p).find((t=>e.find((e=>e===`o-typing-${t.value}`))));k(t?t.value:"none"),w(l?l.value:"none"),E(o?o.value:"none"),C(t?t.label:"none"),A(n?n.value:"none"),D(a?a.value:"none"),U(i?i.value:"none"),$(c?c.value:"none")}}),[]);const{hasCountFormat:b,hasTypingFormat:v}=(0,c.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),l=(0,o.serialize)(t(a)),n=(0,s.create)({html:l});let r=!1,i=!1;return n.formats&&(r=n.formats.some((e=>!0===e.some((e=>"themeisle-blocks/count-animation"===e.type)))),i=n.formats.some((e=>!0===e.some((e=>"themeisle-blocks/typing-animation"===e.type))))),{hasCountFormat:r,hasTypingFormat:i}}),[]),[f,k]=(0,e.useState)("none"),[h,w]=(0,e.useState)("none"),[I,E]=(0,e.useState)("none"),[F,C]=(0,e.useState)((0,t.__)("None","otter-blocks")),[T,A]=(0,e.useState)("none"),[N,D]=(0,e.useState)("none"),[x,U]=(0,e.useState)("none"),[z,$]=(0,e.useState)("none"),j=(e,t,l,o)=>{let n;switch(e){case B:n="o-count-";break;case L:n="o-typing-";break;case R:n=""}const a=n+t,c="none"!==l?n+l:"";let s;r.className?(s=r.className,s=s.split(" "),s.find((e=>e===a))?s=s.join(" ").replace(a,c):(s.push(c),s=s.join(" ").trim())):s=c,s=s.replace(/\s+/g," "),""===s&&(s=void 0),i({className:s}),null==o||o()};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(y,{label:(0,t.__)("Loading Animations","otter-blocks")},(0,e.createElement)("div",{className:"o-animations-control"},(0,e.createElement)(g,{animationsList:u,updateAnimation:e=>{let t,l="none"!==e?e:"";if(r.className){t=r.className,t=t.split(" ");const e=t.find((e=>e===f));t.find((e=>"animated"===e))||t.push("animated"),e?t=t.join(" ").replace(f,l):(t.push(l),t=t.join(" "))}else t=`animated ${l}`;"none"===e&&(t=t.replace("animated","").replace(h,"").replace(I,""),w("none"),E("none")),t=t.replace(/\s+/g," ").trim(),""===t&&(t=void 0),k(e),i({className:t});let o=document.querySelector(`#block-${a} .animated`)||document.querySelector(`#block-${a}.animated`);o&&m.forEach((e=>{o.className.includes(e)&&o.addEventListener("animationend",(()=>{o.classList.remove(e),o.addEventListener("animationstart",(()=>{o.classList.remove(e)}))}))}))},currentAnimationLabel:F,setCurrentAnimationLabel:C}),"none"!==f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:h||"none",options:d,onChange:e=>j(R,h,e,(()=>w(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:I||"none",options:p,onChange:e=>j(R,I,e,(()=>E(e)))})))),(0,e.createElement)(y,{label:(0,t.__)("Count Animations","otter-blocks")},b?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:T||"none",options:d,onChange:e=>j(B,T,e,(()=>A(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:N||"none",options:p,onChange:e=>j(B,N,e,(()=>$(e)))})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{src:O,alt:_("Using Count Animation in the Block Editor","otter-blocks"),className:"otter-animations-count-image"}),(0,e.createElement)("p",null,(0,t.__)("You can add counting animation from the format toolbar of this block. Once you have added them, you will see customization settings here.","otter-blocks")),(0,e.createElement)("p",null,(0,t.__)("Note: This feature is not available in all the blocks.","otter-blocks")))),(0,e.createElement)(y,{label:(0,t.__)("Typing Animations","otter-blocks")},v?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:x||"none",options:d,onChange:e=>j(L,x,e,(()=>U(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:z||"none",options:p,onChange:e=>j(L,z,e,(()=>$(e)))})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{src:S,alt:_("Using Typing Animation in the Block Editor","otter-blocks"),className:"otter-animations-count-image"}),(0,e.createElement)("p",null,(0,t.__)("You can add typing animation from the format toolbar of this block. Once you have added them, you will see customization settings here.","otter-blocks")),(0,e.createElement)("p",null,(0,t.__)("Note: This feature is not available in all the blocks.","otter-blocks")))))})),C=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"}));const T="themeisle-blocks/count-animation";(0,s.registerFormatType)(T,{title:(0,t.__)("Count Animation","otter-blocks"),tagName:"o-anim-count",className:null,edit:l=>{let{isActive:o,value:n,onChange:a}=l;const i=/^\$?[\d,]+(\.\d*)?$/;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RichTextToolbarButton,{icon:C,title:(0,t.__)("Count Animation","otter-blocks"),isDisabled:!o&&null===i.exec(n.text.substring(n.start,n.end)),onClick:()=>{(o||!o&&null!==i.exec(n.text.substring(n.start,n.end)))&&a((0,s.toggleFormat)(n,{type:T}))},isActive:o}))}});const A="themeisle-blocks/typing-animation";(0,s.registerFormatType)(A,{title:(0,t.__)("Typing Animation","otter-blocks"),tagName:"o-anim-typing",className:null,edit:l=>{let{isActive:o,value:n,onChange:a}=l;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RichTextToolbarButton,{icon:C,title:(0,t.__)("Typing Animation","otter-blocks"),onClick:()=>{a((0,s.toggleFormat)(n,{type:A}))},isActive:o}))}});const N=["themeisle-blocks/popup"],D=(0,a.createHigherOrderComponent)((l=>a=>(0,o.hasBlockSupport)(a.name,"customClassName",!0)&&a.isSelected&&!N.includes(a.name)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l,a),(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(n.PanelBody,{title:(0,t.__)("Animations","otter-blocks"),initialOpen:!1,className:"o-is-new"},(0,e.createElement)(F,{clientId:a.clientId,setAttributes:a.setAttributes,attributes:a.attributes}),(0,i.applyFilters)("otter.poweredBy","")))):(0,e.createElement)(l,a)),"withInspectorControl");(0,i.addFilter)("editor.BlockEdit","themeisle-custom-css/with-inspector-controls",D)}()}();
|
1 |
+
!function(){var e={184:function(e,t){var l;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var l=arguments[t];if(l){var a=typeof l;if("string"===a||"number"===a)e.push(l);else if(Array.isArray(l)){if(l.length){var r=n.apply(null,l);r&&e.push(r)}}else if("object"===a)if(l.toString===Object.prototype.toString)for(var i in l)o.call(l,i)&&l[i]&&e.push(i);else e.push(l.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(l=function(){return n}.apply(t,[]))||(e.exports=l)}()}},t={};function l(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,l),a.exports}l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");o.length&&(e=o[o.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e}(),function(){"use strict";var e=window.wp.element,t=window.wp.i18n,o=window.wp.blocks,n=window.wp.components,a=window.wp.compose,r=window.wp.blockEditor,i=window.wp.hooks,c=window.wp.data,s=window.wp.richText;const u=[{label:(0,t.__)("None","otter-blocks"),value:"none"},{label:(0,t.__)("Back In Down","otter-blocks"),value:"backInDown"},{label:(0,t.__)("Back In Left","otter-blocks"),value:"backInLeft"},{label:(0,t.__)("Back In Right","otter-blocks"),value:"backInRight"},{label:(0,t.__)("Back In Up","otter-blocks"),value:"backInUp"},{label:(0,t.__)("Bounce","otter-blocks"),value:"bounce"},{label:(0,t.__)("Bounce In","otter-blocks"),value:"bounceIn"},{label:(0,t.__)("Bounce In Down","otter-blocks"),value:"bounceInDown"},{label:(0,t.__)("Bounce In Left","otter-blocks"),value:"bounceInLeft"},{label:(0,t.__)("Bounce In Right","otter-blocks"),value:"bounceInRight"},{label:(0,t.__)("Bounce In Up","otter-blocks"),value:"bounceInUp"},{label:(0,t.__)("Fade In","otter-blocks"),value:"fadeIn"},{label:(0,t.__)("Fade In Down","otter-blocks"),value:"fadeInDown"},{label:(0,t.__)("Fade In Down Big","otter-blocks"),value:"fadeInDownBig"},{label:(0,t.__)("Fade In Left","otter-blocks"),value:"fadeInLeft"},{label:(0,t.__)("Fade In Left Big","otter-blocks"),value:"fadeInLeftBig"},{label:(0,t.__)("Fade In Right","otter-blocks"),value:"fadeInRight"},{label:(0,t.__)("Fade In Right Big","otter-blocks"),value:"fadeInRightBig"},{label:(0,t.__)("Fade In Up","otter-blocks"),value:"fadeInUp"},{label:(0,t.__)("Fade In Top Left","otter-blocks"),value:"fadeInTopLeft"},{label:(0,t.__)("Fade In Top Right","otter-blocks"),value:"fadeInTopRight"},{label:(0,t.__)("Fade In Bottom Left","otter-blocks"),value:"fadeInBottomLeft"},{label:(0,t.__)("Fade In Bottom Right","otter-blocks"),value:"fadeInBottomRight"},{label:(0,t.__)("Flip","otter-blocks"),value:"flip"},{label:(0,t.__)("Flip In X","otter-blocks"),value:"flipInX"},{label:(0,t.__)("Flip In Y","otter-blocks"),value:"flipInY"},{label:(0,t.__)("Rotate In","otter-blocks"),value:"rotateIn"},{label:(0,t.__)("Rotate In Down Left","otter-blocks"),value:"rotateInDownLeft"},{label:(0,t.__)("Rotate In Down Right","otter-blocks"),value:"rotateInDownRight"},{label:(0,t.__)("Rotate In Up Left","otter-blocks"),value:"rotateInUpLeft"},{label:(0,t.__)("Rotate In Up Right","otter-blocks"),value:"rotateInUpRight"},{label:(0,t.__)("Slide In Down","otter-blocks"),value:"slideInDown"},{label:(0,t.__)("Slide In Left","otter-blocks"),value:"slideInLeft"},{label:(0,t.__)("Slide In Right","otter-blocks"),value:"slideInRight"},{label:(0,t.__)("Slide In Up","otter-blocks"),value:"slideInUp"},{label:(0,t.__)("Zoom In","otter-blocks"),value:"zoomIn"},{label:(0,t.__)("Zoom In Down","otter-blocks"),value:"zoomInDown"},{label:(0,t.__)("Zoom In Left","otter-blocks"),value:"zoomInLeft"},{label:(0,t.__)("Zoom In Right","otter-blocks"),value:"zoomInRight"},{label:(0,t.__)("Zoom In Up","otter-blocks"),value:"zoomInUp"},{label:(0,t.__)("Roll In","otter-blocks"),value:"rollIn"},{label:(0,t.__)("Light Speed In Right","otter-blocks"),value:"lightSpeedInRight"},{label:(0,t.__)("Light Speed In Left","otter-blocks"),value:"lightSpeedInLeft"},{label:(0,t.__)("Flash","otter-blocks"),value:"flash"},{label:(0,t.__)("Pulse","otter-blocks"),value:"pulse"},{label:(0,t.__)("Rubber Band","otter-blocks"),value:"rubberBand"},{label:(0,t.__)("Shake X","otter-blocks"),value:"shakeX"},{label:(0,t.__)("Shake Y","otter-blocks"),value:"shakeY"},{label:(0,t.__)("Head Shake","otter-blocks"),value:"headShake"},{label:(0,t.__)("Swing","otter-blocks"),value:"swing"},{label:(0,t.__)("TaDa","otter-blocks"),value:"tada"},{label:(0,t.__)("Wobble","otter-blocks"),value:"wobble"},{label:(0,t.__)("Jello","otter-blocks"),value:"jello"},{label:(0,t.__)("Heart Beat","otter-blocks"),value:"heartBeat"},{label:(0,t.__)("Hinge","otter-blocks"),value:"hinge"},{label:(0,t.__)("Jack In The Box","otter-blocks"),value:"jackInTheBox"}],b=[{label:(0,t.__)("Backing","otter-blocks"),value:"backInDown"},{label:(0,t.__)("Bouncing","otter-blocks"),value:"bounce"},{label:(0,t.__)("Fading","otter-blocks"),value:"fadeIn"},{label:(0,t.__)("Flipping","otter-blocks"),value:"flip"},{label:(0,t.__)("Rotating","otter-blocks"),value:"rotateIn"},{label:(0,t.__)("Sliding","otter-blocks"),value:"slideInDown"},{label:(0,t.__)("Zooming","otter-blocks"),value:"zoomIn"},{label:(0,t.__)("Rolling","otter-blocks"),value:"rollIn"},{label:(0,t.__)("Light Speed","otter-blocks"),value:"lightSpeedInRight"},{label:(0,t.__)("Other","otter-blocks"),value:"flash"}],m=["backOutDown","backOutLeft","backOutRight","backOutUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flipOutX","flipOutY","lightSpeedOutRight","lightSpeedOutLeft","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],d=[{label:(0,t.__)("None","otter-blocks"),value:"none"},{label:(0,t.__)("100 Milliseconds","otter-blocks"),value:"delay-100ms"},{label:(0,t.__)("200 Milliseconds","otter-blocks"),value:"delay-200ms"},{label:(0,t.__)("500 Milliseconds","otter-blocks"),value:"delay-500ms"},{label:(0,t.__)("One Second","otter-blocks"),value:"delay-1s"},{label:(0,t.__)("Two Second","otter-blocks"),value:"delay-2s"},{label:(0,t.__)("Three Second","otter-blocks"),value:"delay-3s"},{label:(0,t.__)("Four Second","otter-blocks"),value:"delay-4s"},{label:(0,t.__)("Five Second","otter-blocks"),value:"delay-5s"}],p=[{label:(0,t.__)("Default","otter-blocks"),value:"none"},{label:(0,t.__)("Slow","otter-blocks"),value:"slow"},{label:(0,t.__)("Slower","otter-blocks"),value:"slower"},{label:(0,t.__)("Fast","otter-blocks"),value:"fast"},{label:(0,t.__)("Faster","otter-blocks"),value:"faster"}];var g=function l(o){let{animationsList:r,updateAnimation:i,currentAnimationLabel:c,setCurrentAnimationLabel:s}=o;const u=(0,a.useInstanceId)(l),[m,_]=(0,e.useState)(""),[d,p]=(0,e.useState)(!1),g=`inspector-o-animations-control-${u}`;return(0,e.createElement)(n.BaseControl,{label:(0,t.__)("Animation","otter-blocks"),id:g},(0,e.createElement)(n.Dropdown,{contentClassName:"o-animations-control__popover",position:"bottom center",renderToggle:t=>{let{isOpen:l,onToggle:o}=t;return(0,e.createElement)(n.Button,{className:"o-animations-control__button",id:g,onClick:o,"aria-expanded":l},c)},renderContent:l=>{let{onToggle:o}=l;return(0,e.createElement)(n.MenuGroup,{label:(0,t.__)("Animations","otter-blocks")},(0,e.createElement)(n.TextControl,{placeholder:(0,t.__)("Search","otter-blocks"),value:m,onChange:e=>{_(e),p(!1)}}),(0,e.createElement)("div",{className:"components-popover__items"},r.map((t=>(0,e.createElement)(e.Fragment,null,""===m&&b.map((l=>l.value===t.value?(0,e.createElement)("div",{className:"o-animations-control__category"},l.label):"")),((t,l)=>{let o=!0;return m&&m.toLowerCase().split(" ").forEach((e=>{t.label.toLowerCase().includes(e)||(o=!1)})),o&&!d&&p(!0),o&&(0,e.createElement)(n.MenuItem,{className:c===t.label?"is-selected":"",onClick:()=>{s(t.label),i(t.value),l()}},t.label)})(t,o)))),!d&&(0,e.createElement)("div",null,(0,t.__)("Nothing found. Try searching for something else!","otter-blocks"))))}}))},v=l(184),f=l.n(v),k=function(t){let{icon:l,size:o=24,...n}=t;return(0,e.cloneElement)(l,{width:o,height:o,...n})},h=window.wp.primitives,w=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})),I=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));const E=l=>{let{label:o,attributes:r,setAttributes:i,resetValues:c,onClick:s,children:u}=l;(0,e.useEffect)((()=>{for(const e in c){if(c[e]!==r[e])return _(!0);_(!1)}}),[r]);const b=(0,a.useInstanceId)(E),[m,_]=(0,e.useState)(!1),d=`inspector-control-panel-control-${b}`;return(0,e.createElement)("div",{className:"o-control-panel-control"},(0,e.createElement)("div",{className:"components-base-control__field"},(0,e.createElement)("div",{className:"components-base-control__title"},(0,e.createElement)("label",{className:"components-base-control__label",htmlFor:d},o),(0,e.createElement)("div",{className:"floating-controls"},(0,e.createElement)(n.Dropdown,{position:"top left",headerTitle:o,expandOnMobile:!0,renderToggle:l=>{let{isOpen:a,onToggle:r}=l;return(0,e.createElement)(e.Fragment,null,m&&(0,e.createElement)(n.Button,{icon:(0,e.createElement)(k,{icon:w}),label:(0,t.__)("Reset to default","otter-blocks"),showTooltip:!0,isTertiary:!0,onClick:()=>i({...c})}),(0,e.createElement)(n.Button,{id:d,icon:I,label:o,showTooltip:!0,onClick:()=>{r(),s&&s()},"aria-expanded":a,className:f()({"is-active":m})}))},renderContent:()=>(0,e.createElement)("div",{className:"otter-popover-settings"},u)})))))};var y=E,S=l.p+"images/count-animation.1151d25d.png",O=l.p+"images/typing-animation.d84cccd1.png";const B="count",L="typing",R="default";var F=(0,e.memo)((function(l){let{clientId:a,attributes:r,setAttributes:i}=l;(0,e.useEffect)((()=>{let e;if(r.className){e=r.className,e=e.split(" ");let t=Array.from(u).find((t=>e.find((e=>e===t.value))));const l=Array.from(d).find((t=>e.find((e=>e===t.value)))),o=Array.from(p).find((t=>e.find((e=>e===t.value)))),n=Array.from(d).find((t=>e.find((e=>e===`o-count-${t.value}`)))),a=Array.from(p).find((t=>e.find((e=>e===`o-count-${t.value}`)))),i=Array.from(d).find((t=>e.find((e=>e===`o-typing-${t.value}`)))),c=Array.from(p).find((t=>e.find((e=>e===`o-typing-${t.value}`))));k(t?t.value:"none"),w(l?l.value:"none"),E(o?o.value:"none"),C(t?t.label:"none"),A(n?n.value:"none"),D(a?a.value:"none"),U(i?i.value:"none"),$(c?c.value:"none")}}),[]);const{hasCountFormat:b,hasTypingFormat:v}=(0,c.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),l=(0,o.serialize)(t(a)),n=(0,s.create)({html:l});let r=!1,i=!1;return n.formats&&(r=n.formats.some((e=>!0===e.some((e=>"themeisle-blocks/count-animation"===e.type)))),i=n.formats.some((e=>!0===e.some((e=>"themeisle-blocks/typing-animation"===e.type))))),{hasCountFormat:r,hasTypingFormat:i}}),[]),[f,k]=(0,e.useState)("none"),[h,w]=(0,e.useState)("none"),[I,E]=(0,e.useState)("none"),[F,C]=(0,e.useState)((0,t.__)("None","otter-blocks")),[T,A]=(0,e.useState)("none"),[N,D]=(0,e.useState)("none"),[x,U]=(0,e.useState)("none"),[z,$]=(0,e.useState)("none"),j=(e,t,l,o)=>{let n;switch(e){case B:n="o-count-";break;case L:n="o-typing-";break;case R:n=""}const a=n+t,c="none"!==l?n+l:"";let s;r.className?(s=r.className,s=s.split(" "),s.find((e=>e===a))?s=s.join(" ").replace(a,c):(s.push(c),s=s.join(" ").trim())):s=c,s=s.replace(/\s+/g," "),""===s&&(s=void 0),i({className:s}),null==o||o()};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(y,{label:(0,t.__)("Loading Animations","otter-blocks")},(0,e.createElement)("div",{className:"o-animations-control"},(0,e.createElement)(g,{animationsList:u,updateAnimation:e=>{let t,l="none"!==e?e:"";if(r.className){t=r.className,t=t.split(" ");const e=t.find((e=>e===f));t.find((e=>"animated"===e))||t.push("animated"),e?t=t.join(" ").replace(f,l):(t.push(l),t=t.join(" "))}else t=`animated ${l}`;"none"===e&&(t=t.replace("animated","").replace(h,"").replace(I,""),w("none"),E("none")),t=t.replace(/\s+/g," ").trim(),""===t&&(t=void 0),k(e),i({className:t});let o=document.querySelector(`#block-${a} .animated`)||document.querySelector(`#block-${a}.animated`);o&&m.forEach((e=>{o.className.includes(e)&&o.addEventListener("animationend",(()=>{o.classList.remove(e),o.addEventListener("animationstart",(()=>{o.classList.remove(e)}))}))}))},currentAnimationLabel:F,setCurrentAnimationLabel:C}),"none"!==f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:h||"none",options:d,onChange:e=>j(R,h,e,(()=>w(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:I||"none",options:p,onChange:e=>j(R,I,e,(()=>E(e)))})))),(0,e.createElement)(y,{label:(0,t.__)("Count Animations","otter-blocks")},b?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:T||"none",options:d,onChange:e=>j(B,T,e,(()=>A(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:N||"none",options:p,onChange:e=>j(B,N,e,(()=>$(e)))})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{src:O,alt:_("Using Count Animation in the Block Editor","otter-blocks"),className:"otter-animations-count-image"}),(0,e.createElement)("p",null,(0,t.__)("You can add counting animation from the format toolbar of this block. Once you have added them, you will see customization settings here.","otter-blocks")),(0,e.createElement)("p",null,(0,t.__)("Note: This feature is not available in all the blocks.","otter-blocks")))),(0,e.createElement)(y,{label:(0,t.__)("Typing Animations","otter-blocks")},v?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:x||"none",options:d,onChange:e=>j(L,x,e,(()=>U(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:z||"none",options:p,onChange:e=>j(L,z,e,(()=>$(e)))})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{src:S,alt:_("Using Typing Animation in the Block Editor","otter-blocks"),className:"otter-animations-count-image"}),(0,e.createElement)("p",null,(0,t.__)("You can add typing animation from the format toolbar of this block. Once you have added them, you will see customization settings here.","otter-blocks")),(0,e.createElement)("p",null,(0,t.__)("Note: This feature is not available in all the blocks.","otter-blocks")))))})),C=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"}));const T="themeisle-blocks/count-animation";(0,s.registerFormatType)(T,{name:T,title:(0,t.__)("Count Animation","otter-blocks"),tagName:"o-anim-count",className:null,edit:l=>{let{isActive:o,value:n,onChange:a}=l;const i=/^\$?[\d,]+(\.\d*)?$/;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RichTextToolbarButton,{icon:C,title:(0,t.__)("Count Animation","otter-blocks"),isDisabled:!o&&null===i.exec(n.text.substring(n.start,n.end)),onClick:()=>{(o||!o&&null!==i.exec(n.text.substring(n.start,n.end)))&&a((0,s.toggleFormat)(n,{type:T}))},isActive:o}))}});const A="themeisle-blocks/typing-animation";(0,s.registerFormatType)(A,{name:A,title:(0,t.__)("Typing Animation","otter-blocks"),tagName:"o-anim-typing",className:null,edit:l=>{let{isActive:o,value:n,onChange:a}=l;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RichTextToolbarButton,{icon:C,title:(0,t.__)("Typing Animation","otter-blocks"),onClick:()=>{a((0,s.toggleFormat)(n,{type:A}))},isActive:o}))}});const N=["themeisle-blocks/popup"],D=(0,a.createHigherOrderComponent)((l=>a=>(0,o.hasBlockSupport)(a.name,"customClassName",!0)&&a.isSelected&&!N.includes(a.name)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l,a),(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(n.PanelBody,{title:(0,t.__)("Animations","otter-blocks"),initialOpen:!1,className:"o-is-new"},(0,e.createElement)(F,{clientId:a.clientId,setAttributes:a.setAttributes,attributes:a.attributes}),(0,i.applyFilters)("otter.poweredBy","")))):(0,e.createElement)(l,a)),"withInspectorControl");(0,i.addFilter)("editor.BlockEdit","themeisle-custom-css/with-inspector-controls",D)}()}();
|
build/blocks/advanced-heading/editor.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
span.wp-block-themeisle-blocks-advanced-heading{display:block}
|
1 |
+
span.wp-block-themeisle-blocks-advanced-heading{display:block}.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/style.scss","../../../src/blocks/blocks/advanced-heading/editor.scss"],"names":[],"mappings":"AAAA,gDACC,
|
1 |
+
{"version":3,"sourceRoot":"","sources":["../../../src/blocks/blocks/advanced-heading/style.scss","../../../src/blocks/blocks/advanced-heading/editor.scss"],"names":[],"mappings":"AAAA,gDACC,cAIA,sDACC,sBACA,WCJD,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}
|
1 |
+
span.wp-block-themeisle-blocks-advanced-heading{display:block}.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":"AAAA,gDACC,
|
1 |
+
{"version":3,"sourceRoot":"","sources":["../../../src/blocks/blocks/advanced-heading/style.scss"],"names":[],"mappings":"AAAA,gDACC,cAIA,sDACC,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' => 'a047f856f29bb149cfecb3cc131450da');
|
build/blocks/blocks.js
CHANGED
@@ -1,187 +1,14 @@
|
|
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};
|
30 |
-
}
|
31 |
-
|
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,
|
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 ) {
|
136 |
-
${t.customTitleFontSize&&`--titleTextSize: ${t.customTitleFontSize}px;`}
|
137 |
-
${t.customDescriptionFontSize&&`--descriptionTextSize: ${t.customDescriptionFontSize}px;`}
|
138 |
-
}
|
139 |
-
|
140 |
-
@media ( min-width: 600px ) and ( max-width: 960px ) {
|
141 |
-
${t.customTitleFontSizeTablet&&`--titleTextSize: ${t.customTitleFontSizeTablet}px;`}
|
142 |
-
${t.customDescriptionFontSizeTablet&&`--descriptionTextSize: ${t.customDescriptionFontSizeTablet}px;`}
|
143 |
-
}
|
144 |
-
|
145 |
-
@media ( max-width: 600px ) {
|
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};
|
153 |
-
--percentageColorTooltip: ${t.percentageColor};
|
154 |
-
--percentageColorAppend: ${t.percentageColor};
|
155 |
-
--backgroundColor: ${t.backgroundColor};
|
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")}`,value:e.clientId})));return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Tabs Management","otter-blocks")},(0,c.createElement)("p",null,(0,l.__)("Press and hold to use drag and drop to sort the tabs","otter-blocks")),0<(null==r?void 0:r.length)&&(0,c.createElement)(v,{items:r,onSortEnd:e=>{let{oldIndex:t,newIndex:o}=e;u(r[t].clientId,o)},useDragHandle:!0,axis:"y",lockAxis:"y"}),(0,c.createElement)(s.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-tabs-inspector-add-tab",onClick:m},(0,l.__)("Add Tab","otter-blocks")),(0,c.createElement)(s.SelectControl,{label:(0,l.__)("Initial Tab","otter-blocks"),value:b,options:y,onChange:e=>{r.forEach(((e,t)=>{g(r[t].clientId,{defaultOpen:!1})})),g(e,{defaultOpen:!0}),p(e)}})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:o.borderWidth,onChange:e=>{a({borderWidth:Number(e)})},min:0,max:5})),(0,c.createElement)(i.PanelColorSettings,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:o.activeTitleColor,onChange:e=>{a({activeTitleColor:e})},label:(0,l.__)("Active Title Color","otter-blocks")},{value:o.tabColor,onChange:e=>{a({tabColor:e})},label:(0,l.__)("Background","otter-blocks")},{value:o.borderColor,onChange:e=>{a({borderColor:e})},label:(0,l.__)("Border Color","otter-blocks")}]},(0,c.createElement)(i.ContrastChecker,{textColor:o.activeTitleColor,backgroundColor:o.tabColor})))},Oa=o(4688),Aa=e=>{let{children:t,selectedTab:o,moveTab:a,selectTab:r}=e;const n=null==t?void 0:t.findIndex((e=>{let{clientId:t}=e;return t===o})),d=e=>{switch(e){case"left":a(o,n-1);break;case"right":a(o,n+1)}};return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(s.ToolbarGroup,{label:(0,l.__)("Edit","otter-blocks")},(0,c.createElement)(s.ToolbarButton,{label:(0,l.__)("Edit tab","otter-blocks"),icon:Oa.Z,iconSize:24,className:"wp-block-themeisle-blocks-tabs-toolbar-edit",onClick:()=>r(o)})),(0,c.createElement)(s.ToolbarGroup,{label:(0,l.__)("Movement","otter-blocks")},(0,c.createElement)(s.ToolbarButton,{label:(0,l.__)("Move tab left","otter-blocks"),icon:va.Z,iconSize:24,disabled:0===n,className:"wp-block-themeisle-blocks-tabs-toolbar-mover",onClick:()=>d("left")}),(0,c.createElement)(s.ToolbarButton,{label:(0,l.__)("Move tab right","otter-blocks"),icon:ya.Z,iconSize:24,disabled:(null==t?void 0:t.length)-1===n,className:"wp-block-themeisle-blocks-tabs-toolbar-mover",onClick:()=>d("right")})))};const{attributes:Fa}=Ra;const{name:Ga}=Ra;(0,a.registerBlockType)(Ga,{...Ra,title:(0,l.__)("Tabs","otter-blocks"),description:(0,l.__)("Organize and allow navigation between groups of content with Tabs block. Powered by Otter.","otter-blocks"),icon:yo.Z,keywords:["media","tabs","select"],edit:e=>{var t;let{attributes:o,setAttributes:r,isSelected:n,clientId:d}=e;(0,c.useEffect)((()=>{const e=(0,y.WX)(d,Fa);return()=>e(o.id)}),[o.id]);const m=(0,c.useRef)(null),u=(0,F.useSelect)((e=>{const{getBlock:t}=e("core/block-editor");return t(d).innerBlocks}),[]),[b,p]=(0,c.useState)(null===(t=u.find((e=>!0===e.attributes.defaultOpen)))||void 0===t?void 0:t.clientId),{insertBlock:k,removeBlock:v,selectBlock:_,moveBlockToPosition:f,updateBlockAttributes:C}=(0,F.useDispatch)("core/block-editor"),w=e=>{m.current&&(u.forEach((t=>{const o=m.current.querySelector(`#block-${t.clientId} .wp-block-themeisle-blocks-tabs-item__content`);null==o||o.classList.toggle("active",t.clientId===e)})),p(e))};(0,c.useEffect)((()=>{w(b)}),[]),(0,c.useEffect)((()=>{0<(null==u?void 0:u.length)&&(void 0!==b&&null!=u&&u.some((e=>e.clientId===b))||w(u[0].clientId))}),[b,u]);const E=e=>{if(0<(null==u?void 0:u.length)){const t=u.find((t=>t.clientId===e));_(t.clientId)}},x=(e,t)=>{var o;const l=null===(o=u.find((t=>t.clientId===e)))||void 0===o?void 0:o.clientId;l&&f(l,d,d,t)},T=()=>{const e=(0,a.createBlock)("themeisle-blocks/tabs-item");k(e,(null==u?void 0:u.length)||0,d,!1)},S=h.iv`
|
174 |
-
--borderWidth: ${void 0!==o.borderWidth?o.borderWidth:3}px;
|
175 |
-
--borderColor: ${o.borderColor};
|
176 |
-
--activeTitleColor: ${o.activeTitleColor};
|
177 |
-
--tabColor: ${o.tabColor};
|
178 |
-
`,M=h.iv`
|
179 |
-
display: flex;
|
180 |
-
width: 30px;
|
181 |
-
height: 30px;
|
182 |
-
align-items: center;
|
183 |
-
`,B=e=>{let{title:t,onClick:o,active:l}=e;return(0,h.tZ)("div",{className:g()("wp-block-themeisle-blocks-tabs__header_item",{active:l})},(0,h.tZ)("div",{onClick:o},t))},z=(0,i.useBlockProps)({id:o.id,css:S});return(0,h.tZ)(c.Fragment,null,(0,h.tZ)(Aa,{children:u,setAttributes:r,selectedTab:b,selectTab:E,moveTab:x}),(0,h.tZ)(Ia,{attributes:o,setAttributes:r,children:u,deleteTab:e=>{if(0<(null==u?void 0:u.length)){const t=u.find((t=>t.clientId===e));v(t.clientId,!1),b===e&&p("")}},selectTab:E,moveTab:x,addTab:T}),(0,h.tZ)("div",z,(0,h.tZ)("div",{className:"wp-block-themeisle-blocks-tabs__header"},(null==u?void 0:u.map((e=>(0,h.tZ)(B,{key:e.clientId,title:e.attributes.title||(0,l.__)("Insert Title","otter-blocks"),active:e.clientId===b,onClick:()=>w(e.clientId)}))))||"",(n||0===u.length)&&(0,h.tZ)((()=>(0,h.tZ)("div",{className:"wp-block-themeisle-blocks-tabs__header_item"},(0,h.tZ)("div",{css:M,onClick:T},(0,h.tZ)(s.Icon,{icon:La.Z})))),null)),(0,h.tZ)("div",{ref:m,className:"wp-block-themeisle-blocks-tabs__content"},(0,h.tZ)(i.InnerBlocks,{allowedBlocks:["themeisle-blocks/tabs-item"],template:[["themeisle-blocks/tabs-item"]],orientation:"horizontal",renderAppender:!1}))))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({id:t.id});return(0,c.createElement)("div",o,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs__content"},(0,c.createElement)(i.InnerBlocks.Content,null)))}});var $a=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/tabs-item","title":"Tab Item","category":"themeisle-blocks","description":"Organize and allow navigation between groups of content with Tabs block. Powered by Otter.","keywords":["media","tab","item"],"parent":["themeisle-blocks/tabs"],"textdomain":"otter-blocks","attributes":{"title":{"type":"string"},"defaultOpen":{"type":"boolean","default":false}}}'),Za=e=>{let{setAttributes:t,selectParent:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(s.Button,{isSecondary:!0,onClick:()=>o()},(0,l.__)("Back to the Tabs","otter-blocks")),(0,c.createElement)(s.TextControl,{type:"text",label:(0,l.__)("Title","otter-blocks"),placeholder:(0,l.__)("Insert a title","otter-blocks"),onChange:e=>{t({title:e})}})))};const{name:Da}=$a;(0,a.registerBlockType)(Da,{...$a,title:(0,l.__)("Tab Item","otter-blocks"),description:(0,l.__)("Organize and allow navigation between groups of content with Tabs block. Powered by Otter.","otter-blocks"),icon:yo.Z,keywords:["media","tab","item"],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;const r=(0,c.useRef)(null),{parentClientId:n}=(0,F.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor");return{parentClientId:t(o(a)).clientId}}),[]),{selectBlock:s}=(0,F.useDispatch)("core/block-editor"),d=(0,i.useBlockProps)({ref:r});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Za,{setAttributes:o,selectParent:()=>s(n)}),(0,c.createElement)("div",d,(0,c.createElement)(i.RichText,{placeholder:(0,l.__)("Add title…","otter-blocks"),value:t.title,onChange:e=>o({title:e}),className:g()("wp-block-themeisle-blocks-tabs-item__header",{active:!!t.defaultOpen&&t.defaultOpen}),tagName:"div",onClick:()=>{const e=document.querySelectorAll(`#block-${n} .wp-block-themeisle-blocks-tabs__content .wp-block-themeisle-blocks-tabs-item`);var t,o;e&&e.forEach((e=>{var t,o;null===(t=e.querySelector(".wp-block-themeisle-blocks-tabs-item__header"))||void 0===t||t.classList.remove("active"),null===(o=e.querySelector(".wp-block-themeisle-blocks-tabs-item__content"))||void 0===o||o.classList.remove("active")})),r.current&&(null===(t=r.current.querySelector(".wp-block-themeisle-blocks-tabs-item__header"))||void 0===t||t.classList.add("active"),null===(o=r.current.querySelector(".wp-block-themeisle-blocks-tabs-item__content"))||void 0===o||o.classList.add("active"))},withoutInteractiveFormatting:!0}),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-item__content"},(0,c.createElement)(i.InnerBlocks,{template:[["core/paragraph"]]}))))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({"data-title":t.title,...t.defaultOpen&&{"data-default-open":t.defaultOpen}});return(0,c.createElement)("div",o,(0,c.createElement)(i.RichText.Content,{tagName:"div",className:"wp-block-themeisle-blocks-tabs-item__header",value:t.title||(0,l.__)("Untitled Tab","otter-blocks"),tabIndex:"0"}),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-item__content"},(0,c.createElement)(i.InnerBlocks.Content,null)))}})},2136:function(e,t,o){var l=o(9307),a=o(4184),r=o.n(a),n=o(1984),c=o(7968),i=o(9522),s=o(5736),d=o(5609),m=o(4333);const u=e=>{let{label:t,attributes:o,setAttributes:a,resetValues:b,onClick:p,children:g}=e;(0,l.useEffect)((()=>{for(const e in b){if(b[e]!==o[e])return v(!0);v(!1)}}),[o]);const h=(0,m.useInstanceId)(u),[k,v]=(0,l.useState)(!1),y=`inspector-control-panel-control-${h}`;return(0,l.createElement)("div",{className:"o-control-panel-control"},(0,l.createElement)("div",{className:"components-base-control__field"},(0,l.createElement)("div",{className:"components-base-control__title"},(0,l.createElement)("label",{className:"components-base-control__label",htmlFor:y},t),(0,l.createElement)("div",{className:"floating-controls"},(0,l.createElement)(d.Dropdown,{position:"top left",headerTitle:t,expandOnMobile:!0,renderToggle:e=>{let{isOpen:o,onToggle:m}=e;return(0,l.createElement)(l.Fragment,null,k&&(0,l.createElement)(d.Button,{icon:(0,l.createElement)(n.Z,{icon:c.Z}),label:(0,s.__)("Reset to default","otter-blocks"),showTooltip:!0,isTertiary:!0,onClick:()=>a({...b})}),(0,l.createElement)(d.Button,{id:y,icon:i.Z,label:t,showTooltip:!0,onClick:()=>{m(),p&&p()},"aria-expanded":o,className:r()({"is-active":k})}))},renderContent:()=>(0,l.createElement)("div",{className:"otter-popover-settings"},g)})))))};t.Z=u},9977:function(e,t,o){var l=o(9307),a=o(4184),r=o.n(a),n=o(2819),c=o(5736),i=o(4333),s=o(5609);const d=e=>{let{label:t,value:o,valueVariant:a,valueStyle:m,valueTransform:u,isSelect:b=!1,onChangeFontFamily:p,onChangeFontVariant:g,onChangeFontStyle:h,onChangeTextTransform:k}=e;const v=(0,i.useInstanceId)(d);(0,l.useEffect)((()=>{let e=!0;return fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyClGdkPJ1BvgLOol5JAkQY4Mv2lkLYu00k").then((e=>e.json())).then((t=>{e&&(_(t.items),o&&t.items.find((e=>{if(o===e.family){const t=e.variants.filter((e=>!1===e.includes("italic"))).map((e=>({label:(0,n.startCase)((0,n.toLower)(e)),value:e})));return C(t)}})))})),()=>{e=!1}}),[]);const[y,_]=(0,l.useState)(null),[f,C]=(0,l.useState)(null),[w,E]=(0,l.useState)(""),x=`inspector-google-fonts-control-${v}`;return(0,l.createElement)("div",{className:"o-gfont-control"},(0,l.createElement)(s.BaseControl,{label:t,id:x},null!==y?b?(0,l.createElement)(s.SelectControl,{value:o||"",id:x,options:[{label:(0,c.__)("Default","otter-blocks"),value:""},...y.map((e=>({label:e.family,value:e.family})))],onChange:e=>{let t=[];if(""===e)return t=[{label:(0,c.__)("Regular","otter-blocks"),value:"regular"},{label:(0,c.__)("Italic","otter-blocks"),value:"italic"}],p(void 0),void C(t);p(e),t=y.find((t=>e===t.family)).variants.filter((e=>!1===e.includes("italic"))).map((e=>({label:(0,n.startCase)((0,n.toLower)(e)),value:e}))),C(t)}}):(0,l.createElement)(s.Dropdown,{contentClassName:"o-gfont-popover",position:"bottom center",renderToggle:e=>{let{isOpen:t,onToggle:a}=e;return(0,l.createElement)(s.Button,{className:"o-gfont-button",id:x,onClick:a,"aria-expanded":t},o||(0,c.__)("Select Font Family","otter-blocks"))},renderContent:e=>{let{onToggle:t}=e;return(0,l.createElement)(s.MenuGroup,{label:(0,c.__)("Google Fonts","otter-blocks")},(0,l.createElement)(s.TextControl,{value:w,onChange:e=>E(e)}),(0,l.createElement)("div",{className:"components-popover__items"},(0,l.createElement)(s.MenuItem,{onClick:()=>{t(),p(void 0),C([]),E("")}},(0,c.__)("Default","otter-blocks")),y.map((e=>{if(!w||e.family.toLowerCase().includes(w.toLowerCase()))return(0,l.createElement)(s.MenuItem,{className:r()({"is-selected":e.family===o}),onClick:()=>{t(),p(e.family);const o=e.variants.filter((e=>!1===e.includes("italic"))).map((e=>({label:(0,n.startCase)((0,n.toLower)(e)),value:e})));C(o),E("")}},e.family)}))))}}):(0,c.__)("Loading…","otter-blocks")),f&&(0,l.createElement)(s.SelectControl,{label:(0,c.__)("Font Weight","otter-blocks"),value:a||"regular",options:f,onChange:g}),(0,l.createElement)(s.SelectControl,{label:(0,c.__)("Font Style","otter-blocks"),value:m,options:[{label:(0,c.__)("Regular","otter-blocks"),value:"normal"},{label:(0,c.__)("Italic","otter-blocks"),value:"italic"}],onChange:h}),(0,l.createElement)(s.SelectControl,{label:(0,c.__)("Font Transform","otter-blocks"),value:u,options:[{label:(0,c.__)("Default","otter-blocks"),value:"none"},{label:(0,c.__)("Uppercase","otter-blocks"),value:"uppercase"},{label:(0,c.__)("Lowercase","otter-blocks"),value:"lowercase"},{label:(0,c.__)("Capitalize","otter-blocks"),value:"capitalize"}],onChange:k}))};t.Z=d},2285:function(e,t,o){o.d(t,{Z:function(){return v}});var l=o(9307),a=o(2819),r=o(2175),n=o(454),c=o.n(n),i=o(4184),s=o.n(i),d=o(1286),m=o(1984),u=o(5117),b=o(5736),p=o(5609),g=(0,d.W8)((e=>{let{value:t,selected:o,dragging:a,sorting:r,selectedItemsCount:n,onClick:c}=e;const i=a&&1<n;return(0,l.createElement)(p.Button,{className:s()("o-images-grid-component__image",{"is-selected":o,"is-sorting":o&&r}),onClick:()=>c(t),style:{backgroundImage:`url( ' ${t.url} ' )`}},i&&(0,l.createElement)("div",{className:"o-images-grid-component__image__count"},n))})),h=(0,d.JN)((e=>{let{items:t,className:o,onItemSelect:a,selectedItems:r,isSorting:n,sortingItemKey:c,open:i}=e;return(0,l.createElement)("div",{className:o,tabIndex:"0"},t.map(((e,t)=>{const o=r.includes(e),i=c===e;return(0,l.createElement)(g,{key:`image-${e.id}`,index:t,value:e,selected:o,dragging:i,sorting:n,selectedItemsCount:r.length,onClick:a})})),(0,l.createElement)(p.Button,{label:(0,b.__)("Add Images","otter-blocks"),icon:(0,l.createElement)(m.Z,{icon:u.Z}),isPrimary:!0,onClick:i}))})),k=e=>{let{attributes:t,onSelectImages:o,open:a}=e;const[r,n]=(0,l.useState)([]),[i,d]=(0,l.useState)(!1),[m,u]=(0,l.useState)(null);return(0,l.createElement)(h,{className:s()("o-images-grid-component",{"is-single":1===t.images.length}),open:a,items:t.images,onItemSelect:e=>{let t;t=r.includes(e)?r.filter((t=>t!==e)):[...r,e],n(t)},selectedItems:r,isSorting:i,sortingItemKey:m,shouldCancelStart:e=>{if(!e.target.sortableInfo)return!1;const o=t.images[e.target.sortableInfo.index];return!!r.length&&!r.includes(o)},updateBeforeSortStart:e=>{let{index:o}=e;return new Promise((e=>{d(!0),u(t.images[o]),e()}))},onSortEnd:e=>{let{oldIndex:l,newIndex:a}=e,i=c()(t.images,l,a);r.length&&(i=[...i.slice(0,a).filter((e=>!r.includes(e))),...r,...i.slice(a,i.length).filter((e=>!r.includes(e)))]),d(!1),u(null),n([]),o(i)},distance:3,axis:"xy"})},v=e=>{let{attributes:t,onSelectImages:o}=e;const n=(0,a.debounce)(o,250);return(0,l.createElement)(r.MediaUploadCheck,null,(0,l.createElement)(r.MediaUpload,{onSelect:n,allowedTypes:["image"],multiple:!0,addToGallery:!0,gallery:!0,value:t.images.map((e=>{let{id:t}=e;return t})),render:e=>{let{open:a}=e;return(0,l.createElement)(k,{attributes:t,open:a,onSelectImages:o})}}))}},4166:function(e,t,o){var l=o(7462),a=o(9307),r=o(5736),n=o(2819),c=o(5609),i=o(9818),s=window.wp.htmlEntities,d=o(9084);window.otterComponents={},window.otterComponents.SelectProducts=e=>{let{label:t,value:o,onChange:d,...m}=e;const{results:u,status:b}=(0,i.useSelect)((e=>{let t=[],o="loading";const{COLLECTIONS_STORE_KEY:l}=window.wc.wcBlocksData;return e(l).getCollectionError("/wc/store","products",{per_page:100})?o="error":(t=e(l).getCollection("/wc/store","products",{per_page:100}),(0,n.isEmpty)(t)||(o="loaded",t=[{value:0,label:(0,r.__)("None","otter-blocks")},...t.map((e=>({value:e.id,label:(0,s.decodeEntities)(e.name)})))])),{results:t,status:o}}),[]);return"loading"===b?(0,a.createElement)(c.Placeholder,null,(0,a.createElement)(c.Spinner,null)):"error"===b?(0,a.createElement)("p",null,(0,r.__)("There seems to have been an error","otter-blocks")):(0,a.createElement)(c.SelectControl,(0,l.Z)({label:t,value:Number(o),options:u,onChange:e=>d(Number(e))},m))},window.otterComponents.Notice=d.Z},9084:function(e,t,o){var l=o(9307),a=o(5609),r=o(5430);t.Z=e=>{let{notice:t,variant:o="default",instructions:n}=e;return(0,l.createElement)("div",{className:`o-notice is-${o}`},t,n&&(0,l.createElement)(a.Tooltip,{text:n,position:"bottom center"},r.Z))}},6993:function(e,t,o){var l=o(9307),a=o(4184),r=o.n(a),n=o(5736),c=o(5609),i=o(4333),s=o(9818),d=o(340);const m=e=>{let{label:t,className:o,children:a}=e;const u=(0,i.useInstanceId)(m),b=(0,i.useViewportMatch)("large",">="),p=(0,i.useViewportMatch)("large","<="),g=(0,i.useViewportMatch)("small",">="),h=(0,i.useViewportMatch)("small","<="),k=!(b||p||g||h),v=(0,s.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o&&!k?o():t()}),[]),{updateView:y}=(0,s.useDispatch)("themeisle-gutenberg/data"),{__experimentalSetPreviewDeviceType:_}=!!(0,s.useDispatch)("core/edit-post")&&(0,s.useDispatch)("core/edit-post"),f=_&&!k?_:y,C=`inspector-responsive-control-${u}`;return(0,l.createElement)("div",{id:C,className:r()("o-responsive-control",o)},(0,l.createElement)("div",{className:"components-base-control__field"},(0,l.createElement)("div",{className:"components-base-control__title"},(0,l.createElement)("label",{className:"components-base-control__label"},t),(0,l.createElement)("div",{className:"floating-controls"},(0,l.createElement)(c.Dropdown,{position:"top left",renderToggle:e=>{let{isOpen:t,onToggle:o}=e;return(0,l.createElement)(c.Button,{icon:"Mobile"===v?"smartphone":v.toLowerCase(),label:(0,n.__)("Responsiveness Settings","otter-blocks"),showTooltip:!0,className:"is-button",onClick:o,"aria-expanded":t})},renderContent:()=>(0,l.createElement)("div",{className:"o-responsive-control-settings"},(0,l.createElement)("div",{className:"o-responsive-control-settings-title"},(0,n.__)("View","otter-blocks")),(0,l.createElement)(c.Button,{className:r()("o-responsive-control-settings-item",{"is-selected":"Desktop"===v}),onClick:()=>f("Desktop")},"Desktop"===v&&(0,l.createElement)(c.Icon,{icon:d.checkIcon}),(0,l.createElement)("span",{className:"popover-title"},(0,n.__)("Desktop","otter-blocks"))),(0,l.createElement)(c.Button,{className:r()("o-responsive-control-settings-item",{"is-selected":"Tablet"===v}),onClick:()=>f("Tablet")},"Tablet"===v&&(0,l.createElement)(c.Icon,{icon:d.checkIcon}),(0,l.createElement)("span",{className:"popover-title"},(0,n.__)("Tablet","otter-blocks"))),(0,l.createElement)(c.Button,{className:r()("o-responsive-control-settings-item",{"is-selected":"Mobile"===v}),onClick:()=>f("Mobile")},"Mobile"===v&&(0,l.createElement)(c.Icon,{icon:d.checkIcon}),(0,l.createElement)("span",{className:"popover-title"},(0,n.__)("Mobile","otter-blocks"))))}))),a))};t.Z=m},2372:function(e,t,o){o.d(t,{Z:function(){return m}});var l=o(9307),a=o(4184),r=o.n(a),n=o(5736),c=o(5609),i=o(4333),s=e=>{let{id:t,index:o,option:a,min:r,max:n,onChange:c}=e;const i=(0,l.useRef)(null);return(0,l.createElement)("div",{className:"o-sizing-control-item"},o.disabled?(0,l.createElement)("input",{type:"number",disabled:o.disabled,className:"o-sizing-control-item-input",id:`o-sizing-control-item-input-${a}`}):(0,l.createElement)(l.Fragment,null,(0,l.createElement)("input",{type:"number",className:"o-sizing-control-item-input",id:`o-sizing-control-item-input-${a}-${t}`,value:void 0!==o.value?o.value:"",min:r,max:n,ref:i,onChange:e=>c(o.type,parseInt(e.target.value))})),o.label&&(0,l.createElement)("label",{className:"o-sizing-control-item-label",htmlFor:`o-sizing-control-item-input-${a}-${t}`},o.label))};const d=e=>{let{label:t,type:o,min:a,max:m,changeType:u,options:b,onChange:p}=e;const g=(0,i.useInstanceId)(d),h=`inspector-sizing-control-${g}`;return b&&1>b.length?(0,n.__)("Please specify more options.","otter-blocks"):(0,l.createElement)("div",{id:h,className:"o-sizing-control"},(0,l.createElement)("div",{className:"components-base-control__field"},t&&(0,l.createElement)("label",{className:"components-base-control__label",htmlFor:h},t),(0,l.createElement)("div",{className:r()("o-sizing-control-wrapper",{linking:o})},b.map(((e,t)=>(0,l.createElement)(s,{key:t,id:g,index:e,option:t,min:a,max:m,onChange:p}))),o&&(0,l.createElement)("div",{className:r()("o-sizing-control-item","toggle-linking",{"is-linked":"linked"===o})},(0,l.createElement)(c.Button,{icon:"linked"===o?"admin-links":"editor-unlink",label:"linked"===o?(0,n.__)("Unlink Values","otter-blocks"):(0,n.__)("Link Values","otter-blocks"),showTooltip:!0,className:"o-sizing-control-item-input",onClick:()=>u("linked"===o?"unlinked":"linked")})))))};var m=d},3159:function(e,t,o){var l=o(9307),a=o(5736),r=o(5609),n=o(9818);t.Z=e=>{let{field:t,isSynced:o,setAttributes:c,children:i}=e;const{enableComplementaryArea:s}=(0,n.useDispatch)("core/interface"),d=null==o?void 0:o.includes(t);return(0,l.createElement)("fieldset",{className:"o-sync-control"},(0,l.createElement)("legend",null,(0,l.createElement)(r.ToggleControl,{label:(0,l.createElement)(l.Fragment,null,(0,a.__)("Sync with","otter-blocks")),checked:d,onChange:()=>{let e=[...o||[]];if(d){const o=e.indexOf(t);-1!==o&&e.splice(o,1)}else e.push(t);0===e.length&&(e=void 0),c({isSynced:e})}}),(0,l.createElement)("span",{tabIndex:"0",className:"clickable",onClick:()=>s("core/edit-post","themeisle-blocks/otter-options")},(0,a.__)("Globals","otter-blocks"))),d?(0,l.createElement)(r.Disabled,null,i):i)}},8286:function(e,t,o){var l=o(9307),a=(o(4184),o(5609));t.Z=e=>{let{value:t,options:o,onChange:r,hideLabels:n,hideTooltip:c,showBottomLabels:i,style:s}=e;return(0,l.createElement)(a.ButtonGroup,{className:"o-toggle-group-control",style:null==s?void 0:s.group},null==o?void 0:o.map((e=>(0,l.createElement)("div",{key:null==e?void 0:e.value,className:"o-toggle-option",style:null==s?void 0:s.option},(0,l.createElement)(a.Button,{isPrimary:t==(null==e?void 0:e.value),variant:t==(null==e?void 0:e.value)?"primary":"secondary",icon:null==e?void 0:e.icon,label:null==e?void 0:e.label,onClick:()=>r(null==e?void 0:e.value),showTooltip:Boolean(c),style:null==s?void 0:s.button},null==e||!e.label||Boolean(n)||Boolean(i)?"":null==e?void 0:e.label),(0,l.createElement)("p",{style:null==s?void 0:s.label},null!=e&&e.label&&!Boolean(n)&&Boolean(i)?null==e?void 0:e.label:"")))))}},5225:function(e,t,o){o.d(t,{Ih:function(){return s},WX:function(){return v}});var l,a,r=o(4586),n=o(2819),c=o(9818),i=o(820);null!==(a=(l=window.themeisleGutenberg).blockIDs)&&void 0!==a||(l.blockIDs=[]);const s=e=>{var t;let{name:o,field:l,defaultAttributes:a,attributes:r}=e;return null!==(t=r.isSynced)&&void 0!==t&&t.includes(l)?((e,t,o)=>{var l,a;const r=null===(l=window.themeisleGutenberg.globalDefaults)||void 0===l?void 0:l[e];return null!=r&&r[t]?null==r?void 0:r[t]:null===(a=o[t])||void 0===a?void 0:a.default})(o,l,a):r[l]},d={},m=e=>{var t;return null===(t=b(e))||void 0===t?void 0:t.some((e=>{var t,o;return null===(t=u(e))||void 0===t||null===(o=t.attributes)||void 0===o?void 0:o.ref}))},u=(0,c.select)("core/block-editor").getBlock,b=(0,c.select)("core/block-editor").getBlockParents,p=(0,c.dispatch)("core/block-editor").updateBlockAttributes,g=(0,c.select)("core/block-editor").getSelectedBlockClientId,h=e=>t=>{p(e,t)},k=e=>{const t=u(e);return{attributes:null==t?void 0:t.attributes,name:null==t?void 0:t.name}},v=(e,t)=>(e=>{var t;const{attributes:o,setAttributes:l,clientId:a,idPrefix:c,name:s,defaultAttributes:m}=e,u=window.themeisleGutenberg.blockIDs||[];if(void 0===o||void 0===l)return e=>{var t;null===(t=d[s])||void 0===t||t.delete(e)};null!==(t=d[s])&&void 0!==t||(d[s]=new Set);const b=Boolean(o.id&&d[s].has(o.id));if(void 0===o.id||b){const e=c||(e=>`wp-block-${e.replace("/","-")}-`)(s),t=((e,t,o)=>{const l=`${e}${t.slice(0,8)}`;if(o.has(l)){let t=`${e}${(0,r.Z)().slice(0,8)}`;for(;o.has(t);)t=`${e}${(0,r.Z)().slice(0,8)}`;return t}return l})(e,a,d[s]);return void 0===o.id?(((e,t,o,l)=>{var a;if(void 0!==(null===(a=window.themeisleGutenberg)||void 0===a?void 0:a.globalDefaults)&&!(0,n.isEqual)(i.Z[o],window.themeisleGutenberg.globalDefaults[o])){const a={...window.themeisleGutenberg.globalDefaults[o]};t({...Object.keys(a).filter((t=>{var o;return(0,n.isEqual)(e[t],null===(o=l[t])||void 0===o?void 0:o.default)})).reduce(((e,t)=>(e[t]=a[t],e)),{})})}})(o,l,s,m),d[s].add(t),u.push(t),l({id:t})):b&&(d[s].add(t),l({id:t})),e=>{d[s].delete(t||e)}}return d[s].add(o.id),u.push(o.id),e=>{d[s].delete((null==o?void 0:o.id)||e)}})({clientId:e,defaultAttributes:t,setAttributes:m(e)&&g()!==e?void 0:h(e),...k(e)})},4715:function(e,t,o){o.d(t,{CJ:function(){return p},EP:function(){return b},FH:function(){return g},Mg:function(){return u},R3:function(){return s},S3:function(){return m},Uo:function(){return c},Vg:function(){return k},__:function(){return d},p6:function(){return i}});var l=o(2819),a=o(5736),r=o(9771);const n=["wp_template","wp_template_part","wp_navigation","nav_menu_item","wp_block","attachment","sfwd-certificates","e-landing-page","piotnetforms-book","piotnetforms","piotnetforms-data","jet-menu","jet-popup","adsforwp-groups","pgc_simply_gallery","editor-story","pafe-form-booking","sfwd-assignment","sfwd-essays","pafe-formabandonment","frm_display","sfwd-transactions","jet-engine","jet-theme-core","reply","jet_options_preset","tutor_assignments","brizy_template","jet-smart-filters","pafe-fonts","pafe-form-database","ct_content_block","adsforwp","iamport_payment","tribe_events","mec_esb","elementor_library","testimonial","zion_template","popup","jet-engine-booking","tutor_quiz","piotnetforms-aban","forum","topic","sfwd-quiz","mec-events","jet-woo-builder","neve_custom_layouts","feedzy_imports","neve_cart_notices","visualizer"],c=e=>{const t=document.createElement("div");return t.innerHTML=e,void 0!==t.innerText?t.innerText:t.textContent},i=e=>{const t=(e=new Date(e)).getDate(),o=e.getMonth(),l=e.getFullYear();return t+" "+["January","February","March","April","May","June","July","August","September","October","November","December"][o]+", "+l},s=async()=>{const e=window.themeisleGutenberg.postTypes;if(e){const t=Object.keys(e);return(0,l.without)(t,...n)}},d=e=>{if("string"==typeof e||e instanceof String)return e[0].toUpperCase()+e.slice(1);throw"The parameter must be a string."},m=(e,t)=>{const o=[];return null==e||e.forEach(((l,a)=>{o.push(l),a<e.length-1&&o.push(t)})),o},u=(e,t)=>{e=e||0;const o=Math.floor(e/864e5),l=Math.floor(e/36e5%24),r=Math.floor(e/6e4%60),n=Math.floor(e/1e3%60);return[{tag:"day",name:1<o?(0,a.__)("Days","otter-blocks"):(0,a.__)("Day","otter-blocks"),value:o},{tag:"hour",name:1<l?(0,a.__)("Hours","otter-blocks"):(0,a.__)("Hour","otter-blocks"),value:l},{tag:"minute",name:1<r?(0,a.__)("Minutes","otter-blocks"):(0,a.__)("Minute","otter-blocks"),value:r},{tag:"second",name:1<n?(0,a.__)("Seconds","otter-blocks"):(0,a.__)("Second","otter-blocks"),value:n}].filter((e=>{var o;let{tag:l}=e;return!(null!=t&&null!==(o=t.exclude)&&void 0!==o&&o.includes(l))})).map((e=>(null!=t&&t.keepNeg||(e.value=Math.max(0,e.value)),e)))},b=()=>{const e=60*(0,r.__experimentalGetSettings)().timezone.offset,t=0>e?"-":"+",o=Math.abs(e);return(0,a.sprintf)("%s%02d:%02d",t,o/60,o%60)},p=e=>!Object.keys(e).some((t=>null!==e[t])),g=e=>Object.values(e).every((e=>void 0===e)),h={top:"flex-start",left:"flex-start",center:"center",bottom:"flex-end",right:"flex-end"},k=e=>h[e]},340:function(e,t,o){o.r(t),o.d(t,{StarFilled:function(){return S},StarHalf:function(){return M},alignBottom:function(){return j},alignCenter:function(){return q},alignTop:function(){return K},authorIcon:function(){return d},barcodeIcon:function(){return x},buttonsIcon:function(){return m},check:function(){return B},checkIcon:function(){return T},close:function(){return z},cols112:function(){return N},cols12:function(){return R},cols121:function(){return O},cols131:function(){return A},cols21:function(){return L},cols211:function(){return I},cols2Equal:function(){return V},cols2Grid:function(){return W},cols3Equal:function(){return H},cols3Grid:function(){return U},cols4Equal:function(){return F},cols5Equal:function(){return G},cols6Equal:function(){return D},colsCollapsed:function(){return $},colsFull:function(){return P},columnIcon:function(){return g},columnsIcon:function(){return p},contactIcon:function(){return u},faIcon:function(){return k},headingIcon:function(){return h},inputIcon:function(){return b},mapIcon:function(){return y},otterIcon:function(){return i},otterIconColored:function(){return s},pluginsIcon:function(){return f},postsIcon:function(){return _},pricingIcon:function(){return w},rowsCollapsed:function(){return Z},servicesIcon:function(){return C},sharingIcon:function(){return v},testimonialsIcon:function(){return E}});var l=o(7462),a=o(9307),r=o(4184),n=o.n(r),c=o(444);const i=e=>{let{className:t}=e;return(0,a.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 32",width:"20",height:"20",className:n()("otter-icon",t)},(0,a.createElement)(c.Path,{d:"M19.831 7.877c0.001-0.003 0.001-0.005 0.001-0.009s-0-0.006-0.001-0.009l0 0c-0.047-0.081-0.092-0.164-0.132-0.247l-0.057-0.115c-0.277-0.498-0.381-0.99-1.033-1.064h-0.045c-0.001 0-0.002 0-0.003 0-0.486 0-0.883 0.382-0.908 0.862l-0 0.002c0.674 0.126 1.252 0.278 1.813 0.468l-0.092-0.027 0.283 0.096 0.147 0.053s0.028 0 0.028-0.011z"}),(0,a.createElement)(c.Path,{d:"M23.982 13.574c-0.008-2.41-0.14-4.778-0.39-7.112l0.026 0.299 0.070-0.019c0.459-0.139 0.787-0.558 0.787-1.053 0-0.479-0.307-0.887-0.735-1.037l-0.008-0.002h-0.026c-0.479-0.164-0.874-0.468-1.149-0.861l-0.005-0.007c-2.7-3.96-8.252-3.781-8.252-3.781s-5.55-0.179-8.25 3.781c-0.28 0.401-0.676 0.704-1.14 0.862l-0.016 0.005c-0.441 0.148-0.754 0.557-0.754 1.040 0 0.009 0 0.017 0 0.026l-0-0.001c-0 0.010-0.001 0.022-0.001 0.034 0 0.493 0.335 0.907 0.789 1.029l0.007 0.002 0.045 0.011c-0.224 2.034-0.356 4.403-0.364 6.801l-0 0.012s-9.493 13.012-1.277 17.515c4.733 2.431 6.881-0.769 6.881-0.769s1.397-1.661-1.784-3.355v-4.609c0.006-0.344 0.282-0.621 0.625-0.628h1.212v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.274 0.001 0.496 0.224 0.496 0.498 0 0 0 0 0 0v0 0.59h2.721v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.271 0.005 0.49 0.226 0.49 0.498 0 0 0 0 0 0v0 0.59h1.209c0 0 0 0 0 0 0.349 0 0.633 0.28 0.639 0.627v4.584c-3.193 1.703-1.784 3.355-1.784 3.355s2.148 3.193 6.879 0.769c8.222-4.503-1.269-17.515-1.269-17.515zM22.586 10.261c-0.097 1.461-0.67 2.772-1.563 3.797l0.007-0.008c-1.703 2.010-4.407 3.249-6.721 4.432v0c-2.325-1.177-5.026-2.416-6.736-4.432-0.883-1.019-1.455-2.329-1.555-3.769l-0.001-0.020c-0.126-2.22 0.583-5.929 3.044-6.74 2.416-0.788 3.947 1.288 4.494 2.227 0.152 0.258 0.429 0.428 0.745 0.428s0.593-0.17 0.743-0.424l0.002-0.004c0.551-0.932 2.080-3.008 4.494-2.22 2.474 0.805 3.174 4.513 3.046 6.734z"}),(0,a.createElement)(c.Path,{d:"M19.463 10.087h-0.028c-0.192 0.026-0.121 0.251-0.047 0.356 0.254 0.349 0.407 0.787 0.407 1.26 0 0.006-0 0.012-0 0.018v-0.001c-0.001 0.469-0.255 0.878-0.633 1.1l-0.006 0.003c-0.739 0.426-1.377-0.145-2.054-0.398-0.72-0.269-1.552-0.434-2.42-0.455l-0.009-0v-1.033c1.020-0.233 1.894-0.76 2.551-1.486l0.004-0.004c0.151-0.163 0.244-0.383 0.244-0.623 0-0.316-0.159-0.595-0.402-0.76l-0.003-0.002c-0.768-0.551-1.728-0.881-2.764-0.881-1.054 0-2.029 0.341-2.819 0.92l0.013-0.009c-0.224 0.166-0.367 0.429-0.367 0.726 0 0.226 0.083 0.433 0.221 0.591l-0.001-0.001c0.665 0.751 1.55 1.295 2.553 1.53l0.033 0.007v1.050c-0.742 0.021-1.448 0.14-2.118 0.343l0.057-0.015c-0.341 0.103-0.631 0.219-0.908 0.358l0.033-0.015c-0.519 0.26-1.037 0.436-1.58 0.121-0.371-0.213-0.617-0.607-0.617-1.058 0-0.002 0-0.004 0-0.007v0c0-0.002 0-0.004 0-0.007 0-0.47 0.153-0.905 0.411-1.257l-0.004 0.006c0.047-0.068 0.089-0.17 0.026-0.241s-0.189 0-0.27 0.030c-0.189 0.099-0.348 0.227-0.479 0.381l-0.002 0.002c-0.245 0.296-0.394 0.679-0.394 1.097 0 0.004 0 0.007 0 0.011v-0.001c0.008 0.706 0.393 1.321 0.964 1.651l0.009 0.005c0.296 0.178 0.654 0.283 1.036 0.283 0.364 0 0.706-0.095 1.001-0.263l-0.010 0.005c0.877-0.461 1.917-0.731 3.019-0.731 0.069 0 0.137 0.001 0.206 0.003l-0.010-0h0.030c1.277 0 2.382 0.266 3.266 0.775 0.27 0.159 0.594 0.253 0.94 0.253 0.001 0 0.002 0 0.003 0h-0c0.355-0.002 0.688-0.098 0.974-0.265l-0.009 0.005c0.606-0.357 1.007-1.007 1.007-1.75 0-0.001 0-0.003 0-0.004v0c0.001-0.026 0.002-0.056 0.002-0.086 0-0.625-0.34-1.171-0.846-1.462l-0.008-0.004c-0.056-0.040-0.125-0.065-0.199-0.070l-0.001-0zM13.101 8.831c-0.238 0.213-0.468 0.581-0.832 0.345-0.061-0.041-0.114-0.086-0.161-0.136l-0-0c-0.063-0.063-0.101-0.15-0.101-0.247 0-0.133 0.074-0.248 0.182-0.308l0.002-0.001c0.594-0.309 1.203-0.543 1.884-0.49-0.324 0.281-0.649 0.56-0.973 0.837z"}),(0,a.createElement)(c.Path,{d:"M15.89 13.578c-0.367 0.483-0.941 0.792-1.588 0.792s-1.221-0.309-1.585-0.787l-0.004-0.005c-0.064-0.103-0.177-0.171-0.306-0.171-0.199 0-0.36 0.161-0.36 0.36 0 0.091 0.034 0.174 0.090 0.238l-0-0c0.499 0.659 1.283 1.080 2.164 1.080s1.665-0.421 2.159-1.073l0.005-0.007c0.043-0.059 0.068-0.132 0.068-0.212 0-0.116-0.055-0.22-0.14-0.286l-0.001-0.001c-0.059-0.045-0.134-0.072-0.215-0.072-0.117 0-0.221 0.056-0.286 0.143l-0.001 0.001z"}),(0,a.createElement)(c.Path,{d:"M18.507 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),(0,a.createElement)(c.Path,{d:"M17.389 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),(0,a.createElement)(c.Path,{d:"M10.798 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),(0,a.createElement)(c.Path,{d:"M11.918 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),(0,a.createElement)(c.Path,{d:"M8.773 7.877c-0.001-0.003-0.002-0.005-0.002-0.009s0.001-0.006 0.002-0.009l-0 0c0.047-0.081 0.089-0.164 0.132-0.247 0.019-0.038 0.036-0.079 0.057-0.115 0.275-0.498 0.379-0.99 1.033-1.064h0.045c0 0 0.001 0 0.001 0 0.487 0 0.884 0.382 0.91 0.862l0 0.002c-0.678 0.124-1.261 0.277-1.827 0.468l0.092-0.027-0.275 0.096-0.1 0.036-0.045 0.017s-0.023 0-0.023-0.011z"}))},s=e=>{let{className:t}=e;return(0,a.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:n()("otter-icon",t)},(0,a.createElement)(c.G,null,(0,a.createElement)(c.Path,{d:"M19.9877 9.42008C19.6369 9.61724 19.3785 10.0999 19.1922 10.38C19.3704 10.3719 19.6396 10.38 19.9061 10.3474C19.5651 12.7604 18.4405 14.9944 16.7053 16.7054C15.6732 17.7477 14.448 18.5791 13.098 19.1529C10.5336 20.2407 7.70811 20.2883 5.31094 19.2576C4.29167 18.8247 3.36554 18.1991 2.58336 17.4152C1.21259 16.0355 0.334714 14.2424 0.0855683 12.3136C0.478525 12.149 0.765424 11.6092 0.961223 11.3101C0.642655 11.3103 0.324535 11.334 0.00942443 11.3808C-0.100712 8.55259 1.00745 5.57482 3.29177 3.29186C6.55508 0.0285557 11.2379 -0.836221 14.8779 0.823987C14.7269 1.02115 14.6059 1.2319 14.4999 1.38827C14.7936 1.37195 15.3157 1.39643 15.6978 1.2523C16.0056 1.43293 16.3009 1.63418 16.5816 1.85465C16.515 1.95935 16.4456 2.05589 16.398 2.13747C16.534 2.13747 16.7135 2.13747 16.9106 2.12115C17.0833 2.26664 17.2533 2.42301 17.4151 2.58481C19.248 4.41906 20.0978 6.89102 19.9877 9.42008Z",fill:"#E8D3C9"}),(0,a.createElement)(c.Path,{d:"M4.32515 5.25665C3.92192 6.11059 3.77512 7.06318 3.90255 7.99889C4.02998 8.93461 4.42617 9.81325 5.04307 10.5283C5.78956 11.3645 6.80118 11.907 7.79105 12.4318C8.1473 12.6208 8.51714 12.8153 8.92097 12.8506C9.44718 12.8969 9.95843 12.6671 10.4167 12.406C11.5996 11.7357 12.6615 10.8016 13.3047 9.60365C13.9478 8.40574 14.1314 6.92774 13.6174 5.66864C13.3523 5.04048 12.9456 4.48207 12.429 4.03699C11.486 3.2291 10.2823 2.79004 9.04063 2.80101C8.43429 2.81396 7.83536 2.93698 7.273 3.16406C6.72912 3.36529 6.19611 3.39385 5.69166 3.70794C5.10339 4.08984 4.63083 4.62542 4.32515 5.25665Z",fill:"#D6AF99"}),(0,a.createElement)(c.Path,{d:"M13.1008 19.1488C12.6689 19.3318 12.2256 19.4867 11.7738 19.6125C11.5236 19.6832 11.2707 19.7485 11.0137 19.7933C10.9838 19.7933 10.9579 19.8042 10.928 19.8124C10.9172 19.811 10.9062 19.811 10.8954 19.8124C10.0118 19.9817 9.10938 20.0306 8.21268 19.9578C7.92865 19.9366 7.64591 19.9008 7.36558 19.8504C7.31397 19.8449 7.26269 19.8368 7.21193 19.826H7.19561L7.07732 19.8015C6.83665 19.7525 6.60006 19.6941 6.36483 19.6261C6.00688 19.5234 5.65582 19.398 5.31377 19.2508C5.24487 18.9778 5.20971 18.6975 5.20907 18.4159C5.15469 17.2072 5.10302 16.0024 5.05271 14.7937C5.01716 14.4481 5.04154 14.0989 5.12477 13.7616C5.18474 13.5696 5.28262 13.3916 5.41263 13.238C5.54264 13.0845 5.70213 12.9587 5.88165 12.8679C6.06118 12.7771 6.2571 12.7233 6.4578 12.7096C6.65851 12.6959 6.85992 12.7226 7.05012 12.7881C8.63555 12.5297 10.2726 12.2809 11.8336 12.6521C12.1926 12.7378 12.5692 12.8751 12.7772 13.181C12.9472 13.434 12.9689 13.7521 12.988 14.0567C13.0605 15.3104 13.133 16.5649 13.2055 17.8204C13.2327 18.2759 13.2545 18.7368 13.1008 19.1488Z",fill:"#F4816B"}),(0,a.createElement)(c.Path,{d:"M12.6452 8.15827C12.7187 7.47841 12.0361 6.85431 11.3535 6.93453C11.1316 6.97029 10.9165 7.04 10.7158 7.14121C10.5294 7.21597 10.3327 7.26182 10.1325 7.27718C9.81839 7.34244 9.5179 7.47841 9.2038 7.49745C8.93186 7.52056 8.57698 7.5532 8.31183 7.46346L7.57351 7.21599L7.40218 7.15344C7.2061 7.06715 6.99944 7.00725 6.7876 6.97532C6.01528 6.89782 5.30551 7.71228 5.5489 8.471C5.79229 9.22972 6.72777 9.36841 7.39403 9.18621C7.67413 9.11007 7.93791 8.99313 8.22345 8.92651C8.711 8.83154 9.21264 8.83523 9.69874 8.93739C10.1869 9.02169 10.6669 9.1495 11.1577 9.20933C11.7981 9.29363 12.4916 8.91563 12.6289 8.24801C12.6344 8.22082 12.6452 8.1909 12.6452 8.15827Z",fill:"#E8D3C9"}),(0,a.createElement)(c.Path,{d:"M8.21258 15.6802V19.966C7.92855 19.9448 7.64581 19.9089 7.36548 19.8586V15.6802C7.3657 15.5064 7.40363 15.3347 7.47663 15.1769C7.54964 15.0192 7.65599 14.8791 7.78835 14.7665C7.9211 14.8789 8.0278 15.0189 8.10106 15.1766C8.17432 15.3344 8.21237 15.5062 8.21258 15.6802Z",fill:"#D87768"}),(0,a.createElement)(c.Path,{d:"M11.7737 17.3839V19.6152C11.5235 19.6859 11.2706 19.7512 11.0136 19.7961C10.9837 19.7961 10.9579 19.8069 10.928 19.8151V17.3839C10.9282 16.9735 11.0787 16.5774 11.3508 16.2703C11.6236 16.5771 11.7741 16.9734 11.7737 17.3839Z",fill:"#F59085"}),(0,a.createElement)(c.Path,{d:"M7.89865 6.5035C7.82719 6.54284 7.76612 6.59863 7.72049 6.66625C7.67485 6.73387 7.64597 6.81138 7.63623 6.89238C7.6383 6.94844 7.65369 7.00321 7.68111 7.05215C7.70854 7.10109 7.74722 7.1428 7.79396 7.17384C7.88831 7.23528 7.99969 7.26527 8.11213 7.2595C8.30157 7.24621 8.4826 7.17608 8.63154 7.05826C8.78032 6.94126 8.91698 6.80962 9.03945 6.6653C9.0742 6.63585 9.10242 6.59948 9.12232 6.55851C9.14222 6.51754 9.15336 6.47287 9.15503 6.42736C9.12783 6.20164 8.78791 6.24379 8.62746 6.24243C8.36436 6.257 8.11116 6.3477 7.89865 6.5035Z",fill:"#E8D3C9"}),(0,a.createElement)(c.Path,{d:"M12.0756 6.35666C12.0763 6.35353 12.0763 6.35027 12.0756 6.34714C12.0498 6.30227 12.0253 6.2574 12.0035 6.21117C11.9926 6.19077 11.9831 6.16902 11.9709 6.14862C11.82 5.87668 11.7629 5.60473 11.4066 5.56666H11.3808C11.2524 5.56576 11.1286 5.61423 11.035 5.70204C10.9413 5.78986 10.885 5.91031 10.8777 6.03848C11.1999 6.09813 11.5179 6.17898 11.8295 6.28051L11.9845 6.33354L12.0389 6.35258L12.0647 6.36209C12.0658 6.36252 12.0669 6.36271 12.0681 6.36266C12.0692 6.36261 12.0703 6.36232 12.0714 6.36181C12.0724 6.36129 12.0733 6.36057 12.074 6.35968C12.0748 6.35879 12.0753 6.35776 12.0756 6.35666Z",fill:"#53484A"}),(0,a.createElement)(c.Path,{d:"M14.3489 9.47719C14.3489 9.47719 14.3489 7.40363 14.1504 5.75023C14.1631 5.74517 14.1763 5.74153 14.1898 5.73935C14.3124 5.70316 14.4203 5.62893 14.4979 5.52739C14.5755 5.42585 14.6188 5.30226 14.6215 5.17449C14.6242 5.04673 14.5862 4.92141 14.513 4.81665C14.4398 4.71189 14.3352 4.63313 14.2143 4.59175H14.198C13.942 4.50432 13.7209 4.33703 13.5671 4.11449C12.8791 3.10015 11.8498 2.58346 10.9496 2.31831C10.3317 2.13562 9.69042 2.04401 9.04604 2.04637C8.35768 2.04746 7.67354 2.15384 7.01735 2.36182C6.14986 2.63377 5.18174 3.15182 4.52364 4.11721C4.36993 4.33921 4.14865 4.50564 3.89274 4.59175C3.77192 4.63227 3.6672 4.71031 3.59382 4.8145C3.52045 4.91869 3.48226 5.04358 3.48482 5.17099C3.48245 5.30229 3.52435 5.43057 3.60378 5.53516C3.6832 5.63974 3.79553 5.71454 3.92265 5.74751L3.94712 5.75566C3.88186 6.28187 3.83835 6.84343 3.81115 7.37916C3.74997 8.51724 3.74997 9.48263 3.74997 9.48263C3.74997 9.48263 1.42214 12.6535 1.22362 15.5007C1.12028 16.9216 1.54723 18.2596 3.04564 19.0795C5.63725 20.4106 6.81612 18.658 6.81612 18.658C6.81612 18.658 7.58163 17.747 5.83712 16.8196V14.3042C5.83784 14.213 5.87455 14.1259 5.93924 14.0617C6.00393 13.9975 6.09136 13.9615 6.18249 13.9615H6.84467V13.6379C6.84467 13.5658 6.87332 13.4966 6.92432 13.4456C6.97532 13.3946 7.04449 13.366 7.11661 13.366H8.02762C8.09974 13.366 8.16891 13.3946 8.21991 13.4456C8.27091 13.4966 8.29956 13.5658 8.29956 13.6379V13.9615H9.78981V13.6379C9.78981 13.5658 9.81846 13.4966 9.86946 13.4456C9.92046 13.3946 9.98962 13.366 10.0617 13.366H10.9728C11.0449 13.366 11.114 13.3946 11.165 13.4456C11.216 13.4966 11.2447 13.5658 11.2447 13.6379V13.9615H11.9082C11.9989 13.9619 12.0857 13.9981 12.1496 14.0624C12.2136 14.1266 12.2495 14.2135 12.2495 14.3042V16.8169C10.5077 17.7442 11.2746 18.6552 11.2746 18.6552C11.2746 18.6552 12.4494 20.4079 15.0437 19.0768C19.5512 16.6089 14.3489 9.47719 14.3489 9.47719ZM13.5861 7.66198C13.5354 8.43053 13.2351 9.16149 12.7309 9.7437C11.7954 10.8437 10.3187 11.5236 9.04876 12.1708C7.77607 11.5236 6.29535 10.8437 5.35715 9.7437C4.8555 9.16014 4.5564 8.42977 4.50461 7.66198C4.4339 6.4464 4.82006 4.41363 6.17433 3.97036C7.49733 3.53661 8.33627 4.67469 8.63541 5.1941C8.67753 5.26489 8.73721 5.32361 8.80867 5.36458C8.88013 5.40555 8.96096 5.42739 9.04333 5.42797C9.12588 5.42833 9.20708 5.4069 9.2787 5.36584C9.35032 5.32477 9.40984 5.26553 9.45124 5.1941C9.75717 4.67469 10.5934 3.53525 11.9178 3.97036C13.2707 4.41363 13.6541 6.4464 13.5861 7.66198Z",fill:"#87574C"}),(0,a.createElement)(c.Path,{d:"M11.9763 7.60351C11.946 7.58302 11.9108 7.57083 11.8743 7.56816H11.858C11.7533 7.58176 11.7927 7.70413 11.8335 7.7626C11.9807 7.96822 12.0583 8.21546 12.0551 8.46829C12.0541 8.59201 12.02 8.71319 11.9564 8.81932C11.8928 8.92546 11.802 9.01269 11.6935 9.072C11.2855 9.30451 10.9415 8.9945 10.569 8.85445C10.144 8.70162 9.69741 8.61762 9.24598 8.60562V8.03182C9.78596 7.91128 10.2753 7.62625 10.6465 7.21599C10.695 7.1622 10.7316 7.09864 10.7536 7.02959C10.7756 6.96053 10.7825 6.88757 10.774 6.8156C10.7655 6.74362 10.7418 6.67429 10.7043 6.61226C10.6668 6.55023 10.6165 6.49692 10.5567 6.45591C10.1115 6.14086 9.57875 5.97303 9.03329 5.97596C8.48782 5.97889 7.95695 6.15242 7.51507 6.47223C7.4601 6.51237 7.41409 6.5635 7.37994 6.62238C7.34579 6.68125 7.32427 6.74659 7.31672 6.81423C7.30918 6.88187 7.31578 6.95034 7.33612 7.01529C7.35645 7.08024 7.39007 7.14026 7.43484 7.19152C7.80594 7.6164 8.30264 7.91214 8.85302 8.0359V8.6097C8.47005 8.61985 8.09011 8.68066 7.7231 8.79054C7.55681 8.83782 7.39487 8.89923 7.23904 8.9741C6.9535 9.11007 6.66932 9.21205 6.37291 9.03937C6.26953 8.98066 6.18374 8.89535 6.12444 8.7923C6.06515 8.68925 6.03451 8.57222 6.0357 8.45333C6.03418 8.20663 6.11081 7.96578 6.25461 7.76532C6.28181 7.72725 6.30356 7.67014 6.26821 7.62935C6.23286 7.58856 6.16351 7.62935 6.12 7.64566C6.02013 7.69831 5.93146 7.7699 5.85894 7.85642C5.71284 8.02755 5.63405 8.24602 5.6373 8.47101C5.63957 8.65652 5.69034 8.8382 5.78456 8.99802C5.87878 9.15783 6.01317 9.29022 6.17439 9.38202C6.34253 9.48028 6.5333 9.5332 6.72804 9.53558C6.92277 9.53797 7.11478 9.48974 7.28527 9.39561C7.8313 9.11543 8.43948 8.97836 9.0529 8.99722C9.05781 8.99848 9.06295 8.99848 9.06786 8.99722C9.6917 8.98021 10.3091 9.12695 10.8586 9.42281C11.0173 9.51459 11.1974 9.56292 11.3807 9.56292C11.5641 9.56292 11.7442 9.51459 11.9029 9.42281C12.072 9.32549 12.2124 9.18519 12.3098 9.01612C12.4072 8.84706 12.4582 8.65525 12.4576 8.46013C12.4667 8.28643 12.4262 8.11374 12.341 7.96211C12.2558 7.81047 12.1293 7.68613 11.9763 7.60351ZM8.388 6.88014C8.25203 6.99028 8.13102 7.1956 7.9325 7.06915C7.90018 7.04675 7.87012 7.02124 7.84276 6.993C7.8218 6.97182 7.80603 6.94607 7.79669 6.91778C7.78734 6.88948 7.78467 6.85941 7.78888 6.82991C7.7931 6.80041 7.80408 6.77229 7.82098 6.74774C7.83787 6.7232 7.86022 6.70289 7.88627 6.68843C8.1967 6.4998 8.55521 6.40533 8.91829 6.41648L8.388 6.88014Z",fill:"#53484A"}),(0,a.createElement)(c.Path,{d:"M9.915 9.48126C9.81366 9.6161 9.68234 9.72552 9.53143 9.80088C9.38052 9.87624 9.21415 9.91547 9.04547 9.91547C8.87679 9.91547 8.71042 9.87624 8.55951 9.80088C8.4086 9.72552 8.27728 9.6161 8.17593 9.48126C8.14456 9.43925 8.09778 9.41142 8.04589 9.4039C7.994 9.39638 7.94124 9.40978 7.89923 9.44115C7.85722 9.47253 7.82939 9.5193 7.82187 9.5712C7.81435 9.62309 7.82775 9.67584 7.85912 9.71785C7.99751 9.90144 8.17663 10.0504 8.38238 10.1529C8.58814 10.2555 8.81489 10.3089 9.04479 10.3089C9.27469 10.3089 9.50144 10.2555 9.7072 10.1529C9.91295 10.0504 10.0921 9.90144 10.2305 9.71785C10.246 9.69714 10.2573 9.67357 10.2637 9.64849C10.2701 9.62341 10.2716 9.59731 10.2679 9.57168C10.2642 9.54605 10.2556 9.52139 10.2424 9.49911C10.2292 9.47683 10.2117 9.45737 10.191 9.44183C10.1703 9.4263 10.1467 9.41499 10.1217 9.40857C10.0966 9.40214 10.0705 9.40072 10.0448 9.40438C10.0192 9.40804 9.99456 9.41672 9.97228 9.42991C9.95 9.4431 9.93054 9.46055 9.915 9.48126Z",fill:"#53484A"}),(0,a.createElement)(c.Path,{d:"M11.1577 8.64913C11.2643 8.64913 11.3508 8.56268 11.3508 8.45605C11.3508 8.34941 11.2643 8.26297 11.1577 8.26297C11.051 8.26297 10.9646 8.34941 10.9646 8.45605C10.9646 8.56268 11.051 8.64913 11.1577 8.64913Z",fill:"#53484A"}),(0,a.createElement)(c.Path,{d:"M10.5446 8.28743C10.6513 8.28743 10.7377 8.20099 10.7377 8.09435C10.7377 7.98772 10.6513 7.90128 10.5446 7.90128C10.438 7.90128 10.3516 7.98772 10.3516 8.09435C10.3516 8.20099 10.438 8.28743 10.5446 8.28743Z",fill:"#53484A"}),(0,a.createElement)(c.Path,{d:"M6.93307 8.64913C7.0397 8.64913 7.12615 8.56268 7.12615 8.45605C7.12615 8.34941 7.0397 8.26297 6.93307 8.26297C6.82643 8.26297 6.73999 8.34941 6.73999 8.45605C6.73999 8.56268 6.82643 8.64913 6.93307 8.64913Z",fill:"#53484A"}),(0,a.createElement)(c.Path,{d:"M7.54635 8.28743C7.65299 8.28743 7.73943 8.20099 7.73943 8.09435C7.73943 7.98772 7.65299 7.90128 7.54635 7.90128C7.43972 7.90128 7.35327 7.98772 7.35327 8.09435C7.35327 8.20099 7.43972 8.28743 7.54635 8.28743Z",fill:"#53484A"}),(0,a.createElement)(c.Path,{d:"M6.01525 6.35664C6.01445 6.35352 6.01445 6.35025 6.01525 6.34713C6.04109 6.30226 6.06556 6.25739 6.08868 6.21115C6.09955 6.19076 6.10907 6.169 6.11995 6.14861C6.27088 5.87667 6.32799 5.60472 6.68559 5.56665H6.71007C6.83819 5.56646 6.96151 5.61543 7.05461 5.70347C7.1477 5.7915 7.20348 5.91189 7.21044 6.03983C6.88812 6.09915 6.57014 6.18 6.25864 6.28186L6.10227 6.33489L6.04789 6.35392L6.02341 6.36344C6.02341 6.36344 6.01525 6.36208 6.01525 6.35664Z",fill:"#53484A"}),(0,a.createElement)(c.Path,{d:"M13.3525 15.1282C13.3523 15.3089 13.323 15.4884 13.2655 15.6598C13.2118 15.8229 13.1363 15.9779 13.0411 16.1207C13.0003 16.1903 12.9548 16.2571 12.9051 16.3206C12.8496 16.3777 12.7911 16.4317 12.7297 16.4824L12.7066 16.5042C12.6386 16.5627 12.5625 16.617 12.4904 16.6714L12.4659 16.6905L12.436 16.7081C12.4143 16.7217 12.3966 16.7353 12.3748 16.7462C12.3531 16.7571 12.3341 16.7734 12.315 16.7843L12.2824 16.8033L12.2525 16.8196C12.2497 16.7825 12.2497 16.7453 12.2525 16.7081V15.8162C12.2525 15.4762 12.2525 15.1363 12.2525 14.7937V14.3042C12.2525 14.2135 12.2166 14.1266 12.1526 14.0624C12.0886 13.9981 12.0018 13.9619 11.9112 13.9615H11.2463V13.6379C11.2463 13.5658 11.2176 13.4966 11.1666 13.4456C11.1156 13.3946 11.0465 13.366 10.9743 13.366H10.062C9.98985 13.366 9.92068 13.3946 9.86968 13.4456C9.81868 13.4966 9.79003 13.5658 9.79003 13.6379V13.9615H8.30115V13.6379C8.30115 13.5658 8.27249 13.4966 8.2215 13.4456C8.1705 13.3946 8.10133 13.366 8.0292 13.366H7.1182C7.04607 13.366 6.9769 13.3946 6.9259 13.4456C6.8749 13.4966 6.84625 13.5658 6.84625 13.6379V13.9615H6.18271C6.13754 13.9613 6.09277 13.9701 6.05096 13.9872C6.00916 14.0043 5.97114 14.0295 5.93907 14.0613C5.907 14.0931 5.88151 14.131 5.86405 14.1726C5.8466 14.2143 5.83753 14.259 5.83735 14.3042V16.6714C5.8412 16.7167 5.8412 16.7622 5.83735 16.8074C5.62372 16.6941 5.42806 16.5498 5.25675 16.3791C5.17926 16.3062 5.11161 16.2234 5.05551 16.133C5.16311 15.994 5.26298 15.8492 5.35465 15.6992C5.22956 15.7074 5.03648 15.6992 4.8502 15.7264C4.77619 15.5342 4.73794 15.3301 4.73734 15.1241C4.7369 15.0596 4.74053 14.9951 4.74822 14.931C4.86978 14.7846 4.97936 14.6286 5.07591 14.4646H4.86923C5.34105 13.3252 7.03389 12.4699 9.04627 12.4699C10.0345 12.4547 11.0113 12.6826 11.8908 13.1335C11.8201 13.2327 11.7548 13.3333 11.7099 13.4054C11.8991 13.4057 12.0881 13.3929 12.2756 13.3673C12.9446 13.8419 13.3525 14.4551 13.3525 15.1282Z",fill:"#775049"}),(0,a.createElement)(c.Path,{d:"M4.56173 9.71378C3.03477 10.9334 1.76752 13.589 1.22363 15.5007C1.42215 12.6535 3.74182 9.47719 3.74182 9.47719C3.74182 9.47719 3.74182 8.5118 3.80301 7.37372C3.84176 7.88946 3.96677 8.39504 4.17285 8.8694C4.05771 9.01407 3.95232 9.16624 3.85739 9.32491C3.98113 9.31675 4.17829 9.3249 4.36185 9.29771C4.42983 9.43912 4.49646 9.57917 4.56173 9.71378Z",fill:"#775049"}),(0,a.createElement)(c.Path,{d:"M9.04627 2.03956C8.35791 2.04065 7.67377 2.14703 7.01758 2.35501C7.22969 2.45427 7.42549 2.55897 7.60905 2.66639C7.51251 2.79284 7.43229 2.93833 7.36566 3.03079C7.60034 3.03533 7.83478 3.01344 8.06456 2.96552C8.1611 3.03623 8.24812 3.10965 8.3365 3.18172C8.29163 3.2497 8.2522 3.31769 8.21684 3.368C8.29707 3.368 8.40448 3.368 8.52006 3.35712C8.61198 3.45013 8.69654 3.55014 8.77297 3.65626C8.79314 3.68406 8.81962 3.70669 8.85022 3.7223C8.88083 3.73791 8.91469 3.74604 8.94905 3.74604C8.9834 3.74604 9.01727 3.73791 9.04787 3.7223C9.07848 3.70669 9.10496 3.68406 9.12513 3.65626C9.46914 3.16404 10.1014 2.70446 10.9539 2.31694C10.335 2.13201 9.69228 2.03857 9.04627 2.03956Z",fill:"#775049"}),(0,a.createElement)(c.Path,{d:"M16.107 12.6372C16.035 12.4672 15.9615 12.2972 15.884 12.1354C15.6814 11.6935 15.4652 11.2856 15.2613 10.928C15.1688 10.7635 15.0804 10.6126 14.9893 10.4725C14.6209 9.85655 14.3421 9.47719 14.3421 9.47719C14.3421 9.47719 14.3421 8.5118 14.2809 7.37372C14.2211 8.31192 13.8404 9.04888 13.5222 9.71378C13.6754 9.83888 13.8268 9.97485 13.9764 10.1217C14.1123 10.2577 14.2483 10.4072 14.3748 10.5636C14.4346 10.6316 14.4876 10.6996 14.5447 10.7744C14.4455 10.9035 14.3639 11.0463 14.2973 11.1401C14.4237 11.132 14.6127 11.1401 14.7976 11.117C15.0714 11.5 15.3211 11.8997 15.5455 12.3136C15.412 12.4654 15.2936 12.6297 15.1919 12.8044C15.3894 12.805 15.5866 12.7913 15.7821 12.7636C16.2263 13.6403 16.5873 14.5566 16.8603 15.5007C16.7978 14.538 16.4878 13.5373 16.107 12.6372Z",fill:"#775049"})),(0,a.createElement)(c.Defs,null,(0,a.createElement)("clipPath",null,(0,a.createElement)(c.Rect,{width:"20",height:"19.9986",fill:"white"}))))},d=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M17.348 20.657v-0.135c1.029-0.471 1.758-1.446 1.916-2.563 0.434-0.157 0.739-0.576 0.739-1.051 0-0.408-0.221-0.774-0.562-0.969 0.036-0.111 0.065-0.223 0.087-0.335 0.182-0.901-0.025-1.822-0.583-2.592-0.548-0.758-1.373-1.281-2.321-1.473-0.255-0.051-0.515-0.077-0.773-0.077-0.813 0-1.607 0.262-2.234 0.739-0.646 0.49-1.088 1.187-1.244 1.962-0.118 0.587-0.070 1.193 0.139 1.762-0.355 0.191-0.59 0.566-0.59 0.985 0 0.481 0.31 0.901 0.751 1.055 0.163 1.144 0.916 2.128 1.978 2.587v0.106c-2.207 0.5-3.729 2.151-3.729 4.079v0.515h10.153v-0.515c0-1.929-1.522-3.58-3.729-4.080zM15.853 12.492c0.189 0 0.381 0.019 0.569 0.057 0.693 0.14 1.293 0.519 1.689 1.066 0.369 0.511 0.518 1.111 0.423 1.701-0.507-0.237-1.173-0.487-1.874-0.583-1.318-0.18-1.339-0.241-1.417-0.469l-0.252-0.728-0.579 0.512c-0.062 0.054-0.528 0.464-1.066 0.91-0.015-0.198-0.002-0.396 0.037-0.593 0.219-1.086 1.257-1.873 2.469-1.873zM13.67 16.025c0.361-0.292 0.718-0.594 0.977-0.816 0.358 0.323 0.916 0.414 1.874 0.545 0.65 0.089 1.287 0.349 1.748 0.578v1.161c0 1.268-1.031 2.299-2.299 2.299s-2.299-1.031-2.299-2.299v-1.468zM15.682 20.81c0.213 0.019 0.425 0.017 0.635-0.006v0.318l-0.318 0.177-0.317-0.176v-0.313zM12.006 24.22c0.237-1.154 1.25-2.113 2.646-2.501v0.010l1.346 0.748 1.35-0.748v-0.010c1.396 0.388 2.409 1.348 2.646 2.502l-7.987-0zM21.076 27.499h-10.153c-0.307 0-0.556-0.249-0.556-0.556s0.249-0.556 0.556-0.556h10.153c0.307 0 0.556 0.249 0.556 0.556s-0.249 0.556-0.556 0.556zM28.112 3.393h-9.422v-1.689c0-0.832-0.677-1.509-1.509-1.509h-2.363c-0.832 0-1.509 0.677-1.509 1.509v1.689h-9.422c-0.832 0-1.509 0.677-1.509 1.509v25.395c0 0.832 0.677 1.509 1.509 1.509h24.225c0.832 0 1.509-0.677 1.509-1.509v-25.395c-0-0.832-0.677-1.509-1.509-1.509zM14.421 1.703c0-0.219 0.178-0.397 0.397-0.397h2.363c0.219 0 0.397 0.178 0.397 0.397v5.083c0 0.219-0.178 0.397-0.397 0.397h-2.363c-0.219 0-0.397-0.178-0.397-0.397v-5.083zM28.509 30.297c0 0.219-0.178 0.397-0.397 0.397h-24.225c-0.219 0-0.397-0.178-0.397-0.397v-25.395c0-0.219 0.178-0.397 0.397-0.397h9.422v2.282c0 0.832 0.677 1.509 1.509 1.509h2.363c0.832 0 1.509-0.677 1.509-1.509v-2.282h9.422c0.219 0 0.397 0.178 0.397 0.397v25.395z"})),m=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M30.457 11.777h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 18.886c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 15.523h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 23.388h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 30.497c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 27.134h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 0h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c0-0.829-0.674-1.503-1.503-1.503zM30.84 7.109c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM5.62 4.306c0 0.525-0.425 0.95-0.95 0.95s-0.95-0.425-0.95-0.95c0-0.525 0.425-0.95 0.95-0.95s0.95 0.425 0.95 0.95zM7.947 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 3.746h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56z"})),u=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M 5 5 L 5 27 L 27 27 L 27 5 Z M 7 7 L 25 7 L 25 25 L 7 25 Z M 14 9 L 14 15 L 23 15 L 23 9 Z M 9 11 L 9 13 L 12 13 L 12 11 Z M 16 11 L 21 11 L 21 13 L 16 13 Z M 14 17 L 14 23 L 23 23 L 23 17 Z M 9 19 L 9 21 L 12 21 L 12 19 Z M 16 19 L 21 19 L 21 21 L 16 21 Z"})),b=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M 1 9 L 1 10 L 1 23 L 31 23 L 31 9 L 1 9 z M 3 11 L 29 11 L 29 21 L 3 21 L 3 11 z M 5 17 L 5 19 L 7 19 L 7 17 L 5 17 z M 9 17 L 9 19 L 11 19 L 11 17 L 9 17 z M 13 17 L 13 19 L 15 19 L 15 17 L 13 17 z"})),p=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M30.584 0.099h-29.068c-0.781 0-1.417 0.635-1.417 1.416v29.068c0 0.781 0.635 1.416 1.417 1.416h29.068c0.781 0 1.416-0.635 1.416-1.416v-29.068c0-0.781-0.635-1.416-1.416-1.416zM1.515 1.219h29.068c0.163 0 0.296 0.133 0.296 0.296v3.476h-29.661v-3.476c0-0.163 0.133-0.296 0.296-0.296zM30.584 30.88h-29.068c-0.163 0-0.296-0.133-0.296-0.296v-24.472h29.661v24.472c0 0.163-0.133 0.296-0.296 0.296zM26.999 20.461h-21.062c-0.838 0-1.52 0.682-1.52 1.52v5.601c0 0.838 0.682 1.52 1.52 1.52h21.062c0.838 0 1.52-0.682 1.52-1.52v-5.601c0-0.838-0.682-1.52-1.52-1.52zM27.399 27.582c0 0.221-0.18 0.4-0.4 0.4h-21.062c-0.221 0-0.4-0.18-0.4-0.4v-5.601c0-0.221 0.179-0.4 0.4-0.4h21.062c0.221 0 0.4 0.179 0.4 0.4v5.601zM5.937 16.247h5.432c0.838 0 1.52-0.682 1.52-1.52v-5.432c0-0.838-0.682-1.52-1.52-1.52h-5.432c-0.838 0-1.52 0.682-1.52 1.52v5.432c0 0.838 0.682 1.52 1.52 1.52zM5.537 9.294c0-0.221 0.179-0.4 0.4-0.4h5.432c0.221 0 0.4 0.179 0.4 0.4v5.432c0 0.221-0.18 0.4-0.4 0.4h-5.432c-0.221 0-0.4-0.18-0.4-0.4v-5.432zM27.959 17.714h-22.982c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h22.982c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 14.793h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 11.433h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 8.072h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM4.543 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM7.384 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM10.224 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9z"})),g=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M31.276 3.351h-14.587l-3.23-3.028c-0.103-0.097-0.239-0.15-0.38-0.15h-12.354c-0.307 0-0.556 0.249-0.556 0.556v30.697c0 0.307 0.249 0.556 0.556 0.556h30.551c0.307 0 0.556-0.249 0.556-0.556v-27.518c0-0.307-0.249-0.556-0.556-0.556zM1.281 1.286h11.578l3.23 3.028c0.103 0.097 0.239 0.15 0.38 0.15h14.25v3.013h-29.439v-6.191zM30.719 30.87h-29.439v-22.281h29.439v22.281z"})),h=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M30.958 13.988h-0.64c-0.572-5.298-4.029-9.744-8.764-11.73h5.439v0.555c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.229c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.229c0.309 0 0.559-0.25 0.559-0.559v-0.555h5.439c-4.735 1.987-8.191 6.432-8.764 11.73h-0.64c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-0.464c0.709-6.044 5.49-10.86 11.518-11.621v0.446c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-0.446c6.028 0.761 10.809 5.578 11.518 11.621h-0.464c-0.309 0-0.559 0.25-0.559 0.559v2.23c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559zM29.223 2.253h-1.111v-1.111h1.111v1.111zM2.777 1.142h1.111v1.111h-1.111v-1.111zM2.712 15.608v0.609h-1.111v-0.973c0.001-0.046 0.002-0.092 0.003-0.138h1.108v0.501zM16 1.142c0.186 0 0.371 0.005 0.555 0.012v1.099h-1.111v-1.099c0.184-0.007 0.37-0.012 0.556-0.012zM30.399 15.25v0.967h-1.111v-1.111h1.107c0.002 0.048 0.003 0.096 0.004 0.144zM16.512 4.461c-0.089-0.204-0.29-0.336-0.513-0.336s-0.424 0.132-0.513 0.336l-7.287 16.694c-0.058 0.134-0.062 0.285-0.011 0.421l0.009 0.023c0.059 0.157 0.186 0.279 0.345 0.333 1.743 0.585 2.914 2.213 2.914 4.052 0 0.766-0.206 1.518-0.595 2.175-0.012 0.020-0.022 0.041-0.032 0.063-0.063 0.091-0.101 0.201-0.101 0.32v2.832c0 0.307 0.248 0.557 0.555 0.559l9.42 0.068c0.001 0 0.003 0 0.004 0 0.307 0 0.557-0.248 0.559-0.555 0.002-0.309-0.246-0.561-0.555-0.563l-8.865-0.064v-1.405h8.654c0.234 0 0.443-0.145 0.524-0.364l0.153-0.41c0.059-0.158 0.043-0.335-0.043-0.48-0.389-0.657-0.595-1.409-0.595-2.174 0-1.838 1.171-3.467 2.914-4.052 0.16-0.054 0.287-0.176 0.346-0.334l0.009-0.023c0.051-0.136 0.047-0.287-0.011-0.42l-7.287-16.694zM16 20.028c0.619 0 1.122 0.503 1.122 1.122s-0.504 1.122-1.122 1.122c-0.619 0-1.122-0.503-1.122-1.122s0.503-1.122 1.122-1.122zM19.424 25.983c0 0.802 0.179 1.591 0.52 2.31h-7.887c0.341-0.719 0.52-1.509 0.52-2.31 0-2.121-1.235-4.020-3.127-4.894l5.991-13.726v11.616c-0.966 0.249-1.682 1.128-1.682 2.17 0 1.236 1.005 2.241 2.241 2.241s2.241-1.005 2.241-2.241c0-1.043-0.716-1.921-1.682-2.17v-11.616l5.991 13.726c-1.892 0.874-3.127 2.773-3.127 4.894z"})),k=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M30.424 0.171h-28.847c-0.775 0-1.406 0.631-1.406 1.406v28.848c0 0.775 0.631 1.406 1.406 1.406h28.847c0.775 0 1.406-0.631 1.406-1.406v-28.848c0-0.775-0.631-1.406-1.406-1.406zM1.576 1.282h28.847c0.162 0 0.294 0.132 0.294 0.294v3.45h-29.435v-3.45c0-0.162 0.132-0.294 0.294-0.294zM30.424 30.718h-28.847c-0.162 0-0.294-0.132-0.294-0.294v-24.286h29.435v24.286c0 0.162-0.132 0.294-0.294 0.294zM3.688 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM6.507 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM9.326 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM20.662 19.394l3.855-3.758c0.152-0.148 0.206-0.369 0.141-0.57s-0.239-0.348-0.449-0.378l-5.328-0.774-2.383-4.828c-0.094-0.19-0.287-0.31-0.498-0.31s-0.405 0.12-0.498 0.31l-2.383 4.828-5.328 0.774c-0.209 0.030-0.383 0.177-0.449 0.378s-0.011 0.422 0.141 0.57l3.855 3.758-0.91 5.307c-0.036 0.209 0.050 0.419 0.221 0.544s0.398 0.141 0.585 0.042l4.766-2.506 4.766 2.506c0.081 0.043 0.17 0.064 0.259 0.064 0.115 0 0.23-0.036 0.327-0.106 0.171-0.124 0.257-0.335 0.221-0.544l-0.91-5.307zM16.259 21.661c-0.162-0.085-0.355-0.085-0.517 0l-4.027 2.117 0.769-4.485c0.031-0.18-0.029-0.364-0.16-0.492l-3.258-3.176 4.503-0.654c0.181-0.026 0.338-0.14 0.418-0.304l2.014-4.080 2.014 4.080c0.081 0.164 0.238 0.278 0.419 0.304l4.503 0.654-3.258 3.176c-0.131 0.128-0.191 0.312-0.16 0.492l0.769 4.485-4.027-2.117zM16 25.179c-0.307 0-0.556 0.249-0.556 0.556v1.887c0 0.307 0.249 0.556 0.556 0.556s0.556-0.249 0.556-0.556v-1.887c0-0.307-0.249-0.556-0.556-0.556zM25.319 20.446l-1.794-0.583c-0.293-0.095-0.606 0.065-0.7 0.357s0.065 0.606 0.357 0.7l1.794 0.583c0.057 0.019 0.115 0.027 0.172 0.027 0.234 0 0.452-0.149 0.529-0.384 0.095-0.292-0.065-0.606-0.357-0.7zM20.218 12.197c0.099 0.072 0.213 0.106 0.326 0.106 0.172 0 0.341-0.079 0.45-0.229l1.109-1.526c0.18-0.248 0.125-0.596-0.123-0.776s-0.596-0.125-0.776 0.123l-1.109 1.526c-0.18 0.248-0.125 0.596 0.123 0.776zM11.006 12.075c0.109 0.15 0.278 0.229 0.45 0.229 0.113 0 0.228-0.034 0.326-0.106 0.248-0.18 0.303-0.528 0.123-0.776l-1.109-1.526c-0.18-0.248-0.528-0.303-0.776-0.123s-0.303 0.528-0.123 0.776l1.109 1.526zM8.475 19.863l-1.794 0.583c-0.292 0.095-0.452 0.408-0.357 0.7 0.076 0.235 0.294 0.384 0.529 0.384 0.057 0 0.115-0.009 0.172-0.027l1.794-0.583c0.292-0.095 0.452-0.408 0.357-0.7s-0.408-0.452-0.7-0.357z"})),v=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M6.348 13.197c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.803-2.873-2.769-2.873zM25.842 3.161c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557zM25.742 22.433c-0.826 0-1.641 0.22-2.359 0.636-0.567 0.328-1.040 0.758-1.41 1.252l-11.344-6.569c0.069-0.174 0.13-0.353 0.179-0.537 0.276-1.036 0.194-2.11-0.226-3.079l11.319-6.555c0.878 1.235 2.316 1.986 3.848 1.986 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353-0.826 0-1.641 0.22-2.359 0.636-2.051 1.188-2.872 3.694-2.015 5.833l-11.344 6.569c-0.884-1.176-2.285-1.888-3.776-1.888-0.825 0-1.641 0.22-2.359 0.636-2.25 1.303-3.021 4.194-1.718 6.444 0.841 1.452 2.406 2.353 4.085 2.353 0.826 0 1.641-0.22 2.359-0.636 0.595-0.345 1.097-0.805 1.483-1.35l11.319 6.554c-0.567 1.323-0.526 2.888 0.249 4.227 0.841 1.452 2.406 2.353 4.085 2.353 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353zM23.941 1.734c0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.798-0.995-1.719-0.407-3.927 1.312-4.922zM8.056 19.117c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189zM29.226 28.077c-0.248 0.93-0.843 1.707-1.675 2.189-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.832 0.611 1.803 0.363 2.733zM25.842 24.346c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873z"})),y=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M16 27.667l7.849-7.849c0.146-0.139 0.464-0.469 0.478-0.483l0.006-0.007c1.972-2.116 3.059-4.874 3.059-7.766 0-6.282-5.11-11.392-11.392-11.392s-11.392 5.11-11.392 11.392c0 2.893 1.086 5.651 3.058 7.766l8.334 8.339zM16 1.265c5.677 0 10.297 4.619 10.297 10.297 0 2.613-0.981 5.104-2.761 7.016-0.092 0.096-0.343 0.353-0.446 0.451l-7.089 7.089-7.539-7.543c-1.779-1.911-2.758-4.401-2.758-7.012 0-5.678 4.619-10.297 10.297-10.297zM17.755 4.005c1.966 0 5.792 2.149 5.792 6.090 0 0.303 0.245 0.548 0.548 0.548s0.548-0.245 0.548-0.548c0-2.051-0.906-3.953-2.552-5.354-1.306-1.112-3.008-1.831-4.335-1.831-0.302 0-0.548 0.245-0.548 0.548s0.245 0.548 0.548 0.548zM22.875 24.197c-0.427-0.174-0.886-0.33-1.371-0.467l-0.897 0.897c2.645 0.631 4.275 1.756 4.275 2.802 0 1.564-3.648 3.306-8.882 3.306s-8.882-1.742-8.882-3.306c0-1.045 1.631-2.171 4.275-2.802l-0.897-0.897c-0.485 0.137-0.944 0.293-1.371 0.467-2.001 0.818-3.102 1.966-3.102 3.232s1.102 2.415 3.102 3.232c1.845 0.754 4.287 1.169 6.875 1.169s5.030-0.415 6.875-1.169c2.001-0.818 3.102-1.966 3.102-3.232s-1.102-2.415-3.102-3.232zM16.032 16.804c-3.043 0-5.519-2.476-5.519-5.519s2.476-5.519 5.519-5.519c3.043 0 5.519 2.476 5.519 5.519s-2.476 5.519-5.519 5.519zM16.032 6.862c-2.439 0-4.423 1.984-4.423 4.423s1.984 4.423 4.423 4.423c2.439 0 4.423-1.984 4.423-4.423s-1.984-4.423-4.423-4.423z"})),_=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M4.285 5.775c0.004 0 0.009 0.001 0.013 0.001h8.279c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-8.279c-0.307 0-0.556 0.249-0.556 0.556 0 0.302 0.242 0.548 0.542 0.555zM3.743 8.005c0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-13.679c-0.307 0-0.556 0.249-0.556 0.556zM17.977 10.236h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 13.022h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 15.807h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 18.593h-13.679c-0.307 0-0.556 0.249-0.556 0.555s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.555-0.556-0.555zM17.977 21.379h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 24.165h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM21.93 4.466l-4.277-3.87c-0.094-0.085-0.212-0.132-0.334-0.139h-15.831c-0.812 0-1.473 0.664-1.473 1.481v28.153c0 0.817 0.661 1.481 1.473 1.481h19.174c0.812 0 1.473-0.664 1.473-1.481v-25.222c-0.008-0.163-0.086-0.308-0.205-0.403zM17.833 2.238l2.331 2.109h-2.331v-2.109zM21.043 30.091c0 0.215-0.171 0.39-0.381 0.39h-19.174c-0.21 0-0.382-0.175-0.382-0.39v-28.153c0-0.215 0.171-0.39 0.382-0.39h15.251v3.348c0 0.303 0.245 0.549 0.547 0.549h3.758v24.647zM31.975 3.213c-0.125-1.57-1.442-2.809-3.044-2.809-0 0-0 0-0 0-0.816 0-1.583 0.318-2.16 0.895-0.519 0.519-0.827 1.191-0.884 1.915h-0.010v0.242c0 0.001-0 0.002-0 0.003s0 0.001 0 0.001l-0 24.342h0.003c0.010 0.096 0.045 0.191 0.108 0.273l2.509 3.305c0.103 0.136 0.264 0.216 0.435 0.216s0.331-0.080 0.435-0.216l2.508-3.305c0.063-0.083 0.098-0.177 0.108-0.274h0.003v-24.589h-0.011zM27.543 2.070c0.371-0.371 0.864-0.575 1.388-0.575h0c0.893 0 1.649 0.6 1.886 1.417h-3.772c0.091-0.315 0.26-0.604 0.498-0.842zM28.362 26.711l-1.394 0 0-22.406h3.926v22.406h-1.442l0-18.071-1.090 0 0 18.071zM28.931 30.148l-1.781-2.346 3.562-0-1.781 2.346z"})),f=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M31.908 1.543c0-0.815-0.677-1.478-1.51-1.478h-28.731c-0.815 0-1.478 0.677-1.478 1.51v14.441c0 0.022 0.002 0.044 0.004 0.065-0.003 0.021-0.004 0.043-0.004 0.065v14.357c0 0.815 0.677 1.478 1.51 1.478h28.731c0.815 0 1.478-0.677 1.478-1.51v-14.441c0-0.022-0.002-0.044-0.004-0.065 0.003-0.021 0.004-0.043 0.004-0.065v-14.357zM30.792 1.543v13.799h-4.324c0.587-0.66 0.932-1.525 0.932-2.453 0-0.737-0.218-1.423-0.592-2-0.648-1.066-1.82-1.78-3.156-1.78-2.034 0-3.689 1.655-3.689 3.689 0 0.745 0.223 1.449 0.615 2.039 0.111 0.178 0.236 0.347 0.376 0.504h-4.372v-6.025c0-0.184-0.090-0.347-0.228-0.449-0.101-0.103-0.242-0.167-0.398-0.167h-0.173c-0.24 0-0.453 0.153-0.529 0.38-0.352 1.049-1.332 1.754-2.439 1.754-0.419 0-0.815-0.101-1.166-0.28-0.776-0.444-1.301-1.279-1.301-2.235 0-1.419 1.154-2.574 2.574-2.574 0.408 0 0.799 0.096 1.147 0.27 0.546 0.305 0.976 0.804 1.185 1.426 0.052 0.155 0.169 0.275 0.314 0.335 0.092 0.065 0.204 0.103 0.322 0.103h0.133c0.308 0 0.558-0.25 0.558-0.558v-6.142h13.816c0.217 0 0.394 0.162 0.394 0.362zM1.305 1.575c0-0.217 0.162-0.394 0.362-0.394h13.732v4.404c-0.239-0.216-0.505-0.401-0.793-0.549-0.536-0.297-1.148-0.464-1.791-0.464-2.034 0-3.689 1.655-3.689 3.689 0 1.423 0.81 2.659 1.992 3.274 0.534 0.301 1.149 0.473 1.804 0.473 0.939 0 1.813-0.354 2.476-0.955v4.404h-6.016c-0.308 0-0.558 0.25-0.558 0.558v0.173c0 0.127 0.043 0.245 0.117 0.34 0.065 0.129 0.178 0.231 0.321 0.279 0.562 0.189 1.023 0.558 1.332 1.030 0.232 0.39 0.364 0.842 0.364 1.318 0 1.419-1.154 2.574-2.574 2.574-0.894 0-1.682-0.458-2.144-1.151-0.236-0.389-0.372-0.844-0.372-1.331-0-1.107 0.705-2.087 1.754-2.44 0.227-0.076 0.38-0.289 0.38-0.529v-0.133c0-0.106-0.030-0.204-0.081-0.288-0.068-0.231-0.282-0.4-0.535-0.4h-6.084v-13.883zM1.305 30.505v-13.799h4.324c-0.587 0.66-0.932 1.525-0.932 2.453 0 0.737 0.218 1.424 0.592 2 0.647 1.066 1.82 1.78 3.156 1.78 2.034 0 3.689-1.655 3.689-3.689-0-0.745-0.223-1.449-0.615-2.040-0.111-0.178-0.236-0.347-0.376-0.504h4.372v6.025c0 0.184 0.090 0.347 0.228 0.449 0.101 0.103 0.242 0.167 0.398 0.167h0.173c0.24 0 0.453-0.153 0.529-0.38 0.352-1.049 1.332-1.754 2.439-1.754 0.419 0 0.815 0.101 1.165 0.28 0.776 0.444 1.301 1.279 1.301 2.236 0 1.419-1.154 2.574-2.574 2.574-0.408 0-0.799-0.096-1.147-0.27-0.546-0.305-0.976-0.804-1.185-1.426-0.052-0.155-0.169-0.275-0.314-0.336-0.092-0.065-0.204-0.103-0.322-0.103h-0.133c-0.308 0-0.558 0.25-0.558 0.558v6.142h-13.816c-0.217-0-0.394-0.163-0.394-0.362zM30.792 30.472c0 0.217-0.162 0.394-0.362 0.394h-13.732v-4.404c0.239 0.216 0.505 0.401 0.792 0.548 0.536 0.297 1.148 0.464 1.791 0.464 2.034 0 3.689-1.655 3.689-3.689 0-1.423-0.81-2.659-1.993-3.274-0.534-0.301-1.149-0.473-1.804-0.473-0.939 0-1.813 0.354-2.476 0.955v-4.404h6.016c0.308 0 0.558-0.25 0.558-0.558v-0.173c0-0.126-0.044-0.245-0.117-0.34-0.064-0.129-0.178-0.231-0.321-0.279-0.562-0.189-1.023-0.558-1.332-1.030-0.232-0.389-0.363-0.842-0.363-1.318 0-1.419 1.154-2.574 2.574-2.574 0.894 0 1.682 0.458 2.144 1.151 0.236 0.389 0.372 0.844 0.372 1.331 0 1.107-0.705 2.087-1.754 2.439-0.227 0.076-0.38 0.289-0.38 0.529v0.133c0 0.106 0.030 0.204 0.081 0.289 0.068 0.231 0.282 0.4 0.535 0.4h6.084v13.883z"})),C=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M15.517 23.581c-0.036 0.002-0.069-0.003-0.102-0.009-0.108-0.019-0.211-0.070-0.294-0.153l-9.153-9.153c-0.104-0.104-0.162-0.245-0.162-0.392s0.058-0.288 0.163-0.392l2.13-2.129c0.217-0.217 0.568-0.217 0.784 0l6.633 6.633 12.94-12.94c0.217-0.217 0.568-0.217 0.785 0l2.13 2.13c0.104 0.104 0.163 0.245 0.163 0.392s-0.058 0.288-0.162 0.392l-15.46 15.46c-0.104 0.104-0.245 0.163-0.392 0.163zM7.145 13.873l8.37 8.37 14.678-14.678-1.345-1.345-12.94 12.94c-0.217 0.217-0.568 0.217-0.785 0l-6.633-6.633-1.345 1.345zM30.087 11.781c0.401 1.337 0.618 2.753 0.618 4.219 0 8.108-6.596 14.704-14.705 14.704s-14.704-6.596-14.704-14.704c0-8.108 6.596-14.705 14.704-14.705 3.79 0 7.25 1.442 9.86 3.805l0.785-0.785c-2.812-2.564-6.549-4.129-10.645-4.129-8.72 0-15.814 7.094-15.814 15.814s7.094 15.814 15.814 15.814c8.72 0 15.814-7.094 15.814-15.814 0-1.784-0.297-3.501-0.845-5.102l-0.883 0.883z"})),w=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M17.425 25.368h-3.22v-2.107c-1.234-0.109-2.518-0.463-3.389-0.944l-0.373-0.206 0.93-3.628 0.622 0.341c0.602 0.33 1.835 0.883 3.323 0.883 0.769 0 1.545-0.244 1.545-0.789 0-0.365-0.235-0.783-1.938-1.358-1.985-0.668-4.264-1.78-4.264-4.477 0-2.098 1.387-3.709 3.652-4.289v-2.162h3.22v1.931c1.366 0.11 2.263 0.465 2.838 0.736l0.416 0.196-0.937 3.53-0.621-0.298c-0.539-0.259-1.442-0.692-2.853-0.692-0.488 0-1.307 0.088-1.307 0.681 0 0.448 1.192 0.94 2.231 1.319 2.781 0.973 3.971 2.344 3.971 4.58 0 1.114-0.391 2.124-1.13 2.922-0.668 0.721-1.601 1.236-2.716 1.503v2.328zM15.307 24.266h1.016v-2.139l0.457-0.079c2.090-0.36 3.389-1.676 3.389-3.433 0-1.446-0.551-2.601-3.24-3.542-1.624-0.592-2.962-1.176-2.962-2.357 0-0.862 0.633-1.783 2.409-1.783 1.213 0 2.119 0.278 2.746 0.536l0.36-1.354c-0.565-0.222-1.372-0.445-2.517-0.479l-0.535-0.016v-1.886h-1.016v1.959l-0.45 0.084c-2.005 0.375-3.202 1.61-3.202 3.305 0 1.577 1.051 2.604 3.514 3.432 1.396 0.472 2.688 1.089 2.688 2.402 0 1.149-1.039 1.891-2.647 1.891-1.312 0-2.447-0.366-3.222-0.708l-0.369 1.437c0.709 0.309 1.808 0.617 3.045 0.654l0.535 0.016v2.058zM15.901 30.607c-8.054 0-14.607-6.552-14.607-14.606s6.552-14.607 14.607-14.607c8.054 0 14.607 6.552 14.607 14.607 0 2.567-0.667 4.981-1.834 7.079l1.095 0.293c1.174-2.2 1.841-4.71 1.841-7.373 0-8.662-7.047-15.709-15.709-15.709s-15.709 7.047-15.709 15.709 7.047 15.709 15.709 15.709c2.752 0 5.34-0.712 7.592-1.96l-0.294-1.099c-2.148 1.244-4.641 1.957-7.297 1.957zM29.539 31.709c-0.141 0-0.282-0.054-0.39-0.161l-2.673-2.673-0.86 1.786c-0.1 0.208-0.32 0.331-0.548 0.31s-0.421-0.184-0.481-0.406l-1.977-7.377c-0.051-0.19 0.004-0.393 0.143-0.532s0.342-0.194 0.532-0.143l7.377 1.977c0.222 0.060 0.385 0.252 0.406 0.481s-0.102 0.448-0.31 0.548l-1.787 0.86 2.673 2.672c0.103 0.103 0.161 0.244 0.161 0.39s-0.058 0.286-0.161 0.39l-1.717 1.717c-0.108 0.107-0.249 0.161-0.39 0.161zM26.318 27.385c0.145 0 0.285 0.057 0.39 0.161l2.832 2.832 0.938-0.938-2.832-2.832c-0.126-0.126-0.184-0.306-0.154-0.482s0.143-0.327 0.304-0.404l1.148-0.552-5.020-1.345 1.345 5.020 0.552-1.148c0.077-0.161 0.228-0.274 0.404-0.304 0.031-0.005 0.062-0.008 0.092-0.008zM20.272 5.201c1.977 0 5.826 2.162 5.826 6.126 0 0.304 0.247 0.551 0.551 0.551s0.551-0.247 0.551-0.551c0-2.063-0.912-3.976-2.568-5.387-1.314-1.119-3.025-1.842-4.361-1.842-0.304 0-0.551 0.247-0.551 0.551s0.247 0.551 0.551 0.551z"})),E=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M31.438 1.423h-30.877c-0.31 0-0.562 0.251-0.562 0.562v22.175c0 0.31 0.251 0.562 0.562 0.562h3.103v5.294c0 0.201 0.107 0.386 0.281 0.486 0.087 0.050 0.184 0.075 0.281 0.075s0.194-0.025 0.281-0.075l10.012-5.78h16.919c0.31 0 0.562-0.251 0.562-0.562v-22.175c0-0.31-0.251-0.562-0.562-0.562zM30.877 23.598h-16.508c-0.099 0-0.195 0.026-0.281 0.075l-9.3 5.369v-4.883c0-0.31-0.251-0.562-0.562-0.562h-3.103v-21.052h29.753v21.052zM4.386 7.532h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 11.865h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 16.198h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 20.53h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.252-0.562 0.562s0.251 0.562 0.562 0.562z"})),x=()=>(0,a.createElement)(c.SVG,{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(c.Path,{d:"M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"})),T=(0,a.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(c.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"})),S=e=>{let{className:t}=e;return(0,a.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:t},(0,a.createElement)(c.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}))},M=e=>{let{className:t}=e;return(0,a.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:t},(0,a.createElement)(c.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"}))},B=(0,a.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(c.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 2.4 5.8 4.3 9.3-12.6z"})),z=(0,a.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(c.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),P=e=>(0,a.createElement)(c.SVG,(0,l.Z)({width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},e),(0,a.createElement)(c.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),V=e=>(0,a.createElement)(c.SVG,(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},e),(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Rect,{x:"22.9",y:"13",width:"2.2",height:"22"})),R=e=>(0,a.createElement)(c.SVG,(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},e),(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Rect,{x:"16.9",y:"13",width:"2.2",height:"22"})),L=e=>(0,a.createElement)(c.SVG,(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},e),(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Rect,{x:"28.9",y:"13",width:"2.2",height:"22"})),H=e=>(0,a.createElement)(c.SVG,(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},e),(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Rect,{x:"28.9",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"16.9",y:"13",width:"2.2",height:"22"})),N=e=>(0,a.createElement)(c.SVG,(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},e),(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Rect,{x:"22.9",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"12.9",y:"13",width:"2.2",height:"22"})),I=e=>(0,a.createElement)(c.SVG,(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},e),(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Rect,{x:"22.9",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"32.9",y:"13",width:"2.2",height:"22"})),O=e=>(0,a.createElement)(c.SVG,(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},e),(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Rect,{x:"13.9",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"31.9",y:"13",width:"2.2",height:"22"})),A=e=>(0,a.createElement)(c.SVG,(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},e),(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Rect,{x:"11.9",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"33.9",y:"13",width:"2.2",height:"22"})),F=e=>(0,a.createElement)(c.SVG,(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},e),(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Rect,{x:"13.9",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"32.9",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"22.9",y:"13",width:"2.2",height:"22"})),G=e=>(0,a.createElement)(c.SVG,(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},e),(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Rect,{x:"10.9",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"34.9",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"26.9",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"18.9",y:"13",width:"2.2",height:"22"})),$=e=>(0,a.createElement)(c.SVG,(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},e),(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Rect,{x:"4",y:"22.9",width:"40",height:"2.2"}),(0,a.createElement)(c.Rect,{x:"22.9",y:"13",width:"2.2",height:"22"})),Z=e=>(0,a.createElement)(c.SVG,(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},e),(0,a.createElement)(c.SVG,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Rect,{x:"6",y:"22.9",width:"36",height:"2.2"}))),D=e=>(0,a.createElement)(c.SVG,(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},e),(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Rect,{x:"10.4",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"35.9",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"29.4",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"16.4",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"22.9",y:"13",width:"2.2",height:"22"})),W=e=>(0,a.createElement)(c.SVG,(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},e),(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Rect,{x:"4",y:"18.9",width:"40",height:"2.2"}),(0,a.createElement)(c.Rect,{x:"22.9",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"4",y:"26.9",width:"40",height:"2.2"})),U=e=>(0,a.createElement)(c.SVG,(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},e),(0,a.createElement)(c.Path,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),(0,a.createElement)(c.Rect,{x:"4",y:"22.9",width:"40",height:"2.2"}),(0,a.createElement)(c.Rect,{x:"28.9",y:"13",width:"2.2",height:"22"}),(0,a.createElement)(c.Rect,{x:"16.9",y:"13",width:"2.2",height:"22"})),j=(0,a.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(c.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),q=(0,a.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(c.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),K=(0,a.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(c.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"}))},2720:function(e,t,o){var l=o(5225),a=o(340);window.otterUtils={},window.otterUtils.blockInit=l.WX,window.otterUtils.icons=a},48:function(e,t,o){var l=o(7462),a=o(9307),r=o(444);t.ZP={iconsList:["balance","battery","bookmark","briefcase","calculator","calendar","camera","chart","chartGear","check","checklist","clock","cloudDatabase","cloudDownload","cloudNetwork","compass","creditCard","database","design","diamond","disk","download","drop","favorite","fileDownload","filter","flag","folder","folders","gear","gears","gift","globe","graduation","graph","group","heart","hourglass","house","id","idea","key","lamp","link","location","lock","man","mail","medal","megaphone","message","messages","microphone","mobile","mouse","music","notification","offer","page","paperclip","pen","phone","picture","piggybank","plane","play","pointer","power","presentation","price","puzzle","refresh","repair","responsive","science","search","security","securityAlt","servers","settings","share","shield","shoppingCart","sign","siteMap","statistics","tag","telescope","trophy","university","usb","usbDrive","user","vault","wallet","warning","webpage","wifi","world","write"],icons:{balance:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1786.11,816.827c-0.656-2.722-1.644-5.309-2.966-7.695c0-0.009-0.004-0.017-0.004-0.017L1544.37,376.403 c-0.035-0.065-0.069-0.13-0.104-0.196l-0.052-0.091c-0.083-0.152-0.183-0.283-0.266-0.43c-0.073-0.122-0.152-0.244-0.222-0.365 c-0.252-0.426-0.504-0.861-0.782-1.283c-0.101-0.157-0.2-0.317-0.309-0.469c-0.191-0.283-0.404-0.544-0.604-0.813 c-0.287-0.4-0.578-0.8-0.892-1.187c-0.104-0.126-0.204-0.257-0.313-0.383c-0.257-0.313-0.535-0.604-0.805-0.9 c-0.296-0.331-0.587-0.657-0.896-0.974c-0.108-0.108-0.218-0.217-0.33-0.326c-0.331-0.326-0.679-0.635-1.022-0.943 c-0.282-0.256-0.556-0.517-0.848-0.761c-0.13-0.104-0.256-0.208-0.383-0.313c-0.404-0.326-0.821-0.626-1.234-0.93 c-0.261-0.188-0.504-0.387-0.773-0.57c-0.148-0.104-0.305-0.205-0.461-0.309c-0.435-0.283-0.883-0.543-1.331-0.804 c-0.112-0.069-0.226-0.144-0.339-0.209c-0.147-0.083-0.278-0.183-0.422-0.261c-0.013-0.009-0.03-0.013-0.043-0.021 c-0.17-0.092-0.344-0.179-0.514-0.266c-0.387-0.204-0.791-0.387-1.187-0.574c-0.526-0.248-1.052-0.496-1.591-0.717 c-0.356-0.148-0.727-0.27-1.092-0.4c-0.582-0.213-1.161-0.421-1.761-0.6c-0.392-0.117-0.791-0.204-1.183-0.305 c-0.47-0.121-0.931-0.265-1.408-0.36c-0.109-0.026-0.222-0.035-0.335-0.052c-0.426-0.087-0.861-0.139-1.291-0.2 c-0.487-0.078-0.975-0.174-1.461-0.222c0,0-0.03,0-0.044-0.004c-0.052,0-0.104,0-0.156-0.009c-0.521-0.048-1.052-0.061-1.583-0.087 c-0.443-0.018-0.882-0.057-1.321-0.057l-0.087-0.004h-0.087c-0.087,0-0.17,0-0.252,0H931.164V227.699 c46.116-13.509,79.902-56.168,79.902-106.597c0-61.246-49.829-111.075-111.075-111.075c-61.246,0-111.074,49.829-111.074,111.075 c0,50.433,33.794,93.097,79.919,106.605v132.3H283.351c0,0-0.061,0-0.091,0h-0.188h-0.043c-0.644,0-1.287,0.052-1.931,0.091 c-0.305,0.018-0.613,0.022-0.917,0.048c-0.757,0.07-1.509,0.191-2.257,0.313c-0.235,0.043-0.465,0.065-0.695,0.108 c-0.718,0.139-1.426,0.322-2.14,0.509c-0.27,0.074-0.548,0.13-0.817,0.209c-0.7,0.208-1.382,0.452-2.061,0.704 c-0.261,0.1-0.53,0.183-0.787,0.287c-0.635,0.261-1.248,0.548-1.865,0.843c-0.304,0.148-0.617,0.287-0.917,0.443 c-0.196,0.1-0.392,0.196-0.583,0.3c-0.013,0.009-0.031,0.013-0.043,0.021c-0.144,0.078-0.274,0.178-0.422,0.261 c-0.174,0.1-0.339,0.209-0.509,0.309c-0.369,0.222-0.743,0.435-1.1,0.67c-0.174,0.113-0.353,0.226-0.522,0.343 c-0.3,0.205-0.574,0.426-0.861,0.639c-0.37,0.274-0.743,0.535-1.1,0.826c-0.144,0.117-0.287,0.23-0.431,0.348 c-0.313,0.266-0.609,0.543-0.913,0.822c-0.313,0.278-0.626,0.556-0.926,0.852c-0.122,0.117-0.239,0.235-0.361,0.356 c-0.326,0.331-0.63,0.679-0.939,1.022c-0.248,0.274-0.504,0.543-0.739,0.831c-0.113,0.13-0.227,0.27-0.335,0.404 c-0.322,0.399-0.622,0.813-0.917,1.222c-0.191,0.256-0.387,0.5-0.565,0.765c-0.113,0.157-0.218,0.322-0.322,0.483 c-0.278,0.422-0.53,0.856-0.782,1.283c-0.078,0.13-0.156,0.256-0.235,0.387c-0.078,0.144-0.174,0.266-0.252,0.409l-0.052,0.091 c-0.035,0.065-0.069,0.131-0.104,0.196L16.864,809.11c-0.004,0.004-0.008,0.013-0.008,0.021c-1.322,2.387-2.309,4.974-2.965,7.695 c-0.587,2.418-0.9,4.861-0.905,7.296c0,0.013,0,0.026,0,0.039c0,148.932,121.162,270.094,270.092,270.094 c148.925,0,270.086-121.162,270.086-270.094c0-0.013-0.004-0.026-0.004-0.039c0-2.435-0.313-4.878-0.9-7.296 c-0.657-2.722-1.648-5.309-2.965-7.695c-0.004-0.009-0.004-0.017-0.004-0.017L335.862,422.336h532.974v933.441 c0,3.356,0.548,6.582,1.53,9.617c-116.218,12.348-208.584,96.527-226.327,205.889H434.676c-17.212,0-31.165,13.947-31.165,31.164 v156.36c0,17.208,13.952,31.164,31.165,31.164h930.643c17.213,0,31.164-13.956,31.164-31.164v-156.36 c0-17.217-13.951-31.164-31.164-31.164h-209.362c-17.747-109.361-110.109-193.533-226.323-205.889 c0.982-3.035,1.53-6.261,1.53-9.617V422.336h532.974L1250.715,809.11c0,0-0.005,0.013-0.009,0.021 c-1.317,2.387-2.309,4.974-2.965,7.695c-0.587,2.418-0.9,4.861-0.9,7.296c0,0.013-0.004,0.026-0.004,0.039 c0,148.932,121.161,270.094,270.086,270.094c148.931,0,270.092-121.162,270.092-270.094c0-0.013,0-0.026,0-0.039 C1787.01,821.688,1786.697,819.245,1786.11,816.827z M283.072,455.679l186.133,337.319H96.939L283.072,455.679z M283.077,1031.927 c-103.975,0-190.355-76.763-205.433-176.601h410.86C473.427,955.164,387.047,1031.927,283.077,1031.927z M851.245,121.103 c0-26.877,21.869-48.746,48.746-48.746c26.878,0,48.746,21.869,48.746,48.746c0,26.882-21.868,48.755-48.746,48.755 C873.114,169.857,851.245,147.984,851.245,121.103z M1334.155,1727.643H465.84v-94.031h206.333h455.65h206.332V1727.643z M1092.567,1571.283H707.428c18.704-83.589,97.532-145.187,192.567-145.187S1073.859,1487.694,1092.567,1571.283z M1703.061,792.998 h-372.266l186.133-337.319L1703.061,792.998z M1516.923,1031.927c-103.97,0-190.35-76.763-205.428-176.601h410.86 C1707.278,955.164,1620.898,1031.927,1516.923,1031.927z"})),battery:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M955.577,469.95c0.991-11.551-4.471-23.208-15.062-29.614c-5.422-3.281-11.499-4.721-17.316-4.527 c-11.915,0.347-22.164,7.318-27.2,17.36L616.275,915.595c-5.874,9.714-6.063,21.831-0.487,31.72s16.044,16.004,27.394,16.004 h172.294v399.955c0,14.18,9.498,26.612,23.186,30.342c2.742,0.746,5.519,1.105,8.261,1.105c10.941,0,21.356-5.729,27.104-15.504 l309.898-526.839c5.721-9.722,5.796-21.765,0.193-31.557c-5.598-9.792-16.018-15.833-27.297-15.833H955.577V469.95z M1101.838,867.882l-223.467,379.902V931.871c0-17.373-14.079-31.449-31.447-31.449H698.957l193.726-320.252v256.265 c0,17.369,14.079,31.447,31.448,31.447H1101.838z"}),(0,a.createElement)(r.Path,{d:"M1507.236,278.071h-346.672V33.419c0-17.369-14.078-31.447-31.447-31.447H670.883 c-17.369,0-31.447,14.079-31.447,31.447v244.652H292.764c-17.369,0-31.447,14.079-31.447,31.447v1457.061 c0,17.374,14.078,31.448,31.447,31.448h1214.473c17.369,0,31.447-14.074,31.447-31.448V309.519 C1538.684,292.15,1524.605,278.071,1507.236,278.071z M702.33,64.867h395.34v213.205H702.33V64.867z M1475.789,1735.132H324.211 v-182.095h1151.578V1735.132z M1475.789,1490.143H324.211V340.966h346.672h458.234h346.672V1490.143z"})),bookmark:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1711.665,9.238H88.343c-43.62,0-79.105,35.478-79.105,79.089v1623.338 c0,43.611,35.486,79.099,79.105,79.099h1623.322c43.611,0,79.099-35.487,79.099-79.099V88.327 C1790.764,44.715,1755.276,9.238,1711.665,9.238z M1209.058,73.28h220.448v608.01l-85.529-109.984 c-5.927-7.619-15.038-12.079-24.69-12.079s-18.765,4.456-24.69,12.079l-85.538,109.988V73.28z M71.796,1711.665V88.327 c0-9.112,7.423-16.53,16.547-16.53h245.4v1656.407h-245.4C79.219,1728.203,71.796,1720.785,71.796,1711.665z M504.532,1728.203 h-108.23V71.796h108.23V1728.203z M1728.203,1711.665c0,9.12-7.418,16.538-16.538,16.538H567.09V71.796h579.409v700.058 c0,17.277,13.999,31.28,31.279,31.28h0.479c9.662,0,18.773-4.459,24.7-12.079l116.328-149.594l116.319,149.594 c5.926,7.62,15.039,12.079,24.69,12.079h0.489c17.271,0,31.278-14.003,31.278-31.28V71.796h219.602 c9.12,0,16.538,7.418,16.538,16.53V1711.665z"})),briefcase:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1709.277,268.688h-515.642c1.962-7.174,3.1-14.691,3.1-22.48v-74.93c0-47.103-38.321-85.424-85.424-85.424 H688.688c-47.103,0-85.423,38.321-85.423,85.424v74.93c0,7.789,1.137,15.306,3.1,22.48H90.723 c-47.103,0-85.424,38.321-85.424,85.424v659.412c0,47.103,38.321,85.424,85.424,85.424h43.563c-1.962,7.179-3.1,14.691-3.1,22.48 v507.295c0,47.103,38.321,85.424,85.424,85.424H1583.39c47.103,0,85.424-38.321,85.424-85.424v-507.295 c0-7.789-1.137-15.302-3.1-22.48h43.563c47.103,0,85.424-38.321,85.424-85.424V354.111 C1794.701,307.009,1756.38,268.688,1709.277,268.688z M1433.147,1036.004v62.943v54.413c0,12.395-10.085,22.479-22.479,22.479 h-47.959c-12.395,0-22.48-10.085-22.48-22.479v-54.413v-62.943v-92.919c0-12.395,10.086-22.479,22.48-22.479h47.959 c12.395,0,22.479,10.085,22.479,22.479V1036.004z M666.209,246.208v-74.93c0-12.395,10.085-22.48,22.479-22.48h422.623 c12.395,0,22.479,10.085,22.479,22.48v74.93c0,12.395-10.085,22.48-22.479,22.48H688.688 C676.294,268.688,666.209,258.602,666.209,246.208z M688.688,331.631h422.623h243.902v526.408 c-43.599,3.815-77.929,40.473-77.929,85.046v92.919H522.71v-92.919c0-44.573-34.33-81.23-77.933-85.046V331.631H688.688z M459.767,1098.947v54.413c0,12.395-10.085,22.479-22.479,22.479h-47.959c-12.395,0-22.48-10.085-22.48-22.479v-54.413v-62.943 v-92.919c0-12.395,10.085-22.479,22.48-22.479h47.959c12.395,0,22.479,10.085,22.479,22.479v92.919V1098.947z M90.723,1036.004 c-12.395,0-22.479-10.086-22.479-22.48V354.111c0-12.395,10.085-22.48,22.479-22.48h291.111v526.408 c-43.599,3.815-77.929,40.473-77.929,85.046v92.919H216.61H90.723z M1605.87,1121.428v507.295c0,12.395-10.086,22.48-22.48,22.48 H216.61c-12.395,0-22.48-10.086-22.48-22.48v-507.295c0-12.396,10.085-22.48,22.48-22.48h87.294v54.413 c0,47.103,38.321,85.424,85.424,85.424h47.959c47.102,0,85.423-38.321,85.423-85.424v-54.413h754.575v54.413 c0,47.103,38.321,85.424,85.424,85.424h47.959c47.103,0,85.423-38.321,85.423-85.424v-54.413h87.299 C1595.784,1098.947,1605.87,1109.032,1605.87,1121.428z M1731.757,1013.523c0,12.395-10.085,22.48-22.479,22.48H1583.39h-87.299 v-92.919c0-44.573-34.33-81.23-77.933-85.046V331.631h291.119c12.395,0,22.479,10.085,22.479,22.48V1013.523z"})),calculator:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1717.649,2.667H82.359C38.418,2.667,2.67,38.411,2.67,82.343v1635.298c0,43.942,35.748,79.69,79.689,79.69 h1635.29c43.933,0,79.681-35.748,79.681-79.69V82.343C1797.33,38.411,1761.582,2.667,1717.649,2.667z M1734.311,1717.642 c0,9.188-7.474,16.671-16.661,16.671H82.359c-9.196,0-16.669-7.483-16.669-16.671V82.343c0-9.183,7.473-16.656,16.669-16.656 h1635.29c9.188,0,16.661,7.473,16.661,16.656V1717.642z"}),(0,a.createElement)(r.Path,{d:"M1537.75,136.396H250.345c-47.159,0-85.527,38.368-85.527,85.527v249.08 c0,47.159,38.368,85.527,85.527,85.527H1537.75c47.16,0,85.527-38.368,85.527-85.527v-249.08 C1623.277,174.763,1584.91,136.396,1537.75,136.396z M1560.258,471.002c0,12.41-10.102,22.507-22.508,22.507H250.345 c-12.414,0-22.507-10.098-22.507-22.507v-249.08c0-12.41,10.093-22.507,22.507-22.507H1537.75 c12.406,0,22.508,10.097,22.508,22.507V471.002z"}),(0,a.createElement)(r.Path,{d:"M1537.75,616.548H250.345c-47.159,0-85.527,38.368-85.527,85.527v879.276 c0,47.16,38.368,85.526,85.527,85.526H1537.75c47.16,0,85.527-38.366,85.527-85.526V702.076 C1623.277,654.916,1584.91,616.548,1537.75,616.548z M1560.258,702.076v408.13h-634.7V679.568h612.192 C1550.156,679.568,1560.258,689.666,1560.258,702.076z M250.345,679.568h612.193v430.638h-634.7v-408.13 C227.838,689.666,237.931,679.568,250.345,679.568z M227.838,1581.352v-408.126h634.7v430.633H250.345 C237.931,1603.858,227.838,1593.766,227.838,1581.352z M1537.75,1603.858H925.558v-430.633h634.7v408.126 C1560.258,1593.766,1550.156,1603.858,1537.75,1603.858z"}),(0,a.createElement)(r.Path,{d:"M416.941,932.025H514.1v97.154c0,17.403,14.111,31.511,31.51,31.511c17.408,0,31.51-14.107,31.51-31.511 v-97.154h97.158c17.408,0,31.51-14.105,31.51-31.509s-14.102-31.51-31.51-31.51H577.12v-97.159 c0-17.403-14.103-31.509-31.51-31.509c-17.399,0-31.51,14.106-31.51,31.509v97.159h-97.159c-17.398,0-31.51,14.106-31.51,31.51 S399.542,932.025,416.941,932.025z"}),(0,a.createElement)(r.Path,{d:"M589.586,1382.164l68.7-68.7c12.309-12.304,12.309-32.258,0-44.561c-12.3-12.305-32.257-12.305-44.561,0 l-68.704,68.703l-68.7-68.703c-12.304-12.305-32.257-12.305-44.562,0c-12.304,12.303-12.304,32.257,0,44.561l68.7,68.7 l-68.7,68.698c-12.304,12.304-12.304,32.258,0,44.562c6.15,6.154,14.217,9.228,22.283,9.228c8.062,0,16.125-3.077,22.278-9.228 l68.7-68.699l68.704,68.704c6.149,6.153,14.216,9.231,22.283,9.231c8.062,0,16.124-3.078,22.278-9.231 c12.309-12.304,12.309-32.257,0-44.562L589.586,1382.164z"}),(0,a.createElement)(r.Path,{d:"M1115.83,932.025h257.338c17.407,0,31.51-14.105,31.51-31.509s-14.103-31.51-31.51-31.51H1115.83 c-17.398,0-31.509,14.106-31.509,31.51S1098.432,932.025,1115.83,932.025z"}),(0,a.createElement)(r.Path,{d:"M1373.168,1309.763H1115.83c-17.398,0-31.509,14.11-31.509,31.511c0,17.407,14.11,31.51,31.509,31.51 h257.338c17.407,0,31.51-14.103,31.51-31.51C1404.678,1323.873,1390.575,1309.763,1373.168,1309.763z"}),(0,a.createElement)(r.Path,{d:"M1373.168,1399.791H1115.83c-17.398,0-31.509,14.111-31.509,31.51c0,17.408,14.11,31.51,31.509,31.51 h257.338c17.407,0,31.51-14.102,31.51-31.51C1404.678,1413.902,1390.575,1399.791,1373.168,1399.791z"})),calendar:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1704.994,208.972h-323.283V92.869c0-46.782-38.061-84.844-84.844-84.844H1164.02 c-46.783,0-84.844,38.062-84.844,84.844v116.103H720.82V92.869c0-46.782-38.061-84.844-84.844-84.844H503.129 c-46.782,0-84.844,38.062-84.844,84.844v116.103H95.006c-46.935,0-85.123,38.061-85.123,84.844v265.97v1147.346 c0,46.783,38.188,84.844,85.123,84.844h1609.988c46.932,0,85.123-38.061,85.123-84.844V559.785v-265.97 C1790.117,247.032,1751.926,208.972,1704.994,208.972z M1141.692,271.488v-62.516V92.869c0-12.311,10.013-22.327,22.327-22.327 h132.848c12.307,0,22.327,10.017,22.327,22.327v116.103v62.516v107.171c0,12.311-10.021,22.327-22.327,22.327H1164.02 c-12.314,0-22.327-10.017-22.327-22.327V271.488z M480.802,271.488v-62.516V92.869c0-12.311,10.017-22.327,22.327-22.327h132.848 c12.311,0,22.327,10.017,22.327,22.327v116.103v62.516v107.171c0,12.311-10.017,22.327-22.327,22.327H503.129 c-12.311,0-22.327-10.017-22.327-22.327V271.488z M1727.601,1707.131c0,12.307-10.144,22.328-22.606,22.328H95.006 c-12.463,0-22.606-10.021-22.606-22.328V591.043h1655.201V1707.131z M1727.601,528.526H72.4V293.815 c0-12.311,10.143-22.328,22.606-22.328h323.279v107.171c0,46.782,38.062,84.844,84.844,84.844h132.848 c46.783,0,84.844-38.062,84.844-84.844V271.488h358.355v107.171c0,46.782,38.061,84.844,84.844,84.844h132.848 c46.783,0,84.844-38.062,84.844-84.844V271.488h323.283c12.463,0,22.606,10.017,22.606,22.328V528.526z"}),(0,a.createElement)(r.Path,{d:"M378.358,914.669h125.835c35.139,0,63.729-28.592,63.729-63.731V725.101 c0-35.142-28.589-63.731-63.729-63.731H378.358c-35.144,0-63.733,28.589-63.733,63.731v125.837 C314.625,886.077,343.214,914.669,378.358,914.669z M377.142,725.101c0-0.669,0.545-1.215,1.216-1.215h125.835 c0.667,0,1.212,0.545,1.212,1.215v125.837c0,0.669-0.545,1.212-1.212,1.212H378.358c-0.671,0-1.216-0.543-1.216-1.212V725.101z"}),(0,a.createElement)(r.Path,{d:"M837.079,914.669h125.838c35.14,0,63.729-28.592,63.729-63.731V725.101 c0-35.142-28.589-63.731-63.729-63.731H837.079c-35.144,0-63.733,28.589-63.733,63.731v125.837 C773.346,886.077,801.936,914.669,837.079,914.669z M835.863,725.101c0-0.669,0.545-1.215,1.216-1.215h125.838 c0.671,0,1.212,0.545,1.212,1.215v125.837c0,0.669-0.541,1.212-1.212,1.212H837.079c-0.671,0-1.216-0.543-1.216-1.212V725.101z"}),(0,a.createElement)(r.Path,{d:"M1295.803,914.669h125.836c35.147,0,63.736-28.592,63.736-63.731V725.101 c0-35.142-28.589-63.731-63.736-63.731h-125.836c-35.139,0-63.729,28.589-63.729,63.731v125.837 C1232.074,886.077,1260.664,914.669,1295.803,914.669z M1294.591,725.101c0-0.669,0.54-1.215,1.212-1.215h125.836 c0.672,0,1.221,0.545,1.221,1.215v125.837c0,0.669-0.549,1.212-1.221,1.212h-125.836c-0.654,0-1.212-0.556-1.212-1.212V725.101z"}),(0,a.createElement)(r.Path,{d:"M378.358,1278.83h125.835c35.139,0,63.729-28.589,63.729-63.729v-125.835 c0-35.147-28.589-63.737-63.729-63.737H378.358c-35.144,0-63.733,28.59-63.733,63.737v125.835 C314.625,1250.241,343.214,1278.83,378.358,1278.83z M377.142,1089.267c0-0.676,0.545-1.221,1.216-1.221h125.835 c0.667,0,1.212,0.545,1.212,1.221v125.835c0,0.668-0.545,1.213-1.212,1.213H378.358c-0.659,0-1.216-0.559-1.216-1.213V1089.267z"}),(0,a.createElement)(r.Path,{d:"M837.079,1278.83h125.838c35.14,0,63.729-28.589,63.729-63.729v-125.835 c0-35.147-28.589-63.737-63.729-63.737H837.079c-35.144,0-63.733,28.59-63.733,63.737v125.835 C773.346,1250.241,801.936,1278.83,837.079,1278.83z M835.863,1089.267c0-0.676,0.545-1.221,1.216-1.221h125.838 c0.671,0,1.212,0.545,1.212,1.221v125.835c0,0.654-0.558,1.213-1.212,1.213H837.079c-0.658,0-1.216-0.559-1.216-1.213V1089.267z"}),(0,a.createElement)(r.Path,{d:"M1295.803,1278.83h125.836c35.147,0,63.736-28.589,63.736-63.729v-125.835 c0-35.147-28.589-63.737-63.736-63.737h-125.836c-35.139,0-63.729,28.59-63.729,63.737v125.835 C1232.074,1250.241,1260.664,1278.83,1295.803,1278.83z M1294.591,1089.267c0-0.676,0.54-1.221,1.212-1.221h125.836 c0.672,0,1.221,0.545,1.221,1.221v125.835c0,0.654-0.559,1.213-1.221,1.213h-125.836c-0.654,0-1.212-0.559-1.212-1.213V1089.267z"}),(0,a.createElement)(r.Path,{d:"M378.358,1642.984h125.835c35.139,0,63.729-28.59,63.729-63.729V1453.42 c0-35.14-28.589-63.729-63.729-63.729H378.358c-35.144,0-63.733,28.589-63.733,63.729v125.835 C314.625,1614.395,343.214,1642.984,378.358,1642.984z M377.142,1453.42c0-0.672,0.545-1.213,1.216-1.213h125.835 c0.667,0,1.212,0.541,1.212,1.213v125.835c0,0.672-0.545,1.212-1.212,1.212H378.358c-0.671,0-1.216-0.54-1.216-1.212V1453.42z"}),(0,a.createElement)(r.Path,{d:"M837.079,1642.984h125.838c35.14,0,63.729-28.59,63.729-63.729V1453.42 c0-35.14-28.589-63.729-63.729-63.729H837.079c-35.144,0-63.733,28.589-63.733,63.729v125.835 C773.346,1614.395,801.936,1642.984,837.079,1642.984z M835.863,1453.42c0-0.672,0.545-1.213,1.216-1.213h125.838 c0.671,0,1.212,0.541,1.212,1.213v125.835c0,0.672-0.541,1.212-1.212,1.212H837.079c-0.671,0-1.216-0.54-1.216-1.212V1453.42z"}),(0,a.createElement)(r.Path,{d:"M1295.803,1642.984h125.836c35.147,0,63.736-28.59,63.736-63.729V1453.42 c0-35.14-28.589-63.729-63.736-63.729h-125.836c-35.139,0-63.729,28.589-63.729,63.729v125.835 C1232.074,1614.395,1260.664,1642.984,1295.803,1642.984z M1294.591,1453.42c0-0.672,0.54-1.213,1.212-1.213h125.836 c0.672,0,1.221,0.541,1.221,1.213v125.835c0,0.672-0.549,1.212-1.221,1.212h-125.836c-0.654,0-1.212-0.553-1.212-1.212V1453.42z"})),camera:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M899.996,588.254c-228.728,0-414.809,186.082-414.809,414.812c0,228.723,186.082,414.813,414.809,414.813 c228.727,0,414.809-186.09,414.809-414.813C1314.805,774.335,1128.723,588.254,899.996,588.254z M899.996,1354.688 c-193.883,0-351.618-157.739-351.618-351.622c0-193.886,157.735-351.621,351.618-351.621s351.618,157.735,351.618,351.621 C1251.613,1196.948,1093.879,1354.688,899.996,1354.688z"}),(0,a.createElement)(r.Path,{d:"M1713.521,420.761h-433.009V303.547c0-47.278-38.459-85.741-85.732-85.741H605.221 c-47.279,0-85.742,38.463-85.742,85.741v117.214H86.476c-47.552,0-86.24,44.263-86.24,98.669v964.099 c0,54.402,38.688,98.666,86.24,98.666h1627.045c47.556,0,86.243-44.264,86.243-98.666V519.43 C1799.764,465.024,1761.076,420.761,1713.521,420.761z M1736.573,1483.528c0,20.902-12.148,35.475-23.053,35.475H86.476 c-10.901,0-23.049-14.572-23.049-35.475V519.43c0-20.906,12.148-35.479,23.049-35.479h464.6c17.451,0,31.596-14.145,31.596-31.595 V303.547c0-12.435,10.116-22.55,22.55-22.55h589.558c12.43,0,22.541,10.116,22.541,22.55v148.809 c0,17.451,14.145,31.595,31.596,31.595h464.604c10.904,0,23.053,14.572,23.053,35.479V1483.528z"}),(0,a.createElement)(r.Path,{d:"M1384.245,602.086c-29.898,0-54.141,24.239-54.141,54.142c0,29.898,24.242,54.146,54.141,54.146 c29.903,0,54.146-24.247,54.146-54.146C1438.392,626.325,1414.148,602.086,1384.245,602.086z"}),(0,a.createElement)(r.Path,{d:"M939.926,714.252c-17.45,0-31.595,14.145-31.595,31.596s14.145,31.596,31.595,31.596 c27.104,0,74.89,15.854,115.768,50.672c31.79,27.073,69.684,74.207,69.684,144.985c0,17.455,14.146,31.596,31.596,31.596 c17.451,0,31.596-14.141,31.596-31.596C1188.568,803.154,1026.699,714.252,939.926,714.252z"})),chart:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1649.831,2.343H625.737c-43.374,0-78.663,35.48-78.663,79.103v180.65H150.17 c-43.387,0-78.679,35.485-78.679,79.107V1480.77v20.814v216.974c0,43.618,35.292,79.099,78.679,79.099h1024.09 c43.378,0,78.661-35.48,78.661-79.099v-51.118h396.927c43.379,0,78.662-35.476,78.662-79.099v-475.002V556.448V81.445 C1728.51,37.823,1693.217,2.343,1649.831,2.343z M1194.633,1718.558c0,11.475-9.135,20.811-20.373,20.811H150.17 c-11.243,0-20.39-9.336-20.39-20.811v-216.974v-20.814V341.203c0-11.475,9.147-20.818,20.39-20.818h396.905h58.293h359.341 v178.798c0,16.185,13.083,29.303,29.226,29.303h200.698v952.285v20.814v107.566v58.289V1718.558z M1023.178,469.88V357.213 l124.501,112.667H1023.178z M1670.218,1113.339v475.002c0,11.476-9.13,20.81-20.37,20.81h-396.927v-107.566v-20.814V500.795 v-3.021c-0.409-8.706-4.577-16.433-10.952-21.529l-47.336-42.826l-124.906-113.035l-56.201-50.853 c-5.027-4.544-11.347-7.042-17.837-7.436h-3.316H605.368V81.445c0-11.475,9.13-20.81,20.369-20.81h1024.094 c11.239,0,20.387,9.335,20.387,20.81v475.002V1113.339z"}),(0,a.createElement)(r.Path,{d:"M442.169,1578.664H260.621c-16.099,0-29.144-13.05-29.144-29.145V602.111 c0-16.1,13.045-29.149,29.144-29.149h181.549c16.096,0,29.144,13.049,29.144,29.149v947.408 C471.313,1565.614,458.265,1578.664,442.169,1578.664z M289.765,1520.374h123.26V631.255h-123.26V1520.374z"}),(0,a.createElement)(r.Path,{d:"M747.355,1578.664H565.801c-16.099,0-29.148-13.05-29.148-29.145v-526.985 c0-16.095,13.049-29.144,29.148-29.144h181.554c16.095,0,29.144,13.049,29.144,29.144v526.985 C776.499,1565.614,763.45,1578.664,747.355,1578.664z M594.946,1520.374H718.21v-468.696H594.946V1520.374z"}),(0,a.createElement)(r.Path,{d:"M1052.535,1578.664H870.991c-16.1,0-29.148-13.05-29.148-29.145V808.278 c0-16.1,13.049-29.145,29.148-29.145h181.544c16.1,0,29.148,13.044,29.148,29.145v741.242 C1081.684,1565.614,1068.635,1578.664,1052.535,1578.664z M900.135,1520.374h123.256V837.426H900.135V1520.374z"})),chartGear:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1769.23,755.728l-192.154-30.952c-16.273-63.095-41.242-123.328-74.449-179.583l114.021-157.817 c9.064-12.537,7.685-29.796-3.253-40.737l-160.029-160.029c-10.945-10.937-28.204-12.317-40.741-3.257l-157.813,114.025 c-56.25-33.202-116.483-58.171-179.582-74.445L1044.273,30.77c-2.462-15.271-15.641-26.499-31.114-26.499h-226.32 c-15.465,0-28.644,11.227-31.105,26.499l-30.956,192.159c-63.09,16.273-123.323,41.243-179.583,74.449l-157.82-114.03 c-12.537-9.051-29.8-7.68-40.737,3.262L186.609,346.643c-10.937,10.937-12.317,28.196-3.257,40.733l114.026,157.813 c-33.189,56.232-58.167,116.479-74.445,179.586L30.77,755.728c-15.271,2.462-26.499,15.641-26.499,31.11v226.324 c0,15.47,11.227,28.648,26.499,31.11l192.163,30.956c16.278,63.104,41.252,123.35,74.445,179.582l-114.026,157.813 c-9.06,12.537-7.68,29.796,3.257,40.732l160.029,160.033c10.941,10.946,28.195,12.313,40.737,3.263l157.82-114.03 c56.25,33.197,116.483,58.171,179.583,74.444l30.956,192.163c2.461,15.271,15.641,26.499,31.105,26.499h226.32 c15.474,0,28.652-11.228,31.114-26.499l30.956-192.167c63.099-16.274,123.341-41.247,179.573-74.44l157.822,114.03 c12.546,9.055,29.805,7.68,40.741-3.258l160.029-160.029c10.938-10.941,12.317-28.199,3.253-40.736l-114.021-157.818 c33.189-56.232,58.167-116.479,74.44-179.582l192.163-30.956c15.271-2.462,26.499-15.641,26.499-31.11V786.837 C1795.729,771.368,1784.502,758.189,1769.23,755.728z M1732.71,986.32l-186.353,30.02c-12.704,2.048-22.894,11.618-25.725,24.178 c-15.931,70.629-43.669,137.557-82.459,198.919c-6.884,10.885-6.444,24.855,1.091,35.291l110.583,153.053l-122.065,122.07 l-153.066-110.588c-10.444-7.544-24.415-7.97-35.29-1.095c-61.358,38.794-128.282,66.532-198.906,82.449 c-12.555,2.831-22.13,13.021-24.178,25.729l-30.024,186.361H813.681l-30.015-186.356c-2.048-12.709-11.623-22.895-24.186-25.726 c-70.607-15.922-137.531-43.664-198.916-82.458c-10.893-6.88-24.854-6.444-35.29,1.095l-153.051,110.588l-122.07-122.075 l110.584-153.048c7.539-10.436,7.974-24.406,1.095-35.291c-38.79-61.362-66.532-128.29-82.463-198.919 c-2.831-12.56-13.016-22.13-25.725-24.178L67.291,986.32V813.679l186.352-30.015c12.709-2.048,22.895-11.619,25.725-24.177 c15.931-70.634,43.673-137.562,82.463-198.925c6.879-10.884,6.444-24.854-1.095-35.29L250.152,372.223l122.07-122.074 l153.051,110.588c10.436,7.539,24.415,7.975,35.29,1.095c61.394-38.803,128.317-66.545,198.916-82.459 c12.563-2.831,22.138-13.021,24.186-25.729l30.015-186.352h172.637l30.024,186.356c2.048,12.708,11.623,22.898,24.178,25.729 c70.624,15.917,137.548,43.656,198.915,82.454c10.875,6.875,24.846,6.449,35.29-1.095l153.058-110.584l122.065,122.07 l-110.583,153.053c-7.535,10.436-7.975,24.406-1.091,35.291c38.799,61.385,66.546,128.308,82.459,198.915 c2.831,12.56,13.021,22.134,25.725,24.182l186.353,30.015V986.32z"}),(0,a.createElement)(r.Path,{d:"M899.999,415.369c-267.219,0-484.624,217.4-484.624,484.624s217.405,484.628,484.624,484.628 c267.229,0,484.633-217.404,484.633-484.628S1167.228,415.369,899.999,415.369z M1174.867,580.563L900.008,855.427L625.14,580.567 C699,516.919,795.086,478.389,899.999,478.389C1004.921,478.389,1101.007,516.924,1174.867,580.563z M478.396,899.993 c0-104.918,38.534-201,102.179-274.859l287.924,287.915v407.379C650.68,1304.259,478.396,1121.868,478.396,899.993z M931.518,1320.428V913.049l287.915-287.92c63.645,73.86,102.18,169.942,102.18,274.864 C1321.612,1121.868,1149.336,1304.25,931.518,1320.428z"})),check:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M872.831,1326.446c-1.999,0.113-3.853-0.183-5.733-0.53c-6.064-1.076-11.863-3.945-16.53-8.611 l-514.859-514.86c-5.852-5.855-9.138-13.792-9.138-22.068c0-8.275,3.287-16.212,9.142-22.067L455.5,638.535 c12.189-12.185,31.954-12.185,44.126,0l373.109,373.1l727.884-727.89c12.189-12.185,31.949-12.185,44.131,0l119.788,119.784 c5.855,5.851,9.142,13.792,9.142,22.067s-3.286,16.212-9.137,22.063l-869.649,869.645 C889.043,1323.155,881.106,1326.446,872.831,1326.446z M401.905,780.377l470.825,470.83l825.614-825.61l-75.657-75.653 l-727.885,727.889c-12.19,12.186-31.95,12.186-44.13,0L477.563,704.729L401.905,780.377z"}),(0,a.createElement)(r.Path,{d:"M1692.376,662.67c22.568,75.209,34.758,154.872,34.758,237.334c0,456.08-371.054,827.129-827.138,827.129 c-456.08,0-827.129-371.05-827.129-827.129c0-456.084,371.049-827.138,827.129-827.138c213.186,0,407.787,81.086,554.605,214.022 l44.161-44.165C1340.604,98.513,1130.391,10.456,899.996,10.456c-490.494,0-889.54,399.051-889.54,889.548 s399.046,889.54,889.54,889.54c490.498,0,889.548-399.042,889.548-889.54c0-100.372-16.734-196.909-47.517-286.985 L1692.376,662.67z"})),checklist:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1506.693,279.092h-150.36v-85.277c0-17.353-14.065-31.418-31.419-31.418h-227.317 C1078.205,70.574,996.5,2.304,900.003,2.304c-96.499,0-178.202,68.27-197.595,160.092H475.091 c-17.353,0-31.419,14.065-31.419,31.418v85.277H293.307c-17.353,0-31.419,14.066-31.419,31.419v1455.764 c0,17.353,14.066,31.419,31.419,31.419h1213.386c17.354,0,31.42-14.066,31.42-31.419V310.511 C1538.113,293.158,1524.047,279.092,1506.693,279.092z M506.511,225.234h223.28c16.617,0,30.354-12.935,31.362-29.517 c4.436-73.219,65.424-130.574,138.85-130.574c73.425,0,134.413,57.355,138.849,130.574c1.009,16.582,14.746,29.517,31.363,29.517 h223.28v53.858v62.838v74.81H506.511v-74.81v-62.838V225.234z M1475.274,1734.855H324.728V341.93h118.944v106.229 c0,17.354,14.066,31.419,31.419,31.419h849.823c17.354,0,31.419-14.066,31.419-31.419V341.93h118.941V1734.855z"}),(0,a.createElement)(r.Path,{d:"M663.633,684.019L534.366,813.291l-57.803-57.806c-12.272-12.265-32.164-12.265-44.437,0 c-12.269,12.272-12.269,32.164,0,44.437l80.021,80.022c6.136,6.132,14.176,9.201,22.219,9.201c8.043,0,16.083-3.069,22.219-9.201 l151.486-151.486c12.269-12.273,12.269-32.165,0-44.438C695.799,671.755,675.907,671.755,663.633,684.019z"}),(0,a.createElement)(r.Path,{d:"M824.996,750.563c-17.354,0-31.419,14.066-31.419,31.419c0,17.354,14.066,31.419,31.419,31.419h520.665 c17.354,0,31.419-14.066,31.419-31.419c0-17.353-14.065-31.419-31.419-31.419H824.996z"}),(0,a.createElement)(r.Path,{d:"M663.633,1039.925l-129.267,129.272l-57.803-57.807c-12.272-12.265-32.164-12.265-44.437,0 c-12.269,12.272-12.269,32.164,0,44.438l80.021,80.021c6.136,6.133,14.176,9.2,22.219,9.2c8.043,0,16.083-3.067,22.219-9.2 l151.486-151.486c12.269-12.272,12.269-32.163,0-44.438C695.799,1027.66,675.907,1027.66,663.633,1039.925z"}),(0,a.createElement)(r.Path,{d:"M1345.661,1106.467H824.996c-17.354,0-31.419,14.066-31.419,31.42s14.066,31.42,31.419,31.42h520.665 c17.354,0,31.419-14.066,31.419-31.42S1363.015,1106.467,1345.661,1106.467z"}),(0,a.createElement)(r.Path,{d:"M663.633,1395.83l-129.267,129.272l-57.803-57.808c-12.272-12.264-32.164-12.264-44.437,0 c-12.269,12.274-12.269,32.166,0,44.439l80.021,80.021c6.136,6.132,14.176,9.199,22.219,9.199c8.043,0,16.083-3.067,22.219-9.199 l151.486-151.486c12.269-12.274,12.269-32.166,0-44.438C695.799,1383.566,675.907,1383.566,663.633,1395.83z"}),(0,a.createElement)(r.Path,{d:"M1345.661,1462.373H824.996c-17.354,0-31.419,14.066-31.419,31.42s14.066,31.418,31.419,31.418h520.665 c17.354,0,31.419-14.064,31.419-31.418S1363.015,1462.373,1345.661,1462.373z"})),clock:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M899.998,1797.179c-494.704,0-897.173-402.472-897.173-897.173c0-494.708,402.469-897.184,897.173-897.184 c494.708,0,897.179,402.476,897.179,897.184C1797.177,1394.707,1394.705,1797.179,899.998,1797.179z M899.998,65.818 c-459.966,0-834.176,374.215-834.176,834.188c0,459.964,374.21,834.176,834.176,834.176c459.97,0,834.183-374.212,834.183-834.176 C1734.181,440.033,1359.968,65.818,899.998,65.818z"}),(0,a.createElement)(r.Path,{d:"M899.998,1641.189c-408.689,0-741.183-332.492-741.183-741.184c0-408.695,332.494-741.194,741.183-741.194 c408.693,0,741.19,332.499,741.19,741.194C1641.188,1308.697,1308.69,1641.189,899.998,1641.189z M899.998,221.808 c-373.955,0-678.187,304.239-678.187,678.198c0,373.954,304.232,678.186,678.187,678.186 c373.957,0,678.193-304.231,678.193-678.186C1578.19,526.047,1273.954,221.808,899.998,221.808z"}),(0,a.createElement)(r.Path,{d:"M1408.631,842.445H973.452v-435.18c0-37.471-30.486-67.963-67.952-67.963h-7.172 c-37.457,0-67.953,30.493-67.953,67.963v503.141v7.154v0.008c0,37.476,30.496,67.963,67.953,67.963h7.172l0.052-0.009h503.079 c37.466,0,67.955-30.479,67.955-67.962v-7.154C1476.586,872.939,1446.097,842.445,1408.631,842.445z M880.452,407.265 c0-9.859,8.015-17.883,17.876-17.883h7.172c9.843,0,17.875,8.024,17.875,17.883v435.18h-25.047 c-6.178,0-12.164,0.909-17.876,2.469V407.265z M1426.508,917.56c0,9.852-8.034,17.884-17.877,17.884H970.975h-65.448h-7.199 c-9.861,0-17.876-8.032-17.876-17.884v-7.154c0-9.861,8.015-17.879,17.876-17.879h25.047h50.077h435.179 c9.843,0,17.877,8.018,17.877,17.879V917.56z"})),cloudDatabase:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1590.159,376.445c-14.401-99.645-62.88-191.214-137.876-259.647 c-80.549-73.5-185.007-113.977-294.123-113.977c-137.095,0-264.828,63.774-347.255,171.996 c-44.933-22.768-94.688-34.687-145.53-34.687c-138.358,0-259.688,87.511-304.327,216.061c-11.252-1.184-22.574-1.776-33.883-1.776 c-177.686,0-322.247,144.557-322.247,322.246c0,177.686,144.561,322.243,322.247,322.243c5.378,0,10.923-0.146,16.538-0.435 c0.86,0.07,1.728,0.104,2.605,0.104h106.91v196.466c0,39.389,25.645,95.509,147.825,139.187 c73.803,26.387,168.201,42.477,269.688,46.315v141.735c-51.562,11.959-92.227,52.629-104.186,104.204H350.779 c-17.367,0-31.445,14.077-31.445,31.444s14.078,31.443,31.445,31.443h415.767c14.301,61.688,69.662,107.81,135.63,107.81 c65.968,0,121.328-46.122,135.63-107.81h415.767c17.368,0,31.445-14.076,31.445-31.443s-14.077-31.444-31.445-31.444h-415.767 c-11.958-51.575-52.624-92.245-104.185-104.204v-140.959c113.528-1.386,220.136-17.955,301.623-47.092 c122.181-43.678,147.825-99.798,147.825-139.187V998.574h75.536c5.01,0.22,9.672,0.33,14.238,0.33c4.717,0,9.551-0.114,14.78-0.355 c0.06,0,0.126-0.006,0.191-0.009c172.299-7.896,307.267-149.286,307.267-321.879 C1795.082,542.664,1713.555,424.476,1590.159,376.445z M971.688,1626.481c4.36,9.603,6.852,20.228,6.852,31.444 s-2.491,21.842-6.852,31.443c-12.016,26.449-38.621,44.922-69.513,44.922s-57.497-18.473-69.512-44.922 c-4.36-9.602-6.852-20.227-6.852-31.443s2.492-21.842,6.852-31.444c12.015-26.448,38.621-44.921,69.512-44.921 S959.673,1600.033,971.688,1626.481z M1320.182,1195.04c0,50.364-156.617,123.526-402.037,123.526 c-245.422,0-402.038-73.162-402.038-123.526v-82.546c21.092,14.357,48.755,28.387,84.937,41.324 c85.187,30.457,197.798,47.227,317.102,47.227c119.301,0,231.913-16.77,317.1-47.227c36.182-12.938,63.846-26.967,84.938-41.324 V1195.04z M1320.182,1014.631c0,50.363-156.617,123.526-402.037,123.526c-245.422,0-402.038-73.163-402.038-123.526v-16.057v-60.331 c21.092,14.358,48.755,28.388,84.937,41.324c19.872,7.105,41.288,13.432,63.88,19.007c74.259,18.328,161.748,28.221,253.222,28.221 c91.472,0,178.962-9.893,253.221-28.221c22.591-5.575,44.007-11.901,63.879-19.007c36.182-12.937,63.846-26.966,84.938-41.324 v60.331V1014.631z M516.106,840.379c0-50.368,156.616-123.535,402.038-123.535c245.42,0,402.037,73.167,402.037,123.535 c0,30.523-57.608,69.398-157.564,95.307c-64.976,16.84-147.795,28.221-244.473,28.221c-96.681,0-179.498-11.381-244.475-28.221 C573.713,909.777,516.106,870.903,516.106,840.379z M1485.101,935.713c-0.062,0-0.123,0.004-0.185,0.009 c-8.662,0.395-15.533,0.395-24.152,0c-0.483-0.026-0.966-0.035-1.449-0.035h-76.245V832.141c0-4.027-0.785-7.861-2.163-11.396 c-8.242-37.038-42.625-82.721-145.662-119.561c-85.182-30.453-197.799-47.228-317.1-47.228 c-119.303,0-231.919,16.775-317.102,47.228c-122.18,43.684-147.825,99.803-147.825,139.196v95.307H350.726 c-2.124-0.304-4.281-0.387-6.462-0.245c-5.847,0.381-11.599,0.573-17.1,0.573c-143.012,0-259.357-116.345-259.357-259.354 c0-143.007,116.345-259.357,259.357-259.357c16.828,0,33.699,1.636,50.141,4.856c16.477,3.225,32.471-6.983,36.542-23.202 c28.975-115.367,132.41-195.938,251.527-195.938c48.983,0,96.697,13.734,137.985,39.722c14.458,9.103,33.542,4.992,42.973-9.26 C915.831,128.427,1032.4,65.71,1158.16,65.71c193.254,0,353.107,144.842,371.834,336.911c1.22,12.511,9.771,23.092,21.742,26.909 c107.936,34.432,180.457,133.743,180.457,247.131C1732.193,815.52,1623.674,929.277,1485.101,935.713z"})),cloudDownload:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1591.313,488.215c-13.949-100.311-62.488-192.562-137.895-261.369 c-80.375-73.338-184.605-113.727-293.484-113.727c-137.905,0-266.314,64.672-348.487,174.261 c-45.448-23.62-96.001-36.004-147.688-36.004c-138.682,0-260.158,88.388-303.7,217.866c-12.225-1.405-24.546-2.112-36.837-2.112 c-176.729,0-320.505,143.778-320.505,320.505c0,176.725,143.776,320.501,320.505,320.501c5.427,0,11.038-0.147,16.728-0.44 c0.839,0.077,1.689,0.115,2.547,0.115h33.405c4.649-18.876,10.265-37.37,16.843-55.408h-46.121 c-1.937-0.293-3.911-0.378-5.905-0.255c-5.995,0.387-11.881,0.58-17.497,0.58c-146.172,0-265.097-118.917-265.097-265.093 c0-146.174,118.924-265.097,265.097-265.097c17.184,0,34.429,1.67,51.257,4.961c14.471,2.837,28.601-6.149,32.188-20.44 c29.617-117.917,135.335-200.274,257.093-200.274c50.078,0,98.846,14.039,141.04,40.602c12.746,8.02,29.559,4.396,37.865-8.159 c70.713-106.887,189.317-170.699,317.27-170.699c196.637,0,359.281,147.372,378.332,342.804c1.07,11.019,8.607,20.341,19.15,23.706 c110.33,35.196,184.459,136.707,184.459,252.598c0,141.925-110.92,258.198-252.551,264.788c-0.07,0.004-0.139,0.004-0.209,0.008 c-8.727,0.398-15.997,0.398-24.674,0c-0.426-0.02-0.85-0.027-1.279-0.027h-55.902c6.578,18.038,12.193,36.532,16.84,55.408h38.433 c4.962,0.217,9.632,0.325,14.246,0.325c4.754,0,9.569-0.112,14.722-0.349c0.059,0,0.119-0.008,0.182-0.008 c171.364-7.854,305.602-148.479,305.602-320.145C1797.283,653.584,1715.246,535.448,1591.313,488.215z"}),(0,a.createElement)(r.Path,{d:"M900,786.832c-248.142,0-450.02,201.877-450.02,450.021c0,248.146,201.878,450.027,450.02,450.027 s450.023-201.882,450.023-450.027C1350.023,988.709,1148.142,786.832,900,786.832z M900,1631.473 c-217.589,0-394.611-177.029-394.611-394.619c0-217.589,177.022-394.613,394.611-394.613 c217.593,0,394.615,177.024,394.615,394.613C1294.615,1454.443,1117.593,1631.473,900,1631.473z"}),(0,a.createElement)(r.Path,{d:"M1055.823,1255.545L927.704,1383.66V963.679c0-15.297-12.402-27.704-27.704-27.704 c-15.301,0-27.704,12.407-27.704,27.704v419.981l-128.119-128.115c-10.822-10.822-28.361-10.818-39.183,0 c-10.818,10.821-10.818,28.361,0,39.179l171.418,171.407c5.411,5.41,12.5,8.115,19.588,8.115c0.688,0,1.372-0.046,2.056-0.1 c0.646,0.047,1.287,0.1,1.944,0.1s1.299-0.053,1.944-0.1c0.684,0.054,1.368,0.1,2.056,0.1c7.089,0,14.181-2.705,19.588-8.115 l171.418-171.407c10.818-10.817,10.818-28.357,0-39.179C1084.192,1244.727,1066.646,1244.727,1055.823,1255.545z"})),cloudNetwork:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1635.687,1278.4c-47.769,0-88.294,31.611-101.762,75.016h-145.789v-349.629h73.367 c4.988,0.22,9.674,0.326,14.307,0.326c4.782,0,9.635-0.115,14.817-0.348c0.079-0.005,0.158-0.01,0.237-0.01 c173.133-7.938,308.756-150.018,308.756-323.454c0-134.669-81.956-253.44-205.979-301.697 c-14.456-100.161-63.179-192.209-138.563-260.994c-80.945-73.862-185.92-114.539-295.579-114.539 c-137.799,0-266.188,64.115-349.019,172.916c-45.162-22.9-95.19-34.891-146.321-34.891c-139.064,0-261.005,87.974-305.833,217.184 c-11.335-1.191-22.746-1.793-34.13-1.793C145.642,356.487,0.38,501.749,0.38,680.302c0,178.549,145.262,323.812,323.815,323.812 c5.393,0,10.958-0.146,16.592-0.436c0.875,0.074,1.758,0.109,2.65,0.109h72.515v349.629h-145.79 c-13.467-43.404-53.993-75.016-101.761-75.016c-58.735,0-106.521,47.787-106.521,106.521c0,58.735,47.786,106.521,106.521,106.521 c47.769,0,88.294-31.611,101.761-75.016h177.295c17.401,0,31.506-14.104,31.506-31.506v-381.135h194.534v586.93 c-43.404,13.463-75.016,53.988-75.016,101.762c0,58.735,47.787,106.521,106.521,106.521s106.521-47.786,106.521-106.521 c0-47.773-31.611-88.299-75.016-101.762v-586.93h331.067v586.93c-43.403,13.463-75.016,53.988-75.016,101.762 c0,58.735,47.787,106.521,106.521,106.521c58.735,0,106.522-47.786,106.522-106.521c0-47.773-31.612-88.299-75.016-101.762v-586.93 h194.534v381.135c0,17.401,14.104,31.506,31.506,31.506h177.295c13.468,43.404,53.993,75.016,101.762,75.016 c58.735,0,106.521-47.786,106.521-106.521C1742.208,1326.188,1694.422,1278.4,1635.687,1278.4z M168.401,1428.432 c-23.99,0-43.51-19.52-43.51-43.51s19.52-43.51,43.51-43.51c23.99,0,43.51,19.52,43.51,43.51S192.391,1428.432,168.401,1428.432z M705.004,1735.988c-23.99,0-43.51-19.52-43.51-43.51s19.52-43.51,43.51-43.51s43.51,19.52,43.51,43.51 S728.994,1735.988,705.004,1735.988z M1099.083,1735.988c-23.989,0-43.509-19.52-43.509-43.51s19.52-43.51,43.509-43.51 c23.99,0,43.51,19.52,43.51,43.51S1123.073,1735.988,1099.083,1735.988z M341.398,940.525c-5.886,0.382-11.674,0.575-17.204,0.575 c-143.807,0-260.803-116.996-260.803-260.799c0-143.807,116.996-260.803,260.803-260.803c16.909,0,33.875,1.644,50.428,4.883 c16.469,3.2,32.53-7.002,36.608-23.247c29.133-116.007,133.14-197.026,252.927-197.026c49.272,0,97.252,13.81,138.753,39.941 c14.479,9.116,33.615,5.006,43.062-9.279c69.877-105.629,187.079-168.687,313.525-168.687c194.314,0,355.039,145.629,373.86,338.749 c1.222,12.531,9.784,23.133,21.783,26.961c108.539,34.626,181.467,134.493,181.467,248.509c0,139.628-109.119,254.017-248.452,260.5 c-0.065,0-0.127,0.005-0.193,0.009c-8.602,0.387-15.744,0.387-24.311,0c-0.479-0.021-0.963-0.035-1.441-0.035H347.895 C345.763,940.468,343.587,940.385,341.398,940.525z M1635.687,1428.432c-23.99,0-43.51-19.52-43.51-43.51s19.52-43.51,43.51-43.51 s43.51,19.52,43.51,43.51S1659.677,1428.432,1635.687,1428.432z"})),compass:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1378.086,379.348L767.847,755.444c-0.07,0.044-0.132,0.097-0.202,0.141 c-0.521,0.324-1.011,0.701-1.516,1.055c-0.456,0.329-0.933,0.64-1.375,0.991c-0.459,0.368-0.885,0.779-1.328,1.173 c-0.438,0.39-0.889,0.762-1.3,1.179c-0.408,0.403-0.78,0.849-1.166,1.283c-0.394,0.447-0.811,0.876-1.182,1.345 c-0.351,0.438-0.662,0.912-0.991,1.376c-0.359,0.5-0.727,0.99-1.055,1.511c-0.044,0.07-0.096,0.131-0.141,0.202l-376.101,610.235 c-7.635,12.384-5.761,28.392,4.525,38.676c6.058,6.059,14.102,9.2,22.214,9.2c5.668,0,11.371-1.528,16.466-4.67l610.24-376.093 c0.071-0.043,0.131-0.095,0.202-0.14c0.521-0.328,1.012-0.696,1.516-1.056c0.455-0.329,0.932-0.64,1.376-0.99 c0.464-0.372,0.893-0.788,1.339-1.183c0.43-0.386,0.878-0.758,1.288-1.166c0.413-0.41,0.784-0.862,1.174-1.3 c0.396-0.442,0.807-0.867,1.175-1.327c0.35-0.441,0.66-0.92,0.99-1.375c0.359-0.505,0.726-0.994,1.055-1.517 c0.044-0.071,0.097-0.131,0.141-0.201l376.101-610.24c7.635-12.385,5.761-28.391-4.526-38.681 C1406.481,373.587,1390.466,371.713,1378.086,379.348z M504.352,1296.283l285.853-463.813l177.963,177.961L504.352,1296.283z M1012.574,966.025l-177.96-177.964l463.813-285.849L1012.574,966.025z"}),(0,a.createElement)(r.Path,{d:"M1796.481,899.244L1796.481,899.244C1796.478,405.69,1394.943,4.158,901.394,4.154h-0.002l0,0 c-0.002,0-0.004,0-0.004,0c-493.55,0-895.082,401.533-895.086,895.09l0,0l0,0v0.004c0,493.552,401.533,895.086,895.086,895.086 c0,0,0.002,0,0.004,0l0,0h0.002c493.555-0.004,895.088-401.538,895.088-895.086V899.244L1796.481,899.244z M964.073,1729.182 c-1.247-33.586-28.789-60.447-62.682-60.447s-61.436,26.861-62.681,60.447c-409.067-30.599-736.657-358.192-767.26-767.256 c33.588-1.244,60.45-28.789,60.45-62.682s-26.862-61.433-60.447-62.681C102.058,427.497,429.646,99.907,838.711,69.304 c1.245,33.588,28.788,60.45,62.681,60.45s61.435-26.862,62.682-60.448c409.063,30.604,736.653,358.195,767.256,767.257 c-33.586,1.249-60.446,28.789-60.446,62.681s26.86,61.438,60.446,62.682C1700.727,1370.989,1373.136,1698.575,964.073,1729.182z"})),creditCard:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M197.667,1268.735h536.292c17.423,0,31.546-14.119,31.546-31.546c0-17.421-14.123-31.547-31.546-31.547 H197.667c-17.423,0-31.546,14.126-31.546,31.547C166.121,1254.616,180.243,1268.735,197.667,1268.735z"}),(0,a.createElement)(r.Path,{d:"M905.211,1423.088H197.667c-17.423,0-31.546,14.127-31.546,31.546c0,17.428,14.123,31.547,31.546,31.547 h707.544c17.425,0,31.547-14.119,31.547-31.547C936.758,1437.215,922.636,1423.088,905.211,1423.088z"}),(0,a.createElement)(r.Path,{d:"M197.667,1051.29h1381.288c17.425,0,31.547-14.129,31.547-31.547c0-17.428-14.122-31.547-31.547-31.547 H197.667c-17.423,0-31.546,14.119-31.546,31.547C166.121,1037.161,180.243,1051.29,197.667,1051.29z"}),(0,a.createElement)(r.Path,{d:"M1418.561,1141.168c-41.674,0-80.367,12.946-112.333,34.979c-31.964-22.032-70.658-34.979-112.331-34.979 c-109.409,0-198.422,89.015-198.422,198.423c0,109.411,89.013,198.417,198.422,198.417c41.673,0,80.367-12.939,112.331-34.979 c31.966,22.04,70.659,34.979,112.333,34.979c109.409,0,198.419-89.006,198.419-198.417 C1616.979,1230.183,1527.97,1141.168,1418.561,1141.168z M1306.228,1414.962c-14.511-21.556-22.995-47.485-22.995-75.371 c0-27.884,8.484-53.825,22.995-75.38c14.51,21.555,22.995,47.496,22.995,75.38 C1329.223,1367.477,1320.737,1393.406,1306.228,1414.962z M1058.568,1339.591c0-74.622,60.707-135.33,135.328-135.33 c23.75,0,46.087,6.17,65.513,16.97c-24.654,33.061-39.27,74.033-39.27,118.36c0,44.319,14.615,85.292,39.27,118.354 c-19.426,10.8-41.763,16.97-65.513,16.97C1119.275,1474.914,1058.568,1414.207,1058.568,1339.591z M1418.561,1474.914 c-23.753,0-46.09-6.17-65.515-16.97c24.655-33.062,39.271-74.034,39.271-118.354c0-44.327-14.615-85.3-39.271-118.36 c19.425-10.8,41.762-16.97,65.515-16.97c74.618,0,135.326,60.708,135.326,135.33 C1553.887,1414.207,1493.179,1474.914,1418.561,1474.914z"}),(0,a.createElement)(r.Path,{d:"M1765.979,668.543h-74.491l-237.127-647.23c-5.99-16.356-24.096-24.773-40.471-18.768L44.973,504.073 c-16.358,5.994-24.76,24.113-18.766,40.474l45.428,123.997H34.02c-17.424,0-31.547,14.123-31.547,31.546v1067.756 c0,17.429,14.123,31.547,31.547,31.547h1731.96c17.425,0,31.548-14.118,31.548-31.547V700.09 C1797.527,682.667,1783.404,668.543,1765.979,668.543z M1624.293,668.543H658.115l851.84-312.087L1624.293,668.543z M1405.972,72.641l34.923,95.313L131.221,647.777l-34.923-95.315L1405.972,72.641z M1462.596,227.196l25.653,70.019 L474.711,668.543H257.947L1462.596,227.196z M1734.434,1736.3H65.566V731.637h29.188h67.186H302.5h183.404h1161.509h67.189h19.831 v54.12v155.445V1736.3z"})),database:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1801.93,296.528c0-190.31-461.223-292.996-895.183-292.996c-433.958,0-895.176,102.686-895.176,292.996 v0.005l0,0v1210.046c0,190.315,461.218,293.004,895.176,293.004c433.96,0,895.183-102.688,895.183-293.004V296.533l0,0V296.528z M1738.992,1202.3c0,53.213-86.213,111.09-230.624,154.815c-160.26,48.529-373.921,75.252-601.621,75.252 c-227.701,0-441.355-26.723-601.614-75.252C160.723,1313.39,74.508,1255.513,74.508,1202.3v-190.62 c140.622,117.191,494.659,179.347,832.239,179.347c337.587,0,691.62-62.155,832.245-179.347V1202.3z M1738.992,898.022 c0,53.214-86.213,111.088-230.624,154.816c-160.26,48.528-373.921,75.251-601.621,75.251c-227.701,0-441.355-26.723-601.614-75.251 C160.723,1009.11,74.508,951.236,74.508,898.022V707.396C215.13,824.587,569.167,886.743,906.747,886.743 c337.587,0,691.62-62.156,832.245-179.347V898.022z M1738.992,593.739c0,53.214-86.213,111.089-230.624,154.815 c-160.26,48.529-373.921,75.252-601.621,75.252c-227.701,0-441.355-26.723-601.614-75.252 C160.723,704.828,74.508,646.953,74.508,593.739V410.186C215.13,527.377,569.167,589.533,906.747,589.533 c337.587,0,691.62-62.156,832.245-179.348V593.739z M305.133,141.718C465.392,93.193,679.046,66.47,906.747,66.47 c227.7,0,441.361,26.723,601.621,75.248c144.411,43.731,230.624,101.602,230.624,154.811c0,53.213-86.213,111.085-230.624,154.815 c-160.26,48.529-373.921,75.251-601.621,75.251c-227.701,0-441.355-26.723-601.614-75.251 c-144.41-43.73-230.625-101.603-230.625-154.815C74.508,243.32,160.723,185.449,305.133,141.718z M1508.368,1661.394 c-160.26,48.529-373.921,75.253-601.621,75.253c-227.701,0-441.355-26.724-601.614-75.253 c-144.41-43.725-230.625-101.601-230.625-154.814v-190.622c140.622,117.192,494.659,179.348,832.239,179.348 c337.587,0,691.62-62.155,832.245-179.348v190.622C1738.992,1559.793,1652.779,1617.669,1508.368,1661.394z"})),design:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1541.606,1540.146l0.009-0.008c35.598-35.594,35.598-93.52,0-129.121 c-17.24-17.236-40.178-26.745-64.569-26.745c-24.378,0-47.314,9.509-64.564,26.763c-35.588,35.584-35.588,93.51,0.009,129.104 C1448.096,1575.73,1506.014,1575.73,1541.606,1540.146z M1440.885,1511.743c-9.656-9.655-14.975-22.498-14.975-36.165 c0-13.659,5.318-26.511,14.975-36.167c9.665-9.655,22.512-14.979,36.175-14.979c13.659,0,26.497,5.323,36.161,14.979 c19.938,19.945,19.938,52.387-0.008,72.332C1493.271,1531.689,1460.831,1531.681,1440.885,1511.743z"}),(0,a.createElement)(r.Path,{d:"M1700.934,402.736c0.021-0.026,0.047-0.043,0.068-0.065c0.044-0.043,0.083-0.091,0.127-0.134l5.504-5.505 l-0.138-0.139c81.836-87.814,80.038-225.814-5.507-311.356c-42.353-42.357-98.664-65.685-158.565-65.685 c-57.228,0-111.154,21.339-152.792,60.18l-0.134-0.134l-5.511,5.507c-0.043,0.046-0.09,0.085-0.134,0.131 c-0.021,0.021-0.039,0.045-0.061,0.069L66.371,1403.02l0.513,0.513c-7.364,4.749-12.699,12.548-13.98,21.907L9.578,1741.903 c-1.319,9.647,1.95,19.347,8.831,26.232c5.875,5.87,13.807,9.108,22.004,9.108c1.402,0,2.813-0.095,4.224-0.286l316.451-43.338 c9.365-1.276,17.163-6.617,21.912-13.98l0.512,0.513L1700.934,402.736z M1542.423,82.094c43.272,0,83.954,16.852,114.551,47.452 c55.643,55.638,62.276,142.02,19.897,204.983L1451.973,109.64C1478.482,91.724,1509.717,82.094,1542.423,82.094z M1389.497,167.919l229.113,229.112L383.512,1632.129l-86.195-86.19l991.423-991.409l-59.351-59.342l-991.41,991.418 l-83.585-83.586L1389.497,167.919z M76.804,1709.731l35.68-260.604l224.915,224.916L76.804,1709.731z"}),(0,a.createElement)(r.Path,{d:"M506.941,804.479l56.789-56.789l-454.446-454.45l185.432-185.437l87.924,87.932l-63.792,63.783 l50.362,50.359l63.792-63.779l51.262,51.258l-63.792,63.788l50.363,50.354l63.797-63.779l51.257,51.267l-94.375,94.353 l50.376,50.363l94.362-94.362l62.502,62.498l-63.792,63.801l50.363,50.354l63.792-63.792l0.043,0.047l56.789-56.789 L323.106,22.622c-15.682-15.686-41.102-15.686-56.784,0L24.102,264.845c-15.687,15.683-15.687,41.107,0,56.789L506.941,804.479z"}),(0,a.createElement)(r.Path,{d:"M1778.944,1478.287c-0.726-0.729-1.478-1.424-2.241-2.085l-505.282-505.273l-151.159,151.159l50.259,50.26 l94.371-94.37l428.79,428.782l-185.441,185.432l-479.045-479.041l-56.789,56.798l507.437,507.427 c15.682,15.69,41.102,15.69,56.788,0l242.234-242.213c0.021-0.034,0.048-0.052,0.079-0.086 C1794.63,1519.402,1794.63,1493.969,1778.944,1478.287z"})),diamond:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1787.623,836.804l-450.621-450.623c-0.181-0.18-0.375-0.33-0.559-0.501 c-0.568-0.542-1.137-1.079-1.744-1.581c-0.396-0.321-0.811-0.603-1.215-0.906c-0.422-0.313-0.832-0.639-1.272-0.934 c-0.448-0.299-0.915-0.563-1.378-0.836c-0.422-0.255-0.841-0.52-1.276-0.757c-0.453-0.237-0.916-0.444-1.378-0.66 c-0.476-0.229-0.942-0.463-1.43-0.665c-0.433-0.181-0.873-0.321-1.313-0.48c-0.532-0.194-1.061-0.396-1.611-0.563 c-0.418-0.128-0.845-0.22-1.269-0.326c-0.571-0.149-1.14-0.308-1.725-0.423c-0.462-0.092-0.934-0.141-1.396-0.211 c-0.555-0.084-1.101-0.185-1.66-0.238c-0.762-0.08-1.523-0.097-2.279-0.119c-0.273-0.005-0.537-0.04-0.811-0.04H485.319 c-0.36,0-0.713,0.044-1.069,0.053c-0.669,0.022-1.343,0.035-2.008,0.102c-0.607,0.062-1.197,0.167-1.792,0.26 c-0.422,0.066-0.841,0.11-1.259,0.193c-0.625,0.124-1.232,0.291-1.845,0.449c-0.383,0.097-0.771,0.18-1.149,0.294 c-0.59,0.181-1.162,0.396-1.734,0.608c-0.396,0.146-0.792,0.269-1.184,0.432c-0.537,0.224-1.056,0.479-1.58,0.735 c-0.409,0.194-0.819,0.374-1.224,0.585c-0.507,0.273-0.991,0.577-1.479,0.876c-0.392,0.237-0.792,0.458-1.17,0.713 c-0.542,0.361-1.053,0.757-1.568,1.149c-0.308,0.233-0.625,0.444-0.924,0.691c-0.814,0.669-1.594,1.369-2.337,2.113L12.375,836.804 c-0.189,0.189-0.353,0.401-0.537,0.595c-0.528,0.555-1.053,1.109-1.541,1.704c-0.348,0.422-0.651,0.867-0.973,1.298 c-0.291,0.396-0.595,0.775-0.867,1.18c-0.326,0.488-0.612,0.995-0.907,1.497c-0.225,0.383-0.471,0.757-0.683,1.153 c-0.264,0.502-0.493,1.017-0.735,1.527c-0.198,0.423-0.409,0.841-0.59,1.272c-0.031,0.07-0.07,0.141-0.101,0.211 c-0.167,0.427-0.295,0.863-0.449,1.294c-0.167,0.467-0.348,0.929-0.493,1.409c-0.154,0.51-0.269,1.026-0.396,1.541 c-0.119,0.484-0.255,0.96-0.356,1.453c-0.119,0.604-0.189,1.211-0.277,1.813c-0.053,0.414-0.137,0.823-0.176,1.242 c-0.106,1.039-0.158,2.082-0.158,3.125c0,1.043,0.052,2.086,0.158,3.125c0.04,0.422,0.124,0.828,0.18,1.246 c0.084,0.604,0.155,1.21,0.273,1.81c0.101,0.493,0.237,0.968,0.356,1.457c0.128,0.516,0.243,1.026,0.396,1.537 c0.145,0.48,0.325,0.942,0.493,1.414c0.181,0.501,0.343,1.007,0.55,1.5c0.181,0.432,0.392,0.85,0.59,1.272 c0.242,0.515,0.471,1.025,0.735,1.527c0.211,0.396,0.458,0.77,0.683,1.153c0.295,0.502,0.581,1.008,0.907,1.497 c0.272,0.405,0.577,0.784,0.867,1.18c0.321,0.431,0.625,0.876,0.973,1.298c0.488,0.594,1.013,1.149,1.541,1.703 c0.184,0.194,0.348,0.405,0.537,0.595l865.315,865.315c6.163,6.158,14.241,9.239,22.314,9.239c8.074,0,16.151-3.081,22.314-9.239 l865.306-865.315C1799.945,869.106,1799.945,849.13,1787.623,836.804z M498.394,440.05H732.87L468.645,827.564H110.866 L498.394,440.05z M990.748,440.05l264.234,387.514H545.025L809.25,440.05H990.748z M1301.613,440.05l387.515,387.514h-357.766 L1067.128,440.05H1301.613z M1263.76,890.672L900.003,1622.35L536.247,890.672H1263.76z M465.766,890.672l350.88,705.775 L110.87,890.672H465.766z M1334.242,890.672h354.886l-705.767,705.775L1334.242,890.672z"}),(0,a.createElement)(r.Path,{d:"M900.003,284.427c17.427,0,31.554-14.126,31.554-31.554V75.567c0-17.428-14.127-31.554-31.554-31.554 c-17.428,0-31.554,14.126-31.554,31.554v177.307C868.449,270.301,882.576,284.427,900.003,284.427z"}),(0,a.createElement)(r.Path,{d:"M1142.004,268.245c4.979,2.884,10.414,4.253,15.781,4.253c10.89,0,21.486-5.644,27.336-15.747 l88.861-153.434c8.732-15.077,3.586-34.384-11.494-43.119c-15.082-8.733-34.386-3.587-43.118,11.495l-88.86,153.434 C1121.775,240.205,1126.922,259.512,1142.004,268.245z"}),(0,a.createElement)(r.Path,{d:"M1441.811,306.825c8.074,0,16.151-3.082,22.314-9.24l125.37-125.371c12.322-12.326,12.322-32.302,0-44.628 c-12.325-12.317-32.302-12.317-44.628,0l-125.371,125.371c-12.321,12.326-12.321,32.302,0,44.628 C1425.659,303.744,1433.737,306.825,1441.811,306.825z"}),(0,a.createElement)(r.Path,{d:"M614.877,256.751c5.85,10.103,16.446,15.747,27.337,15.747c5.366,0,10.807-1.369,15.781-4.253 c15.081-8.733,20.228-28.041,11.494-43.118l-88.86-153.434c-8.729-15.082-28.046-20.224-43.118-11.495 c-15.082,8.734-20.228,28.042-11.494,43.119L614.877,256.751z"}),(0,a.createElement)(r.Path,{d:"M335.882,297.585c6.163,6.158,14.241,9.24,22.314,9.24s16.152-3.082,22.314-9.24 c12.322-12.326,12.322-32.302,0-44.628L255.139,127.586c-12.326-12.317-32.302-12.317-44.627,0 c-12.322,12.326-12.322,32.302,0,44.628L335.882,297.585z"})),disk:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1216.338,1202.973H583.656c-17.222,0-31.189,13.963-31.189,31.188s13.967,31.188,31.189,31.188h632.682 c17.229,0,31.188-13.963,31.188-31.188S1233.567,1202.973,1216.338,1202.973z"}),(0,a.createElement)(r.Path,{d:"M1216.338,1378.226H583.656c-17.222,0-31.189,13.962-31.189,31.188s13.967,31.188,31.189,31.188h632.682 c17.229,0,31.188-13.962,31.188-31.188S1233.567,1378.226,1216.338,1378.226z"}),(0,a.createElement)(r.Path,{d:"M1216.338,1553.479H583.656c-17.222,0-31.189,13.963-31.189,31.188c0,17.227,13.967,31.189,31.189,31.189 h632.682c17.229,0,31.188-13.963,31.188-31.189C1247.526,1567.441,1233.567,1553.479,1216.338,1553.479z"}),(0,a.createElement)(r.Path,{d:"M1776.765,382.264L1411.048,16.547c-5.848-5.848-13.784-9.133-22.051-9.133h-88.005H499.001H98.754 C52.076,7.414,14.1,45.39,14.1,92.068v1615.864c0,46.679,37.977,84.655,84.655,84.655h400.247h801.991h400.256 c46.678,0,84.654-37.977,84.654-84.655V404.319C1785.902,396.048,1782.613,388.116,1776.765,382.264z M1300.992,69.791 c12.287,0,22.277,9.994,22.277,22.277v408.423c0,12.283-9.99,22.277-22.277,22.277H499.001c-12.278,0-22.277-9.994-22.277-22.277 V92.068c0-12.283,9.999-22.277,22.277-22.277H1300.992z M499.001,1730.211c-12.278,0-22.277-9.995-22.277-22.278v-651.991 c0-12.283,9.999-22.277,22.277-22.277h801.991c12.287,0,22.277,9.994,22.277,22.277v651.991c0,12.283-9.99,22.278-22.277,22.278 H499.001z M1723.525,1707.933c0,12.283-9.999,22.278-22.277,22.278h-318.673c1.944-7.11,3.071-14.56,3.071-22.278v-651.991 c0-46.679-37.976-84.655-84.654-84.655H499.001c-46.678,0-84.654,37.977-84.654,84.655v651.991c0,7.719,1.131,15.168,3.076,22.278 H98.754c-12.288,0-22.278-9.995-22.278-22.278V92.068c0-12.283,9.99-22.277,22.278-22.277h318.668 c-1.945,7.109-3.076,14.559-3.076,22.277v408.423c0,46.678,37.977,84.654,84.654,84.654h801.991 c46.679,0,84.654-37.976,84.654-84.654V92.068c0-4.765-0.487-9.407-1.249-13.958l339.128,339.127V1707.933z"}),(0,a.createElement)(r.Path,{d:"M1006.746,458.164h209.592c17.229,0,31.188-13.963,31.188-31.188V164.096 c0-17.226-13.959-31.188-31.188-31.188h-209.592c-17.23,0-31.188,13.962-31.188,31.188v262.879 C975.558,444.201,989.516,458.164,1006.746,458.164z M1037.935,195.285h147.215v200.502h-147.215V195.285z"})),download:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M899.996,1.402C404.51,1.402,1.403,404.513,1.403,900.003c0,495.485,403.107,898.595,898.592,898.595 c495.489,0,898.6-403.109,898.6-898.595C1798.596,404.513,1395.484,1.402,899.996,1.402z M899.996,1735.555 c-460.721,0-835.546-374.826-835.546-835.552c0-460.726,374.825-835.556,835.546-835.556c460.724,0,835.555,374.83,835.555,835.556 C1735.551,1360.729,1360.72,1735.555,899.996,1735.555z"}),(0,a.createElement)(r.Path,{d:"M1178.01,942.664h-151.185V603.598c0-17.411-14.112-31.522-31.522-31.522H797.969 c-17.411,0-31.522,14.111-31.522,31.522v339.066H615.253c-11.896,0-22.781,6.698-28.141,17.319 c-5.361,10.624-4.283,23.36,2.779,32.929l281.383,381.16c5.946,8.056,15.356,12.805,25.362,12.805 c10.005,0,19.417-4.749,25.361-12.805l281.375-381.16c7.062-9.568,8.14-22.305,2.779-32.929 C1200.79,949.362,1189.906,942.664,1178.01,942.664z M896.636,1302.273L677.705,1005.71h120.264 c17.41,0,31.523-14.106,31.523-31.522V635.12H963.78v339.067c0,17.416,14.112,31.522,31.522,31.522h120.256L896.636,1302.273z"}),(0,a.createElement)(r.Path,{d:"M794.556,529.751h204.15c17.411,0,31.522-14.113,31.522-31.523s-14.111-31.522-31.522-31.522h-204.15 c-17.411,0-31.523,14.112-31.523,31.522S777.145,529.751,794.556,529.751z"})),drop:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1588.221,739.806c-29.326-65.133-67.881-125.781-114.598-180.253c-0.521-0.609-1.066-1.197-1.636-1.767 L926.638,12.428c-5.896-5.894-13.888-9.204-22.221-9.204s-16.325,3.31-22.221,9.204L336.869,557.764 c-0.57,0.57-1.114,1.157-1.635,1.767c-46.734,54.489-85.298,115.146-114.616,180.275c-43.635,96.911-65.76,200.335-65.76,307.411 c0,413.309,336.251,749.56,749.56,749.56c413.308,0,749.56-336.251,749.56-749.56 C1653.977,940.141,1631.852,836.716,1588.221,739.806z M904.417,1733.932c-378.655,0-686.715-308.06-686.715-686.715 c0-98.12,20.262-192.865,60.219-281.608c26.697-59.303,61.767-114.563,104.244-164.266L904.417,79.084l522.274,522.28 c42.46,49.685,77.525,104.941,104.227,164.244c39.957,88.739,60.214,183.488,60.214,281.608 C1591.132,1425.872,1283.072,1733.932,904.417,1733.932z"}),(0,a.createElement)(r.Path,{d:"M1400.234,1103.192c-17.354,0-31.422,14.067-31.422,31.423c0,133.133-145.486,392.252-412.182,392.252 c-17.354,0-31.422,14.068-31.422,31.423c0,17.355,14.067,31.423,31.422,31.423c135.527,0,261.212-59.93,353.896-168.75 c73.584-86.398,121.13-198.797,121.13-286.348C1431.657,1117.26,1417.59,1103.192,1400.234,1103.192z"})),favorite:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1711.338,9.595H88.67c-43.603,0-79.074,35.468-79.074,79.061v1622.683 c0,43.594,35.472,79.065,79.074,79.065h1622.667c43.594,0,79.066-35.472,79.066-79.065V88.656 C1790.404,45.063,1754.932,9.595,1711.338,9.595z M88.67,72.128h1622.667c9.117,0,16.532,7.416,16.532,16.528v194.047H72.13V88.656 C72.13,79.544,79.545,72.128,88.67,72.128z M1711.338,1727.871H88.67c-9.125,0-16.541-7.415-16.541-16.532V345.236h1655.74 v1366.103C1727.87,1720.456,1720.455,1727.871,1711.338,1727.871z"}),(0,a.createElement)(r.Path,{d:"M207.43,224.637c27.751,0,50.25-22.5,50.25-50.25c0-27.756-22.499-50.25-50.25-50.25 s-50.25,22.495-50.25,50.25C157.18,202.137,179.679,224.637,207.43,224.637z"}),(0,a.createElement)(r.Path,{d:"M365.997,224.637c27.751,0,50.25-22.5,50.25-50.25c0-27.756-22.499-50.25-50.25-50.25 s-50.25,22.495-50.25,50.25C315.747,202.137,338.246,224.637,365.997,224.637z"}),(0,a.createElement)(r.Path,{d:"M524.563,224.637c27.751,0,50.25-22.5,50.25-50.25c0-27.756-22.5-50.25-50.25-50.25 s-50.25,22.495-50.25,50.25C474.313,202.137,496.813,224.637,524.563,224.637z"}),(0,a.createElement)(r.Path,{d:"M1162.234,1090.907l216.864-211.397c8.523-8.307,11.59-20.732,7.913-32.052 c-3.678-11.319-13.461-19.568-25.238-21.28l-299.703-43.55L928.039,511.056c-5.27-10.672-16.14-17.429-28.039-17.429 c-11.901,0-22.77,6.757-28.037,17.429L737.922,782.628l-299.704,43.55c-11.777,1.712-21.561,9.96-25.239,21.28 c-3.679,11.319-0.61,23.745,7.911,32.052l216.867,211.397l-51.192,298.5c-2.011,11.733,2.812,23.585,12.44,30.582 c9.629,6.996,22.399,7.917,32.926,2.381L900,1281.431l268.066,140.939c4.575,2.404,9.57,3.59,14.547,3.59 c6.482,0,12.938-2.015,18.381-5.971c9.632-6.997,14.451-18.853,12.441-30.582L1162.234,1090.907z M914.552,1218.43 c-9.108-4.789-19.993-4.789-29.101,0l-226.542,119.108l43.262-252.258c1.738-10.146-1.623-20.492-8.992-27.677L509.905,878.952 l253.276-36.805c10.184-1.48,18.986-7.875,23.54-17.103L900,595.541l113.268,229.504c4.555,9.228,13.361,15.623,23.542,17.103 l253.278,36.805l-183.273,178.651c-7.371,7.185-10.734,17.535-8.994,27.677l43.271,252.254L914.552,1218.43z"}),(0,a.createElement)(r.Path,{d:"M900,1416.294c-17.269,0-31.267,13.998-31.267,31.267v106.119c0,17.269,13.998,31.267,31.267,31.267 c17.27,0,31.267-13.998,31.267-31.267v-106.119C931.267,1430.292,917.27,1416.294,900,1416.294z"}),(0,a.createElement)(r.Path,{d:"M1424.206,1150.112l-100.923-32.802c-16.453-5.344-34.072,3.651-39.402,20.069 c-5.339,16.423,3.646,34.063,20.07,39.402l100.923,32.802c3.214,1.043,6.469,1.54,9.671,1.54c13.182,0,25.438-8.401,29.73-21.609 C1449.615,1173.092,1440.629,1155.452,1424.206,1150.112z"}),(0,a.createElement)(r.Path,{d:"M1137.244,686.108c5.549,4.033,11.979,5.974,18.352,5.974c9.67,0,19.201-4.469,25.32-12.89l62.381-85.853 c10.15-13.969,7.054-33.524-6.918-43.674c-13.967-10.15-33.518-7.053-43.672,6.916l-62.381,85.853 C1120.176,656.403,1123.272,675.958,1137.244,686.108z"}),(0,a.createElement)(r.Path,{d:"M619.075,679.19c6.117,8.421,15.65,12.892,25.321,12.892c6.37,0,12.802-1.941,18.351-5.974 c13.972-10.148,17.068-29.703,6.918-43.672l-62.372-85.853c-10.148-13.965-29.703-17.071-43.672-6.918 c-13.972,10.148-17.068,29.703-6.918,43.672L619.075,679.19z"}),(0,a.createElement)(r.Path,{d:"M476.73,1117.311l-100.933,32.793c-16.423,5.335-25.41,22.975-20.073,39.397 c4.292,13.213,16.549,21.614,29.729,21.614c3.202,0,6.458-0.497,9.669-1.54l100.932-32.793 c16.423-5.335,25.411-22.975,20.074-39.397S493.153,1111.976,476.73,1117.311z"})),fileDownload:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M637.655,1373.291c-17.354,0-31.421-14.067-31.421-31.422V834.407c0-17.355,14.067-31.422,31.421-31.422 c17.355,0,31.422,14.067,31.422,31.422v507.462C669.077,1359.224,655.01,1373.291,637.655,1373.291z"}),(0,a.createElement)(r.Path,{d:"M633.451,1373.291c-8.041,0-16.081-3.069-22.218-9.2l-180.151-180.139 c-12.27-12.27-12.272-32.167,0-44.437c12.27-12.273,32.162-12.27,44.436-0.005l180.151,180.139 c12.27,12.27,12.272,32.167,0,44.437C649.535,1370.222,641.493,1373.291,633.451,1373.291z"}),(0,a.createElement)(r.Path,{d:"M641.859,1373.291c-8.042,0-16.083-3.069-22.218-9.205c-12.272-12.27-12.27-32.167,0-44.437 l180.151-180.139c12.274-12.265,32.171-12.265,44.436,0.005c12.272,12.27,12.27,32.167,0,44.437l-180.151,180.139 C657.942,1370.222,649.898,1373.291,641.859,1373.291z"}),(0,a.createElement)(r.Path,{d:"M1649.069,3.258H626.017c-43.336,0-78.584,35.445-78.584,79.022v180.463H150.931 c-43.34,0-78.597,35.454-78.597,79.026v1138.41v20.796v216.749c0,43.576,35.257,79.018,78.597,79.018h1023.053 c43.33,0,78.58-35.441,78.58-79.018v-51.06h396.518c43.332,0,78.584-35.446,78.584-79.022v-474.521V556.8V82.28 C1727.666,38.704,1692.404,3.258,1649.069,3.258z M1194.333,1717.725c0,11.463-9.123,20.786-20.349,20.786H150.931 c-11.226,0-20.371-9.323-20.371-20.786v-216.749v-20.796V341.77c0-11.458,9.145-20.795,20.371-20.795h396.502h58.231h358.975 v178.622c0,16.166,13.072,29.264,29.199,29.264h200.495v951.32v20.796v107.458v58.231V1717.725z M1023.049,470.322V357.77 l124.375,112.552H1023.049z M1669.436,1113.122v474.521c0,11.463-9.123,20.791-20.354,20.791h-396.518v-107.458v-20.796V501.2 v-3.011c-0.418-8.702-4.578-16.421-10.941-21.51l-47.29-42.784l-124.778-112.92l-56.146-50.796 c-5.023-4.542-11.335-7.041-17.814-7.435h-3.313H605.664V82.28c0-11.467,9.127-20.791,20.353-20.791h1023.052 c11.228,0,20.366,9.324,20.366,20.791V556.8V1113.122z"})),filter:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1763.83,1.676H36.17c-17.395,0-31.494,14.1-31.494,31.494v394.424c0,0.563,0.058,1.111,0.084,1.665 c0.022,0.417,0.026,0.839,0.062,1.252c0.123,1.327,0.334,2.619,0.615,3.889c0.07,0.334,0.167,0.655,0.25,0.984 c0.285,1.112,0.619,2.193,1.014,3.252c0.106,0.268,0.194,0.544,0.299,0.813c0.515,1.256,1.107,2.469,1.766,3.633 c0.159,0.286,0.339,0.558,0.51,0.84c0.62,1.019,1.292,2.003,2.021,2.943c0.149,0.198,0.286,0.4,0.439,0.589 c0.87,1.072,1.828,2.065,2.83,3.014c0.114,0.115,0.211,0.246,0.334,0.356l708.13,647.886v668.12 c0,11.546,6.327,22.165,16.468,27.676c4.701,2.553,9.868,3.816,15.026,3.816c5.984,0,11.959-1.703,17.162-5.082l290.939-188.963 c8.946-5.809,14.342-15.747,14.342-26.411v-485.171l693.233-634.253c14.341-2.944,25.123-15.637,25.123-30.848V33.17 C1795.324,15.775,1781.229,1.676,1763.83,1.676z M1732.337,64.664v331.428H67.664V64.664H1732.337z M1024.217,1055.591 c-6.52,5.962-10.238,14.394-10.238,23.233v481.942l-227.96,148.054v-623.981c0-8.839-3.708-17.271-10.229-23.233L117.247,459.088 h1558.938L1024.217,1055.591z"})),flag:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1099.021,1358.872c-24.524-10.022-50.942-18.95-78.808-26.835l-51.576,51.575 c152,36.272,245.715,100.936,245.715,161.021c0,89.873-209.631,190.014-510.447,190.014 c-300.812,0-510.448-100.141-510.448-190.014c0-60.081,93.715-124.748,245.711-161.021l-51.575-51.575 c-27.863,7.885-54.28,16.813-78.796,26.835c-114.981,46.993-178.304,112.964-178.304,185.761s63.323,138.769,178.304,185.762 c106.048,43.344,246.366,67.214,395.107,67.214c148.746,0,289.068-23.87,395.116-67.214 c114.977-46.993,178.294-112.965,178.294-185.762S1213.997,1405.865,1099.021,1358.872z"}),(0,a.createElement)(r.Path,{d:"M1646.857,537.94L735.386,271.5v-66.372c41.896-13.364,72.331-52.65,72.331-98.919 c0-57.245-46.572-103.816-103.813-103.816S600.092,48.964,600.092,106.208c0,46.269,30.437,85.555,72.332,98.919v1359.694 c0,17.389,14.094,31.482,31.481,31.482c17.388,0,31.481-14.094,31.481-31.482V864.814l911.472-266.441 c13.422-3.922,22.648-16.232,22.648-30.216C1669.506,554.173,1660.279,541.862,1646.857,537.94z M703.904,65.354 c22.526,0,40.85,18.328,40.85,40.854s-18.323,40.849-40.85,40.849s-40.849-18.323-40.849-40.849S681.378,65.354,703.904,65.354z M735.39,799.217V337.098l790.431,231.06L735.39,799.217z"})),folder:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1759.255,188.518H938.75L757.06,18.2c-5.796-5.437-13.448-8.461-21.396-8.461H40.745 c-17.28,0-31.287,14.006-31.287,31.286v410.815v1315.872c0,17.284,14.006,31.287,31.287,31.287h1718.51 c17.28,0,31.287-14.003,31.287-31.287V451.841V219.804C1790.542,202.524,1776.535,188.518,1759.255,188.518z M72.031,72.312h651.264 l181.689,170.32c5.797,5.434,13.448,8.459,21.396,8.459h801.588v169.464H72.031V72.312z M1727.969,1736.427H72.031V483.127h1655.938 V1736.427z"})),folders:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M404.006,1798.767H88.317c-46.674,0-84.646-37.972-84.646-84.646V85.879 c0-46.674,37.972-84.646,84.646-84.646h315.688c46.669,0,84.637,37.972,84.637,84.646v1628.242 C488.643,1760.795,450.675,1798.767,404.006,1798.767z M88.317,64.304c-11.896,0-21.575,9.679-21.575,21.575v1628.242 c0,11.896,9.679,21.574,21.575,21.574h315.688c11.892,0,21.566-9.678,21.566-21.574V85.879c0-11.896-9.674-21.575-21.566-21.575 H88.317z"}),(0,a.createElement)(r.Path,{d:"M246.157,1623.078c-69.556,0-126.142-56.586-126.142-126.141c0-69.557,56.586-126.143,126.142-126.143 s126.142,56.586,126.142,126.143C372.299,1566.492,315.713,1623.078,246.157,1623.078z M246.157,1433.866 c-34.778,0-63.07,28.293-63.07,63.071c0,34.777,28.292,63.07,63.07,63.07s63.071-28.293,63.071-63.07 C309.228,1462.159,280.935,1433.866,246.157,1433.866z"}),(0,a.createElement)(r.Path,{d:"M335.149,726.573H157.165c-17.418,0-31.535-14.118-31.535-31.535c0-17.418,14.117-31.536,31.535-31.536 h177.984c17.418,0,31.536,14.118,31.536,31.536C366.685,712.455,352.567,726.573,335.149,726.573z"}),(0,a.createElement)(r.Path,{d:"M335.149,591.422H157.165c-17.418,0-31.535-14.118-31.535-31.536s14.117-31.536,31.535-31.536h177.984 c17.418,0,31.536,14.118,31.536,31.536S352.567,591.422,335.149,591.422z"}),(0,a.createElement)(r.Path,{d:"M335.149,456.27H157.165c-17.418,0-31.535-14.118-31.535-31.536c0-17.417,14.117-31.535,31.535-31.535 h177.984c17.418,0,31.536,14.118,31.536,31.535C366.685,442.152,352.567,456.27,335.149,456.27z"}),(0,a.createElement)(r.Path,{d:"M335.149,321.119H157.165c-17.418,0-31.535-14.118-31.535-31.536c0-17.417,14.117-31.535,31.535-31.535 h177.984c17.418,0,31.536,14.118,31.536,31.535C366.685,307.001,352.567,321.119,335.149,321.119z"}),(0,a.createElement)(r.Path,{d:"M1057.852,1798.767h-315.69c-46.674,0-84.646-37.972-84.646-84.646V85.879 c0-46.674,37.972-84.646,84.646-84.646h315.69c46.67,0,84.637,37.972,84.637,84.646v1628.242 C1142.488,1760.795,1104.521,1798.767,1057.852,1798.767z M742.162,64.304c-11.896,0-21.575,9.679-21.575,21.575v1628.242 c0,11.896,9.679,21.574,21.575,21.574h315.69c11.893,0,21.566-9.678,21.566-21.574V85.879c0-11.896-9.674-21.575-21.566-21.575 H742.162z"}),(0,a.createElement)(r.Path,{d:"M899.997,1623.078c-69.556,0-126.142-56.586-126.142-126.141c0-69.557,56.586-126.143,126.142-126.143 c69.558,0,126.144,56.586,126.144,126.143C1026.141,1566.492,969.555,1623.078,899.997,1623.078z M899.997,1433.866 c-34.778,0-63.071,28.293-63.071,63.071c0,34.777,28.293,63.07,63.071,63.07c34.78,0,63.073-28.293,63.073-63.07 C963.07,1462.159,934.777,1433.866,899.997,1433.866z"}),(0,a.createElement)(r.Path,{d:"M988.992,726.573H811.005c-17.418,0-31.536-14.118-31.536-31.535c0-17.418,14.118-31.536,31.536-31.536 h177.987c17.416,0,31.535,14.118,31.535,31.536C1020.527,712.455,1006.408,726.573,988.992,726.573z"}),(0,a.createElement)(r.Path,{d:"M988.992,591.422H811.005c-17.418,0-31.536-14.118-31.536-31.536s14.118-31.536,31.536-31.536h177.987 c17.416,0,31.535,14.118,31.535,31.536S1006.408,591.422,988.992,591.422z"}),(0,a.createElement)(r.Path,{d:"M988.992,456.27H811.005c-17.418,0-31.536-14.118-31.536-31.536c0-17.417,14.118-31.535,31.536-31.535 h177.987c17.416,0,31.535,14.118,31.535,31.535C1020.527,442.152,1006.408,456.27,988.992,456.27z"}),(0,a.createElement)(r.Path,{d:"M988.992,321.119H811.005c-17.418,0-31.536-14.118-31.536-31.536c0-17.417,14.118-31.535,31.536-31.535 h177.987c17.416,0,31.535,14.118,31.535,31.535C1020.527,307.001,1006.408,321.119,988.992,321.119z"}),(0,a.createElement)(r.Path,{d:"M1711.691,1798.767h-315.688c-46.674,0-84.646-37.972-84.646-84.646V85.879 c0-46.674,37.973-84.646,84.646-84.646h315.688c46.67,0,84.637,37.972,84.637,84.646v1628.242 C1796.328,1760.795,1758.361,1798.767,1711.691,1798.767z M1396.004,64.304c-11.896,0-21.575,9.679-21.575,21.575v1628.242 c0,11.896,9.679,21.574,21.575,21.574h315.688c11.892,0,21.566-9.678,21.566-21.574V85.879c0-11.896-9.675-21.575-21.566-21.575 H1396.004z"}),(0,a.createElement)(r.Path,{d:"M1553.839,1623.078c-69.556,0-126.142-56.586-126.142-126.141c0-69.557,56.586-126.143,126.142-126.143 s126.142,56.586,126.142,126.143C1679.98,1566.492,1623.395,1623.078,1553.839,1623.078z M1553.839,1433.866 c-34.778,0-63.071,28.293-63.071,63.071c0,34.777,28.293,63.07,63.071,63.07s63.07-28.293,63.07-63.07 C1616.909,1462.159,1588.617,1433.866,1553.839,1433.866z"}),(0,a.createElement)(r.Path,{d:"M1642.831,726.573h-177.985c-17.417,0-31.535-14.118-31.535-31.535c0-17.418,14.118-31.536,31.535-31.536 h177.985c17.417,0,31.535,14.118,31.535,31.536C1674.366,712.455,1660.248,726.573,1642.831,726.573z"}),(0,a.createElement)(r.Path,{d:"M1642.831,591.422h-177.985c-17.417,0-31.535-14.118-31.535-31.536s14.118-31.536,31.535-31.536h177.985 c17.417,0,31.535,14.118,31.535,31.536S1660.248,591.422,1642.831,591.422z"}),(0,a.createElement)(r.Path,{d:"M1642.831,456.27h-177.985c-17.417,0-31.535-14.118-31.535-31.536c0-17.417,14.118-31.535,31.535-31.535 h177.985c17.417,0,31.535,14.118,31.535,31.535C1674.366,442.152,1660.248,456.27,1642.831,456.27z"}),(0,a.createElement)(r.Path,{d:"M1642.831,321.119h-177.985c-17.417,0-31.535-14.118-31.535-31.536c0-17.417,14.118-31.535,31.535-31.535 h177.985c17.417,0,31.535,14.118,31.535,31.535C1674.366,307.001,1660.248,321.119,1642.831,321.119z"})),gear:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1203.175,843.2c-17.272,0-31.273-14-31.273-31.273c0-116.959-117.688-177.271-167.899-177.271 c-17.272,0-31.273-14.001-31.273-31.273s14.001-31.272,31.273-31.272c80.425,0,230.445,82.364,230.445,239.817 C1234.447,829.2,1220.447,843.2,1203.175,843.2z"}),(0,a.createElement)(r.Path,{d:"M1012.309,1788.987H787.691c-15.351,0-28.433-11.143-30.876-26.299l-30.721-190.718 c-62.62-16.151-122.402-40.937-178.231-73.885L391.23,1611.258c-12.442,8.983-29.575,7.622-40.428-3.237l-158.825-158.829 c-10.855-10.854-12.227-27.983-3.235-40.427l113.17-156.626c-32.943-55.81-57.731-115.603-73.889-178.231l-190.716-30.723 c-15.156-2.443-26.299-15.523-26.299-30.876V787.688c0-15.353,11.143-28.433,26.299-30.876l190.716-30.717 c16.157-62.633,40.945-122.426,73.887-178.237L188.742,391.235c-8.992-12.443-7.62-29.571,3.235-40.429l158.825-158.834 c10.856-10.854,27.989-12.225,40.428-3.235l156.631,113.17c55.823-32.951,115.604-57.731,178.233-73.885l30.721-190.711 c2.443-15.157,15.525-26.299,30.876-26.299h224.617c15.353,0,28.433,11.143,30.876,26.299l30.723,190.713 c62.629,16.151,122.418,40.938,178.231,73.889l156.631-113.172c12.438-8.994,29.563-7.62,40.431,3.235l158.825,158.829 c10.854,10.855,12.225,27.985,3.232,40.429L1498.09,547.861c32.957,55.832,57.738,115.611,73.89,178.233l190.713,30.717 c15.156,2.443,26.3,15.523,26.3,30.876v224.621c0,15.353-11.144,28.433-26.3,30.876l-190.718,30.723 c-16.155,62.629-40.94,122.422-73.885,178.231l113.168,156.631c8.992,12.442,7.622,29.571-3.232,40.431L1449.2,1608.025 c-10.855,10.859-27.988,12.22-40.431,3.232l-156.64-113.172c-55.81,32.943-115.598,57.729-178.223,73.88l-30.723,190.723 C1040.741,1777.845,1027.661,1788.987,1012.309,1788.987z M814.331,1726.441h171.338l29.794-184.958 c2.033-12.613,11.535-22.727,24-25.536c70.089-15.798,136.509-43.327,197.41-81.83c10.789-6.827,24.659-6.404,35.025,1.087 l151.91,109.756l121.151-121.151l-109.752-151.901c-7.482-10.357-7.914-24.223-1.086-35.025 c38.498-60.901,66.031-127.325,81.843-197.423c2.81-12.465,12.918-21.963,25.531-23.996l184.95-29.794V814.327l-184.95-29.79 c-12.613-2.033-22.727-11.535-25.536-24c-15.793-70.076-43.327-136.498-81.838-197.419c-6.828-10.8-6.396-24.667,1.086-35.025 l109.752-151.897L1423.809,255.04l-151.901,109.756c-10.362,7.482-24.231,7.912-35.029,1.084 c-60.901-38.504-127.321-66.041-197.415-81.838c-12.465-2.81-21.967-12.918-24-25.533l-29.794-184.95h-171.34l-29.792,184.945 c-2.033,12.615-11.533,22.724-23.998,25.534c-70.089,15.802-136.511,43.336-197.421,81.836 c-10.805,6.828-24.667,6.394-35.025-1.086L376.192,255.036L255.04,376.196l109.752,151.893 c7.484,10.357,7.914,24.225,1.086,35.025c-38.495,60.898-66.031,127.323-81.84,197.428 c-2.813,12.462-12.921,21.962-25.534,23.995l-184.95,29.79v171.342l184.95,29.794c12.613,2.033,22.722,11.531,25.534,23.996 c15.806,70.098,43.342,136.521,81.84,197.423c6.828,10.803,6.398,24.668-1.086,35.025L255.04,1423.804l121.152,121.156 l151.901-109.756c10.353-7.486,24.223-7.919,35.023-1.087c60.923,38.503,127.345,66.036,197.423,81.839 c12.464,2.81,21.964,12.918,23.998,25.531L814.331,1726.441z"}),(0,a.createElement)(r.Path,{d:"M900,1380.974c-265.211,0-480.978-215.769-480.978-480.982c0-265.211,215.767-480.978,480.978-480.978 c265.218,0,480.987,215.767,480.987,480.978C1380.987,1165.205,1165.218,1380.974,900,1380.974z M900,481.56 c-230.725,0-418.432,187.707-418.432,418.432c0,230.726,187.708,418.437,418.432,418.437 c230.729,0,418.441-187.711,418.441-418.437C1318.441,669.267,1130.729,481.56,900,481.56z"})),gears:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1094.819,1135.051l-108.863-17.528c-9.449-34.07-22.999-66.744-40.445-97.562l64.601-89.408 c8.963-12.402,7.593-29.477-3.227-40.295l-97.074-97.083c-10.828-10.832-27.9-12.188-40.297-3.227l-89.409,64.601 c-30.817-17.446-63.496-30.991-97.557-40.44L665.01,705.239c-2.435-15.106-15.472-26.212-30.774-26.212H496.934 c-15.302,0-28.339,11.105-30.774,26.212l-17.535,108.864c-34.057,9.449-66.731,22.995-97.555,40.445l-89.409-64.601 c-12.399-8.958-29.474-7.597-40.295,3.222l-97.083,97.083c-10.819,10.823-12.187,27.897-3.225,40.3l64.599,89.408 c-17.448,30.826-30.994,63.5-40.443,97.562l-108.866,17.528c-15.106,2.436-26.214,15.472-26.214,30.774v137.306 c0,15.303,11.106,28.339,26.212,30.774l108.868,17.533c9.454,34.062,22.997,66.735,40.443,97.557l-64.599,89.409 c-8.962,12.401-7.595,29.474,3.225,40.297l97.083,97.083c10.819,10.819,27.892,12.181,40.295,3.223l89.409-64.605 c30.822,17.446,63.496,30.992,97.555,40.445l17.535,108.867c2.433,15.107,15.472,26.213,30.774,26.213h137.302 c15.302,0,28.339-11.105,30.774-26.213l17.537-108.871c34.062-9.449,66.736-22.995,97.549-40.437l89.417,64.601 c12.402,8.962,29.478,7.601,40.297-3.223l97.083-97.079c10.819-10.823,12.185-27.895,3.222-40.297l-64.604-89.413 c17.446-30.813,30.991-63.487,40.445-97.557l108.868-17.533c15.105-2.436,26.212-15.472,26.212-30.774v-137.306 C1121.036,1150.522,1109.926,1137.486,1094.819,1135.051z M1058.697,1276.58l-102.915,16.576 c-12.571,2.026-22.647,11.492-25.447,23.916c-9.362,41.506-25.665,80.833-48.459,116.882c-6.806,10.767-6.375,24.591,1.083,34.914 l61.078,84.529l-59.535,59.53l-84.534-61.074c-10.323-7.457-24.147-7.888-34.909-1.083 c-36.058,22.795-75.376,39.093-116.878,48.446c-12.419,2.805-21.89,12.88-23.917,25.451l-16.576,102.92h-84.204l-16.576-102.915 c-2.026-12.571-11.495-22.646-23.916-25.447c-41.495-9.357-80.822-25.66-116.889-48.455c-10.765-6.805-24.588-6.374-34.907,1.083 l-84.525,61.074l-59.535-59.535l61.069-84.524c7.458-10.323,7.889-24.143,1.085-34.909 c-22.796-36.066-39.097-75.394-48.454-116.887c-2.803-12.424-12.878-21.89-25.45-23.916L72.474,1276.58v-84.204l102.912-16.571 c12.574-2.026,22.651-11.497,25.452-23.921c9.351-41.488,25.653-80.812,48.454-116.887c6.804-10.767,6.373-24.586-1.085-34.909 l-61.069-84.525l59.535-59.536l84.525,61.076c10.321,7.458,24.147,7.888,34.909,1.083c36.073-22.806,75.398-39.108,116.882-48.457 c12.424-2.801,21.895-12.88,23.921-25.452l16.576-102.911h84.204l16.576,102.915c2.027,12.571,11.498,22.651,23.917,25.451 c41.502,9.354,80.82,25.656,116.878,48.453c10.767,6.805,24.59,6.375,34.913-1.083l84.53-61.076l59.53,59.536l-61.073,84.53 c-7.458,10.323-7.889,24.146-1.083,34.913c22.799,36.054,39.101,75.376,48.459,116.878c2.8,12.424,12.876,21.895,25.447,23.921 l102.915,16.571V1276.58z"}),(0,a.createElement)(r.Path,{d:"M565.583,928.422c-168.759,0-306.052,137.293-306.052,306.052s137.293,306.053,306.052,306.053 c168.763,0,306.061-137.294,306.061-306.053S734.346,928.422,565.583,928.422z M565.583,1478.187 c-134.384,0-243.713-109.328-243.713-243.713s109.329-243.713,243.713-243.713c134.389,0,243.722,109.328,243.722,243.713 S699.972,1478.187,565.583,1478.187z"}),(0,a.createElement)(r.Path,{d:"M1767.072,581.748l-74.516-50.033c4.279-27.761,5.383-55.804,3.291-83.786l78.155-44.071 c13.328-7.519,19.229-23.595,13.929-37.949l-40.059-108.459c-5.301-14.359-20.233-22.725-35.248-19.79l-88.043,17.302 c-16.598-22.621-35.662-43.215-56.956-61.531l24.099-86.456c4.105-14.741-3.088-30.278-16.984-36.679l-105.002-48.368 c-13.902-6.418-30.392-1.774-38.919,10.932l-50.038,74.52c-27.703-4.253-55.785-5.375-83.777-3.288l-44.075-78.154 c-7.522-13.332-23.595-19.233-37.953-13.928l-108.459,40.058c-14.358,5.301-22.738,20.237-19.786,35.253l17.308,88.03 c-22.625,16.598-43.224,35.666-61.54,56.964l-86.446-24.104c-14.741-4.092-30.282,3.092-36.684,16.985l-48.372,105.002 c-6.401,13.897-1.766,30.387,10.932,38.918l74.511,50.038c-4.274,27.765-5.379,55.808-3.283,83.781l-78.15,44.072 c-13.328,7.519-19.229,23.599-13.928,37.949l40.058,108.463c5.301,14.354,20.256,22.76,35.253,19.786l88.03-17.303 c16.585,22.612,35.648,43.206,56.961,61.535l-24.104,86.451c-4.105,14.737,3.087,30.283,16.984,36.684l105.006,48.366 c13.902,6.404,30.387,1.77,38.919-10.938l50.042-74.512c27.695,4.257,55.781,5.375,83.777,3.288l44.076,78.161 c5.656,10.036,16.176,15.863,27.151,15.863c3.601,0,7.253-0.626,10.792-1.936l108.469-40.06 c14.357-5.301,22.738-20.238,19.785-35.253l-17.307-88.039c22.611-16.589,43.206-35.657,61.535-56.96l86.451,24.104 c14.74,4.092,30.282-3.088,36.684-16.985l48.363-105.006C1784.404,606.769,1779.777,590.28,1767.072,581.748z M1684.125,675.479 l-80.555-22.459c-12.275-3.409-25.378,0.97-33.118,11.08c-21.507,28.091-47.402,52.06-76.968,71.245 c-10.688,6.932-16.08,19.664-13.619,32.161l16.124,82.021l-58.651,21.664l-41.059-72.815c-5.574-9.884-16.002-15.859-27.143-15.859 c-1.361,0-2.735,0.087-4.113,0.27c-34.727,4.623-70.428,3.214-104.798-4.109c-12.445-2.656-25.269,2.535-32.37,13.111 l-46.624,69.418l-56.772-26.147l22.455-80.555c3.418-12.267-0.966-25.382-11.08-33.122c-28.092-21.503-52.06-47.398-71.245-76.963 c-6.927-10.685-19.655-16.072-32.161-13.619l-82.012,16.119l-21.664-58.651l72.811-41.058 c11.093-6.257,17.264-18.629,15.585-31.252c-4.636-34.957-3.253-70.214,4.113-104.793c2.653-12.458-2.539-25.273-13.106-32.374 l-69.427-46.62l26.155-56.777l80.551,22.459c12.264,3.405,25.383-0.97,33.123-11.084c21.48-28.073,47.38-52.042,76.971-71.245 c10.685-6.931,16.076-19.664,13.615-32.161l-16.123-82.012l58.651-21.664l41.058,72.81c6.254,11.093,18.615,17.272,31.257,15.589 c34.727-4.609,70.419-3.209,104.798,4.113c12.44,2.648,25.264-2.539,32.369-13.11l46.62-69.432l56.773,26.151l-22.456,80.563 c-3.418,12.271,0.971,25.387,11.084,33.123c28.065,21.481,52.034,47.372,71.232,76.958c6.936,10.685,19.668,16.059,32.156,13.62 l82.029-16.12l21.664,58.647l-72.818,41.058c-11.094,6.258-17.264,18.629-15.585,31.252c4.64,34.97,3.257,70.228-4.114,104.793 c-2.66,12.458,2.531,25.277,13.106,32.378l69.432,46.62L1684.125,675.479z"}),(0,a.createElement)(r.Path,{d:"M1324.474,212.717c-31.026,0-61.63,5.492-90.97,16.329c-135.858,50.172-205.564,201.52-155.392,337.383 c37.927,102.701,136.95,171.707,246.409,171.716c0.009,0,0.009,0,0.018,0c31.014,0,61.617-5.492,90.952-16.329 c135.854-50.172,205.568-201.52,155.396-337.375C1532.951,281.727,1433.928,212.717,1324.474,212.717z M1393.896,663.338 c-22.402,8.275-45.736,12.467-69.357,12.467c0,0-0.009,0-0.014,0c-83.477-0.004-159.005-52.638-187.936-130.971 c-38.266-103.619,14.898-219.048,118.514-257.311c22.398-8.275,45.736-12.467,69.37-12.467 c83.478,0,159.001,52.638,187.936,130.979C1550.672,509.646,1497.503,625.071,1393.896,663.338z"})),gift:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1767.367,358.009h-276.059c0.318-51.483-6-101.019-19.174-146.457 c-30.153-104.006-92.074-174.999-174.359-199.906c-82.275-24.902-173.179-0.171-255.948,69.653 c-59.842,50.483-110.403,120.564-146.689,202.113c-36.296-81.549-86.849-151.63-146.699-202.113 c-82.77-69.825-173.664-94.547-255.949-69.653c-82.276,24.907-144.199,95.899-174.353,199.906 c-13.174,45.438-19.492,94.974-19.179,146.457H32.633c-17.443,0-31.582,14.139-31.582,31.582v342.886 c0,17.443,14.139,31.582,31.582,31.582h103.769v1002.154c0,17.439,14.138,31.582,31.581,31.582h593.286h277.465h593.284 c17.438,0,31.581-14.143,31.581-31.582V764.059h103.769c17.438,0,31.581-14.139,31.581-31.582V389.591 C1798.948,372.148,1784.805,358.009,1767.367,358.009z M1082.556,129.576c65.877-55.563,135.808-75.976,196.927-57.471 c61.109,18.496,107.988,74.267,131.983,157.036c11.543,39.794,17.059,83.374,16.751,128.869h-389.483H933.538 C966.159,264.106,1018.466,183.646,1082.556,129.576z M378.802,229.141c23.993-82.77,70.872-138.54,131.991-157.036 c61.119-18.518,131.049,1.912,196.927,57.471c64.088,54.07,116.387,134.53,149.017,228.434h-95.468H362.055 C361.742,312.514,367.263,268.935,378.802,229.141z M64.215,700.896V421.172h238.4h63.538h363.535v279.723H167.983H64.215z M199.565,764.059h530.122v970.573H199.565V764.059z M792.851,1734.632V764.059v-63.163V421.172h214.301v279.723v63.163v970.573 H792.851z M1600.436,1734.632h-530.12V764.059h530.12V1734.632z M1735.786,700.896h-103.769h-561.702V421.172h353.795h63.551 h248.125V700.896z"})),globe:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1583.266,1262.444c-155.105,155.105-361.327,240.526-580.678,240.526 c-219.35,0-425.572-85.421-580.677-240.526c-155.107-155.104-240.528-361.33-240.533-580.682 c0-219.354,85.42-425.578,240.528-580.685c12.336-12.333,12.336-32.328,0.004-44.663c-12.333-12.33-32.328-12.334-44.661,0 c-167.044,167.036-259.035,389.124-259.035,625.35c0.004,236.219,91.995,458.312,259.03,625.348 c164.65,164.647,378.605,250.606,594.774,258.019v168.973H656.207c-17.443,0-31.581,14.134-31.581,31.582 c0,17.439,14.138,31.582,31.581,31.582h694.789c17.446,0,31.582-14.143,31.582-31.582c0-17.448-14.136-31.582-31.582-31.582 h-315.814V1565.06c215.475-7.878,428.613-93.819,592.751-257.947c12.327-12.337,12.327-32.331,0-44.668 C1615.596,1250.118,1595.601,1250.118,1583.266,1262.444z"}),(0,a.createElement)(r.Path,{d:"M389.367,972.961c77.779,163.801,214.692,287.502,385.518,348.33 c73.614,26.205,150.222,39.503,227.686,39.503c0.018,0,0,0,0.018,0c286.303,0,543.235-181.269,639.417-451.066 c0.044-0.106,0.079-0.211,0.114-0.317c60.801-170.812,51.453-355.075-26.32-518.855c-77.783-163.798-214.698-287.5-385.524-348.318 c-73.613-26.214-150.214-39.504-227.669-39.504c-286.417,0-543.43,181.375-639.542,451.326 C302.245,624.884,311.585,809.167,389.367,972.961z M446.42,945.868c-14.949-31.48-27.083-63.803-36.441-96.662 c0.838-0.817,1.635-1.688,2.393-2.615c43.204-53.021,175.521-186.786,267.388-169.374c40.816,7.734,75.588,0.683,103.345-20.987 c59.436-46.395,65.115-144.487,68.508-203.097c0.304-5.273,0.585-10.158,0.89-14.563c1.921-27.88-5.944-61.956-13.553-94.909 c-5.899-25.545-18.174-78.703-10.19-88.554c0,0,0.326-0.213,1.207-0.476c31.467-9.322,74.722-45.061,128.569-106.224 c34.64-39.342,53.788-64.954,64.274-82.143c42.879,1.416,85.402,7.333,127.145,17.683 c-48.473,39.591-108.728,101.778-99.846,161.004c5.912,39.446,38.252,67.783,96.119,84.221 c193.551,54.985,221.572,85.758,248.914,183.415c21.281,75.993,90.735,136.785,153.167,136.776c3.895,0,7.772-0.235,11.605-0.72 c13.498-1.711,35.934-7.961,55.487-29.354c7.947,77.48,0.951,156.189-21.123,232.574c-28.98-13.875-71.842-27.887-117.522-20.267 c-65.101,10.863-98.348-100.23-114.825-195.311c-18.506-106.747-79.05-109.385-104.218-105.567 c-63.232,9.585-128.625,93.667-120.642,155.116c7.473,57.486-37.309,155.165-77.844,191.843c-5.7,5.159-31.643-5.928-48.816-13.266 c-40.667-17.375-108.723-46.45-157.769,17.456c-48.292,62.918-179.892,224.911-229.164,285.42 C548.817,1109.103,488.206,1033.868,446.42,945.868z M1002.57,1297.631c-70.23,0-139.705-12.063-206.502-35.846 c-42.724-15.211-83.096-34.781-120.66-58.238c51.531-63.312,179.518-220.92,227.339-283.219 c16.684-21.741,33.549-18.894,82.852,2.167c35.775,15.28,80.301,34.305,116.007,2.019 c54.984-49.751,108.622-165.878,98.102-246.822c-3.261-25.092,36.524-79.834,67.479-84.524 c20.444-3.06,29.521,36.665,32.508,53.903c15.183,87.606,37.001,150.184,66.705,191.308 c40.305,55.805,87.915,60.994,120.739,55.521c33.184-5.524,66.211,7.53,86.408,18.168 C1480.105,1143.715,1253.828,1297.64,1002.57,1297.631z M1558.742,417.648c12.513,26.35,23.034,53.29,31.635,80.635 c-1.869,52.173-16.073,84.869-38.403,87.697c-30.663,3.879-81.065-37.067-96.003-90.422 c-36.04-128.711-87.977-169.047-292.481-227.144c-30.522-8.673-49.081-20.633-50.913-32.815 c-4.67-31.031,58.112-91.087,111.345-128.366C1371.941,164.149,1490.461,273.863,1558.742,417.648z M422.567,475.245 C502.993,249.357,707.646,91.966,942.826,68.929c-38.164,47.875-100.911,116.285-130.8,125.143 c-67.802,20.089-48.624,103.151-34.622,163.8c6.569,28.444,13.359,57.86,12.086,76.354c-0.318,4.613-0.617,9.732-0.935,15.257 c-2.595,44.788-7.419,128.156-44.314,156.956c-12.984,10.14-30.233,12.986-52.708,8.721 c-63.978-12.114-139.323,17.366-224.004,87.655c-30.065,24.959-55.778,50.538-74.142,70.084 C378.453,673.931,388.05,572.199,422.567,475.245z"}),(0,a.createElement)(r.Path,{d:"M1035.578,629.173L1035.578,629.173c11.941,0,23.121-3.231,33.23-9.603 c37.053-23.346,52.023-62.746,65.241-97.506c9.993-26.279,19.422-51.1,36.604-67.192c16.565-15.509,22.1-35.773,14.821-54.208 c-8.874-22.458-33.776-35.337-68.31-35.337c-59.857,0-137.49,36.837-212.991,101.066c-11.635,9.902-14.518,26.715-6.838,39.926 C914.091,535.139,973.579,629.169,1035.578,629.173z M1109.791,428.827c-16.354,22.318-26.013,47.727-34.78,70.793 c-11.059,29.075-20.61,54.201-39.679,66.386c-13.183-0.397-43.514-31.319-69.031-68.74 C1038.116,441.573,1088.202,430.667,1109.791,428.827z"})),graduation:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1782.237,564.721L917.14,6.075c-10.442-6.742-23.85-6.738-34.283,0L17.763,564.721 c-9.009,5.818-14.453,15.813-14.453,26.541s5.443,20.723,14.453,26.541L316.79,810.904c-0.313,1.79-0.506,3.619-0.506,5.499 v365.474c0,70.584,64.633,134.248,181.99,179.271c107.807,41.356,250.473,64.136,401.725,64.136s293.923-22.779,401.729-64.136 c117.357-45.023,181.99-108.688,181.99-179.271V816.403c0-1.88-0.193-3.708-0.51-5.499l105.36-68.036v585.294 c-32.948,12.732-56.419,44.662-56.419,82.047c0,36.23,22.017,67.401,53.364,80.881l-61.275,269.287 c-2.134,9.371,0.114,19.205,6.108,26.72c5.994,7.511,15.084,11.883,24.696,11.883h130.237c0.021,0,0.052,0,0.088,0 c17.449,0,31.594-14.14,31.594-31.594c0-3.271-0.494-6.427-1.42-9.397l-60.732-266.898c31.348-13.479,53.362-44.65,53.362-80.881 c0-37.385-23.469-69.314-56.417-82.047v-626.1l130.483-84.26c9.01-5.818,14.453-15.813,14.453-26.541 S1791.247,570.539,1782.237,564.721z M1620.16,1435.033c-13.689,0-24.823-11.134-24.823-24.824 c0-13.685,11.134-24.824,24.823-24.824s24.824,11.14,24.824,24.824C1644.984,1423.899,1633.85,1435.033,1620.16,1435.033z M1594.631,1735.791l25.529-112.182l25.529,112.182H1594.631z M1420.529,1181.877c0,85.244-213.773,180.219-520.531,180.219 c-306.753,0-520.527-94.975-520.527-180.219V851.38l503.386,325.071c5.218,3.372,11.178,5.056,17.141,5.056 c5.959,0,11.923-1.684,17.142-5.056l503.39-325.071V1181.877z M899.998,1112.302L93.142,591.261L899.998,70.223l806.86,521.039 L899.998,1112.302z"}),(0,a.createElement)(r.Path,{d:"M787.935,591.261c0,61.795,50.273,112.068,112.063,112.068c61.795,0,112.068-50.273,112.068-112.068 c0-61.792-50.273-112.063-112.068-112.063C838.208,479.198,787.935,529.469,787.935,591.261z M948.878,591.261 c0,26.953-21.927,48.88-48.88,48.88c-26.952,0-48.876-21.927-48.876-48.88c0-26.95,21.924-48.876,48.876-48.876 C926.951,542.385,948.878,564.311,948.878,591.261z"})),graph:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1548.188,307.531c-14.104-15.124-28.736-29.756-43.855-43.868l-43.869,43.868L932.02,835.979V88.261V26.19 c-10.297-0.357-20.635-0.6-31.018-0.6c-10.381,0-20.714,0.242-31.012,0.6C396.155,42.598,15.733,433.107,15.733,910.865 c0,488.131,397.129,885.256,885.269,885.256c242.229,0,462.014-97.82,622.015-256c1.378-0.988,2.715-2.063,3.95-3.302 c1.234-1.234,2.316-2.567,3.301-3.945c158.176-160.005,256-379.796,256-622.009 C1786.268,677.924,1695.784,465.752,1548.188,307.531z M869.99,88.261v791.578H78.412C94.39,450.525,440.663,104.252,869.99,88.261 z M901.002,1734.087c-443.551,0-806.223-352.599-822.59-792.214h809.74l572.312,572.308 C1313.488,1650.555,1116.829,1734.087,901.002,1734.087z M1504.332,1470.321L944.871,910.865l559.451-559.47 c136.383,146.966,219.916,343.634,219.916,559.47C1724.238,1126.688,1640.705,1323.346,1504.332,1470.321z"}),(0,a.createElement)(r.Path,{d:"M1047.338,573.287c3.467,1.437,7.1,2.134,10.705,2.134c7.282,0,14.439-2.845,19.798-8.194l363.142-363.146 c5.248-5.251,8.195-12.368,8.195-19.789c0-7.421-2.947-14.538-8.199-19.79C1338.694,62.222,1202.705,5.887,1058.047,5.878 c-7.421,0-14.537,2.948-19.785,8.195c-5.251,5.251-8.199,12.369-8.199,19.793v513.566 C1030.063,558.754,1036.88,568.958,1047.338,573.287z M1086.035,62.638c109.898,6.214,212.929,48.893,295.021,122.212 l-295.021,295.02V62.638z"})),group:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)("line",{fill:"none",stroke:"currentcolor",strokeWidth:"10",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",x1:"904.328",y1:"1132.364",x2:"904.328",y2:"895.221"}),(0,a.createElement)("line",{fill:"none",stroke:"currentcolor",strokeWidth:"10",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",x1:"1122.56",y1:"1262.028",x2:"915.405",y2:"1146.604"}),(0,a.createElement)("line",{fill:"none",stroke:"currentcolor",strokeWidth:"10",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",x1:"686.239",y1:"1262.028",x2:"893.394",y2:"1146.604"}),(0,a.createElement)(r.Path,{d:"M974.697,512.844v-7.453c57.008-26.082,97.412-80.138,106.207-142.043 c24.032-8.717,40.98-31.933,40.98-58.221c0-22.63-12.225-42.889-31.146-53.695c1.969-6.164,3.585-12.379,4.831-18.586 c10.066-49.925-1.4-100.947-32.293-143.668c-30.385-42.033-76.063-71.018-128.615-81.617c-14.133-2.85-28.541-4.294-42.824-4.294 c-45.073,0-89.049,14.537-123.827,40.929c-35.818,27.174-60.31,65.782-68.967,108.718c-6.563,32.551-3.881,66.134,7.72,97.641 c-19.665,10.569-32.688,31.348-32.688,54.58c0,26.629,17.197,49.926,41.586,58.449c9.035,63.375,50.755,117.946,109.634,143.38 v5.885C703.003,540.551,618.678,632.024,618.678,738.92v28.549h106.436v-0.051h11.82v0.051h444.389V738.92 C1181.322,632.02,1096.998,540.551,974.697,512.844z M891.838,60.37c10.487,0,21.104,1.066,31.545,3.164 c38.423,7.75,71.671,28.738,93.623,59.098c20.469,28.305,28.713,61.591,23.443,94.254c-28.099-13.11-65.026-26.972-103.875-32.293 c-73.02-9.985-74.189-13.376-78.543-25.997l-13.939-40.344l-32.07,28.373c-3.413,3.005-29.25,25.717-59.067,50.42 c-0.821-10.957-0.134-21.943,2.067-32.853C767.147,104.033,824.688,60.37,891.838,60.37z M770.86,256.186 c20.026-16.2,39.808-32.93,54.121-45.206c19.836,17.894,50.771,22.927,103.848,30.187c36.003,4.926,71.31,19.343,96.846,32.006 v64.342c0,70.252-57.15,127.411-127.402,127.411c-70.257,0-127.412-57.159-127.412-127.411V256.186z M882.394,521.32 c11.808,1.04,23.542,0.916,35.208-0.313v17.627l-17.653,9.783l-17.554-9.753V521.32z M678.691,710.336 c13.105-63.942,69.255-117.096,146.604-138.622v0.551l74.606,41.448l74.796-41.427v-0.572 c77.361,21.526,133.515,74.692,146.611,138.647l-384.611-0.047v0.021H678.691z"}),(0,a.createElement)(r.Path,{d:"M376.487,1542.108v-7.458c57.009-26.082,97.414-80.139,106.208-142.039 c24.032-8.717,40.98-31.932,40.98-58.221c0-22.635-12.225-42.885-31.146-53.699c1.969-6.164,3.584-12.379,4.835-18.586 c10.062-49.921-1.406-100.942-32.293-143.668c-30.39-42.029-76.063-71.013-128.615-81.608c-14.128-2.854-28.541-4.298-42.829-4.298 c-45.072,0-89.049,14.537-123.827,40.929c-35.818,27.174-60.314,65.782-68.971,108.718c-6.559,32.551-3.877,66.139,7.724,97.641 c-19.665,10.57-32.689,31.349-32.689,54.576c0,26.633,17.198,49.93,41.583,58.449c9.035,63.375,50.755,117.947,109.638,143.385 v5.88c-122.292,27.707-206.617,119.176-206.617,226.067v28.558h106.436v-0.12h11.816v0.12h444.393v-28.558 C583.113,1661.284,498.788,1569.815,376.487,1542.108z M293.628,1089.631c10.488,0,21.105,1.065,31.545,3.172 c38.423,7.745,71.675,28.729,93.622,59.094c20.478,28.309,28.718,61.604,23.443,94.254c-28.103-13.11-65.034-26.977-103.874-32.294 c-73.02-9.985-74.189-13.38-78.548-25.996l-13.935-40.345l-32.092,28.391c-5.541,4.879-30.295,26.59-59.042,50.402 c-0.825-10.956-0.138-21.938,2.063-32.852C168.938,1133.297,226.476,1089.631,293.628,1089.631z M172.651,1285.445 c20.013-16.188,39.799-32.926,54.121-45.205c19.833,17.894,50.772,22.932,103.848,30.191c36.012,4.922,71.31,19.338,96.846,32.006 v64.342c0,70.252-57.155,127.406-127.403,127.406c-70.256,0-127.412-57.154-127.412-127.406V1285.445z M284.185,1550.584 c11.816,1.041,23.529,0.916,35.208-0.317v17.632l-17.657,9.778l-17.55-9.753V1550.584z M116.373,1739.6v0.025H80.474 c13.093-63.959,69.255-117.121,146.612-138.646v0.55l74.606,41.444l74.795-41.427v-0.567 c77.362,21.525,133.52,74.688,146.612,138.646l-384.611-0.051v0.025H116.373z"}),(0,a.createElement)(r.Path,{d:"M1572.91,1542.108v-7.458c57.009-26.082,97.414-80.139,106.207-142.039 c24.033-8.717,40.98-31.932,40.98-58.221c0-22.631-12.224-42.889-31.141-53.699c1.965-6.164,3.58-12.375,4.826-18.586 c10.067-49.921-1.4-100.942-32.293-143.668c-30.381-42.029-76.059-71.013-128.61-81.608c-14.129-2.854-28.537-4.298-42.833-4.298 c-45.068,0-89.045,14.537-123.822,40.929c-35.818,27.174-60.311,65.782-68.967,108.718c-6.564,32.551-3.882,66.13,7.719,97.641 c-19.664,10.57-32.688,31.349-32.688,54.576c0,26.633,17.198,49.93,41.587,58.449c9.035,63.379,50.754,117.951,109.633,143.385 v5.88c-122.296,27.707-206.621,119.176-206.621,226.067v28.558h106.436v-0.052h11.825v0.052h444.384v-28.558 C1779.531,1661.284,1695.207,1569.815,1572.91,1542.108z M1490.047,1089.631c10.488,0,21.104,1.065,31.55,3.172 c38.423,7.745,71.671,28.729,93.622,59.094c20.478,28.309,28.722,61.611,23.447,94.254c-28.103-13.11-65.033-26.977-103.883-32.294 c-73.016-9.985-74.185-13.38-78.539-26.001l-13.939-40.34l-32.151,28.442c-5.562,4.9-30.381,26.658-58.986,50.351 c-0.821-10.956-0.134-21.943,2.067-32.852C1365.36,1133.297,1422.894,1089.631,1490.047,1089.631z M1369.074,1285.445 c20.073-16.238,39.828-32.951,54.12-45.205c19.833,17.894,50.769,22.932,103.849,30.191c36.002,4.922,71.309,19.338,96.846,32.006 v64.342c0,70.252-57.15,127.406-127.403,127.406c-70.257,0-127.411-57.154-127.411-127.406V1285.445z M1480.607,1550.584 c11.803,1.041,23.533,0.912,35.203-0.317v17.632l-17.652,9.778l-17.551-9.753V1550.584z M1276.9,1739.6 c13.109-63.946,69.255-117.1,146.607-138.621v0.55l74.607,41.444l74.795-41.427v-0.567c77.37,21.521,133.52,74.688,146.612,138.646 l-384.616-0.051v0.025H1276.9z"})),heart:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1598.646,483.59c0-159.066-151.555-242.271-232.804-242.271c-17.445,0-31.592,14.14-31.592,31.594 c0,17.444,14.146,31.592,31.592,31.592c50.731,0,169.618,60.929,169.618,179.084c0,17.444,14.147,31.593,31.593,31.593 C1584.508,515.183,1598.646,501.034,1598.646,483.59z"}),(0,a.createElement)(r.Path,{d:"M1245.167,67.346c-8.005,0-15.974,0.176-23.897,0.515c-124.318-6.434-239.696,39.191-324.708,117.896 C802.382,111.649,683.698,67.346,554.832,67.346C249.563,67.346,1.211,315.7,1.211,620.971 c0,169.59,76.672,321.587,197.146,423.214l679.305,679.309c5.924,5.923,13.963,9.246,22.337,9.246 c8.384,0,16.413-3.323,22.347-9.246l679.218-679.238c120.519-101.636,197.227-253.659,197.227-423.285 C1798.79,315.7,1550.438,67.346,1245.167,67.346z M899.999,1656.474l-505.608-505.617L241.498,997.96l-60.105-60.101 c-0.744-0.749-1.52-1.445-2.323-2.098c-71.524-85.24-114.673-195.066-114.673-314.791c0-270.426,220.008-490.44,490.435-490.44 c111.765,0,214.891,37.604,297.452,100.783c0.309,0.229,0.599,0.476,0.908,0.714c-56.627,69.7-92.777,157.083-98.507,253.368 c-1.04,17.418,12.235,32.377,29.654,33.409c0.643,0.044,1.278,0.062,1.913,0.062c16.581,0,30.508-12.94,31.505-29.715 c5.059-85.082,37.825-162.045,88.959-222.683c13.021-12.438,26.683-24.197,40.999-35.154 c76.84-58.798,171.504-95.406,274.348-100.202c1.604,0.048,3.183-0.013,4.733-0.194c6.101-0.229,12.218-0.387,18.371-0.387 c270.434,0,490.438,220.014,490.438,490.44c0,119.707-43.133,229.515-114.648,314.755c-0.811,0.671-1.596,1.375-2.354,2.133 l-60.153,60.146l-152.843,152.852L899.999,1656.474z"})),hourglass:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1291.915,534.357v-332.82h205.125c17.342,0,31.397-14.056,31.397-31.396V33.361 c0-17.34-14.056-31.396-31.397-31.396H302.959c-17.34,0-31.396,14.055-31.396,31.396v136.779c0,17.341,14.056,31.396,31.396,31.396 h205.126v332.82c0,163.429,98.684,304.023,239.057,364.271c-140.373,60.465-239.057,201.569-239.057,365.587v334.248H302.959 c-17.34,0-31.396,14.056-31.396,31.396v136.779c0,17.34,14.056,31.396,31.396,31.396H1497.04c17.342,0,31.397-14.056,31.397-31.396 v-136.779c0-17.34-14.056-31.396-31.397-31.396h-205.125v-334.248c0-164.019-98.686-305.122-239.057-365.587 C1193.229,838.381,1291.915,697.787,1291.915,534.357z M334.355,64.758h1131.289v73.987H1260.52H539.48H334.355V64.758z M1229.124,201.537v301.424H570.876V201.537H1229.124z M624.024,1591.386L900,1365.789l275.973,225.597H624.024z M1465.645,1735.243H334.355v-73.987H539.48h721.039h205.125V1735.243z M1229.124,1264.216v289.515l-309.252-252.802 c-11.559-9.447-28.183-9.447-39.742,0L570.876,1553.73v-289.515c0-184.304,147.644-334.248,329.124-334.248 C1081.477,929.968,1229.124,1079.912,1229.124,1264.216z M900,867.177c-171.004,0-311.915-132.581-327.617-301.424h655.234 C1211.914,734.596,1071.004,867.177,900,867.177z"}),(0,a.createElement)(r.Path,{d:"M900,1172.91c17.34,0,31.396-14.056,31.396-31.397v-105.4c0-17.34-14.056-31.396-31.396-31.396 c-17.34,0-31.396,14.056-31.396,31.396v105.4C868.604,1158.854,882.66,1172.91,900,1172.91z"})),house:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1783.877,760.195L1448.221,519.4c0.936-5.06,1.49-10.252,1.49-15.58V88.032 c0-47.163-38.371-85.533-85.533-85.533h-124.246c-47.162,0-85.533,38.37-85.533,85.533v220.587L918.581,139.452 c-4.537-3.26-9.654-5.051-14.847-5.618c-1.234-0.156-2.483-0.246-3.732-0.255c-1.249,0.009-2.497,0.099-3.732,0.255 c-5.188,0.567-10.309,2.358-14.846,5.618l-865.3,620.743c-14.143,10.142-17.383,29.829-7.236,43.971 c6.155,8.581,15.822,13.149,25.63,13.149c6.361,0,12.78-1.921,18.341-5.913L900.002,203.69l254.396,182.496l63.024,45.211 l132.331,94.932l64.783,46.473l332.604,238.601c5.562,3.991,11.979,5.913,18.341,5.913c9.809,0,19.476-4.568,25.631-13.149 C1801.26,790.027,1798.02,770.337,1783.877,760.195z M1217.423,353.834V88.032c0-12.411,10.099-22.509,22.509-22.509h124.246 c12.41,0,22.509,10.098,22.509,22.509v387.226L1217.423,353.834z"}),(0,a.createElement)(r.Path,{d:"M1534.746,800.935c-17.404,0-31.512,14.107-31.512,31.512v894.17c0,1.895-6.37,7.86-17.418,7.86h-353.228 v-548.772c0-17.404-14.107-31.512-31.513-31.512H698.928c-17.404,0-31.512,14.107-31.512,31.512v548.772H314.188 c-11.048,0-17.418-5.966-17.418-7.86v-894.17c0-17.405-14.107-31.512-31.512-31.512c-17.404,0-31.512,14.107-31.512,31.512v894.17 c0,1.169,0.136,2.303,0.197,3.459c2.071,37.474,37.214,67.426,80.245,67.426h384.74c17.405,0,31.512-14.108,31.512-31.513v-548.771 h339.125v548.771c0,17.404,14.107,31.513,31.512,31.513h384.74c43.031,0,78.174-29.952,80.244-67.426 c0.063-1.156,0.198-2.29,0.198-3.459v-894.17C1566.259,815.042,1552.151,800.935,1534.746,800.935z"}),(0,a.createElement)(r.Path,{d:"M1073.253,782.176c0-95.411-77.624-173.04-173.04-173.04s-173.04,77.628-173.04,173.04 c0,95.416,77.624,173.04,173.04,173.04S1073.253,877.592,1073.253,782.176z M790.198,782.176 c0-60.663,49.352-110.016,110.016-110.016s110.015,49.353,110.015,110.016c0,60.664-49.352,110.016-110.015,110.016 S790.198,842.84,790.198,782.176z"})),id:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M975.824,1161.939v-7.569c57.861-26.47,98.873-81.339,107.801-144.171 c24.396-8.848,41.596-32.416,41.596-59.1c0-22.972-12.408-43.534-31.613-54.503c1.998-6.256,3.639-12.565,4.903-18.865 c10.218-50.672-1.423-102.46-32.774-145.828c-30.846-42.665-77.207-72.085-130.549-82.844 c-14.346-2.889-28.971-4.354-43.473-4.354c-45.75,0-90.384,14.751-125.688,41.54c-36.353,27.583-61.213,66.775-70,110.353 c-6.666,33.045-3.944,67.129,7.836,99.109c-19.965,10.732-33.185,31.823-33.185,55.4c0,27.033,17.461,50.681,42.216,59.328 c9.171,64.328,51.518,119.72,111.282,145.535v5.973c-124.135,28.12-209.728,120.969-209.728,229.471v28.979h108.036v-0.052h11.998 v0.052h451.071v-28.979C1185.553,1282.908,1099.959,1190.063,975.824,1161.939z M891.715,702.663 c10.646,0,21.422,1.082,32.024,3.211c38.996,7.871,72.748,29.171,95.025,59.991c20.776,28.726,29.145,62.513,23.796,95.671 c-28.517-13.312-66.004-27.382-105.436-32.783c-74.119-10.131-75.306-13.578-79.721-26.388l-14.153-40.951l-32.548,28.804 c-3.464,3.045-29.694,26.1-59.956,51.178c-0.838-11.125-0.14-22.277,2.094-33.351 C765.153,746.982,823.557,702.663,891.715,702.663z M768.923,901.422c20.323-16.443,40.401-33.424,54.93-45.885 c20.139,18.163,51.536,23.272,105.41,30.641c36.544,5,72.382,19.633,98.306,32.487v65.31c0,71.313-58.01,129.322-129.318,129.322 c-71.317,0-129.327-58.01-129.327-129.322V901.422z M882.134,1170.543c11.98,1.057,23.892,0.93,35.732-0.318v17.893l-17.914,9.931 l-17.818-9.899V1170.543z M675.364,1362.4c13.307-64.903,70.296-118.855,148.812-140.705v0.559l75.724,42.072l75.925-42.051v-0.58 c78.524,21.85,135.522,75.814,148.813,140.731l-390.391-0.048v0.021H675.364z"}),(0,a.createElement)(r.Path,{d:"M1185.553,1546.793H614.448c-17.273,0-31.274-14-31.274-31.273s14.001-31.273,31.274-31.273h571.104 c17.272,0,31.273,14,31.273,31.273S1202.825,1546.793,1185.553,1546.793z"}),(0,a.createElement)(r.Path,{d:"M1581.322,190.83h-529.979V95.817c0-46.806-38.08-84.886-84.886-84.886H833.543 c-46.806,0-84.886,38.08-84.886,84.886v95.012H218.679c-46.807,0-84.886,38.08-84.886,84.886v1428.468 c0,46.805,38.08,84.885,84.886,84.885h1362.644c46.805,0,84.885-38.08,84.885-84.885V275.716 C1666.207,228.909,1628.127,190.83,1581.322,190.83z M811.205,95.817c0-12.317,10.021-22.339,22.338-22.339h132.914 c12.316,0,22.338,10.022,22.338,22.339v95.012v62.547v128.372c0,12.316-10.021,22.338-22.338,22.338H833.543 c-12.316,0-22.338-10.021-22.338-22.338V253.377V190.83V95.817z M1603.66,1704.184c0,12.316-10.021,22.338-22.338,22.338H218.679 c-12.317,0-22.339-10.021-22.339-22.338V275.716c0-12.317,10.022-22.339,22.339-22.339h529.979v128.372 c0,46.806,38.08,84.886,84.886,84.886h132.914c46.806,0,84.886-38.08,84.886-84.886V253.377h529.979 c12.316,0,22.338,10.022,22.338,22.339V1704.184z"})),idea:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M900.114,54.882c-329.509,0-597.583,268.077-597.583,597.59c0,219.592,118.159,418.518,309.714,523.794 v152.835h-0.127v122.121h-0.172v185.238h172.682c3.58,60.518,53.924,108.656,115.315,108.656 c61.39,0,111.736-48.139,115.31-108.656h172.571v-122.122h0.177v-185.237h-0.019v-152.835 c191.557-105.276,309.715-304.203,309.715-523.794C1497.697,322.959,1229.623,54.882,900.114,54.882z M675.235,1392.218h449.649 v59.005H675.235V1392.218z M899.943,1682.002c-29.441,0-48.627-22.507-51.876-45.541h103.788 C948.464,1662.119,926.504,1682.002,899.943,1682.002z M1124.708,1573.344H675.063v-59.005h449.645V1573.344z M1142.116,1129.132 l-17.25,8.778v189.457H931.559V861l187.201-187.21c12.323-12.323,12.323-32.302-0.005-44.63 c-12.318-12.318-32.302-12.323-44.629,0.004L900,803.299L725.875,629.165c-12.323-12.323-32.307-12.328-44.63-0.004 c-12.328,12.328-12.328,32.307-0.005,44.63L868.441,861v466.367H675.362V1137.91l-17.249-8.778 c-180.4-91.778-292.465-274.427-292.465-476.66c0-294.71,239.761-534.471,534.466-534.471 c294.706,0,534.466,239.761,534.466,534.471C1434.58,854.705,1322.516,1037.354,1142.116,1129.132z"}),(0,a.createElement)(r.Path,{d:"M1066.667,246.225c-17.43,0-31.558,14.128-31.558,31.559s14.128,31.558,31.558,31.558 c49.641,0,165.99,59.634,165.99,175.279c0,17.431,14.128,31.559,31.558,31.559c17.431,0,31.559-14.128,31.559-31.559 C1295.773,328.101,1146.624,246.225,1066.667,246.225z"}),(0,a.createElement)(r.Path,{d:"M209.331,712.881c0-17.43-14.128-31.558-31.558-31.558H34.686c-17.43,0-31.558,14.128-31.558,31.558 s14.128,31.558,31.558,31.558h143.087C195.203,744.439,209.331,730.312,209.331,712.881z"}),(0,a.createElement)(r.Path,{d:"M220.157,300.096c6.164,6.163,14.239,9.245,22.317,9.245c8.075,0,16.153-3.082,22.313-9.241 c12.328-12.328,12.328-32.307,0.004-44.629L163.623,154.297c-12.318-12.319-32.303-12.323-44.63-0.004 c-12.327,12.327-12.327,32.307-0.004,44.63L220.157,300.096z"}),(0,a.createElement)(r.Path,{d:"M220.17,1125.662l-101.178,101.174c-12.327,12.327-12.327,32.307-0.004,44.634 c6.164,6.164,14.238,9.246,22.317,9.246c8.074,0,16.153-3.082,22.312-9.246l101.179-101.173 c12.327-12.327,12.327-32.307,0.004-44.625C252.478,1113.344,232.493,1113.344,220.17,1125.662z"}),(0,a.createElement)(r.Path,{d:"M1765.314,681.323h-143.083c-17.43,0-31.559,14.128-31.559,31.558s14.129,31.558,31.559,31.558h143.083 c17.43,0,31.558-14.128,31.558-31.558S1782.744,681.323,1765.314,681.323z"}),(0,a.createElement)(r.Path,{d:"M1557.521,309.341c8.074,0,16.153-3.082,22.316-9.241l101.174-101.173 c12.322-12.327,12.322-32.307,0-44.634c-12.328-12.319-32.307-12.319-44.635,0l-101.173,101.173 c-12.323,12.328-12.323,32.307,0,44.634C1541.368,306.259,1549.447,309.341,1557.521,309.341z"}),(0,a.createElement)(r.Path,{d:"M1579.829,1125.662c-12.318-12.318-32.302-12.318-44.63,0.01c-12.323,12.318-12.323,32.298,0.005,44.625 l101.178,101.173c6.159,6.164,14.238,9.246,22.312,9.246c8.075,0,16.154-3.082,22.318-9.246 c12.322-12.327,12.322-32.307-0.005-44.634L1579.829,1125.662z"})),key:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M246.051,1796.104c-2.663,0-5.348-0.336-7.992-1.025l-166.817-43.505 c-11.095-2.895-19.762-11.557-22.656-22.654L5.044,1562.08c-2.839-10.881,0.3-22.446,8.251-30.397l101.307-101.312 c0.476-0.544,0.968-1.069,1.481-1.587l668.3-668.298c-43.625-93.255-59.486-199.569-44.681-301.964 c16.48-114,68.356-217.425,150.023-299.096C990.027,59.131,1123.381,3.896,1265.223,3.896 c141.839,0,275.184,55.23,375.479,155.521c207.043,207.047,207.043,543.934,0,750.977 c-100.277,100.277-233.622,155.512-375.456,155.517c-77.911,0.005-155.419-17.284-225.608-50.161l-198.6,198.589 c-5.219,5.22-12.101,8.454-19.45,9.14l-96.017,8.972l-8.967,96.021c-0.686,7.35-3.92,14.23-9.14,19.454l-0.805,0.805 c-5.224,5.219-12.104,8.454-19.454,9.14l-96.02,8.967l-8.965,96.018c-0.689,7.371-3.938,14.27-9.184,19.498l-1.237,1.233 c-5.215,5.197-12.081,8.414-19.413,9.1l-95.584,8.927l-8.925,95.58c-0.688,7.354-3.92,14.235-9.144,19.459l-67.392,67.384 c-0.521,0.521-1.057,1.021-1.604,1.498l-101.283,101.289C262.438,1792.842,254.346,1796.104,246.051,1796.104z M105.198,1694.951 l131.287,34.242l90.004-90.012c0.518-0.517,1.05-1.017,1.598-1.494l57.77-57.762l10.304-110.354 c1.417-15.167,13.429-27.18,28.596-28.598l96.718-9.034l9.069-97.144c1.416-15.168,13.429-27.18,28.596-28.599l96.753-9.038 l9.038-96.755c1.419-15.163,13.427-27.176,28.594-28.594l110.792-10.351l206.612-206.602c9.797-9.802,24.846-12.091,37.114-5.652 c66.53,34.905,141.635,53.353,217.198,53.348c124.917-0.005,242.346-48.646,330.656-136.959 c182.347-182.343,182.347-479.03,0-661.377c-88.318-88.323-205.758-136.964-330.674-136.964 c-124.92,0-242.363,48.645-330.699,136.977C788.967,349.79,755.365,569.959,850.918,752.09 c6.444,12.277,4.154,27.312-5.648,37.119l-682.855,682.847c-0.473,0.543-0.966,1.073-1.479,1.586l-90.005,90.003L105.198,1694.951 z"}),(0,a.createElement)(r.Path,{d:"M1273.541,713.839c-48.809,0-94.691-19.008-129.203-53.524c-71.242-71.242-71.246-187.168-0.01-258.411 c34.512-34.512,80.395-53.52,129.203-53.52s94.701,19.008,129.217,53.52c34.516,34.516,53.523,80.403,53.523,129.208 c0,48.809-19.008,94.696-53.523,129.208C1368.236,694.831,1322.35,713.839,1273.541,713.839z M1273.531,411.742 c-31.881,0-61.854,12.414-84.398,34.958c-46.541,46.541-46.537,122.273,0.01,168.814c22.543,22.548,52.516,34.967,84.398,34.967 c31.887,0,61.863-12.418,84.407-34.967c22.548-22.543,34.966-52.517,34.966-84.403c0-31.882-12.418-61.859-34.966-84.403 C1335.4,424.161,1305.418,411.742,1273.531,411.742z"})),lamp:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1304.016,1574.496h-210.088c-18.638-114.862-119.3-202.092-243.578-207.916L407.561,923.791 c13.76-18.541,21.918-41.481,21.918-66.292c0-23.781-7.513-45.826-20.252-63.945l371.323-371.323 c-14.206,116.245,24.754,235.776,110.417,321.43c6.104,6.104,14.108,9.158,22.11,9.158c8.001,0,16.007-3.054,22.114-9.162 l126.512-126.511c0.018,0.022,0.035,0.043,0.052,0.061c36.198,36.202,84.324,56.136,135.521,56.136 c51.192,0,99.318-19.934,135.521-56.131c36.198-36.202,56.131-84.328,56.131-135.52c0-51.193-19.938-99.323-56.14-135.521 c-0.018-0.018-0.039-0.035-0.057-0.053l105.893-105.893c12.212-12.216,12.212-32.014,0-44.229 c-73.124-73.12-170.353-113.393-273.775-113.393c-49.339,0-98.874,9.603-144.561,27.904L947.67,37.89 c-19.244-19.24-44.831-29.837-72.042-29.837c-27.21,0-52.798,10.597-72.046,29.841l-70.729,70.733 c-39.714,39.723-39.714,104.353,0,144.08l64.381,64.381l-437.196,437.2c-12.979-5.305-27.158-8.25-42.018-8.25 c-61.458,0-111.459,50.002-111.459,111.46c0,61.463,50.001,111.464,111.459,111.464c13.769,0,26.958-2.525,39.143-7.115 l412.673,412.678c-98.581,24.637-173.751,102.289-189.601,199.971H370.146c-17.272,0-31.272,14-31.272,31.272v156.907 c0,17.271,14,31.271,31.272,31.271h933.87c17.272,0,31.272-14,31.272-31.271v-156.907 C1335.288,1588.496,1321.288,1574.496,1304.016,1574.496z M1288.567,390.4c24.384,24.384,37.816,56.803,37.816,91.291 c0,34.487-13.429,66.907-37.816,91.291c-24.384,24.388-56.803,37.816-91.291,37.816c-34.487,0-66.907-13.429-91.29-37.812 c-0.022-0.022-0.044-0.039-0.065-0.057l182.59-182.59C1288.532,390.357,1288.55,390.383,1288.567,390.4z M777.082,208.482 c-15.335-15.34-15.335-40.295,0-55.634l70.725-70.729c7.43-7.43,17.312-11.521,27.821-11.521s20.392,4.092,27.817,11.521 l86.758,86.754c0.301,0.322,0.598,0.637,0.877,0.92c9.323,9.319,23.488,11.797,35.43,6.183 c42.864-20.169,90.701-30.827,138.339-30.827c76.204,0,148.398,26.076,206.393,74.005L914.146,676.248 c-78.975-95.98-96.844-230.711-43.204-344.701c5.615-11.932,3.141-26.103-6.182-35.43c-0.284-0.284-0.598-0.581-0.917-0.877 L777.082,208.482z M269.104,857.499c0-26.971,21.944-48.915,48.915-48.915s48.915,21.944,48.915,48.915 c0,26.975-21.944,48.92-48.915,48.92S269.104,884.474,269.104,857.499z M837.079,1428.811c95.366,0,174.466,61.813,193.24,145.686 H643.844C662.612,1490.623,741.713,1428.811,837.079,1428.811z M1272.743,1731.402H401.418v-94.361h207.048h457.23h207.047 V1731.402z"}),(0,a.createElement)(r.Path,{d:"M1425.366,673.413c-12.207-12.207-32.01-12.211-44.226,0.004c-12.211,12.211-12.211,32.014,0.004,44.225 l56.703,56.699c6.104,6.104,14.109,9.157,22.11,9.157c8.002,0,16.007-3.054,22.115-9.162c12.211-12.211,12.211-32.014-0.005-44.225 L1425.366,673.413z"}),(0,a.createElement)(r.Path,{d:"M1233.095,744.966c-17.268,0-31.272,14-31.272,31.268l-0.009,80.196c0,17.272,13.996,31.277,31.269,31.277 h0.004c17.268,0,31.272-14,31.272-31.268l0.009-80.196c0-17.272-13.996-31.277-31.268-31.277H1233.095z"}),(0,a.createElement)(r.Path,{d:"M1564.171,494.09l-80.191-0.009h-0.004c-17.269,0-31.272,14-31.272,31.269 c0,17.271,13.995,31.276,31.268,31.276l80.192,0.009c0.004,0,0.004,0,0.004,0c17.268,0,31.272-14,31.272-31.268 C1595.439,508.095,1581.443,494.09,1564.171,494.09z"})),link:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1710.11,89.813c-56.914-56.918-132.584-88.264-213.075-88.264c-80.486,0-156.16,31.34-213.083,88.255 L946.48,427.263c-109.931,109.943-116.968,284.393-21.16,402.64l-95.495,95.494c-53.483-43.448-119.697-67.089-189.552-67.089 c-80.49,0-156.17,31.343-213.083,88.262L89.734,1284.028c-117.487,117.483-117.487,308.662-0.005,426.163 c56.918,56.915,132.599,88.26,213.088,88.26c0.004,0-0.004,0,0.004,0c80.488,0,156.173-31.354,213.091-88.271l337.437-337.453 c56.922-56.912,88.276-132.588,88.276-213.081c0-69.864-23.651-136.072-67.104-189.552l95.489-95.496 c53.493,43.444,119.707,67.086,189.57,67.086c80.49,0,156.175-31.351,213.093-88.268l337.436-337.446 c56.923-56.918,88.269-132.588,88.272-213.083C1798.383,222.393,1767.033,146.718,1710.11,89.813z M878.416,1159.646 c0,63.606-24.776,123.409-69.764,168.387l-337.44,337.454c-44.978,44.979-104.782,69.753-168.394,69.753 c-63.612,0-123.414-24.771-168.391-69.745c-92.841-92.853-92.837-243.93,0-336.77l337.456-337.454 c44.982-44.983,104.785-69.754,168.391-69.754c52.942,0,103.214,17.214,144.53,48.908l-229.112,229.114 c-12.341,12.342-12.341,32.35,0,44.696c6.173,6.169,14.259,9.255,22.351,9.255s16.177-3.086,22.35-9.259L829.5,1015.116 C861.197,1056.43,878.416,1106.699,878.416,1159.646z M1665.414,471.271l-337.44,337.449 c-44.978,44.983-104.78,69.754-168.392,69.754c-52.945,0-103.224-17.213-144.542-48.902l239.749-239.755 c12.342-12.342,12.342-32.35-0.004-44.697c-12.338-12.336-32.35-12.34-44.696,0.005l-239.72,239.729 c-71.336-93.294-64.44-227.634,20.808-312.895L1328.648,134.5c44.982-44.969,104.781-69.74,168.387-69.74 c63.604,0,123.4,24.771,168.379,69.75c44.983,44.974,69.759,104.771,69.759,168.379 C1735.173,366.495,1710.397,426.296,1665.414,471.271z"})),location:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M899.993,1556.267l441.512-441.511c8.202-7.819,26.127-26.384,26.893-27.184l0.36-0.383 c110.946-118.997,172.046-274.141,172.046-436.851c0-353.342-287.463-640.805-640.803-640.805 c-353.342,0-640.805,287.463-640.805,640.805c0,162.714,61.1,317.857,172.038,436.851L899.993,1556.267z M900.001,71.159 c319.355,0,579.179,259.818,579.179,579.18c0,146.968-55.159,287.114-155.315,394.639c-5.202,5.387-19.292,19.873-25.095,25.383 L900.006,1469.1l-424.049-424.315C375.902,937.286,320.82,797.229,320.82,650.339C320.82,330.977,580.634,71.159,900.001,71.159z"}),(0,a.createElement)(r.Path,{d:"M998.745,225.279c110.577,0,325.781,120.91,325.781,342.553c0,17.018,13.789,30.812,30.812,30.812 c17.014,0,30.812-13.794,30.812-30.812c0-115.37-50.989-222.331-143.563-301.184c-73.464-62.566-169.175-102.994-243.842-102.994 c-17.014,0-30.812,13.794-30.812,30.813S981.731,225.279,998.745,225.279z"}),(0,a.createElement)(r.Path,{d:"M1286.716,1361.056c-24.003-9.809-49.854-18.548-77.134-26.264l-50.474,50.478 c148.765,35.502,240.488,98.79,240.488,157.599c0,87.962-205.171,185.974-499.596,185.974 c-294.417,0-499.597-98.012-499.597-185.974c0-58.805,91.723-122.097,240.488-157.599l-50.478-50.478 c-27.271,7.716-53.126,16.455-77.121,26.264c-112.537,45.995-174.513,110.563-174.513,181.813s61.977,135.817,174.513,181.813 c103.793,42.422,241.128,65.785,386.708,65.785c145.582,0,282.921-23.363,386.715-65.785 c112.536-45.995,174.504-110.563,174.504-181.813S1399.252,1407.051,1286.716,1361.056z"}),(0,a.createElement)(r.Path,{d:"M901.771,945.221c-171.172,0-310.434-139.256-310.434-310.425S730.599,324.37,901.771,324.37 c171.172,0,310.434,139.256,310.434,310.425S1072.943,945.221,901.771,945.221z M901.771,385.995 c-137.193,0-248.809,111.612-248.809,248.801s111.616,248.801,248.809,248.801c137.192,0,248.809-111.612,248.809-248.801 S1038.964,385.995,901.771,385.995z"})),lock:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M900,868.536c-113.664,0-206.139,92.473-206.139,206.145c0,72.752,38.923,140.217,100.683,177.107v167.979 h210.914v-167.979c61.764-36.891,100.689-104.355,100.689-177.107C1106.146,961.009,1013.669,868.536,900,868.536z M960.627,1204.401l-18.129,8.493v143.914h-84.996v-143.914l-18.129-8.493c-50.148-23.487-82.554-74.403-82.554-129.721 c0-78.952,64.232-143.185,143.181-143.185c78.952,0,143.189,64.232,143.189,143.185 C1043.189,1129.998,1010.782,1180.914,960.627,1204.401z"}),(0,a.createElement)(r.Path,{d:"M1306.793,621.365V406.939c-1.094-107.793-43.891-208.955-120.511-284.855 C1109.604,46.13,1007.934,4.301,899.996,4.301c-107.933,0-209.604,41.83-286.273,117.788 c-76.617,75.896-119.413,177.057-120.507,285.166v112.333h62.958V407.571c1.898-187.646,156.137-340.313,343.822-340.313 c187.696,0,341.942,152.667,343.839,339.996v214.11H888.52H192.564v474.124c1.906,187.453,76.336,363.382,209.578,495.369 C535.485,1722.948,712.296,1795.7,900.004,1795.7c187.708,0,364.519-72.752,497.863-204.843 c133.242-131.987,207.668-307.916,209.568-495.693V621.365H1306.793z M1544.477,1094.848 c-3.561,351.735-292.671,637.894-644.472,637.894c-351.796,0-640.912-286.158-644.482-637.577v-410.84h237.693h813.578h237.684 V1094.848z"})),man:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M886.355,871.67h53.495c10.102,0,18.296-8.19,18.296-18.292c0-10.102-8.194-18.297-18.296-18.297h-35.2 v-85.604c0-10.104-8.188-18.294-18.294-18.294c-10.102,0-18.29,8.19-18.29,18.294v103.901 C868.065,863.479,876.253,871.67,886.355,871.67z"}),(0,a.createElement)(r.Path,{d:"M1023.146,976.574c8.168-5.93,9.996-17.364,4.066-25.551c-5.922-8.177-17.373-10.006-25.551-4.066 c-101.739,73.761-199.976,3.223-204.197,0.113c-8.101-6-19.54-4.328-25.57,3.771c-6.033,8.099-4.352,19.56,3.747,25.603 c0.814,0.602,55.267,40.208,128.108,40.208C940.389,1016.651,981.693,1006.637,1023.146,976.574z"}),(0,a.createElement)(r.Path,{d:"M722.023,669.317c-21.604,0-39.12,24.242-39.12,54.165c0,29.916,17.517,54.171,39.12,54.171 c21.606,0,39.121-24.256,39.121-54.171C761.145,693.56,743.629,669.317,722.023,669.317z"}),(0,a.createElement)(r.Path,{d:"M787.496,653.241c8.102,5.977,19.524,4.298,25.547-3.792c6.03-8.101,4.352-19.559-3.751-25.594 c-29.785-22.174-104.559-50.742-174.351-0.139c-8.179,5.93-10.004,17.371-4.074,25.546c3.577,4.936,9.162,7.559,14.827,7.559 c3.721,0,7.478-1.13,10.72-3.485C721.58,606.091,784.808,651.267,787.496,653.241z"}),(0,a.createElement)(r.Path,{d:"M1056.352,669.317c-21.615,0-39.127,24.242-39.127,54.165c0,29.916,17.512,54.171,39.127,54.171 c21.597,0,39.118-24.256,39.118-54.171C1095.47,693.56,1077.948,669.317,1056.352,669.317z"}),(0,a.createElement)(r.Path,{d:"M990.863,653.241c2.665-1.942,65.915-47.15,131.09,0.094c3.248,2.355,7.001,3.485,10.719,3.485 c5.67,0,11.252-2.623,14.831-7.559c5.931-8.175,4.11-19.616-4.075-25.546c-69.808-50.607-144.57-22.039-174.353,0.139 c-8.082,6.016-9.745,17.411-3.763,25.516C971.295,657.476,982.738,659.191,990.863,653.241z"}),(0,a.createElement)(r.Path,{d:"M1044.421,1241.034v-73.482c144.013-55.917,249.028-190.594,261.882-350.876 c54.584-8.121,96.594-55.29,96.594-112.094c0-52.986-36.558-97.585-85.777-109.929c9.814-23.683,17.381-48.378,22.441-73.552 c22.416-111.207-3.248-225.034-72.289-320.511c-68.475-94.707-171.558-160.041-290.254-183.967 c-32.013-6.448-64.617-9.723-96.897-9.723c-101.613,0-200.664,32.694-278.898,92.055 c-79.953,60.67-134.599,146.725-153.866,242.316c-15.827,78.522-7.48,159.771,24.14,234.966l7.215,17.158 c-52.042,10.239-91.424,56.193-91.424,111.192c0,57.297,42.746,104.765,98.016,112.271 c13.167,163.313,122.008,300.019,270.279,353.863v70.313c-293.228,54.776-503.231,269.911-503.231,520.054v32.013h184.187v-64.025 H317.726c13.115-155.446,121.035-292.501,281.221-370.137l163.441,370.137H604.229v-188.913v-1.533 c0-16.833-14.332-30.479-32.015-30.479c-17.681,0-32.013,13.646-32.013,30.479v1.533v188.913v19.855v12.157v32.013h1007.448 v-32.013C1547.649,1510.945,1337.645,1295.811,1044.421,1241.034z M930.688,1458.755l-21.867,237.567h-26.049l-21.862-237.567 l34.886-28.459L930.688,1458.755z M797.781,1471.487l20.835,226.429l-84.098-190.454L797.781,1471.487z M993.72,1472.462l61.543,35 l-81.808,185.281L993.72,1472.462z M1081.258,1448.584l-121.021-68.823l84.185-46.617v-26.892 c30.759,6.287,60.437,14.517,88.879,24.479L1081.258,1448.584z M1338.872,704.582c0,20.803-12.967,38.599-31.229,45.833v-81.098 v-10.562C1325.905,665.991,1338.872,683.786,1338.872,704.582z M510.122,353.917C543.173,189.945,698.781,70.929,880.12,70.929 c28.048,0,56.385,2.843,84.252,8.462c102.856,20.733,192.005,77.098,251.014,158.712c58.452,80.838,80.267,176.85,61.413,270.353 c-2.422,12.005-5.504,23.879-9.232,35.546c-74.684-38.646-176.441-81.161-283.574-95.821 c-187.071-25.595-203.602-35.866-221.686-88.241l-15.614-45.238L710.842,346.4c-1.075,0.954-97.289,85.933-194.556,164.338 C501.821,459.388,499.642,405.905,510.122,353.917z M451.313,704.587c0-21.33,13.638-39.487,32.631-46.347v11.077v81.614 C464.951,744.071,451.313,725.916,451.313,704.587z M547.972,783.466V669.317V636.07v-68.66 c67.086-53.777,134.851-111.775,173.301-145.113c36.729,56.681,103.2,68.686,254.046,89.32 c104.311,14.275,205.434,59.292,268.301,92.136v32.317v33.247v114.148c0,191.785-156.039,347.824-347.824,347.824 C704.004,1131.29,547.972,975.251,547.972,783.466z M895.795,1195.314c28.988,0,57.282-3.03,84.592-8.752v44.335v37.194v27.318 l-80.547,44.613l-80.231-44.588v-27.344v-37.194v-42.681C844.309,1192.858,869.77,1195.314,895.795,1195.314z M755.582,1306.252 v26.857l78.91,43.838l-125.97,71.637l-50.614-114.622C689.021,1322.563,721.623,1313.192,755.582,1306.252z M1249.584,1729.075 v-190.446c0-16.833-14.334-30.479-32.012-30.479c-17.688,0-32.014,13.646-32.014,30.479v190.446h-158.163l165.243-374.213 c164.844,76.87,276.295,216.041,289.637,374.213H1249.584z"})),mail:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M531.087,344.727c0.247,0,0.492,0.033,0.739,0.033h453.558c16.819,0,30.444-13.625,30.444-30.436 c0-16.815-13.625-30.435-30.444-30.435H638.226H531.826c-16.811,0-30.44,13.62-30.44,30.435 C501.386,330.885,514.624,344.331,531.087,344.727z"}),(0,a.createElement)(r.Path,{d:"M531.826,497.389h749.422c16.814,0,30.443-13.629,30.443-30.439c0-16.814-13.629-30.439-30.443-30.439 H531.826c-16.811,0-30.44,13.625-30.44,30.439C501.386,483.76,515.016,497.389,531.826,497.389z"}),(0,a.createElement)(r.Path,{d:"M531.826,650.009h749.422c16.814,0,30.443-13.633,30.443-30.444c0-8.872-3.822-16.827-9.877-22.389 c-5.424-4.982-12.625-8.046-20.566-8.046H531.826c-7.938,0-15.143,3.064-20.567,8.046c-6.054,5.562-9.873,13.517-9.873,22.389 C501.386,636.376,515.016,650.009,531.826,650.009z"}),(0,a.createElement)(r.Path,{d:"M1311.691,772.194c0-16.806-13.629-30.436-30.443-30.436H531.826c-16.811,0-30.44,13.629-30.44,30.436 c0,16.815,13.629,30.444,30.44,30.444h749.422C1298.063,802.638,1311.691,789.009,1311.691,772.194z"}),(0,a.createElement)(r.Path,{d:"M1772.088,533.511c-2.481-3.422-5.691-6.4-9.603-8.622l-246.454-139.961v-82.389v-9.853 c-1.264-7.738-5.432-14.501-11.406-19.066l-49.465-42.835l-131.073-113.508l-61.889-53.596c-5.286-4.582-11.866-7.021-18.591-7.275 h-2.197H937.55h-66.904H383.746c-47.809,0-86.705,38.895-86.705,86.696V382.15L61.554,515.893 c-31.678,11.565-54.396,41.913-54.396,77.54v1067.543c0,45.554,37.064,82.618,82.622,82.618h1625.598 c45.558,0,82.623-37.064,82.623-82.618V593.433C1798,569.839,1788.002,548.583,1772.088,533.511z M1614.426,510.814l92.579,52.583 l-11.661,8.301l-179.313,127.664V571.698v-60.883v-55.873L1614.426,510.814z M1405.5,267.454h-132.895V152.361L1405.5,267.454z M357.922,571.698v-60.883v-93.226v-70.01V143.102c0-14.239,11.585-25.825,25.824-25.825h379.699H886.73h34.734h123.285h167.617 v180.296c0,16.631,13.483,30.11,30.119,30.11h212.674v22.668v70.015v90.448v60.883V742.7l-397.298,282.87l-50.781,36.148 l-18.591,13.241l-81.088,57.728l-81.093-57.728l-18.611-13.25l-50.782-36.155L357.922,741.483V571.698z M193.76,510.814 l103.281-58.649v58.649v60.883V698.14L119.448,571.698l-14.597-10.395L193.76,510.814z M68.036,1648.984V609.822l229.005,163.047 l60.88,43.344L710.7,1067.38l-8.372,7.58l-67.267,60.871L68.036,1648.984z M121.495,1682.723l604.294-546.892l35.693-32.304 l45.37,32.304l82.897,59.028c5.283,3.76,11.462,5.637,17.653,5.637c6.187,0,12.369-1.877,17.652-5.637l82.889-59.028l45.354-32.286 l35.686,32.286l604.311,546.892H121.495z M1737.119,1640.271l-557.41-504.439l-67.267-60.871l-8.359-7.563l351.077-249.962 l60.871-43.348l221.088-157.407V1640.271z"})),medal:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1170.537,1120.229l-178.391-25.926l-79.759-161.635c-5.272-10.681-16.147-17.441-28.059-17.441 c-11.906,0-22.783,6.761-28.056,17.441l-79.776,161.63l-178.386,25.931c-11.785,1.711-21.574,9.964-25.253,21.29 c-3.68,11.326-0.611,23.761,7.917,32.071l129.084,125.823l-30.474,177.653c-2.013,11.736,2.811,23.6,12.447,30.601 c9.633,6.991,22.404,7.926,32.944,2.383l159.553-83.88l159.547,83.88c4.573,2.404,9.575,3.592,14.552,3.592 c6.494,0,12.945-2.017,18.393-5.975c9.637-7.001,14.464-18.864,12.447-30.601l-30.465-177.657l129.07-125.819 c8.529-8.314,11.593-20.745,7.918-32.071C1192.107,1130.192,1182.321,1121.939,1170.537,1120.229z M1003.346,1266.085 c-7.376,7.188-10.736,17.541-9,27.693l22.539,131.389l-117.999-62.035c-4.557-2.396-9.555-3.592-14.557-3.592 c-5.001,0-9.999,1.196-14.556,3.592l-118.002,62.035l22.539-131.389c1.741-10.152-1.624-20.505-9-27.693l-95.467-93.054 l131.929-19.178c10.188-1.479,19-7.879,23.556-17.109l59-119.543l58.995,119.538c4.547,9.235,13.355,15.635,23.551,17.114 l131.934,19.178L1003.346,1266.085z"}),(0,a.createElement)(r.Path,{d:"M1784.612,23.339c-5.569-9.776-15.948-15.813-27.191-15.813h-462.282c-11.183,0-21.51,5.966-27.096,15.652 L913.897,637.144c-9.349-0.476-18.752-0.711-28.211-0.733L531.961,23.178c-5.587-9.686-15.918-15.652-27.1-15.652H42.58 c-11.247,0-21.626,6.037-27.191,15.813c-5.561,9.772-5.451,21.779,0.292,31.451l451.452,759.959 c-99.576,103.891-160.847,244.763-160.847,399.686c0,318.734,259.309,578.041,578.039,578.041 c318.728,0,578.03-259.307,578.03-578.041c0-144.814-53.537-277.354-141.842-378.884L1784.315,54.79 C1790.06,45.118,1790.173,33.111,1784.612,23.339z M97.553,70.097h389.239l329.004,570.376 c-114.047,13.535-218.012,60.385-301.861,130.55L97.553,70.097z M1399.784,1214.435c0,284.232-231.237,515.47-515.459,515.47 c-284.229,0-515.468-231.237-515.468-515.47c0-131.891,49.815-252.35,131.586-343.609c14.351-16.018,29.67-31.146,45.89-45.261 c82.522-71.82,188.032-117.836,303.869-125.443c9.267-0.607,18.598-0.969,27.991-1.078c2.042-0.026,4.081-0.079,6.132-0.079 c12.871,0,25.627,0.489,38.267,1.423c8.59,0.629,17.127,1.48,25.594,2.532c113.699,14.115,216.014,65.408,294.402,141.287 c15.678,15.176,30.387,31.329,44.048,48.369C1357.395,980.84,1399.784,1092.771,1399.784,1214.435z M1275.322,789.106 c-80.282-73.867-181.454-125.339-293.529-144.451l331.414-574.558h389.236L1275.322,789.106z"})),megaphone:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1768.976,390.693c-18.385-88.021-44.455-175.106-78.13-260.807c-1.895-4.813-3.701-9.645-5.645-14.455 c-19.858-47.839-63.561-81.251-106.271-81.251c-7.987,0-15.769,1.196-22.961,3.491c-84.593,26.491-168.938,58.602-250.511,89.656 c-178.601,68.001-363.281,138.31-555.392,150.404c-22.021,1.429-41.681,8.643-57.019,19.748 c-12.912-10.34-29.055-16.564-46.604-16.564H254.01c-42.107,0-76.362,35.469-76.362,79.066v139.127 c-5.021-1.016-10.208-1.565-15.523-1.565H86.355c-43.307,0-78.543,35.469-78.543,79.066v261.549 c0,43.593,35.236,79.062,78.543,79.062h75.769c5.315,0,10.502-0.55,15.523-1.564v139.136c0,43.598,34.255,79.066,76.362,79.066 h93.205l328.811,570.19c21.968,38.102,62.958,61.771,106.974,61.771c21.528,0,42.811-5.707,61.552-16.513 c58.922-33.991,79.22-109.585,45.246-168.521l-257.742-446.929h14.389c17.559,0,33.701-6.229,46.618-16.578 c15.343,11.104,35.02,18.323,57.067,19.761c192.032,12.085,376.704,82.395,555.292,150.386 c81.585,31.064,165.944,63.183,250.4,89.631c7.346,2.339,15.118,3.525,23.098,3.525c42.709,0,86.412-33.407,106.401-81.532 c1.908-4.726,3.688-9.479,5.549-14.213c33.644-85.572,59.696-172.592,78.076-260.577c15.141-95.359,23.243-203.902,23.243-316.88 C1792.188,594.476,1784.094,486.008,1768.976,390.693z M162.125,854.196H86.355c-8.555,0-15.519-7.192-15.519-16.038V576.609 c0-8.845,6.964-16.042,15.519-16.042h75.769c8.559,0,15.523,7.197,15.523,16.042v261.549 C177.647,847.004,170.684,854.196,162.125,854.196z M835.2,1612.268c16.622,28.83,6.687,65.815-22.135,82.442 c-9.175,5.289-19.572,8.085-30.065,8.085c-21.555,0-41.624-11.58-52.377-30.229l-310.654-538.709h139.334L835.2,1612.268z M646.443,1070.833h-50.737h-72.753H383.624h-72.753H254.01c-7.231,0-13.338-7.346-13.338-16.042V838.158V576.609V359.981 c0-8.845,5.983-16.042,13.338-16.042h392.434c7.364,0,13.352,7.196,13.352,16.042v694.81 C659.795,1063.637,653.807,1070.833,646.443,1070.833z M1327.845,1228.53c-182.979-69.667-372.188-141.704-573.689-154.387 c-18.842-1.227-31.336-11.659-31.336-18.033v-1.319v-694.81v-1.332c0-6.366,12.489-16.802,31.266-18.02 c201.585-12.692,390.807-84.729,573.795-154.4c56.083-21.348,113.498-43.162,171.141-63.231 c-20.847,33.525-39.302,79.743-55.251,138.547c-15.141,55.823-27.055,120.202-35.504,190.01 c-2.563,21.146-4.81,42.771-6.714,64.844c-5.271,61.033-8.04,125.244-8.04,190.981c0,65.746,2.77,129.957,8.04,190.994 c1.904,22.074,4.155,43.699,6.714,64.844c8.449,69.804,20.363,134.177,35.504,190.005c15.949,58.809,34.409,105.03,55.26,138.556 C1441.404,1271.719,1383.958,1249.896,1327.845,1228.53z M1456.536,707.379c0-64.154,2.699-126.677,7.816-185.956 c58.347,23.528,101.1,97.956,101.1,185.96c0,87.999-42.753,162.432-101.096,185.96 C1459.235,834.065,1456.536,771.538,1456.536,707.379z M1706.329,1017.023c-6.938,43.153-15.364,83.374-25.217,119.704 c-15.338,56.563-31.648,94.238-46.371,118.593c-17.805,29.455-33.288,39.399-41.888,39.399c-15.707,0-54.363-33.021-88.258-157.992 c-14.253-52.561-25.521-113.272-33.579-179.265c90.097-26.386,157.46-128.458,157.46-250.079s-67.368-223.688-157.46-250.075 c8.059-65.997,19.326-126.708,33.579-179.269c33.895-124.976,72.555-157.992,88.258-157.992c8.595,0,24.074,9.936,41.87,39.373 c14.728,24.351,31.046,62.035,46.389,118.619c9.883,36.453,18.337,76.828,25.287,120.148 C1750.309,603.387,1750.282,811.917,1706.329,1017.023z"})),message:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1768.407,80.034H31.592C14.144,80.034,0,94.178,0,111.627v1247.362c0,17.453,14.144,31.593,31.592,31.593 h174.524v297.79c0,11.292,6.021,21.72,15.796,27.36c4.888,2.821,10.339,4.232,15.796,4.232c5.452,0,10.908-1.411,15.796-4.232 l563.182-325.15h951.721c17.449,0,31.593-14.14,31.593-31.593V111.627C1800,94.178,1785.856,80.034,1768.407,80.034z M1736.815,1327.396H808.22c-5.544,0-10.992,1.464-15.796,4.231l-523.123,302.03v-274.669c0-17.444-14.144-31.593-31.592-31.593 H63.185V143.219h1673.631V1327.396z"}),(0,a.createElement)(r.Path,{d:"M246.713,423.688h1287.764c17.448,0,31.592-14.144,31.592-31.593c0-17.449-14.144-31.592-31.592-31.592 H246.713c-17.449,0-31.592,14.143-31.592,31.592C215.121,409.545,229.264,423.688,246.713,423.688z"}),(0,a.createElement)(r.Path,{d:"M246.713,667.4h1287.764c17.448,0,31.592-14.143,31.592-31.592s-14.144-31.592-31.592-31.592H246.713 c-17.449,0-31.592,14.143-31.592,31.592S229.264,667.4,246.713,667.4z"}),(0,a.createElement)(r.Path,{d:"M246.713,911.109h1287.764c17.448,0,31.592-14.142,31.592-31.59c0-17.449-14.144-31.593-31.592-31.593 H246.713c-17.449,0-31.592,14.144-31.592,31.593C215.121,896.968,229.264,911.109,246.713,911.109z"}),(0,a.createElement)(r.Path,{d:"M246.713,1154.82h1287.764c17.448,0,31.592-14.139,31.592-31.592c0-17.444-14.144-31.592-31.592-31.592 H246.713c-17.449,0-31.592,14.147-31.592,31.592C215.121,1140.682,229.264,1154.82,246.713,1154.82z"})),messages:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M251.485,1662c-5.408,0-10.816-1.398-15.663-4.195c-9.693-5.598-15.663-15.938-15.663-27.13v-201.559 H86.872c-44.37,0-80.467-36.097-80.467-80.463V380.479c0-44.367,36.098-80.462,80.467-80.462h1467.337 c44.375,0,80.473,36.095,80.473,80.462v968.174c0,44.366-36.098,80.463-80.473,80.463H663.253l-396.105,228.688 C262.302,1660.602,256.894,1662,251.485,1662z M86.872,362.667c-9.824,0-17.817,7.991-17.817,17.813v968.174 c0,9.824,7.993,17.813,17.817,17.813h164.614c17.301,0,31.325,14.023,31.325,31.324v178.629l356.388-205.758 c4.761-2.749,10.163-4.195,15.662-4.195h899.349c9.829,0,17.822-7.989,17.822-17.813V380.479c0-9.822-7.993-17.813-17.822-17.813 H86.872z"}),(0,a.createElement)(r.Path,{d:"M952.785,607.586H253.36c-17.302,0-31.325-14.023-31.325-31.325c0-17.301,14.023-31.325,31.325-31.325 h699.425c17.301,0,31.324,14.024,31.324,31.325C984.109,593.563,970.086,607.586,952.785,607.586z"}),(0,a.createElement)(r.Path,{d:"M1387.721,794.601H253.36c-17.302,0-31.325-14.024-31.325-31.325c0-17.302,14.023-31.325,31.325-31.325 h1134.36c17.302,0,31.326,14.023,31.326,31.325C1419.047,780.577,1405.022,794.601,1387.721,794.601z"}),(0,a.createElement)(r.Path,{d:"M1387.721,981.611H253.36c-17.302,0-31.325-14.023-31.325-31.324c0-17.302,14.023-31.325,31.325-31.325 h1134.36c17.302,0,31.326,14.023,31.326,31.325C1419.047,967.588,1405.022,981.611,1387.721,981.611z"}),(0,a.createElement)(r.Path,{d:"M1387.721,1168.627H253.36c-17.302,0-31.325-14.024-31.325-31.325c0-17.302,14.023-31.325,31.325-31.325 h1134.36c17.302,0,31.326,14.023,31.326,31.325C1419.047,1154.603,1405.022,1168.627,1387.721,1168.627z"}),(0,a.createElement)(r.Path,{d:"M1712.124,145H244.786c-44.37,0-80.467,36.097-80.467,80.467v85.476h62.65v-85.476 c0-9.824,7.993-17.816,17.817-17.816h1467.338c9.828,0,17.821,7.993,17.821,17.816v968.17c0,9.824-7.993,17.813-17.821,17.813 h-108.769v62.65h108.769c44.374,0,80.472-36.098,80.472-80.463v-968.17C1792.596,181.097,1756.498,145,1712.124,145z"})),microphone:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M899.997,1430.906c196.13,0,355.689-159.568,355.689-355.707l0.005-725.97c0-2.024-0.197-4.004-0.57-5.922 C1245.143,154.168,1090.046,6.706,900.006,6.706c-190.005,0-345.088,147.425-355.124,336.513c-0.377,1.945-0.574,3.956-0.574,6.01 v725.97C544.308,1271.338,703.868,1430.906,899.997,1430.906z M607.108,896.711h117.567c17.343,0,31.4-14.058,31.4-31.4 s-14.058-31.4-31.4-31.4H607.108V681.478h117.567c17.343,0,31.4-14.058,31.4-31.4s-14.058-31.4-31.4-31.4H607.108V466.24h117.567 c17.343,0,31.4-14.058,31.4-31.4c0-17.343-14.058-31.4-31.4-31.4H607.108v-49.663c0.158-1.082,0.259-2.178,0.302-3.29 C612.3,228.398,690.59,126.857,798.984,87.303v125.965c0,17.343,14.058,31.4,31.4,31.4s31.4-14.058,31.4-31.4V72.036 c12.516-1.616,25.259-2.53,38.221-2.53c11.552,0,22.924,0.738,34.125,2.026v141.735c0,17.343,14.058,31.4,31.4,31.4 s31.4-14.058,31.4-31.4V85.822c110.51,38.464,190.711,141.043,195.656,264.665c0.044,1.1,0.145,2.19,0.303,3.259v49.694H1075.31 c-17.343,0-31.4,14.057-31.4,31.4c0,17.343,14.058,31.4,31.4,31.4h117.581v152.437H1075.31c-17.343,0-31.4,14.058-31.4,31.4 s14.058,31.4,31.4,31.4h117.581l-0.005,152.433H1075.31c-17.343,0-31.4,14.058-31.4,31.4s14.058,31.4,31.4,31.4h117.576v178.488 c0,161.51-131.388,292.906-292.889,292.906c-161.5,0-292.889-131.396-292.889-292.906V896.711z"}),(0,a.createElement)(r.Path,{d:"M1509.412,676.055h-144.367c-17.343,0-31.4,14.057-31.4,31.4v368.188 c0,237.368-191.71,430.769-428.426,433.576c-1.699-0.285-3.438-0.469-5.217-0.469c-1.778,0-3.518,0.184-5.217,0.469 c-236.716-2.808-428.43-196.208-428.43-433.576V707.455c0-17.343-14.058-31.4-31.4-31.4H290.586c-17.343,0-31.4,14.057-31.4,31.4 c0,17.343,14.057,31.4,31.4,31.4h112.968v336.788c0,263.191,205.881,479.161,465.048,495.422v159.429H622.835 c-17.343,0-31.4,14.058-31.4,31.4s14.058,31.4,31.4,31.4h554.333c17.343,0,31.4-14.058,31.4-31.4s-14.058-31.4-31.4-31.4H931.402 v-159.429c259.166-16.261,465.043-232.23,465.043-495.422V738.855h112.967c17.344,0,31.4-14.057,31.4-31.4 C1540.813,690.112,1526.756,676.055,1509.412,676.055z"})),mobile:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1346.861,3.943h-893.72c-45.89,0-83.232,37.339-83.232,83.229v1625.653 c0,45.891,37.342,83.23,83.232,83.23h893.72c45.891,0,83.229-37.34,83.229-83.23V87.173 C1430.091,41.283,1392.752,3.943,1346.861,3.943z M453.141,66.61h893.72c11.34,0,20.563,9.223,20.563,20.563v172.719H432.578 V87.173C432.578,75.833,441.801,66.61,453.141,66.61z M1367.424,291.234v1169.788H432.578V291.234H1367.424z M1346.861,1733.39 h-893.72c-11.34,0-20.563-9.224-20.563-20.563v-220.47h934.846v220.47C1367.424,1724.166,1358.201,1733.39,1346.861,1733.39z"}),(0,a.createElement)(r.Path,{d:"M949.946,143.519h-43.739h-12.412h-43.74c-8.655,0-15.667,7.012-15.667,15.667 c0,8.646,7.012,15.667,15.667,15.667h43.74h12.412h43.739c8.655,0,15.667-7.021,15.667-15.667 C965.613,150.531,958.602,143.519,949.946,143.519z"}),(0,a.createElement)(r.Path,{d:"M900.002,1538.701c-39.779,0-72.144,32.355-72.144,72.135c0,39.778,32.365,72.145,72.144,72.145 c39.777,0,72.142-32.366,72.142-72.145C972.144,1571.057,939.779,1538.701,900.002,1538.701z M900.002,1651.646 c-22.503,0-40.81-18.307-40.81-40.811c0-22.495,18.307-40.802,40.81-40.802c22.501,0,40.809,18.307,40.809,40.802 C940.811,1633.34,922.503,1651.646,900.002,1651.646z"})),mouse:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M951.669,1792.279c-143.699,0-278.138-75.66-378.553-213.039 c-98.267-134.439-152.384-312.672-152.384-501.869c0-189.193,54.117-367.426,152.384-501.865 c100.415-137.379,234.854-213.04,378.553-213.04c143.701,0,278.14,75.66,378.56,213.04 c98.262,134.438,152.381,312.669,152.381,501.865c0,189.197-54.119,367.43-152.381,501.869 C1229.809,1716.619,1095.37,1792.279,951.669,1792.279z M951.669,424.84c-258.368,0-468.563,292.723-468.563,652.531 c0,359.808,210.196,652.535,468.563,652.535c258.37,0,468.568-292.728,468.568-652.535 C1420.237,717.563,1210.039,424.84,951.669,424.84z"}),(0,a.createElement)(r.Path,{d:"M965.035,953.709h-26.731c-46.675,0-84.648-37.973-84.648-84.648v-166.33 c0-46.675,37.974-84.648,84.648-84.648h26.731c46.675,0,84.647,37.974,84.647,84.648v166.33 C1049.683,915.736,1011.71,953.709,965.035,953.709z M938.304,680.455c-12.282,0-22.276,9.994-22.276,22.276v166.33 c0,12.282,9.994,22.276,22.276,22.276h26.731c12.281,0,22.275-9.994,22.275-22.276v-166.33c0-12.282-9.994-22.276-22.275-22.276 H938.304z"}),(0,a.createElement)(r.Path,{d:"M951.669,424.84c-17.225,0-31.187-13.962-31.187-31.187c0-54.452-13.369-73.996-23.424-83.959 c-33.636-33.329-117.371-32.567-244.13-31.399c-25.544,0.235-51.957,0.477-80.594,0.477c-85.779,0-151.948-24.597-196.665-73.106 C310.528,135,317.424,40.372,317.748,36.377c1.401-17.166,16.48-29.949,33.616-28.552c17.129,1.396,29.892,16.38,28.561,33.499 c-0.092,1.349-4.468,72.523,42.009,122.504c32.437,34.882,83.041,52.57,150.401,52.57c28.352,0,54.617-0.242,80.019-0.474 c147.482-1.349,236.497-2.169,288.608,49.464c28.58,28.321,41.894,69.079,41.894,128.265 C982.855,410.878,968.894,424.84,951.669,424.84z"})),music:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1674.102,313.758V35.517c0-0.531-0.053-1.05-0.08-1.573c0.212-3.68-0.184-7.458-1.348-11.182 c-5.178-16.602-22.839-25.852-39.428-20.683L569.624,333.772c-1.089,0.334-2.151,0.72-3.184,1.16 c-0.084,0.035-0.154,0.079-0.238,0.114c-0.856,0.378-1.691,0.782-2.507,1.226c-0.439,0.242-0.853,0.518-1.279,0.777 c-0.435,0.263-0.878,0.519-1.295,0.804c-0.527,0.356-1.023,0.751-1.529,1.138c-0.294,0.229-0.602,0.443-0.892,0.685 c-0.496,0.413-0.958,0.857-1.428,1.301c-0.272,0.254-0.553,0.496-0.816,0.76c-0.409,0.417-0.786,0.855-1.173,1.291 c-0.294,0.329-0.598,0.655-0.879,0.998c-0.302,0.377-0.583,0.773-0.869,1.164c-0.32,0.435-0.655,0.866-0.953,1.313 c-0.215,0.325-0.404,0.663-0.606,0.992c-0.329,0.544-0.663,1.085-0.962,1.647c-0.149,0.281-0.277,0.575-0.417,0.861 c-0.308,0.623-0.615,1.251-0.878,1.893c-0.124,0.299-0.22,0.602-0.329,0.901c-0.242,0.641-0.488,1.282-0.69,1.945 c-0.136,0.448-0.232,0.909-0.351,1.366c-0.132,0.519-0.281,1.028-0.386,1.555c-0.184,0.905-0.316,1.823-0.417,2.75 c-0.013,0.088-0.03,0.171-0.039,0.263c-0.114,1.125-0.171,2.258-0.163,3.4v281.451c0,0.119,0,0.242,0,0.365v748.525 c-44.338-48.791-108.277-79.475-179.244-79.475c-133.55,0-242.2,108.656-242.2,242.209c0,133.554,108.65,242.203,242.2,242.203 c133.553,0,242.208-108.649,242.208-242.203V668.854l1000.829-312.107v709.3c-44.338-48.791-108.273-79.465-179.24-79.465 c-133.553,0-242.203,108.646-242.203,242.199c0,133.557,108.65,242.213,242.203,242.213c133.555,0,242.205-108.656,242.205-242.213 V314.122C1674.102,313.999,1674.102,313.88,1674.102,313.758z M368.1,1736.388c-98.83,0-179.235-80.405-179.235-179.239 c0-98.835,80.405-179.244,179.235-179.244c98.833,0,179.244,80.409,179.244,179.244 C547.344,1655.982,466.934,1736.388,368.1,1736.388z M1431.896,1408.029c-98.832,0-179.239-80.41-179.239-179.248 c0-98.835,80.407-179.239,179.239-179.239c98.834,0,179.24,80.404,179.24,179.239 C1611.137,1327.619,1530.73,1408.029,1431.896,1408.029z M610.308,602.899v-215.86L1611.137,74.931v215.861L610.308,602.899z"})),notification:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M942.432,362.391c28.336,0,78.253,16.538,120.884,52.848c33.173,28.25,72.71,77.44,72.71,151.333 c0,17.307,14.031,31.336,31.336,31.336c17.312,0,31.336-14.029,31.336-31.336c0-175.203-166.831-266.854-256.266-266.854 c-17.304,0-31.336,14.028-31.336,31.336C911.096,348.362,925.128,362.391,942.432,362.391z"}),(0,a.createElement)(r.Path,{d:"M1555.292,1240.33c-11.603-18.885-24.035-39.138-36.538-60.862c-1.408-5.24-4.108-9.945-7.79-13.722 c-49.513-88.479-97.741-200.637-97.741-344.862c0-339.747-187.438-622.592-438.45-681.168 c7.458-12.796,11.813-27.633,11.813-43.511c0-47.816-38.768-86.576-86.583-86.576c-47.813,0-86.581,38.759-86.581,86.576 c0,15.878,4.35,30.715,11.813,43.511c-251.011,58.576-438.455,341.421-438.455,681.168c0,188.204-82.117,321.858-142.074,419.446 c-47.275,76.945-81.431,132.54-53.413,182.688c34.706,62.133,150.24,84.154,527.356,89.08 c-11.577,25.247-18.085,53.287-18.085,82.834c0,109.974,89.466,199.439,199.438,199.439c109.971,0,199.432-89.466,199.432-199.439 c0-29.547-6.505-57.587-18.09-82.834c377.126-4.926,492.65-26.947,527.361-89.08 C1636.728,1372.87,1602.566,1317.275,1555.292,1240.33z M900.002,1731.698c-75.415,0-136.767-61.352-136.767-136.767 c0-30.793,10.234-59.236,27.477-82.121c34.47,0.25,70.82,0.385,109.26,0.424c0.021,0,0.039,0,0.061,0 c38.438-0.039,74.783-0.174,109.26-0.424c17.231,22.885,27.471,51.328,27.471,82.121 C1036.763,1670.347,975.412,1731.698,900.002,1731.698z M1553.997,1392.455c-5.909,10.575-33.067,30.156-148.601,42.466 c-80.962,8.635-194.844,13.343-368.712,14.981c-41.952,0.395-87.355,0.612-136.683,0.66c-49.33-0.048-94.734-0.266-136.688-0.66 c-173.864-1.639-287.75-6.347-368.713-14.981c-115.524-12.31-142.686-31.891-148.596-42.466 c-10.098-18.081,20.114-67.255,52.102-119.314c10.208-16.613,21.303-34.704,32.686-54.227h131.308 c17.307,0,31.335-14.029,31.335-31.336c0-17.309-14.029-31.337-31.335-31.337H365.03c44.478-87.962,84.421-199.001,84.421-335.357 c0-165.03,47.721-321.097,134.371-439.463c84.238-115.071,196.471-182.333,316.179-189.546 c119.712,7.213,231.939,74.476,316.182,189.546c86.646,118.366,134.367,274.434,134.367,439.463 c0,136.356,39.939,247.396,84.424,335.357H598.516c-17.308,0-31.336,14.028-31.336,31.337c0,17.307,14.028,31.336,31.336,31.336 h870.699c11.375,19.522,22.479,37.609,32.683,54.221C1533.88,1325.2,1564.098,1374.374,1553.997,1392.455z"})),offer:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1799.344,899.996c0-88.462-95.547-165.006-276.3-221.355c-16.881-5.265-34.349-10.276-52.301-15.054 c9.318-16.072,18.118-31.96,26.339-47.619c87.966-167.659,101.403-289.341,38.854-351.9c-25.566-25.557-61.558-38.52-106.981-38.52 c-75.811,0-177.951,37.532-292.485,103.924c-4.795-18.03-9.827-35.569-15.106-52.516C1065.015,96.198,988.466,0.657,900.001,0.657 c-88.462,0-165.011,95.541-221.36,276.299c-5.283,16.946-10.315,34.485-15.11,52.516 c-114.534-66.392-216.675-103.924-292.49-103.924c-45.424,0-81.41,12.958-106.972,38.52c-62.554,62.554-49.121,184.241,38.85,351.9 c8.216,15.659,17.021,31.547,26.334,47.619c-17.951,4.778-35.416,9.789-52.296,15.054C96.204,734.99,0.658,811.534,0.658,899.996 c0,88.469,95.546,165.01,276.299,221.366c16.88,5.262,34.345,10.268,52.296,15.055c-9.313,16.071-18.118,31.959-26.334,47.618 c-87.971,167.659-101.404,289.342-38.85,351.892c25.562,25.565,61.552,38.528,106.972,38.528 c75.815,0,177.957-37.536,292.49-103.924c4.799,18.022,9.827,35.561,15.11,52.512c56.349,180.753,132.893,276.3,221.36,276.3 c88.464,0,165.013-95.547,221.362-276.3c5.279-16.951,10.312-34.481,15.106-52.512c114.534,66.388,216.666,103.915,292.485,103.915 c45.424,0,81.415-12.963,106.973-38.52c62.558-62.55,49.12-184.232-38.846-351.892c-8.221-15.659-17.021-31.547-26.339-47.618 c17.952-4.787,35.42-9.793,52.301-15.055C1703.797,1065.006,1799.344,988.465,1799.344,899.996z M1481.194,1068.176 c-14.5,4.198-29.396,8.229-44.659,12.076c-9.125,2.301-18.355,4.549-27.736,6.718c-12.313,2.854-24.854,5.587-37.589,8.212 c7.123,10.83,14.043,21.605,20.719,32.303c5.12,8.194,10.073,16.345,14.912,24.45c8.046,13.455,15.686,26.77,22.949,39.935 c3.952,7.175,7.825,14.325,11.549,21.411c70.717,134.796,89.442,238.764,50.078,278.128c-13.322,13.331-34.34,20.085-62.462,20.085 c-60.529,0-143.164-29.456-237.269-81.607c-13.052-7.229-26.313-14.896-39.769-22.976c-8.071-4.848-16.213-9.854-24.415-14.991 c-10.662-6.692-21.438-13.622-32.302-20.806c-2.635,12.769-5.376,25.346-8.23,37.685c-2.15,9.301-4.382,18.444-6.666,27.499 c-3.864,15.343-7.912,30.317-12.128,44.896c-2.267,7.808-4.559,15.536-6.921,23.107 c-45.301,145.325-105.584,232.088-161.254,232.088c-55.673,0-115.957-86.763-161.256-232.088c-2.362-7.571-4.655-15.3-6.917-23.107 c-4.22-14.579-8.269-29.554-12.137-44.905c-2.279-9.046-4.506-18.189-6.661-27.49c-2.854-12.339-5.595-24.916-8.229-37.685 c-10.869,7.175-21.641,14.113-32.311,20.806c-8.199,5.137-16.336,10.144-24.407,14.991c-13.455,8.08-26.721,15.747-39.767,22.976 c-94.105,52.151-176.745,81.617-237.274,81.617c-28.118,0-49.13-6.764-62.453-20.087c-39.368-39.363-20.648-143.34,50.078-278.136 c3.715-7.086,7.593-14.236,11.549-21.411c7.254-13.165,14.904-26.479,22.94-39.935c4.843-8.105,9.797-16.256,14.912-24.45 c6.675-10.697,13.596-21.473,20.723-32.303c-12.735-2.625-25.276-5.357-37.59-8.212c-9.384-2.169-18.61-4.417-27.735-6.718 c-15.269-3.847-30.16-7.878-44.659-12.076c-7.808-2.267-15.537-4.559-23.111-6.921C150.37,1015.954,63.611,955.671,63.611,899.996 c0-55.673,86.758-115.952,232.084-161.257c7.575-2.362,15.304-4.655,23.111-6.916c14.504-4.203,29.39-8.225,44.659-12.076 c9.121-2.297,18.351-4.545,27.735-6.719c12.313-2.851,24.855-5.582,37.585-8.212c-7.127-10.833-14.043-21.601-20.719-32.297 c-5.115-8.199-10.069-16.345-14.917-24.451c-8.036-13.455-15.682-26.77-22.94-39.935c-3.952-7.18-7.834-14.329-11.549-21.412 c-70.722-134.795-89.446-238.772-50.074-278.144c13.323-13.323,34.335-20.077,62.453-20.077c60.529,0,143.165,29.457,237.27,81.612 c13.046,7.228,26.313,14.899,39.771,22.979c8.071,4.848,16.205,9.845,24.407,14.992c10.666,6.692,21.438,13.622,32.311,20.806 c2.635-12.769,5.375-25.346,8.229-37.694c2.155-9.297,4.382-18.443,6.661-27.485c3.869-15.352,7.913-30.326,12.137-44.905 c2.262-7.808,4.555-15.541,6.917-23.111C784.045,150.369,844.329,63.61,900.001,63.61c55.67,0,115.954,86.758,161.254,232.084 c2.362,7.57,4.654,15.308,6.921,23.115c4.225,14.579,8.264,29.545,12.138,44.897c2.274,9.046,4.506,18.197,6.656,27.493 c2.854,12.344,5.596,24.921,8.23,37.686c10.873-7.179,21.64-14.109,32.311-20.801c8.203-5.146,16.335-10.144,24.406-14.992 c13.455-8.08,26.727-15.751,39.769-22.979c94.104-52.151,176.739-81.612,237.269-81.612c28.122,0,49.14,6.758,62.462,20.086 c39.364,39.363,20.639,143.34-50.078,278.135c-3.724,7.079-7.597,14.228-11.549,21.408c-7.264,13.165-14.903,26.483-22.949,39.938 c-4.839,8.106-9.792,16.248-14.912,24.451c-6.676,10.693-13.587,21.465-20.719,32.297c12.735,2.63,25.276,5.362,37.589,8.212 c9.381,2.173,18.611,4.421,27.736,6.719c15.264,3.851,30.159,7.877,44.659,12.076c7.808,2.261,15.536,4.554,23.107,6.916 c145.325,45.305,232.088,105.584,232.088,161.257c0,55.675-86.763,115.958-232.088,161.259 C1496.73,1063.617,1489.002,1065.909,1481.194,1068.176z"}),(0,a.createElement)(r.Path,{d:"M704.532,852.061c82.828,0,150.217-67.388,150.217-150.217c0-82.828-67.389-150.217-150.221-150.217 c-82.828,0-150.217,67.384-150.217,150.212C554.311,784.672,621.7,852.061,704.532,852.061z M704.528,614.58 c48.12,0,87.268,39.148,87.268,87.264s-39.148,87.264-87.264,87.264c-48.12,0-87.268-39.148-87.268-87.268 C617.264,653.725,656.413,614.58,704.528,614.58z"}),(0,a.createElement)(r.Path,{d:"M1101.972,949.058c-82.837,0-150.226,67.389-150.226,150.227c0,82.828,67.389,150.207,150.226,150.207 c82.829,0,150.208-67.379,150.208-150.207C1252.18,1016.446,1184.801,949.058,1101.972,949.058z M1101.972,1186.538 c-48.119,0-87.271-39.144-87.271-87.254c0-48.129,39.152-87.273,87.271-87.273c48.11,0,87.255,39.145,87.255,87.273 C1189.227,1147.395,1150.082,1186.538,1101.972,1186.538z"}),(0,a.createElement)(r.Path,{d:"M1198.448,561.357l-634.397,634.403c-12.291,12.295-12.291,32.223,0,44.519 c6.147,6.138,14.206,9.212,22.26,9.212c8.053,0,16.111-3.074,22.259-9.212l634.397-634.402c12.287-12.295,12.287-32.224,0-44.52 C1230.672,549.071,1210.744,549.071,1198.448,561.357z"})),page:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1720.335,5.563H85.245c-43.937,0-79.679,35.739-79.679,79.667v1635.1c0,43.928,35.743,79.67,79.679,79.67 h1635.09c43.927,0,79.665-35.742,79.665-79.67V85.23C1800,41.302,1764.262,5.563,1720.335,5.563z M85.245,68.575h1635.09 c9.182,0,16.653,7.473,16.653,16.655v195.532H68.578V85.23C68.578,76.048,76.055,68.575,85.245,68.575z M1720.335,1736.988H85.245 c-9.19,0-16.667-7.472-16.667-16.658V343.774h1668.41V1720.33C1736.988,1729.517,1729.517,1736.988,1720.335,1736.988z"}),(0,a.createElement)(r.Path,{d:"M1518.679,1150.928H333.948c-47.154,0-85.517,38.363-85.517,85.517v315.061 c0,47.152,38.363,85.516,85.517,85.516h1184.73c47.154,0,85.518-38.363,85.518-85.516v-315.061 C1604.196,1189.291,1565.833,1150.928,1518.679,1150.928z M1541.184,1551.505c0,12.403-10.096,22.504-22.505,22.504H333.948 c-12.409,0-22.504-10.101-22.504-22.504v-315.061c0-12.412,10.096-22.505,22.504-22.505h1184.73 c12.409,0,22.505,10.093,22.505,22.505V1551.505z"}),(0,a.createElement)(r.Path,{d:"M333.948,913.886h305.565c47.153,0,85.517-38.365,85.517-85.519V522.802 c0-47.154-38.363-85.516-85.517-85.516H333.948c-47.154,0-85.517,38.362-85.517,85.516v305.565 C248.432,875.521,286.794,913.886,333.948,913.886z M311.444,522.802c0-12.408,10.096-22.504,22.504-22.504h305.565 c12.408,0,22.505,10.096,22.505,22.504v305.565c0,12.408-10.097,22.505-22.505,22.505H333.948 c-12.409,0-22.504-10.097-22.504-22.505V522.802z"}),(0,a.createElement)(r.Path,{d:"M1572.689,996.396H279.938c-17.401,0-31.506,14.108-31.506,31.505c0,17.406,14.105,31.507,31.506,31.507 h1292.751c17.401,0,31.507-14.101,31.507-31.507C1604.196,1010.505,1590.091,996.396,1572.689,996.396z"}),(0,a.createElement)(r.Path,{d:"M1572.689,832.116H858.558c-17.402,0-31.507,14.105-31.507,31.507c0,17.401,14.105,31.505,31.507,31.505 h714.132c17.401,0,31.507-14.104,31.507-31.505C1604.196,846.222,1590.091,832.116,1572.689,832.116z"}),(0,a.createElement)(r.Path,{d:"M1572.689,643.081H858.558c-17.402,0-31.507,14.105-31.507,31.506c0,17.401,14.105,31.505,31.507,31.505 h714.132c17.401,0,31.507-14.104,31.507-31.505C1604.196,657.186,1590.091,643.081,1572.689,643.081z"}),(0,a.createElement)(r.Path,{d:"M1572.689,454.044H858.558c-17.402,0-31.507,14.105-31.507,31.507c0,17.401,14.105,31.505,31.507,31.505 h714.132c17.401,0,31.507-14.104,31.507-31.505C1604.196,468.15,1590.091,454.044,1572.689,454.044z"}),(0,a.createElement)(r.Circle,{cx:"204.913",cy:"171.616",r:"50.635"}),(0,a.createElement)(r.Circle,{cx:"364.694",cy:"171.616",r:"50.635"}),(0,a.createElement)(r.Circle,{cx:"524.474",cy:"171.616",r:"50.635"})),paperclip:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M716.321,1752.834c-8.333,0-16.325-3.314-22.221-9.206l-466.26-466.276 c-12.274-12.271-12.274-32.169,0-44.439l952.941-952.92c5.892-5.895,13.884-9.204,22.217-9.204h314.732 c17.355,0,31.422,14.067,31.422,31.423V646.08c0,8.333-3.308,16.328-9.201,22.219L811.41,1396.841 c-12.274,12.271-32.168,12.271-44.443,0c-12.27-12.271-12.27-32.168,0-44.438l719.34-719.338v-299.43h-270.294L294.496,1255.13 l421.825,421.837L1731.096,662.206V110.013h-646.917c-47.596,45.638-273.575,262.253-499.232,477.519 C70.333,1078.448,59.475,1083.884,51.54,1087.847c-15.519,7.76-34.396,1.474-42.159-14.046 c-7.272-14.545-2.205-32.045,11.24-40.575c38.95-30.131,635.69-599.891,1029.176-977.313c5.853-5.611,13.646-8.746,21.752-8.746 h690.97c17.352,0,31.424,14.068,31.424,31.424v596.634c0,8.33-3.314,16.325-9.206,22.217L738.539,1743.628 C732.646,1749.52,724.655,1752.834,716.321,1752.834z"})),pen:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1741.402,786.797h-35.999c-32.197-298.013-226.637-548.089-492.951-659.834h305.92v31.245 c0,17.376,14.079,31.46,31.461,31.46h125.409c17.381,0,31.459-14.084,31.459-31.46V32.798c0-17.375-14.078-31.46-31.459-31.46 h-125.409c-17.382,0-31.461,14.084-31.461,31.46v31.245H994.163V32.798c0-17.375-14.079-31.46-31.46-31.46H837.287 c-17.376,0-31.46,14.084-31.46,31.46v31.245H281.618V32.798c0-17.375-14.084-31.46-31.46-31.46H124.751 c-17.375,0-31.459,14.084-31.459,31.46v125.41c0,17.376,14.084,31.46,31.459,31.46h125.406c17.375,0,31.46-14.084,31.46-31.46 v-31.245H587.55C321.228,238.708,126.792,488.785,94.596,786.797H58.597c-17.376,0-31.46,14.084-31.46,31.46v125.409 c0,17.375,14.083,31.459,31.46,31.459h125.418c17.376,0,31.46-14.084,31.46-31.459V818.257c0-17.375-14.083-31.46-31.46-31.46 h-26.088c39.887-339.954,308.838-610.875,647.899-653.703v25.114c0,17.376,14.084,31.46,31.46,31.46h125.417 c17.381,0,31.46-14.084,31.46-31.46v-25.116c339.064,42.821,608.012,313.747,647.908,653.706h-26.08 c-17.38,0-31.46,14.084-31.46,31.46v125.409c0,17.375,14.08,31.459,31.46,31.459h125.411c17.38,0,31.46-14.084,31.46-31.459 V818.257C1772.862,800.882,1758.782,786.797,1741.402,786.797z M1643.782,126.748h-62.49V95.503V64.258h62.49V126.748z M156.212,64.258h62.485v62.49h-62.485V64.258z M152.556,877.923v34.282H90.057V877.98v-20.505 c0.052-2.589,0.119-5.174,0.193-7.758h62.306V877.923z M900.005,64.258c10.461,0,20.871,0.266,31.237,0.661v61.829h-62.496V64.918 C879.122,64.524,889.533,64.258,900.005,64.258z M1709.941,857.82v20.132v34.253h-62.489V877.98v-28.263h62.287 C1709.828,852.415,1709.889,855.116,1709.941,857.82z"}),(0,a.createElement)(r.Path,{d:"M928.829,250.905c-5.003-11.464-16.327-18.875-28.833-18.875c-12.509,0-23.828,7.411-28.831,18.875 l-409.868,939.046c-3.283,7.523-3.497,16.025-0.601,23.701l0.487,1.291c3.335,8.838,10.468,15.707,19.421,18.713 c98.036,32.9,163.906,124.49,163.906,227.906c0,43.082-11.574,85.383-33.466,122.33c-0.68,1.145-1.259,2.33-1.782,3.541 c-3.559,5.096-5.662,11.285-5.662,17.973v159.314c0,17.285,13.948,31.338,31.231,31.463l529.877,3.816c0.079,0,0.159,0,0.238,0 c17.266,0,31.328-13.939,31.45-31.23c0.122-17.377-13.859-31.566-31.23-31.689l-498.646-3.59v-79.055h486.778 c13.14,0,24.902-8.168,29.484-20.479l8.585-23.059c3.318-8.91,2.432-18.84-2.423-27.02c-21.884-36.934-33.452-79.23-33.452-122.316 c0-103.416,65.86-195.006,163.901-227.906c8.979-3.018,16.125-9.924,19.452-18.801l0.482-1.291 c2.861-7.654,2.634-16.121-0.632-23.613L928.829,250.905z M899.996,1126.566c34.811,0,63.138,28.318,63.138,63.123 c0,34.809-28.327,63.125-63.138,63.125c-34.809,0-63.126-28.316-63.126-63.125C836.87,1154.885,865.187,1126.566,899.996,1126.566z M1092.571,1461.563c0,45.088,10.052,89.504,29.241,129.953H678.187c19.198-40.457,29.244-84.869,29.244-129.953 c0-119.287-69.455-226.105-175.883-275.271l336.988-772.079v653.407c-54.331,14.008-94.586,63.43-94.586,122.07 c0,69.504,56.543,126.045,126.047,126.045c69.51,0,126.058-56.541,126.058-126.045c0-58.646-40.265-108.063-94.601-122.07V414.214 l336.994,772.077C1162.023,1235.467,1092.571,1342.275,1092.571,1461.563z"})),phone:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1767.747,1435.832c-8.327-8.648-16.937-17.587-27.429-25.664 c-103.501-79.709-216.736-152.819-346.173-223.501c-20.847-11.386-37.313-20.372-55.837-20.372 c-24.734,0-41.76,15.473-63.32,35.063c-23.946,21.767-47.108,43.659-69.258,65.44c-12.17,11.963-24.041,23.89-35.543,35.738 c-2.982,3.074-6.067,5.62-9.285,7.808c-11.248,7.644-24.399,10.098-42.976,8.472c-48.55-4.284-97.64-18.685-150.077-44.016 c-90.392-43.678-173.444-109.723-253.898-201.906C614.263,958.662,545.58,840.776,503.974,712.499l-3.809-11.659 c-5.327-16.218-11.359-34.603-10.182-38.525c0.732-2.462,4.585-7.013,10.156-12.735c6.298-6.481,14.801-14.471,23.58-22.712 l3.199-2.999c6.12-5.753,12.417-11.45,18.768-17.112c14.514-12.941,29.429-25.659,44.021-38.067 c15.198-12.918,30.911-26.278,46.175-39.916c36.324-32.467,44.016-51.174,17.996-97.932 c-50.232-90.262-107.172-192.566-167.25-292.054c-17.626-29.176-39.149-55.296-59.957-80.559 c-8.996-10.923-18.302-22.216-26.94-33.365c-5.914-7.636-15.033-12.104-24.695-12.104h-10.034c-7.396,0-14.548,2.624-20.193,7.401 c-98.015,83.013-177.31,183.569-253.999,280.813L76.278,319.39c-14.47,18.318-27.646,37.487-40.386,56.02 c-5.758,8.373-11.515,16.75-17.382,25.036c-3.74,5.278-5.749,11.589-5.749,18.058v26.748c0,2.158,0.223,4.307,0.667,6.417 c2.262,10.778,4.376,21.596,6.495,32.414c4.698,24.042,9.563,48.903,16.065,73.441c34.742,131.062,92.31,257.189,175.989,385.601 c178.238,273.49,402.429,500.615,666.353,675.062c121.573,80.354,239.724,131.476,361.202,156.279 c17.064,3.487,34.209,6.167,50.79,8.757c7.509,1.172,15.019,2.349,22.516,3.596c1.695,0.284,3.413,0.423,5.13,0.423h63.53 c5.287,0,10.491-1.342,15.12-3.901c127.227-70.352,238.143-158.521,329.863-235.488c13.378-11.224,25.184-23.466,36.6-35.303 c4.938-5.117,9.877-10.238,14.915-15.237c5.914-5.867,9.244-13.852,9.244-22.187v-6.685c0-8.421-3.399-16.489-9.432-22.369 C1774.39,1442.736,1771.068,1439.283,1767.747,1435.832z M366.832,83.813c3.892,4.772,7.78,9.493,11.611,14.148 c20.28,24.612,39.431,47.866,54.7,73.132c59.503,98.534,116.155,200.328,166.135,290.131c2.549,4.585,4.494,8.242,5.818,10.961 c-3.278,3.226-7.911,7.361-10.857,9.994c-14.684,13.128-30.1,26.23-45.006,38.904c-15.778,13.416-31.944,27.176-47.81,41.407 l-300.029-300.03C252.538,199.507,306.375,137.786,366.832,83.813z M1373.382,1724.754h-52.847 c-6.854-1.123-13.708-2.196-20.568-3.268c-16.603-2.594-32.289-5.047-47.932-8.242c-113.5-23.176-224.475-71.322-339.252-147.188 c-256.744-169.703-474.92-390.765-648.46-657.046C184.335,786.255,129.4,666.046,96.384,541.518 c-5.971-22.547-10.426-45.32-15.141-69.432c-1.961-10.028-3.927-20.058-5.998-30.06v-13.647c4.071-5.84,8.103-11.707,12.138-17.574 c12.719-18.506,24.74-35.988,37.928-52.682l14.563-18.455c7.375-9.353,14.784-18.741,22.224-28.134l293.867,293.866 c-13.333,13.698-21.64,24.939-25.846,39.004c-6.791,22.7-0.214,42.731,10.674,75.917l3.748,11.454 c44.257,136.467,116.984,261.484,222.334,382.201c86.104,98.661,175.663,169.671,273.792,217.084 c59.367,28.683,115.554,45.036,171.779,49.997c5.417,0.478,10.709,0.718,15.725,0.718c0.005,0,0.005,0,0.005,0 c30.471,0,55.886-8.813,77.315-26.844l291.775,291.773C1457.921,1674.061,1416.589,1700.514,1373.382,1724.754z M1686.313,1499.989 c-41.934,35.194-87.985,72.757-137.669,109.723l-298.73-298.731c21.453-21.078,43.89-42.285,67.095-63.382 c6.604-6.001,17.274-15.694,22.111-18.533c5.235,1.604,17.492,8.299,25.084,12.44c126.542,69.104,237.096,140.467,337.992,218.171 c4.476,3.443,8.878,7.602,13.372,12.126C1705.725,1481.992,1696.311,1491.6,1686.313,1499.989z"}),(0,a.createElement)(r.Path,{d:"M1659.155,901.129c-66.448,0-120.505-54.059-120.505-120.505c0-258.807-210.553-469.359-469.359-469.359 c-66.447,0-120.505-54.059-120.505-120.505c0-66.446,54.058-120.505,120.505-120.505c391.698,0,710.369,318.671,710.369,710.37 C1779.66,847.07,1725.6,901.129,1659.155,901.129z M1069.291,132.739c-31.992,0-58.021,26.028-58.021,58.021 c0,31.992,26.029,58.021,58.021,58.021c293.259,0,531.843,238.582,531.843,531.843c0,31.992,26.029,58.021,58.021,58.021 c31.991,0,58.021-26.029,58.021-58.021C1717.176,423.379,1426.534,132.739,1069.291,132.739z"}),(0,a.createElement)(r.Path,{d:"M1348.582,982.494c-50.059,0-90.779-40.722-90.779-90.78c0-166.88-135.77-302.649-302.649-302.649 c-50.058,0-90.78-40.722-90.78-90.78c0-50.058,40.723-90.78,90.78-90.78c266.991,0,484.208,217.217,484.208,484.208 C1439.361,941.772,1398.64,982.494,1348.582,982.494z M955.153,469.99c-15.604,0-28.296,12.692-28.296,28.296 c0,15.604,12.692,28.295,28.296,28.295c201.334,0,365.133,163.799,365.133,365.133c0,15.604,12.692,28.295,28.296,28.295 s28.295-12.691,28.295-28.295C1376.877,659.173,1187.695,469.99,955.153,469.99z"})),picture:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1715.855,4.642H84.157c-43.845,0-79.514,35.665-79.514,79.501v1631.71 c0,43.836,35.669,79.505,79.514,79.505h1631.698c43.837,0,79.502-35.669,79.502-79.505V84.143 C1795.357,40.307,1759.692,4.642,1715.855,4.642z M1715.855,1732.477H84.157c-9.172,0-16.633-7.457-16.633-16.624v-197.206 l588.122-588.126l571.393,571.401c6.141,6.136,14.186,9.207,22.234,9.207c8.044,0,16.093-3.071,22.233-9.207 c12.276-12.281,12.276-32.187,0-44.468L677.878,863.827c-6.139-6.141-14.185-9.209-22.231-9.207 c-8.047-0.002-16.093,3.068-22.231,9.207L67.524,1429.715V84.143c0-9.163,7.461-16.619,16.633-16.619h1631.698 c9.164,0,16.62,7.456,16.62,16.619v1332.726l-553.04-553.041c-2.303-2.303-4.873-4.171-7.611-5.612 c-11.859-6.237-26.879-4.364-36.857,5.612l-123.512,123.521c-12.277,12.277-12.277,32.182,0.004,44.464 c6.137,6.136,14.186,9.206,22.229,9.206s16.093-3.07,22.233-9.211l101.279-101.283l571.393,571.397 c1.219,1.215,2.531,2.28,3.882,3.255v210.676C1732.476,1725.02,1725.02,1732.477,1715.855,1732.477z"}),(0,a.createElement)(r.Path,{d:"M1088.885,560.165c0-97.651-79.443-177.1-177.095-177.1c-97.651,0-177.095,79.448-177.095,177.1 S814.139,737.26,911.79,737.26C1009.441,737.26,1088.885,657.816,1088.885,560.165z M911.79,674.379 c-62.978,0-114.213-51.236-114.213-114.214c0-62.982,51.236-114.218,114.213-114.218s114.214,51.235,114.214,114.218 C1026.004,623.143,974.768,674.379,911.79,674.379z"})),piggybank:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M389.053,664.285c-30.154,0-54.591,24.439-54.591,54.586c0,22.606,13.733,41.997,33.317,50.29 c6.537,2.769,13.729,4.301,21.273,4.301c28.696,0,52.168-22.153,54.368-50.288c0.113-1.425,0.218-2.85,0.218-4.303 C443.64,688.724,419.202,664.285,389.053,664.285z"}),(0,a.createElement)(r.Path,{d:"M1784.638,612.476c-7.589-15.52-26.335-21.937-41.845-14.348c-15.513,7.593-21.94,26.326-14.344,41.844 c5.115,10.46,5.857,22.281,2.078,33.292c-3.775,11.01-11.617,19.892-22.081,25.013c-10.456,5.121-22.281,5.86-33.286,2.081 c-11.01-3.774-19.891-11.614-25.005-22.074c-1.384-2.824-3.138-5.337-5.171-7.528c-39.746-78.838-100.686-151.008-180.6-212.297 c-80.136-61.461-174.367-108.034-276.989-137.967c5.118-17.283,7.911-35.554,7.911-54.476c0-105.95-86.197-192.145-192.145-192.145 c-105.948,0-192.146,86.195-192.146,192.145c0,6.688,0.349,13.297,1.021,19.812c-32.27,3.014-64.099,7.53-95.344,13.521 c-116.002-90.762-248.975-143.138-369.332-143.138c-90.116,0-166.958,29.208-222.22,84.469c-12.214,12.217-12.214,32.021,0,44.235 l197.403,197.402c-70.858,60.392-124.577,129.99-159.247,205.276H35.549c-17.276,0-31.279,14.003-31.279,31.279v352.745 c0,17.276,14.003,31.279,31.279,31.279h127.749c39.331,85.403,103.151,163.506,188.72,229.133 c37.952,29.106,79.076,54.861,122.74,77.112v202.767c0,17.276,14.003,31.279,31.279,31.279h235.338 c17.276,0,31.279-14.003,31.279-31.279v-111.687c44.34,5.9,89.653,8.911,135.547,8.911c45.895,0,91.207-3.011,135.548-8.911 v111.687c0,17.276,14.003,31.279,31.279,31.279h235.338c17.276,0,31.279-14.003,31.279-31.279v-202.767 c43.664-22.251,84.788-48.006,122.739-77.112c151.375-116.094,234.74-271.212,234.74-436.782c0-44.354-6.039-87.947-17.708-130.25 c2.653,0.201,5.312,0.33,7.964,0.33c15.949,0,31.816-3.642,46.562-10.859c25.472-12.46,44.563-34.094,53.762-60.912 C1798.902,666.741,1797.105,637.945,1784.638,612.476z M873.575,266.017c0-71.454,58.134-129.586,129.587-129.586 c71.451,0,129.586,58.132,129.586,129.586c0,13.571-2.107,26.656-5.996,38.96c-6.916,21.897-19.506,41.294-36.031,56.472 c-23.08,21.192-53.832,34.155-87.559,34.155c-42.203,0-79.748-20.29-103.426-51.615c-13.375-17.701-22.294-38.933-25.144-62.024 C873.946,276.734,873.575,271.419,873.575,266.017z M1341.646,1338.048c-20.082,11.293-40.972,21.806-62.559,31.515v68.351v142.717 h-172.779v-90.814v-63.973c-20.497,4.39-41.372,8.09-62.559,11.118c-43.935,6.284-89.235,9.613-135.548,9.613 s-91.612-3.329-135.547-9.613c-21.186-3.028-42.063-6.729-62.559-11.118v63.973v90.814H537.316v-142.717v-68.351 c-21.587-9.709-42.477-20.222-62.559-31.515c-106.363-59.81-190.492-141.028-241.242-235.15 c-10.932-20.282-20.313-41.163-28.033-62.559h-66.154h-72.5V750.152h72.504h66.15c7.72-21.396,17.102-42.276,28.037-62.559 c32.078-59.496,77.479-113.835,133.431-160.87c15.902-13.369,32.641-26.152,50.183-38.292l-44.895-44.893L193.19,264.489 c40.884-30.012,93.538-45.719,154.172-45.719c92.887,0,195.104,35.962,289.278,99.542c21.792,14.714,43.158,30.901,63.876,48.477 c25.38-5.725,51.318-10.458,77.763-14.077c16.73-2.289,33.671-4.128,50.776-5.536c9.146,19.545,21.487,37.297,36.354,52.601 c-128.032,12.585-251.226,54.305-331.545,114.819c-13.798,10.395-16.556,30.007-6.162,43.806 c10.398,13.8,30.01,16.554,43.804,6.159c74.38-56.035,224.926-110.519,393.223-105.976 c130.494,3.53,313.018,43.535,441.491,214.062c6.148,8.163,15.518,12.461,25.004,12.461c6.555,0,13.166-2.053,18.8-6.299 c13.798-10.395,16.556-30.008,6.161-43.804c-82.227-109.14-197.932-183.846-334.365-218.031 c14.287-11.252,26.934-24.472,37.542-39.267c278.243,77.612,477.204,280.315,477.204,517.541 C1636.566,1076.444,1520.473,1237.489,1341.646,1338.048z"})),plane:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M386.031,992.783c-36.026-8.398-72.354-12.654-107.972-12.654c-140.65,0-250.633,66.393-273.68,165.215 c-1.902,8.152-0.486,16.732,3.936,23.842c4.422,7.112,11.486,12.173,19.642,14.076l297.505,69.352 c2.37,0.551,4.774,0.824,7.168,0.824c5.844,0,11.627-1.626,16.673-4.762c7.111-4.422,12.174-11.486,14.074-19.644l46.233-198.335 C413.567,1013.718,403.01,996.743,386.031,992.783z M309.05,1183.953l-231.384-53.941c30.558-52.924,106.292-86.74,200.393-86.74 c20.648,0,41.61,1.66,62.629,4.959L309.05,1183.953z"}),(0,a.createElement)(r.Path,{d:"M769.296,1390.383l-198.337,46.234c-8.152,1.902-15.22,6.963-19.642,14.076 c-4.422,7.108-5.838,15.684-3.938,23.841l69.361,297.505c1.903,8.152,6.965,15.218,14.077,19.64 c5.045,3.136,10.826,4.761,16.67,4.761c2.396,0,4.801-0.272,7.17-0.823c63.591-14.834,114.127-64.375,142.315-139.501 c26.523-70.695,30.157-156.691,10.236-242.15C803.25,1396.986,786.289,1386.428,769.296,1390.383z M669.966,1722.238 l-53.923-231.293l135.68-31.629C769.719,1575.854,735.418,1683.973,669.966,1722.238z"}),(0,a.createElement)(r.Path,{d:"M1749.964,50.705l-0.669-0.67C1717.513,19.196,1674.71,3.56,1622.073,3.56 c-141.686,0-344.219,115.18-542.012,300.716c-155.688-31.738-309.056-47.237-468.317-47.237 c-143.357,0-276.743,12.425-388.313,24.576c-13.887,1.516-25.129,11.972-27.64,25.713c-2.509,13.742,4.31,27.501,16.765,33.822 l575.578,292.233C677.958,774.113,589.367,902.18,528.54,1009.066c-96.224,169.086-117.785,276.479-65.928,328.311 c18.338,18.348,43.994,27.654,76.256,27.654c147.394,0,431.964-200.379,627.669-353.3l292.295,575.701 c5.453,10.733,16.42,17.278,28.145,17.278c1.876,0,3.779-0.167,5.682-0.516c13.742-2.506,24.198-13.75,25.713-27.637 c25.651-235.5,46.965-514.956-22.718-856.867c178.449-190.738,293.079-387.342,300.407-527.416 C1799.153,133.046,1783.649,85.412,1749.964,50.705z M825.871,581.728l-488.63-248.087c84.415-7.585,177.287-13.46,274.503-13.46 c140.48,0,276.26,12.367,413.262,37.684c-43.568,43.996-86.608,91.237-128.396,141.263c-13.574,16.305-26.884,32.478-39.965,48.533 L825.871,581.728z M1466.412,1462.885l-248.149-488.758l34.531-31.193c17.613-14.331,33.772-27.65,48.113-39.586 c49.902-41.688,97.145-84.785,141.197-128.521C1491.223,1040.145,1484.836,1261.03,1466.412,1462.885z M1733.003,188.981 c-6.84,130.833-127.706,327.336-309.389,514.582l-211.918,191.412c-309.505,252.092-564.693,406.916-672.828,406.916 c-14.9,0-25.53-3.08-31.608-9.162c-7.184-7.18-37.279-53.1,76.157-252.43c71.101-124.937,181.572-280.174,321.064-451.4 L1098.498,374.1c192.72-186.977,392.936-307.397,523.575-307.397c35.442,0,63.336,9.526,82.909,28.315 C1725.705,116.604,1735.13,148.214,1733.003,188.981z"})),play:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1407.629,872.813L693.082,460.273c-9.711-5.604-21.674-5.604-31.385,0 c-9.712,5.609-15.693,15.968-15.693,27.182v631.583c0,17.33,14.051,31.385,31.385,31.385s31.385-14.055,31.385-31.385V541.814 l620.392,358.18l-555.918,320.967c-15.014,8.669-20.154,27.864-11.489,42.874c5.815,10.07,16.363,15.692,27.213,15.692 c5.324,0,10.719-1.357,15.662-4.203l602.995-348.148c9.711-5.609,15.692-15.969,15.692-27.182 C1423.321,888.781,1417.34,878.421,1407.629,872.813z"}),(0,a.createElement)(r.Path,{d:"M899.993,5.324c-493.322,0-894.67,401.352-894.67,894.679c0,493.322,401.348,894.674,894.67,894.674 c493.331,0,894.683-401.352,894.683-894.674C1794.676,406.676,1393.324,5.324,899.993,5.324z M899.993,1731.906 c-458.71,0-831.899-373.188-831.899-831.903S441.283,68.095,899.993,68.095c458.719,0,831.912,373.193,831.912,831.908 S1358.712,1731.906,899.993,1731.906z"})),pointer:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M3.589,44.981l722.935,1734.396c4.938,11.834,16.494,19.473,29.212,19.473c0.534,0,1.064-0.017,1.603-0.044 c13.345-0.671,24.826-9.645,28.703-22.431l230.227-760.125l760.101-230.213c12.784-3.871,21.767-15.354,22.437-28.699 c0.672-13.342-7.101-25.669-19.434-30.809L44.989,3.585C33.14-1.343,19.496,1.349,10.425,10.421 C1.355,19.491-1.342,33.14,3.589,44.981z M91.616,91.606L1673.59,751.021L981.705,960.576 c-10.126,3.063-18.048,10.994-21.116,21.115l-209.565,691.907L91.616,91.606z"}),(0,a.createElement)(r.Path,{d:"M699.044,1270.004c-3.979,1.66-8.108,2.447-12.166,2.447c-12.396,0-24.165-7.33-29.229-19.483 L425.565,696.183c-6.721-16.138,0.905-34.669,17.041-41.397c16.14-6.723,34.669,0.905,41.395,17.039l232.085,556.785 C722.806,1244.746,715.18,1263.283,699.044,1270.004z"})),power:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M899.996,6.911C405.643,6.911,3.458,409.103,3.458,903.462C3.458,1397.811,405.643,1800,899.996,1800 c494.357,0,896.546-402.189,896.546-896.538C1796.542,409.103,1394.353,6.911,899.996,6.911z M899.996,1737.1 c-459.667,0-833.637-373.97-833.637-833.638c0-459.679,373.969-833.649,833.637-833.649c459.672,0,833.644,373.971,833.644,833.649 C1733.64,1363.13,1359.668,1737.1,899.996,1737.1z"}),(0,a.createElement)(r.Path,{d:"M1073.088,393.764v66.982c176.77,69.347,302.257,241.646,302.257,442.716 c0,262.101-213.239,475.332-475.349,475.332c-262.101,0-475.336-213.231-475.336-475.332 c0-201.075,125.491-373.374,302.261-442.725v-66.973c-212.139,72.23-365.162,273.421-365.162,509.698 c0,296.781,241.452,538.234,538.238,538.234c296.79,0,538.251-241.453,538.251-538.234 C1438.247,667.194,1285.223,466.002,1073.088,393.764z"}),(0,a.createElement)(r.Path,{d:"M900.004,880.287c17.371,0,31.45-14.084,31.45-31.451V286.086c0-17.371-14.079-31.451-31.45-31.451 c-17.37,0-31.45,14.08-31.45,31.451v562.749C868.554,866.202,882.634,880.287,900.004,880.287z"})),presentation:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1766.471,171.322c17.431,0,31.56-14.128,31.56-31.559V31.56c0-17.431-14.129-31.56-31.56-31.56H33.529 C16.099,0,1.97,14.128,1.97,31.56v108.203c0,17.431,14.129,31.559,31.56,31.559h109.048v924.236H33.529 c-17.431,0-31.56,14.128-31.56,31.559v108.204c0,17.431,14.129,31.559,31.56,31.559h786.238l-497.67,478.822 c-12.561,12.081-12.944,32.062-0.858,44.622c6.195,6.438,14.463,9.678,22.745,9.678c7.872,0,15.758-2.928,21.878-8.819 l472.548-454.654v431.914c0,17.431,14.129,31.56,31.56,31.56s31.559-14.129,31.559-31.56v-431.914l472.549,454.654 c6.124,5.892,14.005,8.819,21.877,8.819c8.281,0,16.551-3.24,22.745-9.678c12.085-12.561,11.702-32.541-0.858-44.622 l-497.671-478.822h846.302c17.431,0,31.56-14.128,31.56-31.559v-108.204c0-17.431-14.129-31.559-31.56-31.559h-109.049V171.322 H1766.471z M65.088,63.118h1669.824v45.085h-109.049H174.137H65.088V63.118z M1734.912,1203.761H65.088v-45.085h109.049h1451.727 h109.049V1203.761z M1594.304,1095.558H205.696V171.322h1388.607V1095.558z"}),(0,a.createElement)(r.Path,{d:"M502.242,852.752c8.075,0,16.154-3.082,22.313-9.242l171.52-171.511l197.717,197.717 c6.164,6.159,14.243,9.241,22.317,9.241c8.075,0,16.154-3.082,22.318-9.241l269.904-269.905l0.005,181.012 c0,17.431,14.128,31.56,31.56,31.56c17.43,0,31.559-14.129,31.559-31.56l-0.009-260.289c0-8.73-3.544-16.634-9.276-22.344 c-5.711-5.728-13.613-9.277-22.344-9.277l-260.285-0.009c-17.426,0-31.56,14.129-31.56,31.56s14.129,31.559,31.56,31.559 l187.299,0.009l-250.73,250.731L718.394,605.046c-12.328-12.319-32.308-12.319-44.636,0c-0.014,0.013-0.026,0.031-0.04,0.044 L479.929,798.875c-12.328,12.328-12.328,32.308-0.004,44.631C486.088,849.67,494.163,852.752,502.242,852.752z"})),price:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M980.141,1426.945H799.02v-118.506c-69.393-6.158-141.632-26.024-190.641-53.104l-20.991-11.607 l52.338-204.102l35.001,19.166c33.877,18.551,103.21,49.678,186.896,49.678c43.264,0,86.914-13.717,86.914-44.368 c0-20.55-13.207-44.022-108.99-76.386C727.884,950.146,599.67,887.562,599.67,735.901c0-118.03,78.008-208.647,205.43-241.258 V373.055h181.121v108.638c76.854,6.214,127.293,26.167,159.665,41.397l23.395,11.01l-52.706,198.537l-34.932-16.757 c-30.332-14.56-81.1-38.932-160.461-38.932c-27.462,0-73.538,4.973-73.538,38.288c0,25.207,67.061,52.896,125.491,74.206 c156.457,54.756,223.372,131.853,223.372,257.641c0,62.643-21.977,119.475-63.568,164.353 c-37.588,40.571-90.052,69.527-152.798,84.567V1426.945z M861.015,1364.95h57.132v-120.313l25.729-4.437 c117.589-20.272,190.636-94.271,190.636-193.118c0-81.316-30.988-146.326-182.237-199.261 c-91.338-33.311-166.625-66.172-166.625-132.585c0-48.481,35.607-100.283,135.533-100.283 c68.248,0,119.197,15.615,154.484,30.171l20.221-76.148c-31.758-12.463-77.164-25.047-141.589-26.967l-30.071-0.899v-106.06 h-57.132v110.22L841.792,550c-112.789,21.082-180.128,90.579-180.128,185.901c0,88.71,59.123,146.45,197.689,193.064 c78.537,26.534,151.178,61.268,151.178,135.137c0,64.615-58.448,106.362-148.908,106.362 c-73.782,0-137.615-20.566-181.23-39.836l-20.731,80.85c39.862,17.4,101.68,34.715,171.28,36.791l30.072,0.9V1364.95z"}),(0,a.createElement)(r.Path,{d:"M1394.443,1646.797l13.552-28.16c-5.872,4.203-11.797,8.346-17.772,12.41L1394.443,1646.797z"}),(0,a.createElement)(r.Path,{d:"M894.438,1721.617c-453.04,0-821.616-368.576-821.616-821.614c0-453.044,368.576-821.62,821.616-821.62 c453.043,0,821.627,368.576,821.627,821.62c0,144.397-37.492,280.184-103.18,398.222l61.597,16.502 c66.06-123.746,103.577-264.929,103.577-414.724c0-487.224-396.391-883.615-883.621-883.615 c-487.224,0-883.61,396.391-883.61,883.615c0,487.227,396.386,883.608,883.61,883.608 c154.789,0,300.383-40.053,427.035-110.271l-16.563-61.813C1184.061,1681.513,1043.848,1721.617,894.438,1721.617z"}),(0,a.createElement)(r.Path,{d:"M1661.595,1783.611c-7.931,0-15.862-3.027-21.916-9.072l-150.333-150.333l-48.355,100.489 c-5.621,11.686-17.973,18.647-30.824,17.428c-12.904-1.211-23.697-10.326-27.053-22.842l-111.181-414.95 c-2.862-10.698,0.199-22.114,8.026-29.942c7.836-7.836,19.243-10.889,29.941-8.025l414.943,111.188 c12.514,3.355,21.63,14.149,22.841,27.054c1.202,12.903-5.743,25.202-17.427,30.824l-100.49,48.363l150.332,150.324 c5.813,5.813,9.073,13.699,9.073,21.916c0,8.225-3.261,16.104-9.073,21.925l-96.58,96.581 C1677.465,1780.584,1669.525,1783.611,1661.595,1783.611z M1480.368,1540.391c8.147,0,16.052,3.217,21.916,9.081 l159.311,159.311l52.749-52.749l-159.311-159.302c-7.101-7.108-10.326-17.211-8.641-27.122 c1.688-9.903,8.061-18.37,17.116-22.729l64.563-31.076l-282.357-75.659l75.651,282.356l31.066-64.555 c4.358-9.055,12.835-15.43,22.737-17.115C1476.9,1540.537,1478.639,1540.391,1480.368,1540.391z"}),(0,a.createElement)(r.Path,{d:"M1140.299,292.544c111.231,0,327.736,121.636,327.736,344.61c0,17.12,13.873,30.997,30.997,30.997 c17.116,0,30.997-13.877,30.997-30.997c0-116.063-51.296-223.666-144.435-302.993c-73.896-62.941-170.182-103.612-245.296-103.612 c-17.116,0-30.998,13.877-30.998,30.998S1123.183,292.544,1140.299,292.544z"})),puzzle:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1794.799,86.801c0-45.832-38.102-83.119-84.936-83.119H901.35h-3.8H93.755 c-45.832,0-83.119,38.102-83.119,84.94v812.311c0,1.243,0.092,2.47,0.231,3.678c-0.14,1.208-0.231,2.424-0.231,3.677v807.594 c0,45.832,38.101,83.119,84.936,83.119h808.513h3.8h803.795c45.831,0,83.119-38.102,83.119-84.94V901.747 c0-1.243-0.093-2.469-0.232-3.677c0.14-1.208,0.232-2.428,0.232-3.675V86.801z M1732.043,86.801v776.217h-243.219 c33.027-37.121,52.45-85.802,52.45-137.973c0-41.45-12.262-80.067-33.282-112.504c-36.425-59.971-102.365-100.121-177.514-100.121 c-114.426,0-207.517,93.091-207.517,207.517c0.005,41.893,12.554,81.503,34.587,114.715c6.236,10.024,13.272,19.537,21.129,28.366 H932.727V524.099c0-10.37-5.047-19.532-12.799-25.249c-5.691-5.796-13.609-9.398-22.378-9.398h-9.739 c-13.483,0-25.455,8.61-29.745,21.393c-19.808,59.008-74.951,98.65-137.22,98.65c-23.59,0-45.862-5.708-65.561-15.764 c-43.652-24.956-73.156-71.948-73.156-125.733c0-79.827,64.939-144.771,144.763-144.771c22.955,0,44.921,5.427,64.527,15.189 c30.695,17.146,54.906,45.228,66.646,80.208c2.933,8.746,9.508,15.457,17.659,18.871c5.182,3.673,11.468,5.787,18.131,5.787h7.494 c17.33,0,31.377-14.042,31.377-31.377V66.437h777.137C1722.093,66.437,1732.043,75.573,1732.043,86.801z M73.392,88.622 c0-12.23,9.136-22.185,20.364-22.185h772.417v247.737c-13.447-12.178-28.418-22.575-44.58-30.861 c-30.126-16.726-64.584-26.107-100.747-26.107c-114.426,0-207.517,93.095-207.517,207.525c0,80.024,45.557,149.56,112.072,184.172 c30.029,16.915,64.641,26.61,101.491,26.61c52.805,0,101.994-19.926,139.281-53.694v247.732h-338.39 c-17.33,0-31.377,14.048-31.377,31.38v9.735c0,7.117,2.447,13.771,6.588,19.139c3.633,7.257,10.016,13.019,18.07,15.715 c31.597,10.61,57.555,31.412,74.938,57.948c13.067,21.914,20.447,47.364,20.447,74.163c0,79.827-64.939,144.762-144.762,144.762 c-50.271,0-94.618-25.766-120.581-64.769c-13.273-21.861-20.92-47.495-20.92-74.881c-0.004-62.264,39.646-117.412,98.659-137.224 c12.782-4.29,21.392-16.258,21.392-29.74v-7.494c0-5.953-1.685-11.489-4.557-16.229c-3.83-13.005-15.842-22.505-30.086-22.505 H73.392V88.622z M73.392,1715.881V939.665h243.219c-33.028,37.12-52.45,85.797-52.45,137.968c0,41.454,12.266,80.072,33.286,112.51 c36.42,59.97,102.362,100.119,177.51,100.119c114.426,0,207.517-93.09,207.517-207.517c-0.005-41.892-12.56-81.508-34.587-114.724 c-6.238-10.024-13.272-19.532-21.125-28.356h245.946v338.919c0,10.374,5.051,19.54,12.804,25.248 c5.69,5.796,13.609,9.395,22.373,9.395h9.74c13.482,0,25.455-8.606,29.744-21.388c19.809-59.008,74.951-98.65,137.22-98.65 c23.577,0,45.836,5.699,65.53,15.741c43.67,24.951,73.187,71.956,73.187,125.756c0,79.817-64.938,144.762-144.762,144.762 c-22.96,0-44.931-5.42-64.536-15.19c-30.69-17.142-54.894-45.228-66.639-80.203c-2.938-8.746-9.512-15.461-17.671-18.876 c-5.18-3.668-11.461-5.778-18.118-5.778h-7.495c-17.33,0-31.377,14.044-31.377,31.378v345.468H95.572 C83.341,1736.245,73.392,1727.104,73.392,1715.881z M1732.043,1714.06c0,12.231-9.135,22.186-20.363,22.186H939.263v-247.737 c13.443,12.17,28.414,22.57,44.571,30.852c30.125,16.731,64.589,26.117,100.755,26.117c114.427,0,207.518-93.1,207.518-207.526 c0-80.037-45.569-149.586-112.098-184.185c-30.024-16.906-64.624-26.598-101.465-26.598c-52.805,0-101.999,19.926-139.281,53.693 V933.124h338.39c17.33,0,31.377-14.043,31.377-31.377v-9.738c0-7.113-2.447-13.767-6.593-19.133 c-3.628-7.258-10.015-13.019-18.065-15.72c-31.597-10.607-57.559-31.408-74.938-57.949c-13.066-21.909-20.446-47.364-20.446-74.163 c0-79.823,64.938-144.762,144.762-144.762c50.266,0,94.618,25.761,120.581,64.764c13.268,21.861,20.919,47.5,20.919,74.889 c0.005,62.265-39.646,117.408-98.658,137.22c-12.782,4.29-21.393,16.262-21.393,29.745v7.494c0,5.952,1.686,11.484,4.557,16.23 c3.83,13,15.838,22.499,30.087,22.499h342.201V1714.06z"})),refresh:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M147.558,1234.803c-42.809-95.198-67.328-198.696-71.438-306.137 c-8.405-219.555,69.194-429.247,218.505-590.444C443.93,177.034,647.075,83.629,866.635,75.225 c211.431-8.08,413.71,63.609,572.343,202.278l-197.662,7.562c-17.369,0.667-30.911,15.281-30.248,32.652 c0.649,16.967,14.604,30.272,31.43,30.272c0.41,0,0.817,0,1.226-0.018l272.117-10.417c0.328,0.018,0.65,0.053,0.982,0.053 c0.408,0,0.817-0.009,1.227-0.026c17.37-0.659,30.911-15.281,30.25-32.653l-10.448-273.207 c-0.664-17.372-15.474-30.875-32.655-30.25c-17.371,0.666-30.914,15.286-30.25,32.657l7.561,197.786 C1311.412,81.416,1092.766,3.566,864.228,12.322C627.864,21.37,409.175,121.919,248.439,295.444 C87.704,468.98,4.167,694.718,13.213,931.072c4.426,115.696,30.878,227.107,76.989,329.604c0.922,3.539,2.406,6.85,4.399,9.802 c0.009,0.016,0.018,0.034,0.027,0.052l0.008-0.009c5.748,8.44,15.431,13.99,26.408,13.99c17.631,0,31.911-14.289,31.911-31.914 c0-6.587-1.999-12.7-5.416-17.784L147.558,1234.803z"}),(0,a.createElement)(r.Path,{d:"M1709.859,539.519c-0.75-2.45-1.817-4.76-3.104-6.921c-0.113-0.245-0.22-0.491-0.334-0.737l-0.083,0.053 c-5.651-8.958-15.605-14.93-26.982-14.93c-17.619,0-31.92,14.288-31.92,31.914c0,7.008,2.289,13.472,6.121,18.733 c129.647,291.647,82.579,645.552-147.685,894.139c-149.311,161.198-352.457,254.597-572.01,263.001 c-211.414,8.079-413.702-63.61-572.335-202.271l197.656-7.572c17.372-0.667,30.914-15.279,30.25-32.65 c-0.668-17.372-15.352-30.817-32.656-30.256l-272.366,10.426c-0.654-0.019-1.304-0.054-1.967-0.036 c-17.371,0.668-30.913,15.289-30.25,32.661l10.459,273.204c0.65,16.967,14.604,30.272,31.432,30.272 c0.408,0,0.816-0.009,1.225-0.018c17.371-0.667,30.913-15.289,30.25-32.66l-7.574-197.802 c162.422,142.869,367.644,220.274,583.58,220.274c11.531,0,23.119-0.228,34.702-0.667 c236.359-9.046,455.05-109.594,615.789-283.128C1800.597,1236.227,1850.813,853.956,1709.859,539.519z"})),repair:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M803.722,820.892l-247.878-247.87l71.705-71.702l247.875,247.871l40.808-40.802L655.949,448.104 l74.925-74.921c0.596-0.596,1.147-1.216,1.682-1.86c0.592-0.499,1.175-1.006,1.735-1.562l135.512-135.512 c11.126-11.12,11.292-29.106,0.366-40.43l-1.538-1.606c-1.284-1.349-2.572-2.693-3.893-4.018 C796.995,120.454,709.056,80.01,629.497,80.01c-53.655,0-99.814,17.796-133.483,51.468c-0.733,0.73-1.409,1.503-2.053,2.3 c-0.443,0.388-0.89,0.765-1.309,1.183L185.294,442.324c-11.267,11.271-11.267,29.539,0,40.81l45.403,45.399l-37.493,37.493 l-45.403-45.408c-5.414-5.41-12.752-8.453-20.405-8.453c-7.652,0-14.99,3.043-20.404,8.453L12.869,614.75 c-11.268,11.271-11.268,29.538,0,40.802l197.415,197.416c5.414,5.41,12.752,8.454,20.404,8.454c7.653,0,14.995-3.043,20.405-8.454 l94.115-94.13c11.268-11.264,11.268-29.531,0-40.802l-45.395-45.399l37.493-37.493l45.395,45.399 c5.636,5.636,13.019,8.446,20.405,8.446c7.383,0,14.77-2.818,20.401-8.446l79.124-79.124l260.285,260.285L803.722,820.892z M629.497,137.719c58.812,0,124.33,28.287,178.733,76.497l-94.34,94.334L559.981,154.64 C579.485,143.503,603.046,137.719,629.497,137.719z M230.688,791.756L74.079,635.15l53.317-53.321l156.602,156.605 L230.688,791.756z M261.089,629.749l-24.999-24.999l35.408-35.408l24.998,24.998L261.089,629.749z M403.106,619.331 L246.505,462.725L513.058,196.17l156.609,156.612L403.106,619.331z"}),(0,a.createElement)(r.Path,{d:"M1763.996,1556.146l-593.695-593.688l-40.803,40.801l573.296,573.296l-71.701,71.709l-573.303-573.303 l-40.803,40.81l593.704,593.705c5.41,5.408,12.752,8.452,20.401,8.452c7.657,0,14.999-3.044,20.409-8.452l112.502-112.521 C1775.268,1585.686,1775.268,1567.418,1763.996,1556.146z"}),(0,a.createElement)(r.Path,{d:"M1780.444,264.271c-3.269-9.372-11.135-16.4-20.812-18.614c-9.67-2.206-19.806,0.708-26.825,7.729 l-116.585,116.576l-109.307-109.315l116.585-116.57c7.02-7.021,9.942-17.156,7.729-26.833c-2.214-9.679-9.243-17.541-18.614-20.814 c-29.071-10.149-59.48-15.298-90.379-15.298c-73.062,0-141.743,28.449-193.397,80.104c-51.671,51.66-80.123,120.344-80.123,193.406 c0,35.343,6.723,69.648,19.442,101.514l-736.242,736.236c-31.861-12.721-66.158-19.435-101.497-19.435 c-73.058,0-141.744,28.452-193.407,80.115c-73.802,73.801-99.243,185.193-64.809,283.775c3.272,9.372,11.134,16.4,20.812,18.614 c9.673,2.206,19.809-0.7,26.833-7.72l116.581-116.586l109.315,109.299l-116.585,116.586c-7.021,7.02-9.938,17.155-7.729,26.833 c2.214,9.677,9.242,17.534,18.613,20.812c29.064,10.152,59.468,15.296,90.372,15.304c0.008,0,0.008,0,0.016,0 c73.042,0,141.728-28.46,193.39-80.122c79.559-79.566,99.726-196.352,60.563-294.822l736.347-736.333 c31.865,12.728,66.162,19.443,101.506,19.443c0.008,0,0,0,0.008,0c73.046,0,141.736-28.444,193.391-80.106 C1789.438,474.246,1814.878,362.854,1780.444,264.271z M583.011,1599.065c-40.762,40.763-94.948,63.216-152.58,63.216 c0,0-0.012,0-0.016,0c-7.915-0.008-15.792-0.436-23.602-1.28l100.137-100.138c5.414-5.417,8.454-12.752,8.454-20.408 c0-7.648-3.04-14.99-8.454-20.4L356.83,1369.946c-11.263-11.264-29.535-11.264-40.806,0l-100.072,100.072 c-6.835-64.134,15.333-129.603,61.871-176.146c40.762-40.762,94.952-63.207,152.597-63.207c57.64,0,111.83,22.445,152.588,63.215 C667.146,1378.013,667.146,1514.926,583.011,1599.065z M659.282,1288.535l-70.945-70.951l702.501-702.488l70.953,70.944 L659.282,1288.535z M1674.832,507.246c-40.761,40.753-94.951,63.199-152.596,63.199S1410.394,548,1369.632,507.238 c-40.753-40.762-63.207-94.953-63.207-152.597s22.454-111.834,63.216-152.598c40.753-40.758,94.951-63.204,152.596-63.204 c7.922,0,15.796,0.429,23.605,1.28l-100.137,100.127c-5.411,5.41-8.453,12.752-8.453,20.4c0,7.657,3.042,14.991,8.453,20.401 l150.108,150.117c11.271,11.271,29.547,11.271,40.81,0.008l100.072-100.073C1743.531,395.234,1721.367,460.704,1674.832,507.246z"})),responsive:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1748.663,978.006h-39.578h-49.802H1448.09c-23.352,0-42.35,18.998-42.35,42.354v40.533v49.801v193.7 v49.801v212.886c0,23.355,18.998,42.354,42.35,42.354h300.573c23.354,0,42.354-18.998,42.354-42.354v-546.721 C1791.017,997.004,1772.018,978.006,1748.663,978.006z M1741.215,1559.633h-285.674v-205.438v-49.801v-193.7v-49.801v-33.086 h203.742h49.802h32.13V1559.633z"}),(0,a.createElement)(r.Path,{d:"M1598.133,1479.07c-13.263,0-24.011,10.755-24.011,24.011c0,13.267,10.748,24.012,24.011,24.012 c13.257,0,24.012-10.745,24.012-24.012C1622.145,1489.825,1611.39,1479.07,1598.133,1479.07z"}),(0,a.createElement)(r.Path,{d:"M1639.063,1060.893c-1.765-0.963-3.763-1.561-5.916-1.561H1563.6c-2.154,0-4.151,0.598-5.916,1.561 c-3.873,2.111-6.534,6.17-6.534,10.891c0,6.875,5.575,12.45,12.45,12.45h69.547c6.875,0,12.45-5.575,12.45-12.45 C1645.597,1067.063,1642.936,1063.004,1639.063,1060.893z"}),(0,a.createElement)(r.Path,{d:"M58.785,261.847c0-11.842,8.07-21.479,17.991-21.479h1540.741c9.925,0,17.998,9.636,17.998,21.479v674.657 h8.007h41.794V261.847c0-39.303-30.413-71.28-67.799-71.28H76.776c-37.382,0-67.792,31.977-67.792,71.28v1021.067 c0,39.304,30.41,71.28,67.792,71.28h614.065v205.285H453.896c-13.753,0-24.901,11.147-24.901,24.9s11.148,24.901,24.901,24.901 h261.846h262.823h261.847c13.752,0,24.9-11.148,24.9-24.901s-11.148-24.9-24.9-24.9h-236.946v-205.285h353.185v-48.397v-1.403 H76.776c-9.921,0-17.991-9.634-17.991-21.479v-172.221H1356.65v-24.06v-25.741H58.785V261.847z M953.664,1559.479H740.644 v-205.285h213.021V1559.479z"}),(0,a.createElement)(r.Path,{d:"M808.262,1205.613c0,21.476,17.415,38.887,38.886,38.887c21.472,0,38.894-17.411,38.894-38.887 c0-21.475-17.421-38.89-38.894-38.89C825.677,1166.724,808.262,1184.139,808.262,1205.613z"}),(0,a.createElement)(r.Path,{d:"M273.199,457.516h625.589c13.753,0,24.9-11.148,24.9-24.901s-11.147-24.9-24.9-24.9H273.199 c-13.753,0-24.9,11.147-24.9,24.9S259.446,457.516,273.199,457.516z"}),(0,a.createElement)(r.Path,{d:"M1421.102,556.41H273.199c-13.753,0-24.9,11.147-24.9,24.9c0,13.753,11.147,24.901,24.9,24.901h1147.902 c13.753,0,24.9-11.147,24.9-24.901C1446.002,567.558,1434.854,556.41,1421.102,556.41z"}),(0,a.createElement)(r.Path,{d:"M1421.102,705.102H273.199c-13.753,0-24.9,11.148-24.9,24.901s11.147,24.9,24.9,24.9h1147.902 c13.753,0,24.9-11.147,24.9-24.9S1434.854,705.102,1421.102,705.102z"}),(0,a.createElement)(r.Path,{d:"M1421.102,853.798H273.199c-13.753,0-24.9,11.147-24.9,24.9s11.147,24.901,24.9,24.901h1147.902 c13.753,0,24.9-11.148,24.9-24.901S1434.854,853.798,1421.102,853.798z"})),science:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M890.431,974.791c69.867,0,126.714-56.838,126.714-126.704c0-69.867-56.847-126.705-126.714-126.705 c-69.867,0-126.7,56.838-126.7,126.705C763.73,917.953,820.564,974.791,890.431,974.791z M890.431,782.932 c35.933,0,65.163,29.226,65.163,65.155c0,35.928-29.23,65.159-65.163,65.159c-35.928,0-65.154-29.231-65.154-65.159 C825.276,812.158,854.503,782.932,890.431,782.932z"}),(0,a.createElement)(r.Path,{d:"M1393.528,849.313c107.104-90.789,190.083-183.293,228.049-264.898c-9.547,1.934-19.43,2.959-29.544,2.959 c-13.436,0-26.451-1.824-38.848-5.184c-20.757,36.129-52.147,77.005-93.216,120.522c-33.35,35.331-71.835,71.25-114.557,107.113 c-53.068-42.077-111.368-83.756-173.604-124.039c-4.372-67.951-11.445-134.917-21.162-198.771 c112.563-39.035,214.152-61.298,293.431-62.93c2.182-22.314,9.32-43.18,20.294-61.515c-3.63-0.083-7.229-0.192-10.965-0.192 c-84.31,0-192.959,22.611-313.084,63.409C1095.904,186.437,1011.979,4.434,892.464,4.434 c-119.523,0-203.453,182.002-247.859,421.353c-120.133-40.798-228.778-63.409-313.088-63.409c-0.375,0-0.724,0.018-1.1,0.018 c11.079,18.457,18.265,39.497,20.425,61.986c77.738,3.207,175.549,25.221,283.43,62.633 c-9.717,63.854-16.791,130.823-21.167,198.779c-62.231,40.283-120.526,81.954-173.594,124.03 c-42.723-35.859-81.208-71.783-114.557-107.113c-40.27-42.661-71.242-82.8-92.002-118.405c-9.727,2.007-19.793,3.067-30.104,3.067 c-14.146,0-27.821-2.034-40.789-5.738c37.355,82.281,121.011,175.863,229.337,267.678 c-41.208,35.039-78.546,70.143-111.206,104.753c-122.351,129.632-165.36,236.671-124.393,309.549 c27.241,48.456,86.356,73.026,175.706,73.026c84.314,0,192.959-22.607,313.097-63.414 c24.544,132.286,61.167,247.014,109.194,323.216c9.032-20.979,22.769-39.462,39.855-54.159 c-18.356-33.799-35.767-76.254-51.313-126.133c-15.473-49.611-28.637-104.691-39.362-163.867 c61.358-23.117,125.033-50.542,189.49-81.762c64.452,31.22,128.123,58.645,189.481,81.757 c-10.729,59.177-23.894,114.261-39.362,163.872c-15.909,51.043-33.772,94.35-52.609,128.533 c16.847,15.207,30.182,34.227,38.69,55.668c49.245-76.158,86.688-192.578,111.659-327.129 c120.13,40.811,228.783,63.418,313.102,63.418c89.336,0,148.461-24.574,175.697-73.031 c40.972-72.873-2.038-179.912-124.388-309.544C1472.069,919.455,1434.731,884.351,1393.528,849.313z M1296.368,849.505 c-37.753,29.492-78.184,58.771-120.802,87.491c1-29.188,1.519-58.396,1.519-87.482c0-29.096-0.519-58.313-1.519-87.5 C1218.185,790.729,1258.615,820.013,1296.368,849.505z M669.376,849.514c0-43.538,1.091-86.514,3.186-128.655 c35.701-22.472,72.638-44.477,110.582-65.809c36.478-20.508,73.009-39.851,109.321-58.016 c36.308,18.165,72.838,37.508,109.312,58.016c37.953,21.329,74.881,43.337,110.582,65.805c2.099,42.137,3.181,85.117,3.181,128.66 c0,43.529-1.082,86.504-3.181,128.638c-35.706,22.472-72.638,44.48-110.591,65.817c-36.474,20.5-73,39.848-109.303,58.008 c-36.308-18.16-72.843-37.508-109.312-58.012c-37.953-21.338-74.885-43.346-110.591-65.818 C670.467,936.018,669.376,893.043,669.376,849.514z M1107.445,645.493c-24.697-14.966-49.878-29.688-75.514-44.097 c-23.257-13.072-46.558-25.683-69.832-37.853c44.146-20.364,87.635-38.786,129.942-55.07 C1098.47,552.443,1103.618,598.281,1107.445,645.493z M742.337,282.868C784.679,147.061,840.793,65.98,892.464,65.98 c51.663,0,107.781,81.081,150.119,216.888c15.469,49.617,28.633,104.696,39.358,163.864 c-61.354,23.113-125.029,50.537-189.477,81.762c-64.457-31.225-128.127-58.649-189.49-81.762 C713.708,387.563,726.864,332.484,742.337,282.868z M692.873,508.469c42.308,16.284,85.802,34.711,129.947,55.075 c-23.274,12.17-46.571,24.78-69.828,37.853c-25.635,14.408-50.825,29.13-75.522,44.097 C681.301,598.281,686.45,552.443,692.873,508.469z M609.357,762.019c-1.004,29.187-1.527,58.399-1.527,87.495 c0,29.086,0.523,58.295,1.523,87.478c-42.618-28.716-83.04-57.999-120.796-87.482C526.313,820.017,566.735,790.734,609.357,762.019 z M331.504,1275.095c-63.618,0-106.965-14.792-122.062-41.64c-25.312-45.035,17.864-133.687,115.508-237.147 c33.415-35.418,72.005-71.416,114.841-107.362c53.796,42.586,112.301,84.358,173.302,123.996 c4.372,68.047,11.445,135.112,21.18,199.063C517.268,1252.575,412.053,1275.095,331.504,1275.095z M692.873,1190.541 c-6.427-44.002-11.581-89.874-15.412-137.125c24.955,15.172,50.17,29.941,75.535,44.197c23.252,13.072,46.553,25.683,69.832,37.852 C778.68,1155.83,735.181,1174.261,692.873,1190.541z M962.1,1135.465c23.274-12.169,46.575-24.779,69.823-37.844 c25.36-14.26,50.577-29.029,75.535-44.201c-3.831,47.247-8.979,93.119-15.416,137.116 C1049.734,1174.261,1006.245,1155.83,962.1,1135.465z M1575.478,1233.455c-15.097,26.848-58.443,41.64-122.053,41.64 c-80.558,0-185.769-22.52-302.777-63.091c9.73-63.95,16.813-131.012,21.18-199.063c61.001-39.634,119.51-81.404,173.311-123.996 c42.827,35.946,81.417,71.944,114.841,107.362C1557.614,1099.769,1600.795,1188.42,1575.478,1233.455z"}),(0,a.createElement)(r.Path,{d:"M323.685,429.749c0-70.146-57.069-127.211-127.215-127.211c-70.142,0-127.207,57.064-127.207,127.211 c0,70.142,57.065,127.211,127.207,127.211C266.616,556.96,323.685,499.891,323.685,429.749z M131.817,429.749 c0-35.649,29.003-64.657,64.653-64.657c35.653,0,64.661,29.008,64.661,64.657c0,35.649-29.008,64.657-64.661,64.657 C160.82,494.406,131.817,465.398,131.817,429.749z"}),(0,a.createElement)(r.Path,{d:"M1603.526,302.538c-70.146,0-127.211,57.064-127.211,127.211c0,70.142,57.064,127.211,127.211,127.211 c70.146,0,127.211-57.069,127.211-127.211C1730.737,359.603,1673.672,302.538,1603.526,302.538z M1603.526,494.406 c-35.653,0-64.657-29.008-64.657-64.657c0-35.649,29.004-64.657,64.657-64.657s64.656,29.008,64.656,64.657 C1668.183,465.398,1639.18,494.406,1603.526,494.406z"}),(0,a.createElement)(r.Path,{d:"M892.983,1541.145c-70.142,0-127.206,57.064-127.206,127.211s57.064,127.211,127.206,127.211 c70.15,0,127.22-57.064,127.22-127.211S963.134,1541.145,892.983,1541.145z M892.983,1733.013 c-35.649,0-64.652-29.003-64.652-64.657c0-35.652,29.003-64.656,64.652-64.656c35.658,0,64.666,29.004,64.666,64.656 C957.649,1704.01,928.642,1733.013,892.983,1733.013z"})),search:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1715.514,1630.048l-368.416-368.402c-17.967-17.977-41.866-27.874-67.281-27.874 c-13.782,0-27.071,3.003-39.257,8.527l-94.596-94.594c133.584-119.751,217.789-293.534,217.789-486.634 c0-360.375-293.193-653.561-653.572-653.561c-360.38,0-653.568,293.186-653.568,653.561c0,360.382,293.188,653.57,653.568,653.57 c146.069,0,281.087-48.174,390.033-129.453l96.854,96.862c-8.041,14.144-12.399,30.159-12.399,46.869 c0,25.42,9.897,49.314,27.868,67.283l368.407,368.423c17.972,17.968,41.862,27.865,67.283,27.865 c25.42,0,49.318-9.902,67.29-27.874c17.972-17.971,27.869-41.867,27.869-67.287 C1743.387,1671.914,1733.489,1648.02,1715.514,1630.048z M118.546,661.071c0-326.224,265.405-591.627,591.634-591.627 c326.229,0,591.638,265.403,591.638,591.627c0,326.231-265.408,591.636-591.638,591.636 C383.952,1252.707,118.546,987.302,118.546,661.071z M1671.72,1720.823c-6.272,6.277-14.62,9.733-23.492,9.733 c-8.879,0-17.222-3.456-23.489-9.726l-368.407-368.424c-6.272-6.272-9.728-14.614-9.728-23.488c0-8.873,3.455-17.215,9.732-23.488 c6.269-6.273,14.605-9.726,23.48-9.726c8.869,0,17.211,3.452,23.488,9.733l368.415,368.406c6.276,6.273,9.733,14.615,9.733,23.484 C1681.453,1706.203,1677.996,1714.547,1671.72,1720.823z"}),(0,a.createElement)(r.Path,{d:"M733.941,187.121c145.201,0,427.813,158.624,427.813,449.396c0,17.104,13.863,30.967,30.968,30.967 c17.104,0,30.968-13.863,30.968-30.967c0-145.848-64.515-281.118-181.66-380.892c-93.039-79.241-213.969-130.439-308.088-130.439 c-17.104,0-30.967,13.864-30.967,30.967C702.974,173.257,716.838,187.121,733.941,187.121z"})),security:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1096.233,698.227c0-108.2-88.028-196.229-196.229-196.229c-108.205,0-196.234,88.029-196.234,196.229 v74.779H571.518v226.107c1.825,179.273,149.183,325.127,328.487,325.127s326.658-145.854,328.478-325.445V773.006h-132.249V698.227 z M1165.753,835.734v162.74c-1.47,145.039-120.684,263.037-265.749,263.037s-264.283-117.998-265.758-262.717V835.734H1165.753z M766.5,773.006v-74.779c0-73.611,59.889-133.5,133.504-133.5c73.611,0,133.5,59.889,133.5,133.5v74.779H766.5z"}),(0,a.createElement)(r.Path,{d:"M1668.854,759.284c-58.126-318.375-309.768-570.017-628.138-628.141 C1031.553,61.639,971.966,7.808,900,7.808S768.442,61.642,759.28,131.146C440.91,189.271,189.268,440.914,131.146,759.284 c-69.507,9.162-123.34,68.754-123.34,140.72c0,71.968,53.833,131.551,123.34,140.713 c58.121,318.371,309.763,570.008,628.134,628.135c9.162,69.502,68.754,123.34,140.72,123.34s131.553-53.834,140.716-123.34 c318.37-58.122,570.017-309.764,628.138-628.13c69.507-9.163,123.34-68.75,123.34-140.718 C1792.193,828.038,1738.36,768.446,1668.854,759.284z M900,70.537c33.898,0,62.808,21.432,74.109,51.424 c3.27,8.672,5.142,18.025,5.142,27.827c0,12.525-3.001,24.335-8.195,34.876c-12.93,26.241-39.88,44.382-71.056,44.382 c-31.181,0-58.13-18.141-71.06-44.382c-5.198-10.541-8.196-22.351-8.196-34.876c0-9.801,1.873-19.154,5.142-27.827 C837.188,91.969,866.098,70.537,900,70.537z M121.962,974.115c-29.995-11.306-51.427-40.211-51.427-74.111 c0-33.902,21.432-62.812,51.427-74.114c8.672-3.269,18.027-5.142,27.829-5.142c12.523,0,24.333,2.998,34.874,8.196 c26.236,12.93,44.377,39.879,44.377,71.06c0,31.179-18.141,58.123-44.377,71.058c-10.541,5.19-22.351,8.191-34.874,8.191 C139.989,979.253,130.634,977.381,121.962,974.115z M900,1729.462c-33.902,0-62.812-21.432-74.114-51.427 c-3.269-8.672-5.142-18.027-5.142-27.828c0-12.523,2.998-24.334,8.196-34.875c12.93-26.24,39.879-44.377,71.06-44.377 c31.176,0,58.126,18.137,71.056,44.377c5.194,10.541,8.195,22.352,8.195,34.875c0,9.801-1.872,19.156-5.142,27.828 C962.808,1708.03,933.898,1729.462,900,1729.462z M1034.927,1606.087c-18.605-56.747-72.04-97.86-134.927-97.86 s-116.326,41.113-134.931,97.86c-288.367-54.993-516.166-282.788-571.159-571.159c56.748-18.604,97.861-72.039,97.861-134.924 c0-62.887-41.113-116.326-97.861-134.931c54.993-288.371,282.792-516.17,571.159-571.163 c18.605,56.752,72.044,97.865,134.931,97.865s116.321-41.113,134.927-97.865c288.371,54.993,516.17,282.792,571.163,571.163 c-56.752,18.605-97.865,72.044-97.865,134.931c0,62.885,41.113,116.319,97.865,134.924 C1551.097,1323.299,1323.298,1551.094,1034.927,1606.087z M1678.038,974.115c-8.673,3.266-18.023,5.138-27.824,5.138 c-12.528,0-24.338-3.001-34.879-8.191c-26.24-12.935-44.382-39.879-44.382-71.058c0-31.176,18.142-58.126,44.382-71.06 c10.541-5.198,22.351-8.196,34.879-8.196c9.801,0,19.151,1.873,27.824,5.142c29.995,11.298,51.427,40.212,51.427,74.114 C1729.465,933.904,1708.033,962.818,1678.038,974.115z"})),securityAlt:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1590.487,1148.496V645.409C1648.671,631.251,1692,578.732,1692,516.255 c0-73.311-59.631-132.951-132.941-132.951c-38.059,0-72.407,16.104-96.673,41.83l-437.927-252.835 c3.481-11.86,5.375-24.388,5.375-37.357C1029.834,61.64,970.203,2,896.895,2c-73.302,0-132.941,59.64-132.941,132.942 c0,12.969,1.903,25.497,5.384,37.357L331.416,425.129c-24.255-25.725-58.609-41.825-96.667-41.825 c-73.311,0-132.95,59.64-132.95,132.951c0,62.472,43.333,114.991,101.512,129.154v503.093 c-58.179,14.161-101.512,66.68-101.512,129.156c0,73.302,59.639,132.942,132.95,132.942c36.406,0,69.431-14.72,93.467-38.51 l441.122,254.681c-3.481,11.86-5.384,24.388-5.384,37.356c0,73.304,59.64,132.942,132.941,132.942 c73.309,0,132.939-59.639,132.939-132.942c0-12.969-1.894-25.496-5.375-37.356l441.128-254.69 c24.036,23.796,57.062,38.52,93.472,38.52c73.311,0,132.941-59.641,132.941-132.942 C1692,1215.178,1648.671,1162.653,1590.487,1148.496z M1489.476,1285.709c-0.299-2.645-0.5-5.323-0.5-8.051 c0-27.333,15.766-51.006,38.645-62.555c9.473-4.78,20.126-7.533,31.438-7.533c11.304,0,21.958,2.753,31.42,7.529 c22.896,11.545,38.664,35.216,38.664,62.559c0,38.646-31.438,70.084-70.084,70.084c-12.742,0-24.659-3.473-34.963-9.439 C1505.347,1327.45,1492.061,1308.205,1489.476,1285.709z M1519.764,458.255c11.216-7.625,24.738-12.093,39.295-12.093 c38.646,0,70.084,31.442,70.084,70.093c0,27.338-15.768,51.006-38.655,62.555c-9.462,4.775-20.116,7.528-31.429,7.528 c-11.304,0-21.959-2.753-31.43-7.533c-22.888-11.545-38.653-35.213-38.653-62.551c0-1.048,0.113-2.066,0.156-3.1 C1490.141,490.351,1502.006,470.331,1519.764,458.255z M826.811,134.942c0-38.646,31.438-70.084,70.083-70.084 c38.645,0,70.082,31.438,70.082,70.084c0,1.368-0.123,2.701-0.201,4.051c-1.308,22.747-13.443,42.614-31.396,54.457 c-11.057,7.296-24.272,11.576-38.485,11.576c-14.206,0-27.421-4.28-38.479-11.576c-17.95-11.843-30.087-31.71-31.394-54.457 C826.942,137.643,826.811,136.31,826.811,134.942z M164.656,516.255c0-38.651,31.442-70.093,70.092-70.093 c14.553,0,28.08,4.463,39.295,12.088c17.758,12.071,29.627,32.096,30.631,54.9c0.048,1.035,0.158,2.056,0.158,3.104 c0,27.342-15.772,51.01-38.664,62.559c-9.466,4.771-20.116,7.524-31.42,7.524c-11.312,0-21.971-2.753-31.438-7.533 C180.422,567.257,164.656,543.589,164.656,516.255z M269.707,1338.311c-10.304,5.965-22.221,9.432-34.958,9.432 c-38.65,0-70.092-31.438-70.092-70.084c0-27.337,15.767-51.006,38.654-62.555c9.467-4.78,20.126-7.533,31.438-7.533 c11.304,0,21.954,2.753,31.42,7.523c22.892,11.551,38.664,35.222,38.664,62.564c0,2.731-0.198,5.41-0.5,8.059 C301.741,1308.215,288.46,1327.46,269.707,1338.311z M966.977,1664.128c0,38.646-31.438,70.084-70.082,70.084 c-38.646,0-70.083-31.438-70.083-70.084c0-1.368,0.131-2.704,0.21-4.051c1.307-22.743,13.444-42.615,31.394-54.462 c11.058-7.295,24.273-11.575,38.479-11.575c14.213,0,27.429,4.28,38.485,11.575c17.952,11.847,30.088,31.719,31.396,54.462 C966.854,1661.424,966.977,1662.76,966.977,1664.128z M992.959,1572.372c-24.22-25.349-58.314-41.19-96.064-41.19 c-37.743,0-71.837,15.842-96.059,41.19l-439.614-253.809c4.183-12.892,6.467-26.633,6.467-40.905 c0-62.48-43.337-115.005-101.521-129.162V645.413c58.185-14.158,101.521-66.681,101.521-129.158c0-12.663-1.819-24.905-5.143-36.52 l438.289-253.042c24.221,25.352,58.315,41.189,96.059,41.189c37.75,0,71.845-15.837,96.064-41.189l438.297,253.046 c-3.314,11.61-5.139,23.853-5.139,36.515c0,62.472,43.337,114.991,101.512,129.154l-0.009,503.093 c-58.174,14.161-101.503,66.68-101.503,129.156c0,14.269,2.289,28.004,6.471,40.897L992.959,1572.372z"}),(0,a.createElement)(r.Path,{d:"M1264.597,747.992L916.255,475.829c-11.365-8.884-27.332-8.884-38.696,0L529.218,747.992 c-7.63,5.954-12.084,15.092-12.084,24.764c0,233.561,100.426,372.219,184.671,447.416 c91.516,81.682,182.901,107.541,186.742,108.604c2.736,0.753,5.55,1.131,8.357,1.131c2.815,0,5.628-0.378,8.355-1.131 c3.849-1.063,95.225-26.922,186.74-108.604c84.247-75.197,184.673-213.855,184.673-447.416 C1276.672,763.083,1272.216,753.946,1264.597,747.992z M1052.223,1171.406c-65.664,59.303-132.381,86.044-155.372,94.063 c-22.677-7.841-87.754-33.792-153.19-92.195c-105.319-94.003-160.293-223.577-163.521-385.308l316.763-247.491l316.761,247.491 C1210.464,948.58,1156.191,1077.519,1052.223,1171.406z"})),servers:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1713.195,662.483H86.805c-46.621,0-84.549,37.929-84.549,84.55v315.328 c0,46.615,37.928,84.54,84.549,84.54h1626.391c46.625,0,84.55-37.925,84.55-84.54V747.033 C1797.745,700.412,1759.82,662.483,1713.195,662.483z M1734.746,1062.361c0,11.882-9.668,21.541-21.551,21.541H86.805 c-11.883,0-21.55-9.659-21.55-21.541V747.033c0-11.883,9.667-21.55,21.55-21.55h1626.391c11.883,0,21.551,9.667,21.551,21.55 V1062.361z"}),(0,a.createElement)(r.Path,{d:"M262.693,851.239c-29.518,0-53.45,23.933-53.45,53.448c0,29.521,23.932,53.445,53.45,53.445 s53.45-23.924,53.45-53.445C316.144,875.172,292.211,851.239,262.693,851.239z"}),(0,a.createElement)(r.Path,{d:"M447.018,851.239c-29.522,0-53.455,23.933-53.455,53.448c0,29.521,23.932,53.445,53.455,53.445 c29.513,0,53.445-23.924,53.445-53.445C500.463,875.172,476.53,851.239,447.018,851.239z"}),(0,a.createElement)(r.Path,{d:"M631.339,851.239c-29.522,0-53.454,23.933-53.454,53.448c0,29.521,23.932,53.445,53.454,53.445 c29.513,0,53.445-23.924,53.445-53.445C684.784,875.172,660.852,851.239,631.339,851.239z"}),(0,a.createElement)(r.Path,{d:"M1567.738,873.181H927.254c-17.394,0-31.5,14.102-31.5,31.497c0,17.402,14.106,31.5,31.5,31.5h640.484 c17.394,0,31.5-14.098,31.5-31.5C1599.238,887.283,1585.132,873.181,1567.738,873.181z"}),(0,a.createElement)(r.Path,{d:"M1713.195,1315.578H86.805c-46.621,0-84.549,37.934-84.549,84.551v315.329 c0,46.616,37.928,84.54,84.549,84.54h1626.391c46.625,0,84.55-37.924,84.55-84.54v-315.329 C1797.745,1353.512,1759.82,1315.578,1713.195,1315.578z M1734.746,1715.458c0,11.882-9.668,21.542-21.551,21.542H86.805 c-11.883,0-21.55-9.66-21.55-21.542v-315.329c0-11.883,9.667-21.551,21.55-21.551h1626.391c11.883,0,21.551,9.668,21.551,21.551 V1715.458z"}),(0,a.createElement)(r.Path,{d:"M262.693,1504.339c-29.518,0-53.45,23.933-53.45,53.445c0,29.522,23.932,53.446,53.45,53.446 s53.45-23.924,53.45-53.446C316.144,1528.271,292.211,1504.339,262.693,1504.339z"}),(0,a.createElement)(r.Path,{d:"M447.018,1504.339c-29.522,0-53.455,23.933-53.455,53.445c0,29.522,23.932,53.446,53.455,53.446 c29.513,0,53.445-23.924,53.445-53.446C500.463,1528.271,476.53,1504.339,447.018,1504.339z"}),(0,a.createElement)(r.Path,{d:"M631.339,1504.339c-29.522,0-53.454,23.933-53.454,53.445c0,29.522,23.932,53.446,53.454,53.446 c29.513,0,53.445-23.924,53.445-53.446C684.784,1528.271,660.852,1504.339,631.339,1504.339z"}),(0,a.createElement)(r.Path,{d:"M1567.738,1526.275H927.254c-17.394,0-31.5,14.107-31.5,31.5c0,17.402,14.106,31.5,31.5,31.5h640.484 c17.394,0,31.5-14.098,31.5-31.5C1599.238,1540.383,1585.132,1526.275,1567.738,1526.275z"}),(0,a.createElement)(r.Path,{d:"M1713.195,0H86.805C40.184,0,2.255,37.929,2.255,84.55v315.329c0,46.617,37.928,84.541,84.549,84.541 h1626.391c46.625,0,84.55-37.924,84.55-84.541V84.55C1797.745,37.929,1759.82,0,1713.195,0z M1734.746,399.879 c0,11.878-9.668,21.542-21.551,21.542H86.805c-11.883,0-21.55-9.664-21.55-21.542V84.55c0-11.883,9.667-21.551,21.55-21.551 h1626.391c11.883,0,21.551,9.668,21.551,21.551V399.879z"}),(0,a.createElement)(r.Circle,{cx:"262.693",cy:"242.204",r:"53.448"}),(0,a.createElement)(r.Path,{d:"M447.018,188.756c-29.522,0-53.455,23.932-53.455,53.45c0,29.518,23.932,53.446,53.455,53.446 c29.513,0,53.445-23.928,53.445-53.446C500.463,212.688,476.53,188.756,447.018,188.756z"}),(0,a.createElement)(r.Path,{d:"M631.339,188.756c-29.522,0-53.454,23.932-53.454,53.45c0,29.518,23.932,53.446,53.454,53.446 c29.513,0,53.445-23.928,53.445-53.446C684.784,212.688,660.852,188.756,631.339,188.756z"}),(0,a.createElement)(r.Path,{d:"M1567.738,210.697H927.254c-17.394,0-31.5,14.102-31.5,31.5s14.106,31.5,31.5,31.5h640.484c17.394,0,31.5-14.102,31.5-31.5S1585.132,210.697,1567.738,210.697z"})),settings:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1468.436,32.467v188.211c-98.748,15.249-174.595,100.822-174.595,203.777s75.847,188.521,174.595,203.777 v1139.302c0,17.453,14.146,31.608,31.607,31.608c17.454,0,31.609-14.155,31.609-31.608V628.232 c98.748-15.257,174.59-100.822,174.59-203.777s-75.842-188.529-174.59-203.777V32.467c0-17.454-14.155-31.608-31.609-31.608 C1482.581,0.858,1468.436,15.013,1468.436,32.467z M1643.029,424.455c0,67.979-47.703,124.986-111.377,139.423 c-10.179,2.302-20.744,3.563-31.609,3.563s-21.43-1.261-31.607-3.563c-63.684-14.438-111.378-71.444-111.378-139.423 c0-67.988,47.694-124.995,111.378-139.424c10.178-2.311,20.742-3.563,31.607-3.563s21.431,1.252,31.609,3.563 C1595.326,299.46,1643.029,356.467,1643.029,424.455z"}),(0,a.createElement)(r.Path,{d:"M331.574,1767.534V628.232c98.758-15.257,174.603-100.822,174.603-203.777s-75.845-188.529-174.603-203.777 V32.467c0-17.454-14.146-31.608-31.608-31.608c-17.454,0-31.608,14.155-31.608,31.608v188.211 C169.609,235.926,93.763,321.5,93.763,424.455s75.846,188.521,174.594,203.777v1139.302c0,17.453,14.155,31.608,31.608,31.608 C317.428,1799.143,331.574,1784.987,331.574,1767.534z M156.98,424.455c0-67.988,47.703-124.995,111.377-139.424 c10.178-2.311,20.752-3.563,31.608-3.563c10.865,0,21.431,1.252,31.608,3.563c63.684,14.429,111.387,71.436,111.387,139.424 c0,67.979-47.703,124.986-111.387,139.423c-10.178,2.302-20.743,3.563-31.608,3.563c-10.856,0-21.431-1.261-31.608-3.563 C204.683,549.441,156.98,492.434,156.98,424.455z"}),(0,a.createElement)(r.Path,{d:"M931.617,1767.534V1419.51c98.748-15.257,174.594-100.822,174.594-203.777s-75.846-188.529-174.594-203.777 V32.467c0-17.454-14.154-31.608-31.608-31.608c-17.462,0-31.608,14.155-31.608,31.608v979.488 c-98.757,15.248-174.603,100.822-174.603,203.777s75.846,188.521,174.603,203.777v348.024c0,17.453,14.146,31.608,31.608,31.608 C917.463,1799.143,931.617,1784.987,931.617,1767.534z M757.015,1215.732c0-67.986,47.703-124.995,111.386-139.424 c10.177-2.309,20.743-3.563,31.608-3.563c10.865,0,21.431,1.254,31.608,3.563c63.676,14.429,111.378,71.438,111.378,139.424 c0,67.979-47.702,124.986-111.378,139.424c-10.178,2.303-20.743,3.563-31.608,3.563c-10.865,0-21.431-1.26-31.608-3.563 C804.717,1340.719,757.015,1283.711,757.015,1215.732z"})),share:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M357.063,742.307c-17.305,0-31.331,14.026-31.331,31.331s14.026,31.331,31.331,31.331 c27.835,0,93.081,33.661,93.081,98.938c0,17.305,14.026,31.331,31.331,31.331s31.332-14.026,31.332-31.331 C512.807,797.809,411.417,742.307,357.063,742.307z"}),(0,a.createElement)(r.Path,{d:"M1453.625,177.815c27.835,0,93.08,33.661,93.08,98.938c0,17.305,14.027,31.331,31.332,31.331 s31.331-14.026,31.331-31.331c0-106.097-101.39-161.6-155.743-161.6c-17.305,0-31.33,14.026-31.33,31.331 S1436.32,177.815,1453.625,177.815z"}),(0,a.createElement)(r.Path,{d:"M1447.975,1261.85c-46.434,0-92.324,12.361-132.713,35.751c-31.903,18.476-58.501,42.634-79.293,70.451 L597.875,998.547c3.899-9.809,7.317-19.871,10.075-30.226c15.53-58.261,10.889-118.681-12.702-173.188l636.708-368.71 c49.41,69.459,130.26,111.727,216.465,111.727c46.433,0,92.319-12.361,132.707-35.75c61.316-35.505,105.136-92.766,123.385-161.232 c18.248-68.463,8.742-139.933-26.764-201.249C1630.467,58.27,1542.422,7.544,1447.979,7.544c-46.434,0-92.324,12.361-132.712,35.75 c-115.368,66.811-161.543,207.81-113.322,328.1L563.833,740.916c-49.707-66.172-128.52-106.219-212.417-106.219 c-46.428,0-92.324,12.361-132.711,35.75C92.13,743.749,48.787,906.358,122.084,1032.934 c47.281,81.649,135.326,132.37,229.77,132.37c46.438,0,92.324-12.36,132.712-35.75c33.473-19.381,61.679-45.284,83.407-75.915 l636.673,368.684c-31.921,74.42-29.608,162.465,13.996,237.764c47.28,81.65,135.325,132.371,229.774,132.371 c46.432,0,92.318-12.361,132.707-35.75c61.316-35.506,105.135-92.766,123.384-161.232c18.249-68.463,8.742-139.934-26.763-201.249 C1630.463,1312.575,1542.418,1261.85,1447.975,1261.85z M1346.668,97.521c30.859-17.868,65.893-27.314,101.311-27.314 c72.164,0,139.426,38.745,175.543,101.114c27.117,46.831,34.378,101.42,20.438,153.71c-13.935,52.29-47.403,96.026-94.233,123.144 c-30.855,17.869-65.889,27.314-101.307,27.314c-72.165,0-139.43-38.744-175.547-101.109 C1216.893,277.706,1249.994,153.504,1346.668,97.521z M453.164,1075.327c-30.859,17.868-65.888,27.314-101.311,27.314 c-72.165,0-139.426-38.745-175.543-101.11c-55.979-96.672-22.873-220.874,73.795-276.857 c30.859-17.869,65.888-27.314,101.311-27.314c72.165,0,139.426,38.744,175.543,101.114c27.117,46.831,34.377,101.42,20.438,153.71 C533.464,1004.474,499.995,1048.209,453.164,1075.327z M1643.955,1579.336c-13.934,52.291-47.402,96.027-94.233,123.145 c-30.854,17.868-65.888,27.314-101.306,27.314c-72.166,0-139.431-38.744-175.548-101.109 c-55.979-96.674-22.878-220.875,73.795-276.859c30.859-17.867,65.893-27.313,101.312-27.313 c72.164,0,139.425,38.744,175.543,101.114C1650.635,1472.457,1657.895,1527.047,1643.955,1579.336z"}),(0,a.createElement)(r.Path,{d:"M1453.621,1369.459c-17.305,0-31.331,14.027-31.331,31.332s14.026,31.331,31.331,31.331 c27.834,0,93.08,33.661,93.08,98.937c0,17.305,14.027,31.332,31.332,31.332s31.33-14.027,31.33-31.332 C1609.363,1424.963,1507.975,1369.459,1453.621,1369.459z"})),shield:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M900,1793.016c-2.796,0-5.594-0.375-8.315-1.125c-7.969-2.199-197.36-55.807-388.728-226.607 c-112.377-100.305-201.914-220.375-266.128-356.88c-79.987-170.042-120.543-365.937-120.543-582.248 c0-9.624,4.431-18.711,12.016-24.637L880.752,13.613c11.308-8.837,27.187-8.837,38.496,0l752.451,587.905 c7.584,5.925,12.016,15.013,12.016,24.637c0,216.312-40.559,412.206-120.546,582.248 c-64.212,136.505-153.751,256.575-266.123,356.88c-191.37,170.801-380.764,224.408-388.732,226.607 C905.592,1792.641,902.796,1793.016,900,1793.016z M178.88,641.351c3.271,367.343,125.555,661.791,363.594,875.387 C701.154,1659.123,862.076,1716.81,900,1729.049c37.924-12.239,198.846-69.926,357.525-212.311 c238.039-213.597,360.325-508.044,363.592-875.387L900,77.925L178.88,641.351z"}),(0,a.createElement)(r.Path,{d:"M900,1593.533c-2.798,0-5.594-0.375-8.315-1.125c-6.189-1.71-153.319-43.35-301.636-175.734 c-87.095-77.732-156.485-170.791-206.251-276.582c-61.928-131.65-93.328-283.236-93.328-450.545 c0-9.624,4.432-18.711,12.017-24.637L880.752,213.1c11.308-8.834,27.187-8.839,38.496,0l578.266,451.81 c7.585,5.925,12.017,15.013,12.017,24.637c0,167.309-31.399,318.895-93.329,450.545 c-49.762,105.791-119.155,198.85-206.248,276.582c-148.316,132.385-295.446,174.024-301.64,175.734 C905.596,1593.158,902.798,1593.533,900,1593.533z M353.087,704.725c3.256,278.249,96.237,501.402,276.493,663.417 c118.248,106.279,238.227,150.755,270.42,161.38c32.193-10.625,152.172-55.101,270.42-161.38 c180.256-162.016,273.236-385.169,276.495-663.417L900,277.412L353.087,704.725z"})),shoppingCart:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1478.793,1242.979c0.031,0.006,0.061,0.006,0.094,0h3.281c13.289,0,25.162-8.314,29.709-20.8 l283.908-780.039c3.529-9.694,2.104-20.5-3.811-28.951c-5.919-8.447-15.582-13.479-25.899-13.479H1194.88H883.583H334.239 L263.73,208.149c-0.066-0.181-0.155-0.349-0.225-0.53c-0.238-0.609-0.494-1.204-0.768-1.791c-0.181-0.397-0.366-0.79-0.564-1.177 c-0.255-0.499-0.524-0.984-0.807-1.465c-0.261-0.45-0.525-0.896-0.807-1.332c-0.251-0.384-0.516-0.758-0.781-1.129 c-0.348-0.484-0.697-0.965-1.067-1.424c-0.247-0.309-0.507-0.609-0.763-0.904c-0.415-0.476-0.833-0.948-1.27-1.398 c-0.274-0.278-0.561-0.542-0.843-0.812c-0.446-0.423-0.887-0.838-1.354-1.235c-0.335-0.282-0.688-0.551-1.032-0.821 c-0.437-0.334-0.874-0.675-1.323-0.987c-0.423-0.296-0.86-0.569-1.297-0.842c-0.401-0.251-0.803-0.503-1.212-0.736 c-0.508-0.287-1.028-0.547-1.549-0.807c-0.375-0.186-0.745-0.375-1.129-0.543c-0.555-0.247-1.121-0.468-1.693-0.688 c-0.384-0.145-0.768-0.291-1.156-0.423c-0.555-0.186-1.111-0.344-1.675-0.499c-0.451-0.124-0.9-0.242-1.35-0.348 c-0.507-0.115-1.015-0.208-1.53-0.3c-0.542-0.093-1.089-0.181-1.641-0.248c-0.441-0.052-0.882-0.097-1.328-0.128 c-0.635-0.052-1.271-0.083-1.905-0.097c-0.203-0.004-0.397-0.031-0.601-0.031H33.923c-17.461,0-31.615,14.153-31.615,31.615 c0,17.461,14.154,31.615,31.615,31.615h178.083L300.272,490.5l255.975,703.281c-0.123,0.308-0.273,0.604-0.393,0.921 l-86.934,236.188c-0.542,1.473-0.93,2.965-1.243,4.46c-1.821,3.996-2.862,8.42-2.862,13.095c0,17.461,14.154,31.616,31.615,31.616 h123.754c11.622,74.937,76.572,132.486,154.716,132.486c78.143,0,143.094-57.55,154.716-132.486h217.104 c11.621,74.937,76.574,132.486,154.717,132.486c78.144,0,143.093-57.55,154.716-132.486h87.688 c17.463,0,31.615-14.155,31.615-31.616c0-17.462-14.152-31.615-31.615-31.615h-90.789 c-17.421-67.456-78.792-117.429-151.614-117.429c-72.824,0-134.194,49.973-151.616,117.429H926.521 c-17.432-67.456-78.8-117.429-151.62-117.429c-72.819,0-134.189,49.973-151.62,117.429h-81.803l63.989-173.85H1478.793z M1216.813,1416.829c14.844-31.941,47.146-54.197,84.624-54.197c37.477,0,69.78,22.256,84.622,54.197 c5.539,11.921,8.72,25.153,8.72,39.145c0,8.341-1.205,16.386-3.264,24.087c-10.665,39.81-46.952,69.256-90.078,69.256 c-43.128,0-79.414-29.446-90.077-69.256c-2.061-7.701-3.265-15.746-3.265-24.087 C1208.096,1441.982,1211.274,1428.75,1216.813,1416.829z M690.278,1416.829c14.838-31.941,47.146-54.197,84.623-54.197 c37.477,0,69.785,22.256,84.622,54.197c5.541,11.921,8.72,25.153,8.72,39.145c0,8.341-1.203,16.386-3.267,24.087 c-10.661,39.81-46.947,69.256-90.075,69.256c-43.126,0-79.414-29.446-90.074-69.256c-2.064-7.701-3.268-15.746-3.268-24.087 C681.559,1441.982,684.739,1428.75,690.278,1416.829z M644.822,1179.748h-26.389l-20.453-56.187l-49.751-136.69h255.596v192.877 H644.822z M1553.244,923.641h-289.426V723.412h362.303L1553.244,923.641z M1200.588,923.641H867.055V723.412h333.533V923.641z M803.825,923.641H525.214l-72.876-200.229h351.487V923.641z M867.055,1179.748V986.871h333.533v192.877H867.055z M1480.479,1123.562l-20.449,56.187h-26.389h-169.822V986.871h266.412L1480.479,1123.562z M1649.132,660.181h-385.313V462.942 h457.104L1649.132,660.181z M905.72,462.942h267.024h27.844v197.239H867.055V462.942H905.72z M357.535,462.942h446.29v197.239 H429.327l-69.625-191.293c-0.005-0.004-0.005-0.004-0.005-0.004l-0.04-0.11L357.535,462.942z"})),sign:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1712.873,820.293l-198.091-185.002c-5.813-5.427-13.466-8.446-21.414-8.446h-269.041 c-1.497-0.219-3.028-0.333-4.585-0.333H925.895V557.06h459.658c17.326,0,31.37-14.039,31.37-31.37V155.012 c0-17.326-14.044-31.37-31.37-31.37H925.895V34.977c0-17.33-14.044-31.369-31.37-31.369s-31.37,14.04-31.37,31.369v88.666H580.263 c-1.541,0-3.055,0.114-4.534,0.333H306.631c-7.948,0-15.602,3.019-21.414,8.446L87.126,317.427 c-6.351,5.931-9.957,14.232-9.957,22.924s3.606,16.994,9.957,22.923L285.218,548.29c5.812,5.427,13.466,8.442,21.414,8.442h269.063 c1.492,0.214,3.015,0.328,4.569,0.328h282.892v69.453H414.452c-17.327,0-31.37,14.043-31.37,31.369v370.687 c0,17.326,14.043,31.37,31.37,31.37h448.703v311.637c-115.444,13.001-207.037,96.86-224.778,205.702H429.169 c-17.326,0-31.37,14.043-31.37,31.368v156.378c0,17.325,14.043,31.368,31.37,31.368h930.711c17.326,0,31.369-14.043,31.369-31.368 v-156.378c0-17.325-14.043-31.368-31.369-31.368h-209.207c-17.742-108.842-109.339-192.701-224.779-205.702v-311.637h293.848 c1.539,0,3.054-0.113,4.533-0.333h269.093c7.948,0,15.602-3.02,21.414-8.445l198.091-185.016c6.351-5.93,9.957-14.232,9.957-22.923 C1722.83,834.529,1719.224,826.228,1712.873,820.293z M584.832,494.32c-1.492-0.219-3.015-0.328-4.569-0.328h-261.26L154.5,340.351 l164.502-153.636h261.26c1.541,0,3.055-0.114,4.534-0.333h278.358h62.739h428.289V494.32H925.895h-62.739H584.832z M1328.512,1733.653H460.54v-93.638h206.144h455.684h206.145V1733.653z M1086.853,1577.277h-384.66 c18.788-83.375,97.479-144.788,192.332-144.788C989.365,1432.489,1068.061,1493.911,1086.853,1577.277z M1480.997,996.866h-261.255 c-1.56,0-3.091,0.114-4.588,0.332h-289.26h-62.739H445.822V689.252h417.333h62.739h289.26c1.497,0.219,3.028,0.333,4.588,0.333 h261.255L1645.5,843.221L1480.997,996.866z"})),siteMap:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M1765.051,0H34.949C17.561,0,3.466,14.095,3.466,31.484v476.753c0,17.389,14.095,31.483,31.483,31.483 h1730.102c17.389,0,31.484-14.095,31.484-31.483V31.484C1796.535,14.095,1782.439,0,1765.051,0z M1733.567,476.753H66.433V62.968 h1667.134V476.753z"}),(0,a.createElement)(r.Path,{d:"M511.707,1260.279H34.954c-17.389,0-31.484,14.1-31.484,31.484v476.753 c0,17.394,14.095,31.483,31.484,31.483h476.753c17.389,0,31.483-14.09,31.483-31.483v-476.753 C543.19,1274.379,529.096,1260.279,511.707,1260.279z M480.223,1737.033H66.438v-413.786h413.786V1737.033z"}),(0,a.createElement)(r.Path,{d:"M1138.377,1260.279H661.624c-17.389,0-31.484,14.1-31.484,31.484v476.753 c0,17.394,14.095,31.483,31.484,31.483h476.753c17.389,0,31.483-14.09,31.483-31.483v-476.753 C1169.86,1274.379,1155.766,1260.279,1138.377,1260.279z M1106.893,1737.033H693.107v-413.786h413.785V1737.033z"}),(0,a.createElement)(r.Path,{d:"M1765.051,1260.279h-476.753c-17.39,0-31.483,14.1-31.483,31.484v476.753 c0,17.394,14.094,31.483,31.483,31.483h476.753c17.389,0,31.484-14.09,31.484-31.483v-476.753 C1796.535,1274.379,1782.439,1260.279,1765.051,1260.279z M1733.567,1737.033h-413.786v-413.786h413.786V1737.033z"}),(0,a.createElement)(r.Path,{d:"M900,593.693c-17.389,0-31.483,14.095-31.483,31.484v324.763H273.33c-17.389,0-31.483,14.1-31.483,31.484 v193.4c0,17.393,14.095,31.482,31.483,31.482c17.389,0,31.484-14.09,31.484-31.482v-161.917h563.703v161.917 c0,17.393,14.095,31.482,31.483,31.482s31.484-14.09,31.484-31.482v-161.917h563.706v161.917c0,17.393,14.095,31.482,31.483,31.482 s31.484-14.09,31.484-31.482v-193.4c0-17.385-14.096-31.484-31.484-31.484H931.484V625.177 C931.484,607.788,917.389,593.693,900,593.693z"})),statistics:e=>(0,a.createElement)(r.SVG,(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 1800"},e),(0,a.createElement)(r.Path,{d:"M152.728,528.008c-63.267,0-114.738-51.469-114.738-114.733c0-63.265,51.472-114.734,114.738-114.734 c63.262,0,114.729,51.469,114.729,114.734C267.457,476.539,215.99,528.008,152.728,528.008z M152.728,360.752 c-28.962,0-52.526,23.562-52.526,52.522s23.563,52.521,52.526,52.521c28.958,0,52.517-23.562,52.517-52.521 S181.686,360.752,152.728,360.752z"}),(0,a.createElement)(r.Path,{d:"M1124.017,703.674c-63.267,0-114.738-51.465-114.738-114.725c0-63.267,51.472-114.738,114.738-114.738 c63.262,0,114.729,51.472,114.729,114.738C1238.745,652.209,1187.278,703.674,1124.017,703.674z M1124.017,536.423 c-28.963,0-52.526,23.563-52.526,52.526c0,28.956,23.563,52.513,52.526,52.513c28.957,0,52.517-23.558,52.517-52.513 C1176.533,559.986,1152.974,536.423,1124.017,536.423z"}),(0,a.createElement)(r.Path,{d:"M638.373,391.099c-103.739,0-188.138-84.396-188.138-188.133S534.634,14.833,638.373,14.833 c103.733,0,188.125,84.396,188.125,188.133S742.106,391.099,638.373,391.099z M638.373,77.045 c-69.435,0-125.926,56.488-125.926,125.921c0,69.433,56.491,125.921,125.926,125.921c69.429,0,125.913-56.488,125.913-125.921 C764.286,133.533,707.802,77.045,638.373,77.045z"}),(0,a.createElement)(r.Path,{d:"M1609.674,391.099c-103.737,0-188.137-84.396-188.137-188.133s84.399-188.133,188.137-188.133 c103.733,0,188.129,84.396,188.129,188.133S1713.407,391.099,1609.674,391.099z M1609.674,77.045 c-69.437,0-125.925,56.488-125.925,125.921c0,69.433,56.488,125.921,125.925,125.921c69.429,0,125.917-56.488,125.917-125.921 C1735.591,133.533,1679.103,77.045,1609.674,77.045z"}),(0,a.createElement)(r.Rect,{x:"332.296",y:"178.864",transform:"matrix(0.4637 0.886 -0.886 0.4637 480.4105 -149.1437)",width:"62.214",height:"286.801"}),(0,a.createElement)(r.Rect,{x:"721.561",y:"398.765",transform:"matrix(0.767 0.6417 -0.6417 0.767 488.2679 -484.7798)",width:"380.063",height:"62.211"}),(0,a.createElement)(r.Polygon,{points:"1216.137,584.88 1176.993,536.524 1473.117,296.842 1512.26,345.197"}),(0,a.createElement)(r.Path,{d:"M223.333,1785.167H82.119c-44.068,0-79.922-36.348-79.922-81.023V761.958 c0-44.678,35.854-81.024,79.922-81.024h141.214c44.068,0,79.921,36.346,79.921,81.024v942.185 C303.254,1748.819,267.401,1785.167,223.333,1785.167z M82.119,743.146c-9.767,0-17.71,8.438-17.71,18.812v942.185 c0,10.371,7.943,18.812,17.71,18.812h141.214c9.766,0,17.709-8.44,17.709-18.812V761.958c0-10.374-7.944-18.812-17.709-18.812 H82.119z"}),(0,a.createElement)(r.Path,{d:"M708.974,1785.167H567.755c-44.066,0-79.917-38.839-79.917-86.578V651.512 c0-47.74,35.852-86.579,79.917-86.579h141.218c44.066,0,79.917,38.839,79.917,86.579v1047.077 C788.891,1746.328,753.04,1785.167,708.974,1785.167z M567.755,627.146c-9.597,0-17.706,11.159-17.706,24.367v1047.077 c0,13.209,8.108,24.366,17.706,24.366h141.218c9.597,0,17.705-11.157,17.705-24.366V651.512c0-13.208-8.108-24.367-17.705-24.367 H567.755z"}),(0,a.createElement)(r.Path,{d:"M1194.621,1785.167h-141.21c-44.072,0-79.926-31.604-79.926-70.452V972.037 c0-38.848,35.854-70.453,79.926-70.453h141.21c44.072,0,79.926,31.605,79.926,70.453v742.678 C1274.547,1753.563,1238.693,1785.167,1194.621,1785.167z M1053.411,963.796c-11.43,0-17.714,6.188-17.714,8.241v742.678 c0,2.053,6.284,8.24,17.714,8.24h141.21c11.431,0,17.714-6.188,17.714-8.24V972.037c0-2.053-6.283-8.241-17.714-8.241H1053.411z"}),(0,a.createElement)(r.Path,{d:"M1680.271,1785.167h-141.219c-44.067,0-79.917-38.839-79.917-86.578V651.512 c0-47.74,35.85-86.579,79.917-86.579h141.219c44.072,0,79.926,38.839,79.926,86.579v1047.077 C1760.196,1746.328,1724.343,1785.167,1680.271,1785.167z M1539.052,627.146c-9.599,0-17.705,11.159-17.705,24.367v1047.077 c0,13.209,8.106,24.366,17.705,24.366h141.219c9.604,0,17.714-11.157,17.714-24.366V651.512c0-13.208-8.11-24.367-17.714-24.367 H1539.052z"
|
1 |
+
!function(){"use strict";var e,t,o,l={4966:function(e,t,o){var l=o(5736),a=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/about-author","title":"About Author","category":"themeisle-blocks","description":"About Author block is the easiest way to add a author bio below your posts. Powered by Otter.","keywords":["about","author","profile"],"textdomain":"otter-blocks","supports":{"html":false},"editorStyle":"otter-about-author-editor","style":"otter-about-author-style"}'),r=o(340),c=o(9307),i=o(2175),s=o(5609),d=window.wp.serverSideRender,m=o.n(d);const{name:u}=n;(0,a.registerBlockType)(u,{...n,title:(0,l.__)("About Author","otter-blocks"),description:(0,l.__)("About Author block is the easiest way to add a author bio below your posts. Powered by Otter.","otter-blocks"),icon:r.authorIcon,keywords:["about","author","profile"],edit:()=>(0,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(3159),k=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)(h.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)(h.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)(h.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)(h.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})}))))},v=o(5225);const{attributes:y}=b;const{name:_}=b;(0,a.registerBlockType)(_,{...b,title:(0,l.__)("Accordion","otter-blocks"),description:(0,l.__)("Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","otter-blocks"),icon:r.buttonsIcon,keywords:["accordions","collapse","faq"],edit:e=>{let{name:t,attributes:o,setAttributes:l,clientId:a,isSelected:n}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(a,y);return()=>e(o.id)}),[o.id]);const r=e=>(0,v.Ih)({name:t,field:e,defaultAttributes:y,attributes:o}),s={"--titleColor":r("titleColor"),"--titleBackground":r("titleBackground"),"--borderColor":r("borderColor"),"--contentBackground":r("contentBackground")},d=(0,i.useBlockProps)({id:o.id,className:g()({[`is-${o.gap}-gap`]:o.gap}),style:s});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(k,{attributes:o,setAttributes:l,getValue:r}),(0,c.createElement)("div",d,(0,c.createElement)(i.InnerBlocks,{allowedBlocks:["themeisle-blocks/accordion-item"],template:[["themeisle-blocks/accordion-item"]],renderAppender:n?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 f=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/accordion-item","title":"Accordion Item","category":"themeisle-blocks","description":"Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","keywords":["accordions","collapse","faq"],"parent":["themeisle-blocks/accordion"],"textdomain":"otter-blocks","attributes":{"title":{"type":"string"},"initialOpen":{"type":"boolean","default":false}},"supports":{"reusable":false}}'),C=o(6015),w=o(3904),E=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:x}=f;(0,a.registerBlockType)(x,{...f,title:(0,l.__)("Accordion Item","otter-blocks"),description:(0,l.__)("Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","otter-blocks"),icon:r.buttonsIcon,keywords:["accordions","collapse","faq"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[a,n]=(0,c.useState)(!0);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(E,{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")?n(!0):n(!a)}},(0,c.createElement)(i.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.title,onChange:e=>{a||n(!0),o({title:e})},tagName:"span"}),(0,c.createElement)(s.Icon,{icon:a?C.Z:w.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 T=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-heading","title":"Advanced Heading","category":"themeisle-blocks","description":"Advanced Heading gives a spin to editor\'s Heading block with much needed customization options. Powered by Otter.","keywords":["heading","title","advanced heading"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"content":{"type":"string","source":"html","selector":"h1,h2,h3,h4,h5,h6,div,p,span","default":""},"tag":{"default":"h2","type":"string"},"align":{"type":"string"},"alignTablet":{"type":"string"},"alignMobile":{"type":"string"},"headingColor":{"type":"string"},"highlightColor":{"type":"string"},"highlightBackground":{"type":"string"},"fontSize":{"type":"number"},"fontSizeTablet":{"type":"number"},"fontSizeMobile":{"type":"number"},"fontFamily":{"type":"string"},"fontVariant":{"type":"string"},"fontStyle":{"type":"string"},"textTransform":{"type":"string"},"lineHeight":{"type":"number"},"letterSpacing":{"type":"number"},"textShadow":{"type":"boolean","default":false},"textShadowColor":{"type":"string","default":"#000000"},"textShadowColorOpacity":{"type":"number","default":50},"textShadowBlur":{"type":"number","default":5},"textShadowHorizontal":{"type":"number","default":0},"textShadowVertical":{"type":"number","default":0},"paddingType":{"type":"string","default":"linked"},"paddingTypeTablet":{"type":"string","default":"linked"},"paddingTypeMobile":{"type":"string","default":"linked"},"padding":{"type":"number","default":0},"paddingTablet":{"type":"number"},"paddingMobile":{"type":"number"},"paddingTop":{"type":"number","default":0},"paddingTopTablet":{"type":"number"},"paddingTopMobile":{"type":"number"},"paddingRight":{"type":"number","default":0},"paddingRightTablet":{"type":"number"},"paddingRightMobile":{"type":"number"},"paddingBottom":{"type":"number","default":0},"paddingBottomTablet":{"type":"number"},"paddingBottomMobile":{"type":"number"},"paddingLeft":{"type":"number","default":0},"paddingLeftTablet":{"type":"number"},"paddingLeftMobile":{"type":"number"},"marginType":{"type":"string","default":"unlinked"},"marginTypeTablet":{"type":"string","default":"unlinked"},"marginTypeMobile":{"type":"string","default":"unlinked"},"margin":{"type":"number","default":0},"marginTablet":{"type":"number"},"marginMobile":{"type":"number"},"marginTop":{"type":"number","default":0},"marginTopTablet":{"type":"number"},"marginTopMobile":{"type":"number"},"marginBottom":{"type":"number","default":25},"marginBottomTablet":{"type":"number"},"marginBottomMobile":{"type":"number"}},"editorStyle":"otter-advanced-heading-editor","style":"otter-advanced-heading-style"}'),S=o(6713),M=o(2629);const B="themeisle-blocks/highlight";(0,M.registerFormatType)(B,{name:B,title:(0,l.__)("Highlight","otter-blocks"),tagName:"span",className:"highlight",edit:e=>{let{isActive:t,value:o,onChange:a}=e;const n=()=>a((0,M.toggleFormat)(o,{type:B}));return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(i.RichTextShortcut,{type:"primary",character:"h",onUse:n}),(0,c.createElement)(i.RichTextToolbarButton,{icon:S.Z,title:(0,l.__)("Highlight","otter-blocks"),onClick:n,isActive:t,shortcutType:"access",shortcutCharacter:"h"}))}});var z=o(80),P=o.n(z);const V=[{attributes:{id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number",default:0},paddingMobile:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number",default:0},paddingTopMobile:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number",default:0},paddingRightMobile:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number",default:0},paddingBottomMobile:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number",default:0},paddingLeftMobile:{type:"number",default:0},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number",default:0},marginMobile:{type:"number",default:0},marginTop:{type:"number",default:0},marginTopTablet:{type:"number",default:0},marginTopMobile:{type:"number",default:0},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number",default:25},marginBottomMobile:{type:"number",default:20}},save:e=>{let t,{attributes:o,className:l}=e;o.textShadow&&(t={textShadow:`${o.textShadowHorizontal}px ${o.textShadowVertical}px ${o.textShadowBlur}px ${P()(o.textShadowColor?o.textShadowColor:"#000000",o.textShadowColorOpacity)}`});const a={color:o.headingColor,fontFamily:o.fontFamily,fontWeight:"regular"===o.fontVariant?"normal":o.fontVariant,fontStyle:o.fontStyle,textTransform:o.textTransform,lineHeight:o.lineHeight&&`${o.lineHeight}px`,letterSpacing:o.letterSpacing&&`${o.letterSpacing}px`,...t};return(0,c.createElement)(i.RichText.Content,{tagName:o.tag,value:o.content,id:o.id,className:g()(o.id,l),style:a})}}];var R=V,L={from:[{type:"block",blocks:["core/heading"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("themeisle-blocks/advanced-heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("themeisle-blocks/advanced-heading",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("core/paragraph",{content:t})}}]},H=o(7462),N=o(5988),I=o(2819),A=o(4333),O=o(9818),F=o(9977),G=e=>{let{attributes:t,setAttributes:o}=e;const a=e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},n=e=>{switch(e){case"h1":return(0,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"))}},r=e=>{o({tag:e})};return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(s.DropdownMenu,{icon:n(t.tag),label:(0,l.__)("Select tag","otter-blocks"),className:"components-toolbar",controls:[{title:(0,l.__)("Heading","otter-blocks")+" 1",icon:n("h1"),onClick:()=>r("h1")},{title:(0,l.__)("Heading","otter-blocks")+" 2",icon:n("h2"),onClick:()=>r("h2")},{title:(0,l.__)("Heading","otter-blocks")+" 3",icon:n("h3"),onClick:()=>r("h3")},{title:(0,l.__)("Heading","otter-blocks")+" 4",icon:n("h4"),onClick:()=>r("h4")},{title:(0,l.__)("Heading","otter-blocks")+" 5",icon:n("h5"),onClick:()=>r("h5")},{title:(0,l.__)("Heading","otter-blocks")+" 6",icon:n("h6"),onClick:()=>r("h6")},{title:(0,l.__)("Division","otter-blocks"),icon:n("div"),onClick:()=>r("div")},{title:(0,l.__)("Paragraph","otter-blocks"),icon:n("p"),onClick:()=>r("p")},{title:(0,l.__)("Span Tag","otter-blocks"),icon:n("span"),onClick:()=>r("span")}]}),(0,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)(F.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:a,valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,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}))})))},$=o(2136),D=o(6993),Z=o(2372);const W=e=>{let{value:t,onChange:o}=e;const a=(0,A.useInstanceId)(W);(0,c.useEffect)((()=>m(t)),[t]);const[n,r]=(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:!n&&"readonly",value:n?d:t,onChange:e=>m(e.target.value),onClick:e=>e.target.select()}),(0,c.createElement)(s.Button,{icon:n?"yes":"edit",label:n?(0,l.__)("Save","otter-blocks"):(0,l.__)("Edit","otter-blocks"),showTooltip:!0,disabled:!!u,className:g()("o-html-anchor-control-button",{"is-saved":!n}),onClick:()=>{if(n&&t!==d){const e=window.themeisleGutenberg.blockIDs.findIndex((e=>e===t));window.themeisleGutenberg.blockIDs[e]=d,o(d)}r(!n)}}))),u&&(0,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 U=W,j=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,I.isArray)(t)?t:[t]).map((e=>{if((0,I.isString)(e))return e;if((0,I.isObject)(e)){const t=Object.keys(e);if(1===t.length)return e[t[0]]?t[0]:void 0}})).filter(I.isString).reduce(((e,t)=>(e[t]=void 0,e)),{});o(e)}},(0,l.__)("Clear","otter-blocks")))},q=e=>{let{attributes:t,setAttributes:o}=e;const a=(0,O.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[n,r]=(0,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"===n}),onClick:()=>r("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"===n}),onClick:()=>r("advanced")},(0,c.createElement)("span",null,(0,c.createElement)(s.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"style"===n&&(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)(F.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,c.createElement)(j,{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,{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"===n&&(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)(Z.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)(j,{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)(Z.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)(j,{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)(U,{value:t.id,onChange:e=>o({id:e})}))};const{attributes:K}=T;const{name:J}=T;(0,a.registerBlockType)(J,{...T,title:(0,l.__)("Advanced Heading","otter-blocks"),description:(0,l.__)("Advanced Heading gives a spin to editor's Heading block with much needed customization options. Powered by Otter.","otter-blocks"),icon:r.headingIcon,keywords:["heading","title","advanced heading"],deprecated:R,transforms:L,edit:e=>{let{attributes:t,setAttributes:o,clientId:n,mergeBlocks:r,onReplace:s}=e;const{isViewportAvailable:d,isPreviewDesktop:m,isPreviewTablet:u,isPreviewMobile:b}=(0,O.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,v.WX)(n,K);return()=>e(t.id)}),[t.id]);let y,_,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&&(y={fontSize:t.fontSize?`${t.fontSize}px`:void 0},_={textAlign:t.align,paddingTop:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingTop}px`,paddingRight:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingRight}px`,paddingBottom:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingBottom}px`,paddingLeft:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingLeft}px`,marginTop:"linked"===t.marginType?`${t.margin}px`:`${t.marginTop}px`,marginBottom:"linked"===t.marginType?`${t.margin}px`:`${t.marginBottom}px`}),w&&(y={fontSize:t.fontSizeTablet?`${t.fontSizeTablet}px`:void 0},_={textAlign:t.alignTablet,paddingTop:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingTopTablet}px`,paddingRight:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingRightTablet}px`,paddingBottom:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingBottomTablet}px`,paddingLeft:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingLeftTablet}px`,marginTop:"linked"===t.marginTypeTablet?`${t.marginTablet}px`:`${t.marginTopTablet}px`,marginBottom:"linked"===t.marginTypeTablet?`${t.marginTablet}px`:`${t.marginBottomTablet}px`}),E&&(y={fontSize:t.fontSizeMobile?`${t.fontSizeMobile}px`:void 0},_={textAlign:t.alignMobile,paddingTop:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingTopMobile}px`,paddingRight:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingRightMobile}px`,paddingBottom:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingBottomMobile}px`,paddingLeft:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingLeftMobile}px`,marginTop:"linked"===t.marginTypeMobile?`${t.marginMobile}px`:`${t.marginTopMobile}px`,marginBottom:"linked"===t.marginTypeMobile?`${t.marginMobile}px`:`${t.marginBottomMobile}px`}),t.textShadow&&(f={textShadow:`${t.textShadowHorizontal}px ${t.textShadowVertical}px ${t.textShadowBlur}px ${P()(t.textShadowColor?t.textShadowColor:"#000000",0<=t.textShadowColorOpacity?t.textShadowColorOpacity||1e-5:1)}`});const x=(0,I.omitBy)({color:t.headingColor,...y,fontFamily:t.fontFamily||void 0,fontWeight:"regular"===t.fontVariant?"normal":t.fontVariant,fontStyle:t.fontStyle||void 0,textTransform:t.textTransform||void 0,lineHeight:(3<t.lineHeight?t.lineHeight+"px":t.lineHeight)||void 0,letterSpacing:t.letterSpacing&&`${t.letterSpacing}px`,..._,...f},(e=>{var t;return null==e||null===(t=e.includes)||void 0===t?void 0:t.call(e,"undefined")})),T=(0,i.useBlockProps)({id:t.id,style:x});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("style",null,`#block-${n} mark, #block-${n} .highlight {\n\t\t\t\t\t\tcolor: ${t.highlightColor};\n\t\t\t\t\t\tbackground: ${t.highlightBackground};\n\t\t\t\t\t}`),t.fontFamily&&(0,c.createElement)(N.Z,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&[t.fontVariant+("italic"===t.fontStyle?":i":"")]}]}),(0,c.createElement)(G,{attributes:t,setAttributes:o}),(0,c.createElement)(q,{attributes:t,setAttributes:o}),(0,c.createElement)(i.RichText,(0,H.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:r,onSplit:(e,o)=>{let l;var r;return l=o||e?(0,a.createBlock)("themeisle-blocks/advanced-heading",{...t,content:e}):(0,a.createBlock)(null!==(r=(0,a.getDefaultBlockName)())&&void 0!==r?r:"themeisle-blocks/advanced-heading"),o&&(l.clientId=n),l},onReplace:s,onRemove:()=>s([]),onChange:e=>{o({content:e})}},T)))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({id:t.id,className:t.id});return(0,c.createElement)(i.RichText.Content,(0,H.Z)({tagName:t.tag,value:t.content},o))}});var X=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 Q={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}]}},Y=[{attributes:Q,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,I.times)(t.buttons,(e=>(e=>{const o={...a,borderWidth:`${t.data[e].borderSize}px`,borderRadius:`${t.data[e].borderRadius}px`,padding:`${t.data[e].paddingTopBottom}px ${t.data[e].paddingLeftRight}px`};return(0,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:Q,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,I.times)(t.buttons,(e=>(e=>{const o={...a,borderWidth:`${t.data[e].borderSize}px`,borderRadius:`${t.data[e].borderRadius}px`,padding:`${t.data[e].paddingTopBottom}px ${t.data[e].paddingLeftRight}px`};return(0,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:{...Q,fontSize:{type:"number"},fontStyle:{type:"string"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""},{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""}]}},migrate:(e,t)=>{let o,l,n;return"flex-start"===e.align&&(o="left"),"center"===e.align&&(o="center"),"flex-end"===e.align&&(o="right"),e.data&&(l=(0,I.pick)(e.data[0],["paddingLeftRight","paddingTopBottom"]),1<=Object.keys(l).length&&(l=(0,I.pick)(l,Object.keys(l).filter((e=>""!==l[e])))),n=e.data.filter(((t,o)=>o<e.buttons)).map((e=>{const t=(0,I.omit)(e,["paddingLeftRight","paddingTopBottom"]);return(0,a.createBlock)("themeisle-blocks/button",{...t})}))),[{...(0,I.omit)(e,["buttons","data"]),align:o,...l},[...n,...t]]},save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"";return(0,c.createElement)("div",{id:t.id,className:g()(o,l,"wp-block-button")},(0,I.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 ee=Y,te=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)(Z.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)(F.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:oe}=X;const{name:le}=X;(0,a.registerBlockType)(le,{...X,title:(0,l.__)("Button Group","otter-blocks"),description:(0,l.__)("Prompt visitors to take action with a button group. Powered by Otter.","otter-blocks"),icon:r.buttonsIcon,keywords:["button","buttons","button group"],deprecated:ee,edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const{isViewportAvailable:a,isPreviewDesktop:n,isPreviewTablet:r,isPreviewMobile:s}=(0,O.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,O.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,v.WX)(l,oe);return()=>e(t.id)}),[]);let h=m&&!u&&b&&!p,k=!m&&!u&&b&&!p,y=!(m||u||b||p);a&&!y&&(h=n,k=r,y=s);const[_,f]=(0,v.A_)();(0,c.useEffect)((()=>{f([`.block-editor-block-list__layout {\n\t\t\t\tgap: ${t.spacing}px;\n\t\t\t}`])}),[t.spacing]);const C=["desktop","tablet","mobile"].reduce(((e,o)=>(t.align&&t.align[o]&&e.push(`align-${t.align[o]}-${o}`),e)),[]),w=(0,i.useBlockProps)({id:t.id,className:g()("wp-block-buttons",_,{[`align-${t.align}`]:"string"==typeof t.align,collapse:"collapse-desktop"===t.collapse&&(h||k||y)||"collapse-tablet"===t.collapse&&(k||y)||"collapse-mobile"===t.collapse&&y},...C)});return(0,c.createElement)(c.Fragment,null,t.fontFamily&&(0,c.createElement)(N.Z,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&[t.fontVariant+("italic"===t.fontStyle?":i":"")]}]}),(0,c.createElement)(te,{attributes:t,setAttributes:o,currentDevice:d}),(0,c.createElement)("div",w,(0,c.createElement)(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 ae=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),re=o(6421),ce=window.wp.keycodes,ie=e=>{let{isSelected:t,url:o,setAttributes:a,opensInNewTab:n}=e;const[r,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=r&&(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:n},onChange:e=>{let{url:t="",opensInNewTab:o}=e;a({link:t}),n!==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:ce.displayShortcut.primary("k"),onClick:b,className:"o-toolbar-icon"}),u&&(0,c.createElement)(s.ToolbarButton,{name:"link",icon:re.Z,title:(0,l.__)("Unlink","otter-blocks"),shortcut:ce.displayShortcut.primaryShift("k"),onClick:p,isActive:!0,className:"o-toolbar-icon"})),t&&(0,c.createElement)(s.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{[ce.rawShortcut.primary("k")]:b,[ce.rawShortcut.primaryShift("k")]:p}}),g)},se=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(ie,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))};const de=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var me=e=>{let{attributes:t,setAttributes:o}=e;const[a,n]=(0,c.useState)(!1),r=()=>(0,c.createElement)(s.ButtonGroup,null,(0,c.createElement)(s.Button,{isSmall:!0,isSecondary:a,isPrimary:!a,onClick:()=>n(!1)},(0,l.__)("Normal","otter-blocks")),(0,c.createElement)(s.Button,{isSmall:!0,isSecondary:!a,isPrimary:a,onClick:()=>n(!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)(r,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)(r,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,{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)(r,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)(de,{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})}}))))},ue=o(48);const{attributes:be}=ae;const{name:pe}=ae;(0,a.registerBlockType)(pe,{...ae,title:(0,l.__)("Button","otter-blocks"),description:(0,l.__)("Prompt visitors to take action with a button group. Powered by Otter.","otter-blocks"),icon:r.buttonsIcon,keywords:["button","buttons","button group"],styles:[{name:"fill",label:(0,l.__)("Fill","otter-blocks"),isDefault:!0},{name:"outline",label:(0,l.__)("Outline","otter-blocks")},...window.themeisleGutenberg.hasNeve?[{name:"primary",label:(0,l.__)("Primary","otter-blocks")},{name:"secondary",label:(0,l.__)("Secondary","otter-blocks")}]:[]],edit:e=>{let{attributes:t,setAttributes:o,isSelected:a,clientId:n}=e;const{hasParent:r,parentAttributes:s}=(0,O.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,v.WX)(n,be);return()=>e(t.id)}),[]);let d={},m={};t.boxShadow&&(d={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${P()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`}),r&&(m={paddingTop:`${s.paddingTopBottom}px`,paddingBottom:`${s.paddingTopBottom}px`,paddingLeft:`${s.paddingLeftRight}px`,paddingRight:`${s.paddingLeftRight}px`,fontSize:s.fontSize&&`${s.fontSize}px`,fontFamily:s.fontFamily,fontWeight:s.fontVariant,fontStyle:s.fontStyle,textTransform:s.textTransform,lineHeight:s.lineHeight&&`${s.lineHeight}px`});const u={color:t.color,background:t.background||t.backgroundGradient,border:`${t.borderSize}px solid ${t.border}`,borderRadius:t.borderRadius,...d,...m},b={fill:t.color,width:s.fontSize&&`${s.fontSize}px`},p=ue.ZP.icons[t.icon],[h,k]=(0,v.A_)();(0,c.useEffect)((()=>{k([`.wp-block-button__link:hover {\n\t\t\t\tcolor: ${t.hoverColor} !important;\n\t\t\t\tbackground: ${t.hoverBackground||t.hoverBackgroundGradient} !important;\n\t\t\t\tborder-color: ${t.hoverBorder} !important;\n\t\t\t\t${t.boxShadow&&`box-shadow: ${t.hoverBoxShadowHorizontal}px ${t.hoverBoxShadowVertical}px ${t.hoverBoxShadowBlur}px ${t.hoverBoxShadowSpread}px ${P()(t.hoverBoxShadowColor?t.hoverBoxShadowColor:"#000000",t.hoverBoxShadowColorOpacity)} !important;`}\n\t\t\t}`,`.wp-block-button__link:hover svg {\n\t\t\t\tfill: ${t.hoverColor} !important;\n\t\t\t}`])}),[t.hoverColor,t.hoverBackground,t.hoverBackgroundGradient,t.hoverBorder,t.hoverColor,t.boxShadow,t.hoverBoxShadowHorizontal,t.hoverBoxShadowBlur,t.hoverBoxShadowSpread,t.hoverBoxShadowColor,t.hoverBoxShadowColorOpacity]);const y=(0,i.useBlockProps)({id:t.id,className:g()("wp-block-button",h),style:{}});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(se,{attributes:t,setAttributes:o,isSelected:a}),(0,c.createElement)(me,{attributes:t,setAttributes:o}),(0,c.createElement)("div",y,"none"!==t.iconType?(0,c.createElement)("div",{className:"wp-block-button__link",style:u},("left"===t.iconType||"only"===t.iconType)&&("themeisle-icons"===t.library&&t.icon?(0,c.createElement)(p,{className:g()({"margin-right":"left"===t.iconType}),style:b}):(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,{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,c.createElement)(p,{className:"margin-left",style:b}):(0,c.createElement)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))):(0,c.createElement)(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})))},save:e=>{let{attributes:t}=e;const o=ue.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 ge=o(269),he=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"}'),ke=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,I.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,I.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})}})))},ve=e=>{let{attributes:t,progressRef:o,valueRef:l}=e;const a=t.height,n=a/2,r=a/2-t.strokeWidth/2,i=2*Math.PI*r;return 0>r?(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:n,cy:n,r:r,strokeWidth:t.strokeWidth,style:{stroke:t.backgroundColor}}),(0,c.createElement)("circle",{ref:o,className:"wp-block-themeisle-blocks-circle-counter-progress",cx:n,cy:n,r:r,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:ye}=he;const{clamp:_e,omit:fe}=lodash,Ce={to:[{type:"block",blocks:["themeisle-blocks/progress-bar"],transform:e=>{const t=fe(e,["titleStyle","height","fontSize","strokeWidth","progressColor"]);return(0,a.createBlock)("themeisle-blocks/progress-bar",{...t,barBackgroundColor:e.progressColor,height:_e(e.height/4,0,100),titleStyle:"default"})}}]};var we=Ce;const{name:Ee}=he;(0,a.registerBlockType)(Ee,{...he,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:ge.Z,keywords:["progress","circle","counter"],transforms:we,edit:e=>{let{clientId:t,attributes:o,setAttributes:a,isSelected:n,toggleSelection:r}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(t,ye);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,I.range)(0,1e3*o.duration+20,20).map((t=>t*e)).reverse();u&&clearInterval(u),d.current.style.strokeDashoffset=g,m.current.innerText="0%";const l=setInterval((()=>{if(!d.current)return void clearInterval(l);const e=Math.round(t.pop());d.current.style.strokeDashoffset=(100-e)/100*g,m.current.innerHTML=e+"%",0===t.length&&clearInterval(l)}),20);return b(l),()=>{clearInterval(l)}}),[o.duration]),(0,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 h=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)})},k=e=>{a({title:e})},y={"--fontSizeTitle":(_=o.fontSizeTitle,_?`${_}px`:_)};var _;const f=(0,i.useBlockProps)({id:o.id,style:y});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(ke,{attributes:o,setAttributes:a,onHeightChange:h}),(0,c.createElement)("div",f,"default"===o.titleStyle&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,c.createElement)(i.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:n?(0,l.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:k,multiline:!1,style:{color:o.titleColor}})),(0,c.createElement)(s.ResizableBox,{size:{height:o.height,width:o.height},minHeight:0,maxHeight:240,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:n,onResizeStop:(e,t,l,a)=>{h(parseInt(o.height+a.height,10)),r(!0)},onResizeStart:()=>{r(!1)}},(0,c.createElement)(ve,{attributes:o,progressRef:d,valueRef:m})),"bottom"===o.titleStyle&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,c.createElement)(i.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:n?(0,l.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:k,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 xe=o(2506),Te=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"}'),Se=o(6292),Me=o.n(Se),Be=o(9771),ze=e=>{var t,o,a,n;let{attributes:r,setAttributes:d}=e;const m=(0,O.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==r||null===(o=r.exclude)||void 0===o?void 0:o.filter((e=>e!==t))}:{exclude:null!=r&&r.exclude?[...null==r?void 0:r.exclude,t]:[t]})},b=e=>{let t;return"top-right"===e&&(t="linked"===r.borderRadiusType?r.borderRadius:r.borderRadiusTopRight),"top-left"===e&&(t="linked"===r.borderRadiusType?r.borderRadius:r.borderRadiusTopLeft),"bottom-right"===e&&(t="linked"===r.borderRadiusType?r.borderRadius:r.borderRadiusBottomRight),"bottom-left"===e&&(t="linked"===r.borderRadiusType?r.borderRadius:r.borderRadiusBottomLeft),t},p={"top-right":"borderRadiusTopRight","top-left":"borderRadiusTopLeft","bottom-left":"borderRadiusBottomLeft","bottom-right":"borderRadiusBottomRight"},g=(0,Be.__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},r.date?(0,Be.format)(g.formats.datetime,r.date):(0,l.__)("Select Date","otter-blocks")))},renderContent:()=>(0,c.createElement)(s.DateTimePicker,{currentDate:r.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!=r&&null!==(t=r.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!=r&&null!==(o=r.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!=r&&null!==(a=r.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!=r&&null!==(n=r.exclude)&&void 0!==n&&n.includes("second")),onChange:e=>u(e,"second")}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display Separators","otter-blocks"),checked:null==r?void 0:r.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?r.gapMobile:"Tablet"===m?r.gapTablet:r.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?r.heightMobile:"Tablet"===m?r.heightTablet:r.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?r.widthMobile:"Tablet"===m?r.widthTablet:r.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?r.borderWidthMobile:"Tablet"===m?r.borderWidthTablet:r.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?r.valueFontSizeMobile:"Tablet"===m?r.valueFontSizeTablet:r.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?r.labelFontSizeMobile:"Tablet"===m?r.labelFontSizeTablet:r.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)(Z.Z,{label:(0,l.__)("Border Radius (%)","otter-blocks"),type:r.borderRadiusType,min:0,max:100,changeType:e=>{d({borderRadiusType:e})},onChange:(e,t)=>{"linked"===r.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:r.backgroundColor,onChange:e=>{d({backgroundColor:e})},label:(0,l.__)("Background","otter-blocks")},{value:r.labelColor,onChange:e=>{d({labelColor:e})},label:(0,l.__)("Label","otter-blocks")},{value:r.valueColor,onChange:e=>{d({valueColor:e})},label:(0,l.__)("Value","otter-blocks")},{value:r.borderColor,onChange:e=>{d({borderColor:e})},label:(0,l.__)("Border","otter-blocks")}]},(0,c.createElement)(i.ContrastChecker,{textColor:r.backgroundColor,backgroundColor:r.valueColor})))},Pe=o(4715);const Ve=e=>{let{name:t,value:o,tag:l,styles:a}=e;const n="sep"!==t?{...a.allComponents,...a.mainComponents}:a.allComponents;return(0,c.createElement)("div",{style:n,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 Re=e=>{let{time:t,hasSeparators:o,styles:l}=e;const a=o?(0,Pe.S3)(t,{name:"sep",value:":",tag:"separator"}):t,n=null==a?void 0:a.map(((e,t)=>(0,c.createElement)(Ve,(0,H.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"},n)):(0,c.createElement)(c.Fragment,null)};const{attributes:Le}=Te,He=e=>e?`${e}px`:e;const Ne=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))},Ie=e=>{let{time:t,hasSeparators:o}=e;const l=o?(0,Pe.S3)(t,{name:"sep",value:":",tag:"separator"}):t,a=null==l?void 0:l.map(((e,t)=>(0,c.createElement)(Ne,(0,H.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}=Te;(0,a.registerBlockType)(Ae,{...Te,title:(0,l.__)("Countdown","otter-blocks"),description:(0,l.__)("Set a countdown for a date. Powered by Otter.","otter-blocks"),icon:xe.Z,keywords:["countdown","time","counter"],edit:e=>{let{attributes:t,setAttributes:o,clientId:l,className:a}=e;const[n,r]=(0,c.useState)(0);(0,c.useEffect)((()=>{const e=(0,v.WX)(l,Le);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{const e=setInterval((()=>{if(t.date){let e=t.date+(0,Pe.EP)();e=1e3*Me()(e).unix(),r(new Date(e)-new Date)}}),500);return()=>{clearInterval(e)}}),[t.date]);const{isViewportAvailable:s,isPreviewDesktop:d,isPreviewTablet:m,isPreviewMobile:u}=(0,O.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()}}),[]),b=(0,A.useViewportMatch)("large",">="),p=(0,A.useViewportMatch)("large","<="),g=(0,A.useViewportMatch)("small",">="),h=(0,A.useViewportMatch)("small","<=");let k,y=b&&!p&&g&&!h,_=!b&&!p&&g&&!h,f=!(b||p||g||h);s&&!f&&(y=d,_=m,f=u),_?k={value:{fontSize:He(null==t?void 0:t.valueFontSizeTablet)},label:{fontSize:He(null==t?void 0:t.labelFontSizeTablet)},display:{gap:He(t.gapTablet)},allComponents:{height:He(null==t?void 0:t.heightTablet)},mainComponents:{width:He(null==t?void 0:t.widthTablet),borderWidth:He(t.borderWidthTablet)}}:f?k={value:{fontSize:He(t.valueFontSizeMobile)},label:{fontSize:He(t.labelFontSizeMobile)},display:{gap:He(t.gapMobile)},allComponents:{height:He(null==t?void 0:t.heightMobile)},mainComponents:{width:He(null==t?void 0:t.widthMobile),borderWidth:He(t.borderWidthMobile)}}:y&&(k={value:{fontSize:He(t.valueFontSize)},label:{fontSize:He(t.labelFontSize)},display:{gap:He(t.gap)},allComponents:{height:He(t.height)},mainComponents:{width:He(t.width),borderWidth:He(t.borderWidth)}});const C="linked"===t.borderRadiusType?t.borderRadius+"%":`${t.borderRadiusTopLeft}% ${t.borderRadiusTopRight}% ${t.borderRadiusBottomRight}% ${t.borderRadiusBottomLeft}%`,w={"--backgroundColor":t.backgroundColor,"--borderColor":t.borderColor,"--borderRadius":C},[E,x]=(0,v.A_)();(0,c.useEffect)((()=>{x([`.otter-countdown__display-area .otter-countdown__value {\n\t\t\t\tcolor: ${t.valueColor};\n\t\t\t}`,`.otter-countdown__display-area .otter-countdown__label {\n\t\t\t\tcolor: ${t.labelColor};\n\t\t\t}`])}),[t.valueColor,t.labelColor]);const T=(0,i.useBlockProps)({id:t.id,className:E,style:w});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(ze,{attributes:t,setAttributes:o}),(0,c.createElement)("div",T,(0,c.createElement)(Re,{time:(0,Pe.Mg)(n,{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)(Ie,{time:(0,Pe.Mg)(0,{exclude:null==t?void 0:t.exclude}),hasSeparators:null==t?void 0:t.hasSeparators}))}});var Oe=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"}'),Fe=e=>{let{attributes:t,setAttributes:o,isFliped:a}=e;const n=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)(n,{label:(0,l.__)("Change front side content position","otter-blocks"),value:t.frontAlign,onChange:e=>o({frontAlign:e})})))};const Ge=e=>{let{backgroundType:t,backgroundColor:o,image:a,gradient:n,backgroundAttachment:d,backgroundRepeat:m,backgroundSize:u,focalPoint:b,changeImage:p,changeColor:g,removeImage:h,changeBackgroundType:k,changeGradient:v,changeBackgroundAttachment:y,changeBackgroundRepeat:_,changeBackgroundSize:f,changeFocalPoint:C}=e;const w=`inspector-background-selector-control-${(0,A.useInstanceId)(Ge)}`;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:r.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,{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:n,disableCustomColors:!0,onGradientChange:v,clearable:!1}))};var $e=Ge,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,I.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)($e,{backgroundType:o.frontBackgroundType,backgroundColor:o.frontBackgroundColor,image:o.frontBackgroundImage,gradient:o.frontBackgroundGradient,focalPoint:o.frontBackgroundPosition,backgroundAttachment:o.frontBackgroundAttachment,backgroundRepeat:o.frontBackgroundRepeat,backgroundSize:o.frontBackgroundSize,changeBackgroundType:e=>a({frontBackgroundType:e}),changeImage:e=>{a({frontBackgroundImage:(0,I.pick)(e,["id","url"])})},removeImage:()=>a({frontBackgroundImage:void 0}),changeColor:e=>a({frontBackgroundColor:e}),changeGradient:e=>a({frontBackgroundGradient:e}),changeBackgroundAttachment:e=>a({frontBackgroundAttachment:e}),changeBackgroundRepeat:e=>a({frontBackgroundRepeat:e}),changeFocalPoint:e=>a({frontBackgroundPosition:e}),changeBackgroundSize:e=>a({frontBackgroundSize:e})})),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Back","otter-blocks"),initialOpen:!1},(0,c.createElement)($e,{backgroundType:o.backBackgroundType,backgroundColor:o.backBackgroundColor,image:o.backBackgroundImage,gradient:o.backBackgroundGradient,focalPoint:o.backBackgroundPosition,backgroundAttachment:o.backBackgroundAttachment,backgroundRepeat:o.backBackgroundRepeat,backgroundSize:o.backBackgroundSize,changeBackgroundType:e=>a({backBackgroundType:e}),changeImage:e=>{a({backBackgroundImage:(0,I.pick)(e,["id","url"])})},removeImage:()=>a({backBackgroundImage:void 0}),changeColor:e=>a({backBackgroundColor:e}),changeGradient:e=>a({backBackgroundGradient:e}),changeBackgroundAttachment:e=>a({backBackgroundAttachment:e}),changeBackgroundRepeat:e=>a({backBackgroundRepeat:e}),changeFocalPoint:e=>a({backBackgroundPosition:e}),changeBackgroundSize:e=>a({backBackgroundSize:e})}),(0,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,{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:Ze}=Oe;const{name:We}=Oe;(0,a.registerBlockType)(We,{...Oe,title:(0,l.__)("Flip Card","otter-blocks"),description:(0,l.__)("Make a card with a flip effect. Powered by Otter.","otter-blocks"),icon:ge.Z,keywords:["flip card","container","animation"],edit:e=>{var t,o,a,n,r,d,m,u,b,p;let{attributes:h,setAttributes:k,clientId:y,isSelected:_}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(y,Ze);return()=>e(h.id)}),[h.id]);const[f,C]=(0,c.useState)(!1),w={"--width":void 0!==h.width&&`${h.width}px`,"--height":void 0!==h.height&&`${h.height}px`,"--borderWidth":void 0!==h.borderWidth&&`${h.borderWidth}px`,"--borderColor":h.borderColor,"--borderRadius":void 0!==h.borderRadius&&`${h.borderRadius}px`,"--frontBackground":(0,Pe.nG)([["gradient"===h.frontBackgroundType&&h.frontBackgroundGradient,h.frontBackgroundGradient],["image"===h.frontBackgroundType&&(null===(t=h.frontBackgroundImage)||void 0===t?void 0:t.url),`url( ${null===(o=h.frontBackgroundImage)||void 0===o?void 0:o.url} ) ${h.frontBackgroundRepeat||"repeat"} ${h.frontBackgroundAttachment||"scroll"} ${Math.round(100*(null===(a=h.frontBackgroundPosition)||void 0===a?void 0:a.x))||50}% ${Math.round(100*(null===(n=h.frontBackgroundPosition)||void 0===n?void 0:n.y))||50}%/${h.frontBackgroundSize||"auto"}`],[h.frontBackgroundColor]]),"--backBackground":(0,Pe.nG)([["gradient"===h.backBackgroundType&&h.backBackgroundGradient,h.backBackgroundGradient],["image"===h.backBackgroundType&&(null===(r=h.backBackgroundImage)||void 0===r?void 0:r.url),`url( ${null===(d=h.backBackgroundImage)||void 0===d?void 0:d.url} ) ${h.backBackgroundRepeat||"repeat"} ${h.backBackgroundAttachment||"scroll"} ${Math.round(100*(null===(m=h.backBackgroundPosition)||void 0===m?void 0:m.x))||50}% ${Math.round(100*(null===(u=h.backBackgroundPosition)||void 0===u?void 0:u.y))||50}%/${h.backBackgroundSize||"auto"}`],[h.backBackgroundColor]]),"--padding":void 0!==h.padding&&`${h.padding}px`,"--boxShadow":h.boxShadow&&`${h.boxShadowHorizontal}px ${h.boxShadowVertical}px ${h.boxShadowBlur}px ${h.boxShadowColor?h.boxShadowColor.includes("#")&&0<=h.boxShadowColorOpacity?hexToRgba(h.boxShadowColor,h.boxShadowColorOpacity||1e-5):h.boxShadowColor:hexToRgba("#000000",void 0!==h.boxShadowColorOpacity?h.boxShadowColorOpacity||1e-5:1)}`,"--frontVerticalAlign":h.frontVerticalAlign,"--frontHorizontalAlign":h.frontHorizontalAlign,"--backVerticalAlign":h.backVerticalAlign,"--frontMediaWidth":void 0!==h.frontMediaWidth&&`${h.frontMediaWidth}px`,"--frontMediaHeight":void 0!==h.frontMediaHeight&&`${h.frontMediaHeight}px`},[E,x]=(0,v.A_)();(0,c.useEffect)((()=>{x([`.o-flip-inner {\n\t\t\t\ttransform: ${f?"var( --flip-anim )":"unset"};\n\t\t\t}`,`.o-flip-front .o-flip-content h3 {\n\t\t\t\tcolor: ${h.titleColor};\n\t\t\t\t${h.titleFontSize&&`font-size: ${h.titleFontSize}px;`}\n\t\t\t}`,`.o-flip-front .o-flip-content p {\n\t\t\t\tcolor: ${h.descriptionColor};\n\t\t\t\t${h.descriptionFontSize&&`font-size: ${h.descriptionFontSize}px;`}\n\t\t\t}`])}),[f,h.titleFontSize,h.descriptionFontSize]);const T=(0,i.useBlockProps)({id:h.id,className:g()({flipX:"flipX"===h.animType,flipY:"flipY"===h.animType},E),style:w});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Fe,{attributes:h,setAttributes:k,isFliped:f}),(0,c.createElement)(De,{attributes:h,setAttributes:k}),(0,c.createElement)("div",T,(0,c.createElement)("div",{className:g()("o-flip-inner",{invert:h.isInverted})},(0,c.createElement)("div",{className:"o-flip-front"},(0,c.createElement)("div",{className:"o-flip-content"},(null===(b=h.frontMedia)||void 0===b?void 0:b.url)&&(0,c.createElement)("img",{className:"o-img",srcSet:null===(p=h.frontMedia)||void 0===p?void 0:p.url}),(0,c.createElement)(i.RichText,{tagName:"h3",value:h.title,onChange:e=>k({title:e}),placeholder:(0,l.__)("Insert a title","otter-blocks")}),(0,c.createElement)(i.RichText,{tagName:"p",value:h.description,onChange:e=>k({description:e}),placeholder:(0,l.__)("Insert a description","otter-blocks")}))),(0,c.createElement)("div",{className:"o-flip-back"},(0,c.createElement)(i.InnerBlocks,{renderAppender:_?i.InnerBlocks.ButtonBlockAppender:""}))),_&&(0,c.createElement)("div",{className:"o-switcher"},(0,c.createElement)(s.Button,{isPrimary:!0,onClick:()=>C(!f)},f?(0,l.__)("Flip to front","otter-blocks"):(0,l.__)("Flip to back","otter-blocks")))))},save:e=>{var t,o,l,a;let{attributes:n}=e;const r=i.useBlockProps.save({id:n.id,className:g()("anim",{flipX:"flipX"===n.animType,flipY:"flipY"===n.animType})});return(0,c.createElement)("div",r,(0,c.createElement)("div",{className:g()("o-flip-inner",{invert:n.isInverted})},(0,c.createElement)("div",{className:"o-flip-front"},(0,c.createElement)("div",{className:"o-flip-content"},(null===(t=n.frontMedia)||void 0===t?void 0:t.url)&&(0,c.createElement)("img",{className:"o-img",src:null===(o=n.frontMedia)||void 0===o?void 0:o.url,srcSet:null===(l=n.frontMedia)||void 0===l?void 0:l.url,alt:null===(a=n.frontMedia)||void 0===a?void 0:a.alt}),(0,c.createElement)(i.RichText.Content,{tagName:"h3",value:n.title}),(0,c.createElement)(i.RichText.Content,{tagName:"p",value:n.description}))),(0,c.createElement)("div",{className:"o-flip-back"},(0,c.createElement)(i.InnerBlocks.Content,null))))}});var Ue=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 je={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}},qe=[{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=ue.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:je,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:{...je,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:{...je,id:{type:"string"},align:{type:"string"},link:{type:"string"},newTab:{type:"boolean",default:!1},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"}},save:e=>{let{attributes:t,className:o}=e;const l={borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"},a={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},n=()=>(0,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)(n,null)):(0,c.createElement)(n,null)))}}];var Ke=qe,Je=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)(ie,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))};const Xe=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var Qe=e=>{let{attributes:t,setAttributes:o,getValue:a}=e;const[n,r]=(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)(Xe,{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)(h.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)(h.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)(h.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:n,isPrimary:!n,onClick:()=>r(!1)},(0,l.__)("Normal","otter-blocks")),(0,c.createElement)(s.Button,{isSmall:!0,isSecondary:!n,isPrimary:n,onClick:()=>r(!0)},(0,l.__)("Hover","otter-blocks"))),n?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(h.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)(h.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)(h.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)(h.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:Ye}=Ue;const{name:et}=Ue;(0,a.registerBlockType)(et,{...Ue,title:(0,l.__)("Icon","otter-blocks"),description:(0,l.__)("Add icons from Font Awesome or ThemeIsle Icons library to your website. Powered by Otter.","otter-blocks"),icon:r.faIcon,keywords:["font awesome","dashicons","icons"],deprecated:Ke,edit:e=>{let{name:t,attributes:o,setAttributes:l,isSelected:a,clientId:n}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(n,Ye);return()=>e(o.id)}),[o.id]);const r=ue.ZP.icons[o.icon],s=e=>(0,v.Ih)({name:t,field:e,defaultAttributes:Ye,attributes:o}),d={"--align":o.align,"--borderColor":o.borderColor,"--borderSize":void 0!==o.borderSize&&`${o.borderSize}px`,"--borderRadius":void 0!==o.borderRadius&&`${o.borderRadius}%`,"--margin":void 0!==o.margin&&`${s("margin")}px`,"--padding":void 0!==o.padding&&`${s("padding")}px`,"--fontSize":void 0!==o.fontSize&&`${s("fontSize")}px`},[m,u]=(0,v.A_)();(0,c.useEffect)((()=>{u([`.wp-block-themeisle-blocks-font-awesome-icons-container {\n\t\t\t\tcolor: ${s("textColor")};\n\t\t\t\tbackground-color: ${s("backgroundColor")};\n\t\t\t}`,`.wp-block-themeisle-blocks-font-awesome-icons-container:hover {\n\t\t\t\tcolor: ${s("textColorHover")};\n\t\t\t\tbackground-color: ${s("backgroundColorHover")};\n\t\t\t\tborder-color: ${o.borderColorHover};\n\t\t\t}`,`.wp-block-themeisle-blocks-font-awesome-icons-container a {\n\t\t\t\tcolor: ${s("textColor")};\n\t\t\t}`,`.wp-block-themeisle-blocks-font-awesome-icons-container i {\n\t\t\t\t${s("fontSize")&&`font-size: ${s("fontSize")}px;`}\n\t\t\t}`,`.wp-block-themeisle-blocks-font-awesome-icons-container svg {\n\t\t\t\tfill: ${s("textColor")};\n\t\t\t}`,`.wp-block-themeisle-blocks-font-awesome-icons-container:hover svg {\n\t\t\t\tfill: ${s("textColorHover")};\n\t\t\t}`])}),[o.textColor,o.backgroundColor,o.textColorHover,o.backgroundColorHover,o.borderColorHover,o.fontSize]);const b=(0,i.useBlockProps)({id:o.id,style:d,className:m});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Je,{attributes:o,setAttributes:l,isSelected:a}),(0,c.createElement)(Qe,{attributes:o,setAttributes:l,getValue:s}),(0,c.createElement)("div",b,(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},"themeisle-icons"===o.library?(0,c.createElement)(r,null):(0,c.createElement)("i",{className:`${o.prefix} fa-${o.icon}`}))))},save:e=>{let{attributes:t}=e;const o=ue.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 tt=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 ot=[{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 lt=ot,at=o(8101),nt=o.n(at),rt=o(6989),ct=o.n(rt);const it=e=>(null==e?void 0:e[1])&&e[0]!==e[1],st=e=>Boolean(0<e.filter(it).length),dt=[{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 mt=e=>{var t,o,a,n,r,d,m,u,b,p,g;let{attributes:k,setAttributes:v}=e;const{listIDOptions:y,setListIDOptions:_,saveFormEmailOptions:f,saveIntegration:C,savedFormOptions:w,sendTestEmail:E,loadingState:x,formOptions:T,setFormOption:S,testService:M,hasEmailField:B}=(0,c.useContext)(pt),z=st([[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=st([[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:k.labelColor,onChange:e=>v({labelColor:e}),label:(0,l.__)("Label","otter-blocks")},{value:k.helpLabelColor,onChange:e=>v({helpLabelColor:e}),label:(0,l.__)("Help Label","otter-blocks")},{value:k.inputBorderColor,onChange:e=>v({inputBorderColor:e}),label:(0,l.__)("Border","otter-blocks")},{value:k.inputRequiredColor,onChange:e=>v({inputRequiredColor:e}),label:(0,l.__)("Label Required","otter-blocks")},{value:k.inputColor,onChange:e=>v({inputColor:e}),label:(0,l.__)("Input","otter-blocks")}]}),(0,c.createElement)(i.PanelColorSettings,{title:(0,l.__)("Button Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:k.submitColor,onChange:e=>v({submitColor:e}),label:(0,l.__)("Submit Text","otter-blocks")},{value:k.submitBackgroundColor,onChange:e=>v({submitBackgroundColor:e}),label:(0,l.__)("Button Background","otter-blocks")},{value:k.submitBackgroundColorHover,onChange:e=>v({submitBackgroundColorHover:e}),label:(0,l.__)("Button Background on Hover","otter-blocks")},{value:k.submitMessageColor,onChange:e=>v({submitMessageColor:e}),label:(0,l.__)("Successful Message","otter-blocks")},{value:k.submitMessageErrorColor,onChange:e=>v({submitMessageErrorColor:e}),label:(0,l.__)("Error Message","otter-blocks")}]}),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Label Styling","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.Z,{field:"inputGap",isSynced:k.isSynced,setAttributes:v},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Spacing","otter-blocks"),value:null!==(n=k.inputGap)&&void 0!==n?n:16,onChange:e=>v({inputGap:e}),allowReset:!0,min:0,max:50,initialPositino:5})),(0,c.createElement)(h.Z,{field:"labelFontSize",isSynced:k.isSynced,setAttributes:v},(0,c.createElement)(s.FontSizePicker,{label:(0,l.__)("Font Size","otter-blocks"),fontSizes:dt,withReset:!0,value:k.labelFontSize,onChange:e=>v({labelFontSize:e})}))),(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Input Styling","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.Z,{field:"inputFontSize",isSynced:k.isSynced,setAttributes:v},(0,c.createElement)(s.FontSizePicker,{label:(0,l.__)("Input Font Size","otter-blocks"),fontSizes:dt,withReset:!0,value:k.inputFontSize,onChange:e=>v({inputFontSize:e})})),(0,c.createElement)(h.Z,{field:"inputsGap",isSynced:k.isSynced,setAttributes:v},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Fields Spacing","otter-blocks"),value:null!==(r=k.inputsGap)&&void 0!==r?r:10,onChange:e=>v({inputsGap:e}),allowReset:!0,min:0,max:50,initialPosition:10})),(0,c.createElement)(h.Z,{field:"inputPadding",isSynced:k.isSynced,setAttributes:v},(0,c.createElement)(s.__experimentalBoxControl,{label:(0,l.__)("Input Padding","otter-blocks"),values:null!==(d=k.inputPadding)&&void 0!==d?d:{top:"8px",right:"8px",bottom:"8px",left:"8px"},inputProps:{min:0,max:500},onChange:e=>v({inputPadding:e})})),(0,c.createElement)(h.Z,{field:"inputsBorderRadius",isSynced:k.isSynced,setAttributes:v},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:null!==(m=k.inputBorderRadius)&&void 0!==m?m:4,onChange:e=>v({inputBorderRadius:e}),allowReset:!0,min:0,max:50})),(0,c.createElement)(h.Z,{field:"inputsBorderWidth",isSynced:k.isSynced,setAttributes:v},(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:null!==(u=k.inputBorderWidth)&&void 0!==u?u:1,onChange:e=>v({inputBorderWidth:e}),allowReset:!0,min:0,max:50})),(0,c.createElement)(h.Z,{field:"helpFontSize",isSynced:k.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:dt,withReset:!0,value:k.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:k.submitLabel,onChange:e=>v({submitLabel:e}),help:(0,l.__)("Set the label for the submit button.","otter-blocks")}),(0,c.createElement)(h.Z,{field:"submitFontSize",isSynced:k.isSynced,setAttributes:v},(0,c.createElement)(s.FontSizePicker,{label:(0,l.__)("Font Size","otter-blocks"),fontSizes:dt,withReset:!0,value:k.submitFontSize,onChange:e=>v({submitFontSize:e})})),(0,c.createElement)(s.SelectControl,{label:(0,l.__)("Alignment","otter-blocks"),value:k.submitStyle,options:[{label:"Default",value:""},{label:"Right",value:"right"},{label:"Full",value:"full"}],onChange:e=>v({submitStyle:e})}),(0,c.createElement)(h.Z,{field:"messageFontSize",isSynced:k.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:dt,withReset:!0,value:k.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:k.hasCaptcha,onChange:e=>v({hasCaptcha:e}),help:(0,l.__)("Add Google reCaptcha V2 for protection againts bots. You will need an API Key.","otter-blocks")}),T.hasCaptcha&&(0,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")),k.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"))))},ut=e=>{let{className:t,loadingState:o,isSaving:a,saveAPIKey:n,siteKey:r,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:r,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:n,isBusy:a,disabled:""===r||""===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:bt}=tt,pt=(0,c.createContext)({});var gt=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"]}}'),ht=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:kt}=gt;const vt=[{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 yt=vt;const{name:_t}=gt;window.themeisleGutenberg.isAncestorTypeAvailable||(gt.parent=["themeisle-blocks/form"]),(0,a.registerBlockType)(_t,{...gt,title:(0,l.__)("Text Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:r.inputIcon,deprecated:yt,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,v.WX)(a,kt);return()=>e(t.id)}),[t.id]);const n=(0,i.useBlockProps)(),r=(0,c.useRef)(null),s=(0,c.useRef)(null),d=(0,c.useRef)(null);return(0,c.useEffect)((()=>{var e,o,l,a,n,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)),r.current&&(null===(a=r.current)||void 0===a||null===(n=a.style)||void 0===n||n.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,r.current,d.current,t.labelColor,t.inputWidth]),(0,c.createElement)(c.Fragment,null,(0,c.createElement)(ht,{attributes:t,setAttributes:o}),(0,c.createElement)("div",n,(0,c.createElement)("label",{ref:r,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 ft=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:Ct}=ft;(0,a.registerBlockType)(Ct,{...ft,title:(0,l.__)("Nonce Field","otter-blocks"),description:(0,l.__)("Protect the form from CSRF.","otter-blocks"),icon:r.inputIcon,keywords:["protection","csrf","field"],edit:e=>{let{setAttributes:t,clientId:o}=e;const{parent:l}=(0,O.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 wt=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"]}}'),Et=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:xt}=wt;const Tt=[{attributes:{id:{type:"string"},type:{type:"string",default:"text"},label:{type:"string"},placeholder:{type:"string"},isRequired:{type:"boolean"},mappedName:{type:"string"}},supports:{align:["wide","full"]},save:e=>{let{attributes:t}=e;const o=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 St=Tt;const{name:Mt}=wt;window.themeisleGutenberg.isAncestorTypeAvailable||(wt.parent=["themeisle-blocks/form"]),(0,a.registerBlockType)(Mt,{...wt,title:(0,l.__)("Textarea Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:r.inputIcon,deprecated:St,keywords:["textarea","message","input"],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(a,xt);return()=>e(t.id)}),[t.id]);const n=(0,i.useBlockProps)(),r=(0,c.useRef)(null),s=(0,c.useRef)(null),d=(0,c.useRef)(null);return(0,c.useEffect)((()=>{var e,o,l,a,n,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)),r.current&&(null===(a=r.current)||void 0===a||null===(n=a.style)||void 0===n||n.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,r.current,t]),(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Et,{attributes:t,setAttributes:o}),(0,c.createElement)("div",n,(0,c.createElement)("label",{ref:r,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:Bt}=tt;(0,a.registerBlockType)(Bt,{...tt,title:(0,l.__)("Form","otter-blocks"),description:(0,l.__)("Display a form for your clients. Powered by Otter.","otter-blocks"),icon:r.contactIcon,keywords:["business","form","email"],edit:e=>{let{attributes:t,setAttributes:o,clientId:n,name:r}=e;const[s,d]=(0,c.useState)(""),[m,u]=(0,c.useState)(""),[b,p]=(0,c.useState)({formOptions:"done",formIntegration:"done",listId:"init",captcha:"init",serviceTesting:"init"}),h=e=>{p((t=>({...t,...e})))},[k,y]=(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]=(0,c.useState)(!0),[C,w]=(0,c.useState)([{label:(0,l.__)("None","otter-blocks"),value:""}]),{insertBlock:E,removeBlock:x}=(0,O.useDispatch)("core/block-editor"),{replaceInnerBlocks:T}=(0,O.useDispatch)("core/block-editor"),{createNotice:S}=(0,O.dispatch)("core/notices"),M=(0,O.useSelect)((e=>0<e("core/block-editor").getBlocks(n).length),[n]),{blockType:B,defaultVariation:z,variations:P}=(0,O.useSelect)((e=>{const{getBlockVariations:t,getBlockType:o,getDefaultBlockVariation:l}=e("core/blocks");return{blockType:o(r),defaultVariation:l(r,"block"),variations:t(r,"block")}}),[r]),{children:V,hasEmailField:R}=(0,O.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),o=t(n).innerBlocks;return{children:o,hasEmailField:null==o?void 0:o.some((e=>{var t;return"email"===(null==e||null===(t=e.attributes)||void 0===t?void 0:t.type)}))}}));(0,c.useEffect)((()=>{const e=(0,v.WX)(n,bt);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{var e;t.id&&(0,O.select)("core/edit-widgets")?o({optionName:`widget_${t.id.slice(-8)}`}):t.id&&Boolean(window.themeisleGutenberg.isBlockEditor)&&null!==(e=(0,O.select)("core/editor"))&&void 0!==e&&e.getCurrentPostId()&&o({optionName:`${(0,O.select)("core/editor").getCurrentPostId()}_${t.id.slice(-8)}`})}),[t.id]),(0,c.useEffect)((()=>{if(V){const e=V.filter((e=>{let{name:t}=e;return"themeisle-blocks/form-nonce"===t}));if(2<=(null==e?void 0:e.length))e.slice(1).forEach((e=>{x(e.clientId,!1)}));else if(0===(null==e?void 0:e.length)&&n){const e=(0,a.createBlock)("themeisle-blocks/form-nonce");e&&(null==E||E(e,(null==V?void 0:V.length)||0,n,!1))}}}),[V]);const L=e=>null==e?void 0:e.filter((e=>{let{form:o}=e;return o===t.optionName})).pop(),H=e=>{var t,o,l,a;y({emailTo:null==e?void 0:e.email,fromName:null==e?void 0:e.fromName,redirectLink:null==e?void 0:e.redirectLink,subject:null==e?void 0:e.emailSubject,cc:null==e?void 0:e.cc,bcc:null==e?void 0:e.bcc,submitMessage:null==e?void 0:e.submitMessage,provider:null==e||null===(t=e.integration)||void 0===t?void 0:t.provider,apiKey:null==e||null===(o=e.integration)||void 0===o?void 0:o.apiKey,listId:null==e||null===(l=e.integration)||void 0===l?void 0:l.listId,action:null==e||null===(a=e.integration)||void 0===a?void 0:a.action,hasCaptcha:null==e?void 0:e.hasCaptcha})};(0,c.useEffect)((()=>{let e=new AbortController;const o=setTimeout((()=>{h({formOptions:"done",formIntegration:"done"})}),3e3);return t.optionName&&nt().loadPromise.then((()=>{h({formOptions:"loading",formIntegration:"loading"}),(new(nt().models.Settings)).fetch({signal:e.signal}).done((t=>{e=null;const l=L(t.themeisle_blocks_form_emails);l&&(H(l),f(l)),h({formIntegration:"done",formOptions:"done"}),clearTimeout(o)})).catch((()=>{h({formIntegration:"done",formOptions:"done"}),clearTimeout(o)}))})),()=>{var t;null===(t=e)||void 0===t||t.abort(),clearTimeout(o)}}),[t.optionName]),(0,c.useEffect)((()=>{let e,t=new AbortController;return k.apiKey&&k.provider&&(e=setTimeout((()=>h({listId:"timeout"})),6e3),h({listId:"loading"}),ct()({path:"otter/v1/form/editor",method:"POST",data:{handler:"listId",payload:{provider:k.provider,apiKey:k.apiKey,action:k.action}},signal:t.signal}).then((o=>{if(t=null,clearTimeout(e),null!=o&&o.success){var a;const e=(null==o||null===(a=o.list_id)||void 0===a?void 0:a.map((e=>{var t;return{label:e.name,value:null===(t=e.id)||void 0===t?void 0:t.toString()}})))||[];e.splice(0,0,{label:(0,l.__)("None","otter-blocks"),value:""}),w(e),h({listId:"done"});const t=1===e.map((e=>{let{value:t}=e;return t})).filter((e=>e===k.listId)).length;k.listId&&!t&&S("error",(0,l.__)("The current contact list is invalid. Please choose a new contact list.","otter-blocks"),{isDismissible:!0,type:"snackbar"})}else S("error",null==o?void 0:o.error,{isDismissible:!0,type:"snackbar",id:"themeisle-form-server-error"}),h({listId:"error"})})).catch((e=>{console.error(e),h({listId:"error"})}))),()=>{var o;null===(o=t)||void 0===o||o.abort(),clearTimeout(e)}}),[k.apiKey,k.provider]),(0,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 n=!0,r=!1;null==a||a.forEach(((e,o)=>{let{form:l}=e;l===t.optionName&&(a[o].hasCaptcha!==t.hasCaptcha&&(r=!0),a[o].hasCaptcha=t.hasCaptcha,n=!1)})),n&&a.push({form:t.optionName,hasCaptcha:t.hasCaptcha}),(n||r)&&(new(nt().models.Settings)({themeisle_blocks_form_emails:a}).save(),S("info",(0,l.__)("Form preferences have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"}))}))}catch(e){console.warn(e.message)}return()=>{var t;return null===(t=e)||void 0===t?void 0:t.abort()}}),[t.hasCaptcha,t.optionName]),(0,c.useEffect)((()=>{let e=new AbortController;return t.hasCaptcha&&"init"===(null==b?void 0:b.captcha)&&(()=>{h({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?h({captcha:"done"}):(h({captcha:"missing"}),d(t.themeisle_google_captcha_api_site_key),u(t.themeisle_google_captcha_api_secret_key))})).catch((e=>{console.error(e),h({captcha:"error"})}))}catch(e){console.warn(e.message),h({captcha:"error"})}})(),()=>{var t;return null===(t=e)||void 0===t?void 0:t.abort()}}),[b.captcha,t.hasCaptcha]);const N={"--messageFontSize":void 0!==t.messageFontSize&&t.messageFontSize,"--inputFontSize":void 0!==t.inputFontSize&&t.inputFontSize,"--helpFontSize":void 0!==t.helpFontSize&&t.helpFontSize,"--inputColor":t.inputColor,"--padding":(A=t.inputPadding,A?A.top+" "+A.right+" "+A.bottom+" "+A.left:null),"--borderRadius":void 0!==t.inputBorderRadius&&t.inputBorderRadius+"px","--borderWidth":void 0!==t.inputBorderWidth&&t.inputBorderWidth+"px","--borderColor":t.inputBorderColor,"--labelColor":t.labelColor,"--inputWidth":void 0!==t.inputWidth&&t.inputWidth+"%","--submitColor":t.submitColor,"--requiredColor":t.inputRequiredColor,"--inputGap":void 0!==t.inputGap&&t.inputGap+"px","--inputsGap":void 0!==t.inputsGap&&t.inputsGap+"px","--labelFontSize":void 0!==t.labelFontSize&&t.labelFontSize+"px","--submitFontSize":void 0!==t.submitFontSize&&t.submitFontSize+"px","--helpLabelColor":t.helpLabelColor};var A;const[F,G]=(0,v.A_)();(0,c.useEffect)((()=>{G([`.otter-form__container .wp-block-button__link {\n\t\t\t\tbackground-color: ${t.submitBackgroundColor}\n\t\t\t}`,`.otter-form__container .wp-block-button__link:hover {\n\t\t\t\t${t.submitBackgroundColorHover&&`background-color: ${t.submitBackgroundColorHover}`}\n\t\t\t}`])}),[t.submitBackgroundColor,t.submitBackgroundColorHover]);const $=(0,i.useBlockProps)({id:t.id,style:N,className:F});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(pt.Provider,{value:{savedFormOptions:_,listIDOptions:C,setListIDOptions:w,saveFormEmailOptions:()=>{h({formOptions:"saving"}),(new(nt().models.Settings)).fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let a=!0,n=!1;null==o||o.forEach(((e,l)=>{let{form:r}=e;r===t.optionName&&(n=o[l].email!==k.emailTo||o[l].redirectLink!==k.redirectLink||o[l].emailSubject!==k.subject||o[l].submitMessage!==k.submitMessage||o[l].fromName!==k.fromName||o[l].cc!==k.cc||o[l].bcc!==k.bcc,o[l].email=k.emailTo,o[l].redirectLink=k.redirectLink,o[l].emailSubject=k.subject,o[l].submitMessage=k.submitMessage,o[l].fromName=k.fromName,o[l].cc=k.cc,o[l].bcc=k.bcc,a=!1)})),a&&o.push({form:t.optionName,email:k.emailTo,fromName:k.fromName,redirectLink:k.redirectLink,emailSubject:k.subject,submitMessage:k.submitMessage,cc:k.cc,bcc:k.bcc}),a||n?new(nt().models.Settings)({themeisle_blocks_form_emails:o}).save().then((e=>{const t=L(e.themeisle_blocks_form_emails);t?(H(t),f(t),h({formOptions:"done"}),S("info",(0,l.__)("Form options have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})):h({formOptions:"error"})})):h({formOptions:"done"})})).catch((()=>h({formOptions:"error"})))},formOptions:k,setFormOption:e=>{y((t=>({...t,...e})))},saveIntegration:()=>{var e;h({formIntegration:"saving"}),null===(e=new(nt().models.Settings))||void 0===e||e.fetch().done((e=>{const a=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let n=!0,r=!1;null==a||a.forEach(((e,o)=>{let{form:l}=e;var c,i,s,d,m;l===t.optionName&&(null!==(c=a[o])&&void 0!==c&&c.integration||(a[o].integration={}),r=(null===(i=a[o].integration)||void 0===i?void 0:i.provider)!==k.provider||(null===(s=a[o].integration)||void 0===s?void 0:s.listId)!==k.listId||(null===(d=a[o].integration)||void 0===d?void 0:d.action)!==k.action||(null===(m=a[o].integration)||void 0===m?void 0:m.apiKey)!==k.apiKey,n=!1,a[o].integration.provider=k.provider,a[o].integration.apiKey=k.apiKey,a[o].integration.listId=k.listId,a[o].integration.action=k.action)})),n&&a.push({form:t.optionName,integration:{provider:k.provider,apiKey:k.apiKey,listId:k.listId,action:k.action}}),n||r?new(nt().models.Settings)({themeisle_blocks_form_emails:a}).save().then((e=>{const t=L(e.themeisle_blocks_form_emails);var a;t&&(H(t),f(t),o({action:null==t||null===(a=t.integration)||void 0===a?void 0:a.action})),h({formIntegration:"done"}),r&&S("info",(0,l.__)("Integration details have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})})).catch((e=>{console.error(e),h({formIntegration:"error"})})):h({formIntegration:"done"})})).catch((()=>{h({formIntegration:"error"})}))},sendTestEmail:()=>{ct()({path:"otter/v1/form/editor",method:"POST",data:{handler:"testEmail",payload:{provider:"default",to:null==k?void 0:k.emailTo,site:window.location.href}}}).then((e=>{null!=e&&e.success?S("info",(0,l.__)("The test email has been send. Check your emails for confirmation.","otter-blocks"),{isDismissible:!0,type:"snackbar"}):S("error",(0,l.__)("An error has occurred: ","otter-blocks")+((null==e?void 0:e.error)||(0,l.__)("unknown","otter-blocks")),{isDismissible:!0,type:"snackbar"})})).catch((e=>{console.error(e),S("error",null==e?void 0:e.message,{isDismissible:!0,type:"snackbar"})}))},loadingState:b,testService:()=>{h({serviceTesting:"loading"}),ct()({path:"otter/v1/form/editor",method:"POST",data:{handler:"testEmail",payload:{formOption:t.optionName}}}).then((e=>{null!=e&&e.success?(S("info",(0,l.__)("A test email has been registered to your contact list. Check your provider for confirmation.","otter-blocks"),{isDismissible:!0,type:"snackbar"}),h({serviceTesting:"done"})):(S("error",(0,l.__)("An error has occurred: ","otter-blocks")+((null==e?void 0:e.error)||(0,l.__)("unknown","otter-blocks")+(0,l.__)(". Check your provider for confirmation.","otter-blocks")),{isDismissible:!0,type:"snackbar"}),h({serviceTesting:"error"}))})).catch((e=>{console.error(e),S("error",null==e?void 0:e.message,{isDismissible:!0,type:"snackbar"}),h({testService:"error"})}))},hasEmailField:R}},(0,c.createElement)(mt,{attributes:t,setAttributes:o}),(0,c.createElement)("div",$,M?(0,c.createElement)("form",{className:"otter-form__container",onSubmit:()=>!1},(0,c.createElement)(i.InnerBlocks,null),t.hasCaptcha&&"done"!==(null==b?void 0:b.captcha)&&(0,c.createElement)(ut,{className:"otter-form-captcha",loadingState:b,saveAPIKey:()=>{h({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?h({captcha:"done"}):h({captcha:"missing"}),u(""),d(""),S("info",(0,l.__)("Google reCaptcha API Keys have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"}).catch((e=>{console.error(e),h({captcha:"error"})}))})))||void 0===o||o.catch((e=>{console.error(e),h({captcha:"error"})}))}catch(e){console.warn(e.message),h({captcha:"error"})}},siteKey:s,secretKey:m,setSiteKey:d,setSecretKey:u}),"submit-subscribe"===t.action&&(0,c.createElement)("div",{className:"otter-form-consent"},(0,c.createElement)("input",{id:"o-consent",name:"o-consent",type:"checkbox"}),(0,c.createElement)("label",{htmlFor:"o-consent"},(0,l.__)("I have read and agreed the privacy statement.","otter-blocks"))),(0,c.createElement)("div",{className:g()("wp-block-button has-submit-msg",{right:"right"===t.submitStyle},{full:"full"===t.submitStyle})},(0,c.createElement)("button",{className:"wp-block-button__link",type:"submit",disabled:!0},t.submitLabel?t.submitLabel:(0,l.__)("Submit","otter-blocks")),(0,c.createElement)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"}},(0,c.createElement)("div",{className:"o-form-server-response o-success",style:{color:t.submitMessageColor}},k.submitMessage||(0,l.__)("Success","otter-blocks")),(0,c.createElement)("div",{className:"o-form-server-response o-error",style:{color:t.submitMessageErrorColor,margin:"0px"}},(0,l.__)("Error. Please try again.","otter-blocks"))))):(0,c.createElement)(i.__experimentalBlockVariationPicker,{icon:(0,I.get)(B,["icon","src"]),label:(0,I.get)(B,["title"]),variations:P,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z;e&&T(n,(0,a.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0}))))},save:e=>{let{attributes:t}=e;const o=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:lt,variations:[{name:"themeisle-blocks/form-contact",description:(0,l.__)("Contact form for clients","otter-blocks"),icon:r.contactIcon,title:(0,l.__)("Contact Form","otter-blocks"),innerBlocks:[["themeisle-blocks/form-input",{label:(0,l.__)("Name","otter-blocks"),type:"text",isRequired:!0}],["themeisle-blocks/form-input",{label:(0,l.__)("Email","otter-blocks"),type:"email",isRequired:!0}],["themeisle-blocks/form-textarea",{label:(0,l.__)("Message","otter-blocks")}],["core/paragraph",{content:(0,l.__)("You agree to receive email communication from us by submitting this form and understand that your contact information will be stored with us.","otter-blocks"),fontSize:"extra-small"}]]},{name:"themeisle-blocks/form-subscribe",description:(0,l.__)("Add the clients to your subscription list","otter-blocks"),icon:r.contactIcon,title:(0,l.__)("Subscribe Form","otter-blocks"),innerBlocks:[["themeisle-blocks/form-input",{label:(0,l.__)("Name","otter-blocks"),type:"text",isRequired:!0}],["themeisle-blocks/form-input",{label:(0,l.__)("Email","otter-blocks"),type:"email",isRequired:!0}],["core/paragraph",{content:(0,l.__)("You agree to receive email communication from us by submitting this form and understand that your contact information will be stored with us.","otter-blocks"),fontSize:"extra-small"}]]}]});var zt=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"}'),Pt=o(4586),Vt=e=>{let{api:t,error:o,isAPILoaded:a,isAPISaved:n,isSaving:r,changeAPI:i,saveAPIKey:d}=e;return a?n?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:r,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 Rt=e=>{let{label:t,value:o,options:l,onChange:a}=e;const n=`inspector-style-switcher-control-${(0,A.useInstanceId)(Rt)}`;return(0,c.createElement)(s.BaseControl,{id:n,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))))))},Lt=Rt,Ht=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))))))})))},Nt=e=>{let{value:t,onChange:o}=e;const a=(0,A.useInstanceId)(Nt);(0,c.useEffect)((()=>{window.wp.oldEditor.initialize(r.current.id,{tinymce:{classic_block_editor:!0,plugins:"lists,media,paste,tabfocus,wordpress,wpautoresize,wpeditimage,wpgallery,wplink,wpdialogs,wptextpattern,wpview",toolbar1:"formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker,wp_add_media"}});const e=window.tinymce.get(r.current.id);return e.on("change",(()=>o(e.getContent()))),()=>window.wp.oldEditor.remove(r.current.id)}),[]);const n=`inspector-textarea-control-${a}`,r=(0,c.useRef)(null);return(0,c.createElement)(s.BaseControl,{id:n,label:(0,l.__)("Description","otter-blocks")},(0,c.createElement)("textarea",{id:n,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:r}))};var It=Nt,At=e=>{let{marker:t,isOpen:o,isPlaceAPIAvailable:a,openMarker:n,removeMarker:r,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:()=>n(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:()=>r(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)(It,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>i(t.id,"description",e)})))},Ot=e=>{let{initialOpen:t,markers:o,isPlaceAPIAvailable:a,addMarker:n,removeMarker:r,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:r,changeMarkerProp:i})))),(0,c.createElement)(s.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:n},(0,l.__)("Add Marker","otter-blocks")))},Ft=e=>{let{attributes:t,setAttributes:o,map:a,changeStyle:n,isPlaceAPIAvailable:r,isMarkerOpen:d,setMarkerOpen:m,removeMarker:u,changeMarkerProp:b,addMarkerManual:p,api:g,isSaving:h,changeAPI:k,saveAPIKey:v}=e;const y=(0,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)(Lt,{value:t.style,options:[{label:(0,l.__)("Standard","otter-blocks"),value:"standard",image:window.themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:(0,l.__)("Silver","otter-blocks"),value:"silver",image:window.themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:(0,l.__)("Retro","otter-blocks"),value:"retro",image:window.themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:(0,l.__)("Dark","otter-blocks"),value:"dark",image:window.themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:(0,l.__)("Night","otter-blocks"),value:"night",image:window.themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:(0,l.__)("Aubergine","otter-blocks"),value:"aubergine",image:window.themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:n})),(0,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(),n=new window.google.maps.LatLng(t,l);a.setCenter(n),o({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:e=>{o({location:e.target.value})},disabled:!r}),!r&&(0,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),n=t.longitude,r=new window.google.maps.LatLng(l,n);a.setCenter(r)}}),(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,n=Number(e),r=new window.google.maps.LatLng(l,n);a.setCenter(r)}})),(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)(Ot,{markers:t.markers,removeMarker:u,changeMarkerProp:b,addMarker:p,isPlaceAPIAvailable:r,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"))))},Gt=e=>{let{marker:t,isAdvanced:o,isPlaceAPIAvailable:a,addMarker:n,close:r}=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:r,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)(It,{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:()=>n(u,p,h,v,_,C)},(0,l.__)("Add","otter-blocks")),(0,c.createElement)(s.Button,{isSecondary:!0,onClick:r},(0,l.__)("Cancel","otter-blocks"))))},$t=e=>{let{attributes:t,initMap:o,displayMap:a,isMapLoaded:n,selectMarker:r,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"}}),n&&(0,c.createElement)(s.Button,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:(0,l.__)("Add Button","otter-blocks"),onClick:r},(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:Zt}=zt;const Wt={to:[{type:"block",blocks:["themeisle-blocks/leaflet-map"],transform:e=>{const t=(0,I.omit)(e,["style","mapTypeControl","fullscreenControl","streetViewControl"]);return(0,a.createBlock)("themeisle-blocks/leaflet-map",{...t})}}]};var Ut=Wt;const{name:jt}=zt;(0,a.registerBlockType)(jt,{...zt,title:(0,l.__)("Google Maps","otter-blocks"),description:(0,l.__)("Display Google Maps on your website with Google Map block. Powered by Otter.","otter-blocks"),icon:r.mapIcon,keywords:["map","google","orbitfox"],transforms:Ut,edit:e=>{let{attributes:t,setAttributes:o,clientId:a,isSelected:n,toggleSelection:r}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(a,Zt);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&&(y(t.themeisle_google_map_block_api_key),f(!0),""!==t.themeisle_google_map_block_api_key&&(w(!0),Z(t.themeisle_google_map_block_api_key)))})):!_&&e&&(y(window.themeisleGutenberg.mapsAPI),f(!0),w(!0),Z(window.themeisleGutenberg.mapsAPI))})(),window.isMapLoaded=window.isMapLoaded||!1,window[`removeMarker_${a.substr(0,8)}`]=q,window.gm_authFailure=function(){w(!1),D(!0)},u.current=document.createElement("script"),u.current.type="text/javascript",u.current.async=!0,u.current.defer=!0,u.current.id="themeisle-google-map-api-loading",()=>{e=!1}}),[]),(0,c.useEffect)((()=>{!1!==C&&void 0!==window.google&&b.current.setOptions({mapTypeControl:!!n||t.mapTypeControl,zoomControl:!!n||t.zoomControl,fullscreenControl:!!n||t.fullscreenControl,streetViewControl:!!n||t.streetViewControl})}),[n]),(0,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,y]=(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),[A,O]=(0,c.useState)(!1),[F,G]=(0,c.useState)({}),[$,D]=(0,c.useState)(!1),Z=e=>{window.isMapLoaded||(window.isMapLoaded=!0,u.current.onload=()=>{document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",P(!0)},u.current.src=`https://maps.googleapis.com/maps/api/js?key=${e}&libraries=places&cache=${Math.random()}`,document.head.appendChild(u.current)),document.getElementById("themeisle-google-map-api")&&P(!0)},W=(e,t,o,n)=>{const r=`<div class="wp-block-themeisle-blocks-map-overview"><h6 class="wp-block-themeisle-blocks-map-overview-title">${o}</h6><div class="wp-block-themeisle-blocks-map-overview-content">${n?`<p>${n}</p>`:""}<a class="wp-block-themeisle-blocks-map-overview-delete" onclick="removeMarker_${a.substr(0,8)}( '${t}' )">${(0,l.__)("Delete Marker","otter-blocks")}</a></div></div>`,c=new window.google.maps.InfoWindow({content:r});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,Z(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":n})});return _&&C?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Ht,{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)(Ft,{attributes:t,setAttributes:o,map:b.current,changeStyle:X,isPlaceAPIAvailable:M,isMarkerOpen:V,setMarkerOpen:R,removeMarker:q,changeMarkerProp:j,addMarkerManual:()=>{const e=(0,Pt.Z)(),t=(0,l.__)("Custom Marker","otter-blocks"),o=b.current.getCenter(),a=o.lat(),n=o.lng();I(!0),O(!0),G({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:n})},api:k,isSaving:T,changeAPI:y,saveAPIKey:J}),N&&(0,c.createElement)(Gt,{marker:F,isAdvanced:A,isPlaceAPIAvailable:M,close:()=>I(!1),addMarker:(e,l,a,n,r,c)=>{const i=new window.google.maps.LatLng(r,c),s=(0,Pt.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:n,latitude:r,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,n),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:()=>{r(!1)},onResizeStop:(e,l,a,n)=>{o({height:parseInt(t.height+n.height,10)}),r(!0)}},(0,c.createElement)($t,{attributes:t,initMap:()=>{var e,l,a;const n=null!==(e=null===(l=(0,v.oz)())||void 0===l||null===(a=l.contentWindow)||void 0===a?void 0:a.document)&&void 0!==e?e:document;if(b.current=new window.google.maps.Map(n.getElementById(t.id),{center:{lat:Number(t.latitude)||41.4036299,lng:Number(t.longitude)||2.1743558000000576},gestureHandling:"cooperative",zoom:t.zoom,mapTypeId:t.type,styles: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 r={query:t.location,fields:["name","geometry"]};new window.google.maps.places.PlacesService(b.current).findPlaceFromQuery(r,((e,t)=>{"REQUEST_DENIED"===t&&B(!1)}))},displayMap:z,isMapLoaded:E,selectMarker:()=>{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,Pt.Z)(),o=(0,l.__)("Custom Marker","otter-blocks"),a=e.latLng.lat(),n=e.latLng.lng();I(!0),O(!1),G({id:t,location:"",title:o,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:n})}))},isSelectingMarker:L})))):(0,c.createElement)("div",Q,(0,c.createElement)(Vt,{api:k,error:$,isAPILoaded:_,isAPISaved:C,isSaving:T,changeAPI:e=>{y(e),D(!1)},saveAPIKey:J}))},save:()=>null});var qt=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"}'),Kt=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 Jt=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var 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)(c.Suspense,{fallback:(0,c.createElement)(s.Placeholder,null,(0,c.createElement)(s.Spinner,null))},(0,c.createElement)(Jt,{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:Qt}=qt;var Yt=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 eo=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var to=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)(eo,{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:oo}=Yt;const{name:lo}=Yt;(0,a.registerBlockType)(lo,{...Yt,title:(0,l.__)("Icon List Item","otter-blocks"),description:(0,l.__)("Display an item for the icon list. Powered by Otter.","otter-blocks"),icon:r.faIcon,keywords:["item","icon","list"],merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:e=>{var t,o;let{attributes:n,setAttributes:r,name:s,clientId:d,onReplace:m,onRemove:u,mergeBlocks:b}=e;const[p,h]=(0,c.useState)(!1),{hasParent:k,parentAttributes:y}=(0,O.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),l=t(o(d));return{hasParent:!!l,parentAttributes:l?l.attributes:{}}}),[]);(0,c.useEffect)((()=>{const e=(0,v.WX)(d,oo);return()=>e(n.id)}),[n.id]),(0,c.useEffect)((()=>{r({library:n.library||y.defaultLibrary,icon:n.icon||y.defaultIcon,iconPrefix:n.iconPrefix||y.defaultIconPrefix})}),[k,y,n]),(0,c.useEffect)((()=>{if("image"===n.library)try{const e=new URL(n.icon);"http:"!==(null==e?void 0:e.protocol)&&"https:"!==(null==e?void 0:e.protocol)||h(!0)}catch(e){h(!1)}}),[n.library,n.icon]);const _=ue.ZP.icons[n.icon],f=`${n.iconPrefix||y.defaultIconPrefix} fa-${n.icon||y.defaultIcon}`,C={"--contentColor":null!==(t=n.contentColor)&&void 0!==t?t:y.defaultContentColor,"--iconColor":null!==(o=n.iconColor)&&void 0!==o?o:y.defaultIconColor},w=(0,i.useBlockProps)({style:C});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(to,{attributes:n,setAttributes:r}),(0,c.createElement)("div",w,"image"===n.library&&p?(0,c.createElement)("img",{src:n.icon}):"themeisle-icons"===n.library&&n.icon&&void 0!==_?(0,c.createElement)(_,{className:g()({"wp-block-themeisle-blocks-icon-list-item-icon":!n.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":n.iconColor})}):(0,c.createElement)("i",{className:g()(f,{"wp-block-themeisle-blocks-icon-list-item-icon":!n.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":n.iconColor})}),(0,c.createElement)(i.RichText,{identifier:"content",tagName:"p",placeholder:(0,l.__)("Write your content…","otter-blocks"),className:g()({"wp-block-themeisle-blocks-icon-list-item-content":!n.contentColor},{"wp-block-themeisle-blocks-icon-list-item-content-custom":n.contentColor}),value:n.content,onChange:e=>{r({content:e})},onSplit:e=>e?(0,a.createBlock)(s,{...n,content:e}):(0,a.createBlock)(s),onMerge:b,onReplace:m,onRemove:u})))},save:e=>{let{attributes:t}=e;const o=`${t.iconPrefix} fa-${t.icon}`,l=ue.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:ao}=qt;(0,a.registerBlockType)(ao,{...qt,title:(0,l.__)("Icon List","otter-blocks"),description:(0,l.__)("Display an icon list in a beautiful layout. Powered by Otter.","otter-blocks"),icon:r.faIcon,keywords:["icon","list","items"],styles:[{name:"vertical",label:(0,l.__)("Vertical","otter-blocks"),isDefault:!0},{name:"horizontal",label:(0,l.__)("Horizontal","otter-blocks")}],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(l,Qt);return()=>e(t.id)}),[t.id]);const a={"--horizontalAlign":t.horizontalAlign,"--gap":t.gap&&`${t.gap}px`,"--fontSize":t.defaultSize&&`${t.defaultSize}px`},n=(0,i.useBlockProps)({id:t.id,style:a});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Kt,{attributes:t,setAttributes:o}),(0,c.createElement)(Xt,{attributes:t,setAttributes:o}),(0,c.createElement)("div",n,(0,c.createElement)(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 ro(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 co=e=>{let{value:t,onChange:o}=e;const a=(0,A.useInstanceId)(co);(0,c.useEffect)((()=>{wp.oldEditor.initialize(r.current.id,{tinymce:{classic_block_editor:!0,plugins:"lists,media,paste,tabfocus,wordpress,wpautoresize,wpeditimage,wpgallery,wplink,wpdialogs,wptextpattern,wpview",toolbar1:"formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker,wp_add_media"}});const e=window.tinymce.get(r.current.id);return e.on("change",(()=>o(e.getContent()))),()=>wp.oldEditor.remove(r.current.id)}),[]);const n=`inspector-textarea-control-${a}`,r=(0,c.useRef)(null);return(0,c.createElement)(s.BaseControl,{id:n,label:(0,l.__)("Description","otter-blocks")},(0,c.createElement)("textarea",{id:n,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:r}))};var io=co,so=e=>{let{marker:t,isOpen:o,openMarker:a,dispatch:n}=e;const[r,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:()=>n({type:po.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:r,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 ro(r);e?(n({type:po.UPDATE,ids:[t.id],updatedProps:{location:r,latitude:e.latitude,longitude:e.longitude}}),b(e.latitude),m(e.longitude),"LOCATION"===y.target&&_({})):_({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,c.createElement)(s.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:u,onChange:e=>{b(e),n({type:po.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),n({type:po.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),n({type:po.UPDATE,ids:[t.id],updatedProps:{title:e}})}}),(0,c.createElement)(io,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>{v(k),n({type:po.UPDATE,ids:[t.id],updatedProps:{description:e}})}})))},mo=e=>{let{markers:t,dispatch:o,markersInteraction:a}=e;const{openMarker:n,setOpenMarker:r}=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)(so,{key:e.id,marker:e,isOpen:n===e.id,openMarker:()=>r(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:po.ADD,marker:{id:(0,Pt.Z)()},dispatch:o})}},(0,l.__)("Add Marker","otter-blocks")))},uo=e=>{let{attributes:t,setAttributes:o,dispatch:a,markersInteraction:n}=e;const[r,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:r,onChange:d,onKeyDown:e=>((e,t)=>{e.key===t&&(async()=>{o({location:r});const e=await ro(r);e?(o({latitude:e.latitude.toString(),longitude:e.longitude.toString()}),"LOCATION"===m.target&&u({})):u({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,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)(mo,{markers:t.markers,dispatch:a,markersInteraction:n})))};const{attributes:bo}=no,po={ADD:"ADD",ADD_MANUAL:"ADD_MANUAL",REMOVE:"REMOVE",UPDATE:"UPDATE",INIT:"INIT"};const go={to:[{type:"block",blocks:["themeisle-blocks/google-map"],transform:e=>{const t=e;return(0,a.createBlock)("themeisle-blocks/google-map",{...t})}}]};var ho=go;const{name:ko}=no;(0,a.registerBlockType)(ko,{...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:r.mapIcon,keywords:["map","opeenstreetmap","location"],transforms:ho,edit:e=>{let{clientId:t,attributes:o,setAttributes:a,isSelected:n,toggleSelection:r}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(t,bo);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),y=(e,t)=>{if(window.L&&m&&t&&e){var o,a,n,r,c;null!==(o=e.id)&&void 0!==o||(e.id=(0,Pt.Z)()),null!==(a=e.latitude)&&void 0!==a||(e.latitude=m.getCenter().lat),null!==(n=e.longitude)&&void 0!==n||(e.longitude=m.getCenter().lng),null!==(r=e.title)&&void 0!==r||(e.title=(0,l.__)("Add a title","otter-blocks")),null!==(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:po.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 po.ADD:const o=y(t.marker,t.dispatch);return[...e,o];case po.ADD_MANUAL:if(b){const o=y(t.marker,t.dispatch);return[...e,o]}return e;case po.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 po.INIT:const a=t.markers.map((e=>y(e,t.dispatch)));return[...e,...a];case po.UPDATE:return e.map((e=>{const o=e.markerProps;return t.ids.includes(o.id)&&(e.markerProps=(0,I.merge)(e.markerProps,t.updatedProps)),e}));default:console.warn((0,l.__)("The action for the leaflet block do not have a defined action in marker's reducer: ","otter-blocks")+t.type)}return e}),[],(()=>[])),C=()=>{if(!d.current&&!window.L)return;let e=window.L;const t=(0,v.oz)();var n;if(Boolean(t)&&(e=null===(n=t.contentWindow)||void 0===n?void 0:n.L),!e)return;d.current.innerHTML="";const r=e.map(d.current,{gestureHandling:!0,gestureHandlingOptions:{text:{touch:(0,l.__)("Use two fingers to move the map","otter-blocks"),scroll:(0,l.__)("Use ctrl + scroll to zoom the map","otter-blocks"),scrollMac:(0,l.__)("Use ⌘ + scroll to zoom the map","otter-blocks")}}});e.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:["a","b","c"]}).addTo(r),r.on("zoom",(()=>{a({zoom:r.getZoom()})})),r.on("moveend",(()=>{const e=r.getCenter();a({latitude:e.lat.toString(),longitude:e.lng.toString()})})),r.on("click",(e=>{f({type:po.ADD_MANUAL,marker:{latitude:e.latlng.lat,longitude:e.latlng.lng},dispatch:f}),p(!1)})),e.Control.AddMarker=e.Control.extend({onAdd:()=>{const t=e.DomUtil.create("button","wp-block-themeisle-blocks-leaflet-map-marker-button"),o=e.DomUtil.create("span","dashicons dashicons-sticky",t);return e.DomEvent.on(t,"click",(t=>{e.DomEvent.stopPropagation(t),p(!b)})),t.title=(0,l.__)("Add marker on the map with a click","otter-blocks"),t.appendChild(o),t},onRemove:()=>{}}),e.control.addmarker=t=>new e.Control.AddMarker(t),e.control.addmarker({position:"bottomleft"}).addTo(r),u(r),f({type:po.INIT,markers:o.markers,dispatch:f})};(0,c.useEffect)((()=>{(0,v.oz)()?((0,v.oU)("#leaflet-js",(()=>{C()})),(0,v.oU)("#leaflet-gesture-handling-js",(()=>{}))):C()}),[]),(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"),n=document.createElement("div"),r=document.createElement("p"),c=document.createElement("button");return a.innerHTML=e.title,r.innerHTML=e.description,c.onclick=()=>t({type:po.REMOVE,ids:[e.id]}),c.innerHTML=(0,l.__)("Delete Marker","otter-blocks"),o.classList.add("wp-block-themeisle-blocks-map-overview"),n.classList.add("wp-block-themeisle-blocks-map-overview-content"),a.classList.add("wp-block-themeisle-blocks-map-overview-title"),c.classList.add("wp-block-themeisle-blocks-map-overview-delete"),o.appendChild(a),o.appendChild(n),o.appendChild(c),n.appendChild(r),o})(t,f))})),o.markers.length!==_.length&&m&&a({markers:_.map((e=>{let{markerProps:t}=e;return t}))}))}),[_,m,o.markers]);const w=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(uo,{attributes:o,setAttributes:a,dispatch:f,markersInteraction:{openMarker:h,setOpenMarker:k}}),(0,c.createElement)("div",w,(0,c.createElement)(s.ResizableBox,{size:{height:o.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{r(!1)},onResizeStop:(e,t,l,n)=>{a({height:parseInt(o.height+n.height,10)}),r(!0)},className:g()("wp-block-themeisle-blocks-leaflet-map-resizer",{"is-focused":n})},(0,c.createElement)("div",{id:o.id,ref:d,style:{width:"100%",height:o.height||400}}))))},save:()=>null});var vo=o(2553),yo=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"}'),_o=e=>{var t;let{className:o,file:a,onChange:n,attributes:r}=e;const[d,m]=(0,c.useState)((null===(t=r.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:vo.Z}),className:o},(0,c.createElement)("form",{onSubmit:e=>(e&&e.preventDefault(),n(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:vo.Z}),accept:["application/json"],allowedTypes:["application/json"],value:{...a},onSelectURL:n,onSelect:n})},fo=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})})))},Co=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"})))))},wo=e=>{let{attributes:t,playerRef:o}=e;(0,c.useEffect)((()=>{const e=(0,v.oz)();Boolean(e)?(0,v.oU)("#lottie-player-js",(()=>{!(0,I.isEmpty)(t.file)&&t.loop&&null!==o.current&&o.current.addEventListener("complete",l)})):!(0,I.isEmpty)(t.file)&&t.loop&&null!==o.current&&o.current.addEventListener("complete",l)}),[]);const l=()=>{o.current&&(o.current.setLooping(t.loop),o.current.play(),o.current.removeEventListener("complete",l))};return(0,c.createElement)("lottie-player",(0,H.Z)({id:t.id,ref:o,src:t.file.url,autoplay:!0,count:t.count,speed:t.speed,background:t.backgroundColor||t.backgroundGradient,direction:t.direction?-1:1,style:{width:!(!t.width||"%"===t.width.toString().slice(-1))&&`${t.width}px`,maxWidth:!(!t.width||"%"!==t.width.toString().slice(-1))&&`${t.width}`,height:"auto"},mode:"normal"},t.ariaLabel&&{"aria-label":t.ariaLabel}))};const{attributes:Eo}=yo;const{name:xo}=yo;(0,a.registerBlockType)(xo,{...yo,title:(0,l.__)("Lottie Animation","otter-blocks"),description:(0,l.__)("Add Lottie animations to your WordPress. Powered by Otter.","otter-blocks"),icon:vo.Z,keywords:["media","lottie","animation"],edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a}=e;const n=(0,c.useRef)(null),[r,s]=(0,c.useState)(!Boolean(t.file));(0,c.useEffect)((()=>{const e=(0,v.WX)(a,Eo);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{var e,o,a,r,c,i;l?(null===(e=n.current)||void 0===e||null===(o=e.play)||void 0===o||o.call(e),t.direction&&(null===(a=n.current)||void 0===a||null===(r=a.seek)||void 0===r||r.call(a,"100%"))):null===(c=n.current)||void 0===c||null===(i=c.stop)||void 0===i||i.call(c)}),[l]);const d=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(!(0,I.isEmpty)(t.file)&&r||!r)&&(0,c.createElement)(Co,{isEditing:r,setEditing:s}),!((0,I.isEmpty)(t.file)||r)&&(0,c.createElement)(fo,{attributes:t,setAttributes:o,playerRef:n}),(0,c.createElement)("div",d,((0,I.isEmpty)(t.file)||r)&&(0,c.createElement)(_o,{value:t.file,onChange:e=>{if(""===e||null===e)return;const t=(0,I.pick)(e,["id","url"]);(0,I.isEmpty)(t)&&(t.url=e),o({file:{...t}}),s(!1)},attributes:t}),!((0,I.isEmpty)(t.file)||r)&&(0,c.createElement)(wo,{attributes:t,isSelected:l,playerRef:n})))},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,H.Z)({trigger:t.trigger,background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o)):(0,c.createElement)("lottie-player",(0,H.Z)({autoplay:!0,loop:!0,count:t.direction?-1*t.count:t.count,speed:t.speed,direction:t.direction?-1:1,trigger:t.trigger,"data-loop":t.loop,mode:"normal",background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o))}});var To=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"}'),So=o(4932),Mo=e=>{let{setAttributes:t,hasError:o,setError:a,className:n}=e;const r=(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,So.Z)(d[k],r.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:n},(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 ce.UP:y(e);break;case ce.DOWN:_(e);break;case ce.TAB:Object.keys(g).length&&!e.shiftKey&&v(0);break;case ce.ENTER:(async e=>{t({slug:""}),u(!0),a(!1);const o=await ct()({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:r},Object.keys(g).map((e=>{const t=g[e];let o;return t.icons.svg&&(o=t.icons.svg),t.icons["2x"]&&(o=t.icons["2x"]),t.icons["1x"]&&(o=t.icons["1x"]),t.icons.default&&(o=t.icons.default),(0,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 ce.UP:y(e);break;case ce.DOWN:_(e);break;case ce.TAB:if(e.shiftKey){0!==k&&y(e);break}if(k===Object.keys(g).length-1)break;_(e);break;case ce.ENTER:f(t)}})(e,t)},(0,c.createElement)("img",{src:o}),(0,c.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,I.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"))))},Bo=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:zo}=To;(0,a.registerBlockType)(zo,{...To,title:(0,l.__)("Plugin Card","otter-blocks"),description:(0,l.__)("Plugin Card block lets you display plugins data in your blog posts. Powered by Otter.","otter-blocks"),icon:r.pluginsIcon,keywords:["plugin","card","orbitfox"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[l,a]=(0,c.useState)(!1),n=(0,i.useBlockProps)();return t.slug?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Bo,{setAttributes:o}),(0,c.createElement)("div",n,(0,c.createElement)(s.Disabled,null,(0,c.createElement)(m(),{block:"themeisle-blocks/plugin-cards",attributes:{...t}})))):(0,c.createElement)("div",n,(0,c.createElement)(Mo,{attributes:t,setAttributes:o,hasError:l,setError:a}))},save:()=>null});var Po=o(7682),Vo=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"}'),Ro=o(6755),Lo=o(7231),Ho=o(2694),No=o(9084);const Io=()=>(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)(No.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,Ho.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,Ho.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)(Io,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:Oo}=Vo;const{name:Fo}=Vo;(0,a.registerBlockType)(Fo,{...Vo,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:Po.Z,keywords:["popup","modal","lightbox"],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(a,Oo);return()=>e(t.id)}),[]);const[n,r]=(0,c.useState)(!1),d={"--minWidth":t.minWidth?t.minWidth+"px":"400px","--maxWidth":t.maxWidth?t.maxWidth+"px":void 0,"--backgroundColor":t.backgroundColor,"--closeColor":t.closeColor,"--overlayColor":t.overlayColor,"--overlayOpacity":t.overlayOpacity?t.overlayOpacity/100:1},m=(0,i.useBlockProps)({id:t.id,style:d});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Ao,{attributes:t,setAttributes:o}),(0,c.createElement)("div",m,(0,c.createElement)(s.Button,{isPrimary:!0,icon:Ro.Z,onClick:()=>r(!0)},(0,l.__)("Edit Popup","otter-blocks")),n&&(0,c.createElement)("div",{className:"otter-popup__modal_wrap"},(0,c.createElement)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay",onClick:()=>r(!1)}),(0,c.createElement)("div",{className:"otter-popup__modal_content"},t.showClose&&(0,c.createElement)("div",{className:"otter-popup__modal_header"},(0,c.createElement)(s.Button,{icon:Lo.Z,onClick:()=>r(!1)})),(0,c.createElement)("div",{className:"otter-popup__modal_body"},(0,c.createElement)(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 Go=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:$o}=Go;var Do=[{attributes:{...$o,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}],Zo=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})}))},Wo=o(454),Uo=o.n(Wo),jo=o(1286);const qo=(0,jo.W6)((()=>(0,c.createElement)("div",{className:"o-sortable-handle",tabIndex:"0"},(0,c.createElement)("span",null)))),Ko={image:"displayFeaturedImage",category:"displayCategory",title:"displayTitle",meta:"displayMeta",description:"displayDescription"},Jo=e=>{var t,o;let{attributes:a,setAttributes:n,template:r,disabled:i}=e;const[d,m]=(0,c.useState)(!1),u=null==r?void 0:r.startsWith("custom_"),b=null==a||null===(t=a.customMetas)||void 0===t||null===(o=t.filter((e=>{let{id:t}=e;return t===r})))||void 0===o?void 0:o.pop(),p={image:a.displayFeaturedImage,category:a.displayCategory,title:a.displayTitle,meta:a.displayMeta,description:a.displayDescription},h=(0,O.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),k=e=>{const t={...b,...e};n({customMetas:a.customMetas.map((e=>e.id===b.id?t:e))})},v=u?(0,Ho.applyFilters)("otter.postsBlock.panelLabel","",b):(0,I.startCase)((0,I.toLower)(r)),y=p[r]||(null==b?void 0:b.display),_=y?"visibility":"hidden";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
/* translators: %s Label */
|
3 |
let f=(0,l.sprintf)((0,l.__)("Display %s","otter-blocks"),v);return y&&(
|
4 |
/* translators: %s Label */
|
5 |
+
f=(0,l.sprintf)((0,l.__)("Hide %s","otter-blocks"),v)),(0,c.createElement)("div",{className:g()("o-sortable-item-area",`o-sortable-item-area-${r}`)},(0,c.createElement)("div",{className:g()("o-sortable-item",{disabled:i,hidden:!y,editable:y})},!i&&(0,c.createElement)(qo,null),(0,c.createElement)("div",{className:"o-sortable-label"},v),y&&"category"!==r&&(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=Ko[e]||e;n({[t]:!a[t]})})(r),m(!1)}})),y&&"category"!==r&&(0,c.createElement)("div",{className:g()("o-sortable-control-area",{opened:d&&y})},"image"===r&&(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,I.startCase)((0,I.toLower)(e)),value:e}))),onChange:e=>n({imageSize:e})}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Crop image to fit","otter-blocks"),checked:a.cropImage,onChange:e=>n({cropImage:e})}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display box shadow","otter-blocks"),checked:a.imageBoxShadow,onChange:e=>n({imageBoxShadow:e})}),(0,c.createElement)(s.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:a.borderRadius,onChange:e=>n({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=>n({imageWidth:e}),min:0,max:500,allowReset:!0})),"title"===r&&(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=>n({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?n({customTitleFontSize:e}):"Tablet"===h?n({customTitleFontSizeTablet:e}):"Mobile"===h&&n({customTitleFontSizeMobile:e})},min:0,max:50,allowReset:!0}))),"meta"===r&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display post date","otter-blocks"),checked:a.displayDate,onChange:e=>n({displayDate:e})}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display author","otter-blocks"),checked:a.displayAuthor,onChange:e=>n({displayAuthor:e})}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display comments","otter-blocks"),checked:a.displayComments,onChange:e=>n({displayComments:e})}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display category","otter-blocks"),checked:a.displayPostCategory,onChange:e=>n({displayPostCategory:e})})),"description"===r&&(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=>n({excerptLength:Number(e)})}),(0,c.createElement)(s.ToggleControl,{label:(0,l.__)("Display read more link","otter-blocks"),checked:a.displayReadMoreLink,onChange:e=>n({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?n({customDescriptionFontSize:e}):"Tablet"===h?n({customDescriptionFontSizeTablet:e}):"Mobile"===h&&n({customDescriptionFontSizeMobile:e})},min:0,max:50,allowReset:!0}))),(0,Ho.applyFilters)("otter.postsBlock.controls","",a,n,u,b,k)))},Xo=(0,jo.W8)((e=>{let{attributes:t,setAttributes:o,template:l,disabled:a}=e;return(0,c.createElement)(Jo,{attributes:t,setAttributes:o,template:l,disabled:a})})),Qo=(0,jo.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)(Xo,{key:`item-${e}`,index:t,attributes:o,setAttributes:l,template:e}))))})),Yo=()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)("p",null,(0,l.__)("Add custom fields for the posts, using the ACF plugin & Otter Pro.","otter-blocks")),(0,c.createElement)(s.Button,{variant:"secondary",isSecondary:!0,className:"o-conditions__add",disabled:!0,onClick:()=>{}},(0,l.__)("Add Custom Field","otter-blocks")),(0,c.createElement)("br",null),(0,c.createElement)(No.Z,{notice:(0,c.createElement)(s.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,l.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"}));var el=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)(Jo,{attributes:t,setAttributes:o,template:"image",disabled:!0}),(0,c.createElement)(Qo,{attributes:t,setAttributes:o,onSortEnd:e=>{let{oldIndex:l,newIndex:a}=e;const n=Uo()(t.template,l,a);o({template:n})},useDragHandle:!0,axis:"y",lockAxis:"y"}),(0,Ho.applyFilters)("otter.postsBlock.sortableContainer",(0,c.createElement)(Yo,null),t,o)))},tl=o(8286),ol=e=>{let{attributes:t,setAttributes:o,changeStyle:a,categoriesList:n}=e;const{slugs:r}=(0,O.useSelect)((e=>({slugs:e("otter-store").getPostsSlugs()})),[t.postTypes]),d=n.reduce(((e,t)=>({...e,[t.name]:t})),{}),m=t.categories?t.categories.map((e=>{const t=n.find((t=>t.id===Number(e.id)));return{id:e.id,name:(null==t?void 0:t.name)||(null==t?void 0:t.slug)||""}})):[],u="object"==typeof t.categories?1<=t.categories.length?t.categories[0].id:void 0:t.categories;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(s.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,c.createElement)(Lt,{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:r.map((e=>({label:(0,Pe.__)(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=n.find((t=>t.name===e));return t?{id:t.id,name:e}:void 0})).filter((e=>void 0!==e))):""!==e&&(t=[{id:e,name:n.find((t=>t.id===Number(e))).name}]),o({categories:t})}}),(0,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)(tl.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)(el,{attributes:t,setAttributes:o})))},ll=e=>{let{id:t,link:o,alt:l,size:a,imgStyle:n}=e;const{featuredImage:r,altText:i}=(0,O.useSelect)((e=>{const o=e("core").getMedia(t);return{featuredImage:o?0<Object.keys(o.media_details.sizes).length&&o.media_details.sizes[a]?o.media_details.sizes[a].source_url:o.source_url:null,altText:o&&o.alt_text?o.alt_text:l}}),[a,t]);return null===r?(0,c.createElement)(c.Fragment,null):(0,c.createElement)("div",{className:"o-posts-grid-post-image"},(0,c.createElement)("a",{href:o},r?(0,c.createElement)("img",{src:r,size:a,alt:i,"data-id":t,style:n}):(0,c.createElement)(s.Placeholder,null,(0,c.createElement)(s.Spinner,null))))};const al=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 n;return t.displayTitle?(0,c.createElement)(a,{key:o,className:"o-posts-grid-post-title"},(0,c.createElement)("a",{href:l.link},(0,Pe.Uo)(null===(n=l.title)||void 0===n?void 0:n.rendered))):""},rl=e=>{let{attributes:t,element:o,post:a,author:n,category:r}=e;return t.displayMeta&&(t.displayDate||t.displayAuthor)?(0,c.createElement)("p",{key:o,className:"o-posts-grid-post-meta"},t.displayDate&&
|
6 |
/* translators: %s Date posted */
|
7 |
+
(0,l.sprintf)((0,l.__)("on %s","otter-blocks"),(0,Pe.p6)(a.date)),t.displayAuthor&&void 0!==n&&
|
8 |
/* translators: %s Author of the post */
|
9 |
+
(0,l.sprintf)((0,l.__)(" by %s","otter-blocks"),n.name),t.displayComments&&(0,l.sprintf)(" - %1$s %2$s","0",(0,l.__)("comments","otter-blocks")),t.displayPostCategory&&void 0!==(null==r?void 0:r.name)&&(0,l.sprintf)((0,l.__)(" - %s","otter-blocks"),r.name)):""},cl=e=>{let{attributes:t,element:o,post:a}=e;var n;return 0<t.excerptLength&&t.displayDescription?(0,c.createElement)("div",{key:o,className:"o-posts-grid-post-description"},(0,c.createElement)("p",null,(null===(n=a.excerpt)||void 0===n?void 0:n.rendered)&&(0,Pe.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 il=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,n;const r=l&&0<(null==e||null===(o=e.categories)||void 0===o?void 0:o.length)?l.find((t=>t.id===e.categories[0])):void 0,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)(ll,{id:e.featured_media,link:e.link,alt:null===(n=e.title)||void 0===n?void 0:n.rendered,size:t.imageSize,imgStyle:{borderRadius:void 0!==t.borderRadius?t.borderRadius+"px":void 0}}),(0,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)(al,{key:o,attributes:t,element:o,category:r,categoriesList:l});case"title":return(0,c.createElement)(nl,{key:o,attributes:t,element:o,post:e});case"meta":return(0,c.createElement)(rl,{key:o,attributes:t,element:o,post:e,author:i,category:r});case"description":return(0,c.createElement)(cl,{key:o,attributes:t,element:o,post:e});default:return(0,Ho.applyFilters)("otter.postsBlock.templateLoop","",o,t)}})))))})))};const sl={posts:{slugs:[],usedSlugs:[]}};(0,O.registerGenericStore)("otter-store",(()=>{let e=()=>{};const t=sl,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 dl=e=>{var t;let{post:o,attributes:l,author:a,category:n}=e;return o?(0,c.createElement)("div",{className:g()("o-featured-post",{"has-shadow":l.imageBoxShadow})},l.displayFeaturedImage&&(0,c.createElement)(ll,{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)(rl,{attributes:l,element:e,post:o,author:a,category:n});case"description":return(0,c.createElement)(cl,{attributes:l,element:e,post:o});default:return(0,Ho.applyFilters)("otter.postsBlock.templateLoop","",e,l)}})))):""};const{attributes:ml}=Go;const{name:ul}=Go;(0,a.registerBlockType)(ul,{...Go,title:(0,l.__)("Posts","otter-blocks"),description:(0,l.__)("Display a list of your most recent posts in a beautiful layout. Powered by Otter.","otter-blocks"),icon:r.postsIcon,keywords:["posts","grid","news"],deprecated:Do,edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(a,ml);return()=>e(t.id)}),[t.id]);const[n,r]=(0,c.useState)([]),{posts:d,categoriesList:m,authors:u}=(0,O.useSelect)((e=>{const o=t.categories&&0<t.categories.length?t.categories.map((e=>e.id)):[],l=(0,I.pickBy)({categories:o,order:t.order,orderby:t.orderBy,per_page:t.postsToShow,offset:t.offset},(e=>!(0,I.isUndefined)(e))),a=t.postTypes;return{posts:0<a.length?a.map((t=>e("core").getEntityRecords("postType",t,l))).flat():e("core").getEntityRecords("postType","post",l),categoriesList:e("core").getEntityRecords("taxonomy","category",{per_page:100}),authors:e("core").getUsers({who:"authors"})}}),[t.categories,t.order,t.orderBy,t.postsToShow,t.offset,t.postTypes]),b=e=>{o({style:e})};(0,c.useEffect)((()=>{(async()=>{r(await(0,Pe.R3)())})()}),[]),(0,c.useEffect)((()=>{(0,O.dispatch)("otter-store").setPostsSlugs(n)}),[n]);const p={"--imgWidth":`${t.imageWidth}px`,"--imgBorderRadius":t.borderRadius&&`${t.borderRadius}px;`,"--vertAlign":(0,Pe.Vg)(t.verticalAlign),"--textAlign":t.textAlign},[g,h]=(0,v.A_)();(0,c.useEffect)((()=>{h([`{\n\t\t\t\t${t.customTitleFontSize&&`--titleTextSize: ${t.customTitleFontSize}px;`}\n\t\t\t\t${t.customDescriptionFontSize&&`--descriptionTextSize: ${t.customDescriptionFontSize}px;`}\n\t\t\t}`,`{\n\t\t\t\t${t.customTitleFontSizeTablet&&`--titleTextSize: ${t.customTitleFontSizeTablet}px;`}\n\t\t\t\t${t.customDescriptionFontSizeTablet&&`--descriptionTextSize: ${t.customDescriptionFontSizeTablet}px;`}\n\t\t\t}`,`{\n\t\t\t\t${t.customTitleFontSizeMobile&&`--titleTextSize: ${t.customTitleFontSizeMobile}px;`}\n\t\t\t\t${t.customDescriptionFontSizeMobile&&`--descriptionTextSize: ${t.customDescriptionFontSizeMobile}px;`}\n\t\t\t}`],["@media ( min-width: 960px )","@media ( min-width: 600px ) and ( max-width: 960px )","@media ( max-width: 600px )"])}),[t.customTitleFontSize,t.customTitleFontSize,t.customDescriptionFontSize,t.customDescriptionFontSize,t.customTitleFontSizeTablet,t.customTitleFontSizeTablet,t.customDescriptionFontSizeTablet,t.customDescriptionFontSizeTablet,t.customTitleFontSizeMobile,t.customTitleFontSizeMobile,t.customDescriptionFontSizeMobile,t.customDescriptionFontSizeMobile]);const k=(0,i.useBlockProps)({className:g});return d&&m&&u?0===d.length?(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",k,(0,c.createElement)(s.Placeholder,null,(0,l.__)("No Posts","otter-blocks"))),m&&t.offset||n.length?(0,c.createElement)(ol,{attributes:t,setAttributes:o,changeStyle:b,categoriesList:m}):null):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Ht,{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,c.createElement)(ol,{attributes:t,setAttributes:o,changeStyle:b,categoriesList:m,posts:d}),(0,c.createElement)(Zo,{attributes:t,setAttributes:o}),(0,c.createElement)("div",(0,H.Z)({},k,{style:p}),(0,c.createElement)(s.Disabled,null,t.enableFeaturedPost&&(0,c.createElement)(dl,{attributes:t,post:null==d?void 0:d[0],category:m[0],author:u[0]}),(0,c.createElement)(il,{attributes:t,posts:d,categoriesList:m,authors:u})))):(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",k,(0,c.createElement)(s.Placeholder,null,(0,c.createElement)(s.Spinner,null),(0,l.__)("Loading Posts","otter-blocks"))),m&&t.offset?(0,c.createElement)(ol,{attributes:t,setAttributes:o,changeStyle:b,categoriesList:m}):null)},save:()=>null});var bl=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:pl}=(0,O.select)("core/blocks"),gl=()=>{const e=setInterval((()=>{if(void 0===pl("themeisle-blocks/advanced-columns"))return gl();const t=(0,a.parse)(bl.kQ);(0,a.registerBlockVariation)("themeisle-blocks/advanced-columns",{name:"themeisle-blocks/section-pricing",title:(0,l.__)("Pricing Section","otter-blocks"),icon:r.pricingIcon,scope:"inserter",attributes:t[0].attributes,innerBlocks:t[0].innerBlocks}),clearInterval(e)}),2e3)};gl();var hl=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"}'),kl=e=>{let{attributes:t,setAttributes:o,onHeightChange:a,heightMode:n,setHeightMode:r}=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,I.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,I.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=>{n.isAutomatic&&(n.percentagePosition=e,r({...n})),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:vl}=hl;const yl={to:[{type:"block",blocks:["themeisle-blocks/circle-counter"],transform:e=>{const t=(0,I.omit)(e,["titleStyle","percentagePosition","height","borderRadius","barBackgroundColor","percentageColor"]);return(0,a.createBlock)("themeisle-blocks/circle-counter",{...t,progressColor:e.barBackgroundColor,height:(0,I.clamp)(4*e.height,0,240),titleStyle:"default"})}}]};var _l=yl;const{name:fl}=hl;(0,a.registerBlockType)(fl,{...hl,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:_l,edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a,toggleSelection:n}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(a,vl);return()=>e(t.id)}),[t.id]);const r=(0,c.useRef)(null),[d,m]=(0,c.useState)(!1),[u,b]=(0,c.useState)({isAutomatic:!1,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),p=(0,c.useRef)(null);(0,c.useEffect)((()=>{let e=null;if(p.current)return m(!1),e=setTimeout((()=>m(!0)),1e3*t.duration),p.current.animate({width:`${t.percentage}%`},{duration:1e3*t.duration,easing:"linear",fill:"forwards"}),()=>{clearTimeout(e)}}),[t.percentage,t.duration]);const h={"--titleColor":t.titleColor,"--percentageColor":t.percentageColor,"--percentageColorOuter":t.percentageColor,"--percentageColorTooltip":t.percentageColor,"--percentageColorAppend":t.percentageColor,"--backgroundColor":t.backgroundColor,"--borderRadius":void 0!==t.borderRadius&&t.borderRadius+"px","--height":void 0!==t.height&&t.height+"px","--barBackground":t.barBackgroundColor},k=e=>{30>e?(u.isAutomatic||b({isAutomatic:!0,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),o({height:e,titleStyle:"outer",percentagePosition:"append"===t.percentagePosition||"default"===t.percentagePosition?"outer":t.percentagePosition})):(u.isAutomatic&&b({isAutomatic:!1}),o({titleStyle:u.isAutomatic?u.titleStyle:t.titleStyle,percentagePosition:u.isAutomatic?u.percentagePosition:t.percentagePosition,height:e}))},y=(0,i.useBlockProps)({id:t.id,className:g()({"has-tooltip":"tooltip"===t.percentagePosition}),style:h});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(kl,{attributes:t,setAttributes:o,onHeightChange:k,heightMode:u,setHeightMode:b}),(0,c.createElement)("div",y,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,c.createElement)(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&&d&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__outer__value"},`${t.percentage}%`)),(0,c.createElement)(s.ResizableBox,{size:{height:t.height},minHeight:5,maxHeight:100,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:l,onResizeStop:(e,o,l,a)=>{k(parseInt(t.height+a.height,10)),n(!0)},onResizeStart:()=>{n(!1)}},(0,c.createElement)("div",{ref:r,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)(i.RichText,{tagName:"span",allowedFormats:[],value:t.title,onChange:e=>o({title:e})})),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar show",ref:p},"tooltip"===t.percentagePosition&&d&&(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip show"},`${t.percentage}%`,(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&d&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append show"},`${t.percentage}%`)),"default"===t.percentagePosition&&d&&(0,c.createElement)("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 Cl=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"}'),wl=o(1463),El=o.n(wl);const xl=e=>{let{title:t,remove:o,children:a}=e;const[n,r]=(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:()=>r(!n)},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})),n&&(0,c.createElement)("div",{className:"o-review__inspector_panel_item__content"},a))};var Tl=e=>{var t,o,a,n,r;let{attributes:d,setAttributes:m,getValue:u,productAttributes:b}=e;const p=(e,t)=>{const o=[...d.features];o[e]={...o[e],...t},m({features:o})},g=(e,t)=>{const o=[...d.links];o[e]={...o[e],...t},m({links:o})},k=e=>{let t=[...d.links];t=t.filter(((t,o)=>o!==e)),m({links:t})};return(0,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,I.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)(xl,{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)(xl,{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)(xl,{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===(n=b.links)||void 0===n?void 0:n.map(((e,t)=>(0,c.createElement)(xl,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>k(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===(r=b.links)||void 0===r?void 0:r.length))&&(0,c.createElement)(c.Fragment,null,0<d.links.length&&d.links.map(((e,t)=>(0,c.createElement)(xl,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>k(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)(h.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)(h.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)(h.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)(h.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)(No.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:Sl}=Cl;const{name:Ml,attributes:Bl}=Cl;window.themeisleGutenberg.defaultReviewAttributes=Bl,(0,a.registerBlockType)(Ml,{...Cl,title:(0,l.__)("Product Review","otter-blocks"),description:(0,l.__)("Turn your posts into smart reviews with ratings and generate leads with a performing review block. Powered by Otter.","otter-blocks"),icon:r.faIcon,keywords:["product","review","stars"],styles:[{name:"default",label:(0,l.__)("Default","otter-blocks"),isDefault:!0},{name:"single-column",label:(0,l.__)("Single Column","otter-blocks")}],edit:e=>{var t,o,a,n,d;let{name:m,attributes:u,setAttributes:b,clientId:p,isSelected:h,status:k="isInactive",productAttributes:y={}}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(p,Sl);return()=>e(u.id)}),[u.id]);const _=e=>(0,v.Ih)({name:m,field:e,defaultAttributes:Sl,attributes:u}),f=(u.features.reduce(((e,t)=>e+t.rating),0)/u.features.length).toFixed(1),C=[];for(let e=0;10>e;e++)C.push((0,c.createElement)(r.StarFilled,{key:e,className:g()({low:3>=Math.round(f)&&e<Math.round(f),medium:3<Math.round(f)&&8>Math.round(f)&&e<Math.round(f),high:7<Math.round(f)&&10>=Math.round(f)&&e<Math.round(f)})}));const w={"--backgroundColor":_("backgroundColor"),"--primaryColor":_("primaryColor"),"--textColor":_("textColor"),"--buttonTextColor":_("buttonTextColor")},E="object"==typeof k&&null!==k&&k.isError||"isLoading"===k;let x=(0,i.useBlockProps)({id:u.id,className:E&&"is-placeholder",style:w});return"isLoading"===k?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Tl,{attributes:u,setAttributes:b,getValue:_,productAttributes:y}),(0,c.createElement)("div",x,(0,c.createElement)(s.Placeholder,null,(0,c.createElement)(s.Spinner,null)))):"object"==typeof k&&null!==k&&k.isError?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Tl,{attributes:u,setAttributes:b,getValue:_,productAttributes:y}),(0,c.createElement)("div",x,(0,c.createElement)(s.Placeholder,{instructions:k.message}))):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Tl,{attributes:u,setAttributes:b,getValue:_,productAttributes:y}),(0,c.createElement)("div",x,(0,c.createElement)("div",{className:"o-review__header"},null!=y&&y.title?(0,c.createElement)(i.RichText.Content,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:null==y?void 0:y.title,tagName:"h3"}):(0,c.createElement)(i.RichText,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:u.title,onChange:e=>b({title:e}),tagName:"h3"}),(0,c.createElement)("div",{className:"o-review__header_meta"},(0,c.createElement)("div",{className:"o-review__header_ratings"},C,(0,c.createElement)("span",null,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
/** translators: %s Rating score. */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|