Version Description
Download this release
Release Info
Developer | themeisle |
Plugin | Gutenberg Blocks and Template Library by Otter |
Version | 2.0.4 |
Comparing to | |
See all releases |
Code changes from version 2.0.3 to 2.0.4
- CHANGELOG.md +6 -0
- assets/glide/glide.min.js +3 -3
- build/animation/blocks/blocks/flip/block.json +2 -2
- build/animation/index.asset.php +1 -1
- build/animation/index.js +1 -1
- build/blocks/blocks.asset.php +1 -1
- build/blocks/blocks.js +44 -45
CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
##### [Version 2.0.3](https://github.com/Codeinwp/otter-blocks/compare/v2.0.2...v2.0.3) (2022-05-12)
|
2 |
|
3 |
- Add Otter Pro support
|
1 |
+
##### [Version 2.0.4](https://github.com/Codeinwp/otter-blocks/compare/v2.0.3...v2.0.4) (2022-05-16)
|
2 |
+
|
3 |
+
- Fix slider breaks and throws errors when swiping on desktop
|
4 |
+
- Flip Card border error
|
5 |
+
- Otter Pro related UI changes
|
6 |
+
|
7 |
##### [Version 2.0.3](https://github.com/Codeinwp/otter-blocks/compare/v2.0.2...v2.0.3) (2022-05-12)
|
8 |
|
9 |
- Add Otter Pro support
|
assets/glide/glide.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/*!
|
2 |
-
* Glide.js v3.
|
3 |
-
* (c) 2013-
|
4 |
* Released under the MIT License.
|
5 |
*/
|
6 |
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Glide=e()}(this,function(){"use strict";var n={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"|",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t=function(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t};function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function y(t){return parseInt(t)}function o(t){return"string"==typeof t}function u(t){var e=void 0===t?"undefined":r(t);return"function"===e||"object"===e&&!!t}function c(t){return"function"==typeof t}function l(t){return void 0===t}function f(t){return t.constructor===Array}function d(t,e,n){Object.defineProperty(t,e,n)}function h(t,e){var n=a({},t,e);return e.hasOwnProperty("classes")&&(n.classes=a({},t.classes,e.classes),e.classes.hasOwnProperty("direction")&&(n.classes.direction=a({},t.classes.direction,e.classes.direction)),e.classes.hasOwnProperty("type")&&(n.classes.type=a({},t.classes.type,e.classes.type)),e.classes.hasOwnProperty("slide")&&(n.classes.slide=a({},t.classes.slide,e.classes.slide)),e.classes.hasOwnProperty("arrow")&&(n.classes.arrow=a({},t.classes.arrow,e.classes.arrow)),e.classes.hasOwnProperty("nav")&&(n.classes.nav=a({},t.classes.nav,e.classes.nav))),e.hasOwnProperty("breakpoints")&&(n.breakpoints=a({},t.breakpoints,e.breakpoints)),n}var v=(t(e,[{key:"on",value:function(t,e){if(f(t))for(var n=0;n<t.length;n++)this.on(t[n],e);this.hop.call(this.events,t)||(this.events[t]=[]);var i=this.events[t].push(e)-1;return{remove:function(){delete this.events[t][i]}}}},{key:"emit",value:function(t,e){if(f(t))for(var n=0;n<t.length;n++)this.emit(t[n],e);this.hop.call(this.events,t)&&this.events[t].forEach(function(t){t(e||{})})}}]),e);function e(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this.events=t,this.hop=t.hasOwnProperty}var p=(t(m,[{key:"mount",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};return this._e.emit("mount.before"),u(e)&&(this._c=function(t,e,n){var i={};for(var r in e)c(e[r])&&(i[r]=e[r](t,i,n));for(var s in i)c(i[s].mount)&&i[s].mount();return i}(this,e,this._e)),this._e.emit("mount.after"),this}},{key:"mutate",value:function(t){var e=0<arguments.length&&void 0!==t?t:[];return f(e)&&(this._t=e),this}},{key:"update",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};return this.settings=h(this.settings,e),e.hasOwnProperty("startAt")&&(this.index=e.startAt),this._e.emit("update"),this}},{key:"go",value:function(t){return this._c.Run.make(t),this}},{key:"move",value:function(t){return this._c.Transition.disable(),this._c.Move.make(t),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(t){var e=0<arguments.length&&void 0!==t&&t;return e&&(this.settings.autoplay=e),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(t,e){return this._e.on(t,e),this}},{key:"isType",value:function(t){return this.settings.type===t}},{key:"settings",get:function(){return this._o},set:function(t){u(t)&&(this._o=t)}},{key:"index",get:function(){return this._i},set:function(t){this._i=y(t)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(t){this._d=!!t}}]),m);function m(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};i(this,m),this._c={},this._t=[],this._e=new v,this.disabled=!1,this.selector=t,this.settings=h(n,e),this.index=this.settings.startAt}function g(){return(new Date).getTime()}function b(n,i,r){var s=void 0,o=void 0,u=void 0,a=void 0,c=0;r=r||{};function l(){c=!1===r.leading?0:g(),s=null,a=n.apply(o,u),s||(o=u=null)}function t(){var t=g();c||!1!==r.leading||(c=t);var e=i-(t-c);return o=this,u=arguments,e<=0||i<e?(s&&(clearTimeout(s),s=null),c=t,a=n.apply(o,u),s||(o=u=null)):s||!1===r.trailing||(s=setTimeout(l,e)),a}return t.cancel=function(){clearTimeout(s),c=0,s=o=u=null},t}var w={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function _(t){if(t&&t.parentNode){for(var e=t.parentNode.firstChild,n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}return[]}function k(t){return!!(t&&t instanceof window.HTMLElement)}var S='[data-glide-el="track"]';var H=(t(T,[{key:"on",value:function(t,e,n,i){var r=3<arguments.length&&void 0!==i&&i;o(t)&&(t=[t]);for(var s=0;s<t.length;s++)this.listeners[t[s]]=n,e.addEventListener(t[s],this.listeners[t[s]],r)}},{key:"off",value:function(t,e,n){var i=2<arguments.length&&void 0!==n&&n;o(t)&&(t=[t]);for(var r=0;r<t.length;r++)e.removeEventListener(t[r],this.listeners[t[r]],i)}},{key:"destroy",value:function(){delete this.listeners}}]),T);function T(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};i(this,T),this.listeners=t}var O=["ltr","rtl"],x={">":"<","<":">","=":"="};function A(t,e){return{modify:function(t){return e.Direction.is("rtl")?-t:t}}}function P(i,r,s){var o=[function(t,n){return{modify:function(t){var e=Math.floor(t/n.Sizes.slideWidth);return t+n.Gaps.value*e}}},function(t,e){return{modify:function(t){return t+e.Clones.grow/2}}},function(n,i){return{modify:function(t){if(0<=n.settings.focusAt){var e=i.Peek.value;return u(e)?t-e.before:t-e}return t}}},function(s,o){return{modify:function(t){var e=o.Gaps.value,n=o.Sizes.width,i=s.settings.focusAt,r=o.Sizes.slideWidth;return"center"===i?t-(n/2-r/2):t-r*i-e*i}}}].concat(i._t,[A]);return{mutate:function(t){for(var e=0;e<o.length;e++){var n=o[e];c(n)&&c(n().modify)&&(t=n(i,r,s).modify(t))}return t}}}var M=!1;try{var z=Object.defineProperty({},"passive",{get:function(){M=!0}});window.addEventListener("testPassive",null,z),window.removeEventListener("testPassive",null,z)}catch(t){}var C=M,L=["touchstart","mousedown"],R=["touchmove","mousemove"],D=["touchend","touchcancel","mouseup","mouseleave"],E=["mousedown","mousemove","mouseup","mouseleave"];function j(t){return u(t)?function(n){return Object.keys(n).sort().reduce(function(t,e){return t[e]=n[e],t[e],t},{})}(t):{}}var W={Html:function(e,t){var n={mount:function(){this.root=e.selector,this.track=this.root.querySelector(S),this.slides=Array.prototype.slice.call(this.wrapper.children).filter(function(t){return!t.classList.contains(e.settings.classes.slide.clone)})}};return d(n,"root",{get:function(){return n._r},set:function(t){o(t)&&(t=document.querySelector(t)),k(t)&&(n._r=t)}}),d(n,"track",{get:function(){return n._t},set:function(t){k(t)&&(n._t=t)}}),d(n,"wrapper",{get:function(){return n.track.children[0]}}),n},Translate:function(i,r,n){var s={set:function(t){var e=P(i,r).mutate(t);r.Html.wrapper.style.transform="translate3d("+-1*e+"px, 0px, 0px)"},remove:function(){r.Html.wrapper.style.transform=""},getStartIndex:function(){var t=r.Sizes.length,e=i.index,n=i.settings.perView;return r.Run.isOffset(">")||r.Run.isOffset("|>")?t+(e-n):(e+n)%t},getTravelDistance:function(){var t=r.Sizes.slideWidth*i.settings.perView;return r.Run.isOffset(">")||r.Run.isOffset("|>")?-1*t:t}};return n.on("move",function(t){if(!i.isType("carousel")||!r.Run.isOffset())return s.set(t.movement);r.Transition.after(function(){n.emit("translate.jump"),s.set(r.Sizes.slideWidth*i.index)});var e=r.Sizes.slideWidth*r.Translate.getStartIndex();return s.set(e-r.Translate.getTravelDistance())}),n.on("destroy",function(){s.remove()}),s},Transition:function(n,i,t){var r=!1,e={compose:function(t){var e=n.settings;return r?t+" 0ms "+e.animationTimingFunc:t+" "+this.duration+"ms "+e.animationTimingFunc},set:function(t){var e=0<arguments.length&&void 0!==t?t:"transform";i.Html.wrapper.style.transition=this.compose(e)},remove:function(){i.Html.wrapper.style.transition=""},after:function(t){setTimeout(function(){t()},this.duration)},enable:function(){r=!1,this.set()},disable:function(){r=!0,this.set()}};return d(e,"duration",{get:function(){var t=n.settings;return n.isType("slider")&&i.Run.offset?t.rewindDuration:t.animationDuration}}),t.on("move",function(){e.set()}),t.on(["build.before","resize","translate.jump"],function(){e.disable()}),t.on("run",function(){e.enable()}),t.on("destroy",function(){e.remove()}),e},Direction:function(t,e,n){var i={mount:function(){this.value=t.settings.direction},resolve:function(t){var e=t.slice(0,1);return this.is("rtl")?t.split(e).join(x[e]):t},is:function(t){return this.value===t},addClass:function(){e.Html.root.classList.add(t.settings.classes.direction[this.value])},removeClass:function(){e.Html.root.classList.remove(t.settings.classes.direction[this.value])}};return d(i,"value",{get:function(){return i._v},set:function(t){-1<O.indexOf(t)&&(i._v=t)}}),n.on(["destroy","update"],function(){i.removeClass()}),n.on("update",function(){i.mount()}),n.on(["build.before","update"],function(){i.addClass()}),i},Peek:function(n,t,e){var i={mount:function(){this.value=n.settings.peek}};return d(i,"value",{get:function(){return i._v},set:function(t){u(t)?(t.before=y(t.before),t.after=y(t.after)):t=y(t),i._v=t}}),d(i,"reductor",{get:function(){var t=i.value,e=n.settings.perView;return u(t)?t.before/e+t.after/e:2*t/e}}),e.on(["resize","update"],function(){i.mount()}),i},Sizes:function(t,i,e){var n={setupSlides:function(){for(var t=this.slideWidth+"px",e=i.Html.slides,n=0;n<e.length;n++)e[n].style.width=t},setupWrapper:function(){i.Html.wrapper.style.width=this.wrapperSize+"px"},remove:function(){for(var t=i.Html.slides,e=0;e<t.length;e++)t[e].style.width="";i.Html.wrapper.style.width=""}};return d(n,"length",{get:function(){return i.Html.slides.length}}),d(n,"width",{get:function(){return i.Html.root.offsetWidth}}),d(n,"wrapperSize",{get:function(){return n.slideWidth*n.length+i.Gaps.grow+i.Clones.grow}}),d(n,"slideWidth",{get:function(){return n.width/t.settings.perView-i.Peek.reductor-i.Gaps.reductor}}),e.on(["build.before","resize","update"],function(){n.setupSlides(),n.setupWrapper()}),e.on("destroy",function(){n.remove()}),n},Gaps:function(e,s,t){var n={apply:function(t){for(var e=0,n=t.length;e<n;e++){var i=t[e].style,r=s.Direction.value;i[w[r][0]]=0!==e?this.value/2+"px":"",e!==t.length-1?i[w[r][1]]=this.value/2+"px":i[w[r][1]]=""}},remove:function(t){for(var e=0,n=t.length;e<n;e++){var i=t[e].style;i.marginLeft="",i.marginRight=""}}};return d(n,"value",{get:function(){return y(e.settings.gap)}}),d(n,"grow",{get:function(){return n.value*s.Sizes.length}}),d(n,"reductor",{get:function(){var t=e.settings.perView;return n.value*(t-1)/t}}),t.on(["build.after","update"],b(function(){n.apply(s.Html.wrapper.children)},30)),t.on("destroy",function(){n.remove(s.Html.wrapper.children)}),n},Move:function(t,i,r){var e={mount:function(){this._o=0},make:function(t){var e=this,n=0<arguments.length&&void 0!==t?t:0;this.offset=n,r.emit("move",{movement:this.value}),i.Transition.after(function(){r.emit("move.after",{movement:e.value})})}};return d(e,"offset",{get:function(){return e._o},set:function(t){e._o=l(t)?0:y(t)}}),d(e,"translate",{get:function(){return i.Sizes.slideWidth*t.index}}),d(e,"value",{get:function(){var t=this.offset,e=this.translate;return i.Direction.is("rtl")?e+t:e-t}}),r.on(["build.before","run"],function(){e.make()}),e},Clones:function(v,p,t){var e={mount:function(){this.items=[],v.isType("carousel")&&(this.items=this.collect())},collect:function(t){for(var e=0<arguments.length&&void 0!==t?t:[],n=p.Html.slides,i=v.settings,r=i.perView,s=i.classes,o=r+ +!!v.settings.peek+Math.round(r/2),u=n.slice(0,o).reverse(),a=n.slice(-1*o),c=0;c<Math.max(1,Math.floor(r/n.length));c++){for(var l=0;l<u.length;l++){var f=u[l].cloneNode(!0);f.classList.add(s.slide.clone),e.push(f)}for(var d=0;d<a.length;d++){var h=a[d].cloneNode(!0);h.classList.add(s.slide.clone),e.unshift(h)}}return e},append:function(){for(var t=this.items,e=p.Html,n=e.wrapper,i=e.slides,r=Math.floor(t.length/2),s=t.slice(0,r).reverse(),o=t.slice(-1*r).reverse(),u=p.Sizes.slideWidth+"px",a=0;a<o.length;a++)n.appendChild(o[a]);for(var c=0;c<s.length;c++)n.insertBefore(s[c],i[0]);for(var l=0;l<t.length;l++)t[l].style.width=u},remove:function(){for(var t=this.items,e=0;e<t.length;e++)p.Html.wrapper.removeChild(t[e])}};return d(e,"grow",{get:function(){return(p.Sizes.slideWidth+p.Gaps.value)*e.items.length}}),t.on("update",function(){e.remove(),e.mount(),e.append()}),t.on("build.before",function(){v.isType("carousel")&&e.append()}),t.on("destroy",function(){e.remove()}),e},Resize:function(t,e,n){var i=new H,r={mount:function(){this.bind()},bind:function(){i.on("resize",window,b(function(){n.emit("resize")},t.settings.throttle))},unbind:function(){i.off("resize",window)}};return n.on("destroy",function(){r.unbind(),i.destroy()}),r},Build:function(i,r,t){var e={mount:function(){t.emit("build.before"),this.typeClass(),this.activeClass(),t.emit("build.after")},typeClass:function(){r.Html.root.classList.add(i.settings.classes.type[i.settings.type])},activeClass:function(){var e=i.settings.classes,t=r.Html.slides[i.index];t&&(t.classList.add(e.slide.active),_(t).forEach(function(t){t.classList.remove(e.slide.active)}))},removeClasses:function(){var t=i.settings.classes,e=t.type,n=t.slide;r.Html.root.classList.remove(e[i.settings.type]),r.Html.slides.forEach(function(t){t.classList.remove(n.active)})}};return t.on(["destroy","update"],function(){e.removeClasses()}),t.on(["resize","update"],function(){e.mount()}),t.on("move.after",function(){e.activeClass()}),e},Run:function(u,n,i){var a={mount:function(){this._o=!1},make:function(t){var e=this;u.disabled||(u.settings.waitForTransition&&u.disable(),this.move=t,i.emit("run.before",this.move),this.calculate(),i.emit("run",this.move),n.Transition.after(function(){e.isStart()&&i.emit("run.start",e.move),e.isEnd()&&i.emit("run.end",e.move),e.isOffset()&&(e._o=!1,i.emit("run.offset",e.move)),i.emit("run.after",e.move),u.enable()}))},calculate:function(){var t=this.move,e=this.length,n=t.steps,i=t.direction,r=1;if("="!==i)if(">"!==i||">"!==n)if("<"!==i||"<"!==n){if("|"===i&&(r=u.settings.perView||1),">"===i||"|"===i&&">"===n){var s=function(t){var e=u.index;if(u.isType("carousel"))return e+t;return e+(t-e%t)}(r);return e<s&&(this._o=!0),void(u.index=function(t,e){var n=a.length;if(t<=n)return t;if(u.isType("carousel"))return t-(n+1);if(u.settings.rewind)return a.isBound()&&!a.isEnd()?n:0;if(a.isBound())return n;return Math.floor(n/e)*e}(s,r))}if("<"===i||"|"===i&&"<"===n){var o=function(t){var e=u.index;if(u.isType("carousel"))return e-t;return(Math.ceil(e/t)-1)*t}(r);return o<0&&(this._o=!0),void(u.index=function(t,e){var n=a.length;if(0<=t)return t;if(u.isType("carousel"))return t+(n+1);if(u.settings.rewind)return a.isBound()&&a.isStart()?n:Math.floor(n/e)*e;return 0}(o,r))}}else u.index=0;else u.index=e;else u.index=n},isStart:function(){return u.index<=0},isEnd:function(){return u.index>=this.length},isOffset:function(t){var e=0<arguments.length&&void 0!==t?t:void 0;return e?!!this._o&&("|>"===e?"|"===this.move.direction&&">"===this.move.steps:"|<"===e?"|"===this.move.direction&&"<"===this.move.steps:this.move.direction===e):this._o},isBound:function(){return u.isType("slider")&&"center"!==u.settings.focusAt&&u.settings.bound}};return d(a,"move",{get:function(){return this._m},set:function(t){var e=t.substr(1);this._m={direction:t.substr(0,1),steps:e?y(e)?y(e):e:0}}}),d(a,"length",{get:function(){var t=u.settings,e=n.Html.slides.length;return this.isBound()?e-1-(y(t.perView)-1)+y(t.focusAt):e-1}}),d(a,"offset",{get:function(){return this._o}}),a},Swipe:function(d,h,v){var r=new H,p=0,m=0,g=0,n=!1,s=!!C&&{passive:!0},t={mount:function(){this.bindSwipeStart()},start:function(t){if(!n&&!d.disabled){this.disable();var e=this.touches(t);p=null,m=y(e.pageX),g=y(e.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),v.emit("swipe.start")}},move:function(t){if(!d.disabled){var e=d.settings,n=e.touchAngle,i=e.touchRatio,r=e.classes,s=this.touches(t),o=y(s.pageX)-m,u=y(s.pageY)-g,a=Math.abs(o<<2),c=Math.abs(u<<2),l=Math.sqrt(a+c),f=Math.sqrt(c);if(!(180*(p=Math.asin(f/l))/Math.PI<n))return!1;t.stopPropagation(),h.Move.make(o*function(t){return parseFloat(t)}(i)),h.Html.root.classList.add(r.dragging),v.emit("swipe.move")}},end:function(t){if(!d.disabled){var e=d.settings,n=e.perSwipe,i=e.touchAngle,r=e.classes,s=this.touches(t),o=this.threshold(t),u=s.pageX-m,a=180*p/Math.PI;this.enable(),o<u&&a<i?h.Run.make(h.Direction.resolve(n+"<")):u<-o&&a<i?h.Run.make(h.Direction.resolve(n+">")):h.Move.make(),h.Html.root.classList.remove(r.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),v.emit("swipe.end")}},bindSwipeStart:function(){var e=this,t=d.settings,n=t.swipeThreshold,i=t.dragThreshold;n&&r.on(L[0],h.Html.wrapper,function(t){e.start(t)},s),i&&r.on(L[1],h.Html.wrapper,function(t){e.start(t)},s)},unbindSwipeStart:function(){r.off(L[0],h.Html.wrapper,s),r.off(L[1],h.Html.wrapper,s)},bindSwipeMove:function(){var e=this;r.on(R,h.Html.wrapper,b(function(t){e.move(t)},d.settings.throttle),s)},unbindSwipeMove:function(){r.off(R,h.Html.wrapper,s)},bindSwipeEnd:function(){var e=this;r.on(D,h.Html.wrapper,function(t){e.end(t)})},unbindSwipeEnd:function(){r.off(D,h.Html.wrapper)},touches:function(t){return-1<E.indexOf(t.type)?t:t.touches[0]||t.changedTouches[0]},threshold:function(t){var e=d.settings;return-1<E.indexOf(t.type)?e.dragThreshold:e.swipeThreshold},enable:function(){return n=!1,h.Transition.enable(),this},disable:function(){return n=!0,h.Transition.disable(),this}};return v.on("build.after",function(){h.Html.root.classList.add(d.settings.classes.swipeable)}),v.on("destroy",function(){t.unbindSwipeStart(),t.unbindSwipeMove(),t.unbindSwipeEnd(),r.destroy()}),t},Images:function(t,e,n){var i=new H,r={mount:function(){this.bind()},bind:function(){i.on("dragstart",e.Html.wrapper,this.dragstart)},unbind:function(){i.off("dragstart",e.Html.wrapper)},dragstart:function(t){t.preventDefault()}};return n.on("destroy",function(){r.unbind(),i.destroy()}),r},Anchors:function(t,e,n){var i=new H,r=!1,s=!1,o={mount:function(){this._a=e.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){i.on("click",e.Html.wrapper,this.click)},unbind:function(){i.off("click",e.Html.wrapper)},click:function(t){s&&(t.stopPropagation(),t.preventDefault())},detach:function(){if(s=!0,!r){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!1,this.items[t].setAttribute("data-href",this.items[t].getAttribute("href")),this.items[t].removeAttribute("href");r=!0}return this},attach:function(){if(s=!1,r){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!0,this.items[t].setAttribute("href",this.items[t].getAttribute("data-href"));r=!1}return this}};return d(o,"items",{get:function(){return o._a}}),n.on("swipe.move",function(){o.detach()}),n.on("swipe.end",function(){e.Transition.after(function(){o.attach()})}),n.on("destroy",function(){o.attach(),o.unbind(),i.destroy()}),o},Controls:function(i,e,t){var n=new H,r=!!C&&{passive:!0},s={mount:function(){this._n=e.Html.root.querySelectorAll('[data-glide-el="controls[nav]"]'),this._c=e.Html.root.querySelectorAll('[data-glide-el^="controls"]'),this.addBindings()},setActive:function(){for(var t=0;t<this._n.length;t++)this.addClass(this._n[t].children)},removeActive:function(){for(var t=0;t<this._n.length;t++)this.removeClass(this._n[t].children)},addClass:function(t){var e=i.settings,n=t[i.index];n&&(n.classList.add(e.classes.nav.active),_(n).forEach(function(t){t.classList.remove(e.classes.nav.active)}))},removeClass:function(t){var e=t[i.index];e&&e.classList.remove(i.settings.classes.nav.active)},addBindings:function(){for(var t=0;t<this._c.length;t++)this.bind(this._c[t].children)},removeBindings:function(){for(var t=0;t<this._c.length;t++)this.unbind(this._c[t].children)},bind:function(t){for(var e=0;e<t.length;e++)n.on("click",t[e],this.click),n.on("touchstart",t[e],this.click,r)},unbind:function(t){for(var e=0;e<t.length;e++)n.off(["click","touchstart"],t[e])},click:function(t){t.preventDefault(),e.Run.make(e.Direction.resolve(t.currentTarget.getAttribute("data-glide-dir")))}};return d(s,"items",{get:function(){return s._c}}),t.on(["mount.after","move.after"],function(){s.setActive()}),t.on("destroy",function(){s.removeBindings(),s.removeActive(),n.destroy()}),s},Keyboard:function(t,e,n){var i=new H,r={mount:function(){t.settings.keyboard&&this.bind()},bind:function(){i.on("keyup",document,this.press)},unbind:function(){i.off("keyup",document)},press:function(t){39===t.keyCode&&e.Run.make(e.Direction.resolve(">")),37===t.keyCode&&e.Run.make(e.Direction.resolve("<"))}};return n.on(["destroy","update"],function(){r.unbind()}),n.on("update",function(){r.mount()}),n.on("destroy",function(){i.destroy()}),r},Autoplay:function(e,n,t){var i=new H,r={mount:function(){this.start(),e.settings.hoverpause&&this.bind()},start:function(){var t=this;e.settings.autoplay&&l(this._i)&&(this._i=setInterval(function(){t.stop(),n.Run.make(">"),t.start()},this.time))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var t=this;i.on("mouseover",n.Html.root,function(){t.stop()}),i.on("mouseout",n.Html.root,function(){t.start()})},unbind:function(){i.off(["mouseover","mouseout"],n.Html.root)}};return d(r,"time",{get:function(){var t=n.Html.slides[e.index].getAttribute("data-glide-autoplay");return y(t||e.settings.autoplay)}}),t.on(["destroy","update"],function(){r.unbind()}),t.on(["run.before","pause","destroy","swipe.start","update"],function(){r.stop()}),t.on(["run.after","play","swipe.end"],function(){r.start()}),t.on("update",function(){r.mount()}),t.on("destroy",function(){i.destroy()}),r},Breakpoints:function(t,e,n){var i=new H,r=t.settings,s=j(r.breakpoints),o=a({},r),u={match:function(t){if(void 0!==window.matchMedia)for(var e in t)if(t.hasOwnProperty(e)&&window.matchMedia("(max-width: "+e+"px)").matches)return t[e];return o}};return a(r,u.match(s)),i.on("resize",window,b(function(){t.settings=h(r,u.match(s))},t.settings.throttle)),n.on("update",function(){s=j(s),o=a({},r)}),n.on("destroy",function(){i.off("resize",window)}),u}};function B(){return i(this,B),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(B,p),t(B,[{key:"mount",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};return function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0}(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"mount",this).call(this,a({},W,e))}}]),B});
|
1 |
/*!
|
2 |
+
* Glide.js v3.5.2
|
3 |
+
* (c) 2013-2022 Jędrzej Chałubek (https://github.com/jedrzejchalubek/)
|
4 |
* Released under the MIT License.
|
5 |
*/
|
6 |
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Glide=e()}(this,(function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function s(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=r(t);if(e){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return s(this,n)}}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=u(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},c.apply(this,arguments)}var l={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function f(t){console.error("[Glide warn]: ".concat(t))}function d(t){return parseInt(t)}function h(t){return"string"==typeof t}function v(e){var n=t(e);return"function"===n||"object"===n&&!!e}function p(t){return"function"==typeof t}function m(t){return void 0===t}function g(t){return t.constructor===Array}function y(t,e,n){var i={};for(var r in e)p(e[r])?i[r]=e[r](t,i,n):f("Extension must be a function");for(var o in i)p(i[o].mount)&&i[o].mount();return i}function b(t,e,n){Object.defineProperty(t,e,n)}function w(t,e){var n=Object.assign({},t,e);return e.hasOwnProperty("classes")&&(n.classes=Object.assign({},t.classes,e.classes),e.classes.hasOwnProperty("direction")&&(n.classes.direction=Object.assign({},t.classes.direction,e.classes.direction)),e.classes.hasOwnProperty("type")&&(n.classes.type=Object.assign({},t.classes.type,e.classes.type)),e.classes.hasOwnProperty("slide")&&(n.classes.slide=Object.assign({},t.classes.slide,e.classes.slide)),e.classes.hasOwnProperty("arrow")&&(n.classes.arrow=Object.assign({},t.classes.arrow,e.classes.arrow)),e.classes.hasOwnProperty("nav")&&(n.classes.nav=Object.assign({},t.classes.nav,e.classes.nav))),e.hasOwnProperty("breakpoints")&&(n.breakpoints=Object.assign({},t.breakpoints,e.breakpoints)),n}var _=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,t),this.events=n,this.hop=n.hasOwnProperty}return i(t,[{key:"on",value:function(t,e){if(!g(t)){this.hop.call(this.events,t)||(this.events[t]=[]);var n=this.events[t].push(e)-1;return{remove:function(){delete this.events[t][n]}}}for(var i=0;i<t.length;i++)this.on(t[i],e)}},{key:"emit",value:function(t,e){if(g(t))for(var n=0;n<t.length;n++)this.emit(t[n],e);else this.hop.call(this.events,t)&&this.events[t].forEach((function(t){t(e||{})}))}}]),t}(),k=function(){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e(this,t),this._c={},this._t=[],this._e=new _,this.disabled=!1,this.selector=n,this.settings=w(l,i),this.index=this.settings.startAt}return i(t,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),v(t)?this._c=y(this,t,this._e):f("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return g(t)?this._t=t:f("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=w(this.settings,t),t.hasOwnProperty("startAt")&&(this.index=t.startAt),this._e.emit("update"),this}},{key:"go",value:function(t){return this._c.Run.make(t),this}},{key:"move",value:function(t){return this._c.Transition.disable(),this._c.Move.make(t),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&(this.settings.autoplay=t),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(t,e){return this._e.on(t,e),this}},{key:"isType",value:function(t){return this.settings.type===t}},{key:"settings",get:function(){return this._o},set:function(t){v(t)?this._o=t:f("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(t){this._i=d(t)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(t){this._d=!!t}}]),t}();function S(){return(new Date).getTime()}function H(t,e,n){var i,r,o,s,a=0;n||(n={});var u=function(){a=!1===n.leading?0:S(),i=null,s=t.apply(r,o),i||(r=o=null)},c=function(){var c=S();a||!1!==n.leading||(a=c);var l=e-(c-a);return r=this,o=arguments,l<=0||l>e?(i&&(clearTimeout(i),i=null),a=c,s=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(u,l)),s};return c.cancel=function(){clearTimeout(i),a=0,i=r=o=null},c}var O={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function T(t){if(t&&t.parentNode){for(var e=t.parentNode.firstChild,n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}return[]}function x(t){return!!(t&&t instanceof window.HTMLElement)}var A='[data-glide-el="track"]';var j=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,t),this.listeners=n}return i(t,[{key:"on",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];h(t)&&(t=[t]);for(var r=0;r<t.length;r++)this.listeners[t[r]]=n,e.addEventListener(t[r],this.listeners[t[r]],i)}},{key:"off",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];h(t)&&(t=[t]);for(var i=0;i<t.length;i++)e.removeEventListener(t[i],this.listeners[t[i]],n)}},{key:"destroy",value:function(){delete this.listeners}}]),t}();var R=["ltr","rtl"],P={">":"<","<":">","=":"="};function C(t,e){return{modify:function(t){return e.Direction.is("rtl")?-t:t}}}function M(t,e){return{modify:function(t){var n=Math.floor(t/e.Sizes.slideWidth);return t+e.Gaps.value*n}}}function z(t,e){return{modify:function(t){return t+e.Clones.grow/2}}}function E(t,e){return{modify:function(n){if(t.settings.focusAt>=0){var i=e.Peek.value;return v(i)?n-i.before:n-i}return n}}}function L(t,e){return{modify:function(n){var i=e.Gaps.value,r=e.Sizes.width,o=t.settings.focusAt,s=e.Sizes.slideWidth;return"center"===o?n-(r/2-s/2):n-s*o-i*o}}}var D=!1;try{var B=Object.defineProperty({},"passive",{get:function(){D=!0}});window.addEventListener("testPassive",null,B),window.removeEventListener("testPassive",null,B)}catch(t){}var W=D,q=["touchstart","mousedown"],I=["touchmove","mousemove"],V=["touchend","touchcancel","mouseup","mouseleave"],G=["mousedown","mousemove","mouseup","mouseleave"];var F='[data-glide-el^="controls"]',N="".concat(F,' [data-glide-dir*="<"]'),Y="".concat(F,' [data-glide-dir*=">"]');function X(t){return v(t)?(e=t,Object.keys(e).sort().reduce((function(t,n){return t[n]=e[n],t[n],t}),{})):(f("Breakpoints option must be an object"),{});var e}var K={Html:function(t,e,n){var i={mount:function(){this.root=t.selector,this.track=this.root.querySelector(A),this.collectSlides()},collectSlides:function(){this.slides=Array.prototype.slice.call(this.wrapper.children).filter((function(e){return!e.classList.contains(t.settings.classes.slide.clone)}))}};return b(i,"root",{get:function(){return i._r},set:function(t){h(t)&&(t=document.querySelector(t)),x(t)?i._r=t:f("Root element must be a existing Html node")}}),b(i,"track",{get:function(){return i._t},set:function(t){x(t)?i._t=t:f("Could not find track element. Please use ".concat(A," attribute."))}}),b(i,"wrapper",{get:function(){return i.track.children[0]}}),n.on("update",(function(){i.collectSlides()})),i},Translate:function(t,e,n){var i={set:function(n){var i=function(t,e,n){var i=[M,z,E,L].concat(t._t,[C]);return{mutate:function(r){for(var o=0;o<i.length;o++){var s=i[o];p(s)&&p(s().modify)?r=s(t,e,n).modify(r):f("Transformer should be a function that returns an object with `modify()` method")}return r}}}(t,e).mutate(n),r="translate3d(".concat(-1*i,"px, 0px, 0px)");e.Html.wrapper.style.mozTransform=r,e.Html.wrapper.style.webkitTransform=r,e.Html.wrapper.style.transform=r},remove:function(){e.Html.wrapper.style.transform=""},getStartIndex:function(){var n=e.Sizes.length,i=t.index,r=t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?n+(i-r):(i+r)%n},getTravelDistance:function(){var n=e.Sizes.slideWidth*t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?-1*n:n}};return n.on("move",(function(r){if(!t.isType("carousel")||!e.Run.isOffset())return i.set(r.movement);e.Transition.after((function(){n.emit("translate.jump"),i.set(e.Sizes.slideWidth*t.index)}));var o=e.Sizes.slideWidth*e.Translate.getStartIndex();return i.set(o-e.Translate.getTravelDistance())})),n.on("destroy",(function(){i.remove()})),i},Transition:function(t,e,n){var i=!1,r={compose:function(e){var n=t.settings;return i?"".concat(e," 0ms ").concat(n.animationTimingFunc):"".concat(e," ").concat(this.duration,"ms ").concat(n.animationTimingFunc)},set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";e.Html.wrapper.style.transition=this.compose(t)},remove:function(){e.Html.wrapper.style.transition=""},after:function(t){setTimeout((function(){t()}),this.duration)},enable:function(){i=!1,this.set()},disable:function(){i=!0,this.set()}};return b(r,"duration",{get:function(){var n=t.settings;return t.isType("slider")&&e.Run.offset?n.rewindDuration:n.animationDuration}}),n.on("move",(function(){r.set()})),n.on(["build.before","resize","translate.jump"],(function(){r.disable()})),n.on("run",(function(){r.enable()})),n.on("destroy",(function(){r.remove()})),r},Direction:function(t,e,n){var i={mount:function(){this.value=t.settings.direction},resolve:function(t){var e=t.slice(0,1);return this.is("rtl")?t.split(e).join(P[e]):t},is:function(t){return this.value===t},addClass:function(){e.Html.root.classList.add(t.settings.classes.direction[this.value])},removeClass:function(){e.Html.root.classList.remove(t.settings.classes.direction[this.value])}};return b(i,"value",{get:function(){return i._v},set:function(t){R.indexOf(t)>-1?i._v=t:f("Direction value must be `ltr` or `rtl`")}}),n.on(["destroy","update"],(function(){i.removeClass()})),n.on("update",(function(){i.mount()})),n.on(["build.before","update"],(function(){i.addClass()})),i},Peek:function(t,e,n){var i={mount:function(){this.value=t.settings.peek}};return b(i,"value",{get:function(){return i._v},set:function(t){v(t)?(t.before=d(t.before),t.after=d(t.after)):t=d(t),i._v=t}}),b(i,"reductor",{get:function(){var e=i.value,n=t.settings.perView;return v(e)?e.before/n+e.after/n:2*e/n}}),n.on(["resize","update"],(function(){i.mount()})),i},Sizes:function(t,e,n){var i={setupSlides:function(){for(var t="".concat(this.slideWidth,"px"),n=e.Html.slides,i=0;i<n.length;i++)n[i].style.width=t},setupWrapper:function(){e.Html.wrapper.style.width="".concat(this.wrapperSize,"px")},remove:function(){for(var t=e.Html.slides,n=0;n<t.length;n++)t[n].style.width="";e.Html.wrapper.style.width=""}};return b(i,"length",{get:function(){return e.Html.slides.length}}),b(i,"width",{get:function(){return e.Html.track.offsetWidth}}),b(i,"wrapperSize",{get:function(){return i.slideWidth*i.length+e.Gaps.grow+e.Clones.grow}}),b(i,"slideWidth",{get:function(){return i.width/t.settings.perView-e.Peek.reductor-e.Gaps.reductor}}),n.on(["build.before","resize","update"],(function(){i.setupSlides(),i.setupWrapper()})),n.on("destroy",(function(){i.remove()})),i},Gaps:function(t,e,n){var i={apply:function(t){for(var n=0,i=t.length;n<i;n++){var r=t[n].style,o=e.Direction.value;r[O[o][0]]=0!==n?"".concat(this.value/2,"px"):"",n!==t.length-1?r[O[o][1]]="".concat(this.value/2,"px"):r[O[o][1]]=""}},remove:function(t){for(var e=0,n=t.length;e<n;e++){var i=t[e].style;i.marginLeft="",i.marginRight=""}}};return b(i,"value",{get:function(){return d(t.settings.gap)}}),b(i,"grow",{get:function(){return i.value*e.Sizes.length}}),b(i,"reductor",{get:function(){var e=t.settings.perView;return i.value*(e-1)/e}}),n.on(["build.after","update"],H((function(){i.apply(e.Html.wrapper.children)}),30)),n.on("destroy",(function(){i.remove(e.Html.wrapper.children)})),i},Move:function(t,e,n){var i={mount:function(){this._o=0},make:function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.offset=i,n.emit("move",{movement:this.value}),e.Transition.after((function(){n.emit("move.after",{movement:t.value})}))}};return b(i,"offset",{get:function(){return i._o},set:function(t){i._o=m(t)?0:d(t)}}),b(i,"translate",{get:function(){return e.Sizes.slideWidth*t.index}}),b(i,"value",{get:function(){var t=this.offset,n=this.translate;return e.Direction.is("rtl")?n+t:n-t}}),n.on(["build.before","run"],(function(){i.make()})),i},Clones:function(t,e,n){var i={mount:function(){this.items=[],t.isType("carousel")&&(this.items=this.collect())},collect:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=e.Html.slides,r=t.settings,o=r.perView,s=r.classes,a=r.cloningRatio;if(0!==i.length)for(var u=+!!t.settings.peek,c=o+u+Math.round(o/2),l=i.slice(0,c).reverse(),f=i.slice(-1*c),d=0;d<Math.max(a,Math.floor(o/i.length));d++){for(var h=0;h<l.length;h++){var v=l[h].cloneNode(!0);v.classList.add(s.slide.clone),n.push(v)}for(var p=0;p<f.length;p++){var m=f[p].cloneNode(!0);m.classList.add(s.slide.clone),n.unshift(m)}}return n},append:function(){for(var t=this.items,n=e.Html,i=n.wrapper,r=n.slides,o=Math.floor(t.length/2),s=t.slice(0,o).reverse(),a=t.slice(-1*o).reverse(),u="".concat(e.Sizes.slideWidth,"px"),c=0;c<a.length;c++)i.appendChild(a[c]);for(var l=0;l<s.length;l++)i.insertBefore(s[l],r[0]);for(var f=0;f<t.length;f++)t[f].style.width=u},remove:function(){for(var t=this.items,n=0;n<t.length;n++)e.Html.wrapper.removeChild(t[n])}};return b(i,"grow",{get:function(){return(e.Sizes.slideWidth+e.Gaps.value)*i.items.length}}),n.on("update",(function(){i.remove(),i.mount(),i.append()})),n.on("build.before",(function(){t.isType("carousel")&&i.append()})),n.on("destroy",(function(){i.remove()})),i},Resize:function(t,e,n){var i=new j,r={mount:function(){this.bind()},bind:function(){i.on("resize",window,H((function(){n.emit("resize")}),t.settings.throttle))},unbind:function(){i.off("resize",window)}};return n.on("destroy",(function(){r.unbind(),i.destroy()})),r},Build:function(t,e,n){var i={mount:function(){n.emit("build.before"),this.typeClass(),this.activeClass(),n.emit("build.after")},typeClass:function(){e.Html.root.classList.add(t.settings.classes.type[t.settings.type])},activeClass:function(){var n=t.settings.classes,i=e.Html.slides[t.index];i&&(i.classList.add(n.slide.active),T(i).forEach((function(t){t.classList.remove(n.slide.active)})))},removeClasses:function(){var n=t.settings.classes,i=n.type,r=n.slide;e.Html.root.classList.remove(i[t.settings.type]),e.Html.slides.forEach((function(t){t.classList.remove(r.active)}))}};return n.on(["destroy","update"],(function(){i.removeClasses()})),n.on(["resize","update"],(function(){i.mount()})),n.on("move.after",(function(){i.activeClass()})),i},Run:function(t,e,n){var i={mount:function(){this._o=!1},make:function(i){var r=this;t.disabled||(!t.settings.waitForTransition||t.disable(),this.move=i,n.emit("run.before",this.move),this.calculate(),n.emit("run",this.move),e.Transition.after((function(){r.isStart()&&n.emit("run.start",r.move),r.isEnd()&&n.emit("run.end",r.move),r.isOffset()&&(r._o=!1,n.emit("run.offset",r.move)),n.emit("run.after",r.move),t.enable()})))},calculate:function(){var e=this.move,n=this.length,r=e.steps,o=e.direction,s=1;if("="===o)return t.settings.bound&&d(r)>n?void(t.index=n):void(t.index=r);if(">"!==o||">"!==r)if("<"!==o||"<"!==r){if("|"===o&&(s=t.settings.perView||1),">"===o||"|"===o&&">"===r){var a=function(e){var n=t.index;if(t.isType("carousel"))return n+e;return n+(e-n%e)}(s);return a>n&&(this._o=!0),void(t.index=function(e,n){var r=i.length;if(e<=r)return e;if(t.isType("carousel"))return e-(r+1);if(t.settings.rewind)return i.isBound()&&!i.isEnd()?r:0;if(i.isBound())return r;return Math.floor(r/n)*n}(a,s))}if("<"===o||"|"===o&&"<"===r){var u=function(e){var n=t.index;if(t.isType("carousel"))return n-e;return(Math.ceil(n/e)-1)*e}(s);return u<0&&(this._o=!0),void(t.index=function(e,n){var r=i.length;if(e>=0)return e;if(t.isType("carousel"))return e+(r+1);if(t.settings.rewind)return i.isBound()&&i.isStart()?r:Math.floor(r/n)*n;return 0}(u,s))}f("Invalid direction pattern [".concat(o).concat(r,"] has been used"))}else t.index=0;else t.index=n},isStart:function(){return t.index<=0},isEnd:function(){return t.index>=this.length},isOffset:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t?!!this._o&&("|>"===t?"|"===this.move.direction&&">"===this.move.steps:"|<"===t?"|"===this.move.direction&&"<"===this.move.steps:this.move.direction===t):this._o},isBound:function(){return t.isType("slider")&&"center"!==t.settings.focusAt&&t.settings.bound}};return b(i,"move",{get:function(){return this._m},set:function(t){var e=t.substr(1);this._m={direction:t.substr(0,1),steps:e?d(e)?d(e):e:0}}}),b(i,"length",{get:function(){var n=t.settings,i=e.Html.slides.length;return this.isBound()?i-1-(d(n.perView)-1)+d(n.focusAt):i-1}}),b(i,"offset",{get:function(){return this._o}}),i},Swipe:function(t,e,n){var i=new j,r=0,o=0,s=0,a=!1,u=!!W&&{passive:!0},c={mount:function(){this.bindSwipeStart()},start:function(e){if(!a&&!t.disabled){this.disable();var i=this.touches(e);r=null,o=d(i.pageX),s=d(i.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),n.emit("swipe.start")}},move:function(i){if(!t.disabled){var a=t.settings,u=a.touchAngle,c=a.touchRatio,l=a.classes,f=this.touches(i),h=d(f.pageX)-o,v=d(f.pageY)-s,p=Math.abs(h<<2),m=Math.abs(v<<2),g=Math.sqrt(p+m),y=Math.sqrt(m);if(!(180*(r=Math.asin(y/g))/Math.PI<u))return!1;i.stopPropagation(),e.Move.make(h*parseFloat(c)),e.Html.root.classList.add(l.dragging),n.emit("swipe.move")}},end:function(i){if(!t.disabled){var s=t.settings,a=s.perSwipe,u=s.touchAngle,c=s.classes,l=this.touches(i),f=this.threshold(i),d=l.pageX-o,h=180*r/Math.PI;this.enable(),d>f&&h<u?e.Run.make(e.Direction.resolve("".concat(a,"<"))):d<-f&&h<u?e.Run.make(e.Direction.resolve("".concat(a,">"))):e.Move.make(),e.Html.root.classList.remove(c.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),n.emit("swipe.end")}},bindSwipeStart:function(){var n=this,r=t.settings,o=r.swipeThreshold,s=r.dragThreshold;o&&i.on(q[0],e.Html.wrapper,(function(t){n.start(t)}),u),s&&i.on(q[1],e.Html.wrapper,(function(t){n.start(t)}),u)},unbindSwipeStart:function(){i.off(q[0],e.Html.wrapper,u),i.off(q[1],e.Html.wrapper,u)},bindSwipeMove:function(){var n=this;i.on(I,e.Html.wrapper,H((function(t){n.move(t)}),t.settings.throttle),u)},unbindSwipeMove:function(){i.off(I,e.Html.wrapper,u)},bindSwipeEnd:function(){var t=this;i.on(V,e.Html.wrapper,(function(e){t.end(e)}))},unbindSwipeEnd:function(){i.off(V,e.Html.wrapper)},touches:function(t){return G.indexOf(t.type)>-1?t:t.touches[0]||t.changedTouches[0]},threshold:function(e){var n=t.settings;return G.indexOf(e.type)>-1?n.dragThreshold:n.swipeThreshold},enable:function(){return a=!1,e.Transition.enable(),this},disable:function(){return a=!0,e.Transition.disable(),this}};return n.on("build.after",(function(){e.Html.root.classList.add(t.settings.classes.swipeable)})),n.on("destroy",(function(){c.unbindSwipeStart(),c.unbindSwipeMove(),c.unbindSwipeEnd(),i.destroy()})),c},Images:function(t,e,n){var i=new j,r={mount:function(){this.bind()},bind:function(){i.on("dragstart",e.Html.wrapper,this.dragstart)},unbind:function(){i.off("dragstart",e.Html.wrapper)},dragstart:function(t){t.preventDefault()}};return n.on("destroy",(function(){r.unbind(),i.destroy()})),r},Anchors:function(t,e,n){var i=new j,r=!1,o=!1,s={mount:function(){this._a=e.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){i.on("click",e.Html.wrapper,this.click)},unbind:function(){i.off("click",e.Html.wrapper)},click:function(t){o&&(t.stopPropagation(),t.preventDefault())},detach:function(){if(o=!0,!r){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!1;r=!0}return this},attach:function(){if(o=!1,r){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!0;r=!1}return this}};return b(s,"items",{get:function(){return s._a}}),n.on("swipe.move",(function(){s.detach()})),n.on("swipe.end",(function(){e.Transition.after((function(){s.attach()}))})),n.on("destroy",(function(){s.attach(),s.unbind(),i.destroy()})),s},Controls:function(t,e,n){var i=new j,r=!!W&&{passive:!0},o={mount:function(){this._n=e.Html.root.querySelectorAll('[data-glide-el="controls[nav]"]'),this._c=e.Html.root.querySelectorAll(F),this._arrowControls={previous:e.Html.root.querySelectorAll(N),next:e.Html.root.querySelectorAll(Y)},this.addBindings()},setActive:function(){for(var t=0;t<this._n.length;t++)this.addClass(this._n[t].children)},removeActive:function(){for(var t=0;t<this._n.length;t++)this.removeClass(this._n[t].children)},addClass:function(e){var n=t.settings,i=e[t.index];i&&i&&(i.classList.add(n.classes.nav.active),T(i).forEach((function(t){t.classList.remove(n.classes.nav.active)})))},removeClass:function(e){var n=e[t.index];n&&n.classList.remove(t.settings.classes.nav.active)},setArrowState:function(){if(!t.settings.rewind){var n=o._arrowControls.next,i=o._arrowControls.previous;this.resetArrowState(n,i),0===t.index&&this.disableArrow(i),t.index===e.Run.length&&this.disableArrow(n)}},resetArrowState:function(){for(var e=t.settings,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];i.forEach((function(t){t.forEach((function(t){t.classList.remove(e.classes.arrow.disabled)}))}))},disableArrow:function(){for(var e=t.settings,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];i.forEach((function(t){t.forEach((function(t){t.classList.add(e.classes.arrow.disabled)}))}))},addBindings:function(){for(var t=0;t<this._c.length;t++)this.bind(this._c[t].children)},removeBindings:function(){for(var t=0;t<this._c.length;t++)this.unbind(this._c[t].children)},bind:function(t){for(var e=0;e<t.length;e++)i.on("click",t[e],this.click),i.on("touchstart",t[e],this.click,r)},unbind:function(t){for(var e=0;e<t.length;e++)i.off(["click","touchstart"],t[e])},click:function(t){W||"touchstart"!==t.type||t.preventDefault();var n=t.currentTarget.getAttribute("data-glide-dir");e.Run.make(e.Direction.resolve(n))}};return b(o,"items",{get:function(){return o._c}}),n.on(["mount.after","move.after"],(function(){o.setActive()})),n.on(["mount.after","run"],(function(){o.setArrowState()})),n.on("destroy",(function(){o.removeBindings(),o.removeActive(),i.destroy()})),o},Keyboard:function(t,e,n){var i=new j,r={mount:function(){t.settings.keyboard&&this.bind()},bind:function(){i.on("keyup",document,this.press)},unbind:function(){i.off("keyup",document)},press:function(n){var i=t.settings.perSwipe;39===n.keyCode&&e.Run.make(e.Direction.resolve("".concat(i,">"))),37===n.keyCode&&e.Run.make(e.Direction.resolve("".concat(i,"<")))}};return n.on(["destroy","update"],(function(){r.unbind()})),n.on("update",(function(){r.mount()})),n.on("destroy",(function(){i.destroy()})),r},Autoplay:function(t,e,n){var i=new j,r={mount:function(){this.enable(),this.start(),t.settings.hoverpause&&this.bind()},enable:function(){this._e=!0},disable:function(){this._e=!1},start:function(){var i=this;this._e&&(this.enable(),t.settings.autoplay&&m(this._i)&&(this._i=setInterval((function(){i.stop(),e.Run.make(">"),i.start(),n.emit("autoplay")}),this.time)))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var t=this;i.on("mouseover",e.Html.root,(function(){t._e&&t.stop()})),i.on("mouseout",e.Html.root,(function(){t._e&&t.start()}))},unbind:function(){i.off(["mouseover","mouseout"],e.Html.root)}};return b(r,"time",{get:function(){var n=e.Html.slides[t.index].getAttribute("data-glide-autoplay");return d(n||t.settings.autoplay)}}),n.on(["destroy","update"],(function(){r.unbind()})),n.on(["run.before","swipe.start","update"],(function(){r.stop()})),n.on(["pause","destroy"],(function(){r.disable(),r.stop()})),n.on(["run.after","swipe.end"],(function(){r.start()})),n.on(["play"],(function(){r.enable(),r.start()})),n.on("update",(function(){r.mount()})),n.on("destroy",(function(){i.destroy()})),r},Breakpoints:function(t,e,n){var i=new j,r=t.settings,o=X(r.breakpoints),s=Object.assign({},r),a={match:function(t){if(void 0!==window.matchMedia)for(var e in t)if(t.hasOwnProperty(e)&&window.matchMedia("(max-width: ".concat(e,"px)")).matches)return t[e];return s}};return Object.assign(r,a.match(o)),i.on("resize",window,H((function(){t.settings=w(r,a.match(o))}),t.settings.throttle)),n.on("update",(function(){o=X(o),s=Object.assign({},r)})),n.on("destroy",(function(){i.off("resize",window)})),a}},J=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(s,t);var n=a(s);function s(){return e(this,s),n.apply(this,arguments)}return i(s,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(r(s.prototype),"mount",this).call(this,Object.assign({},K,t))}}]),s}(k);return J}));
|
build/animation/blocks/blocks/flip/block.json
CHANGED
@@ -34,7 +34,7 @@
|
|
34 |
"type": "number"
|
35 |
},
|
36 |
"borderWidth": {
|
37 |
-
"type": "
|
38 |
},
|
39 |
"borderColor": {
|
40 |
"type": "string"
|
@@ -152,4 +152,4 @@
|
|
152 |
},
|
153 |
"editorStyle": "otter-flip-editor",
|
154 |
"style": "otter-flip-style"
|
155 |
-
}
|
34 |
"type": "number"
|
35 |
},
|
36 |
"borderWidth": {
|
37 |
+
"type": "number"
|
38 |
},
|
39 |
"borderColor": {
|
40 |
"type": "string"
|
152 |
},
|
153 |
"editorStyle": "otter-flip-editor",
|
154 |
"style": "otter-flip-style"
|
155 |
+
}
|
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' => 'd46aa514b4b65750107c6af8c2839d5b');
|
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,s=window.wp.data,c=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:s,setCurrentAnimationLabel:c}=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},s)},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:s===t.label?"is-selected":"",onClick:()=>{c(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:s,onClick:c,children:u}=l;(0,e.useEffect)((()=>{for(const e in s){if(s[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({...s})}),(0,e.createElement)(n.Button,{id:d,icon:I,label:o,showTooltip:!0,onClick:()=>{r(),c&&c()},"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 L="count",B="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}`)))),s=Array.from(p).find((t=>e.find((e=>e===`o-typing-${t.value}`))));k(t?t.value:"none"),w(l?l.value:"none"),E(o?o.value:"none"),C(t?t.label:"none"),N(n?n.value:"none"),D(a?a.value:"none"),U(i?i.value:"none"),$(s?s.value:"none")}}),[]);const{hasCountFormat:b,hasTypingFormat:v}=(0,s.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),l=(0,o.serialize)(t(a)),n=(0,c.create)({html:l});let r=!1,i=!1;return n.formats&&(r=n.formats.some((e=>!0===e.some((e=>"themeisle-blocks/count-animation"===e.type)))),i=n.formats.some((e=>!0===e.some((e=>"themeisle-blocks/typing-animation"===e.type))))),{hasCountFormat:r,hasTypingFormat:i}}),[]),[f,k]=(0,e.useState)("none"),[h,w]=(0,e.useState)("none"),[I,E]=(0,e.useState)("none"),[F,C]=(0,e.useState)((0,t.__)("None","otter-blocks")),[T,N]=(0,e.useState)("none"),[A,D]=(0,e.useState)("none"),[x,U]=(0,e.useState)("none"),[z,$]=(0,e.useState)("none"),j=(e,t,l,o)=>{let n;switch(e){case L:n="o-count-";break;case B:n="o-typing-";break;case R:n=""}const a=n+t,s="none"!==l?n+l:"";let c;r.className?(c=r.className,c=c.split(" "),c.find((e=>e===a))?c=c.join(" ").replace(a,s):(c.push(s),c=c.join(" ").trim())):c=s,c=c.replace(/\s+/g," "),""===c&&(c=void 0),i({className:c}),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(L,T,e,(()=>N(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:A||"none",options:p,onChange:e=>j(L,A,e,(()=>$(e)))})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{src:O,alt:_("Using Count Animation in the Block Editor","otter-blocks"),className:"otter-animations-count-image"}),(0,e.createElement)("p",null,(0,t.__)("You can add counting animation from the format toolbar of this block. Once you have added them, you will see customization settings here.","otter-blocks")),(0,e.createElement)("p",null,(0,t.__)("Note: This feature is not available in all the blocks.","otter-blocks")))),(0,e.createElement)(y,{label:(0,t.__)("Typing Animations","otter-blocks")},v?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:x||"none",options:d,onChange:e=>j(B,x,e,(()=>U(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:z||"none",options:p,onChange:e=>j(B,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,c.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,c.toggleFormat)(n,{type:T}))},isActive:o}))}});const N="themeisle-blocks/typing-animation";(0,c.registerFormatType)(N,{title:(0,t.__)("Typing Animation","otter-blocks"),tagName:"o-anim-typing",className:null,edit:l=>{let{isActive:o,value:n,onChange:a}=l;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RichTextToolbarButton,{icon:C,title:(0,t.__)("Typing Animation","otter-blocks"),onClick:()=>{a((0,c.toggleFormat)(n,{type:N}))},isActive:o}))}});const A=["themeisle-blocks/popup"],D=(0,a.createHigherOrderComponent)((l=>a=>(0,o.hasBlockSupport)(a.name,"customClassName",!0)&&a.isSelected&&!A.includes(a.name)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l,a),(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(n.PanelBody,{title:(0,t.__)("Animations","otter-blocks"),initialOpen:!1,className:"o-is-new"},window.otterComponents&&window.themeisleGutenberg&&(0,e.createElement)(window.otterComponents.Notice,{notice:(0,e.createElement)(n.ExternalLink,{href:window.themeisleGutenberg.optionsPath},(0,t.__)("Disable in Otter Settings","otter-blocks"))}),(0,e.createElement)(F,{clientId:a.clientId,setAttributes:a.setAttributes,attributes:a.attributes})))):(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,{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)}()}();
|
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' => '5c841e4859d23919ff67103cc898e3dd');
|
build/blocks/blocks.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
!function(){"use strict";var e,t,o,l={7758:function(e,t,o){var l=o(5736),a=o(4981),
|
2 |
-
--titleColor: ${
|
3 |
-
--titleBackground: ${
|
4 |
-
--borderColor: ${
|
5 |
-
--contentBackground: ${
|
6 |
-
`,u=(0,m.useBlockProps)({id:o.id,className:s()({[`is-${o.gap}-gap`]:o.gap}),css:i});return(0,d.tZ)(c.Fragment,null,(0,d.tZ)(p,{attributes:o,setAttributes:l,getValue:n}),(0,d.tZ)("div",u,(0,d.tZ)(m.InnerBlocks,{allowedBlocks:["themeisle-blocks/accordion-item"],template:[["themeisle-blocks/accordion-item"]],renderAppender:r?m.InnerBlocks.ButtonBlockAppender:""})))},save:e=>{let{attributes:t}=e;const o=m.useBlockProps.save({id:t.id,className:s()({[`is-${t.gap}-gap`]:t.gap})});return(0,c.createElement)("div",o,(0,c.createElement)(m.InnerBlocks.Content,null))}})},7767:function(e,t,o){o(8398),o(1125)},1125:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/accordion-item","title":"Accordion Item","category":"themeisle-blocks","description":"Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","keywords":["accordions","collapse","faq"],"parent":["themeisle-blocks/accordion"],"textdomain":"otter-blocks","attributes":{"title":{"type":"string"},"initialOpen":{"type":"boolean","default":false}},"supports":{"reusable":false}}'),n=o(340),c=o(9307),i=o(6015),s=o(3904),d=o(2175),m=o(5609),u=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(d.InspectorControls,null,(0,c.createElement)(m.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(m.ToggleControl,{label:(0,l.__)("Initially Open","otter-blocks"),checked:t.initialOpen,onChange:e=>o({initialOpen:e})})))};const{name:b}=r;(0,a.registerBlockType)(b,{...r,title:(0,l.__)("Accordion Item","otter-blocks"),description:(0,l.__)("Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","otter-blocks"),icon:n.buttonsIcon,keywords:["accordions","collapse","faq"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[a,r]=(0,c.useState)(!0);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u,{attributes:t,setAttributes:o}),(0,c.createElement)("div",(0,d.useBlockProps)(),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__title",onClick:e=>{"string"==typeof e.target.className&&e.target.className.includes("block-editor-rich-text__editable")?r(!0):r(!a)}},(0,c.createElement)(d.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.title,onChange:e=>{a||r(!0),o({title:e})},tagName:"span"}),(0,c.createElement)(m.Icon,{icon:a?i.Z:s.Z,size:24})),a&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,c.createElement)(d.InnerBlocks,{template:[["core/paragraph"]]}))))},save:e=>{let{attributes:t}=e;const o=d.useBlockProps.save({open:!!t.initialOpen});return(0,c.createElement)("details",o,(0,c.createElement)("summary",{className:"wp-block-themeisle-blocks-accordion-item__title"},(0,c.createElement)(d.RichText.Content,{tagName:"div",value:t.title})),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,c.createElement)(d.InnerBlocks.Content,null)))}})},4443:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-heading","title":"Advanced Heading","category":"themeisle-blocks","description":"Advanced Heading gives a spin to editor\'s Heading block with much needed customization options. Powered by Otter.","keywords":["heading","title","advanced heading"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"content":{"type":"string","source":"html","selector":"h1,h2,h3,h4,h5,h6,div,p,span","default":""},"tag":{"default":"h2","type":"string"},"align":{"type":"string"},"alignTablet":{"type":"string"},"alignMobile":{"type":"string"},"headingColor":{"type":"string"},"highlightColor":{"type":"string"},"highlightBackground":{"type":"string"},"fontSize":{"type":"number"},"fontSizeTablet":{"type":"number"},"fontSizeMobile":{"type":"number"},"fontFamily":{"type":"string"},"fontVariant":{"type":"string"},"fontStyle":{"type":"string"},"textTransform":{"type":"string"},"lineHeight":{"type":"number"},"letterSpacing":{"type":"number"},"textShadow":{"type":"boolean","default":false},"textShadowColor":{"type":"string","default":"#000000"},"textShadowColorOpacity":{"type":"number","default":50},"textShadowBlur":{"type":"number","default":5},"textShadowHorizontal":{"type":"number","default":0},"textShadowVertical":{"type":"number","default":0},"paddingType":{"type":"string","default":"linked"},"paddingTypeTablet":{"type":"string","default":"linked"},"paddingTypeMobile":{"type":"string","default":"linked"},"padding":{"type":"number","default":0},"paddingTablet":{"type":"number"},"paddingMobile":{"type":"number"},"paddingTop":{"type":"number","default":0},"paddingTopTablet":{"type":"number"},"paddingTopMobile":{"type":"number"},"paddingRight":{"type":"number","default":0},"paddingRightTablet":{"type":"number"},"paddingRightMobile":{"type":"number"},"paddingBottom":{"type":"number","default":0},"paddingBottomTablet":{"type":"number"},"paddingBottomMobile":{"type":"number"},"paddingLeft":{"type":"number","default":0},"paddingLeftTablet":{"type":"number"},"paddingLeftMobile":{"type":"number"},"marginType":{"type":"string","default":"unlinked"},"marginTypeTablet":{"type":"string","default":"unlinked"},"marginTypeMobile":{"type":"string","default":"unlinked"},"margin":{"type":"number","default":0},"marginTablet":{"type":"number"},"marginMobile":{"type":"number"},"marginTop":{"type":"number","default":0},"marginTopTablet":{"type":"number"},"marginTopMobile":{"type":"number"},"marginBottom":{"type":"number","default":25},"marginBottomTablet":{"type":"number"},"marginBottomMobile":{"type":"number"}},"editorStyle":"otter-advanced-heading-editor","style":"otter-advanced-heading-style"}'),n=o(9307),c=o(6713),i=window.wp.richText,s=o(2175);const d="themeisle-blocks/highlight";(0,i.registerFormatType)(d,{name:d,title:(0,l.__)("Highlight","otter-blocks"),tagName:"span",className:"highlight",edit:e=>{let{isActive:t,value:o,onChange:a}=e;const r=()=>a((0,i.toggleFormat)(o,{type:d}));return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.RichTextShortcut,{type:"primary",character:"h",onUse:r}),(0,n.createElement)(s.RichTextToolbarButton,{icon:c.Z,title:(0,l.__)("Highlight","otter-blocks"),onClick:r,isActive:t,shortcutType:"access",shortcutCharacter:"h"}))}});var m=o(340),u=o(4184),b=o.n(u),p=o(80),g=o.n(p),h=[{attributes:{id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number",default:0},paddingMobile:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number",default:0},paddingTopMobile:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number",default:0},paddingRightMobile:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number",default:0},paddingBottomMobile:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number",default:0},paddingLeftMobile:{type:"number",default:0},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number",default:0},marginMobile:{type:"number",default:0},marginTop:{type:"number",default:0},marginTopTablet:{type:"number",default:0},marginTopMobile:{type:"number",default:0},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number",default:25},marginBottomMobile:{type:"number",default:20}},save:e=>{let t,{attributes:o,className:l}=e;o.textShadow&&(t={textShadow:`${o.textShadowHorizontal}px ${o.textShadowVertical}px ${o.textShadowBlur}px ${g()(o.textShadowColor?o.textShadowColor:"#000000",o.textShadowColorOpacity)}`});const a={color:o.headingColor,fontFamily:o.fontFamily,fontWeight:"regular"===o.fontVariant?"normal":o.fontVariant,fontStyle:o.fontStyle,textTransform:o.textTransform,lineHeight:o.lineHeight&&`${o.lineHeight}px`,letterSpacing:o.letterSpacing&&`${o.letterSpacing}px`,...t};return(0,n.createElement)(s.RichText.Content,{tagName:o.tag,value:o.content,id:o.id,className:b()(o.id,l),style:a})}}],k={from:[{type:"block",blocks:["core/heading"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("themeisle-blocks/advanced-heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("themeisle-blocks/advanced-heading",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("core/paragraph",{content:t})}}]},v=o(7462),y=o(5988),f=o(2819),_=o(4333),w=o(9818),C=o(5225),E=o(5609),x=o(9977),T=e=>{let{attributes:t,setAttributes:o}=e;const a=e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},r=e=>{switch(e){case"h1":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1"));case"h2":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2"));case"h3":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3"));case"h4":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4"));case"h5":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5"));case"h6":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6"));case"div":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV"));case"p":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{x:"0",y:"15"},"P"));case"span":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN"));default:return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DEFAULT"))}},c=e=>{o({tag:e})};return(0,n.createElement)(s.BlockControls,null,(0,n.createElement)(E.DropdownMenu,{icon:r(t.tag),label:(0,l.__)("Select tag","otter-blocks"),className:"components-toolbar",controls:[{title:(0,l.__)("Heading","otter-blocks")+" 1",icon:r("h1"),onClick:()=>c("h1")},{title:(0,l.__)("Heading","otter-blocks")+" 2",icon:r("h2"),onClick:()=>c("h2")},{title:(0,l.__)("Heading","otter-blocks")+" 3",icon:r("h3"),onClick:()=>c("h3")},{title:(0,l.__)("Heading","otter-blocks")+" 4",icon:r("h4"),onClick:()=>c("h4")},{title:(0,l.__)("Heading","otter-blocks")+" 5",icon:r("h5"),onClick:()=>c("h5")},{title:(0,l.__)("Heading","otter-blocks")+" 6",icon:r("h6"),onClick:()=>c("h6")},{title:(0,l.__)("Division","otter-blocks"),icon:r("div"),onClick:()=>c("div")},{title:(0,l.__)("Paragraph","otter-blocks"),icon:r("p"),onClick:()=>c("p")},{title:(0,l.__)("Span Tag","otter-blocks"),icon:r("span"),onClick:()=>c("span")}]}),(0,n.createElement)(E.ToolbarGroup,null,(0,n.createElement)(E.Dropdown,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:e=>{let{isOpen:t,onToggle:o}=e;return(0,n.createElement)(E.Button,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:o,"aria-haspopup":"true","aria-expanded":t,label:(0,l.__)("Typography Settings","otter-blocks"),showTooltip:!0},(0,n.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:()=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(x.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:a,valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,step:.1,max:3}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),min:-50,max:100}))})))},M=o(2136),S=o(6993),B=o(2372),z=o(1661),P=e=>{let{values:t,setAttributes:o}=e;return(0,n.createElement)("div",{className:"o-clear-button"},(0,n.createElement)(E.Button,{isSmall:!0,isSecondary:!0,onClick:()=>{const e=((0,f.isArray)(t)?t:[t]).map((e=>{if((0,f.isString)(e))return e;if((0,f.isObject)(e)){const t=Object.keys(e);if(1===t.length)return e[t[0]]?t[0]:void 0}})).filter(f.isString).reduce(((e,t)=>(e[t]=void 0,e)),{});o(e)}},(0,l.__)("Clear","otter-blocks")))},V=e=>{let{attributes:t,setAttributes:o}=e;const a=(0,w.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[r,c]=(0,n.useState)("style"),i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},d={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},m={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},u=e=>{if("top"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingTop;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile}else if("right"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingRight;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile}else if("bottom"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingBottom;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile}else if("left"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingLeft;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile}},p={top:"marginTop",bottom:"marginBottom"},g={top:"marginTopTablet",bottom:"marginBottomTablet"},h={top:"marginTopMobile",bottom:"marginBottomMobile"},k=e=>{if("top"==e)switch(a){case"Desktop":return"linked"===t.marginType?t.margin:t.marginTop;case"Tablet":return"linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet;case"Mobile":return"linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile}else if("bottom"==e)switch(a){case"Desktop":return"linked"===t.marginType?t.margin:t.marginBottom;case"Tablet":return"linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet;case"Mobile":return"linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile}};return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.InspectorControls,null,(0,n.createElement)(E.PanelBody,{className:"o-heading-header-panel"},(0,n.createElement)(E.Button,{className:b()("header-tab",{"is-selected":"style"===r}),onClick:()=>c("style")},(0,n.createElement)("span",null,(0,n.createElement)(E.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,n.createElement)(E.Button,{className:b()("header-tab",{"is-selected":"advanced"===r}),onClick:()=>c("advanced")},(0,n.createElement)("span",null,(0,n.createElement)(E.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"style"===r&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(E.PanelBody,{title:(0,l.__)("General Settings","otter-blocks"),className:"o-adv-h-panel"},(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Heading Color","otter-blocks"),colorValue:t.headingColor,onColorChange:e=>o({headingColor:e})}),(0,n.createElement)(S.Z,{label:(0,l.__)("Font Size","otter-blocks")},(0,n.createElement)(E.RangeControl,{value:(()=>{switch(a){case"Desktop":return t.fontSize;case"Tablet":return t.fontSizeTablet;case"Mobile":return t.fontSizeMobile;default:return}})()||"",onChange:e=>{"Desktop"===a?o({fontSize:e}):"Tablet"===a?o({fontSizeTablet:e}):"Mobile"===a&&o({fontSizeMobile:e})},min:1,max:500,allowReset:!0})),(0,n.createElement)(S.Z,{label:(0,l.__)("Alignment","otter-blocks")},(0,n.createElement)(s.AlignmentToolbar,{value:(()=>{switch(a){case"Desktop":return t.align;case"Tablet":return t.alignTablet;case"Mobile":return t.alignMobile;default:return}})(),onChange:e=>{"Desktop"===a?o({align:e}):"Tablet"===a?o({alignTablet:e}):"Mobile"===a&&o({alignMobile:e})},isCollapsed:!1}))),(0,n.createElement)(E.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,n.createElement)(x.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,n.createElement)(P,{values:["fontFamily","fontVariant","fontStyle","textTransform"],setAttributes:o}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,step:.1,max:3,allowReset:!0}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),min:-50,max:100,allowReset:!0}),(0,n.createElement)(E.ToggleControl,{label:(0,l.__)("Shadow Properties","otter-blocks"),checked:t.textShadow,onChange:e=>o({textShadow:e})}),t.textShadow&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.textShadowColor,onColorChange:e=>o({textShadowColor:e})}),(0,n.createElement)(M.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.textShadowColorOpacity,onChange:e=>o({textShadowColorOpacity:e}),min:0,max:100}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.textShadowBlur,onChange:e=>o({textShadowBlur:e}),min:0,max:100}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.textShadowHorizontal,onChange:e=>o({textShadowHorizontal:e}),min:-100,max:100}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.textShadowVertical,onChange:e=>o({textShadowVertical:e}),min:-100,max:100})))))||"advanced"===r&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(E.PanelBody,{title:(0,l.__)("Highlight Color","otter-blocks")},(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Color","otter-blocks"),colorValue:t.highlightColor,onColorChange:e=>o({highlightColor:e})}),(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Background","otter-blocks"),colorValue:t.highlightBackground,onColorChange:e=>o({highlightBackground:e})})),(0,n.createElement)(E.PanelBody,{title:(0,l.__)("Spacing","otter-blocks"),initialOpen:!1},(0,n.createElement)(S.Z,{label:(0,l.__)("Padding","otter-blocks")},(0,n.createElement)(B.Z,{type:(()=>{switch(a){case"Desktop":return t.paddingType;case"Tablet":return t.paddingTypeTablet;case"Mobile":return t.paddingTypeMobile;default:return}})(),min:0,max:500,changeType:e=>{"Desktop"===a?o({paddingType:e}):"Tablet"===a?o({paddingTypeTablet:e}):"Mobile"===a&&o({paddingTypeMobile:e})},onChange:(e,l)=>{switch(a){case"Desktop":"linked"===t.paddingType?o({padding:l}):o({[i[e]]:l});break;case"Tablet":"linked"===t.paddingTypeTablet?o({paddingTablet:l}):o({[d[e]]:l});break;case"Mobile":"linked"===t.paddingTypeMobile?o({paddingMobile:l}):o({[m[e]]:l})}},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:u("top")},{label:(0,l.__)("Right","otter-blocks"),type:"right",value:u("right")},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:u("bottom")},{label:(0,l.__)("Left","otter-blocks"),type:"left",value:u("left")}]})),(0,n.createElement)(P,{values:[{padding:"Desktop"===a&&"linked"===t.paddingType},{paddingTablet:"Tablet"===a&&"linked"===t.paddingType},{paddingMobile:"Mobile"===a&&"linked"===t.paddingType},{paddingRight:"Desktop"===a&&"linked"!==t.paddingType},{paddingRightTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingRightMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingTop:"Desktop"===a&&"linked"!==t.paddingType},{paddingTopTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingTopMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingBottom:"Desktop"===a&&"linked"!==t.paddingType},{paddingBottomTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingBottomMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingLeft:"Desktop"===a&&"linked"!==t.paddingType},{paddingLeftTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingLeftMobile:"Mobile"===a&&"linked"!==t.paddingType}],setAttributes:o}),(0,n.createElement)(S.Z,{label:(0,l.__)("Margin","otter-blocks")},(0,n.createElement)(B.Z,{type:(()=>{switch(a){case"Desktop":return t.marginType;case"Tablet":return t.marginTypeTablet;case"Mobile":return t.marginTypeMobile;default:return}})(),min:-500,max:500,changeType:e=>{switch(a){case"Desktop":o({marginType:e});break;case"Tablet":o({marginTypeTablet:e});break;case"Mobile":o({marginTypeMobile:e})}},onChange:(e,l)=>{switch(a){case"Desktop":"linked"===t.marginType?o({margin:l}):o({[p[e]]:l});break;case"Tablet":"linked"===t.marginTypeTablet?o({marginTablet:l}):o({[g[e]]:l});break;case"Mobile":"linked"===t.marginTypeMobile?o({marginMobile:l}):o({[h[e]]:l})}},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:k("top")},{label:(0,l.__)("Right","otter-blocks"),disabled:!0},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:k("bottom")},{label:(0,l.__)("Left","otter-blocks"),disabled:!0}]})),(0,n.createElement)(P,{values:[{margin:"Desktop"===a&&"linked"===t.marginType},{marginTablet:"Tablet"===a&&"linked"===t.marginType},{marginMobile:"Mobile"===a&&"linked"===t.marginType},{marginTop:"Desktop"===a&&"linked"!==t.marginType},{marginTopTablet:"Tablet"===a&&"linked"!==t.marginType},{marginTopMobile:"Mobile"===a&&"linked"!==t.marginType},{marginBottom:"Desktop"===a&&"linked"!==t.marginType},{marginBottomTablet:"Tablet"===a&&"linked"!==t.marginType},{marginBottomMobile:"Mobile"===a&&"linked"!==t.marginType}],setAttributes:o})))),(0,n.createElement)(z.Z,{value:t.id,onChange:e=>o({id:e})}))};const{attributes:R}=r;const{name:L}=r;(0,a.registerBlockType)(L,{...r,title:(0,l.__)("Advanced Heading","otter-blocks"),description:(0,l.__)("Advanced Heading gives a spin to editor's Heading block with much needed customization options. Powered by Otter.","otter-blocks"),icon:m.headingIcon,keywords:["heading","title","advanced heading"],deprecated:h,transforms:k,edit:e=>{let{attributes:t,setAttributes:o,clientId:r,mergeBlocks:c,insertBlocksAfter:i,onReplace:d}=e;const{isViewportAvailable:m,isPreviewDesktop:u,isPreviewTablet:b,isPreviewMobile:p}=(0,w.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),h=(0,_.useViewportMatch)("large",">="),k=(0,_.useViewportMatch)("large","<="),E=(0,_.useViewportMatch)("small",">="),x=(0,_.useViewportMatch)("small","<=");(0,n.useEffect)((()=>{const e=(0,C.WX)(r,R);return()=>e(t.id)}),[t.id]);let M,S,B,z=h&&!k&&E&&!x,P=!h&&!k&&E&&!x,L=!(h||k||E||x);m&&!L&&(z=u,P=b,L=p),z&&(M={fontSize:t.fontSize?`${t.fontSize}px`:void 0},S={textAlign:t.align,paddingTop:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingTop}px`,paddingRight:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingRight}px`,paddingBottom:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingBottom}px`,paddingLeft:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingLeft}px`,marginTop:"linked"===t.marginType?`${t.margin}px`:`${t.marginTop}px`,marginBottom:"linked"===t.marginType?`${t.margin}px`:`${t.marginBottom}px`}),P&&(M={fontSize:t.fontSizeTablet?`${t.fontSizeTablet}px`:void 0},S={textAlign:t.alignTablet,paddingTop:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingTopTablet}px`,paddingRight:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingRightTablet}px`,paddingBottom:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingBottomTablet}px`,paddingLeft:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingLeftTablet}px`,marginTop:"linked"===t.marginTypeTablet?`${t.marginTablet}px`:`${t.marginTopTablet}px`,marginBottom:"linked"===t.marginTypeTablet?`${t.marginTablet}px`:`${t.marginBottomTablet}px`}),L&&(M={fontSize:t.fontSizeMobile?`${t.fontSizeMobile}px`:void 0},S={textAlign:t.alignMobile,paddingTop:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingTopMobile}px`,paddingRight:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingRightMobile}px`,paddingBottom:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingBottomMobile}px`,paddingLeft:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingLeftMobile}px`,marginTop:"linked"===t.marginTypeMobile?`${t.marginMobile}px`:`${t.marginTopMobile}px`,marginBottom:"linked"===t.marginTypeMobile?`${t.marginMobile}px`:`${t.marginBottomMobile}px`}),t.textShadow&&(B={textShadow:`${t.textShadowHorizontal}px ${t.textShadowVertical}px ${t.textShadowBlur}px ${g()(t.textShadowColor?t.textShadowColor:"#000000",0<=t.textShadowColorOpacity?t.textShadowColorOpacity||1e-5:1)}`});const H=(0,f.omitBy)({color:t.headingColor,...M,fontFamily:t.fontFamily||void 0,fontWeight:"regular"===t.fontVariant?"normal":t.fontVariant,fontStyle:t.fontStyle||void 0,textTransform:t.textTransform||void 0,lineHeight:(3<t.lineHeight?t.lineHeight+"px":t.lineHeight)||void 0,letterSpacing:t.letterSpacing&&`${t.letterSpacing}px`,...S,...B},(e=>{var t;return null==e||null===(t=e.includes)||void 0===t?void 0:t.call(e,"undefined")})),N=(0,s.useBlockProps)({id:t.id,style:H});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)("style",null,`#${t.id} mark, #${t.id} .highlight {\n\t\t\t\t\t\tcolor: ${t.highlightColor};\n\t\t\t\t\t\tbackground: ${t.highlightBackground};\n\t\t\t\t\t}`),t.fontFamily&&(0,n.createElement)(y.Z,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&[t.fontVariant+("italic"===t.fontStyle?":i":"")]}]}),(0,n.createElement)(T,{attributes:t,setAttributes:o}),(0,n.createElement)(V,{attributes:t,setAttributes:o}),(0,n.createElement)(s.RichText,(0,v.Z)({identifier:"content",value:t.content,placeholder:(0,l.__)("Write heading…","otter-blocks"),tagName:t.tag,formattingControls:["bold","italic","link","strikethrough","highlight"],allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/highlight","themeisle-blocks/count-animation","themeisle-blocks/typing-animation"],onMerge:c,onSplit:i?function(e,t){o({content:e});for(var l=arguments.length,r=new Array(l>2?l-2:0),n=2;n<l;n++)r[n-2]=arguments[n];i([...r,(0,a.createBlock)("core/paragraph",{content:t})])}:void 0,onRemove:()=>d([]),onChange:e=>{o({content:e})}},N)))},save:e=>{let{attributes:t}=e;const o=s.useBlockProps.save({id:t.id,className:t.id});return(0,n.createElement)(s.RichText.Content,(0,v.Z)({tagName:t.tag,value:t.content},o))}})},9078:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/button","title":"Button","category":"themeisle-blocks","description":"Prompt visitors to take action with a button group. Powered by Otter.","keywords":["button","buttons","button group"],"parent":["themeisle-blocks/button-group"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"text":{"type":"string","source":"html","selector":"span"},"link":{"type":"string","source":"attribute","selector":"a","attribute":"href"},"newTab":{"type":"boolean","default":false},"color":{"type":"string"},"background":{"type":"string"},"backgroundGradient":{"type":"string"},"border":{"type":"string"},"hoverColor":{"type":"string"},"hoverBackground":{"type":"string"},"hoverBackgroundGradient":{"type":"string"},"hoverBorder":{"type":"string"},"borderSize":{"type":"number"},"borderRadius":{"type":"number"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":1},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"hoverBoxShadowColor":{"type":"string"},"hoverBoxShadowColorOpacity":{"type":"number","default":50},"hoverBoxShadowBlur":{"type":"number","default":5},"hoverBoxShadowSpread":{"type":"number","default":1},"hoverBoxShadowHorizontal":{"type":"number","default":0},"hoverBoxShadowVertical":{"type":"number","default":0},"iconType":{"type":"string","default":"none"},"library":{"type":"string","default":"fontawesome"},"prefix":{"type":"string"},"icon":{"type":"string"}},"supports":{"reusable":false},"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"}]}'),n=o(340),c=o(9307),i=o(5711),s=o(4184),d=o.n(s),m=o(80),u=o.n(m),b=o(2175),p=o(9818),g=o(8504),h=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,c.createElement)(b.BlockControls,null,(0,c.createElement)(g.Z,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))},k=o(5609),v=o(2136);const y=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var f=e=>{let{attributes:t,setAttributes:o}=e;const[a,r]=(0,c.useState)(!1),n=()=>(0,c.createElement)(k.ButtonGroup,null,(0,c.createElement)(k.Button,{isSmall:!0,isSecondary:a,isPrimary:!a,onClick:()=>r(!1)},(0,l.__)("Normal","otter-blocks")),(0,c.createElement)(k.Button,{isSmall:!0,isSecondary:!a,isPrimary:a,onClick:()=>r(!0)},(0,l.__)("Hover","otter-blocks")));return(0,c.createElement)(b.InspectorControls,null,(0,c.createElement)(k.PanelBody,{title:(0,l.__)("Color","otter-blocks")},(0,c.createElement)(n,null),a?(0,c.createElement)(c.Fragment,{key:"with-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Hover Color","otter-blocks"),colorValue:t.hoverColor,onColorChange:e=>o({hoverColor:e})}),(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Hover Background","otter-blocks"),colorValue:t.hoverBackground,gradientValue:t.hoverBackgroundGradient,onColorChange:e=>o({hoverBackground:e}),onGradientChange:e=>o({hoverBackgroundGradient:e})})):(0,c.createElement)(c.Fragment,{key:"without-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.color,onColorChange:e=>o({color:e})}),(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:t.background,gradientValue:t.backgroundGradient,onColorChange:e=>o({background:e}),onGradientChange:e=>o({backgroundGradient:e})}))),(0,c.createElement)(k.PanelBody,{title:(0,l.__)("Border & Box Shadow","otter-blocks"),initialOpen:!1},(0,c.createElement)(n,null),a?(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Hover Border","otter-blocks"),colorValue:t.hoverBorder,onColorChange:e=>o({hoverBorder:e})}):(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.border,onColorChange:e=>o({border:e})}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),min:0,max:10}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),min:0,max:100}),(0,c.createElement)(v.Z,{label:(0,l.__)("Box Shadow","otter-blocks"),attributes:t,setAttributes:o,resetValues:{boxShadow:!1,boxShadowColor:void 0,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:void 0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0},onClick:()=>o({boxShadow:!0})},(0,c.createElement)(n,null),a?(0,c.createElement)(c.Fragment,{key:"with-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color on Hover","otter-blocks"),colorValue:t.hoverBoxShadowColor,onColorChange:e=>o({hoverBoxShadowColor:e})}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.hoverBoxShadowColorOpacity,onChange:e=>o({hoverBoxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.hoverBoxShadowBlur,onChange:e=>o({hoverBoxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.hoverBoxShadowSpread,onChange:e=>o({hoverBoxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.hoverBoxShadowHorizontal,onChange:e=>o({hoverBoxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.hoverBoxShadowVertical,onChange:e=>o({hoverBoxShadowVertical:e}),min:-100,max:100})):(0,c.createElement)(c.Fragment,{key:"without-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))),(0,c.createElement)(k.PanelBody,{title:(0,l.__)("Icon Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.SelectControl,{label:(0,l.__)("Icon Position","otter-blocks"),value:t.iconType,options:[{label:(0,l.__)("No Icon","otter-blocks"),value:"none"},{label:(0,l.__)("Left","otter-blocks"),value:"left"},{label:(0,l.__)("Right","otter-blocks"),value:"right"},{label:(0,l.__)("Icon Only","otter-blocks"),value:"only"}],onChange:e=>o({iconType:e})}),"none"!==t.iconType&&(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(k.Placeholder,null,(0,c.createElement)(k.Spinner,null))},(0,c.createElement)(y,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.library,prefix:t.prefix,icon:t.icon,changeLibrary:e=>{o({library:e,icon:void 0,prefix:"fab"})},onChange:e=>{o("object"==typeof e?{icon:e.name,prefix:e.prefix}:{icon:e})}}))))},_=o(48),w=o(5225);const{attributes:C}=r;const{name:E}=r;(0,a.registerBlockType)(E,{...r,title:(0,l.__)("Button","otter-blocks"),description:(0,l.__)("Prompt visitors to take action with a button group. Powered by Otter.","otter-blocks"),icon:n.buttonsIcon,keywords:["button","buttons","button group"],styles:[{name:"fill",label:(0,l.__)("Fill","otter-blocks"),isDefault:!0},{name:"outline",label:(0,l.__)("Outline","otter-blocks")}],edit:e=>{let{attributes:t,setAttributes:o,isSelected:a,clientId:r}=e;const{hasParent:n,parentAttributes:s}=(0,p.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),l=t(o(r));return{hasParent:!!l,parentAttributes:l?l.attributes:{}}}),[]);(0,c.useEffect)((()=>{const e=(0,w.WX)(r,C);return()=>e(t.id)}),[]);let m={},g={};t.boxShadow&&(m={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${u()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`}),n&&(g={paddingTop:`${s.paddingTopBottom}px`,paddingBottom:`${s.paddingTopBottom}px`,paddingLeft:`${s.paddingLeftRight}px`,paddingRight:`${s.paddingLeftRight}px`,fontSize:s.fontSize&&`${s.fontSize}px`,fontFamily:s.fontFamily,fontWeight:s.fontVariant,fontStyle:s.fontStyle,textTransform:s.textTransform,lineHeight:s.lineHeight&&`${s.lineHeight}px`});const k={color:t.color,background:t.background||t.backgroundGradient,border:`${t.borderSize}px solid ${t.border}`,borderRadius:t.borderRadius,...m,...g},v=i.iv`
|
7 |
&:hover {
|
8 |
color: ${t.hoverColor} !important;
|
9 |
background: ${t.hoverBackground||t.hoverBackgroundGradient} !important;
|
@@ -14,13 +14,13 @@
|
|
14 |
&:hover svg {
|
15 |
fill: ${t.hoverColor} !important;
|
16 |
}
|
17 |
-
`,y={fill:t.color,width:s.fontSize&&`${s.fontSize}px`},E=_.ZP.icons[t.icon],x=(0,b.useBlockProps)({id:t.id,className:"wp-block-button",style:{}});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(h,{attributes:t,setAttributes:o,isSelected:a}),(0,i.tZ)(f,{attributes:t,setAttributes:o}),(0,i.tZ)("div",x,"none"!==t.iconType?(0,i.tZ)("div",{className:"wp-block-button__link",style:k,css:v},("left"===t.iconType||"only"===t.iconType)&&("themeisle-icons"===t.library&&t.icon?(0,i.tZ)(E,{className:d()({"margin-right":"left"===t.iconType}),style:y}):(0,i.tZ)("i",{className:d()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.text,onChange:e=>o({text:e}),tagName:"div",withoutInteractiveFormatting:!0}),"right"===t.iconType&&("themeisle-icons"===t.library&&t.icon?(0,i.tZ)(E,{className:"margin-left",style:y}):(0,i.tZ)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))):(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.text,onChange:e=>o({text:e}),tagName:"div",withoutInteractiveFormatting:!0,className:"wp-block-button__link",style:k,css:v})))},save:e=>{let{attributes:t}=e;const o=_.ZP.icons[t.icon],l=b.useBlockProps.save({id:t.id,className:"wp-block-button"});return(0,c.createElement)("div",l,(0,c.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer",className:"wp-block-button__link"},("left"===t.iconType||"only"===t.iconType)&&("themeisle-icons"===t.library&&t.icon?(0,c.createElement)(o,{className:d()({"margin-right":"left"===t.iconType})}):(0,c.createElement)("i",{className:d()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,c.createElement)(b.RichText.Content,{tagName:"span",value:t.text}),"right"===t.iconType&&("themeisle-icons"===t.library&&t.icon?(0,c.createElement)(o,{className:"margin-left"}):(0,c.createElement)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))))}})},9521:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/button-group","title":"Button Group","category":"themeisle-blocks","description":"Prompt visitors to take action with a button group. Powered by Otter.","keywords":["button","buttons","button group"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"align":{"type":"string"},"spacing":{"type":"number","default":20},"paddingTopBottom":{"type":"number"},"paddingLeftRight":{"type":"number"},"collapse":{"type":"string","default":"collapse-none"},"fontSize":{"type":"number"},"fontFamily":{"type":"string"},"fontVariant":{"type":"string"},"textTransform":{"type":"string"},"fontStyle":{"type":"string"},"lineHeight":{"type":"number"}},"editorStyle":"otter-button-group-editor","style":"otter-button-group-style"}'),n=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(2819),m=o(2175);const u={id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},b=[{attributes:u,save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"",a={fontSize:`${t.fontSize}px`,fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&`${t.lineHeight}px`};return(0,c.createElement)("div",{id:t.id,className:s()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,d.times)(t.buttons,(e=>(e=>{const o={...a,borderWidth:`${t.data[e].borderSize}px`,borderRadius:`${t.data[e].borderRadius}px`,padding:`${t.data[e].paddingTopBottom}px ${t.data[e].paddingLeftRight}px`};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:s()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`),style:o},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,c.createElement)("i",{className:s()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,c.createElement)(m.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))})(e))))}},{attributes:u,save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"",a={fontSize:`${t.fontSize}px`,fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&`${t.lineHeight}px`};return(0,c.createElement)("div",{id:t.id,className:s()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,d.times)(t.buttons,(e=>(e=>{const o={...a,borderWidth:`${t.data[e].borderSize}px`,borderRadius:`${t.data[e].borderRadius}px`,padding:`${t.data[e].paddingTopBottom}px ${t.data[e].paddingLeftRight}px`};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:s()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`),style:o,rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,c.createElement)("i",{className:s()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,c.createElement)(m.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))})(e))))}},{attributes:{...u,fontSize:{type:"number"},fontStyle:{type:"string"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""},{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""}]}},migrate:(e,t)=>{let o,l,r;return"flex-start"===e.align&&(o="left"),"center"===e.align&&(o="center"),"flex-end"===e.align&&(o="right"),e.data&&(l=(0,d.pick)(e.data[0],["paddingLeftRight","paddingTopBottom"]),1<=Object.keys(l).length&&(l=(0,d.pick)(l,Object.keys(l).filter((e=>""!==l[e])))),r=e.data.filter(((t,o)=>o<e.buttons)).map((e=>{const t=(0,d.omit)(e,["paddingLeftRight","paddingTopBottom"]);return(0,a.createBlock)("themeisle-blocks/button",{...t})}))),[{...(0,d.omit)(e,["buttons","data"]),align:o,...l},[...r,...t]]},save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"";return(0,c.createElement)("div",{id:t.id,className:s()(o,l,"wp-block-button")},(0,d.times)(t.buttons,(e=>(e=>(0,c.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:s()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`,"wp-block-button__link"),rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,c.createElement)("i",{className:s()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,c.createElement)(m.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))(e))))}}];var p=b,g=o(5988),h=o(5711),k=o(4333),v=o(9818),y=o(1150),f=o(8065),_=o(199),w=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(m.BlockControls,null,(0,c.createElement)(m.AlignmentToolbar,{value:t.align,onChange:e=>o({align:e}),alignmentControls:[{icon:y.Z,title:(0,l.__)("Align left","otter-blocks"),align:"left"},{icon:f.Z,title:(0,l.__)("Align center","otter-blocks"),align:"center"},{icon:_.Z,title:(0,l.__)("Align right","otter-blocks"),align:"right"}]}))},C=o(5609),E=o(9977),x=o(2372),T=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(C.PanelBody,{title:(0,l.__)("Spacing","otter-blocks")},(0,c.createElement)(x.Z,{label:(0,l.__)("Padding","otter-blocks"),min:0,max:100,onChange:(e,t)=>{"top"!==e&&"bottom"!==e||o({paddingTopBottom:t}),"right"!==e&&"left"!==e||o({paddingLeftRight:t})},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:t.paddingTopBottom},{label:(0,l.__)("Right","otter-blocks"),type:"right",value:t.paddingLeftRight},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:t.paddingTopBottom},{label:(0,l.__)("Left","otter-blocks"),type:"left",value:t.paddingLeftRight}]}),(0,c.createElement)(C.RangeControl,{label:(0,l.__)("Spacing","otter-blocks"),value:t.spacing,onChange:e=>o({spacing:e}),min:0,max:50}),(0,c.createElement)(C.SelectControl,{label:(0,l.__)("Collapse On","otter-blocks"),value:t.collapse,options:[{label:(0,l.__)("None","otter-blocks"),value:"collapse-none"},{label:(0,l.__)("Desktop","otter-blocks"),value:"collapse-desktop"},{label:(0,l.__)("Tablet","otter-blocks"),value:"collapse-tablet"},{label:(0,l.__)("Mobile","otter-blocks"),value:"collapse-mobile"}],onChange:e=>o({collapse:e})})),(0,c.createElement)(C.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(C.RangeControl,{label:(0,l.__)("Font Size","otter-blocks"),value:t.fontSize,onChange:e=>o({fontSize:e}),min:0,max:50}),(0,c.createElement)(E.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:void 0,fontVariant:void 0,fontStyle:void 0})},valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,c.createElement)(C.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,max:200})))},M=o(5225);const{attributes:S}=r;const{name:B}=r;(0,a.registerBlockType)(B,{...r,title:(0,l.__)("Button Group","otter-blocks"),description:(0,l.__)("Prompt visitors to take action with a button group. Powered by Otter.","otter-blocks"),icon:n.buttonsIcon,keywords:["button","buttons","button group"],deprecated:p,edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const{isViewportAvailable:a,isPreviewDesktop:r,isPreviewTablet:n,isPreviewMobile:i}=(0,v.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),d=(0,k.useViewportMatch)("large",">="),u=(0,k.useViewportMatch)("large","<="),b=(0,k.useViewportMatch)("small",">="),p=(0,k.useViewportMatch)("small","<=");(0,c.useEffect)((()=>{const e=(0,M.WX)(l,S);return()=>e(t.id)}),[]);let y=d&&!u&&b&&!p,f=!d&&!u&&b&&!p,_=!(d||u||b||p);a&&!_&&(y=r,f=n,_=i);const C=(0,m.useBlockProps)({id:t.id,className:s()("wp-block-buttons",{[`align-${t.align}`]:t.align,collapse:"collapse-desktop"===t.collapse&&(y||f||_)||"collapse-tablet"===t.collapse&&(f||_)||"collapse-mobile"===t.collapse&&_}),css:h.iv`
|
18 |
.block-editor-block-list__layout {
|
19 |
gap: ${t.spacing}px;
|
20 |
}
|
21 |
-
`});return(0,h.tZ)(c.Fragment,null,t.fontFamily&&(0,h.tZ)(g.Z,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&[t.fontVariant+("italic"===t.fontStyle?":i":"")]}]}),(0,h.tZ)(w,{attributes:t,setAttributes:o}),(0,h.tZ)(T,{attributes:t,setAttributes:o}),(0,h.tZ)("div",C,(0,h.tZ)(m.InnerBlocks,{allowedBlocks:["themeisle-blocks/button"],__experimentalMoverDirection:"horizontal",orientation:"horizontal",template:[["themeisle-blocks/button"]],renderAppender:m.InnerBlocks.DefaultAppender})))},save:e=>{let{attributes:t}=e;const o="collapse-none"!==t.collapse?t.collapse:"",l=m.useBlockProps.save({id:t.id,className:s()(o,"wp-block-buttons",{[`align-${t.align}`]:t.align})});return(0,c.createElement)("div",l,(0,c.createElement)(m.InnerBlocks.Content,null))}})},3312:function(e,t,o){o(9521),o(9078)},469:function(e,t,o){var l=o(269),a=o(5736),
|
22 |
--fontSizeTitle: ${x=o.fontSizeTitle,x?`${x}px`:x};
|
23 |
-
`;var x;const T=(0,m.useBlockProps)({id:o.id,css:E});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(u,{attributes:o,setAttributes:l,onHeightChange:w}),(0,i.tZ)("div",T,"default"===o.titleStyle&&(0,i.tZ)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.tZ)(m.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:r?(0,a.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:C,multiline:!1,style:{color:o.titleColor}})),(0,i.tZ)(d.ResizableBox,{size:{height:o.height,width:o.height},minHeight:0,maxHeight:240,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:r,onResizeStop:(e,t,l,a)=>{w(parseInt(o.height+a.height,10)),n(!0)},onResizeStart:()=>{n(!1)}},(0,i.tZ)(b,{attributes:o,progressRef:h,valueRef:k})),"bottom"===o.titleStyle&&(0,i.tZ)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.tZ)(m.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:r?(0,a.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:C,multiline:!1,style:{color:o.titleColor}}))))},save:e=>{let{attributes:t}=e;const o=m.useBlockProps.save({id:t.id,"data-percentage":t.percentage,"data-duration":t.duration,"data-height":t.height,"data-stroke-width":t.strokeWidth,"data-font-size-percent":t.fontSizePercent,"data-background-stroke":t.backgroundColor,"data-progress-stroke":t.progressColor});return(0,c.createElement)("div",o,"default"===t.titleStyle&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter__bar"}),"bottom"===t.titleStyle&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)))}})},4948:function(e,t,o){var l=o(2506),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/countdown","title":"Countdown","category":"themeisle-blocks","description":"Set a countdown for a date. Powered by Otter.","keywords":["countdown","time","counter"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"date":{"type":"string"},"exclude":{"type":"array"},"backgroundColor":{"type":"string"},"valueColor":{"type":"string"},"labelColor":{"type":"string"},"labelDistance":{"type":"number"},"gap":{"type":"number"},"gapTablet":{"type":"number"},"gapMobile":{"type":"number"},"width":{"type":"number"},"widthTablet":{"type":"number"},"widthMobile":{"type":"number"},"height":{"type":"number"},"heightTablet":{"type":"number"},"heightMobile":{"type":"number"},"borderRadius":{"type":"number","default":0},"borderRadiusType":{"type":"string","default":"linked"},"borderRadiusTopRight":{"type":"number","default":0},"borderRadiusTopLeft":{"type":"number","default":0},"borderRadiusBottomRight":{"type":"number","default":0},"borderRadiusBottomLeft":{"type":"number","default":0},"borderWidth":{"type":"number"},"borderWidthTablet":{"type":"number"},"borderWidthMobile":{"type":"number"},"borderColor":{"type":"string"},"valueFontSize":{"type":"number"},"valueFontSizeTablet":{"type":"number"},"valueFontSizeMobile":{"type":"number"},"labelFontSize":{"type":"number"},"labelFontSizeTablet":{"type":"number"},"labelFontSizeMobile":{"type":"number"},"hasSeparators":{"type":"boolean"}},"supports":{"align":["wide","full"]},"editorStyle":"otter-countdown-editor","style":"otter-countdown-style","script":"otter-countdown"}'),c=o(9307),i=o(5711),s=o(2175),d=o(4333),m=o(9818),u=window.moment,b=o.n(u),p=o(5225),g=o(5609),h=o(9771),k=o(6993),v=o(2372),y=e=>{var t,o,l,r;let{attributes:n,setAttributes:i}=e;const d=(0,m.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),u=(e,t)=>{var o;i(e?{exclude:null==n||null===(o=n.exclude)||void 0===o?void 0:o.filter((e=>e!==t))}:{exclude:null!=n&&n.exclude?[...null==n?void 0:n.exclude,t]:[t]})},b=e=>{let t;return"top-right"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusTopRight),"top-left"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusTopLeft),"bottom-right"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusBottomRight),"bottom-left"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusBottomLeft),t},p={"top-right":"borderRadiusTopRight","top-left":"borderRadiusTopLeft","bottom-left":"borderRadiusBottomLeft","bottom-right":"borderRadiusBottomRight"},y=(0,h.__experimentalGetSettings)();return(0,c.createElement)(s.InspectorControls,null,(0,c.createElement)(g.PanelBody,{title:(0,a.__)("Time","otter-blocks")},(0,c.createElement)(g.Dropdown,{position:"bottom left",headerTitle:(0,a.__)("Select the date for the deadline","otter-blocks"),renderToggle:e=>{let{onToggle:t,isOpen:o}=e;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(g.Button,{onClick:t,isSecondary:!0,"aria-expanded":o},n.date?(0,h.format)(y.formats.datetime,n.date):(0,a.__)("Select Date","otter-blocks")))},renderContent:()=>(0,c.createElement)(g.DateTimePicker,{currentDate:n.date,onChange:e=>i({date:e})})})),(0,c.createElement)(g.PanelBody,{title:(0,a.__)("Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Days","otter-blocks"),checked:!(null!=n&&null!==(t=n.exclude)&&void 0!==t&&t.includes("day")),onChange:e=>u(e,"day")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Hours","otter-blocks"),checked:!(null!=n&&null!==(o=n.exclude)&&void 0!==o&&o.includes("hour")),onChange:e=>u(e,"hour")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Minutes","otter-blocks"),checked:!(null!=n&&null!==(l=n.exclude)&&void 0!==l&&l.includes("minute")),onChange:e=>u(e,"minute")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Seconds","otter-blocks"),checked:!(null!=n&&null!==(r=n.exclude)&&void 0!==r&&r.includes("second")),onChange:e=>u(e,"second")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Separators","otter-blocks"),checked:null==n?void 0:n.hasSeparators,onChange:e=>i({hasSeparators:e})}),(0,c.createElement)(k.Z,{label:(0,a.__)("Box Spacing","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.gapMobile:"Tablet"===d?n.gapTablet:n.gap,onChange:e=>{"Desktop"===d&&i({gap:Number(e)}),"Tablet"===d&&i({gapTablet:Number(e)}),"Mobile"===d&&i({gapMobile:Number(e)})},min:0,max:100})),(0,c.createElement)(k.Z,{label:(0,a.__)("Box Height","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.heightMobile:"Tablet"===d?n.heightTablet:n.height,onChange:e=>{"Desktop"===d&&i({height:Number(e)}),"Tablet"===d&&i({heightTablet:Number(e)}),"Mobile"===d&&i({heightMobile:Number(e)})},min:40,max:300})),(0,c.createElement)(k.Z,{label:(0,a.__)("Box Width","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.widthMobile:"Tablet"===d?n.widthTablet:n.width,onChange:e=>{"Desktop"===d&&i({width:Number(e)}),"Tablet"===d&&i({widthTablet:Number(e)}),"Mobile"===d&&i({widthMobile:Number(e)})},min:40,max:300})),(0,c.createElement)(k.Z,{label:(0,a.__)("Border Width","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.borderWidthMobile:"Tablet"===d?n.borderWidthTablet:n.borderWidth,onChange:e=>{"Desktop"===d&&i({borderWidth:Number(e)}),"Tablet"===d&&i({borderWidthTablet:Number(e)}),"Mobile"===d&&i({borderWidthMobile:Number(e)})},min:0,max:50})),(0,c.createElement)(k.Z,{label:(0,a.__)("Time Value Font Size","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.valueFontSizeMobile:"Tablet"===d?n.valueFontSizeTablet:n.valueFontSize,onChange:e=>{"Desktop"===d&&i({valueFontSize:Number(e)}),"Tablet"===d&&i({valueFontSizeTablet:Number(e)}),"Mobile"===d&&i({valueFontSizeMobile:Number(e)})},min:0,max:64})),(0,c.createElement)(k.Z,{label:(0,a.__)("Label Font Size","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.labelFontSizeMobile:"Tablet"===d?n.labelFontSizeTablet:n.labelFontSize,onChange:e=>{"Desktop"===d&&i({labelFontSize:Number(e)}),"Tablet"===d&&i({labelFontSizeTablet:Number(e)}),"Mobile"===d&&i({labelFontSizeMobile:Number(e)})},min:0,max:64})),(0,c.createElement)(v.Z,{label:(0,a.__)("Border Radius (%)","otter-blocks"),type:n.borderRadiusType,min:0,max:100,changeType:e=>{i({borderRadiusType:e})},onChange:(e,t)=>{"linked"===n.borderRadiusType?i({borderRadius:t}):i({[p[e]]:t})},options:[{label:(0,a.__)("Top Left","otter-blocks"),type:"top-left",value:b("top-left")},{label:(0,a.__)("Top Right","otter-blocks"),type:"top-right",value:b("top-right")},{label:(0,a.__)("Bottom Right","otter-blocks"),type:"bottom-right",value:b("bottom-right")},{label:(0,a.__)("Bottom Left","otter-blocks"),type:"bottom-left",value:b("bottom-left")}]})),(0,c.createElement)(s.PanelColorSettings,{title:(0,a.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:n.backgroundColor,onChange:e=>{i({backgroundColor:e})},label:(0,a.__)("Background","otter-blocks")},{value:n.labelColor,onChange:e=>{i({labelColor:e})},label:(0,a.__)("Label","otter-blocks")},{value:n.valueColor,onChange:e=>{i({valueColor:e})},label:(0,a.__)("Value","otter-blocks")},{value:n.borderColor,onChange:e=>{i({borderColor:e})},label:(0,a.__)("Border","otter-blocks")}]},(0,c.createElement)(s.ContrastChecker,{textColor:n.backgroundColor,backgroundColor:n.valueColor})))},f=o(4715),_=o(7462),w=o(4184),C=o.n(w);const E=e=>{let{name:t,value:o,tag:l,styles:a}=e;const r="sep"!==t?{...a.allComponents,...a.mainComponents}:a.allComponents;return(0,c.createElement)("div",{style:r,name:l,className:C()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,c.createElement)("div",{style:a.value,className:"otter-countdown__value"},o),(0,c.createElement)("div",{style:a.label,className:"otter-countdown__label"},t))};var x=e=>{let{time:t,hasSeparators:o,styles:l}=e;const a=o?(0,f.S3)(t,{name:"sep",value:":",tag:"separator"}):t,r=null==a?void 0:a.map(((e,t)=>(0,c.createElement)(E,(0,_.Z)({},e,{key:t,styles:l}))));return void 0!==t?(0,c.createElement)("div",{className:"otter-countdown__container"},(0,c.createElement)("div",{style:l.display,className:"otter-countdown__display"},r)):(0,c.createElement)(c.Fragment,null)};const{attributes:T}=n,M=e=>e?`${e}px`:e;const S=e=>{let{name:t,value:o,tag:l}=e;return(0,c.createElement)("div",{name:l,className:C()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,c.createElement)("div",{className:"otter-countdown__value"},o),(0,c.createElement)("div",{className:"otter-countdown__label"},t))},B=e=>{let{time:t,hasSeparators:o}=e;const l=o?(0,f.S3)(t,{name:"sep",value:":",tag:"separator"}):t,a=null==l?void 0:l.map(((e,t)=>(0,c.createElement)(S,(0,_.Z)({},e,{key:t}))));return void 0!==t?(0,c.createElement)("div",{className:"otter-countdown__container"},(0,c.createElement)("div",{className:"otter-countdown__display"},a)):(0,c.createElement)(c.Fragment,null)};const{name:z}=n;(0,r.registerBlockType)(z,{...n,title:(0,a.__)("Countdown","otter-blocks"),description:(0,a.__)("Set a countdown for a date. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["countdown","time","counter"],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const[a,r]=(0,c.useState)(0);(0,c.useEffect)((()=>{const e=(0,p.WX)(l,T);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{const e=setInterval((()=>{if(t.date){let e=t.date+(0,f.EP)();e=1e3*b()(e).unix(),r(new Date(e)-new Date)}}),500);return()=>{clearInterval(e)}}),[t.date]);const{isViewportAvailable:n,isPreviewDesktop:u,isPreviewTablet:g,isPreviewMobile:h}=(0,m.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),k=(0,d.useViewportMatch)("large",">="),v=(0,d.useViewportMatch)("large","<="),_=(0,d.useViewportMatch)("small",">="),w=(0,d.useViewportMatch)("small","<=");let C,E=k&&!v&&_&&!w,S=!k&&!v&&_&&!w,B=!(k||v||_||w);n&&!B&&(E=u,S=g,B=h),S?C={value:{fontSize:M(null==t?void 0:t.valueFontSizeTablet)},label:{fontSize:M(null==t?void 0:t.labelFontSizeTablet)},display:{gap:M(t.gapTablet)},allComponents:{height:M(null==t?void 0:t.heightTablet)},mainComponents:{width:M(null==t?void 0:t.widthTablet),borderWidth:M(t.borderWidthTablet)}}:B?C={value:{fontSize:M(t.valueFontSizeMobile)},label:{fontSize:M(t.labelFontSizeMobile)},display:{gap:M(t.gapMobile)},allComponents:{height:M(null==t?void 0:t.heightMobile)},mainComponents:{width:M(null==t?void 0:t.widthMobile),borderWidth:M(t.borderWidthMobile)}}:E&&(C={value:{fontSize:M(t.valueFontSize)},label:{fontSize:M(t.labelFontSize)},display:{gap:M(t.gap)},allComponents:{height:M(t.height)},mainComponents:{width:M(t.width),borderWidth:M(t.borderWidth)}});const z="linked"===t.borderRadiusType?t.borderRadius+"%":`${t.borderRadiusTopLeft}% ${t.borderRadiusTopRight}% ${t.borderRadiusBottomRight}% ${t.borderRadiusBottomLeft}%`,P=i.iv`
|
24 |
--backgroundColor: ${t.backgroundColor};
|
25 |
--borderColor: ${t.borderColor};
|
26 |
--borderRadius: ${z};
|
@@ -32,40 +32,40 @@
|
|
32 |
.otter-countdown__display-area .otter-countdown__label {
|
33 |
color: ${t.labelColor};
|
34 |
}
|
35 |
-
`,V=(0,s.useBlockProps)({id:t.id,css:P});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(y,{attributes:t,setAttributes:o}),(0,i.tZ)("div",V,(0,i.tZ)(x,{time:(0,f.Mg)(a,{exclude:null==t?void 0:t.exclude}),styles:C,hasSeparators:t.hasSeparators})))},save:e=>{let{attributes:t}=e;const o=s.useBlockProps.save({id:t.id,"data-date":t.date});return(0,c.createElement)("div",o,(0,c.createElement)(B,{time:(0,f.Mg)(0,{exclude:null==t?void 0:t.exclude}),hasSeparators:null==t?void 0:t.hasSeparators}))}})},9799:function(e,t,o){var l=o(269),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/flip","title":"Flip Card","category":"themeisle-blocks","description":"Make a card with a flip effect. Powered by Otter.","keywords":["flip card","container","animation"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"isInverted":{"type":"boolean"},"title":{"type":"string"},"description":{"type":"string"},"animType":{"type":"string","default":"flipY"},"width":{"type":"number"},"height":{"type":"number"},"padding":{"type":"number"},"borderWidth":{"type":"string"},"borderColor":{"type":"string"},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"frontVerticalAlign":{"type":"string"},"frontHorizontalAlign":{"type":"string"},"backVerticalAlign":{"type":"string"},"frontMedia":{"type":"object"},"frontMediaWidth":{"type":"number"},"frontMediaHeight":{"type":"number"},"frontBackgroundImage":{"type":"object"},"frontBackgroundType":{"type":"string","default":"color"},"frontBackgroundColor":{"type":"string"},"frontBackgroundGradient":{"type":"string"},"frontBackgroundPosition":{"type":"object"},"frontBackgroundRepeat":{"type":"string"},"frontBackgroundAttachment":{"type":"string"},"frontBackgroundSize":{"type":"string"},"backBackgroundImage":{"type":"object"},"backBackgroundType":{"type":"string","default":"color"},"backBackgroundColor":{"type":"string"},"backBackgroundGradient":{"type":"string"},"backBackgroundPosition":{"type":"object"},"backBackgroundRepeat":{"type":"string"},"backBackgroundSize":{"type":"string"},"backBackgroundAttachment":{"type":"string"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"titleFontSize":{"type":"number"},"descriptionFontSize":{"type":"number"},"titleColor":{"type":"string"},"descriptionColor":{"type":"string"}},"editorStyle":"otter-flip-editor","style":"otter-flip-style"}'),c=o(9307),i=o(4184),s=o.n(i),d=o(5711),m=o(2175),u=o(5609),b=e=>{let{attributes:t,setAttributes:o,isFliped:l}=e;const r=m.__experimentalBlockAlignmentMatrixControl||m.__experimentalBlockAlignmentMatrixToolbar;return(0,c.createElement)(m.BlockControls,null,(!t.isInverted&&!1===l||t.isInverted&&l)&&(0,c.createElement)(u.Toolbar,null,(0,c.createElement)(r,{label:(0,a.__)("Change front side content position","otter-blocks"),value:t.frontAlign,onChange:e=>o({frontAlign:e})})))},p=o(2819),g=o(2136),h=o(5452),k=e=>{var t;let{attributes:o,setAttributes:l}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Width","otter-blocks"),help:(0,a.__)("Width of the container. Make sure that the width match the size of your content.","otter-blocks"),value:o.width,onChange:e=>l({width:e}),min:0,max:1200,allowReset:!0}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Height","otter-blocks"),help:(0,a.__)("Height of the container. Make sure that the height match the size of your content.","otter-blocks"),value:o.height,onChange:e=>l({height:e}),min:0,max:1200,allowReset:!0}),(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Invert the sides","otter-blocks"),checked:o.isInverted,onChange:e=>l({isInverted:e}),help:(0,a.__)("Use this to display the back side first.","otter-blocks")})),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Front","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.BaseControl,{label:(0,a.__)("Media Image","otter-blocks"),help:(0,a.__)("Set an image as showcase.","otter-blocks")},null!==(t=o.frontMedia)&&void 0!==t&&t.url?(0,c.createElement)(u.BaseControl,null,(0,c.createElement)("img",{src:o.frontMedia.url,alt:o.frontMedia.alt,style:{border:"2px solid var( --wp-admin-theme-color)",maxHeight:"250px"}}),(0,c.createElement)(u.Button,{isSecondary:!0,onClick:()=>l({frontMedia:void 0})},(0,a.__)("Remove image","otter-blocks"))):(0,c.createElement)(m.MediaPlaceholder,{labels:{title:(0,a.__)("Media Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:o.frontMedia,onSelect:e=>l({frontMedia:(0,p.pick)(e,["id","alt","url"])})})),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Media Width","otter-blocks"),value:o.frontMediaWidth,onChange:e=>l({frontMediaWidth:e}),min:0,max:1e3,allowReset:!0}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Media Height","otter-blocks"),value:o.frontMediaHeight,onChange:e=>l({frontMediaHeight:e}),min:0,max:1e3,allowReset:!0}),(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Vertical Align","otter-blocks"),value:o.frontVerticalAlign,options:[{label:(0,a.__)("Default","otter-blocks"),value:""},{label:(0,a.__)("Top","otter-blocks"),value:"flex-start"},{label:(0,a.__)("Center","otter-blocks"),value:"center"},{label:(0,a.__)("Bottom","otter-blocks"),value:"flex-end"}],onChange:e=>l({frontVerticalAlign:e})}),(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Horizontal Align","otter-blocks"),value:o.frontHorizontalAlign,options:[{label:(0,a.__)("Default","otter-blocks"),value:""},{label:(0,a.__)("Left","otter-blocks"),value:"flex-start"},{label:(0,a.__)("Center","otter-blocks"),value:"center"},{label:(0,a.__)("Right","otter-blocks"),value:"flex-end"}],onChange:e=>l({frontHorizontalAlign:e})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Title Font Size","otter-blocks"),value:o.titleFontSize,onChange:e=>l({titleFontSize:e}),min:0,max:50,allowReset:!0}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Description Font Size","otter-blocks"),value:o.descriptionFontSize,onChange:e=>l({descriptionFontSize:e}),min:0,max:50,allowReset:!0}),(0,c.createElement)(h.Z,{backgroundType:o.frontBackgroundType,backgroundColor:o.frontBackgroundColor,image:o.frontBackgroundImage,gradient:o.frontBackgroundGradient,focalPoint:o.frontBackgroundPosition,backgroundAttachment:o.frontBackgroundAttachment,backgroundRepeat:o.frontBackgroundRepeat,backgroundSize:o.frontBackgroundSize,changeBackgroundType:e=>l({frontBackgroundType:e}),changeImage:e=>{l({frontBackgroundImage:(0,p.pick)(e,["id","url"])})},removeImage:()=>l({frontBackgroundImage:void 0}),changeColor:e=>l({frontBackgroundColor:e}),changeGradient:e=>l({frontBackgroundGradient:e}),changeBackgroundAttachment:e=>l({frontBackgroundAttachment:e}),changeBackgroundRepeat:e=>l({frontBackgroundRepeat:e}),changeFocalPoint:e=>l({frontBackgroundPosition:e}),changeBackgroundSize:e=>l({frontBackgroundSize:e})})),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Back","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.Z,{backgroundType:o.backBackgroundType,backgroundColor:o.backBackgroundColor,image:o.backBackgroundImage,gradient:o.backBackgroundGradient,focalPoint:o.backBackgroundPosition,backgroundAttachment:o.backBackgroundAttachment,backgroundRepeat:o.backBackgroundRepeat,backgroundSize:o.backBackgroundSize,changeBackgroundType:e=>l({backBackgroundType:e}),changeImage:e=>{l({backBackgroundImage:(0,p.pick)(e,["id","url"])})},removeImage:()=>l({backBackgroundImage:void 0}),changeColor:e=>l({backBackgroundColor:e}),changeGradient:e=>l({backBackgroundGradient:e}),changeBackgroundAttachment:e=>l({backBackgroundAttachment:e}),changeBackgroundRepeat:e=>l({backBackgroundRepeat:e}),changeFocalPoint:e=>l({backBackgroundPosition:e}),changeBackgroundSize:e=>l({backBackgroundSize:e})}),(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Vertical Align","otter-blocks"),value:o.backVerticalAlign,options:[{label:(0,a.__)("Default","otter-blocks"),value:""},{label:(0,a.__)("Top","otter-blocks"),value:"flex-start"},{label:(0,a.__)("Center","otter-blocks"),value:"center"},{label:(0,a.__)("Bottom","otter-blocks"),value:"flex-end"}],onChange:e=>l({backVerticalAlign:e})})),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Style","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Flip Type","otter-blocks"),value:o.animType,options:[{label:(0,a.__)("Bottom to Top","otter-blocks"),value:"flipX"},{label:(0,a.__)("Left to right","otter-blocks"),value:"flipY"}],onChange:e=>l({animType:e})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Padding","otter-blocks"),value:o.padding,onChange:e=>l({padding:e}),min:0,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Border Width","otter-blocks"),value:o.borderWidth,onChange:e=>l({borderWidth:e}),min:0,max:50}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Border Radius","otter-blocks"),value:o.borderRadius,onChange:e=>l({borderRadius:e}),min:0,max:50})),(0,c.createElement)(m.PanelColorSettings,{title:(0,a.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:o.borderColor,onChange:e=>l({borderColor:e}),label:(0,a.__)("Border Color","otter-blocks")},{value:o.titleColor,onChange:e=>l({titleColor:e}),label:(0,a.__)("Title Color","otter-blocks")},{value:o.descriptionColor,onChange:e=>l({descriptionColor:e}),label:(0,a.__)("Description Color","otter-blocks")}]}),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Box Shadow","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Shadow Properties","otter-blocks"),checked:o.boxShadow,onChange:e=>l({boxShadow:e})}),o.boxShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Color","otter-blocks"),colorValue:o.boxShadowColor,onColorChange:e=>{var t,a;l({boxShadowColor:100>o.boxShadowColorOpacity&&null!==(t=o.boxShadowColor)&&void 0!==t&&t.includes("var(")?getComputedStyle(document.documentElement,null).getPropertyValue(null==e||null===(a=e.replace("var(",""))||void 0===a?void 0:a.replace(")","")):e})}}),(0,c.createElement)(g.Z,{label:(0,a.__)("Shadow Properties","otter-blocks")},(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Opacity","otter-blocks"),value:o.boxShadowColorOpacity,onChange:e=>{var t;const a={boxShadowColorOpacity:e};100>e&&null!==(t=o.boxShadowColor)&&void 0!==t&&t.includes("var(")&&(a.boxShadowColor=getComputedStyle(document.documentElement,null).getPropertyValue(o.boxShadowColor.replace("var(","").replace(")",""))),l(a)},min:0,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Blur","otter-blocks"),value:o.boxShadowBlur,onChange:e=>l({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Horizontal","otter-blocks"),value:o.boxShadowHorizontal,onChange:e=>l({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Vertical","otter-blocks"),value:o.boxShadowVertical,onChange:e=>l({boxShadowVertical:e}),min:-100,max:100})))))},v=o(5225);const{attributes:y}=n;const{name:f}=n;(0,r.registerBlockType)(f,{...n,title:(0,a.__)("Flip Card","otter-blocks"),description:(0,a.__)("Make a card with a flip effect. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["flip card","container","animation"],edit:e=>{var t,o,l,r,n,i,p,g,h,f;let{attributes:_,setAttributes:w,clientId:C,isSelected:E}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(C,y);return()=>e(_.id)}),[_.id]);const[x,T]=(0,c.useState)(!1),M=d.iv`
|
36 |
-
${
|
37 |
-
${
|
38 |
-
${
|
39 |
-
--borderColor: ${
|
40 |
-
${
|
41 |
-
${"color"===
|
42 |
-
${"gradient"===
|
43 |
-
${"image"===
|
44 |
-
${"color"===
|
45 |
-
${"gradient"===
|
46 |
-
${"image"===
|
47 |
-
${
|
48 |
-
${
|
49 |
-
--frontVerticalAlign: ${
|
50 |
-
--frontHorizontalAlign: ${
|
51 |
-
--backVerticalAlign: ${
|
52 |
-
${
|
53 |
-
${
|
54 |
|
55 |
.o-flip-inner {
|
56 |
transform: ${x?"var( --flip-anim )":"unset"};
|
57 |
}
|
58 |
|
59 |
.o-flip-front .o-flip-content h3 {
|
60 |
-
color: ${
|
61 |
-
${
|
62 |
}
|
63 |
|
64 |
.o-flip-front .o-flip-content p {
|
65 |
-
color: ${
|
66 |
-
${
|
67 |
}
|
68 |
-
`,S=(0,m.useBlockProps)({id:_.id,className:s()({flipX:"flipX"===_.animType,flipY:"flipY"===_.animType}),css:M});return(0,d.tZ)(c.Fragment,null,(0,d.tZ)(b,{attributes:_,setAttributes:w,isFliped:x}),(0,d.tZ)(k,{attributes:_,setAttributes:w}),(0,d.tZ)("div",S,(0,d.tZ)("div",{className:s()("o-flip-inner",{invert:_.isInverted})},(0,d.tZ)("div",{className:"o-flip-front"},(0,d.tZ)("div",{className:"o-flip-content"},(null===(h=_.frontMedia)||void 0===h?void 0:h.url)&&(0,d.tZ)("img",{className:"o-img",srcSet:null===(f=_.frontMedia)||void 0===f?void 0:f.url}),(0,d.tZ)(m.RichText,{tagName:"h3",value:_.title,onChange:e=>w({title:e}),placeholder:(0,a.__)("Insert a title","otter-blocks")}),(0,d.tZ)(m.RichText,{tagName:"p",value:_.description,onChange:e=>w({description:e}),placeholder:(0,a.__)("Insert a description","otter-blocks")}))),(0,d.tZ)("div",{className:"o-flip-back"},(0,d.tZ)(m.InnerBlocks,{renderAppender:E?m.InnerBlocks.ButtonBlockAppender:""}))),E&&(0,d.tZ)("div",{className:"o-switcher"},(0,d.tZ)(u.Button,{isPrimary:!0,onClick:()=>T(!x)},x?(0,a.__)("Flip to front","otter-blocks"):(0,a.__)("Flip to back","otter-blocks")))))},save:e=>{var t,o,l,a;let{attributes:r}=e;const n=m.useBlockProps.save({id:r.id,className:s()("anim",{flipX:"flipX"===r.animType,flipY:"flipY"===r.animType})});return(0,c.createElement)("div",n,(0,c.createElement)("div",{className:s()("o-flip-inner",{invert:r.isInverted})},(0,c.createElement)("div",{className:"o-flip-front"},(0,c.createElement)("div",{className:"o-flip-content"},(null===(t=r.frontMedia)||void 0===t?void 0:t.url)&&(0,c.createElement)("img",{className:"o-img",src:null===(o=r.frontMedia)||void 0===o?void 0:o.url,srcSet:null===(l=r.frontMedia)||void 0===l?void 0:l.url,alt:null===(a=r.frontMedia)||void 0===a?void 0:a.alt}),(0,c.createElement)(m.RichText.Content,{tagName:"h3",value:r.title}),(0,c.createElement)(m.RichText.Content,{tagName:"p",value:r.description}))),(0,c.createElement)("div",{className:"o-flip-back"},(0,c.createElement)(m.InnerBlocks.Content,null))))}})},191:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/font-awesome-icons","title":"Icon","category":"themeisle-blocks","description":"Add icons from Font Awesome or ThemeIsle Icons library to your website. Powered by Otter.","keywords":["font awesome","dashicons","icons"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"align":{"type":"string"},"library":{"type":"string","default":"fontawesome"},"prefix":{"type":"string","default":"fab"},"icon":{"type":"string","default":"themeisle"},"link":{"type":"string"},"newTab":{"type":"boolean","default":false},"fontSize":{"type":"number","default":16},"padding":{"type":"number","default":5},"margin":{"type":"number","default":5},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"backgroundColorHover":{"type":"string"},"textColorHover":{"type":"string"},"borderColorHover":{"type":"string"},"borderSize":{"type":"number","default":0},"borderRadius":{"type":"number","default":0},"isSynced":{"type":"array"}},"editorStyle":"otter-font-awesome-editor","style":"otter-font-awesome-style"}'),n=o(340),c=o(9307);const i={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}},s=[{attributes:i,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:{...i,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:{...i,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 d=s,m=o(5711),u=o(2175),b=o(8504),p=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,c.createElement)(u.BlockControls,null,(0,c.createElement)(u.AlignmentToolbar,{value:t.align,onChange:e=>o({align:e})}),(0,c.createElement)(b.Z,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))},g=o(5609),h=o(3159);const k=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var v=e=>{let{attributes:t,setAttributes:o,getValue:a}=e;const[r,n]=(0,c.useState)(!1);return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(g.PanelBody,{title:(0,l.__)("Icon","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(g.Placeholder,null,(0,c.createElement)(g.Spinner,null))},(0,c.createElement)(k,{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)(g.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)(g.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)(g.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)(g.RangeControl,{label:(0,l.__)("Margin","otter-blocks"),value:a("margin"),initialPosition:5,onChange:e=>o({margin:e}),min:0,max:100}))),(0,c.createElement)(g.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(g.ButtonGroup,null,(0,c.createElement)(g.Button,{isSmall:!0,isSecondary:r,isPrimary:!r,onClick:()=>n(!1)},(0,l.__)("Normal","otter-blocks")),(0,c.createElement)(g.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)(h.Z,{field:"backgroundColorHover",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(u.__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)(u.__experimentalColorGradientControl,{label:(0,l.__)("Hover Icon","otter-blocks"),colorValue:a("textColorHover"),onColorChange:e=>o({textColorHover:e})})),(0,c.createElement)(u.ContrastChecker,{textColor:a("textColorHover"),backgroundColor:a("backgroundColorHover")}),(0,c.createElement)(u.__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)(u.__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)(u.__experimentalColorGradientControl,{label:(0,l.__)("Icon","otter-blocks"),colorValue:a("textColor"),onColorChange:e=>o({textColor:e})})),(0,c.createElement)(u.ContrastChecker,{textColor:a("textColor"),backgroundColor:a("backgroundColor")}),(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}))),(0,c.createElement)(g.PanelBody,{title:(0,l.__)("Border Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(g.RangeControl,{label:(0,l.__)("Border Size","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),min:0,max:120}),(0,c.createElement)(g.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),min:0,max:100})))},y=o(48),f=o(5225);const{attributes:_}=r;const{name:w}=r;(0,a.registerBlockType)(w,{...r,title:(0,l.__)("Icon","otter-blocks"),description:(0,l.__)("Add icons from Font Awesome or ThemeIsle Icons library to your website. Powered by Otter.","otter-blocks"),icon:n.faIcon,keywords:["font awesome","dashicons","icons"],deprecated:d,edit:e=>{let{name:t,attributes:o,setAttributes:l,isSelected:a,clientId:r}=e;(0,c.useEffect)((()=>{const e=(0,f.WX)(r,_);return()=>e(o.id)}),[o.id]);const n=y.ZP.icons[o.icon],i=e=>(0,f.Ih)({name:t,field:e,defaultAttributes:_,attributes:o}),s=m.iv`
|
69 |
--align: ${o.align};
|
70 |
--borderColor: ${o.borderColor};
|
71 |
${void 0!==o.borderSize&&`--borderSize: ${o.borderSize}px;`}
|
@@ -100,29 +100,29 @@
|
|
100 |
.wp-block-themeisle-blocks-font-awesome-icons-container:hover svg {
|
101 |
fill: ${i("textColorHover")};
|
102 |
}
|
103 |
-
`,d=(0,u.useBlockProps)({id:o.id,css:s});return(0,m.tZ)(c.Fragment,null,(0,m.tZ)(p,{attributes:o,setAttributes:l,isSelected:a}),(0,m.tZ)(v,{attributes:o,setAttributes:l,getValue:i}),(0,m.tZ)("p",d,(0,m.tZ)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},"themeisle-icons"===o.library?(0,m.tZ)(n,null):(0,m.tZ)("i",{className:`${o.prefix} fa-${o.icon}`}))))},save:e=>{let{attributes:t}=e;const o=y.ZP.icons[t.icon],l=u.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}`})))}})},4384:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form","title":"Form","category":"themeisle-blocks","description":"Display a form for your clients. Powered by Otter.","keywords":["business","form","email"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"subject":{"type":"string"},"emailTo":{"type":"string"},"optionName":{"type":"string"},"hasCaptcha":{"type":"boolean"},"provider":{"type":"string","default":""},"apiKey":{"type":"string"},"listId":{"type":"string"},"action":{"type":"string","default":"subscribe"}},"supports":{"align":["wide","full"]},"editorStyle":"otter-form-editor","style":"otter-form-style","script":"otter-form"}'),n=o(340),c=o(9307),i=o(2819),s=window.wp.api,d=o.n(s),m=o(2175),u=o(9818),b=o(5225),p=o(5609),g=e=>{let{attributes:t,setAttributes:o}=e;const{createNotice:a}=(0,u.dispatch)("core/notices"),[r,n]=(0,c.useState)(""),[i,s]=(0,c.useState)(""),[b,g]=(0,c.useState)(!0),[h,k]=(0,c.useState)([{label:(0,l.__)("None","otter-blocks"),value:""}]),[v,y]=(0,c.useState)("loading");return(0,c.useEffect)((()=>{let e=!0;return t.optionName&&d().loadPromise.then((()=>{(new(d().models.Settings)).fetch().done((o=>{var l,a;null===(l=o.themeisle_blocks_form_emails)||void 0===l||null===(a=l.filter((e=>{let{form:o}=e;return o===t.optionName})))||void 0===a||a.forEach((t=>{e&&(s(null==t?void 0:t.email),g(!0),n(null==t?void 0:t.email))}))}))})),()=>{e=!1}}),[t.optionName]),(0,c.useEffect)((()=>{let e=!0;var o,r,n,c;return t.apiKey&&t.provider&&(o=t.provider,r=t.apiKey,n=o=>{o.splice(0,0,{label:(0,l.__)("None","otter-blocks"),value:""}),e&&(k(o),y("ready"));const r=1===o.map((e=>{let{value:t}=e;return t})).filter((e=>e===t.listId)).length;t.listId&&!r&&a("error",(0,l.__)("The current contact list is invalid! Please choose a new contact list.","otter-blocks"),{isDismissible:!0,type:"snackbar"})},c=t=>{a("error",null==t?void 0:t.error,{isDismissible:!0,type:"snackbar",id:"themeisle-form-server-error"}),e&&y("error")},window.wp.apiFetch({path:"otter/v1/integration",method:"POST",data:{provider:o,apiKey:r}}).then((e=>{if(null!=e&&e.success){var t;const o=(null==e||null===(t=e.list_id)||void 0===t?void 0:t.map((e=>{var t;return{label:e.name,value:null===(t=e.id)||void 0===t?void 0:t.toString()}})))||[];n(o)}else c(e)})).catch((e=>{console.log(e)}))),()=>{e=!1}}),[t.provider,t.apiKey]),(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Email Subject","otter-blocks"),placeholder:(0,l.__)("A new submission","otter-blocks"),value:t.subject,onChange:e=>o({subject:e}),help:(0,l.__)("Customize the email title send by this form.","otter-blocks")}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Email To","otter-blocks"),placeholder:(0,l.__)("Default is to admin site","otter-blocks"),value:i,onChange:e=>s(e),help:(0,l.__)("Send form data to another email. (Admin is default).","otter-blocks")}),(0,c.createElement)(p.Button,{isPrimary:!0,onClick:()=>{(new(d().models.Settings)).fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let r=!0,c=!1;if(null==o||o.forEach(((e,l)=>{let{form:a}=e;a===t.optionName&&(o[l].email!==i&&(o[l].email=i,c=!0),r=!1)})),r&&o.push({form:t.optionName,email:i}),r||c){const e=new(d().models.Settings)({themeisle_blocks_form_emails:o});g(!1),e.save().then((e=>{var o;null===(o=e.themeisle_blocks_form_emails)||void 0===o||o.filter((e=>{let{form:o}=e;return o===t.optionName})).forEach((e=>{g(!0),n(null==e?void 0:e.email),a("info",(0,l.__)("Email has been saved!","otter-blocks"),{isDismissible:!0,type:"snackbar"})}))}))}}))},disabled:i===r},(0,c.createElement)(c.Fragment,null,!b&&(0,c.createElement)(p.Spinner,null),(0,l.__)("Save","otter-blocks"))),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Add captcha checkbox","otter-blocks"),checked:t.hasCaptcha,onChange:e=>o({hasCaptcha:e}),help:(0,l.__)("Add Google reCaptcha V2 for protection againts bots.","otter-blocks")}),t.hasCaptcha&&(0,l.__)("You can change the API Keys in Settings > Otter","otter-blocks")),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Integration","otter-blocks"),initialOpen:!1},(0,l.__)("Add your client email to a Digital Marketing provider.","otter-blocks"),(0,c.createElement)("br",null)," ",(0,c.createElement)("br",null),(0,c.createElement)("b",null," ",(0,l.__)("You need to have at least one email field in your form. For multiple email fields, only the first will be used.","otter-blocks")," "),(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Provider","otter-blocks"),value:t.provider,options:[{label:(0,l.__)("None","otter-blocks"),value:""},{label:(0,l.__)("Mailchimp","otter-blocks"),value:"mailchimp"},{label:(0,l.__)("Sendinblue","otter-blocks"),value:"sendinblue"}],onChange:e=>{o({provider:e,apiKey:"",listId:""})}}),t.provider&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.TextControl,{label:(0,l.__)("API Key","otter-blocks"),help:(0,l.__)("You can find the key in the provider's website","otter-blocks"),value:t.apiKey,onChange:e=>{y("loading"),k([]),o({apiKey:e,listId:""})}}),t.apiKey&&2>h.length&&"loading"===v&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.Spinner,null),(0,l.__)("Fetching data from provider.","otter-blocks")),t.apiKey&&"ready"===v&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Contact List","otter-blocks"),value:t.listId,options:h,onChange:e=>o({listId:e})}),2<=(null==h?void 0:h.length)&&t.listId&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Action","otter-blocks"),value:t.action,options:[{label:(0,l.__)("None","otter-blocks"),value:""},{label:(0,l.__)("Subscribe","otter-blocks"),value:"subscribe"},{label:(0,l.__)("Submit & Subscribe","otter-blocks"),value:"submit-subscribe"}],onChange:e=>o({action:e})}),"submit-subscribe"===t.action&&(0,l.__)("This action will add the client to the contact list and send a separata email with the form data to administrator or to the email mentioned in 'Form to' field. A checkbox for data-sharing consent with third-party will be added on form.","otter-blocks"))))))},h=e=>{let{className:t,isAPILoaded:o,isAPISaved:a,isSaving:r,saveAPIKey:n,siteKey:i,secretKey:s,setSiteKey:d,setSecretKey:m}=e;return o?a?void 0:(0,c.createElement)(p.Placeholder,{icon:"admin-site",label:(0,l.__)("Google reCaptcha","otter-blocks"),instructions:(0,l.__)("A Google reCaptcha V2 API keys are required, please enter one below.","otter-blocks"),className:t},(0,c.createElement)("div",{className:"components-placeholder__actions"},(0,c.createElement)(p.TextControl,{type:"text",label:(0,l.__)("Site Key","otter-blocks"),value:i,className:"components-placeholder__input",onChange:d}),(0,c.createElement)(p.TextControl,{type:"text",label:(0,l.__)("Secret Key","otter-blocks"),value:s,className:"components-placeholder__input",onChange:m}),(0,c.createElement)(p.Button,{isPrimary:!0,type:"submit",onClick:n,isBusy:r,disabled:""===i||""===s},(0,l.__)("Save","otter-blocks"))),(0,c.createElement)("div",{className:"components-placeholder__learn-more"},(0,l.__)("You need to activate reCaptcha API.","otter-blocks")," ",(0,c.createElement)(p.ExternalLink,{href:"http://www.google.com/recaptcha/admin"},(0,l.__)("Need an API key? Get one here.","otter-blocks")))):(0,c.createElement)(c.Fragment,null,(0,c.createElement)("br",null),(0,c.createElement)(p.Placeholder,null,(0,c.createElement)("div",null,(0,c.createElement)(p.Spinner,null),(0,l.__)("Checking the API Keys for reCaptcha","otter-blocks"))))};const{attributes:k}=r;var v=o(4184),y=o.n(v);const{name:f}=r;(0,a.registerBlockType)(f,{...r,title:(0,l.__)("Form","otter-blocks"),description:(0,l.__)("Display a form for your clients. Powered by Otter.","otter-blocks"),icon:n.contactIcon,keywords:["business","form","email"],edit:e=>{let{attributes:t,setAttributes:o,clientId:r,name:n}=e;const[s,p]=(0,c.useState)(""),[v,y]=(0,c.useState)(""),[f,_]=(0,c.useState)(!1),[w,C]=(0,c.useState)(!1),E=(0,c.useRef)(null),[x,T]=(0,c.useState)(!1),{insertBlock:M,removeBlock:S}=(0,u.useDispatch)("core/block-editor"),{replaceInnerBlocks:B}=(0,u.useDispatch)("core/block-editor"),{createNotice:z}=(0,u.dispatch)("core/notices"),P=(0,u.useSelect)((e=>0<e("core/block-editor").getBlocks(r).length),[r]),{blockType:V,defaultVariation:R,variations:L}=(0,u.useSelect)((e=>{const{getBlockVariations:t,getBlockType:o,getDefaultBlockVariation:l}=e("core/blocks");return{blockType:o(n),defaultVariation:l(n,"block"),variations:t(n,"block")}}),[n]),H=(0,u.useSelect)((e=>{const{getBlock:t}=e("core/block-editor");return t(r).innerBlocks}),[]);(0,c.useEffect)((()=>{const e=(0,b.WX)(r,k);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{var e;t.id&&(0,u.select)("core/edit-widgets")?o({optionName:`widget_${t.id.slice(-8)}`}):t.id&&Boolean(window.themeisleGutenberg.isBlockEditor)&&null!==(e=(0,u.select)("core/editor"))&&void 0!==e&&e.getCurrentPostId()&&o({optionName:`${(0,u.select)("core/editor").getCurrentPostId()}_${t.id.slice(-8)}`})}),[t.id]),(0,c.useEffect)((()=>{if(H){const e=H.filter((e=>{let{name:t}=e;return"themeisle-blocks/form-nonce"===t}));if(2<=(null==e?void 0:e.length))e.slice(1).forEach((e=>{S(e.clientId,!1)}));else if(0===(null==e?void 0:e.length)&&r){const e=(0,a.createBlock)("themeisle-blocks/form-nonce");e&&(null==M||M(e,(null==H?void 0:H.length)||0,r,!1))}}}),[H]),(0,c.useEffect)((()=>{let e=!0;return d().loadPromise.then((()=>{E.current=new(d().models.Settings),e&&T(!0)})),()=>{e=!1}}),[]),(0,c.useEffect)((()=>{var e;void 0!==t.hasCaptcha&&(null==E||null===(e=E.current)||void 0===e||e.fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let a=!0,r=!1;null==o||o.forEach(((e,l)=>{let{form:n}=e;n===t.optionName&&(o[l].hasCaptcha!==t.hasCaptcha&&(r=!0),o[l].hasCaptcha=t.hasCaptcha,a=!1)})),a&&o.push({form:t.optionName,hasCaptcha:t.hasCaptcha}),(a||r)&&(new(d().models.Settings)({themeisle_blocks_form_emails:o}).save(),z("info",(0,l.__)("Form preference has been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"}))})))}),[t.hasCaptcha,E.current]),(0,c.useEffect)((()=>{let e=!0;return x&&t.hasCaptcha&&!w&&(async()=>{var t;f||null==E||null===(t=E.current)||void 0===t||t.fetch().then((t=>{_(!0),""!==t.themeisle_google_captcha_api_site_key&&""!==t.themeisle_google_captcha_api_secret_key&&e&&C(!0)}))})(),()=>{e=!1}}),[x,f,w,t.hasCaptcha]),(0,c.useEffect)((()=>{var e;null==E||null===(e=E.current)||void 0===e||e.fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let a=!0,r=!1,n=!1;null==o||o.forEach(((e,l)=>{let{form:c}=e;var i;c===t.optionName&&(null!==(i=o[l])&&void 0!==i&&i.integration||(o[l].integration={}),r=o[l].integration.provider!==t.provider||o[l].integration.apiKey!==t.apiKey||o[l].integration.listId!==t.listId||o[l].integration.action!==t.action,a=!1,n=t.apiKey&&(o[l].integration.listId!==t.listId||o[l].integration.action!==t.action),o[l].integration.provider=t.provider,o[l].integration.apiKey=t.apiKey,o[l].integration.listId=t.listId,o[l].integration.action=t.action)})),a&&o.push({form:t.optionName,integration:{provider:t.provider,apiKey:t.apiKey,listId:t.listId,action:t.action}}),(a||r)&&new(d().models.Settings)({themeisle_blocks_form_emails:o}).save().then((()=>{n&&z("info",(0,l.__)("Integration details have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})}))}))}),[t.optionName,t.provider,t.apiKey,t.listId,t.action,E.current]);const N=t.provider&&t.apiKey&&t.listId,I=(0,m.useBlockProps)({id:t.id});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(g,{attributes:t,setAttributes:o}),(0,c.createElement)("div",I,P?(0,c.createElement)("div",{className:"otter-form__container"},(0,c.createElement)(m.InnerBlocks,null),t.hasCaptcha&&(!f||!w)&&(0,c.createElement)(h,{className:"otter-form-captcha",isAPILoaded:f,isAPISaved:w,saveAPIKey:()=>{new window.wp.api.models.Settings({themeisle_google_captcha_api_site_key:s,themeisle_google_captcha_api_secret_key:v}).save().then((e=>{let t=!1;""!==e.themeisle_google_captcha_api_site_key&&""!==e.themeisle_google_captcha_api_secret_key&&(t=!0),C(t),y(""),p(""),z("info",(0,l.__)("API Keys have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})}))},siteKey:s,secretKey:v,setSiteKey:p,setSecretKey:y}),(0,c.createElement)("div",{className:"wp-block-button"},(0,c.createElement)("button",{className:"wp-block-button__link"},N&&"subscribe"===t.action?(0,l.__)("Subscribe","otter-blocks"):(0,l.__)("Submit","otter-blocks")))):(0,c.createElement)(m.__experimentalBlockVariationPicker,{icon:(0,i.get)(V,["icon","src"]),label:(0,i.get)(V,["title"]),variations:L,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R;e&&B(r,(0,a.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0})))},save:e=>{let{attributes:t}=e;const o=t.provider&&t.apiKey&&t.listId,a=m.useBlockProps.save({id:t.id,className:y()({"is-subscription":o&&"subscribe"===t.action,"can-submit-and-subscribe":o&&"submit-subscribe"===t.action,"has-captcha":t.hasCaptcha}),"data-email-subject":t.subject,"data-option-name":t.optionName});return(0,c.createElement)("div",a,(0,c.createElement)("div",{className:"otter-form__container"},(0,c.createElement)(m.InnerBlocks.Content,null),(0,c.createElement)("div",{className:"wp-block-button"},(0,c.createElement)("button",{className:"wp-block-button__link"},"subscribe"===t.action?(0,l.__)("Subscribe","otter-blocks"):(0,l.__)("Submit","otter-blocks")))))},variations:[{name:"themeisle-blocks/form-contact",description:(0,l.__)("Contact form for clients","otter-blocks"),icon:n.contactIcon,title:(0,l.__)("Contact Form","otter-blocks"),innerBlocks:[["themeisle-blocks/form-input",{label:(0,l.__)("Name","otter-blocks"),type:"text",isRequired:!0}],["themeisle-blocks/form-input",{label:(0,l.__)("Email","otter-blocks"),type:"email",isRequired:!0}],["themeisle-blocks/form-textarea",{label:(0,l.__)("Message","otter-blocks")}],["core/paragraph",{content:(0,l.__)("You agree to receive email communication from us by submitting this form and understand that your contact information will be stored with us.","otter-blocks"),fontSize:"extra-small"}]]},{name:"themeisle-blocks/form-subscribe",description:(0,l.__)("Add the clients to your subscription list","otter-blocks"),icon:n.contactIcon,title:(0,l.__)("Subscribe Form","otter-blocks"),innerBlocks:[["themeisle-blocks/form-input",{label:(0,l.__)("Name","otter-blocks"),type:"text",isRequired:!0}],["themeisle-blocks/form-input",{label:(0,l.__)("Email","otter-blocks"),type:"email",isRequired:!0}],["core/paragraph",{content:(0,l.__)("You agree to receive email communication from us by submitting this form and understand that your contact information will be stored with us.","otter-blocks"),fontSize:"extra-small"}]]}]})},6257:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-input","title":"Text Field","category":"themeisle-blocks","description":"Display a contact form for your clients.","keywords":["input","text","email"],"parent":["themeisle-blocks/form"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"type":{"type":"string","default":"text"},"label":{"type":"string"},"placeholder":{"type":"string"},"isRequired":{"type":"boolean"},"mappedName":{"type":"string"}},"supports":{"align":["wide","full"]}}'),n=o(340),c=o(9307),i=o(2175),s=o(5225),d=o(5609),m=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(d.SelectControl,{label:(0,l.__)("Field Type","otter-blocks"),value:t.type,options:[{label:(0,l.__)("Text","otter-blocks"),value:"text"},{label:(0,l.__)("Email","otter-blocks"),value:"email"},{label:(0,l.__)("Date","otter-blocks"),value:"date"},{label:(0,l.__)("Number","otter-blocks"),value:"number"}],onChange:e=>o({type:e})}),(0,c.createElement)(d.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,c.createElement)(d.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholer,onChange:e=>o({placeholder:e})}),(0,c.createElement)(d.ToggleControl,{label:(0,l.__)("Is this field required?","otter-blocks"),help:(0,l.__)("If true, the input field must be filled out before submitting the form.","otter-blocks"),checked:t.isRequired,onChange:e=>o({isRequired:e})})))};const{attributes:u}=r;const{name:b}=r;(0,a.registerBlockType)(b,{...r,title:(0,l.__)("Text Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:n.inputIcon,keywords:["input","text","email"],variations:[{name:"themeisle-blocks/form-input-email",description:(0,l.__)("Insert an email field","otter-blocks"),icon:"email",title:(0,l.__)("Email Field","otter-blocks"),attributes:{type:"email"}},{name:"themeisle-blocks/form-input-number",description:(0,l.__)("Insert a number field","otter-blocks"),icon:"calculator",title:(0,l.__)("Number Field","otter-blocks"),attributes:{type:"number"}},{name:"themeisle-blocks/form-input-date",description:(0,l.__)("Insert a date field","otter-blocks"),icon:"calendar-alt",title:(0,l.__)("Date Field","otter-blocks"),attributes:{type:"date"}}],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,s.WX)(a,u);return()=>e(t.id)}),[t.id]);const r=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m,{attributes:t,setAttributes:o}),(0,c.createElement)("div",r,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-input-label"},(0,c.createElement)(i.RichText,{placeholder:(0,l.__)("Type here…","otter-blocks"),className:"otter-form-input-label__label",value:t.label,onChange:e=>o({label:e}),tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("input",{type:t.type,placeholder:t.placeholder,name:t.id,id:t.id,required:t.isRequired,disabled:!0,className:"otter-form-input components-text-control__input"})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save();return(0,c.createElement)("div",o,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-input-label"},(0,c.createElement)(i.RichText.Content,{value:t.label,className:"otter-form-input-label__label",tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("input",{type:t.type,name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,className:"otter-form-input"}))}})},7440:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-nonce","title":"Nonce Field","category":"themeisle-blocks","description":"Protect the form from CSRF.","keywords":["protection","csrf","field"],"textdomain":"otter-blocks","attributes":{"formId":{"type":"string"}},"supports":{"align":["wide","full"],"inserter":false}}'),n=o(340),c=o(9818),i=o(9307);const{name:s}=r;(0,a.registerBlockType)(s,{...r,title:(0,l.__)("Nonce Field","otter-blocks"),description:(0,l.__)("Protect the form from CSRF.","otter-blocks"),icon:n.inputIcon,keywords:["protection","csrf","field"],edit:e=>{let{setAttributes:t,clientId:o}=e;const{parent:l}=(0,c.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:l}=e("core/block-editor");return{parent:t(l(o))}}),[]);return(0,i.useEffect)((()=>{l&&t({formId:l.attributes.id})}),[l]),null},save:()=>null})},1911:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-textarea","title":"Textarea Field","category":"themeisle-blocks","description":"Display a contact form for your clients.","keywords":["textarea","message","input"],"parent":["themeisle-blocks/form"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"label":{"type":"string"},"placeholder":{"type":"string"},"isRequired":{"type":"boolean"},"mappedName":{"type":"string"}},"supports":{"align":["wide","full"]}}'),n=o(340),c=o(9307),i=o(2175),s=o(5225),d=o(5609),m=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(d.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,c.createElement)(d.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholer,onChange:e=>o({placeholder:e})}),(0,c.createElement)(d.ToggleControl,{label:(0,l.__)("Is this field required?","otter-blocks"),help:(0,l.__)("If true, the input field must be filled out before submitting the form.","otter-blocks"),checked:t.isRequired,onChange:e=>o({isRequired:e})})))};const{attributes:u}=r;const{name:b}=r;(0,a.registerBlockType)(b,{...r,title:(0,l.__)("Textarea Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:n.inputIcon,keywords:["textarea","message","input"],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,s.WX)(a,u);return()=>e(t.id)}),[t.id]);const r=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m,{attributes:t,setAttributes:o}),(0,c.createElement)("div",r,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-textarea-label"},(0,c.createElement)(i.RichText,{placeholder:(0,l.__)("Type here…","otter-blocks"),className:"otter-form-textarea-label__label",value:t.label,onChange:e=>o({label:e}),tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("textarea",{placeholder:t.placeholder,name:t.id,id:t.id,required:t.isRequired,disabled:!0,rows:10,className:"otter-form-textarea-input components-textarea-control__input"})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save();return(0,c.createElement)("div",o,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-textarea-label"},(0,c.createElement)(i.RichText.Content,{value:t.label,className:"otter-form-textarea-label__label",tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("textarea",{name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,rows:10,className:"otter-form-textarea-input"}))}})},2608:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/google-map","title":"Google Maps","category":"themeisle-blocks","description":"Display Google Maps on your website with Google Map block. Powered by Otter.","keywords":["map","google","orbitfox"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"style":{"type":"string","default":"standard"},"location":{"type":"string","default":"La Sagrada Familia, Barcelona, Spain"},"latitude":{"type":"string"},"longitude":{"type":"string"},"type":{"type":"string","default":"roadmap"},"zoom":{"type":"number","default":15},"height":{"type":"number","default":400},"draggable":{"type":"boolean","default":true},"mapTypeControl":{"type":"boolean","default":true},"zoomControl":{"type":"boolean","default":true},"fullscreenControl":{"type":"boolean","default":true},"streetViewControl":{"type":"boolean","default":true},"markers":{"type":"array","default":[]}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-google-map-editor","style":"otter-google-map-style","script":"google-maps"}'),n=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(4586),m=o(2175),u=o(5609),b=e=>{let{api:t,error:o,isAPILoaded:a,isAPISaved:r,isSaving:n,changeAPI:i,saveAPIKey:d}=e;return a?r?void 0:(0,c.createElement)(u.Placeholder,{icon:"admin-site",label:(0,l.__)("Google Maps","otter-blocks"),instructions:(0,l.__)("A Google Maps API key is required, please enter one below.","otter-blocks")},(0,c.createElement)("div",{className:"components-placeholder__actions"},(0,c.createElement)(u.TextControl,{type:"text",placeholder:(0,l.__)("Google Maps API Key","otter-blocks"),value:t,className:s()("components-placeholder__input",{"is-invalid":o}),onChange:i}),(0,c.createElement)(u.Button,{isPrimary:!0,type:"submit",onClick:d,isBusy:n,disabled:""===t||o},(0,l.__)("Save","otter-blocks"))),(0,c.createElement)("div",{className:"components-placeholder__learn-more"},o&&(0,c.createElement)("p",null,(0,l.__)("The API key could not be validated.","otter-blocks")),(0,c.createElement)("p",null,(0,l.__)("You need to activate Maps and Places API.","otter-blocks")," ",(0,c.createElement)(u.ExternalLink,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},(0,l.__)("Need an API key? Get one here.","otter-blocks"))))):(0,c.createElement)(u.Placeholder,null,(0,c.createElement)(u.Spinner,null),(0,l.__)("Loading…","otter-blocks"))},p=o(5241),g=o(4333);const h=e=>{let{value:t,onChange:o}=e;const a=(0,g.useInstanceId)(h);(0,c.useEffect)((()=>{window.wp.oldEditor.initialize(n.current.id,{tinymce:{classic_block_editor:!0,plugins:"lists,media,paste,tabfocus,wordpress,wpautoresize,wpeditimage,wpgallery,wplink,wpdialogs,wptextpattern,wpview",toolbar1:"formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker,wp_add_media"}});const e=window.tinymce.get(n.current.id);return e.on("change",(()=>o(e.getContent()))),()=>window.wp.oldEditor.remove(n.current.id)}),[]);const r=`inspector-textarea-control-${a}`,n=(0,c.useRef)(null);return(0,c.createElement)(u.BaseControl,{id:r,label:(0,l.__)("Description","otter-blocks")},(0,c.createElement)("textarea",{id:r,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:n}))};var k=h,v=e=>{let{marker:t,isOpen:o,isPlaceAPIAvailable:a,openMarker:r,removeMarker:n,changeMarkerProp:i}=e;const d=(0,c.useRef)(null);return(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker"},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker-title-area"},(0,c.createElement)(u.Button,{className:"wp-block-themeisle-blocks-google-map-marker-title",onClick:()=>r(t.id)},t.title||(0,l.__)("Custom Marker","otter-blocks")),(0,c.createElement)(u.Button,{icon:"no-alt",label:(0,l.__)("Remove Marker","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-google-map-marker-remove",onClick:()=>n(t.id)})),(0,c.createElement)("div",{className:s()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===o})},(0,c.createElement)(u.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,c.createElement)("input",{type:"text",id:`themeisle-location-search-${t.id}`,placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:d,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const o=new window.google.maps.places.SearchBox(d.current);o.addListener("places_changed",(()=>{const e=o.getPlaces();e&&0<e.length&&e.forEach((e=>{const o=e.formatted_address||e.name,l=e.geometry.location.lat(),a=e.geometry.location.lng();i(t.id,"location",o),i(t.id,"latitude",l),i(t.id,"longitude",a)}))}))},onChange:e=>i(t.id,"location",e.target.value),disabled:!a}),!a&&(0,c.createElement)("p",null,(0,l.__)("To enable locations earch, please ensure Places API is activated in the Google Developers Console.","otter-blocks")+" ",(0,c.createElement)(u.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:t.latitude,onChange:e=>i(t.id,"latitude",e)}),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:t.longitude,onChange:e=>i(t.id,"longitude",e)}),(0,c.createElement)(u.SelectControl,{label:(0,l.__)("Map Icon","otter-blocks"),value:t.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:(0,l.__)("Red","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:(0,l.__)("Blue","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:(0,l.__)("Yellow","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:(0,l.__)("Green","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:(0,l.__)("Orange","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:e=>i(t.id,"icon",e)}),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:t.title,onChange:e=>i(t.id,"title",e)}),(0,c.createElement)(k,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>i(t.id,"description",e)})))},y=e=>{let{initialOpen:t,markers:o,isPlaceAPIAvailable:a,addMarker:r,removeMarker:n,changeMarkerProp:i}=e;(0,c.useEffect)((()=>{!1!==t&&d(t)}),[t]);const[s,d]=(0,c.useState)(null),m=e=>{s===e&&(e=null),d(e)};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},o.map((e=>(0,c.createElement)(v,{key:e.id,marker:e,isOpen:s,isPlaceAPIAvailable:a,openMarker:m,removeMarker:n,changeMarkerProp:i})))),(0,c.createElement)(u.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:r},(0,l.__)("Add Marker","otter-blocks")))},f=e=>{let{attributes:t,setAttributes:o,map:a,changeStyle:r,isPlaceAPIAvailable:n,isMarkerOpen:i,setMarkerOpen:s,removeMarker:d,changeMarkerProp:b,addMarkerManual:g,api:h,isSaving:k,changeAPI:v,saveAPIKey:f}=e;const _=(0,c.useRef)(null);return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,c.createElement)(p.V,{value:t.style,options:[{label:(0,l.__)("Standard","otter-blocks"),value:"standard",image:window.themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:(0,l.__)("Silver","otter-blocks"),value:"silver",image:window.themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:(0,l.__)("Retro","otter-blocks"),value:"retro",image:window.themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:(0,l.__)("Dark","otter-blocks"),value:"dark",image:window.themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:(0,l.__)("Night","otter-blocks"),value:"night",image:window.themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:(0,l.__)("Aubergine","otter-blocks"),value:"aubergine",image:window.themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:r})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,c.createElement)(u.BaseControl,{label:(0,l.__)("Location"),id:"wp-block-themeisle-blocks-google-map-search"},(0,c.createElement)("input",{type:"text",id:"wp-block-themeisle-blocks-google-map-search",placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:_,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const t=new window.google.maps.places.SearchBox(_.current);t.addListener("places_changed",(()=>{const e=t.getPlaces();e&&0<e.length&&e.forEach((e=>{const t=e.geometry.location.lat(),l=e.geometry.location.lng(),r=new window.google.maps.LatLng(t,l);a.setCenter(r),o({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:e=>{o({location:e.target.value})},disabled:!n}),!n&&(0,c.createElement)("p",null,(0,l.__)("To enable locations earch, please ensure Places API is activated in the Google Developers Console.","otter-blocks")+" ",(0,c.createElement)(u.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter latitude…","otter-blocks"),value:t.latitude,onChange:e=>{o({latitude:e.toString()});const l=Number(e),r=t.longitude,n=new window.google.maps.LatLng(l,r);a.setCenter(n)}}),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter longitude","otter-blocks"),value:t.longitude,onChange:e=>{o({longitude:e.toString()});const l=t.latitude,r=Number(e),n=new window.google.maps.LatLng(l,r);a.setCenter(n)}})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.SelectControl,{label:(0,l.__)("Map Type","otter-blocks"),value:t.type,options:[{label:(0,l.__)("Road Map","otter-blocks"),value:"roadmap"},{label:(0,l.__)("Satellite View","otter-blocks"),value:"satellite"},{label:(0,l.__)("Hybrid","otter-blocks"),value:"hybrid"},{label:(0,l.__)("Terrain","otter-blocks"),value:"terrain"}],onChange:e=>{o({type:e}),a.setMapTypeId(window.google.maps.MapTypeId[e.toUpperCase()])}}),(0,c.createElement)(u.RangeControl,{label:(0,l.__)("Map Zoom Level","otter-blocks"),value:t.zoom,onChange:e=>{o({zoom:e}),a.setZoom(e)},min:0,max:20}),(0,c.createElement)(u.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.BaseControl,null,(0,l.__)("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.","otter-blocks")),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Map Type Control","otter-blocks"),checked:t.mapTypeControl,onChange:()=>{o({mapTypeControl:!t.mapTypeControl})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Full Screen Control","otter-blocks"),checked:t.fullscreenControl,onChange:()=>{o({fullscreenControl:!t.fullscreenControl})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Streen View Control","otter-blocks"),checked:t.streetViewControl,onChange:()=>{o({streetViewControl:!t.streetViewControl})}})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1,opened:!1!==i||void 0,onToggle:()=>{!1!==i&&s(!0)}},(0,c.createElement)(y,{markers:t.markers,removeMarker:d,changeMarkerProp:b,addMarker:g,isPlaceAPIAvailable:n,initialOpen:i})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Global Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.TextControl,{label:(0,l.__)("Google Maps API Key","otter-blocks"),type:"text",placeholder:(0,l.__)("Google Maps API Key","otter-blocks"),value:h,className:"components-placeholder__input",onChange:v,help:(0,l.__)("Changing the API key effects all Google Map Embed blocks. You will have to refresh the page after changing your API keys.","otter-blocks")}),(0,c.createElement)(u.Button,{isSecondary:!0,type:"submit",onClick:f,isBusy:k},(0,l.__)("Save API Key","otter-blocks"))))},_=e=>{let{marker:t,isAdvanced:o,isPlaceAPIAvailable:a,addMarker:r,close:n}=e;(0,c.useEffect)((()=>{d(t.id),b(t.location),g(t.title),v(t.icon),f(t.description),w(t.latitude),E(t.longitude)}),[t]);const i=(0,c.useRef)(null),[s,d]=(0,c.useState)(t.id),[m,b]=(0,c.useState)(t.location),[p,g]=(0,c.useState)(t.title),[h,v]=(0,c.useState)(t.icon),[y,f]=(0,c.useState)(t.description),[_,w]=(0,c.useState)(t.latitude),[C,E]=(0,c.useState)(t.longitude);return(0,c.createElement)(u.Modal,{title:(0,l.__)("Add Marker","otter-blocks"),onRequestClose:n,shouldCloseOnClickOutside:!1},o&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,c.createElement)("input",{type:"text",id:`themeisle-location-search-${s}`,placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:m,className:"wp-block-themeisle-blocks-google-map-search",ref:i,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const t=new window.google.maps.places.SearchBox(i.current);t.addListener("places_changed",(()=>{const e=t.getPlaces();e&&0<e.length&&e.forEach((e=>{const t=e.formatted_address||e.name,o=e.geometry.location.lat(),l=e.geometry.location.lng();b(t),w(o),E(l)}))}))},onChange:e=>b(e.target.value),disabled:!a})),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:_,onChange:w}),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:C,onChange:E})),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:p,onChange:g}),(0,c.createElement)(k,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:y,onChange:f}),(0,c.createElement)(u.SelectControl,{label:(0,l.__)("Map Icon","otter-blocks"),value:h||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:(0,l.__)("Red","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:(0,l.__)("Blue","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:(0,l.__)("Yellow","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:(0,l.__)("Green","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:(0,l.__)("Orange","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:v}),(0,c.createElement)(u.ButtonGroup,null,(0,c.createElement)(u.Button,{isPrimary:!0,onClick:()=>r(m,p,h,y,_,C)},(0,l.__)("Add","otter-blocks")),(0,c.createElement)(u.Button,{isSecondary:!0,onClick:n},(0,l.__)("Cancel","otter-blocks"))))},w=e=>{let{attributes:t,initMap:o,displayMap:a,isMapLoaded:r,selectMarker:n,isSelectingMarker:i}=e;return(0,c.useEffect)((()=>{a&&o()}),[a]),(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{id:t.id,className:s()({"is-selecting-marker":i}),style:{height:t.height+"px"}}),r&&(0,c.createElement)(u.Button,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:(0,l.__)("Add Button","otter-blocks"),onClick:n},(0,c.createElement)("span",{className:"dashicons dashicons-sticky"})))},C={standard:[],silver:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],retro:[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],dark:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],night:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],aubergine:[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]},E=o(5225);const{attributes:x}=r;var T=o(2819),M={to:[{type:"block",blocks:["themeisle-blocks/leaflet-map"],transform:e=>{const t=(0,T.omit)(e,["style","mapTypeControl","fullscreenControl","streetViewControl"]);return(0,a.createBlock)("themeisle-blocks/leaflet-map",{...t})}}]};const{name:S}=r;(0,a.registerBlockType)(S,{...r,title:(0,l.__)("Google Maps","otter-blocks"),description:(0,l.__)("Display Google Maps on your website with Google Map block. Powered by Otter.","otter-blocks"),icon:n.mapIcon,keywords:["map","google","orbitfox"],transforms:M,edit:e=>{let{attributes:t,setAttributes:o,clientId:a,isSelected:r,toggleSelection:n}=e;(0,c.useEffect)((()=>{const e=(0,E.WX)(a,x);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{let e=!0;return(async()=>{await window.wp.api.loadPromise.then((()=>{g.current=new window.wp.api.models.Settings})),!1===Boolean(window.themeisleGutenberg.mapsAPI)?S||g.current.fetch().then((t=>{e&&(M(t.themeisle_google_map_block_api_key),B(!0),""!==t.themeisle_google_map_block_api_key&&(P(!0),X(t.themeisle_google_map_block_api_key)))})):!S&&e&&(M(window.themeisleGutenberg.mapsAPI),B(!0),P(!0),X(window.themeisleGutenberg.mapsAPI))})(),window.isMapLoaded=window.isMapLoaded||!1,window[`removeMarker_${a.substr(0,8)}`]=oe,window.gm_authFailure=function(){P(!1),Q(!0)},h.current=document.createElement("script"),h.current.type="text/javascript",h.current.async=!0,h.current.defer=!0,h.current.id="themeisle-google-map-api-loading",()=>{e=!1}}),[]),(0,c.useEffect)((()=>{!1!==z&&void 0!==window.google&&k.current.setOptions({mapTypeControl:!!r||t.mapTypeControl,zoomControl:!!r||t.zoomControl,fullscreenControl:!!r||t.fullscreenControl,streetViewControl:!!r||t.streetViewControl})}),[r]),(0,c.useEffect)((()=>{y.current=[...t.markers]}),[t.markers]);const i=(0,c.useRef)([]),g=(0,c.useRef)(null),h=(0,c.useRef)(null),k=(0,c.useRef)(null),v=(0,c.useRef)(null),y=(0,c.useRef)([...t.markers]),[T,M]=(0,c.useState)(""),[S,B]=(0,c.useState)(!1),[z,P]=(0,c.useState)(!1),[V,R]=(0,c.useState)(!1),[L,H]=(0,c.useState)(!1),[N,I]=(0,c.useState)(!0),[O,A]=(0,c.useState)(!1),[G,$]=(0,c.useState)(!1),[Z,F]=(0,c.useState)(!1),[D,W]=(0,c.useState)(!1),[U,j]=(0,c.useState)(!1),[q,J]=(0,c.useState)({}),[K,Q]=(0,c.useState)(!1),X=e=>{window.isMapLoaded||(window.isMapLoaded=!0,h.current.onload=()=>{document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",A(!0)},h.current.src=`https://maps.googleapis.com/maps/api/js?key=${e}&libraries=places&cache=${Math.random()}`,document.head.appendChild(h.current)),document.getElementById("themeisle-google-map-api")&&A(!0)},Y=(e,t,o,r)=>{const n=`<div class="wp-block-themeisle-blocks-map-overview"><h6 class="wp-block-themeisle-blocks-map-overview-title">${o}</h6><div class="wp-block-themeisle-blocks-map-overview-content">${r?`<p>${r}</p>`:""}<a class="wp-block-themeisle-blocks-map-overview-delete" onclick="removeMarker_${a.substr(0,8)}( '${t}' )">${(0,l.__)("Delete Marker","otter-blocks")}</a></div></div>`,c=new window.google.maps.InfoWindow({content:n});e.addListener("click",(()=>{v.current=c,c.open(k.current,e)})),window.google.maps.event.addListener(c,"domready",(()=>{$(t)})),window.google.maps.event.addListener(c,"closeclick",(()=>{$(!1)}))},ee=e=>{e.forEach((e=>{const t=e.latitude,o=e.longitude,l=new window.google.maps.LatLng(t,o),a=new window.google.maps.Marker({position:l,map:k.current,title:e.title,draggable:!0,icon:e.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png"});window.google.maps.event.addListener(a,"dragend",(t=>{const o=t.latLng.lat(),l=t.latLng.lng();te(e.id,"latitude",o),te(e.id,"longitude",l)})),i.current.push(a),window.google.maps.event.addListener(a,"click",(()=>{v.current&&v.current.close()})),Y(a,e.id,e.title,e.description)}))},te=(e,t,l)=>{const a=[...y.current];a.find((t=>t.id===e))[t]=l.toString(),le(),ee(a),o({markers:a})},oe=e=>{let t=[...y.current];t=t.filter((t=>t.id!==e)),o({markers:t}),le(),$(!1),0<t.length&&ee(t)},le=()=>{for(let e=0;e<i.current.length;e++)i.current[e].setMap(null);i.current=[]},ae=()=>{!1===Boolean(window.themeisleGutenberg.mapsAPI)&&(H(!0),new window.wp.api.models.Settings({themeisle_google_map_block_api_key:T}).save().then((e=>{let t=!1;""!==e.themeisle_google_map_block_api_key&&(t=!0),H(!1),P(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,X(e.themeisle_google_map_block_api_key))})))},re=e=>{o({style:e}),k.current.setOptions({styles:C[e]})},ne=(0,m.useBlockProps)({className:s()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":r})});return S&&z?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.d,{label:(0,l.__)("Block Styles","otter-blocks"),value:t.style,options:[{label:(0,l.__)("Standard","otter-blocks"),value:"standard",image:window.themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:(0,l.__)("Silver","otter-blocks"),value:"silver",image:window.themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:(0,l.__)("Retro","otter-blocks"),value:"retro",image:window.themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:(0,l.__)("Dark","otter-blocks"),value:"dark",image:window.themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:(0,l.__)("Night","otter-blocks"),value:"night",image:window.themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:(0,l.__)("Aubergine","otter-blocks"),value:"aubergine",image:window.themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:re}),(0,c.createElement)(f,{attributes:t,setAttributes:o,map:k.current,changeStyle:re,isPlaceAPIAvailable:N,isMarkerOpen:G,setMarkerOpen:$,removeMarker:oe,changeMarkerProp:te,addMarkerManual:()=>{const e=(0,d.Z)(),t=(0,l.__)("Custom Marker","otter-blocks"),o=k.current.getCenter(),a=o.lat(),r=o.lng();W(!0),j(!0),J({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:r})},api:T,isSaving:L,changeAPI:M,saveAPIKey:ae}),D&&(0,c.createElement)(_,{marker:q,isAdvanced:U,isPlaceAPIAvailable:N,close:()=>W(!1),addMarker:(e,l,a,r,n,c)=>{const s=new window.google.maps.LatLng(n,c),m=(0,d.Z)(),u=new window.google.maps.Marker({position:s,map:k.current,title:l,draggable:!0,icon:a});window.google.maps.event.addListener(u,"dragend",(e=>{const t=e.latLng.lat(),o=e.latLng.lng();te(m,"latitude",t),te(m,"longitude",o)})),i.current.push(u);const b=[...t.markers],p={id:m,location:e,title:l,icon:a,description:r,latitude:n,longitude:c};b.push(p),o({markers:b}),window.google.maps.event.addListener(u,"click",(()=>{v.current&&v.current.close()})),Y(u,p.id,l,r),W(!1),F(!1)}}),(0,c.createElement)("div",ne,(0,c.createElement)(u.ResizableBox,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{n(!1)},onResizeStop:(e,l,a,r)=>{o({height:parseInt(t.height+r.height,10)}),n(!0)}},(0,c.createElement)(w,{attributes:t,initMap:()=>{if(k.current=new window.google.maps.Map(document.getElementById(t.id),{center:{lat:Number(t.latitude)||41.4036299,lng:Number(t.longitude)||2.1743558000000576},gestureHandling:"cooperative",zoom:t.zoom,mapTypeId:t.type,styles:C[t.style]}),t.location&&void 0===t.latitude&&void 0===t.longitude){const e={query:t.location,fields:["name","geometry"]};new window.google.maps.places.PlacesService(k.current).findPlaceFromQuery(e,((e,t)=>{t===window.google.maps.places.PlacesServiceStatus.OK&&0<e.length&&k.current.setCenter(e[0].geometry.location)}))}window.google.maps.event.addListenerOnce(k.current,"idle",(()=>{R(!0)})),k.current.addListener("zoom_changed",(()=>{const e=k.current.getZoom();o({zoom:e})})),k.current.addListener("maptypeid_changed",(()=>{const e=k.current.getMapTypeId();o({type:e})})),k.current.addListener("bounds_changed",(()=>{const e=k.current.getCenter(),t=e.lat(),l=e.lng();o({latitude:t.toString(),longitude:l.toString()})})),0<t.markers.length&&ee(t.markers);const e={query:t.location,fields:["name","geometry"]};new window.google.maps.places.PlacesService(k.current).findPlaceFromQuery(e,((e,t)=>{"REQUEST_DENIED"===t&&I(!1)}))},displayMap:O,isMapLoaded:V,selectMarker:()=>{F(!Z),Z?window.google.maps.event.clearListeners(k.current,"click"):k.current.addListener("click",(e=>{window.google.maps.event.clearListeners(k.current,"click");const t=(0,d.Z)(),o=(0,l.__)("Custom Marker","otter-blocks"),a=e.latLng.lat(),r=e.latLng.lng();W(!0),j(!1),J({id:t,location:"",title:o,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:r})}))},isSelectingMarker:Z})))):(0,c.createElement)("div",ne,(0,c.createElement)(b,{api:T,error:K,isAPILoaded:S,isAPISaved:z,isSaving:L,changeAPI:e=>{M(e),Q(!1)},saveAPIKey:ae}))},save:()=>null})},2925:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/icon-list","title":"Icon List","category":"themeisle-blocks","description":"Display an icon list in a beautiful layout. Powered by Otter.","keywords":["icon","list","items"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"defaultLibrary":{"type":"string","default":"fontawesome"},"defaultIconPrefix":{"type":"string","default":"fas"},"defaultIcon":{"type":"string","default":"angle-right"},"defaultContentColor":{"type":"string"},"defaultIconColor":{"type":"string"},"defaultSize":{"type":"number","default":20},"gap":{"type":"number","default":5},"horizontalAlign":{"type":"string"}},"styles":[{"name":"vertical","label":"Vertical","isDefault":true},{"name":"horizontal","label":"Horizontal"}],"editorStyle":"otter-icon-list-editor","style":"otter-icon-list-style"}'),n=o(340),c=o(9307),i=o(2175),s=o(5711),d=o(5225),m=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(i.AlignmentToolbar,{value:{"flex-start":"left",center:"center","flex-end":"right"}[t.horizontalAlign],onChange:e=>{switch(e){case"left":o({horizontalAlign:"flex-start"});break;case"center":o({horizontalAlign:"center"});break;case"right":o({horizontalAlign:"flex-end"});break;default:o({horizontalAlign:void 0})}}}))},u=o(5609);const b=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var p=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(u.Placeholder,null,(0,c.createElement)(u.Spinner,null))},(0,c.createElement)(b,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.defaultLibrary,prefix:t.defaultPrefix,icon:t.defaultIcon,changeLibrary:e=>{o({defaultLibrary:e,defaultIcon:void 0,defaultPrefix:"fas"})},onChange:e=>{if("image"===t.defaultLibrary&&null!=e&&e.url)return o({defaultIcon:e.url});o("object"==typeof e?{defaultIcon:e.name,defaultPrefix:e.prefix}:{defaultIcon:e})},allowImage:!0})),(0,c.createElement)(u.RangeControl,{label:(0,l.__)("Font Size","otter-blocks"),help:(0,l.__)("The size of the font size of the content and icon.","otter-blocks"),value:t.defaultSize,onChange:e=>{o({defaultSize:e})},min:0,max:60,allowReset:!0}),(0,c.createElement)(u.RangeControl,{label:(0,l.__)("Gap","otter-blocks"),help:(0,l.__)("The distance between the items.","otter-blocks"),value:t.gap,onChange:e=>{o({gap:e})},min:0,max:60,allowReset:!0}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Content Color","otter-blocks"),colorValue:t.defaultContentColor,onColorChange:e=>{o({defaultContentColor:e})}}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Icon Color","otter-blocks"),colorValue:t.defaultIconColor,onColorChange:e=>{o({defaultIconColor:e})}})))};const{attributes:g}=r;const{name:h}=r;(0,a.registerBlockType)(h,{...r,title:(0,l.__)("Icon List","otter-blocks"),description:(0,l.__)("Display an icon list in a beautiful layout. Powered by Otter.","otter-blocks"),icon:n.faIcon,keywords:["icon","list","items"],styles:[{name:"vertical",label:(0,l.__)("Vertical","otter-blocks"),isDefault:!0},{name:"horizontal",label:(0,l.__)("Horizontal","otter-blocks")}],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;(0,c.useEffect)((()=>{const e=(0,d.WX)(l,g);return()=>e(t.id)}),[t.id]);const a=s.iv`
|
104 |
--horizontalAlign: ${t.horizontalAlign};
|
105 |
${t.gap&&`--gap: ${t.gap}px;`}
|
106 |
${t.defaultSize&&`--fontSize: ${t.defaultSize}px;`}
|
107 |
-
`,
|
108 |
--contentColor: ${t.contentColor||w.defaultContentColor};
|
109 |
--iconColor: ${t.iconColor||w.defaultIconColor};
|
110 |
-
`,T=(0,m.useBlockProps)({css:x});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(g,{attributes:t,setAttributes:o}),(0,i.tZ)("div",T,"image"===t.library&&y?(0,i.tZ)("img",{src:t.icon}):"themeisle-icons"===t.library&&t.icon&&void 0!==C?(0,i.tZ)(C,{className:d()({"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}):(0,i.tZ)("i",{className:d()(E,{"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}),(0,i.tZ)(m.RichText,{identifier:"content",tagName:"p",placeholder:(0,l.__)("Write your content…","otter-blocks"),className:d()({"wp-block-themeisle-blocks-icon-list-item-content":!t.contentColor},{"wp-block-themeisle-blocks-icon-list-item-content-custom":t.contentColor}),value:t.content,onChange:e=>{o({content:e})},onSplit:e=>e?(0,a.createBlock)(r,{...t,content:e}):(0,a.createBlock)(r),onMerge:p,onReplace:s,onRemove:b})))},save:e=>{let{attributes:t}=e;const o=`${t.iconPrefix} fa-${t.icon}`,l=h.ZP.icons[t.icon],a=m.useBlockProps.save({id:t.id});return(0,c.createElement)("div",a,"image"===t.library&&t.icon?(0,c.createElement)("img",{src:t.icon}):"themeisle-icons"===t.library&&t.icon?(0,c.createElement)(l,{className:d()({"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}):(0,c.createElement)("i",{className:d()(o,{"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}),(0,c.createElement)(m.RichText.Content,{tagName:"p",className:d()({"wp-block-themeisle-blocks-icon-list-item-content":!t.contentColor},{"wp-block-themeisle-blocks-icon-list-item-content-custom":t.contentColor}),value:t.content}))}})},1254:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/leaflet-map","title":"Maps","category":"themeisle-blocks","description":"Display Open Street Maps on your website with Maps block. Powered by Otter.","keywords":["map","opeenstreetmap","location"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"location":{"type":"string","default":"La Sagrada Familia, Barcelona, Spain"},"latitude":{"type":"string","default":"41.4034789"},"longitude":{"type":"string","default":"2.174410333009705"},"bbox":{"type":"string","default":"2.1207046508789067%2C41.34807736149302%2C2.2288513183593754%2C41.45816618938139"},"zoom":{"type":"number"},"height":{"type":"number","default":400},"markers":{"type":"array","default":[]},"zoomControl":{"type":"boolean","default":true},"draggable":{"type":"boolean","default":true}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-leaflet-map-editor","style":"otter-leaflet-map-style","editorScript":"leaflet-gesture-handling","script":"otter-leaflet"}'),n=o(340),c=o(9307),i=o(4586),s=o(4184),d=o.n(s),m=o(2819),u=o(2175),b=o(5609);async function p(e){const t=await async function(e){if("string"!=typeof e)throw(0,l.__)("Location must be a string","otter-blocks");const t="https://nominatim.openstreetmap.org/search?q="+e.split(" ").map((e=>encodeURIComponent(e))).join("+")+"&format=geojson",o=await fetch(t);return o.ok&&200===o.status?o.json():console.warn((0,l.__)("An error has occured: ","otter-blocks")+o.status)}(e);if(null!=t&&t.features.length){var o;const e=t.features[0];if(null!=e&&null!==(o=e.geometry)&&void 0!==o&&o.coordinates.length)return{longitude:e.geometry.coordinates[0],latitude:e.geometry.coordinates[1]}}return null}var g=o(4333);const h=e=>{let{value:t,onChange:o}=e;const a=(0,g.useInstanceId)(h);(0,c.useEffect)((()=>{wp.oldEditor.initialize(n.current.id,{tinymce:{classic_block_editor:!0,plugins:"lists,media,paste,tabfocus,wordpress,wpautoresize,wpeditimage,wpgallery,wplink,wpdialogs,wptextpattern,wpview",toolbar1:"formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker,wp_add_media"}});const e=window.tinymce.get(n.current.id);return e.on("change",(()=>o(e.getContent()))),()=>wp.oldEditor.remove(n.current.id)}),[]);const r=`inspector-textarea-control-${a}`,n=(0,c.useRef)(null);return(0,c.createElement)(b.BaseControl,{id:r,label:(0,l.__)("Description","otter-blocks")},(0,c.createElement)("textarea",{id:r,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:n}))};var k=h,v=e=>{let{marker:t,isOpen:o,openMarker:a,dispatch:r}=e;const[n,i]=(0,c.useState)(t.location),[s,m]=(0,c.useState)(t.longitude),[u,g]=(0,c.useState)(t.latitude),[h,v]=(0,c.useState)(t.title),[y,f]=(0,c.useState)(t.description),[_,w]=(0,c.useState)({target:"",reason:""});return(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker"},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-title-area"},(0,c.createElement)(b.Button,{className:"wp-block-themeisle-blocks-leaflet-map-marker-title",onClick:()=>a()},t.title||(0,l.__)("Custom Marker","otter-blocks")),(0,c.createElement)(b.Button,{icon:"no-alt",label:(0,l.__)("Remove Marker","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-remove",onClick:()=>r({type:C.REMOVE,ids:[t.id]})})),o&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-control-area"},(0,c.createElement)(b.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:d()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===_.target}),value:n,onChange:e=>{i(e)},help:(0,l.__)("Press Enter to search the location","otter-blocks"),onKeyDown:e=>((e,o)=>{e.key===o&&(async()=>{const e=await p(n);e?(r({type:C.UPDATE,ids:[t.id],updatedProps:{location:n,latitude:e.latitude,longitude:e.longitude}}),g(e.latitude),m(e.longitude),"LOCATION"===_.target&&w({})):w({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:u,onChange:e=>{g(e),r({type:C.UPDATE,ids:[t.id],updatedProps:{latitude:e}})}}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:s,onChange:e=>{m(e),r({type:C.UPDATE,ids:[t.id],updatedProps:{longitude:e}})}}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:h,onChange:e=>{v(e),r({type:C.UPDATE,ids:[t.id],updatedProps:{title:e}})}}),(0,c.createElement)(k,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>{f(y),r({type:C.UPDATE,ids:[t.id],updatedProps:{description:e}})}})))},y=e=>{let{markers:t,dispatch:o,markersInteraction:a}=e;const{openMarker:r,setOpenMarker:n}=a;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-group"},t.map((e=>(0,c.createElement)(v,{key:e.id,marker:e,isOpen:r===e.id,openMarker:()=>n(a.openMarker!==e.id?e.id:null),dispatch:o})))),(0,c.createElement)(b.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-add",onClick:()=>{o({type:C.ADD,marker:{id:(0,i.Z)()},dispatch:o})}},(0,l.__)("Add Marker","otter-blocks")))},f=e=>{let{attributes:t,setAttributes:o,dispatch:a,markersInteraction:r}=e;const[n,i]=(0,c.useState)(t.location),[s,m]=(0,c.useState)({target:"",reason:""});return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,c.createElement)(b.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:d()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===s.target}),placeholder:(0,l.__)("Enter location. E.g: La Sagrada Familia, Barcelona, Spain","otter-blocks"),help:(0,l.__)("Press Enter to search the location","otter-blocks"),value:n,onChange:i,onKeyDown:e=>((e,t)=>{e.key===t&&(async()=>{o({location:n});const e=await p(n);e?(o({latitude:e.latitude.toString(),longitude:e.longitude.toString()}),"LOCATION"===s.target&&m({})):m({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter latitude…","otter-blocks"),value:t.latitude,onChange:e=>{o({latitude:e.toString()})}}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter longitude","otter-blocks"),value:t.longitude,onChange:e=>{o({longitude:e.toString()})}})),(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.RangeControl,{label:(0,l.__)("Map Zoom Level","otter-blocks"),value:t.zoom,onChange:e=>{o({zoom:e})},min:0,max:20}),(0,c.createElement)(b.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.BaseControl,null,(0,l.__)("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.","otter-blocks")),(0,c.createElement)(b.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,c.createElement)(b.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}})),(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1},(0,c.createElement)(y,{markers:t.markers,dispatch:a,markersInteraction:r})))},_=o(5225);const{attributes:w}=r,C={ADD:"ADD",ADD_MANUAL:"ADD_MANUAL",REMOVE:"REMOVE",UPDATE:"UPDATE",INIT:"INIT"};var E={to:[{type:"block",blocks:["themeisle-blocks/google-map"],transform:e=>{const t=e;return(0,a.createBlock)("themeisle-blocks/google-map",{...t})}}]};const{name:x}=r;(0,a.registerBlockType)(x,{...r,title:(0,l.__)("Maps","otter-blocks"),description:(0,l.__)("Display Open Street Maps on your website with Maps block. Powered by Otter.","otter-blocks"),icon:n.mapIcon,keywords:["map","opeenstreetmap","location"],transforms:E,edit:e=>{let{clientId:t,attributes:o,setAttributes:a,isSelected:r,toggleSelection:n}=e;(0,c.useEffect)((()=>{const e=(0,_.WX)(t,w);return()=>e(o.id)}),[o.id]);const s=(0,c.useRef)(null),[p,g]=(0,c.useState)(null),[h,k]=(0,c.useState)(!1),[v,y]=(0,c.useState)(null),E=(e,t)=>{if(window.L&&p&&t&&e){var o,a,r,n,c;null!==(o=e.id)&&void 0!==o||(e.id=(0,i.Z)()),null!==(a=e.latitude)&&void 0!==a||(e.latitude=p.getCenter().lat),null!==(r=e.longitude)&&void 0!==r||(e.longitude=p.getCenter().lng),null!==(n=e.title)&&void 0!==n||(e.title=(0,l.__)("Add a title","otter-blocks")),null!==(c=e.description)&&void 0!==c||(e.description="");const s=window.L.marker([e.latitude,e.longitude]||0,{draggable:!0});return s.on("movestart",(()=>{s.closeTooltip(),s.closePopup()})),s.on("moveend",(()=>{const o=s.getLatLng();t({type:C.UPDATE,ids:[e.id],updatedProps:{latitude:o.lat,longitude:o.lng}})})),s.on("click",(()=>{y(e.id)})),s.markerProps=e,s}return null},[x,T]=(0,c.useReducer)(((e,t)=>{switch(t.type){case C.ADD:const o=E(t.marker,t.dispatch);return[...e,o];case C.ADD_MANUAL:if(h){const o=E(t.marker,t.dispatch);return[...e,o]}return e;case C.REMOVE:return e.filter((e=>{let{markerProps:o}=e;return t.ids.includes(o.id)})).forEach((e=>{p.hasLayer(e)&&p.removeLayer(e)})),e.filter((e=>{let{markerProps:o}=e;return!t.ids.includes(o.id)}));case C.INIT:const a=t.markers.map((e=>E(e,t.dispatch)));return[...e,...a];case C.UPDATE:return e.map((e=>{const o=e.markerProps;return t.ids.includes(o.id)&&(e.markerProps=(0,m.merge)(e.markerProps,t.updatedProps)),e}));default:console.warn((0,l.__)("The action for the leaflet block do not have a defined action in marker's reducer: ","otter-blocks")+t.type)}return e}),[],(()=>[]));(0,c.useEffect)((()=>{(()=>{if(!s.current&&!window.L)return;s.current.innerHTML="";const e=window.L.map(s.current,{gestureHandling:!0,gestureHandlingOptions:{text:{touch:(0,l.__)("Use two fingers to move the map","otter-blocks"),scroll:(0,l.__)("Use ctrl + scroll to zoom the map","otter-blocks"),scrollMac:(0,l.__)("Use ⌘ + scroll to zoom the map","otter-blocks")}}});window.L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:["a","b","c"]}).addTo(e),e.on("zoom",(()=>{a({zoom:e.getZoom()})})),e.on("moveend",(()=>{const t=e.getCenter();a({latitude:t.lat.toString(),longitude:t.lng.toString()})})),e.on("click",(e=>{T({type:C.ADD_MANUAL,marker:{latitude:e.latlng.lat,longitude:e.latlng.lng},dispatch:T}),k(!1)})),window.L.Control.AddMarker=window.L.Control.extend({onAdd:()=>{const e=window.L.DomUtil.create("button","wp-block-themeisle-blocks-leaflet-map-marker-button"),t=window.L.DomUtil.create("span","dashicons dashicons-sticky",e);return window.L.DomEvent.on(e,"click",(e=>{window.L.DomEvent.stopPropagation(e),k(!h)})),e.title=(0,l.__)("Add marker on the map with a click","otter-blocks"),e.appendChild(t),e},onRemove:()=>{}}),window.L.control.addmarker=e=>new window.L.Control.AddMarker(e),window.L.control.addmarker({position:"bottomleft"}).addTo(e),g(e),T({type:C.INIT,markers:o.markers,dispatch:T})})()}),[]),(0,c.useEffect)((()=>{o.height&&p&&p.invalidateSize(!0)}),[o.height,p]),(0,c.useEffect)((()=>{o.latitude&&o.longitude&&p&&p.setView([o.latitude,o.longitude],o.zoom||15)}),[o.latitude,o.longitude,o.zoom,p]),(0,c.useEffect)((()=>{var e;null===(e=s.current)||void 0===e||e.classList.toggle("is-selecting-location",h)}),[h]),(0,c.useEffect)((()=>{o.latitude&&o.longitude&&p&&a({bbox:p.getBounds().toBBoxString()})}),[o.latitude,o.longitude,p]),(0,c.useEffect)((()=>{x&&(x.forEach((e=>{p.hasLayer(e)||p.addLayer(e);const{markerProps:t}=e;e.setLatLng([t.latitude,t.longitude]),e.closeTooltip(),e.unbindTooltip(),e.bindTooltip(t.title,{direction:"auto"}),e.closePopup(),e.unbindPopup(),e.bindPopup(((e,t)=>{const o=document.createElement("div"),a=document.createElement("h6"),r=document.createElement("div"),n=document.createElement("p"),c=document.createElement("button");return a.innerHTML=e.title,n.innerHTML=e.description,c.onclick=()=>t({type:C.REMOVE,ids:[e.id]}),c.innerHTML=(0,l.__)("Delete Marker","otter-blocks"),o.classList.add("wp-block-themeisle-blocks-map-overview"),r.classList.add("wp-block-themeisle-blocks-map-overview-content"),a.classList.add("wp-block-themeisle-blocks-map-overview-title"),c.classList.add("wp-block-themeisle-blocks-map-overview-delete"),o.appendChild(a),o.appendChild(r),o.appendChild(c),r.appendChild(n),o})(t,T))})),o.markers.length!==x.length&&p&&a({markers:x.map((e=>{let{markerProps:t}=e;return t}))}))}),[x,p,o.markers]);const M=(0,u.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f,{attributes:o,setAttributes:a,dispatch:T,markersInteraction:{openMarker:v,setOpenMarker:y}}),(0,c.createElement)("div",M,(0,c.createElement)(b.ResizableBox,{size:{height:o.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{n(!1)},onResizeStop:(e,t,l,r)=>{a({height:parseInt(o.height+r.height,10)}),n(!0)},className:d()("wp-block-themeisle-blocks-leaflet-map-resizer",{"is-focused":r})},(0,c.createElement)("div",{id:o.id,ref:s,style:{width:"100%",height:o.height||400}}))))},save:()=>null})},6099:function(e,t,o){var l=o(2553),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/lottie","title":"Lottie Animation","category":"themeisle-blocks","description":"Add Lottie animations to your WordPress. Powered by Otter.","keywords":["media","lottie","animation"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"file":{"type":"object"},"trigger":{"type":"string","default":"none"},"loop":{"type":"boolean","default":false},"count":{"type":"number","default":0},"speed":{"type":"number","default":1},"direction":{"type":"boolean","default":false},"width":{"type":["string","number"]},"ariaLabel":{"type":"string","default":""},"backgroundColor":{"type":"string"},"backgroundGradient":{"type":"string"}},"supports":{"align":["left","center","right"]},"editorStyle":"otter-lottie-editor","editorScript":"lottie-player","script":"otter-lottie"}'),c=o(9307),i=o(2819),s=o(2175),d=o(5609),m=e=>{var t;let{className:o,file:r,onChange:n,attributes:i}=e;const[m,u]=(0,c.useState)((null===(t=i.file)||void 0===t?void 0:t.url)||null);return Boolean(window.themeisleGutenberg.isWPVIP)?(0,c.createElement)(d.Placeholder,{label:(0,a.__)("Lottie","otter-blocks"),instructions:(0,a.__)("Add Lottie animations and files to your website.","otter-blocks"),icon:(0,c.createElement)(s.BlockIcon,{icon:l.Z}),className:o},(0,c.createElement)("form",{onSubmit:e=>(e&&e.preventDefault(),n(m))},(0,c.createElement)("input",{type:"url",value:m||"",className:"components-placeholder__input","aria-label":(0,a.__)("Lottie","otter-blocks"),placeholder:(0,a.__)("Enter URL to embed here…","otter-blocks"),onChange:e=>u(e.target.value)}),(0,c.createElement)(d.Button,{isPrimary:!0,disabled:!m,type:"submit"},(0,a.__)("Embed","otter-blocks")))):(0,c.createElement)(s.MediaPlaceholder,{labels:{title:(0,a.__)("Lottie","otter-blocks"),instructions:(0,a.__)("Add Lottie animations and files to your website.","otter-blocks")},icon:(0,c.createElement)(s.BlockIcon,{icon:l.Z}),accept:["application/json"],allowedTypes:["application/json"],value:{...r},onSelectURL:n,onSelect:n})},u=e=>{let{attributes:t,setAttributes:o,playerRef:l}=e;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Settings","otter-blocks"),initialOpen:!0},(0,c.createElement)(d.SelectControl,{label:(0,a.__)("Trigger","otter-blocks"),help:(0,a.__)("Animation trigger. This will only work on the front-end.","otter-blocks"),value:t.trigger,options:[{label:(0,a.__)("Autoplay","otter-blocks"),value:"none"},{label:(0,a.__)("Scroll","otter-blocks"),value:"scroll"},{label:(0,a.__)("Hover","otter-blocks"),value:"hover"},{label:(0,a.__)("Click","otter-blocks"),value:"click"}],onChange:e=>{o({trigger:e})}}),"scroll"!==t.trigger&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(d.ToggleControl,{label:(0,a.__)("Loop","otter-blocks"),help:(0,a.__)("Whether to loop animation.","otter-blocks"),checked:t.loop,onChange:e=>{o({loop:e}),l.current.setLooping(e),t.direction&&l.current.seek("100%"),l.current.play()}}),t.loop&&(0,c.createElement)(d.TextControl,{label:(0,a.__)("Numbers of loops","otter-blocks"),help:(0,a.__)("Number of times to loop animation.","otter-blocks"),type:"number",value:t.count,onChange:e=>{o({count:Number(e)}),l.current.load(t.file.url)}}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Speed","otter-blocks"),help:(0,a.__)("Animation speed.","otter-blocks"),value:t.speed,onChange:e=>{o({speed:Number(e)}),l.current.setSpeed(e)},step:.1,min:.1,max:5}),(0,c.createElement)(d.ToggleControl,{label:(0,a.__)("Reverse","otter-blocks"),help:(0,a.__)("Direction of animation.","otter-blocks"),checked:t.direction,onChange:e=>{o({direction:e}),l.current.setDirection(e?-1:1),l.current.seek(e?"100%":0)}})),(0,c.createElement)(s.__experimentalUnitControl,{onChange:e=>{const t=parseInt(e.slice(0,-1)),l=e.slice(-1);100<t&&"%"===l&&(e="100%"),o({width:e})},label:(0,a.__)("Width","otter-blocks"),isUnitSelectTabbable:!0,isResetValueOnUnitChange:!0,__unstableInputWidth:"50%",value:Number.isInteger(t.width)?`${t.width}px`:t.width,units:[{value:"%",label:"%",default:100},{value:"px",label:"px",default:300}]})),(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Background","otter-blocks"),initialOpen:!1},(0,c.createElement)(s.__experimentalColorGradientControl,{colorValue:t.backgroundColor,gradientValue:t.backgroundGradient,onColorChange:e=>o({backgroundColor:e}),onGradientChange:e=>o({backgroundGradient:e}),className:"otter-lottie-background-control"}))),(0,c.createElement)(s.InspectorAdvancedControls,null,(0,c.createElement)(d.TextControl,{label:(0,a.__)("Aria Label","otter-blocks"),help:(0,a.__)("Describe the purpose of this animation on the page.","otter-blocks"),value:t.ariaLabel,onChange:e=>o({ariaLabel:e})})))},b=e=>{let{isEditing:t,setEditing:o}=e;return(0,c.createElement)(s.BlockControls,null,(0,c.createElement)(d.ToolbarGroup,null,(0,c.createElement)(d.Tooltip,{text:t?(0,a.__)("Save","otter-blocks"):(0,a.__)("Edit","otter-blocks")},(0,c.createElement)(d.Button,{onClick:()=>o(!t)},(0,c.createElement)(d.Dashicon,{icon:t?"yes":"edit"})))))},p=o(7462),g=e=>{let{attributes:t,isSelected:o,playerRef:l}=e;(0,c.useEffect)((()=>{!(0,i.isEmpty)(t.file)&&t.loop&&null!==l.current&&l.current.addEventListener("complete",a)}),[]),(0,c.useEffect)((()=>{o?(l.current.play(),t.direction&&l.current.seek("100%")):l.current.stop()}),[o]);const a=()=>{l.current&&(l.current.setLooping(t.loop),l.current.play(),l.current.removeEventListener("complete",a))};return(0,c.createElement)("lottie-player",(0,p.Z)({id:t.id,ref:l,src:t.file.url,autoplay:!0,count:t.count,speed:t.speed,background:t.backgroundColor||t.backgroundGradient,direction:t.direction?-1:1,style:{width:!(!t.width||"%"===t.width.toString().slice(-1))&&`${t.width}px`,maxWidth:!(!t.width||"%"!==t.width.toString().slice(-1))&&`${t.width}`,height:"auto"},mode:"normal"},t.ariaLabel&&{"aria-label":t.ariaLabel}))},h=o(5225);const{attributes:k}=n;const{name:v}=n;(0,r.registerBlockType)(v,{...n,title:(0,a.__)("Lottie Animation","otter-blocks"),description:(0,a.__)("Add Lottie animations to your WordPress. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["media","lottie","animation"],edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a}=e;const r=(0,c.useRef)(null),[n,d]=(0,c.useState)(!Boolean(t.file));(0,c.useEffect)((()=>{const e=(0,h.WX)(a,k);return()=>e(t.id)}),[t.id]);const p=(0,s.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(!(0,i.isEmpty)(t.file)&&n||!n)&&(0,c.createElement)(b,{isEditing:n,setEditing:d}),!((0,i.isEmpty)(t.file)||n)&&(0,c.createElement)(u,{attributes:t,setAttributes:o,playerRef:r}),(0,c.createElement)("div",p,((0,i.isEmpty)(t.file)||n)&&(0,c.createElement)(m,{value:t.file,onChange:e=>{if(""===e||null===e)return;const t=(0,i.pick)(e,["id","url"]);(0,i.isEmpty)(t)&&(t.url=e),o({file:{...t}}),d(!1)},attributes:t}),!((0,i.isEmpty)(t.file)||n)&&(0,c.createElement)(g,{attributes:t,isSelected:l,playerRef:r})))},save:e=>{let{attributes:t}=e;const o=s.useBlockProps.save({id:t.id,src:t.file?t.file.url:"",width:t.width});return"scroll"===t.trigger?(0,c.createElement)("lottie-player",(0,p.Z)({trigger:t.trigger,background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o)):(0,c.createElement)("lottie-player",(0,p.Z)({autoplay:!0,loop:!0,count:t.direction?-1*t.count:t.count,speed:t.speed,direction:t.direction?-1:1,trigger:t.trigger,"data-loop":t.loop,mode:"normal",background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o))}})},5319:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/plugin-cards","title":"Plugin Card","category":"themeisle-blocks","description":"Plugin Card block lets you display plugins data in your blog posts. Powered by Otter.","keywords":["plugin","card","orbitfox"],"textdomain":"otter-blocks","attributes":{"slug":{"type":"string"}},"supports":{"html":false},"editorStyle":"otter-plugin-card-editor","style":"otter-plugin-card-style"}'),n=o(340),c=o(9307),i=o(2175),s=o(5609),d=o(8423),m=o.n(d),u=o(4932),b=o(2819),p=o(6989),g=o.n(p),h=o(9630),k=e=>{let{setAttributes:t,hasError:o,setError:a,className:r}=e;const n=(0,c.useRef)(null);let i=!1;const d=[],[m,p]=(0,c.useState)(!1),[k,v]=(0,c.useState)(""),[y,f]=(0,c.useState)({}),[_,w]=(0,c.useState)(null);(0,c.useEffect)((()=>{let e=null;return null===_||i||(i=!0,(0,u.Z)(d[_],n.current,{onlyScrollIfNeeded:!0}),d[_].focus(),e=setTimeout((()=>{i=!1}),100)),()=>{clearTimeout(e)}}),[_]);const C=e=>{if(Object.keys(y).length){e.stopPropagation(),e.preventDefault();const t=_?_-1:Object.keys(y).length-1;w(t)}},E=e=>{if(Object.keys(y).length){e.stopPropagation(),e.preventDefault();const t=null===_||_===Object.keys(y).length-1?0:_+1;w(t)}},x=e=>{t({slug:e.slug}),f({})};return(0,c.createElement)(s.Placeholder,{icon:"admin-plugins",label:(0,l.__)("Plugin Card","otter-blocks"),instructions:(0,l.__)("Search for the plugin you want to display.","otter-blocks"),className:r},(0,c.createElement)("div",{className:"o-plugin-cards-search-field"},(0,c.createElement)(s.Dashicon,{icon:"search"}),m&&(0,c.createElement)(s.Spinner,null),(0,c.createElement)(s.TextControl,{type:"text",placeholder:(0,l.__)("Search for plugin…","otter-blocks"),value:k,onChange:v,onKeyDown:e=>{switch(e.keyCode){case h.UP:C(e);break;case h.DOWN:E(e);break;case h.TAB:Object.keys(y).length&&!e.shiftKey&&w(0);break;case h.ENTER:(async e=>{t({slug:""}),p(!0),a(!1);const o=await g()({path:`otter/v1/plugins?search=${encodeURIComponent(e)}`});if(o.data.errors)return a(!0),p(!1),w(null),void f({});p(!1),w(null),f(o.data.plugins)})(e.target.value)}},onFocus:()=>w(null)}),y&&(0,c.createElement)("div",{tabIndex:"-1",className:"o-plugin-cards-search-results",ref:n},Object.keys(y).map((e=>{const t=y[e];let o;return t.icons.svg&&(o=t.icons.svg),t.icons["2x"]&&(o=t.icons["2x"]),t.icons["1x"]&&(o=t.icons["1x"]),t.icons.default&&(o=t.icons.default),(0,c.createElement)("button",{className:"o-plugin-cards-list-item",key:e,ref:(l=e,e=>{d[l]=e}),onClick:e=>{e.preventDefault(),x(t)},onKeyDown:e=>((e,t)=>{switch(e.keyCode){case h.UP:C(e);break;case h.DOWN:E(e);break;case h.TAB:if(e.shiftKey){0!==_&&C(e);break}if(_===Object.keys(y).length-1)break;E(e);break;case h.ENTER:x(t)}})(e,t)},(0,c.createElement)("img",{src:o}),(0,c.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,b.unescape)(t.name)}}));var l})))),o&&(0,c.createElement)("div",{className:"o-plugin-cards-error"},(0,c.createElement)("span",null,(0,l.__)("There seems to be an error. Make sure your internet is working properly.","otter-blocks"))))},v=e=>{let{setAttributes:t}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(s.ToolbarGroup,null,(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Edit","otter-blocks")},(0,c.createElement)(s.Button,{className:"components-icon-button components-toolbar__control o-plugin-cards-edit-plugin-card",onClick:()=>t({slug:void 0})},(0,c.createElement)(s.Dashicon,{icon:"edit"})))))};const{name:y}=r;(0,a.registerBlockType)(y,{...r,title:(0,l.__)("Plugin Card","otter-blocks"),description:(0,l.__)("Plugin Card block lets you display plugins data in your blog posts. Powered by Otter.","otter-blocks"),icon:n.pluginsIcon,keywords:["plugin","card","orbitfox"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[l,a]=(0,c.useState)(!1),r=(0,i.useBlockProps)();return t.slug?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(v,{setAttributes:o}),(0,c.createElement)("div",r,(0,c.createElement)(s.Disabled,null,(0,c.createElement)(m(),{block:"themeisle-blocks/plugin-cards",attributes:{...t}})))):(0,c.createElement)("div",r,(0,c.createElement)(k,{attributes:t,setAttributes:o,hasError:l,setError:a}))},save:()=>null})},2693:function(e,t,o){var l=o(7682),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/popup","title":"Popup","category":"themeisle-blocks","description":"Display your content in beautiful popup with many customization options. Powered by Otter.","keywords":["popup","modal","lightbox"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"minWidth":{"type":"number"},"maxWidth":{"type":"number"},"trigger":{"type":"string"},"wait":{"type":"number"},"anchor":{"type":"string"},"scroll":{"type":"number"},"showClose":{"type":"boolean","default":true},"outsideClose":{"type":"boolean","default":true},"anchorClose":{"type":"boolean","default":false},"closeAnchor":{"type":"string"},"recurringClose":{"type":"boolean","default":false},"recurringTime":{"type":"number"},"backgroundColor":{"type":"string"},"closeColor":{"type":"string"},"overlayColor":{"type":"string"},"overlayOpacity":{"type":"number"}},"editorStyle":"otter-popup-editor","style":"otter-popup-style","script":"otter-popup"}'),c=o(9307),i=o(5711),s=o(6755),d=o(7231),m=o(2175),u=o(5609),b=o(2694),p=o(9084);const g=()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u.Disabled,null,(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Close On Anchor Click","otter-blocks"),checked:!1,onChange:()=>{}}),(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Dismiss for Recurring Visitors","otter-blocks"),checked:!1,onChange:()=>{}})),(0,c.createElement)(p.Z,{notice:(0,c.createElement)(u.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,a.__)("Unlock more options with Otter Pro. ","otter-blocks")),variant:"upsell"}));var h=e=>{let{attributes:t,setAttributes:o}=e,l=[{label:(0,a.__)("On Load","otter-blocks"),value:"onLoad"},{label:(0,a.__)("On Anchor Click (Pro)","otter-blocks"),value:"onClick",disabled:!0},{label:(0,a.__)("On Scroll (Pro)","otter-blocks"),value:"onScroll",disabled:!0},{label:(0,a.__)("On Exit (Pro)","otter-blocks"),value:"onExit",disabled:!0}];return l=(0,b.applyFilters)("otter.popupBlock.triggers",l),(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Open Trigger","otter-blocks"),help:!Boolean(window.themeisleGutenberg.hasPro)&&(0,a.__)("You need to have Otter Pro to activate Pro features.","otter-blocks"),options:l,value:t.trigger,onChange:e=>o({trigger:e})}),(void 0===t.trigger||"onLoad"===t.trigger)&&(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Wait Time","otter-blocks"),help:(0,a.__)("How much time to wait before showing the popup. Leave it empty to open instantly","otter-blocks"),min:0,max:100,value:t.wait,onChange:e=>o({wait:Number(e)})}),(0,b.applyFilters)("otter.popupBlock.controls",(0,c.createElement)((()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Show Close Button","otter-blocks"),checked:t.showClose,onChange:()=>o({showClose:!t.showClose})}),(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Close on Click Outside","otter-blocks"),checked:t.outsideClose,onChange:()=>o({outsideClose:!t.outsideClose})}),!Boolean(window.themeisleGutenberg.hasPro)&&(0,c.createElement)(g,null))),null),t,o)),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Style","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Minimum Width","otter-blocks"),min:100,max:1e3,value:t.minWidth,allowReset:!0,onChange:e=>o({minWidth:Number(e)})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Maximum Width","otter-blocks"),min:100,max:1e3,value:t.maxWidth,allowReset:!0,onChange:e=>o({maxWidth:Number(e)})}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Background","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>o({backgroundColor:e})}),t.showClose&&(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Close Button","otter-blocks"),colorValue:t.closeColor,onColorChange:e=>o({closeColor:e})}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Overlay","otter-blocks"),colorValue:t.overlayColor,onColorChange:e=>o({overlayColor:e})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Overlay Opacity","otter-blocks"),value:t.overlayOpacity,onChange:e=>o({overlayOpacity:Number(e)})})))},k=o(5225);const{attributes:v}=n;const{name:y}=n;(0,r.registerBlockType)(y,{...n,title:(0,a.__)("Popup","otter-blocks"),description:(0,a.__)("Display your content in beautiful popup with many customization options. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["popup","modal","lightbox"],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;(0,c.useEffect)((()=>{const e=(0,k.WX)(l,v);return()=>e(t.id)}),[]);const[r,n]=(0,c.useState)(!1),b=i.iv`
|
111 |
--minWidth: ${t.minWidth?t.minWidth+"px":"400px"};
|
112 |
--maxWidth: ${t.maxWidth?t.maxWidth+"px":void 0};
|
113 |
--backgroundColor: ${t.backgroundColor};
|
114 |
--closeColor: ${t.closeColor};
|
115 |
--overlayColor: ${t.overlayColor};
|
116 |
--overlayOpacity: ${t.overlayOpacity?t.overlayOpacity/100:1};
|
117 |
-
`,p=(0,m.useBlockProps)({id:t.id,css:b});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(h,{attributes:t,setAttributes:o}),(0,i.tZ)("div",p,(0,i.tZ)(u.Button,{isPrimary:!0,icon:s.Z,onClick:()=>
|
118 |
/* translators: %s Date posted */
|
119 |
-
(0,
|
120 |
/* translators: %s Author of the post */
|
121 |
-
(0,
|
122 |
/* translators: %s Label */
|
123 |
let M=(0,l.sprintf)((0,l.__)("Display %s","otter-blocks"),y);return w&&(
|
124 |
/* translators: %s Label */
|
125 |
-
M=(0,l.sprintf)((0,l.__)("Hide %s","otter-blocks"),y)),(0,d.createElement)("div",{className:f()("o-sortable-item-area",`o-sortable-item-area-${n}`)},(0,d.createElement)("div",{className:f()("o-sortable-item",{disabled:c,hidden:!w,editable:w})},!c&&(0,d.createElement)(E,null),(0,d.createElement)("div",{className:"o-sortable-label"},y),w&&"category"!==n&&(0,d.createElement)(b.Button,{icon:i?"arrow-up-alt2":"arrow-down-alt2",label:i?(0,l.__)("Close Settings","otter-blocks"):(0,l.__)("Open Settings","otter-blocks"),showTooltip:!0,className:"o-sortable-button",onClick:()=>s(!i)}),(0,d.createElement)(b.Button,{icon:T,label:M,showTooltip:!0,className:"o-sortable-button",onClick:()=>{m?v({display:!p.display}):(e=>{const t=x[e]||e;r({[t]:!a[t]})})(n),s(!1)}})),w&&"category"!==n&&(0,d.createElement)("div",{className:f()("o-sortable-control-area",{opened:i&&w})},"image"===n&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.SelectControl,{label:(0,l.__)("Image Size","otter-blocks"),value:a.imageSize,options:window.themeisleGutenberg.imageSizes.map((e=>({label:(0,u.startCase)((0,u.toLower)(e)),value:e}))),onChange:e=>r({imageSize:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Crop image to fit","otter-blocks"),checked:a.cropImage,onChange:e=>r({cropImage:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display box shadow","otter-blocks"),checked:a.imageBoxShadow,onChange:e=>r({imageBoxShadow:e})}),(0,d.createElement)(b.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:a.borderRadius,onChange:e=>r({borderRadius:e}),min:0,max:50,allowReset:!0}),(0,d.createElement)(b.RangeControl,{label:(0,l.__)("Image Width","otter-blocks"),value:a.imageWidth,onChange:e=>r({imageWidth:e}),min:0,max:500,allowReset:!0})),"title"===n&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.SelectControl,{label:(0,l.__)("Title Tag","otter-blocks"),value:a.titleTag||"h5",options:[{label:(0,l.__)("H1","otter-blocks"),value:"h1"},{label:(0,l.__)("H2","otter-blocks"),value:"h2"},{label:(0,l.__)("H3","otter-blocks"),value:"h3"},{label:(0,l.__)("H4","otter-blocks"),value:"h4"},{label:(0,l.__)("H5","otter-blocks"),value:"h5"},{label:(0,l.__)("H6","otter-blocks"),value:"h6"}],onChange:e=>r({titleTag:e})}),(0,d.createElement)(C.Z,{label:(0,l.__)("Font size","otter-blocks")},(0,d.createElement)(b.RangeControl,{value:(()=>{switch(k){case"Desktop":return a.customTitleFontSize;case"Tablet":return a.customTitleFontSizeTablet;case"Mobile":return a.customTitleFontSizeMobile;default:return}})(),onChange:e=>{"Desktop"===k?r({customTitleFontSize:e}):"Tablet"===k?r({customTitleFontSizeTablet:e}):"Mobile"===k&&r({customTitleFontSizeMobile:e})},min:0,max:50,allowReset:!0}))),"meta"===n&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display post date","otter-blocks"),checked:a.displayDate,onChange:e=>r({displayDate:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display author","otter-blocks"),checked:a.displayAuthor,onChange:e=>r({displayAuthor:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display comments","otter-blocks"),checked:a.displayComments,onChange:e=>r({displayComments:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display category","otter-blocks"),checked:a.displayPostCategory,onChange:e=>r({displayPostCategory:e})})),"description"===n&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.TextControl,{label:(0,l.__)("Excerpt Limit","otter-blocks"),type:"number",value:a.excerptLength,onChange:e=>r({excerptLength:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display read more link","otter-blocks"),checked:a.displayReadMoreLink,onChange:e=>r({displayReadMoreLink:e})}),(0,d.createElement)(C.Z,{label:(0,l.__)("Font size","otter-blocks")},(0,d.createElement)(b.RangeControl,{value:(()=>{switch(k){case"Desktop":return a.customDescriptionFontSize;case"Tablet":return a.customDescriptionFontSizeTablet;case"Mobile":return a.customDescriptionFontSizeMobile;default:return}})(),onChange:e=>{"Desktop"===k?r({customDescriptionFontSize:e}):"Tablet"===k?r({customDescriptionFontSizeTablet:e}):"Mobile"===k&&r({customDescriptionFontSizeMobile:e})},min:0,max:50,allowReset:!0}))),(0,_.applyFilters)("otter.postsBlock.controls","",a,r,m,p,v)))},M=(0,w.W8)((e=>{let{attributes:t,setAttributes:o,template:l,disabled:a}=e;return(0,d.createElement)(T,{attributes:t,setAttributes:o,template:l,disabled:a})})),S=(0,w.JN)((e=>{var t;let{attributes:o,setAttributes:l}=e;return(0,d.createElement)("div",null,null==o||null===(t=o.template)||void 0===t?void 0:t.filter((e=>{var t;return!(null!=e&&e.startsWith("custom_")&&(void 0===(null===(t=window)||void 0===t?void 0:t.acf)||!window.themeisleGutenberghasPro))})).map(((e,t)=>(0,d.createElement)(M,{key:`item-${e}`,index:t,attributes:o,setAttributes:l,template:e}))))}));var B=o(9084);const z=()=>(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.Button,{variant:"secondary",isSecondary:!0,className:"o-conditions__add",disabled:!0,onClick:()=>{}},(0,l.__)("Add Meta Field","otter-blocks")),(0,d.createElement)("br",null),(0,d.createElement)(B.Z,{notice:(0,d.createElement)(b.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,l.__)("Unlock more options with Otter Pro. ","otter-blocks")),variant:"upsell"}));var P=e=>{let{attributes:t,setAttributes:o}=e;return(0,d.createElement)(d.Fragment,null,(0,d.createElement)("div",{className:f()("o-sortable",t.style)},(0,d.createElement)(T,{attributes:t,setAttributes:o,template:"image",disabled:!0}),(0,d.createElement)(S,{attributes:t,setAttributes:o,onSortEnd:e=>{let{oldIndex:l,newIndex:a}=e;const r=v()(t.template,l,a);o({template:r})},useDragHandle:!0,axis:"y",lockAxis:"y"}),(0,_.applyFilters)("otter.postsBlock.sortableContainer",(0,d.createElement)(z,null),t,o)))},V=o(5241),R=o(8286),L=o(4715),H=e=>{let{attributes:t,setAttributes:o,changeStyle:a,categoriesList:r}=e;const{slugs:n}=(0,g.useSelect)((e=>({slugs:e("otter-store").getPostsSlugs()})),[t.postTypes]),c=r.reduce(((e,t)=>({...e,[t.name]:t})),{}),i=t.categories?t.categories.map((e=>{const t=r.find((t=>t.id===Number(e.id)));return{id:e.id,name:(null==t?void 0:t.name)||(null==t?void 0:t.slug)||""}})):[],s="object"==typeof t.categories?1<=t.categories.length?t.categories[0].id:void 0:t.categories;return(0,d.createElement)(p.InspectorControls,null,(0,d.createElement)(b.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,d.createElement)(V.V,{value:t.style,options:[{label:(0,l.__)("Grid","otter-blocks"),value:"grid",image:window.themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:(0,l.__)("List","otter-blocks"),value:"list",image:window.themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:a})),(0,d.createElement)(b.PanelBody,{title:(0,l.__)("Post Types","otter-blocks"),initialOpen:!1},(0,d.createElement)(b.BaseControl,null,(0,l.__)("Select the types of the post. If none is selected, the default WordPress post will be displayed.","otter-blocks")),(0,d.createElement)(b.SelectControl,{label:(0,l.__)("Post Type","otter-blocks"),value:t.postTypes[0]||null,onChange:e=>e&&o({postTypes:[e]}),options:n.map((e=>({label:(0,L.__)(e),value:e})))})),(0,d.createElement)(b.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},"grid"===t.style&&(0,d.createElement)(b.RangeControl,{label:(0,l.__)("Columns","otter-blocks"),value:t.columns,onChange:e=>{o({columns:e})},min:1,max:5}),(0,d.createElement)(b.QueryControls,{order:t.order,orderBy:t.orderBy,onOrderChange:e=>o({order:e}),onOrderByChange:e=>o({orderBy:e}),numberOfItems:t.postsToShow,onNumberOfItemsChange:e=>o({postsToShow:e}),categorySuggestions:c,selectedCategoryId:s,selectedCategories:i,onCategoryChange:e=>{let t;"object"==typeof e?0<e.length&&(t=e.map((e=>{if("object"==typeof e)return e;const t=r.find((t=>t.name===e));return t?{id:t.id,name:e}:void 0})).filter((e=>void 0!==e))):""!==e&&(t=[{id:e,name:r.find((t=>t.id===Number(e))).name}]),o({categories:t})}}),(0,d.createElement)(b.TextControl,{label:(0,l.__)("Offset","otter-blocks"),help:(0,l.__)("Number of post to displace or pass over.","otter-blocks"),type:"number",value:t.offset,min:0,onChange:e=>o({offset:Number(e)})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Enable featured post","otter-blocks"),checked:t.enableFeaturedPost,onChange:e=>o({enableFeaturedPost:e})}),(0,d.createElement)(b.BaseControl,{label:(0,l.__)("Text alignment","otter-blocks")},(0,d.createElement)(R.Z,{value:t.textAlign,options:[{icon:"editor-alignleft",label:(0,l.__)("Left","otter-blocks"),value:"left"},{icon:"editor-aligncenter",label:(0,l.__)("Center","otter-blocks"),value:"center"},{icon:"editor-alignright",label:(0,l.__)("Right","otter-blocks"),value:"right"}],onChange:e=>o({textAlign:e}),showBottomLabels:!0}))),(0,d.createElement)(b.PanelBody,{title:(0,l.__)("Design & Layout","otter-blocks"),initialOpen:!1},(0,d.createElement)(P,{attributes:t,setAttributes:o})))},N=o(5225),I=o(374);const O={posts:{slugs:[],usedSlugs:[]}};(0,g.registerGenericStore)("otter-store",(()=>{let e=()=>{};const t=O,o={getPostsSlugs:()=>t.posts.slugs,getPostsUsedSlugs:()=>t.posts.usedSlugs},l={setPostsSlugs(o){t.posts.slugs=o,e()},setPostsUsedSlugs(o){t.posts.usedSlugs.push(...o),e()},setOnlyOneSlug(o){t.posts.usedSlugs=[o],e()},removePostsUsedSlugs(o){t.posts.usedSlugs=t.posts.usedSlugs.filter((e=>!o.includes(e))),e()}};return{getSelectors:()=>o,getActions:()=>l,subscribe(t){e=t}}})());var A=o(198),G=e=>{var t;let{post:o,attributes:l,author:a,category:r}=e;return o?(0,d.createElement)("div",{className:f()("o-featured-post",{"has-shadow":l.imageBoxShadow})},l.displayFeaturedImage&&(0,d.createElement)(A.Z,{id:o.featured_media,link:o.link,alt:null===(t=o.title)||void 0===t?void 0:t.rendered,imgStyle:{borderRadius:void 0!==l.borderRadius?l.borderRadius+"px":void 0}}),(0,d.createElement)("div",{className:"o-posts-grid-post-body"},l.template.map((e=>{switch(e){case"title":return(0,d.createElement)(I.te,{attributes:l,element:e,post:o});case"meta":return(0,d.createElement)(I.is,{attributes:l,element:e,post:o,author:a,category:r});case"description":return(0,d.createElement)(I.ue,{attributes:l,element:e,post:o});default:return(0,_.applyFilters)("otter.postsBlock.templateLoop","",e,l)}})))):""};const{attributes:$}=r;const{name:Z}=r;(0,a.registerBlockType)(Z,{...r,title:(0,l.__)("Posts","otter-blocks"),description:(0,l.__)("Display a list of your most recent posts in a beautiful layout. Powered by Otter.","otter-blocks"),icon:n.postsIcon,keywords:["posts","grid","news"],deprecated:i,edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,d.useEffect)((()=>{const e=(0,N.WX)(a,$);return()=>e(t.id)}),[t.id]);const[r,n]=(0,d.useState)([]),{posts:c,categoriesList:i,authors:k}=(0,g.useSelect)((e=>{const o=t.categories&&0<t.categories.length?t.categories.map((e=>e.id)):[],l=(0,u.pickBy)({categories:o,order:t.order,orderby:t.orderBy,per_page:t.postsToShow,offset:t.offset},(e=>!(0,u.isUndefined)(e))),a=t.postTypes;return{posts:0<a.length?a.map((t=>e("core").getEntityRecords("postType",t,l))).flat():e("core").getEntityRecords("postType","post",l),categoriesList:e("core").getEntityRecords("taxonomy","category",{per_page:100}),authors:e("core").getUsers({who:"authors"})}}),[t.categories,t.order,t.orderBy,t.postsToShow,t.offset,t.postTypes]),v=e=>{o({style:e})};(0,d.useEffect)((()=>{(async()=>{n(await(0,L.R3)())})()}),[]),(0,d.useEffect)((()=>{(0,g.dispatch)("otter-store").setPostsSlugs(r)}),[r]);const y=m.iv`
|
126 |
${t.imageWidth&&`--imgWidth: ${t.imageWidth}px;`}
|
127 |
${t.borderRadius&&`--imgBorderRadius: ${t.borderRadius}px;`}
|
128 |
--vertAlign: ${(0,L.Vg)(t.verticalAlign)};
|
@@ -142,7 +142,7 @@ M=(0,l.sprintf)((0,l.__)("Hide %s","otter-blocks"),y)),(0,d.createElement)("div"
|
|
142 |
${t.customTitleFontSizeMobile&&`--titleTextSize: ${t.customTitleFontSizeMobile}px;`}
|
143 |
${t.customDescriptionFontSizeMobile&&`--descriptionTextSize: ${t.customDescriptionFontSizeMobile}px;`}
|
144 |
}
|
145 |
-
`,f=(0,p.useBlockProps)();return c&&i&&k?0===c.length?(0,m.tZ)(d.Fragment,null,(0,m.tZ)("div",f,(0,m.tZ)(b.Placeholder,null,(0,l.__)("No Posts","otter-blocks"))),i&&t.offset||r.length?(0,m.tZ)(H,{attributes:t,setAttributes:o,changeStyle:v,categoriesList:i}):null):(0,m.tZ)(d.Fragment,null,(0,m.tZ)(V.d,{label:(0,l.__)("Block Styles","otter-blocks"),value:t.style,options:[{label:(0,l.__)("Grid","otter-blocks"),value:"grid",image:window.themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:(0,l.__)("List","otter-blocks"),value:"list",image:window.themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:v}),(0,m.tZ)(H,{attributes:t,setAttributes:o,changeStyle:v,categoriesList:i,posts:c}),(0,m.tZ)(h,{attributes:t,setAttributes:o}),(0,m.tZ)("div",(0,s.Z)({},f,{css:y}),(0,m.tZ)(b.Disabled,null,t.enableFeaturedPost&&(0,m.tZ)(G,{attributes:t,post:null==c?void 0:c[0],category:i[0],author:k[0]}),(0,m.tZ)(I.ZP,{attributes:t,posts:c,categoriesList:i,authors:k})))):(0,m.tZ)(d.Fragment,null,(0,m.tZ)("div",f,(0,m.tZ)(b.Placeholder,null,(0,m.tZ)(b.Spinner,null),(0,l.__)("Loading Posts","otter-blocks"))),i&&t.offset?(0,m.tZ)(H,{attributes:t,setAttributes:o,changeStyle:v,categoriesList:i}):null)},save:()=>null})},6951:function(e,t,o){var l=o(5736),a=o(4981),r=o(9818),n=o(340),c=JSON.parse('{"kQ":"\x3c!-- wp:themeisle-blocks/advanced-columns {\\"id\\":\\"wp-block-themeisle-blocks-advanced-columns-e0e1ab2e\\",\\"columns\\":3,\\"layout\\":\\"equal\\",\\"layoutMobile\\":\\"collapsedRows\\",\\"padding\\":{\\"top\\":\\"80px\\",\\"bottom\\":\\"80px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingTablet\\":{\\"top\\":\\"40px\\",\\"bottom\\":\\"40px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\"},\\"columnsWidth\\":1170,\\"horizontalAlign\\":\\"center\\",\\"verticalAlign\\":\\"flex-start\\",\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"backgroundOverlayPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"columnsHTMLTag\\":\\"section\\",\\"align\\":\\"full\\"} --\x3e\\n<section id=\\"wp-block-themeisle-blocks-advanced-columns-e0e1ab2e\\" class=\\"wp-block-themeisle-blocks-advanced-columns alignfull has-3-columns has-desktop-equal-layout has-tablet-equal-layout has-mobile-collapsedRows-layout has-vertical-flex-start\\"><div class=\\"wp-block-themeisle-blocks-advanced-columns-overlay\\"></div><div class=\\"innerblocks-wrap\\">\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-43e17023\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-43e17023\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\">Essential</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-7d521980\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-7d521980\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-7d521980\\"><strong>$59</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-ee4f525b\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-ee4f525b\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-ee4f525b\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-1806e8e7\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-1806e8e7\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-26b966e4\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-26b966e4\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts & Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-4aebde54\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-4aebde54\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-64264549\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-64264549\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-2489d76c\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-2489d76c\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-e30ccf77\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-e30ccf77\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-e30ccf77\\">Business</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\"><strong>$129</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-fe18de7e\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-fe18de7e\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-fe18de7e\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-fb8b7e9c\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-fb8b7e9c\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-78a49dfc\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-78a49dfc\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts & Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-f341b063\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-f341b063\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-8216d9b3\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-8216d9b3\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-09158d16\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-09158d16\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-b3766bd8\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-b3766bd8\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-b3766bd8\\">VIP</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-e601353c\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-e601353c\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-e601353c\\"><strong>$199</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-39d2e261\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-39d2e261\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-39d2e261\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-2c744428\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-2c744428\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-b78d20f0\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-b78d20f0\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts & Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-14fe631b\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-14fe631b\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-0ce7030d\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-0ce7030d\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e</div></section>\\n\x3c!-- /wp:themeisle-blocks/advanced-columns --\x3e"}');const{getBlockType:i}=(0,r.select)("core/blocks"),s=()=>{const e=setInterval((()=>{if(void 0===i("themeisle-blocks/advanced-columns"))return s();const t=(0,a.parse)(c.kQ);(0,a.registerBlockVariation)("themeisle-blocks/advanced-columns",{name:"themeisle-blocks/section-pricing",title:(0,l.__)("Pricing Section","otter-blocks"),icon:n.pricingIcon,scope:"inserter",attributes:t[0].attributes,innerBlocks:t[0].innerBlocks}),clearInterval(e)}),2e3)};s()},3105:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/progress-bar","title":"Progress Bar","category":"themeisle-blocks","description":"Show your progress with a beautiful Progress Bar block. Powered by Otter.","keywords":["progress","bar","skills"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string","default":"Skill"},"percentage":{"type":"number","default":50},"duration":{"type":"number","default":2},"titleStyle":{"type":"string","default":"default"},"percentagePosition":{"type":"string","default":"default"},"height":{"type":"number","default":30},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"barBackgroundColor":{"type":"string"},"titleColor":{"type":"string"},"percentageColor":{"type":"string"}},"editorStyle":"otter-progress-bar-editor","style":"otter-progress-bar-style","script":"otter-progress-bar"}'),n=o(9307),c=o(4184),i=o.n(c),s=o(5711),d=o(5609),m=o(2175),u=o(5225),b=o(2819),p=e=>{let{attributes:t,setAttributes:o,onHeightChange:a,heightMode:r,setHeightMode:c}=e;return(0,n.createElement)(m.InspectorControls,null,(0,n.createElement)(d.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,n.createElement)(d.TextControl,{label:(0,l.__)("Title","otter-blocks"),value:t.title,onChange:e=>{o({title:e})}}),(0,n.createElement)(d.RangeControl,{label:(0,l.__)("Percentage","otter-blocks"),help:(0,l.__)("The value of the progress bar.","otter-blocks"),value:t.percentage,onChange:e=>{void 0!==e&&(e=(0,b.clamp)(e,0,100),o({percentage:e}))},min:0,max:100}),(0,n.createElement)(d.RangeControl,{label:(0,l.__)("Duration","otter-blocks"),help:(0,l.__)("The duration of the animation.","otter-blocks"),value:t.duration,onChange:e=>{void 0!==e&&(e=(0,b.clamp)(e,0,3),o({duration:e}))},min:0,max:3,step:.1}),30<=t.height&&(0,n.createElement)(d.SelectControl,{label:(0,l.__)("Title Style","otter-blocks"),value:t.titleStyle,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Highlight","otter-blocks"),value:"highlight"},{label:(0,l.__)("Outer","otter-blocks"),value:"outer"}],onChange:e=>{o({titleStyle:e})}}),(0,n.createElement)(d.SelectControl,{label:(0,l.__)("Show Percentage","otter-blocks"),value:t.percentagePosition,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Append","otter-blocks"),value:"append"},{label:(0,l.__)("Tooltip","otter-blocks"),value:"tooltip"},{label:(0,l.__)("Outer","otter-blocks"),value:"outer"},{label:(0,l.__)("Hide","otter-blocks"),value:"hide"}],onChange:e=>{r.isAutomatic&&(r.percentagePosition=e,c({...r})),o({percentagePosition:e})}})),(0,n.createElement)(d.PanelBody,{title:(0,l.__)("Style","otter-blocks"),initialOpen:!1},(0,n.createElement)(d.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("The height of the progress bar.","otter-blocks"),value:t.height,onChange:a,min:0,max:100}),(0,n.createElement)(d.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),help:(0,l.__)("Round the corners of the progress bar.","otter-blocks"),value:t.borderRadius,onChange:e=>{o({borderRadius:e})},initialPosition:5,min:0,max:35}),(0,n.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Progress Color","otter-blocks"),colorValue:t.barBackgroundColor,onColorChange:e=>{o({barBackgroundColor:e})}}),(0,n.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Title Color","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>{o({titleColor:e})}}),(0,n.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Percentage Color","otter-blocks"),colorValue:t.percentageColor,onColorChange:e=>{o({percentageColor:e})}}),(0,n.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Background Color","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>{o({backgroundColor:e})}})))};const{attributes:g}=r;var h={to:[{type:"block",blocks:["themeisle-blocks/circle-counter"],transform:e=>{const t=(0,b.omit)(e,["titleStyle","percentagePosition","height","borderRadius","barBackgroundColor","percentageColor"]);return(0,a.createBlock)("themeisle-blocks/circle-counter",{...t,progressColor:e.barBackgroundColor,height:(0,b.clamp)(4*e.height,0,240),titleStyle:"default"})}}]};const{name:k}=r;(0,a.registerBlockType)(k,{...r,title:(0,l.__)("Progress Bar","otter-blocks"),description:(0,l.__)("Show your progress with a beautiful Progress Bar block. Powered by Otter.","otter-blocks"),icon:"minus",keywords:["progress","bar","skills"],transforms:h,edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a,toggleSelection:r}=e;(0,n.useEffect)((()=>{const e=(0,u.WX)(a,g);return()=>e(t.id)}),[t.id]);const[c,b]=(0,n.useState)(!1),[h,k]=(0,n.useState)({isAutomatic:!1,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),v=(0,n.useRef)(null);(0,n.useEffect)((()=>{let e=null;if(v.current)return b(!1),e=setTimeout((()=>b(!0)),1e3*t.duration),v.current.animate({width:`${t.percentage}%`},{duration:1e3*t.duration,easing:"linear",fill:"forwards"}),()=>{clearTimeout(e)}}),[t.percentage,t.duration]);const y=e=>{30>e?(h.isAutomatic||k({isAutomatic:!0,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),o({height:e,titleStyle:"outer",percentagePosition:"append"===t.percentagePosition||"default"===t.percentagePosition?"outer":t.percentagePosition})):(h.isAutomatic&&k({isAutomatic:!1}),o({titleStyle:h.isAutomatic?h.titleStyle:t.titleStyle,percentagePosition:h.isAutomatic?h.percentagePosition:t.percentagePosition,height:e}))},f=s.iv`
|
146 |
--titleColor: ${t.titleColor};
|
147 |
--percentageColor: ${t.percentageColor};
|
148 |
--percentageColorOuter: ${t.percentageColor};
|
@@ -152,15 +152,15 @@ M=(0,l.sprintf)((0,l.__)("Hide %s","otter-blocks"),y)),(0,d.createElement)("div"
|
|
152 |
--borderRadius: ${void 0!==t.borderRadius?t.borderRadius:5}px;
|
153 |
--height: ${void 0!==t.height?t.height:30}px;
|
154 |
--barBackground: ${t.barBackgroundColor};
|
155 |
-
`,_=(0,m.useBlockProps)({id:t.id,className:i()({"has-tooltip":"tooltip"===t.percentagePosition}),css:f});return(0,s.tZ)(n.Fragment,null,(0,s.tZ)(p,{attributes:t,setAttributes:o,onHeightChange:y,heightMode:h,setHeightMode:k}),(0,s.tZ)("div",_,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,s.tZ)(m.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-progress-bar__outer__title",value:t.title,onChange:e=>o({title:e})}),"outer"===t.percentagePosition&&c&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__outer__value"},`${t.percentage}%`)),(0,s.tZ)(d.ResizableBox,{size:{height:t.height},minHeight:5,maxHeight:100,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:l,onResizeStop:(e,o,l,a)=>{y(parseInt(t.height+a.height,10)),r(!0)},onResizeStart:()=>{r(!1)}},(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,s.tZ)("div",{className:i()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,s.tZ)(m.RichText,{tagName:"span",allowedFormats:[],value:t.title,onChange:e=>o({title:e})})),(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar show",ref:v},"tooltip"===t.percentagePosition&&c&&(0,s.tZ)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip show"},`${t.percentage}%`,(0,s.tZ)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&c&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append show"},`${t.percentage}%`)),"default"===t.percentagePosition&&c&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress"},`${t.percentage}%`)))))},save:e=>{let{attributes:t}=e;const o=m.useBlockProps.save({id:t.id,className:i()({"has-tooltip":"tooltip"===t.percentagePosition}),"data-percent":t.percentage,"data-duration":t.duration});return(0,n.createElement)("div",o,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__outer__title"},t.title),"outer"===t.percentagePosition&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer__value wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,n.createElement)("div",{className:i()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,n.createElement)("span",null,t.title)),(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar"},"tooltip"===t.percentagePosition&&(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip"},(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__number"},t.percentage),(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),"default"===t.percentagePosition&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__number"},`${t.percentage}%`)))}})},7902:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/review","title":"Product Review","category":"themeisle-blocks","description":"Turn your posts into smart reviews with ratings and generate leads with a performing review block. Powered by Otter.","keywords":["product","review","stars"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string"},"currency":{"type":"string","default":"USD"},"price":{"type":"number"},"discounted":{"type":"number"},"image":{"type":"object"},"description":{"type":"string"},"features":{"type":"array","default":[{"title":"Stability","rating":9},{"title":"Ease of Use","rating":4},{"title":"Look & Feel","rating":9},{"title":"Price","rating":7}]},"pros":{"type":"array","default":["Easy to use","Good price","Sturdy build and ergonomics"]},"cons":{"type":"array","default":["Incompatible with old versions","Hard to assemble","Bad color combination"]},"links":{"type":"array","default":[{"label":"Buy on Amazon","href":"","isSponsored":false},{"label":"Buy on eBay","href":"","isSponsored":false}]},"primaryColor":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"buttonTextColor":{"type":"string"},"isSynced":{"type":"array"}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"single-column","label":"Single Column"}],"supports":{"html":false},"editorStyle":"otter-review-editor","style":"otter-review-style"}'),n=o(340),c=o(9307),i=o(5711),s=o(4184),d=o.n(s),m=o(1463),u=o.n(m),b=o(2175),p=o(5609),g=o(2819),h=o(3159),k=o(9084);const v=e=>{let{title:t,remove:o,children:a}=e;const[r,n]=(0,c.useState)(!1);return(0,c.createElement)("div",{className:"o-review__inspector_panel_item"},(0,c.createElement)("div",{className:"o-review__inspector_panel_item__header"},(0,c.createElement)(p.Button,{className:"o-review__inspector_panel_item__title",onClick:()=>n(!r)},t),(0,c.createElement)(p.Button,{icon:"no-alt",label:(0,l.__)("Remove","otter-blocks"),showTooltip:!0,className:"o-review__inspector_panel_item__arrow",onClick:o})),r&&(0,c.createElement)("div",{className:"o-review__inspector_panel_item__content"},a))};var y=e=>{var t,o,a,r,n;let{attributes:i,setAttributes:s,getValue:d,productAttributes:m}=e;const u=(e,t)=>{const o=[...i.features];o[e]={...o[e],...t},s({features:o})},y=(e,t)=>{const o=[...i.links];o[e]={...o[e],...t},s({links:o})},f=e=>{let t=[...i.links];t=t.filter(((t,o)=>o!==e)),s({links:t})};return(0,c.createElement)(b.InspectorControls,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Product Details","otter-blocks")},i.product&&(0,c.createElement)(p.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice"},(0,l.__)("WooCommerce product synchronization is active. Some options might be disabled.","otter-blocks")),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Product Name","otter-blocks"),type:"text",placeholder:(0,l.__)("Name of your product…","otter-blocks"),value:(null==m?void 0:m.title)||i.title,disabled:i.product,onChange:e=>s({title:e})}),(0,c.createElement)(p.BaseControl,null,(0,c.createElement)(p.TextControl,{label:(0,l.__)("Currency","otter-blocks"),type:"text",placeholder:(0,l.__)("Currency code, like USD or EUR.","otter-blocks"),value:(null==m?void 0:m.currency)||i.currency,disabled:i.product,onChange:e=>s({currency:e})}),(0,l.__)("Currency code in three digit ISO 4217 code.","otter-blocks")+" ",(0,c.createElement)(p.ExternalLink,{href:"https://en.wikipedia.org/wiki/ISO_4217#Active_codes"},(0,l.__)("List of ISO 4217 codes.","otter-blocks"))),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Price","otter-blocks"),type:"number",value:(null==m?void 0:m.price)||i.price,disabled:i.product,onChange:e=>s({price:""!==e?Number(e):void 0})}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Discounted Price","otter-blocks"),type:"number",value:(null==m?void 0:m.discounted)||i.discounted,disabled:i.product,onChange:e=>s({discounted:""!==e?Number(e):void 0})}),i.image||null!=m&&m.image?(0,c.createElement)(p.BaseControl,{className:"o-review__inspector_image"},(0,c.createElement)("img",{src:(null==m||null===(t=m.image)||void 0===t?void 0:t.url)||i.image.url,alt:(null==m||null===(o=m.image)||void 0===o?void 0:o.url)||i.image.alt}),(0,c.createElement)(p.Button,{isSecondary:!0,onClick:()=>s({image:void 0}),disabled:i.product},(0,l.__)("Remove image","otter-blocks"))):(0,c.createElement)(b.MediaPlaceholder,{labels:{title:(0,l.__)("Product Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:i.image,onSelect:e=>s({image:(0,g.pick)(e,["id","alt","url"])})})),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Product Features","otter-blocks"),initialOpen:!1},0<i.features.length&&i.features.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e.title||(0,l.__)("Feature","otter-blocks"),remove:()=>(e=>{let t=[...i.features];t=t.filter(((t,o)=>o!==e)),s({features:t})})(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("Feature title","otter-blocks"),value:e.title,onChange:e=>u(t,{title:e})}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Rating","otter-blocks"),value:e.rating,onChange:e=>u(t,{rating:Number(e)}),min:1,max:10})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.features];e.push({title:(0,l.__)("Feature","otter-blocks"),rating:9}),s({features:e})}},(0,l.__)("Add Feature","otter-blocks"))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Pros","otter-blocks"),initialOpen:!1},0<i.pros.length&&i.pros.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e||(0,l.__)("Pro","otter-blocks"),remove:()=>(e=>{let t=[...i.pros];t=t.filter(((t,o)=>o!==e)),s({pros:t})})(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("Why do you like the product?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...i.pros];o[e]=t,s({pros:o})})(t,e)})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.pros];e.push(""),s({pros:e})}},(0,l.__)("Add Item","otter-blocks"))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Cons","otter-blocks"),initialOpen:!1},0<i.cons.length&&i.cons.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e||(0,l.__)("Con","otter-blocks"),remove:()=>(e=>{let t=[...i.cons];t=t.filter(((t,o)=>o!==e)),s({cons:t})})(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("What can be improved?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...i.cons];o[e]=t,s({cons:o})})(t,e)})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.cons];e.push(""),s({cons:e})}},(0,l.__)("Add Item","otter-blocks"))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Links","otter-blocks"),initialOpen:!1},i.product&&(0,c.createElement)(p.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice"},(0,l.__)("WooCommerce product synchronization is active. Some options might be disabled.","otter-blocks")),0<(null==m||null===(a=m.links)||void 0===a?void 0:a.length)&&(null==m||null===(r=m.links)||void 0===r?void 0:r.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>f(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),disabled:i.product,value:e.label}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,disabled:i.product}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,disabled:i.product}))))),!(0<(null==m||null===(n=m.links)||void 0===n?void 0:n.length))&&(0,c.createElement)(c.Fragment,null,0<i.links.length&&i.links.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>f(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,onChange:e=>y(t,{label:e})}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,onChange:e=>y(t,{href:e})}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,onChange:()=>y(t,{isSponsored:!e.isSponsored})})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.links];e.push({label:(0,l.__)("Buy Now","otter-blocks"),href:""}),s({links:e})}},(0,l.__)("Add Links","otter-blocks")))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.Z,{field:"primaryColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Primary","otter-blocks"),colorValue:d("primaryColor"),onColorChange:e=>s({primaryColor:e})})),(0,c.createElement)(h.Z,{field:"backgroundColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:d("backgroundColor"),onColorChange:e=>s({backgroundColor:e})})),(0,c.createElement)(b.ContrastChecker,{textColor:d("primaryColor"),backgroundColor:d("backgroundColor")}),(0,c.createElement)(h.Z,{field:"textColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Text","otter-blocks"),colorValue:d("textColor"),onColorChange:e=>s({textColor:e})})),(0,c.createElement)(h.Z,{field:"buttonTextColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Button Text","otter-blocks"),colorValue:d("buttonTextColor"),onColorChange:e=>s({buttonTextColor:e})}))),!Boolean(window.themeisleGutenberg.hasPro)&&(0,c.createElement)(p.PanelBody,{title:(0,l.__)("More Features","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.Z,{notice:(0,c.createElement)(p.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,l.__)("Unlock more options with Otter Pro. ","otter-blocks")),variant:"upsell"})))},f=o(5225);const{attributes:_}=r;const{name:w,attributes:C}=r;window.themeisleGutenberg.defaultReviewAttributes=C,(0,a.registerBlockType)(w,{...r,title:(0,l.__)("Product Review","otter-blocks"),description:(0,l.__)("Turn your posts into smart reviews with ratings and generate leads with a performing review block. Powered by Otter.","otter-blocks"),icon:n.faIcon,keywords:["product","review","stars"],styles:[{name:"default",label:(0,l.__)("Default","otter-blocks"),isDefault:!0},{name:"single-column",label:(0,l.__)("Single Column","otter-blocks")}],edit:e=>{var t,o,a,r,s;let{name:m,attributes:g,setAttributes:h,clientId:k,isSelected:v,status:w="isInactive",productAttributes:C={}}=e;(0,c.useEffect)((()=>{const e=(0,f.WX)(k,_);return()=>e(g.id)}),[g.id]);const E=e=>(0,f.Ih)({name:m,field:e,defaultAttributes:_,attributes:g}),x=(g.features.reduce(((e,t)=>e+t.rating),0)/g.features.length).toFixed(1),T=[];for(let e=0;10>e;e++)T.push((0,i.tZ)(n.StarFilled,{key:e,className:d()({low:3>=Math.round(x)&&e<Math.round(x),medium:3<Math.round(x)&&8>Math.round(x)&&e<Math.round(x),high:7<Math.round(x)&&10>=Math.round(x)&&e<Math.round(x)})}));const M=i.iv`
|
156 |
--backgroundColor: ${E("backgroundColor")};
|
157 |
--primaryColor: ${E("primaryColor")};
|
158 |
--textColor: ${E("textColor")};
|
159 |
--buttonTextColor: ${E("buttonTextColor")};
|
160 |
`,S="object"==typeof w&&null!==w&&w.isError||"isLoading"===w;let B=(0,b.useBlockProps)({id:g.id,className:S&&"is-placeholder",css:M});return"isLoading"===w?(0,i.tZ)(c.Fragment,null,(0,i.tZ)(y,{attributes:g,setAttributes:h,getValue:E,productAttributes:C}),(0,i.tZ)("div",B,(0,i.tZ)(p.Placeholder,null,(0,i.tZ)(p.Spinner,null)))):"object"==typeof w&&null!==w&&w.isError?(0,i.tZ)(c.Fragment,null,(0,i.tZ)(y,{attributes:g,setAttributes:h,getValue:E,productAttributes:C}),(0,i.tZ)("div",B,(0,i.tZ)(p.Placeholder,{instructions:w.message}))):(0,i.tZ)(c.Fragment,null,(0,i.tZ)(y,{attributes:g,setAttributes:h,getValue:E,productAttributes:C}),(0,i.tZ)("div",B,(0,i.tZ)("div",{className:"o-review__header"},null!=C&&C.title?(0,i.tZ)(b.RichText.Content,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:null==C?void 0:C.title,tagName:"h3"}):(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:g.title,onChange:e=>h({title:e}),tagName:"h3"}),(0,i.tZ)("div",{className:"o-review__header_meta"},(0,i.tZ)("div",{className:"o-review__header_ratings"},T,(0,i.tZ)("span",null,
|
161 |
/** translators: %s Rating score. */
|
162 |
-
(0,l.sprintf)((0,l.__)("%f out of 10","otter-blocks"),Math.abs(x)||0))),(0,i.tZ)("span",{className:"o-review__header_price"},((null==C?void 0:C.price)&&(null==C?void 0:C.discounted)||g.price&&g.discounted)&&(0,i.tZ)("del",null,(null!==(t=u()((null==C?void 0:C.currency)||g.currency))&&void 0!==t?t:"$")+""+((null==C?void 0:C.price)||g.price)||0),(g.price||g.discounted||(null==C?void 0:C.price)||(null==C?void 0:C.discounted))&&(null!==(o=u()((null==C?void 0:C.currency)||g.currency))&&void 0!==o?o:"$")+""+(null!=C&&C.discounted||g.discounted?(null==C?void 0:C.discounted)||g.discounted:(null==C?void 0:C.price)||g.price)))),(0,i.tZ)("div",{className:"o-review__left"},(0,i.tZ)("div",{className:d()("o-review__left_details",{"is-single":!g.image||!v&&!g.description})},null!=C&&C.image?(0,i.tZ)("img",{src:null==C||null===(a=C.image)||void 0===a?void 0:a.url,alt:null==C||null===(r=C.image)||void 0===r?void 0:r.alt}):g.image&&(0,i.tZ)("img",{src:g.image.url,alt:g.image.alt}),!v&&!g.description||null!=C&&C.description?(0,i.tZ)(b.RichText.Content,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:null==C?void 0:C.description,tagName:"p"}):(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:g.description,onChange:e=>h({description:e}),tagName:"p"})),(0,i.tZ)("div",{className:"o-review__left_features"},0<g.features.length&&g.features.map(((e,t)=>{const o=[];for(let t=0;10>t;t++)o.push((0,i.tZ)(n.StarFilled,{key:t,className:d()({low:3>=Math.round(e.rating)&&t<Math.round(e.rating),medium:3<Math.round(e.rating)&&8>Math.round(e.rating)&&t<Math.round(e.rating),high:7<Math.round(e.rating)&&10>=Math.round(e.rating)&&t<Math.round(e.rating)})}));return(0,i.tZ)("div",{className:"o-review__left_feature",key:t},(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Feature title","otter-blocks"),value:e.title,className:"o-review__left_feature_title",onChange:e=>((e,t)=>{const o=[...g.features];o[e]={...o[e],...t},h({features:o})})(t,{title:e}),tagName:"span"}),(0,i.tZ)("div",{className:"o-review__left_feature_ratings"},o,(0,i.tZ)("span",null,e.rating.toFixed(1),"/10")))})))),(0,i.tZ)("div",{className:"o-review__right"},0<g.pros.length&&(0,i.tZ)("div",{className:"o-review__right_pros"},(0,i.tZ)("h4",null,(0,l.__)("Pros","otter-blocks")),g.pros.map(((e,t)=>(0,i.tZ)("div",{className:"o-review__right_pros_item",key:t},n.check,(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Why do you like the product?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...g.pros];o[e]=t,h({pros:o})})(t,e),tagName:"p"}))))),0<g.cons.length&&(0,i.tZ)("div",{className:"o-review__right_cons"},(0,i.tZ)("h4",null,(0,l.__)("Cons","otter-blocks")),g.cons.map(((e,t)=>(0,i.tZ)("div",{className:"o-review__right_cons_item",key:t},n.close,(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("What can be improved?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...g.cons];o[e]=t,h({cons:o})})(t,e),tagName:"p"})))))),(0<(null==C||null===(s=C.links)||void 0===s?void 0:s.length)||0<g.links.length)&&(0,i.tZ)("div",{className:"o-review__footer"},(0,i.tZ)("span",{className:"o-review__footer_label"},(0,l.__)("Buy this product","otter-blocks")),(0,i.tZ)("div",{className:"o-review__footer_buttons"},((null==C?void 0:C.links)||g.links).map(((e,t)=>(0,i.tZ)(b.RichText,{key:t,placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,disabled:0<(null==C?void 0:C.links),onChange:e=>((e,t)=>{const o=[...g.links];o[e]={...o[e],...t},h({links:o})})(t,{label:e}),tagName:"span"})))))))},save:()=>null})},3716:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-column","title":"Section Column","category":"themeisle-blocks","description":"A single column within a Section block. Powered by Otter.","parent":["themeisle-blocks/advanced-columns"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"padding":{"type":"object"},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"margin":{"type":"object"},"marginTablet":{"type":"object"},"marginMobile":{"type":"object"},"backgroundType":{"type":"string","default":"color"},"backgroundColor":{"type":"string"},"backgroundImage":{"type":"object"},"backgroundAttachment":{"type":"string","default":"scroll"},"backgroundPosition":{"type":"object"},"backgroundRepeat":{"type":"string","default":"repeat"},"backgroundSize":{"type":"string","default":"auto"},"backgroundGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"border":{"type":"object"},"borderColor":{"type":"string","default":"#000000"},"borderRadius":{"type":"object"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":0},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"columnsHTMLTag":{"type":"string","default":"div"},"columnWidth":{"type":"string"},"isSynced":{"type":"array"}},"supports":{"inserter":false,"html":false},"editorStyle":"otter-advanced-columns-editor","style":"otter-advanced-columns-style"}'),n=o(340),c=o(9307),i=o(80),s=o.n(i),d=o(2819),m=o(2175),u=o(4715);const b={id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginRight:{type:"number",default:0},marginRightTablet:{type:"number",default:0},marginRightMobile:{type:"number",default:0},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number",default:0},marginLeftMobile:{type:"number",default:0},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},p=[{attributes:b,supports:{inserter:!1,reusable:!1,html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,r,n,i;if("color"===t.backgroundType&&(a={background:t.backgroundColor}),"image"===t.backgroundType&&(a={backgroundImage:`url( '${t.backgroundImageURL}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType){let e;e="linear"===t.backgroundGradientType?`${t.backgroundGradientAngle}deg`:`at ${t.backgroundGradientPosition}`,a={background:`${t.backgroundGradientType}-gradient( ${e}, ${t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientFirstLocation}%, ${t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientSecondLocation}% )`}}"linked"===t.borderType&&(r={borderWidth:`${t.border}px`,borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(r={borderTopWidth:`${t.borderTop}px`,borderRightWidth:`${t.borderRight}px`,borderBottomWidth:`${t.borderBottom}px`,borderLeftWidth:`${t.borderLeft}px`,borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(n={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(n={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(i={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${s()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const d={...a,...r,...n,...i};return(0,c.createElement)(l,{className:o,id:t.id,style:d},(0,c.createElement)(m.InnerBlocks.Content,null))}},{attributes:{...b,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"}},supports:{inserter:!1,reusable:!1,html:!1},migrate:e=>{let t="";if("gradient"===e.backgroundType){let o="";"linear"===e.backgroundGradientType&&(o=`${e.backgroundGradientAngle}deg, `),t=`${e.backgroundGradientType}-gradient(${o}${s()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${s()(e.backgroundGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}%)`}return{...{...(0,d.omit)(e,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition"]),backgroundGradient:t}}},isEligible:e=>"gradient"===e.backgroundType&&void 0!==e.backgroundGradientFirstColor,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;return(0,c.createElement)(l,{className:o,id:t.id},(0,c.createElement)(m.InnerBlocks.Content,null))}},{attributes:{...(0,d.omit)(b,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition"]),paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"},backgroundGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"}},supports:{inserter:!1,reusable:!1,html:!1},migrate:e=>{const t={},o={},l={},a={},r={},n={},c={},i={};let s={},m={};"unlinked"===e.paddingType?(t.top=(0,d.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,d.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,d.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,d.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,d.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,d.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,d.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,d.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,d.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,d.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,d.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,d.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(a.top=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px",a.bottom=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px",a.left=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px",a.right=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px"):(a.top=(0,d.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",a.bottom=(0,d.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px",a.left=(0,d.isUndefined)(e.marginLeft)?"20px":e.marginLeft+"px",a.right=(0,d.isUndefined)(e.marginRight)?"20px":e.marginRight+"px"),"linked"===e.marginTypeTablet?(r.top=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",r.bottom=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",r.left=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",r.right=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(r.top=(0,d.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",r.bottom=(0,d.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px",r.left=(0,d.isUndefined)(e.marginLeftTablet)?null:e.marginLeftTablet+"px",r.right=(0,d.isUndefined)(e.marginRightTablet)?null:e.marginRightTablet+"px"),"linked"===e.marginTypeMobile?(n.top=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",n.bottom=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",n.left=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",n.right=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(n.top=(0,d.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",n.bottom=(0,d.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px",n.left=(0,d.isUndefined)(e.marginLeftMobile)?null:e.marginLeftMobile+"px",n.right=(0,d.isUndefined)(e.marginRightMobile)?null:e.marginRightMobile+"px"),"unlinked"===e.borderType?(c.top=(0,d.isUndefined)(e.borderTop)?null:e.borderTop+"px",c.bottom=(0,d.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",c.left=(0,d.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",c.right=(0,d.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(c.top=(0,d.isUndefined)(e.border)?null:e.border+"px",c.bottom=(0,d.isUndefined)(e.border)?null:e.border+"px",c.left=(0,d.isUndefined)(e.border)?null:e.border+"px",c.right=(0,d.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(i.top=(0,d.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",i.bottom=(0,d.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",i.left=(0,d.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",i.right=(0,d.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(i.top=(0,d.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.bottom=(0,d.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.left=(0,d.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.right=(0,d.isUndefined)(e.borderRadius)?null:e.borderRadius+"px"),void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID&&(s={id:e.backgroundImageID,url:e.backgroundImageURL});return void 0!==e.backgroundPosition&&(m={"top left":{x:"0.00",y:"0.00"},"top center":{x:"0.50",y:"0.00"},"top right":{x:"1.00",y:"0.00"},"center left":{x:"0.00",y:"0.50"},"center center":{x:"0.50",y:"0.50"},"center right":{x:"1.00",y:"0.50"},"bottom left":{x:"0.00",y:"1.00"},"bottom center":{x:"0.50",y:"1.00"},"bottom right":{x:"1.00",y:"1.00"}}[e.backgroundPosition]),{...{...(0,d.omit)(e,["paddingType","paddingTypeTablet","paddingTypeMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","marginType","marginTypeTablet","marginTypeMobile","marginTop","marginTopTablet","marginTopMobile","marginRight","marginRightTablet","marginRightMobile","marginBottom","marginBottomTablet","marginBottomMobile","marginLeft","marginLeftTablet","marginLeftMobile","borderType","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"]),...!(0,u.FH)(t)&&{padding:t},...!(0,u.FH)(o)&&{paddingTablet:o},...!(0,u.FH)(l)&&{paddingMobile:l},...!(0,u.FH)(a)&&{margin:a},...!(0,u.FH)(r)&&{marginTablet:r},...!(0,u.FH)(n)&&{marginMobile:n},...!(0,u.FH)(c)&&{border:c},...!(0,u.FH)(i)&&{borderRadius:i},...!(0,u.FH)(s)&&{backgroundImage:s},...!(0,u.FH)(m)&&{backgroundPosition:m}}}},isEligible:e=>["padding","paddingTablet","paddingMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","margin","marginTablet","marginMobile","marginTop","marginTopTablet","marginTopMobile","marginRight","marginRightTablet","marginRightMobile","marginBottom","marginBottomTablet","marginBottomMobile","marginLeft","marginLeftTablet","marginLeftMobile","borderType","border","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadius","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"].some((t=>!(0,d.isUndefined)(e[t])&&"number"==typeof e[t]))||void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID||void 0!==e.backgroundPosition&&"object"!=typeof e.backgroundPosition,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;return(0,c.createElement)(l,{className:o,id:t.id},(0,c.createElement)(m.InnerBlocks.Content,null))}}];var g=p,h=o(4333),k=o(9818),v=o(7400),y=o(4184),f=o.n(y),_=o(5609),w=o(6993),C=o(5452),E=o(2136),x=o(3159),T=e=>{let{attributes:t,setAttributes:o,getValue:a,parentBlock:r,updateBlockAttributes:n,currentBlockWidth:i,nextBlock:s,nextBlockWidth:b}=e;const p=(0,k.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[g,h]=(0,c.useState)("layout");return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(_.PanelBody,{className:"o-section-header-panel"},(0,c.createElement)(_.Button,{className:f()("header-tab",{"is-selected":"layout"===g}),onClick:()=>h("layout")},(0,c.createElement)("span",null,(0,c.createElement)(_.Dashicon,{icon:"editor-table"}),(0,l.__)("Layout","otter-blocks"))),(0,c.createElement)(_.Button,{className:f()("header-tab",{"is-selected":"style"===g}),onClick:()=>h("style")},(0,c.createElement)("span",null,(0,c.createElement)(_.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,c.createElement)(_.Button,{className:f()("header-tab",{"is-selected":"advanced"===g}),onClick:()=>h("advanced")},(0,c.createElement)("span",null,(0,c.createElement)(_.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"layout"===g&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(_.PanelBody,{title:(0,l.__)("Spacing","otter-blocks")},1<r.innerBlocks.length&&(0,c.createElement)(_.RangeControl,{label:(0,l.__)("Column Width","otter-blocks"),value:Number(t.columnWidth),onChange:e=>{const t=e||10,l=Number(i.current)-t+Number(b.current);i.current=t,b.current=l,o({columnWidth:t.toFixed(2)}),n(s.current,{columnWidth:l.toFixed(2)})},min:10,max:Number(t.columnWidth)+Number(b.current)-10}),(0,c.createElement)(w.Z,{label:(0,l.__)("Screen Type","otter-blocks"),className:"otter-section-padding-responsive-control"},(0,c.createElement)(x.Z,{field:(()=>{switch(p){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(_.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{switch(p){case"Desktop":return a("padding");case"Tablet":return a("paddingTablet");case"Mobile":return a("paddingMobile");default:return}})(),inputProps:{min:0,max:500},onChange:e=>{switch((0,u.CJ)(e)&&(e=void 0),p){case"Desktop":return o({padding:e});case"Tablet":return o({paddingTablet:e});case"Mobile":return o({paddingMobile:e});default:return}}})),(0,c.createElement)(x.Z,{field:(()=>{switch(p){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(_.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{switch(p){case"Desktop":return a("margin");case"Tablet":return a("marginTablet");case"Mobile":return a("marginMobile");default:return}})(),inputProps:{min:-500,max:500},onChange:e=>{switch((0,u.CJ)(e)&&(e=void 0),p){case"Desktop":return o({margin:e});case"Tablet":return o({marginTablet:e});case"Mobile":return o({marginMobile:e});default:return}}})))))||"style"===g&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(_.PanelBody,{title:(0,l.__)("Background Settings","otter-blocks")},(0,c.createElement)(C.Z,{backgroundType:t.backgroundType,backgroundColor:t.backgroundColor,image:t.backgroundImage,gradient:t.backgroundGradient,focalPoint:t.backgroundPosition,backgroundAttachment:t.backgroundAttachment,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize,changeBackgroundType:e=>o({backgroundType:e}),changeImage:e=>{o({backgroundImage:(0,d.pick)(e,["id","url"])})},removeImage:()=>o({backgroundImage:void 0}),changeColor:e=>o({backgroundColor:e}),changeGradient:e=>o({backgroundGradient:e}),changeBackgroundAttachment:e=>o({backgroundAttachment:e}),changeBackgroundRepeat:e=>o({backgroundRepeat:e}),changeFocalPoint:e=>o({backgroundPosition:e}),changeBackgroundSize:e=>o({backgroundSize:e})})),(0,c.createElement)(_.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1},(0,c.createElement)(_.__experimentalBoxControl,{label:(0,l.__)("Border Width","otter-blocks"),values:t.border,inputProps:{min:0,max:500},units:[{value:"px",label:"px"}],onChange:e=>{(0,u.CJ)(e)&&(e=void 0),o({border:e})}}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}),(0,c.createElement)(_.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:t.borderRadius,inputProps:{min:0,max:500},units:[{value:"px",label:"px"},{value:"%",label:"%"}],id:"otter-border-raduis-box",onChange:e=>{(0,u.CJ)(e)&&(e=void 0),o({borderRadius:e})}}),(0,c.createElement)(_.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:t.boxShadow,onChange:()=>o({boxShadow:!t.boxShadow})}),t.boxShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,c.createElement)(E.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,c.createElement)(_.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(_.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(_.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(_.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(_.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))))||"advanced"===g&&(0,c.createElement)(_.PanelBody,{title:(0,l.__)("Section Settings","otter-blocks")},(0,c.createElement)(_.SelectControl,{label:(0,l.__)("HTML Tag","otter-blocks"),value:t.columnsHTMLTag,options:[{label:(0,l.__)("Default (div)","otter-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>o({columnsHTMLTag:e})})))},M=o(5225);const{attributes:S}=r;const{name:B}=r;(0,a.registerBlockType)(B,{...r,title:(0,l.__)("Section Column","otter-blocks"),description:(0,l.__)("A single column within a Section block. Powered by Otter.","otter-blocks"),icon:n.columnIcon,deprecated:g,edit:e=>{let{name:t,attributes:o,setAttributes:l,isSelected:a,clientId:r}=e;const{updateBlockAttributes:n}=(0,k.useDispatch)("core/block-editor"),{adjacentBlockClientId:i,adjacentBlock:u,parentBlock:b,hasInnerBlocks:p,isViewportAvailable:g,isPreviewDesktop:y,isPreviewTablet:f,isPreviewMobile:_}=(0,k.useSelect)((e=>{const{getAdjacentBlockClientId:t,getBlock:o,getBlockRootClientId:l}=e("core/block-editor"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post"),n=o(r),c=t(r);return{adjacentBlockClientId:c,adjacentBlock:o(c),parentBlock:o(l(r)),hasInnerBlocks:!(!n||!n.innerBlocks.length),isViewportAvailable:!!a,isPreviewDesktop:!!a&&"Desktop"===a(),isPreviewTablet:!!a&&"Tablet"===a(),isPreviewMobile:!!a&&"Mobile"===a()}}),[]),w=(0,h.useViewportMatch)("large",">="),C=(0,h.useViewportMatch)("large","<="),E=(0,h.useViewportMatch)("small",">="),x=(0,h.useViewportMatch)("small","<=");(0,c.useEffect)((()=>{const e=(0,M.WX)(r,S);return()=>e(o.id)}),[o.id]),(0,c.useEffect)((()=>{if(1<b.innerBlocks.length&&!i){const e=b.innerBlocks.findIndex((e=>e.clientId===r)),t=b.innerBlocks[e-1];z.current=t.clientId,P.current=t.attributes.columnWidth}}),[]),(0,c.useEffect)((()=>{if(1<b.innerBlocks.length)if(i)P.current=u.attributes.columnWidth,z.current=i,B.current=o.columnWidth;else{const e=b.innerBlocks.findIndex((e=>e.clientId===r)),t=b.innerBlocks[e-1];P.current=t.attributes.columnWidth,z.current=t.clientId,B.current=o.columnWidth}}),[a,o.columnWidth,b.innerBlocks.length]);const B=(0,c.useRef)(o.columnWidth),z=(0,c.useRef)(i&&i),P=(0,c.useRef)(u&&u.attributes.columnWidth),V=e=>(0,M.Ih)({name:t,field:e,defaultAttributes:S,attributes:o});let R=w&&!C&&E&&!x,L=!w&&!C&&E&&!x,H=!(w||C||E||x);if(g&&!H&&(R=y,L=f,H=_),void 0===o.columnWidth){const e=b.innerBlocks.findIndex((e=>e.clientId===r)),t=b.attributes.columns,o=b.attributes.layout;n(r,{columnWidth:v.Z[t][o][e]})}const N=o.columnsHTMLTag;let I,O,A,G,$;var Z,F,D,W,U,j,q,J,K,Q,X,Y,ee,te,oe,le,ae,re,ne,ce,ie,se,de,me,ue,be,pe;R&&(I={paddingTop:null===(Z=V("padding"))||void 0===Z?void 0:Z.top,paddingRight:null===(F=V("padding"))||void 0===F?void 0:F.right,paddingBottom:null===(D=V("padding"))||void 0===D?void 0:D.bottom,paddingLeft:null===(W=V("padding"))||void 0===W?void 0:W.left,marginTop:null===(U=V("margin"))||void 0===U?void 0:U.top,marginRight:null===(j=V("margin"))||void 0===j?void 0:j.right,marginBottom:null===(q=V("margin"))||void 0===q?void 0:q.bottom,marginLeft:null===(J=V("margin"))||void 0===J?void 0:J.left}),L&&(I={paddingTop:null===(K=V("paddingTablet"))||void 0===K?void 0:K.top,paddingRight:null===(Q=V("paddingTablet"))||void 0===Q?void 0:Q.right,paddingBottom:null===(X=V("paddingTablet"))||void 0===X?void 0:X.bottom,paddingLeft:null===(Y=V("paddingTablet"))||void 0===Y?void 0:Y.left,marginTop:null===(ee=V("marginTablet"))||void 0===ee?void 0:ee.top,marginRight:null===(te=V("marginTablet"))||void 0===te?void 0:te.right,marginBottom:null===(oe=V("marginTablet"))||void 0===oe?void 0:oe.bottom,marginLeft:null===(le=V("marginTablet"))||void 0===le?void 0:le.left}),H&&(I={paddingTop:null===(ae=V("paddingMobile"))||void 0===ae?void 0:ae.top,paddingRight:null===(re=V("paddingMobile"))||void 0===re?void 0:re.right,paddingBottom:null===(ne=V("paddingMobile"))||void 0===ne?void 0:ne.bottom,paddingLeft:null===(ce=V("paddingMobile"))||void 0===ce?void 0:ce.left,marginTop:null===(ie=V("marginMobile"))||void 0===ie?void 0:ie.top,marginRight:null===(se=V("marginMobile"))||void 0===se?void 0:se.right,marginBottom:null===(de=V("marginMobile"))||void 0===de?void 0:de.bottom,marginLeft:null===(me=V("marginMobile"))||void 0===me?void 0:me.left}),"color"===o.backgroundType&&(O={backgroundColor:o.backgroundColor}),"image"===o.backgroundType&&(O={backgroundImage:`url( '${null===(ue=o.backgroundImage)||void 0===ue?void 0:ue.url}' )`,backgroundAttachment:o.backgroundAttachment,backgroundPosition:`${Math.round(100*(null===(be=o.backgroundPosition)||void 0===be?void 0:be.x))}% ${Math.round(100*(null===(pe=o.backgroundPosition)||void 0===pe?void 0:pe.y))}%`,backgroundRepeat:o.backgroundRepeat,backgroundSize:o.backgroundSize}),"gradient"===o.backgroundType&&(O={backgroundImage:o.backgroundGradient}),o.border&&!(0,d.isEmpty)(o.border)&&(A={borderTopWidth:o.border.top,borderRightWidth:o.border.right,borderBottomWidth:o.border.bottom,borderLeftWidth:o.border.left,borderStyle:"solid",borderColor:o.borderColor}),o.borderRadius&&!(0,d.isEmpty)(o.borderRadius)&&(G={borderTopLeftRadius:o.borderRadius.top,borderTopRightRadius:o.borderRadius.right,borderBottomRightRadius:o.borderRadius.bottom,borderBottomLeftRadius:o.borderRadius.left}),!0===o.boxShadow&&($={boxShadow:`${o.boxShadowHorizontal}px ${o.boxShadowVertical}px ${o.boxShadowBlur}px ${o.boxShadowSpread}px ${s()(o.boxShadowColor?o.boxShadowColor:"#000000",o.boxShadowColorOpacity)}`});const ge={flexBasis:`${o.columnWidth}%`,...I,...O,...A,...G,...$},he=(0,m.useBlockProps)({id:o.id,style:ge});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(T,{attributes:o,setAttributes:l,getValue:V,parentBlock:b,updateBlockAttributes:n,currentBlockWidth:B,nextBlock:z,nextBlockWidth:P}),(0,c.createElement)(N,he,(0,c.createElement)(m.InnerBlocks,{templateLock:!1,renderAppender:!p&&m.InnerBlocks.ButtonBlockAppender})))},save:e=>{let{attributes:t}=e;const o=t.columnsHTMLTag,l=m.useBlockProps.save({id:t.id});return(0,c.createElement)(o,l,(0,c.createElement)(m.InnerBlocks.Content,null))}})},1116:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-columns","title":"Section","category":"themeisle-blocks","description":"Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like. Powered by Otter.","keywords":["advanced columns","layout","section"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"columns":{"type":"number"},"layout":{"type":"string"},"layoutTablet":{"type":"string","default":"equal"},"layoutMobile":{"type":"string","default":"equal"},"padding":{"type":"object"},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"margin":{"type":"object"},"marginTablet":{"type":"object"},"marginMobile":{"type":"object"},"columnsWidth":{"type":"number"},"horizontalAlign":{"type":"string","default":"unset"},"columnsHeight":{"type":"string","default":"auto"},"columnsHeightCustom":{"type":"number"},"columnsHeightCustomTablet":{"type":"number"},"columnsHeightCustomMobile":{"type":"number"},"verticalAlign":{"type":"string","default":"unset"},"backgroundType":{"type":"string","default":"color"},"backgroundColor":{"type":"string"},"backgroundImage":{"type":"object"},"backgroundAttachment":{"type":"string","default":"scroll"},"backgroundPosition":{"type":"object"},"backgroundRepeat":{"type":"string","default":"repeat"},"backgroundSize":{"type":"string","default":"auto"},"backgroundGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayOpacity":{"type":"number","default":50},"backgroundOverlayType":{"type":"string","default":"color"},"backgroundOverlayColor":{"type":"string"},"backgroundOverlayImage":{"type":"object"},"backgroundOverlayAttachment":{"type":"string","default":"scroll"},"backgroundOverlayPosition":{"type":"object"},"backgroundOverlayRepeat":{"type":"string","default":"repeat"},"backgroundOverlaySize":{"type":"string","default":"auto"},"backgroundOverlayGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayFilterBlur":{"type":"number","default":0},"backgroundOverlayFilterBrightness":{"type":"number","default":10},"backgroundOverlayFilterContrast":{"type":"number","default":10},"backgroundOverlayFilterGrayscale":{"type":"number","default":0},"backgroundOverlayFilterHue":{"type":"number","default":0},"backgroundOverlayFilterSaturate":{"type":"number","default":10},"backgroundOverlayBlend":{"type":"string","default":"normal"},"border":{"type":"object"},"borderColor":{"type":"string","default":"#000000"},"borderRadius":{"type":"object"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":0},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"dividerTopType":{"type":"string","default":"none"},"dividerTopColor":{"type":"string","default":"#000000"},"dividerTopWidth":{"type":"number","default":100},"dividerTopWidthTablet":{"type":"number","default":100},"dividerTopWidthMobile":{"type":"number","default":100},"dividerTopHeight":{"type":"number","default":100},"dividerTopHeightTablet":{"type":"number","default":100},"dividerTopHeightMobile":{"type":"number","default":100},"dividerTopInvert":{"type":"boolean","default":false},"dividerBottomType":{"type":"string","default":"none"},"dividerBottomColor":{"type":"string","default":"#000000"},"dividerBottomWidth":{"type":"number","default":100},"dividerBottomWidthTablet":{"type":"number","default":100},"dividerBottomWidthMobile":{"type":"number","default":100},"dividerBottomHeight":{"type":"number","default":100},"dividerBottomHeightTablet":{"type":"number","default":100},"dividerBottomHeightMobile":{"type":"number","default":100},"dividerBottomInvert":{"type":"boolean","default":false},"hide":{"type":"boolean","default":false},"hideTablet":{"type":"boolean","default":false},"hideMobile":{"type":"boolean","default":false},"reverseColumnsTablet":{"type":"boolean","default":false},"reverseColumnsMobile":{"type":"boolean","default":false},"columnsHTMLTag":{"type":"string","default":"div"},"isSynced":{"type":"array"}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-advanced-columns-editor","style":"otter-advanced-columns-style"}'),n=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(80),m=o.n(d),u=o(2819),b=o(2175),p=o(5609),g=o(4715);const h={align:{type:"string"},id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},horizontalAlign:{type:"string",default:"unset"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},k=e=>{let{type:t,front:o,style:l,fill:a,invert:r,width:n,height:i}=e;return"none"!==l&&(0,c.createElement)("div",{className:s()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&n?{transform:n?`scaleX( ${n/100} )`:""}:{}},"bigTriangle"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,c.createElement)(p.SVG,{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,c.createElement)(p.SVG,{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},v=e=>{let{type:t,front:o,style:l,fill:a,invert:r,width:n,height:i}=e;return"none"!==l&&(0,c.createElement)("div",{className:s()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&n?{transform:n?`scaleX( ${n/100} )`:""}:{}},"bigTriangle"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"bottom"===t})},(0,c.createElement)(p.Path,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,c.createElement)(p.SVG,{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"bottom"===t})},(0,c.createElement)(p.Path,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"bottom"===t})},(0,c.createElement)(p.Path,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,c.createElement)(p.SVG,{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},y=[{attributes:h,supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,r,n,i,d;if("color"===t.backgroundType&&(a={background:t.backgroundColor}),"image"===t.backgroundType&&(a={backgroundImage:`url( '${t.backgroundImageURL}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType){let e;e="linear"===t.backgroundGradientType?`${t.backgroundGradientAngle}deg`:`at ${t.backgroundGradientPosition}`,a={background:`${t.backgroundGradientType}-gradient( ${e}, ${t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientFirstLocation}%, ${t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientSecondLocation}% )`}}"linked"===t.borderType&&(n={borderWidth:`${t.border}px`,borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(n={borderTopWidth:`${t.borderTop}px`,borderRightWidth:`${t.borderRight}px`,borderBottomWidth:`${t.borderBottom}px`,borderLeftWidth:`${t.borderLeft}px`,borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(i={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(i={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(d={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${m()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const u={...a,...n,...i,...d,justifyContent:t.horizontalAlign};if("color"===t.backgroundOverlayType&&(r={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(r={backgroundImage:`url( '${t.backgroundOverlayImageURL}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType){let e;e="linear"===t.backgroundOverlayGradientType?`${t.backgroundOverlayGradientAngle}deg`:`at ${t.backgroundOverlayGradientPosition}`,r={background:`${t.backgroundOverlayGradientType}-gradient( ${e}, ${t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientFirstLocation}%, ${t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientSecondLocation}% )`,opacity:t.backgroundOverlayOpacity/100}}const p={...r,mixBlendMode:t.backgroundOverlayBlend,filter:`blur( ${t.backgroundOverlayFilterBlur/10}px ) brightness( ${t.backgroundOverlayFilterBrightness/10} ) contrast( ${t.backgroundOverlayFilterContrast/10} ) grayscale( ${t.backgroundOverlayFilterGrayscale/100} ) hue-rotate( ${t.backgroundOverlayFilterHue}deg ) saturate( ${t.backgroundOverlayFilterSaturate/10} )`};let g={};t.columnsWidth&&(g={maxWidth:t.columnsWidth+"px"});const h=t.hide?"":`has-desktop-${t.layout}-layout`,v=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,y=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,f=s()(o,`has-${t.columns}-columns`,h,v,y,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},`has-${t.lcolumnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:f,id:t.id,style:u},(0,c.createElement)("div",{className:"wp-themeisle-block-overlay",style:p}),(0,c.createElement)(k,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap",style:g},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(k,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:h,supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,r,n,i,d;if("color"===t.backgroundType&&(a={background:t.backgroundColor}),"image"===t.backgroundType&&(a={backgroundImage:`url( '${t.backgroundImageURL}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType){let e;e="linear"===t.backgroundGradientType?`${t.backgroundGradientAngle}deg`:`at ${t.backgroundGradientPosition}`,a={background:`${t.backgroundGradientType}-gradient( ${e}, ${t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientFirstLocation}%, ${t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientSecondLocation}% )`}}"linked"===t.borderType&&(n={borderWidth:`${t.border}px`,borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(n={borderTopWidth:`${t.borderTop}px`,borderRightWidth:`${t.borderRight}px`,borderBottomWidth:`${t.borderBottom}px`,borderLeftWidth:`${t.borderLeft}px`,borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(i={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(i={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(d={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${m()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const u={...a,...n,...i,...d,justifyContent:t.horizontalAlign};if("color"===t.backgroundOverlayType&&(r={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(r={backgroundImage:`url( '${t.backgroundOverlayImageURL}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType){let e;e="linear"===t.backgroundOverlayGradientType?`${t.backgroundOverlayGradientAngle}deg`:`at ${t.backgroundOverlayGradientPosition}`,r={background:`${t.backgroundOverlayGradientType}-gradient( ${e}, ${t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientFirstLocation}%, ${t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientSecondLocation}% )`,opacity:t.backgroundOverlayOpacity/100}}const p={...r,mixBlendMode:t.backgroundOverlayBlend};let g={};t.columnsWidth&&(g={maxWidth:t.columnsWidth+"px"});const h=t.hide?"":`has-desktop-${t.layout}-layout`,v=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,y=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,f=s()(o,`has-${t.columns}-columns`,h,v,y,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:f,id:t.id,style:u},(0,c.createElement)("div",{className:"wp-themeisle-block-overlay",style:p}),(0,c.createElement)(k,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap",style:g},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(k,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...h,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag,a=t.hide?"":`has-desktop-${t.layout}-layout`,r=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,n=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,i=s()(o,`has-${t.columns}-columns`,a,r,n,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:i,id:t.id},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(v,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(v,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...h,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},migrate:e=>{let t="",o="";if("gradient"===e.backgroundType){let o="";"linear"===e.backgroundGradientType&&(o=`${e.backgroundGradientAngle}deg, `),t=`${e.backgroundGradientType}-gradient(${o}${m()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${m()(e.backgroundGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}%)`}if("gradient"===e.backgroundOverlayType){let t="";"linear"===e.backgroundOverlayGradientType&&(t=`${e.backgroundOverlayGradientAngle}deg, `),o=`${e.backgroundOverlayGradientType}-gradient(${t}${m()(e.backgroundOverlayGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientFirstLocation}%, ${m()(e.backgroundOverlayGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientSecondLocation}%)`}return{...{...(0,u.omit)(e,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition","backgroundOverlayGradientFirstColor","backgroundOverlayGradientFirstLocation","backgroundOverlayGradientSecondColor","backgroundOverlayGradientSecondLocation","backgroundOverlayGradientType","backgroundOverlayGradientAngle","backgroundOverlayGradientPosition"]),backgroundGradient:t,backgroundOverlayGradient:o}}},isEligible:e=>"gradient"===e.backgroundType&&void 0!==e.backgroundGradientFirstColor||"gradient"===e.backgroundOverlayType&&void 0!==e.backgroundOverlayGradientFirstColor,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag,a=t.hide?"":`has-desktop-${t.layout}-layout`,r=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,n=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,i=s()(o,`has-${t.columns}-columns`,a,r,n,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:i,id:t.id},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(v,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(v,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...(0,u.omit)(h,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition","backgroundOverlayGradientFirstColor","backgroundOverlayGradientFirstLocation","backgroundOverlayGradientSecondColor","backgroundOverlayGradientSecondLocation","backgroundOverlayGradientType","backgroundOverlayGradientAngle","backgroundOverlayGradientPosition"]),paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},backgroundGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},backgroundOverlayGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},migrate:e=>{const t={},o={},l={},a={},r={},n={},c={},i={};let s={},d={},m={},b={};"unlinked"===e.paddingType?(t.top=(0,u.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,u.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,u.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,u.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,u.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,u.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,u.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,u.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,u.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,u.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,u.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,u.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,u.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,u.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,u.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,u.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,u.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,u.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,u.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,u.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,u.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,u.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,u.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,u.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(a.top=(0,u.isUndefined)(e.margin)?"20px":e.margin+"px",a.bottom=(0,u.isUndefined)(e.margin)?"20px":e.margin+"px"):(a.top=(0,u.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",a.bottom=(0,u.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px"),"linked"===e.marginTypeTablet?(r.top=(0,u.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",r.bottom=(0,u.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(r.top=(0,u.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",r.bottom=(0,u.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px"),"linked"===e.marginTypeMobile?(n.top=(0,u.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",n.bottom=(0,u.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(n.top=(0,u.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",n.bottom=(0,u.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px"),"unlinked"===e.borderType?(c.top=(0,u.isUndefined)(e.borderTop)?null:e.borderTop+"px",c.bottom=(0,u.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",c.left=(0,u.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",c.right=(0,u.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(c.top=(0,u.isUndefined)(e.border)?null:e.border+"px",c.bottom=(0,u.isUndefined)(e.border)?null:e.border+"px",c.left=(0,u.isUndefined)(e.border)?null:e.border+"px",c.right=(0,u.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(i.top=(0,u.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",i.bottom=(0,u.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",i.left=(0,u.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",i.right=(0,u.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(i.top=(0,u.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.bottom=(0,u.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.left=(0,u.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.right=(0,u.isUndefined)(e.borderRadius)?null:e.borderRadius+"px"),void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID&&(s={id:e.backgroundImageID,url:e.backgroundImageURL}),void 0!==e.backgroundOverlayImageURL&&void 0!==e.backgroundOverlayImageID&&(d={id:e.backgroundOverlayImageID,url:e.backgroundOverlayImageURL});const p={"top left":{x:"0.00",y:"0.00"},"top center":{x:"0.50",y:"0.00"},"top right":{x:"1.00",y:"0.00"},"center left":{x:"0.00",y:"0.50"},"center center":{x:"0.50",y:"0.50"},"center right":{x:"1.00",y:"0.50"},"bottom left":{x:"0.00",y:"1.00"},"bottom center":{x:"0.50",y:"1.00"},"bottom right":{x:"1.00",y:"1.00"}};return void 0!==e.backgroundPosition&&(m=p[e.backgroundPosition]),void 0!==e.backgroundOverlayPosition&&(b=p[e.backgroundOverlayPosition]),{...{...(0,u.omit)(e,["columnsGap","paddingType","paddingTypeTablet","paddingTypeMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","marginType","marginTypeTablet","marginTypeMobile","marginTop","marginTopTablet","marginTopMobile","marginBottom","marginBottomTablet","marginBottomMobile","borderType","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"]),...!(0,g.FH)(t)&&{padding:t},...!(0,g.FH)(o)&&{paddingTablet:o},...!(0,g.FH)(l)&&{paddingMobile:l},...!(0,g.FH)(a)&&{margin:a},...!(0,g.FH)(r)&&{marginTablet:r},...!(0,g.FH)(n)&&{marginMobile:n},...!(0,g.FH)(c)&&{border:c},...!(0,g.FH)(i)&&{borderRadius:i},...!(0,g.FH)(s)&&{backgroundImage:s},...!(0,g.FH)(m)&&{backgroundPosition:m},...!(0,g.FH)(d)&&{backgroundOverlayImage:d},...!(0,g.FH)(b)&&{backgroundOverlayPosition:b}}}},isEligible:e=>["padding","paddingTablet","paddingMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","margin","marginTablet","marginMobile","marginTop","marginTopTablet","marginTopMobile","marginBottom","marginBottomTablet","marginBottomMobile","borderType","border","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadius","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"].some((t=>!(0,u.isUndefined)(e[t])&&("number"==typeof e[t]||null===typeof e[t])))||void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID||void 0!==e.backgroundOverlayImageURL&&void 0!==e.backgroundOverlayImageID||void 0!==e.backgroundPosition&&"object"!=typeof e.backgroundPosition||void 0!==e.backgroundOverlayPosition&&"object"!=typeof e.backgroundOverlayPosition||void 0!==e.columnsGap,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag,a=t.hide?"":`has-desktop-${t.layout}-layout`,r=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,n=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,i=s()(o,`has-${t.columns}-columns`,a,r,n,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:i,id:t.id},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(v,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(v,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}}];var f=y,_=o(4333),w=o(9818),C=o(7400),E=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(b.BlockControls,null,(0,c.createElement)(b.BlockVerticalAlignmentToolbar,{onChange:e=>t.verticalAlign===e?o({verticalAlign:"unset"}):o({verticalAlign:e}),value:"flex-start"===t.verticalAlign?"top":"flex-end"===t.verticalAlign?"bottom":t.verticalAlign}))},x=o(9266),T=o(6993),M=o(2136),S=o(1661),B=o(5452),z=o(3159),P=o(8286),V=e=>{let{attributes:t,setAttributes:o,getValue:a,updateColumnsWidth:r,dividerViewType:n,setDividerViewType:i,changeColumnsNumbers:d}=e;const m=(0,w.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[h,k]=(0,c.useState)("layout"),[v,y]=(0,c.useState)(!1);(0,c.useEffect)((()=>{v&&(6>=t.columns?r(t.columns,"equal"):6<t.columns?r(6,"equal"):1>=t.columns&&r(1,"equal"),y(!1))}),[t.columns]);let f=()=>{switch(m){case"Desktop":return t.columnsHeightCustom;case"Tablet":return t.columnsHeightCustomTablet;case"Mobile":return t.columnsHeightCustomMobile;default:return}};f=f();const _="top"==n?t.dividerTopType:"bottom"==n?t.dividerBottomType:void 0,C=(e,t)=>{switch(t){case"Desktop":o({hide:e});break;case"Tablet":o({hideTablet:e});break;case"Mobile":o({hideMobile:e})}},E=(e,t)=>{"Tablet"===t?o({reverseColumnsTablet:e}):"Mobile"===t&&o({reverseColumnsMobile:e})};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(b.InspectorControls,null,(0,c.createElement)(p.PanelBody,{className:"o-section-header-panel"},(0,c.createElement)(p.Button,{className:s()("header-tab",{"is-selected":"layout"===h}),onClick:()=>k("layout")},(0,c.createElement)("span",null,(0,c.createElement)(p.Dashicon,{icon:"editor-table"}),(0,l.__)("Layout","otter-blocks"))),(0,c.createElement)(p.Button,{className:s()("header-tab",{"is-selected":"style"===h}),onClick:()=>k("style")},(0,c.createElement)("span",null,(0,c.createElement)(p.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,c.createElement)(p.Button,{className:s()("header-tab",{"is-selected":"advanced"===h}),onClick:()=>k("advanced")},(0,c.createElement)("span",null,(0,c.createElement)(p.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"layout"===h&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Columns & Layout","otter-blocks")},(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Columns","otter-blocks"),value:t.columns,onChange:e=>{6>=e&&o({layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),6<e&&o({layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),1>=e&&o({layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),d(e),y(!0)},min:1,max:6}),(0,c.createElement)(x.Z,{label:(0,l.__)("Layout","otter-blocks"),columns:t.columns,layout:t.layout,layoutTablet:t.layoutTablet,layoutMobile:t.layoutMobile,onClick:e=>{switch(m){case"Desktop":o({layout:e}),r(t.columns,e);break;case"Tablet":o({layoutTablet:e});break;case"Mobile":o({layoutMobile:e})}}})),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Spacing","otter-blocks"),initialOpen:!1},(0,c.createElement)(T.Z,{label:(0,l.__)("Screen Type","otter-blocks"),className:"otter-section-padding-responsive-control"},(0,c.createElement)(z.Z,{field:(()=>{switch(m){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(p.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{switch(m){case"Desktop":return a("padding");case"Tablet":return a("paddingTablet");case"Mobile":return a("paddingMobile");default:return}})(),inputProps:{min:0,max:500},onChange:e=>{switch((0,g.CJ)(e)&&(e=void 0),m){case"Desktop":return o({padding:e});case"Tablet":return o({paddingTablet:e});case"Mobile":return o({paddingMobile:e});default:return}}})),(0,c.createElement)(z.Z,{field:(()=>{switch(m){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(p.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{switch(m){case"Desktop":return a("margin");case"Tablet":return a("marginTablet");case"Mobile":return a("marginMobile");default:return}})(),inputProps:{min:-500,max:500},sides:["top","bottom"],onChange:e=>{switch((0,g.CJ)(e)&&(e=void 0),"object"==typeof e&&(e=Object.fromEntries(Object.entries(e).filter((e=>{let[t,o]=e;return null!==o})))),m){case"Desktop":return o({margin:e});case"Tablet":return o({marginTablet:e});case"Mobile":return o({marginMobile:e});default:return}}})))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Section Structure","otter-blocks"),initialOpen:!1},(0,c.createElement)(z.Z,{field:"columnsWidth",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Maximum Content Width","otter-blocks"),value:a("columnsWidth")||"",allowReset:!0,onChange:e=>{(0<=e&&2400>=e||void 0===e)&&o({columnsWidth:e})},min:0,max:2400})),a("columnsWidth")&&(0,c.createElement)(z.Z,{field:"horizontalAlign",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(p.BaseControl,{label:(0,l.__)("Horizontal Align","otter-blocks")},(0,c.createElement)(P.Z,{value:t.horizontalAlign,options:[{icon:"editor-alignleft",label:(0,l.__)("Left","otter-blocks"),value:"flex-start"},{icon:"editor-aligncenter",label:(0,l.__)("Center","otter-blocks"),value:"center"},{icon:"editor-alignright",label:(0,l.__)("Right","otter-blocks"),value:"flex-end"}],onChange:e=>(e=>{if(t.horizontalAlign===e)return o({horizontalAlign:"unset"});o({horizontalAlign:e})})(e),hideLabels:!0}))),(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Minimum Height","otter-blocks"),value:t.columnsHeight,options:[{label:(0,l.__)("Default","otter-blocks"),value:"auto"},{label:(0,l.__)("Fit to Screen","otter-blocks"),value:"100vh"},{label:(0,l.__)("Custom","otter-blocks"),value:"custom"}],onChange:e=>o({columnsHeight:e})}),"custom"===t.columnsHeight&&(0,c.createElement)(T.Z,{label:(0,l.__)("Custom Height","otter-blocks")},(0,c.createElement)(p.RangeControl,{value:f||"",onChange:e=>{switch(m){case"Desktop":o({columnsHeightCustom:e});break;case"Tablet":o({columnsHeightCustomTablet:e});break;case"Mobile":o({columnsHeightCustomMobile:e})}},min:0,max:1e3}))))||"style"===h&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Background Settings","otter-blocks")},(0,c.createElement)(B.Z,{backgroundType:t.backgroundType,backgroundColor:t.backgroundColor,image:t.backgroundImage,gradient:t.backgroundGradient,focalPoint:t.backgroundPosition,backgroundAttachment:t.backgroundAttachment,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize,changeBackgroundType:e=>o({backgroundType:e}),changeImage:e=>{o({backgroundImage:(0,u.pick)(e,["id","url"])})},removeImage:()=>o({backgroundImage:void 0}),changeColor:e=>o({backgroundColor:e}),changeGradient:e=>o({backgroundGradient:e}),changeBackgroundAttachment:e=>o({backgroundAttachment:e}),changeBackgroundRepeat:e=>o({backgroundRepeat:e}),changeFocalPoint:e=>o({backgroundPosition:e}),changeBackgroundSize:e=>o({backgroundSize:e})})),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Background Overlay","otter-blocks"),initialOpen:!1},(0,c.createElement)(B.Z,{backgroundType:t.backgroundOverlayType,backgroundColor:t.backgroundOverlayColor,image:t.backgroundOverlayImage,gradient:t.backgroundOverlayGradient,focalPoint:t.backgroundOverlayPosition,backgroundAttachment:t.backgroundOverlayAttachment,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,changeBackgroundType:e=>o({backgroundOverlayType:e}),changeImage:e=>{o({backgroundOverlayImage:(0,u.pick)(e,["id","url"])})},removeImage:()=>o({backgroundOverlayImage:void 0}),changeColor:e=>o({backgroundOverlayColor:e}),changeGradient:e=>o({backgroundOverlayGradient:e}),changeBackgroundAttachment:e=>o({backgroundOverlayAttachment:e}),changeBackgroundRepeat:e=>o({backgroundOverlayRepeat:e}),changeFocalPoint:e=>o({backgroundOverlayPosition:e}),changeBackgroundSize:e=>o({backgroundOverlaySize:e})}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Overlay Opacity","otter-blocks"),value:t.backgroundOverlayOpacity,onChange:e=>o({backgroundOverlayOpacity:e}),min:0,max:100}),(0,c.createElement)(M.Z,{label:(0,l.__)("CSS Filters","otter-blocks")},(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.backgroundOverlayFilterBlur,onChange:e=>o({backgroundOverlayFilterBlur:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Brightness","otter-blocks"),value:t.backgroundOverlayFilterBrightness,onChange:e=>o({backgroundOverlayFilterBrightness:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Contrast","otter-blocks"),value:t.backgroundOverlayFilterContrast,onChange:e=>o({backgroundOverlayFilterContrast:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Grayscale","otter-blocks"),value:t.backgroundOverlayFilterGrayscale,onChange:e=>o({backgroundOverlayFilterGrayscale:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Hue","otter-blocks"),value:t.backgroundOverlayFilterHue,onChange:e=>o({backgroundOverlayFilterHue:e}),min:0,max:360}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Saturation","otter-blocks"),value:t.backgroundOverlayFilterSaturate,onChange:e=>o({backgroundOverlayFilterSaturate:e}),min:0,max:100})),(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Blend Mode","otter-blocks"),value:t.backgroundOverlayBlend,options:[{label:(0,l.__)("Normal","otter-blocks"),value:"normal"},{label:(0,l.__)("Multiply","otter-blocks"),value:"multiply"},{label:(0,l.__)("Screen","otter-blocks"),value:"screen"},{label:(0,l.__)("Overlay","otter-blocks"),value:"overlay"},{label:(0,l.__)("Darken","otter-blocks"),value:"darken"},{label:(0,l.__)("Lighten","otter-blocks"),value:"lighten"},{label:(0,l.__)("Color Dodge","otter-blocks"),value:"color-dodge"},{label:(0,l.__)("Color Burn","otter-blocks"),value:"color-burn"},{label:(0,l.__)("Hard Light","otter-blocks"),value:"hard-light"},{label:(0,l.__)("Soft Light","otter-blocks"),value:"soft-light"},{label:(0,l.__)("Difference","otter-blocks"),value:"difference"},{label:(0,l.__)("Exclusion","otter-blocks"),value:"exclusion"},{label:(0,l.__)("Hue","otter-blocks"),value:"hue"},{label:(0,l.__)("Saturation","otter-blocks"),value:"saturation"},{label:(0,l.__)("Color","otter-blocks"),value:"color"},{label:(0,l.__)("Luminosity","otter-blocks"),value:"luminosity"}],onChange:e=>o({backgroundOverlayBlend:e})})),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1},(0,c.createElement)(p.__experimentalBoxControl,{label:(0,l.__)("Border Width","otter-blocks"),values:t.border,inputProps:{min:0,max:500},units:[{value:"px",label:"px"}],onChange:e=>{(0,g.CJ)(e)&&(e=void 0),o({border:e})}}),(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}),(0,c.createElement)(p.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:t.borderRadius,inputProps:{min:0,max:500},units:[{value:"px",label:"px"},{value:"%",label:"%"}],id:"otter-border-raduis-box",onChange:e=>{(0,g.CJ)(e)&&(e=void 0),o({borderRadius:e})}}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:t.boxShadow,onChange:()=>o({boxShadow:!t.boxShadow})}),t.boxShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,c.createElement)(M.Z,{label:(0,l.__)("Border Shadow","otter-blocks")},(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Shape Divider","otter-blocks"),initialOpen:!1,className:"wp-block-themeisle-shape-divider"},(0,c.createElement)(p.ButtonGroup,null,(0,c.createElement)(p.Button,{isSmall:!0,isSecondary:"top"!==n,isPrimary:"top"===n,onClick:()=>i("top")},(0,l.__)("Top","otter-blocks")),(0,c.createElement)(p.Button,{isSmall:!0,isSecondary:"bottom"!==n,isPrimary:"bottom"===n,onClick:()=>i("bottom")},(0,l.__)("Bottom","otter-blocks"))),(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Type","otter-blocks"),value:_,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"!==_&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:"top"==n?t.dividerTopColor:"bottom"==n?t.dividerBottomColor:void 0,onColorChange:e=>{"top"==n?o({dividerTopColor:e}):"bottom"==n&&o({dividerBottomColor:e})}}),(0,c.createElement)(T.Z,{label:(0,l.__)("Width","otter-blocks")},(0,c.createElement)(p.RangeControl,{value:(()=>{if("top"==n)switch(m){case"Desktop":return t.dividerTopWidth;case"Tablet":return t.dividerTopWidthTablet;case"Mobile":return t.dividerTopWidthMobile}else if("bottom"==n)switch(m){case"Desktop":return t.dividerBottomWidth;case"Tablet":return t.dividerBottomWidthTablet;case"Mobile":return t.dividerBottomWidthMobile}})(),onChange:e=>{if("top"==n)switch(m){case"Desktop":o({dividerTopWidth:e});break;case"Tablet":o({dividerTopWidthTablet:e});break;case"Mobile":o({dividerTopWidthMobile:e})}else if("bottom"==n)switch(m){case"Desktop":o({dividerBottomWidth:e});break;case"Tablet":o({dividerBottomWidthTablet:e});break;case"Mobile":o({dividerBottomWidthMobile:e})}},min:0,max:500})),(0,c.createElement)(T.Z,{label:(0,l.__)("Height","otter-blocks")},(0,c.createElement)(p.RangeControl,{value:(()=>{if("top"==n)switch(m){case"Desktop":return t.dividerTopHeight;case"Tablet":return t.dividerTopHeightTablet;case"Mobile":return t.dividerTopHeightMobile}else if("bottom"==n)switch(m){case"Desktop":return t.dividerBottomHeight;case"Tablet":return t.dividerBottomHeightTablet;case"Mobile":return t.dividerBottomHeightMobile}})(),onChange:e=>{if("top"==n)switch(m){case"Desktop":o({dividerTopHeight:e});break;case"Tablet":o({dividerTopHeightTablet:e});break;case"Mobile":o({dividerTopHeightMobile:e})}else if("bottom"==n)switch(m){case"Desktop":o({dividerBottomHeight:e});break;case"Tablet":o({dividerBottomHeightTablet:e});break;case"Mobile":o({dividerBottomHeightMobile:e})}},min:0,max:500})),"curve"!==_&&"cloud"!==_&&(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Invert Shape Divider","otter-blocks"),checked:(()=>{switch(n){case"top":return t.dividerTopInvert;case"bottom":return t.dividerBottomInvert;default:return}})(),onChange:()=>{switch(n){case"top":o({dividerTopInvert:!t.dividerTopInvert});break;case"bottom":o({dividerBottomInvert:!t.dividerBottomInvert})}}}))))||"advanced"===h&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Responsive","otter-blocks")},(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Hide this section on Desktop devices?","otter-blocks"),checked:t.hide,onChange:e=>C(e,"Desktop")}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Hide this section on Tablet devices?","otter-blocks"),checked:t.hideTablet,onChange:e=>C(e,"Tablet")}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Hide this section on Mobile devices?","otter-blocks"),checked:t.hideMobile,onChange:e=>C(e,"Mobile")}),(0,c.createElement)("hr",null),!t.hideTablet&&"collapsedRows"===t.layoutTablet&&(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Reverse Columns in Tablet devices?","otter-blocks"),checked:t.reverseColumnsTablet,onChange:e=>E(e,"Tablet")}),!t.hideMobile&&"collapsedRows"===t.layoutMobile&&(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Reverse Columns in Mobile devices?","otter-blocks"),checked:t.reverseColumnsMobile,onChange:e=>E(e,"Mobile")})),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Section Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(p.SelectControl,{label:(0,l.__)("HTML Tag","otter-blocks"),value:t.columnsHTMLTag,options:[{label:(0,l.__)("Default (div)","otter-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>o({columnsHTMLTag:e})})))),(0,c.createElement)(S.Z,{value:t.id,onChange:e=>o({id:e})}))},R=o(2902),L=o(5225),H=o(5581);const{attributes:N}=r;var I=[{name:"themeisle-blocks/section-columns-1",description:(0,l.__)("Single column","otter-blocks"),icon:n.colsFull,title:(0,l.__)("Full","otter-blocks"),attributes:{columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"100"}]],scope:["block"],isDefault:!0},{name:"themeisle-blocks/section-columns-equal",description:(0,l.__)("2 equal columns","otter-blocks"),icon:n.cols2Equal,title:(0,l.__)("1:1","otter-blocks"),attributes:{columns:2,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"50"}],["themeisle-blocks/advanced-column",{columnWidth:"50"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-1-2",description:(0,l.__)("1:2 columns","otter-blocks"),icon:n.cols12,title:(0,l.__)("1:2","otter-blocks"),attributes:{columns:2,layout:"oneTwo",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"33.34"}],["themeisle-blocks/advanced-column",{columnWidth:"66.66"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-2-1",description:(0,l.__)("2:1 columns","otter-blocks"),icon:n.cols21,title:(0,l.__)("2:1","otter-blocks"),attributes:{columns:2,layout:"twoOne",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"66.66"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal-3",description:(0,l.__)("3 equal columns","otter-blocks"),icon:n.cols3Equal,title:(0,l.__)("1:1:1","otter-blocks"),attributes:{columns:3,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"33.33"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-1-1-2",description:(0,l.__)("1:1:2 columns","otter-blocks"),icon:n.cols112,title:(0,l.__)("1:1:2","otter-blocks"),attributes:{columns:3,layout:"oneOneTwo",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"50"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-2-1-1",description:(0,l.__)("2:1:1 columns","otter-blocks"),icon:n.cols211,title:(0,l.__)("2:1:1","otter-blocks"),attributes:{columns:3,layout:"twoOneOne",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"50"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal-4",description:(0,l.__)("4 equal columns","otter-blocks"),icon:n.cols4Equal,title:(0,l.__)("1:1:1:1","otter-blocks"),attributes:{columns:4,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}]],scope:["block"]}];const{name:O}=r;(0,a.registerBlockType)(O,{...r,title:(0,l.__)("Section","otter-blocks"),description:(0,l.__)("Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like. Powered by Otter.","otter-blocks"),icon:n.columnsIcon,keywords:["advanced columns","layout","section"],deprecated:f,variations:I,edit:e=>{let{attributes:t,setAttributes:o,clientId:r,name:n}=e;(0,c.useEffect)((()=>{const e=(0,L.WX)(r,N);return()=>e(t.id)}),[t.id]);const{updateBlockAttributes:i,replaceInnerBlocks:d}=(0,w.useDispatch)("core/block-editor"),{sectionBlock:g,isViewportAvailable:h,isPreviewDesktop:k,isPreviewTablet:v,isPreviewMobile:y,children:f,variations:x,defaultVariation:T}=(0,w.useSelect)((e=>{var t;const{getBlock:o}=e("core/block-editor"),{getBlockVariations:l,getBlockType:a,getDefaultBlockVariation:c}=e("core/blocks"),{__experimentalGetPreviewDeviceType:i}=!!e("core/edit-post")&&e("core/edit-post");return{sectionBlock:o(r),children:(null===(t=o(r))||void 0===t?void 0:t.innerBlocks)||[],isViewportAvailable:!!i,isPreviewDesktop:!!i&&"Desktop"===i(),isPreviewTablet:!!i&&"Tablet"===i(),isPreviewMobile:!!i&&"Mobile"===i(),blockType:a(n),defaultVariation:c(n,"block"),variations:l(n,"block").filter((e=>{let{isDefault:t}=e;return!t}))}}),[]),{insertBlock:M,removeBlock:S}=(0,w.useDispatch)("core/block-editor");(0,c.useEffect)((()=>{t.columns!==f.length&&o({columns:f.length})}),[f]);const B=e=>(0,L.Ih)({name:n,field:e,defaultAttributes:N,attributes:t}),z=(0,_.useViewportMatch)("large",">="),P=(0,_.useViewportMatch)("large","<="),I=(0,_.useViewportMatch)("small",">="),O=(0,_.useViewportMatch)("small","<=");let A=z&&!P&&I&&!O,G=!z&&!P&&I&&!O,$=!(z||P||I||O);h&&!$&&(A=k,G=v,$=y);const[Z,F]=(0,c.useState)("top"),D=e=>{let{mobile:t,tablet:o,desktop:l}=e;return $&&t||G&&o||A&&l||void 0},W=D({mobile:t.dividerTopWidthMobile,tablet:t.dividerTopWidthTablet,desktop:t.dividerTopWidth}),U=D({mobile:t.dividerBottomWidthMobile,tablet:t.dividerBottomWidthTablet,desktop:t.dividerBottomWidth}),j=D({mobile:t.dividerTopHeightMobile,tablet:t.dividerTopHeightTablet,desktop:t.dividerTopHeight}),q=D({mobile:t.dividerBottomHeightMobile,tablet:t.dividerBottomHeightTablet,desktop:t.dividerBottomHeight}),J=t.columnsHTMLTag;let K,Q,X,Y,ee,te;var oe,le,ae,re,ne,ce,ie,se,de,me,ue,be,pe,ge,he;A&&(K={paddingTop:B("padding")&&B("padding").top,paddingRight:B("padding")&&B("padding").right,paddingBottom:B("padding")&&B("padding").bottom,paddingLeft:B("padding")&&B("padding").left,marginTop:B("margin")&&B("margin").top,marginBottom:B("margin")&&B("margin").bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustom}px`:t.columnsHeight}),G&&(K={paddingTop:null===(oe=B("paddingTablet"))||void 0===oe?void 0:oe.top,paddingRight:null===(le=B("paddingTablet"))||void 0===le?void 0:le.right,paddingBottom:null===(ae=B("paddingTablet"))||void 0===ae?void 0:ae.bottom,paddingLeft:null===(re=B("paddingTablet"))||void 0===re?void 0:re.left,marginTop:null===(ne=B("marginTablet"))||void 0===ne?void 0:ne.top,marginBottom:null===(ce=B("marginTablet"))||void 0===ce?void 0:ce.bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustomTablet}px`:t.columnsHeight}),$&&(K={paddingTop:null===(ie=B("paddingMobile"))||void 0===ie?void 0:ie.top,paddingRight:null===(se=B("paddingMobile"))||void 0===se?void 0:se.right,paddingBottom:null===(de=B("paddingMobile"))||void 0===de?void 0:de.bottom,paddingLeft:null===(me=B("paddingMobile"))||void 0===me?void 0:me.left,marginTop:null===(ue=B("marginMobile"))||void 0===ue?void 0:ue.top,marginBottom:null===(be=B("marginMobile"))||void 0===be?void 0:be.bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustomMobile}px`:t.columnsHeight}),"color"===t.backgroundType&&(Q={backgroundColor:t.backgroundColor}),"image"===t.backgroundType&&(Q={backgroundImage:`url( '${null===(pe=t.backgroundImage)||void 0===pe?void 0:pe.url}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:`${Math.round(100*(null===(ge=t.backgroundPosition)||void 0===ge?void 0:ge.x))}% ${Math.round(100*(null===(he=t.backgroundPosition)||void 0===he?void 0:he.y))}%`,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType&&(Q={backgroundImage:t.backgroundGradient}),t.border&&!(0,u.isEmpty)(t.border)&&(Y={borderTopWidth:t.border.top,borderRightWidth:t.border.right,borderBottomWidth:t.border.bottom,borderLeftWidth:t.border.left,borderStyle:"solid",borderColor:t.borderColor}),t.borderRadius&&!(0,u.isEmpty)(t.borderRadius)&&(ee={borderTopLeftRadius:t.borderRadius.top,borderTopRightRadius:t.borderRadius.right,borderBottomRightRadius:t.borderRadius.bottom,borderBottomLeftRadius:t.borderRadius.left}),!0===t.boxShadow&&(te={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${m()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const ke={...K,...Q,...Y,...ee,...te};var ve,ye,fe;"color"===t.backgroundOverlayType&&(X={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(X={backgroundImage:`url( '${null===(ve=t.backgroundOverlayImage)||void 0===ve?void 0:ve.url}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:`${Math.round(100*(null===(ye=t.backgroundOverlayPosition)||void 0===ye?void 0:ye.x))}% ${Math.round(100*(null===(fe=t.backgroundOverlayPosition)||void 0===fe?void 0:fe.y))}%`,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType&&(X={background:t.backgroundOverlayGradient,opacity:t.backgroundOverlayOpacity/100});const _e={...X,...ee,mixBlendMode:t.backgroundOverlayBlend,filter:`blur( ${t.backgroundOverlayFilterBlur/10}px ) brightness( ${t.backgroundOverlayFilterBrightness/10} ) contrast( ${t.backgroundOverlayFilterContrast/10} ) grayscale( ${t.backgroundOverlayFilterGrayscale/100} ) hue-rotate( ${t.backgroundOverlayFilterHue}deg ) saturate( ${t.backgroundOverlayFilterSaturate/10} )`};let we={};t.columnsWidth&&(we={maxWidth:t.columnsWidth+"px"});const Ce=s()(`has-${t.columns}-columns`,`has-desktop-${t.layout}-layout`,`has-tablet-${t.layoutTablet}-layout`,`has-mobile-${t.layoutMobile}-layout`,`has-vertical-${t.verticalAlign}`,`has-horizontal-${t.horizontalAlign}`,{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},{"has-viewport-desktop":A},{"has-viewport-tablet":G},{"has-viewport-mobile":$}),[Ee,xe]=(0,c.useState)(!1),Te=t.columns?(0,b.useBlockProps)({id:t.id,className:Ce,style:ke}):(0,b.useBlockProps)();return t.columns?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(E,{attributes:t,setAttributes:o}),(0,c.createElement)(V,{attributes:t,setAttributes:o,getValue:B,updateColumnsWidth:(e,t)=>{g.innerBlocks.map(((o,l)=>{i(o.clientId,{columnWidth:C.Z[e][t][l]})}))},dividerViewType:Z,setDividerViewType:F,changeColumnsNumbers:e=>{t.columns<e?(0,u.times)(e-t.columns,(()=>{const e=(0,a.createBlock)("themeisle-blocks/advanced-column");e&&M(e,(null==f?void 0:f.length)||0,r,!1)})):t.columns>e&&f.slice(e).forEach((e=>S(e.clientId,!1)))}}),(0,c.createElement)(J,Te,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:_e}),(0,c.createElement)(R.Z,{type:"top",style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert,width:W,height:j}),(0,c.createElement)("div",{className:"innerblocks-wrap",style:we},(0,c.createElement)(b.InnerBlocks,{allowedBlocks:["themeisle-blocks/advanced-column"],orientation:"horizontal"})),(0,c.createElement)(R.Z,{type:"bottom",style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert,width:U,height:q}))):(0,c.createElement)("div",Te,(0,c.createElement)(p.Placeholder,{label:(0,l.__)("Section","otter-blocks"),instructions:(0,l.__)("Select a layout to start with, or make one yourself.","otter-blocks"),className:"o-section-layout-picker"},(0,c.createElement)(b.__experimentalBlockVariationPicker,{variations:x,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T;e&&(d(r,(0,a.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0),o(e.attributes))},allowSkip:!0}),(0,c.createElement)(p.Tooltip,{text:(0,l.__)("Open Template Library","otter-blocks")},(0,c.createElement)(p.Button,{isPrimary:!0,className:"wp-block-themeisle-template-library",onClick:()=>xe(!0)},(0,c.createElement)(p.Dashicon,{icon:"category"}),(0,l.__)("Template Library","otter-blocks")),Ee&&(0,c.createElement)(H.Z,{clientId:r,close:()=>xe(!1)}))))},save:e=>{let{attributes:t}=e;const o=t.columnsHTMLTag,l=t.hide?"":`has-desktop-${t.layout}-layout`,a=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,r=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,n=s()(`has-${t.columns}-columns`,l,a,r,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-vertical-${t.verticalAlign}`),i=b.useBlockProps.save({id:t.id,className:n});return(0,c.createElement)(o,i,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(R.Z,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(R.Z,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}})},9266:function(e,t,o){var l=o(9307),a=o(4184),r=o.n(a),n=o(5736),c=o(5609),i=o(9818),s=o(6993),d=o(340);t.Z=e=>{let{label:t,onClick:o,layout:a,layoutTablet:m,layoutMobile:u,columns:b}=e;const p=(0,i.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]);let g;return"Desktop"===p?g=a:"Tablet"===p?g=m:"Mobile"===p&&(g=u),(0,l.createElement)(s.Z,{label:t,className:"wp-block-themeisle-blocks-advanced-columns-layout-control"},1===b&&(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Single Row","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.colsFull)()))||2===b&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Equal","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.cols2Equal)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("1:2","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===g}),onClick:()=>o("oneTwo")},(0,d.cols12)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("2:1","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===g}),onClick:()=>o("twoOne")},(0,d.cols21)())),("Mobile"==p||"Tablet"==p)&&(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Collapsed Rows","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===g}),onClick:()=>o("collapsedRows")},(0,d.rowsCollapsed)())))||3===b&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Equal","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.cols3Equal)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("1:1:2","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===g}),onClick:()=>o("oneOneTwo")},(0,d.cols112)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("2:1:1","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===g}),onClick:()=>o("twoOneOne")},(0,d.cols211)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("1:2:1","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===g}),onClick:()=>o("oneTwoOne")},(0,d.cols121)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("1:3:1","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===g}),onClick:()=>o("oneThreeOne")},(0,d.cols131)())),("Mobile"==p||"Tablet"==p)&&(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Collapsed Rows","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===g}),onClick:()=>o("collapsedRows")},(0,d.rowsCollapsed)())))||4===b&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Equal","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.cols4Equal)())),("Mobile"==p||"Tablet"==p)&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Two Column Grid","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===g}),onClick:()=>o("twoColumnGrid")},(0,d.colsCollapsed)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Collapsed Rows","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===g}),onClick:()=>o("collapsedRows")},(0,d.rowsCollapsed)()))))||5===b&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Equal","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.cols5Equal)())),("Mobile"==p||"Tablet"==p)&&(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Collapsed Rows","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===g}),onClick:()=>o("collapsedRows")},(0,d.rowsCollapsed)())))||6===b&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Equal","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.cols6Equal)())),("Mobile"==p||"Tablet"==p)&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Two Column Grid","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===g}),onClick:()=>o("twoColumnGrid")},(0,d.cols2Grid)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Three Column Grid","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===g}),onClick:()=>o("threeColumnGrid")},(0,d.cols3Grid)())),(0,l.createElement)(c.Tooltip,{text:(0,n.__)("Collapsed Rows","otter-blocks")},(0,l.createElement)(c.Button,{className:r()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===g}),onClick:()=>o("collapsedRows")},(0,d.rowsCollapsed)())))))}},1598:function(e,t,o){o(9307),o(5736),o(5609),o(340),o(5581)},2902:function(e,t,o){var l=o(9307),a=o(4184),r=o.n(a);t.Z=e=>{let{type:t,front:o,style:a,fill:n,invert:c,width:i,height:s}=e;return"none"!==a&&(0,l.createElement)("div",{className:r()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&i?{transform:i?`scaleX( ${i/100} )`:""}:{}},"bigTriangle"===a&&!1===c&&(0,l.createElement)("svg",{id:"bigTriangle",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"bottom"===t})},(0,l.createElement)("path",{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===c&&(0,l.createElement)("svg",{id:"bigTriangle",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},(0,l.createElement)("path",{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===c&&(0,l.createElement)("svg",{id:"rightCurve",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},(0,l.createElement)("path",{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===c&&(0,l.createElement)("svg",{id:"rightCurve",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},(0,l.createElement)("path",{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&(0,l.createElement)("svg",{id:"curve",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},(0,l.createElement)("path",{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===c&&(0,l.createElement)("svg",{id:"slant",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"bottom"===t})},(0,l.createElement)("path",{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===c&&(0,l.createElement)("svg",{id:"slant",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"bottom"===t})},(0,l.createElement)("path",{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&(0,l.createElement)("svg",{id:"cloud",fill:n,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},(0,l.createElement)("path",{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))}},1700:function(e,t,o){o(1116),o(3716)},7400:function(e,t){t.Z={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"],collapsedRows:["100","100"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"],collapsedRows:["100","100","100"]},4:{equal:["25","25","25","25"],twoColumnGrid:["100","100","100","100"],collapsedRows:["100","100","100","100"]},5:{equal:["20","20","20","20","20"],collapsedRows:["100","100","100","100","100"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"],twoColumnGrid:["100","100","100","100","100","100"],threeColumnGrid:["100","100","100","100","100","100"],collapsedRows:["100","100","100","100","100","100"]}}},5023:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/sharing-icons","title":"Sharing Icons","category":"themeisle-blocks","description":"Share buttons for your website visitors to share content on any social sharing service. Powered by Otter.","keywords":["social media","sharing","icons"],"textdomain":"otter-blocks","attributes":{"facebook":{"type":"boolean","default":true},"twitter":{"type":"boolean","default":true},"linkedin":{"type":"boolean","default":true},"pinterest":{"type":"boolean","default":false},"tumblr":{"type":"boolean","default":false},"reddit":{"type":"boolean","default":false}},"styles":[{"name":"default","label":"Regular","isDefault":true},{"name":"icons","label":"Icons Only"}],"supports":{"align":["left","center","right"]},"editorStyle":"otter-sharing-icons-editor","style":"otter-sharing-icons-style"}'),n=o(340),c=o(9307),i=o(2175),s=o(5609),d=o(8423),m=o.n(d),u=o(4184),b=o.n(u),p={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"}},g=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"}))},h=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(s.ToolbarGroup,null,Object.keys(p).map((e=>{const a=t[e];return(0,c.createElement)(s.Tooltip,{key:e.label
|
163 |
-
/* translators: %s Social Website */,text:(0,l.sprintf)((0,l.__)("Display %s","otter-blocks"),p[e].label)},(0,c.createElement)(s.Button,{className:b()("components-button","wp-block-themeisle-toolbar",{"is-active":a}),onClick:()=>(e=>{o({[e]:!t[e]})})(e)},(0,c.createElement)(g,{icon:e})))}))))};const{name:k}=r;(0,a.registerBlockType)(k,{...r,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{attributes:t,setAttributes:o}=e;const l=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(h,{attributes:t,setAttributes:o}),(0,c.createElement)("div",l,(0,c.createElement)(s.Disabled,null,(0,c.createElement)(m(),{block:"themeisle-blocks/sharing-icons",attributes:{...t}}))))},save:()=>null})},9300:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/slider","title":"Slider","category":"themeisle-blocks","description":"Minimal image slider to showcase beautiful images. Powered by Otter.","keywords":["slider","gallery","carousel"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"images":{"type":"array","default":[],"source":"query","selector":".wp-block-themeisle-blocks-slider-item-wrapper","query":{"id":{"type":"number","source":"attribute","selector":"img","attribute":"data-id"},"url":{"type":"string","source":"attribute","selector":"img","attribute":"src"},"alt":{"type":"string","source":"attribute","selector":"img","attribute":"alt","default":""},"caption":{"type":"string","source":"html","selector":"figcaption","default":""}}},"perView":{"type":"number","default":1},"gap":{"type":"number","default":0},"peek":{"type":"number","default":0},"autoplay":{"type":"boolean","default":true},"delay":{"type":"number","default":2},"hideArrows":{"type":"boolean","default":false},"hideBullets":{"type":"boolean","default":false},"height":{"type":"number","default":400}},"supports":{"align":["wide","full"]},"editorStyle":"otter-slider-editor","style":"otter-slider-style","editorScript":"glidejs","script":"otter-slider"}'),n=o(9307),c=o(4184),i=o.n(c),s=o(2819),d=o(2175),m=o(5609);const u=e=>{let{attributes:t}=e;return(0,n.createElement)(n.Fragment,null,!t.hideArrows&&(0,n.createElement)("div",{className:"glide__arrows","data-glide-el":"controls"},(0,n.createElement)("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<"},(0,n.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},(0,n.createElement)(m.Path,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"}))),(0,n.createElement)("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">"},(0,n.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},(0,n.createElement)(m.Path,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"})))))},b=e=>{let{attributes:t}=e;return(0,n.createElement)(n.Fragment,null,!t.hideBullets&&(0,n.createElement)("div",{className:"glide__bullets","data-glide-el":"controls[nav]"},t.images.map(((e,t)=>(0,n.createElement)("button",{key:e.id,className:"glide__bullet","data-glide-dir":`=${t}`})))))};var p=e=>{let{attributes:t}=e;return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(u,{attributes:t}),(0,n.createElement)(b,{attributes:t}))};const g={id:{type:"string"},align:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},height:{type:"number",default:400}},h=[{attributes:{...(0,s.omit)(g,["align"])},supports:{align:["wide","full"]},save:e=>{let{attributes:t,className:o}=e;return(0,n.createElement)("div",{id:t.id,className:i()("wp-block-themeisle-blocks-slider","glide",o),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":t.autoplay},(0,n.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,n.createElement)("div",{className:"glide__slides",style:{height:`${t.height}px`}},t.images.map((e=>(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},(0,n.createElement)("figure",null,(0,n.createElement)("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!d.RichText.isEmpty(e.caption)&&(0,n.createElement)(d.RichText.Content,{tagName:"figcaption",value:e.caption})))))),(0,n.createElement)(p,{attributes:t})))}},{attributes:{...(0,s.omit)(g,["align"]),delay:{type:"number",default:2},hideArrows:{type:"boolean",default:!1},hideBullets:{type:"boolean",default:!1}},supports:{align:["wide","full"]},save:e=>{let{attributes:t,className:o}=e;const l=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay;return(0,n.createElement)("div",{id:t.id,className:i()("wp-block-themeisle-blocks-slider","glide",o),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":l,"data-height":`${t.height}px`},(0,n.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,n.createElement)("div",{className:"glide__slides"},t.images.map((e=>(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},(0,n.createElement)("figure",null,(0,n.createElement)("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!d.RichText.isEmpty(e.caption)&&(0,n.createElement)(d.RichText.Content,{tagName:"figcaption",value:e.caption})))))),(0,n.createElement)(p,{attributes:t})))}}];var k=h;const v={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t}=e[0];t=(0,s.every)(e,["align",t])?t:void 0;const o=(0,s.filter)(e,(e=>{let{url:t}=e;return t}));return(0,a.createBlock)("themeisle-blocks/slider",{images:o.map((e=>{let{id:t,url:o,alt:l,caption:a}=e;return{id:t,url:o,alt:l,caption:a}})),align:t})}},{type:"block",blocks:["core/gallery"],transform:e=>{let{images:t,align:o}=e;return(0,a.createBlock)("themeisle-blocks/slider",{images:t.map((e=>{let{id:t,url:o,alt:l,caption:a}=e;return{id:t,url:o,alt:l,caption:a}})),align:o})}}],to:[{type:"block",blocks:["core/image"],transform:e=>{let{images:t,align:o}=e;return 0<t.length?t.map((e=>{let{id:t,url:l,alt:r,caption:n}=e;return(0,a.createBlock)("core/image",{id:t,url:l,alt:r,caption:n,align:o})})):(0,a.createBlock)("core/image",{align:o})}},{type:"block",blocks:["core/gallery"],transform:e=>{let{images:t,align:o}=e;return(0,a.createBlock)("core/gallery",{images:t.map((e=>{let{id:t,url:o,alt:l,caption:a}=e;return{id:t,url:o,alt:l,caption:a}})),align:o})}}]};var y=v,f=e=>{let{labels:t,icon:o,isAppender:l=!1,value:a={},onSelectImages:r}=e;const c=(0,s.debounce)(r,250);return(0,n.createElement)(d.MediaPlaceholder,{labels:t,icon:o,accept:"image/*",allowedTypes:["image"],isAppender:l,className:"wp-block-themeisle-blocks-slider-uploader",value:a,onSelect:c,multiple:!0})},_=o(2285),w=e=>{let{attributes:t,setAttributes:o,slider:a,changePerView:r,onSelectImages:c}=e;return(0,n.createElement)(d.InspectorControls,null,(0,n.createElement)(m.PanelBody,{title:(0,l.__)("Images","otter-blocks"),initialOpen:!1},(0,n.createElement)(_.Z,{attributes:t,onSelectImages:c})),(0,n.createElement)(m.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},t.images.length&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(m.RangeControl,{label:(0,l.__)("Slides Per Page","otter-blocks"),help:(0,l.__)("A number of visible slides.","otter-blocks"),value:t.perView,onChange:r,min:1,max:(0,s.max)([Math.round(t.images.length/2),1])}),1<t.perView&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(m.RangeControl,{label:(0,l.__)("Gap","otter-blocks"),help:(0,l.__)("A size of the space between slides.","otter-blocks"),value:t.gap,onChange:e=>{o({gap:Number(e)}),a.update({gap:Number(e)})},min:0,max:100}),(0,n.createElement)(m.RangeControl,{label:(0,l.__)("Peek","otter-blocks"),help:(0,l.__)("The value of the future slides which have to be visible in the current slide.","otter-blocks"),value:t.peek,onChange:e=>{o({peek:Number(e)}),a.update({peek:Number(e)})},min:0,max:100})),(0,n.createElement)(m.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("Slider height in pixels.","otter-blocks"),value:t.height,onChange:e=>{o({height:Number(e)})},min:100,max:1400}),(0,n.createElement)(m.ToggleControl,{label:(0,l.__)("Autoplay","otter-blocks"),help:(0,l.__)("Autoplay slider in the front.","otter-blocks"),checked:t.autoplay,onChange:e=>{o({autoplay:e})}}),t.autoplay&&(0,n.createElement)(m.RangeControl,{label:(0,l.__)("Delay","otter-blocks"),help:(0,l.__)("Delay in slide change (in seconds).","otter-blocks"),value:t.delay,onChange:e=>{o({delay:e})},min:1,max:10}),(0,n.createElement)(m.ToggleControl,{label:(0,l.__)("Hide Arrows","otter-blocks"),help:(0,l.__)("Hide navigation arrows.","otter-blocks"),checked:t.hideArrows,onChange:e=>{o({hideArrows:e})}}),(0,n.createElement)(m.ToggleControl,{label:(0,l.__)("Hide Bullets","otter-blocks"),help:(0,l.__)("Hide navigation bullets.","otter-blocks"),checked:t.hideBullets,onChange:e=>{o({hideBullets:e})}}))))},C=o(1984),E=o(4310),x=o(5024),T=o(7231),M=e=>{let{images:t,image:o,index:a,isFirstItem:r,isLastItem:c,isSelected:u,setAttributes:b,setSelectedImage:p}=e;const g=(e,o)=>{const l=[...t];l.splice(o,1,t[e]),l.splice(e,1,t[o]),p(o),b({images:l})};return(0,n.createElement)("div",{className:i()("wp-block-themeisle-blocks-slider-item-wrapper glide__slide",{"is-selected":u}),tabIndex:"0",onClick:()=>p(o.id),onFocus:()=>p(o.id)},(0,n.createElement)("figure",null,(0,n.createElement)("img",{key:o.id,className:"wp-block-themeisle-blocks-slider-item",src:o.url,alt:o.alt,title:o.alt,"data-id":o.id}),u&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-move-menu"},(0,n.createElement)(m.Button,{icon:(0,n.createElement)(C.Z,{icon:E.Z}),label:(0,l.__)("Move image backward","otter-blocks"),showTooltip:!0,onClick:r?void 0:()=>{0!==a&&g(a,a-1)},className:"wp-block-themeisle-blocks-slider-item-move-backward","aria-disabled":r,disabled:!u}),(0,n.createElement)(m.Button,{icon:(0,n.createElement)(C.Z,{icon:x.Z}),label:(0,l.__)("Move image forward","otter-blocks"),showTooltip:!0,onClick:c?void 0:()=>{a!==t.length-1&&g(a,a+1)},className:"wp-block-themeisle-blocks-slider-item-move-forward","aria-disabled":c,disabled:!u})),(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-delete-menu"},(0,n.createElement)(m.Button,{icon:(0,n.createElement)(C.Z,{icon:T.Z}),label:(0,l.__)("Remove image","otter-blocks"),showTooltip:!0,onClick:()=>{const e=(0,s.filter)(t,((e,t)=>a!==t));p(null),b({images:e})},className:"wp-block-themeisle-blocks-slider-item-delete"}))),(u||!d.RichText.isEmpty(o.caption))&&(0,n.createElement)(d.RichText,{tagName:"figcaption",placeholder:u?(0,l.__)("Write caption…","otter-blocks"):null,value:o.caption,onChange:e=>{const o=[...t];o[a].caption=e,b({images:o})},multiline:!1})))},S=o(5225);const{attributes:B}=r,z={root:null,rootMargin:"0px",threshold:[0]};const{name:P}=r;(0,a.registerBlockType)(P,{...r,title:(0,l.__)("Slider","otter-blocks"),description:(0,l.__)("Minimal image slider to showcase beautiful images. Powered by Otter.","otter-blocks"),icon:"images-alt2",keywords:["slider","gallery","carousel"],deprecated:k,transforms:y,edit:e=>{let{attributes:t,setAttributes:o,clientId:a,isSelected:r,toggleSelection:c}=e;const u=(0,n.useRef)(null);(0,n.useEffect)((()=>{const e=(0,S.WX)(a,B);return()=>{e(t.id)}}),[t.id]),(0,n.useEffect)((()=>{const e=document.querySelector(`#${t.id}`);var o;if(e)return u.current=new IntersectionObserver((o=>{o.forEach((o=>{var l;o.isIntersecting&&0<=o.intersectionRect.height&&t.images.length&&(k(),null===(l=u.current)||void 0===l||l.unobserve(e))}))}),z),null===(o=u.current)||void 0===o||o.observe(e),()=>{t.images.length&&null!==b.current&&b.current.destroy()}}),[t.id]),(0,n.useEffect)((()=>{t.images.length&&(h(null),null!==b.current&&b.current.destroy(),k())}),[r,t.align]),(0,n.useEffect)((()=>{t.images.length&&t.perView>t.images.length&&y((0,s.max)([Math.round(t.images.length/2),1]))}),[t.images]);const b=(0,n.useRef)(null),[g,h]=(0,n.useState)(null),k=()=>{b.current=new window.Glide(`#${t.id}`,{type:"carousel",keyboard:!1,perView:t.perView,gap:t.gap,peek:t.peek,autoplay:!1,breakpoints:{800:{perView:1,peek:0,gap:0}}}).mount()},v=e=>{o({images:e.map((e=>({id:e.id,url:e.url,alt:e.alt,caption:e.caption})))}),null!==b.current&&b.current.destroy(),k()},y=e=>{o({perView:Number(e)}),b.current.update({perView:Number(e)}),1===e&&(o({gap:0,peek:0}),b.current.update({gap:0,peek:0}))},_=(0,d.useBlockProps)();return Array.isArray(t.images)&&!t.images.length?(0,n.createElement)("div",_,(0,n.createElement)(f,{labels:{title:(0,l.__)("Slider","otter-blocks"),instructions:(0,l.__)("Drag images, upload new ones or select files from your library.","otter-blocks")},icon:"images-alt2",onSelectImages:v})):(0,n.createElement)(n.Fragment,null,(0,n.createElement)(w,{attributes:t,setAttributes:o,slider:b.current,changePerView:y,onSelectImages:v}),(0,n.createElement)("div",_,(0,n.createElement)(m.ResizableBox,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{c(!1)},onResizeStop:(e,l,a,r)=>{o({height:parseInt(t.height+r.height,10)}),c(!0)},className:i()("wp-block-themeisle-blocks-slider-resizer",{"is-focused":r})},(0,n.createElement)("div",{id:t.id,className:"glide"},(0,n.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,n.createElement)("div",{className:"glide__slides",style:{height:`${t.height}px`}},t.images.map(((e,l)=>(0,n.createElement)(M,{key:e.url,images:t.images,image:e,index:l,isFirstItem:0===l,isLastItem:l+1===t.images.length,isSelected:r&&e.id===g,setAttributes:o,setSelectedImage:h})))),(0,n.createElement)(p,{attributes:t})))),r&&(0,n.createElement)(f,{labels:{title:"",instructions:""},icon:null,onSelectImages:v,isAppender:!0,value:t.images})))},save:e=>{let{attributes:t}=e;const o=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay,l=d.useBlockProps.save({id:t.id,className:"glide","data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":o,"data-height":`${t.height}px`,"data-hide-arrows":t.hideArrows});return(0,n.createElement)("div",l,(0,n.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,n.createElement)("div",{className:"glide__slides"},t.images.map((e=>(0,n.createElement)("div",{key:e.id,className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},(0,n.createElement)("figure",null,(0,n.createElement)("img",{className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!d.RichText.isEmpty(e.caption)&&(0,n.createElement)(d.RichText.Content,{tagName:"figcaption",value:e.caption})))))),(0,n.createElement)(b,{attributes:t})))}})},4925:function(e,t,o){o(8493),o(1131),o(1256)},8493:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/pricing","title":"Pricing","category":"themeisle-blocks","description":"Pricing tables are a critical part in showcasing your services, prices and overall offerings. Powered by Otter.","keywords":["pricing","table","money"],"textdomain":"otter-blocks"}'),n=o(340),c=o(9307),i=o(2175);const s=[["themeisle-blocks/advanced-heading",{content:(0,l.__)("Basic","otter-blocks"),align:"center",tag:"h3",fontSize:24}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("$9.99","otter-blocks"),align:"center",tag:"h4",fontSize:36,fontFamily:"Roboto Slab",fontVariant:"normal"}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Per Month","otter-blocks"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("First Feature","otter-blocks"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Second Feature","otter-blocks"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Last Feature","otter-blocks"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:(0,l.__)("Buy Now","otter-blocks"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]];const{name:d}=r;(0,a.registerBlockType)(d,{...r,title:(0,l.__)("Pricing","otter-blocks"),description:(0,l.__)("Pricing tables are a critical part in showcasing your services, prices and overall offerings. Powered by Otter.","otter-blocks"),icon:n.pricingIcon,keywords:["pricing","table","money"],edit:()=>{const e=(0,i.useBlockProps)();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks,{template:s}))},save:()=>{const e=i.useBlockProps.save();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks.Content,null))}})},1131:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/service","title":"Service","category":"themeisle-blocks","description":"Use this Service block to showcase services your website offers. Powered by Otter.","keywords":["services","icon","features"],"textdomain":"otter-blocks"}'),n=o(340),c=o(9307),i=o(2175);const s=[["themeisle-blocks/font-awesome-icons",{fontSize:62,prefix:"fab",icon:"angellist"}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Basic","otter-blocks"),align:"center",tag:"h4",marginBottom:20}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Lorem ipsum dolor sit amet elit do, consectetur adipiscing, sed eiusmod tempor incididunt ut labore et dolore magna aliqua.","otter-blocks"),align:"center",color:"#999999",tag:"p",fontSize:14,marginBottom:20}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:(0,l.__)("Know More","otter-blocks"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]];const{name:d}=r;(0,a.registerBlockType)(d,{...r,title:(0,l.__)("Service","otter-blocks"),description:(0,l.__)("Use this Service block to showcase services your website offers. Powered by Otter.","otter-blocks"),icon:n.servicesIcon,keywords:["services","icon","features"],edit:()=>{const e=(0,i.useBlockProps)();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks,{template:s}))},save:()=>{const e=i.useBlockProps.save();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks.Content,null))}})},1256:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/testimonials","title":"Testimonials","category":"themeisle-blocks","description":"Display kudos from customers and clients and display them on your website. Powered by Otter.","keywords":["testimonials","quotes","business"],"textdomain":"otter-blocks"}'),n=o(340),c=o(9307),i=o(2175);const s=[["core/image",{align:"center"}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("John Doe","otter-blocks"),align:"center",fontSize:24,tag:"h3",marginTop:25,marginBottom:10,marginTopTablet:25,marginTopMobile:25}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Jedi Master","otter-blocks"),align:"center",fontSize:14,tag:"h4",marginTop:10,marginBottom:10}],["themeisle-blocks/advanced-heading",{content:(0,l.__)('"What is the point of being alive if you don’t at least try to do something remarkable?"',"otter-blocks"),align:"center",color:"#999999",tag:"p",fontSize:14,marginTop:10,marginBottom:20}]];const{name:d}=r;(0,a.registerBlockType)(d,{...r,title:(0,l.__)("Testimonials","otter-blocks"),description:(0,l.__)("Display kudos from customers and clients and display them on your website. Powered by Otter.","otter-blocks"),icon:n.testimonialsIcon,keywords:["testimonials","quotes","business"],edit:()=>{const e=(0,i.useBlockProps)();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks,{template:s}))},save:()=>{const e=i.useBlockProps.save();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks.Content,null))}})},9845:function(e,t,o){var l=o(2553),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/tabs","title":"Tabs","category":"themeisle-blocks","description":"Organize and allow navigation between groups of content with Tabs block. Powered by Otter.","keywords":["media","tabs","select"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"tabColor":{"type":"string"},"borderColor":{"type":"string"},"borderWidth":{"type":"number"},"activeTitleColor":{"type":"string"}},"supports":{"align":["left","center","right"]},"editorStyle":"otter-tabs-editor","style":"otter-tabs-style","script":"otter-tabs"}'),c=o(9307),i=o(5117),s=o(4184),d=o.n(s),m=o(5711),u=o(2175),b=o(5609),p=o(9818),g=o(1286);const h=(0,g.W6)((()=>(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__drag",tabIndex:"0"},(0,c.createElement)("span",null)))),k=(0,g.W8)((e=>{let{tab:t,deleteTab:o,selectTab:l}=e;return(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-inspector-tab-option"},(0,c.createElement)(h,null),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__name"},t.attributes.title||(0,a.__)("Untitled Tab","otter-blocks")),(0,c.createElement)(b.Button,{icon:"edit",label:(0,a.__)("Edit Tab","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__actions",onClick:()=>l(t.clientId)}),(0,c.createElement)(b.Button,{icon:"no-alt",label:(0,a.__)("Remove Tab","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__actions",onClick:()=>o(t.clientId)}))}));var v=e=>{var t;let{attributes:o,setAttributes:l,children:r,deleteTab:n,selectTab:i,addTab:s,moveTab:d}=e;const[m,h]=(0,c.useState)(null===(t=r.find((e=>!0===e.attributes.defaultOpen)))||void 0===t?void 0:t.clientId),{updateBlockAttributes:v}=(0,p.useDispatch)("core/block-editor"),{getBlock:y}=(0,p.useSelect)("core/block-editor");(0,c.useEffect)((()=>{var e;h(null===(e=r.find((e=>!0===e.attributes.defaultOpen)))||void 0===e?void 0:e.clientId)}),[r]);const f=e=>{!0===y(e).attributes.defaultOpen&&v(r[0].clientId,{defaultOpen:!0}),n(e)},_=(0,g.JN)((e=>{let{items:t}=e;return(0,c.createElement)("div",null,t.map(((e,t)=>(0,c.createElement)(k,{key:e.clientId,tab:e,index:t,deleteTab:f,selectTab:i}))))})),w=r.map(((e,t)=>({label:`${t+1}. ${e.attributes.title||(0,a.__)("Untitled Tab","otter-blocks")}`,value:e.clientId})));return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(b.PanelBody,{title:(0,a.__)("Tabs Management","otter-blocks")},(0,c.createElement)("p",null,(0,a.__)("Press and hold to use drag and drop to sort the tabs","otter-blocks")),0<(null==r?void 0:r.length)&&(0,c.createElement)(_,{items:r,onSortEnd:e=>{let{oldIndex:t,newIndex:o}=e;d(r[t].clientId,o)},useDragHandle:!0,axis:"y",lockAxis:"y"}),(0,c.createElement)(b.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-tabs-inspector-add-tab",onClick:s},(0,a.__)("Add Tab","otter-blocks")),(0,c.createElement)(b.SelectControl,{label:(0,a.__)("Initial Tab","otter-blocks"),value:m,options:w,onChange:e=>{r.forEach(((e,t)=>{v(r[t].clientId,{defaultOpen:!1})})),v(e,{defaultOpen:!0}),h(e)}})),(0,c.createElement)(b.PanelBody,{title:(0,a.__)("Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.RangeControl,{label:(0,a.__)("Border Width","otter-blocks"),value:o.borderWidth,onChange:e=>{l({borderWidth:Number(e)})},min:0,max:5})),(0,c.createElement)(u.PanelColorSettings,{title:(0,a.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:o.activeTitleColor,onChange:e=>{l({activeTitleColor:e})},label:(0,a.__)("Active Title Color","otter-blocks")},{value:o.tabColor,onChange:e=>{l({tabColor:e})},label:(0,a.__)("Background","otter-blocks")},{value:o.borderColor,onChange:e=>{l({borderColor:e})},label:(0,a.__)("Border Color","otter-blocks")}]},(0,c.createElement)(u.ContrastChecker,{textColor:o.activeTitleColor,backgroundColor:o.tabColor})))},y=o(4688),f=o(4310),_=o(5024),w=e=>{let{children:t,selectedTab:o,moveTab:l,selectTab:r}=e;const n=null==t?void 0:t.findIndex((e=>{let{clientId:t}=e;return t===o})),i=e=>{switch(e){case"left":l(o,n-1);break;case"right":l(o,n+1)}};return(0,c.createElement)(u.BlockControls,null,(0,c.createElement)(b.ToolbarGroup,{label:(0,a.__)("Edit","otter-blocks")},(0,c.createElement)(b.ToolbarButton,{label:(0,a.__)("Edit tab","otter-blocks"),icon:y.Z,iconSize:24,className:"wp-block-themeisle-blocks-tabs-toolbar-edit",onClick:()=>r(o)})),(0,c.createElement)(b.ToolbarGroup,{label:(0,a.__)("Movement","otter-blocks")},(0,c.createElement)(b.ToolbarButton,{label:(0,a.__)("Move tab left","otter-blocks"),icon:f.Z,iconSize:24,disabled:0===n,className:"wp-block-themeisle-blocks-tabs-toolbar-mover",onClick:()=>i("left")}),(0,c.createElement)(b.ToolbarButton,{label:(0,a.__)("Move tab right","otter-blocks"),icon:_.Z,iconSize:24,disabled:(null==t?void 0:t.length)-1===n,className:"wp-block-themeisle-blocks-tabs-toolbar-mover",onClick:()=>i("right")})))},C=o(5225);const{attributes:E}=n;const{name:x}=n;(0,r.registerBlockType)(x,{...n,title:(0,a.__)("Tabs","otter-blocks"),description:(0,a.__)("Organize and allow navigation between groups of content with Tabs block. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["media","tabs","select"],edit:e=>{var t;let{attributes:o,setAttributes:l,isSelected:n,clientId:s}=e;(0,c.useEffect)((()=>{const e=(0,C.WX)(s,E);return()=>e(o.id)}),[o.id]);const g=(0,c.useRef)(null),h=(0,p.useSelect)((e=>{const{getBlock:t}=e("core/block-editor");return t(s).innerBlocks}),[]),[k,y]=(0,c.useState)(null===(t=h.find((e=>!0===e.attributes.defaultOpen)))||void 0===t?void 0:t.clientId),{insertBlock:f,removeBlock:_,selectBlock:x,moveBlockToPosition:T,updateBlockAttributes:M}=(0,p.useDispatch)("core/block-editor"),S=e=>{g.current&&(h.forEach((t=>{const o=g.current.querySelector(`#block-${t.clientId} .wp-block-themeisle-blocks-tabs-item__content`);null==o||o.classList.toggle("active",t.clientId===e)})),y(e))};(0,c.useEffect)((()=>{S(k)}),[]),(0,c.useEffect)((()=>{0<(null==h?void 0:h.length)&&(void 0!==k&&null!=h&&h.some((e=>e.clientId===k))||S(h[0].clientId))}),[k,h]);const B=e=>{if(0<(null==h?void 0:h.length)){const t=h.find((t=>t.clientId===e));x(t.clientId)}},z=(e,t)=>{var o;const l=null===(o=h.find((t=>t.clientId===e)))||void 0===o?void 0:o.clientId;l&&T(l,s,s,t)},P=()=>{const e=(0,r.createBlock)("themeisle-blocks/tabs-item");f(e,(null==h?void 0:h.length)||0,s,!1)},V=m.iv`
|
164 |
--borderWidth: ${void 0!==o.borderWidth?o.borderWidth:3}px;
|
165 |
--borderColor: ${o.borderColor};
|
166 |
--activeTitleColor: ${o.activeTitleColor};
|
@@ -170,8 +170,8 @@ M=(0,l.sprintf)((0,l.__)("Hide %s","otter-blocks"),y)),(0,d.createElement)("div"
|
|
170 |
width: 30px;
|
171 |
height: 30px;
|
172 |
align-items: center;
|
173 |
-
`,L=e=>{let{title:t,onClick:o,active:l}=e;return(0,m.tZ)("div",{className:d()("wp-block-themeisle-blocks-tabs__header_item",{active:l})},(0,m.tZ)("div",{onClick:o},t))},H=(0,u.useBlockProps)({id:o.id,css:V});return(0,m.tZ)(c.Fragment,null,(0,m.tZ)(w,{children:h,setAttributes:l,selectedTab:k,selectTab:B,moveTab:z}),(0,m.tZ)(v,{attributes:o,setAttributes:l,children:h,deleteTab:e=>{if(0<(null==h?void 0:h.length)){const t=h.find((t=>t.clientId===e));_(t.clientId,!1),k===e&&y("")}},selectTab:B,moveTab:z,addTab:P}),(0,m.tZ)("div",H,(0,m.tZ)("div",{className:"wp-block-themeisle-blocks-tabs__header"},(null==h?void 0:h.map((e=>(0,m.tZ)(L,{key:e.clientId,title:e.attributes.title||(0,a.__)("Insert Title","otter-blocks"),active:e.clientId===k,onClick:()=>S(e.clientId)}))))||"",(n||0===h.length)&&(0,m.tZ)((()=>(0,m.tZ)("div",{className:"wp-block-themeisle-blocks-tabs__header_item"},(0,m.tZ)("div",{css:R,onClick:P},(0,m.tZ)(b.Icon,{icon:i.Z})))),null)),(0,m.tZ)("div",{ref:g,className:"wp-block-themeisle-blocks-tabs__content"},(0,m.tZ)(u.InnerBlocks,{allowedBlocks:["themeisle-blocks/tabs-item"],template:[["themeisle-blocks/tabs-item"]],orientation:"horizontal",renderAppender:!1}))))},save:e=>{let{attributes:t}=e;const o=u.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)(u.InnerBlocks.Content,null)))}})},1715:function(e,t,o){o(9845),o(6927)},6927:function(e,t,o){var l=o(2553),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/tabs-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}}}'),c=o(9307),i=o(4184),s=o.n(i),d=o(2175),m=o(9818),u=o(5609),b=e=>{let{setAttributes:t,selectParent:o}=e;return(0,c.createElement)(d.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,c.createElement)(u.Button,{isSecondary:!0,onClick:()=>o()},(0,a.__)("Back to the Tabs","otter-blocks")),(0,c.createElement)(u.TextControl,{type:"text",label:(0,a.__)("Title","otter-blocks"),placeholder:(0,a.__)("Insert a title","otter-blocks"),onChange:e=>{t({title:e})}})))};const{name:p}=n;(0,r.registerBlockType)(p,{...n,title:(0,a.__)("Tab Item","otter-blocks"),description:(0,a.__)("Organize and allow navigation between groups of content with Tabs block. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["media","tab","item"],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const r=(0,c.useRef)(null),{parentClientId:n}=(0,m.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor");return{parentClientId:t(o(l)).clientId}}),[]),{selectBlock:i}=(0,m.useDispatch)("core/block-editor"),u=(0,d.useBlockProps)({ref:r});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(b,{setAttributes:o,selectParent:()=>i(n)}),(0,c.createElement)("div",u,(0,c.createElement)(d.RichText,{placeholder:(0,a.__)("Add title…","otter-blocks"),value:t.title,onChange:e=>o({title:e}),className:s()("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)(d.InnerBlocks,{template:[["core/paragraph"]]}))))},save:e=>{let{attributes:t}=e;const o=d.useBlockProps.save({"data-title":t.title,...t.defaultOpen&&{"data-default-open":t.defaultOpen}});return(0,c.createElement)("div",o,(0,c.createElement)(d.RichText.Content,{tagName:"div",className:"wp-block-themeisle-blocks-tabs-item__header",value:t.title||(0,a.__)("Untitled Tab","otter-blocks"),tabIndex:"0"}),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-item__content"},(0,c.createElement)(d.InnerBlocks.Content,null)))}})},5452:function(e,t,o){var l=o(9307),a=o(5736),r=o(2175),n=o(5609),c=o(4333),i=o(340),s=o(2136);const d=e=>{let{backgroundType:t,backgroundColor:o,image:m,gradient:u,backgroundAttachment:b,backgroundRepeat:p,backgroundSize:g,focalPoint:h,changeImage:k,changeColor:v,removeImage:y,changeBackgroundType:f,changeGradient:_,changeBackgroundAttachment:w,changeBackgroundRepeat:C,changeBackgroundSize:E,changeFocalPoint:x}=e;const T=`inspector-background-selector-control-${(0,c.useInstanceId)(d)}`;return(0,l.createElement)("div",{id:T,className:"components-base-control o-background-selector-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"},(0,a.__)("Background Type","otter-blocks")),(0,l.createElement)(n.ButtonGroup,{className:"linking-controls"},(0,l.createElement)(n.Button,{icon:"admin-customizer",label:(0,a.__)("Color","otter-blocks"),showTooltip:!0,isPrimary:"color"===t,onClick:()=>f("color")}),(0,l.createElement)(n.Button,{icon:"format-image",label:(0,a.__)("Image","otter-blocks"),showTooltip:!0,isPrimary:"image"===t,onClick:()=>f("image")}),(0,l.createElement)(n.Button,{icon:()=>(0,l.createElement)(n.Icon,{icon:i.barcodeIcon}),label:(0,a.__)("Gradient","otter-blocks"),showTooltip:!0,isPrimary:"gradient"===t,onClick:()=>f("gradient")})))),"color"===t&&(0,l.createElement)(r.__experimentalColorGradientControl,{label:(0,a.__)("Background Color","otter-blocks"),colorValue:o,onColorChange:v})||"image"===t&&(null!=m&&m.url?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(n.FocalPointPicker,{label:(0,a.__)("Focal point picker","otter-blocks"),url:m.url,value:h,onDragStart:x,onDrag:x,onChange:x}),(0,l.createElement)(s.Z,{label:(0,a.__)("Background Settings","otter-blocks")},(0,l.createElement)(n.SelectControl,{label:(0,a.__)("Background Attachment","otter-blocks"),value:b,options:[{label:(0,a.__)("Scroll","otter-blocks"),value:"scroll"},{label:(0,a.__)("Fixed","otter-blocks"),value:"fixed"},{label:(0,a.__)("Local","otter-blocks"),value:"local"}],onChange:w}),(0,l.createElement)(n.SelectControl,{label:(0,a.__)("Background Repeat","otter-blocks"),value:p,options:[{label:(0,a.__)("Repeat","otter-blocks"),value:"repeat"},{label:(0,a.__)("No-repeat","otter-blocks"),value:"no-repeat"}],onChange:C}),(0,l.createElement)(n.SelectControl,{label:(0,a.__)("Background Size","otter-blocks"),value:g,options:[{label:(0,a.__)("Auto","otter-blocks"),value:"auto"},{label:(0,a.__)("Cover","otter-blocks"),value:"cover"},{label:(0,a.__)("Contain","otter-blocks"),value:"contain"}],onChange:E})),(0,l.createElement)(n.PanelRow,null,(0,l.createElement)(n.Button,{isSmall:!0,isSecondary:!0,onClick:y},(0,a.__)("Clear Image","otter-blocks")))):(0,l.createElement)(r.MediaPlaceholder,{icon:"format-image",labels:{title:(0,a.__)("Background Image","otter-blocks"),name:(0,a.__)("an image","otter-blocks")},value:null==m?void 0:m.id,onSelect:k,accept:"image/*",allowedTypes:["image"]}))||"gradient"===t&&(0,l.createElement)(r.__experimentalColorGradientControl,{label:(0,a.__)("Background Gradient","otter-blocks"),gradientValue:u,disableCustomColors:!0,onGradientChange:_,clearable:!1}))};t.Z=d},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&&(f(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 w(t)}})))})),()=>{e=!1}}),[]);const[y,f]=(0,l.useState)(null),[_,w]=(0,l.useState)(null),[C,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 w(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}))),w(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:C,onChange:e=>E(e)}),(0,l.createElement)("div",{className:"components-popover__items"},(0,l.createElement)(s.MenuItem,{onClick:()=>{t(),p(void 0),w([]),E("")}},(0,c.__)("Default","otter-blocks")),y.map((e=>{if(!C||e.family.toLowerCase().includes(C.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})));w(o),E("")}},e.family)}))))}}):(0,c.__)("Loading…","otter-blocks")),_&&(0,l.createElement)(s.SelectControl,{label:(0,c.__)("Font Weight","otter-blocks"),value:a||"regular",options:_,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},1661:function(e,t,o){var l=o(9307),a=o(4184),r=o.n(a),n=o(5736),c=o(2175),i=o(4333),s=o(5609);const d=e=>{let{value:t,onChange:o}=e;const a=(0,i.useInstanceId)(d);(0,l.useEffect)((()=>p(t)),[t]);const[m,u]=(0,l.useState)(!1),[b,p]=(0,l.useState)(null),g=void 0!==window.themeisleGutenberg.blockIDs&&t!==b&&window.themeisleGutenberg.blockIDs.includes(b);return(0,l.createElement)(c.InspectorAdvancedControls,null,(0,l.createElement)(s.BaseControl,{label:(0,n.__)("HTML Anchor","otter-blocks"),help:(0,n.__)("Anchors lets you link directly to a section on a page.","otter-blocks"),id:`o-html-anchor-control-${a}`},(0,l.createElement)("div",{className:"o-html-anchor-control"},(0,l.createElement)("input",{type:"text",className:"o-html-anchor-control-input",readOnly:!m&&"readonly",value:m?b:t,onChange:e=>p(e.target.value),onClick:e=>e.target.select()}),(0,l.createElement)(s.Button,{icon:m?"yes":"edit",label:m?(0,n.__)("Save","otter-blocks"):(0,n.__)("Edit","otter-blocks"),showTooltip:!0,disabled:!!g,className:r()("o-html-anchor-control-button",{"is-saved":!m}),onClick:()=>{if(m&&t!==b){const e=window.themeisleGutenberg.blockIDs.findIndex((e=>e===t));window.themeisleGutenberg.blockIDs[e]=b,o(b)}u(!m)}}))),g&&(0,l.createElement)(s.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice"},(0,n.__)("This ID has already been used in this page. Please consider using a different ID to avoid conflict.","otter-blocks")))};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})}}))}},8406: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},8504:function(e,t,o){var l=o(9307),a=o(8314),r=o(6421),n=o(5736),c=o(2175),i=o(5609),s=o(9630);t.Z=e=>{let{isSelected:t,url:o,setAttributes:d,opensInNewTab:m}=e;const[u,b]=(0,l.useState)(!1),p=!!o,g=p&&t,h=()=>(b(!0),!1),k=()=>{d({link:void 0,newTab:void 0}),b(!1)},v=u&&(0,l.createElement)(i.Popover,{position:"bottom right",onClose:()=>b(!1)},(0,l.createElement)(c.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:o,opensInNewTab:m},onChange:e=>{let{url:t="",opensInNewTab:o}=e;d({link:t}),m!==o&&d({newTab:o})}}));return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(i.ToolbarGroup,null,!p&&(0,l.createElement)(i.ToolbarButton,{name:"link",icon:a.Z,title:(0,n.__)("Link","otter-blocks"),shortcut:s.displayShortcut.primary("k"),onClick:h,className:"o-toolbar-icon"}),g&&(0,l.createElement)(i.ToolbarButton,{name:"link",icon:r.Z,title:(0,n.__)("Unlink","otter-blocks"),shortcut:s.displayShortcut.primaryShift("k"),onClick:k,isActive:!0,className:"o-toolbar-icon"})),t&&(0,l.createElement)(i.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{[s.rawShortcut.primary("k")]:h,[s.rawShortcut.primaryShift("k")]:k}}),v)}},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:f}=!!(0,s.useDispatch)("core/edit-post")&&(0,s.useDispatch)("core/edit-post"),_=f&&!k?f:y,w=`inspector-responsive-control-${u}`;return(0,l.createElement)("div",{id:w,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:()=>_("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:()=>_("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:()=>_("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},5241:function(e,t,o){o.d(t,{V:function(){return d},d:function(){return m}});var l=o(9307),a=o(4184),r=o.n(a),n=o(5609),c=o(4333),i=o(2175);const s=e=>{let{label:t,value:o,options:a,onChange:i}=e;const d=`inspector-style-switcher-control-${(0,c.useInstanceId)(s)}`;return(0,l.createElement)(n.BaseControl,{id:d,label:t},(0,l.createElement)("div",{className:"o-style-switcher"},a.map((e=>(0,l.createElement)(n.Button,{key:e.value,className:r()("o-style-switcher-item",{"is-active":e.value===o}),tabIndex:"0",onClick:()=>(e=>i(e))(e.value)},(0,l.createElement)("div",{className:"o-style-switcher-item-preview"},(0,l.createElement)("img",{src:e.image})),(0,l.createElement)("div",{className:"o-style-switcher-item-label"},e.label))))))},d=s,m=e=>{let{label:t,value:o,options:a,onChange:c}=e;return(0,l.createElement)(i.BlockControls,null,(0,l.createElement)(n.ToolbarGroup,null,(0,l.createElement)(n.Dropdown,{contentClassName:"otter-styles-popover-content",position:"bottom center",renderToggle:e=>{let{isOpen:o,onToggle:a}=e;return(0,l.createElement)(n.Button,{className:"components-dropdown-menu__toggle",icon:"admin-appearance",onClick:a,"aria-haspopup":"true","aria-expanded":o,label:t,showTooltip:!0},(0,l.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:()=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"o-style-switcher"},a.map((e=>(0,l.createElement)(n.Button,{key:e.value,className:r()("o-style-switcher-item",{"is-active":e.value===o}),tabIndex:"0",onClick:()=>(e=>c(e))(e.value)},(0,l.createElement)("div",{className:"o-style-switcher-item-preview"},(0,l.createElement)("img",{src:e.image})),(0,l.createElement)("div",{className:"o-style-switcher-item-label"},e.label))))))})))}},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)}},5581:function(e,t,o){o.d(t,{Z:function(){return f}});var l=o(9307),a=o(4184),r=o.n(a),n=o(5736),c=o(6989),i=o.n(c),s=o(4981),d=o(5609),m=o(9818),u=o(2819),b=o(340),p=e=>{let{preview:t,tab:o,blocksCategories:a,templateCategories:c,selectedCategory:i,selectedTemplate:s,search:m,setPreview:p,changeTab:g,close:h,importTemplate:k,selectCategory:v,changeSearch:y}=e;const f=(()=>{let e={};return e=("block"===o?a:c).map((e=>({label:(0,u.startCase)((0,u.toLower)(e)),value:e}))),[{label:(0,n.__)("All Categories","otter-blocks"),value:"all"},...e]})();return(0,l.createElement)("div",{className:"o-library-modal-control-panel"},(0,l.createElement)("div",{className:"o-library-modal-header"},(0,l.createElement)("div",{className:"o-library-modal-header-logo"},t?(0,l.createElement)(d.Button,{className:"o-library-modal-header-tabs-button back-to-library","aria-label":(0,n.__)("Back to Library","otter-blocks"),onClick:()=>p(!1)},(0,l.createElement)(d.Dashicon,{icon:"arrow-left-alt"})," ",(0,n.__)("Back to Library","otter-blocks")):(0,l.createElement)("div",{className:"o-library-modal-header-tabs-button"},(0,l.createElement)(d.Icon,{icon:b.otterIcon}))),!t&&(0,l.createElement)("div",{className:"o-library-modal-header-tabs"},(0,l.createElement)(d.Button,{className:r()("o-library-modal-header-tabs-button",{"is-selected":"block"===o}),onClick:()=>g("block")},(0,l.createElement)(d.Dashicon,{icon:"screenoptions"}),(0,n.__)("Blocks","otter-blocks")),(0,l.createElement)(d.Button,{className:r()("o-library-modal-header-tabs-button",{"is-selected":"template"===o}),onClick:()=>g("template")},(0,l.createElement)(d.Dashicon,{icon:"editor-table"}),(0,n.__)("Templates","otter-blocks"))),(0,l.createElement)("div",{className:"o-library-modal-header-actions"},t&&(0,l.createElement)(d.Button,{className:"o-library-modal-header-tabs-button insert-button",onClick:()=>k(s.template_url),tabIndex:"0"},(0,l.createElement)(d.Dashicon,{icon:"arrow-down-alt",size:16}),(0,n.__)("Insert","otter-blocks")),(0,l.createElement)(d.Tooltip,{text:(0,n.__)("Close","otter-blocks")},(0,l.createElement)(d.Button,{className:"o-library-modal-header-tabs-button","aria-label":(0,n.__)("Close settings","otter-blocks"),onClick:h},(0,l.createElement)(d.Dashicon,{icon:"no-alt"}))))),!t&&(0,l.createElement)("div",{className:"o-library-modal-actions"},(0,l.createElement)(d.SelectControl,{className:"o-library-modal-category-control",value:"all"===i?"all":i,onChange:v,options:f}),(0,l.createElement)(d.TextControl,{type:"text",value:m||"",placeholder:(0,n.__)("Search","otter-blocks"),className:"o-library-modal-search-control",onChange:y})))},g=()=>{const e=(0,m.useSelect)((e=>e("core/notices").getNotices("themeisle-blocks/notices/template-library")),[]),{removeNotice:t}=(0,m.useDispatch)("core/notices");return(0,l.createElement)("div",{className:"o-library-modal-error"},e.map((e=>(0,l.createElement)(d.Notice,{key:e.id,status:e.status,isDismissible:e.isDismissible,onRemove:()=>t(e.id,"themeisle-blocks/notices/template-library"),actions:e.actions},e.content))))},h=o(2175),k=o(4333),v=e=>{let{template:t,importPreview:o,importTemplate:a}=e;return(0,l.createElement)("div",{"aria-label":t.title||(0,n.__)("Untitled Gutenberg Template","otter-blocks"),className:"o-library-modal-content__item",tabIndex:"0"},(0,l.createElement)("div",{className:"o-library-modal-content__preview"},(0,l.createElement)("img",{src:t.screenshot_url||"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/default.jpg"})),(0,l.createElement)("div",{className:"o-library-modal-content__footer"},(0,l.createElement)("div",{className:"o-library-modal-content__footer_meta"},(0,l.createElement)("h4",{className:"o-library-modal-content__footer_meta_area"},t.title&&t.title+(t.author&&(0,n.__)(" by ","otter-blocks")+t.author),!t.title&&t.author&&(0,n.__)("Author: ","otter-blocks")+t.author)),(0,l.createElement)("div",{className:"o-library-modal-content__footer_actions"},(0,l.createElement)(d.Button,{isSecondary:!0,className:"o-library-modal-overlay__actions",onClick:()=>o(t),tabIndex:"0"},(0,n.__)("Preview","otter-blocks")),(0,l.createElement)(d.Button,{isPrimary:!0,className:"o-library-modal-overlay__actions",onClick:()=>a(t.template_url),tabIndex:"0"},(0,n.__)("Insert","otter-blocks")))))},y=e=>{let{preview:t,isLoading:o,data:a,tab:r,selectedTemplateContent:c,selectedCategory:i,search:s,importPreview:m,importTemplate:u}=e;const b=(0,k.useViewportMatch)("large",">="),p=(0,k.useViewportMatch)("large","<="),g=(0,k.useViewportMatch)("small",">="),y=(0,k.useViewportMatch)("small","<=");let f=1400;return b||p||!g||y?!(b||p||g||y)&&(f=600):f=960,t?(0,l.createElement)("div",{className:"o-library-modal-preview"},(0,l.createElement)(h.BlockPreview,{blocks:c,viewportWidth:f})):o?(0,l.createElement)("div",{className:"o-library-modal-loader"},(0,l.createElement)(d.Spinner,null)):(0,l.createElement)("div",{className:"o-library-modal-content"},a.map((e=>{if(e.template_url&&("all"===i||e.categories&&e.categories.includes(i))&&(!s||e.keywords&&e.keywords.some((e=>e.toLowerCase().includes(s.toLowerCase()))))&&r===e.type)return(0,l.createElement)(v,{key:e.template_url,template:e,importPreview:m,importTemplate:u})})),(0,l.createElement)("div",{"aria-label":(0,n.__)("Coming Soon","otter-blocks"),className:"o-library-modal-content__item"},(0,l.createElement)("div",{className:"o-library-modal-content__preview"},(0,l.createElement)("img",{src:"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/coming-soon.jpg"}))))},f=e=>{let{clientId:t,close:o}=e;const a=(0,m.useSelect)((e=>e("core/block-editor").getBlock(t)),[t]),{replaceBlocks:c}=(0,m.useDispatch)("core/block-editor"),{createNotice:u}=(0,m.useDispatch)("core/notices");(0,l.useEffect)((()=>{let e=!0;return(async()=>{if(e){Boolean(window.themeisleGutenberg.isCompatible)||u("warning",(0,n.__)("You are using an older version of Otter. Use the latest version of Otter to have maximum compatibility with Template Library.","otter-blocks"),{context:"themeisle-blocks/notices/template-library",id:"compatibility-warning",isDismissible:!1,actions:[{label:(0,n.__)("Update Now","otter-blocks"),url:window.themeisleGutenberg.updatePath}]});try{const e=await i()({path:"otter/v1/templates"});let t=[],o=[];e.forEach((e=>{e.categories&&e.template_url&&("block"===e.type&&e.categories.forEach((e=>{t.push(e)})),"template"===e.type&&e.categories.forEach((e=>{o.push(e)})))})),t=t.filter(((e,t,o)=>o.indexOf(e)===t)).sort(),o=o.filter(((e,t,o)=>o.indexOf(e)===t)).sort(),x(t),M(o),B(e)}catch(e){u("error",(0,n.__)("There seems to be an error. Please try again.","otter-blocks"),{context:"themeisle-blocks/notices/template-library",isDismissible:!0})}v(!1)}})(),()=>{e=!1}}),[]);const[b,h]=(0,l.useState)("block"),[k,v]=(0,l.useState)(!0),[f,_]=(0,l.useState)("all"),[w,C]=(0,l.useState)(""),[E,x]=(0,l.useState)([]),[T,M]=(0,l.useState)([]),[S,B]=(0,l.useState)([]),[z,P]=(0,l.useState)(!1),[V,R]=(0,l.useState)(null),[L,H]=(0,l.useState)(null),N=async e=>{P(!1),v(!0);try{let o=await i()({path:`otter/v1/import?url=${e}`});if(o.__file&&o.content&&"wp_export"===o.__file&&(o=(0,s.parse)(o.content)),e.includes("https://raw.githubusercontent.com/Codeinwp/")&&window.themeisleGutenberg.dataLogging.templates&&Boolean(window.themeisleGutenberg.canTrack)){const t=window.themeisleGutenberg.dataLogging.templates.find((t=>t.url===e));t?t.instances=t.instances+1:window.themeisleGutenberg.dataLogging.templates.push({url:e,instances:1})}t=o,c(a.clientId,t)}catch(e){e.message&&u("error",e.message,{context:"themeisle-blocks/notices/template-library",isDismissible:!0}),v(!1)}var t};return(0,l.createElement)(d.Modal,{className:r()("o-library-modal",{"is-preview":z}),onRequestClose:o,isDismissable:!1,shouldCloseOnClickOutside:!1},(0,l.createElement)(p,{preview:z,tab:b,changeTab:e=>{h(e),_("all"),C("")},blocksCategories:E,templateCategories:T,selectedTemplate:V,selectedCategory:f,search:w,setPreview:P,close:o,importTemplate:N,selectCategory:e=>_(e),changeSearch:e=>C(e)}),(0,l.createElement)(g,null),(0,l.createElement)(y,{preview:z,isLoading:k,data:S,tab:b,selectedTemplateContent:L,selectedCategory:f,search:w,importPreview:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;v(!0);try{let t=await i()({path:`otter/v1/import?url=${e.template_url}&preview=true`});t.__file&&t.content&&"wp_export"===t.__file&&(t=(0,s.parse)(t.content)),R(e),H(t),P(!0)}catch(e){e.message&&u("error",e.message,{context:"themeisle-blocks/notices/template-library",isDismissible:!0})}v(!1)},importTemplate:N}))}},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 M},StarHalf:function(){return S},alignBottom:function(){return j},alignCenter:function(){return q},alignTop:function(){return J},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 G},cols5Equal:function(){return $},cols6Equal:function(){return D},colsCollapsed:function(){return Z},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 _},postsIcon:function(){return f},pricingIcon:function(){return C},rowsCollapsed:function(){return F},servicesIcon:function(){return w},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"})),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:"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"})),_=()=>(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"})),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:"M15.517 23.581c-0.036 0.002-0.069-0.003-0.102-0.009-0.108-0.019-0.211-0.070-0.294-0.153l-9.153-9.153c-0.104-0.104-0.162-0.245-0.162-0.392s0.058-0.288 0.163-0.392l2.13-2.129c0.217-0.217 0.568-0.217 0.784 0l6.633 6.633 12.94-12.94c0.217-0.217 0.568-0.217 0.785 0l2.13 2.13c0.104 0.104 0.163 0.245 0.163 0.392s-0.058 0.288-0.162 0.392l-15.46 15.46c-0.104 0.104-0.245 0.163-0.392 0.163zM7.145 13.873l8.37 8.37 14.678-14.678-1.345-1.345-12.94 12.94c-0.217 0.217-0.568 0.217-0.785 0l-6.633-6.633-1.345 1.345zM30.087 11.781c0.401 1.337 0.618 2.753 0.618 4.219 0 8.108-6.596 14.704-14.705 14.704s-14.704-6.596-14.704-14.704c0-8.108 6.596-14.705 14.704-14.705 3.79 0 7.25 1.442 9.86 3.805l0.785-0.785c-2.812-2.564-6.549-4.129-10.645-4.129-8.72 0-15.814 7.094-15.814 15.814s7.094 15.814 15.814 15.814c8.72 0 15.814-7.094 15.814-15.814 0-1.784-0.297-3.501-0.845-5.102l-0.883 0.883z"})),C=()=>(0,a.createElement)(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"})),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:"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"}))},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:"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"})),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:"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"})),$=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"})),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.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"})),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.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"})),J=(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.
|
1 |
+
!function(){"use strict";var e,t,o,l={7758: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=o(8423),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})},8398: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/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"}'),r=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(5711),m=o(2175),u=o(5609),b=o(3159),p=e=>{let{attributes:t,setAttributes:o,getValue:a}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(u.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)(u.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.Z,{field:"titleColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Title","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>o({titleColor:e})})),(0,c.createElement)(b.Z,{field:"titleBackground",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Title Background","otter-blocks"),colorValue:t.titleBackground,onColorChange:e=>o({titleBackground:e})})),(0,c.createElement)(m.ContrastChecker,{textColor:a("titleColor"),backgroundColor:a("titleBackground")}),(0,c.createElement)(b.Z,{field:"contentBackground",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Content Background","otter-blocks"),colorValue:t.contentBackground,onColorChange:e=>o({contentBackground:e})})),(0,c.createElement)(b.Z,{field:"borderColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}))))},g=o(5225);const{attributes:h}=n;const{name:k}=n;(0,a.registerBlockType)(k,{...n,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,g.WX)(a,h);return()=>e(o.id)}),[o.id]);const r=e=>(0,g.Ih)({name:t,field:e,defaultAttributes:h,attributes:o}),i=d.iv`
|
2 |
+
--titleColor: ${r("titleColor")};
|
3 |
+
--titleBackground: ${r("titleBackground")};
|
4 |
+
--borderColor: ${r("borderColor")};
|
5 |
+
--contentBackground: ${r("contentBackground")};
|
6 |
+
`,u=(0,m.useBlockProps)({id:o.id,className:s()({[`is-${o.gap}-gap`]:o.gap}),css:i});return(0,d.tZ)(c.Fragment,null,(0,d.tZ)(p,{attributes:o,setAttributes:l,getValue:r}),(0,d.tZ)("div",u,(0,d.tZ)(m.InnerBlocks,{allowedBlocks:["themeisle-blocks/accordion-item"],template:[["themeisle-blocks/accordion-item"]],renderAppender:n?m.InnerBlocks.ButtonBlockAppender:""})))},save:e=>{let{attributes:t}=e;const o=m.useBlockProps.save({id:t.id,className:s()({[`is-${t.gap}-gap`]:t.gap})});return(0,c.createElement)("div",o,(0,c.createElement)(m.InnerBlocks.Content,null))}})},7767:function(e,t,o){o(8398),o(1125)},1125:function(e,t,o){var l=o(5736),a=o(4981),n=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}}'),r=o(340),c=o(9307),i=o(6015),s=o(3904),d=o(2175),m=o(5609),u=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(d.InspectorControls,null,(0,c.createElement)(m.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(m.ToggleControl,{label:(0,l.__)("Initially Open","otter-blocks"),checked:t.initialOpen,onChange:e=>o({initialOpen:e})})))};const{name:b}=n;(0,a.registerBlockType)(b,{...n,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)(u,{attributes:t,setAttributes:o}),(0,c.createElement)("div",(0,d.useBlockProps)(),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__title",onClick:e=>{"string"==typeof e.target.className&&e.target.className.includes("block-editor-rich-text__editable")?n(!0):n(!a)}},(0,c.createElement)(d.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.title,onChange:e=>{a||n(!0),o({title:e})},tagName:"span"}),(0,c.createElement)(m.Icon,{icon:a?i.Z:s.Z,size:24})),a&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,c.createElement)(d.InnerBlocks,{template:[["core/paragraph"]]}))))},save:e=>{let{attributes:t}=e;const o=d.useBlockProps.save({open:!!t.initialOpen});return(0,c.createElement)("details",o,(0,c.createElement)("summary",{className:"wp-block-themeisle-blocks-accordion-item__title"},(0,c.createElement)(d.RichText.Content,{tagName:"div",value:t.title})),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,c.createElement)(d.InnerBlocks.Content,null)))}})},4443:function(e,t,o){var l=o(5736),a=o(4981),n=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"}'),r=o(9307),c=o(6713),i=window.wp.richText,s=o(2175);const d="themeisle-blocks/highlight";(0,i.registerFormatType)(d,{name:d,title:(0,l.__)("Highlight","otter-blocks"),tagName:"span",className:"highlight",edit:e=>{let{isActive:t,value:o,onChange:a}=e;const n=()=>a((0,i.toggleFormat)(o,{type:d}));return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.RichTextShortcut,{type:"primary",character:"h",onUse:n}),(0,r.createElement)(s.RichTextToolbarButton,{icon:c.Z,title:(0,l.__)("Highlight","otter-blocks"),onClick:n,isActive:t,shortcutType:"access",shortcutCharacter:"h"}))}});var m=o(340),u=o(4184),b=o.n(u),p=o(80),g=o.n(p),h=[{attributes:{id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number",default:0},paddingMobile:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number",default:0},paddingTopMobile:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number",default:0},paddingRightMobile:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number",default:0},paddingBottomMobile:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number",default:0},paddingLeftMobile:{type:"number",default:0},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number",default:0},marginMobile:{type:"number",default:0},marginTop:{type:"number",default:0},marginTopTablet:{type:"number",default:0},marginTopMobile:{type:"number",default:0},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number",default:25},marginBottomMobile:{type:"number",default:20}},save:e=>{let t,{attributes:o,className:l}=e;o.textShadow&&(t={textShadow:`${o.textShadowHorizontal}px ${o.textShadowVertical}px ${o.textShadowBlur}px ${g()(o.textShadowColor?o.textShadowColor:"#000000",o.textShadowColorOpacity)}`});const a={color:o.headingColor,fontFamily:o.fontFamily,fontWeight:"regular"===o.fontVariant?"normal":o.fontVariant,fontStyle:o.fontStyle,textTransform:o.textTransform,lineHeight:o.lineHeight&&`${o.lineHeight}px`,letterSpacing:o.letterSpacing&&`${o.letterSpacing}px`,...t};return(0,r.createElement)(s.RichText.Content,{tagName:o.tag,value:o.content,id:o.id,className:b()(o.id,l),style:a})}}],k={from:[{type:"block",blocks:["core/heading"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("themeisle-blocks/advanced-heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("themeisle-blocks/advanced-heading",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("core/paragraph",{content:t})}}]},v=o(7462),y=o(5988),_=o(2819),f=o(4333),w=o(9818),C=o(5225),E=o(5609),x=o(9977),T=e=>{let{attributes:t,setAttributes:o}=e;const a=e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},n=e=>{switch(e){case"h1":return(0,r.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,r.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1"));case"h2":return(0,r.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,r.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2"));case"h3":return(0,r.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,r.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3"));case"h4":return(0,r.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,r.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4"));case"h5":return(0,r.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,r.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5"));case"h6":return(0,r.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,r.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6"));case"div":return(0,r.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,r.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV"));case"p":return(0,r.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,r.createElement)("text",{x:"0",y:"15"},"P"));case"span":return(0,r.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,r.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN"));default:return(0,r.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,r.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DEFAULT"))}},c=e=>{o({tag:e})};return(0,r.createElement)(s.BlockControls,null,(0,r.createElement)(E.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:()=>c("h1")},{title:(0,l.__)("Heading","otter-blocks")+" 2",icon:n("h2"),onClick:()=>c("h2")},{title:(0,l.__)("Heading","otter-blocks")+" 3",icon:n("h3"),onClick:()=>c("h3")},{title:(0,l.__)("Heading","otter-blocks")+" 4",icon:n("h4"),onClick:()=>c("h4")},{title:(0,l.__)("Heading","otter-blocks")+" 5",icon:n("h5"),onClick:()=>c("h5")},{title:(0,l.__)("Heading","otter-blocks")+" 6",icon:n("h6"),onClick:()=>c("h6")},{title:(0,l.__)("Division","otter-blocks"),icon:n("div"),onClick:()=>c("div")},{title:(0,l.__)("Paragraph","otter-blocks"),icon:n("p"),onClick:()=>c("p")},{title:(0,l.__)("Span Tag","otter-blocks"),icon:n("span"),onClick:()=>c("span")}]}),(0,r.createElement)(E.ToolbarGroup,null,(0,r.createElement)(E.Dropdown,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:e=>{let{isOpen:t,onToggle:o}=e;return(0,r.createElement)(E.Button,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:o,"aria-haspopup":"true","aria-expanded":t,label:(0,l.__)("Typography Settings","otter-blocks"),showTooltip:!0},(0,r.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(x.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:a,valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,r.createElement)(E.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,step:.1,max:3}),(0,r.createElement)(E.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),min:-50,max:100}))})))},M=o(2136),S=o(6993),B=o(2372),z=o(1661),P=e=>{let{values:t,setAttributes:o}=e;return(0,r.createElement)("div",{className:"o-clear-button"},(0,r.createElement)(E.Button,{isSmall:!0,isSecondary:!0,onClick:()=>{const e=((0,_.isArray)(t)?t:[t]).map((e=>{if((0,_.isString)(e))return e;if((0,_.isObject)(e)){const t=Object.keys(e);if(1===t.length)return e[t[0]]?t[0]:void 0}})).filter(_.isString).reduce(((e,t)=>(e[t]=void 0,e)),{});o(e)}},(0,l.__)("Clear","otter-blocks")))},V=e=>{let{attributes:t,setAttributes:o}=e;const a=(0,w.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[n,c]=(0,r.useState)("style"),i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},d={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},m={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},u=e=>{if("top"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingTop;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile}else if("right"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingRight;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile}else if("bottom"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingBottom;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile}else if("left"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingLeft;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile}},p={top:"marginTop",bottom:"marginBottom"},g={top:"marginTopTablet",bottom:"marginBottomTablet"},h={top:"marginTopMobile",bottom:"marginBottomMobile"},k=e=>{if("top"==e)switch(a){case"Desktop":return"linked"===t.marginType?t.margin:t.marginTop;case"Tablet":return"linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet;case"Mobile":return"linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile}else if("bottom"==e)switch(a){case"Desktop":return"linked"===t.marginType?t.margin:t.marginBottom;case"Tablet":return"linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet;case"Mobile":return"linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile}};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(E.PanelBody,{className:"o-heading-header-panel"},(0,r.createElement)(E.Button,{className:b()("header-tab",{"is-selected":"style"===n}),onClick:()=>c("style")},(0,r.createElement)("span",null,(0,r.createElement)(E.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,r.createElement)(E.Button,{className:b()("header-tab",{"is-selected":"advanced"===n}),onClick:()=>c("advanced")},(0,r.createElement)("span",null,(0,r.createElement)(E.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"style"===n&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(E.PanelBody,{title:(0,l.__)("General Settings","otter-blocks"),className:"o-adv-h-panel"},(0,r.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Heading Color","otter-blocks"),colorValue:t.headingColor,onColorChange:e=>o({headingColor:e})}),(0,r.createElement)(S.Z,{label:(0,l.__)("Font Size","otter-blocks")},(0,r.createElement)(E.RangeControl,{value:(()=>{switch(a){case"Desktop":return t.fontSize;case"Tablet":return t.fontSizeTablet;case"Mobile":return t.fontSizeMobile;default:return}})()||"",onChange:e=>{"Desktop"===a?o({fontSize:e}):"Tablet"===a?o({fontSizeTablet:e}):"Mobile"===a&&o({fontSizeMobile:e})},min:1,max:500,allowReset:!0})),(0,r.createElement)(S.Z,{label:(0,l.__)("Alignment","otter-blocks")},(0,r.createElement)(s.AlignmentToolbar,{value:(()=>{switch(a){case"Desktop":return t.align;case"Tablet":return t.alignTablet;case"Mobile":return t.alignMobile;default:return}})(),onChange:e=>{"Desktop"===a?o({align:e}):"Tablet"===a?o({alignTablet:e}):"Mobile"===a&&o({alignMobile:e})},isCollapsed:!1}))),(0,r.createElement)(E.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,r.createElement)(x.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,r.createElement)(P,{values:["fontFamily","fontVariant","fontStyle","textTransform"],setAttributes:o}),(0,r.createElement)(E.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,step:.1,max:3,allowReset:!0}),(0,r.createElement)(E.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),min:-50,max:100,allowReset:!0}),(0,r.createElement)(E.ToggleControl,{label:(0,l.__)("Shadow Properties","otter-blocks"),checked:t.textShadow,onChange:e=>o({textShadow:e})}),t.textShadow&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.textShadowColor,onColorChange:e=>o({textShadowColor:e})}),(0,r.createElement)(M.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,r.createElement)(E.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.textShadowColorOpacity,onChange:e=>o({textShadowColorOpacity:e}),min:0,max:100}),(0,r.createElement)(E.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.textShadowBlur,onChange:e=>o({textShadowBlur:e}),min:0,max:100}),(0,r.createElement)(E.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.textShadowHorizontal,onChange:e=>o({textShadowHorizontal:e}),min:-100,max:100}),(0,r.createElement)(E.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.textShadowVertical,onChange:e=>o({textShadowVertical:e}),min:-100,max:100})))))||"advanced"===n&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(E.PanelBody,{title:(0,l.__)("Highlight Color","otter-blocks")},(0,r.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Color","otter-blocks"),colorValue:t.highlightColor,onColorChange:e=>o({highlightColor:e})}),(0,r.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Background","otter-blocks"),colorValue:t.highlightBackground,onColorChange:e=>o({highlightBackground:e})})),(0,r.createElement)(E.PanelBody,{title:(0,l.__)("Spacing","otter-blocks"),initialOpen:!1},(0,r.createElement)(S.Z,{label:(0,l.__)("Padding","otter-blocks")},(0,r.createElement)(B.Z,{type:(()=>{switch(a){case"Desktop":return t.paddingType;case"Tablet":return t.paddingTypeTablet;case"Mobile":return t.paddingTypeMobile;default:return}})(),min:0,max:500,changeType:e=>{"Desktop"===a?o({paddingType:e}):"Tablet"===a?o({paddingTypeTablet:e}):"Mobile"===a&&o({paddingTypeMobile:e})},onChange:(e,l)=>{switch(a){case"Desktop":"linked"===t.paddingType?o({padding:l}):o({[i[e]]:l});break;case"Tablet":"linked"===t.paddingTypeTablet?o({paddingTablet:l}):o({[d[e]]:l});break;case"Mobile":"linked"===t.paddingTypeMobile?o({paddingMobile:l}):o({[m[e]]:l})}},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:u("top")},{label:(0,l.__)("Right","otter-blocks"),type:"right",value:u("right")},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:u("bottom")},{label:(0,l.__)("Left","otter-blocks"),type:"left",value:u("left")}]})),(0,r.createElement)(P,{values:[{padding:"Desktop"===a&&"linked"===t.paddingType},{paddingTablet:"Tablet"===a&&"linked"===t.paddingType},{paddingMobile:"Mobile"===a&&"linked"===t.paddingType},{paddingRight:"Desktop"===a&&"linked"!==t.paddingType},{paddingRightTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingRightMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingTop:"Desktop"===a&&"linked"!==t.paddingType},{paddingTopTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingTopMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingBottom:"Desktop"===a&&"linked"!==t.paddingType},{paddingBottomTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingBottomMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingLeft:"Desktop"===a&&"linked"!==t.paddingType},{paddingLeftTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingLeftMobile:"Mobile"===a&&"linked"!==t.paddingType}],setAttributes:o}),(0,r.createElement)(S.Z,{label:(0,l.__)("Margin","otter-blocks")},(0,r.createElement)(B.Z,{type:(()=>{switch(a){case"Desktop":return t.marginType;case"Tablet":return t.marginTypeTablet;case"Mobile":return t.marginTypeMobile;default:return}})(),min:-500,max:500,changeType:e=>{switch(a){case"Desktop":o({marginType:e});break;case"Tablet":o({marginTypeTablet:e});break;case"Mobile":o({marginTypeMobile:e})}},onChange:(e,l)=>{switch(a){case"Desktop":"linked"===t.marginType?o({margin:l}):o({[p[e]]:l});break;case"Tablet":"linked"===t.marginTypeTablet?o({marginTablet:l}):o({[g[e]]:l});break;case"Mobile":"linked"===t.marginTypeMobile?o({marginMobile:l}):o({[h[e]]:l})}},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:k("top")},{label:(0,l.__)("Right","otter-blocks"),disabled:!0},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:k("bottom")},{label:(0,l.__)("Left","otter-blocks"),disabled:!0}]})),(0,r.createElement)(P,{values:[{margin:"Desktop"===a&&"linked"===t.marginType},{marginTablet:"Tablet"===a&&"linked"===t.marginType},{marginMobile:"Mobile"===a&&"linked"===t.marginType},{marginTop:"Desktop"===a&&"linked"!==t.marginType},{marginTopTablet:"Tablet"===a&&"linked"!==t.marginType},{marginTopMobile:"Mobile"===a&&"linked"!==t.marginType},{marginBottom:"Desktop"===a&&"linked"!==t.marginType},{marginBottomTablet:"Tablet"===a&&"linked"!==t.marginType},{marginBottomMobile:"Mobile"===a&&"linked"!==t.marginType}],setAttributes:o})))),(0,r.createElement)(z.Z,{value:t.id,onChange:e=>o({id:e})}))};const{attributes:R}=n;const{name:L}=n;(0,a.registerBlockType)(L,{...n,title:(0,l.__)("Advanced Heading","otter-blocks"),description:(0,l.__)("Advanced Heading gives a spin to editor's Heading block with much needed customization options. Powered by Otter.","otter-blocks"),icon:m.headingIcon,keywords:["heading","title","advanced heading"],deprecated:h,transforms:k,edit:e=>{let{attributes:t,setAttributes:o,clientId:n,mergeBlocks:c,insertBlocksAfter:i,onReplace:d}=e;const{isViewportAvailable:m,isPreviewDesktop:u,isPreviewTablet:b,isPreviewMobile:p}=(0,w.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),h=(0,f.useViewportMatch)("large",">="),k=(0,f.useViewportMatch)("large","<="),E=(0,f.useViewportMatch)("small",">="),x=(0,f.useViewportMatch)("small","<=");(0,r.useEffect)((()=>{const e=(0,C.WX)(n,R);return()=>e(t.id)}),[t.id]);let M,S,B,z=h&&!k&&E&&!x,P=!h&&!k&&E&&!x,L=!(h||k||E||x);m&&!L&&(z=u,P=b,L=p),z&&(M={fontSize:t.fontSize?`${t.fontSize}px`:void 0},S={textAlign:t.align,paddingTop:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingTop}px`,paddingRight:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingRight}px`,paddingBottom:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingBottom}px`,paddingLeft:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingLeft}px`,marginTop:"linked"===t.marginType?`${t.margin}px`:`${t.marginTop}px`,marginBottom:"linked"===t.marginType?`${t.margin}px`:`${t.marginBottom}px`}),P&&(M={fontSize:t.fontSizeTablet?`${t.fontSizeTablet}px`:void 0},S={textAlign:t.alignTablet,paddingTop:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingTopTablet}px`,paddingRight:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingRightTablet}px`,paddingBottom:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingBottomTablet}px`,paddingLeft:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingLeftTablet}px`,marginTop:"linked"===t.marginTypeTablet?`${t.marginTablet}px`:`${t.marginTopTablet}px`,marginBottom:"linked"===t.marginTypeTablet?`${t.marginTablet}px`:`${t.marginBottomTablet}px`}),L&&(M={fontSize:t.fontSizeMobile?`${t.fontSizeMobile}px`:void 0},S={textAlign:t.alignMobile,paddingTop:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingTopMobile}px`,paddingRight:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingRightMobile}px`,paddingBottom:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingBottomMobile}px`,paddingLeft:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingLeftMobile}px`,marginTop:"linked"===t.marginTypeMobile?`${t.marginMobile}px`:`${t.marginTopMobile}px`,marginBottom:"linked"===t.marginTypeMobile?`${t.marginMobile}px`:`${t.marginBottomMobile}px`}),t.textShadow&&(B={textShadow:`${t.textShadowHorizontal}px ${t.textShadowVertical}px ${t.textShadowBlur}px ${g()(t.textShadowColor?t.textShadowColor:"#000000",0<=t.textShadowColorOpacity?t.textShadowColorOpacity||1e-5:1)}`});const H=(0,_.omitBy)({color:t.headingColor,...M,fontFamily:t.fontFamily||void 0,fontWeight:"regular"===t.fontVariant?"normal":t.fontVariant,fontStyle:t.fontStyle||void 0,textTransform:t.textTransform||void 0,lineHeight:(3<t.lineHeight?t.lineHeight+"px":t.lineHeight)||void 0,letterSpacing:t.letterSpacing&&`${t.letterSpacing}px`,...S,...B},(e=>{var t;return null==e||null===(t=e.includes)||void 0===t?void 0:t.call(e,"undefined")})),N=(0,s.useBlockProps)({id:t.id,style:H});return(0,r.createElement)(r.Fragment,null,(0,r.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,r.createElement)(y.Z,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&[t.fontVariant+("italic"===t.fontStyle?":i":"")]}]}),(0,r.createElement)(T,{attributes:t,setAttributes:o}),(0,r.createElement)(V,{attributes:t,setAttributes:o}),(0,r.createElement)(s.RichText,(0,v.Z)({identifier:"content",value:t.content,placeholder:(0,l.__)("Write heading…","otter-blocks"),tagName:t.tag,formattingControls:["bold","italic","link","strikethrough","highlight"],allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/highlight","themeisle-blocks/count-animation","themeisle-blocks/typing-animation"],onMerge:c,onSplit:i?function(e,t){o({content:e});for(var l=arguments.length,n=new Array(l>2?l-2:0),r=2;r<l;r++)n[r-2]=arguments[r];i([...n,(0,a.createBlock)("core/paragraph",{content:t})])}:void 0,onRemove:()=>d([]),onChange:e=>{o({content:e})}},N)))},save:e=>{let{attributes:t}=e;const o=s.useBlockProps.save({id:t.id,className:t.id});return(0,r.createElement)(s.RichText.Content,(0,v.Z)({tagName:t.tag,value:t.content},o))}})},9078:function(e,t,o){var l=o(5736),a=o(4981),n=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"}]}'),r=o(340),c=o(9307),i=o(5711),s=o(4184),d=o.n(s),m=o(80),u=o.n(m),b=o(2175),p=o(9818),g=o(8504),h=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,c.createElement)(b.BlockControls,null,(0,c.createElement)(g.Z,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))},k=o(5609),v=o(2136);const y=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var _=e=>{let{attributes:t,setAttributes:o}=e;const[a,n]=(0,c.useState)(!1),r=()=>(0,c.createElement)(k.ButtonGroup,null,(0,c.createElement)(k.Button,{isSmall:!0,isSecondary:a,isPrimary:!a,onClick:()=>n(!1)},(0,l.__)("Normal","otter-blocks")),(0,c.createElement)(k.Button,{isSmall:!0,isSecondary:!a,isPrimary:a,onClick:()=>n(!0)},(0,l.__)("Hover","otter-blocks")));return(0,c.createElement)(b.InspectorControls,null,(0,c.createElement)(k.PanelBody,{title:(0,l.__)("Color","otter-blocks")},(0,c.createElement)(r,null),a?(0,c.createElement)(c.Fragment,{key:"with-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Hover Color","otter-blocks"),colorValue:t.hoverColor,onColorChange:e=>o({hoverColor:e})}),(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Hover Background","otter-blocks"),colorValue:t.hoverBackground,gradientValue:t.hoverBackgroundGradient,onColorChange:e=>o({hoverBackground:e}),onGradientChange:e=>o({hoverBackgroundGradient:e})})):(0,c.createElement)(c.Fragment,{key:"without-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.color,onColorChange:e=>o({color:e})}),(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:t.background,gradientValue:t.backgroundGradient,onColorChange:e=>o({background:e}),onGradientChange:e=>o({backgroundGradient:e})}))),(0,c.createElement)(k.PanelBody,{title:(0,l.__)("Border & Box Shadow","otter-blocks"),initialOpen:!1},(0,c.createElement)(r,null),a?(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Hover Border","otter-blocks"),colorValue:t.hoverBorder,onColorChange:e=>o({hoverBorder:e})}):(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.border,onColorChange:e=>o({border:e})}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),min:0,max:10}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),min:0,max:100}),(0,c.createElement)(v.Z,{label:(0,l.__)("Box Shadow","otter-blocks"),attributes:t,setAttributes:o,resetValues:{boxShadow:!1,boxShadowColor:void 0,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:void 0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0},onClick:()=>o({boxShadow:!0})},(0,c.createElement)(r,null),a?(0,c.createElement)(c.Fragment,{key:"with-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color on Hover","otter-blocks"),colorValue:t.hoverBoxShadowColor,onColorChange:e=>o({hoverBoxShadowColor:e})}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.hoverBoxShadowColorOpacity,onChange:e=>o({hoverBoxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.hoverBoxShadowBlur,onChange:e=>o({hoverBoxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.hoverBoxShadowSpread,onChange:e=>o({hoverBoxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.hoverBoxShadowHorizontal,onChange:e=>o({hoverBoxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.hoverBoxShadowVertical,onChange:e=>o({hoverBoxShadowVertical:e}),min:-100,max:100})):(0,c.createElement)(c.Fragment,{key:"without-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))),(0,c.createElement)(k.PanelBody,{title:(0,l.__)("Icon Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.SelectControl,{label:(0,l.__)("Icon Position","otter-blocks"),value:t.iconType,options:[{label:(0,l.__)("No Icon","otter-blocks"),value:"none"},{label:(0,l.__)("Left","otter-blocks"),value:"left"},{label:(0,l.__)("Right","otter-blocks"),value:"right"},{label:(0,l.__)("Icon Only","otter-blocks"),value:"only"}],onChange:e=>o({iconType:e})}),"none"!==t.iconType&&(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(k.Placeholder,null,(0,c.createElement)(k.Spinner,null))},(0,c.createElement)(y,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.library,prefix:t.prefix,icon:t.icon,changeLibrary:e=>{o({library:e,icon:void 0,prefix:"fab"})},onChange:e=>{o("object"==typeof e?{icon:e.name,prefix:e.prefix}:{icon:e})}}))))},f=o(48),w=o(5225);const{attributes:C}=n;const{name:E}=n;(0,a.registerBlockType)(E,{...n,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")}],edit:e=>{let{attributes:t,setAttributes:o,isSelected:a,clientId:n}=e;const{hasParent:r,parentAttributes:s}=(0,p.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,w.WX)(n,C);return()=>e(t.id)}),[]);let m={},g={};t.boxShadow&&(m={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${u()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`}),r&&(g={paddingTop:`${s.paddingTopBottom}px`,paddingBottom:`${s.paddingTopBottom}px`,paddingLeft:`${s.paddingLeftRight}px`,paddingRight:`${s.paddingLeftRight}px`,fontSize:s.fontSize&&`${s.fontSize}px`,fontFamily:s.fontFamily,fontWeight:s.fontVariant,fontStyle:s.fontStyle,textTransform:s.textTransform,lineHeight:s.lineHeight&&`${s.lineHeight}px`});const k={color:t.color,background:t.background||t.backgroundGradient,border:`${t.borderSize}px solid ${t.border}`,borderRadius:t.borderRadius,...m,...g},v=i.iv`
|
7 |
&:hover {
|
8 |
color: ${t.hoverColor} !important;
|
9 |
background: ${t.hoverBackground||t.hoverBackgroundGradient} !important;
|
14 |
&:hover svg {
|
15 |
fill: ${t.hoverColor} !important;
|
16 |
}
|
17 |
+
`,y={fill:t.color,width:s.fontSize&&`${s.fontSize}px`},E=f.ZP.icons[t.icon],x=(0,b.useBlockProps)({id:t.id,className:"wp-block-button",style:{}});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(h,{attributes:t,setAttributes:o,isSelected:a}),(0,i.tZ)(_,{attributes:t,setAttributes:o}),(0,i.tZ)("div",x,"none"!==t.iconType?(0,i.tZ)("div",{className:"wp-block-button__link",style:k,css:v},("left"===t.iconType||"only"===t.iconType)&&("themeisle-icons"===t.library&&t.icon?(0,i.tZ)(E,{className:d()({"margin-right":"left"===t.iconType}),style:y}):(0,i.tZ)("i",{className:d()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.text,onChange:e=>o({text:e}),tagName:"div",withoutInteractiveFormatting:!0}),"right"===t.iconType&&("themeisle-icons"===t.library&&t.icon?(0,i.tZ)(E,{className:"margin-left",style:y}):(0,i.tZ)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))):(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.text,onChange:e=>o({text:e}),tagName:"div",withoutInteractiveFormatting:!0,className:"wp-block-button__link",style:k,css:v})))},save:e=>{let{attributes:t}=e;const o=f.ZP.icons[t.icon],l=b.useBlockProps.save({id:t.id,className:"wp-block-button"});return(0,c.createElement)("div",l,(0,c.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer",className:"wp-block-button__link"},("left"===t.iconType||"only"===t.iconType)&&("themeisle-icons"===t.library&&t.icon?(0,c.createElement)(o,{className:d()({"margin-right":"left"===t.iconType})}):(0,c.createElement)("i",{className:d()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,c.createElement)(b.RichText.Content,{tagName:"span",value:t.text}),"right"===t.iconType&&("themeisle-icons"===t.library&&t.icon?(0,c.createElement)(o,{className:"margin-left"}):(0,c.createElement)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))))}})},9521:function(e,t,o){var l=o(5736),a=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/button-group","title":"Button Group","category":"themeisle-blocks","description":"Prompt visitors to take action with a button group. Powered by Otter.","keywords":["button","buttons","button group"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"align":{"type":"string"},"spacing":{"type":"number","default":20},"paddingTopBottom":{"type":"number"},"paddingLeftRight":{"type":"number"},"collapse":{"type":"string","default":"collapse-none"},"fontSize":{"type":"number"},"fontFamily":{"type":"string"},"fontVariant":{"type":"string"},"textTransform":{"type":"string"},"fontStyle":{"type":"string"},"lineHeight":{"type":"number"}},"editorStyle":"otter-button-group-editor","style":"otter-button-group-style"}'),r=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(2819),m=o(2175);const u={id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},b=[{attributes:u,save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"",a={fontSize:`${t.fontSize}px`,fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&`${t.lineHeight}px`};return(0,c.createElement)("div",{id:t.id,className:s()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,d.times)(t.buttons,(e=>(e=>{const o={...a,borderWidth:`${t.data[e].borderSize}px`,borderRadius:`${t.data[e].borderRadius}px`,padding:`${t.data[e].paddingTopBottom}px ${t.data[e].paddingLeftRight}px`};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:s()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`),style:o},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,c.createElement)("i",{className:s()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,c.createElement)(m.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))})(e))))}},{attributes:u,save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"",a={fontSize:`${t.fontSize}px`,fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&`${t.lineHeight}px`};return(0,c.createElement)("div",{id:t.id,className:s()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,d.times)(t.buttons,(e=>(e=>{const o={...a,borderWidth:`${t.data[e].borderSize}px`,borderRadius:`${t.data[e].borderRadius}px`,padding:`${t.data[e].paddingTopBottom}px ${t.data[e].paddingLeftRight}px`};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:s()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`),style:o,rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,c.createElement)("i",{className:s()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,c.createElement)(m.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))})(e))))}},{attributes:{...u,fontSize:{type:"number"},fontStyle:{type:"string"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""},{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""}]}},migrate:(e,t)=>{let o,l,n;return"flex-start"===e.align&&(o="left"),"center"===e.align&&(o="center"),"flex-end"===e.align&&(o="right"),e.data&&(l=(0,d.pick)(e.data[0],["paddingLeftRight","paddingTopBottom"]),1<=Object.keys(l).length&&(l=(0,d.pick)(l,Object.keys(l).filter((e=>""!==l[e])))),n=e.data.filter(((t,o)=>o<e.buttons)).map((e=>{const t=(0,d.omit)(e,["paddingLeftRight","paddingTopBottom"]);return(0,a.createBlock)("themeisle-blocks/button",{...t})}))),[{...(0,d.omit)(e,["buttons","data"]),align:o,...l},[...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:s()(o,l,"wp-block-button")},(0,d.times)(t.buttons,(e=>(e=>(0,c.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:s()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`,"wp-block-button__link"),rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,c.createElement)("i",{className:s()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,c.createElement)(m.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))(e))))}}];var p=b,g=o(5988),h=o(5711),k=o(4333),v=o(9818),y=o(1150),_=o(8065),f=o(199),w=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(m.BlockControls,null,(0,c.createElement)(m.AlignmentToolbar,{value:t.align,onChange:e=>o({align:e}),alignmentControls:[{icon:y.Z,title:(0,l.__)("Align left","otter-blocks"),align:"left"},{icon:_.Z,title:(0,l.__)("Align center","otter-blocks"),align:"center"},{icon:f.Z,title:(0,l.__)("Align right","otter-blocks"),align:"right"}]}))},C=o(5609),E=o(9977),x=o(2372),T=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(C.PanelBody,{title:(0,l.__)("Spacing","otter-blocks")},(0,c.createElement)(x.Z,{label:(0,l.__)("Padding","otter-blocks"),min:0,max:100,onChange:(e,t)=>{"top"!==e&&"bottom"!==e||o({paddingTopBottom:t}),"right"!==e&&"left"!==e||o({paddingLeftRight:t})},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:t.paddingTopBottom},{label:(0,l.__)("Right","otter-blocks"),type:"right",value:t.paddingLeftRight},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:t.paddingTopBottom},{label:(0,l.__)("Left","otter-blocks"),type:"left",value:t.paddingLeftRight}]}),(0,c.createElement)(C.RangeControl,{label:(0,l.__)("Spacing","otter-blocks"),value:t.spacing,onChange:e=>o({spacing:e}),min:0,max:50}),(0,c.createElement)(C.SelectControl,{label:(0,l.__)("Collapse On","otter-blocks"),value:t.collapse,options:[{label:(0,l.__)("None","otter-blocks"),value:"collapse-none"},{label:(0,l.__)("Desktop","otter-blocks"),value:"collapse-desktop"},{label:(0,l.__)("Tablet","otter-blocks"),value:"collapse-tablet"},{label:(0,l.__)("Mobile","otter-blocks"),value:"collapse-mobile"}],onChange:e=>o({collapse:e})})),(0,c.createElement)(C.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(C.RangeControl,{label:(0,l.__)("Font Size","otter-blocks"),value:t.fontSize,onChange:e=>o({fontSize:e}),min:0,max:50}),(0,c.createElement)(E.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:void 0,fontVariant:void 0,fontStyle:void 0})},valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,c.createElement)(C.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,max:200})))},M=o(5225);const{attributes:S}=n;const{name:B}=n;(0,a.registerBlockType)(B,{...n,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:p,edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const{isViewportAvailable:a,isPreviewDesktop:n,isPreviewTablet:r,isPreviewMobile:i}=(0,v.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),d=(0,k.useViewportMatch)("large",">="),u=(0,k.useViewportMatch)("large","<="),b=(0,k.useViewportMatch)("small",">="),p=(0,k.useViewportMatch)("small","<=");(0,c.useEffect)((()=>{const e=(0,M.WX)(l,S);return()=>e(t.id)}),[]);let y=d&&!u&&b&&!p,_=!d&&!u&&b&&!p,f=!(d||u||b||p);a&&!f&&(y=n,_=r,f=i);const C=(0,m.useBlockProps)({id:t.id,className:s()("wp-block-buttons",{[`align-${t.align}`]:t.align,collapse:"collapse-desktop"===t.collapse&&(y||_||f)||"collapse-tablet"===t.collapse&&(_||f)||"collapse-mobile"===t.collapse&&f}),css:h.iv`
|
18 |
.block-editor-block-list__layout {
|
19 |
gap: ${t.spacing}px;
|
20 |
}
|
21 |
+
`});return(0,h.tZ)(c.Fragment,null,t.fontFamily&&(0,h.tZ)(g.Z,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&[t.fontVariant+("italic"===t.fontStyle?":i":"")]}]}),(0,h.tZ)(w,{attributes:t,setAttributes:o}),(0,h.tZ)(T,{attributes:t,setAttributes:o}),(0,h.tZ)("div",C,(0,h.tZ)(m.InnerBlocks,{allowedBlocks:["themeisle-blocks/button"],__experimentalMoverDirection:"horizontal",orientation:"horizontal",template:[["themeisle-blocks/button"]],renderAppender:m.InnerBlocks.DefaultAppender})))},save:e=>{let{attributes:t}=e;const o="collapse-none"!==t.collapse?t.collapse:"",l=m.useBlockProps.save({id:t.id,className:s()(o,"wp-block-buttons",{[`align-${t.align}`]:t.align})});return(0,c.createElement)("div",l,(0,c.createElement)(m.InnerBlocks.Content,null))}})},3312:function(e,t,o){o(9521),o(9078)},469:function(e,t,o){var l=o(269),a=o(5736),n=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/circle-counter","title":"Circle Counter","category":"themeisle-blocks","description":"Show your progress with a beautiful Circle Counter block. Powered by Otter.","keywords":["progress","circle","counter"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string","default":"Skill"},"percentage":{"type":"number","default":50},"duration":{"type":"number","default":2},"titleStyle":{"type":"string","default":"default"},"height":{"type":"number","default":100},"fontSizeTitle":{"type":"number"},"fontSizePercent":{"type":"number"},"strokeWidth":{"type":"number","default":10},"backgroundColor":{"type":"string"},"progressColor":{"type":"string"},"titleColor":{"type":"string"}},"editorStyle":"otter-circle-counter-editor","style":"otter-circle-counter-style","script":"otter-circle-counter"}'),c=o(9307),i=o(5711),s=o(2819),d=o(5609),m=o(2175),u=e=>{let{attributes:t,setAttributes:o,onHeightChange:l}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Percentage","otter-blocks"),help:(0,a.__)("The value of the counter.","otter-blocks"),value:t.percentage,onChange:e=>{void 0!==e&&(e=(0,s.clamp)(e,0,100),o({percentage:e}))},min:0,max:100}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Duration","otter-blocks"),help:(0,a.__)("The duration of the animation.","otter-blocks"),value:t.duration,onChange:e=>{void 0!==e&&(e=(0,s.clamp)(e,0,3),o({duration:e}))},min:0,max:3,step:.1}),(0,c.createElement)(d.SelectControl,{label:(0,a.__)("Title Style","otter-blocks"),value:t.titleStyle,options:[{label:(0,a.__)("Default","otter-blocks"),value:"default"},{label:(0,a.__)("Hide","otter-blocks"),value:"hide"},{label:(0,a.__)("Bottom","otter-blocks"),value:"bottom"}],onChange:e=>{o({titleStyle:e})}})),(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Style","otter-blocks")},(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Height","otter-blocks"),help:(0,a.__)("The height of the circle counter.","otter-blocks"),value:t.height,onChange:l,min:0,max:240}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Circle Thickness","otter-blocks"),help:(0,a.__)("Change the thickness (stroke width) of the circle.","otter-blocks"),value:t.strokeWidth,onChange:e=>{o({strokeWidth:e})},initialPosition:10,min:0,max:20}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Font Size Title","otter-blocks"),help:(0,a.__)("Change the font size of the title.","otter-blocks"),value:t.fontSizeTitle,onChange:e=>{o({fontSizeTitle:e})},initialPosition:37,min:0,max:Math.round(.6*t.height)}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Font Size Percent","otter-blocks"),help:(0,a.__)("Change the font size of the inner text.","otter-blocks"),value:t.fontSizePercent,onChange:e=>{o({fontSizePercent:e})},initialPosition:27,min:0,max:Math.round(.27*t.height)}),"hide"!==t.titleStyle&&(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Title Color","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>{o({titleColor:e})}}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Progress Color","otter-blocks"),colorValue:t.progressColor,onColorChange:e=>{o({progressColor:e})}}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Background Color","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>{o({backgroundColor:e})}})))},b=e=>{let{attributes:t,progressRef:o,valueRef:l}=e;const a=t.height,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,"%")))},p=o(5225);const{attributes:g}=r;const{clamp:h,omit:k}=lodash;var v={to:[{type:"block",blocks:["themeisle-blocks/progress-bar"],transform:e=>{const t=k(e,["titleStyle","height","fontSize","strokeWidth","progressColor"]);return(0,n.createBlock)("themeisle-blocks/progress-bar",{...t,barBackgroundColor:e.progressColor,height:h(e.height/4,0,100),titleStyle:"default"})}}]};const{name:y}=r;(0,n.registerBlockType)(y,{...r,title:(0,a.__)("Circle Counter","otter-blocks"),description:(0,a.__)("Show your progress with a beautiful Circle Counter block. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["progress","circle","counter"],transforms:v,edit:e=>{let{clientId:t,attributes:o,setAttributes:l,isSelected:n,toggleSelection:r}=e;(0,c.useEffect)((()=>{const e=(0,p.WX)(t,g);return()=>e(o.id)}),[o.id]);const h=(0,c.useRef)(null),k=(0,c.useRef)(null),[v,y]=(0,c.useState)({}),_=o.height/2-o.strokeWidth/2,f=2*Math.PI*_;(0,c.useEffect)((()=>{if(!h.current||!h.current||0===o.duration)return;const e=o.percentage/(1e3*o.duration),t=(0,s.range)(0,1e3*o.duration+20,20).map((t=>t*e)).reverse();v&&clearInterval(v),h.current.style.strokeDashoffset=f,k.current.innerText="0%";const l=setInterval((()=>{if(!h.current)return void clearInterval(l);const e=Math.round(t.pop());h.current.style.strokeDashoffset=(100-e)/100*f,k.current.innerHTML=e+"%",0===t.length&&clearInterval(l)}),20);return y(l),()=>{clearInterval(l)}}),[o.duration]),(0,c.useEffect)((()=>{if(h.current&&h.current)return h.current.style.strokeDashoffset=(100-o.percentage)/100*f,k.current.innerHTML=o.percentage+"%",clearInterval(v),()=>{clearInterval(v)}}),[o.percentage,o.height]);const w=e=>{const t=(o.fontSizePercent||27)/o.height,a=(o.fontSizeTitle||37)/o.height;l({height:e,fontSizePercent:Math.round(e*t),fontSizeTitle:Math.round(e*a)})},C=e=>{l({title:e})},E=i.iv`
|
22 |
--fontSizeTitle: ${x=o.fontSizeTitle,x?`${x}px`:x};
|
23 |
+
`;var x;const T=(0,m.useBlockProps)({id:o.id,css:E});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(u,{attributes:o,setAttributes:l,onHeightChange:w}),(0,i.tZ)("div",T,"default"===o.titleStyle&&(0,i.tZ)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.tZ)(m.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:n?(0,a.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:C,multiline:!1,style:{color:o.titleColor}})),(0,i.tZ)(d.ResizableBox,{size:{height:o.height,width:o.height},minHeight:0,maxHeight:240,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:n,onResizeStop:(e,t,l,a)=>{w(parseInt(o.height+a.height,10)),r(!0)},onResizeStart:()=>{r(!1)}},(0,i.tZ)(b,{attributes:o,progressRef:h,valueRef:k})),"bottom"===o.titleStyle&&(0,i.tZ)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.tZ)(m.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:n?(0,a.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:C,multiline:!1,style:{color:o.titleColor}}))))},save:e=>{let{attributes:t}=e;const o=m.useBlockProps.save({id:t.id,"data-percentage":t.percentage,"data-duration":t.duration,"data-height":t.height,"data-stroke-width":t.strokeWidth,"data-font-size-percent":t.fontSizePercent,"data-background-stroke":t.backgroundColor,"data-progress-stroke":t.progressColor});return(0,c.createElement)("div",o,"default"===t.titleStyle&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter__bar"}),"bottom"===t.titleStyle&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)))}})},4948:function(e,t,o){var l=o(2506),a=o(5736),n=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/countdown","title":"Countdown","category":"themeisle-blocks","description":"Set a countdown for a date. Powered by Otter.","keywords":["countdown","time","counter"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"date":{"type":"string"},"exclude":{"type":"array"},"backgroundColor":{"type":"string"},"valueColor":{"type":"string"},"labelColor":{"type":"string"},"labelDistance":{"type":"number"},"gap":{"type":"number"},"gapTablet":{"type":"number"},"gapMobile":{"type":"number"},"width":{"type":"number"},"widthTablet":{"type":"number"},"widthMobile":{"type":"number"},"height":{"type":"number"},"heightTablet":{"type":"number"},"heightMobile":{"type":"number"},"borderRadius":{"type":"number","default":0},"borderRadiusType":{"type":"string","default":"linked"},"borderRadiusTopRight":{"type":"number","default":0},"borderRadiusTopLeft":{"type":"number","default":0},"borderRadiusBottomRight":{"type":"number","default":0},"borderRadiusBottomLeft":{"type":"number","default":0},"borderWidth":{"type":"number"},"borderWidthTablet":{"type":"number"},"borderWidthMobile":{"type":"number"},"borderColor":{"type":"string"},"valueFontSize":{"type":"number"},"valueFontSizeTablet":{"type":"number"},"valueFontSizeMobile":{"type":"number"},"labelFontSize":{"type":"number"},"labelFontSizeTablet":{"type":"number"},"labelFontSizeMobile":{"type":"number"},"hasSeparators":{"type":"boolean"}},"supports":{"align":["wide","full"]},"editorStyle":"otter-countdown-editor","style":"otter-countdown-style","script":"otter-countdown"}'),c=o(9307),i=o(5711),s=o(2175),d=o(4333),m=o(9818),u=window.moment,b=o.n(u),p=o(5225),g=o(5609),h=o(9771),k=o(6993),v=o(2372),y=e=>{var t,o,l,n;let{attributes:r,setAttributes:i}=e;const d=(0,m.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),u=(e,t)=>{var o;i(e?{exclude:null==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"},y=(0,h.__experimentalGetSettings)();return(0,c.createElement)(s.InspectorControls,null,(0,c.createElement)(g.PanelBody,{title:(0,a.__)("Time","otter-blocks")},(0,c.createElement)(g.Dropdown,{position:"bottom left",headerTitle:(0,a.__)("Select the date for the deadline","otter-blocks"),renderToggle:e=>{let{onToggle:t,isOpen:o}=e;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(g.Button,{onClick:t,isSecondary:!0,"aria-expanded":o},r.date?(0,h.format)(y.formats.datetime,r.date):(0,a.__)("Select Date","otter-blocks")))},renderContent:()=>(0,c.createElement)(g.DateTimePicker,{currentDate:r.date,onChange:e=>i({date:e})})})),(0,c.createElement)(g.PanelBody,{title:(0,a.__)("Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Days","otter-blocks"),checked:!(null!=r&&null!==(t=r.exclude)&&void 0!==t&&t.includes("day")),onChange:e=>u(e,"day")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Hours","otter-blocks"),checked:!(null!=r&&null!==(o=r.exclude)&&void 0!==o&&o.includes("hour")),onChange:e=>u(e,"hour")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Minutes","otter-blocks"),checked:!(null!=r&&null!==(l=r.exclude)&&void 0!==l&&l.includes("minute")),onChange:e=>u(e,"minute")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Seconds","otter-blocks"),checked:!(null!=r&&null!==(n=r.exclude)&&void 0!==n&&n.includes("second")),onChange:e=>u(e,"second")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Separators","otter-blocks"),checked:null==r?void 0:r.hasSeparators,onChange:e=>i({hasSeparators:e})}),(0,c.createElement)(k.Z,{label:(0,a.__)("Box Spacing","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?r.gapMobile:"Tablet"===d?r.gapTablet:r.gap,onChange:e=>{"Desktop"===d&&i({gap:Number(e)}),"Tablet"===d&&i({gapTablet:Number(e)}),"Mobile"===d&&i({gapMobile:Number(e)})},min:0,max:100})),(0,c.createElement)(k.Z,{label:(0,a.__)("Box Height","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?r.heightMobile:"Tablet"===d?r.heightTablet:r.height,onChange:e=>{"Desktop"===d&&i({height:Number(e)}),"Tablet"===d&&i({heightTablet:Number(e)}),"Mobile"===d&&i({heightMobile:Number(e)})},min:40,max:300})),(0,c.createElement)(k.Z,{label:(0,a.__)("Box Width","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?r.widthMobile:"Tablet"===d?r.widthTablet:r.width,onChange:e=>{"Desktop"===d&&i({width:Number(e)}),"Tablet"===d&&i({widthTablet:Number(e)}),"Mobile"===d&&i({widthMobile:Number(e)})},min:40,max:300})),(0,c.createElement)(k.Z,{label:(0,a.__)("Border Width","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?r.borderWidthMobile:"Tablet"===d?r.borderWidthTablet:r.borderWidth,onChange:e=>{"Desktop"===d&&i({borderWidth:Number(e)}),"Tablet"===d&&i({borderWidthTablet:Number(e)}),"Mobile"===d&&i({borderWidthMobile:Number(e)})},min:0,max:50})),(0,c.createElement)(k.Z,{label:(0,a.__)("Time Value Font Size","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?r.valueFontSizeMobile:"Tablet"===d?r.valueFontSizeTablet:r.valueFontSize,onChange:e=>{"Desktop"===d&&i({valueFontSize:Number(e)}),"Tablet"===d&&i({valueFontSizeTablet:Number(e)}),"Mobile"===d&&i({valueFontSizeMobile:Number(e)})},min:0,max:64})),(0,c.createElement)(k.Z,{label:(0,a.__)("Label Font Size","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?r.labelFontSizeMobile:"Tablet"===d?r.labelFontSizeTablet:r.labelFontSize,onChange:e=>{"Desktop"===d&&i({labelFontSize:Number(e)}),"Tablet"===d&&i({labelFontSizeTablet:Number(e)}),"Mobile"===d&&i({labelFontSizeMobile:Number(e)})},min:0,max:64})),(0,c.createElement)(v.Z,{label:(0,a.__)("Border Radius (%)","otter-blocks"),type:r.borderRadiusType,min:0,max:100,changeType:e=>{i({borderRadiusType:e})},onChange:(e,t)=>{"linked"===r.borderRadiusType?i({borderRadius:t}):i({[p[e]]:t})},options:[{label:(0,a.__)("Top Left","otter-blocks"),type:"top-left",value:b("top-left")},{label:(0,a.__)("Top Right","otter-blocks"),type:"top-right",value:b("top-right")},{label:(0,a.__)("Bottom Right","otter-blocks"),type:"bottom-right",value:b("bottom-right")},{label:(0,a.__)("Bottom Left","otter-blocks"),type:"bottom-left",value:b("bottom-left")}]})),(0,c.createElement)(s.PanelColorSettings,{title:(0,a.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:r.backgroundColor,onChange:e=>{i({backgroundColor:e})},label:(0,a.__)("Background","otter-blocks")},{value:r.labelColor,onChange:e=>{i({labelColor:e})},label:(0,a.__)("Label","otter-blocks")},{value:r.valueColor,onChange:e=>{i({valueColor:e})},label:(0,a.__)("Value","otter-blocks")},{value:r.borderColor,onChange:e=>{i({borderColor:e})},label:(0,a.__)("Border","otter-blocks")}]},(0,c.createElement)(s.ContrastChecker,{textColor:r.backgroundColor,backgroundColor:r.valueColor})))},_=o(4715),f=o(7462),w=o(4184),C=o.n(w);const E=e=>{let{name:t,value:o,tag:l,styles:a}=e;const n="sep"!==t?{...a.allComponents,...a.mainComponents}:a.allComponents;return(0,c.createElement)("div",{style:n,name:l,className:C()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,c.createElement)("div",{style:a.value,className:"otter-countdown__value"},o),(0,c.createElement)("div",{style:a.label,className:"otter-countdown__label"},t))};var x=e=>{let{time:t,hasSeparators:o,styles:l}=e;const a=o?(0,_.S3)(t,{name:"sep",value:":",tag:"separator"}):t,n=null==a?void 0:a.map(((e,t)=>(0,c.createElement)(E,(0,f.Z)({},e,{key:t,styles:l}))));return void 0!==t?(0,c.createElement)("div",{className:"otter-countdown__container"},(0,c.createElement)("div",{style:l.display,className:"otter-countdown__display"},n)):(0,c.createElement)(c.Fragment,null)};const{attributes:T}=r,M=e=>e?`${e}px`:e;const S=e=>{let{name:t,value:o,tag:l}=e;return(0,c.createElement)("div",{name:l,className:C()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,c.createElement)("div",{className:"otter-countdown__value"},o),(0,c.createElement)("div",{className:"otter-countdown__label"},t))},B=e=>{let{time:t,hasSeparators:o}=e;const l=o?(0,_.S3)(t,{name:"sep",value:":",tag:"separator"}):t,a=null==l?void 0:l.map(((e,t)=>(0,c.createElement)(S,(0,f.Z)({},e,{key:t}))));return void 0!==t?(0,c.createElement)("div",{className:"otter-countdown__container"},(0,c.createElement)("div",{className:"otter-countdown__display"},a)):(0,c.createElement)(c.Fragment,null)};const{name:z}=r;(0,n.registerBlockType)(z,{...r,title:(0,a.__)("Countdown","otter-blocks"),description:(0,a.__)("Set a countdown for a date. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["countdown","time","counter"],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const[a,n]=(0,c.useState)(0);(0,c.useEffect)((()=>{const e=(0,p.WX)(l,T);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{const e=setInterval((()=>{if(t.date){let e=t.date+(0,_.EP)();e=1e3*b()(e).unix(),n(new Date(e)-new Date)}}),500);return()=>{clearInterval(e)}}),[t.date]);const{isViewportAvailable:r,isPreviewDesktop:u,isPreviewTablet:g,isPreviewMobile:h}=(0,m.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),k=(0,d.useViewportMatch)("large",">="),v=(0,d.useViewportMatch)("large","<="),f=(0,d.useViewportMatch)("small",">="),w=(0,d.useViewportMatch)("small","<=");let C,E=k&&!v&&f&&!w,S=!k&&!v&&f&&!w,B=!(k||v||f||w);r&&!B&&(E=u,S=g,B=h),S?C={value:{fontSize:M(null==t?void 0:t.valueFontSizeTablet)},label:{fontSize:M(null==t?void 0:t.labelFontSizeTablet)},display:{gap:M(t.gapTablet)},allComponents:{height:M(null==t?void 0:t.heightTablet)},mainComponents:{width:M(null==t?void 0:t.widthTablet),borderWidth:M(t.borderWidthTablet)}}:B?C={value:{fontSize:M(t.valueFontSizeMobile)},label:{fontSize:M(t.labelFontSizeMobile)},display:{gap:M(t.gapMobile)},allComponents:{height:M(null==t?void 0:t.heightMobile)},mainComponents:{width:M(null==t?void 0:t.widthMobile),borderWidth:M(t.borderWidthMobile)}}:E&&(C={value:{fontSize:M(t.valueFontSize)},label:{fontSize:M(t.labelFontSize)},display:{gap:M(t.gap)},allComponents:{height:M(t.height)},mainComponents:{width:M(t.width),borderWidth:M(t.borderWidth)}});const z="linked"===t.borderRadiusType?t.borderRadius+"%":`${t.borderRadiusTopLeft}% ${t.borderRadiusTopRight}% ${t.borderRadiusBottomRight}% ${t.borderRadiusBottomLeft}%`,P=i.iv`
|
24 |
--backgroundColor: ${t.backgroundColor};
|
25 |
--borderColor: ${t.borderColor};
|
26 |
--borderRadius: ${z};
|
32 |
.otter-countdown__display-area .otter-countdown__label {
|
33 |
color: ${t.labelColor};
|
34 |
}
|
35 |
+
`,V=(0,s.useBlockProps)({id:t.id,css:P});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(y,{attributes:t,setAttributes:o}),(0,i.tZ)("div",V,(0,i.tZ)(x,{time:(0,_.Mg)(a,{exclude:null==t?void 0:t.exclude}),styles:C,hasSeparators:t.hasSeparators})))},save:e=>{let{attributes:t}=e;const o=s.useBlockProps.save({id:t.id,"data-date":t.date});return(0,c.createElement)("div",o,(0,c.createElement)(B,{time:(0,_.Mg)(0,{exclude:null==t?void 0:t.exclude}),hasSeparators:null==t?void 0:t.hasSeparators}))}})},9799:function(e,t,o){var l=o(269),a=o(5736),n=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/flip","title":"Flip Card","category":"themeisle-blocks","description":"Make a card with a flip effect. Powered by Otter.","keywords":["flip card","container","animation"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"isInverted":{"type":"boolean"},"title":{"type":"string"},"description":{"type":"string"},"animType":{"type":"string","default":"flipY"},"width":{"type":"number"},"height":{"type":"number"},"padding":{"type":"number"},"borderWidth":{"type":"number"},"borderColor":{"type":"string"},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"frontVerticalAlign":{"type":"string"},"frontHorizontalAlign":{"type":"string"},"backVerticalAlign":{"type":"string"},"frontMedia":{"type":"object"},"frontMediaWidth":{"type":"number"},"frontMediaHeight":{"type":"number"},"frontBackgroundImage":{"type":"object"},"frontBackgroundType":{"type":"string","default":"color"},"frontBackgroundColor":{"type":"string"},"frontBackgroundGradient":{"type":"string"},"frontBackgroundPosition":{"type":"object"},"frontBackgroundRepeat":{"type":"string"},"frontBackgroundAttachment":{"type":"string"},"frontBackgroundSize":{"type":"string"},"backBackgroundImage":{"type":"object"},"backBackgroundType":{"type":"string","default":"color"},"backBackgroundColor":{"type":"string"},"backBackgroundGradient":{"type":"string"},"backBackgroundPosition":{"type":"object"},"backBackgroundRepeat":{"type":"string"},"backBackgroundSize":{"type":"string"},"backBackgroundAttachment":{"type":"string"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"titleFontSize":{"type":"number"},"descriptionFontSize":{"type":"number"},"titleColor":{"type":"string"},"descriptionColor":{"type":"string"}},"editorStyle":"otter-flip-editor","style":"otter-flip-style"}'),c=o(9307),i=o(4184),s=o.n(i),d=o(5711),m=o(2175),u=o(5609),b=e=>{let{attributes:t,setAttributes:o,isFliped:l}=e;const n=m.__experimentalBlockAlignmentMatrixControl||m.__experimentalBlockAlignmentMatrixToolbar;return(0,c.createElement)(m.BlockControls,null,(!t.isInverted&&!1===l||t.isInverted&&l)&&(0,c.createElement)(u.Toolbar,null,(0,c.createElement)(n,{label:(0,a.__)("Change front side content position","otter-blocks"),value:t.frontAlign,onChange:e=>o({frontAlign:e})})))},p=o(2819),g=o(2136),h=o(5452),k=e=>{var t;let{attributes:o,setAttributes:l}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Width","otter-blocks"),help:(0,a.__)("Width of the container. Make sure that the width match the size of your content.","otter-blocks"),value:o.width,onChange:e=>l({width:e}),min:0,max:1200,allowReset:!0}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Height","otter-blocks"),help:(0,a.__)("Height of the container. Make sure that the height match the size of your content.","otter-blocks"),value:o.height,onChange:e=>l({height:e}),min:0,max:1200,allowReset:!0}),(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Invert the sides","otter-blocks"),checked:o.isInverted,onChange:e=>l({isInverted:e}),help:(0,a.__)("Use this to display the back side first.","otter-blocks")})),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Front","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.BaseControl,{label:(0,a.__)("Media Image","otter-blocks"),help:(0,a.__)("Set an image as showcase.","otter-blocks")},null!==(t=o.frontMedia)&&void 0!==t&&t.url?(0,c.createElement)(u.BaseControl,null,(0,c.createElement)("img",{src:o.frontMedia.url,alt:o.frontMedia.alt,style:{border:"2px solid var( --wp-admin-theme-color)",maxHeight:"250px"}}),(0,c.createElement)(u.Button,{isSecondary:!0,onClick:()=>l({frontMedia:void 0})},(0,a.__)("Remove image","otter-blocks"))):(0,c.createElement)(m.MediaPlaceholder,{labels:{title:(0,a.__)("Media Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:o.frontMedia,onSelect:e=>l({frontMedia:(0,p.pick)(e,["id","alt","url"])})})),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Media Width","otter-blocks"),value:o.frontMediaWidth,onChange:e=>l({frontMediaWidth:e}),min:0,max:1e3,allowReset:!0}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Media Height","otter-blocks"),value:o.frontMediaHeight,onChange:e=>l({frontMediaHeight:e}),min:0,max:1e3,allowReset:!0}),(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Vertical Align","otter-blocks"),value:o.frontVerticalAlign,options:[{label:(0,a.__)("Default","otter-blocks"),value:""},{label:(0,a.__)("Top","otter-blocks"),value:"flex-start"},{label:(0,a.__)("Center","otter-blocks"),value:"center"},{label:(0,a.__)("Bottom","otter-blocks"),value:"flex-end"}],onChange:e=>l({frontVerticalAlign:e})}),(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Horizontal Align","otter-blocks"),value:o.frontHorizontalAlign,options:[{label:(0,a.__)("Default","otter-blocks"),value:""},{label:(0,a.__)("Left","otter-blocks"),value:"flex-start"},{label:(0,a.__)("Center","otter-blocks"),value:"center"},{label:(0,a.__)("Right","otter-blocks"),value:"flex-end"}],onChange:e=>l({frontHorizontalAlign:e})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Title Font Size","otter-blocks"),value:o.titleFontSize,onChange:e=>l({titleFontSize:e}),min:0,max:50,allowReset:!0}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Description Font Size","otter-blocks"),value:o.descriptionFontSize,onChange:e=>l({descriptionFontSize:e}),min:0,max:50,allowReset:!0}),(0,c.createElement)(h.Z,{backgroundType:o.frontBackgroundType,backgroundColor:o.frontBackgroundColor,image:o.frontBackgroundImage,gradient:o.frontBackgroundGradient,focalPoint:o.frontBackgroundPosition,backgroundAttachment:o.frontBackgroundAttachment,backgroundRepeat:o.frontBackgroundRepeat,backgroundSize:o.frontBackgroundSize,changeBackgroundType:e=>l({frontBackgroundType:e}),changeImage:e=>{l({frontBackgroundImage:(0,p.pick)(e,["id","url"])})},removeImage:()=>l({frontBackgroundImage:void 0}),changeColor:e=>l({frontBackgroundColor:e}),changeGradient:e=>l({frontBackgroundGradient:e}),changeBackgroundAttachment:e=>l({frontBackgroundAttachment:e}),changeBackgroundRepeat:e=>l({frontBackgroundRepeat:e}),changeFocalPoint:e=>l({frontBackgroundPosition:e}),changeBackgroundSize:e=>l({frontBackgroundSize:e})})),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Back","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.Z,{backgroundType:o.backBackgroundType,backgroundColor:o.backBackgroundColor,image:o.backBackgroundImage,gradient:o.backBackgroundGradient,focalPoint:o.backBackgroundPosition,backgroundAttachment:o.backBackgroundAttachment,backgroundRepeat:o.backBackgroundRepeat,backgroundSize:o.backBackgroundSize,changeBackgroundType:e=>l({backBackgroundType:e}),changeImage:e=>{l({backBackgroundImage:(0,p.pick)(e,["id","url"])})},removeImage:()=>l({backBackgroundImage:void 0}),changeColor:e=>l({backBackgroundColor:e}),changeGradient:e=>l({backBackgroundGradient:e}),changeBackgroundAttachment:e=>l({backBackgroundAttachment:e}),changeBackgroundRepeat:e=>l({backBackgroundRepeat:e}),changeFocalPoint:e=>l({backBackgroundPosition:e}),changeBackgroundSize:e=>l({backBackgroundSize:e})}),(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Vertical Align","otter-blocks"),value:o.backVerticalAlign,options:[{label:(0,a.__)("Default","otter-blocks"),value:""},{label:(0,a.__)("Top","otter-blocks"),value:"flex-start"},{label:(0,a.__)("Center","otter-blocks"),value:"center"},{label:(0,a.__)("Bottom","otter-blocks"),value:"flex-end"}],onChange:e=>l({backVerticalAlign:e})})),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Style","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Flip Type","otter-blocks"),value:o.animType,options:[{label:(0,a.__)("Bottom to Top","otter-blocks"),value:"flipX"},{label:(0,a.__)("Left to right","otter-blocks"),value:"flipY"}],onChange:e=>l({animType:e})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Padding","otter-blocks"),value:o.padding,onChange:e=>l({padding:e}),min:0,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Border Width","otter-blocks"),value:o.borderWidth,onChange:e=>l({borderWidth:e}),min:0,max:50}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Border Radius","otter-blocks"),value:o.borderRadius,onChange:e=>l({borderRadius:e}),min:0,max:50})),(0,c.createElement)(m.PanelColorSettings,{title:(0,a.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:o.borderColor,onChange:e=>l({borderColor:e}),label:(0,a.__)("Border Color","otter-blocks")},{value:o.titleColor,onChange:e=>l({titleColor:e}),label:(0,a.__)("Title Color","otter-blocks")},{value:o.descriptionColor,onChange:e=>l({descriptionColor:e}),label:(0,a.__)("Description Color","otter-blocks")}]}),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Box Shadow","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Shadow Properties","otter-blocks"),checked:o.boxShadow,onChange:e=>l({boxShadow:e})}),o.boxShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Color","otter-blocks"),colorValue:o.boxShadowColor,onColorChange:e=>{var t,a;l({boxShadowColor:100>o.boxShadowColorOpacity&&null!==(t=o.boxShadowColor)&&void 0!==t&&t.includes("var(")?getComputedStyle(document.documentElement,null).getPropertyValue(null==e||null===(a=e.replace("var(",""))||void 0===a?void 0:a.replace(")","")):e})}}),(0,c.createElement)(g.Z,{label:(0,a.__)("Shadow Properties","otter-blocks")},(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Opacity","otter-blocks"),value:o.boxShadowColorOpacity,onChange:e=>{var t;const a={boxShadowColorOpacity:e};100>e&&null!==(t=o.boxShadowColor)&&void 0!==t&&t.includes("var(")&&(a.boxShadowColor=getComputedStyle(document.documentElement,null).getPropertyValue(o.boxShadowColor.replace("var(","").replace(")",""))),l(a)},min:0,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Blur","otter-blocks"),value:o.boxShadowBlur,onChange:e=>l({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Horizontal","otter-blocks"),value:o.boxShadowHorizontal,onChange:e=>l({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Vertical","otter-blocks"),value:o.boxShadowVertical,onChange:e=>l({boxShadowVertical:e}),min:-100,max:100})))))},v=o(5225);const{attributes:y}=r;const{name:_}=r;(0,n.registerBlockType)(_,{...r,title:(0,a.__)("Flip Card","otter-blocks"),description:(0,a.__)("Make a card with a flip effect. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["flip card","container","animation"],edit:e=>{var t,o,l,n,r,i,p,g,h,_;let{attributes:f,setAttributes:w,clientId:C,isSelected:E}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(C,y);return()=>e(f.id)}),[f.id]);const[x,T]=(0,c.useState)(!1),M=d.iv`
|
36 |
+
${void 0!==f.width&&`--width: ${f.width}px;`}
|
37 |
+
${void 0!==f.height&&`--height: ${f.height}px;`}
|
38 |
+
${void 0!==f.borderWidth&&`--borderWidth: ${f.borderWidth}px;`}
|
39 |
+
--borderColor: ${f.borderColor};
|
40 |
+
${void 0!==f.borderRadius&&`--borderRadius: ${f.borderRadius}px;`}
|
41 |
+
${"color"===f.frontBackgroundType&&f.frontBackgroundColor&&`--frontBackground: ${f.frontBackgroundColor};`}
|
42 |
+
${"gradient"===f.frontBackgroundType&&f.frontBackgroundGradient&&`--frontBackground: ${f.frontBackgroundGradient};`}
|
43 |
+
${"image"===f.frontBackgroundType&&(null===(t=f.frontBackgroundImage)||void 0===t?void 0:t.url)&&`--frontBackground: url( ${null===(o=f.frontBackgroundImage)||void 0===o?void 0:o.url} ) ${f.frontBackgroundRepeat||"repeat"} ${f.frontBackgroundAttachment||"scroll"} ${Math.round(100*(null===(l=f.frontBackgroundPosition)||void 0===l?void 0:l.x))||50}% ${Math.round(100*(null===(n=f.frontBackgroundPosition)||void 0===n?void 0:n.y))||50}%/${f.frontBackgroundSize||"auto"};`}
|
44 |
+
${"color"===f.backBackgroundType&&f.backBackgroundColor&&`--backBackground: ${f.backBackgroundColor};`}
|
45 |
+
${"gradient"===f.backBackgroundType&&f.backBackgroundGradient&&`--backBackground: ${f.backBackgroundGradient};`}
|
46 |
+
${"image"===f.backBackgroundType&&(null===(r=f.backBackgroundImage)||void 0===r?void 0:r.url)&&`--backBackground: url( ${null===(i=f.backBackgroundImage)||void 0===i?void 0:i.url} ) ${f.backBackgroundRepeat||"repeat"} ${f.backBackgroundAttachment||"scroll"} ${Math.round(100*(null===(p=f.backBackgroundPosition)||void 0===p?void 0:p.x))||50}% ${Math.round(100*(null===(g=f.backBackgroundPosition)||void 0===g?void 0:g.y))||50}%/${f.backBackgroundSize||"auto"};`}
|
47 |
+
${void 0!==f.padding&&`--padding: ${f.padding}px;`}
|
48 |
+
${f.boxShadow&&`--boxShadow: ${f.boxShadowHorizontal}px ${f.boxShadowVertical}px ${f.boxShadowBlur}px ${f.boxShadowColor?f.boxShadowColor.includes("#")&&0<=f.boxShadowColorOpacity?hexToRgba(f.boxShadowColor,f.boxShadowColorOpacity||1e-5):f.boxShadowColor:hexToRgba("#000000",void 0!==f.boxShadowColorOpacity?f.boxShadowColorOpacity||1e-5:1)};`}
|
49 |
+
--frontVerticalAlign: ${f.frontVerticalAlign};
|
50 |
+
--frontHorizontalAlign: ${f.frontHorizontalAlign};
|
51 |
+
--backVerticalAlign: ${f.backVerticalAlign};
|
52 |
+
${void 0!==f.frontMediaWidth&&`--frontMediaWidth: ${f.frontMediaWidth}px;`}
|
53 |
+
${void 0!==f.frontMediaHeight&&`--frontMediaHeight: ${f.frontMediaHeight}px;`}
|
54 |
|
55 |
.o-flip-inner {
|
56 |
transform: ${x?"var( --flip-anim )":"unset"};
|
57 |
}
|
58 |
|
59 |
.o-flip-front .o-flip-content h3 {
|
60 |
+
color: ${f.titleColor};
|
61 |
+
${f.titleFontSize&&`font-size: ${f.titleFontSize}px;`}
|
62 |
}
|
63 |
|
64 |
.o-flip-front .o-flip-content p {
|
65 |
+
color: ${f.descriptionColor};
|
66 |
+
${f.descriptionFontSize&&`font-size: ${f.descriptionFontSize}px;`}
|
67 |
}
|
68 |
+
`,S=(0,m.useBlockProps)({id:f.id,className:s()({flipX:"flipX"===f.animType,flipY:"flipY"===f.animType}),css:M});return(0,d.tZ)(c.Fragment,null,(0,d.tZ)(b,{attributes:f,setAttributes:w,isFliped:x}),(0,d.tZ)(k,{attributes:f,setAttributes:w}),(0,d.tZ)("div",S,(0,d.tZ)("div",{className:s()("o-flip-inner",{invert:f.isInverted})},(0,d.tZ)("div",{className:"o-flip-front"},(0,d.tZ)("div",{className:"o-flip-content"},(null===(h=f.frontMedia)||void 0===h?void 0:h.url)&&(0,d.tZ)("img",{className:"o-img",srcSet:null===(_=f.frontMedia)||void 0===_?void 0:_.url}),(0,d.tZ)(m.RichText,{tagName:"h3",value:f.title,onChange:e=>w({title:e}),placeholder:(0,a.__)("Insert a title","otter-blocks")}),(0,d.tZ)(m.RichText,{tagName:"p",value:f.description,onChange:e=>w({description:e}),placeholder:(0,a.__)("Insert a description","otter-blocks")}))),(0,d.tZ)("div",{className:"o-flip-back"},(0,d.tZ)(m.InnerBlocks,{renderAppender:E?m.InnerBlocks.ButtonBlockAppender:""}))),E&&(0,d.tZ)("div",{className:"o-switcher"},(0,d.tZ)(u.Button,{isPrimary:!0,onClick:()=>T(!x)},x?(0,a.__)("Flip to front","otter-blocks"):(0,a.__)("Flip to back","otter-blocks")))))},save:e=>{var t,o,l,a;let{attributes:n}=e;const r=m.useBlockProps.save({id:n.id,className:s()("anim",{flipX:"flipX"===n.animType,flipY:"flipY"===n.animType})});return(0,c.createElement)("div",r,(0,c.createElement)("div",{className:s()("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)(m.RichText.Content,{tagName:"h3",value:n.title}),(0,c.createElement)(m.RichText.Content,{tagName:"p",value:n.description}))),(0,c.createElement)("div",{className:"o-flip-back"},(0,c.createElement)(m.InnerBlocks.Content,null))))}})},191:function(e,t,o){var l=o(5736),a=o(4981),n=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"}'),r=o(340),c=o(9307);const i={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}},s=[{attributes:i,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:{...i,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:{...i,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 d=s,m=o(5711),u=o(2175),b=o(8504),p=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,c.createElement)(u.BlockControls,null,(0,c.createElement)(u.AlignmentToolbar,{value:t.align,onChange:e=>o({align:e})}),(0,c.createElement)(b.Z,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))},g=o(5609),h=o(3159);const k=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var v=e=>{let{attributes:t,setAttributes:o,getValue:a}=e;const[n,r]=(0,c.useState)(!1);return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(g.PanelBody,{title:(0,l.__)("Icon","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(g.Placeholder,null,(0,c.createElement)(g.Spinner,null))},(0,c.createElement)(k,{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)(g.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)(g.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)(g.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)(g.RangeControl,{label:(0,l.__)("Margin","otter-blocks"),value:a("margin"),initialPosition:5,onChange:e=>o({margin:e}),min:0,max:100}))),(0,c.createElement)(g.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(g.ButtonGroup,null,(0,c.createElement)(g.Button,{isSmall:!0,isSecondary:n,isPrimary:!n,onClick:()=>r(!1)},(0,l.__)("Normal","otter-blocks")),(0,c.createElement)(g.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)(u.__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)(u.__experimentalColorGradientControl,{label:(0,l.__)("Hover Icon","otter-blocks"),colorValue:a("textColorHover"),onColorChange:e=>o({textColorHover:e})})),(0,c.createElement)(u.ContrastChecker,{textColor:a("textColorHover"),backgroundColor:a("backgroundColorHover")}),(0,c.createElement)(u.__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)(u.__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)(u.__experimentalColorGradientControl,{label:(0,l.__)("Icon","otter-blocks"),colorValue:a("textColor"),onColorChange:e=>o({textColor:e})})),(0,c.createElement)(u.ContrastChecker,{textColor:a("textColor"),backgroundColor:a("backgroundColor")}),(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}))),(0,c.createElement)(g.PanelBody,{title:(0,l.__)("Border Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(g.RangeControl,{label:(0,l.__)("Border Size","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),min:0,max:120}),(0,c.createElement)(g.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),min:0,max:100})))},y=o(48),_=o(5225);const{attributes:f}=n;const{name:w}=n;(0,a.registerBlockType)(w,{...n,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:d,edit:e=>{let{name:t,attributes:o,setAttributes:l,isSelected:a,clientId:n}=e;(0,c.useEffect)((()=>{const e=(0,_.WX)(n,f);return()=>e(o.id)}),[o.id]);const r=y.ZP.icons[o.icon],i=e=>(0,_.Ih)({name:t,field:e,defaultAttributes:f,attributes:o}),s=m.iv`
|
69 |
--align: ${o.align};
|
70 |
--borderColor: ${o.borderColor};
|
71 |
${void 0!==o.borderSize&&`--borderSize: ${o.borderSize}px;`}
|
100 |
.wp-block-themeisle-blocks-font-awesome-icons-container:hover svg {
|
101 |
fill: ${i("textColorHover")};
|
102 |
}
|
103 |
+
`,d=(0,u.useBlockProps)({id:o.id,css:s});return(0,m.tZ)(c.Fragment,null,(0,m.tZ)(p,{attributes:o,setAttributes:l,isSelected:a}),(0,m.tZ)(v,{attributes:o,setAttributes:l,getValue:i}),(0,m.tZ)("p",d,(0,m.tZ)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},"themeisle-icons"===o.library?(0,m.tZ)(r,null):(0,m.tZ)("i",{className:`${o.prefix} fa-${o.icon}`}))))},save:e=>{let{attributes:t}=e;const o=y.ZP.icons[t.icon],l=u.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}`})))}})},6051: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/form","title":"Form","category":"themeisle-blocks","description":"Display a form for your clients. Powered by Otter.","keywords":["business","form","email"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"subject":{"type":"string"},"emailTo":{"type":"string"},"optionName":{"type":"string"},"hasCaptcha":{"type":"boolean"},"provider":{"type":"string","default":""},"apiKey":{"type":"string"},"listId":{"type":"string"},"action":{"type":"string","default":"subscribe"}},"supports":{"align":["wide","full"]},"editorStyle":"otter-form-editor","style":"otter-form-style","script":"otter-form"}'),r=o(340),c=o(9307),i=o(2819),s=o(8101),d=o.n(s),m=o(2175),u=o(9818),b=o(5225),p=o(5609),g=e=>{let{attributes:t,setAttributes:o}=e;const{createNotice:a}=(0,u.dispatch)("core/notices"),[n,r]=(0,c.useState)(""),[i,s]=(0,c.useState)(""),[b,g]=(0,c.useState)(!0),[h,k]=(0,c.useState)([{label:(0,l.__)("None","otter-blocks"),value:""}]),[v,y]=(0,c.useState)("loading");return(0,c.useEffect)((()=>{let e=!0;return t.optionName&&d().loadPromise.then((()=>{(new(d().models.Settings)).fetch().done((o=>{var l,a;null===(l=o.themeisle_blocks_form_emails)||void 0===l||null===(a=l.filter((e=>{let{form:o}=e;return o===t.optionName})))||void 0===a||a.forEach((t=>{e&&(s(null==t?void 0:t.email),g(!0),r(null==t?void 0:t.email))}))}))})),()=>{e=!1}}),[t.optionName]),(0,c.useEffect)((()=>{let e=!0;var o,n,r,c;return t.apiKey&&t.provider&&(o=t.provider,n=t.apiKey,r=o=>{o.splice(0,0,{label:(0,l.__)("None","otter-blocks"),value:""}),e&&(k(o),y("ready"));const n=1===o.map((e=>{let{value:t}=e;return t})).filter((e=>e===t.listId)).length;t.listId&&!n&&a("error",(0,l.__)("The current contact list is invalid! Please choose a new contact list.","otter-blocks"),{isDismissible:!0,type:"snackbar"})},c=t=>{a("error",null==t?void 0:t.error,{isDismissible:!0,type:"snackbar",id:"themeisle-form-server-error"}),e&&y("error")},window.wp.apiFetch({path:"otter/v1/integration",method:"POST",data:{provider:o,apiKey:n}}).then((e=>{if(null!=e&&e.success){var t;const o=(null==e||null===(t=e.list_id)||void 0===t?void 0:t.map((e=>{var t;return{label:e.name,value:null===(t=e.id)||void 0===t?void 0:t.toString()}})))||[];r(o)}else c(e)})).catch((e=>{console.log(e)}))),()=>{e=!1}}),[t.provider,t.apiKey]),(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Email Subject","otter-blocks"),placeholder:(0,l.__)("A new submission","otter-blocks"),value:t.subject,onChange:e=>o({subject:e}),help:(0,l.__)("Customize the email title send by this form.","otter-blocks")}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Email To","otter-blocks"),placeholder:(0,l.__)("Default is to admin site","otter-blocks"),value:i,onChange:e=>s(e),help:(0,l.__)("Send form data to another email. (Admin is default).","otter-blocks")}),(0,c.createElement)(p.Button,{isPrimary:!0,onClick:()=>{(new(d().models.Settings)).fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let n=!0,c=!1;if(null==o||o.forEach(((e,l)=>{let{form:a}=e;a===t.optionName&&(o[l].email!==i&&(o[l].email=i,c=!0),n=!1)})),n&&o.push({form:t.optionName,email:i}),n||c){const e=new(d().models.Settings)({themeisle_blocks_form_emails:o});g(!1),e.save().then((e=>{var o;null===(o=e.themeisle_blocks_form_emails)||void 0===o||o.filter((e=>{let{form:o}=e;return o===t.optionName})).forEach((e=>{g(!0),r(null==e?void 0:e.email),a("info",(0,l.__)("Email has been saved!","otter-blocks"),{isDismissible:!0,type:"snackbar"})}))}))}}))},disabled:i===n},(0,c.createElement)(c.Fragment,null,!b&&(0,c.createElement)(p.Spinner,null),(0,l.__)("Save","otter-blocks"))),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Add captcha checkbox","otter-blocks"),checked:t.hasCaptcha,onChange:e=>o({hasCaptcha:e}),help:(0,l.__)("Add Google reCaptcha V2 for protection againts bots.","otter-blocks")}),t.hasCaptcha&&(0,l.__)("You can change the API Keys in Settings > Otter","otter-blocks")),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Integration","otter-blocks"),initialOpen:!1},(0,l.__)("Add your client email to a Digital Marketing provider.","otter-blocks"),(0,c.createElement)("br",null)," ",(0,c.createElement)("br",null),(0,c.createElement)("b",null," ",(0,l.__)("You need to have at least one email field in your form. For multiple email fields, only the first will be used.","otter-blocks")," "),(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Provider","otter-blocks"),value:t.provider,options:[{label:(0,l.__)("None","otter-blocks"),value:""},{label:(0,l.__)("Mailchimp","otter-blocks"),value:"mailchimp"},{label:(0,l.__)("Sendinblue","otter-blocks"),value:"sendinblue"}],onChange:e=>{o({provider:e,apiKey:"",listId:""})}}),t.provider&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.TextControl,{label:(0,l.__)("API Key","otter-blocks"),help:(0,l.__)("You can find the key in the provider's website","otter-blocks"),value:t.apiKey,onChange:e=>{y("loading"),k([]),o({apiKey:e,listId:""})}}),t.apiKey&&2>h.length&&"loading"===v&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.Spinner,null),(0,l.__)("Fetching data from provider.","otter-blocks")),t.apiKey&&"ready"===v&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Contact List","otter-blocks"),value:t.listId,options:h,onChange:e=>o({listId:e})}),2<=(null==h?void 0:h.length)&&t.listId&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Action","otter-blocks"),value:t.action,options:[{label:(0,l.__)("None","otter-blocks"),value:""},{label:(0,l.__)("Subscribe","otter-blocks"),value:"subscribe"},{label:(0,l.__)("Submit & Subscribe","otter-blocks"),value:"submit-subscribe"}],onChange:e=>o({action:e})}),"submit-subscribe"===t.action&&(0,l.__)("This action will add the client to the contact list and send a separata email with the form data to administrator or to the email mentioned in 'Form to' field. A checkbox for data-sharing consent with third-party will be added on form.","otter-blocks"))))))},h=e=>{let{className:t,isAPILoaded:o,isAPISaved:a,isSaving:n,saveAPIKey:r,siteKey:i,secretKey:s,setSiteKey:d,setSecretKey:m}=e;return o?a?void 0:(0,c.createElement)(p.Placeholder,{icon:"admin-site",label:(0,l.__)("Google reCaptcha","otter-blocks"),instructions:(0,l.__)("A Google reCaptcha V2 API keys are required, please enter one below.","otter-blocks"),className:t},(0,c.createElement)("div",{className:"components-placeholder__actions"},(0,c.createElement)(p.TextControl,{type:"text",label:(0,l.__)("Site Key","otter-blocks"),value:i,className:"components-placeholder__input",onChange:d}),(0,c.createElement)(p.TextControl,{type:"text",label:(0,l.__)("Secret Key","otter-blocks"),value:s,className:"components-placeholder__input",onChange:m}),(0,c.createElement)(p.Button,{isPrimary:!0,type:"submit",onClick:r,isBusy:n,disabled:""===i||""===s},(0,l.__)("Save","otter-blocks"))),(0,c.createElement)("div",{className:"components-placeholder__learn-more"},(0,l.__)("You need to activate reCaptcha API.","otter-blocks")," ",(0,c.createElement)(p.ExternalLink,{href:"http://www.google.com/recaptcha/admin"},(0,l.__)("Need an API key? Get one here.","otter-blocks")))):(0,c.createElement)(c.Fragment,null,(0,c.createElement)("br",null),(0,c.createElement)(p.Placeholder,null,(0,c.createElement)("div",null,(0,c.createElement)(p.Spinner,null),(0,l.__)("Checking the API Keys for reCaptcha","otter-blocks"))))};const{attributes:k}=n;var v=o(4184),y=o.n(v);const{name:_}=n;(0,a.registerBlockType)(_,{...n,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,p]=(0,c.useState)(""),[v,y]=(0,c.useState)(""),[_,f]=(0,c.useState)(!1),[w,C]=(0,c.useState)(!1),E=(0,c.useRef)(null),[x,T]=(0,c.useState)(!1),{insertBlock:M,removeBlock:S}=(0,u.useDispatch)("core/block-editor"),{replaceInnerBlocks:B}=(0,u.useDispatch)("core/block-editor"),{createNotice:z}=(0,u.dispatch)("core/notices"),P=(0,u.useSelect)((e=>0<e("core/block-editor").getBlocks(n).length),[n]),{blockType:V,defaultVariation:R,variations:L}=(0,u.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]),H=(0,u.useSelect)((e=>{const{getBlock:t}=e("core/block-editor");return t(n).innerBlocks}),[]);(0,c.useEffect)((()=>{const e=(0,b.WX)(n,k);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{var e;t.id&&(0,u.select)("core/edit-widgets")?o({optionName:`widget_${t.id.slice(-8)}`}):t.id&&Boolean(window.themeisleGutenberg.isBlockEditor)&&null!==(e=(0,u.select)("core/editor"))&&void 0!==e&&e.getCurrentPostId()&&o({optionName:`${(0,u.select)("core/editor").getCurrentPostId()}_${t.id.slice(-8)}`})}),[t.id]),(0,c.useEffect)((()=>{if(H){const e=H.filter((e=>{let{name:t}=e;return"themeisle-blocks/form-nonce"===t}));if(2<=(null==e?void 0:e.length))e.slice(1).forEach((e=>{S(e.clientId,!1)}));else if(0===(null==e?void 0:e.length)&&n){const e=(0,a.createBlock)("themeisle-blocks/form-nonce");e&&(null==M||M(e,(null==H?void 0:H.length)||0,n,!1))}}}),[H]),(0,c.useEffect)((()=>{let e=!0;return d().loadPromise.then((()=>{E.current=new(d().models.Settings),e&&T(!0)})),()=>{e=!1}}),[]),(0,c.useEffect)((()=>{var e;void 0!==t.hasCaptcha&&(null==E||null===(e=E.current)||void 0===e||e.fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let a=!0,n=!1;null==o||o.forEach(((e,l)=>{let{form:r}=e;r===t.optionName&&(o[l].hasCaptcha!==t.hasCaptcha&&(n=!0),o[l].hasCaptcha=t.hasCaptcha,a=!1)})),a&&o.push({form:t.optionName,hasCaptcha:t.hasCaptcha}),(a||n)&&(new(d().models.Settings)({themeisle_blocks_form_emails:o}).save(),z("info",(0,l.__)("Form preference has been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"}))})))}),[t.hasCaptcha,E.current]),(0,c.useEffect)((()=>{let e=!0;return x&&t.hasCaptcha&&!w&&(async()=>{var t;_||null==E||null===(t=E.current)||void 0===t||t.fetch().then((t=>{f(!0),""!==t.themeisle_google_captcha_api_site_key&&""!==t.themeisle_google_captcha_api_secret_key&&e&&C(!0)}))})(),()=>{e=!1}}),[x,_,w,t.hasCaptcha]),(0,c.useEffect)((()=>{var e;null==E||null===(e=E.current)||void 0===e||e.fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let a=!0,n=!1,r=!1;null==o||o.forEach(((e,l)=>{let{form:c}=e;var i;c===t.optionName&&(null!==(i=o[l])&&void 0!==i&&i.integration||(o[l].integration={}),n=o[l].integration.provider!==t.provider||o[l].integration.apiKey!==t.apiKey||o[l].integration.listId!==t.listId||o[l].integration.action!==t.action,a=!1,r=t.apiKey&&(o[l].integration.listId!==t.listId||o[l].integration.action!==t.action),o[l].integration.provider=t.provider,o[l].integration.apiKey=t.apiKey,o[l].integration.listId=t.listId,o[l].integration.action=t.action)})),a&&o.push({form:t.optionName,integration:{provider:t.provider,apiKey:t.apiKey,listId:t.listId,action:t.action}}),(a||n)&&new(d().models.Settings)({themeisle_blocks_form_emails:o}).save().then((()=>{r&&z("info",(0,l.__)("Integration details have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})}))}))}),[t.optionName,t.provider,t.apiKey,t.listId,t.action,E.current]);const N=t.provider&&t.apiKey&&t.listId,I=(0,m.useBlockProps)({id:t.id});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(g,{attributes:t,setAttributes:o}),(0,c.createElement)("div",I,P?(0,c.createElement)("div",{className:"otter-form__container"},(0,c.createElement)(m.InnerBlocks,null),t.hasCaptcha&&(!_||!w)&&(0,c.createElement)(h,{className:"otter-form-captcha",isAPILoaded:_,isAPISaved:w,saveAPIKey:()=>{new window.wp.api.models.Settings({themeisle_google_captcha_api_site_key:s,themeisle_google_captcha_api_secret_key:v}).save().then((e=>{let t=!1;""!==e.themeisle_google_captcha_api_site_key&&""!==e.themeisle_google_captcha_api_secret_key&&(t=!0),C(t),y(""),p(""),z("info",(0,l.__)("API Keys have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})}))},siteKey:s,secretKey:v,setSiteKey:p,setSecretKey:y}),(0,c.createElement)("div",{className:"wp-block-button"},(0,c.createElement)("button",{className:"wp-block-button__link"},N&&"subscribe"===t.action?(0,l.__)("Subscribe","otter-blocks"):(0,l.__)("Submit","otter-blocks")))):(0,c.createElement)(m.__experimentalBlockVariationPicker,{icon:(0,i.get)(V,["icon","src"]),label:(0,i.get)(V,["title"]),variations:L,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R;e&&B(n,(0,a.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0})))},save:e=>{let{attributes:t}=e;const o=t.provider&&t.apiKey&&t.listId,a=m.useBlockProps.save({id:t.id,className:y()({"is-subscription":o&&"subscribe"===t.action,"can-submit-and-subscribe":o&&"submit-subscribe"===t.action,"has-captcha":t.hasCaptcha}),"data-email-subject":t.subject,"data-option-name":t.optionName});return(0,c.createElement)("div",a,(0,c.createElement)("div",{className:"otter-form__container"},(0,c.createElement)(m.InnerBlocks.Content,null),(0,c.createElement)("div",{className:"wp-block-button"},(0,c.createElement)("button",{className:"wp-block-button__link"},"subscribe"===t.action?(0,l.__)("Subscribe","otter-blocks"):(0,l.__)("Submit","otter-blocks")))))},variations:[{name:"themeisle-blocks/form-contact",description:(0,l.__)("Contact form for clients","otter-blocks"),icon: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"}]]}]})},6257: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/form-input","title":"Text Field","category":"themeisle-blocks","description":"Display a contact form for your clients.","keywords":["input","text","email"],"parent":["themeisle-blocks/form"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"type":{"type":"string","default":"text"},"label":{"type":"string"},"placeholder":{"type":"string"},"isRequired":{"type":"boolean"},"mappedName":{"type":"string"}},"supports":{"align":["wide","full"]}}'),r=o(340),c=o(9307),i=o(2175),s=o(5225),d=o(5609),m=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(d.SelectControl,{label:(0,l.__)("Field Type","otter-blocks"),value:t.type,options:[{label:(0,l.__)("Text","otter-blocks"),value:"text"},{label:(0,l.__)("Email","otter-blocks"),value:"email"},{label:(0,l.__)("Date","otter-blocks"),value:"date"},{label:(0,l.__)("Number","otter-blocks"),value:"number"}],onChange:e=>o({type:e})}),(0,c.createElement)(d.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,c.createElement)(d.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholer,onChange:e=>o({placeholder:e})}),(0,c.createElement)(d.ToggleControl,{label:(0,l.__)("Is this field required?","otter-blocks"),help:(0,l.__)("If true, the input field must be filled out before submitting the form.","otter-blocks"),checked:t.isRequired,onChange:e=>o({isRequired:e})})))};const{attributes:u}=n;const{name:b}=n;(0,a.registerBlockType)(b,{...n,title:(0,l.__)("Text Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:r.inputIcon,keywords:["input","text","email"],variations:[{name:"themeisle-blocks/form-input-email",description:(0,l.__)("Insert an email field","otter-blocks"),icon:"email",title:(0,l.__)("Email Field","otter-blocks"),attributes:{type:"email"}},{name:"themeisle-blocks/form-input-number",description:(0,l.__)("Insert a number field","otter-blocks"),icon:"calculator",title:(0,l.__)("Number Field","otter-blocks"),attributes:{type:"number"}},{name:"themeisle-blocks/form-input-date",description:(0,l.__)("Insert a date field","otter-blocks"),icon:"calendar-alt",title:(0,l.__)("Date Field","otter-blocks"),attributes:{type:"date"}}],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,s.WX)(a,u);return()=>e(t.id)}),[t.id]);const n=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m,{attributes:t,setAttributes:o}),(0,c.createElement)("div",n,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-input-label"},(0,c.createElement)(i.RichText,{placeholder:(0,l.__)("Type here…","otter-blocks"),className:"otter-form-input-label__label",value:t.label,onChange:e=>o({label:e}),tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("input",{type:t.type,placeholder:t.placeholder,name:t.id,id:t.id,required:t.isRequired,disabled:!0,className:"otter-form-input components-text-control__input"})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save();return(0,c.createElement)("div",o,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-input-label"},(0,c.createElement)(i.RichText.Content,{value:t.label,className:"otter-form-input-label__label",tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("input",{type:t.type,name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,className:"otter-form-input"}))}})},7440:function(e,t,o){var l=o(5736),a=o(4981),n=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}}'),r=o(340),c=o(9818),i=o(9307);const{name:s}=n;(0,a.registerBlockType)(s,{...n,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,c.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:l}=e("core/block-editor");return{parent:t(l(o))}}),[]);return(0,i.useEffect)((()=>{l&&t({formId:l.attributes.id})}),[l]),null},save:()=>null})},1911:function(e,t,o){var l=o(5736),a=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-textarea","title":"Textarea Field","category":"themeisle-blocks","description":"Display a contact form for your clients.","keywords":["textarea","message","input"],"parent":["themeisle-blocks/form"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"label":{"type":"string"},"placeholder":{"type":"string"},"isRequired":{"type":"boolean"},"mappedName":{"type":"string"}},"supports":{"align":["wide","full"]}}'),r=o(340),c=o(9307),i=o(2175),s=o(5225),d=o(5609),m=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(d.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,c.createElement)(d.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholer,onChange:e=>o({placeholder:e})}),(0,c.createElement)(d.ToggleControl,{label:(0,l.__)("Is this field required?","otter-blocks"),help:(0,l.__)("If true, the input field must be filled out before submitting the form.","otter-blocks"),checked:t.isRequired,onChange:e=>o({isRequired:e})})))};const{attributes:u}=n;const{name:b}=n;(0,a.registerBlockType)(b,{...n,title:(0,l.__)("Textarea Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:r.inputIcon,keywords:["textarea","message","input"],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,s.WX)(a,u);return()=>e(t.id)}),[t.id]);const n=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m,{attributes:t,setAttributes:o}),(0,c.createElement)("div",n,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-textarea-label"},(0,c.createElement)(i.RichText,{placeholder:(0,l.__)("Type here…","otter-blocks"),className:"otter-form-textarea-label__label",value:t.label,onChange:e=>o({label:e}),tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("textarea",{placeholder:t.placeholder,name:t.id,id:t.id,required:t.isRequired,disabled:!0,rows:10,className:"otter-form-textarea-input components-textarea-control__input"})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save();return(0,c.createElement)("div",o,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-textarea-label"},(0,c.createElement)(i.RichText.Content,{value:t.label,className:"otter-form-textarea-label__label",tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("textarea",{name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,rows:10,className:"otter-form-textarea-input"}))}})},2608:function(e,t,o){var l=o(5736),a=o(4981),n=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"}'),r=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(4586),m=o(2175),u=o(5609),b=e=>{let{api:t,error:o,isAPILoaded:a,isAPISaved:n,isSaving:r,changeAPI:i,saveAPIKey:d}=e;return a?n?void 0:(0,c.createElement)(u.Placeholder,{icon:"admin-site",label:(0,l.__)("Google Maps","otter-blocks"),instructions:(0,l.__)("A Google Maps API key is required, please enter one below.","otter-blocks")},(0,c.createElement)("div",{className:"components-placeholder__actions"},(0,c.createElement)(u.TextControl,{type:"text",placeholder:(0,l.__)("Google Maps API Key","otter-blocks"),value:t,className:s()("components-placeholder__input",{"is-invalid":o}),onChange:i}),(0,c.createElement)(u.Button,{isPrimary:!0,type:"submit",onClick:d,isBusy: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)(u.ExternalLink,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},(0,l.__)("Need an API key? Get one here.","otter-blocks"))))):(0,c.createElement)(u.Placeholder,null,(0,c.createElement)(u.Spinner,null),(0,l.__)("Loading…","otter-blocks"))},p=o(5241),g=o(4333);const h=e=>{let{value:t,onChange:o}=e;const a=(0,g.useInstanceId)(h);(0,c.useEffect)((()=>{window.wp.oldEditor.initialize(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)(u.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 k=h,v=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)(u.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)(u.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:s()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===o})},(0,c.createElement)(u.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,c.createElement)("input",{type:"text",id:`themeisle-location-search-${t.id}`,placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:d,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const o=new window.google.maps.places.SearchBox(d.current);o.addListener("places_changed",(()=>{const e=o.getPlaces();e&&0<e.length&&e.forEach((e=>{const o=e.formatted_address||e.name,l=e.geometry.location.lat(),a=e.geometry.location.lng();i(t.id,"location",o),i(t.id,"latitude",l),i(t.id,"longitude",a)}))}))},onChange:e=>i(t.id,"location",e.target.value),disabled:!a}),!a&&(0,c.createElement)("p",null,(0,l.__)("To enable locations earch, please ensure Places API is activated in the Google Developers Console.","otter-blocks")+" ",(0,c.createElement)(u.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:t.latitude,onChange:e=>i(t.id,"latitude",e)}),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:t.longitude,onChange:e=>i(t.id,"longitude",e)}),(0,c.createElement)(u.SelectControl,{label:(0,l.__)("Map Icon","otter-blocks"),value:t.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:(0,l.__)("Red","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:(0,l.__)("Blue","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:(0,l.__)("Yellow","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:(0,l.__)("Green","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:(0,l.__)("Orange","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:e=>i(t.id,"icon",e)}),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:t.title,onChange:e=>i(t.id,"title",e)}),(0,c.createElement)(k,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>i(t.id,"description",e)})))},y=e=>{let{initialOpen:t,markers:o,isPlaceAPIAvailable:a,addMarker:n,removeMarker:r,changeMarkerProp:i}=e;(0,c.useEffect)((()=>{!1!==t&&d(t)}),[t]);const[s,d]=(0,c.useState)(null),m=e=>{s===e&&(e=null),d(e)};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},o.map((e=>(0,c.createElement)(v,{key:e.id,marker:e,isOpen:s,isPlaceAPIAvailable:a,openMarker:m,removeMarker:r,changeMarkerProp:i})))),(0,c.createElement)(u.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:n},(0,l.__)("Add Marker","otter-blocks")))},_=e=>{let{attributes:t,setAttributes:o,map:a,changeStyle:n,isPlaceAPIAvailable:r,isMarkerOpen:i,setMarkerOpen:s,removeMarker:d,changeMarkerProp:b,addMarkerManual:g,api:h,isSaving:k,changeAPI:v,saveAPIKey:_}=e;const f=(0,c.useRef)(null);return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,c.createElement)(p.V,{value:t.style,options:[{label:(0,l.__)("Standard","otter-blocks"),value:"standard",image:window.themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:(0,l.__)("Silver","otter-blocks"),value:"silver",image:window.themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:(0,l.__)("Retro","otter-blocks"),value:"retro",image:window.themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:(0,l.__)("Dark","otter-blocks"),value:"dark",image:window.themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:(0,l.__)("Night","otter-blocks"),value:"night",image:window.themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:(0,l.__)("Aubergine","otter-blocks"),value:"aubergine",image:window.themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:n})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,c.createElement)(u.BaseControl,{label:(0,l.__)("Location"),id:"wp-block-themeisle-blocks-google-map-search"},(0,c.createElement)("input",{type:"text",id:"wp-block-themeisle-blocks-google-map-search",placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:f,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const t=new window.google.maps.places.SearchBox(f.current);t.addListener("places_changed",(()=>{const e=t.getPlaces();e&&0<e.length&&e.forEach((e=>{const t=e.geometry.location.lat(),l=e.geometry.location.lng(),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)(u.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter latitude…","otter-blocks"),value:t.latitude,onChange:e=>{o({latitude:e.toString()});const l=Number(e),n=t.longitude,r=new window.google.maps.LatLng(l,n);a.setCenter(r)}}),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter longitude","otter-blocks"),value:t.longitude,onChange:e=>{o({longitude:e.toString()});const l=t.latitude,n=Number(e),r=new window.google.maps.LatLng(l,n);a.setCenter(r)}})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.SelectControl,{label:(0,l.__)("Map Type","otter-blocks"),value:t.type,options:[{label:(0,l.__)("Road Map","otter-blocks"),value:"roadmap"},{label:(0,l.__)("Satellite View","otter-blocks"),value:"satellite"},{label:(0,l.__)("Hybrid","otter-blocks"),value:"hybrid"},{label:(0,l.__)("Terrain","otter-blocks"),value:"terrain"}],onChange:e=>{o({type:e}),a.setMapTypeId(window.google.maps.MapTypeId[e.toUpperCase()])}}),(0,c.createElement)(u.RangeControl,{label:(0,l.__)("Map Zoom Level","otter-blocks"),value:t.zoom,onChange:e=>{o({zoom:e}),a.setZoom(e)},min:0,max:20}),(0,c.createElement)(u.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.BaseControl,null,(0,l.__)("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.","otter-blocks")),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Map Type Control","otter-blocks"),checked:t.mapTypeControl,onChange:()=>{o({mapTypeControl:!t.mapTypeControl})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Full Screen Control","otter-blocks"),checked:t.fullscreenControl,onChange:()=>{o({fullscreenControl:!t.fullscreenControl})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Streen View Control","otter-blocks"),checked:t.streetViewControl,onChange:()=>{o({streetViewControl:!t.streetViewControl})}})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1,opened:!1!==i||void 0,onToggle:()=>{!1!==i&&s(!0)}},(0,c.createElement)(y,{markers:t.markers,removeMarker:d,changeMarkerProp:b,addMarker:g,isPlaceAPIAvailable:r,initialOpen:i})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Global Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.TextControl,{label:(0,l.__)("Google Maps API Key","otter-blocks"),type:"text",placeholder:(0,l.__)("Google Maps API Key","otter-blocks"),value:h,className:"components-placeholder__input",onChange:v,help:(0,l.__)("Changing the API key effects all Google Map Embed blocks. You will have to refresh the page after changing your API keys.","otter-blocks")}),(0,c.createElement)(u.Button,{isSecondary:!0,type:"submit",onClick:_,isBusy:k},(0,l.__)("Save API Key","otter-blocks"))))},f=e=>{let{marker:t,isAdvanced:o,isPlaceAPIAvailable:a,addMarker:n,close:r}=e;(0,c.useEffect)((()=>{d(t.id),b(t.location),g(t.title),v(t.icon),_(t.description),w(t.latitude),E(t.longitude)}),[t]);const i=(0,c.useRef)(null),[s,d]=(0,c.useState)(t.id),[m,b]=(0,c.useState)(t.location),[p,g]=(0,c.useState)(t.title),[h,v]=(0,c.useState)(t.icon),[y,_]=(0,c.useState)(t.description),[f,w]=(0,c.useState)(t.latitude),[C,E]=(0,c.useState)(t.longitude);return(0,c.createElement)(u.Modal,{title:(0,l.__)("Add Marker","otter-blocks"),onRequestClose:r,shouldCloseOnClickOutside:!1},o&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,c.createElement)("input",{type:"text",id:`themeisle-location-search-${s}`,placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:m,className:"wp-block-themeisle-blocks-google-map-search",ref:i,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const t=new window.google.maps.places.SearchBox(i.current);t.addListener("places_changed",(()=>{const e=t.getPlaces();e&&0<e.length&&e.forEach((e=>{const t=e.formatted_address||e.name,o=e.geometry.location.lat(),l=e.geometry.location.lng();b(t),w(o),E(l)}))}))},onChange:e=>b(e.target.value),disabled:!a})),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:f,onChange:w}),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:C,onChange:E})),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:p,onChange:g}),(0,c.createElement)(k,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:y,onChange:_}),(0,c.createElement)(u.SelectControl,{label:(0,l.__)("Map Icon","otter-blocks"),value:h||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:(0,l.__)("Red","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:(0,l.__)("Blue","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:(0,l.__)("Yellow","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:(0,l.__)("Green","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:(0,l.__)("Orange","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:v}),(0,c.createElement)(u.ButtonGroup,null,(0,c.createElement)(u.Button,{isPrimary:!0,onClick:()=>n(m,p,h,y,f,C)},(0,l.__)("Add","otter-blocks")),(0,c.createElement)(u.Button,{isSecondary:!0,onClick:r},(0,l.__)("Cancel","otter-blocks"))))},w=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:s()({"is-selecting-marker":i}),style:{height:t.height+"px"}}),n&&(0,c.createElement)(u.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"})))},C={standard:[],silver:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],retro:[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],dark:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],night:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],aubergine:[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]},E=o(5225);const{attributes:x}=n;var T=o(2819),M={to:[{type:"block",blocks:["themeisle-blocks/leaflet-map"],transform:e=>{const t=(0,T.omit)(e,["style","mapTypeControl","fullscreenControl","streetViewControl"]);return(0,a.createBlock)("themeisle-blocks/leaflet-map",{...t})}}]};const{name:S}=n;(0,a.registerBlockType)(S,{...n,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:M,edit:e=>{let{attributes:t,setAttributes:o,clientId:a,isSelected:n,toggleSelection:r}=e;(0,c.useEffect)((()=>{const e=(0,E.WX)(a,x);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{let e=!0;return(async()=>{await window.wp.api.loadPromise.then((()=>{g.current=new window.wp.api.models.Settings})),!1===Boolean(window.themeisleGutenberg.mapsAPI)?S||g.current.fetch().then((t=>{e&&(M(t.themeisle_google_map_block_api_key),B(!0),""!==t.themeisle_google_map_block_api_key&&(P(!0),X(t.themeisle_google_map_block_api_key)))})):!S&&e&&(M(window.themeisleGutenberg.mapsAPI),B(!0),P(!0),X(window.themeisleGutenberg.mapsAPI))})(),window.isMapLoaded=window.isMapLoaded||!1,window[`removeMarker_${a.substr(0,8)}`]=oe,window.gm_authFailure=function(){P(!1),Q(!0)},h.current=document.createElement("script"),h.current.type="text/javascript",h.current.async=!0,h.current.defer=!0,h.current.id="themeisle-google-map-api-loading",()=>{e=!1}}),[]),(0,c.useEffect)((()=>{!1!==z&&void 0!==window.google&&k.current.setOptions({mapTypeControl:!!n||t.mapTypeControl,zoomControl:!!n||t.zoomControl,fullscreenControl:!!n||t.fullscreenControl,streetViewControl:!!n||t.streetViewControl})}),[n]),(0,c.useEffect)((()=>{y.current=[...t.markers]}),[t.markers]);const i=(0,c.useRef)([]),g=(0,c.useRef)(null),h=(0,c.useRef)(null),k=(0,c.useRef)(null),v=(0,c.useRef)(null),y=(0,c.useRef)([...t.markers]),[T,M]=(0,c.useState)(""),[S,B]=(0,c.useState)(!1),[z,P]=(0,c.useState)(!1),[V,R]=(0,c.useState)(!1),[L,H]=(0,c.useState)(!1),[N,I]=(0,c.useState)(!0),[O,A]=(0,c.useState)(!1),[G,$]=(0,c.useState)(!1),[Z,F]=(0,c.useState)(!1),[D,W]=(0,c.useState)(!1),[U,j]=(0,c.useState)(!1),[q,J]=(0,c.useState)({}),[K,Q]=(0,c.useState)(!1),X=e=>{window.isMapLoaded||(window.isMapLoaded=!0,h.current.onload=()=>{document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",A(!0)},h.current.src=`https://maps.googleapis.com/maps/api/js?key=${e}&libraries=places&cache=${Math.random()}`,document.head.appendChild(h.current)),document.getElementById("themeisle-google-map-api")&&A(!0)},Y=(e,t,o,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",(()=>{v.current=c,c.open(k.current,e)})),window.google.maps.event.addListener(c,"domready",(()=>{$(t)})),window.google.maps.event.addListener(c,"closeclick",(()=>{$(!1)}))},ee=e=>{e.forEach((e=>{const t=e.latitude,o=e.longitude,l=new window.google.maps.LatLng(t,o),a=new window.google.maps.Marker({position:l,map:k.current,title:e.title,draggable:!0,icon:e.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png"});window.google.maps.event.addListener(a,"dragend",(t=>{const o=t.latLng.lat(),l=t.latLng.lng();te(e.id,"latitude",o),te(e.id,"longitude",l)})),i.current.push(a),window.google.maps.event.addListener(a,"click",(()=>{v.current&&v.current.close()})),Y(a,e.id,e.title,e.description)}))},te=(e,t,l)=>{const a=[...y.current];a.find((t=>t.id===e))[t]=l.toString(),le(),ee(a),o({markers:a})},oe=e=>{let t=[...y.current];t=t.filter((t=>t.id!==e)),o({markers:t}),le(),$(!1),0<t.length&&ee(t)},le=()=>{for(let e=0;e<i.current.length;e++)i.current[e].setMap(null);i.current=[]},ae=()=>{!1===Boolean(window.themeisleGutenberg.mapsAPI)&&(H(!0),new window.wp.api.models.Settings({themeisle_google_map_block_api_key:T}).save().then((e=>{let t=!1;""!==e.themeisle_google_map_block_api_key&&(t=!0),H(!1),P(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,X(e.themeisle_google_map_block_api_key))})))},ne=e=>{o({style:e}),k.current.setOptions({styles:C[e]})},re=(0,m.useBlockProps)({className:s()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":n})});return S&&z?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.d,{label:(0,l.__)("Block Styles","otter-blocks"),value:t.style,options:[{label:(0,l.__)("Standard","otter-blocks"),value:"standard",image:window.themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:(0,l.__)("Silver","otter-blocks"),value:"silver",image:window.themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:(0,l.__)("Retro","otter-blocks"),value:"retro",image:window.themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:(0,l.__)("Dark","otter-blocks"),value:"dark",image:window.themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:(0,l.__)("Night","otter-blocks"),value:"night",image:window.themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:(0,l.__)("Aubergine","otter-blocks"),value:"aubergine",image:window.themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:ne}),(0,c.createElement)(_,{attributes:t,setAttributes:o,map:k.current,changeStyle:ne,isPlaceAPIAvailable:N,isMarkerOpen:G,setMarkerOpen:$,removeMarker:oe,changeMarkerProp:te,addMarkerManual:()=>{const e=(0,d.Z)(),t=(0,l.__)("Custom Marker","otter-blocks"),o=k.current.getCenter(),a=o.lat(),n=o.lng();W(!0),j(!0),J({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:n})},api:T,isSaving:L,changeAPI:M,saveAPIKey:ae}),D&&(0,c.createElement)(f,{marker:q,isAdvanced:U,isPlaceAPIAvailable:N,close:()=>W(!1),addMarker:(e,l,a,n,r,c)=>{const s=new window.google.maps.LatLng(r,c),m=(0,d.Z)(),u=new window.google.maps.Marker({position:s,map:k.current,title:l,draggable:!0,icon:a});window.google.maps.event.addListener(u,"dragend",(e=>{const t=e.latLng.lat(),o=e.latLng.lng();te(m,"latitude",t),te(m,"longitude",o)})),i.current.push(u);const b=[...t.markers],p={id:m,location:e,title:l,icon:a,description:n,latitude:r,longitude:c};b.push(p),o({markers:b}),window.google.maps.event.addListener(u,"click",(()=>{v.current&&v.current.close()})),Y(u,p.id,l,n),W(!1),F(!1)}}),(0,c.createElement)("div",re,(0,c.createElement)(u.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)(w,{attributes:t,initMap:()=>{if(k.current=new window.google.maps.Map(document.getElementById(t.id),{center:{lat:Number(t.latitude)||41.4036299,lng:Number(t.longitude)||2.1743558000000576},gestureHandling:"cooperative",zoom:t.zoom,mapTypeId:t.type,styles:C[t.style]}),t.location&&void 0===t.latitude&&void 0===t.longitude){const e={query:t.location,fields:["name","geometry"]};new window.google.maps.places.PlacesService(k.current).findPlaceFromQuery(e,((e,t)=>{t===window.google.maps.places.PlacesServiceStatus.OK&&0<e.length&&k.current.setCenter(e[0].geometry.location)}))}window.google.maps.event.addListenerOnce(k.current,"idle",(()=>{R(!0)})),k.current.addListener("zoom_changed",(()=>{const e=k.current.getZoom();o({zoom:e})})),k.current.addListener("maptypeid_changed",(()=>{const e=k.current.getMapTypeId();o({type:e})})),k.current.addListener("bounds_changed",(()=>{const e=k.current.getCenter(),t=e.lat(),l=e.lng();o({latitude:t.toString(),longitude:l.toString()})})),0<t.markers.length&&ee(t.markers);const e={query:t.location,fields:["name","geometry"]};new window.google.maps.places.PlacesService(k.current).findPlaceFromQuery(e,((e,t)=>{"REQUEST_DENIED"===t&&I(!1)}))},displayMap:O,isMapLoaded:V,selectMarker:()=>{F(!Z),Z?window.google.maps.event.clearListeners(k.current,"click"):k.current.addListener("click",(e=>{window.google.maps.event.clearListeners(k.current,"click");const t=(0,d.Z)(),o=(0,l.__)("Custom Marker","otter-blocks"),a=e.latLng.lat(),n=e.latLng.lng();W(!0),j(!1),J({id:t,location:"",title:o,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:n})}))},isSelectingMarker:Z})))):(0,c.createElement)("div",re,(0,c.createElement)(b,{api:T,error:K,isAPILoaded:S,isAPISaved:z,isSaving:L,changeAPI:e=>{M(e),Q(!1)},saveAPIKey:ae}))},save:()=>null})},2925:function(e,t,o){var l=o(5736),a=o(4981),n=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"}'),r=o(340),c=o(9307),i=o(2175),s=o(5711),d=o(5225),m=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(i.AlignmentToolbar,{value:{"flex-start":"left",center:"center","flex-end":"right"}[t.horizontalAlign],onChange:e=>{switch(e){case"left":o({horizontalAlign:"flex-start"});break;case"center":o({horizontalAlign:"center"});break;case"right":o({horizontalAlign:"flex-end"});break;default:o({horizontalAlign:void 0})}}}))},u=o(5609);const b=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var p=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(u.Placeholder,null,(0,c.createElement)(u.Spinner,null))},(0,c.createElement)(b,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.defaultLibrary,prefix:t.defaultPrefix,icon:t.defaultIcon,changeLibrary:e=>{o({defaultLibrary:e,defaultIcon:void 0,defaultPrefix:"fas"})},onChange:e=>{if("image"===t.defaultLibrary&&null!=e&&e.url)return o({defaultIcon:e.url});o("object"==typeof e?{defaultIcon:e.name,defaultPrefix:e.prefix}:{defaultIcon:e})},allowImage:!0})),(0,c.createElement)(u.RangeControl,{label:(0,l.__)("Font Size","otter-blocks"),help:(0,l.__)("The size of the font size of the content and icon.","otter-blocks"),value:t.defaultSize,onChange:e=>{o({defaultSize:e})},min:0,max:60,allowReset:!0}),(0,c.createElement)(u.RangeControl,{label:(0,l.__)("Gap","otter-blocks"),help:(0,l.__)("The distance between the items.","otter-blocks"),value:t.gap,onChange:e=>{o({gap:e})},min:0,max:60,allowReset:!0}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Content Color","otter-blocks"),colorValue:t.defaultContentColor,onColorChange:e=>{o({defaultContentColor:e})}}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Icon Color","otter-blocks"),colorValue:t.defaultIconColor,onColorChange:e=>{o({defaultIconColor:e})}})))};const{attributes:g}=n;const{name:h}=n;(0,a.registerBlockType)(h,{...n,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,d.WX)(l,g);return()=>e(t.id)}),[t.id]);const a=s.iv`
|
104 |
--horizontalAlign: ${t.horizontalAlign};
|
105 |
${t.gap&&`--gap: ${t.gap}px;`}
|
106 |
${t.defaultSize&&`--fontSize: ${t.defaultSize}px;`}
|
107 |
+
`,n=(0,i.useBlockProps)({id:t.id,css:a});return(0,s.tZ)(c.Fragment,null,(0,s.tZ)(m,{attributes:t,setAttributes:o}),(0,s.tZ)(p,{attributes:t,setAttributes:o}),(0,s.tZ)("div",n,(0,s.tZ)(i.InnerBlocks,{allowedBlocks:["themeisle-blocks/icon-list-item"],__experimentalMoverDirection:"vertical",orientation:"vertical",template:[["themeisle-blocks/icon-list-item"]],renderAppender:i.InnerBlocks.DefaultAppender})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({id:t.id});return(0,c.createElement)("div",o,(0,c.createElement)(i.InnerBlocks.Content,null))}})},598:function(e,t,o){var l=o(5736),a=o(4981),n=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"}}}'),r=o(340),c=o(9307),i=o(5711),s=o(4184),d=o.n(s),m=o(2175),u=o(9818),b=o(5609);const p=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var g=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(b.Placeholder,null,(0,c.createElement)(b.Spinner,null))},(0,c.createElement)(p,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.library,prefix:t.iconPrefix,icon:t.icon,changeLibrary:e=>{o({library:e,icon:void 0,iconPrefix:"fab"})},onChange:e=>{if("image"===t.library&&null!=e&&e.url)return o({icon:e.url});o("object"==typeof e?{icon:e.name,iconPrefix:e.prefix}:{icon:e})},allowImage:!0})),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Content Color","otter-blocks"),colorValue:t.contentColor,onColorChange:e=>{o({contentColor:e})}}),"image"!==t.library&&(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Icon Color","otter-blocks"),colorValue:t.iconColor,onColorChange:e=>{o({iconColor:e})}})))},h=o(48),k=o(5225);const{attributes:v}=n;const{name:y}=n;(0,a.registerBlockType)(y,{...n,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=>{let{attributes:t,setAttributes:o,name:n,clientId:r,onReplace:s,onRemove:b,mergeBlocks:p}=e;const[y,_]=(0,c.useState)(!1),{hasParent:f,parentAttributes:w}=(0,u.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),l=t(o(r));return{hasParent:!!l,parentAttributes:l?l.attributes:{}}}),[]);(0,c.useEffect)((()=>{const e=(0,k.WX)(r,v);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{o({library:t.library||w.defaultLibrary,icon:t.icon||w.defaultIcon,iconPrefix:t.iconPrefix||w.defaultIconPrefix})}),[f,w,t]),(0,c.useEffect)((()=>{if("image"===t.library)try{const e=new URL(t.icon);"http:"!==(null==e?void 0:e.protocol)&&"https:"!==(null==e?void 0:e.protocol)||_(!0)}catch(e){_(!1)}}),[t.library,t.icon]);const C=h.ZP.icons[t.icon],E=`${t.iconPrefix||w.defaultIconPrefix} fa-${t.icon||w.defaultIcon}`,x=i.iv`
|
108 |
--contentColor: ${t.contentColor||w.defaultContentColor};
|
109 |
--iconColor: ${t.iconColor||w.defaultIconColor};
|
110 |
+
`,T=(0,m.useBlockProps)({css:x});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(g,{attributes:t,setAttributes:o}),(0,i.tZ)("div",T,"image"===t.library&&y?(0,i.tZ)("img",{src:t.icon}):"themeisle-icons"===t.library&&t.icon&&void 0!==C?(0,i.tZ)(C,{className:d()({"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}):(0,i.tZ)("i",{className:d()(E,{"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}),(0,i.tZ)(m.RichText,{identifier:"content",tagName:"p",placeholder:(0,l.__)("Write your content…","otter-blocks"),className:d()({"wp-block-themeisle-blocks-icon-list-item-content":!t.contentColor},{"wp-block-themeisle-blocks-icon-list-item-content-custom":t.contentColor}),value:t.content,onChange:e=>{o({content:e})},onSplit:e=>e?(0,a.createBlock)(n,{...t,content:e}):(0,a.createBlock)(n),onMerge:p,onReplace:s,onRemove:b})))},save:e=>{let{attributes:t}=e;const o=`${t.iconPrefix} fa-${t.icon}`,l=h.ZP.icons[t.icon],a=m.useBlockProps.save({id:t.id});return(0,c.createElement)("div",a,"image"===t.library&&t.icon?(0,c.createElement)("img",{src:t.icon}):"themeisle-icons"===t.library&&t.icon?(0,c.createElement)(l,{className:d()({"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}):(0,c.createElement)("i",{className:d()(o,{"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}),(0,c.createElement)(m.RichText.Content,{tagName:"p",className:d()({"wp-block-themeisle-blocks-icon-list-item-content":!t.contentColor},{"wp-block-themeisle-blocks-icon-list-item-content-custom":t.contentColor}),value:t.content}))}})},1254:function(e,t,o){var l=o(5736),a=o(4981),n=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"}'),r=o(340),c=o(9307),i=o(4586),s=o(4184),d=o.n(s),m=o(2819),u=o(2175),b=o(5609);async function p(e){const t=await async function(e){if("string"!=typeof e)throw(0,l.__)("Location must be a string","otter-blocks");const t="https://nominatim.openstreetmap.org/search?q="+e.split(" ").map((e=>encodeURIComponent(e))).join("+")+"&format=geojson",o=await fetch(t);return o.ok&&200===o.status?o.json():console.warn((0,l.__)("An error has occured: ","otter-blocks")+o.status)}(e);if(null!=t&&t.features.length){var o;const e=t.features[0];if(null!=e&&null!==(o=e.geometry)&&void 0!==o&&o.coordinates.length)return{longitude:e.geometry.coordinates[0],latitude:e.geometry.coordinates[1]}}return null}var g=o(4333);const h=e=>{let{value:t,onChange:o}=e;const a=(0,g.useInstanceId)(h);(0,c.useEffect)((()=>{wp.oldEditor.initialize(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)(b.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 k=h,v=e=>{let{marker:t,isOpen:o,openMarker:a,dispatch:n}=e;const[r,i]=(0,c.useState)(t.location),[s,m]=(0,c.useState)(t.longitude),[u,g]=(0,c.useState)(t.latitude),[h,v]=(0,c.useState)(t.title),[y,_]=(0,c.useState)(t.description),[f,w]=(0,c.useState)({target:"",reason:""});return(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker"},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-title-area"},(0,c.createElement)(b.Button,{className:"wp-block-themeisle-blocks-leaflet-map-marker-title",onClick:()=>a()},t.title||(0,l.__)("Custom Marker","otter-blocks")),(0,c.createElement)(b.Button,{icon:"no-alt",label:(0,l.__)("Remove Marker","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-remove",onClick:()=>n({type:C.REMOVE,ids:[t.id]})})),o&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-control-area"},(0,c.createElement)(b.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:d()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===f.target}),value: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 p(r);e?(n({type:C.UPDATE,ids:[t.id],updatedProps:{location:r,latitude:e.latitude,longitude:e.longitude}}),g(e.latitude),m(e.longitude),"LOCATION"===f.target&&w({})):w({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:u,onChange:e=>{g(e),n({type:C.UPDATE,ids:[t.id],updatedProps:{latitude:e}})}}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:s,onChange:e=>{m(e),n({type:C.UPDATE,ids:[t.id],updatedProps:{longitude:e}})}}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:h,onChange:e=>{v(e),n({type:C.UPDATE,ids:[t.id],updatedProps:{title:e}})}}),(0,c.createElement)(k,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>{_(y),n({type:C.UPDATE,ids:[t.id],updatedProps:{description:e}})}})))},y=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)(v,{key:e.id,marker:e,isOpen:n===e.id,openMarker:()=>r(a.openMarker!==e.id?e.id:null),dispatch:o})))),(0,c.createElement)(b.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-add",onClick:()=>{o({type:C.ADD,marker:{id:(0,i.Z)()},dispatch:o})}},(0,l.__)("Add Marker","otter-blocks")))},_=e=>{let{attributes:t,setAttributes:o,dispatch:a,markersInteraction:n}=e;const[r,i]=(0,c.useState)(t.location),[s,m]=(0,c.useState)({target:"",reason:""});return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,c.createElement)(b.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:d()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===s.target}),placeholder:(0,l.__)("Enter location. E.g: La Sagrada Familia, Barcelona, Spain","otter-blocks"),help:(0,l.__)("Press Enter to search the location","otter-blocks"),value:r,onChange:i,onKeyDown:e=>((e,t)=>{e.key===t&&(async()=>{o({location:r});const e=await p(r);e?(o({latitude:e.latitude.toString(),longitude:e.longitude.toString()}),"LOCATION"===s.target&&m({})):m({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter latitude…","otter-blocks"),value:t.latitude,onChange:e=>{o({latitude:e.toString()})}}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter longitude","otter-blocks"),value:t.longitude,onChange:e=>{o({longitude:e.toString()})}})),(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.RangeControl,{label:(0,l.__)("Map Zoom Level","otter-blocks"),value:t.zoom,onChange:e=>{o({zoom:e})},min:0,max:20}),(0,c.createElement)(b.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.BaseControl,null,(0,l.__)("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.","otter-blocks")),(0,c.createElement)(b.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,c.createElement)(b.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}})),(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1},(0,c.createElement)(y,{markers:t.markers,dispatch:a,markersInteraction:n})))},f=o(5225);const{attributes:w}=n,C={ADD:"ADD",ADD_MANUAL:"ADD_MANUAL",REMOVE:"REMOVE",UPDATE:"UPDATE",INIT:"INIT"};var E={to:[{type:"block",blocks:["themeisle-blocks/google-map"],transform:e=>{const t=e;return(0,a.createBlock)("themeisle-blocks/google-map",{...t})}}]};const{name:x}=n;(0,a.registerBlockType)(x,{...n,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:E,edit:e=>{let{clientId:t,attributes:o,setAttributes:a,isSelected:n,toggleSelection:r}=e;(0,c.useEffect)((()=>{const e=(0,f.WX)(t,w);return()=>e(o.id)}),[o.id]);const s=(0,c.useRef)(null),[p,g]=(0,c.useState)(null),[h,k]=(0,c.useState)(!1),[v,y]=(0,c.useState)(null),E=(e,t)=>{if(window.L&&p&&t&&e){var o,a,n,r,c;null!==(o=e.id)&&void 0!==o||(e.id=(0,i.Z)()),null!==(a=e.latitude)&&void 0!==a||(e.latitude=p.getCenter().lat),null!==(n=e.longitude)&&void 0!==n||(e.longitude=p.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 s=window.L.marker([e.latitude,e.longitude]||0,{draggable:!0});return s.on("movestart",(()=>{s.closeTooltip(),s.closePopup()})),s.on("moveend",(()=>{const o=s.getLatLng();t({type:C.UPDATE,ids:[e.id],updatedProps:{latitude:o.lat,longitude:o.lng}})})),s.on("click",(()=>{y(e.id)})),s.markerProps=e,s}return null},[x,T]=(0,c.useReducer)(((e,t)=>{switch(t.type){case C.ADD:const o=E(t.marker,t.dispatch);return[...e,o];case C.ADD_MANUAL:if(h){const o=E(t.marker,t.dispatch);return[...e,o]}return e;case C.REMOVE:return e.filter((e=>{let{markerProps:o}=e;return t.ids.includes(o.id)})).forEach((e=>{p.hasLayer(e)&&p.removeLayer(e)})),e.filter((e=>{let{markerProps:o}=e;return!t.ids.includes(o.id)}));case C.INIT:const a=t.markers.map((e=>E(e,t.dispatch)));return[...e,...a];case C.UPDATE:return e.map((e=>{const o=e.markerProps;return t.ids.includes(o.id)&&(e.markerProps=(0,m.merge)(e.markerProps,t.updatedProps)),e}));default:console.warn((0,l.__)("The action for the leaflet block do not have a defined action in marker's reducer: ","otter-blocks")+t.type)}return e}),[],(()=>[]));(0,c.useEffect)((()=>{(()=>{if(!s.current&&!window.L)return;s.current.innerHTML="";const e=window.L.map(s.current,{gestureHandling:!0,gestureHandlingOptions:{text:{touch:(0,l.__)("Use two fingers to move the map","otter-blocks"),scroll:(0,l.__)("Use ctrl + scroll to zoom the map","otter-blocks"),scrollMac:(0,l.__)("Use ⌘ + scroll to zoom the map","otter-blocks")}}});window.L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:["a","b","c"]}).addTo(e),e.on("zoom",(()=>{a({zoom:e.getZoom()})})),e.on("moveend",(()=>{const t=e.getCenter();a({latitude:t.lat.toString(),longitude:t.lng.toString()})})),e.on("click",(e=>{T({type:C.ADD_MANUAL,marker:{latitude:e.latlng.lat,longitude:e.latlng.lng},dispatch:T}),k(!1)})),window.L.Control.AddMarker=window.L.Control.extend({onAdd:()=>{const e=window.L.DomUtil.create("button","wp-block-themeisle-blocks-leaflet-map-marker-button"),t=window.L.DomUtil.create("span","dashicons dashicons-sticky",e);return window.L.DomEvent.on(e,"click",(e=>{window.L.DomEvent.stopPropagation(e),k(!h)})),e.title=(0,l.__)("Add marker on the map with a click","otter-blocks"),e.appendChild(t),e},onRemove:()=>{}}),window.L.control.addmarker=e=>new window.L.Control.AddMarker(e),window.L.control.addmarker({position:"bottomleft"}).addTo(e),g(e),T({type:C.INIT,markers:o.markers,dispatch:T})})()}),[]),(0,c.useEffect)((()=>{o.height&&p&&p.invalidateSize(!0)}),[o.height,p]),(0,c.useEffect)((()=>{o.latitude&&o.longitude&&p&&p.setView([o.latitude,o.longitude],o.zoom||15)}),[o.latitude,o.longitude,o.zoom,p]),(0,c.useEffect)((()=>{var e;null===(e=s.current)||void 0===e||e.classList.toggle("is-selecting-location",h)}),[h]),(0,c.useEffect)((()=>{o.latitude&&o.longitude&&p&&a({bbox:p.getBounds().toBBoxString()})}),[o.latitude,o.longitude,p]),(0,c.useEffect)((()=>{x&&(x.forEach((e=>{p.hasLayer(e)||p.addLayer(e);const{markerProps:t}=e;e.setLatLng([t.latitude,t.longitude]),e.closeTooltip(),e.unbindTooltip(),e.bindTooltip(t.title,{direction:"auto"}),e.closePopup(),e.unbindPopup(),e.bindPopup(((e,t)=>{const o=document.createElement("div"),a=document.createElement("h6"),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:C.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,T))})),o.markers.length!==x.length&&p&&a({markers:x.map((e=>{let{markerProps:t}=e;return t}))}))}),[x,p,o.markers]);const M=(0,u.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(_,{attributes:o,setAttributes:a,dispatch:T,markersInteraction:{openMarker:v,setOpenMarker:y}}),(0,c.createElement)("div",M,(0,c.createElement)(b.ResizableBox,{size:{height:o.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{r(!1)},onResizeStop:(e,t,l,n)=>{a({height:parseInt(o.height+n.height,10)}),r(!0)},className:d()("wp-block-themeisle-blocks-leaflet-map-resizer",{"is-focused":n})},(0,c.createElement)("div",{id:o.id,ref:s,style:{width:"100%",height:o.height||400}}))))},save:()=>null})},6099:function(e,t,o){var l=o(2553),a=o(5736),n=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/lottie","title":"Lottie Animation","category":"themeisle-blocks","description":"Add Lottie animations to your WordPress. Powered by Otter.","keywords":["media","lottie","animation"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"file":{"type":"object"},"trigger":{"type":"string","default":"none"},"loop":{"type":"boolean","default":false},"count":{"type":"number","default":0},"speed":{"type":"number","default":1},"direction":{"type":"boolean","default":false},"width":{"type":["string","number"]},"ariaLabel":{"type":"string","default":""},"backgroundColor":{"type":"string"},"backgroundGradient":{"type":"string"}},"supports":{"align":["left","center","right"]},"editorStyle":"otter-lottie-editor","editorScript":"lottie-player","script":"otter-lottie"}'),c=o(9307),i=o(2819),s=o(2175),d=o(5609),m=e=>{var t;let{className:o,file:n,onChange:r,attributes:i}=e;const[m,u]=(0,c.useState)((null===(t=i.file)||void 0===t?void 0:t.url)||null);return Boolean(window.themeisleGutenberg.isWPVIP)?(0,c.createElement)(d.Placeholder,{label:(0,a.__)("Lottie","otter-blocks"),instructions:(0,a.__)("Add Lottie animations and files to your website.","otter-blocks"),icon:(0,c.createElement)(s.BlockIcon,{icon:l.Z}),className:o},(0,c.createElement)("form",{onSubmit:e=>(e&&e.preventDefault(),r(m))},(0,c.createElement)("input",{type:"url",value:m||"",className:"components-placeholder__input","aria-label":(0,a.__)("Lottie","otter-blocks"),placeholder:(0,a.__)("Enter URL to embed here…","otter-blocks"),onChange:e=>u(e.target.value)}),(0,c.createElement)(d.Button,{isPrimary:!0,disabled:!m,type:"submit"},(0,a.__)("Embed","otter-blocks")))):(0,c.createElement)(s.MediaPlaceholder,{labels:{title:(0,a.__)("Lottie","otter-blocks"),instructions:(0,a.__)("Add Lottie animations and files to your website.","otter-blocks")},icon:(0,c.createElement)(s.BlockIcon,{icon:l.Z}),accept:["application/json"],allowedTypes:["application/json"],value:{...n},onSelectURL:r,onSelect:r})},u=e=>{let{attributes:t,setAttributes:o,playerRef:l}=e;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Settings","otter-blocks"),initialOpen:!0},(0,c.createElement)(d.SelectControl,{label:(0,a.__)("Trigger","otter-blocks"),help:(0,a.__)("Animation trigger. This will only work on the front-end.","otter-blocks"),value:t.trigger,options:[{label:(0,a.__)("Autoplay","otter-blocks"),value:"none"},{label:(0,a.__)("Scroll","otter-blocks"),value:"scroll"},{label:(0,a.__)("Hover","otter-blocks"),value:"hover"},{label:(0,a.__)("Click","otter-blocks"),value:"click"}],onChange:e=>{o({trigger:e})}}),"scroll"!==t.trigger&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(d.ToggleControl,{label:(0,a.__)("Loop","otter-blocks"),help:(0,a.__)("Whether to loop animation.","otter-blocks"),checked:t.loop,onChange:e=>{o({loop:e}),l.current.setLooping(e),t.direction&&l.current.seek("100%"),l.current.play()}}),t.loop&&(0,c.createElement)(d.TextControl,{label:(0,a.__)("Numbers of loops","otter-blocks"),help:(0,a.__)("Number of times to loop animation.","otter-blocks"),type:"number",value:t.count,onChange:e=>{o({count:Number(e)}),l.current.load(t.file.url)}}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Speed","otter-blocks"),help:(0,a.__)("Animation speed.","otter-blocks"),value:t.speed,onChange:e=>{o({speed:Number(e)}),l.current.setSpeed(e)},step:.1,min:.1,max:5}),(0,c.createElement)(d.ToggleControl,{label:(0,a.__)("Reverse","otter-blocks"),help:(0,a.__)("Direction of animation.","otter-blocks"),checked:t.direction,onChange:e=>{o({direction:e}),l.current.setDirection(e?-1:1),l.current.seek(e?"100%":0)}})),(0,c.createElement)(s.__experimentalUnitControl,{onChange:e=>{const t=parseInt(e.slice(0,-1)),l=e.slice(-1);100<t&&"%"===l&&(e="100%"),o({width:e})},label:(0,a.__)("Width","otter-blocks"),isUnitSelectTabbable:!0,isResetValueOnUnitChange:!0,__unstableInputWidth:"50%",value:Number.isInteger(t.width)?`${t.width}px`:t.width,units:[{value:"%",label:"%",default:100},{value:"px",label:"px",default:300}]})),(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Background","otter-blocks"),initialOpen:!1},(0,c.createElement)(s.__experimentalColorGradientControl,{colorValue:t.backgroundColor,gradientValue:t.backgroundGradient,onColorChange:e=>o({backgroundColor:e}),onGradientChange:e=>o({backgroundGradient:e}),className:"otter-lottie-background-control"}))),(0,c.createElement)(s.InspectorAdvancedControls,null,(0,c.createElement)(d.TextControl,{label:(0,a.__)("Aria Label","otter-blocks"),help:(0,a.__)("Describe the purpose of this animation on the page.","otter-blocks"),value:t.ariaLabel,onChange:e=>o({ariaLabel:e})})))},b=e=>{let{isEditing:t,setEditing:o}=e;return(0,c.createElement)(s.BlockControls,null,(0,c.createElement)(d.ToolbarGroup,null,(0,c.createElement)(d.Tooltip,{text:t?(0,a.__)("Save","otter-blocks"):(0,a.__)("Edit","otter-blocks")},(0,c.createElement)(d.Button,{onClick:()=>o(!t)},(0,c.createElement)(d.Dashicon,{icon:t?"yes":"edit"})))))},p=o(7462),g=e=>{let{attributes:t,isSelected:o,playerRef:l}=e;(0,c.useEffect)((()=>{!(0,i.isEmpty)(t.file)&&t.loop&&null!==l.current&&l.current.addEventListener("complete",a)}),[]),(0,c.useEffect)((()=>{o?(l.current.play(),t.direction&&l.current.seek("100%")):l.current.stop()}),[o]);const a=()=>{l.current&&(l.current.setLooping(t.loop),l.current.play(),l.current.removeEventListener("complete",a))};return(0,c.createElement)("lottie-player",(0,p.Z)({id:t.id,ref:l,src:t.file.url,autoplay:!0,count:t.count,speed:t.speed,background:t.backgroundColor||t.backgroundGradient,direction:t.direction?-1:1,style:{width:!(!t.width||"%"===t.width.toString().slice(-1))&&`${t.width}px`,maxWidth:!(!t.width||"%"!==t.width.toString().slice(-1))&&`${t.width}`,height:"auto"},mode:"normal"},t.ariaLabel&&{"aria-label":t.ariaLabel}))},h=o(5225);const{attributes:k}=r;const{name:v}=r;(0,n.registerBlockType)(v,{...r,title:(0,a.__)("Lottie Animation","otter-blocks"),description:(0,a.__)("Add Lottie animations to your WordPress. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["media","lottie","animation"],edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a}=e;const n=(0,c.useRef)(null),[r,d]=(0,c.useState)(!Boolean(t.file));(0,c.useEffect)((()=>{const e=(0,h.WX)(a,k);return()=>e(t.id)}),[t.id]);const p=(0,s.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(!(0,i.isEmpty)(t.file)&&r||!r)&&(0,c.createElement)(b,{isEditing:r,setEditing:d}),!((0,i.isEmpty)(t.file)||r)&&(0,c.createElement)(u,{attributes:t,setAttributes:o,playerRef:n}),(0,c.createElement)("div",p,((0,i.isEmpty)(t.file)||r)&&(0,c.createElement)(m,{value:t.file,onChange:e=>{if(""===e||null===e)return;const t=(0,i.pick)(e,["id","url"]);(0,i.isEmpty)(t)&&(t.url=e),o({file:{...t}}),d(!1)},attributes:t}),!((0,i.isEmpty)(t.file)||r)&&(0,c.createElement)(g,{attributes:t,isSelected:l,playerRef:n})))},save:e=>{let{attributes:t}=e;const o=s.useBlockProps.save({id:t.id,src:t.file?t.file.url:"",width:t.width});return"scroll"===t.trigger?(0,c.createElement)("lottie-player",(0,p.Z)({trigger:t.trigger,background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o)):(0,c.createElement)("lottie-player",(0,p.Z)({autoplay:!0,loop:!0,count:t.direction?-1*t.count:t.count,speed:t.speed,direction:t.direction?-1:1,trigger:t.trigger,"data-loop":t.loop,mode:"normal",background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o))}})},5319:function(e,t,o){var l=o(5736),a=o(4981),n=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"}'),r=o(340),c=o(9307),i=o(2175),s=o(5609),d=o(8423),m=o.n(d),u=o(4932),b=o(2819),p=o(6989),g=o.n(p),h=o(9630),k=e=>{let{setAttributes:t,hasError:o,setError:a,className:n}=e;const r=(0,c.useRef)(null);let i=!1;const d=[],[m,p]=(0,c.useState)(!1),[k,v]=(0,c.useState)(""),[y,_]=(0,c.useState)({}),[f,w]=(0,c.useState)(null);(0,c.useEffect)((()=>{let e=null;return null===f||i||(i=!0,(0,u.Z)(d[f],r.current,{onlyScrollIfNeeded:!0}),d[f].focus(),e=setTimeout((()=>{i=!1}),100)),()=>{clearTimeout(e)}}),[f]);const C=e=>{if(Object.keys(y).length){e.stopPropagation(),e.preventDefault();const t=f?f-1:Object.keys(y).length-1;w(t)}},E=e=>{if(Object.keys(y).length){e.stopPropagation(),e.preventDefault();const t=null===f||f===Object.keys(y).length-1?0:f+1;w(t)}},x=e=>{t({slug:e.slug}),_({})};return(0,c.createElement)(s.Placeholder,{icon:"admin-plugins",label:(0,l.__)("Plugin Card","otter-blocks"),instructions:(0,l.__)("Search for the plugin you want to display.","otter-blocks"),className: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:k,onChange:v,onKeyDown:e=>{switch(e.keyCode){case h.UP:C(e);break;case h.DOWN:E(e);break;case h.TAB:Object.keys(y).length&&!e.shiftKey&&w(0);break;case h.ENTER:(async e=>{t({slug:""}),p(!0),a(!1);const o=await g()({path:`otter/v1/plugins?search=${encodeURIComponent(e)}`});if(o.data.errors)return a(!0),p(!1),w(null),void _({});p(!1),w(null),_(o.data.plugins)})(e.target.value)}},onFocus:()=>w(null)}),y&&(0,c.createElement)("div",{tabIndex:"-1",className:"o-plugin-cards-search-results",ref:r},Object.keys(y).map((e=>{const t=y[e];let o;return t.icons.svg&&(o=t.icons.svg),t.icons["2x"]&&(o=t.icons["2x"]),t.icons["1x"]&&(o=t.icons["1x"]),t.icons.default&&(o=t.icons.default),(0,c.createElement)("button",{className:"o-plugin-cards-list-item",key:e,ref:(l=e,e=>{d[l]=e}),onClick:e=>{e.preventDefault(),x(t)},onKeyDown:e=>((e,t)=>{switch(e.keyCode){case h.UP:C(e);break;case h.DOWN:E(e);break;case h.TAB:if(e.shiftKey){0!==f&&C(e);break}if(f===Object.keys(y).length-1)break;E(e);break;case h.ENTER:x(t)}})(e,t)},(0,c.createElement)("img",{src:o}),(0,c.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,b.unescape)(t.name)}}));var l})))),o&&(0,c.createElement)("div",{className:"o-plugin-cards-error"},(0,c.createElement)("span",null,(0,l.__)("There seems to be an error. Make sure your internet is working properly.","otter-blocks"))))},v=e=>{let{setAttributes:t}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(s.ToolbarGroup,null,(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Edit","otter-blocks")},(0,c.createElement)(s.Button,{className:"components-icon-button components-toolbar__control o-plugin-cards-edit-plugin-card",onClick:()=>t({slug:void 0})},(0,c.createElement)(s.Dashicon,{icon:"edit"})))))};const{name:y}=n;(0,a.registerBlockType)(y,{...n,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)(v,{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)(k,{attributes:t,setAttributes:o,hasError:l,setError:a}))},save:()=>null})},2693:function(e,t,o){var l=o(7682),a=o(5736),n=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/popup","title":"Popup","category":"themeisle-blocks","description":"Display your content in beautiful popup with many customization options. Powered by Otter.","keywords":["popup","modal","lightbox"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"minWidth":{"type":"number"},"maxWidth":{"type":"number"},"trigger":{"type":"string"},"wait":{"type":"number"},"anchor":{"type":"string"},"scroll":{"type":"number"},"showClose":{"type":"boolean","default":true},"outsideClose":{"type":"boolean","default":true},"anchorClose":{"type":"boolean","default":false},"closeAnchor":{"type":"string"},"recurringClose":{"type":"boolean","default":false},"recurringTime":{"type":"number"},"backgroundColor":{"type":"string"},"closeColor":{"type":"string"},"overlayColor":{"type":"string"},"overlayOpacity":{"type":"number"}},"editorStyle":"otter-popup-editor","style":"otter-popup-style","script":"otter-popup"}'),c=o(9307),i=o(5711),s=o(6755),d=o(7231),m=o(2175),u=o(5609),b=o(2694),p=o(9084);const g=()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u.Disabled,null,(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Close On Anchor Click","otter-blocks"),checked:!1,onChange:()=>{}}),(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Dismiss for Recurring Visitors","otter-blocks"),checked:!1,onChange:()=>{}})),(0,c.createElement)(p.Z,{notice:(0,c.createElement)(u.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,a.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"}));var h=e=>{let{attributes:t,setAttributes:o}=e,l=[{label:(0,a.__)("On Load","otter-blocks"),value:"onLoad"},{label:(0,a.__)("On Anchor Click (Pro)","otter-blocks"),value:"onClick",disabled:!0},{label:(0,a.__)("On Scroll (Pro)","otter-blocks"),value:"onScroll",disabled:!0},{label:(0,a.__)("On Exit (Pro)","otter-blocks"),value:"onExit",disabled:!0}];return l=(0,b.applyFilters)("otter.popupBlock.triggers",l),(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Open Trigger","otter-blocks"),help:!Boolean(window.themeisleGutenberg.hasPro)&&(0,a.__)("You need to have Otter Pro to activate Pro features.","otter-blocks"),options:l,value:t.trigger,onChange:e=>o({trigger:e})}),(void 0===t.trigger||"onLoad"===t.trigger)&&(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Wait Time","otter-blocks"),help:(0,a.__)("How much time to wait before showing the popup. Leave it empty to open instantly","otter-blocks"),min:0,max:100,value:t.wait,onChange:e=>o({wait:Number(e)})}),(0,b.applyFilters)("otter.popupBlock.controls",(0,c.createElement)((()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Show Close Button","otter-blocks"),checked:t.showClose,onChange:()=>o({showClose:!t.showClose})}),(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Close on Click Outside","otter-blocks"),checked:t.outsideClose,onChange:()=>o({outsideClose:!t.outsideClose})}),!Boolean(window.themeisleGutenberg.hasPro)&&(0,c.createElement)(g,null))),null),t,o)),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Style","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Minimum Width","otter-blocks"),min:100,max:1e3,value:t.minWidth,allowReset:!0,onChange:e=>o({minWidth:Number(e)})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Maximum Width","otter-blocks"),min:100,max:1e3,value:t.maxWidth,allowReset:!0,onChange:e=>o({maxWidth:Number(e)})}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Background","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>o({backgroundColor:e})}),t.showClose&&(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Close Button","otter-blocks"),colorValue:t.closeColor,onColorChange:e=>o({closeColor:e})}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Overlay","otter-blocks"),colorValue:t.overlayColor,onColorChange:e=>o({overlayColor:e})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Overlay Opacity","otter-blocks"),value:t.overlayOpacity,onChange:e=>o({overlayOpacity:Number(e)})})))},k=o(5225);const{attributes:v}=r;const{name:y}=r;(0,n.registerBlockType)(y,{...r,title:(0,a.__)("Popup","otter-blocks"),description:(0,a.__)("Display your content in beautiful popup with many customization options. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["popup","modal","lightbox"],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;(0,c.useEffect)((()=>{const e=(0,k.WX)(l,v);return()=>e(t.id)}),[]);const[n,r]=(0,c.useState)(!1),b=i.iv`
|
111 |
--minWidth: ${t.minWidth?t.minWidth+"px":"400px"};
|
112 |
--maxWidth: ${t.maxWidth?t.maxWidth+"px":void 0};
|
113 |
--backgroundColor: ${t.backgroundColor};
|
114 |
--closeColor: ${t.closeColor};
|
115 |
--overlayColor: ${t.overlayColor};
|
116 |
--overlayOpacity: ${t.overlayOpacity?t.overlayOpacity/100:1};
|
117 |
+
`,p=(0,m.useBlockProps)({id:t.id,css:b});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(h,{attributes:t,setAttributes:o}),(0,i.tZ)("div",p,(0,i.tZ)(u.Button,{isPrimary:!0,icon:s.Z,onClick:()=>r(!0)},(0,a.__)("Edit Popup","otter-blocks")),n&&(0,i.tZ)("div",{className:"otter-popup__modal_wrap"},(0,i.tZ)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay",onClick:()=>r(!1)}),(0,i.tZ)("div",{className:"otter-popup__modal_content"},t.showClose&&(0,i.tZ)("div",{className:"otter-popup__modal_header"},(0,i.tZ)(u.Button,{icon:d.Z,onClick:()=>r(!1)})),(0,i.tZ)("div",{className:"otter-popup__modal_body"},(0,i.tZ)(m.InnerBlocks,null))))))},save:e=>{let{attributes:t}=e;const o=m.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)(m.InnerBlocks.Content,null)))))}})},374:function(e,t,o){o.d(t,{is:function(){return u},te:function(){return m},ue:function(){return b}});var l=o(9307),a=o(4184),n=o.n(a),r=o(5736),c=o(2694),i=o(198),s=o(4715);const d=e=>{let{attributes:t,element:o,category:a,categoriesList:n}=e;return void 0!==a&&t.displayCategory&&n?(0,l.createElement)("span",{key:o,className:"o-posts-grid-post-category"},a.name):""},m=e=>{let{attributes:t,element:o,post:a}=e;const n=t.titleTag||"h5";var r;return t.displayTitle?(0,l.createElement)(n,{key:o,className:"o-posts-grid-post-title"},(0,l.createElement)("a",{href:a.link},(0,s.Uo)(null===(r=a.title)||void 0===r?void 0:r.rendered))):""},u=e=>{let{attributes:t,element:o,post:a,author:n,category:c}=e;return t.displayMeta&&(t.displayDate||t.displayAuthor)?(0,l.createElement)("p",{key:o,className:"o-posts-grid-post-meta"},t.displayDate&&
|
118 |
/* translators: %s Date posted */
|
119 |
+
(0,r.sprintf)((0,r.__)("on %s","otter-blocks"),(0,s.p6)(a.date)),t.displayAuthor&&void 0!==n&&
|
120 |
/* translators: %s Author of the post */
|
121 |
+
(0,r.sprintf)((0,r.__)(" by %s","otter-blocks"),n.name),t.displayComments&&(0,r.sprintf)(" - %1$s %2$s","0",(0,r.__)("comments","otter-blocks")),t.displayPostCategory&&void 0!==(null==c?void 0:c.name)&&(0,r.sprintf)((0,r.__)(" - %s","otter-blocks"),c.name)):""},b=e=>{let{attributes:t,element:o,post:a}=e;var n;return 0<t.excerptLength&&t.displayDescription?(0,l.createElement)("div",{key:o,className:"o-posts-grid-post-description"},(0,l.createElement)("p",null,(null===(n=a.excerpt)||void 0===n?void 0:n.rendered)&&(0,s.Uo)(a.excerpt.rendered).substring(0,t.excerptLength)+"…"),t.displayReadMoreLink&&(0,l.createElement)("a",{href:a.link,className:"o-posts-read-more"},(0,r.__)("Read more","otter-blocks"))):""};t.ZP=e=>{let{attributes:t,posts:o,categoriesList:a,authors:r}=e;return(0,l.createElement)("div",{className:"grid"===t.style?n()("is-grid",`o-posts-grid-columns-${t.columns}`,{"has-shadow":t.imageBoxShadow,"o-crop-img":t.cropImage}):n()("is-list",{"has-shadow":t.imageBoxShadow,"o-crop-img":t.cropImage})},o.filter((e=>e)).slice(t.enableFeaturedPost?1:0).map((e=>{var o,s;const p=a&&0<(null==e||null===(o=e.categories)||void 0===o?void 0:o.length)?a.find((t=>t.id===e.categories[0])):void 0,g=r&&e.author?r.find((t=>t.id===e.author)):void 0;return(0,l.createElement)("div",{key:e.link,className:"o-posts-grid-post-blog o-posts-grid-post-plain"},(0,l.createElement)("div",{className:n()("o-posts-grid-post")},0!==e.featured_media&&t.displayFeaturedImage&&(0,l.createElement)(i.Z,{id:e.featured_media,link:e.link,alt:null===(s=e.title)||void 0===s?void 0:s.rendered,size:t.imageSize,imgStyle:{borderRadius:void 0!==t.borderRadius?t.borderRadius+"px":void 0}}),(0,l.createElement)("div",{className:n()("o-posts-grid-post-body",{"is-full":!t.displayFeaturedImage})},t.template.map((o=>{switch(o){case"category":return(0,l.createElement)(d,{key:o,attributes:t,element:o,category:p,categoriesList:a});case"title":return(0,l.createElement)(m,{key:o,attributes:t,element:o,post:e});case"meta":return(0,l.createElement)(u,{key:o,attributes:t,element:o,post:e,author:g,category:p});case"description":return(0,l.createElement)(b,{key:o,attributes:t,element:o,post:e});default:return(0,c.applyFilters)("otter.postsBlock.templateLoop","",o,t)}})))))})))}},198:function(e,t,o){var l=o(9307),a=o(5609),n=o(9818);t.Z=e=>{let{id:t,link:o,alt:r,size:c,imgStyle:i}=e;const{featuredImage:s,altText:d}=(0,n.useSelect)((e=>{const o=e("core").getMedia(t);return{featuredImage:o?0<Object.keys(o.media_details.sizes).length&&o.media_details.sizes[c]?o.media_details.sizes[c].source_url:o.source_url:null,altText:o&&o.alt_text?o.alt_text:r}}),[c,t]);return null===s?(0,l.createElement)(l.Fragment,null):(0,l.createElement)("div",{className:"o-posts-grid-post-image"},(0,l.createElement)("a",{href:o},s?(0,l.createElement)("img",{src:s,size:c,alt:d,"data-id":t,style:i}):(0,l.createElement)(a.Placeholder,null,(0,l.createElement)(a.Spinner,null))))}},8061:function(e,t,o){var l=o(5736),a=o(4981),n=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"}'),r=o(340);const{attributes:c}=n;var i=[{attributes:{...c,categories:{type:"string"}},supports:{align:["wide","full"],html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:e=>{let{categories:t}=e;return t&&"string"==typeof t},save:()=>null}],s=o(7462),d=o(9307),m=o(5711),u=o(2819),b=o(5609),p=o(2175),g=o(9818),h=e=>{let{attributes:t,setAttributes:o}=e;const a=p.BlockVerticalAlignmentToolbar;return(0,d.createElement)(p.BlockControls,null,(0,d.createElement)(a,{label:(0,l.__)("Change vertical alignment","otter-blocks"),value:t.verticalAlign,onChange:e=>o({verticalAlign:e})}))},k=o(454),v=o.n(k),y=o(4184),_=o.n(y),f=o(2694),w=o(1286),C=o(6993);const E=(0,w.W6)((()=>(0,d.createElement)("div",{className:"o-sortable-handle",tabIndex:"0"},(0,d.createElement)("span",null)))),x={image:"displayFeaturedImage",category:"displayCategory",title:"displayTitle",meta:"displayMeta",description:"displayDescription"},T=e=>{var t,o;let{attributes:a,setAttributes:n,template:r,disabled:c}=e;const[i,s]=(0,d.useState)(!1),m=null==r?void 0:r.startsWith("custom_"),p=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(),h={image:a.displayFeaturedImage,category:a.displayCategory,title:a.displayTitle,meta:a.displayMeta,description:a.displayDescription},k=(0,g.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),v=e=>{const t={...p,...e};n({customMetas:a.customMetas.map((e=>e.id===p.id?t:e))})},y=m?(0,f.applyFilters)("otter.postsBlock.panelLabel","",p):(0,u.startCase)((0,u.toLower)(r)),w=h[r]||(null==p?void 0:p.display),T=w?"visibility":"hidden";
|
122 |
/* translators: %s Label */
|
123 |
let M=(0,l.sprintf)((0,l.__)("Display %s","otter-blocks"),y);return w&&(
|
124 |
/* translators: %s Label */
|
125 |
+
M=(0,l.sprintf)((0,l.__)("Hide %s","otter-blocks"),y)),(0,d.createElement)("div",{className:_()("o-sortable-item-area",`o-sortable-item-area-${r}`)},(0,d.createElement)("div",{className:_()("o-sortable-item",{disabled:c,hidden:!w,editable:w})},!c&&(0,d.createElement)(E,null),(0,d.createElement)("div",{className:"o-sortable-label"},y),w&&"category"!==r&&(0,d.createElement)(b.Button,{icon:i?"arrow-up-alt2":"arrow-down-alt2",label:i?(0,l.__)("Close Settings","otter-blocks"):(0,l.__)("Open Settings","otter-blocks"),showTooltip:!0,className:"o-sortable-button",onClick:()=>s(!i)}),(0,d.createElement)(b.Button,{icon:T,label:M,showTooltip:!0,className:"o-sortable-button",onClick:()=>{m?v({display:!p.display}):(e=>{const t=x[e]||e;n({[t]:!a[t]})})(r),s(!1)}})),w&&"category"!==r&&(0,d.createElement)("div",{className:_()("o-sortable-control-area",{opened:i&&w})},"image"===r&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.SelectControl,{label:(0,l.__)("Image Size","otter-blocks"),value:a.imageSize,options:window.themeisleGutenberg.imageSizes.map((e=>({label:(0,u.startCase)((0,u.toLower)(e)),value:e}))),onChange:e=>n({imageSize:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Crop image to fit","otter-blocks"),checked:a.cropImage,onChange:e=>n({cropImage:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display box shadow","otter-blocks"),checked:a.imageBoxShadow,onChange:e=>n({imageBoxShadow:e})}),(0,d.createElement)(b.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:a.borderRadius,onChange:e=>n({borderRadius:e}),min:0,max:50,allowReset:!0}),(0,d.createElement)(b.RangeControl,{label:(0,l.__)("Image Width","otter-blocks"),value:a.imageWidth,onChange:e=>n({imageWidth:e}),min:0,max:500,allowReset:!0})),"title"===r&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.SelectControl,{label:(0,l.__)("Title Tag","otter-blocks"),value:a.titleTag||"h5",options:[{label:(0,l.__)("H1","otter-blocks"),value:"h1"},{label:(0,l.__)("H2","otter-blocks"),value:"h2"},{label:(0,l.__)("H3","otter-blocks"),value:"h3"},{label:(0,l.__)("H4","otter-blocks"),value:"h4"},{label:(0,l.__)("H5","otter-blocks"),value:"h5"},{label:(0,l.__)("H6","otter-blocks"),value:"h6"}],onChange:e=>n({titleTag:e})}),(0,d.createElement)(C.Z,{label:(0,l.__)("Font size","otter-blocks")},(0,d.createElement)(b.RangeControl,{value:(()=>{switch(k){case"Desktop":return a.customTitleFontSize;case"Tablet":return a.customTitleFontSizeTablet;case"Mobile":return a.customTitleFontSizeMobile;default:return}})(),onChange:e=>{"Desktop"===k?n({customTitleFontSize:e}):"Tablet"===k?n({customTitleFontSizeTablet:e}):"Mobile"===k&&n({customTitleFontSizeMobile:e})},min:0,max:50,allowReset:!0}))),"meta"===r&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display post date","otter-blocks"),checked:a.displayDate,onChange:e=>n({displayDate:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display author","otter-blocks"),checked:a.displayAuthor,onChange:e=>n({displayAuthor:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display comments","otter-blocks"),checked:a.displayComments,onChange:e=>n({displayComments:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display category","otter-blocks"),checked:a.displayPostCategory,onChange:e=>n({displayPostCategory:e})})),"description"===r&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.TextControl,{label:(0,l.__)("Excerpt Limit","otter-blocks"),type:"number",value:a.excerptLength,onChange:e=>n({excerptLength:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display read more link","otter-blocks"),checked:a.displayReadMoreLink,onChange:e=>n({displayReadMoreLink:e})}),(0,d.createElement)(C.Z,{label:(0,l.__)("Font size","otter-blocks")},(0,d.createElement)(b.RangeControl,{value:(()=>{switch(k){case"Desktop":return a.customDescriptionFontSize;case"Tablet":return a.customDescriptionFontSizeTablet;case"Mobile":return a.customDescriptionFontSizeMobile;default:return}})(),onChange:e=>{"Desktop"===k?n({customDescriptionFontSize:e}):"Tablet"===k?n({customDescriptionFontSizeTablet:e}):"Mobile"===k&&n({customDescriptionFontSizeMobile:e})},min:0,max:50,allowReset:!0}))),(0,f.applyFilters)("otter.postsBlock.controls","",a,n,m,p,v)))},M=(0,w.W8)((e=>{let{attributes:t,setAttributes:o,template:l,disabled:a}=e;return(0,d.createElement)(T,{attributes:t,setAttributes:o,template:l,disabled:a})})),S=(0,w.JN)((e=>{var t;let{attributes:o,setAttributes:l}=e;return(0,d.createElement)("div",null,null==o||null===(t=o.template)||void 0===t?void 0:t.filter((e=>{var t;return!(null!=e&&e.startsWith("custom_")&&(void 0===(null===(t=window)||void 0===t?void 0:t.acf)||!window.themeisleGutenberghasPro))})).map(((e,t)=>(0,d.createElement)(M,{key:`item-${e}`,index:t,attributes:o,setAttributes:l,template:e}))))}));var B=o(9084);const z=()=>(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.Button,{variant:"secondary",isSecondary:!0,className:"o-conditions__add",disabled:!0,onClick:()=>{}},(0,l.__)("Add Meta Field","otter-blocks")),(0,d.createElement)("br",null),(0,d.createElement)(B.Z,{notice:(0,d.createElement)(b.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,l.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"}));var P=e=>{let{attributes:t,setAttributes:o}=e;return(0,d.createElement)(d.Fragment,null,(0,d.createElement)("div",{className:_()("o-sortable",t.style)},(0,d.createElement)(T,{attributes:t,setAttributes:o,template:"image",disabled:!0}),(0,d.createElement)(S,{attributes:t,setAttributes:o,onSortEnd:e=>{let{oldIndex:l,newIndex:a}=e;const n=v()(t.template,l,a);o({template:n})},useDragHandle:!0,axis:"y",lockAxis:"y"}),(0,f.applyFilters)("otter.postsBlock.sortableContainer",(0,d.createElement)(z,null),t,o)))},V=o(5241),R=o(8286),L=o(4715),H=e=>{let{attributes:t,setAttributes:o,changeStyle:a,categoriesList:n}=e;const{slugs:r}=(0,g.useSelect)((e=>({slugs:e("otter-store").getPostsSlugs()})),[t.postTypes]),c=n.reduce(((e,t)=>({...e,[t.name]:t})),{}),i=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)||""}})):[],s="object"==typeof t.categories?1<=t.categories.length?t.categories[0].id:void 0:t.categories;return(0,d.createElement)(p.InspectorControls,null,(0,d.createElement)(b.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,d.createElement)(V.V,{value:t.style,options:[{label:(0,l.__)("Grid","otter-blocks"),value:"grid",image:window.themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:(0,l.__)("List","otter-blocks"),value:"list",image:window.themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:a})),(0,d.createElement)(b.PanelBody,{title:(0,l.__)("Post Types","otter-blocks"),initialOpen:!1},(0,d.createElement)(b.BaseControl,null,(0,l.__)("Select the types of the post. If none is selected, the default WordPress post will be displayed.","otter-blocks")),(0,d.createElement)(b.SelectControl,{label:(0,l.__)("Post Type","otter-blocks"),value:t.postTypes[0]||null,onChange:e=>e&&o({postTypes:[e]}),options:r.map((e=>({label:(0,L.__)(e),value:e})))})),(0,d.createElement)(b.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},"grid"===t.style&&(0,d.createElement)(b.RangeControl,{label:(0,l.__)("Columns","otter-blocks"),value:t.columns,onChange:e=>{o({columns:e})},min:1,max:5}),(0,d.createElement)(b.QueryControls,{order:t.order,orderBy:t.orderBy,onOrderChange:e=>o({order:e}),onOrderByChange:e=>o({orderBy:e}),numberOfItems:t.postsToShow,onNumberOfItemsChange:e=>o({postsToShow:e}),categorySuggestions:c,selectedCategoryId:s,selectedCategories:i,onCategoryChange:e=>{let t;"object"==typeof e?0<e.length&&(t=e.map((e=>{if("object"==typeof e)return e;const t=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,d.createElement)(b.TextControl,{label:(0,l.__)("Offset","otter-blocks"),help:(0,l.__)("Number of post to displace or pass over.","otter-blocks"),type:"number",value:t.offset,min:0,onChange:e=>o({offset:Number(e)})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Enable featured post","otter-blocks"),checked:t.enableFeaturedPost,onChange:e=>o({enableFeaturedPost:e})}),(0,d.createElement)(b.BaseControl,{label:(0,l.__)("Text alignment","otter-blocks")},(0,d.createElement)(R.Z,{value:t.textAlign,options:[{icon:"editor-alignleft",label:(0,l.__)("Left","otter-blocks"),value:"left"},{icon:"editor-aligncenter",label:(0,l.__)("Center","otter-blocks"),value:"center"},{icon:"editor-alignright",label:(0,l.__)("Right","otter-blocks"),value:"right"}],onChange:e=>o({textAlign:e}),showBottomLabels:!0}))),(0,d.createElement)(b.PanelBody,{title:(0,l.__)("Design & Layout","otter-blocks"),initialOpen:!1},(0,d.createElement)(P,{attributes:t,setAttributes:o})))},N=o(5225),I=o(374);const O={posts:{slugs:[],usedSlugs:[]}};(0,g.registerGenericStore)("otter-store",(()=>{let e=()=>{};const t=O,o={getPostsSlugs:()=>t.posts.slugs,getPostsUsedSlugs:()=>t.posts.usedSlugs},l={setPostsSlugs(o){t.posts.slugs=o,e()},setPostsUsedSlugs(o){t.posts.usedSlugs.push(...o),e()},setOnlyOneSlug(o){t.posts.usedSlugs=[o],e()},removePostsUsedSlugs(o){t.posts.usedSlugs=t.posts.usedSlugs.filter((e=>!o.includes(e))),e()}};return{getSelectors:()=>o,getActions:()=>l,subscribe(t){e=t}}})());var A=o(198),G=e=>{var t;let{post:o,attributes:l,author:a,category:n}=e;return o?(0,d.createElement)("div",{className:_()("o-featured-post",{"has-shadow":l.imageBoxShadow})},l.displayFeaturedImage&&(0,d.createElement)(A.Z,{id:o.featured_media,link:o.link,alt:null===(t=o.title)||void 0===t?void 0:t.rendered,imgStyle:{borderRadius:void 0!==l.borderRadius?l.borderRadius+"px":void 0}}),(0,d.createElement)("div",{className:"o-posts-grid-post-body"},l.template.map((e=>{switch(e){case"title":return(0,d.createElement)(I.te,{attributes:l,element:e,post:o});case"meta":return(0,d.createElement)(I.is,{attributes:l,element:e,post:o,author:a,category:n});case"description":return(0,d.createElement)(I.ue,{attributes:l,element:e,post:o});default:return(0,f.applyFilters)("otter.postsBlock.templateLoop","",e,l)}})))):""};const{attributes:$}=n;const{name:Z}=n;(0,a.registerBlockType)(Z,{...n,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:i,edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,d.useEffect)((()=>{const e=(0,N.WX)(a,$);return()=>e(t.id)}),[t.id]);const[n,r]=(0,d.useState)([]),{posts:c,categoriesList:i,authors:k}=(0,g.useSelect)((e=>{const o=t.categories&&0<t.categories.length?t.categories.map((e=>e.id)):[],l=(0,u.pickBy)({categories:o,order:t.order,orderby:t.orderBy,per_page:t.postsToShow,offset:t.offset},(e=>!(0,u.isUndefined)(e))),a=t.postTypes;return{posts:0<a.length?a.map((t=>e("core").getEntityRecords("postType",t,l))).flat():e("core").getEntityRecords("postType","post",l),categoriesList:e("core").getEntityRecords("taxonomy","category",{per_page:100}),authors:e("core").getUsers({who:"authors"})}}),[t.categories,t.order,t.orderBy,t.postsToShow,t.offset,t.postTypes]),v=e=>{o({style:e})};(0,d.useEffect)((()=>{(async()=>{r(await(0,L.R3)())})()}),[]),(0,d.useEffect)((()=>{(0,g.dispatch)("otter-store").setPostsSlugs(n)}),[n]);const y=m.iv`
|
126 |
${t.imageWidth&&`--imgWidth: ${t.imageWidth}px;`}
|
127 |
${t.borderRadius&&`--imgBorderRadius: ${t.borderRadius}px;`}
|
128 |
--vertAlign: ${(0,L.Vg)(t.verticalAlign)};
|
142 |
${t.customTitleFontSizeMobile&&`--titleTextSize: ${t.customTitleFontSizeMobile}px;`}
|
143 |
${t.customDescriptionFontSizeMobile&&`--descriptionTextSize: ${t.customDescriptionFontSizeMobile}px;`}
|
144 |
}
|
145 |
+
`,_=(0,p.useBlockProps)();return c&&i&&k?0===c.length?(0,m.tZ)(d.Fragment,null,(0,m.tZ)("div",_,(0,m.tZ)(b.Placeholder,null,(0,l.__)("No Posts","otter-blocks"))),i&&t.offset||n.length?(0,m.tZ)(H,{attributes:t,setAttributes:o,changeStyle:v,categoriesList:i}):null):(0,m.tZ)(d.Fragment,null,(0,m.tZ)(V.d,{label:(0,l.__)("Block Styles","otter-blocks"),value:t.style,options:[{label:(0,l.__)("Grid","otter-blocks"),value:"grid",image:window.themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:(0,l.__)("List","otter-blocks"),value:"list",image:window.themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:v}),(0,m.tZ)(H,{attributes:t,setAttributes:o,changeStyle:v,categoriesList:i,posts:c}),(0,m.tZ)(h,{attributes:t,setAttributes:o}),(0,m.tZ)("div",(0,s.Z)({},_,{css:y}),(0,m.tZ)(b.Disabled,null,t.enableFeaturedPost&&(0,m.tZ)(G,{attributes:t,post:null==c?void 0:c[0],category:i[0],author:k[0]}),(0,m.tZ)(I.ZP,{attributes:t,posts:c,categoriesList:i,authors:k})))):(0,m.tZ)(d.Fragment,null,(0,m.tZ)("div",_,(0,m.tZ)(b.Placeholder,null,(0,m.tZ)(b.Spinner,null),(0,l.__)("Loading Posts","otter-blocks"))),i&&t.offset?(0,m.tZ)(H,{attributes:t,setAttributes:o,changeStyle:v,categoriesList:i}):null)},save:()=>null})},6951:function(e,t,o){var l=o(5736),a=o(4981),n=o(9818),r=o(340),c=JSON.parse('{"kQ":"\x3c!-- wp:themeisle-blocks/advanced-columns {\\"id\\":\\"wp-block-themeisle-blocks-advanced-columns-e0e1ab2e\\",\\"columns\\":3,\\"layout\\":\\"equal\\",\\"layoutMobile\\":\\"collapsedRows\\",\\"padding\\":{\\"top\\":\\"80px\\",\\"bottom\\":\\"80px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingTablet\\":{\\"top\\":\\"40px\\",\\"bottom\\":\\"40px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\"},\\"columnsWidth\\":1170,\\"horizontalAlign\\":\\"center\\",\\"verticalAlign\\":\\"flex-start\\",\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"backgroundOverlayPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"columnsHTMLTag\\":\\"section\\",\\"align\\":\\"full\\"} --\x3e\\n<section id=\\"wp-block-themeisle-blocks-advanced-columns-e0e1ab2e\\" class=\\"wp-block-themeisle-blocks-advanced-columns alignfull has-3-columns has-desktop-equal-layout has-tablet-equal-layout has-mobile-collapsedRows-layout has-vertical-flex-start\\"><div class=\\"wp-block-themeisle-blocks-advanced-columns-overlay\\"></div><div class=\\"innerblocks-wrap\\">\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-43e17023\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-43e17023\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\">Essential</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-7d521980\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-7d521980\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-7d521980\\"><strong>$59</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-ee4f525b\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-ee4f525b\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-ee4f525b\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-1806e8e7\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-1806e8e7\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-26b966e4\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-26b966e4\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts & Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-4aebde54\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-4aebde54\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-64264549\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-64264549\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-2489d76c\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-2489d76c\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-e30ccf77\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-e30ccf77\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-e30ccf77\\">Business</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\"><strong>$129</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-fe18de7e\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-fe18de7e\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-fe18de7e\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-fb8b7e9c\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-fb8b7e9c\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-78a49dfc\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-78a49dfc\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts & Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-f341b063\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-f341b063\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-8216d9b3\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-8216d9b3\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-09158d16\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-09158d16\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-b3766bd8\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-b3766bd8\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-b3766bd8\\">VIP</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-e601353c\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-e601353c\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-e601353c\\"><strong>$199</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-39d2e261\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-39d2e261\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-39d2e261\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-2c744428\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-2c744428\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-b78d20f0\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-b78d20f0\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts & Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-14fe631b\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-14fe631b\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-0ce7030d\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-0ce7030d\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e</div></section>\\n\x3c!-- /wp:themeisle-blocks/advanced-columns --\x3e"}');const{getBlockType:i}=(0,n.select)("core/blocks"),s=()=>{const e=setInterval((()=>{if(void 0===i("themeisle-blocks/advanced-columns"))return s();const t=(0,a.parse)(c.kQ);(0,a.registerBlockVariation)("themeisle-blocks/advanced-columns",{name:"themeisle-blocks/section-pricing",title:(0,l.__)("Pricing Section","otter-blocks"),icon:r.pricingIcon,scope:"inserter",attributes:t[0].attributes,innerBlocks:t[0].innerBlocks}),clearInterval(e)}),2e3)};s()},3105:function(e,t,o){var l=o(5736),a=o(4981),n=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"}'),r=o(9307),c=o(4184),i=o.n(c),s=o(5711),d=o(5609),m=o(2175),u=o(5225),b=o(2819),p=e=>{let{attributes:t,setAttributes:o,onHeightChange:a,heightMode:n,setHeightMode:c}=e;return(0,r.createElement)(m.InspectorControls,null,(0,r.createElement)(d.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,r.createElement)(d.TextControl,{label:(0,l.__)("Title","otter-blocks"),value:t.title,onChange:e=>{o({title:e})}}),(0,r.createElement)(d.RangeControl,{label:(0,l.__)("Percentage","otter-blocks"),help:(0,l.__)("The value of the progress bar.","otter-blocks"),value:t.percentage,onChange:e=>{void 0!==e&&(e=(0,b.clamp)(e,0,100),o({percentage:e}))},min:0,max:100}),(0,r.createElement)(d.RangeControl,{label:(0,l.__)("Duration","otter-blocks"),help:(0,l.__)("The duration of the animation.","otter-blocks"),value:t.duration,onChange:e=>{void 0!==e&&(e=(0,b.clamp)(e,0,3),o({duration:e}))},min:0,max:3,step:.1}),30<=t.height&&(0,r.createElement)(d.SelectControl,{label:(0,l.__)("Title Style","otter-blocks"),value:t.titleStyle,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Highlight","otter-blocks"),value:"highlight"},{label:(0,l.__)("Outer","otter-blocks"),value:"outer"}],onChange:e=>{o({titleStyle:e})}}),(0,r.createElement)(d.SelectControl,{label:(0,l.__)("Show Percentage","otter-blocks"),value:t.percentagePosition,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Append","otter-blocks"),value:"append"},{label:(0,l.__)("Tooltip","otter-blocks"),value:"tooltip"},{label:(0,l.__)("Outer","otter-blocks"),value:"outer"},{label:(0,l.__)("Hide","otter-blocks"),value:"hide"}],onChange:e=>{n.isAutomatic&&(n.percentagePosition=e,c({...n})),o({percentagePosition:e})}})),(0,r.createElement)(d.PanelBody,{title:(0,l.__)("Style","otter-blocks"),initialOpen:!1},(0,r.createElement)(d.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("The height of the progress bar.","otter-blocks"),value:t.height,onChange:a,min:0,max:100}),(0,r.createElement)(d.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),help:(0,l.__)("Round the corners of the progress bar.","otter-blocks"),value:t.borderRadius,onChange:e=>{o({borderRadius:e})},initialPosition:5,min:0,max:35}),(0,r.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Progress Color","otter-blocks"),colorValue:t.barBackgroundColor,onColorChange:e=>{o({barBackgroundColor:e})}}),(0,r.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Title Color","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>{o({titleColor:e})}}),(0,r.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Percentage Color","otter-blocks"),colorValue:t.percentageColor,onColorChange:e=>{o({percentageColor:e})}}),(0,r.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Background Color","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>{o({backgroundColor:e})}})))};const{attributes:g}=n;var h={to:[{type:"block",blocks:["themeisle-blocks/circle-counter"],transform:e=>{const t=(0,b.omit)(e,["titleStyle","percentagePosition","height","borderRadius","barBackgroundColor","percentageColor"]);return(0,a.createBlock)("themeisle-blocks/circle-counter",{...t,progressColor:e.barBackgroundColor,height:(0,b.clamp)(4*e.height,0,240),titleStyle:"default"})}}]};const{name:k}=n;(0,a.registerBlockType)(k,{...n,title:(0,l.__)("Progress Bar","otter-blocks"),description:(0,l.__)("Show your progress with a beautiful Progress Bar block. Powered by Otter.","otter-blocks"),icon:"minus",keywords:["progress","bar","skills"],transforms:h,edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a,toggleSelection:n}=e;(0,r.useEffect)((()=>{const e=(0,u.WX)(a,g);return()=>e(t.id)}),[t.id]);const[c,b]=(0,r.useState)(!1),[h,k]=(0,r.useState)({isAutomatic:!1,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),v=(0,r.useRef)(null);(0,r.useEffect)((()=>{let e=null;if(v.current)return b(!1),e=setTimeout((()=>b(!0)),1e3*t.duration),v.current.animate({width:`${t.percentage}%`},{duration:1e3*t.duration,easing:"linear",fill:"forwards"}),()=>{clearTimeout(e)}}),[t.percentage,t.duration]);const y=e=>{30>e?(h.isAutomatic||k({isAutomatic:!0,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),o({height:e,titleStyle:"outer",percentagePosition:"append"===t.percentagePosition||"default"===t.percentagePosition?"outer":t.percentagePosition})):(h.isAutomatic&&k({isAutomatic:!1}),o({titleStyle:h.isAutomatic?h.titleStyle:t.titleStyle,percentagePosition:h.isAutomatic?h.percentagePosition:t.percentagePosition,height:e}))},_=s.iv`
|
146 |
--titleColor: ${t.titleColor};
|
147 |
--percentageColor: ${t.percentageColor};
|
148 |
--percentageColorOuter: ${t.percentageColor};
|
152 |
--borderRadius: ${void 0!==t.borderRadius?t.borderRadius:5}px;
|
153 |
--height: ${void 0!==t.height?t.height:30}px;
|
154 |
--barBackground: ${t.barBackgroundColor};
|
155 |
+
`,f=(0,m.useBlockProps)({id:t.id,className:i()({"has-tooltip":"tooltip"===t.percentagePosition}),css:_});return(0,s.tZ)(r.Fragment,null,(0,s.tZ)(p,{attributes:t,setAttributes:o,onHeightChange:y,heightMode:h,setHeightMode:k}),(0,s.tZ)("div",f,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,s.tZ)(m.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-progress-bar__outer__title",value:t.title,onChange:e=>o({title:e})}),"outer"===t.percentagePosition&&c&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__outer__value"},`${t.percentage}%`)),(0,s.tZ)(d.ResizableBox,{size:{height:t.height},minHeight:5,maxHeight:100,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:l,onResizeStop:(e,o,l,a)=>{y(parseInt(t.height+a.height,10)),n(!0)},onResizeStart:()=>{n(!1)}},(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,s.tZ)("div",{className:i()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,s.tZ)(m.RichText,{tagName:"span",allowedFormats:[],value:t.title,onChange:e=>o({title:e})})),(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar show",ref:v},"tooltip"===t.percentagePosition&&c&&(0,s.tZ)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip show"},`${t.percentage}%`,(0,s.tZ)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&c&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append show"},`${t.percentage}%`)),"default"===t.percentagePosition&&c&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress"},`${t.percentage}%`)))))},save:e=>{let{attributes:t}=e;const o=m.useBlockProps.save({id:t.id,className:i()({"has-tooltip":"tooltip"===t.percentagePosition}),"data-percent":t.percentage,"data-duration":t.duration});return(0,r.createElement)("div",o,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,r.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,r.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__outer__title"},t.title),"outer"===t.percentagePosition&&(0,r.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer__value wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),(0,r.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,r.createElement)("div",{className:i()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,r.createElement)("span",null,t.title)),(0,r.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar"},"tooltip"===t.percentagePosition&&(0,r.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip"},(0,r.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__number"},t.percentage),(0,r.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&(0,r.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),"default"===t.percentagePosition&&(0,r.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__number"},`${t.percentage}%`)))}})},7902:function(e,t,o){var l=o(5736),a=o(4981),n=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"}'),r=o(340),c=o(9307),i=o(5711),s=o(4184),d=o.n(s),m=o(1463),u=o.n(m),b=o(2175),p=o(5609),g=o(2819),h=o(3159),k=o(9084);const v=e=>{let{title:t,remove:o,children:a}=e;const[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)(p.Button,{className:"o-review__inspector_panel_item__title",onClick:()=>r(!n)},t),(0,c.createElement)(p.Button,{icon:"no-alt",label:(0,l.__)("Remove","otter-blocks"),showTooltip:!0,className:"o-review__inspector_panel_item__arrow",onClick:o})),n&&(0,c.createElement)("div",{className:"o-review__inspector_panel_item__content"},a))};var y=e=>{var t,o,a,n,r;let{attributes:i,setAttributes:s,getValue:d,productAttributes:m}=e;const u=(e,t)=>{const o=[...i.features];o[e]={...o[e],...t},s({features:o})},y=(e,t)=>{const o=[...i.links];o[e]={...o[e],...t},s({links:o})},_=e=>{let t=[...i.links];t=t.filter(((t,o)=>o!==e)),s({links:t})};return(0,c.createElement)(b.InspectorControls,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Product Details","otter-blocks")},i.product&&(0,c.createElement)(p.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice"},(0,l.__)("WooCommerce product synchronization is active. Some options might be disabled.","otter-blocks")),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Product Name","otter-blocks"),type:"text",placeholder:(0,l.__)("Name of your product…","otter-blocks"),value:(null==m?void 0:m.title)||i.title,disabled:i.product,onChange:e=>s({title:e})}),(0,c.createElement)(p.BaseControl,null,(0,c.createElement)(p.TextControl,{label:(0,l.__)("Currency","otter-blocks"),type:"text",placeholder:(0,l.__)("Currency code, like USD or EUR.","otter-blocks"),value:(null==m?void 0:m.currency)||i.currency,disabled:i.product,onChange:e=>s({currency:e})}),(0,l.__)("Currency code in three digit ISO 4217 code.","otter-blocks")+" ",(0,c.createElement)(p.ExternalLink,{href:"https://en.wikipedia.org/wiki/ISO_4217#Active_codes"},(0,l.__)("List of ISO 4217 codes.","otter-blocks"))),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Price","otter-blocks"),type:"number",value:(null==m?void 0:m.price)||i.price,disabled:i.product,onChange:e=>s({price:""!==e?Number(e):void 0})}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Discounted Price","otter-blocks"),type:"number",value:(null==m?void 0:m.discounted)||i.discounted,disabled:i.product,onChange:e=>s({discounted:""!==e?Number(e):void 0})}),i.image||null!=m&&m.image?(0,c.createElement)(p.BaseControl,{className:"o-review__inspector_image"},(0,c.createElement)("img",{src:(null==m||null===(t=m.image)||void 0===t?void 0:t.url)||i.image.url,alt:(null==m||null===(o=m.image)||void 0===o?void 0:o.url)||i.image.alt}),(0,c.createElement)(p.Button,{isSecondary:!0,onClick:()=>s({image:void 0}),disabled:i.product},(0,l.__)("Remove image","otter-blocks"))):(0,c.createElement)(b.MediaPlaceholder,{labels:{title:(0,l.__)("Product Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:i.image,onSelect:e=>s({image:(0,g.pick)(e,["id","alt","url"])})})),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Product Features","otter-blocks"),initialOpen:!1},0<i.features.length&&i.features.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e.title||(0,l.__)("Feature","otter-blocks"),remove:()=>(e=>{let t=[...i.features];t=t.filter(((t,o)=>o!==e)),s({features:t})})(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("Feature title","otter-blocks"),value:e.title,onChange:e=>u(t,{title:e})}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Rating","otter-blocks"),value:e.rating,onChange:e=>u(t,{rating:Number(e)}),min:1,max:10})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.features];e.push({title:(0,l.__)("Feature","otter-blocks"),rating:9}),s({features:e})}},(0,l.__)("Add Feature","otter-blocks"))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Pros","otter-blocks"),initialOpen:!1},0<i.pros.length&&i.pros.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e||(0,l.__)("Pro","otter-blocks"),remove:()=>(e=>{let t=[...i.pros];t=t.filter(((t,o)=>o!==e)),s({pros:t})})(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("Why do you like the product?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...i.pros];o[e]=t,s({pros:o})})(t,e)})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.pros];e.push(""),s({pros:e})}},(0,l.__)("Add Item","otter-blocks"))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Cons","otter-blocks"),initialOpen:!1},0<i.cons.length&&i.cons.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e||(0,l.__)("Con","otter-blocks"),remove:()=>(e=>{let t=[...i.cons];t=t.filter(((t,o)=>o!==e)),s({cons:t})})(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("What can be improved?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...i.cons];o[e]=t,s({cons:o})})(t,e)})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.cons];e.push(""),s({cons:e})}},(0,l.__)("Add Item","otter-blocks"))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Links","otter-blocks"),initialOpen:!1},i.product&&(0,c.createElement)(p.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice"},(0,l.__)("WooCommerce product synchronization is active. Some options might be disabled.","otter-blocks")),0<(null==m||null===(a=m.links)||void 0===a?void 0:a.length)&&(null==m||null===(n=m.links)||void 0===n?void 0:n.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>_(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),disabled:i.product,value:e.label}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,disabled:i.product}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,disabled:i.product}))))),!(0<(null==m||null===(r=m.links)||void 0===r?void 0:r.length))&&(0,c.createElement)(c.Fragment,null,0<i.links.length&&i.links.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>_(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,onChange:e=>y(t,{label:e})}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,onChange:e=>y(t,{href:e})}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,onChange:()=>y(t,{isSponsored:!e.isSponsored})})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.links];e.push({label:(0,l.__)("Buy Now","otter-blocks"),href:""}),s({links:e})}},(0,l.__)("Add Links","otter-blocks")))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.Z,{field:"primaryColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Primary","otter-blocks"),colorValue:d("primaryColor"),onColorChange:e=>s({primaryColor:e})})),(0,c.createElement)(h.Z,{field:"backgroundColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:d("backgroundColor"),onColorChange:e=>s({backgroundColor:e})})),(0,c.createElement)(b.ContrastChecker,{textColor:d("primaryColor"),backgroundColor:d("backgroundColor")}),(0,c.createElement)(h.Z,{field:"textColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Text","otter-blocks"),colorValue:d("textColor"),onColorChange:e=>s({textColor:e})})),(0,c.createElement)(h.Z,{field:"buttonTextColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Button Text","otter-blocks"),colorValue:d("buttonTextColor"),onColorChange:e=>s({buttonTextColor:e})}))),!Boolean(window.themeisleGutenberg.hasPro)&&(0,c.createElement)(p.PanelBody,{title:(0,l.__)("More Features","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.Z,{notice:(0,c.createElement)(p.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,l.__)("Get more options with Otter Pro. ","otter-blocks")),variant:"upsell"})))},_=o(5225);const{attributes:f}=n;const{name:w,attributes:C}=n;window.themeisleGutenberg.defaultReviewAttributes=C,(0,a.registerBlockType)(w,{...n,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,s;let{name:m,attributes:g,setAttributes:h,clientId:k,isSelected:v,status:w="isInactive",productAttributes:C={}}=e;(0,c.useEffect)((()=>{const e=(0,_.WX)(k,f);return()=>e(g.id)}),[g.id]);const E=e=>(0,_.Ih)({name:m,field:e,defaultAttributes:f,attributes:g}),x=(g.features.reduce(((e,t)=>e+t.rating),0)/g.features.length).toFixed(1),T=[];for(let e=0;10>e;e++)T.push((0,i.tZ)(r.StarFilled,{key:e,className:d()({low:3>=Math.round(x)&&e<Math.round(x),medium:3<Math.round(x)&&8>Math.round(x)&&e<Math.round(x),high:7<Math.round(x)&&10>=Math.round(x)&&e<Math.round(x)})}));const M=i.iv`
|
156 |
--backgroundColor: ${E("backgroundColor")};
|
157 |
--primaryColor: ${E("primaryColor")};
|
158 |
--textColor: ${E("textColor")};
|
159 |
--buttonTextColor: ${E("buttonTextColor")};
|
160 |
`,S="object"==typeof w&&null!==w&&w.isError||"isLoading"===w;let B=(0,b.useBlockProps)({id:g.id,className:S&&"is-placeholder",css:M});return"isLoading"===w?(0,i.tZ)(c.Fragment,null,(0,i.tZ)(y,{attributes:g,setAttributes:h,getValue:E,productAttributes:C}),(0,i.tZ)("div",B,(0,i.tZ)(p.Placeholder,null,(0,i.tZ)(p.Spinner,null)))):"object"==typeof w&&null!==w&&w.isError?(0,i.tZ)(c.Fragment,null,(0,i.tZ)(y,{attributes:g,setAttributes:h,getValue:E,productAttributes:C}),(0,i.tZ)("div",B,(0,i.tZ)(p.Placeholder,{instructions:w.message}))):(0,i.tZ)(c.Fragment,null,(0,i.tZ)(y,{attributes:g,setAttributes:h,getValue:E,productAttributes:C}),(0,i.tZ)("div",B,(0,i.tZ)("div",{className:"o-review__header"},null!=C&&C.title?(0,i.tZ)(b.RichText.Content,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:null==C?void 0:C.title,tagName:"h3"}):(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:g.title,onChange:e=>h({title:e}),tagName:"h3"}),(0,i.tZ)("div",{className:"o-review__header_meta"},(0,i.tZ)("div",{className:"o-review__header_ratings"},T,(0,i.tZ)("span",null,
|
161 |
/** translators: %s Rating score. */
|
162 |
+
(0,l.sprintf)((0,l.__)("%f out of 10","otter-blocks"),Math.abs(x)||0))),(0,i.tZ)("span",{className:"o-review__header_price"},((null==C?void 0:C.price)&&(null==C?void 0:C.discounted)||g.price&&g.discounted)&&(0,i.tZ)("del",null,(null!==(t=u()((null==C?void 0:C.currency)||g.currency))&&void 0!==t?t:"$")+""+((null==C?void 0:C.price)||g.price)||0),(g.price||g.discounted||(null==C?void 0:C.price)||(null==C?void 0:C.discounted))&&(null!==(o=u()((null==C?void 0:C.currency)||g.currency))&&void 0!==o?o:"$")+""+(null!=C&&C.discounted||g.discounted?(null==C?void 0:C.discounted)||g.discounted:(null==C?void 0:C.price)||g.price)))),(0,i.tZ)("div",{className:"o-review__left"},(0,i.tZ)("div",{className:d()("o-review__left_details",{"is-single":!g.image||!v&&!g.description})},null!=C&&C.image?(0,i.tZ)("img",{src:null==C||null===(a=C.image)||void 0===a?void 0:a.url,alt:null==C||null===(n=C.image)||void 0===n?void 0:n.alt}):g.image&&(0,i.tZ)("img",{src:g.image.url,alt:g.image.alt}),!v&&!g.description||null!=C&&C.description?(0,i.tZ)(b.RichText.Content,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:null==C?void 0:C.description,tagName:"p"}):(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:g.description,onChange:e=>h({description:e}),tagName:"p"})),(0,i.tZ)("div",{className:"o-review__left_features"},0<g.features.length&&g.features.map(((e,t)=>{const o=[];for(let t=0;10>t;t++)o.push((0,i.tZ)(r.StarFilled,{key:t,className:d()({low:3>=Math.round(e.rating)&&t<Math.round(e.rating),medium:3<Math.round(e.rating)&&8>Math.round(e.rating)&&t<Math.round(e.rating),high:7<Math.round(e.rating)&&10>=Math.round(e.rating)&&t<Math.round(e.rating)})}));return(0,i.tZ)("div",{className:"o-review__left_feature",key:t},(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Feature title","otter-blocks"),value:e.title,className:"o-review__left_feature_title",onChange:e=>((e,t)=>{const o=[...g.features];o[e]={...o[e],...t},h({features:o})})(t,{title:e}),tagName:"span"}),(0,i.tZ)("div",{className:"o-review__left_feature_ratings"},o,(0,i.tZ)("span",null,e.rating.toFixed(1),"/10")))})))),(0,i.tZ)("div",{className:"o-review__right"},0<g.pros.length&&(0,i.tZ)("div",{className:"o-review__right_pros"},(0,i.tZ)("h4",null,(0,l.__)("Pros","otter-blocks")),g.pros.map(((e,t)=>(0,i.tZ)("div",{className:"o-review__right_pros_item",key:t},r.check,(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Why do you like the product?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...g.pros];o[e]=t,h({pros:o})})(t,e),tagName:"p"}))))),0<g.cons.length&&(0,i.tZ)("div",{className:"o-review__right_cons"},(0,i.tZ)("h4",null,(0,l.__)("Cons","otter-blocks")),g.cons.map(((e,t)=>(0,i.tZ)("div",{className:"o-review__right_cons_item",key:t},r.close,(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("What can be improved?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...g.cons];o[e]=t,h({cons:o})})(t,e),tagName:"p"})))))),(0<(null==C||null===(s=C.links)||void 0===s?void 0:s.length)||0<g.links.length)&&(0,i.tZ)("div",{className:"o-review__footer"},(0,i.tZ)("span",{className:"o-review__footer_label"},(0,l.__)("Buy this product","otter-blocks")),(0,i.tZ)("div",{className:"o-review__footer_buttons"},((null==C?void 0:C.links)||g.links).map(((e,t)=>(0,i.tZ)(b.RichText,{key:t,placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,disabled:0<(null==C?void 0:C.links),onChange:e=>((e,t)=>{const o=[...g.links];o[e]={...o[e],...t},h({links:o})})(t,{label:e}),tagName:"span"})))))))},save:()=>null})},3716:function(e,t,o){var l=o(5736),a=o(4981),n=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"}'),r=o(340),c=o(9307),i=o(80),s=o.n(i),d=o(2819),m=o(2175),u=o(4715);const b={id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginRight:{type:"number",default:0},marginRightTablet:{type:"number",default:0},marginRightMobile:{type:"number",default:0},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number",default:0},marginLeftMobile:{type:"number",default:0},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},p=[{attributes:b,supports:{inserter:!1,reusable:!1,html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,n,r,i;if("color"===t.backgroundType&&(a={background:t.backgroundColor}),"image"===t.backgroundType&&(a={backgroundImage:`url( '${t.backgroundImageURL}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType){let e;e="linear"===t.backgroundGradientType?`${t.backgroundGradientAngle}deg`:`at ${t.backgroundGradientPosition}`,a={background:`${t.backgroundGradientType}-gradient( ${e}, ${t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientFirstLocation}%, ${t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientSecondLocation}% )`}}"linked"===t.borderType&&(n={borderWidth:`${t.border}px`,borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(n={borderTopWidth:`${t.borderTop}px`,borderRightWidth:`${t.borderRight}px`,borderBottomWidth:`${t.borderBottom}px`,borderLeftWidth:`${t.borderLeft}px`,borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(r={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(r={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(i={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${s()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const d={...a,...n,...r,...i};return(0,c.createElement)(l,{className:o,id:t.id,style:d},(0,c.createElement)(m.InnerBlocks.Content,null))}},{attributes:{...b,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"}},supports:{inserter:!1,reusable:!1,html:!1},migrate:e=>{let t="";if("gradient"===e.backgroundType){let o="";"linear"===e.backgroundGradientType&&(o=`${e.backgroundGradientAngle}deg, `),t=`${e.backgroundGradientType}-gradient(${o}${s()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${s()(e.backgroundGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}%)`}return{...{...(0,d.omit)(e,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition"]),backgroundGradient:t}}},isEligible:e=>"gradient"===e.backgroundType&&void 0!==e.backgroundGradientFirstColor,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;return(0,c.createElement)(l,{className:o,id:t.id},(0,c.createElement)(m.InnerBlocks.Content,null))}},{attributes:{...(0,d.omit)(b,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition"]),paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"},backgroundGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"}},supports:{inserter:!1,reusable:!1,html:!1},migrate:e=>{const t={},o={},l={},a={},n={},r={},c={},i={};let s={},m={};"unlinked"===e.paddingType?(t.top=(0,d.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,d.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,d.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,d.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,d.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,d.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,d.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,d.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,d.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,d.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,d.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,d.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(a.top=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px",a.bottom=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px",a.left=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px",a.right=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px"):(a.top=(0,d.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",a.bottom=(0,d.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px",a.left=(0,d.isUndefined)(e.marginLeft)?"20px":e.marginLeft+"px",a.right=(0,d.isUndefined)(e.marginRight)?"20px":e.marginRight+"px"),"linked"===e.marginTypeTablet?(n.top=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",n.bottom=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",n.left=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",n.right=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(n.top=(0,d.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",n.bottom=(0,d.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px",n.left=(0,d.isUndefined)(e.marginLeftTablet)?null:e.marginLeftTablet+"px",n.right=(0,d.isUndefined)(e.marginRightTablet)?null:e.marginRightTablet+"px"),"linked"===e.marginTypeMobile?(r.top=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",r.bottom=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",r.left=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",r.right=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(r.top=(0,d.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",r.bottom=(0,d.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px",r.left=(0,d.isUndefined)(e.marginLeftMobile)?null:e.marginLeftMobile+"px",r.right=(0,d.isUndefined)(e.marginRightMobile)?null:e.marginRightMobile+"px"),"unlinked"===e.borderType?(c.top=(0,d.isUndefined)(e.borderTop)?null:e.borderTop+"px",c.bottom=(0,d.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",c.left=(0,d.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",c.right=(0,d.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(c.top=(0,d.isUndefined)(e.border)?null:e.border+"px",c.bottom=(0,d.isUndefined)(e.border)?null:e.border+"px",c.left=(0,d.isUndefined)(e.border)?null:e.border+"px",c.right=(0,d.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(i.top=(0,d.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",i.bottom=(0,d.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",i.left=(0,d.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",i.right=(0,d.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(i.top=(0,d.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.bottom=(0,d.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.left=(0,d.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.right=(0,d.isUndefined)(e.borderRadius)?null:e.borderRadius+"px"),void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID&&(s={id:e.backgroundImageID,url:e.backgroundImageURL});return void 0!==e.backgroundPosition&&(m={"top left":{x:"0.00",y:"0.00"},"top center":{x:"0.50",y:"0.00"},"top right":{x:"1.00",y:"0.00"},"center left":{x:"0.00",y:"0.50"},"center center":{x:"0.50",y:"0.50"},"center right":{x:"1.00",y:"0.50"},"bottom left":{x:"0.00",y:"1.00"},"bottom center":{x:"0.50",y:"1.00"},"bottom right":{x:"1.00",y:"1.00"}}[e.backgroundPosition]),{...{...(0,d.omit)(e,["paddingType","paddingTypeTablet","paddingTypeMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","marginType","marginTypeTablet","marginTypeMobile","marginTop","marginTopTablet","marginTopMobile","marginRight","marginRightTablet","marginRightMobile","marginBottom","marginBottomTablet","marginBottomMobile","marginLeft","marginLeftTablet","marginLeftMobile","borderType","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"]),...!(0,u.FH)(t)&&{padding:t},...!(0,u.FH)(o)&&{paddingTablet:o},...!(0,u.FH)(l)&&{paddingMobile:l},...!(0,u.FH)(a)&&{margin:a},...!(0,u.FH)(n)&&{marginTablet:n},...!(0,u.FH)(r)&&{marginMobile:r},...!(0,u.FH)(c)&&{border:c},...!(0,u.FH)(i)&&{borderRadius:i},...!(0,u.FH)(s)&&{backgroundImage:s},...!(0,u.FH)(m)&&{backgroundPosition:m}}}},isEligible:e=>["padding","paddingTablet","paddingMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","margin","marginTablet","marginMobile","marginTop","marginTopTablet","marginTopMobile","marginRight","marginRightTablet","marginRightMobile","marginBottom","marginBottomTablet","marginBottomMobile","marginLeft","marginLeftTablet","marginLeftMobile","borderType","border","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadius","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"].some((t=>!(0,d.isUndefined)(e[t])&&"number"==typeof e[t]))||void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID||void 0!==e.backgroundPosition&&"object"!=typeof e.backgroundPosition,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;return(0,c.createElement)(l,{className:o,id:t.id},(0,c.createElement)(m.InnerBlocks.Content,null))}}];var g=p,h=o(4333),k=o(9818),v=o(7400),y=o(4184),_=o.n(y),f=o(5609),w=o(6993),C=o(5452),E=o(2136),x=o(3159),T=e=>{let{attributes:t,setAttributes:o,getValue:a,parentBlock:n,updateBlockAttributes:r,currentBlockWidth:i,nextBlock:s,nextBlockWidth:b}=e;const p=(0,k.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[g,h]=(0,c.useState)("layout");return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(f.PanelBody,{className:"o-section-header-panel"},(0,c.createElement)(f.Button,{className:_()("header-tab",{"is-selected":"layout"===g}),onClick:()=>h("layout")},(0,c.createElement)("span",null,(0,c.createElement)(f.Dashicon,{icon:"editor-table"}),(0,l.__)("Layout","otter-blocks"))),(0,c.createElement)(f.Button,{className:_()("header-tab",{"is-selected":"style"===g}),onClick:()=>h("style")},(0,c.createElement)("span",null,(0,c.createElement)(f.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,c.createElement)(f.Button,{className:_()("header-tab",{"is-selected":"advanced"===g}),onClick:()=>h("advanced")},(0,c.createElement)("span",null,(0,c.createElement)(f.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"layout"===g&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.PanelBody,{title:(0,l.__)("Spacing","otter-blocks")},1<n.innerBlocks.length&&(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Column Width","otter-blocks"),value:Number(t.columnWidth),onChange:e=>{const t=e||10,l=Number(i.current)-t+Number(b.current);i.current=t,b.current=l,o({columnWidth:t.toFixed(2)}),r(s.current,{columnWidth:l.toFixed(2)})},min:10,max:Number(t.columnWidth)+Number(b.current)-10}),(0,c.createElement)(w.Z,{label:(0,l.__)("Screen Type","otter-blocks"),className:"otter-section-padding-responsive-control"},(0,c.createElement)(x.Z,{field:(()=>{switch(p){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(f.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{switch(p){case"Desktop":return a("padding");case"Tablet":return a("paddingTablet");case"Mobile":return a("paddingMobile");default:return}})(),inputProps:{min:0,max:500},onChange:e=>{switch((0,u.CJ)(e)&&(e=void 0),p){case"Desktop":return o({padding:e});case"Tablet":return o({paddingTablet:e});case"Mobile":return o({paddingMobile:e});default:return}}})),(0,c.createElement)(x.Z,{field:(()=>{switch(p){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(f.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{switch(p){case"Desktop":return a("margin");case"Tablet":return a("marginTablet");case"Mobile":return a("marginMobile");default:return}})(),inputProps:{min:-500,max:500},onChange:e=>{switch((0,u.CJ)(e)&&(e=void 0),p){case"Desktop":return o({margin:e});case"Tablet":return o({marginTablet:e});case"Mobile":return o({marginMobile:e});default:return}}})))))||"style"===g&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.PanelBody,{title:(0,l.__)("Background Settings","otter-blocks")},(0,c.createElement)(C.Z,{backgroundType:t.backgroundType,backgroundColor:t.backgroundColor,image:t.backgroundImage,gradient:t.backgroundGradient,focalPoint:t.backgroundPosition,backgroundAttachment:t.backgroundAttachment,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize,changeBackgroundType:e=>o({backgroundType:e}),changeImage:e=>{o({backgroundImage:(0,d.pick)(e,["id","url"])})},removeImage:()=>o({backgroundImage:void 0}),changeColor:e=>o({backgroundColor:e}),changeGradient:e=>o({backgroundGradient:e}),changeBackgroundAttachment:e=>o({backgroundAttachment:e}),changeBackgroundRepeat:e=>o({backgroundRepeat:e}),changeFocalPoint:e=>o({backgroundPosition:e}),changeBackgroundSize:e=>o({backgroundSize:e})})),(0,c.createElement)(f.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1},(0,c.createElement)(f.__experimentalBoxControl,{label:(0,l.__)("Border Width","otter-blocks"),values:t.border,inputProps:{min:0,max:500},units:[{value:"px",label:"px"}],onChange:e=>{(0,u.CJ)(e)&&(e=void 0),o({border:e})}}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}),(0,c.createElement)(f.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:t.borderRadius,inputProps:{min:0,max:500},units:[{value:"px",label:"px"},{value:"%",label:"%"}],id:"otter-border-raduis-box",onChange:e=>{(0,u.CJ)(e)&&(e=void 0),o({borderRadius:e})}}),(0,c.createElement)(f.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:t.boxShadow,onChange:()=>o({boxShadow:!t.boxShadow})}),t.boxShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,c.createElement)(E.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))))||"advanced"===g&&(0,c.createElement)(f.PanelBody,{title:(0,l.__)("Section Settings","otter-blocks")},(0,c.createElement)(f.SelectControl,{label:(0,l.__)("HTML Tag","otter-blocks"),value:t.columnsHTMLTag,options:[{label:(0,l.__)("Default (div)","otter-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>o({columnsHTMLTag:e})})))},M=o(5225);const{attributes:S}=n;const{name:B}=n;(0,a.registerBlockType)(B,{...n,title:(0,l.__)("Section Column","otter-blocks"),description:(0,l.__)("A single column within a Section block. Powered by Otter.","otter-blocks"),icon:r.columnIcon,deprecated:g,edit:e=>{let{name:t,attributes:o,setAttributes:l,isSelected:a,clientId:n}=e;const{updateBlockAttributes:r}=(0,k.useDispatch)("core/block-editor"),{adjacentBlockClientId:i,adjacentBlock:u,parentBlock:b,hasInnerBlocks:p,isViewportAvailable:g,isPreviewDesktop:y,isPreviewTablet:_,isPreviewMobile:f}=(0,k.useSelect)((e=>{const{getAdjacentBlockClientId:t,getBlock:o,getBlockRootClientId:l}=e("core/block-editor"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post"),r=o(n),c=t(n);return{adjacentBlockClientId:c,adjacentBlock:o(c),parentBlock:o(l(n)),hasInnerBlocks:!(!r||!r.innerBlocks.length),isViewportAvailable:!!a,isPreviewDesktop:!!a&&"Desktop"===a(),isPreviewTablet:!!a&&"Tablet"===a(),isPreviewMobile:!!a&&"Mobile"===a()}}),[]),w=(0,h.useViewportMatch)("large",">="),C=(0,h.useViewportMatch)("large","<="),E=(0,h.useViewportMatch)("small",">="),x=(0,h.useViewportMatch)("small","<=");(0,c.useEffect)((()=>{const e=(0,M.WX)(n,S);return()=>e(o.id)}),[o.id]),(0,c.useEffect)((()=>{if(1<b.innerBlocks.length&&!i){const e=b.innerBlocks.findIndex((e=>e.clientId===n)),t=b.innerBlocks[e-1];z.current=t.clientId,P.current=t.attributes.columnWidth}}),[]),(0,c.useEffect)((()=>{if(1<b.innerBlocks.length)if(i)P.current=u.attributes.columnWidth,z.current=i,B.current=o.columnWidth;else{const e=b.innerBlocks.findIndex((e=>e.clientId===n)),t=b.innerBlocks[e-1];P.current=t.attributes.columnWidth,z.current=t.clientId,B.current=o.columnWidth}}),[a,o.columnWidth,b.innerBlocks.length]);const B=(0,c.useRef)(o.columnWidth),z=(0,c.useRef)(i&&i),P=(0,c.useRef)(u&&u.attributes.columnWidth),V=e=>(0,M.Ih)({name:t,field:e,defaultAttributes:S,attributes:o});let R=w&&!C&&E&&!x,L=!w&&!C&&E&&!x,H=!(w||C||E||x);if(g&&!H&&(R=y,L=_,H=f),void 0===o.columnWidth){const e=b.innerBlocks.findIndex((e=>e.clientId===n)),t=b.attributes.columns,o=b.attributes.layout;r(n,{columnWidth:v.Z[t][o][e]})}const N=o.columnsHTMLTag;let I,O,A,G,$;var Z,F,D,W,U,j,q,J,K,Q,X,Y,ee,te,oe,le,ae,ne,re,ce,ie,se,de,me,ue,be,pe;R&&(I={paddingTop:null===(Z=V("padding"))||void 0===Z?void 0:Z.top,paddingRight:null===(F=V("padding"))||void 0===F?void 0:F.right,paddingBottom:null===(D=V("padding"))||void 0===D?void 0:D.bottom,paddingLeft:null===(W=V("padding"))||void 0===W?void 0:W.left,marginTop:null===(U=V("margin"))||void 0===U?void 0:U.top,marginRight:null===(j=V("margin"))||void 0===j?void 0:j.right,marginBottom:null===(q=V("margin"))||void 0===q?void 0:q.bottom,marginLeft:null===(J=V("margin"))||void 0===J?void 0:J.left}),L&&(I={paddingTop:null===(K=V("paddingTablet"))||void 0===K?void 0:K.top,paddingRight:null===(Q=V("paddingTablet"))||void 0===Q?void 0:Q.right,paddingBottom:null===(X=V("paddingTablet"))||void 0===X?void 0:X.bottom,paddingLeft:null===(Y=V("paddingTablet"))||void 0===Y?void 0:Y.left,marginTop:null===(ee=V("marginTablet"))||void 0===ee?void 0:ee.top,marginRight:null===(te=V("marginTablet"))||void 0===te?void 0:te.right,marginBottom:null===(oe=V("marginTablet"))||void 0===oe?void 0:oe.bottom,marginLeft:null===(le=V("marginTablet"))||void 0===le?void 0:le.left}),H&&(I={paddingTop:null===(ae=V("paddingMobile"))||void 0===ae?void 0:ae.top,paddingRight:null===(ne=V("paddingMobile"))||void 0===ne?void 0:ne.right,paddingBottom:null===(re=V("paddingMobile"))||void 0===re?void 0:re.bottom,paddingLeft:null===(ce=V("paddingMobile"))||void 0===ce?void 0:ce.left,marginTop:null===(ie=V("marginMobile"))||void 0===ie?void 0:ie.top,marginRight:null===(se=V("marginMobile"))||void 0===se?void 0:se.right,marginBottom:null===(de=V("marginMobile"))||void 0===de?void 0:de.bottom,marginLeft:null===(me=V("marginMobile"))||void 0===me?void 0:me.left}),"color"===o.backgroundType&&(O={backgroundColor:o.backgroundColor}),"image"===o.backgroundType&&(O={backgroundImage:`url( '${null===(ue=o.backgroundImage)||void 0===ue?void 0:ue.url}' )`,backgroundAttachment:o.backgroundAttachment,backgroundPosition:`${Math.round(100*(null===(be=o.backgroundPosition)||void 0===be?void 0:be.x))}% ${Math.round(100*(null===(pe=o.backgroundPosition)||void 0===pe?void 0:pe.y))}%`,backgroundRepeat:o.backgroundRepeat,backgroundSize:o.backgroundSize}),"gradient"===o.backgroundType&&(O={backgroundImage:o.backgroundGradient}),o.border&&!(0,d.isEmpty)(o.border)&&(A={borderTopWidth:o.border.top,borderRightWidth:o.border.right,borderBottomWidth:o.border.bottom,borderLeftWidth:o.border.left,borderStyle:"solid",borderColor:o.borderColor}),o.borderRadius&&!(0,d.isEmpty)(o.borderRadius)&&(G={borderTopLeftRadius:o.borderRadius.top,borderTopRightRadius:o.borderRadius.right,borderBottomRightRadius:o.borderRadius.bottom,borderBottomLeftRadius:o.borderRadius.left}),!0===o.boxShadow&&($={boxShadow:`${o.boxShadowHorizontal}px ${o.boxShadowVertical}px ${o.boxShadowBlur}px ${o.boxShadowSpread}px ${s()(o.boxShadowColor?o.boxShadowColor:"#000000",o.boxShadowColorOpacity)}`});const ge={flexBasis:`${o.columnWidth}%`,...I,...O,...A,...G,...$},he=(0,m.useBlockProps)({id:o.id,style:ge});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(T,{attributes:o,setAttributes:l,getValue:V,parentBlock:b,updateBlockAttributes:r,currentBlockWidth:B,nextBlock:z,nextBlockWidth:P}),(0,c.createElement)(N,he,(0,c.createElement)(m.InnerBlocks,{templateLock:!1,renderAppender:!p&&m.InnerBlocks.ButtonBlockAppender})))},save:e=>{let{attributes:t}=e;const o=t.columnsHTMLTag,l=m.useBlockProps.save({id:t.id});return(0,c.createElement)(o,l,(0,c.createElement)(m.InnerBlocks.Content,null))}})},1116:function(e,t,o){var l=o(5736),a=o(4981),n=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"}'),r=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(80),m=o.n(d),u=o(2819),b=o(2175),p=o(5609),g=o(4715);const h={align:{type:"string"},id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},horizontalAlign:{type:"string",default:"unset"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},k=e=>{let{type:t,front:o,style:l,fill:a,invert:n,width:r,height:i}=e;return"none"!==l&&(0,c.createElement)("div",{className:s()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&r?{transform:r?`scaleX( ${r/100} )`:""}:{}},"bigTriangle"===l&&!1===n&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===n&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===n&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===n&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,c.createElement)(p.SVG,{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===n&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===n&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,c.createElement)(p.SVG,{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},v=e=>{let{type:t,front:o,style:l,fill:a,invert:n,width:r,height:i}=e;return"none"!==l&&(0,c.createElement)("div",{className:s()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&r?{transform:r?`scaleX( ${r/100} )`:""}:{}},"bigTriangle"===l&&!1===n&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"bottom"===t})},(0,c.createElement)(p.Path,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===n&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===n&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===n&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,c.createElement)(p.SVG,{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===n&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"bottom"===t})},(0,c.createElement)(p.Path,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===n&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"bottom"===t})},(0,c.createElement)(p.Path,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,c.createElement)(p.SVG,{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},y=[{attributes:h,supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,n,r,i,d;if("color"===t.backgroundType&&(a={background:t.backgroundColor}),"image"===t.backgroundType&&(a={backgroundImage:`url( '${t.backgroundImageURL}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType){let e;e="linear"===t.backgroundGradientType?`${t.backgroundGradientAngle}deg`:`at ${t.backgroundGradientPosition}`,a={background:`${t.backgroundGradientType}-gradient( ${e}, ${t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientFirstLocation}%, ${t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientSecondLocation}% )`}}"linked"===t.borderType&&(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&&(i={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(i={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(d={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${m()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const u={...a,...r,...i,...d,justifyContent:t.horizontalAlign};if("color"===t.backgroundOverlayType&&(n={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(n={backgroundImage:`url( '${t.backgroundOverlayImageURL}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType){let e;e="linear"===t.backgroundOverlayGradientType?`${t.backgroundOverlayGradientAngle}deg`:`at ${t.backgroundOverlayGradientPosition}`,n={background:`${t.backgroundOverlayGradientType}-gradient( ${e}, ${t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientFirstLocation}%, ${t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientSecondLocation}% )`,opacity:t.backgroundOverlayOpacity/100}}const p={...n,mixBlendMode:t.backgroundOverlayBlend,filter:`blur( ${t.backgroundOverlayFilterBlur/10}px ) brightness( ${t.backgroundOverlayFilterBrightness/10} ) contrast( ${t.backgroundOverlayFilterContrast/10} ) grayscale( ${t.backgroundOverlayFilterGrayscale/100} ) hue-rotate( ${t.backgroundOverlayFilterHue}deg ) saturate( ${t.backgroundOverlayFilterSaturate/10} )`};let g={};t.columnsWidth&&(g={maxWidth:t.columnsWidth+"px"});const h=t.hide?"":`has-desktop-${t.layout}-layout`,v=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,y=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,_=s()(o,`has-${t.columns}-columns`,h,v,y,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},`has-${t.lcolumnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:_,id:t.id,style:u},(0,c.createElement)("div",{className:"wp-themeisle-block-overlay",style:p}),(0,c.createElement)(k,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap",style:g},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(k,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:h,supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,n,r,i,d;if("color"===t.backgroundType&&(a={background:t.backgroundColor}),"image"===t.backgroundType&&(a={backgroundImage:`url( '${t.backgroundImageURL}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType){let e;e="linear"===t.backgroundGradientType?`${t.backgroundGradientAngle}deg`:`at ${t.backgroundGradientPosition}`,a={background:`${t.backgroundGradientType}-gradient( ${e}, ${t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientFirstLocation}%, ${t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientSecondLocation}% )`}}"linked"===t.borderType&&(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&&(i={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(i={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(d={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${m()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const u={...a,...r,...i,...d,justifyContent:t.horizontalAlign};if("color"===t.backgroundOverlayType&&(n={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(n={backgroundImage:`url( '${t.backgroundOverlayImageURL}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType){let e;e="linear"===t.backgroundOverlayGradientType?`${t.backgroundOverlayGradientAngle}deg`:`at ${t.backgroundOverlayGradientPosition}`,n={background:`${t.backgroundOverlayGradientType}-gradient( ${e}, ${t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientFirstLocation}%, ${t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientSecondLocation}% )`,opacity:t.backgroundOverlayOpacity/100}}const p={...n,mixBlendMode:t.backgroundOverlayBlend};let g={};t.columnsWidth&&(g={maxWidth:t.columnsWidth+"px"});const h=t.hide?"":`has-desktop-${t.layout}-layout`,v=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,y=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,_=s()(o,`has-${t.columns}-columns`,h,v,y,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:_,id:t.id,style:u},(0,c.createElement)("div",{className:"wp-themeisle-block-overlay",style:p}),(0,c.createElement)(k,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap",style:g},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(k,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...h,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag,a=t.hide?"":`has-desktop-${t.layout}-layout`,n=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,r=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,i=s()(o,`has-${t.columns}-columns`,a,n,r,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:i,id:t.id},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(v,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(v,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...h,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},migrate:e=>{let t="",o="";if("gradient"===e.backgroundType){let o="";"linear"===e.backgroundGradientType&&(o=`${e.backgroundGradientAngle}deg, `),t=`${e.backgroundGradientType}-gradient(${o}${m()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${m()(e.backgroundGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}%)`}if("gradient"===e.backgroundOverlayType){let t="";"linear"===e.backgroundOverlayGradientType&&(t=`${e.backgroundOverlayGradientAngle}deg, `),o=`${e.backgroundOverlayGradientType}-gradient(${t}${m()(e.backgroundOverlayGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientFirstLocation}%, ${m()(e.backgroundOverlayGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientSecondLocation}%)`}return{...{...(0,u.omit)(e,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition","backgroundOverlayGradientFirstColor","backgroundOverlayGradientFirstLocation","backgroundOverlayGradientSecondColor","backgroundOverlayGradientSecondLocation","backgroundOverlayGradientType","backgroundOverlayGradientAngle","backgroundOverlayGradientPosition"]),backgroundGradient:t,backgroundOverlayGradient:o}}},isEligible:e=>"gradient"===e.backgroundType&&void 0!==e.backgroundGradientFirstColor||"gradient"===e.backgroundOverlayType&&void 0!==e.backgroundOverlayGradientFirstColor,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag,a=t.hide?"":`has-desktop-${t.layout}-layout`,n=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,r=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,i=s()(o,`has-${t.columns}-columns`,a,n,r,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:i,id:t.id},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(v,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(v,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:{...(0,u.omit)(h,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition","backgroundOverlayGradientFirstColor","backgroundOverlayGradientFirstLocation","backgroundOverlayGradientSecondColor","backgroundOverlayGradientSecondLocation","backgroundOverlayGradientType","backgroundOverlayGradientAngle","backgroundOverlayGradientPosition"]),paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},backgroundGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},backgroundOverlayGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},migrate:e=>{const t={},o={},l={},a={},n={},r={},c={},i={};let s={},d={},m={},b={};"unlinked"===e.paddingType?(t.top=(0,u.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,u.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,u.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,u.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,u.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,u.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,u.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,u.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,u.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,u.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,u.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,u.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,u.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,u.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,u.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,u.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,u.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,u.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,u.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,u.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,u.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,u.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,u.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,u.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(a.top=(0,u.isUndefined)(e.margin)?"20px":e.margin+"px",a.bottom=(0,u.isUndefined)(e.margin)?"20px":e.margin+"px"):(a.top=(0,u.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",a.bottom=(0,u.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px"),"linked"===e.marginTypeTablet?(n.top=(0,u.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",n.bottom=(0,u.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(n.top=(0,u.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",n.bottom=(0,u.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px"),"linked"===e.marginTypeMobile?(r.top=(0,u.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",r.bottom=(0,u.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(r.top=(0,u.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",r.bottom=(0,u.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px"),"unlinked"===e.borderType?(c.top=(0,u.isUndefined)(e.borderTop)?null:e.borderTop+"px",c.bottom=(0,u.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",c.left=(0,u.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",c.right=(0,u.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(c.top=(0,u.isUndefined)(e.border)?null:e.border+"px",c.bottom=(0,u.isUndefined)(e.border)?null:e.border+"px",c.left=(0,u.isUndefined)(e.border)?null:e.border+"px",c.right=(0,u.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(i.top=(0,u.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",i.bottom=(0,u.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",i.left=(0,u.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",i.right=(0,u.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(i.top=(0,u.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.bottom=(0,u.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.left=(0,u.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.right=(0,u.isUndefined)(e.borderRadius)?null:e.borderRadius+"px"),void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID&&(s={id:e.backgroundImageID,url:e.backgroundImageURL}),void 0!==e.backgroundOverlayImageURL&&void 0!==e.backgroundOverlayImageID&&(d={id:e.backgroundOverlayImageID,url:e.backgroundOverlayImageURL});const p={"top left":{x:"0.00",y:"0.00"},"top center":{x:"0.50",y:"0.00"},"top right":{x:"1.00",y:"0.00"},"center left":{x:"0.00",y:"0.50"},"center center":{x:"0.50",y:"0.50"},"center right":{x:"1.00",y:"0.50"},"bottom left":{x:"0.00",y:"1.00"},"bottom center":{x:"0.50",y:"1.00"},"bottom right":{x:"1.00",y:"1.00"}};return void 0!==e.backgroundPosition&&(m=p[e.backgroundPosition]),void 0!==e.backgroundOverlayPosition&&(b=p[e.backgroundOverlayPosition]),{...{...(0,u.omit)(e,["columnsGap","paddingType","paddingTypeTablet","paddingTypeMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","marginType","marginTypeTablet","marginTypeMobile","marginTop","marginTopTablet","marginTopMobile","marginBottom","marginBottomTablet","marginBottomMobile","borderType","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"]),...!(0,g.FH)(t)&&{padding:t},...!(0,g.FH)(o)&&{paddingTablet:o},...!(0,g.FH)(l)&&{paddingMobile:l},...!(0,g.FH)(a)&&{margin:a},...!(0,g.FH)(n)&&{marginTablet:n},...!(0,g.FH)(r)&&{marginMobile:r},...!(0,g.FH)(c)&&{border:c},...!(0,g.FH)(i)&&{borderRadius:i},...!(0,g.FH)(s)&&{backgroundImage:s},...!(0,g.FH)(m)&&{backgroundPosition:m},...!(0,g.FH)(d)&&{backgroundOverlayImage:d},...!(0,g.FH)(b)&&{backgroundOverlayPosition:b}}}},isEligible:e=>["padding","paddingTablet","paddingMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","margin","marginTablet","marginMobile","marginTop","marginTopTablet","marginTopMobile","marginBottom","marginBottomTablet","marginBottomMobile","borderType","border","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadius","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"].some((t=>!(0,u.isUndefined)(e[t])&&("number"==typeof e[t]||null===typeof e[t])))||void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID||void 0!==e.backgroundOverlayImageURL&&void 0!==e.backgroundOverlayImageID||void 0!==e.backgroundPosition&&"object"!=typeof e.backgroundPosition||void 0!==e.backgroundOverlayPosition&&"object"!=typeof e.backgroundOverlayPosition||void 0!==e.columnsGap,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag,a=t.hide?"":`has-desktop-${t.layout}-layout`,n=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,r=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,i=s()(o,`has-${t.columns}-columns`,a,n,r,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-${t.columnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:i,id:t.id},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(v,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(v,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}}];var _=y,f=o(4333),w=o(9818),C=o(7400),E=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(b.BlockControls,null,(0,c.createElement)(b.BlockVerticalAlignmentToolbar,{onChange:e=>t.verticalAlign===e?o({verticalAlign:"unset"}):o({verticalAlign:e}),value:"flex-start"===t.verticalAlign?"top":"flex-end"===t.verticalAlign?"bottom":t.verticalAlign}))},x=o(9266),T=o(6993),M=o(2136),S=o(1661),B=o(5452),z=o(3159),P=o(8286),V=e=>{let{attributes:t,setAttributes:o,getValue:a,updateColumnsWidth:n,dividerViewType:r,setDividerViewType:i,changeColumnsNumbers:d}=e;const m=(0,w.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[h,k]=(0,c.useState)("layout"),[v,y]=(0,c.useState)(!1);(0,c.useEffect)((()=>{v&&(6>=t.columns?n(t.columns,"equal"):6<t.columns?n(6,"equal"):1>=t.columns&&n(1,"equal"),y(!1))}),[t.columns]);let _=()=>{switch(m){case"Desktop":return t.columnsHeightCustom;case"Tablet":return t.columnsHeightCustomTablet;case"Mobile":return t.columnsHeightCustomMobile;default:return}};_=_();const f="top"==r?t.dividerTopType:"bottom"==r?t.dividerBottomType:void 0,C=(e,t)=>{switch(t){case"Desktop":o({hide:e});break;case"Tablet":o({hideTablet:e});break;case"Mobile":o({hideMobile:e})}},E=(e,t)=>{"Tablet"===t?o({reverseColumnsTablet:e}):"Mobile"===t&&o({reverseColumnsMobile:e})};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(b.InspectorControls,null,(0,c.createElement)(p.PanelBody,{className:"o-section-header-panel"},(0,c.createElement)(p.Button,{className:s()("header-tab",{"is-selected":"layout"===h}),onClick:()=>k("layout")},(0,c.createElement)("span",null,(0,c.createElement)(p.Dashicon,{icon:"editor-table"}),(0,l.__)("Layout","otter-blocks"))),(0,c.createElement)(p.Button,{className:s()("header-tab",{"is-selected":"style"===h}),onClick:()=>k("style")},(0,c.createElement)("span",null,(0,c.createElement)(p.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,c.createElement)(p.Button,{className:s()("header-tab",{"is-selected":"advanced"===h}),onClick:()=>k("advanced")},(0,c.createElement)("span",null,(0,c.createElement)(p.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"layout"===h&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Columns & Layout","otter-blocks")},(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Columns","otter-blocks"),value:t.columns,onChange:e=>{6>=e&&o({layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),6<e&&o({layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),1>=e&&o({layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),d(e),y(!0)},min:1,max:6}),(0,c.createElement)(x.Z,{label:(0,l.__)("Layout","otter-blocks"),columns:t.columns,layout:t.layout,layoutTablet:t.layoutTablet,layoutMobile:t.layoutMobile,onClick:e=>{switch(m){case"Desktop":o({layout:e}),n(t.columns,e);break;case"Tablet":o({layoutTablet:e});break;case"Mobile":o({layoutMobile:e})}}})),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Spacing","otter-blocks"),initialOpen:!1},(0,c.createElement)(T.Z,{label:(0,l.__)("Screen Type","otter-blocks"),className:"otter-section-padding-responsive-control"},(0,c.createElement)(z.Z,{field:(()=>{switch(m){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(p.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{switch(m){case"Desktop":return a("padding");case"Tablet":return a("paddingTablet");case"Mobile":return a("paddingMobile");default:return}})(),inputProps:{min:0,max:500},onChange:e=>{switch((0,g.CJ)(e)&&(e=void 0),m){case"Desktop":return o({padding:e});case"Tablet":return o({paddingTablet:e});case"Mobile":return o({paddingMobile:e});default:return}}})),(0,c.createElement)(z.Z,{field:(()=>{switch(m){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(p.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{switch(m){case"Desktop":return a("margin");case"Tablet":return a("marginTablet");case"Mobile":return a("marginMobile");default:return}})(),inputProps:{min:-500,max:500},sides:["top","bottom"],onChange:e=>{switch((0,g.CJ)(e)&&(e=void 0),"object"==typeof e&&(e=Object.fromEntries(Object.entries(e).filter((e=>{let[t,o]=e;return null!==o})))),m){case"Desktop":return o({margin:e});case"Tablet":return o({marginTablet:e});case"Mobile":return o({marginMobile:e});default:return}}})))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Section Structure","otter-blocks"),initialOpen:!1},(0,c.createElement)(z.Z,{field:"columnsWidth",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Maximum Content Width","otter-blocks"),value:a("columnsWidth")||"",allowReset:!0,onChange:e=>{(0<=e&&2400>=e||void 0===e)&&o({columnsWidth:e})},min:0,max:2400})),a("columnsWidth")&&(0,c.createElement)(z.Z,{field:"horizontalAlign",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(p.BaseControl,{label:(0,l.__)("Horizontal Align","otter-blocks")},(0,c.createElement)(P.Z,{value:t.horizontalAlign,options:[{icon:"editor-alignleft",label:(0,l.__)("Left","otter-blocks"),value:"flex-start"},{icon:"editor-aligncenter",label:(0,l.__)("Center","otter-blocks"),value:"center"},{icon:"editor-alignright",label:(0,l.__)("Right","otter-blocks"),value:"flex-end"}],onChange:e=>(e=>{if(t.horizontalAlign===e)return o({horizontalAlign:"unset"});o({horizontalAlign:e})})(e),hideLabels:!0}))),(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Minimum Height","otter-blocks"),value:t.columnsHeight,options:[{label:(0,l.__)("Default","otter-blocks"),value:"auto"},{label:(0,l.__)("Fit to Screen","otter-blocks"),value:"100vh"},{label:(0,l.__)("Custom","otter-blocks"),value:"custom"}],onChange:e=>o({columnsHeight:e})}),"custom"===t.columnsHeight&&(0,c.createElement)(T.Z,{label:(0,l.__)("Custom Height","otter-blocks")},(0,c.createElement)(p.RangeControl,{value:_||"",onChange:e=>{switch(m){case"Desktop":o({columnsHeightCustom:e});break;case"Tablet":o({columnsHeightCustomTablet:e});break;case"Mobile":o({columnsHeightCustomMobile:e})}},min:0,max:1e3}))))||"style"===h&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Background Settings","otter-blocks")},(0,c.createElement)(B.Z,{backgroundType:t.backgroundType,backgroundColor:t.backgroundColor,image:t.backgroundImage,gradient:t.backgroundGradient,focalPoint:t.backgroundPosition,backgroundAttachment:t.backgroundAttachment,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize,changeBackgroundType:e=>o({backgroundType:e}),changeImage:e=>{o({backgroundImage:(0,u.pick)(e,["id","url"])})},removeImage:()=>o({backgroundImage:void 0}),changeColor:e=>o({backgroundColor:e}),changeGradient:e=>o({backgroundGradient:e}),changeBackgroundAttachment:e=>o({backgroundAttachment:e}),changeBackgroundRepeat:e=>o({backgroundRepeat:e}),changeFocalPoint:e=>o({backgroundPosition:e}),changeBackgroundSize:e=>o({backgroundSize:e})})),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Background Overlay","otter-blocks"),initialOpen:!1},(0,c.createElement)(B.Z,{backgroundType:t.backgroundOverlayType,backgroundColor:t.backgroundOverlayColor,image:t.backgroundOverlayImage,gradient:t.backgroundOverlayGradient,focalPoint:t.backgroundOverlayPosition,backgroundAttachment:t.backgroundOverlayAttachment,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,changeBackgroundType:e=>o({backgroundOverlayType:e}),changeImage:e=>{o({backgroundOverlayImage:(0,u.pick)(e,["id","url"])})},removeImage:()=>o({backgroundOverlayImage:void 0}),changeColor:e=>o({backgroundOverlayColor:e}),changeGradient:e=>o({backgroundOverlayGradient:e}),changeBackgroundAttachment:e=>o({backgroundOverlayAttachment:e}),changeBackgroundRepeat:e=>o({backgroundOverlayRepeat:e}),changeFocalPoint:e=>o({backgroundOverlayPosition:e}),changeBackgroundSize:e=>o({backgroundOverlaySize:e})}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Overlay Opacity","otter-blocks"),value:t.backgroundOverlayOpacity,onChange:e=>o({backgroundOverlayOpacity:e}),min:0,max:100}),(0,c.createElement)(M.Z,{label:(0,l.__)("CSS Filters","otter-blocks")},(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.backgroundOverlayFilterBlur,onChange:e=>o({backgroundOverlayFilterBlur:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Brightness","otter-blocks"),value:t.backgroundOverlayFilterBrightness,onChange:e=>o({backgroundOverlayFilterBrightness:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Contrast","otter-blocks"),value:t.backgroundOverlayFilterContrast,onChange:e=>o({backgroundOverlayFilterContrast:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Grayscale","otter-blocks"),value:t.backgroundOverlayFilterGrayscale,onChange:e=>o({backgroundOverlayFilterGrayscale:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Hue","otter-blocks"),value:t.backgroundOverlayFilterHue,onChange:e=>o({backgroundOverlayFilterHue:e}),min:0,max:360}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Saturation","otter-blocks"),value:t.backgroundOverlayFilterSaturate,onChange:e=>o({backgroundOverlayFilterSaturate:e}),min:0,max:100})),(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Blend Mode","otter-blocks"),value:t.backgroundOverlayBlend,options:[{label:(0,l.__)("Normal","otter-blocks"),value:"normal"},{label:(0,l.__)("Multiply","otter-blocks"),value:"multiply"},{label:(0,l.__)("Screen","otter-blocks"),value:"screen"},{label:(0,l.__)("Overlay","otter-blocks"),value:"overlay"},{label:(0,l.__)("Darken","otter-blocks"),value:"darken"},{label:(0,l.__)("Lighten","otter-blocks"),value:"lighten"},{label:(0,l.__)("Color Dodge","otter-blocks"),value:"color-dodge"},{label:(0,l.__)("Color Burn","otter-blocks"),value:"color-burn"},{label:(0,l.__)("Hard Light","otter-blocks"),value:"hard-light"},{label:(0,l.__)("Soft Light","otter-blocks"),value:"soft-light"},{label:(0,l.__)("Difference","otter-blocks"),value:"difference"},{label:(0,l.__)("Exclusion","otter-blocks"),value:"exclusion"},{label:(0,l.__)("Hue","otter-blocks"),value:"hue"},{label:(0,l.__)("Saturation","otter-blocks"),value:"saturation"},{label:(0,l.__)("Color","otter-blocks"),value:"color"},{label:(0,l.__)("Luminosity","otter-blocks"),value:"luminosity"}],onChange:e=>o({backgroundOverlayBlend:e})})),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1},(0,c.createElement)(p.__experimentalBoxControl,{label:(0,l.__)("Border Width","otter-blocks"),values:t.border,inputProps:{min:0,max:500},units:[{value:"px",label:"px"}],onChange:e=>{(0,g.CJ)(e)&&(e=void 0),o({border:e})}}),(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}),(0,c.createElement)(p.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:t.borderRadius,inputProps:{min:0,max:500},units:[{value:"px",label:"px"},{value:"%",label:"%"}],id:"otter-border-raduis-box",onChange:e=>{(0,g.CJ)(e)&&(e=void 0),o({borderRadius:e})}}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:t.boxShadow,onChange:()=>o({boxShadow:!t.boxShadow})}),t.boxShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,c.createElement)(M.Z,{label:(0,l.__)("Border Shadow","otter-blocks")},(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Shape Divider","otter-blocks"),initialOpen:!1,className:"wp-block-themeisle-shape-divider"},(0,c.createElement)(p.ButtonGroup,null,(0,c.createElement)(p.Button,{isSmall:!0,isSecondary:"top"!==r,isPrimary:"top"===r,onClick:()=>i("top")},(0,l.__)("Top","otter-blocks")),(0,c.createElement)(p.Button,{isSmall:!0,isSecondary:"bottom"!==r,isPrimary:"bottom"===r,onClick:()=>i("bottom")},(0,l.__)("Bottom","otter-blocks"))),(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Type","otter-blocks"),value:f,options:[{label:(0,l.__)("None","otter-blocks"),value:"none"},{label:(0,l.__)("Triangle","otter-blocks"),value:"bigTriangle"},{label:(0,l.__)("Right Curve","otter-blocks"),value:"rightCurve"},{label:(0,l.__)("Curve","otter-blocks"),value:"curve"},{label:(0,l.__)("Slant","otter-blocks"),value:"slant"},{label:(0,l.__)("Cloud","otter-blocks"),value:"cloud"}],onChange:e=>{"top"==r?o({dividerTopType:e}):"bottom"==r&&o({dividerBottomType:e})}}),"none"!==f&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:"top"==r?t.dividerTopColor:"bottom"==r?t.dividerBottomColor:void 0,onColorChange:e=>{"top"==r?o({dividerTopColor:e}):"bottom"==r&&o({dividerBottomColor:e})}}),(0,c.createElement)(T.Z,{label:(0,l.__)("Width","otter-blocks")},(0,c.createElement)(p.RangeControl,{value:(()=>{if("top"==r)switch(m){case"Desktop":return t.dividerTopWidth;case"Tablet":return t.dividerTopWidthTablet;case"Mobile":return t.dividerTopWidthMobile}else if("bottom"==r)switch(m){case"Desktop":return t.dividerBottomWidth;case"Tablet":return t.dividerBottomWidthTablet;case"Mobile":return t.dividerBottomWidthMobile}})(),onChange:e=>{if("top"==r)switch(m){case"Desktop":o({dividerTopWidth:e});break;case"Tablet":o({dividerTopWidthTablet:e});break;case"Mobile":o({dividerTopWidthMobile:e})}else if("bottom"==r)switch(m){case"Desktop":o({dividerBottomWidth:e});break;case"Tablet":o({dividerBottomWidthTablet:e});break;case"Mobile":o({dividerBottomWidthMobile:e})}},min:0,max:500})),(0,c.createElement)(T.Z,{label:(0,l.__)("Height","otter-blocks")},(0,c.createElement)(p.RangeControl,{value:(()=>{if("top"==r)switch(m){case"Desktop":return t.dividerTopHeight;case"Tablet":return t.dividerTopHeightTablet;case"Mobile":return t.dividerTopHeightMobile}else if("bottom"==r)switch(m){case"Desktop":return t.dividerBottomHeight;case"Tablet":return t.dividerBottomHeightTablet;case"Mobile":return t.dividerBottomHeightMobile}})(),onChange:e=>{if("top"==r)switch(m){case"Desktop":o({dividerTopHeight:e});break;case"Tablet":o({dividerTopHeightTablet:e});break;case"Mobile":o({dividerTopHeightMobile:e})}else if("bottom"==r)switch(m){case"Desktop":o({dividerBottomHeight:e});break;case"Tablet":o({dividerBottomHeightTablet:e});break;case"Mobile":o({dividerBottomHeightMobile:e})}},min:0,max:500})),"curve"!==f&&"cloud"!==f&&(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Invert Shape Divider","otter-blocks"),checked:(()=>{switch(r){case"top":return t.dividerTopInvert;case"bottom":return t.dividerBottomInvert;default:return}})(),onChange:()=>{switch(r){case"top":o({dividerTopInvert:!t.dividerTopInvert});break;case"bottom":o({dividerBottomInvert:!t.dividerBottomInvert})}}}))))||"advanced"===h&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Responsive","otter-blocks")},(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Hide this section on Desktop devices?","otter-blocks"),checked:t.hide,onChange:e=>C(e,"Desktop")}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Hide this section on Tablet devices?","otter-blocks"),checked:t.hideTablet,onChange:e=>C(e,"Tablet")}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Hide this section on Mobile devices?","otter-blocks"),checked:t.hideMobile,onChange:e=>C(e,"Mobile")}),(0,c.createElement)("hr",null),!t.hideTablet&&"collapsedRows"===t.layoutTablet&&(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Reverse Columns in Tablet devices?","otter-blocks"),checked:t.reverseColumnsTablet,onChange:e=>E(e,"Tablet")}),!t.hideMobile&&"collapsedRows"===t.layoutMobile&&(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Reverse Columns in Mobile devices?","otter-blocks"),checked:t.reverseColumnsMobile,onChange:e=>E(e,"Mobile")})),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Section Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(p.SelectControl,{label:(0,l.__)("HTML Tag","otter-blocks"),value:t.columnsHTMLTag,options:[{label:(0,l.__)("Default (div)","otter-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>o({columnsHTMLTag:e})})))),(0,c.createElement)(S.Z,{value:t.id,onChange:e=>o({id:e})}))},R=o(2902),L=o(5225),H=o(5581);const{attributes:N}=n;var I=[{name:"themeisle-blocks/section-columns-1",description:(0,l.__)("Single column","otter-blocks"),icon:r.colsFull,title:(0,l.__)("Full","otter-blocks"),attributes:{columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"100"}]],scope:["block"],isDefault:!0},{name:"themeisle-blocks/section-columns-equal",description:(0,l.__)("2 equal columns","otter-blocks"),icon:r.cols2Equal,title:(0,l.__)("1:1","otter-blocks"),attributes:{columns:2,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"50"}],["themeisle-blocks/advanced-column",{columnWidth:"50"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-1-2",description:(0,l.__)("1:2 columns","otter-blocks"),icon:r.cols12,title:(0,l.__)("1:2","otter-blocks"),attributes:{columns:2,layout:"oneTwo",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"33.34"}],["themeisle-blocks/advanced-column",{columnWidth:"66.66"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-2-1",description:(0,l.__)("2:1 columns","otter-blocks"),icon:r.cols21,title:(0,l.__)("2:1","otter-blocks"),attributes:{columns:2,layout:"twoOne",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"66.66"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal-3",description:(0,l.__)("3 equal columns","otter-blocks"),icon:r.cols3Equal,title:(0,l.__)("1:1:1","otter-blocks"),attributes:{columns:3,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"33.33"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-1-1-2",description:(0,l.__)("1:1:2 columns","otter-blocks"),icon:r.cols112,title:(0,l.__)("1:1:2","otter-blocks"),attributes:{columns:3,layout:"oneOneTwo",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"50"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-2-1-1",description:(0,l.__)("2:1:1 columns","otter-blocks"),icon:r.cols211,title:(0,l.__)("2:1:1","otter-blocks"),attributes:{columns:3,layout:"twoOneOne",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"50"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal-4",description:(0,l.__)("4 equal columns","otter-blocks"),icon:r.cols4Equal,title:(0,l.__)("1:1:1:1","otter-blocks"),attributes:{columns:4,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}]],scope:["block"]}];const{name:O}=n;(0,a.registerBlockType)(O,{...n,title:(0,l.__)("Section","otter-blocks"),description:(0,l.__)("Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like. Powered by Otter.","otter-blocks"),icon:r.columnsIcon,keywords:["advanced columns","layout","section"],deprecated:_,variations:I,edit:e=>{let{attributes:t,setAttributes:o,clientId:n,name:r}=e;(0,c.useEffect)((()=>{const e=(0,L.WX)(n,N);return()=>e(t.id)}),[t.id]);const{updateBlockAttributes:i,replaceInnerBlocks:d}=(0,w.useDispatch)("core/block-editor"),{sectionBlock:g,isViewportAvailable:h,isPreviewDesktop:k,isPreviewTablet:v,isPreviewMobile:y,children:_,variations:x,defaultVariation:T}=(0,w.useSelect)((e=>{var t;const{getBlock:o}=e("core/block-editor"),{getBlockVariations:l,getBlockType:a,getDefaultBlockVariation:c}=e("core/blocks"),{__experimentalGetPreviewDeviceType:i}=!!e("core/edit-post")&&e("core/edit-post");return{sectionBlock:o(n),children:(null===(t=o(n))||void 0===t?void 0:t.innerBlocks)||[],isViewportAvailable:!!i,isPreviewDesktop:!!i&&"Desktop"===i(),isPreviewTablet:!!i&&"Tablet"===i(),isPreviewMobile:!!i&&"Mobile"===i(),blockType:a(r),defaultVariation:c(r,"block"),variations:l(r,"block").filter((e=>{let{isDefault:t}=e;return!t}))}}),[]),{insertBlock:M,removeBlock:S}=(0,w.useDispatch)("core/block-editor");(0,c.useEffect)((()=>{t.columns!==_.length&&o({columns:_.length})}),[_]);const B=e=>(0,L.Ih)({name:r,field:e,defaultAttributes:N,attributes:t}),z=(0,f.useViewportMatch)("large",">="),P=(0,f.useViewportMatch)("large","<="),I=(0,f.useViewportMatch)("small",">="),O=(0,f.useViewportMatch)("small","<=");let A=z&&!P&&I&&!O,G=!z&&!P&&I&&!O,$=!(z||P||I||O);h&&!$&&(A=k,G=v,$=y);const[Z,F]=(0,c.useState)("top"),D=e=>{let{mobile:t,tablet:o,desktop:l}=e;return $&&t||G&&o||A&&l||void 0},W=D({mobile:t.dividerTopWidthMobile,tablet:t.dividerTopWidthTablet,desktop:t.dividerTopWidth}),U=D({mobile:t.dividerBottomWidthMobile,tablet:t.dividerBottomWidthTablet,desktop:t.dividerBottomWidth}),j=D({mobile:t.dividerTopHeightMobile,tablet:t.dividerTopHeightTablet,desktop:t.dividerTopHeight}),q=D({mobile:t.dividerBottomHeightMobile,tablet:t.dividerBottomHeightTablet,desktop:t.dividerBottomHeight}),J=t.columnsHTMLTag;let K,Q,X,Y,ee,te;var oe,le,ae,ne,re,ce,ie,se,de,me,ue,be,pe,ge,he;A&&(K={paddingTop:B("padding")&&B("padding").top,paddingRight:B("padding")&&B("padding").right,paddingBottom:B("padding")&&B("padding").bottom,paddingLeft:B("padding")&&B("padding").left,marginTop:B("margin")&&B("margin").top,marginBottom:B("margin")&&B("margin").bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustom}px`:t.columnsHeight}),G&&(K={paddingTop:null===(oe=B("paddingTablet"))||void 0===oe?void 0:oe.top,paddingRight:null===(le=B("paddingTablet"))||void 0===le?void 0:le.right,paddingBottom:null===(ae=B("paddingTablet"))||void 0===ae?void 0:ae.bottom,paddingLeft:null===(ne=B("paddingTablet"))||void 0===ne?void 0:ne.left,marginTop:null===(re=B("marginTablet"))||void 0===re?void 0:re.top,marginBottom:null===(ce=B("marginTablet"))||void 0===ce?void 0:ce.bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustomTablet}px`:t.columnsHeight}),$&&(K={paddingTop:null===(ie=B("paddingMobile"))||void 0===ie?void 0:ie.top,paddingRight:null===(se=B("paddingMobile"))||void 0===se?void 0:se.right,paddingBottom:null===(de=B("paddingMobile"))||void 0===de?void 0:de.bottom,paddingLeft:null===(me=B("paddingMobile"))||void 0===me?void 0:me.left,marginTop:null===(ue=B("marginMobile"))||void 0===ue?void 0:ue.top,marginBottom:null===(be=B("marginMobile"))||void 0===be?void 0:be.bottom,minHeight:"custom"===t.columnsHeight?`${t.columnsHeightCustomMobile}px`:t.columnsHeight}),"color"===t.backgroundType&&(Q={backgroundColor:t.backgroundColor}),"image"===t.backgroundType&&(Q={backgroundImage:`url( '${null===(pe=t.backgroundImage)||void 0===pe?void 0:pe.url}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:`${Math.round(100*(null===(ge=t.backgroundPosition)||void 0===ge?void 0:ge.x))}% ${Math.round(100*(null===(he=t.backgroundPosition)||void 0===he?void 0:he.y))}%`,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType&&(Q={backgroundImage:t.backgroundGradient}),t.border&&!(0,u.isEmpty)(t.border)&&(Y={borderTopWidth:t.border.top,borderRightWidth:t.border.right,borderBottomWidth:t.border.bottom,borderLeftWidth:t.border.left,borderStyle:"solid",borderColor:t.borderColor}),t.borderRadius&&!(0,u.isEmpty)(t.borderRadius)&&(ee={borderTopLeftRadius:t.borderRadius.top,borderTopRightRadius:t.borderRadius.right,borderBottomRightRadius:t.borderRadius.bottom,borderBottomLeftRadius:t.borderRadius.left}),!0===t.boxShadow&&(te={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${m()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const ke={...K,...Q,...Y,...ee,...te};var ve,ye,_e;"color"===t.backgroundOverlayType&&(X={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(X={backgroundImage:`url( '${null===(ve=t.backgroundOverlayImage)||void 0===ve?void 0:ve.url}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:`${Math.round(100*(null===(ye=t.backgroundOverlayPosition)||void 0===ye?void 0:ye.x))}% ${Math.round(100*(null===(_e=t.backgroundOverlayPosition)||void 0===_e?void 0:_e.y))}%`,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType&&(X={background:t.backgroundOverlayGradient,opacity:t.backgroundOverlayOpacity/100});const fe={...X,...ee,mixBlendMode:t.backgroundOverlayBlend,filter:`blur( ${t.backgroundOverlayFilterBlur/10}px ) brightness( ${t.backgroundOverlayFilterBrightness/10} ) contrast( ${t.backgroundOverlayFilterContrast/10} ) grayscale( ${t.backgroundOverlayFilterGrayscale/100} ) hue-rotate( ${t.backgroundOverlayFilterHue}deg ) saturate( ${t.backgroundOverlayFilterSaturate/10} )`};let we={};t.columnsWidth&&(we={maxWidth:t.columnsWidth+"px"});const Ce=s()(`has-${t.columns}-columns`,`has-desktop-${t.layout}-layout`,`has-tablet-${t.layoutTablet}-layout`,`has-mobile-${t.layoutMobile}-layout`,`has-vertical-${t.verticalAlign}`,`has-horizontal-${t.horizontalAlign}`,{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},{"has-viewport-desktop":A},{"has-viewport-tablet":G},{"has-viewport-mobile":$}),[Ee,xe]=(0,c.useState)(!1),Te=t.columns?(0,b.useBlockProps)({id:t.id,className:Ce,style:ke}):(0,b.useBlockProps)();return t.columns?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(E,{attributes:t,setAttributes:o}),(0,c.createElement)(V,{attributes:t,setAttributes:o,getValue:B,updateColumnsWidth:(e,t)=>{g.innerBlocks.map(((o,l)=>{i(o.clientId,{columnWidth:C.Z[e][t][l]})}))},dividerViewType:Z,setDividerViewType:F,changeColumnsNumbers:e=>{t.columns<e?(0,u.times)(e-t.columns,(()=>{const e=(0,a.createBlock)("themeisle-blocks/advanced-column");e&&M(e,(null==_?void 0:_.length)||0,n,!1)})):t.columns>e&&_.slice(e).forEach((e=>S(e.clientId,!1)))}}),(0,c.createElement)(J,Te,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:fe}),(0,c.createElement)(R.Z,{type:"top",style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert,width:W,height:j}),(0,c.createElement)("div",{className:"innerblocks-wrap",style:we},(0,c.createElement)(b.InnerBlocks,{allowedBlocks:["themeisle-blocks/advanced-column"],orientation:"horizontal"})),(0,c.createElement)(R.Z,{type:"bottom",style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert,width:U,height:q}))):(0,c.createElement)("div",Te,(0,c.createElement)(p.Placeholder,{label:(0,l.__)("Section","otter-blocks"),instructions:(0,l.__)("Select a layout to start with, or make one yourself.","otter-blocks"),className:"o-section-layout-picker"},(0,c.createElement)(b.__experimentalBlockVariationPicker,{variations:x,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T;e&&(d(n,(0,a.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0),o(e.attributes))},allowSkip:!0}),(0,c.createElement)(p.Tooltip,{text:(0,l.__)("Open Template Library","otter-blocks")},(0,c.createElement)(p.Button,{isPrimary:!0,className:"wp-block-themeisle-template-library",onClick:()=>xe(!0)},(0,c.createElement)(p.Dashicon,{icon:"category"}),(0,l.__)("Template Library","otter-blocks")),Ee&&(0,c.createElement)(H.Z,{clientId:n,close:()=>xe(!1)}))))},save:e=>{let{attributes:t}=e;const o=t.columnsHTMLTag,l=t.hide?"":`has-desktop-${t.layout}-layout`,a=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,n=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,r=s()(`has-${t.columns}-columns`,l,a,n,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},`has-vertical-${t.verticalAlign}`),i=b.useBlockProps.save({id:t.id,className:r});return(0,c.createElement)(o,i,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,c.createElement)(R.Z,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap"},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(R.Z,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}})},9266:function(e,t,o){var l=o(9307),a=o(4184),n=o.n(a),r=o(5736),c=o(5609),i=o(9818),s=o(6993),d=o(340);t.Z=e=>{let{label:t,onClick:o,layout:a,layoutTablet:m,layoutMobile:u,columns:b}=e;const p=(0,i.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]);let g;return"Desktop"===p?g=a:"Tablet"===p?g=m:"Mobile"===p&&(g=u),(0,l.createElement)(s.Z,{label:t,className:"wp-block-themeisle-blocks-advanced-columns-layout-control"},1===b&&(0,l.createElement)(c.Tooltip,{text:(0,r.__)("Single Row","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.colsFull)()))||2===b&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,r.__)("Equal","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.cols2Equal)())),(0,l.createElement)(c.Tooltip,{text:(0,r.__)("1:2","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===g}),onClick:()=>o("oneTwo")},(0,d.cols12)())),(0,l.createElement)(c.Tooltip,{text:(0,r.__)("2:1","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===g}),onClick:()=>o("twoOne")},(0,d.cols21)())),("Mobile"==p||"Tablet"==p)&&(0,l.createElement)(c.Tooltip,{text:(0,r.__)("Collapsed Rows","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===g}),onClick:()=>o("collapsedRows")},(0,d.rowsCollapsed)())))||3===b&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,r.__)("Equal","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.cols3Equal)())),(0,l.createElement)(c.Tooltip,{text:(0,r.__)("1:1:2","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===g}),onClick:()=>o("oneOneTwo")},(0,d.cols112)())),(0,l.createElement)(c.Tooltip,{text:(0,r.__)("2:1:1","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===g}),onClick:()=>o("twoOneOne")},(0,d.cols211)())),(0,l.createElement)(c.Tooltip,{text:(0,r.__)("1:2:1","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===g}),onClick:()=>o("oneTwoOne")},(0,d.cols121)())),(0,l.createElement)(c.Tooltip,{text:(0,r.__)("1:3:1","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===g}),onClick:()=>o("oneThreeOne")},(0,d.cols131)())),("Mobile"==p||"Tablet"==p)&&(0,l.createElement)(c.Tooltip,{text:(0,r.__)("Collapsed Rows","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===g}),onClick:()=>o("collapsedRows")},(0,d.rowsCollapsed)())))||4===b&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,r.__)("Equal","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.cols4Equal)())),("Mobile"==p||"Tablet"==p)&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,r.__)("Two Column Grid","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===g}),onClick:()=>o("twoColumnGrid")},(0,d.colsCollapsed)())),(0,l.createElement)(c.Tooltip,{text:(0,r.__)("Collapsed Rows","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===g}),onClick:()=>o("collapsedRows")},(0,d.rowsCollapsed)()))))||5===b&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,r.__)("Equal","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.cols5Equal)())),("Mobile"==p||"Tablet"==p)&&(0,l.createElement)(c.Tooltip,{text:(0,r.__)("Collapsed Rows","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===g}),onClick:()=>o("collapsedRows")},(0,d.rowsCollapsed)())))||6===b&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,r.__)("Equal","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===g}),onClick:()=>o("equal")},(0,d.cols6Equal)())),("Mobile"==p||"Tablet"==p)&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(c.Tooltip,{text:(0,r.__)("Two Column Grid","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===g}),onClick:()=>o("twoColumnGrid")},(0,d.cols2Grid)())),(0,l.createElement)(c.Tooltip,{text:(0,r.__)("Three Column Grid","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===g}),onClick:()=>o("threeColumnGrid")},(0,d.cols3Grid)())),(0,l.createElement)(c.Tooltip,{text:(0,r.__)("Collapsed Rows","otter-blocks")},(0,l.createElement)(c.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===g}),onClick:()=>o("collapsedRows")},(0,d.rowsCollapsed)())))))}},1598:function(e,t,o){o(9307),o(5736),o(5609),o(340),o(5581)},2902:function(e,t,o){var l=o(9307),a=o(4184),n=o.n(a);t.Z=e=>{let{type:t,front:o,style:a,fill:r,invert:c,width:i,height:s}=e;return"none"!==a&&(0,l.createElement)("div",{className:n()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&i?{transform:i?`scaleX( ${i/100} )`:""}:{}},"bigTriangle"===a&&!1===c&&(0,l.createElement)("svg",{id:"bigTriangle",fill:r,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"bottom"===t})},(0,l.createElement)("path",{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===c&&(0,l.createElement)("svg",{id:"bigTriangle",fill:r,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===t})},(0,l.createElement)("path",{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===c&&(0,l.createElement)("svg",{id:"rightCurve",fill:r,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===t})},(0,l.createElement)("path",{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===c&&(0,l.createElement)("svg",{id:"rightCurve",fill:r,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===t})},(0,l.createElement)("path",{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&(0,l.createElement)("svg",{id:"curve",fill:r,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===t})},(0,l.createElement)("path",{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===c&&(0,l.createElement)("svg",{id:"slant",fill:r,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"bottom"===t})},(0,l.createElement)("path",{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===c&&(0,l.createElement)("svg",{id:"slant",fill:r,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"bottom"===t})},(0,l.createElement)("path",{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&(0,l.createElement)("svg",{id:"cloud",fill:r,viewBox:"0 0 100 100",width:"100%",height:s?`${s}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===t})},(0,l.createElement)("path",{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))}},1700:function(e,t,o){o(1116),o(3716)},7400:function(e,t){t.Z={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"],collapsedRows:["100","100"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"],collapsedRows:["100","100","100"]},4:{equal:["25","25","25","25"],twoColumnGrid:["100","100","100","100"],collapsedRows:["100","100","100","100"]},5:{equal:["20","20","20","20","20"],collapsedRows:["100","100","100","100","100"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"],twoColumnGrid:["100","100","100","100","100","100"],threeColumnGrid:["100","100","100","100","100","100"],collapsedRows:["100","100","100","100","100","100"]}}},5023: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/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":{"facebook":{"type":"boolean","default":true},"twitter":{"type":"boolean","default":true},"linkedin":{"type":"boolean","default":true},"pinterest":{"type":"boolean","default":false},"tumblr":{"type":"boolean","default":false},"reddit":{"type":"boolean","default":false}},"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"}'),r=o(340),c=o(9307),i=o(2175),s=o(5609),d=o(8423),m=o.n(d),u=o(4184),b=o.n(u),p={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"}},g=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"}))},h=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(s.ToolbarGroup,null,Object.keys(p).map((e=>{const a=t[e];return(0,c.createElement)(s.Tooltip,{key:e.label
|
163 |
+
/* translators: %s Social Website */,text:(0,l.sprintf)((0,l.__)("Display %s","otter-blocks"),p[e].label)},(0,c.createElement)(s.Button,{className:b()("components-button","wp-block-themeisle-toolbar",{"is-active":a}),onClick:()=>(e=>{o({[e]:!t[e]})})(e)},(0,c.createElement)(g,{icon:e})))}))))};const{name:k}=n;(0,a.registerBlockType)(k,{...n,title:(0,l.__)("Sharing Icons","otter-blocks"),description:(0,l.__)("Share buttons for your website visitors to share content on any social sharing service. Powered by Otter.","otter-blocks"),icon:r.sharingIcon,keywords:["social media","sharing","icons"],styles:[{name:"default",label:(0,l.__)("Regular","otter-blocks"),isDefault:!0},{name:"icons",label:(0,l.__)("Icons Only","otter-blocks")}],edit:e=>{let{attributes:t,setAttributes:o}=e;const l=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(h,{attributes:t,setAttributes:o}),(0,c.createElement)("div",l,(0,c.createElement)(s.Disabled,null,(0,c.createElement)(m(),{block:"themeisle-blocks/sharing-icons",attributes:{...t}}))))},save:()=>null})},9300: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/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"}'),r=o(9307),c=o(4184),i=o.n(c),s=o(2819),d=o(2175),m=o(5609);const u=e=>{let{attributes:t}=e;return(0,r.createElement)(r.Fragment,null,!t.hideArrows&&(0,r.createElement)("div",{className:"glide__arrows","data-glide-el":"controls"},(0,r.createElement)("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<"},(0,r.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},(0,r.createElement)(m.Path,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"}))),(0,r.createElement)("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">"},(0,r.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},(0,r.createElement)(m.Path,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"})))))},b=e=>{let{attributes:t}=e;return(0,r.createElement)(r.Fragment,null,!t.hideBullets&&(0,r.createElement)("div",{className:"glide__bullets","data-glide-el":"controls[nav]"},t.images.map(((e,t)=>(0,r.createElement)("button",{key:e.id,className:"glide__bullet","data-glide-dir":`=${t}`})))))};var p=e=>{let{attributes:t}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(u,{attributes:t}),(0,r.createElement)(b,{attributes:t}))};const g={id:{type:"string"},align:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},height:{type:"number",default:400}},h=[{attributes:{...(0,s.omit)(g,["align"])},supports:{align:["wide","full"]},save:e=>{let{attributes:t,className:o}=e;return(0,r.createElement)("div",{id:t.id,className:i()("wp-block-themeisle-blocks-slider","glide",o),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":t.autoplay},(0,r.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,r.createElement)("div",{className:"glide__slides",style:{height:`${t.height}px`}},t.images.map((e=>(0,r.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},(0,r.createElement)("figure",null,(0,r.createElement)("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!d.RichText.isEmpty(e.caption)&&(0,r.createElement)(d.RichText.Content,{tagName:"figcaption",value:e.caption})))))),(0,r.createElement)(p,{attributes:t})))}},{attributes:{...(0,s.omit)(g,["align"]),delay:{type:"number",default:2},hideArrows:{type:"boolean",default:!1},hideBullets:{type:"boolean",default:!1}},supports:{align:["wide","full"]},save:e=>{let{attributes:t,className:o}=e;const l=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay;return(0,r.createElement)("div",{id:t.id,className:i()("wp-block-themeisle-blocks-slider","glide",o),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":l,"data-height":`${t.height}px`},(0,r.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,r.createElement)("div",{className:"glide__slides"},t.images.map((e=>(0,r.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},(0,r.createElement)("figure",null,(0,r.createElement)("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!d.RichText.isEmpty(e.caption)&&(0,r.createElement)(d.RichText.Content,{tagName:"figcaption",value:e.caption})))))),(0,r.createElement)(p,{attributes:t})))}}];var k=h;const v={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t}=e[0];t=(0,s.every)(e,["align",t])?t:void 0;const o=(0,s.filter)(e,(e=>{let{url:t}=e;return t}));return(0,a.createBlock)("themeisle-blocks/slider",{images:o.map((e=>{let{id:t,url:o,alt:l,caption:a}=e;return{id:t,url:o,alt:l,caption:a}})),align:t})}},{type:"block",blocks:["core/gallery"],transform:e=>{let{images:t,align:o}=e;return(0,a.createBlock)("themeisle-blocks/slider",{images:t.map((e=>{let{id:t,url:o,alt:l,caption:a}=e;return{id:t,url:o,alt:l,caption:a}})),align:o})}}],to:[{type:"block",blocks:["core/image"],transform:e=>{let{images:t,align:o}=e;return 0<t.length?t.map((e=>{let{id:t,url:l,alt:n,caption:r}=e;return(0,a.createBlock)("core/image",{id:t,url:l,alt:n,caption:r,align:o})})):(0,a.createBlock)("core/image",{align:o})}},{type:"block",blocks:["core/gallery"],transform:e=>{let{images:t,align:o}=e;return(0,a.createBlock)("core/gallery",{images:t.map((e=>{let{id:t,url:o,alt:l,caption:a}=e;return{id:t,url:o,alt:l,caption:a}})),align:o})}}]};var y=v,_=e=>{let{labels:t,icon:o,isAppender:l=!1,value:a={},onSelectImages:n}=e;const c=(0,s.debounce)(n,250);return(0,r.createElement)(d.MediaPlaceholder,{labels:t,icon:o,accept:"image/*",allowedTypes:["image"],isAppender:l,className:"wp-block-themeisle-blocks-slider-uploader",value:a,onSelect:c,multiple:!0})},f=o(2285),w=e=>{let{attributes:t,setAttributes:o,slider:a,changePerView:n,onSelectImages:c}=e;return(0,r.createElement)(d.InspectorControls,null,(0,r.createElement)(m.PanelBody,{title:(0,l.__)("Images","otter-blocks"),initialOpen:!1},(0,r.createElement)(f.Z,{attributes:t,onSelectImages:c})),(0,r.createElement)(m.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},t.images.length&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(m.RangeControl,{label:(0,l.__)("Slides Per Page","otter-blocks"),help:(0,l.__)("A number of visible slides.","otter-blocks"),value:t.perView,onChange:n,min:1,max:(0,s.max)([Math.round(t.images.length/2),1])}),1<t.perView&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(m.RangeControl,{label:(0,l.__)("Gap","otter-blocks"),help:(0,l.__)("A size of the space between slides.","otter-blocks"),value:t.gap,onChange:e=>{o({gap:Number(e)}),a.update({gap:Number(e)})},min:0,max:100}),(0,r.createElement)(m.RangeControl,{label:(0,l.__)("Peek","otter-blocks"),help:(0,l.__)("The value of the future slides which have to be visible in the current slide.","otter-blocks"),value:t.peek,onChange:e=>{o({peek:Number(e)}),a.update({peek:Number(e)})},min:0,max:100})),(0,r.createElement)(m.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("Slider height in pixels.","otter-blocks"),value:t.height,onChange:e=>{o({height:Number(e)})},min:100,max:1400}),(0,r.createElement)(m.ToggleControl,{label:(0,l.__)("Autoplay","otter-blocks"),help:(0,l.__)("Autoplay slider in the front.","otter-blocks"),checked:t.autoplay,onChange:e=>{o({autoplay:e})}}),t.autoplay&&(0,r.createElement)(m.RangeControl,{label:(0,l.__)("Delay","otter-blocks"),help:(0,l.__)("Delay in slide change (in seconds).","otter-blocks"),value:t.delay,onChange:e=>{o({delay:e})},min:1,max:10}),(0,r.createElement)(m.ToggleControl,{label:(0,l.__)("Hide Arrows","otter-blocks"),help:(0,l.__)("Hide navigation arrows.","otter-blocks"),checked:t.hideArrows,onChange:e=>{o({hideArrows:e})}}),(0,r.createElement)(m.ToggleControl,{label:(0,l.__)("Hide Bullets","otter-blocks"),help:(0,l.__)("Hide navigation bullets.","otter-blocks"),checked:t.hideBullets,onChange:e=>{o({hideBullets:e})}}))))},C=o(1984),E=o(4310),x=o(5024),T=o(7231),M=e=>{let{images:t,image:o,index:a,isFirstItem:n,isLastItem:c,isSelected:u,setAttributes:b,setSelectedImage:p}=e;const g=(e,o)=>{const l=[...t];l.splice(o,1,t[e]),l.splice(e,1,t[o]),p(o),b({images:l})};return(0,r.createElement)("div",{className:i()("wp-block-themeisle-blocks-slider-item-wrapper glide__slide",{"is-selected":u}),tabIndex:"0",onClick:()=>p(o.id),onFocus:()=>p(o.id)},(0,r.createElement)("figure",null,(0,r.createElement)("img",{key:o.id,className:"wp-block-themeisle-blocks-slider-item",src:o.url,alt:o.alt,title:o.alt,"data-id":o.id}),u&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-move-menu"},(0,r.createElement)(m.Button,{icon:(0,r.createElement)(C.Z,{icon:E.Z}),label:(0,l.__)("Move image backward","otter-blocks"),showTooltip:!0,onClick:n?void 0:()=>{0!==a&&g(a,a-1)},className:"wp-block-themeisle-blocks-slider-item-move-backward","aria-disabled":n,disabled:!u}),(0,r.createElement)(m.Button,{icon:(0,r.createElement)(C.Z,{icon:x.Z}),label:(0,l.__)("Move image forward","otter-blocks"),showTooltip:!0,onClick:c?void 0:()=>{a!==t.length-1&&g(a,a+1)},className:"wp-block-themeisle-blocks-slider-item-move-forward","aria-disabled":c,disabled:!u})),(0,r.createElement)("div",{className:"wp-block-themeisle-blocks-slider-item-delete-menu"},(0,r.createElement)(m.Button,{icon:(0,r.createElement)(C.Z,{icon:T.Z}),label:(0,l.__)("Remove image","otter-blocks"),showTooltip:!0,onClick:()=>{const e=(0,s.filter)(t,((e,t)=>a!==t));p(null),b({images:e})},className:"wp-block-themeisle-blocks-slider-item-delete"}))),(u||!d.RichText.isEmpty(o.caption))&&(0,r.createElement)(d.RichText,{tagName:"figcaption",placeholder:u?(0,l.__)("Write caption…","otter-blocks"):null,value:o.caption,onChange:e=>{const o=[...t];o[a].caption=e,b({images:o})},multiline:!1})))},S=o(5225);const{attributes:B}=n,z={root:null,rootMargin:"0px",threshold:[0]};const{name:P}=n;(0,a.registerBlockType)(P,{...n,title:(0,l.__)("Slider","otter-blocks"),description:(0,l.__)("Minimal image slider to showcase beautiful images. Powered by Otter.","otter-blocks"),icon:"images-alt2",keywords:["slider","gallery","carousel"],deprecated:k,transforms:y,edit:e=>{let{attributes:t,setAttributes:o,clientId:a,isSelected:n,toggleSelection:c}=e;const u=(0,r.useRef)(null);(0,r.useEffect)((()=>{const e=(0,S.WX)(a,B);return()=>{e(t.id)}}),[t.id]),(0,r.useEffect)((()=>{const e=document.querySelector(`#${t.id}`);var o;if(e)return u.current=new IntersectionObserver((o=>{o.forEach((o=>{var l;o.isIntersecting&&0<=o.intersectionRect.height&&t.images.length&&(k(),null===(l=u.current)||void 0===l||l.unobserve(e))}))}),z),null===(o=u.current)||void 0===o||o.observe(e),()=>{t.images.length&&null!==b.current&&b.current.destroy()}}),[t.id]),(0,r.useEffect)((()=>{t.images.length&&(h(null),null!==b.current&&b.current.destroy(),k())}),[n,t.align]),(0,r.useEffect)((()=>{t.images.length&&t.perView>t.images.length&&y((0,s.max)([Math.round(t.images.length/2),1]))}),[t.images]);const b=(0,r.useRef)(null),[g,h]=(0,r.useState)(null),k=()=>{b.current=new window.Glide(`#${t.id}`,{type:"carousel",keyboard:!1,perView:t.perView,gap:t.gap,peek:t.peek,autoplay:!1,breakpoints:{800:{perView:1,peek:0,gap:0}}}).mount()},v=e=>{o({images:e.map((e=>({id:e.id,url:e.url,alt:e.alt,caption:e.caption})))}),null!==b.current&&b.current.destroy(),k()},y=e=>{o({perView:Number(e)}),b.current.update({perView:Number(e)}),1===e&&(o({gap:0,peek:0}),b.current.update({gap:0,peek:0}))},f=(0,d.useBlockProps)();return Array.isArray(t.images)&&!t.images.length?(0,r.createElement)("div",f,(0,r.createElement)(_,{labels:{title:(0,l.__)("Slider","otter-blocks"),instructions:(0,l.__)("Drag images, upload new ones or select files from your library.","otter-blocks")},icon:"images-alt2",onSelectImages:v})):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(w,{attributes:t,setAttributes:o,slider:b.current,changePerView:y,onSelectImages:v}),(0,r.createElement)("div",f,(0,r.createElement)(m.ResizableBox,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{c(!1)},onResizeStop:(e,l,a,n)=>{o({height:parseInt(t.height+n.height,10)}),c(!0)},className:i()("wp-block-themeisle-blocks-slider-resizer",{"is-focused":n})},(0,r.createElement)("div",{id:t.id,className:"glide"},(0,r.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,r.createElement)("div",{className:"glide__slides",style:{height:`${t.height}px`}},t.images.map(((e,l)=>(0,r.createElement)(M,{key:e.url,images:t.images,image:e,index:l,isFirstItem:0===l,isLastItem:l+1===t.images.length,isSelected:n&&e.id===g,setAttributes:o,setSelectedImage:h})))),(0,r.createElement)(p,{attributes:t})))),n&&(0,r.createElement)(_,{labels:{title:"",instructions:""},icon:null,onSelectImages:v,isAppender:!0,value:t.images})))},save:e=>{let{attributes:t}=e;const o=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay,l=d.useBlockProps.save({id:t.id,className:"glide","data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":o,"data-height":`${t.height}px`,"data-hide-arrows":t.hideArrows});return(0,r.createElement)("div",l,(0,r.createElement)("div",{className:"glide__track","data-glide-el":"track"},(0,r.createElement)("div",{className:"glide__slides"},t.images.map((e=>(0,r.createElement)("div",{key:e.id,className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},(0,r.createElement)("figure",null,(0,r.createElement)("img",{className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!d.RichText.isEmpty(e.caption)&&(0,r.createElement)(d.RichText.Content,{tagName:"figcaption",value:e.caption})))))),(0,r.createElement)(b,{attributes:t})))}})},4925:function(e,t,o){o(8493),o(1131),o(1256)},8493:function(e,t,o){var l=o(5736),a=o(4981),n=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"}'),r=o(340),c=o(9307),i=o(2175);const s=[["themeisle-blocks/advanced-heading",{content:(0,l.__)("Basic","otter-blocks"),align:"center",tag:"h3",fontSize:24}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("$9.99","otter-blocks"),align:"center",tag:"h4",fontSize:36,fontFamily:"Roboto Slab",fontVariant:"normal"}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Per Month","otter-blocks"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("First Feature","otter-blocks"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Second Feature","otter-blocks"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Last Feature","otter-blocks"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:(0,l.__)("Buy Now","otter-blocks"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]];const{name:d}=n;(0,a.registerBlockType)(d,{...n,title:(0,l.__)("Pricing","otter-blocks"),description:(0,l.__)("Pricing tables are a critical part in showcasing your services, prices and overall offerings. Powered by Otter.","otter-blocks"),icon:r.pricingIcon,keywords:["pricing","table","money"],edit:()=>{const e=(0,i.useBlockProps)();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks,{template:s}))},save:()=>{const e=i.useBlockProps.save();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks.Content,null))}})},1131:function(e,t,o){var l=o(5736),a=o(4981),n=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"}'),r=o(340),c=o(9307),i=o(2175);const s=[["themeisle-blocks/font-awesome-icons",{fontSize:62,prefix:"fab",icon:"angellist"}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Basic","otter-blocks"),align:"center",tag:"h4",marginBottom:20}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Lorem ipsum dolor sit amet elit do, consectetur adipiscing, sed eiusmod tempor incididunt ut labore et dolore magna aliqua.","otter-blocks"),align:"center",color:"#999999",tag:"p",fontSize:14,marginBottom:20}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:(0,l.__)("Know More","otter-blocks"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]];const{name:d}=n;(0,a.registerBlockType)(d,{...n,title:(0,l.__)("Service","otter-blocks"),description:(0,l.__)("Use this Service block to showcase services your website offers. Powered by Otter.","otter-blocks"),icon:r.servicesIcon,keywords:["services","icon","features"],edit:()=>{const e=(0,i.useBlockProps)();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks,{template:s}))},save:()=>{const e=i.useBlockProps.save();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks.Content,null))}})},1256:function(e,t,o){var l=o(5736),a=o(4981),n=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"}'),r=o(340),c=o(9307),i=o(2175);const s=[["core/image",{align:"center"}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("John Doe","otter-blocks"),align:"center",fontSize:24,tag:"h3",marginTop:25,marginBottom:10,marginTopTablet:25,marginTopMobile:25}],["themeisle-blocks/advanced-heading",{content:(0,l.__)("Jedi Master","otter-blocks"),align:"center",fontSize:14,tag:"h4",marginTop:10,marginBottom:10}],["themeisle-blocks/advanced-heading",{content:(0,l.__)('"What is the point of being alive if you don’t at least try to do something remarkable?"',"otter-blocks"),align:"center",color:"#999999",tag:"p",fontSize:14,marginTop:10,marginBottom:20}]];const{name:d}=n;(0,a.registerBlockType)(d,{...n,title:(0,l.__)("Testimonials","otter-blocks"),description:(0,l.__)("Display kudos from customers and clients and display them on your website. Powered by Otter.","otter-blocks"),icon:r.testimonialsIcon,keywords:["testimonials","quotes","business"],edit:()=>{const e=(0,i.useBlockProps)();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks,{template:s}))},save:()=>{const e=i.useBlockProps.save();return(0,c.createElement)("div",e,(0,c.createElement)(i.InnerBlocks.Content,null))}})},9845:function(e,t,o){var l=o(2553),a=o(5736),n=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/tabs","title":"Tabs","category":"themeisle-blocks","description":"Organize and allow navigation between groups of content with Tabs block. Powered by Otter.","keywords":["media","tabs","select"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"tabColor":{"type":"string"},"borderColor":{"type":"string"},"borderWidth":{"type":"number"},"activeTitleColor":{"type":"string"}},"supports":{"align":["left","center","right"]},"editorStyle":"otter-tabs-editor","style":"otter-tabs-style","script":"otter-tabs"}'),c=o(9307),i=o(5117),s=o(4184),d=o.n(s),m=o(5711),u=o(2175),b=o(5609),p=o(9818),g=o(1286);const h=(0,g.W6)((()=>(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__drag",tabIndex:"0"},(0,c.createElement)("span",null)))),k=(0,g.W8)((e=>{let{tab:t,deleteTab:o,selectTab:l}=e;return(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-inspector-tab-option"},(0,c.createElement)(h,null),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__name"},t.attributes.title||(0,a.__)("Untitled Tab","otter-blocks")),(0,c.createElement)(b.Button,{icon:"edit",label:(0,a.__)("Edit Tab","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__actions",onClick:()=>l(t.clientId)}),(0,c.createElement)(b.Button,{icon:"no-alt",label:(0,a.__)("Remove Tab","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-tabs-inspector-tab-option__actions",onClick:()=>o(t.clientId)}))}));var v=e=>{var t;let{attributes:o,setAttributes:l,children:n,deleteTab:r,selectTab:i,addTab:s,moveTab:d}=e;const[m,h]=(0,c.useState)(null===(t=n.find((e=>!0===e.attributes.defaultOpen)))||void 0===t?void 0:t.clientId),{updateBlockAttributes:v}=(0,p.useDispatch)("core/block-editor"),{getBlock:y}=(0,p.useSelect)("core/block-editor");(0,c.useEffect)((()=>{var e;h(null===(e=n.find((e=>!0===e.attributes.defaultOpen)))||void 0===e?void 0:e.clientId)}),[n]);const _=e=>{!0===y(e).attributes.defaultOpen&&v(n[0].clientId,{defaultOpen:!0}),r(e)},f=(0,g.JN)((e=>{let{items:t}=e;return(0,c.createElement)("div",null,t.map(((e,t)=>(0,c.createElement)(k,{key:e.clientId,tab:e,index:t,deleteTab:_,selectTab:i}))))})),w=n.map(((e,t)=>({label:`${t+1}. ${e.attributes.title||(0,a.__)("Untitled Tab","otter-blocks")}`,value:e.clientId})));return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(b.PanelBody,{title:(0,a.__)("Tabs Management","otter-blocks")},(0,c.createElement)("p",null,(0,a.__)("Press and hold to use drag and drop to sort the tabs","otter-blocks")),0<(null==n?void 0:n.length)&&(0,c.createElement)(f,{items:n,onSortEnd:e=>{let{oldIndex:t,newIndex:o}=e;d(n[t].clientId,o)},useDragHandle:!0,axis:"y",lockAxis:"y"}),(0,c.createElement)(b.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-tabs-inspector-add-tab",onClick:s},(0,a.__)("Add Tab","otter-blocks")),(0,c.createElement)(b.SelectControl,{label:(0,a.__)("Initial Tab","otter-blocks"),value:m,options:w,onChange:e=>{n.forEach(((e,t)=>{v(n[t].clientId,{defaultOpen:!1})})),v(e,{defaultOpen:!0}),h(e)}})),(0,c.createElement)(b.PanelBody,{title:(0,a.__)("Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.RangeControl,{label:(0,a.__)("Border Width","otter-blocks"),value:o.borderWidth,onChange:e=>{l({borderWidth:Number(e)})},min:0,max:5})),(0,c.createElement)(u.PanelColorSettings,{title:(0,a.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:o.activeTitleColor,onChange:e=>{l({activeTitleColor:e})},label:(0,a.__)("Active Title Color","otter-blocks")},{value:o.tabColor,onChange:e=>{l({tabColor:e})},label:(0,a.__)("Background","otter-blocks")},{value:o.borderColor,onChange:e=>{l({borderColor:e})},label:(0,a.__)("Border Color","otter-blocks")}]},(0,c.createElement)(u.ContrastChecker,{textColor:o.activeTitleColor,backgroundColor:o.tabColor})))},y=o(4688),_=o(4310),f=o(5024),w=e=>{let{children:t,selectedTab:o,moveTab:l,selectTab:n}=e;const r=null==t?void 0:t.findIndex((e=>{let{clientId:t}=e;return t===o})),i=e=>{switch(e){case"left":l(o,r-1);break;case"right":l(o,r+1)}};return(0,c.createElement)(u.BlockControls,null,(0,c.createElement)(b.ToolbarGroup,{label:(0,a.__)("Edit","otter-blocks")},(0,c.createElement)(b.ToolbarButton,{label:(0,a.__)("Edit tab","otter-blocks"),icon:y.Z,iconSize:24,className:"wp-block-themeisle-blocks-tabs-toolbar-edit",onClick:()=>n(o)})),(0,c.createElement)(b.ToolbarGroup,{label:(0,a.__)("Movement","otter-blocks")},(0,c.createElement)(b.ToolbarButton,{label:(0,a.__)("Move tab left","otter-blocks"),icon:_.Z,iconSize:24,disabled:0===r,className:"wp-block-themeisle-blocks-tabs-toolbar-mover",onClick:()=>i("left")}),(0,c.createElement)(b.ToolbarButton,{label:(0,a.__)("Move tab right","otter-blocks"),icon:f.Z,iconSize:24,disabled:(null==t?void 0:t.length)-1===r,className:"wp-block-themeisle-blocks-tabs-toolbar-mover",onClick:()=>i("right")})))},C=o(5225);const{attributes:E}=r;const{name:x}=r;(0,n.registerBlockType)(x,{...r,title:(0,a.__)("Tabs","otter-blocks"),description:(0,a.__)("Organize and allow navigation between groups of content with Tabs block. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["media","tabs","select"],edit:e=>{var t;let{attributes:o,setAttributes:l,isSelected:r,clientId:s}=e;(0,c.useEffect)((()=>{const e=(0,C.WX)(s,E);return()=>e(o.id)}),[o.id]);const g=(0,c.useRef)(null),h=(0,p.useSelect)((e=>{const{getBlock:t}=e("core/block-editor");return t(s).innerBlocks}),[]),[k,y]=(0,c.useState)(null===(t=h.find((e=>!0===e.attributes.defaultOpen)))||void 0===t?void 0:t.clientId),{insertBlock:_,removeBlock:f,selectBlock:x,moveBlockToPosition:T,updateBlockAttributes:M}=(0,p.useDispatch)("core/block-editor"),S=e=>{g.current&&(h.forEach((t=>{const o=g.current.querySelector(`#block-${t.clientId} .wp-block-themeisle-blocks-tabs-item__content`);null==o||o.classList.toggle("active",t.clientId===e)})),y(e))};(0,c.useEffect)((()=>{S(k)}),[]),(0,c.useEffect)((()=>{0<(null==h?void 0:h.length)&&(void 0!==k&&null!=h&&h.some((e=>e.clientId===k))||S(h[0].clientId))}),[k,h]);const B=e=>{if(0<(null==h?void 0:h.length)){const t=h.find((t=>t.clientId===e));x(t.clientId)}},z=(e,t)=>{var o;const l=null===(o=h.find((t=>t.clientId===e)))||void 0===o?void 0:o.clientId;l&&T(l,s,s,t)},P=()=>{const e=(0,n.createBlock)("themeisle-blocks/tabs-item");_(e,(null==h?void 0:h.length)||0,s,!1)},V=m.iv`
|
164 |
--borderWidth: ${void 0!==o.borderWidth?o.borderWidth:3}px;
|
165 |
--borderColor: ${o.borderColor};
|
166 |
--activeTitleColor: ${o.activeTitleColor};
|
170 |
width: 30px;
|
171 |
height: 30px;
|
172 |
align-items: center;
|
|