Version Description
Download this release
Release Info
Developer | themeisle |
Plugin | Gutenberg Blocks and Template Library by Otter |
Version | 1.5.4 |
Comparing to | |
See all releases |
Code changes from version 1.5.3 to 1.5.4
- CHANGELOG.md +19 -0
- build/build.js +2 -2
- class-otter-blocks.php +22 -3
- otter-blocks.php +2 -2
- readme.md +22 -0
- readme.txt +22 -0
- vendor/autoload.php +1 -1
- vendor/codeinwp/gutenberg-blocks/CHANGELOG.md +18 -0
- vendor/codeinwp/gutenberg-blocks/assets/static/deprecated.css +31 -7
- vendor/codeinwp/gutenberg-blocks/build/blocks.js +1 -1
CHANGELOG.md
CHANGED
@@ -1,3 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
##### [Version 1.5.3](https://github.com/Codeinwp/otter-blocks/compare/v1.5.2...v1.5.3) (2020-04-10)
|
2 |
|
3 |
- Remove Icons from Range Controls
|
1 |
+
##### [Version 1.5.4](https://github.com/Codeinwp/otter-blocks/compare/v1.5.3...v1.5.4) (2020-05-26)
|
2 |
+
|
3 |
+
- Use WP File System in Template Import
|
4 |
+
- Fix CSS Regeneration
|
5 |
+
- Add TinyMCE in Map Marker
|
6 |
+
- Use ServerSideLoader in Author & Sharing Blocks
|
7 |
+
- Fix Posts Block for Gutenberg 8.0
|
8 |
+
- Display template name in Template Library
|
9 |
+
- Add AMP Support to Slider Block
|
10 |
+
- Remove Section Outline
|
11 |
+
- Add AMP Support to Google Maps Block
|
12 |
+
- Fix Horizontal/Vertical Alignment
|
13 |
+
- Add Template Preview in Template Library
|
14 |
+
- Fix issue with Color resetting in Button Group & Section
|
15 |
+
- Fix Font Awesome not loading on Index Pages
|
16 |
+
- Add two new templates
|
17 |
+
- Fix SVG issue in Slider & Section Block
|
18 |
+
- Add Menu Icons Module
|
19 |
+
|
20 |
##### [Version 1.5.3](https://github.com/Codeinwp/otter-blocks/compare/v1.5.2...v1.5.3) (2020-04-10)
|
21 |
|
22 |
- Remove Icons from Range Controls
|
build/build.js
CHANGED
@@ -33,7 +33,7 @@
|
|
33 |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
34 |
* SOFTWARE.
|
35 |
*/
|
36 |
-
var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var r=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),o))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+o)?e:l(s(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),p=n&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?u:10===e?p:u||p}function d(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?d(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,r=n?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(r,0);var a,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||o.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&d(a.firstElementChild)!==a?d(l):l;var c=h(e);return c.host?m(c.host,t):m(e,h(t).host)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"===o||"HTML"===o){var r=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||r;return i[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=y(t,"top"),r=y(t,"left"),i=n?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=r*i,e.right+=r*i,e}function b(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+o+"Width"])}function g(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,o=f(10)&&getComputedStyle(n);return{height:g("Height",t,n,o),width:g("Width",t,n,o)}}var E=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},O=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),S=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function x(e){return k({},e,{right:e.left+e.width,bottom:e.top+e.height})}function P(e){var t={};try{if(f(10)){t=e.getBoundingClientRect();var n=y(e,"top"),o=y(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?w(e.ownerDocument):{},s=i.width||e.clientWidth||r.width,l=i.height||e.clientHeight||r.height,c=e.offsetWidth-s,u=e.offsetHeight-l;if(c||u){var p=a(e);c-=b(p,"x"),u-=b(p,"y"),r.width-=c,r.height-=u}return x(r)}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=f(10),r="HTML"===t.nodeName,i=P(e),s=P(t),c=l(e),u=a(t),p=parseFloat(u.borderTopWidth),d=parseFloat(u.borderLeftWidth);n&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=x({top:i.top-s.top-p,left:i.left-s.left-d,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!o&&r){var m=parseFloat(u.marginTop),y=parseFloat(u.marginLeft);h.top-=p-m,h.bottom-=p-m,h.left-=d-y,h.right-=d-y,h.marginTop=m,h.marginLeft=y}return(o&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(h=v(h,t)),h}function N(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=C(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:y(n),s=t?0:y(n,"left"),l={top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:r,height:i};return x(l)}function T(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&T(n)}function j(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function I(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=r?j(e):m(e,c(t));if("viewport"===o)i=N(a,r);else{var u=void 0;"scrollParent"===o?"BODY"===(u=l(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===o?e.ownerDocument.documentElement:o;var p=C(u,a,r);if("HTML"!==u.nodeName||T(a))i=p;else{var f=w(e.ownerDocument),d=f.height,h=f.width;i.top+=p.top-p.marginTop,i.bottom=d+p.top,i.left+=p.left-p.marginLeft,i.right=h+p.left}}var y="number"==typeof(n=n||0);return i.left+=y?n:n.left||0,i.top+=y?n:n.top||0,i.right-=y?n:n.right||0,i.bottom-=y?n:n.bottom||0,i}function R(e){return e.width*e.height}function M(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=I(n,o,i,r),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return k({key:e},s[e],{area:R(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,p=e.split("-")[1];return u+(p?"-"+p:"")}function L(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=o?j(t):m(t,c(n));return C(n,r,o)}function _(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function A(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function D(e,t,n){n=n.split("-")[0];var o=_(e),r={width:o.width,height:o.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return r[a]=t[a]+t[l]/2-o[l]/2,r[s]=n===s?t[s]-o[c]:t[A(s)],r}function F(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function B(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=F(e,(function(e){return e[t]===n}));return e.indexOf(o)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=x(t.offsets.popper),t.offsets.reference=x(t.offsets.reference),t=n(t,e))})),t}function W(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=M(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=D(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=B(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function z(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function H(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var r=t[o],i=r?""+r+n:e;if(void 0!==document.body.style[i])return i}return null}function U(){return this.state.isDestroyed=!0,z(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[H("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(e){var t=e.ownerDocument;return t?t.defaultView:window}function G(e,t,n,o){n.updateBound=o,q(e).addEventListener("resize",n.updateBound,{passive:!0});var r=l(e);return function e(t,n,o,r){var i="BODY"===t.nodeName,a=i?t.ownerDocument.defaultView:t;a.addEventListener(n,o,{passive:!0}),i||e(l(a.parentNode),n,o,r),r.push(a)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function V(){this.state.eventsEnabled||(this.state=G(this.reference,this.options,this.state,this.scheduleUpdate))}function $(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,q(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Y(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function K(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Y(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var X=n&&/Firefox/i.test(navigator.userAgent);function J(e,t,n){var o=F(e,(function(e){return e.name===t})),r=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));if(!r){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return r}var Z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Q=Z.slice(3);function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(e),o=Q.slice(n+1).concat(Q.slice(0,n));return t?o.reverse():o}var te="flip",ne="clockwise",oe="counterclockwise";function re(e,t,n,o){var r=[0,0],i=-1!==["right","left"].indexOf(o),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(F(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,o){var r=(1===o?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],a=r[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=o}return x(s)[t]/100*i}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i}return i}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,o){Y(n)&&(r[t]+=n*("-"===e[o-1]?-1:1))}))})),r}var ie={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var r=e.offsets,i=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:S({},l,i[l]),end:S({},l,i[l]+i[c]-a[c])};e.offsets.popper=k({},a,u[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,r=e.offsets,i=r.popper,a=r.reference,s=o.split("-")[0],l=void 0;return l=Y(+n)?[+n,0]:re(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||d(e.instance.popper);e.instance.reference===n&&(n=d(n));var o=H("transform"),r=e.instance.popper.style,i=r.top,a=r.left,s=r[o];r.top="",r.left="",r[o]="";var l=I(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=i,r.left=a,r[o]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,p={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),S({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(o=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),S({},n,o)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=k({},u,p[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<i(o[l])&&(e.offsets.popper[l]=i(o[l])-n[c]),n[l]>i(o[s])&&(e.offsets.popper[l]=i(o[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!J(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,s=i.popper,l=i.reference,c=-1!==["left","right"].indexOf(r),u=c?"height":"width",p=c?"Top":"Left",f=p.toLowerCase(),d=c?"left":"top",h=c?"bottom":"right",m=_(o)[u];l[h]-m<s[f]&&(e.offsets.popper[f]-=s[f]-(l[h]-m)),l[f]+m>s[h]&&(e.offsets.popper[f]+=l[f]+m-s[h]),e.offsets.popper=x(e.offsets.popper);var y=l[f]+l[u]/2-m/2,v=a(e.instance.popper),b=parseFloat(v["margin"+p]),g=parseFloat(v["border"+p+"Width"]),w=y-e.offsets.popper[f]-b-g;return w=Math.max(Math.min(s[u]-m,w),0),e.arrowElement=o,e.offsets.arrow=(S(n={},f,Math.round(w)),S(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(z(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=I(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],r=A(o),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case te:a=[o,r];break;case ne:a=ee(o);break;case oe:a=ee(o,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(o!==s||a.length===l+1)return e;o=e.placement.split("-")[0],r=A(o);var c=e.offsets.popper,u=e.offsets.reference,p=Math.floor,f="left"===o&&p(c.right)>p(u.left)||"right"===o&&p(c.left)<p(u.right)||"top"===o&&p(c.bottom)>p(u.top)||"bottom"===o&&p(c.top)<p(u.bottom),d=p(c.left)<p(n.left),h=p(c.right)>p(n.right),m=p(c.top)<p(n.top),y=p(c.bottom)>p(n.bottom),v="left"===o&&d||"right"===o&&h||"top"===o&&m||"bottom"===o&&y,b=-1!==["top","bottom"].indexOf(o),g=!!t.flipVariations&&(b&&"start"===i&&d||b&&"end"===i&&h||!b&&"start"===i&&m||!b&&"end"===i&&y),w=!!t.flipVariationsByContent&&(b&&"start"===i&&h||b&&"end"===i&&d||!b&&"start"===i&&y||!b&&"end"===i&&m),E=g||w;(f||v||E)&&(e.flipped=!0,(f||v)&&(o=a[l+1]),E&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=o+(i?"-"+i:""),e.offsets.popper=k({},e.offsets.popper,D(e.instance.popper,e.offsets.reference,e.placement)),e=B(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=i[n]-(s?r[a?"width":"height"]:0),e.placement=A(t),e.offsets.popper=x(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!J(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=F(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,r=e.offsets.popper,i=F(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=d(e.instance.popper),l=P(s),c={position:r.position},u=function(e,t){var n=e.offsets,o=n.popper,r=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(r.width),c=i(o.width),u=-1!==["left","right"].indexOf(e.placement),p=-1!==e.placement.indexOf("-"),f=t?u||p||l%2==c%2?i:a:s,d=t?i:s;return{left:f(l%2==1&&c%2==1&&!p&&t?o.left-1:o.left),top:d(o.top),bottom:d(o.bottom),right:f(o.right)}}(e,window.devicePixelRatio<2||!X),p="bottom"===n?"top":"bottom",f="right"===o?"left":"right",h=H("transform"),m=void 0,y=void 0;if(y="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&h)c[h]="translate3d("+m+"px, "+y+"px, 0)",c[p]=0,c[f]=0,c.willChange="transform";else{var v="bottom"===p?-1:1,b="right"===f?-1:1;c[p]=y*v,c[f]=m*b,c.willChange=p+", "+f}var g={"x-placement":e.placement};return e.attributes=k({},g,e.attributes),e.styles=k({},c,e.styles),e.arrowStyles=k({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return K(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&K(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,r){var i=L(r,t,e,n.positionFixed),a=M(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),K(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ae=function(){function e(t,n){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};E(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=r(this.update.bind(this)),this.options=k({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(k({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){o.options.modifiers[t]=k({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return k({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&i(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return O(e,[{key:"update",value:function(){return W.call(this)}},{key:"destroy",value:function(){return U.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return $.call(this)}}]),e}();ae.Utils=("undefined"!=typeof window?window:e).PopperUtils,ae.placements=Z,ae.Defaults=ie,t.a=ae}).call(this,n(13))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n=new Error("Element already at target scroll position"),o=new Error("Scroll cancelled"),r=Math.min,i=Date.now;function a(e){return function(t,a,c,u){"function"==typeof(c=c||{})&&(u=c,c={}),"function"!=typeof u&&(u=l);var p=i(),f=t[e],d=c.ease||s,h=isNaN(c.duration)?350:+c.duration,m=!1;return f===a?u(n,t[e]):requestAnimationFrame((function n(s){if(m)return u(o,t[e]);var l=i(),c=r(1,(l-p)/h),y=d(c);t[e]=y*(a-f)+f,c<1?requestAnimationFrame(n):requestAnimationFrame((function(){u(null,t[e])}))})),function(){m=!0}}}function s(e){return.5*(1-Math.cos(Math.PI*e))}function l(){}e.exports={left:a("scrollLeft"),top:a("scrollTop")}},function(e,t,n){"use strict";(function(e){var o=n(1),r=n.n(o),i=n(0),a=n.n(i),s=n(11),l=n.n(s),c=n(12),u=n(3),p=n.n(u),f=n(2),d=n.n(f),h=n(5),m=n.n(h),y=n(4),v=n.n(y),b=n(8);function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?T(e):t}var I={flip:{padding:20},preventOverflow:{padding:10}},R={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},M=n.n(b).a.canUseDOM,L=void 0!==v.a.createPortal;function _(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function A(e){var t=e.title,n=e.data,o=e.warn,r=void 0!==o&&o,i=e.debug,a=void 0!==i&&i,s=r?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){d.a.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd())}function D(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,o)}function F(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,o)}function B(){}var W=function(e){function t(e){var n;return g(this,t),n=j(this,P(t).call(this,e)),M?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),e.zIndex&&(n.node.style.zIndex=e.zIndex),document.body.appendChild(n.node),n):j(n)}return x(t,e),E(t,[{key:"componentDidMount",value:function(){M&&(L||this.renderPortal())}},{key:"componentDidUpdate",value:function(){M&&(L||this.renderPortal())}},{key:"componentWillUnmount",value:function(){M&&this.node&&(L||v.a.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderPortal",value:function(){if(!M)return null;var e=this.props,t=e.children,n=e.setRef;return L?v.a.createPortal(t,this.node):(n(v.a.unstable_renderSubtreeIntoContainer(this,t.length>1?r.a.createElement("div",null,t):t[0],this.node)),null)}},{key:"renderReact16",value:function(){var e=this.props,t=e.hasChildren,n=e.placement,o=e.target;return t||o||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return L?this.renderReact16():null}}]),t}(r.a.Component);O(W,"propTypes",{children:a.a.oneOfType([a.a.element,a.a.array]),hasChildren:a.a.bool,id:a.a.oneOfType([a.a.string,a.a.number]),placement:a.a.string,setRef:a.a.func.isRequired,target:a.a.oneOfType([a.a.object,a.a.string]),zIndex:a.a.number});var z=function(e){function t(){return g(this,t),j(this,P(t).apply(this,arguments))}return x(t,e),E(t,[{key:"render",value:function(){var e,t=this.props,n=t.placement,o=t.setArrowRef,i=t.styles.arrow,a=i.color,s=i.display,l=i.length,c=i.margin,u=i.position,p=i.spread,f={display:s,position:u},d=p,h=l;return n.startsWith("top")?(e="0,0 ".concat(d/2,",").concat(h," ").concat(d,",0"),f.bottom=0,f.marginLeft=c,f.marginRight=c):n.startsWith("bottom")?(e="".concat(d,",").concat(h," ").concat(d/2,",0 0,").concat(h),f.top=0,f.marginLeft=c,f.marginRight=c):n.startsWith("left")?(h=p,e="0,0 ".concat(d=l,",").concat(h/2," 0,").concat(h),f.right=0,f.marginTop=c,f.marginBottom=c):n.startsWith("right")&&(h=p,e="".concat(d=l,",").concat(h," ").concat(d,",0 0,").concat(h/2),f.left=0,f.marginTop=c,f.marginBottom=c),r.a.createElement("div",{className:"__floater__arrow",style:this.parentStyle},r.a.createElement("span",{ref:o,style:f},r.a.createElement("svg",{width:d,height:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.a.createElement("polygon",{points:e,fill:a}))))}},{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,o={pointerEvents:"none",position:"absolute",width:"100%"};return t.startsWith("top")?(o.bottom=0,o.left=0,o.right=0,o.height=n):t.startsWith("bottom")?(o.left=0,o.right=0,o.top=0,o.height=n):t.startsWith("left")?(o.right=0,o.top=0,o.bottom=0):t.startsWith("right")&&(o.left=0,o.top=0),o}}]),t}(r.a.Component);O(z,"propTypes",{placement:a.a.string.isRequired,setArrowRef:a.a.func.isRequired,styles:a.a.object.isRequired});var H=function(e){var t=e.handleClick,n=e.styles,o=n.color,i=n.height,a=n.width,s=N(n,["color","height","width"]);return r.a.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},r.a.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},r.a.createElement("g",null,r.a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))};H.propTypes={handleClick:a.a.func.isRequired,styles:a.a.object.isRequired};var U=function(e){var t=e.content,n=e.footer,o=e.handleClick,i=e.open,a=e.positionWrapper,s=e.showCloseButton,l=e.title,c=e.styles,u={content:r.a.isValidElement(t)?t:r.a.createElement("div",{className:"__floater__content",style:c.content},t)};return l&&(u.title=r.a.isValidElement(l)?l:r.a.createElement("div",{className:"__floater__title",style:c.title},l)),n&&(u.footer=r.a.isValidElement(n)?n:r.a.createElement("div",{className:"__floater__footer",style:c.footer},n)),!s&&!a||d.a.boolean(i)||(u.close=r.a.createElement(H,{styles:c.close,handleClick:o})),r.a.createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)};U.propTypes={content:a.a.node.isRequired,footer:a.a.node,handleClick:a.a.func.isRequired,open:a.a.bool,positionWrapper:a.a.bool.isRequired,showCloseButton:a.a.bool.isRequired,styles:a.a.object.isRequired,title:a.a.node};var q=function(e){function t(){return g(this,t),j(this,P(t).apply(this,arguments))}return x(t,e),E(t,[{key:"render",value:function(){var e=this.props,t=e.component,n=e.handleClick,o=e.hideArrow,i=e.setFloaterRef,a=e.status,s={},l=["__floater"];return t?r.a.isValidElement(t)?s.content=r.a.cloneElement(t,{closeFn:n}):s.content=t({closeFn:n}):s.content=r.a.createElement(U,this.props),a===R.OPEN&&l.push("__floater__open"),o||(s.arrow=r.a.createElement(z,this.props)),r.a.createElement("div",{ref:i,className:l.join(" "),style:this.style},r.a.createElement("div",{className:"__floater__body"},s.content,s.arrow))}},{key:"style",get:function(){var e=this.props,t=e.disableAnimation,n=e.component,o=e.placement,r=e.hideArrow,i=e.status,a=e.styles,s=a.arrow.length,l=a.floater,c=a.floaterCentered,u=a.floaterClosing,p=a.floaterOpening,f=a.floaterWithAnimation,d=a.floaterWithComponent,h={};return r||(o.startsWith("top")?h.padding="0 0 ".concat(s,"px"):o.startsWith("bottom")?h.padding="".concat(s,"px 0 0"):o.startsWith("left")?h.padding="0 ".concat(s,"px 0 0"):o.startsWith("right")&&(h.padding="0 0 0 ".concat(s,"px"))),-1!==[R.OPENING,R.OPEN].indexOf(i)&&(h=k({},h,{},p)),i===R.CLOSING&&(h=k({},h,{},u)),i!==R.OPEN||t||(h=k({},h,{},f)),"center"===o&&(h=k({},h,{},c)),n&&(h=k({},h,{},d)),k({},l,{},h)}}]),t}(r.a.Component);O(q,"propTypes",{component:a.a.oneOfType([a.a.func,a.a.element]),content:a.a.node,disableAnimation:a.a.bool.isRequired,footer:a.a.node,handleClick:a.a.func.isRequired,hideArrow:a.a.bool.isRequired,open:a.a.bool,placement:a.a.string.isRequired,positionWrapper:a.a.bool.isRequired,setArrowRef:a.a.func.isRequired,setFloaterRef:a.a.func.isRequired,showCloseButton:a.a.bool,status:a.a.string.isRequired,styles:a.a.object.isRequired,title:a.a.node});var G=function(e){function t(){return g(this,t),j(this,P(t).apply(this,arguments))}return x(t,e),E(t,[{key:"render",value:function(){var e,t=this.props,n=t.children,o=t.handleClick,i=t.handleMouseEnter,a=t.handleMouseLeave,s=t.setChildRef,l=t.setWrapperRef,c=t.style,u=t.styles;if(n)if(1===r.a.Children.count(n))if(r.a.isValidElement(n)){var p=d.a.function(n.type)?"innerRef":"ref";e=r.a.cloneElement(r.a.Children.only(n),O({},p,s))}else e=r.a.createElement("span",null,n);else e=n;return e?r.a.createElement("span",{ref:l,style:k({},u,{},c),onClick:o,onMouseEnter:i,onMouseLeave:a},e):null}}]),t}(r.a.Component);O(G,"propTypes",{children:a.a.node,handleClick:a.a.func.isRequired,handleMouseEnter:a.a.func.isRequired,handleMouseLeave:a.a.func.isRequired,setChildRef:a.a.func.isRequired,setWrapperRef:a.a.func.isRequired,style:a.a.object,styles:a.a.object.isRequired});var V={zIndex:100};var $=["position","top","right","bottom","left"],Y=function(t){function n(e){var t;return g(this,n),O(T(t=j(this,P(n).call(this,e))),"setArrowRef",(function(e){t.arrowRef=e})),O(T(t),"setChildRef",(function(e){t.childRef=e})),O(T(t),"setFloaterRef",(function(e){t.floaterRef||(t.floaterRef=e)})),O(T(t),"setWrapperRef",(function(e){t.wrapperRef=e})),O(T(t),"handleTransitionEnd",(function(){var e=t.state.status,n=t.props.callback;t.wrapperPopper&&t.wrapperPopper.instance.update(),t.setState({status:e===R.OPENING?R.OPEN:R.IDLE},(function(){var e=t.state.status;n(e===R.OPEN?"open":"close",t.props)}))})),O(T(t),"handleClick",(function(){var e=t.props,n=e.event,o=e.open;if(!d.a.boolean(o)){var r=t.state,i=r.positionWrapper,a=r.status;("click"===t.event||"hover"===t.event&&i)&&(A({title:"click",data:[{event:n,status:a===R.OPEN?"closing":"opening"}],debug:t.debug}),t.toggle())}})),O(T(t),"handleMouseEnter",(function(){var e=t.props,n=e.event,o=e.open;if(!d.a.boolean(o)&&!_()){var r=t.state.status;"hover"===t.event&&r===R.IDLE&&(A({title:"mouseEnter",data:[{key:"originalEvent",value:n}],debug:t.debug}),clearTimeout(t.eventDelayTimeout),t.toggle())}})),O(T(t),"handleMouseLeave",(function(){var e=t.props,n=e.event,o=e.eventDelay,r=e.open;if(!d.a.boolean(r)&&!_()){var i=t.state,a=i.status,s=i.positionWrapper;"hover"===t.event&&(A({title:"mouseLeave",data:[{key:"originalEvent",value:n}],debug:t.debug}),o?-1===[R.OPENING,R.OPEN].indexOf(a)||s||t.eventDelayTimeout||(t.eventDelayTimeout=setTimeout((function(){delete t.eventDelayTimeout,t.toggle()}),1e3*o)):t.toggle(R.IDLE))}})),t.state={currentPlacement:e.placement,positionWrapper:e.wrapperOptions.position&&!!e.target,status:R.INIT,statusWrapper:R.INIT},t._isMounted=!1,M&&window.addEventListener("load",(function(){t.popper&&t.popper.instance.update(),t.wrapperPopper&&t.wrapperPopper.instance.update()})),t}return x(n,t),E(n,[{key:"componentDidMount",value:function(){if(M){var e=this.state.positionWrapper,t=this.props,n=t.children,o=t.open,r=t.target;this._isMounted=!0,A({title:"init",data:{hasChildren:!!n,hasTarget:!!r,isControlled:d.a.boolean(o),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.initPopper(),!n&&r&&d.a.boolean(o)}}},{key:"componentDidUpdate",value:function(e,t){if(M){var n,o=this.props,r=o.autoOpen,i=o.open,a=o.target,s=o.wrapperOptions,l=m()(t,this.state),c=l.changedFrom,u=l.changedTo;if(e.open!==i)d.a.boolean(i)&&(n=i?R.OPENING:R.CLOSING),this.toggle(n);e.wrapperOptions.position===s.position&&e.target===a||this.changeWrapperPosition(this.props),(u("status",R.IDLE)&&i||c("status",R.INIT,R.IDLE)&&r)&&this.toggle(R.OPEN),this.popper&&u("status",R.OPENING)&&this.popper.instance.update(),this.floaterRef&&(u("status",R.OPENING)||u("status",R.CLOSING))&&function(e,t,n){var o,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];D(e,t,o=function(r){n(r),F(e,t,o)},r)}(this.floaterRef,"transitionend",this.handleTransitionEnd)}}},{key:"componentWillUnmount",value:function(){M&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,o=this.props,r=o.disableFlip,i=o.getPopper,a=o.hideArrow,s=o.offset,l=o.placement,u=o.wrapperOptions,p="top"===l||"bottom"===l?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===l)this.setState({status:R.IDLE});else if(t&&this.floaterRef){var f=this.options,h=f.arrow,m=f.flip,y=f.offset,v=N(f,["arrow","flip","offset"]);new c.a(t,this.floaterRef,{placement:l,modifiers:k({arrow:k({enabled:!a,element:this.arrowRef},h),flip:k({enabled:!r,behavior:p},m),offset:k({offset:"0, ".concat(s,"px")},y)},v),onCreate:function(t){e.popper=t,i(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:R.IDLE}),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)},onUpdate:function(t){e.popper=t;var n=e.state.currentPlacement;e._isMounted&&t.placement!==n&&e.setState({currentPlacement:t.placement})}})}if(n){var b=d.a.undefined(u.offset)?0:u.offset;new c.a(this.target,this.wrapperRef,{placement:u.placement||l,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(b,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:R.IDLE}),i(t,"wrapper"),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)}})}}},{key:"changeWrapperPosition",value:function(e){var t=e.target,n=e.wrapperOptions;this.setState({positionWrapper:n.position&&!!t})}},{key:"toggle",value:function(e){var t=this.state.status===R.OPEN?R.CLOSING:R.OPENING;d.a.undefined(e)||(t=e),this.setState({status:t})}},{key:"render",value:function(){var e=this.state,t=e.currentPlacement,n=e.positionWrapper,o=e.status,i=this.props,a=i.children,s=i.component,l=i.content,c=i.disableAnimation,u=i.footer,p=i.hideArrow,f=i.id,d=i.open,h=i.showCloseButton,m=i.style,y=i.target,v=i.title,b=r.a.createElement(G,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:m,styles:this.styles.wrapper},a),g={};return n?g.wrapperInPortal=b:g.wrapperAsChildren=b,r.a.createElement("span",null,r.a.createElement(W,{hasChildren:!!a,id:f,placement:t,setRef:this.setFloaterRef,target:y,zIndex:this.styles.options.zIndex},r.a.createElement(q,{component:s,content:l,disableAnimation:c,footer:u,handleClick:this.handleClick,hideArrow:p||"center"===t,open:d,placement:t,positionWrapper:n,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:h,status:o,styles:this.styles,title:v}),g.wrapperInPortal),g.wrapperAsChildren)}},{key:"debug",get:function(){return this.props.debug||!!e.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&_()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return p()(I,e||{})}},{key:"styles",get:function(){var e,t=this,n=this.state,o=n.status,r=n.positionWrapper,i=n.statusWrapper,a=this.props.styles,s=p()(function(e){var t=p()(V,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}(a),a);r&&(e=-1===[R.IDLE].indexOf(o)||-1===[R.IDLE].indexOf(i)?s.wrapperPosition:this.wrapperPopper.styles,s.wrapper=k({},s.wrapper,{},e));if(this.target){var l=window.getComputedStyle(this.target);this.wrapperStyles?s.wrapper=k({},s.wrapper,{},this.wrapperStyles):-1===["relative","static"].indexOf(l.position)&&(this.wrapperStyles={},r||($.forEach((function(e){t.wrapperStyles[e]=l[e]})),s.wrapper=k({},s.wrapper,{},this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return s}},{key:"target",get:function(){if(!M)return null;var e=this.props.target;return e?d.a.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}}]),n}(r.a.Component);O(Y,"propTypes",{autoOpen:a.a.bool,callback:a.a.func,children:a.a.node,component:l()(a.a.oneOfType([a.a.func,a.a.element]),(function(e){return!e.content})),content:l()(a.a.node,(function(e){return!e.component})),debug:a.a.bool,disableAnimation:a.a.bool,disableFlip:a.a.bool,disableHoverToClick:a.a.bool,event:a.a.oneOf(["hover","click"]),eventDelay:a.a.number,footer:a.a.node,getPopper:a.a.func,hideArrow:a.a.bool,id:a.a.oneOfType([a.a.string,a.a.number]),offset:a.a.number,open:a.a.bool,options:a.a.object,placement:a.a.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:a.a.bool,style:a.a.object,styles:a.a.object,target:a.a.oneOfType([a.a.object,a.a.string]),title:a.a.node,wrapperOptions:a.a.shape({offset:a.a.number,placement:a.a.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:a.a.bool})}),O(Y,"defaultProps",{autoOpen:!1,callback:B,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:B,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}}),t.a=Y}).call(this,n(13))},function(e,t,n){e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){e.exports=n(1)},function(e,t,n){e.exports=n(2)()},function(e,t,n){"use strict";var o=n(3);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var o="bottom-left",r="bottom-right",i="bottom-center",a="top-left",s="top-right",l="top-center",c="center",u="success",p="danger",f="info",d="default",h="warning",m="timeout",y=function(e){return null==e};function v(e){return e===o||e===r||e===i}function b(e){return e===a||e===s||e===l}function g(e){var t=e.type,n=e.content,o=e.userDefinedTypes,r=["notification-item"];if(n)return r;if(y(o))return function(e){switch(e){case d:return["notification-item","notification-default"];case u:return["notification-item","notification-success"];case p:return["notification-item","notification-danger"];case h:return["notification-item","notification-warning"];case f:return["notification-item","notification-info"];default:return["notification-item"]}}(t);var i=o.find((function(e){return e.name===t}));return r.concat(i.htmlClasses)}function w(e,t){var n=e.duration,o=e.timingFunction,r=e.delay;return"".concat(n,"ms ").concat(t," ").concat(o," ").concat(r,"ms")}function E(e,t){var n=t.duration,o=t.timingFunction,r=t.delay,i=e||{};return y(i.duration)&&(i.duration=n),y(i.timingFunction)&&(i.timingFunction=o),y(i.delay)&&(i.delay=r),i}var O=n(0),S=n.n(O),k=new function(){var e=this;return this.types=null,this.counter=0,this.add=function(){},this.addNotification=function(t){var n=e.types;return e.counter+=1,e.add(function(e,t){var n=e,o=n.id,r=n.type,i=n.insert,a=n.content,s=n.container,l=n.animationIn,c=n.animationOut,m=n.slidingEnter,v=n.slidingExit,b=n.touchRevert,g=n.touchSlidingExit,w=n.dismiss,O=n.width,S=n.onRemoval;n.id=o||k.counter,n.type=a?null:r.toLowerCase(),t&&!a&&(n.userDefinedTypes=function(e,t){var n=e.content,o=e.type;if(!n&&o!==u&&o!==p&&o!==f&&o!==d&&o!==h&&t)return t}(n,t)),y(O)||(n.width=O),n.container=s.toLowerCase(),n.insert=(i||"top").toLowerCase(),n.dismiss=function(e){var t=e,n={duration:0,click:!0,touch:!0,onScreen:!1,waitForAnimation:!1,showIcon:!1};return t?(Object.keys(n).forEach((function(e){y(t[e])&&(t[e]=n[e])})),t):n}(w),n.animationIn=l||[],n.animationOut=c||[],n.onRemoval=S||function(){};var x=function(e,t,n){return{duration:e,timingFunction:t,delay:n}};n.slidingEnter=E(m,x(600,"linear",0)),n.slidingExit=E(v,x(600,"linear",0)),n.touchRevert=E(b,x(600,"linear",0));var P=g||{},C=P.swipe,N=P.fade;return n.touchSlidingExit=P,n.touchSlidingExit.swipe=E(C||{},x(600,"linear",0)),n.touchSlidingExit.fade=E(N||{},x(300,"linear",0)),n}(t,n))},this.removeNotification=function(){},this.register=function(t){var n=t.addNotification,o=t.removeNotification,r=t.types;e.add=n,e.removeNotification=o,e.types=r},this},x=n(1),P=n.n(x),C=function(e,t){var n,o,r=t;this.pause=function(){clearTimeout(n),r-=Date.now()-o},this.resume=function(){o=Date.now(),clearTimeout(n),n=setTimeout(e,r)},this.clear=function(){clearTimeout(n)},this.resume()};function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function L(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var F=function(e){function t(e){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=!(o=_(t).call(this,e))||"object"!==N(o)&&"function"!=typeof o?A(this):o).rootElementRef=S.a.createRef(),n.onClick=n.onClick.bind(A(n)),n.onTouchStart=n.onTouchStart.bind(A(n)),n.onTouchMove=n.onTouchMove.bind(A(n)),n.onTouchEnd=n.onTouchEnd.bind(A(n)),n.onMouseEnter=n.onMouseEnter.bind(A(n)),n.onMouseLeave=n.onMouseLeave.bind(A(n));var r=e.notification.width;return n.state={parentStyle:{height:0,overflow:"hidden",width:r?"".concat(r,"px"):"100%"},htmlClassList:g(e.notification),animationPlayState:"running",touchEnabled:!0},n}var n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(t,e),n=t,(o=[{key:"componentWillUnmount",value:function(){this.timer&&this.timer.clear()}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.notification,o=t.count,r=n.dismiss,i=r.duration,a=r.onScreen,s=this.rootElementRef.current.scrollHeight,l=function(e,t){return!(t<=1)&&t>1&&("top"===e.insert&&b(e.container)||"bottom"===e.insert&&v(e.container)||e.container===c)}(n,o),u=function(){i&&!a&&(e.timer=new C((function(){return e.removeNotification(m)}),i))};this.setState((function(e){return{parentStyle:{width:e.parentStyle.width,height:"".concat(s,"px"),transition:l?w(n.slidingEnter,"height"):"10ms height"},onTransitionEnd:u}}),(function(){requestAnimationFrame((function(){e.setState((function(e){return{htmlClassList:[].concat(M(n.animationIn),M(e.htmlClassList))}}))}))}))}},{key:"componentDidUpdate",value:function(e){var t=e.removed;this.props.removed&&!t&&this.removeNotification("manual")}},{key:"removeNotification",value:function(e){var t=this,n=this.props,o=n.notification,r=n.toggleRemoval,i=o.id,a=o.onRemoval,s=o.dismiss.waitForAnimation,l=[].concat(M(o.animationOut),M(g(o))),c=function(){return r(i,(function(){return a(i,e)}))},u={height:0,transition:w(o.slidingExit,"height")};return s?this.setState((function(e){var n=e.parentStyle.width;return{htmlClassList:l,onAnimationEnd:function(){t.setState({parentStyle:I({width:n},u),onTransitionEnd:c})}}})):this.setState((function(e){return{parentStyle:I({width:e.parentStyle.width},u),onTransitionEnd:c,htmlClassList:l}}))}},{key:"onClick",value:function(){var e=this.props.notification.dismiss;(e.click||e.showIcon)&&this.removeNotification("click")}},{key:"onTouchStart",value:function(e){var t=T(e.touches,1)[0].pageX;this.setState((function(e){var n=e.parentStyle;return{startX:t,currentX:t,parentStyle:I({},n,{position:"relative"})}}))}},{key:"onTouchMove",value:function(e){var t=this,n=e.touches,o=this.state.startX,r=this.props,i=r.toggleRemoval,a=r.notification,s=a.id,l=a.onRemoval,c=a.slidingExit,u=a.touchSlidingExit,p=u.swipe,f=u.fade,d=T(n,1)[0].pageX,h=d-o,m=this.rootElementRef.current.offsetWidth,y=window.innerWidth+m,v="".concat(d-o>=0?y:-y,"px");if(function(e,t){return Math.abs(e)>=.4*t}(h,m)){var b=w(p,"left"),g=w(f,"opacity"),E=function(){i(s,(function(){return l(s,"touch")}))};return this.setState((function(e){return{touchEnabled:!1,parentStyle:I({},e.parentStyle,{left:v,opacity:0,transition:"".concat(b,", ").concat(g)}),onTransitionEnd:function(){t.setState((function(e){return{parentStyle:I({},e.parentStyle,{height:0,transition:w(c,"height")}),onTransitionEnd:E}}))}}}))}return this.setState((function(e){var t=e.parentStyle;return{currentX:d,parentStyle:I({},t,{left:"".concat(0+h,"px")})}}))}},{key:"onTouchEnd",value:function(){var e=this.props.notification.touchRevert;this.setState((function(t){return{parentStyle:I({},t.parentStyle,{left:0,transition:w(e,"left")})}}))}},{key:"onMouseEnter",value:function(){this.timer?this.timer.pause():this.setState({animationPlayState:"paused"})}},{key:"onMouseLeave",value:function(){this.timer?this.timer.resume():this.setState({animationPlayState:"running"})}},{key:"renderTimer",value:function(){var e=this,t=this.props.notification.dismiss,n=t.duration,o=t.onScreen,r=this.state.animationPlayState;if(n&&o){var i={animationName:"timer",animationDuration:"".concat(n,"ms"),animationTimingFunction:"linear",animationFillMode:"forwards",animationDelay:0,animationPlayState:r};return S.a.createElement("div",{className:"timer"},S.a.createElement("div",{className:"timer-filler",onAnimationEnd:function(){return e.removeNotification(m)},style:i}))}}},{key:"renderCustomContent",value:function(){var e=this.state.htmlClassList,t=this.props.notification,n=t.id,o=t.content,r=t.dismiss,i=r.duration,a=r.pauseOnHover,s=i>0&&a;return S.a.createElement("div",{className:"".concat([].concat(M(e),["n-child"]).join(" ")),onMouseEnter:s?this.onMouseEnter:null,onMouseLeave:s?this.onMouseLeave:null},S.a.isValidElement(o)?o:S.a.createElement(o,{id:n}))}},{key:"renderNotification",value:function(){var e=this.props.notification,t=e.title,n=e.message,o=e.dismiss,r=o.showIcon,i=o.duration,a=o.pauseOnHover,s=this.state.htmlClassList,l=i>0&&a;return S.a.createElement("div",{className:"".concat([].concat(M(s),["n-child"]).join(" ")),onMouseEnter:l?this.onMouseEnter:null,onMouseLeave:l?this.onMouseLeave:null},S.a.createElement("div",{className:"notification-content"},r&&S.a.createElement("div",{className:"notification-close",onClick:this.onClick}),t&&S.a.createElement("div",{className:"notification-title"},t),S.a.createElement("div",{className:"notification-message"},n),this.renderTimer()))}},{key:"render",value:function(){var e=this.props.notification,t=e.content,n=e.dismiss.click,o=this.state,r=o.parentStyle,i=o.onAnimationEnd,a=o.onTransitionEnd,s=o.touchEnabled;return S.a.createElement("div",{ref:this.rootElementRef,onClick:n?this.onClick:null,className:"notification-parent",style:r,onAnimationEnd:i,onTransitionEnd:a,onTouchStart:s?this.onTouchStart:null,onTouchMove:s?this.onTouchMove:null,onTouchEnd:s?this.onTouchEnd:null},t?this.renderCustomContent():this.renderNotification())}}])&&L(n.prototype,o),t}(S.a.Component);F.propTypes={toggleRemoval:P.a.func.isRequired,count:P.a.number.isRequired,removed:P.a.bool};var B=F;function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function H(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e,t){return(G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n(4);var V=function(e){function t(e){var n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this,(n=!(o=U(t).call(this,e))||"object"!==W(o)&&"function"!=typeof o?q(this):o).state={isMobile:e.isMobile,breakpoint:e.breakpoint,notifications:[]},n.add=n.add.bind(q(n)),n.remove=n.remove.bind(q(n)),n.toggleRemoval=n.toggleRemoval.bind(q(n)),n.handleResize=n.handleResize.bind(q(n)),n}var n,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&G(e,t)}(t,e),n=t,(u=[{key:"componentDidMount",value:function(){var e=this.props.types;k.register({addNotification:this.add,removeNotification:this.remove,types:e}),this.setState({width:window.innerWidth}),window.addEventListener("resize",this.handleResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize)}},{key:"handleResize",value:function(){this.setState({width:window.innerWidth})}},{key:"add",value:function(e){return this.setState((function(t){var n=t.notifications;return{notifications:"top"===e.insert?[e].concat(z(n)):[].concat(z(n),[e])}})),e.id}},{key:"remove",value:function(e){this.setState((function(t){return{notifications:t.notifications.map((function(t){return t.id===e&&(t.removed=!0),t}))}}))}},{key:"toggleRemoval",value:function(e,t){this.setState((function(t){return{notifications:t.notifications.filter((function(t){return t.id!==e}))}}),t)}},{key:"renderNotifications",value:function(e){var t=this;return e.map((function(n){return S.a.createElement(B,{id:n.id,key:n.id,notification:n,toggleRemoval:t.toggleRemoval,count:e.length,removed:n.removed})}))}},{key:"renderMobileNotifications",value:function(e){var t=e.className,n=e.id,o=function(e){var t=[],n=[];return e.forEach((function(e){var o=e.container;b(o)||"center"===o?t.push(e):v(o)&&n.push(e)})),{top:t,bottom:n}}(this.state.notifications),r=this.renderNotifications(o.top),i=this.renderNotifications(o.bottom);return S.a.createElement("div",{id:n,key:"mobile",className:"react-notification-root ".concat(t||"")},S.a.createElement("div",{className:"notification-container-mobile-top"},r),S.a.createElement("div",{className:"notification-container-mobile-bottom"},i))}},{key:"renderScreenNotifications",value:function(e){var t=e.className,n=e.id,u=function(e){var t=[],n=[],u=[],p=[],f=[],d=[],h=[];return e.forEach((function(e){var m=e.container;m===a?t.push(e):m===s?n.push(e):m===l?u.push(e):m===o?p.push(e):m===r?f.push(e):m===i?d.push(e):m===c&&h.push(e)})),{topLeft:t,topRight:n,topCenter:u,bottomLeft:p,bottomRight:f,bottomCenter:d,center:h}}(this.state.notifications),p=this.renderNotifications(u.topLeft),f=this.renderNotifications(u.topRight),d=this.renderNotifications(u.topCenter),h=this.renderNotifications(u.bottomLeft),m=this.renderNotifications(u.bottomRight),y=this.renderNotifications(u.bottomCenter),v=this.renderNotifications(u.center);return S.a.createElement("div",{id:n,key:"screen",className:"react-notification-root ".concat(t||"")},S.a.createElement("div",{className:"notification-container-top-left"},p),S.a.createElement("div",{className:"notification-container-top-right"},f),S.a.createElement("div",{className:"notification-container-bottom-left"},h),S.a.createElement("div",{className:"notification-container-bottom-right"},m),S.a.createElement("div",{className:"notification-container-top-center"},d),S.a.createElement("div",{className:"notification-container-center"},S.a.createElement("div",{className:"center-inner"},v)),S.a.createElement("div",{className:"notification-container-bottom-center"},y))}},{key:"render",value:function(){var e=this.props.isMobile,t=this.state,n=t.width,o=t.breakpoint;return e&&n<=o?this.renderMobileNotifications(this.props):this.renderScreenNotifications(this.props)}}])&&H(n.prototype,u),t}(S.a.Component);V.propTypes={isMobile:P.a.bool,breakpoint:P.a.number,types:P.a.array},V.defaultProps={isMobile:!0,breakpoint:768};var $=V;n.d(t,"store",(function(){return k})),t.default=$}])},function(e,t,n){},function(e,t,n){"use strict";var o=n(19);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var o,r;r=function(e){var t=["N","E","A","D"];function n(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function o(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function r(e,t,n){r.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:n,enumerable:!0})}function i(e,t){i.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function a(e,t){a.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function s(e,t,n){s.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:n,enumerable:!0})}function l(e,t,n){var o=e.slice((n||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,o),e}function c(e){var t=typeof e;return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function u(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}function p(e){var t=0,n=c(e);if("array"===n)return e.forEach((function(e){t+=p(e)})),t+u("[type: array, hash: "+t+"]");if("object"===n){for(var o in e)if(e.hasOwnProperty(o)){var r="[ type: object, key: "+o+", value hash: "+p(e[o])+"]";t+=u(r)}return t}return t+u("[ type: "+n+" ; value: "+e+"]")}function f(e,t,n,o,l,u,d,h){n=n||[],d=d||[];var m=(l=l||[]).slice(0);if(null!=u){if(o){if("function"==typeof o&&o(m,u))return;if("object"==typeof o){if(o.prefilter&&o.prefilter(m,u))return;if(o.normalize){var y=o.normalize(m,u,e,t);y&&(e=y[0],t=y[1])}}}m.push(u)}"regexp"===c(e)&&"regexp"===c(t)&&(e=e.toString(),t=t.toString());var v,b,g,w,E=typeof e,O=typeof t,S="undefined"!==E||d&&d.length>0&&d[d.length-1].lhs&&Object.getOwnPropertyDescriptor(d[d.length-1].lhs,u),k="undefined"!==O||d&&d.length>0&&d[d.length-1].rhs&&Object.getOwnPropertyDescriptor(d[d.length-1].rhs,u);if(!S&&k)n.push(new i(m,t));else if(!k&&S)n.push(new a(m,e));else if(c(e)!==c(t))n.push(new r(m,e,t));else if("date"===c(e)&&e-t!=0)n.push(new r(m,e,t));else if("object"===E&&null!==e&&null!==t){for(v=d.length-1;v>-1;--v)if(d[v].lhs===e){w=!0;break}if(w)e!==t&&n.push(new r(m,e,t));else{if(d.push({lhs:e,rhs:t}),Array.isArray(e)){for(h&&(e.sort((function(e,t){return p(e)-p(t)})),t.sort((function(e,t){return p(e)-p(t)}))),v=t.length-1,b=e.length-1;v>b;)n.push(new s(m,v,new i(void 0,t[v--])));for(;b>v;)n.push(new s(m,b,new a(void 0,e[b--])));for(;v>=0;--v)f(e[v],t[v],n,o,m,v,d,h)}else{var x=Object.keys(e),P=Object.keys(t);for(v=0;v<x.length;++v)g=x[v],(w=P.indexOf(g))>=0?(f(e[g],t[g],n,o,m,g,d,h),P[w]=null):f(e[g],void 0,n,o,m,g,d,h);for(v=0;v<P.length;++v)(g=P[v])&&f(void 0,t[g],n,o,m,g,d,h)}d.length=d.length-1}}else e!==t&&("number"===E&&isNaN(e)&&isNaN(t)||n.push(new r(m,e,t)))}function d(e,t,n,o,r){var i=[];if(f(e,t,i,o,null,null,null,r),n)for(var a=0;a<i.length;++a)n(i[a]);return i}function h(e,t,n,o){var r=d(e,t,o?function(e){e&&o.push(e)}:void 0,n);return o||(r.length?r:void 0)}function m(e,n,o){if(void 0===o&&n&&~t.indexOf(n.kind)&&(o=n),e&&o&&o.kind){for(var r=e,i=-1,a=o.path?o.path.length-1:0;++i<a;)void 0===r[o.path[i]]&&(r[o.path[i]]=void 0!==o.path[i+1]&&"number"==typeof o.path[i+1]?[]:{}),r=r[o.path[i]];switch(o.kind){case"A":o.path&&void 0===r[o.path[i]]&&(r[o.path[i]]=[]),function e(t,n,o){if(o.path&&o.path.length){var r,i=t[n],a=o.path.length-1;for(r=0;r<a;r++)i=i[o.path[r]];switch(o.kind){case"A":e(i[o.path[r]],o.index,o.item);break;case"D":delete i[o.path[r]];break;case"E":case"N":i[o.path[r]]=o.rhs}}else switch(o.kind){case"A":e(t[n],o.index,o.item);break;case"D":t=l(t,n);break;case"E":case"N":t[n]=o.rhs}return t}(o.path?r[o.path[i]]:r,o.index,o.item);break;case"D":delete r[o.path[i]];break;case"E":case"N":r[o.path[i]]=o.rhs}}}return n(r,o),n(i,o),n(a,o),n(s,o),Object.defineProperties(h,{diff:{value:h,enumerable:!0},orderIndependentDiff:{value:function(e,t,n,o){var r=o?function(e){e&&o.push(e)}:void 0,i=d(e,t,r,n,!0);return o||(i.length?i:void 0)},enumerable:!0},observableDiff:{value:d,enumerable:!0},orderIndependentObservableDiff:{value:function(e,t,n,o,r,i,a){return f(e,t,n,o,r,i,a,!0)},enumerable:!0},orderIndepHash:{value:p,enumerable:!0},applyDiff:{value:function(e,t,n){e&&t&&d(e,t,(function(o){n&&!n(e,t,o)||m(e,t,o)}))},enumerable:!0},applyChange:{value:m,enumerable:!0},revertChange:{value:function(e,t,n){if(e&&t&&n&&n.kind){var o,r,i=e;for(r=n.path.length-1,o=0;o<r;o++)void 0===i[n.path[o]]&&(i[n.path[o]]={}),i=i[n.path[o]];switch(n.kind){case"A":!function e(t,n,o){if(o.path&&o.path.length){var r,i=t[n],a=o.path.length-1;for(r=0;r<a;r++)i=i[o.path[r]];switch(o.kind){case"A":e(i[o.path[r]],o.index,o.item);break;case"D":case"E":i[o.path[r]]=o.lhs;break;case"N":delete i[o.path[r]]}}else switch(o.kind){case"A":e(t[n],o.index,o.item);break;case"D":case"E":t[n]=o.lhs;break;case"N":t=l(t,n)}return t}(i[n.path[o]],n.index,n.item);break;case"D":case"E":i[n.path[o]]=n.lhs;break;case"N":delete i[n.path[o]]}}},enumerable:!0},isConflict:{value:function(){return"undefined"!=typeof $conflict},enumerable:!0}}),h.DeepDiff=h,e&&(e.DeepDiff=h),h}(this),void 0===(o=function(){return r}.call(t,n,t,e))||(e.exports=o)},function(e,t,n){"use strict";
|
37 |
/**
|
38 |
* @license nested-property https://github.com/cosmosio/nested-property
|
39 |
*
|
@@ -48,4 +48,4 @@ var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typ
|
|
48 |
*
|
49 |
* This source code is licensed under the MIT license found in the
|
50 |
* LICENSE file in the root directory of this source tree.
|
51 |
-
*/Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,u=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,f=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.fundamental"):60117,g=o?Symbol.for("react.responder"):60118,w=o?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case p:case f:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case v:case y:case c:return e;default:return t}}case i:return t}}}function O(e){return E(e)===f}t.typeOf=E,t.AsyncMode=p,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=y,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===g||e.$$typeof===w)},t.isAsyncMode=function(e){return O(e)||E(e)===p},t.isConcurrentMode=O,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===y},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===h}},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var o=n(6),r=n.n(o),i=(n(17),n(1)),a=n.n(i),s=(n(0),n(5)),l=n.n(s),c=n(2),u=n.n(c),p=n(4),f=n.n(p),d=n(8),h=n.n(d),m=n(14),y=n.n(m),v=n(10),b=n.n(v),g=n(7),w=n(3),E=n.n(w),O=n(15);function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function x(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?L(e):t}var A={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},D="tour:start",F="step:before",B="beacon",W="tooltip",z="step:after",H="tour:end",U="tour:status",q="error:target_not_found",G={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},V={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},$=h.a.canUseDOM,Y=void 0!==p.createPortal;function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=e;return"undefined"==typeof window?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":Boolean(window.opera)||e.indexOf(" OPR/")>=0?t="opera":void 0!==window.InstallTrigger?t="firefox":window.chrome?t="chrome":/(Version\/([0-9._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function X(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function J(e){var t=[];return function e(n){if("string"==typeof n||"number"==typeof n)t.push(n);else if(Array.isArray(n))n.forEach((function(t){return e(t)}));else if(n&&n.props){var o=n.props.children;Array.isArray(o)?o.forEach((function(t){return e(t)})):e(o)}}(e),t.join(" ").trim()}function Z(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Q(e,t){return!(!u.a.plainObject(e)||!u.a.array(t))&&Object.keys(e).every((function(e){return-1!==t.indexOf(e)}))}function ee(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function te(e){return e.disableBeacon||"center"===e.placement}function ne(){return!(-1!==["chrome","safari","firefox","opera"].indexOf(K()))}function oe(e){var t=e.title,n=e.data,o=e.warn,r=void 0!==o&&o,i=e.debug,a=void 0!==i&&i,s=r?console.warn||console.error:console.log;a&&(t&&n?(console.groupCollapsed("%creact-joyride: ".concat(t),"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){u.a.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd()):console.error("Missing title or data props"))}var re={action:"",controlled:!1,index:0,lifecycle:G.INIT,size:0,status:V.IDLE},ie=["action","index","lifecycle","status"];function ae(e){var t=new Map,n=new Map;return new(function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=o.continuous,i=void 0!==r&&r,a=o.stepIndex,s=o.steps,l=void 0===s?[]:s;S(this,e),P(this,"listener",void 0),P(this,"setSteps",(function(e){var o=t.getState(),r=o.size,i=o.status,a={size:e.length,status:i};n.set("steps",e),i===V.WAITING&&!r&&e.length&&(a.status=V.RUNNING),t.setState(a)})),P(this,"addListener",(function(e){t.listener=e})),P(this,"update",(function(e){if(!Q(e,ie))throw new Error("State is not valid. Valid keys: ".concat(ie.join(", ")));t.setState(T({},t.getNextState(T({},t.getState(),{},e,{action:e.action||A.UPDATE}),!0)))})),P(this,"start",(function(e){var n=t.getState(),o=n.index,r=n.size;t.setState(T({},t.getNextState({action:A.START,index:u.a.number(e)?e:o},!0),{status:r?V.RUNNING:V.WAITING}))})),P(this,"stop",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.index,r=n.status;-1===[V.FINISHED,V.SKIPPED].indexOf(r)&&t.setState(T({},t.getNextState({action:A.STOP,index:o+(e?1:0)}),{status:V.PAUSED}))})),P(this,"close",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.CLOSE,index:n+1})))})),P(this,"go",(function(e){var n=t.getState(),o=n.controlled,r=n.status;if(!o&&r===V.RUNNING){var i=t.getSteps()[e];t.setState(T({},t.getNextState({action:A.GO,index:e}),{status:i?r:V.FINISHED}))}})),P(this,"info",(function(){return t.getState()})),P(this,"next",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(t.getNextState({action:A.NEXT,index:n+1}))})),P(this,"open",(function(){t.getState().status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.UPDATE,lifecycle:G.TOOLTIP})))})),P(this,"prev",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.PREV,index:n-1})))})),P(this,"reset",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.controlled;o||t.setState(T({},t.getNextState({action:A.RESET,index:0}),{status:e?V.RUNNING:V.READY}))})),P(this,"skip",(function(){t.getState().status===V.RUNNING&&t.setState({action:A.SKIP,lifecycle:G.INIT,status:V.SKIPPED})})),this.setState({action:A.INIT,controlled:u.a.number(a),continuous:i,index:u.a.number(a)?a:0,lifecycle:G.INIT,status:l.length?V.READY:V.IDLE},!0),this.setSteps(l)}return x(e,[{key:"setState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.getState(),r=T({},o,{},e),i=r.action,a=r.index,s=r.lifecycle,l=r.size,c=r.status;t.set("action",i),t.set("index",a),t.set("lifecycle",s),t.set("size",l),t.set("status",c),n&&(t.set("controlled",e.controlled),t.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(o)&&this.listener(this.getState())}},{key:"getState",value:function(){return t.size?{action:t.get("action")||"",controlled:t.get("controlled")||!1,index:parseInt(t.get("index"),10),lifecycle:t.get("lifecycle")||"",size:t.get("size")||0,status:t.get("status")||""}:T({},re)}},{key:"getNextState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getState(),o=n.action,r=n.controlled,i=n.index,a=n.size,s=n.status,l=u.a.number(e.index)?e.index:i,c=r&&!t?i:Math.min(Math.max(l,0),a);return{action:e.action||o,controlled:r,index:c,lifecycle:e.lifecycle||G.INIT,size:e.size||a,status:c===a?V.FINISHED:e.status||s}}},{key:"hasUpdatedState",value:function(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}},{key:"getSteps",value:function(){var e=n.get("steps");return Array.isArray(e)?e:[]}},{key:"getHelpers",value:function(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}}]),e}())(e)}function se(){return document.scrollingElement||document.createElement("body")}function le(e){return e?e.getBoundingClientRect():{}}function ce(e){return"string"==typeof e?document.querySelector(e):e}function ue(e){return e&&1===e.nodeType?getComputedStyle(e):{}}function pe(e,t,n){var o=b()(e);return o.isSameNode(se())?n?document:se():o.scrollHeight>o.offsetHeight||t?o:(o.style.overflow="initial",se())}function fe(e,t){return!!e&&!pe(e,t).isSameNode(se())}function de(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fixed";if(!(e&&e instanceof HTMLElement))return!1;var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&(ue(e).position===t||de(e.parentNode,t))}function he(e,t,n){if(!e)return 0;var o=b()(e),r=e.offsetTop;return fe(e,n)&&!function(e){return e.offsetParent!==document.body}(e)&&(r-=o.offsetTop),Math.floor(r-t)}!function(e){function t(t,n,o,r,i,a){var s=r||"<<anonymous>>",l=a||o;if(null==n[o])return t?new Error("Required ".concat(i," `").concat(l,"` was not specified in `").concat(s,"`.")):null;for(var c=arguments.length,u=new Array(c>6?c-6:0),p=6;p<c;p++)u[p-6]=arguments[p];return e.apply(void 0,[n,o,s,i,l].concat(u))}var n=t.bind(null,!1);n.isRequired=t.bind(null,!0)}((function(e,t,n,o,r){var i=e[t],s=i;if(!a.a.isValidElement(i)&&Object(g.isValidElementType)(i)){s=a.a.createElement(s,{ref:function(){},step:{}})}if(u.a.string(i)||u.a.number(i)||!Object(g.isValidElementType)(i)||-1===[g.Element,g.ForwardRef].indexOf(Object(g.typeOf)(s)))return new Error("Invalid ".concat(o," `").concat(r,"` supplied to `").concat(n,"`. Expected a React class or forwardRef."))}));var me={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",zIndex:100},ye={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},ve={borderRadius:4,position:"absolute"};var be={floaterProps:{options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},locale:{back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},step:{event:"click",placement:"bottom",offset:10}};function ge(e){var t=["beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent"];return Object.keys(e).filter((function(e){return-1!==t.indexOf(e)})).reduce((function(t,n){return t[n]=e[n],t}),{})}function we(e,t){if(!e)return null;var n=E.a.all([ge(t),be.step,e],{isMergeableObject:u.a.plainObject}),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=E()(me,e.options||{}),n=290;window.innerWidth>480&&(n=380),t.width&&(n=window.innerWidth<t.width?window.innerWidth-30:t.width);var o={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:t.zIndex},r={beacon:T({},ye,{display:"inline-block",height:t.beaconSize,position:"relative",width:t.beaconSize,zIndex:t.zIndex}),beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:t.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:"rgba(".concat(ee(t.primaryColor).join(","),", 0.2)"),border:"2px solid ".concat(t.primaryColor),borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:t.backgroundColor,borderRadius:5,boxSizing:"border-box",color:t.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:n},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:T({},ye,{backgroundColor:t.primaryColor,borderRadius:4,color:"#fff"}),buttonBack:T({},ye,{color:t.primaryColor,marginLeft:"auto",marginRight:5}),buttonClose:T({},ye,{color:t.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14}),buttonSkip:T({},ye,{color:t.textColor,fontSize:14}),overlay:T({},o,{backgroundColor:t.overlayColor,mixBlendMode:"hard-light"}),overlayLegacy:T({},o),overlayLegacyCenter:T({},o,{backgroundColor:t.overlayColor}),spotlight:T({},ve,{backgroundColor:"gray"}),spotlightLegacy:T({},ve,{boxShadow:"0 0 0 9999px ".concat(t.overlayColor,", ").concat(t.spotlightShadow)}),floaterStyles:{arrow:{color:t.arrowColor},options:{zIndex:t.zIndex}},options:t};return E()(r,e)}(E()(t.styles||{},e.styles||{})),r=fe(ce(e.target),n.disableScrollParentFix),i=E.a.all([t.floaterProps||{},be.floaterProps,n.floaterProps||{}]);return i.offset=n.offset,i.styles=E()(i.styles||{},o.floaterStyles||{}),delete o.floaterStyles,i.offset+=t.spotlightPadding||e.spotlightPadding,e.placementBeacon&&(i.wrapperOptions.placement=e.placementBeacon),r&&(i.options.preventOverflow.boundariesElement="window"),T({},n,{locale:E.a.all([be.locale,t.locale||{},n.locale||{}]),floaterProps:i,styles:o})}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u.a.plainObject(e)?!!e.target||(oe({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(oe({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u.a.array(e)?e.every((function(e){return Ee(e,t)})):(oe({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var Se=function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(S(this,e),P(this,"element",void 0),P(this,"options",void 0),P(this,"canBeTabbed",(function(e){var t=e.tabIndex;return(null===t||t<0)&&(t=void 0),!isNaN(t)&&n.canHaveFocus(e,!0)})),P(this,"canHaveFocus",(function(e,t){var o=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(o)&&!e.getAttribute("disabled")||"a"===o&&e.getAttribute("href")||t)&&n.isVisible(e)})),P(this,"findValidTabElements",(function(){return[].slice.call(n.element.querySelectorAll("*"),0).filter(n.canBeTabbed)})),P(this,"handleKeyDown",(function(e){var t=n.options.keyCode,o=void 0===t?9:t;e.keyCode===o&&n.interceptTab(e)})),P(this,"interceptTab",(function(e){e.preventDefault();var t=n.findValidTabElements(),o=e.shiftKey;if(t.length){var r=t.indexOf(document.activeElement);-1===r||!o&&r+1===t.length?r=0:o&&0===r?r=t.length-1:r+=o?-1:1,t[r].focus()}})),P(this,"isHidden",(function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0,n=window.getComputedStyle(e);return!(!t||e.innerHTML)||(t&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display"))})),P(this,"isVisible",(function(e){for(var t=e;t;)if(t instanceof HTMLElement){if(t===document.body)break;if(n.isHidden(t))return!1;t=t.parentNode}return!0})),P(this,"removeScope",(function(){window.removeEventListener("keydown",n.handleKeyDown)})),P(this,"checkFocus",(function(e){document.activeElement!==e&&(e.focus(),window.requestAnimationFrame((function(){return n.checkFocus(e)})))})),P(this,"setFocus",(function(){var e=n.options.selector;if(e){var t=n.element.querySelector(e);t&&window.requestAnimationFrame((function(){return n.checkFocus(t)}))}})),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=o,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()},ke=function(e){function t(e){var n;if(S(this,t),P(L(n=_(this,I(t).call(this,e))),"setBeaconRef",(function(e){n.beacon=e})),!e.beaconComponent){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.id="joyride-beacon-animation",r.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),o.appendChild(r)}return n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.shouldFocus;setTimeout((function(){u.a.domElement(e.beacon)&&t&&e.beacon.focus()}),0)}},{key:"componentWillUnmount",value:function(){var e=document.getElementById("joyride-beacon-animation");e&&e.parentNode.removeChild(e)}},{key:"render",value:function(){var e,t=this.props,n=t.beaconComponent,o=t.locale,r=t.onClickOrHover,i=t.styles,s={"aria-label":o.open,onClick:r,onMouseEnter:r,ref:this.setBeaconRef,title:o.open};if(n){var l=n;e=a.a.createElement(l,s)}else e=a.a.createElement("button",C({key:"JoyrideBeacon",className:"react-joyride__beacon",style:i.beacon,type:"button"},s),a.a.createElement("span",{style:i.beaconInner}),a.a.createElement("span",{style:i.beaconOuter}));return e}}]),t}(a.a.Component),xe=function(e){var t=e.styles;return a.a.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:t})},Pe=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(L(n=_(this,(e=I(t)).call.apply(e,[this].concat(r)))),"_isMounted",!1),P(L(n),"state",{mouseOverSpotlight:!1,isScrolling:!1,showSpotlight:!0}),P(L(n),"handleMouseMove",(function(e){var t=n.state.mouseOverSpotlight,o=n.spotlightStyles,r=o.height,i=o.left,a=o.position,s=o.top,l=o.width,c="fixed"===a?e.clientY:e.pageY,u="fixed"===a?e.clientX:e.pageX,p=u>=i&&u<=i+l&&(c>=s&&c<=s+r);p!==t&&n.updateState({mouseOverSpotlight:p})})),P(L(n),"handleScroll",(function(){var e=ce(n.props.target);n.scrollParent!==document?(n.state.isScrolling||n.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(n.scrollTimeout),n.scrollTimeout=setTimeout((function(){n.updateState({isScrolling:!1,showSpotlight:!0})}),50)):de(e,"sticky")&&n.updateState({})})),P(L(n),"handleResize",(function(){clearTimeout(n.resizeTimeout),n.resizeTimeout=setTimeout((function(){n._isMounted&&n.forceUpdate()}),100)})),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this.props,t=(e.debug,e.disableScrolling,e.disableScrollParentFix),n=ce(e.target);this.scrollParent=pe(n,t,!0),this._isMounted=!0,window.addEventListener("resize",this.handleResize)}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,o=n.lifecycle,r=n.spotlightClicks,i=l()(e,this.props),a=i.changed;(0,i.changedTo)("lifecycle",G.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((function(){t.state.isScrolling||t.updateState({showSpotlight:!0})}),100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(r&&o===G.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):o!==G.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),this.scrollParent.removeEventListener("scroll",this.handleScroll)}},{key:"updateState",value:function(e){this._isMounted&&this.setState(e)}},{key:"render",value:function(){var e=this.state,t=e.mouseOverSpotlight,n=e.showSpotlight,o=this.props,r=o.disableOverlay,i=o.lifecycle,s=o.onClickOverlay,l=o.placement,c=o.styles;if(r||i!==G.TOOLTIP)return null;var u=c.overlay;ne()&&(u="center"===l?c.overlayLegacyCenter:c.overlayLegacy);var p,f,d,h=T({cursor:"pointer",height:(p=document,f=p.body,d=p.documentElement,f&&d?Math.max(f.scrollHeight,f.offsetHeight,d.clientHeight,d.scrollHeight,d.offsetHeight):0),pointerEvents:t?"none":"auto"},u),m="center"!==l&&n&&a.a.createElement(xe,{styles:this.spotlightStyles});if("safari"===K()){h.mixBlendMode,h.zIndex;var y=M(h,["mixBlendMode","zIndex"]);m=a.a.createElement("div",{style:T({},y)},m),delete h.backgroundColor}return a.a.createElement("div",{className:"react-joyride__overlay",style:h,onClick:s},m)}},{key:"spotlightStyles",get:function(){var e=this.state.showSpotlight,t=this.props,n=t.disableScrollParentFix,o=t.spotlightClicks,r=t.spotlightPadding,i=t.styles,a=ce(t.target),s=le(a),l=de(a),c=function(e,t,n){var o=le(e),r=pe(e,n),i=fe(e,n),a=0;r instanceof HTMLElement&&(a=r.scrollTop);var s=o.top+(i||de(e)?0:a);return Math.floor(s-t)}(a,r,n);return T({},ne()?i.spotlightLegacy:i.spotlight,{height:Math.round(s.height+2*r),left:Math.round(s.left-r),opacity:e?1:0,pointerEvents:o?"none":"auto",position:l?"fixed":"absolute",top:c,transition:"opacity 0.2s",width:Math.round(s.width+2*r)})}}]),t}(a.a.Component),Ce=function(e){var t=e.styles,n=M(e,["styles"]),o=t.color,r=t.height,i=t.width,s=M(t,["color","height","width"]);return a.a.createElement("button",C({style:s,type:"button"},n),a.a.createElement("svg",{width:"number"==typeof i?"".concat(i,"px"):i,height:"number"==typeof r?"".concat(r,"px"):r,viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},a.a.createElement("g",null,a.a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))},Ne=function(e){function t(){return S(this,t),_(this,I(t).apply(this,arguments))}return j(t,e),x(t,[{key:"render",value:function(){var e=this.props,t=e.backProps,n=e.closeProps,o=e.continuous,r=e.index,i=e.isLastStep,s=e.primaryProps,l=e.size,c=e.skipProps,u=e.step,p=e.tooltipProps,f=u.content,d=u.hideBackButton,h=u.hideCloseButton,m=u.hideFooter,y=u.showProgress,v=u.showSkipButton,b=u.title,g=u.styles,w=u.locale,E=w.back,O=w.close,S=w.last,k=w.next,x=w.skip,P={primary:O};return o&&(P.primary=i?S:k,y&&(P.primary=a.a.createElement("span",null,P.primary," (",r+1,"/",l,")"))),v&&!i&&(P.skip=a.a.createElement("button",C({style:g.buttonSkip,type:"button","aria-live":"off"},c),x)),!d&&r>0&&(P.back=a.a.createElement("button",C({style:g.buttonBack,type:"button"},t),E)),P.close=!h&&a.a.createElement(Ce,C({styles:g.buttonClose},n)),a.a.createElement("div",C({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:g.tooltip},p),a.a.createElement("div",{style:g.tooltipContainer},b&&a.a.createElement("h4",{style:g.tooltipTitle,"aria-label":b},b),a.a.createElement("div",{style:g.tooltipContent},f)),!m&&a.a.createElement("div",{style:g.tooltipFooter},a.a.createElement("div",{style:g.tooltipFooterSpacer},P.skip),P.back,a.a.createElement("button",C({style:g.buttonNext,type:"button"},s),P.primary)),P.close)}}]),t}(a.a.Component),Te=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(L(n=_(this,(e=I(t)).call.apply(e,[this].concat(r)))),"handleClickBack",(function(e){e.preventDefault(),n.props.helpers.prev()})),P(L(n),"handleClickClose",(function(e){e.preventDefault(),n.props.helpers.close()})),P(L(n),"handleClickPrimary",(function(e){e.preventDefault();var t=n.props,o=t.continuous,r=t.helpers;o?r.next():r.close()})),P(L(n),"handleClickSkip",(function(e){e.preventDefault(),n.props.helpers.skip()})),P(L(n),"getElementsProps",(function(){var e=n.props,t=e.continuous,o=e.isLastStep,r=e.setTooltipRef,i=e.step,a=J(i.locale.back),s=J(i.locale.close),l=J(i.locale.last),c=J(i.locale.next),u=J(i.locale.skip),p=t?c:s;return o&&(p=l),{backProps:{"aria-label":a,"data-action":"back",onClick:n.handleClickBack,role:"button",title:a},closeProps:{"aria-label":s,"data-action":"close",onClick:n.handleClickClose,role:"button",title:s},primaryProps:{"aria-label":p,"data-action":"primary",onClick:n.handleClickPrimary,role:"button",title:p},skipProps:{"aria-label":u,"data-action":"skip",onClick:n.handleClickSkip,role:"button",title:u},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})),n}return j(t,e),x(t,[{key:"render",value:function(){var e,t=this.props,n=t.continuous,o=t.index,r=t.isLastStep,i=t.size,s=t.step,l=(s.beaconComponent,s.tooltipComponent),c=M(s,["beaconComponent","tooltipComponent"]);if(l){var u=T({},this.getElementsProps(),{continuous:n,index:o,isLastStep:r,size:i,step:c}),p=l;e=a.a.createElement(p,u)}else e=a.a.createElement(Ne,C({},this.getElementsProps(),{continuous:n,index:o,isLastStep:r,size:i,step:s}));return e}}]),t}(a.a.Component),je=function(e){function t(e){var n;return S(this,t),n=_(this,I(t).call(this,e)),$?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),document.body.appendChild(n.node),n):_(n)}return j(t,e),x(t,[{key:"componentDidMount",value:function(){$&&(Y||this.renderReact15())}},{key:"componentDidUpdate",value:function(){$&&(Y||this.renderReact15())}},{key:"componentWillUnmount",value:function(){$&&this.node&&(Y||f.a.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderReact15",value:function(){if(!$)return null;var e=this.props.children;return f.a.unstable_renderSubtreeIntoContainer(this,e,this.node),null}},{key:"renderReact16",value:function(){if(!$||!Y)return null;var e=this.props.children;return f.a.createPortal(e,this.node)}},{key:"render",value:function(){return Y?this.renderReact16():null}}]),t}(a.a.Component),Ie=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(L(n=_(this,(e=I(t)).call.apply(e,[this].concat(r)))),"scope",{removeScope:function(){}}),P(L(n),"handleClickHoverBeacon",(function(e){var t=n.props,o=t.step,r=t.update;"mouseenter"===e.type&&"hover"!==o.event||r({lifecycle:G.TOOLTIP})})),P(L(n),"handleClickOverlay",(function(){var e=n.props,t=e.helpers;e.step.disableOverlayClose||t.close()})),P(L(n),"setTooltipRef",(function(e){n.tooltip=e})),P(L(n),"setPopper",(function(e,t){var o=n.props,r=o.action,i=o.setPopper,a=o.update;"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e,i(e,t),n.beaconPopper&&n.tooltipPopper&&a({action:r===A.CLOSE?A.CLOSE:r,lifecycle:G.READY})})),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.debug,n=e.index;oe({title:"step:".concat(n),data:[{key:"props",value:this.props}],debug:t})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.action,o=t.callback,r=t.continuous,i=t.controlled,a=t.debug,s=t.index,c=t.lifecycle,u=t.size,p=t.status,f=t.step,d=t.update,h=l()(e,this.props),m=h.changed,y=h.changedTo,v=h.changedFrom,b={action:n,controlled:i,index:s,lifecycle:c,size:u,status:p},g=r&&n!==A.CLOSE&&(s>0||n===A.PREV),w=m("action")||m("index")||m("lifecycle")||m("status"),E=v("lifecycle",[G.TOOLTIP,G.INIT],G.INIT);if(y("action",[A.NEXT,A.PREV,A.SKIP,A.CLOSE])&&(E||i)&&o(T({},b,{index:e.index,lifecycle:G.COMPLETE,step:e.step,type:z})),w&&f){var O=ce(f.target),S=!!O;S&&function(e){if(!e)return!1;for(var t=e;t&&t!==document.body;){if(t instanceof HTMLElement){var n=getComputedStyle(t),o=n.display,r=n.visibility;if("none"===o||"hidden"===r)return!1}t=t.parentNode}return!0}(O)?(v("status",V.READY,V.RUNNING)||v("lifecycle",G.INIT,G.READY))&&o(T({},b,{step:f,type:F})):(console.warn(S?"Target not visible":"Target not mounted",f),o(T({},b,{type:q,step:f})),i||d({index:s+(-1!==[A.PREV].indexOf(n)?-1:1)}))}v("lifecycle",G.INIT,G.READY)&&d({lifecycle:te(f)||g?G.TOOLTIP:G.BEACON}),m("index")&&oe({title:"step:".concat(c),data:[{key:"props",value:this.props}],debug:a}),y("lifecycle",G.BEACON)&&o(T({},b,{step:f,type:B})),y("lifecycle",G.TOOLTIP)&&(o(T({},b,{step:f,type:W})),this.scope=new Se(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus()),v("lifecycle",[G.TOOLTIP,G.INIT],G.INIT)&&(this.scope.removeScope(),delete this.beaconPopper,delete this.tooltipPopper)}},{key:"componentWillUnmount",value:function(){this.scope.removeScope()}},{key:"render",value:function(){var e=this.props,t=e.continuous,n=e.debug,o=e.helpers,r=e.index,i=e.lifecycle,s=e.shouldScroll,l=e.size,c=e.step,p=ce(c.target);return Ee(c)&&u.a.domElement(p)?a.a.createElement("div",{key:"JoyrideStep-".concat(r),className:"react-joyride__step"},a.a.createElement(je,{id:"react-joyride-portal"},a.a.createElement(Pe,C({},c,{debug:n,lifecycle:i,onClickOverlay:this.handleClickOverlay}))),a.a.createElement(O.a,C({component:a.a.createElement(Te,{continuous:t,helpers:o,index:r,isLastStep:r+1===l,setTooltipRef:this.setTooltipRef,size:l,step:c}),debug:n,getPopper:this.setPopper,id:"react-joyride-step-".concat(r),isPositioned:c.isFixed||de(p),open:this.open,placement:c.placement,target:c.target},c.floaterProps),a.a.createElement(ke,{beaconComponent:c.beaconComponent,locale:c.locale,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:s,styles:c.styles}))):null}},{key:"open",get:function(){var e=this.props,t=e.step,n=e.lifecycle;return!(!te(t)&&n!==G.TOOLTIP)}}]),t}(a.a.Component),Re=function(e){function t(e){var n;return S(this,t),P(L(n=_(this,I(t).call(this,e))),"initStore",(function(){var e=n.props,t=e.debug,o=e.getHelpers,r=e.run,i=e.stepIndex;n.store=new ae(T({},n.props,{controlled:r&&u.a.number(i)})),n.helpers=n.store.getHelpers();var a=n.store.addListener;return oe({title:"init",data:[{key:"props",value:n.props},{key:"state",value:n.state}],debug:t}),a(n.syncState),o(n.helpers),n.store.getState()})),P(L(n),"callback",(function(e){var t=n.props.callback;u.a.function(t)&&t(e)})),P(L(n),"handleKeyboard",(function(e){var t=n.state,o=t.index,r=t.lifecycle,i=n.props.steps[o],a=window.Event?e.which:e.keyCode;r===G.TOOLTIP&&27===a&&i&&!i.disableCloseOnEsc&&n.store.close()})),P(L(n),"syncState",(function(e){n.setState(e)})),P(L(n),"setPopper",(function(e,t){"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e})),P(L(n),"shouldScroll",(function(e,t,n,o,r,i,a){return!e&&(0!==t||n||o===G.TOOLTIP)&&"center"!==r.placement&&(!r.isFixed||!de(i))&&a.lifecycle!==o&&-1!==[G.BEACON,G.TOOLTIP].indexOf(o)})),n.state=n.initStore(),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){if($){var e=this.props,t=e.disableCloseOnEsc,n=e.debug,o=e.run,r=e.steps,i=this.store.start;Oe(r,n)&&o&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}}},{key:"componentDidUpdate",value:function(e,t){if($){var n=this.state,o=n.action,r=n.controlled,a=n.index,s=n.lifecycle,c=n.status,p=this.props,f=p.debug,d=p.run,h=p.stepIndex,m=p.steps,y=e.steps,v=e.stepIndex,b=this.store,g=b.setSteps,w=b.reset,E=b.start,O=b.stop,S=b.update,k=l()(e,this.props).changed,x=l()(t,this.state),P=x.changed,C=x.changedFrom,N=x.changedTo,j=we(m[a],this.props),I=!function e(t,n){var o,r=Object(i.isValidElement)(t)||Object(i.isValidElement)(n),a=u.a.undefined(t)||u.a.undefined(n);if(X(t)!==X(n)||r||a)return!1;if(u.a.domElement(t))return t.isSameNode(n);if(u.a.number(t))return t===n;if(u.a.function(t))return t.toString()===n.toString();for(var s in t)if(Z(t,s)){if(void 0===t[s]||void 0===n[s])return!1;if(o=X(t[s]),-1!==["object","array"].indexOf(o)&&e(t[s],n[s]))continue;if("function"===o&&e(t[s],n[s]))continue;if(t[s]!==n[s])return!1}for(var l in n)if(Z(n,l)&&void 0===t[l])return!1;return!0}(y,m),R=u.a.number(h)&&k("stepIndex");if(I&&(Oe(m,f)?g(m):console.warn("Steps are not valid",m)),k("run")&&(d?E(h):O()),R){var M=v<h?A.NEXT:A.PREV;o===A.STOP&&(M=A.START),-1===[V.FINISHED,V.SKIPPED].indexOf(c)&&S({action:o===A.CLOSE?A.CLOSE:M,index:h,lifecycle:G.INIT})}var L=T({},this.state,{index:a,step:j});if(N("action",[A.NEXT,A.PREV,A.SKIP,A.CLOSE])&&N("status",V.PAUSED)){var _=we(m[t.index],this.props);this.callback(T({},L,{index:t.index,lifecycle:G.COMPLETE,step:_,type:z}))}if(N("status",[V.FINISHED,V.SKIPPED])){var F=we(m[t.index],this.props);r||this.callback(T({},L,{index:t.index,lifecycle:G.COMPLETE,step:F,type:z})),this.callback(T({},L,{type:H,step:F,index:t.index})),w()}else C("status",[V.IDLE,V.READY],V.RUNNING)?this.callback(T({},L,{type:D})):(P("status")||N("action",A.RESET))&&this.callback(T({},L,{type:U}));j&&(this.scrollToStep(t),"center"===j.placement&&c===V.RUNNING&&s===G.INIT&&this.store.update({lifecycle:G.READY}))}}},{key:"componentWillUnmount",value:function(){this.props.disableCloseOnEsc||document.body.removeEventListener("keydown",this.handleKeyboard)}},{key:"scrollToStep",value:function(e){var t=this.state,n=t.index,o=t.lifecycle,r=t.status,i=this.props,a=i.debug,s=i.disableScrolling,l=i.disableScrollParentFix,c=i.scrollToFirstStep,u=i.scrollOffset,p=i.scrollDuration,f=we(i.steps[n],this.props);if(f){var d=ce(f.target),h=this.shouldScroll(s,n,c,o,f,d,e);if(r===V.RUNNING&&h){var m=fe(d,l),v=pe(d,l),b=Math.floor(he(d,u,l))||0;if(oe({title:"scrollToStep",data:[{key:"index",value:n},{key:"lifecycle",value:o},{key:"status",value:r}],debug:a}),o===G.BEACON&&this.beaconPopper){var g=this.beaconPopper,w=g.placement,E=g.popper;-1!==["bottom"].indexOf(w)||m||(b=Math.floor(E.top-u))}else if(o===G.TOOLTIP&&this.tooltipPopper){var O=this.tooltipPopper,S=O.flipped,k=O.placement,x=O.popper;-1===["top","right","left"].indexOf(k)||S||m?b-=f.spotlightPadding:b=Math.floor(x.top-u)}b=b>=0?b:0,r===V.RUNNING&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:se(),n=arguments.length>2?arguments[2]:void 0;new Promise((function(o,r){var i=t.scrollTop,a=e>i?e-i:i-e;y.a.top(t,e,{duration:a<100?50:n},(function(e){return e&&"Element already at target scroll position"!==e.message?r(e):o()}))}))}(b,v,p)}}}},{key:"render",value:function(){if(!$)return null;var e,t=this.state,n=t.index,o=t.status,r=this.props,i=r.continuous,s=r.debug,l=r.disableScrolling,c=r.scrollToFirstStep,u=we(r.steps[n],this.props);return o===V.RUNNING&&u&&(e=a.a.createElement(Ie,C({},this.state,{callback:this.callback,continuous:i,debug:s,setPopper:this.setPopper,helpers:this.helpers,shouldScroll:!l&&(0!==n||c),step:u,update:this.store.update}))),a.a.createElement("div",{className:"react-joyride"},e)}}]),t}(a.a.Component);P(Re,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:function(){},hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});var Me=Re;function Le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _e(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var Ae=lodash.debounce,De=wp.i18n.__,Fe=wp.components,Be=Fe.Button,We=Fe.Modal,ze=wp.element,He=ze.Fragment,Ue=ze.useEffect,qe=ze.useRef,Ge=ze.useState,Ve=function(){var e=Le(Ge(!0),2),t=e[0],n=e[1],o=Le(Ge(!1),2),r=o[0],i=o[1],a=qe(null);Ue((function(){wp.api.loadPromise.then((function(){a.current=new wp.api.models.Settings}))}),[]);var s=[{target:".otter-step-one",content:De("Howdy, I'm Ollie The Otter! I will help you configure your Otter experience. So let's start the magic!"),disableBeacon:!0},{target:".otter-step-two",content:De("Jazz up your blocks with some sparkly custom CSS or Blocks Animation right inside the block. Here you can enable modules to enhance your experience with Block Editor.")},{target:".otter-step-three",content:De("Section Block is the signature feature of Otter. It allows you to build beautiful layouts right inside the Block Editor. You can set Section Block as the default block for your new Pages.")},{target:".otter-step-four",content:De("We love maps! Here you can set your Google Maps API key for Otter's Map Block.")},{target:".otter-step-five",content:De("If you don't have an API key, you can register one by clicking here.")},{target:".otter-step-six",content:De("Help us in making our plugin better with anonymous data tracking.")},{target:".otter-step-seven",content:De("If you ever need any help, we are a team of real Otter-lovers who would love to help you out.")},{target:".otter-step-eight",content:De("And if you love what we do, please leave us a review at WordPress.org. Your review keeps us motivated to make awesome things.")},{target:".otter-step-one",content:De("That's it for now! Hope you enjoy Otter and love it as much as we do.")}],l=Ae((function(e){if(t&&n(!1),"ready"===e||"finished"===e||"skipped"===e){var o=new wp.api.models.Settings({themeisle_blocks_settings_tour:!1}).save();o.success((function(e,t){a.current.fetch()})),o.error((function(e,t){console.warning(e.responseJSON.message)}))}}),1e3);return wp.element.createElement(He,null,t&&wp.element.createElement(We,{title:De("Welcome to Otter!"),isDismissable:!1,isDismissible:!1,className:"otter-onboarding-modal"},wp.element.createElement("div",{className:"otter-onboarding-modal-content"},De("Would you like to start the onboarding wizard which will help you personalize the plugin for yourself?")),wp.element.createElement("div",{className:"otter-onboarding-modal-action"},wp.element.createElement(Be,{isPrimary:!0,isLarge:!0,onClick:function(){n(!1),i(!0)}},De("Start")),wp.element.createElement(Be,{isDefault:!0,isLarge:!0,onClick:function(){return l("skipped")}},De("Skip")))),wp.element.createElement(Me,{continuous:!0,run:r,steps:s,scrollToFirstStep:!0,showSkipButton:!0,locale:{back:De("Back"),close:De("Close"),last:De("Finish"),next:De("Next"),skip:De("Skip")},callback:function(e){return l(e.status)}}))},$e=n(9),Ye=n.n($e),Ke=wp.i18n.__,Xe=function(){return wp.element.createElement("header",{className:"otter-header"},wp.element.createElement("div",{className:Ye()("otter-container","otter-step-one")},wp.element.createElement("div",{className:"otter-logo"},wp.element.createElement("img",{src:otterObj.assetsPath+"images/logo.png",title:Ke("Gutenberg Blocks and Template Library by Otter")}),wp.element.createElement("abbr",{title:"Version: ".concat(otterObj.version),className:"version"},otterObj.version))))},Je=(n(23),wp.i18n.__,wp.components.Button),Ze=function(e){var t=e.label,n=e.help,o=e.buttonLabel,r=e.disabled,i=e.action,a=e.className;return wp.element.createElement("div",{className:Ye()("components-base-control","otter-button-control",a)},wp.element.createElement("div",{className:"components-base-control_labels"},wp.element.createElement("span",{className:"components-base-control__label"},t),wp.element.createElement("p",{className:"components-base-control__help"},n)),wp.element.createElement("div",{className:"otter-button-control-group"},wp.element.createElement(Je,{isPrimary:!0,isLarge:!0,disabled:r,onClick:i},o)))};function Qe(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var nt=wp.i18n.__,ot=wp.apiFetch,rt=wp.components,it=rt.BaseControl,at=rt.Button,st=rt.ExternalLink,lt=rt.Modal,ct=rt.PanelBody,ut=rt.PanelRow,pt=rt.Placeholder,ft=rt.Spinner,dt=rt.ToggleControl,ht=wp.element,mt=ht.Fragment,yt=ht.useEffect,vt=ht.useRef,bt=ht.useState,gt=function(){yt((function(){wp.api.loadPromise.then((function(){I.current=new wp.api.models.Settings,!1===t&&I.current.fetch().then((function(e){f(Boolean(e.themeisle_blocks_settings_css_module)),m(Boolean(e.themeisle_blocks_settings_blocks_animation)),b(Boolean(e.themeisle_blocks_settings_default_block)),E(e.themeisle_google_map_block_api_key),k(e.otter_blocks_logger_flag),n(!0)}))})),Boolean(otterObj.stylesExist)||j(!0)}),[]);var e=et(bt(!1),2),t=e[0],n=e[1],r=et(bt(!1),2),i=r[0],a=r[1],s=et(bt(null),2),l=s[0],c=s[1],u=et(bt(!1),2),p=u[0],f=u[1],d=et(bt(!1),2),h=d[0],m=d[1],y=et(bt(!0),2),v=y[0],b=y[1],g=et(bt(""),2),w=g[0],E=g[1],O=et(bt("no"),2),S=O[0],k=O[1],x=et(bt(!1),2),P=x[0],C=x[1],N=et(bt(!1),2),T=N[0],j=N[1],I=vt(null),R=(vt(null),function(e,t,n){a(!0),_(nt("Updating settings…"),"info");var r=new wp.api.models.Settings(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,n)).save();r.success((function(n,r){o.store.removeNotification(l),"success"===r&&(M(t,n[e]),setTimeout((function(){_(nt("Settings saved."),"success"),a(!1)}),800)),"error"===r&&setTimeout((function(){_(nt("An unknown error occurred."),"danger"),a(!1)}),800),I.current.fetch()})),r.error((function(e,t){o.store.removeNotification(l),setTimeout((function(){_(e.responseJSON.message?e.responseJSON.message:nt("An unknown error occurred."),"danger"),a(!1)}),800)}))}),M=function(e,t){switch(e){case"cssModule":f(t);break;case"blocksAnimation":m(t);break;case"isDefaultSection":b(t);break;case"googleMapsAPI":E(t);break;case"isLoggingData":k(t)}},L=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a(!0),e.next=3,ot({path:"themeisle-gutenberg-blocks/v1/regenerate_styles",method:"DELETE"});case 3:t=e.sent,_(t.data.message,t.success?"success":"danger"),j(!0),a(!1),C(!1);case 8:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Qe(i,o,r,a,s,"next",e)}function s(e){Qe(i,o,r,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),_=function(e,t){var n=o.store.addNotification({message:e,type:t,insert:"top",container:"bottom-left",isMobile:!0,dismiss:{duration:2e3,showIcon:!0},dismissable:{click:!0,touch:!0}});c(n)};return t?wp.element.createElement(mt,null,wp.element.createElement("div",{className:"otter-main"},wp.element.createElement("div",{className:"otter-step-two"},wp.element.createElement(ct,{title:nt("Modules")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Custom CSS Module"),help:"Custom CSS module allows to add custom CSS to each block in Block Editor.",checked:p,onChange:function(){return R("themeisle_blocks_settings_css_module","cssModule",!p)}})),wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Blocks Animation Module"),help:"Blocks Animation module allows to add CSS animations to each block in Block Editor.",checked:h,onChange:function(){return R("themeisle_blocks_settings_blocks_animation","blocksAnimation",!h)}})))),wp.element.createElement("div",{className:"otter-step-three"},wp.element.createElement(ct,{title:nt("Section")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Make Section your default block for Pages"),help:"Everytime you create a new page, Section block will be appended there by default.",checked:v,onChange:function(){return R("themeisle_blocks_settings_default_block","isDefaultSection",!v)}})))),wp.element.createElement("div",{className:"otter-step-four"},wp.element.createElement(ct,{title:nt("Maps")},wp.element.createElement(ut,null,wp.element.createElement(it,{label:nt("Google Maps API"),help:"In order to use Google Maps block, you need to use Google Maps and Places API.",id:"otter-options-google-map-api",className:"otter-button-field"},wp.element.createElement("input",{type:"text",id:"otter-options-google-map-api",value:w,placeholder:nt("Google Maps API Key"),disabled:i,onChange:function(e){return E(e.target.value)}}),wp.element.createElement("div",{className:"otter-button-group"},wp.element.createElement(at,{isPrimary:!0,isLarge:!0,disabled:i,onClick:function(){return R("themeisle_google_map_block_api_key","googleMapsAPI",w)}},nt("Save")),wp.element.createElement(st,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key",className:"otter-step-five"},nt("Get API Key"))))))),wp.element.createElement("div",{className:"otter-step-six"},wp.element.createElement(ct,{title:nt("Other")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Anonymous Data Tracking."),help:"Become a contributor by opting in to our anonymous data tracking. We guarantee no sensitive data is collected.",checked:"yes"===S,onChange:function(){return R("otter_blocks_logger_flag","isLoggingData","yes"===S?"no":"yes")}})),wp.element.createElement(ut,null,wp.element.createElement(Ze,{label:nt("Regenerate Styles"),help:"Clicking on this will delete all the Otter generated CSS files.",buttonLabel:nt("Regenerate"),disabled:T,action:function(){return C(!0)}})))),wp.element.createElement(ct,null,wp.element.createElement("div",{className:"otter-info"},wp.element.createElement("h2",null,nt("Got a question for us?")),wp.element.createElement("p",null,nt("We would love to help you out if you need any help with Otter.")),wp.element.createElement("div",{className:"otter-info-button-group"},wp.element.createElement(at,{isDefault:!0,isLarge:!0,target:"_blank",href:"https://wordpress.org/support/plugin/otter-blocks",className:"otter-step-seven"},nt("Ask a question")),wp.element.createElement(at,{isDefault:!0,isLarge:!0,target:"_blank",href:"https://wordpress.org/support/plugin/otter-blocks/reviews/#new-post",className:"otter-step-eight"},nt("Leave a review")))))),P&&wp.element.createElement(lt,{title:nt("Are you sure?"),onRequestClose:function(){return C(!1)}},wp.element.createElement("p",null,nt("Are you sure you want to delete all Otter generated CSS files?")),wp.element.createElement("p",null,nt("Note: Styles will be regenerated as users start visiting your pages.")),wp.element.createElement("div",{className:"otter-modal-actions"},wp.element.createElement(at,{isSecondary:!0,isLarge:!0,onClick:function(){return C(!1)}},nt("Cancel")),wp.element.createElement(at,{isPrimary:!0,isLarge:!0,disabled:i,isBusy:i,onClick:L},nt("Confirm"))))):wp.element.createElement(pt,null,wp.element.createElement(ft,null))},wt=wp.i18n.__,Et=function(){return wp.element.createElement("footer",{className:"otter-footer"},wp.element.createElement("div",{className:"otter-container"},wt("No otters were harmed during the making of this plugin.")))},Ot=wp.element,St=Ot.render,kt=Ot.Fragment;St(wp.element.createElement((function(){return wp.element.createElement(kt,null,Boolean(otterObj.showTour)&&wp.element.createElement(Ve,null),wp.element.createElement(r.a,null),wp.element.createElement(Xe,null),wp.element.createElement(gt,null),wp.element.createElement(Et,null))}),null),document.getElementById("otter"))}]);
|
33 |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
34 |
* SOFTWARE.
|
35 |
*/
|
36 |
+
var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var r=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),o))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+o)?e:l(s(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),p=n&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?u:10===e?p:u||p}function d(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?d(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,r=n?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(r,0);var a,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||o.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&d(a.firstElementChild)!==a?d(l):l;var c=h(e);return c.host?m(c.host,t):m(e,h(t).host)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"===o||"HTML"===o){var r=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||r;return i[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=y(t,"top"),r=y(t,"left"),i=n?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=r*i,e.right+=r*i,e}function b(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+o+"Width"])}function g(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,o=f(10)&&getComputedStyle(n);return{height:g("Height",t,n,o),width:g("Width",t,n,o)}}var E=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},O=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),S=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function x(e){return k({},e,{right:e.left+e.width,bottom:e.top+e.height})}function P(e){var t={};try{if(f(10)){t=e.getBoundingClientRect();var n=y(e,"top"),o=y(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?w(e.ownerDocument):{},s=i.width||e.clientWidth||r.width,l=i.height||e.clientHeight||r.height,c=e.offsetWidth-s,u=e.offsetHeight-l;if(c||u){var p=a(e);c-=b(p,"x"),u-=b(p,"y"),r.width-=c,r.height-=u}return x(r)}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=f(10),r="HTML"===t.nodeName,i=P(e),s=P(t),c=l(e),u=a(t),p=parseFloat(u.borderTopWidth),d=parseFloat(u.borderLeftWidth);n&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=x({top:i.top-s.top-p,left:i.left-s.left-d,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!o&&r){var m=parseFloat(u.marginTop),y=parseFloat(u.marginLeft);h.top-=p-m,h.bottom-=p-m,h.left-=d-y,h.right-=d-y,h.marginTop=m,h.marginLeft=y}return(o&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(h=v(h,t)),h}function N(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=C(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:y(n),s=t?0:y(n,"left"),l={top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:r,height:i};return x(l)}function T(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&T(n)}function j(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function I(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=r?j(e):m(e,c(t));if("viewport"===o)i=N(a,r);else{var u=void 0;"scrollParent"===o?"BODY"===(u=l(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===o?e.ownerDocument.documentElement:o;var p=C(u,a,r);if("HTML"!==u.nodeName||T(a))i=p;else{var f=w(e.ownerDocument),d=f.height,h=f.width;i.top+=p.top-p.marginTop,i.bottom=d+p.top,i.left+=p.left-p.marginLeft,i.right=h+p.left}}var y="number"==typeof(n=n||0);return i.left+=y?n:n.left||0,i.top+=y?n:n.top||0,i.right-=y?n:n.right||0,i.bottom-=y?n:n.bottom||0,i}function R(e){return e.width*e.height}function M(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=I(n,o,i,r),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return k({key:e},s[e],{area:R(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,p=e.split("-")[1];return u+(p?"-"+p:"")}function _(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=o?j(t):m(t,c(n));return C(n,r,o)}function L(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function A(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function D(e,t,n){n=n.split("-")[0];var o=L(e),r={width:o.width,height:o.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return r[a]=t[a]+t[l]/2-o[l]/2,r[s]=n===s?t[s]-o[c]:t[A(s)],r}function F(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function B(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=F(e,(function(e){return e[t]===n}));return e.indexOf(o)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=x(t.offsets.popper),t.offsets.reference=x(t.offsets.reference),t=n(t,e))})),t}function W(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=_(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=M(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=D(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=B(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function z(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function H(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var r=t[o],i=r?""+r+n:e;if(void 0!==document.body.style[i])return i}return null}function U(){return this.state.isDestroyed=!0,z(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[H("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(e){var t=e.ownerDocument;return t?t.defaultView:window}function G(e,t,n,o){n.updateBound=o,q(e).addEventListener("resize",n.updateBound,{passive:!0});var r=l(e);return function e(t,n,o,r){var i="BODY"===t.nodeName,a=i?t.ownerDocument.defaultView:t;a.addEventListener(n,o,{passive:!0}),i||e(l(a.parentNode),n,o,r),r.push(a)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function V(){this.state.eventsEnabled||(this.state=G(this.reference,this.options,this.state,this.scheduleUpdate))}function $(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,q(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Y(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function K(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Y(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var X=n&&/Firefox/i.test(navigator.userAgent);function J(e,t,n){var o=F(e,(function(e){return e.name===t})),r=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));if(!r){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return r}var Z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Q=Z.slice(3);function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(e),o=Q.slice(n+1).concat(Q.slice(0,n));return t?o.reverse():o}var te="flip",ne="clockwise",oe="counterclockwise";function re(e,t,n,o){var r=[0,0],i=-1!==["right","left"].indexOf(o),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(F(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,o){var r=(1===o?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],a=r[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=o}return x(s)[t]/100*i}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i}return i}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,o){Y(n)&&(r[t]+=n*("-"===e[o-1]?-1:1))}))})),r}var ie={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var r=e.offsets,i=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:S({},l,i[l]),end:S({},l,i[l]+i[c]-a[c])};e.offsets.popper=k({},a,u[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,r=e.offsets,i=r.popper,a=r.reference,s=o.split("-")[0],l=void 0;return l=Y(+n)?[+n,0]:re(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||d(e.instance.popper);e.instance.reference===n&&(n=d(n));var o=H("transform"),r=e.instance.popper.style,i=r.top,a=r.left,s=r[o];r.top="",r.left="",r[o]="";var l=I(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=i,r.left=a,r[o]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,p={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),S({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(o=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),S({},n,o)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=k({},u,p[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<i(o[l])&&(e.offsets.popper[l]=i(o[l])-n[c]),n[l]>i(o[s])&&(e.offsets.popper[l]=i(o[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!J(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,s=i.popper,l=i.reference,c=-1!==["left","right"].indexOf(r),u=c?"height":"width",p=c?"Top":"Left",f=p.toLowerCase(),d=c?"left":"top",h=c?"bottom":"right",m=L(o)[u];l[h]-m<s[f]&&(e.offsets.popper[f]-=s[f]-(l[h]-m)),l[f]+m>s[h]&&(e.offsets.popper[f]+=l[f]+m-s[h]),e.offsets.popper=x(e.offsets.popper);var y=l[f]+l[u]/2-m/2,v=a(e.instance.popper),b=parseFloat(v["margin"+p]),g=parseFloat(v["border"+p+"Width"]),w=y-e.offsets.popper[f]-b-g;return w=Math.max(Math.min(s[u]-m,w),0),e.arrowElement=o,e.offsets.arrow=(S(n={},f,Math.round(w)),S(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(z(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=I(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],r=A(o),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case te:a=[o,r];break;case ne:a=ee(o);break;case oe:a=ee(o,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(o!==s||a.length===l+1)return e;o=e.placement.split("-")[0],r=A(o);var c=e.offsets.popper,u=e.offsets.reference,p=Math.floor,f="left"===o&&p(c.right)>p(u.left)||"right"===o&&p(c.left)<p(u.right)||"top"===o&&p(c.bottom)>p(u.top)||"bottom"===o&&p(c.top)<p(u.bottom),d=p(c.left)<p(n.left),h=p(c.right)>p(n.right),m=p(c.top)<p(n.top),y=p(c.bottom)>p(n.bottom),v="left"===o&&d||"right"===o&&h||"top"===o&&m||"bottom"===o&&y,b=-1!==["top","bottom"].indexOf(o),g=!!t.flipVariations&&(b&&"start"===i&&d||b&&"end"===i&&h||!b&&"start"===i&&m||!b&&"end"===i&&y),w=!!t.flipVariationsByContent&&(b&&"start"===i&&h||b&&"end"===i&&d||!b&&"start"===i&&y||!b&&"end"===i&&m),E=g||w;(f||v||E)&&(e.flipped=!0,(f||v)&&(o=a[l+1]),E&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=o+(i?"-"+i:""),e.offsets.popper=k({},e.offsets.popper,D(e.instance.popper,e.offsets.reference,e.placement)),e=B(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=i[n]-(s?r[a?"width":"height"]:0),e.placement=A(t),e.offsets.popper=x(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!J(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=F(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,r=e.offsets.popper,i=F(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=d(e.instance.popper),l=P(s),c={position:r.position},u=function(e,t){var n=e.offsets,o=n.popper,r=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(r.width),c=i(o.width),u=-1!==["left","right"].indexOf(e.placement),p=-1!==e.placement.indexOf("-"),f=t?u||p||l%2==c%2?i:a:s,d=t?i:s;return{left:f(l%2==1&&c%2==1&&!p&&t?o.left-1:o.left),top:d(o.top),bottom:d(o.bottom),right:f(o.right)}}(e,window.devicePixelRatio<2||!X),p="bottom"===n?"top":"bottom",f="right"===o?"left":"right",h=H("transform"),m=void 0,y=void 0;if(y="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&h)c[h]="translate3d("+m+"px, "+y+"px, 0)",c[p]=0,c[f]=0,c.willChange="transform";else{var v="bottom"===p?-1:1,b="right"===f?-1:1;c[p]=y*v,c[f]=m*b,c.willChange=p+", "+f}var g={"x-placement":e.placement};return e.attributes=k({},g,e.attributes),e.styles=k({},c,e.styles),e.arrowStyles=k({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return K(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&K(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,r){var i=_(r,t,e,n.positionFixed),a=M(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),K(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ae=function(){function e(t,n){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};E(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=r(this.update.bind(this)),this.options=k({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(k({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){o.options.modifiers[t]=k({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return k({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&i(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return O(e,[{key:"update",value:function(){return W.call(this)}},{key:"destroy",value:function(){return U.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return $.call(this)}}]),e}();ae.Utils=("undefined"!=typeof window?window:e).PopperUtils,ae.placements=Z,ae.Defaults=ie,t.a=ae}).call(this,n(13))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n=new Error("Element already at target scroll position"),o=new Error("Scroll cancelled"),r=Math.min,i=Date.now;function a(e){return function(t,a,c,u){"function"==typeof(c=c||{})&&(u=c,c={}),"function"!=typeof u&&(u=l);var p=i(),f=t[e],d=c.ease||s,h=isNaN(c.duration)?350:+c.duration,m=!1;return f===a?u(n,t[e]):requestAnimationFrame((function n(s){if(m)return u(o,t[e]);var l=i(),c=r(1,(l-p)/h),y=d(c);t[e]=y*(a-f)+f,c<1?requestAnimationFrame(n):requestAnimationFrame((function(){u(null,t[e])}))})),function(){m=!0}}}function s(e){return.5*(1-Math.cos(Math.PI*e))}function l(){}e.exports={left:a("scrollLeft"),top:a("scrollTop")}},function(e,t,n){"use strict";(function(e){var o=n(1),r=n.n(o),i=n(0),a=n.n(i),s=n(11),l=n.n(s),c=n(12),u=n(3),p=n.n(u),f=n(2),d=n.n(f),h=n(5),m=n.n(h),y=n(4),v=n.n(y),b=n(8);function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?T(e):t}var I={flip:{padding:20},preventOverflow:{padding:10}},R={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},M=n.n(b).a.canUseDOM,_=void 0!==v.a.createPortal;function L(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function A(e){var t=e.title,n=e.data,o=e.warn,r=void 0!==o&&o,i=e.debug,a=void 0!==i&&i,s=r?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){d.a.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd())}function D(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,o)}function F(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,o)}function B(){}var W=function(e){function t(e){var n;return g(this,t),n=j(this,P(t).call(this,e)),M?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),e.zIndex&&(n.node.style.zIndex=e.zIndex),document.body.appendChild(n.node),n):j(n)}return x(t,e),E(t,[{key:"componentDidMount",value:function(){M&&(_||this.renderPortal())}},{key:"componentDidUpdate",value:function(){M&&(_||this.renderPortal())}},{key:"componentWillUnmount",value:function(){M&&this.node&&(_||v.a.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderPortal",value:function(){if(!M)return null;var e=this.props,t=e.children,n=e.setRef;return _?v.a.createPortal(t,this.node):(n(v.a.unstable_renderSubtreeIntoContainer(this,t.length>1?r.a.createElement("div",null,t):t[0],this.node)),null)}},{key:"renderReact16",value:function(){var e=this.props,t=e.hasChildren,n=e.placement,o=e.target;return t||o||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return _?this.renderReact16():null}}]),t}(r.a.Component);O(W,"propTypes",{children:a.a.oneOfType([a.a.element,a.a.array]),hasChildren:a.a.bool,id:a.a.oneOfType([a.a.string,a.a.number]),placement:a.a.string,setRef:a.a.func.isRequired,target:a.a.oneOfType([a.a.object,a.a.string]),zIndex:a.a.number});var z=function(e){function t(){return g(this,t),j(this,P(t).apply(this,arguments))}return x(t,e),E(t,[{key:"render",value:function(){var e,t=this.props,n=t.placement,o=t.setArrowRef,i=t.styles.arrow,a=i.color,s=i.display,l=i.length,c=i.margin,u=i.position,p=i.spread,f={display:s,position:u},d=p,h=l;return n.startsWith("top")?(e="0,0 ".concat(d/2,",").concat(h," ").concat(d,",0"),f.bottom=0,f.marginLeft=c,f.marginRight=c):n.startsWith("bottom")?(e="".concat(d,",").concat(h," ").concat(d/2,",0 0,").concat(h),f.top=0,f.marginLeft=c,f.marginRight=c):n.startsWith("left")?(h=p,e="0,0 ".concat(d=l,",").concat(h/2," 0,").concat(h),f.right=0,f.marginTop=c,f.marginBottom=c):n.startsWith("right")&&(h=p,e="".concat(d=l,",").concat(h," ").concat(d,",0 0,").concat(h/2),f.left=0,f.marginTop=c,f.marginBottom=c),r.a.createElement("div",{className:"__floater__arrow",style:this.parentStyle},r.a.createElement("span",{ref:o,style:f},r.a.createElement("svg",{width:d,height:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.a.createElement("polygon",{points:e,fill:a}))))}},{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,o={pointerEvents:"none",position:"absolute",width:"100%"};return t.startsWith("top")?(o.bottom=0,o.left=0,o.right=0,o.height=n):t.startsWith("bottom")?(o.left=0,o.right=0,o.top=0,o.height=n):t.startsWith("left")?(o.right=0,o.top=0,o.bottom=0):t.startsWith("right")&&(o.left=0,o.top=0),o}}]),t}(r.a.Component);O(z,"propTypes",{placement:a.a.string.isRequired,setArrowRef:a.a.func.isRequired,styles:a.a.object.isRequired});var H=function(e){var t=e.handleClick,n=e.styles,o=n.color,i=n.height,a=n.width,s=N(n,["color","height","width"]);return r.a.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},r.a.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},r.a.createElement("g",null,r.a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))};H.propTypes={handleClick:a.a.func.isRequired,styles:a.a.object.isRequired};var U=function(e){var t=e.content,n=e.footer,o=e.handleClick,i=e.open,a=e.positionWrapper,s=e.showCloseButton,l=e.title,c=e.styles,u={content:r.a.isValidElement(t)?t:r.a.createElement("div",{className:"__floater__content",style:c.content},t)};return l&&(u.title=r.a.isValidElement(l)?l:r.a.createElement("div",{className:"__floater__title",style:c.title},l)),n&&(u.footer=r.a.isValidElement(n)?n:r.a.createElement("div",{className:"__floater__footer",style:c.footer},n)),!s&&!a||d.a.boolean(i)||(u.close=r.a.createElement(H,{styles:c.close,handleClick:o})),r.a.createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)};U.propTypes={content:a.a.node.isRequired,footer:a.a.node,handleClick:a.a.func.isRequired,open:a.a.bool,positionWrapper:a.a.bool.isRequired,showCloseButton:a.a.bool.isRequired,styles:a.a.object.isRequired,title:a.a.node};var q=function(e){function t(){return g(this,t),j(this,P(t).apply(this,arguments))}return x(t,e),E(t,[{key:"render",value:function(){var e=this.props,t=e.component,n=e.handleClick,o=e.hideArrow,i=e.setFloaterRef,a=e.status,s={},l=["__floater"];return t?r.a.isValidElement(t)?s.content=r.a.cloneElement(t,{closeFn:n}):s.content=t({closeFn:n}):s.content=r.a.createElement(U,this.props),a===R.OPEN&&l.push("__floater__open"),o||(s.arrow=r.a.createElement(z,this.props)),r.a.createElement("div",{ref:i,className:l.join(" "),style:this.style},r.a.createElement("div",{className:"__floater__body"},s.content,s.arrow))}},{key:"style",get:function(){var e=this.props,t=e.disableAnimation,n=e.component,o=e.placement,r=e.hideArrow,i=e.status,a=e.styles,s=a.arrow.length,l=a.floater,c=a.floaterCentered,u=a.floaterClosing,p=a.floaterOpening,f=a.floaterWithAnimation,d=a.floaterWithComponent,h={};return r||(o.startsWith("top")?h.padding="0 0 ".concat(s,"px"):o.startsWith("bottom")?h.padding="".concat(s,"px 0 0"):o.startsWith("left")?h.padding="0 ".concat(s,"px 0 0"):o.startsWith("right")&&(h.padding="0 0 0 ".concat(s,"px"))),-1!==[R.OPENING,R.OPEN].indexOf(i)&&(h=k({},h,{},p)),i===R.CLOSING&&(h=k({},h,{},u)),i!==R.OPEN||t||(h=k({},h,{},f)),"center"===o&&(h=k({},h,{},c)),n&&(h=k({},h,{},d)),k({},l,{},h)}}]),t}(r.a.Component);O(q,"propTypes",{component:a.a.oneOfType([a.a.func,a.a.element]),content:a.a.node,disableAnimation:a.a.bool.isRequired,footer:a.a.node,handleClick:a.a.func.isRequired,hideArrow:a.a.bool.isRequired,open:a.a.bool,placement:a.a.string.isRequired,positionWrapper:a.a.bool.isRequired,setArrowRef:a.a.func.isRequired,setFloaterRef:a.a.func.isRequired,showCloseButton:a.a.bool,status:a.a.string.isRequired,styles:a.a.object.isRequired,title:a.a.node});var G=function(e){function t(){return g(this,t),j(this,P(t).apply(this,arguments))}return x(t,e),E(t,[{key:"render",value:function(){var e,t=this.props,n=t.children,o=t.handleClick,i=t.handleMouseEnter,a=t.handleMouseLeave,s=t.setChildRef,l=t.setWrapperRef,c=t.style,u=t.styles;if(n)if(1===r.a.Children.count(n))if(r.a.isValidElement(n)){var p=d.a.function(n.type)?"innerRef":"ref";e=r.a.cloneElement(r.a.Children.only(n),O({},p,s))}else e=r.a.createElement("span",null,n);else e=n;return e?r.a.createElement("span",{ref:l,style:k({},u,{},c),onClick:o,onMouseEnter:i,onMouseLeave:a},e):null}}]),t}(r.a.Component);O(G,"propTypes",{children:a.a.node,handleClick:a.a.func.isRequired,handleMouseEnter:a.a.func.isRequired,handleMouseLeave:a.a.func.isRequired,setChildRef:a.a.func.isRequired,setWrapperRef:a.a.func.isRequired,style:a.a.object,styles:a.a.object.isRequired});var V={zIndex:100};var $=["position","top","right","bottom","left"],Y=function(t){function n(e){var t;return g(this,n),O(T(t=j(this,P(n).call(this,e))),"setArrowRef",(function(e){t.arrowRef=e})),O(T(t),"setChildRef",(function(e){t.childRef=e})),O(T(t),"setFloaterRef",(function(e){t.floaterRef||(t.floaterRef=e)})),O(T(t),"setWrapperRef",(function(e){t.wrapperRef=e})),O(T(t),"handleTransitionEnd",(function(){var e=t.state.status,n=t.props.callback;t.wrapperPopper&&t.wrapperPopper.instance.update(),t.setState({status:e===R.OPENING?R.OPEN:R.IDLE},(function(){var e=t.state.status;n(e===R.OPEN?"open":"close",t.props)}))})),O(T(t),"handleClick",(function(){var e=t.props,n=e.event,o=e.open;if(!d.a.boolean(o)){var r=t.state,i=r.positionWrapper,a=r.status;("click"===t.event||"hover"===t.event&&i)&&(A({title:"click",data:[{event:n,status:a===R.OPEN?"closing":"opening"}],debug:t.debug}),t.toggle())}})),O(T(t),"handleMouseEnter",(function(){var e=t.props,n=e.event,o=e.open;if(!d.a.boolean(o)&&!L()){var r=t.state.status;"hover"===t.event&&r===R.IDLE&&(A({title:"mouseEnter",data:[{key:"originalEvent",value:n}],debug:t.debug}),clearTimeout(t.eventDelayTimeout),t.toggle())}})),O(T(t),"handleMouseLeave",(function(){var e=t.props,n=e.event,o=e.eventDelay,r=e.open;if(!d.a.boolean(r)&&!L()){var i=t.state,a=i.status,s=i.positionWrapper;"hover"===t.event&&(A({title:"mouseLeave",data:[{key:"originalEvent",value:n}],debug:t.debug}),o?-1===[R.OPENING,R.OPEN].indexOf(a)||s||t.eventDelayTimeout||(t.eventDelayTimeout=setTimeout((function(){delete t.eventDelayTimeout,t.toggle()}),1e3*o)):t.toggle(R.IDLE))}})),t.state={currentPlacement:e.placement,positionWrapper:e.wrapperOptions.position&&!!e.target,status:R.INIT,statusWrapper:R.INIT},t._isMounted=!1,M&&window.addEventListener("load",(function(){t.popper&&t.popper.instance.update(),t.wrapperPopper&&t.wrapperPopper.instance.update()})),t}return x(n,t),E(n,[{key:"componentDidMount",value:function(){if(M){var e=this.state.positionWrapper,t=this.props,n=t.children,o=t.open,r=t.target;this._isMounted=!0,A({title:"init",data:{hasChildren:!!n,hasTarget:!!r,isControlled:d.a.boolean(o),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.initPopper(),!n&&r&&d.a.boolean(o)}}},{key:"componentDidUpdate",value:function(e,t){if(M){var n,o=this.props,r=o.autoOpen,i=o.open,a=o.target,s=o.wrapperOptions,l=m()(t,this.state),c=l.changedFrom,u=l.changedTo;if(e.open!==i)d.a.boolean(i)&&(n=i?R.OPENING:R.CLOSING),this.toggle(n);e.wrapperOptions.position===s.position&&e.target===a||this.changeWrapperPosition(this.props),(u("status",R.IDLE)&&i||c("status",R.INIT,R.IDLE)&&r)&&this.toggle(R.OPEN),this.popper&&u("status",R.OPENING)&&this.popper.instance.update(),this.floaterRef&&(u("status",R.OPENING)||u("status",R.CLOSING))&&function(e,t,n){var o,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];D(e,t,o=function(r){n(r),F(e,t,o)},r)}(this.floaterRef,"transitionend",this.handleTransitionEnd)}}},{key:"componentWillUnmount",value:function(){M&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,o=this.props,r=o.disableFlip,i=o.getPopper,a=o.hideArrow,s=o.offset,l=o.placement,u=o.wrapperOptions,p="top"===l||"bottom"===l?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===l)this.setState({status:R.IDLE});else if(t&&this.floaterRef){var f=this.options,h=f.arrow,m=f.flip,y=f.offset,v=N(f,["arrow","flip","offset"]);new c.a(t,this.floaterRef,{placement:l,modifiers:k({arrow:k({enabled:!a,element:this.arrowRef},h),flip:k({enabled:!r,behavior:p},m),offset:k({offset:"0, ".concat(s,"px")},y)},v),onCreate:function(t){e.popper=t,i(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:R.IDLE}),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)},onUpdate:function(t){e.popper=t;var n=e.state.currentPlacement;e._isMounted&&t.placement!==n&&e.setState({currentPlacement:t.placement})}})}if(n){var b=d.a.undefined(u.offset)?0:u.offset;new c.a(this.target,this.wrapperRef,{placement:u.placement||l,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(b,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:R.IDLE}),i(t,"wrapper"),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)}})}}},{key:"changeWrapperPosition",value:function(e){var t=e.target,n=e.wrapperOptions;this.setState({positionWrapper:n.position&&!!t})}},{key:"toggle",value:function(e){var t=this.state.status===R.OPEN?R.CLOSING:R.OPENING;d.a.undefined(e)||(t=e),this.setState({status:t})}},{key:"render",value:function(){var e=this.state,t=e.currentPlacement,n=e.positionWrapper,o=e.status,i=this.props,a=i.children,s=i.component,l=i.content,c=i.disableAnimation,u=i.footer,p=i.hideArrow,f=i.id,d=i.open,h=i.showCloseButton,m=i.style,y=i.target,v=i.title,b=r.a.createElement(G,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:m,styles:this.styles.wrapper},a),g={};return n?g.wrapperInPortal=b:g.wrapperAsChildren=b,r.a.createElement("span",null,r.a.createElement(W,{hasChildren:!!a,id:f,placement:t,setRef:this.setFloaterRef,target:y,zIndex:this.styles.options.zIndex},r.a.createElement(q,{component:s,content:l,disableAnimation:c,footer:u,handleClick:this.handleClick,hideArrow:p||"center"===t,open:d,placement:t,positionWrapper:n,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:h,status:o,styles:this.styles,title:v}),g.wrapperInPortal),g.wrapperAsChildren)}},{key:"debug",get:function(){return this.props.debug||!!e.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&L()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return p()(I,e||{})}},{key:"styles",get:function(){var e,t=this,n=this.state,o=n.status,r=n.positionWrapper,i=n.statusWrapper,a=this.props.styles,s=p()(function(e){var t=p()(V,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}(a),a);r&&(e=-1===[R.IDLE].indexOf(o)||-1===[R.IDLE].indexOf(i)?s.wrapperPosition:this.wrapperPopper.styles,s.wrapper=k({},s.wrapper,{},e));if(this.target){var l=window.getComputedStyle(this.target);this.wrapperStyles?s.wrapper=k({},s.wrapper,{},this.wrapperStyles):-1===["relative","static"].indexOf(l.position)&&(this.wrapperStyles={},r||($.forEach((function(e){t.wrapperStyles[e]=l[e]})),s.wrapper=k({},s.wrapper,{},this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return s}},{key:"target",get:function(){if(!M)return null;var e=this.props.target;return e?d.a.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}}]),n}(r.a.Component);O(Y,"propTypes",{autoOpen:a.a.bool,callback:a.a.func,children:a.a.node,component:l()(a.a.oneOfType([a.a.func,a.a.element]),(function(e){return!e.content})),content:l()(a.a.node,(function(e){return!e.component})),debug:a.a.bool,disableAnimation:a.a.bool,disableFlip:a.a.bool,disableHoverToClick:a.a.bool,event:a.a.oneOf(["hover","click"]),eventDelay:a.a.number,footer:a.a.node,getPopper:a.a.func,hideArrow:a.a.bool,id:a.a.oneOfType([a.a.string,a.a.number]),offset:a.a.number,open:a.a.bool,options:a.a.object,placement:a.a.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:a.a.bool,style:a.a.object,styles:a.a.object,target:a.a.oneOfType([a.a.object,a.a.string]),title:a.a.node,wrapperOptions:a.a.shape({offset:a.a.number,placement:a.a.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:a.a.bool})}),O(Y,"defaultProps",{autoOpen:!1,callback:B,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:B,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}}),t.a=Y}).call(this,n(13))},function(e,t,n){e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){e.exports=n(1)},function(e,t,n){e.exports=n(2)()},function(e,t,n){"use strict";var o=n(3);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var o="bottom-left",r="bottom-right",i="bottom-center",a="top-left",s="top-right",l="top-center",c="center",u="success",p="danger",f="info",d="default",h="warning",m="timeout",y=function(e){return null==e};function v(e){return e===o||e===r||e===i}function b(e){return e===a||e===s||e===l}function g(e){var t=e.type,n=e.content,o=e.userDefinedTypes,r=["notification-item"];if(n)return r;if(y(o))return function(e){switch(e){case d:return["notification-item","notification-default"];case u:return["notification-item","notification-success"];case p:return["notification-item","notification-danger"];case h:return["notification-item","notification-warning"];case f:return["notification-item","notification-info"];default:return["notification-item"]}}(t);var i=o.find((function(e){return e.name===t}));return r.concat(i.htmlClasses)}function w(e,t){var n=e.duration,o=e.timingFunction,r=e.delay;return"".concat(n,"ms ").concat(t," ").concat(o," ").concat(r,"ms")}function E(e,t){var n=t.duration,o=t.timingFunction,r=t.delay,i=e||{};return y(i.duration)&&(i.duration=n),y(i.timingFunction)&&(i.timingFunction=o),y(i.delay)&&(i.delay=r),i}var O=n(0),S=n.n(O),k=new function(){var e=this;return this.types=null,this.counter=0,this.add=function(){},this.addNotification=function(t){var n=e.types;return e.counter+=1,e.add(function(e,t){var n=e,o=n.id,r=n.type,i=n.insert,a=n.content,s=n.container,l=n.animationIn,c=n.animationOut,m=n.slidingEnter,v=n.slidingExit,b=n.touchRevert,g=n.touchSlidingExit,w=n.dismiss,O=n.width,S=n.onRemoval;n.id=o||k.counter,n.type=a?null:r.toLowerCase(),t&&!a&&(n.userDefinedTypes=function(e,t){var n=e.content,o=e.type;if(!n&&o!==u&&o!==p&&o!==f&&o!==d&&o!==h&&t)return t}(n,t)),y(O)||(n.width=O),n.container=s.toLowerCase(),n.insert=(i||"top").toLowerCase(),n.dismiss=function(e){var t=e,n={duration:0,click:!0,touch:!0,onScreen:!1,waitForAnimation:!1,showIcon:!1};return t?(Object.keys(n).forEach((function(e){y(t[e])&&(t[e]=n[e])})),t):n}(w),n.animationIn=l||[],n.animationOut=c||[],n.onRemoval=S||function(){};var x=function(e,t,n){return{duration:e,timingFunction:t,delay:n}};n.slidingEnter=E(m,x(600,"linear",0)),n.slidingExit=E(v,x(600,"linear",0)),n.touchRevert=E(b,x(600,"linear",0));var P=g||{},C=P.swipe,N=P.fade;return n.touchSlidingExit=P,n.touchSlidingExit.swipe=E(C||{},x(600,"linear",0)),n.touchSlidingExit.fade=E(N||{},x(300,"linear",0)),n}(t,n))},this.removeNotification=function(){},this.register=function(t){var n=t.addNotification,o=t.removeNotification,r=t.types;e.add=n,e.removeNotification=o,e.types=r},this},x=n(1),P=n.n(x),C=function(e,t){var n,o,r=t;this.pause=function(){clearTimeout(n),r-=Date.now()-o},this.resume=function(){o=Date.now(),clearTimeout(n),n=setTimeout(e,r)},this.clear=function(){clearTimeout(n)},this.resume()};function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function _(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var F=function(e){function t(e){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=!(o=L(t).call(this,e))||"object"!==N(o)&&"function"!=typeof o?A(this):o).rootElementRef=S.a.createRef(),n.onClick=n.onClick.bind(A(n)),n.onTouchStart=n.onTouchStart.bind(A(n)),n.onTouchMove=n.onTouchMove.bind(A(n)),n.onTouchEnd=n.onTouchEnd.bind(A(n)),n.onMouseEnter=n.onMouseEnter.bind(A(n)),n.onMouseLeave=n.onMouseLeave.bind(A(n));var r=e.notification.width;return n.state={parentStyle:{height:0,overflow:"hidden",width:r?"".concat(r,"px"):"100%"},htmlClassList:g(e.notification),animationPlayState:"running",touchEnabled:!0},n}var n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(t,e),n=t,(o=[{key:"componentWillUnmount",value:function(){this.timer&&this.timer.clear()}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.notification,o=t.count,r=n.dismiss,i=r.duration,a=r.onScreen,s=this.rootElementRef.current.scrollHeight,l=function(e,t){return!(t<=1)&&t>1&&("top"===e.insert&&b(e.container)||"bottom"===e.insert&&v(e.container)||e.container===c)}(n,o),u=function(){i&&!a&&(e.timer=new C((function(){return e.removeNotification(m)}),i))};this.setState((function(e){return{parentStyle:{width:e.parentStyle.width,height:"".concat(s,"px"),transition:l?w(n.slidingEnter,"height"):"10ms height"},onTransitionEnd:u}}),(function(){requestAnimationFrame((function(){e.setState((function(e){return{htmlClassList:[].concat(M(n.animationIn),M(e.htmlClassList))}}))}))}))}},{key:"componentDidUpdate",value:function(e){var t=e.removed;this.props.removed&&!t&&this.removeNotification("manual")}},{key:"removeNotification",value:function(e){var t=this,n=this.props,o=n.notification,r=n.toggleRemoval,i=o.id,a=o.onRemoval,s=o.dismiss.waitForAnimation,l=[].concat(M(o.animationOut),M(g(o))),c=function(){return r(i,(function(){return a(i,e)}))},u={height:0,transition:w(o.slidingExit,"height")};return s?this.setState((function(e){var n=e.parentStyle.width;return{htmlClassList:l,onAnimationEnd:function(){t.setState({parentStyle:I({width:n},u),onTransitionEnd:c})}}})):this.setState((function(e){return{parentStyle:I({width:e.parentStyle.width},u),onTransitionEnd:c,htmlClassList:l}}))}},{key:"onClick",value:function(){var e=this.props.notification.dismiss;(e.click||e.showIcon)&&this.removeNotification("click")}},{key:"onTouchStart",value:function(e){var t=T(e.touches,1)[0].pageX;this.setState((function(e){var n=e.parentStyle;return{startX:t,currentX:t,parentStyle:I({},n,{position:"relative"})}}))}},{key:"onTouchMove",value:function(e){var t=this,n=e.touches,o=this.state.startX,r=this.props,i=r.toggleRemoval,a=r.notification,s=a.id,l=a.onRemoval,c=a.slidingExit,u=a.touchSlidingExit,p=u.swipe,f=u.fade,d=T(n,1)[0].pageX,h=d-o,m=this.rootElementRef.current.offsetWidth,y=window.innerWidth+m,v="".concat(d-o>=0?y:-y,"px");if(function(e,t){return Math.abs(e)>=.4*t}(h,m)){var b=w(p,"left"),g=w(f,"opacity"),E=function(){i(s,(function(){return l(s,"touch")}))};return this.setState((function(e){return{touchEnabled:!1,parentStyle:I({},e.parentStyle,{left:v,opacity:0,transition:"".concat(b,", ").concat(g)}),onTransitionEnd:function(){t.setState((function(e){return{parentStyle:I({},e.parentStyle,{height:0,transition:w(c,"height")}),onTransitionEnd:E}}))}}}))}return this.setState((function(e){var t=e.parentStyle;return{currentX:d,parentStyle:I({},t,{left:"".concat(0+h,"px")})}}))}},{key:"onTouchEnd",value:function(){var e=this.props.notification.touchRevert;this.setState((function(t){return{parentStyle:I({},t.parentStyle,{left:0,transition:w(e,"left")})}}))}},{key:"onMouseEnter",value:function(){this.timer?this.timer.pause():this.setState({animationPlayState:"paused"})}},{key:"onMouseLeave",value:function(){this.timer?this.timer.resume():this.setState({animationPlayState:"running"})}},{key:"renderTimer",value:function(){var e=this,t=this.props.notification.dismiss,n=t.duration,o=t.onScreen,r=this.state.animationPlayState;if(n&&o){var i={animationName:"timer",animationDuration:"".concat(n,"ms"),animationTimingFunction:"linear",animationFillMode:"forwards",animationDelay:0,animationPlayState:r};return S.a.createElement("div",{className:"timer"},S.a.createElement("div",{className:"timer-filler",onAnimationEnd:function(){return e.removeNotification(m)},style:i}))}}},{key:"renderCustomContent",value:function(){var e=this.state.htmlClassList,t=this.props.notification,n=t.id,o=t.content,r=t.dismiss,i=r.duration,a=r.pauseOnHover,s=i>0&&a;return S.a.createElement("div",{className:"".concat([].concat(M(e),["n-child"]).join(" ")),onMouseEnter:s?this.onMouseEnter:null,onMouseLeave:s?this.onMouseLeave:null},S.a.isValidElement(o)?o:S.a.createElement(o,{id:n}))}},{key:"renderNotification",value:function(){var e=this.props.notification,t=e.title,n=e.message,o=e.dismiss,r=o.showIcon,i=o.duration,a=o.pauseOnHover,s=this.state.htmlClassList,l=i>0&&a;return S.a.createElement("div",{className:"".concat([].concat(M(s),["n-child"]).join(" ")),onMouseEnter:l?this.onMouseEnter:null,onMouseLeave:l?this.onMouseLeave:null},S.a.createElement("div",{className:"notification-content"},r&&S.a.createElement("div",{className:"notification-close",onClick:this.onClick}),t&&S.a.createElement("div",{className:"notification-title"},t),S.a.createElement("div",{className:"notification-message"},n),this.renderTimer()))}},{key:"render",value:function(){var e=this.props.notification,t=e.content,n=e.dismiss.click,o=this.state,r=o.parentStyle,i=o.onAnimationEnd,a=o.onTransitionEnd,s=o.touchEnabled;return S.a.createElement("div",{ref:this.rootElementRef,onClick:n?this.onClick:null,className:"notification-parent",style:r,onAnimationEnd:i,onTransitionEnd:a,onTouchStart:s?this.onTouchStart:null,onTouchMove:s?this.onTouchMove:null,onTouchEnd:s?this.onTouchEnd:null},t?this.renderCustomContent():this.renderNotification())}}])&&_(n.prototype,o),t}(S.a.Component);F.propTypes={toggleRemoval:P.a.func.isRequired,count:P.a.number.isRequired,removed:P.a.bool};var B=F;function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function H(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e,t){return(G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n(4);var V=function(e){function t(e){var n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this,(n=!(o=U(t).call(this,e))||"object"!==W(o)&&"function"!=typeof o?q(this):o).state={isMobile:e.isMobile,breakpoint:e.breakpoint,notifications:[]},n.add=n.add.bind(q(n)),n.remove=n.remove.bind(q(n)),n.toggleRemoval=n.toggleRemoval.bind(q(n)),n.handleResize=n.handleResize.bind(q(n)),n}var n,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&G(e,t)}(t,e),n=t,(u=[{key:"componentDidMount",value:function(){var e=this.props.types;k.register({addNotification:this.add,removeNotification:this.remove,types:e}),this.setState({width:window.innerWidth}),window.addEventListener("resize",this.handleResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize)}},{key:"handleResize",value:function(){this.setState({width:window.innerWidth})}},{key:"add",value:function(e){return this.setState((function(t){var n=t.notifications;return{notifications:"top"===e.insert?[e].concat(z(n)):[].concat(z(n),[e])}})),e.id}},{key:"remove",value:function(e){this.setState((function(t){return{notifications:t.notifications.map((function(t){return t.id===e&&(t.removed=!0),t}))}}))}},{key:"toggleRemoval",value:function(e,t){this.setState((function(t){return{notifications:t.notifications.filter((function(t){return t.id!==e}))}}),t)}},{key:"renderNotifications",value:function(e){var t=this;return e.map((function(n){return S.a.createElement(B,{id:n.id,key:n.id,notification:n,toggleRemoval:t.toggleRemoval,count:e.length,removed:n.removed})}))}},{key:"renderMobileNotifications",value:function(e){var t=e.className,n=e.id,o=function(e){var t=[],n=[];return e.forEach((function(e){var o=e.container;b(o)||"center"===o?t.push(e):v(o)&&n.push(e)})),{top:t,bottom:n}}(this.state.notifications),r=this.renderNotifications(o.top),i=this.renderNotifications(o.bottom);return S.a.createElement("div",{id:n,key:"mobile",className:"react-notification-root ".concat(t||"")},S.a.createElement("div",{className:"notification-container-mobile-top"},r),S.a.createElement("div",{className:"notification-container-mobile-bottom"},i))}},{key:"renderScreenNotifications",value:function(e){var t=e.className,n=e.id,u=function(e){var t=[],n=[],u=[],p=[],f=[],d=[],h=[];return e.forEach((function(e){var m=e.container;m===a?t.push(e):m===s?n.push(e):m===l?u.push(e):m===o?p.push(e):m===r?f.push(e):m===i?d.push(e):m===c&&h.push(e)})),{topLeft:t,topRight:n,topCenter:u,bottomLeft:p,bottomRight:f,bottomCenter:d,center:h}}(this.state.notifications),p=this.renderNotifications(u.topLeft),f=this.renderNotifications(u.topRight),d=this.renderNotifications(u.topCenter),h=this.renderNotifications(u.bottomLeft),m=this.renderNotifications(u.bottomRight),y=this.renderNotifications(u.bottomCenter),v=this.renderNotifications(u.center);return S.a.createElement("div",{id:n,key:"screen",className:"react-notification-root ".concat(t||"")},S.a.createElement("div",{className:"notification-container-top-left"},p),S.a.createElement("div",{className:"notification-container-top-right"},f),S.a.createElement("div",{className:"notification-container-bottom-left"},h),S.a.createElement("div",{className:"notification-container-bottom-right"},m),S.a.createElement("div",{className:"notification-container-top-center"},d),S.a.createElement("div",{className:"notification-container-center"},S.a.createElement("div",{className:"center-inner"},v)),S.a.createElement("div",{className:"notification-container-bottom-center"},y))}},{key:"render",value:function(){var e=this.props.isMobile,t=this.state,n=t.width,o=t.breakpoint;return e&&n<=o?this.renderMobileNotifications(this.props):this.renderScreenNotifications(this.props)}}])&&H(n.prototype,u),t}(S.a.Component);V.propTypes={isMobile:P.a.bool,breakpoint:P.a.number,types:P.a.array},V.defaultProps={isMobile:!0,breakpoint:768};var $=V;n.d(t,"store",(function(){return k})),t.default=$}])},function(e,t,n){},function(e,t,n){"use strict";var o=n(19);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var o,r;r=function(e){var t=["N","E","A","D"];function n(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function o(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function r(e,t,n){r.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:n,enumerable:!0})}function i(e,t){i.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function a(e,t){a.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function s(e,t,n){s.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:n,enumerable:!0})}function l(e,t,n){var o=e.slice((n||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,o),e}function c(e){var t=typeof e;return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function u(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}function p(e){var t=0,n=c(e);if("array"===n)return e.forEach((function(e){t+=p(e)})),t+u("[type: array, hash: "+t+"]");if("object"===n){for(var o in e)if(e.hasOwnProperty(o)){var r="[ type: object, key: "+o+", value hash: "+p(e[o])+"]";t+=u(r)}return t}return t+u("[ type: "+n+" ; value: "+e+"]")}function f(e,t,n,o,l,u,d,h){n=n||[],d=d||[];var m=(l=l||[]).slice(0);if(null!=u){if(o){if("function"==typeof o&&o(m,u))return;if("object"==typeof o){if(o.prefilter&&o.prefilter(m,u))return;if(o.normalize){var y=o.normalize(m,u,e,t);y&&(e=y[0],t=y[1])}}}m.push(u)}"regexp"===c(e)&&"regexp"===c(t)&&(e=e.toString(),t=t.toString());var v,b,g,w,E=typeof e,O=typeof t,S="undefined"!==E||d&&d.length>0&&d[d.length-1].lhs&&Object.getOwnPropertyDescriptor(d[d.length-1].lhs,u),k="undefined"!==O||d&&d.length>0&&d[d.length-1].rhs&&Object.getOwnPropertyDescriptor(d[d.length-1].rhs,u);if(!S&&k)n.push(new i(m,t));else if(!k&&S)n.push(new a(m,e));else if(c(e)!==c(t))n.push(new r(m,e,t));else if("date"===c(e)&&e-t!=0)n.push(new r(m,e,t));else if("object"===E&&null!==e&&null!==t){for(v=d.length-1;v>-1;--v)if(d[v].lhs===e){w=!0;break}if(w)e!==t&&n.push(new r(m,e,t));else{if(d.push({lhs:e,rhs:t}),Array.isArray(e)){for(h&&(e.sort((function(e,t){return p(e)-p(t)})),t.sort((function(e,t){return p(e)-p(t)}))),v=t.length-1,b=e.length-1;v>b;)n.push(new s(m,v,new i(void 0,t[v--])));for(;b>v;)n.push(new s(m,b,new a(void 0,e[b--])));for(;v>=0;--v)f(e[v],t[v],n,o,m,v,d,h)}else{var x=Object.keys(e),P=Object.keys(t);for(v=0;v<x.length;++v)g=x[v],(w=P.indexOf(g))>=0?(f(e[g],t[g],n,o,m,g,d,h),P[w]=null):f(e[g],void 0,n,o,m,g,d,h);for(v=0;v<P.length;++v)(g=P[v])&&f(void 0,t[g],n,o,m,g,d,h)}d.length=d.length-1}}else e!==t&&("number"===E&&isNaN(e)&&isNaN(t)||n.push(new r(m,e,t)))}function d(e,t,n,o,r){var i=[];if(f(e,t,i,o,null,null,null,r),n)for(var a=0;a<i.length;++a)n(i[a]);return i}function h(e,t,n,o){var r=d(e,t,o?function(e){e&&o.push(e)}:void 0,n);return o||(r.length?r:void 0)}function m(e,n,o){if(void 0===o&&n&&~t.indexOf(n.kind)&&(o=n),e&&o&&o.kind){for(var r=e,i=-1,a=o.path?o.path.length-1:0;++i<a;)void 0===r[o.path[i]]&&(r[o.path[i]]=void 0!==o.path[i+1]&&"number"==typeof o.path[i+1]?[]:{}),r=r[o.path[i]];switch(o.kind){case"A":o.path&&void 0===r[o.path[i]]&&(r[o.path[i]]=[]),function e(t,n,o){if(o.path&&o.path.length){var r,i=t[n],a=o.path.length-1;for(r=0;r<a;r++)i=i[o.path[r]];switch(o.kind){case"A":e(i[o.path[r]],o.index,o.item);break;case"D":delete i[o.path[r]];break;case"E":case"N":i[o.path[r]]=o.rhs}}else switch(o.kind){case"A":e(t[n],o.index,o.item);break;case"D":t=l(t,n);break;case"E":case"N":t[n]=o.rhs}return t}(o.path?r[o.path[i]]:r,o.index,o.item);break;case"D":delete r[o.path[i]];break;case"E":case"N":r[o.path[i]]=o.rhs}}}return n(r,o),n(i,o),n(a,o),n(s,o),Object.defineProperties(h,{diff:{value:h,enumerable:!0},orderIndependentDiff:{value:function(e,t,n,o){var r=o?function(e){e&&o.push(e)}:void 0,i=d(e,t,r,n,!0);return o||(i.length?i:void 0)},enumerable:!0},observableDiff:{value:d,enumerable:!0},orderIndependentObservableDiff:{value:function(e,t,n,o,r,i,a){return f(e,t,n,o,r,i,a,!0)},enumerable:!0},orderIndepHash:{value:p,enumerable:!0},applyDiff:{value:function(e,t,n){e&&t&&d(e,t,(function(o){n&&!n(e,t,o)||m(e,t,o)}))},enumerable:!0},applyChange:{value:m,enumerable:!0},revertChange:{value:function(e,t,n){if(e&&t&&n&&n.kind){var o,r,i=e;for(r=n.path.length-1,o=0;o<r;o++)void 0===i[n.path[o]]&&(i[n.path[o]]={}),i=i[n.path[o]];switch(n.kind){case"A":!function e(t,n,o){if(o.path&&o.path.length){var r,i=t[n],a=o.path.length-1;for(r=0;r<a;r++)i=i[o.path[r]];switch(o.kind){case"A":e(i[o.path[r]],o.index,o.item);break;case"D":case"E":i[o.path[r]]=o.lhs;break;case"N":delete i[o.path[r]]}}else switch(o.kind){case"A":e(t[n],o.index,o.item);break;case"D":case"E":t[n]=o.lhs;break;case"N":t=l(t,n)}return t}(i[n.path[o]],n.index,n.item);break;case"D":case"E":i[n.path[o]]=n.lhs;break;case"N":delete i[n.path[o]]}}},enumerable:!0},isConflict:{value:function(){return"undefined"!=typeof $conflict},enumerable:!0}}),h.DeepDiff=h,e&&(e.DeepDiff=h),h}(this),void 0===(o=function(){return r}.call(t,n,t,e))||(e.exports=o)},function(e,t,n){"use strict";
|
37 |
/**
|
38 |
* @license nested-property https://github.com/cosmosio/nested-property
|
39 |
*
|
48 |
*
|
49 |
* This source code is licensed under the MIT license found in the
|
50 |
* LICENSE file in the root directory of this source tree.
|
51 |
+
*/Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,u=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,f=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.fundamental"):60117,g=o?Symbol.for("react.responder"):60118,w=o?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case p:case f:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case v:case y:case c:return e;default:return t}}case i:return t}}}function O(e){return E(e)===f}t.typeOf=E,t.AsyncMode=p,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=y,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===g||e.$$typeof===w)},t.isAsyncMode=function(e){return O(e)||E(e)===p},t.isConcurrentMode=O,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===y},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===h}},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var o=n(6),r=n.n(o),i=(n(17),n(1)),a=n.n(i),s=(n(0),n(5)),l=n.n(s),c=n(2),u=n.n(c),p=n(4),f=n.n(p),d=n(8),h=n.n(d),m=n(14),y=n.n(m),v=n(10),b=n.n(v),g=n(7),w=n(3),E=n.n(w),O=n(15);function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function x(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_(e):t}var A={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},D="tour:start",F="step:before",B="beacon",W="tooltip",z="step:after",H="tour:end",U="tour:status",q="error:target_not_found",G={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},V={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},$=h.a.canUseDOM,Y=void 0!==p.createPortal;function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=e;return"undefined"==typeof window?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":Boolean(window.opera)||e.indexOf(" OPR/")>=0?t="opera":void 0!==window.InstallTrigger?t="firefox":window.chrome?t="chrome":/(Version\/([0-9._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function X(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function J(e){var t=[];return function e(n){if("string"==typeof n||"number"==typeof n)t.push(n);else if(Array.isArray(n))n.forEach((function(t){return e(t)}));else if(n&&n.props){var o=n.props.children;Array.isArray(o)?o.forEach((function(t){return e(t)})):e(o)}}(e),t.join(" ").trim()}function Z(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Q(e,t){return!(!u.a.plainObject(e)||!u.a.array(t))&&Object.keys(e).every((function(e){return-1!==t.indexOf(e)}))}function ee(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function te(e){return e.disableBeacon||"center"===e.placement}function ne(){return!(-1!==["chrome","safari","firefox","opera"].indexOf(K()))}function oe(e){var t=e.title,n=e.data,o=e.warn,r=void 0!==o&&o,i=e.debug,a=void 0!==i&&i,s=r?console.warn||console.error:console.log;a&&(t&&n?(console.groupCollapsed("%creact-joyride: ".concat(t),"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){u.a.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd()):console.error("Missing title or data props"))}var re={action:"",controlled:!1,index:0,lifecycle:G.INIT,size:0,status:V.IDLE},ie=["action","index","lifecycle","status"];function ae(e){var t=new Map,n=new Map;return new(function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=o.continuous,i=void 0!==r&&r,a=o.stepIndex,s=o.steps,l=void 0===s?[]:s;S(this,e),P(this,"listener",void 0),P(this,"setSteps",(function(e){var o=t.getState(),r=o.size,i=o.status,a={size:e.length,status:i};n.set("steps",e),i===V.WAITING&&!r&&e.length&&(a.status=V.RUNNING),t.setState(a)})),P(this,"addListener",(function(e){t.listener=e})),P(this,"update",(function(e){if(!Q(e,ie))throw new Error("State is not valid. Valid keys: ".concat(ie.join(", ")));t.setState(T({},t.getNextState(T({},t.getState(),{},e,{action:e.action||A.UPDATE}),!0)))})),P(this,"start",(function(e){var n=t.getState(),o=n.index,r=n.size;t.setState(T({},t.getNextState({action:A.START,index:u.a.number(e)?e:o},!0),{status:r?V.RUNNING:V.WAITING}))})),P(this,"stop",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.index,r=n.status;-1===[V.FINISHED,V.SKIPPED].indexOf(r)&&t.setState(T({},t.getNextState({action:A.STOP,index:o+(e?1:0)}),{status:V.PAUSED}))})),P(this,"close",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.CLOSE,index:n+1})))})),P(this,"go",(function(e){var n=t.getState(),o=n.controlled,r=n.status;if(!o&&r===V.RUNNING){var i=t.getSteps()[e];t.setState(T({},t.getNextState({action:A.GO,index:e}),{status:i?r:V.FINISHED}))}})),P(this,"info",(function(){return t.getState()})),P(this,"next",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(t.getNextState({action:A.NEXT,index:n+1}))})),P(this,"open",(function(){t.getState().status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.UPDATE,lifecycle:G.TOOLTIP})))})),P(this,"prev",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.PREV,index:n-1})))})),P(this,"reset",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.controlled;o||t.setState(T({},t.getNextState({action:A.RESET,index:0}),{status:e?V.RUNNING:V.READY}))})),P(this,"skip",(function(){t.getState().status===V.RUNNING&&t.setState({action:A.SKIP,lifecycle:G.INIT,status:V.SKIPPED})})),this.setState({action:A.INIT,controlled:u.a.number(a),continuous:i,index:u.a.number(a)?a:0,lifecycle:G.INIT,status:l.length?V.READY:V.IDLE},!0),this.setSteps(l)}return x(e,[{key:"setState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.getState(),r=T({},o,{},e),i=r.action,a=r.index,s=r.lifecycle,l=r.size,c=r.status;t.set("action",i),t.set("index",a),t.set("lifecycle",s),t.set("size",l),t.set("status",c),n&&(t.set("controlled",e.controlled),t.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(o)&&this.listener(this.getState())}},{key:"getState",value:function(){return t.size?{action:t.get("action")||"",controlled:t.get("controlled")||!1,index:parseInt(t.get("index"),10),lifecycle:t.get("lifecycle")||"",size:t.get("size")||0,status:t.get("status")||""}:T({},re)}},{key:"getNextState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getState(),o=n.action,r=n.controlled,i=n.index,a=n.size,s=n.status,l=u.a.number(e.index)?e.index:i,c=r&&!t?i:Math.min(Math.max(l,0),a);return{action:e.action||o,controlled:r,index:c,lifecycle:e.lifecycle||G.INIT,size:e.size||a,status:c===a?V.FINISHED:e.status||s}}},{key:"hasUpdatedState",value:function(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}},{key:"getSteps",value:function(){var e=n.get("steps");return Array.isArray(e)?e:[]}},{key:"getHelpers",value:function(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}}]),e}())(e)}function se(){return document.scrollingElement||document.createElement("body")}function le(e){return e?e.getBoundingClientRect():{}}function ce(e){return"string"==typeof e?document.querySelector(e):e}function ue(e){return e&&1===e.nodeType?getComputedStyle(e):{}}function pe(e,t,n){var o=b()(e);return o.isSameNode(se())?n?document:se():o.scrollHeight>o.offsetHeight||t?o:(o.style.overflow="initial",se())}function fe(e,t){return!!e&&!pe(e,t).isSameNode(se())}function de(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fixed";if(!(e&&e instanceof HTMLElement))return!1;var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&(ue(e).position===t||de(e.parentNode,t))}function he(e,t,n){if(!e)return 0;var o=b()(e),r=e.offsetTop;return fe(e,n)&&!function(e){return e.offsetParent!==document.body}(e)&&(r-=o.offsetTop),Math.floor(r-t)}!function(e){function t(t,n,o,r,i,a){var s=r||"<<anonymous>>",l=a||o;if(null==n[o])return t?new Error("Required ".concat(i," `").concat(l,"` was not specified in `").concat(s,"`.")):null;for(var c=arguments.length,u=new Array(c>6?c-6:0),p=6;p<c;p++)u[p-6]=arguments[p];return e.apply(void 0,[n,o,s,i,l].concat(u))}var n=t.bind(null,!1);n.isRequired=t.bind(null,!0)}((function(e,t,n,o,r){var i=e[t],s=i;if(!a.a.isValidElement(i)&&Object(g.isValidElementType)(i)){s=a.a.createElement(s,{ref:function(){},step:{}})}if(u.a.string(i)||u.a.number(i)||!Object(g.isValidElementType)(i)||-1===[g.Element,g.ForwardRef].indexOf(Object(g.typeOf)(s)))return new Error("Invalid ".concat(o," `").concat(r,"` supplied to `").concat(n,"`. Expected a React class or forwardRef."))}));var me={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",zIndex:100},ye={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},ve={borderRadius:4,position:"absolute"};var be={floaterProps:{options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},locale:{back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},step:{event:"click",placement:"bottom",offset:10}};function ge(e){var t=["beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent"];return Object.keys(e).filter((function(e){return-1!==t.indexOf(e)})).reduce((function(t,n){return t[n]=e[n],t}),{})}function we(e,t){if(!e)return null;var n=E.a.all([ge(t),be.step,e],{isMergeableObject:u.a.plainObject}),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=E()(me,e.options||{}),n=290;window.innerWidth>480&&(n=380),t.width&&(n=window.innerWidth<t.width?window.innerWidth-30:t.width);var o={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:t.zIndex},r={beacon:T({},ye,{display:"inline-block",height:t.beaconSize,position:"relative",width:t.beaconSize,zIndex:t.zIndex}),beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:t.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:"rgba(".concat(ee(t.primaryColor).join(","),", 0.2)"),border:"2px solid ".concat(t.primaryColor),borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:t.backgroundColor,borderRadius:5,boxSizing:"border-box",color:t.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:n},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:T({},ye,{backgroundColor:t.primaryColor,borderRadius:4,color:"#fff"}),buttonBack:T({},ye,{color:t.primaryColor,marginLeft:"auto",marginRight:5}),buttonClose:T({},ye,{color:t.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14}),buttonSkip:T({},ye,{color:t.textColor,fontSize:14}),overlay:T({},o,{backgroundColor:t.overlayColor,mixBlendMode:"hard-light"}),overlayLegacy:T({},o),overlayLegacyCenter:T({},o,{backgroundColor:t.overlayColor}),spotlight:T({},ve,{backgroundColor:"gray"}),spotlightLegacy:T({},ve,{boxShadow:"0 0 0 9999px ".concat(t.overlayColor,", ").concat(t.spotlightShadow)}),floaterStyles:{arrow:{color:t.arrowColor},options:{zIndex:t.zIndex}},options:t};return E()(r,e)}(E()(t.styles||{},e.styles||{})),r=fe(ce(e.target),n.disableScrollParentFix),i=E.a.all([t.floaterProps||{},be.floaterProps,n.floaterProps||{}]);return i.offset=n.offset,i.styles=E()(i.styles||{},o.floaterStyles||{}),delete o.floaterStyles,i.offset+=t.spotlightPadding||e.spotlightPadding,e.placementBeacon&&(i.wrapperOptions.placement=e.placementBeacon),r&&(i.options.preventOverflow.boundariesElement="window"),T({},n,{locale:E.a.all([be.locale,t.locale||{},n.locale||{}]),floaterProps:i,styles:o})}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u.a.plainObject(e)?!!e.target||(oe({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(oe({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u.a.array(e)?e.every((function(e){return Ee(e,t)})):(oe({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var Se=function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(S(this,e),P(this,"element",void 0),P(this,"options",void 0),P(this,"canBeTabbed",(function(e){var t=e.tabIndex;return(null===t||t<0)&&(t=void 0),!isNaN(t)&&n.canHaveFocus(e,!0)})),P(this,"canHaveFocus",(function(e,t){var o=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(o)&&!e.getAttribute("disabled")||"a"===o&&e.getAttribute("href")||t)&&n.isVisible(e)})),P(this,"findValidTabElements",(function(){return[].slice.call(n.element.querySelectorAll("*"),0).filter(n.canBeTabbed)})),P(this,"handleKeyDown",(function(e){var t=n.options.keyCode,o=void 0===t?9:t;e.keyCode===o&&n.interceptTab(e)})),P(this,"interceptTab",(function(e){e.preventDefault();var t=n.findValidTabElements(),o=e.shiftKey;if(t.length){var r=t.indexOf(document.activeElement);-1===r||!o&&r+1===t.length?r=0:o&&0===r?r=t.length-1:r+=o?-1:1,t[r].focus()}})),P(this,"isHidden",(function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0,n=window.getComputedStyle(e);return!(!t||e.innerHTML)||(t&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display"))})),P(this,"isVisible",(function(e){for(var t=e;t;)if(t instanceof HTMLElement){if(t===document.body)break;if(n.isHidden(t))return!1;t=t.parentNode}return!0})),P(this,"removeScope",(function(){window.removeEventListener("keydown",n.handleKeyDown)})),P(this,"checkFocus",(function(e){document.activeElement!==e&&(e.focus(),window.requestAnimationFrame((function(){return n.checkFocus(e)})))})),P(this,"setFocus",(function(){var e=n.options.selector;if(e){var t=n.element.querySelector(e);t&&window.requestAnimationFrame((function(){return n.checkFocus(t)}))}})),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=o,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()},ke=function(e){function t(e){var n;if(S(this,t),P(_(n=L(this,I(t).call(this,e))),"setBeaconRef",(function(e){n.beacon=e})),!e.beaconComponent){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.id="joyride-beacon-animation",r.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),o.appendChild(r)}return n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.shouldFocus;setTimeout((function(){u.a.domElement(e.beacon)&&t&&e.beacon.focus()}),0)}},{key:"componentWillUnmount",value:function(){var e=document.getElementById("joyride-beacon-animation");e&&e.parentNode.removeChild(e)}},{key:"render",value:function(){var e,t=this.props,n=t.beaconComponent,o=t.locale,r=t.onClickOrHover,i=t.styles,s={"aria-label":o.open,onClick:r,onMouseEnter:r,ref:this.setBeaconRef,title:o.open};if(n){var l=n;e=a.a.createElement(l,s)}else e=a.a.createElement("button",C({key:"JoyrideBeacon",className:"react-joyride__beacon",style:i.beacon,type:"button"},s),a.a.createElement("span",{style:i.beaconInner}),a.a.createElement("span",{style:i.beaconOuter}));return e}}]),t}(a.a.Component),xe=function(e){var t=e.styles;return a.a.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:t})},Pe=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(_(n=L(this,(e=I(t)).call.apply(e,[this].concat(r)))),"_isMounted",!1),P(_(n),"state",{mouseOverSpotlight:!1,isScrolling:!1,showSpotlight:!0}),P(_(n),"handleMouseMove",(function(e){var t=n.state.mouseOverSpotlight,o=n.spotlightStyles,r=o.height,i=o.left,a=o.position,s=o.top,l=o.width,c="fixed"===a?e.clientY:e.pageY,u="fixed"===a?e.clientX:e.pageX,p=u>=i&&u<=i+l&&(c>=s&&c<=s+r);p!==t&&n.updateState({mouseOverSpotlight:p})})),P(_(n),"handleScroll",(function(){var e=ce(n.props.target);n.scrollParent!==document?(n.state.isScrolling||n.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(n.scrollTimeout),n.scrollTimeout=setTimeout((function(){n.updateState({isScrolling:!1,showSpotlight:!0})}),50)):de(e,"sticky")&&n.updateState({})})),P(_(n),"handleResize",(function(){clearTimeout(n.resizeTimeout),n.resizeTimeout=setTimeout((function(){n._isMounted&&n.forceUpdate()}),100)})),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this.props,t=(e.debug,e.disableScrolling,e.disableScrollParentFix),n=ce(e.target);this.scrollParent=pe(n,t,!0),this._isMounted=!0,window.addEventListener("resize",this.handleResize)}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,o=n.lifecycle,r=n.spotlightClicks,i=l()(e,this.props),a=i.changed;(0,i.changedTo)("lifecycle",G.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((function(){t.state.isScrolling||t.updateState({showSpotlight:!0})}),100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(r&&o===G.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):o!==G.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),this.scrollParent.removeEventListener("scroll",this.handleScroll)}},{key:"updateState",value:function(e){this._isMounted&&this.setState(e)}},{key:"render",value:function(){var e=this.state,t=e.mouseOverSpotlight,n=e.showSpotlight,o=this.props,r=o.disableOverlay,i=o.lifecycle,s=o.onClickOverlay,l=o.placement,c=o.styles;if(r||i!==G.TOOLTIP)return null;var u=c.overlay;ne()&&(u="center"===l?c.overlayLegacyCenter:c.overlayLegacy);var p,f,d,h=T({cursor:"pointer",height:(p=document,f=p.body,d=p.documentElement,f&&d?Math.max(f.scrollHeight,f.offsetHeight,d.clientHeight,d.scrollHeight,d.offsetHeight):0),pointerEvents:t?"none":"auto"},u),m="center"!==l&&n&&a.a.createElement(xe,{styles:this.spotlightStyles});if("safari"===K()){h.mixBlendMode,h.zIndex;var y=M(h,["mixBlendMode","zIndex"]);m=a.a.createElement("div",{style:T({},y)},m),delete h.backgroundColor}return a.a.createElement("div",{className:"react-joyride__overlay",style:h,onClick:s},m)}},{key:"spotlightStyles",get:function(){var e=this.state.showSpotlight,t=this.props,n=t.disableScrollParentFix,o=t.spotlightClicks,r=t.spotlightPadding,i=t.styles,a=ce(t.target),s=le(a),l=de(a),c=function(e,t,n){var o=le(e),r=pe(e,n),i=fe(e,n),a=0;r instanceof HTMLElement&&(a=r.scrollTop);var s=o.top+(i||de(e)?0:a);return Math.floor(s-t)}(a,r,n);return T({},ne()?i.spotlightLegacy:i.spotlight,{height:Math.round(s.height+2*r),left:Math.round(s.left-r),opacity:e?1:0,pointerEvents:o?"none":"auto",position:l?"fixed":"absolute",top:c,transition:"opacity 0.2s",width:Math.round(s.width+2*r)})}}]),t}(a.a.Component),Ce=function(e){var t=e.styles,n=M(e,["styles"]),o=t.color,r=t.height,i=t.width,s=M(t,["color","height","width"]);return a.a.createElement("button",C({style:s,type:"button"},n),a.a.createElement("svg",{width:"number"==typeof i?"".concat(i,"px"):i,height:"number"==typeof r?"".concat(r,"px"):r,viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},a.a.createElement("g",null,a.a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))},Ne=function(e){function t(){return S(this,t),L(this,I(t).apply(this,arguments))}return j(t,e),x(t,[{key:"render",value:function(){var e=this.props,t=e.backProps,n=e.closeProps,o=e.continuous,r=e.index,i=e.isLastStep,s=e.primaryProps,l=e.size,c=e.skipProps,u=e.step,p=e.tooltipProps,f=u.content,d=u.hideBackButton,h=u.hideCloseButton,m=u.hideFooter,y=u.showProgress,v=u.showSkipButton,b=u.title,g=u.styles,w=u.locale,E=w.back,O=w.close,S=w.last,k=w.next,x=w.skip,P={primary:O};return o&&(P.primary=i?S:k,y&&(P.primary=a.a.createElement("span",null,P.primary," (",r+1,"/",l,")"))),v&&!i&&(P.skip=a.a.createElement("button",C({style:g.buttonSkip,type:"button","aria-live":"off"},c),x)),!d&&r>0&&(P.back=a.a.createElement("button",C({style:g.buttonBack,type:"button"},t),E)),P.close=!h&&a.a.createElement(Ce,C({styles:g.buttonClose},n)),a.a.createElement("div",C({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:g.tooltip},p),a.a.createElement("div",{style:g.tooltipContainer},b&&a.a.createElement("h4",{style:g.tooltipTitle,"aria-label":b},b),a.a.createElement("div",{style:g.tooltipContent},f)),!m&&a.a.createElement("div",{style:g.tooltipFooter},a.a.createElement("div",{style:g.tooltipFooterSpacer},P.skip),P.back,a.a.createElement("button",C({style:g.buttonNext,type:"button"},s),P.primary)),P.close)}}]),t}(a.a.Component),Te=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(_(n=L(this,(e=I(t)).call.apply(e,[this].concat(r)))),"handleClickBack",(function(e){e.preventDefault(),n.props.helpers.prev()})),P(_(n),"handleClickClose",(function(e){e.preventDefault(),n.props.helpers.close()})),P(_(n),"handleClickPrimary",(function(e){e.preventDefault();var t=n.props,o=t.continuous,r=t.helpers;o?r.next():r.close()})),P(_(n),"handleClickSkip",(function(e){e.preventDefault(),n.props.helpers.skip()})),P(_(n),"getElementsProps",(function(){var e=n.props,t=e.continuous,o=e.isLastStep,r=e.setTooltipRef,i=e.step,a=J(i.locale.back),s=J(i.locale.close),l=J(i.locale.last),c=J(i.locale.next),u=J(i.locale.skip),p=t?c:s;return o&&(p=l),{backProps:{"aria-label":a,"data-action":"back",onClick:n.handleClickBack,role:"button",title:a},closeProps:{"aria-label":s,"data-action":"close",onClick:n.handleClickClose,role:"button",title:s},primaryProps:{"aria-label":p,"data-action":"primary",onClick:n.handleClickPrimary,role:"button",title:p},skipProps:{"aria-label":u,"data-action":"skip",onClick:n.handleClickSkip,role:"button",title:u},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})),n}return j(t,e),x(t,[{key:"render",value:function(){var e,t=this.props,n=t.continuous,o=t.index,r=t.isLastStep,i=t.size,s=t.step,l=(s.beaconComponent,s.tooltipComponent),c=M(s,["beaconComponent","tooltipComponent"]);if(l){var u=T({},this.getElementsProps(),{continuous:n,index:o,isLastStep:r,size:i,step:c}),p=l;e=a.a.createElement(p,u)}else e=a.a.createElement(Ne,C({},this.getElementsProps(),{continuous:n,index:o,isLastStep:r,size:i,step:s}));return e}}]),t}(a.a.Component),je=function(e){function t(e){var n;return S(this,t),n=L(this,I(t).call(this,e)),$?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),document.body.appendChild(n.node),n):L(n)}return j(t,e),x(t,[{key:"componentDidMount",value:function(){$&&(Y||this.renderReact15())}},{key:"componentDidUpdate",value:function(){$&&(Y||this.renderReact15())}},{key:"componentWillUnmount",value:function(){$&&this.node&&(Y||f.a.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderReact15",value:function(){if(!$)return null;var e=this.props.children;return f.a.unstable_renderSubtreeIntoContainer(this,e,this.node),null}},{key:"renderReact16",value:function(){if(!$||!Y)return null;var e=this.props.children;return f.a.createPortal(e,this.node)}},{key:"render",value:function(){return Y?this.renderReact16():null}}]),t}(a.a.Component),Ie=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(_(n=L(this,(e=I(t)).call.apply(e,[this].concat(r)))),"scope",{removeScope:function(){}}),P(_(n),"handleClickHoverBeacon",(function(e){var t=n.props,o=t.step,r=t.update;"mouseenter"===e.type&&"hover"!==o.event||r({lifecycle:G.TOOLTIP})})),P(_(n),"handleClickOverlay",(function(){var e=n.props,t=e.helpers;e.step.disableOverlayClose||t.close()})),P(_(n),"setTooltipRef",(function(e){n.tooltip=e})),P(_(n),"setPopper",(function(e,t){var o=n.props,r=o.action,i=o.setPopper,a=o.update;"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e,i(e,t),n.beaconPopper&&n.tooltipPopper&&a({action:r===A.CLOSE?A.CLOSE:r,lifecycle:G.READY})})),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.debug,n=e.index;oe({title:"step:".concat(n),data:[{key:"props",value:this.props}],debug:t})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.action,o=t.callback,r=t.continuous,i=t.controlled,a=t.debug,s=t.index,c=t.lifecycle,u=t.size,p=t.status,f=t.step,d=t.update,h=l()(e,this.props),m=h.changed,y=h.changedTo,v=h.changedFrom,b={action:n,controlled:i,index:s,lifecycle:c,size:u,status:p},g=r&&n!==A.CLOSE&&(s>0||n===A.PREV),w=m("action")||m("index")||m("lifecycle")||m("status"),E=v("lifecycle",[G.TOOLTIP,G.INIT],G.INIT);if(y("action",[A.NEXT,A.PREV,A.SKIP,A.CLOSE])&&(E||i)&&o(T({},b,{index:e.index,lifecycle:G.COMPLETE,step:e.step,type:z})),w&&f){var O=ce(f.target),S=!!O;S&&function(e){if(!e)return!1;for(var t=e;t&&t!==document.body;){if(t instanceof HTMLElement){var n=getComputedStyle(t),o=n.display,r=n.visibility;if("none"===o||"hidden"===r)return!1}t=t.parentNode}return!0}(O)?(v("status",V.READY,V.RUNNING)||v("lifecycle",G.INIT,G.READY))&&o(T({},b,{step:f,type:F})):(console.warn(S?"Target not visible":"Target not mounted",f),o(T({},b,{type:q,step:f})),i||d({index:s+(-1!==[A.PREV].indexOf(n)?-1:1)}))}v("lifecycle",G.INIT,G.READY)&&d({lifecycle:te(f)||g?G.TOOLTIP:G.BEACON}),m("index")&&oe({title:"step:".concat(c),data:[{key:"props",value:this.props}],debug:a}),y("lifecycle",G.BEACON)&&o(T({},b,{step:f,type:B})),y("lifecycle",G.TOOLTIP)&&(o(T({},b,{step:f,type:W})),this.scope=new Se(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus()),v("lifecycle",[G.TOOLTIP,G.INIT],G.INIT)&&(this.scope.removeScope(),delete this.beaconPopper,delete this.tooltipPopper)}},{key:"componentWillUnmount",value:function(){this.scope.removeScope()}},{key:"render",value:function(){var e=this.props,t=e.continuous,n=e.debug,o=e.helpers,r=e.index,i=e.lifecycle,s=e.shouldScroll,l=e.size,c=e.step,p=ce(c.target);return Ee(c)&&u.a.domElement(p)?a.a.createElement("div",{key:"JoyrideStep-".concat(r),className:"react-joyride__step"},a.a.createElement(je,{id:"react-joyride-portal"},a.a.createElement(Pe,C({},c,{debug:n,lifecycle:i,onClickOverlay:this.handleClickOverlay}))),a.a.createElement(O.a,C({component:a.a.createElement(Te,{continuous:t,helpers:o,index:r,isLastStep:r+1===l,setTooltipRef:this.setTooltipRef,size:l,step:c}),debug:n,getPopper:this.setPopper,id:"react-joyride-step-".concat(r),isPositioned:c.isFixed||de(p),open:this.open,placement:c.placement,target:c.target},c.floaterProps),a.a.createElement(ke,{beaconComponent:c.beaconComponent,locale:c.locale,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:s,styles:c.styles}))):null}},{key:"open",get:function(){var e=this.props,t=e.step,n=e.lifecycle;return!(!te(t)&&n!==G.TOOLTIP)}}]),t}(a.a.Component),Re=function(e){function t(e){var n;return S(this,t),P(_(n=L(this,I(t).call(this,e))),"initStore",(function(){var e=n.props,t=e.debug,o=e.getHelpers,r=e.run,i=e.stepIndex;n.store=new ae(T({},n.props,{controlled:r&&u.a.number(i)})),n.helpers=n.store.getHelpers();var a=n.store.addListener;return oe({title:"init",data:[{key:"props",value:n.props},{key:"state",value:n.state}],debug:t}),a(n.syncState),o(n.helpers),n.store.getState()})),P(_(n),"callback",(function(e){var t=n.props.callback;u.a.function(t)&&t(e)})),P(_(n),"handleKeyboard",(function(e){var t=n.state,o=t.index,r=t.lifecycle,i=n.props.steps[o],a=window.Event?e.which:e.keyCode;r===G.TOOLTIP&&27===a&&i&&!i.disableCloseOnEsc&&n.store.close()})),P(_(n),"syncState",(function(e){n.setState(e)})),P(_(n),"setPopper",(function(e,t){"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e})),P(_(n),"shouldScroll",(function(e,t,n,o,r,i,a){return!e&&(0!==t||n||o===G.TOOLTIP)&&"center"!==r.placement&&(!r.isFixed||!de(i))&&a.lifecycle!==o&&-1!==[G.BEACON,G.TOOLTIP].indexOf(o)})),n.state=n.initStore(),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){if($){var e=this.props,t=e.disableCloseOnEsc,n=e.debug,o=e.run,r=e.steps,i=this.store.start;Oe(r,n)&&o&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}}},{key:"componentDidUpdate",value:function(e,t){if($){var n=this.state,o=n.action,r=n.controlled,a=n.index,s=n.lifecycle,c=n.status,p=this.props,f=p.debug,d=p.run,h=p.stepIndex,m=p.steps,y=e.steps,v=e.stepIndex,b=this.store,g=b.setSteps,w=b.reset,E=b.start,O=b.stop,S=b.update,k=l()(e,this.props).changed,x=l()(t,this.state),P=x.changed,C=x.changedFrom,N=x.changedTo,j=we(m[a],this.props),I=!function e(t,n){var o,r=Object(i.isValidElement)(t)||Object(i.isValidElement)(n),a=u.a.undefined(t)||u.a.undefined(n);if(X(t)!==X(n)||r||a)return!1;if(u.a.domElement(t))return t.isSameNode(n);if(u.a.number(t))return t===n;if(u.a.function(t))return t.toString()===n.toString();for(var s in t)if(Z(t,s)){if(void 0===t[s]||void 0===n[s])return!1;if(o=X(t[s]),-1!==["object","array"].indexOf(o)&&e(t[s],n[s]))continue;if("function"===o&&e(t[s],n[s]))continue;if(t[s]!==n[s])return!1}for(var l in n)if(Z(n,l)&&void 0===t[l])return!1;return!0}(y,m),R=u.a.number(h)&&k("stepIndex");if(I&&(Oe(m,f)?g(m):console.warn("Steps are not valid",m)),k("run")&&(d?E(h):O()),R){var M=v<h?A.NEXT:A.PREV;o===A.STOP&&(M=A.START),-1===[V.FINISHED,V.SKIPPED].indexOf(c)&&S({action:o===A.CLOSE?A.CLOSE:M,index:h,lifecycle:G.INIT})}var _=T({},this.state,{index:a,step:j});if(N("action",[A.NEXT,A.PREV,A.SKIP,A.CLOSE])&&N("status",V.PAUSED)){var L=we(m[t.index],this.props);this.callback(T({},_,{index:t.index,lifecycle:G.COMPLETE,step:L,type:z}))}if(N("status",[V.FINISHED,V.SKIPPED])){var F=we(m[t.index],this.props);r||this.callback(T({},_,{index:t.index,lifecycle:G.COMPLETE,step:F,type:z})),this.callback(T({},_,{type:H,step:F,index:t.index})),w()}else C("status",[V.IDLE,V.READY],V.RUNNING)?this.callback(T({},_,{type:D})):(P("status")||N("action",A.RESET))&&this.callback(T({},_,{type:U}));j&&(this.scrollToStep(t),"center"===j.placement&&c===V.RUNNING&&s===G.INIT&&this.store.update({lifecycle:G.READY}))}}},{key:"componentWillUnmount",value:function(){this.props.disableCloseOnEsc||document.body.removeEventListener("keydown",this.handleKeyboard)}},{key:"scrollToStep",value:function(e){var t=this.state,n=t.index,o=t.lifecycle,r=t.status,i=this.props,a=i.debug,s=i.disableScrolling,l=i.disableScrollParentFix,c=i.scrollToFirstStep,u=i.scrollOffset,p=i.scrollDuration,f=we(i.steps[n],this.props);if(f){var d=ce(f.target),h=this.shouldScroll(s,n,c,o,f,d,e);if(r===V.RUNNING&&h){var m=fe(d,l),v=pe(d,l),b=Math.floor(he(d,u,l))||0;if(oe({title:"scrollToStep",data:[{key:"index",value:n},{key:"lifecycle",value:o},{key:"status",value:r}],debug:a}),o===G.BEACON&&this.beaconPopper){var g=this.beaconPopper,w=g.placement,E=g.popper;-1!==["bottom"].indexOf(w)||m||(b=Math.floor(E.top-u))}else if(o===G.TOOLTIP&&this.tooltipPopper){var O=this.tooltipPopper,S=O.flipped,k=O.placement,x=O.popper;-1===["top","right","left"].indexOf(k)||S||m?b-=f.spotlightPadding:b=Math.floor(x.top-u)}b=b>=0?b:0,r===V.RUNNING&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:se(),n=arguments.length>2?arguments[2]:void 0;new Promise((function(o,r){var i=t.scrollTop,a=e>i?e-i:i-e;y.a.top(t,e,{duration:a<100?50:n},(function(e){return e&&"Element already at target scroll position"!==e.message?r(e):o()}))}))}(b,v,p)}}}},{key:"render",value:function(){if(!$)return null;var e,t=this.state,n=t.index,o=t.status,r=this.props,i=r.continuous,s=r.debug,l=r.disableScrolling,c=r.scrollToFirstStep,u=we(r.steps[n],this.props);return o===V.RUNNING&&u&&(e=a.a.createElement(Ie,C({},this.state,{callback:this.callback,continuous:i,debug:s,setPopper:this.setPopper,helpers:this.helpers,shouldScroll:!l&&(0!==n||c),step:u,update:this.store.update}))),a.a.createElement("div",{className:"react-joyride"},e)}}]),t}(a.a.Component);P(Re,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:function(){},hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});var Me=Re;function _e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var Ae=lodash.debounce,De=wp.i18n.__,Fe=wp.components,Be=Fe.Button,We=Fe.Modal,ze=wp.element,He=ze.Fragment,Ue=ze.useEffect,qe=ze.useRef,Ge=ze.useState,Ve=function(){var e=_e(Ge(!0),2),t=e[0],n=e[1],o=_e(Ge(!1),2),r=o[0],i=o[1],a=qe(null);Ue((function(){wp.api.loadPromise.then((function(){a.current=new wp.api.models.Settings}))}),[]);var s=[{target:".otter-step-one",content:De("Howdy, I'm Ollie The Otter! I will help you configure your Otter experience. So let's start the magic!"),disableBeacon:!0},{target:".otter-step-two",content:De("Jazz up your blocks with some sparkly custom CSS or Blocks Animation right inside the block. Here you can enable modules to enhance your experience with Block Editor.")},{target:".otter-step-three",content:De("Section Block is the signature feature of Otter. It allows you to build beautiful layouts right inside the Block Editor. You can set Section Block as the default block for your new Pages.")},{target:".otter-step-four",content:De("We love maps! Here you can set your Google Maps API key for Otter's Map Block.")},{target:".otter-step-five",content:De("If you don't have an API key, you can register one by clicking here.")},{target:".otter-step-six",content:De("Help us in making our plugin better with anonymous data tracking.")},{target:".otter-step-seven",content:De("If you ever need any help, we are a team of real Otter-lovers who would love to help you out.")},{target:".otter-step-eight",content:De("And if you love what we do, please leave us a review at WordPress.org. Your review keeps us motivated to make awesome things.")},{target:".otter-step-one",content:De("That's it for now! Hope you enjoy Otter and love it as much as we do.")}],l=Ae((function(e){if(t&&n(!1),"ready"===e||"finished"===e||"skipped"===e){var o=new wp.api.models.Settings({themeisle_blocks_settings_tour:!1}).save();o.success((function(e,t){a.current.fetch()})),o.error((function(e,t){console.warning(e.responseJSON.message)}))}}),1e3);return wp.element.createElement(He,null,t&&wp.element.createElement(We,{title:De("Welcome to Otter!"),isDismissable:!1,isDismissible:!1,className:"otter-onboarding-modal"},wp.element.createElement("div",{className:"otter-onboarding-modal-content"},De("Would you like to start the onboarding wizard which will help you personalize the plugin for yourself?")),wp.element.createElement("div",{className:"otter-onboarding-modal-action"},wp.element.createElement(Be,{isPrimary:!0,isLarge:!0,onClick:function(){n(!1),i(!0)}},De("Start")),wp.element.createElement(Be,{isDefault:!0,isLarge:!0,onClick:function(){return l("skipped")}},De("Skip")))),wp.element.createElement(Me,{continuous:!0,run:r,steps:s,scrollToFirstStep:!0,showSkipButton:!0,locale:{back:De("Back"),close:De("Close"),last:De("Finish"),next:De("Next"),skip:De("Skip")},callback:function(e){return l(e.status)}}))},$e=n(9),Ye=n.n($e),Ke=wp.i18n.__,Xe=function(){return wp.element.createElement("header",{className:"otter-header"},wp.element.createElement("div",{className:Ye()("otter-container","otter-step-one")},wp.element.createElement("div",{className:"otter-logo"},wp.element.createElement("img",{src:otterObj.assetsPath+"images/logo.png",title:Ke("Gutenberg Blocks and Template Library by Otter")}),wp.element.createElement("abbr",{title:"Version: ".concat(otterObj.version),className:"version"},otterObj.version))))},Je=(n(23),wp.i18n.__,wp.components.Button),Ze=function(e){var t=e.label,n=e.help,o=e.buttonLabel,r=e.disabled,i=e.action,a=e.className;return wp.element.createElement("div",{className:Ye()("components-base-control","otter-button-control",a)},wp.element.createElement("div",{className:"components-base-control_labels"},wp.element.createElement("span",{className:"components-base-control__label"},t),wp.element.createElement("p",{className:"components-base-control__help"},n)),wp.element.createElement("div",{className:"otter-button-control-group"},wp.element.createElement(Je,{isPrimary:!0,isLarge:!0,disabled:r,onClick:i},o)))};function Qe(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var nt=wp.i18n.__,ot=wp.apiFetch,rt=wp.components,it=rt.BaseControl,at=rt.Button,st=rt.ExternalLink,lt=rt.Modal,ct=rt.PanelBody,ut=rt.PanelRow,pt=rt.Placeholder,ft=rt.Spinner,dt=rt.ToggleControl,ht=wp.element,mt=ht.Fragment,yt=ht.useEffect,vt=ht.useRef,bt=ht.useState,gt=function(){yt((function(){wp.api.loadPromise.then((function(){_.current=new wp.api.models.Settings,!1===t&&_.current.fetch().then((function(e){f(Boolean(e.themeisle_blocks_settings_css_module)),m(Boolean(e.themeisle_blocks_settings_blocks_animation)),b(Boolean(e.themeisle_blocks_settings_menu_icons)),E(Boolean(e.themeisle_blocks_settings_default_block)),k(e.themeisle_google_map_block_api_key),C(e.otter_blocks_logger_flag),n(!0)}))})),Boolean(otterObj.stylesExist)||M(!0)}),[]);var e=et(bt(!1),2),t=e[0],n=e[1],r=et(bt(!1),2),i=r[0],a=r[1],s=et(bt(null),2),l=s[0],c=s[1],u=et(bt(!1),2),p=u[0],f=u[1],d=et(bt(!1),2),h=d[0],m=d[1],y=et(bt(!1),2),v=y[0],b=y[1],g=et(bt(!0),2),w=g[0],E=g[1],O=et(bt(""),2),S=O[0],k=O[1],x=et(bt("no"),2),P=x[0],C=x[1],N=et(bt(!1),2),T=N[0],j=N[1],I=et(bt(!1),2),R=I[0],M=I[1],_=vt(null),L=(vt(null),function(e,t,n){a(!0),F(nt("Updating settings…"),"info");var r=new wp.api.models.Settings(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,n)).save();r.success((function(n,r){o.store.removeNotification(l),"success"===r&&(A(t,n[e]),setTimeout((function(){F(nt("Settings saved."),"success"),a(!1)}),800)),"error"===r&&setTimeout((function(){F(nt("An unknown error occurred."),"danger"),a(!1)}),800),_.current.fetch()})),r.error((function(e,t){o.store.removeNotification(l),setTimeout((function(){F(e.responseJSON.message?e.responseJSON.message:nt("An unknown error occurred."),"danger"),a(!1)}),800)}))}),A=function(e,t){switch(e){case"cssModule":f(t);break;case"blocksAnimation":m(t);break;case"menuIcons":b(t);break;case"isDefaultSection":E(t);break;case"googleMapsAPI":k(t);break;case"isLoggingData":C(t)}},D=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a(!0),e.next=3,ot({path:"themeisle-gutenberg-blocks/v1/regenerate_styles",method:"DELETE"});case 3:t=e.sent,F(t.data.message,t.success?"success":"danger"),M(!0),a(!1),j(!1);case 8:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Qe(i,o,r,a,s,"next",e)}function s(e){Qe(i,o,r,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),F=function(e,t){var n=o.store.addNotification({message:e,type:t,insert:"top",container:"bottom-left",isMobile:!0,dismiss:{duration:2e3,showIcon:!0},dismissable:{click:!0,touch:!0}});c(n)};return t?wp.element.createElement(mt,null,wp.element.createElement("div",{className:"otter-main"},wp.element.createElement("div",{className:"otter-step-two"},wp.element.createElement(ct,{title:nt("Modules")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Custom CSS Module"),help:"Custom CSS module allows to add custom CSS to each block in Block Editor.",checked:p,onChange:function(){return L("themeisle_blocks_settings_css_module","cssModule",!p)}})),wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Blocks Animation Module"),help:"Blocks Animation module allows to add CSS animations to each block in Block Editor.",checked:h,onChange:function(){return L("themeisle_blocks_settings_blocks_animation","blocksAnimation",!h)}})),Boolean(otterObj.navExists)&&wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Menu Icons Module"),help:"Menu Icons module allows to add icons to navigation menu items in Block Editor.",checked:v,onChange:function(){return L("themeisle_blocks_settings_menu_icons","menuIcons",!v)}})))),wp.element.createElement("div",{className:"otter-step-three"},wp.element.createElement(ct,{title:nt("Section")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Make Section your default block for Pages"),help:"Everytime you create a new page, Section block will be appended there by default.",checked:w,onChange:function(){return L("themeisle_blocks_settings_default_block","isDefaultSection",!w)}})))),wp.element.createElement("div",{className:"otter-step-four"},wp.element.createElement(ct,{title:nt("Maps")},wp.element.createElement(ut,null,wp.element.createElement(it,{label:nt("Google Maps API"),help:"In order to use Google Maps block, you need to use Google Maps and Places API.",id:"otter-options-google-map-api",className:"otter-button-field"},wp.element.createElement("input",{type:"text",id:"otter-options-google-map-api",value:S,placeholder:nt("Google Maps API Key"),disabled:i,onChange:function(e){return k(e.target.value)}}),wp.element.createElement("div",{className:"otter-button-group"},wp.element.createElement(at,{isPrimary:!0,isLarge:!0,disabled:i,onClick:function(){return L("themeisle_google_map_block_api_key","googleMapsAPI",S)}},nt("Save")),wp.element.createElement(st,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key",className:"otter-step-five"},nt("Get API Key"))))))),wp.element.createElement("div",{className:"otter-step-six"},wp.element.createElement(ct,{title:nt("Other")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Anonymous Data Tracking."),help:"Become a contributor by opting in to our anonymous data tracking. We guarantee no sensitive data is collected.",checked:"yes"===P,onChange:function(){return L("otter_blocks_logger_flag","isLoggingData","yes"===P?"no":"yes")}})),wp.element.createElement(ut,null,wp.element.createElement(Ze,{label:nt("Regenerate Styles"),help:"Clicking on this will delete all the Otter generated CSS files.",buttonLabel:nt("Regenerate"),disabled:R,action:function(){return j(!0)}})))),wp.element.createElement(ct,null,wp.element.createElement("div",{className:"otter-info"},wp.element.createElement("h2",null,nt("Got a question for us?")),wp.element.createElement("p",null,nt("We would love to help you out if you need any help with Otter.")),wp.element.createElement("div",{className:"otter-info-button-group"},wp.element.createElement(at,{isDefault:!0,isLarge:!0,target:"_blank",href:"https://wordpress.org/support/plugin/otter-blocks",className:"otter-step-seven"},nt("Ask a question")),wp.element.createElement(at,{isDefault:!0,isLarge:!0,target:"_blank",href:"https://wordpress.org/support/plugin/otter-blocks/reviews/#new-post",className:"otter-step-eight"},nt("Leave a review")))))),T&&wp.element.createElement(lt,{title:nt("Are you sure?"),onRequestClose:function(){return j(!1)}},wp.element.createElement("p",null,nt("Are you sure you want to delete all Otter generated CSS files?")),wp.element.createElement("p",null,nt("Note: Styles will be regenerated as users start visiting your pages.")),wp.element.createElement("div",{className:"otter-modal-actions"},wp.element.createElement(at,{isSecondary:!0,isLarge:!0,onClick:function(){return j(!1)}},nt("Cancel")),wp.element.createElement(at,{isPrimary:!0,isLarge:!0,disabled:i,isBusy:i,onClick:D},nt("Confirm"))))):wp.element.createElement(pt,null,wp.element.createElement(ft,null))},wt=wp.i18n.__,Et=function(){return wp.element.createElement("footer",{className:"otter-footer"},wp.element.createElement("div",{className:"otter-container"},wt("No otters were harmed during the making of this plugin.")))},Ot=wp.element,St=Ot.render,kt=Ot.Fragment;St(wp.element.createElement((function(){return wp.element.createElement(kt,null,Boolean(otterObj.showTour)&&wp.element.createElement(Ve,null),wp.element.createElement(r.a,null),wp.element.createElement(Xe,null),wp.element.createElement(gt,null),wp.element.createElement(Et,null))}),null),document.getElementById("otter"))}]);
|
class-otter-blocks.php
CHANGED
@@ -68,9 +68,12 @@ class Otter_Blocks {
|
|
68 |
* @access public
|
69 |
*/
|
70 |
public function enqueue_block_assets() {
|
71 |
-
|
72 |
-
|
73 |
-
|
|
|
|
|
|
|
74 |
}
|
75 |
}
|
76 |
|
@@ -91,6 +94,10 @@ class Otter_Blocks {
|
|
91 |
\ThemeIsle\GutenbergAnimation::instance();
|
92 |
}
|
93 |
|
|
|
|
|
|
|
|
|
94 |
if ( class_exists( '\ThemeIsle\GutenbergBlocks\Main' ) ) {
|
95 |
\ThemeIsle\GutenbergBlocks\Main::instance( $this->name );
|
96 |
}
|
@@ -165,6 +172,17 @@ class Otter_Blocks {
|
|
165 |
)
|
166 |
);
|
167 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
register_setting(
|
169 |
'themeisle_blocks_settings',
|
170 |
'otter_blocks_logger_flag',
|
@@ -217,6 +235,7 @@ class Otter_Blocks {
|
|
217 |
'assetsPath' => plugins_url( 'assets/', __FILE__ ),
|
218 |
'showTour' => $tour,
|
219 |
'stylesExist' => is_dir( $basedir ),
|
|
|
220 |
)
|
221 |
);
|
222 |
}
|
68 |
* @access public
|
69 |
*/
|
70 |
public function enqueue_block_assets() {
|
71 |
+
wp_register_style( 'font-awesome-5', plugins_url( 'assets/fontawesome/css/all.min.css', __FILE__ ), [], OTTER_BLOCKS_VERSION );
|
72 |
+
wp_register_style( 'font-awesome-4-shims', plugins_url( 'assets/fontawesome/css/v4-shims.min.css', __FILE__ ), [], OTTER_BLOCKS_VERSION );
|
73 |
+
|
74 |
+
if ( is_admin() ) {
|
75 |
+
wp_enqueue_style( 'font-awesome-5' );
|
76 |
+
wp_enqueue_style( 'font-awesome-4-shims' );
|
77 |
}
|
78 |
}
|
79 |
|
94 |
\ThemeIsle\GutenbergAnimation::instance();
|
95 |
}
|
96 |
|
97 |
+
if ( class_exists( '\ThemeIsle\GutenbergMenuIcons' ) && get_option( 'themeisle_blocks_settings_menu_icons', true ) ) {
|
98 |
+
\ThemeIsle\GutenbergMenuIcons::instance();
|
99 |
+
}
|
100 |
+
|
101 |
if ( class_exists( '\ThemeIsle\GutenbergBlocks\Main' ) ) {
|
102 |
\ThemeIsle\GutenbergBlocks\Main::instance( $this->name );
|
103 |
}
|
172 |
)
|
173 |
);
|
174 |
|
175 |
+
register_setting(
|
176 |
+
'themeisle_blocks_settings',
|
177 |
+
'themeisle_blocks_settings_menu_icons',
|
178 |
+
array(
|
179 |
+
'type' => 'boolean',
|
180 |
+
'description' => __( 'Menu Icons module allows to add icons to navigation menu items in Block Editor.', 'otter-blocks' ),
|
181 |
+
'show_in_rest' => true,
|
182 |
+
'default' => true,
|
183 |
+
)
|
184 |
+
);
|
185 |
+
|
186 |
register_setting(
|
187 |
'themeisle_blocks_settings',
|
188 |
'otter_blocks_logger_flag',
|
235 |
'assetsPath' => plugins_url( 'assets/', __FILE__ ),
|
236 |
'showTour' => $tour,
|
237 |
'stylesExist' => is_dir( $basedir ),
|
238 |
+
'navExists' => WP_Block_Type_Registry::get_instance()->is_registered( 'core/navigation' ),
|
239 |
)
|
240 |
);
|
241 |
}
|
otter-blocks.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Plugin Name: Gutenberg Blocks and Template Library by Otter
|
8 |
* Plugin URI: https://themeisle.com/plugins/otter-blocks
|
9 |
* Description: Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter. Otter comes with dozens of Gutenberg blocks that are all you need to build beautiful pages.
|
10 |
-
* Version: 1.5.
|
11 |
* Author: ThemeIsle
|
12 |
* Author URI: https://themeisle.com
|
13 |
* License: GPL-2.0+
|
@@ -26,7 +26,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
26 |
define( 'OTTER_BLOCKS_BASEFILE', __FILE__ );
|
27 |
define( 'OTTER_BLOCKS_URL', plugins_url( '/', __FILE__ ) );
|
28 |
define( 'OTTER_BLOCKS_PATH', dirname( __FILE__ ) );
|
29 |
-
define( 'OTTER_BLOCKS_VERSION', '1.5.
|
30 |
define( 'OTTER_BLOCKS_DEV', false );
|
31 |
|
32 |
$vendor_file = OTTER_BLOCKS_PATH . '/vendor/autoload.php';
|
7 |
* Plugin Name: Gutenberg Blocks and Template Library by Otter
|
8 |
* Plugin URI: https://themeisle.com/plugins/otter-blocks
|
9 |
* Description: Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter. Otter comes with dozens of Gutenberg blocks that are all you need to build beautiful pages.
|
10 |
+
* Version: 1.5.4
|
11 |
* Author: ThemeIsle
|
12 |
* Author URI: https://themeisle.com
|
13 |
* License: GPL-2.0+
|
26 |
define( 'OTTER_BLOCKS_BASEFILE', __FILE__ );
|
27 |
define( 'OTTER_BLOCKS_URL', plugins_url( '/', __FILE__ ) );
|
28 |
define( 'OTTER_BLOCKS_PATH', dirname( __FILE__ ) );
|
29 |
+
define( 'OTTER_BLOCKS_VERSION', '1.5.4' );
|
30 |
define( 'OTTER_BLOCKS_DEV', false );
|
31 |
|
32 |
$vendor_file = OTTER_BLOCKS_PATH . '/vendor/autoload.php';
|
readme.md
CHANGED
@@ -46,6 +46,28 @@ It has:
|
|
46 |
|
47 |
## Changelog ##
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
##### [Version 1.5.3](https://github.com/Codeinwp/otter-blocks/compare/v1.5.2...v1.5.3) (2020-04-10)
|
50 |
|
51 |
- Remove Icons from Range Controls
|
46 |
|
47 |
## Changelog ##
|
48 |
|
49 |
+
##### [Version 1.5.4](https://github.com/Codeinwp/otter-blocks/compare/v1.5.3...v1.5.4) (2020-05-26)
|
50 |
+
|
51 |
+
- Use WP File System in Template Import
|
52 |
+
- Fix CSS Regeneration
|
53 |
+
- Add TinyMCE in Map Marker
|
54 |
+
- Use ServerSideLoader in Author & Sharing Blocks
|
55 |
+
- Fix Posts Block for Gutenberg 8.0
|
56 |
+
- Display template name in Template Library
|
57 |
+
- Add AMP Support to Slider Block
|
58 |
+
- Remove Section Outline
|
59 |
+
- Add AMP Support to Google Maps Block
|
60 |
+
- Fix Horizontal/Vertical Alignment
|
61 |
+
- Add Template Preview in Template Library
|
62 |
+
- Fix issue with Color resetting in Button Group & Section
|
63 |
+
- Fix Font Awesome not loading on Index Pages
|
64 |
+
- Add two new templates
|
65 |
+
- Fix SVG issue in Slider & Section Block
|
66 |
+
- Add Menu Icons Module
|
67 |
+
|
68 |
+
|
69 |
+
|
70 |
+
|
71 |
##### [Version 1.5.3](https://github.com/Codeinwp/otter-blocks/compare/v1.5.2...v1.5.3) (2020-04-10)
|
72 |
|
73 |
- Remove Icons from Range Controls
|
readme.txt
CHANGED
@@ -46,6 +46,28 @@ It has:
|
|
46 |
|
47 |
== Changelog ==
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
##### [Version 1.5.3](https://github.com/Codeinwp/otter-blocks/compare/v1.5.2...v1.5.3) (2020-04-10)
|
50 |
|
51 |
- Remove Icons from Range Controls
|
46 |
|
47 |
== Changelog ==
|
48 |
|
49 |
+
##### [Version 1.5.4](https://github.com/Codeinwp/otter-blocks/compare/v1.5.3...v1.5.4) (2020-05-26)
|
50 |
+
|
51 |
+
- Use WP File System in Template Import
|
52 |
+
- Fix CSS Regeneration
|
53 |
+
- Add TinyMCE in Map Marker
|
54 |
+
- Use ServerSideLoader in Author & Sharing Blocks
|
55 |
+
- Fix Posts Block for Gutenberg 8.0
|
56 |
+
- Display template name in Template Library
|
57 |
+
- Add AMP Support to Slider Block
|
58 |
+
- Remove Section Outline
|
59 |
+
- Add AMP Support to Google Maps Block
|
60 |
+
- Fix Horizontal/Vertical Alignment
|
61 |
+
- Add Template Preview in Template Library
|
62 |
+
- Fix issue with Color resetting in Button Group & Section
|
63 |
+
- Fix Font Awesome not loading on Index Pages
|
64 |
+
- Add two new templates
|
65 |
+
- Fix SVG issue in Slider & Section Block
|
66 |
+
- Add Menu Icons Module
|
67 |
+
|
68 |
+
|
69 |
+
|
70 |
+
|
71 |
##### [Version 1.5.3](https://github.com/Codeinwp/otter-blocks/compare/v1.5.2...v1.5.3) (2020-04-10)
|
72 |
|
73 |
- Remove Icons from Range Controls
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit1aae7f8d007febfa2dabe0adea6b406d::getLoader();
|
vendor/codeinwp/gutenberg-blocks/CHANGELOG.md
CHANGED
@@ -1,3 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
##### [Version 1.5.1](https://github.com/Codeinwp/gutenberg-blocks/compare/v1.5.0...v1.5.1) (2020-04-10)
|
2 |
|
3 |
- Remove Icons from Range Controls
|
1 |
+
##### [Version 1.5.2](https://github.com/Codeinwp/gutenberg-blocks/compare/v1.5.1...v1.5.2) (2020-05-26)
|
2 |
+
|
3 |
+
- Use WP File System in Template Import
|
4 |
+
- Fix CSS Regeneration
|
5 |
+
- Add TinyMCE in Map Marker
|
6 |
+
- Use ServerSideLoader in Author & Sharing Blocks
|
7 |
+
- Fix Posts Block for Gutenberg 8.0
|
8 |
+
- Display template name in Template Library
|
9 |
+
- Add AMP Support to Slider Block
|
10 |
+
- Remove Section Outline
|
11 |
+
- Add AMP Support to Google Maps Block
|
12 |
+
- Fix Horizontal/Vertical Alignment
|
13 |
+
- Add Template Preview in Template Library
|
14 |
+
- Fix issue with Color resetting in Button Group & Section
|
15 |
+
- Fix Font Awesome not loading on Index Pages
|
16 |
+
- Add two new templates
|
17 |
+
- Fix SVG issue in Slider & Section Block
|
18 |
+
|
19 |
##### [Version 1.5.1](https://github.com/Codeinwp/gutenberg-blocks/compare/v1.5.0...v1.5.1) (2020-04-10)
|
20 |
|
21 |
- Remove Icons from Range Controls
|
vendor/codeinwp/gutenberg-blocks/assets/static/deprecated.css
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
.wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
|
20 |
display: flex;
|
21 |
flex-direction: column;
|
22 |
-
margin: auto;
|
23 |
width: 0;
|
24 |
}
|
25 |
.wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] .editor-block-list__block-edit {
|
@@ -86,6 +86,18 @@
|
|
86 |
.wp-block-themeisle-blocks-advanced-columns.has-6-columns.has-desktop-equal-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
|
87 |
flex-basis: 16.66%;
|
88 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
}
|
90 |
@media (min-width: 600px) and (max-width: 960px) {
|
91 |
.wp-block-themeisle-blocks-advanced-columns {
|
@@ -241,13 +253,28 @@
|
|
241 |
flex: 1 1 33%;
|
242 |
}
|
243 |
}
|
244 |
-
.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
align-items: flex-start;
|
246 |
}
|
247 |
-
.wp-block-themeisle-blocks-advanced-columns.has-
|
|
|
248 |
align-items: center;
|
249 |
}
|
250 |
-
.wp-block-themeisle-blocks-advanced-columns.has-
|
|
|
251 |
align-items: flex-end;
|
252 |
}
|
253 |
.wp-block-themeisle-onboarding-component .wp-block-themeisle-layout-picker {
|
@@ -259,9 +286,6 @@
|
|
259 |
.block-editor-block-list__block[data-type="themeisle-blocks/advanced-columns"]:not(.is-selected)::before {
|
260 |
outline: none;
|
261 |
}
|
262 |
-
.editor-block-list__block[data-type="themeisle-blocks/advanced-columns"]:not(.is-selected) > .editor-block-list__block-edit:before {
|
263 |
-
outline: 2px dashed #d5dadf;
|
264 |
-
}
|
265 |
[data-type="themeisle-blocks/advanced-column"] .wp-themeisle-block-advanced-column-resize-container .wp-themeisle-block-advanced-column-resize-container-handle .components-resizable-box__handle-right {
|
266 |
right: -15.5px;
|
267 |
}
|
19 |
.wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
|
20 |
display: flex;
|
21 |
flex-direction: column;
|
22 |
+
margin: 0 auto;
|
23 |
width: 0;
|
24 |
}
|
25 |
.wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] .editor-block-list__block-edit {
|
86 |
.wp-block-themeisle-blocks-advanced-columns.has-6-columns.has-desktop-equal-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
|
87 |
flex-basis: 16.66%;
|
88 |
}
|
89 |
+
.branch-5-2 .wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout > [data-type="themeisle-blocks/advanced-column"],
|
90 |
+
.branch-5-3 .wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout > [data-type="themeisle-blocks/advanced-column"] {
|
91 |
+
align-self: flex-start;
|
92 |
+
}
|
93 |
+
.branch-5-2 .wp-block-themeisle-blocks-advanced-columns.has-vertical-center .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout > [data-type="themeisle-blocks/advanced-column"],
|
94 |
+
.branch-5-3 .wp-block-themeisle-blocks-advanced-columns.has-vertical-center .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout > [data-type="themeisle-blocks/advanced-column"] {
|
95 |
+
align-self: center;
|
96 |
+
}
|
97 |
+
.branch-5-2 .wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-end .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout > [data-type="themeisle-blocks/advanced-column"],
|
98 |
+
.branch-5-3 .wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-end .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout > [data-type="themeisle-blocks/advanced-column"] {
|
99 |
+
align-self: flex-end;
|
100 |
+
}
|
101 |
}
|
102 |
@media (min-width: 600px) and (max-width: 960px) {
|
103 |
.wp-block-themeisle-blocks-advanced-columns {
|
253 |
flex: 1 1 33%;
|
254 |
}
|
255 |
}
|
256 |
+
.branch-5-2 .wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start,
|
257 |
+
.branch-5-3 .wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start {
|
258 |
+
justify-content: flex-start;
|
259 |
+
}
|
260 |
+
.branch-5-2 .wp-block-themeisle-blocks-advanced-columns.has-vertical-center,
|
261 |
+
.branch-5-3 .wp-block-themeisle-blocks-advanced-columns.has-vertical-center {
|
262 |
+
justify-content: center;
|
263 |
+
}
|
264 |
+
.branch-5-2 .wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-end,
|
265 |
+
.branch-5-3 .wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-end {
|
266 |
+
justify-content: flex-end;
|
267 |
+
}
|
268 |
+
.branch-5-2 .wp-block-themeisle-blocks-advanced-columns.has-horizontal-flex-start,
|
269 |
+
.branch-5-3 .wp-block-themeisle-blocks-advanced-columns.has-horizontal-flex-start {
|
270 |
align-items: flex-start;
|
271 |
}
|
272 |
+
.branch-5-2 .wp-block-themeisle-blocks-advanced-columns.has-horizontal-center,
|
273 |
+
.branch-5-3 .wp-block-themeisle-blocks-advanced-columns.has-horizontal-center {
|
274 |
align-items: center;
|
275 |
}
|
276 |
+
.branch-5-2 .wp-block-themeisle-blocks-advanced-columns.has-horizontal-flex-end,
|
277 |
+
.branch-5-3 .wp-block-themeisle-blocks-advanced-columns.has-horizontal-flex-end {
|
278 |
align-items: flex-end;
|
279 |
}
|
280 |
.wp-block-themeisle-onboarding-component .wp-block-themeisle-layout-picker {
|
286 |
.block-editor-block-list__block[data-type="themeisle-blocks/advanced-columns"]:not(.is-selected)::before {
|
287 |
outline: none;
|
288 |
}
|
|
|
|
|
|
|
289 |
[data-type="themeisle-blocks/advanced-column"] .wp-themeisle-block-advanced-column-resize-container .wp-themeisle-block-advanced-column-resize-container-handle .components-resizable-box__handle-right {
|
290 |
right: -15.5px;
|
291 |
}
|
vendor/codeinwp/gutenberg-blocks/build/blocks.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){function t(t){for(var a,r,i=t[0],c=t[1],d=t[2],m=0,s=[];m<i.length;m++)r=i[m],Object.prototype.hasOwnProperty.call(l,r)&&l[r]&&s.push(l[r][0]),l[r]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(p&&p(t);s.length;)s.shift()();return o.push.apply(o,d||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,i=1;i<n.length;i++){var c=n[i];0!==l[c]&&(a=!1)}a&&(o.splice(t--,1),e=r(r.s=n[0]))}return e}var a={},l={2:0},o=[];function r(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var t=[],n=l[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,a){n=l[e]=[t,a]}));t.push(n[2]=a);var o,i=document.createElement("script");i.charset="utf-8",i.timeout=120,r.nc&&i.setAttribute("nonce",r.nc),i.src=function(e){return r.p+"chunk-"+({}[e]||e)+".js"}(e);var c=new Error;o=function(t){i.onerror=i.onload=null,clearTimeout(d);var n=l[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",c.name="ChunkLoadError",c.type=a,c.request=o,n[1](c)}l[e]=void 0}};var d=setTimeout((function(){o({type:"timeout",target:i})}),12e4);i.onerror=i.onload=o,document.head.appendChild(i)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=window.tiOtterWebpackJsonp=window.tiOtterWebpackJsonp||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var d=0;d<i.length;d++)t(i[d]);var p=c;o.push([37,0]),n()}([,,function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"i",(function(){return m})),n.d(t,"h",(function(){return s})),n.d(t,"r",(function(){return u})),n.d(t,"j",(function(){return b})),n.d(t,"o",(function(){return g})),n.d(t,"n",(function(){return f})),n.d(t,"q",(function(){return h})),n.d(t,"p",(function(){return y})),n.d(t,"s",(function(){return w})),n.d(t,"b",(function(){return v})),n.d(t,"t",(function(){return k})),n.d(t,"k",(function(){return T})),n.d(t,"c",(function(){return E})),n.d(t,"l",(function(){return x})),n.d(t,"e",(function(){return C}));var a=wp.components,l=a.Path,o=a.SVG,r=function(){return wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 32",width:"20",height:"20",className:"otter-icon"},wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}))},i=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},c=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},d=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},p=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},m=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},s=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},u=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},b=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},g=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M4.285 5.775c0.004 0 0.009 0.001 0.013 0.001h8.279c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-8.279c-0.307 0-0.556 0.249-0.556 0.556 0 0.302 0.242 0.548 0.542 0.555zM3.743 8.005c0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-13.679c-0.307 0-0.556 0.249-0.556 0.556zM17.977 10.236h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 13.022h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 15.807h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 18.593h-13.679c-0.307 0-0.556 0.249-0.556 0.555s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.555-0.556-0.555zM17.977 21.379h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 24.165h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM21.93 4.466l-4.277-3.87c-0.094-0.085-0.212-0.132-0.334-0.139h-15.831c-0.812 0-1.473 0.664-1.473 1.481v28.153c0 0.817 0.661 1.481 1.473 1.481h19.174c0.812 0 1.473-0.664 1.473-1.481v-25.222c-0.008-0.163-0.086-0.308-0.205-0.403zM17.833 2.238l2.331 2.109h-2.331v-2.109zM21.043 30.091c0 0.215-0.171 0.39-0.381 0.39h-19.174c-0.21 0-0.382-0.175-0.382-0.39v-28.153c0-0.215 0.171-0.39 0.382-0.39h15.251v3.348c0 0.303 0.245 0.549 0.547 0.549h3.758v24.647zM31.975 3.213c-0.125-1.57-1.442-2.809-3.044-2.809-0 0-0 0-0 0-0.816 0-1.583 0.318-2.16 0.895-0.519 0.519-0.827 1.191-0.884 1.915h-0.010v0.242c0 0.001-0 0.002-0 0.003s0 0.001 0 0.001l-0 24.342h0.003c0.010 0.096 0.045 0.191 0.108 0.273l2.509 3.305c0.103 0.136 0.264 0.216 0.435 0.216s0.331-0.080 0.435-0.216l2.508-3.305c0.063-0.083 0.098-0.177 0.108-0.274h0.003v-24.589h-0.011zM27.543 2.070c0.371-0.371 0.864-0.575 1.388-0.575h0c0.893 0 1.649 0.6 1.886 1.417h-3.772c0.091-0.315 0.26-0.604 0.498-0.842zM28.362 26.711l-1.394 0 0-22.406h3.926v22.406h-1.442l0-18.071-1.090 0 0 18.071zM28.931 30.148l-1.781-2.346 3.562-0-1.781 2.346z"}))},f=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},h=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},y=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},w=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},v=function(){return wp.element.createElement(o,{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},k=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"4.744",width:"11.022",height:"2.512"}))},T=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{y:"8.744",width:"11.022",x:"4.489",height:"2.512"}))},E=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"12.802",width:"11.022",height:"2.512"}))},x=wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},wp.element.createElement(l,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"})),C=wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement(l,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(42),wp.components.ColorIndicator);t.a=function(e){var t=e.label,n=e.colorValue,a=e.className,r=e.children;return wp.element.createElement("div",{className:l()("components-base-control","wp-block-themeisle-blocks-color-base-control",a)},wp.element.createElement("div",{className:"components-base-control__field"},t&&wp.element.createElement("span",{className:"components-base-control__label"},t,n&&wp.element.createElement(o,{colorValue:n})),r))}},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(44),n(2)),r=wp.i18n.__,i=wp.components,c=i.Button,d=i.Dropdown,p=i.Icon,m=i.IconButton,s=wp.compose,u=s.compose,b=s.withInstanceId,g=wp.data,f=g.withSelect,h=g.withDispatch,y=wp.viewport.withViewportMatch;t.a=u(b,y({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}),f((function(e,t){var n=e("themeisle-gutenberg/data").getView,a=e("core/edit-post").__experimentalGetPreviewDeviceType,l=!(t.isLarger||t.isLarge||t.isSmall||t.isSmaller);return{view:a&&!l?a():n()}})),h((function(e,t){var n=e("themeisle-gutenberg/data").updateView,a=e("core/edit-post").__experimentalSetPreviewDeviceType,l=!(t.isLarger||t.isLarge||t.isSmall||t.isSmaller);return{updateView:a&&!l?a:n}})))((function(e){var t=e.instanceId,n=e.label,a=e.className,i=e.children,s=e.view,u=e.updateView,b="inspector-responsive-control-".concat(t);return wp.element.createElement("div",{id:b,className:l()("wp-block-themeisle-blocks-responsive-control",a)},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(d,{position:"top left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(m,{icon:"Mobile"===s?"smartphone":s.toLowerCase(),label:r("Responsiveness Settings"),className:"is-button",onClick:n,"aria-expanded":t})},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings-title"},r("View")),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Desktop"===s}),onClick:function(){return u("Desktop")}},"Desktop"===s&&wp.element.createElement(p,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Desktop"))),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Tablet"===s}),onClick:function(){return u("Tablet")}},"Tablet"===s&&wp.element.createElement(p,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Tablet"))),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Mobile"===s}),onClick:function(){return u("Mobile")}},"Mobile"===s&&wp.element.createElement(p,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Mobile"))))}}))),i))}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(45),wp.element),r=o.Fragment,i=o.useRef,c=function(e){var t=e.id,n=e.index,a=e.option,l=e.min,o=e.max,c=e.onChange,d=i(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-sizing-control-item"},n.disabled?wp.element.createElement("input",{type:"number",disabled:n.disabled,className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a)}):wp.element.createElement(r,null,wp.element.createElement("input",{type:"number",className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t),value:void 0!==n.value?n.value:"",min:l,max:o,ref:d,onChange:function(e){return c(n.type,parseInt(e.target.value))}})),n.label&&wp.element.createElement("label",{className:"wp-block-themeisle-blocks-sizing-control-item-label",htmlFor:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t)},n.label))},d=wp.i18n.__,p=wp.components.IconButton,m=wp.compose.withInstanceId;t.a=m((function(e){var t=e.instanceId,n=e.label,a=e.type,o=e.min,r=e.max,i=e.changeType,m=e.options,s=e.onChange,u="inspector-sizing-control-".concat(t);return m&&1>m.length?d("Please specify more options."):wp.element.createElement("div",{id:u,className:"wp-block-themeisle-blocks-sizing-control"},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("label",{className:"components-base-control__label",htmlFor:u},n),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-wrapper",{linking:a})},m.map((function(e,n){return wp.element.createElement(c,{id:t,index:e,option:n,min:o,max:r,onChange:s})})),a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-item","toggle-linking",{"is-linked":"linked"===a})},wp.element.createElement(p,{icon:"linked"===a?"admin-links":"editor-unlink",tooltip:d("linked"===a?"Unlink Values":"Link Values"),className:"wp-block-themeisle-blocks-sizing-control-item-input",onClick:function(){return i("linked"===a?"unlinked":"linked")}})))))}))},function(e,t,n){"use strict";t.a={"themeisle-blocks/advanced-heading":{tag:"h2",headingColor:"#000000",fontStyle:"normal",textTransform:"none",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:0,marginTop:0,marginBottom:25},"themeisle-blocks/button-group":{spacing:20,collapse:"collapse-none",fontSize:18,fontStyle:"normal",data:{color:"#ffffff",background:"#32373c",paddingTopBottom:12,paddingLeftRight:24}},"themeisle-blocks/font-awesome-icons":{fontSize:16,padding:5,margin:5},"themeisle-blocks/advanced-columns":{columnsGap:"default",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginBottom:20,columnsHTMLTag:"div",horizontalAlign:"unset",columnsHeight:"auto",verticalAlign:"unset",hide:!1,hideTablet:!1,hideMobile:!1},"themeisle-blocks/advanced-column":{paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginRight:0,marginBottom:20,marginLeft:0,columnsHTMLTag:"div"}}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return o}));var a=wp.i18n.__,l=function(e){var t=document.createElement("div");return t.innerHTML=e,void 0!==t.innerText?t.innerText:t.textContent},o=function(e){var t=[a("January"),a("February"),a("March"),a("April"),a("May"),a("June"),a("July"),a("August"),a("September"),a("October"),a("November"),a("December")],n=(e=new Date(e)).getDate(),l=e.getMonth(),o=e.getFullYear();return n+" "+t[l]+", "+o}},function(e,t,n){"use strict";n(55);var a=wp.components,l=a.Dropdown,o=a.IconButton,r=wp.compose.withInstanceId;t.a=r((function(e){var t=e.label,n=e.instanceId,a=e.children,r="inspector-control-panel-control-".concat(n);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-control-panel-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label",for:r},t),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(l,{position:"top left",headerTitle:t,expandOnMobile:!0,renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(o,{id:r,icon:"admin-settings",label:t,className:"is-button",onClick:a,"aria-expanded":n})},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-popover-settings"},a)}})))))}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(43);function o(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var d=lodash,p=d.startCase,m=d.toLower,s=wp.i18n.__,u=wp.compose.withInstanceId,b=wp.components,g=b.Button,f=b.BaseControl,h=b.Dropdown,y=b.MenuGroup,w=b.MenuItem,v=b.SelectControl,k=b.TextControl,T=wp.element,E=T.useEffect,x=T.useState;t.a=u((function(e){var t=e.instanceId,n=e.label,a=e.value,i=e.valueVariant,c=e.valueStyle,d=e.valueTransform,u=e.isSelect,b=void 0!==u&&u,T=e.onChangeFontFamily,C=e.onChangeFontVariant,S=e.onChangeFontStyle,M=e.onChangeTextTransform;E((function(){fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyClGdkPJ1BvgLOol5JAkQY4Mv2lkLYu00k").then((function(e){return e.json()})).then((function(e){R(e.items),a&&e.items.find((function(e){if(a===e.family){var t=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:p(m(e)),value:e}}));return A(t)}}))}))}),[]);var B=r(x(null),2),O=B[0],R=B[1],L=r(x(null),2),N=L[0],A=L[1],z=r(x(""),2),I=z[0],P=z[1],H="inspector-google-fonts-control-".concat(t);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-fonts-control"},wp.element.createElement(f,{label:n,id:H},null!==O?b?wp.element.createElement(v,{value:a||"",id:H,options:[{label:s("Default"),value:""}].concat(o(O.map((function(e){return{label:e.family,value:e.family}})))),onChange:function(e){var t=[];if(""===e)return t=[{label:s("Regular"),value:"regular"},{label:s("Italic"),value:"italic"}],T(void 0),void A(t);T(e),t=O.find((function(t){return e===t.family})).variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:p(m(e)),value:e}})),A(t)}}):wp.element.createElement(h,{contentClassName:"wp-block-themeisle-blocks-google-fonts-popover",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(g,{isLarge:!0,className:"wp-block-themeisle-blocks-google-fonts-button",id:H,onClick:n,"aria-expanded":t},a||s("Select Font Family"))},renderContent:function(e){var t=e.onToggle;return wp.element.createElement(y,{label:s("Google Fonts")},wp.element.createElement(k,{value:I,onChange:function(e){return P(e)}}),wp.element.createElement("div",{className:"components-popover__items"},wp.element.createElement(w,{onClick:function(){t(),T(void 0),A([]),P("")}},s("Default")),O.map((function(e){if(!I||e.family.toLowerCase().includes(I.toLowerCase()))return wp.element.createElement(w,{className:l()({"is-selected":e.family===a}),onClick:function(){t(),T(e.family);var n=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:p(m(e)),value:e}}));A(n),P("")}},e.family)}))))}}):s("Loading…")),N&&wp.element.createElement(v,{label:s("Font Width"),value:i||"regular",options:N,onChange:C}),wp.element.createElement(v,{label:s("Font Style"),value:c,options:[{label:s("Regular"),value:"normal"},{label:s("Italic"),value:"italic"}],onChange:S}),wp.element.createElement(v,{label:s("Font Transform"),value:d,options:[{label:s("Default"),value:"none"},{label:s("Uppercase"),value:"uppercase"},{label:s("Lowercase"),value:"lowercase"},{label:s("Capitalize"),value:"capitalize"}],onChange:M}))}))},function(e,t){e.exports=React},function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return g}));var a=n(0),l=n.n(a),o=(n(64),wp.components),r=o.BaseControl,i=o.Button,c=o.Dropdown,d=o.IconButton,p=o.Toolbar,m=wp.compose.withInstanceId,s=wp.blockEditor.BlockControls,u=wp.element.Fragment,b=m((function(e){var t=e.instanceId,n=e.label,a=e.value,o=e.options,c=e.onChange,d="inspector-style-switcher-control-".concat(t);return wp.element.createElement(r,{id:d,label:n},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},o.map((function(e){return wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===a}),tabIndex:"0",onClick:function(){return function(e){return c(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))})),g=function(e){var t=e.label,n=e.value,a=e.options,o=e.onChange;return wp.element.createElement(s,null,wp.element.createElement(p,{className:"wp-themesiel-blocks-block-styles-components-toolbar"},wp.element.createElement(c,{contentClassName:"wp-themesiel-blocks-block-styles-popover-content",position:"bottom center",renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(d,{className:"components-dropdown-menu__toggle",icon:"admin-appearance",onClick:a,"aria-haspopup":"true","aria-expanded":n,label:t,tooltip:t},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(u,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},a.map((function(e){return wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===n}),tabIndex:"0",onClick:function(){return function(e){return o(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))}})))}},,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(72),n(73),wp.components),r=o.SVG,i=o.Path;t.default=function(e){var t=e.type,n=e.front,a=e.style,o=e.fill,c=e.invert,d=e.width,p=e.height;return"none"!==a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&d?{transform:"".concat(d?"scaleX( ".concat(d/100," )"):"")}:{}},"bigTriangle"===a&&!1===c&&wp.element.createElement(r,{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement(i,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===c&&wp.element.createElement(r,{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===c&&wp.element.createElement(r,{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===c&&wp.element.createElement(r,{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(r,{id:"curve",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===c&&wp.element.createElement(r,{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement(i,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===c&&wp.element.createElement(r,{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement(i,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(r,{id:"cloud",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{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"})))}},function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(69),n(2)),r=wp.i18n.__,i=wp.components,c=i.Button,d=i.ButtonGroup,p=i.Icon,m=i.IconButton,s=i.Tooltip,u=wp.compose.withInstanceId;t.default=u((function(e){var t=e.label,n=e.instanceId,a=e.backgroundType,i=e.changeBackgroundType,u="inspector-background-control-".concat(n);return wp.element.createElement("div",{id:u,className:"components-base-control wp-block-themeisle-blocks-advanced-columns-background-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},t),wp.element.createElement(d,{className:"linking-controls"},wp.element.createElement(m,{icon:"admin-customizer",label:r("Color"),className:l()("is-button",{"is-primary":"color"===a}),onClick:function(){i("color")}}),wp.element.createElement(m,{icon:"format-image",label:r("Image"),className:l()("is-button",{"is-primary":"image"===a}),onClick:function(){i("image")}}),wp.element.createElement(s,{text:r("Gradient")},wp.element.createElement(c,{label:r("Gradient"),className:l()("is-button",{"is-primary":"gradient"===a}),onClick:function(){i("gradient")}},wp.element.createElement(p,{icon:o.b})))))))}))},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";t.a={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"]},4:{equal:["25","25","25","25"]},5:{equal:["20","20","20","20","20"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"]}}},function(e,t,n){"use strict";n(70);var a=n(3),l=n(0),o=n.n(l),r=wp.components,i=r.Dashicon,c=r.Tooltip,d=function(e){var t=e.title,n=e.firstColor,a=e.secondColor,l=e.isSelected,r=e.onChange,d=wp.element.createElement("button",{type:"button","aria-pressed":l,className:o()("wp-block-themeisle-blocks-gradient-picker-control-option",{"is-active":l}),style:{background:"linear-gradient(90deg, ".concat(n," 0%, ").concat(a," 100%)")},onClick:function(){return r(n,0,a,100,"linear",90,"center center")}});return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-option-wrapper"},t?wp.element.createElement(c,{text:t},d):d,l&&wp.element.createElement(i,{icon:"saved"}))},p=wp.i18n.__,m=[{title:p("Reef"),firstColor:"#36d1dc",secondColor:"#5b86e5"},{title:p("Mild"),firstColor:"#67B26F",secondColor:"#4ca2cd"},{title:p("Mojito"),firstColor:"#1D976C",secondColor:"#93F9B9"},{title:p("Nelson"),firstColor:"#f2709c",secondColor:"#ff9472"},{title:p("Orange Fun"),firstColor:"#fc4a1a",secondColor:"#f7b733"},{title:p("Evening Night"),firstColor:"#005AA7",secondColor:"#FFFDE4"},{title:p("Calm Darya"),firstColor:"#5f2c82",secondColor:"#49a09d"},{title:p("Opa"),firstColor:"#3D7EAA",secondColor:"#FFE47A"},{title:p("Bora Bora"),firstColor:"#2BC0E4",secondColor:"#EAECC6"},{title:p("Electric Violet"),firstColor:"#4776E6",secondColor:"#8E54E9"},{title:p("Pinky"),firstColor:"#DD5E89",secondColor:"#F7BB97"},{title:p("Purple Paradise"),firstColor:"#1D2B64",secondColor:"#F8CDDA"}],s=wp.i18n.__,u=wp.components,b=u.Button,g=u.ColorIndicator,f=u.Dropdown,h=u.RangeControl,y=u.SelectControl,w=wp.compose.withInstanceId,v=wp.blockEditor.ColorPalette,k=wp.element.Fragment;t.a=w((function(e){var t,n=e.label,l=e.instanceId,o=e.value,r=e.customGradient,i=void 0===r||r,c=e.onChange,p="inspector-gradient-picker-control-".concat(l),u=function(e){var t=e.firstColor,n=void 0===t?o.firstColor:t,a=e.firstLocation,l=void 0===a?o.firstLocation:a,r=e.secondColor,i=void 0===r?o.secondColor:r,d=e.secondLocation,p=void 0===d?o.secondLocation:d,m=e.type,s=void 0===m?o.type:m,u=e.angle,b=void 0===u?o.angle:u,g=e.position,f=void 0===g?o.position:g;c(n,l,i,p,s,b,f)};t="linear"===o.type?"".concat(o.angle,"deg"):"at ".concat(o.position);var w="".concat(o.type,"-gradient( ").concat(t,", ").concat(o.firstColor||"rgba( 0, 0, 0, 0 )"," ").concat(o.firstLocation,"%, ").concat(o.secondColor||"rgba( 0, 0, 0, 0 )"," ").concat(o.secondLocation,"% )"),T=m.some((function(e){return e.firstColor===o.firstColor&&e.secondColor===o.secondColor}));return wp.element.createElement("div",{id:p,className:"wp-block-themeisle-blocks-gradient-picker-control"},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n,!T&&wp.element.createElement(g,{colorValue:w}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-presets"},m.map((function(e){return wp.element.createElement(d,{title:e.title,firstColor:e.firstColor,secondColor:e.secondColor,isSelected:e.firstColor===o.firstColor&&e.secondColor===o.secondColor,onChange:c})})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-custom-wrapper"},i&&wp.element.createElement(f,{className:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-link-action",contentClassName:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-content",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(b,{"aria-expanded":t,onClick:n,isLink:!0},s("Custom Gradient"))},renderContent:function(){return wp.element.createElement(k,null,wp.element.createElement(a.a,{label:s("First Color"),colorValue:o.firstColor},wp.element.createElement(v,{label:s("Color"),clearable:!1,value:o.firstColor,onChange:function(e){return u({firstColor:e})}})),wp.element.createElement(h,{label:s("Location"),value:o.firstLocation,min:0,max:100,onChange:function(e){return u({firstLocation:e})}}),wp.element.createElement(a.a,{label:s("Second Color"),colorValue:o.secondColor},wp.element.createElement(v,{label:s("Color"),clearable:!1,value:o.secondColor,onChange:function(e){return u({secondColor:e})}})),wp.element.createElement(h,{label:s("Location"),value:o.secondLocation,min:0,max:100,onChange:function(e){return u({secondLocation:e})}}),wp.element.createElement(y,{label:s("Type"),value:o.type,options:[{label:"Linear",value:"linear"},{label:"Radial",value:"radial"}],onChange:function(e){return u({type:e})}}),"linear"===o.type?wp.element.createElement(h,{label:s("Angle"),value:o.angle,min:0,max:360,onChange:function(e){return u({angle:e})}}):wp.element.createElement(y,{label:s("Position"),value:o.position,options:[{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){return u({position:e})}}))}}),wp.element.createElement(b,{className:"wp-block-themeisle-blocks-gradient-picker-control-clear",type:"button",isSmall:!0,isDefault:!0,onClick:function(){return c("#ffffff",0,"#ffffff",100,"linear",90,"center center")}},s("Clear"))))))}))},,function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(56);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var i=wp.i18n.__,c=wp.blockEditor.InspectorAdvancedControls,d=wp.compose.withInstanceId,p=wp.components,m=p.BaseControl,s=p.IconButton,u=p.Notice,b=wp.element.useState;t.a=d((function(e){var t=e.instanceId,n=e.value,a=e.onChange,r=o(b(!1),2),d=r[0],p=r[1],g=o(b(n),2),f=g[0],h=g[1],y=void 0!==window.themeisleGutenberg.blockIDs&&n!==f&&window.themeisleGutenberg.blockIDs.includes(f);return wp.element.createElement(c,null,wp.element.createElement(m,{label:i("HTML Anchor"),help:i("Anchors lets you link directly to a section on a page."),id:"wp-block-themeisle-blocks-html-anchor-control-".concat(t)},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-html-anchor-control"},wp.element.createElement("input",{type:"text",className:"wp-block-themeisle-blocks-html-anchor-control-input",readonly:!d&&"readonly",value:d?f:n,onChange:function(e){return h(e.target.value)},onClick:function(e){return e.target.select()}}),wp.element.createElement(s,{icon:d?"yes":"edit",tooltip:i(d?"Save":"Edit"),disabled:!!y,className:l()("wp-block-themeisle-blocks-html-anchor-control-button",{"is-saved":!d}),onClick:function(){if(d&&n!==f){var e=window.themeisleGutenberg.blockIDs.findIndex((function(e){return e===n}));window.themeisleGutenberg.blockIDs[e]=f,a(f)}p(!d)}}))),y&&wp.element.createElement(u,{status:"warning",isDismissible:!1,className:"wp-block-themeisle-blocks-anchor-control-notice"},i("This ID has already been used in this page. Please consider using a different ID to avoid conflict.")))}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=n(22);n(59);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=wp.i18n.__,d=wp.apiFetch,p=wp.components,m=p.BaseControl,s=p.IconButton,u=p.Popover,b=wp.compose,g=b.compose,f=b.withInstanceId,h=wp.data.withSelect,y=wp.element,w=y.useEffect,v=y.useRef,k=y.useState,T=wp.keycodes,E=T.DOWN,x=T.ENTER,C=T.TAB,S=T.UP,M=wp.url.addQueryArgs;t.a=g(f,h((function(e){if(e("core/block-editor"))return{fetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))((function(e){var t=e.instanceId,n=e.label,a=e.help,i=e.placeholder,p=e.value,b=e.className,g=e.onChange,f=e.children,h=e.fetchLinkSuggestions;w((function(){z&&null!==H&&void 0!==B[H]&&!T&&null!==y.current&&(T=!0,Object(o.a)(B[H],y.current,{onlyScrollIfNeeded:!0}),setTimeout((function(){T=!1}),100))}));var y=v(null),T=!1,B=[],O=[],R=r(k(!1),2),L=R[0],N=R[1],A=r(k(!1),2),z=A[0],I=A[1],P=r(k(null),2),H=P[0],_=P[1],D=r(k([]),2),j=D[0],V=D[1],F=function(e){return function(t){B[e]=t}},G=function(e){g(e),I(!1)},W="inspector-link-control-".concat(t);return wp.element.createElement(m,{label:n,id:W,help:a,className:b},wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-link-control-wrapper",{"is-open":L})},wp.element.createElement("input",{type:"url",placeholder:i,value:p,onChange:function(e){g(e.target.value),function(e){var t;1>=e.length||/^https?:/.test(e)?I(!1):(I(!0),(t=h?h(e):d({path:M("/wp/v2/search",{search:e,per_page:20,type:"post"})})).then((function(e){O===t&&(V(e),_(null))})),O=t)}(e.target.value)},onKeyDown:function(e){if(z&&1<=j.length){var t=j[H];switch(e.keyCode){case S:e.stopPropagation(),e.preventDefault();var n=H?H-1:j.length-1;_(n);break;case E:e.stopPropagation(),e.preventDefault();var a=null===H||H===j.length-1?0:H+1;_(a);break;case C:case x:null!==H&&(e.stopPropagation(),G(t.url))}}},className:l()("components-text-control__input",{"is-full":void 0===f})}),z&&0<j.length&&wp.element.createElement(u,{position:"bottom",noArrow:!0,focusOnMount:!1,className:"wp-block-themeisle-blocks-link-control-popover"},wp.element.createElement("div",{ref:y,className:"wp-block-themeisle-blocks-link-control-popover-container"},j.map((function(e,t){return wp.element.createElement("button",{key:e.id,role:"option",tabIndex:"-1",ref:F(t),className:l()("block-editor-url-input__suggestion","editor-url-input__suggestion",{"is-selected":t===H}),onClick:function(){return G(e.url)}},e.title||c("Untitled Post"))})))),void 0!==f&&wp.element.createElement(s,{icon:"admin-generic",tooltip:c("Link Options"),onClick:function(){return N(!L)}})),L&&f)}))},,,,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(71),n(4)),r=wp.i18n.__,i=wp.components,c=i.Button,d=i.Path,p=i.Rect,m=i.SVG,s=i.Tooltip,u=wp.compose.compose,b=wp.data.withSelect,g=wp.element.Fragment;t.default=u(b((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t,n=e.label,a=e.onClick,i=e.layout,u=e.layoutTablet,b=e.layoutMobile,f=e.columns,h=e.view;return"Desktop"===h?t=i:"Tablet"===h?t=u:"Mobile"===h&&(t=b),wp.element.createElement(o.a,{label:n,className:"wp-block-themeisle-blocks-advanced-columns-layout-control"},1===f&&wp.element.createElement(s,{text:r("Single Row")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}))))||2===f&&wp.element.createElement(g,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:2")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===t}),onClick:function(){return a("oneTwo")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("2:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===t}),onClick:function(){return a("twoOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"28.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||3===f&&wp.element.createElement(g,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:1:2")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===t}),onClick:function(){return a("oneOneTwo")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("2:1:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===t}),onClick:function(){return a("twoOneOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:2:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===t}),onClick:function(){return a("oneTwoOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"31.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:3:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===t}),onClick:function(){return a("oneThreeOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"11.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"33.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||4===f&&wp.element.createElement(g,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(g,null,wp.element.createElement(s,{text:r("Two Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return a("twoColumnGrid")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"}))))))||5===f&&wp.element.createElement(g,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"10.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"34.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"26.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"18.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||6===f&&wp.element.createElement(g,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"10.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"35.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"29.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"16.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(g,null,wp.element.createElement(s,{text:r("Two Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return a("twoColumnGrid")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"4",y:"18.9",width:"40",height:"2.2"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"4",y:"26.9",width:"40",height:"2.2"})))),wp.element.createElement(s,{text:r("Three Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===t}),onClick:function(){return a("threeColumnGrid")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(p,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))))}))},function(e,t,n){"use strict";n.r(t);n(74);var a=n(2),l=n(0),o=n.n(l),r=n(106);n(75);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var d=lodash,p=d.startCase,m=d.toLower,s=wp.i18n.__,u=wp.components,b=u.Button,g=u.Dashicon,f=u.Icon,h=u.TextControl,y=u.Tooltip,w=u.SelectControl,v=function(e){var t,n=e.preview,l=e.tab,r=e.blocksCategories,c=e.templateCategories,d=e.selectedCategory,u=e.selectedTemplate,v=e.search,k=e.togglePreview,T=e.changeTab,E=e.close,x=e.importTemplate,C=e.selectCategory,S=e.changeSearch,M=(t=("block"===l?r:c).map((function(e){return{label:p(m(e)),value:e}})),[{label:s("All Categories"),value:"all"}].concat(i(t)));return wp.element.createElement("div",{className:"library-modal-control-panel"},wp.element.createElement("div",{className:"library-modal-header"},wp.element.createElement("div",{className:"library-modal-header-logo"},n?wp.element.createElement(b,{className:"library-modal-header-tabs-button back-to-library","aria-label":s("Back to Library"),onClick:k},wp.element.createElement(g,{icon:"arrow-left-alt"})," ",s("Back to Library")):wp.element.createElement("div",{className:"library-modal-header-tabs-button"},wp.element.createElement(f,{icon:a.m}))),!n&&wp.element.createElement("div",{className:"library-modal-header-tabs"},wp.element.createElement(b,{className:o()("library-modal-header-tabs-button",{"is-selected":"block"===l}),onClick:function(){return T("block")}},wp.element.createElement(g,{icon:"screenoptions"}),s("Blocks")),wp.element.createElement(b,{className:o()("library-modal-header-tabs-button",{"is-selected":"template"===l}),onClick:function(){return T("template")}},wp.element.createElement(g,{icon:"editor-table"}),s("Templates"))),wp.element.createElement("div",{className:"library-modal-header-actions"},n&&wp.element.createElement(b,{className:"library-modal-header-tabs-button insert-button",onClick:function(){return x(u.template_url)},tabindex:"0"},wp.element.createElement(g,{icon:"arrow-down-alt",size:16}),s("Insert")),wp.element.createElement(y,{text:s("Close")},wp.element.createElement(b,{className:"library-modal-header-tabs-button","aria-label":s("Close settings"),onClick:E},wp.element.createElement(g,{icon:"no-alt"}))))),!n&&wp.element.createElement("div",{className:"library-modal-actions"},wp.element.createElement(w,{className:"library-modal-category-control",value:"all"===d?"all":d,onChange:C,options:M}),wp.element.createElement(h,{type:"text",value:v||"",placeholder:s("Search"),className:"library-modal-search-control",onChange:S})))},k=wp.i18n.__,T=wp.components.Notice,E=wp.element.Fragment,x=function(e){var t=e.isError,n=e.removeError,a=e.isMissing,l=e.removeMissing,o=e.missingBlocks;return wp.element.createElement(E,null,!Boolean(themeisleGutenberg.isCompatible)&&wp.element.createElement("div",{className:"library-modal-error"},wp.element.createElement(T,{status:"warning",isDismissible:!1,className:"version-warning",actions:[{label:k("Update Now"),url:themeisleGutenberg.updatePath}]},k("You are using an older version of Otter. Use the latest version of Otter to have maximum compatibility with Template Library."))),t&&wp.element.createElement("div",{className:"library-modal-error"},wp.element.createElement(T,{status:"error",onRemove:n},k("There seems to be an error. Please try again."))),a&&wp.element.createElement("div",{className:"library-modal-error"},wp.element.createElement(T,{status:"warning",className:"library-modal-missing",onRemove:l},k("You seem to be missing some blocks that are required by your selected template."),wp.element.createElement("details",null,wp.element.createElement("summary",null,k("View Missing Blocks")),wp.element.createElement("ul",null,o.map((function(e){return wp.element.createElement("li",null,e)})))))))},C=n(23),S=n.n(C),M=wp.i18n.__,B=wp.components.Button,O=function(e){var t=e.template,n=e.togglePreview,a=e.importTemplate;return wp.element.createElement("div",{"aria-label":t.title||M("Untitled Gutenberg Template"),className:"library-modal-content__item",tabindex:"0"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(S.a,null,wp.element.createElement("img",{src:t.screenshot_url||"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/default.jpg"}))),wp.element.createElement("div",{className:"library-modal-content__footer"},wp.element.createElement("div",{className:"library-modal-content__footer_meta"},t.title&&"template"===t.type&&wp.element.createElement("h4",{className:"library-modal-content__footer_meta_title"},t.title,t.author&&M(" by ")+t.author," "),t.author&&"block"===t.type&&wp.element.createElement("h4",{className:"library-modal-content__footer_meta_author"},M("Author:")," ",t.author)),wp.element.createElement("div",{className:"library-modal-content__footer_actions"},t.demo_url&&wp.element.createElement(B,{isDefault:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return n(t)},tabindex:"0"},M("Preview")),wp.element.createElement(B,{isPrimary:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return a(t.template_url)},tabindex:"0"},M("Insert")))))},R=wp.i18n.__,L=wp.components.Spinner,N=function(e){var t=e.preview,n=e.isLoaded,a=e.data,l=e.tab,o=e.selectedTemplate,r=e.selectedCategory,i=e.search,c=e.togglePreview,d=e.importTemplate;return t?wp.element.createElement("div",{className:"library-modal-preview"},wp.element.createElement("iframe",{src:o.demo_url})):n?wp.element.createElement("div",{className:"library-modal-content"},a.map((function(e){if(e.template_url&&("all"===r||e.categories&&e.categories.includes(r))&&(!i||e.keywords&&e.keywords.some((function(e){return e.toLowerCase().includes(i.toLowerCase())})))&&l===e.type)return wp.element.createElement(O,{template:e,togglePreview:c,importTemplate:d})})),wp.element.createElement("div",{"aria-label":R("Coming Soon"),className:"library-modal-content__item"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(S.a,null,wp.element.createElement("img",{src:"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/coming-soon.jpg"}))))):wp.element.createElement("div",{className:"library-modal-loader"},wp.element.createElement(L,null))};function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function P(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function H(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){P(o,a,l,r,i,"next",e)}function i(e){P(o,a,l,r,i,"throw",e)}r(void 0)}))}}var _=wp.apiFetch,D=wp.components.Modal,j=wp.compose.compose,V=wp.data,F=V.withSelect,G=V.withDispatch,W=wp.element,q=W.useEffect,U=W.useState,Z=j(F((function(e,t){var n=t.clientId,a=e("core/block-editor").getBlock,l=e("core/blocks").getBlockTypes;return{block:a(n),availableBlocks:l()}})),G((function(e,t){var n=t.block,a=e("core/block-editor").replaceBlocks;return{importBlocks:function(e){return a(n.clientId,e)}}})))((function(e){var t=e.close,n=e.availableBlocks,a=e.importBlocks;q((function(){(function(){var e=H(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_({path:"themeisle-gutenberg-blocks/v1/fetch_templates"});case 2:t=e.sent,n=[],a=[],t.map((function(e){e.categories&&e.template_url&&("block"===e.type&&e.categories.map((function(e){n.push(e)})),"template"===e.type&&e.categories.map((function(e){a.push(e)})))})),n=n.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),a=a.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),B(n),L(a),j(t),m(!0);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[]);var l=z(U("block"),2),i=l[0],c=l[1],d=z(U(!1),2),p=d[0],m=d[1],s=z(U(!1),2),u=s[0],b=s[1],g=z(U(!1),2),f=g[0],h=g[1],y=z(U("all"),2),w=y[0],k=y[1],T=z(U(""),2),E=T[0],C=T[1],S=z(U([]),2),M=S[0],B=S[1],O=z(U([]),2),R=O[0],L=O[1],I=z(U([]),2),P=I[0],j=I[1],V=z(U(!1),2),F=V[0],G=V[1],W=z(U(null),2),Z=W[0],$=W[1],Q=z(U([]),2),K=Q[0],J=Q[1],Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;G(!F),$(e)},X=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):"object"===A(t)&&Object.keys(t).map((function(n){"clientId"===n&&(t[n]=Object(r.a)()),"innerBlocks"===n&&t[n].map((function(t){e(t)}))})),t},ee=function e(t){var a=!1,l=[];return Array.isArray(t)?t.map((function(t){return e(t)})):"object"===A(t)&&Object.keys(t).some((function(o){"name"===o&&(void 0===n.find((function(e){return e.name===t.name}))&&(l.push(t.name),a=!0));"innerBlocks"===o&&t[o].map((function(t){return e(t)}))})),l=l.concat(l).filter((function(e,t,n){return n.indexOf(e)===t})),J(l),a},te=function(){var e=H(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G(!1),m(!1),J([]),e.next=5,_({path:"themeisle-gutenberg-blocks/v1/import_template?url=".concat(t)});case 5:n=e.sent,null!==(n=X(n))?(m(!0),ee(n)?h(!0):a(n)):(m(!0),b(!0));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return wp.element.createElement(D,{className:o()("wp-block-themeisle-library-modal",{"is-preview":F}),onRequestClose:t,isDismissable:!1,shouldCloseOnClickOutside:!1},wp.element.createElement(v,{preview:F,tab:i,changeTab:function(e){c(e),k("all"),C("")},blocksCategories:M,templateCategories:R,selectedTemplate:Z,selectedCategory:w,search:E,togglePreview:Y,close:t,importTemplate:te,selectCategory:function(e){return k(e)},changeSearch:function(e){return C(e)}}),wp.element.createElement(x,{isError:u,isMissing:f,missingBlocks:K,removeError:function(){return b(!1)},removeMissing:function(){return h(!1)}}),wp.element.createElement(N,{preview:F,isLoaded:p,data:P,tab:i,selectedTemplate:Z,selectedCategory:w,search:E,togglePreview:Y,importTemplate:te}))}));function $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var K=wp.i18n.__,J=wp.components,Y=J.Button,X=J.Dashicon,ee=J.Icon,te=J.Path,ne=J.Placeholder,ae=J.Rect,le=J.SVG,oe=J.Tooltip,re=wp.element.useState;t.default=function(e){var t=e.clientId,n=e.setupColumns,l=$(re(!1),2),o=l[0],r=l[1];return wp.element.createElement(ne,{label:K("Select Layout"),instructions:K("Select a layout to start with, or make one yourself."),icon:wp.element.createElement(ee,{icon:a.g}),isColumnLayout:!0,className:"wp-block-themeisle-onboarding-component"},wp.element.createElement("div",{className:"wp-block-themeisle-layout-picker"},wp.element.createElement(oe,{text:K("Equal")},wp.element.createElement(Y,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"equal")}},wp.element.createElement(le,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(te,{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"}),wp.element.createElement(ae,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(oe,{text:K("1:2")},wp.element.createElement(Y,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"oneTwo")}},wp.element.createElement(le,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(te,{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"}),wp.element.createElement(ae,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(oe,{text:K("2:1")},wp.element.createElement(Y,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"twoOne")}},wp.element.createElement(le,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(te,{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"}),wp.element.createElement(ae,{x:"28.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(oe,{text:K("Equal")},wp.element.createElement(Y,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"equal")}},wp.element.createElement(le,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(te,{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"}),wp.element.createElement(ae,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(ae,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(oe,{text:K("1:1:2")},wp.element.createElement(Y,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"oneOneTwo")}},wp.element.createElement(le,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(te,{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"}),wp.element.createElement(ae,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(ae,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(oe,{text:K("2:1:1")},wp.element.createElement(Y,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"twoOneOne")}},wp.element.createElement(le,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(te,{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"}),wp.element.createElement(ae,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(ae,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(oe,{text:K("Equal")},wp.element.createElement(Y,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(4,"equal")}},wp.element.createElement(le,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(te,{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"}),wp.element.createElement(ae,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(ae,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(ae,{x:"22.9",y:"13",width:"2.2",height:"22"}))))),wp.element.createElement(oe,{text:K("Open Template Library")},wp.element.createElement(Y,{isPrimary:!0,isLarge:!0,className:"wp-block-themeisle-template-library",onClick:function(){return r(!0)}},wp.element.createElement(X,{icon:"category"}),K("Template Library")),o&&wp.element.createElement(Z,{clientId:t,close:function(){return r(!1)}})),wp.element.createElement("div",{className:"wp-block-themeisle-layout-skipper"},wp.element.createElement(Y,{isLink:!0,onClick:function(){return n(1,"equal")}},K("Skip"))))}},function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=n(8),r=wp.components,i=r.Placeholder,c=r.Spinner,d=(0,wp.data.withSelect)((function(e,t){var n=t.id,a=t.alt,l=t.size,o=n?e("core").getMedia(n):void 0,r=o?0<Object.keys(o.media_details.sizes).length&&o.media_details.sizes[l]?o.media_details.sizes[l].source_url:o.source_url:null;return o?{thumbnail:r,alt:o.alt_text||a}:{alt:a}}))((function(e){var t=e.alt,n=e.id,a=e.thumbnail,l=e.link,o=wp.element.createElement(i,{className:"wp-themeisle-block-spinner"},wp.element.createElement(c,null));return a&&(o=wp.element.createElement("img",{src:a,alt:t,"data-id":n})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-image"},wp.element.createElement("a",{href:l},o))})),p=wp.i18n,m=p.__,s=p.sprintf,u=function(e){var t=e.className,n=e.attributes,a=e.posts,r=e.categoriesList,i=e.authors,c=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-grid","wp-block-themeisle-blocks-posts-grid-columns-".concat(n.columns),{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return r&&(t=r.find((function(t){return t.id===e.categories[0]}))),i&&(a=i.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(d,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-body"},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&r?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(c,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},Object(o.b)(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&s(m("on %s"),Object(o.a)(e.date)),n.displayAuthor&&void 0!==a&&i&&s(m(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},Object(o.b)(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))},b=wp.i18n,g=b.__,f=b.sprintf,h=function(e){var t=e.className,n=e.attributes,a=e.posts,r=e.categoriesList,i=e.authors,c=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-list",{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return r&&(t=r.find((function(t){return t.id===e.categories[0]}))),i&&(a=i.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(d,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-posts-grid-post-body",{"is-full":!n.displayFeaturedImage})},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&r?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(c,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},Object(o.b)(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&f(g("on %s"),Object(o.a)(e.date)),n.displayAuthor&&void 0!==a&&i&&f(g(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},Object(o.b)(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))};t.default=function(e){var t=e.className,n=e.attributes,a=e.posts,l=e.categoriesList,o=e.authors;return"grid"===n.style?wp.element.createElement(u,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):"list"===n.style?wp.element.createElement(h,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):void 0}},,,function(e,t,n){"use strict";n.r(t);var a,l=n(2);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=(o(a={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"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},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:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},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"},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},reverseColumnsTablet:{type:"boolean",default:!1}},"reverseColumnsTablet",{type:"boolean",default:!1}),o(a,"columnsHTMLTag",{type:"string",default:"div"}),a),i=n(0),c=n.n(i),d=n(7),p=n.n(d);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=wp.blockEditor.InnerBlocks,g=wp.components,f=g.SVG,h=g.Path,y=function(e){var t=e.type,n=e.front,a=e.style,l=e.fill,o=e.invert,r=e.width,i=e.height;return"none"!==a&&wp.element.createElement("div",{className:c()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&r?{transform:"".concat(r?"scaleX( ".concat(r/100," )"):"")}:{}},"bigTriangle"===a&&!1===o&&wp.element.createElement(f,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===o&&wp.element.createElement(f,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===o&&wp.element.createElement(f,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===o&&wp.element.createElement(f,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(f,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===o&&wp.element.createElement(f,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===o&&wp.element.createElement(f,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(f,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{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"})))},w=[{attributes:{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"}},supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,r,i=e.attributes,d=i.id,m=i.columns,u=i.layout,g=i.layoutTablet,f=i.layoutMobile,h=i.columnsGap,w=i.columnsWidth,v=i.horizontalAlign,k=i.verticalAlign,T=i.backgroundType,E=i.backgroundColor,x=i.backgroundImageURL,C=i.backgroundAttachment,S=i.backgroundPosition,M=i.backgroundRepeat,B=i.backgroundSize,O=i.backgroundGradientFirstColor,R=i.backgroundGradientFirstLocation,L=i.backgroundGradientSecondColor,N=i.backgroundGradientSecondLocation,A=i.backgroundGradientType,z=i.backgroundGradientAngle,I=i.backgroundGradientPosition,P=i.backgroundOverlayOpacity,H=i.backgroundOverlayType,_=i.backgroundOverlayColor,D=i.backgroundOverlayImageURL,j=i.backgroundOverlayAttachment,V=i.backgroundOverlayPosition,F=i.backgroundOverlayRepeat,G=i.backgroundOverlaySize,W=i.backgroundOverlayGradientFirstColor,q=i.backgroundOverlayGradientFirstLocation,U=i.backgroundOverlayGradientSecondColor,Z=i.backgroundOverlayGradientSecondLocation,$=i.backgroundOverlayGradientType,Q=i.backgroundOverlayGradientAngle,K=i.backgroundOverlayGradientPosition,J=i.backgroundOverlayFilterBlur,Y=i.backgroundOverlayFilterBrightness,X=i.backgroundOverlayFilterContrast,ee=i.backgroundOverlayFilterGrayscale,te=i.backgroundOverlayFilterHue,ne=i.backgroundOverlayFilterSaturate,ae=i.backgroundOverlayBlend,le=i.borderType,oe=i.border,re=i.borderTop,ie=i.borderRight,ce=i.borderBottom,de=i.borderLeft,pe=i.borderColor,me=i.borderRadiusType,se=i.borderRadius,ue=i.borderRadiusTop,be=i.borderRadiusRight,ge=i.borderRadiusBottom,fe=i.borderRadiusLeft,he=i.boxShadow,ye=i.boxShadowColor,we=i.boxShadowColorOpacity,ve=i.boxShadowBlur,ke=i.boxShadowSpread,Te=i.boxShadowHorizontal,Ee=i.boxShadowVertical,xe=i.dividerTopType,Ce=i.dividerTopColor,Se=i.dividerTopInvert,Me=i.dividerBottomType,Be=i.dividerBottomColor,Oe=i.dividerBottomInvert,Re=i.hide,Le=i.hideTablet,Ne=i.hideMobile,Ae=i.columnsHTMLTag;("color"===T&&(t={background:E}),"image"===T&&(t={backgroundImage:"url( '".concat(x,"' )"),backgroundAttachment:C,backgroundPosition:S,backgroundRepeat:M,backgroundSize:B}),"gradient"===T)&&(r="linear"===A?"".concat(z,"deg"):"at ".concat(I),t={background:"".concat(A,"-gradient( ").concat(r,", ").concat(O||"rgba( 0, 0, 0, 0 )"," ").concat(R,"%, ").concat(L||"rgba( 0, 0, 0, 0 )"," ").concat(N,"% )")});"linked"===le&&(a={borderWidth:"".concat(oe,"px"),borderStyle:"solid",borderColor:pe}),"unlinked"===le&&(a={borderTopWidth:"".concat(re,"px"),borderRightWidth:"".concat(ie,"px"),borderBottomWidth:"".concat(ce,"px"),borderLeftWidth:"".concat(de,"px"),borderStyle:"solid",borderColor:pe}),"linked"===me&&(l={borderRadius:"".concat(se,"px")}),"unlinked"===me&&(l={borderTopLeftRadius:"".concat(ue,"px"),borderTopRightRadius:"".concat(be,"px"),borderBottomRightRadius:"".concat(ge,"px"),borderBottomLeftRadius:"".concat(fe,"px")}),!0===he&&(o={boxShadow:"".concat(Te,"px ").concat(Ee,"px ").concat(ve,"px ").concat(ke,"px ").concat(p()(ye||"#000000",we))});var ze,Ie=s({},t,{},a,{},l,{},o,{justifyContent:v});("color"===H&&(n={background:_,opacity:P/100}),"image"===H&&(n={backgroundImage:"url( '".concat(D,"' )"),backgroundAttachment:j,backgroundPosition:V,backgroundRepeat:F,backgroundSize:G,opacity:P/100}),"gradient"===H)&&(ze="linear"===$?"".concat(Q,"deg"):"at ".concat(K),n={background:"".concat($,"-gradient( ").concat(ze,", ").concat(W||"rgba( 0, 0, 0, 0 )"," ").concat(q,"%, ").concat(U||"rgba( 0, 0, 0, 0 )"," ").concat(Z,"% )"),opacity:P/100});var Pe=s({},n,{mixBlendMode:ae,filter:"blur( ".concat(J/10,"px ) brightness( ").concat(Y/10," ) contrast( ").concat(X/10," ) grayscale( ").concat(ee/100," ) hue-rotate( ").concat(te,"deg ) saturate( ").concat(ne/10," )")}),He={};w&&(He={maxWidth:w+"px"});var _e=Re?"":"has-desktop-".concat(u,"-layout"),De=Le?"":"has-tablet-".concat(g,"-layout"),je=Ne?"":"has-mobile-".concat(f,"-layout"),Ve=c()(e.className,"has-".concat(m,"-columns"),_e,De,je,{"hide-in-desktop":Re},{"hide-in-tablet":Le},{"hide-in-mobile":Ne},"has-".concat(h,"-gap"),"has-vertical-".concat(k));return wp.element.createElement(Ae,{className:Ve,id:d,style:Ie},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:Pe}),wp.element.createElement(y,{type:"top",front:!0,style:xe,fill:Ce,invert:Se}),wp.element.createElement("div",{className:"innerblocks-wrap",style:He},wp.element.createElement(b.Content,null)),wp.element.createElement(y,{type:"bottom",front:!0,style:Me,fill:Be,invert:Oe}))}},{attributes:{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"},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"},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"}},supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,r,i=e.attributes,d=e.className,m=i.columnsHTMLTag;("color"===i.backgroundType&&(t={background:i.backgroundColor}),"image"===i.backgroundType&&(t={backgroundImage:"url( '".concat(i.backgroundImageURL,"' )"),backgroundAttachment:i.backgroundAttachment,backgroundPosition:i.backgroundPosition,backgroundRepeat:i.backgroundRepeat,backgroundSize:i.backgroundSize}),"gradient"===i.backgroundType)&&(r="linear"===i.backgroundGradientType?"".concat(i.backgroundGradientAngle,"deg"):"at ".concat(i.backgroundGradientPosition),t={background:"".concat(i.backgroundGradientType,"-gradient( ").concat(r,", ").concat(i.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientFirstLocation,"%, ").concat(i.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientSecondLocation,"% )")});"linked"===i.borderType&&(a={borderWidth:"".concat(i.border,"px"),borderStyle:"solid",borderColor:i.borderColor}),"unlinked"===i.borderType&&(a={borderTopWidth:"".concat(i.borderTop,"px"),borderRightWidth:"".concat(i.borderRight,"px"),borderBottomWidth:"".concat(i.borderBottom,"px"),borderLeftWidth:"".concat(i.borderLeft,"px"),borderStyle:"solid",borderColor:i.borderColor}),"linked"===i.borderRadiusType&&(l={borderRadius:"".concat(i.borderRadius,"px")}),"unlinked"===i.borderRadiusType&&(l={borderTopLeftRadius:"".concat(i.borderRadiusTop,"px"),borderTopRightRadius:"".concat(i.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(i.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(i.borderRadiusLeft,"px")}),!0===i.boxShadow&&(o={boxShadow:"".concat(i.boxShadowHorizontal,"px ").concat(i.boxShadowVertical,"px ").concat(i.boxShadowBlur,"px ").concat(i.boxShadowSpread,"px ").concat(p()(i.boxShadowColor?i.boxShadowColor:"#000000",i.boxShadowColorOpacity))});var u,g=s({},t,{},a,{},l,{},o,{justifyContent:i.horizontalAlign});("color"===i.backgroundOverlayType&&(n={background:i.backgroundOverlayColor,opacity:i.backgroundOverlayOpacity/100}),"image"===i.backgroundOverlayType&&(n={backgroundImage:"url( '".concat(i.backgroundOverlayImageURL,"' )"),backgroundAttachment:i.backgroundOverlayAttachment,backgroundPosition:i.backgroundOverlayPosition,backgroundRepeat:i.backgroundOverlayRepeat,backgroundSize:i.backgroundOverlaySize,opacity:i.backgroundOverlayOpacity/100}),"gradient"===i.backgroundOverlayType)&&(u="linear"===i.backgroundOverlayGradientType?"".concat(i.backgroundOverlayGradientAngle,"deg"):"at ".concat(i.backgroundOverlayGradientPosition),n={background:"".concat(i.backgroundOverlayGradientType,"-gradient( ").concat(u,", ").concat(i.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundOverlayGradientFirstLocation,"%, ").concat(i.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundOverlayGradientSecondLocation,"% )"),opacity:i.backgroundOverlayOpacity/100});var f=s({},n,{mixBlendMode:i.backgroundOverlayBlend}),h={};i.columnsWidth&&(h={maxWidth:i.columnsWidth+"px"});var w=i.hide?"":"has-desktop-".concat(i.layout,"-layout"),v=i.hideTablet?"":"has-tablet-".concat(i.layoutTablet,"-layout"),k=i.hideMobile?"":"has-mobile-".concat(i.layoutMobile,"-layout"),T=c()(d,"has-".concat(i.columns,"-columns"),w,v,k,{"hide-in-desktop":i.hide},{"hide-in-tablet":i.hideTablet},{"hide-in-mobile":i.hideMobile},"has-".concat(i.columnsGap,"-gap"),"has-vertical-".concat(i.verticalAlign));return wp.element.createElement(m,{className:T,id:i.id,style:g},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:f}),wp.element.createElement(y,{type:"top",front:!0,style:i.dividerTopType,fill:i.dividerTopColor,invert:i.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap",style:h},wp.element.createElement(b.Content,null)),wp.element.createElement(y,{type:"bottom",front:!0,style:i.dividerBottomType,fill:i.dividerBottomColor,invert:i.dividerBottomInvert}))}}],v=n(6),k=n(17),T=wp.blockEditor,E=T.BlockControls,x=T.BlockVerticalAlignmentToolbar,C=function(e){var t=e.attributes,n=e.setAttributes,a=function(){return"flex-start"===t.verticalAlign?"top":"flex-end"===t.verticalAlign?"bottom":t.verticalAlign};return a=a(),wp.element.createElement(E,null,x&&wp.element.createElement(x,{onChange:function(e){if(t.verticalAlign===e)return n({verticalAlign:"unset"});"top"===e?e="flex-start":"bottom"===e&&(e="flex-end"),n({verticalAlign:e})},value:a}))},S=n(3),M=n(25),B=n(5),O=n(4),R=n(15),L=n(18),N=n(9),A=n(20);function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var H=wp.i18n.__,_=wp.blockEditor,D=_.BlockVerticalAlignmentToolbar,j=_.ColorPalette,V=_.InspectorControls,F=_.MediaPlaceholder,G=wp.components,W=G.BaseControl,q=G.Button,U=G.ButtonGroup,Z=G.Dashicon,$=G.Icon,Q=G.IconButton,K=G.PanelBody,J=G.Tooltip,Y=G.ToggleControl,X=G.RangeControl,ee=G.SelectControl,te=wp.compose.compose,ne=wp.data.withSelect,ae=wp.element,le=ae.Fragment,oe=ae.useState,re=te(ne((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.attributes,n=e.setAttributes,a=e.updateColumnsWidth,o=e.dividerViewType,r=e.setDividerViewType,i=e.view,d=I(oe("layout"),2),p=d[0],m=d[1],s=function(){var e;return"Desktop"===i&&(e=t.paddingType),"Tablet"===i&&(e=t.paddingTypeTablet),"Mobile"===i&&(e=t.paddingTypeMobile),e};s=s();var u={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},b={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},g={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},f=function(e){var n;return"top"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},h=function(){var e;return"Desktop"===i&&(e=t.marginType),"Tablet"===i&&(e=t.marginTypeTablet),"Mobile"===i&&(e=t.marginTypeMobile),e};h=h();var y={top:"marginTop",bottom:"marginBottom"},w={top:"marginTopTablet",bottom:"marginBottomTablet"},v={top:"marginTopMobile",bottom:"marginBottomMobile"},k=function(e){var n;return"top"==e&&("Desktop"===i&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===i&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===i&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("Desktop"===i&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===i&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===i&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n},T=function(e){if(t.horizontalAlign===e)return n({horizontalAlign:"unset"});n({horizontalAlign:e})},E=function(){var e;return"Desktop"===i&&(e=t.columnsHeightCustom),"Tablet"===i&&(e=t.columnsHeightCustomTablet),"Mobile"===i&&(e=t.columnsHeightCustomMobile),e};E=E();var x=function(e){if(t.verticalAlign===e)return n({verticalAlign:"unset"});n({verticalAlign:e})},C=function(){n({backgroundImageID:"",backgroundImageURL:""})},P=function(){n({backgroundOverlayImageID:"",backgroundOverlayImageURL:""})},_={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},G=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},te={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},ne=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n},ae=function(){var e;return"top"==o&&(e=t.dividerTopType),"bottom"==o&&(e=t.dividerBottomType),e};ae=ae();var re=function(){var e;return"top"==o&&(e=t.dividerTopColor),"bottom"==o&&(e=t.dividerBottomColor),e};re=re();var ie=function(){var e;return"top"==o&&("Desktop"==i&&(e=t.dividerTopWidth),"Tablet"==i&&(e=t.dividerTopWidthTablet),"Mobile"==i&&(e=t.dividerTopWidthMobile)),"bottom"==o&&("Desktop"==i&&(e=t.dividerBottomWidth),"Tablet"==i&&(e=t.dividerBottomWidthTablet),"Mobile"==i&&(e=t.dividerBottomWidthMobile)),e};ie=ie();var ce=function(){var e;return"top"==o&&("Desktop"==i&&(e=t.dividerTopHeight),"Tablet"==i&&(e=t.dividerTopHeightTablet),"Mobile"==i&&(e=t.dividerTopHeightMobile)),"bottom"==o&&("Desktop"==i&&(e=t.dividerBottomHeight),"Tablet"==i&&(e=t.dividerBottomHeightTablet),"Mobile"==i&&(e=t.dividerBottomHeightMobile)),e};ce=ce();var de=function(){var e;return"top"==o&&(e=t.dividerTopInvert),"bottom"==o&&(e=t.dividerBottomInvert),e};de=de();var pe=function(e,t){"Desktop"===t&&n({hide:e}),"Tablet"===t&&n({hideTablet:e}),"Mobile"===t&&n({hideMobile:e})},me=function(e,t){"Tablet"===t&&n({reverseColumnsTablet:e}),"Mobile"===t&&n({reverseColumnsMobile:e})};return wp.element.createElement(le,null,wp.element.createElement(V,null,wp.element.createElement(K,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(q,{className:c()("header-tab",{"is-selected":"layout"===p}),onClick:function(){return m("layout")}},wp.element.createElement("span",null,wp.element.createElement(Z,{icon:"editor-table"}),H("Layout"))),wp.element.createElement(q,{className:c()("header-tab",{"is-selected":"style"===p}),onClick:function(){return m("style")}},wp.element.createElement("span",null,wp.element.createElement(Z,{icon:"admin-customizer"}),H("Style"))),wp.element.createElement(q,{className:c()("header-tab",{"is-selected":"advanced"===p}),onClick:function(){return m("advanced")}},wp.element.createElement("span",null,wp.element.createElement(Z,{icon:"admin-generic"}),H("Advanced")))),"layout"===p&&wp.element.createElement(le,null,wp.element.createElement(K,{title:H("Columns & Layout")},wp.element.createElement(X,{label:H("Columns"),value:t.columns,onChange:function(e){6>=e&&(n({columns:e,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(e,"equal")),6<e&&(n({columns:6,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(6,"equal")),1>=e&&(n({columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),a(1,"equal"))},min:1,max:6}),wp.element.createElement(M.default,{label:H("Layout"),columns:t.columns,layout:t.layout,layoutTablet:t.layoutTablet,layoutMobile:t.layoutMobile,onClick:function(e){"Desktop"===i&&(n({layout:e}),a(t.columns,e)),"Tablet"===i&&n({layoutTablet:e}),"Mobile"===i&&n({layoutMobile:e})}}),wp.element.createElement(ee,{label:H("Columns Gap"),value:t.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){n({columnsGap:e})}})),wp.element.createElement(K,{title:H("Spacing"),initialOpen:!1},wp.element.createElement(O.a,{label:"Padding"},wp.element.createElement(B.a,{type:s,min:0,max:500,changeType:function(e){"Desktop"===i&&n({paddingType:e}),"Tablet"===i&&n({paddingTypeTablet:e}),"Mobile"===i&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===i&&("linked"===t.paddingType?n({padding:a}):n(z({},u[e],a))),"Tablet"===i&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(z({},b[e],a))),"Mobile"===i&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(z({},g[e],a)))},options:[{label:H("Top"),type:"top",value:f("top")},{label:H("Right"),type:"right",value:f("right")},{label:H("Bottom"),type:"bottom",value:f("bottom")},{label:H("Left"),type:"left",value:f("left")}]})),wp.element.createElement(O.a,{label:"Margin"},wp.element.createElement(B.a,{type:h,min:-500,max:500,changeType:function(e){"Desktop"===i&&n({marginType:e}),"Tablet"===i&&n({marginTypeTablet:e}),"Mobile"===i&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===i&&("linked"===t.marginType?n({margin:a}):n(z({},y[e],a))),"Tablet"===i&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(z({},w[e],a))),"Mobile"===i&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(z({},v[e],a)))},options:[{label:H("Top"),type:"top",value:k("top")},{label:H("Right"),disabled:!0},{label:H("Bottom"),type:"bottom",value:k("bottom")},{label:H("Left"),disabled:!0}]}))),wp.element.createElement(K,{title:H("Section Structure"),initialOpen:!1},wp.element.createElement(X,{label:H("Maximum Content Width"),value:t.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&n({columnsWidth:e})},min:0,max:1200}),t.columnsWidth&&wp.element.createElement(W,{label:"Horizontal Align"},wp.element.createElement(U,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(J,{text:H("Left")},wp.element.createElement(Q,{icon:"editor-alignleft",className:"is-button is-large",isPrimary:"flex-start"===t.horizontalAlign,onClick:function(){return T("flex-start")}})),wp.element.createElement(J,{text:H("Center")},wp.element.createElement(Q,{icon:"editor-aligncenter",className:"is-button is-large",isPrimary:"center"===t.horizontalAlign,onClick:function(){return T("center")}})),wp.element.createElement(J,{text:H("Right")},wp.element.createElement(Q,{icon:"editor-alignright",className:"is-button is-large",isPrimary:"flex-end"===t.horizontalAlign,onClick:function(){return T("flex-end")}})))),wp.element.createElement(ee,{label:H("Minimum Height"),value:t.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){n({columnsHeight:e})}}),"custom"===t.columnsHeight&&wp.element.createElement(O.a,{label:"Custom Height"},wp.element.createElement(X,{value:E||"",onChange:function(e){"Desktop"===i&&n({columnsHeightCustom:e}),"Tablet"===i&&n({columnsHeightCustomTablet:e}),"Mobile"===i&&n({columnsHeightCustomMobile:e})},min:0,max:1e3})),!D&&wp.element.createElement(W,{label:"Vertical Align"},wp.element.createElement(U,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(J,{text:H("Top")},wp.element.createElement(q,{className:"components-icon-button is-button is-large",isPrimary:"flex-start"===t.verticalAlign,onClick:function(){return x("flex-start")}},wp.element.createElement($,{icon:l.t,size:20}))),wp.element.createElement(J,{text:H("Middle")},wp.element.createElement(q,{className:"components-icon-button is-button is-large",isPrimary:"center"===t.verticalAlign,onClick:function(){return x("center")}},wp.element.createElement($,{icon:l.k,size:20}))),wp.element.createElement(J,{text:H("Bottom")},wp.element.createElement(q,{className:"components-icon-button is-button is-large",isPrimary:"flex-end"===t.verticalAlign,onClick:function(){return x("flex-end")}},wp.element.createElement($,{icon:l.c,size:20})))))))||"style"===p&&wp.element.createElement(le,null,wp.element.createElement(K,{title:H("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(R.default,{label:H("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(S.a,{label:H("Background Color"),colorValue:t.backgroundColor},wp.element.createElement(j,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(le,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:C},wp.element.createElement(Z,{icon:"trash"}),wp.element.createElement("span",null,H("Remove Image"))))),wp.element.createElement(q,{isDefault:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:C},H("Change or Remove Image")),wp.element.createElement(N.a,{label:"Background Settings"},wp.element.createElement(ee,{label:H("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement(ee,{label:H("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement(ee,{label:H("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement(ee,{label:H("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(F,{icon:"format-image",labels:{title:H("Background Image"),name:H("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(L.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})}})),wp.element.createElement(K,{title:H("Background Overlay"),className:"wp-block-themeisle-image-container",initialOpen:!1},wp.element.createElement(R.default,{label:H("Overlay Type"),backgroundType:t.backgroundOverlayType,changeBackgroundType:function(e){n({backgroundOverlayType:e})}}),wp.element.createElement(X,{label:H("Overlay Opacity"),value:t.backgroundOverlayOpacity,onChange:function(e){n({backgroundOverlayOpacity:e})},min:0,max:100}),"color"===t.backgroundOverlayType&&wp.element.createElement(S.a,{label:H("Overlay Color"),colorValue:t.backgroundOverlayColor},wp.element.createElement(j,{label:"Overlay Color",value:t.backgroundOverlayColor,onChange:function(e){n({backgroundOverlayColor:e})}}))||"image"===t.backgroundOverlayType&&(t.backgroundOverlayImageURL?wp.element.createElement(le,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundOverlayImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:P},wp.element.createElement(Z,{icon:"trash"}),wp.element.createElement("span",null,H("Remove Image"))))),wp.element.createElement(q,{isDefault:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:P},H("Change or Remove Image")),wp.element.createElement(N.a,{label:"Background Settings"},wp.element.createElement(ee,{label:H("Background Attachment"),value:t.backgroundOverlayAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundOverlayAttachment:e})}}),wp.element.createElement(ee,{label:H("Background Position"),value:t.backgroundOverlayPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundOverlayPosition:e})}}),wp.element.createElement(ee,{label:H("Background Repeat"),value:t.backgroundOverlayRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundOverlayRepeat:e})}}),wp.element.createElement(ee,{label:H("Background Size"),value:t.backgroundOverlaySize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundOverlaySize:e})}}))):wp.element.createElement(F,{icon:"format-image",labels:{title:H("Background Image"),name:H("an image")},value:t.backgroundOverlayImageID,onSelect:function(e){n({backgroundOverlayImageID:e.id,backgroundOverlayImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundOverlayType&&wp.element.createElement(L.a,{label:"Background Gradient",value:{firstColor:t.backgroundOverlayGradientFirstColor,firstLocation:t.backgroundOverlayGradientFirstLocation,secondColor:t.backgroundOverlayGradientSecondColor,secondLocation:t.backgroundOverlayGradientSecondLocation,type:t.backgroundOverlayGradientType,angle:t.backgroundOverlayGradientAngle,position:t.backgroundOverlayGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundOverlayGradientFirstColor:e,backgroundOverlayGradientFirstLocation:t,backgroundOverlayGradientSecondColor:a,backgroundOverlayGradientSecondLocation:l,backgroundOverlayGradientType:o,backgroundOverlayGradientAngle:r,backgroundOverlayGradientPosition:i})}}),wp.element.createElement(N.a,{label:"CSS Filters"},wp.element.createElement(X,{label:H("Blur"),value:t.backgroundOverlayFilterBlur,onChange:function(e){n({backgroundOverlayFilterBlur:e})},min:0,max:100}),wp.element.createElement(X,{label:H("Brightness"),value:t.backgroundOverlayFilterBrightness,onChange:function(e){n({backgroundOverlayFilterBrightness:e})},min:0,max:100}),wp.element.createElement(X,{label:H("Contrast"),value:t.backgroundOverlayFilterContrast,onChange:function(e){n({backgroundOverlayFilterContrast:e})},min:0,max:100}),wp.element.createElement(X,{label:H("Grayscale"),value:t.backgroundOverlayFilterGrayscale,onChange:function(e){n({backgroundOverlayFilterGrayscale:e})},min:0,max:100}),wp.element.createElement(X,{label:H("Hue"),value:t.backgroundOverlayFilterHue,onChange:function(e){n({backgroundOverlayFilterHue:e})},min:0,max:360}),wp.element.createElement(X,{label:H("Saturation"),value:t.backgroundOverlayFilterSaturate,onChange:function(e){n({backgroundOverlayFilterSaturate:e})},min:0,max:100})),wp.element.createElement(ee,{label:H("Blend Mode"),value:t.backgroundOverlayBlend,options:[{label:"Normal",value:"normal"},{label:"Multiply",value:"multiply"},{label:"Screen",value:"screen"},{label:"Overlay",value:"overlay"},{label:"Darken",value:"darken"},{label:"Lighten",value:"lighten"},{label:"Color Dodge",value:"color-dodge"},{label:"Color Burn",value:"color-burn"},{label:"Hard Light",value:"hard-light"},{label:"Soft Light",value:"soft-light"},{label:"Difference",value:"difference"},{label:"Exclusion",value:"exclusion"},{label:"Hue",value:"hue"},{label:"Saturation",value:"saturation"},{label:"Color",value:"color"},{label:"Luminosity",value:"luminosity"}],onChange:function(e){n({backgroundOverlayBlend:e})}})),wp.element.createElement(K,{title:H("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(B.a,{label:H("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(z({},_[e],a))},options:[{label:H("Top"),type:"top",value:G("top")},{label:H("Right"),type:"right",value:G("right")},{label:H("Bottom"),type:"bottom",value:G("bottom")},{label:H("Left"),type:"left",value:G("left")}]}),wp.element.createElement(S.a,{label:H("Border Color"),colorValue:t.borderColor},wp.element.createElement(j,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(B.a,{label:H("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(z({},te[e],a))},options:[{label:H("Top"),type:"top",value:ne("top")},{label:H("Right"),type:"right",value:ne("right")},{label:H("Bottom"),type:"bottom",value:ne("bottom")},{label:H("Left"),type:"left",value:ne("left")}]}),wp.element.createElement(Y,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(le,null,wp.element.createElement(S.a,{label:H("Shadow Color"),colorValue:t.boxShadowColor},wp.element.createElement(j,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(N.a,{label:"Border Shadow"},wp.element.createElement(X,{label:H("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(X,{label:H("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(X,{label:H("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(X,{label:H("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(X,{label:H("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))),wp.element.createElement(K,{title:H("Shape Divider"),initialOpen:!1,className:"wp-block-themeisle-shape-divider"},wp.element.createElement(U,null,wp.element.createElement(q,{className:"is-button",isPrimary:"top"===o,onClick:function(){return r("top")}},H("Top")),wp.element.createElement(q,{className:"is-button",isPrimary:"bottom"===o,onClick:function(){return r("bottom")}},H("Bottom"))),wp.element.createElement(ee,{label:H("Type"),value:ae,options:[{label:"None",value:"none"},{label:"Triangle",value:"bigTriangle"},{label:"Right Curve",value:"rightCurve"},{label:"Curve",value:"curve"},{label:"Slant",value:"slant"},{label:"Cloud",value:"cloud"}],onChange:function(e){"top"==o&&n({dividerTopType:e}),"bottom"==o&&n({dividerBottomType:e})}}),"none"!==ae&&wp.element.createElement(le,null,wp.element.createElement(S.a,{label:H("Color"),colorValue:re},wp.element.createElement(j,{label:H("Color"),value:re,onChange:function(e){"top"==o&&n({dividerTopColor:e}),"bottom"==o&&n({dividerBottomColor:e})}})),wp.element.createElement(O.a,{label:"Width"},wp.element.createElement(X,{value:ie,onChange:function(e){"top"==o&&("Desktop"==i&&n({dividerTopWidth:e}),"Tablet"==i&&n({dividerTopWidthTablet:e}),"Mobile"==i&&n({dividerTopWidthMobile:e})),"bottom"==o&&("Desktop"==i&&n({dividerBottomWidth:e}),"Tablet"==i&&n({dividerBottomWidthTablet:e}),"Mobile"==i&&n({dividerBottomWidthMobile:e}))},min:0,max:500})),wp.element.createElement(O.a,{label:"Height"},wp.element.createElement(X,{value:ce,onChange:function(e){"top"==o&&("Desktop"==i&&n({dividerTopHeight:e}),"Tablet"==i&&n({dividerTopHeightTablet:e}),"Mobile"==i&&n({dividerTopHeightMobile:e})),"bottom"==o&&("Desktop"==i&&n({dividerBottomHeight:e}),"Tablet"==i&&n({dividerBottomHeightTablet:e}),"Mobile"==i&&n({dividerBottomHeightMobile:e}))},min:0,max:500})),"curve"!==ae&&"cloud"!==ae&&wp.element.createElement(Y,{label:"Invert Shape Divider",checked:de,onChange:function(){"top"==o&&n({dividerTopInvert:!t.dividerTopInvert}),"bottom"==o&&n({dividerBottomInvert:!t.dividerBottomInvert})}}))))||"advanced"===p&&wp.element.createElement(le,null,wp.element.createElement(K,{title:H("Responsive")},wp.element.createElement(Y,{label:"Hide this section in Desktop devices?",checked:t.hide,onChange:function(e){return pe(e,"Desktop")}}),wp.element.createElement(Y,{label:"Hide this section in Tablet devices?",checked:t.hideTablet,onChange:function(e){return pe(e,"Tablet")}}),wp.element.createElement(Y,{label:"Hide this section in Mobile devices?",checked:t.hideMobile,onChange:function(e){return pe(e,"Mobile")}}),wp.element.createElement("hr",null),!t.hideTablet&&"collapsedRows"===t.layoutTablet&&wp.element.createElement(Y,{label:"Reverse Columns in Tablet devices?",checked:t.reverseColumnsTablet,onChange:function(e){return me(e,"Tablet")}}),!t.hideMobile&&"collapsedRows"===t.layoutMobile&&wp.element.createElement(Y,{label:"Reverse Columns in Mobile devices?",checked:t.reverseColumnsMobile,onChange:function(e){return me(e,"Mobile")}})),wp.element.createElement(K,{title:H("Section Settings"),initialOpen:!1},wp.element.createElement(ee,{label:H("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))),wp.element.createElement(A.a,{value:t.id,onChange:function(e){n({id:e})}}))}));function ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ce(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var de=wp.i18n.__,pe=wp.blockEditor,me=pe.__experimentalBlockNavigationList,se=pe.BlockControls,ue=wp.components,be=ue.IconButton,ge=ue.Modal,fe=ue.Toolbar,he=wp.compose.compose,ye=wp.data,we=ye.withSelect,ve=ye.withDispatch,ke=wp.element,Te=ke.Fragment,Ee=ke.useState,xe=he(we((function(e,t){var n=t.clientId,a=e("core/block-editor"),l=a.getSelectedBlockClientId;return{block:(0,a.getBlock)(n),selectedBlockClientId:l()}})),ve((function(e){return{selectBlock:e("core/block-editor").selectBlock}})))((function(e){var t=e.block,n=e.selectedBlockClientId,a=e.selectBlock,o=ie(Ee(!1),2),r=o[0],i=o[1];return wp.element.createElement(Te,null,wp.element.createElement(se,null,wp.element.createElement(fe,{className:"wp-themesiel-blocks-block-navigator-components-toolbar"},wp.element.createElement(be,{className:"components-toolbar__control",label:de("Open block navigator"),onClick:function(){return i(!0)},icon:l.l}))),r&&wp.element.createElement(ge,{title:de("Block Navigator"),closeLabel:de("Close"),onRequestClose:function(){return i(!1)}},wp.element.createElement(me,{blocks:[t],selectedBlockClientId:n,selectBlock:a,showNestedBlocks:!0})))})),Ce=n(14),Se=n(26);function Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||Oe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(e){return function(e){if(Array.isArray(e))return Re(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Oe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){if(e){if("string"==typeof e)return Re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Re(e,t):void 0}}function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){Ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze=lodash,Ie=ze.isEqual,Pe=ze.times,He=wp.compose.compose,_e=wp.data,De=_e.withDispatch,je=_e.withSelect,Ve=wp.blockEditor,Fe=Ve.__experimentalBlockNavigationList,Ge=Ve.InnerBlocks,We=wp.element,qe=We.Fragment,Ue=We.useEffect,Ze=We.useState,$e=wp.viewport.withViewportMatch,Qe=[],Ke=He(De((function(e){return{updateBlockAttributes:e("core/block-editor").updateBlockAttributes}})),je((function(e,t){var n=t.clientId,a=e("core/block-editor").getBlock,l=e("core/edit-post").__experimentalGetPreviewDeviceType;return{sectionBlock:a(n),isViewportAvailable:!!l,isPreviewDesktop:!!l&&"Desktop"===l(),isPreviewTablet:!!l&&"Tablet"===l(),isPreviewMobile:!!l&&"Mobile"===l()}})),$e({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.name,i=e.updateBlockAttributes,d=e.sectionBlock,m=e.isLarger,s=e.isLarge,u=e.isSmall,b=e.isSmaller,g=e.isViewportAvailable,f=e.isPreviewDesktop,h=e.isPreviewTablet,y=e.isPreviewMobile;Ue((function(){w()}),[]);var w=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,i="wp-block-themeisle-blocks-advanced-columns-".concat(l.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(Ie(v.a[o],window.themeisleGutenberg.globalDefaults[o])||(a=Ne({},window.themeisleGutenberg.globalDefaults[o]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==r[e].default&&t[e]!==r[e].default)return delete a[e]})))),n(Ne({},a,{id:i})),Qe.push(i),e.push(i)}else if(Qe.includes(t.id)){var c="wp-block-themeisle-blocks-advanced-columns-".concat(l.substr(0,8));n({id:c}),Qe.push(c)}else Qe.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=Be(e)},T=Me(Ze("top"),2),E=T[0],x=T[1],S=m&&!s&&u&&!b,M=!m&&!s&&u&&!b,B=!(m||s||u||b);g&&!B&&(S=f,M=h,B=y);var O,R,L,N,A,z,I,P=t.columnsHTMLTag;(S&&(O={paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustom,"px"):t.columnsHeight}),M&&(O={paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomTablet,"px"):t.columnsHeight}),B&&(O={paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomMobile,"px"):t.columnsHeight}),"color"===t.backgroundType&&(R={background:t.backgroundColor}),"image"===t.backgroundType&&(R={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(I="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(R={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(I,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(N={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(N={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(A={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(A={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(z={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(p()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var H,_=Ne({},O,{},R,{},N,{},A,{},z,{alignItems:t.horizontalAlign});("color"===t.backgroundOverlayType&&(L={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(L={backgroundImage:"url( '".concat(t.backgroundOverlayImageURL,"' )"),backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType)&&(H="linear"===t.backgroundOverlayGradientType?"".concat(t.backgroundOverlayGradientAngle,"deg"):"at ".concat(t.backgroundOverlayGradientPosition),L={background:"".concat(t.backgroundOverlayGradientType,"-gradient( ").concat(H,", ").concat(t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientFirstLocation,"%, ").concat(t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientSecondLocation,"% )"),opacity:t.backgroundOverlayOpacity/100});var D=Ne({},L,{mixBlendMode:t.backgroundOverlayBlend,filter:"blur( ".concat(t.backgroundOverlayFilterBlur/10,"px ) brightness( ").concat(t.backgroundOverlayFilterBrightness/10," ) contrast( ").concat(t.backgroundOverlayFilterContrast/10," ) grayscale( ").concat(t.backgroundOverlayFilterGrayscale/100," ) hue-rotate( ").concat(t.backgroundOverlayFilterHue,"deg ) saturate( ").concat(t.backgroundOverlayFilterSaturate/10," )")}),j={};t.columnsWidth&&(j={maxWidth:t.columnsWidth+"px"});var V=c()(a,"has-".concat(t.columns,"-columns"),"has-desktop-".concat(t.layout,"-layout"),"has-tablet-".concat(t.layoutTablet,"-layout"),"has-mobile-".concat(t.layoutMobile,"-layout"),"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign),{"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":S},{"has-viewport-tablet":M},{"has-viewport-mobile":B}),F=function(){var e;return S&&(e=t.dividerTopWidth),M&&(e=t.dividerTopWidthTablet),B&&(e=t.dividerTopWidthMobile),e};F=F();var G=function(){var e;return S&&(e=t.dividerBottomWidth),M&&(e=t.dividerBottomWidthTablet),B&&(e=t.dividerBottomWidthMobile),e};G=G();var W=function(){var e;return S&&(e=t.dividerTopHeight),M&&(e=t.dividerTopHeightTablet),B&&(e=t.dividerTopHeightMobile),e};W=W();var q=function(){var e;return S&&(e=t.dividerBottomHeight),M&&(e=t.dividerBottomHeightTablet),B&&(e=t.dividerBottomHeightMobile),e};q=q();var U;return t.columns?wp.element.createElement(qe,null,Fe&&wp.element.createElement(xe,{clientId:l}),wp.element.createElement(C,{attributes:t,setAttributes:n}),wp.element.createElement(re,{attributes:t,setAttributes:n,updateColumnsWidth:function(e,t){d.innerBlocks.map((function(n,a){i(n.clientId,{columnWidth:k.a[e][t][a]})}))},dividerViewType:E,setDividerViewType:x}),wp.element.createElement(P,{className:V,id:t.id,style:_},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:D}),wp.element.createElement(Ce.default,{type:"top",style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert,width:F,height:W}),wp.element.createElement("div",{className:"innerblocks-wrap",style:j},wp.element.createElement(Ge,{allowedBlocks:["themeisle-blocks/advanced-columns"],template:(U=t.columns,Pe(U,(function(e){return["themeisle-blocks/advanced-column",{columnWidth:k.a[U][t.layout][e]}]}))),templateLock:"all"})),wp.element.createElement(Ce.default,{type:"bottom",style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert,width:G,height:q}))):wp.element.createElement(Se.default,{clientId:l,setupColumns:function(e,t){n(1>=e?{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"equal"}:{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"collapsedRows"})}})})),Je=wp.blockEditor.InnerBlocks,Ye=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag,l=t.hide?"":"has-desktop-".concat(t.layout,"-layout"),o=t.hideTablet?"":"has-tablet-".concat(t.layoutTablet,"-layout"),r=t.hideMobile?"":"has-mobile-".concat(t.layoutMobile,"-layout"),i=c()(n,"has-".concat(t.columns,"-columns"),l,o,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-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign));return wp.element.createElement(a,{className:i,id:t.id},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),wp.element.createElement(Ce.default,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap"},wp.element.createElement(Je.Content,null)),wp.element.createElement(Ce.default,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))},Xe=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-columns",{title:Xe("Section"),description:Xe("Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like."),icon:l.g,category:"themeisle-blocks",keywords:["advanced columns","layout","grid"],attributes:r,supports:{align:["wide","full"],html:!1},deprecated:w,edit:Ke,save:Ye})},function(e,t,n){"use strict";n.r(t);var a=n(2),l={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"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},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:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRight:{type:"number",default:0},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"},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"}},o=n(7),r=n.n(o);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=wp.blockEditor.InnerBlocks,p=[{attributes:{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"}},supports:{inserter:!1,reusable:!1,html:!1},save:function(e){var t,n,a,l,o,p=e.attributes,m=e.className,s=p.columnsHTMLTag;("color"===p.backgroundType&&(t={background:p.backgroundColor}),"image"===p.backgroundType&&(t={backgroundImage:"url( '".concat(p.backgroundImageURL,"' )"),backgroundAttachment:p.backgroundAttachment,backgroundPosition:p.backgroundPosition,backgroundRepeat:p.backgroundRepeat,backgroundSize:p.backgroundSize}),"gradient"===p.backgroundType)&&(o="linear"===p.backgroundGradientType?"".concat(p.backgroundGradientAngle,"deg"):"at ".concat(p.backgroundGradientPosition),t={background:"".concat(p.backgroundGradientType,"-gradient( ").concat(o,", ").concat(p.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientFirstLocation,"%, ").concat(p.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientSecondLocation,"% )")});"linked"===p.borderType&&(n={borderWidth:"".concat(p.border,"px"),borderStyle:"solid",borderColor:p.borderColor}),"unlinked"===p.borderType&&(n={borderTopWidth:"".concat(p.borderTop,"px"),borderRightWidth:"".concat(p.borderRight,"px"),borderBottomWidth:"".concat(p.borderBottom,"px"),borderLeftWidth:"".concat(p.borderLeft,"px"),borderStyle:"solid",borderColor:p.borderColor}),"linked"===p.borderRadiusType&&(a={borderRadius:"".concat(p.borderRadius,"px")}),"unlinked"===p.borderRadiusType&&(a={borderTopLeftRadius:"".concat(p.borderRadiusTop,"px"),borderTopRightRadius:"".concat(p.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(p.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(p.borderRadiusLeft,"px")}),!0===p.boxShadow&&(l={boxShadow:"".concat(p.boxShadowHorizontal,"px ").concat(p.boxShadowVertical,"px ").concat(p.boxShadowBlur,"px ").concat(p.boxShadowSpread,"px ").concat(r()(p.boxShadowColor?p.boxShadowColor:"#000000",p.boxShadowColorOpacity))});var u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{},n,{},a,{},l);return wp.element.createElement(s,{className:m,id:p.id,style:u},wp.element.createElement(d.Content,null))}}],m=n(6),s=n(17),u=n(0),b=n.n(u),g=n(3),f=n(5),h=n(4),y=n(15),w=n(18),v=n(9);function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var x=wp.i18n.__,C=wp.blockEditor,S=C.ColorPalette,M=C.InspectorControls,B=C.MediaPlaceholder,O=wp.components,R=O.Button,L=O.Dashicon,N=O.PanelBody,A=O.ToggleControl,z=O.RangeControl,I=O.SelectControl,P=wp.compose.compose,H=wp.data.withSelect,_=wp.element,D=_.Fragment,j=_.useEffect,V=_.useRef,F=_.useState,G=P(H((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.attributes,n=e.setAttributes,a=e.isSelected,l=e.clientId,o=e.adjacentBlock,r=e.parentBlock,i=e.updateBlockAttributes,c=e.adjacentBlockClientId,d=e.view;j((function(){if(1<r.innerBlocks.length&&!c){var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),t=r.innerBlocks[e-1];E.current=t.clientId,C.current=t.attributes.columnWidth}}),[]),j((function(){if(1<r.innerBlocks.length)if(c)C.current=o.attributes.columnWidth,E.current=c,u.current=t.columnWidth;else{var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),n=r.innerBlocks[e-1];C.current=n.attributes.columnWidth,E.current=n.clientId,u.current=t.columnWidth}}),[a,t.columnWidth,r.innerBlocks.length]);var p=T(F("layout"),2),m=p[0],s=p[1],u=V(t.columnWidth),E=V(c&&c),C=V(o&&o.attributes.columnWidth),O=function(){var e;return"Desktop"===d&&(e=t.paddingType),"Tablet"===d&&(e=t.paddingTypeTablet),"Mobile"===d&&(e=t.paddingTypeMobile),e};O=O();var P={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},H={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},_={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},G=function(e){var n;return"top"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},W=function(){var e;return"Desktop"===d&&(e=t.marginType),"Tablet"===d&&(e=t.marginTypeTablet),"Mobile"===d&&(e=t.marginTypeMobile),e};W=W();var q={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},U={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},Z={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},$=function(e){var n;return"top"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"right"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginRight),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginRightTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginRightMobile)),"bottom"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),"left"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginLeft),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginLeftTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginLeftMobile)),n},Q=function(){n({backgroundImageID:"",backgroundImageURL:""})},K={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},J=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},Y={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},X=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n};return wp.element.createElement(M,null,wp.element.createElement(N,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(R,{className:b()("header-tab",{"is-selected":"layout"===m}),onClick:function(){return s("layout")}},wp.element.createElement("span",null,wp.element.createElement(L,{icon:"editor-table"}),x("Layout"))),wp.element.createElement(R,{className:b()("header-tab",{"is-selected":"style"===m}),onClick:function(){return s("style")}},wp.element.createElement("span",null,wp.element.createElement(L,{icon:"admin-customizer"}),x("Style"))),wp.element.createElement(R,{className:b()("header-tab",{"is-selected":"advanced"===m}),onClick:function(){return s("advanced")}},wp.element.createElement("span",null,wp.element.createElement(L,{icon:"admin-generic"}),x("Advanced")))),"layout"===m&&wp.element.createElement(D,null,wp.element.createElement(N,{title:x("Spacing")},1<r.innerBlocks.length&&wp.element.createElement(z,{label:x("Column Width"),value:Number(t.columnWidth),onChange:function(e){var t=e||10,a=Number(u.current)-t+Number(C.current);u.current=t,C.current=a,n({columnWidth:t.toFixed(2)}),i(E.current,{columnWidth:a.toFixed(2)})},min:10,max:Number(t.columnWidth)+Number(C.current)-10}),wp.element.createElement(h.a,{label:"Padding"},wp.element.createElement(f.a,{type:O,min:0,max:500,changeType:function(e){"Desktop"===d&&n({paddingType:e}),"Tablet"===d&&n({paddingTypeTablet:e}),"Mobile"===d&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===d&&("linked"===t.paddingType?n({padding:a}):n(k({},P[e],a))),"Tablet"===d&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(k({},H[e],a))),"Mobile"===d&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(k({},_[e],a)))},options:[{label:x("Top"),type:"top",value:G("top")},{label:x("Right"),type:"right",value:G("right")},{label:x("Bottom"),type:"bottom",value:G("bottom")},{label:x("Left"),type:"left",value:G("left")}]})),wp.element.createElement(h.a,{label:"Margin"},wp.element.createElement(f.a,{type:W,min:-500,max:500,changeType:function(e){"Desktop"===d&&n({marginType:e}),"Tablet"===d&&n({marginTypeTablet:e}),"Mobile"===d&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===d&&("linked"===t.marginType?n({margin:a}):n(k({},q[e],a))),"Tablet"===d&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(k({},U[e],a))),"Mobile"===d&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(k({},Z[e],a)))},options:[{label:x("Top"),type:"top",value:$("top")},{label:x("Right"),type:"right",value:$("right")},{label:x("Bottom"),type:"bottom",value:$("bottom")},{label:x("Left"),type:"left",value:$("left")}]}))))||"style"===m&&wp.element.createElement(D,null,wp.element.createElement(N,{title:x("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(y.default,{label:x("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(g.a,{label:x("Background Color"),colorValue:t.headingColor},wp.element.createElement(S,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(D,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:Q},wp.element.createElement(L,{icon:"trash"}),wp.element.createElement("span",null,x("Remove Image"))))),wp.element.createElement(R,{isDefault:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:Q},x("Change or Remove Image")),wp.element.createElement(v.a,{label:"Background Settings"},wp.element.createElement(I,{label:x("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement(I,{label:x("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement(I,{label:x("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement(I,{label:x("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(B,{icon:"format-image",labels:{title:x("Background Image"),name:x("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(w.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})}})),wp.element.createElement(N,{title:x("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(f.a,{label:x("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(k({},K[e],a))},options:[{label:x("Top"),type:"top",value:J("top")},{label:x("Right"),type:"right",value:J("right")},{label:x("Bottom"),type:"bottom",value:J("bottom")},{label:x("Left"),type:"left",value:J("left")}]}),wp.element.createElement(g.a,{label:x("Border Color"),colorValue:t.borderColor},wp.element.createElement(S,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(f.a,{label:x("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(k({},Y[e],a))},options:[{label:x("Top"),type:"top",value:X("top")},{label:x("Right"),type:"right",value:X("right")},{label:x("Bottom"),type:"bottom",value:X("bottom")},{label:x("Left"),type:"left",value:X("left")}]}),wp.element.createElement(A,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(D,null,wp.element.createElement(g.a,{label:x("Shadow Color"),colorValue:t.boxShadowColor},wp.element.createElement(S,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(v.a,{label:"Shadow Properties"},wp.element.createElement(z,{label:x("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(z,{label:x("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(z,{label:x("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(z,{label:x("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(z,{label:x("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))))||"advanced"===m&&wp.element.createElement(N,{title:x("Section Settings")},wp.element.createElement(I,{label:x("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))}));function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||U(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||U(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){if(e){if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J=lodash.isEqual,Y=wp.components.ResizableBox,X=wp.compose.compose,ee=wp.data,te=ee.withDispatch,ne=ee.withSelect,ae=wp.blockEditor.InnerBlocks,le=wp.element,oe=le.Fragment,re=le.useEffect,ie=le.useState,ce=wp.viewport.withViewportMatch,de=[],pe=X(te((function(e){return{updateBlockAttributes:e("core/block-editor").updateBlockAttributes}})),ne((function(e,t){var n=t.clientId,a=e("core/block-editor"),l=a.getAdjacentBlockClientId,o=a.getBlock,r=a.getBlockRootClientId,i=e("core/edit-post").__experimentalGetPreviewDeviceType,c=o(n),d=l(n),p=o(d),m=r(n);return{adjacentBlockClientId:d,adjacentBlock:p,parentClientId:m,parentBlock:o(m),hasInnerBlocks:!(!c||!c.innerBlocks.length),isViewportAvailable:!!i,isPreviewDesktop:!!i&&"Desktop"===i(),isPreviewTablet:!!i&&"Tablet"===i(),isPreviewMobile:!!i&&"Mobile"===i()}})),ce({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.isSelected,i=e.clientId,c=e.name,d=e.toggleSelection,p=e.updateBlockAttributes,u=e.adjacentBlockClientId,b=e.adjacentBlock,g=e.parentClientId,f=e.parentBlock,h=e.hasInnerBlocks,y=e.isLarger,w=e.isLarge,v=e.isSmall,k=e.isSmaller,T=e.isViewportAvailable,E=e.isPreviewDesktop,x=e.isPreviewTablet,C=e.isPreviewMobile;re((function(){S()}),[]);var S=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,o="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(J(m.a[c],window.themeisleGutenberg.globalDefaults[c])||(a=Q({},window.themeisleGutenberg.globalDefaults[c]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(Q({},a,{id:o})),de.push(o),e.push(o)}else if(de.includes(t.id)){var r="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));n({id:r}),de.push(r)}else de.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=q(e)},M=W(ie(0),2),B=M[0],O=M[1],R=W(ie(0),2),L=R[0],N=R[1],A=y&&!w&&v&&!k,z=!y&&!w&&v&&!k,I=!(y||w||v||k);T&&!I&&(A=E,z=x,I=C),void 0===t.columnWidth&&f.innerBlocks.map((function(e,t){if(i===e.clientId){var n=f.attributes.columns,a=f.attributes.layout;p(i,{columnWidth:s.a[n][a][t]})}}));var P=document.getElementById("block-".concat(i));null!==P&&(P.style.flexBasis=A?"".concat(t.columnWidth,"%"):"");var H,_,D,j,V,F,U=t.columnsHTMLTag;(A&&(H={paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginRight:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginRight,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),marginLeft:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginLeft,"px")}),z&&(H={paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginRight:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginRightTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),marginLeft:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginLeftTablet,"px")}),I&&(H={paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginRight:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginRightMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),marginLeft:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginLeftMobile,"px")}),"color"===t.backgroundType&&(_={background:t.backgroundColor}),"image"===t.backgroundType&&(_={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(F="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(_={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(F,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(D={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(D={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(j={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(j={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(V={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(r()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var Z=Q({},H,{},_,{},D,{},j,{},V);return wp.element.createElement(oe,null,wp.element.createElement(G,{attributes:t,setAttributes:n,isSelected:o,clientId:i,adjacentBlock:b,parentBlock:f,updateBlockAttributes:p,adjacentBlockClientId:u}),wp.element.createElement(Y,{className:"block-library-spacer__resize-container wp-themeisle-block-advanced-column-resize-container",enable:{right:!!u},handleWrapperClass:"wp-themeisle-block-advanced-column-resize-container-handle",onResizeStart:function(){var e=document.querySelector("#block-".concat(i," .wp-themeisle-block-advanced-column-resize-container-handle .components-resizable-box__handle")),n=document.createElement("div"),a=document.createElement("div");n.setAttribute("class","resizable-tooltip resizable-tooltip-left"),n.innerHTML="".concat(parseFloat(t.columnWidth).toFixed(0),"%"),e.appendChild(n),a.setAttribute("class","resizable-tooltip resizable-tooltip-right"),a.innerHTML="".concat(parseFloat(b.attributes.columnWidth).toFixed(0),"%"),e.appendChild(a),O(t.columnWidth),N(b.attributes.columnWidth),d(!1)},onResize:function(e,t,a,l){var o=document.getElementById("block-".concat(g)).getBoundingClientRect().width,r=l.width/o*100,i=parseFloat(B)+r,c=L-r,d=document.querySelector(".resizable-tooltip-left"),m=document.querySelector(".resizable-tooltip-right");10<=i&&10<=c&&(d.innerHTML="".concat(i.toFixed(0),"%"),m.innerHTML="".concat(c.toFixed(0),"%"),n({columnWidth:i.toFixed(2)}),p(u,{columnWidth:c.toFixed(2)}))},onResizeStop:function(){var e=document.querySelector(".resizable-tooltip-left"),t=document.querySelector(".resizable-tooltip-right");e.parentNode.removeChild(e),t.parentNode.removeChild(t),d(!0)}},wp.element.createElement(U,{className:a,id:t.id,style:Z},wp.element.createElement(ae,{templateLock:!1,renderAppender:!h&&ae.ButtonBlockAppender}))))})),me=wp.blockEditor.InnerBlocks,se=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag;return wp.element.createElement(a,{className:n,id:t.id},wp.element.createElement(me.Content,null))},ue=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-column",{title:ue("Section Column"),description:ue("A single column within a Section block."),parent:["themeisle-blocks/advanced-columns"],icon:a.f,category:"themeisle-blocks",attributes:l,deprecated:p,supports:{inserter:!1,reusable:!1,html:!1},edit:pe,save:se})},function(e,t,n){"use strict";n.r(t);var a=n(2),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h3",fontSize:24}],["themeisle-blocks/advanced-heading",{content:l("$9.99"),align:"center",tag:"h4",fontSize:36,fontFamily:"Roboto Slab",fontVariant:"normal"}],["themeisle-blocks/advanced-heading",{content:l("Per Month"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/advanced-heading",{content:l("First Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/advanced-heading",{content:l("Second Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/advanced-heading",{content:l("Last Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Buy Now"),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}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/pricing",{title:p("Pricing"),description:p("Pricing tables are a critical part in showcasing your services, prices and overall offerings."),icon:a.p,category:"themeisle-blocks",keywords:["pricing","table","money"],edit:i,save:d})},function(e,t,n){"use strict";n.r(t);var a=n(2),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/font-awesome-icons",{fontSize:62,prefix:"fab",icon:"angellist"}],["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h4",marginBottom:20}],["themeisle-blocks/advanced-heading",{content:l("Lorem ipsum dolor sit amet elit do, consectetur adipiscing, sed eiusmod tempor incididunt ut labore et dolore magna aliqua."),align:"center",color:"#999999",tag:"p",fontSize:14,marginBottom:20}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Know More"),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}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/service",{title:p("Service"),description:p("Use this Service block to showcase services your website offers."),icon:a.q,category:"themeisle-blocks",keywords:["services","icon","features"],edit:i,save:d})},function(e,t,n){"use strict";n.r(t);var a=n(2),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["core/image",{align:"center"}],["themeisle-blocks/advanced-heading",{content:l("John Doe"),align:"center",fontSize:24,tag:"h3",marginTop:25,marginBottom:10,marginTopTablet:25,marginTopMobile:25}],["themeisle-blocks/advanced-heading",{content:l("Jedi Master"),align:"center",fontSize:14,tag:"h4",marginTop:10,marginBottom:10}],["themeisle-blocks/advanced-heading",{content:l('"What is the point of being alive if you don’t at least try to do something remarkable?"'),align:"center",color:"#999999",tag:"p",fontSize:14,marginTop:10,marginBottom:20}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/testimonials",{title:p("Testimonials"),description:p("Display kudos from customers and clients and display them on your website."),icon:a.s,category:"themeisle-blocks",keywords:["testimonials","quotes","business"],edit:i,save:d})},,,function(e,t,n){n(38),n(97),n(103),n(98),n(96),n(99),n(94),n(102),n(27),n(101),n(31),n(30),n(15),n(25),n(26),n(14),n(82),n(100),n(95),n(90),n(32),n(33),e.exports=n(34)},function(e,t,n){"use strict";n.r(t);n(39);n.p=window.themeisleGutenberg.packagePath},,,,,,,,function(e,t){function n(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function a(e){return function(){var t=this,a=arguments;return new Promise((function(l,o){var r=e.apply(t,a);function i(e){n(r,l,o,i,c,"next",e)}function c(e){n(r,l,o,i,c,"throw",e)}i(void 0)}))}}var l=lodash.debounce,o=wp.apiFetch,r=wp.data,i=r.select,c=r.subscribe,d=l(a(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i("core/editor"),n=t.getCurrentPostId,a=n(),e.next=4,o({path:"themeisle-gutenberg-blocks/v1/save_post_meta/".concat(a),method:"POST"});case 4:case"end":return e.stop()}}),e)}))),1e3),p={};c((function(){var e=i("core/editor"),t=e.isCurrentPostPublished,n=e.isSavingPost,a=e.isPublishingPost,l=e.isAutosavingPost,r=e.__experimentalGetReusableBlocks,c=e.__experimentalIsSavingReusableBlock,m=l(),s=a(),u=n(),b=r(),g=t();b.map((function(e){if(e){var t=(n=e.id,c(n));t&&!e.isTemporary&&(p[e.id]={id:e.id,isSaving:!0}),t||e.isTemporary||!p[e.id]||e.id===p[e.id].id&&!t&&p[e.id].isSaving&&(p[e.id].isSaving=!1,o({path:"themeisle-gutenberg-blocks/v1/save_block_meta/".concat(e.id),method:"POST"}))}var n})),!(s||g&&u)||m||status||d()}))},function(e,t){var n=wp.data.registerStore,a={viewType:"Desktop"};n("themeisle-gutenberg/data",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_VIEW"===t.type?{viewType:t.viewType}:e},selectors:{getView:function(e){return e.viewType}},actions:{updateView:function(e){return{type:"UPDATE_VIEW",viewType:e}}}})},,function(e,t,n){},,function(e,t,n){},function(e,t){var n=wp.i18n.__,a=wp.richText,l=a.registerFormatType,o=a.toggleFormat,r=wp.blockEditor,i=r.RichTextShortcut,c=r.RichTextToolbarButton,d=wp.element.Fragment,p="themeisle-blocks/mark";l(p,{name:p,title:n("Highlight"),tagName:"mark",className:null,edit:function(e){var t=e.isActive,a=e.value,l=e.onChange,r=function(){return l(o(a,{type:p}))};return wp.element.createElement(d,null,wp.element.createElement(i,{type:"primary",character:"m",onUse:r}),wp.element.createElement(c,{icon:"admin-customizer",title:n("Highlight"),onClick:r,isActive:t,shortcutType:"access",shortcutCharacter:"m"}))}})},,,,,,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,,,function(e,t,n){},function(e,t,n){},,,,,function(e,t,n){},,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(83),n(84),n(30),n(31)},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},function(e,t,n){},,function(e,t,n){"use strict";n.r(t);n(32),n(33),n(34)},,,,function(e,t,n){"use strict";n.r(t);n(62),n(63);var a=n(2),l={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:!0},mapTypeControl:{type:"boolean",default:!0},zoomControl:{type:"boolean",default:!0},fullscreenControl:{type:"boolean",default:!0},streetViewControl:{type:"boolean",default:!0},markers:{type:"array",default:[]}},o=n(0),r=n.n(o),i=n(106),c=wp.i18n.__,d=wp.components,p=d.Button,m=d.ExternalLink,s=d.Placeholder,u=d.Spinner,b=d.TextControl,g=function(e){var t=e.className,n=e.api,a=e.isAPILoaded,l=e.isAPISaved,o=e.isSaving,r=e.changeAPI,i=e.saveAPIKey;return a?l?void 0:wp.element.createElement(s,{icon:"admin-site",label:c("Google Maps"),instructions:c("A Google Maps API key is required, please enter one below."),className:t},wp.element.createElement("div",{className:"components-placeholder__actions"},wp.element.createElement(b,{type:"text",placeholder:c("Google Maps API Key"),value:n,className:"components-placeholder__input",onChange:r}),wp.element.createElement(p,{isLarge:!0,isDefault:!0,type:"submit",onClick:i,isBusy:o,disabled:""===n},c("Save"))),wp.element.createElement("div",{className:"components-placeholder__learn-more"},c("You need to activate Maps and Places API.")," ",wp.element.createElement(m,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},c("Need an API key? Get one here.")))):wp.element.createElement(s,{className:"wp-themeisle-block-spinner"},wp.element.createElement(u,null),c("Loading…"))},f=n(12),h=wp.i18n.__,y=wp.components,w=y.BaseControl,v=y.Button,k=y.ExternalLink,T=y.IconButton,E=y.SelectControl,x=y.TextControl,C=y.TextareaControl,S=wp.element.useRef,M=function(e){var t=e.marker,n=e.isOpen,a=e.isPlaceAPIAvailable,l=e.openMarker,o=e.removeMarker,i=e.changeMarkerProp,c=S(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-title-area"},wp.element.createElement(v,{className:"wp-block-themeisle-blocks-google-map-marker-title",onClick:function(){return l(t.id)}},t.title||h("Custom Marker")),wp.element.createElement(T,{icon:"no-alt",label:h("Remove Marker"),className:"wp-block-themeisle-blocks-google-map-marker-remove",onClick:function(){return o(t.id)}})),wp.element.createElement("div",{className:r()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===n})},wp.element.createElement(w,{label:h("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(t.id),placeholder:h("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:c,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var n=new google.maps.places.SearchBox(c.current);n.addListener("places_changed",(function(){var e=n.getPlaces();e&&0<e.length&&e.forEach((function(e){var n=e.formatted_address||e.name,a=e.geometry.location.lat(),l=e.geometry.location.lng();i(t.id,"location",n),i(t.id,"latitude",a),i(t.id,"longitude",l)}))}))},onChange:function(e){return i(t.id,"location",e.target.value)},disabled:!a}),!a&&wp.element.createElement("p",null,h("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(k,{href:"https://developers.google.com/places/web-service/intro"},h("More info.")))),wp.element.createElement(x,{label:h("Latitude"),type:"text",value:t.latitude,onChange:function(e){return i(t.id,"latitude",e)}}),wp.element.createElement(x,{label:h("Longitude"),type:"text",value:t.longitude,onChange:function(e){return i(t.id,"longitude",e)}}),wp.element.createElement(E,{label:h("Map Icon"),value:t.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:h("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:h("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:h("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:h("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:h("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:function(e){return i(t.id,"icon",e)}}),wp.element.createElement(x,{label:h("Title"),type:"text",value:t.title,onChange:function(e){return i(t.id,"title",e)}}),wp.element.createElement(C,{label:h("Description"),type:"text",value:t.description,onChange:function(e){return i(t.id,"description",e)}})))};function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var R=wp.i18n.__,L=wp.components.Button,N=wp.element,A=N.Fragment,z=N.useEffect,I=N.useState,P=function(e){var t=e.initialOpen,n=e.markers,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.removeMarker,r=e.changeMarkerProp;z((function(){!1!==t&&d(t)}),[t]);var i=B(I(null),2),c=i[0],d=i[1],p=function(e){c===e&&(e=null),d(e)};return wp.element.createElement(A,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},n.map((function(e){return wp.element.createElement(M,{marker:e,isOpen:c,isPlaceAPIAvailable:a,openMarker:p,removeMarker:o,changeMarkerProp:r})}))),wp.element.createElement(L,{isDefault:!0,isLarge:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:l},R("Add Marker")))},H=wp.i18n.__,_=wp.components,D=_.BaseControl,j=_.Button,V=_.ExternalLink,F=_.PanelBody,G=_.RangeControl,W=_.SelectControl,q=_.TextControl,U=_.ToggleControl,Z=wp.blockEditor.InspectorControls,$=wp.element.useRef,Q=function(e){var t=e.attributes,n=e.setAttributes,a=e.map,l=e.changeStyle,o=e.isPlaceAPIAvailable,r=e.isMarkerOpen,i=e.setMarkerOpen,c=e.removeMarker,d=e.changeMarkerProp,p=e.addMarkerManual,m=e.api,s=e.isSaving,u=e.changeAPI,b=e.saveAPIKey,g=$(null);return wp.element.createElement(Z,null,wp.element.createElement(F,{title:H("Styles"),initialOpen:!1},wp.element.createElement(f.b,{value:t.style,options:[{label:H("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:H("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:H("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:H("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:H("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:H("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:l})),wp.element.createElement(F,{title:H("Location")},wp.element.createElement(D,{label:H("Location"),id:"wp-block-themeisle-blocks-google-map-search"},wp.element.createElement("input",{type:"text",id:"wp-block-themeisle-blocks-google-map-search",placeholder:H("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:g,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(g.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.geometry.location.lat(),l=e.geometry.location.lng(),o=new google.maps.LatLng(t,l);a.setCenter(o),n({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:function(e){n({location:e.target.value})},disabled:!o}),!o&&wp.element.createElement("p",null,H("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(V,{href:"https://developers.google.com/places/web-service/intro"},H("More info.")))),wp.element.createElement(q,{label:H("Latitude"),type:"text",placeholder:H("Enter latitude…"),value:t.latitude,onChange:function(e){n({latitude:e.toString()});var l=Number(e),o=t.longitude,r=new google.maps.LatLng(l,o);a.setCenter(r)}}),wp.element.createElement(q,{label:H("Longitude"),type:"text",placeholder:H("Enter longitude"),value:t.longitude,onChange:function(e){n({longitude:e.toString()});var l=t.latitude,o=Number(e),r=new google.maps.LatLng(l,o);a.setCenter(r)}})),wp.element.createElement(F,{title:H("Positioning & Zooming"),initialOpen:!1},wp.element.createElement(W,{label:H("Map Type"),value:t.type,options:[{label:H("Road Map"),value:"roadmap"},{label:H("Satellite View"),value:"satellite"},{label:H("Hybrid"),value:"hybrid"},{label:H("Terrain"),value:"terrain"}],onChange:function(e){n({type:e}),a.setMapTypeId(google.maps.MapTypeId[e.toUpperCase()])}}),wp.element.createElement(G,{label:H("Map Zoom Level"),value:t.zoom,onChange:function(e){n({zoom:e}),a.setZoom(e)},min:0,max:20}),wp.element.createElement(G,{label:H("Map Height"),value:t.height,onChange:function(e){n({height:e})},min:100,max:1400})),wp.element.createElement(F,{title:H("Controls"),initialOpen:!1},wp.element.createElement(D,null,H("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.")),wp.element.createElement(U,{label:"Draggable Map",checked:t.draggable,onChange:function(){n({draggable:!t.draggable})}}),wp.element.createElement(U,{label:"Map Type Control",checked:t.mapTypeControl,onChange:function(){n({mapTypeControl:!t.mapTypeControl})}}),wp.element.createElement(U,{label:"Zoom Control",checked:t.zoomControl,onChange:function(){n({zoomControl:!t.zoomControl})}}),wp.element.createElement(U,{label:"Full Screen Control",checked:t.fullscreenControl,onChange:function(){n({fullscreenControl:!t.fullscreenControl})}}),wp.element.createElement(U,{label:"Streen View Control",checked:t.streetViewControl,onChange:function(){n({streetViewControl:!t.streetViewControl})}})),wp.element.createElement(F,{title:H("Markers"),initialOpen:!1,opened:!1!==r||void 0,onToggle:function(){!1!==r&&i(!0)}},wp.element.createElement(P,{markers:t.markers,removeMarker:c,changeMarkerProp:d,addMarker:p,isPlaceAPIAvailable:o,initialOpen:r})),wp.element.createElement(F,{title:H("Global Settings"),initialOpen:!1},wp.element.createElement(q,{label:H("Google Maps API Key"),type:"text",placeholder:H("Google Maps API Key"),value:m,className:"components-placeholder__input",onChange:u,help:H("Changing the API key effects all Google Map Embed blocks. You will have to refresh the page after changing your API keys.")}),wp.element.createElement(j,{isLarge:!0,isDefault:!0,type:"submit",onClick:b,isBusy:s},H("Save API Key"))))};function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Y=wp.i18n.__,X=wp.components,ee=X.BaseControl,te=X.Button,ne=X.ButtonGroup,ae=X.Modal,le=X.SelectControl,oe=X.TextControl,re=X.TextareaControl,ie=wp.element,ce=ie.useEffect,de=ie.useRef,pe=ie.useState,me=ie.Fragment,se=function(e){var t=e.marker,n=e.isAdvanced,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.close;ce((function(){d(t.id),s(t.location),g(t.title),y(t.icon),k(t.description),x(t.latitude),M(t.longitude)}),[t]);var r=de(null),i=K(pe(t.id),2),c=i[0],d=i[1],p=K(pe(t.location),2),m=p[0],s=p[1],u=K(pe(t.title),2),b=u[0],g=u[1],f=K(pe(t.icon),2),h=f[0],y=f[1],w=K(pe(t.description),2),v=w[0],k=w[1],T=K(pe(t.latitude),2),E=T[0],x=T[1],C=K(pe(t.longitude),2),S=C[0],M=C[1];return wp.element.createElement(ae,{title:Y("Add Marker"),onRequestClose:o,shouldCloseOnClickOutside:!1},n&&wp.element.createElement(me,null,wp.element.createElement(ee,{label:Y("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(c),placeholder:Y("Enter a location…"),value:m,className:"wp-block-themeisle-blocks-google-map-search",ref:r,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(r.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.formatted_address||e.name,n=e.geometry.location.lat(),a=e.geometry.location.lng();s(t),x(n),M(a)}))}))},onChange:function(e){return s(e.target.value)},disabled:!a})),wp.element.createElement(oe,{label:Y("Latitude"),type:"text",value:E,onChange:x}),wp.element.createElement(oe,{label:Y("Longitude"),type:"text",value:S,onChange:M})),wp.element.createElement(oe,{label:Y("Title"),type:"text",value:b,onChange:g}),wp.element.createElement(re,{label:Y("Description"),type:"text",value:v,onChange:k}),wp.element.createElement(le,{label:Y("Map Icon"),value:h||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:Y("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:Y("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:Y("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:Y("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:Y("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:y}),wp.element.createElement(ne,null,wp.element.createElement(te,{isLarge:!0,isPrimary:!0,onClick:function(){return l(m,b,h,v,E,S)}},Y("Add")),wp.element.createElement(te,{isLarge:!0,isDefault:!0,onClick:o},Y("Cancel"))))},ue=wp.i18n.__,be=wp.components.Button,ge=wp.element,fe=ge.Fragment,he=ge.useEffect,ye=function(e){var t=e.attributes,n=e.className,a=e.initMap,l=e.displayMap,o=e.isMapLoaded,i=e.selectMarker,c=e.isSelectingMarker;return he((function(){l&&a()}),[l]),wp.element.createElement(fe,null,wp.element.createElement("div",{id:t.id,className:r()(n,{"is-selecting-marker":c}),style:{height:t.height+"px"}}),o&&wp.element.createElement(be,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:ue("Add Button"),onClick:i},wp.element.createElement("span",{className:"dashicons dashicons-sticky"})))},we={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"}]}]};function ve(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||Ee(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e){return function(e){if(Array.isArray(e))return xe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ee(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){if(e){if("string"==typeof e)return xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Ce=wp.i18n.__,Se=wp.components.ResizableBox,Me=wp.element,Be=Me.Fragment,Oe=Me.useEffect,Re=Me.useRef,Le=Me.useState,Ne=[],Ae=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.isSelected,c=e.toggleSelection;Oe((function(){ee(),window.isMapLoaded=window.isMapLoaded||!1,window["removeMarker_".concat(l.substr(0,8))]=oe,m.current=document.createElement("script"),m.current.type="text/javascript",m.current.async=!0,m.current.defer=!0,m.current.id="themeisle-google-map-api-loading"}),[]),Oe((function(){!1!==x&&void 0!==window.google&&s.current.setOptions({mapTypeControl:!!o||t.mapTypeControl,zoomControl:!!o||t.zoomControl,fullscreenControl:!!o||t.fullscreenControl,streetViewControl:!!o||t.streetViewControl})}),[o]),Oe((function(){b.current=Te(t.markers)}),[t.markers]);var d=Re([]),p=Re(null),m=Re(null),s=Re(null),u=Re(null),b=Re(Te(t.markers)),h=ke(Le(""),2),y=h[0],w=h[1],v=ke(Le(!1),2),k=v[0],T=v[1],E=ke(Le(!1),2),x=E[0],C=E[1],S=ke(Le(!1),2),M=S[0],B=S[1],O=ke(Le(!1),2),R=O[0],L=O[1],N=ke(Le(!0),2),A=N[0],z=N[1],I=ke(Le(!1),2),P=I[0],H=I[1],_=ke(Le(!1),2),D=_[0],j=_[1],V=ke(Le(!1),2),F=V[0],G=V[1],W=ke(Le(!1),2),q=W[0],U=W[1],Z=ke(Le(!1),2),$=Z[0],K=Z[1],J=ke(Le({}),2),Y=J[0],X=J[1],ee=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t.id){e.next=7;break}return a="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=4,n({id:a});case 4:Ne.push(a),e.next=15;break;case 7:if(!Ne.includes(t.id)){e.next=14;break}return o="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=11,n({id:o});case 11:Ne.push(o),e.next=15;break;case 14:Ne.push(t.id);case 15:return e.next=17,wp.api.loadPromise.then((function(){p.current=new wp.api.models.Settings}));case 17:!1===Boolean(themeisleGutenberg.mapsAPI)?k||p.current.fetch().then((function(e){w(e.themeisle_google_map_block_api_key),T(!0),""!==e.themeisle_google_map_block_api_key&&(C(!0),te(e.themeisle_google_map_block_api_key))})):k||(w(themeisleGutenberg.mapsAPI),T(!0),C(!0),te(themeisleGutenberg.mapsAPI));case 18:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){ve(o,a,l,r,i,"next",e)}function i(e){ve(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),te=function(e){window.isMapLoaded||(window.isMapLoaded=!0,m.current.onload=function(){document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",H(!0)},m.current.src="https://maps.googleapis.com/maps/api/js?key=".concat(e,"&libraries=places&cache=").concat(Math.random()),document.head.appendChild(m.current)),document.getElementById("themeisle-google-map-api")&&H(!0)},ne=function(e,t,n,a){var o='<div class="wp-block-themeisle-blocks-map-overview"><h6 class="wp-block-themeisle-blocks-map-overview-title">'.concat(n,'</h6><div class="wp-block-themeisle-blocks-map-overview-content">').concat(a?"<p>".concat(a,"</p>"):"",'<a class="wp-block-themeisle-blocks-map-overview-delete" onclick="removeMarker_').concat(l.substr(0,8),"( '").concat(t,"' )\">").concat(Ce("Delete Marker"),"</a></div></div>"),r=new google.maps.InfoWindow({content:o});e.addListener("click",(function(){u.current=r,r.open(s.current,e)})),google.maps.event.addListener(r,"domready",(function(){j(t)})),google.maps.event.addListener(r,"closeclick",(function(){j(!1)}))},ae=function(e){e.forEach((function(e){var t=e.latitude,n=e.longitude,a=new google.maps.LatLng(t,n),l=new google.maps.Marker({position:a,map:s.current,title:e.title,draggable:!0,icon:e.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png"});google.maps.event.addListener(l,"dragend",(function(t){var n=t.latLng.lat(),a=t.latLng.lng();le(e.id,"latitude",n),le(e.id,"longitude",a)})),d.current.push(l),google.maps.event.addListener(l,"click",(function(){u.current&&u.current.close()})),ne(l,e.id,e.title,e.description)}))},le=function(e,t,a){var l=Te(b.current);l.map((function(n){if(n.id===e)return n[t]=a.toString()})),re(),ae(l),n({markers:l})},oe=function(e){var t=Te(b.current);t=t.filter((function(t){return t.id!==e})),n({markers:t}),re(),j(!1),0<t.length&&ae(t)},re=function(){for(var e=0;e<d.current.length;e++)d.current[e].setMap(null);d.current=[]},ie=function(){!1===Boolean(themeisleGutenberg.mapsAPI)&&(L(!0),new wp.api.models.Settings({themeisle_google_map_block_api_key:y}).save().then((function(e){var t=!1;""!==e.themeisle_google_map_block_api_key&&(t=!0),L(!1),C(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,te(e.themeisle_google_map_block_api_key))})))},ce=function(e){n({style:e}),s.current.setOptions({styles:we[e]})};return k&&x?wp.element.createElement(Be,null,wp.element.createElement(f.a,{label:Ce("Block Styles"),value:t.style,options:[{label:Ce("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:Ce("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:Ce("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:Ce("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:Ce("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:Ce("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:ce}),wp.element.createElement(Q,{attributes:t,setAttributes:n,map:s.current,changeStyle:ce,isPlaceAPIAvailable:A,isMarkerOpen:D,setMarkerOpen:j,removeMarker:oe,changeMarkerProp:le,addMarkerManual:function(){var e=Object(i.a)(),t=Ce("Custom Marker"),n=s.current.getCenter(),a=n.lat(),l=n.lng();U(!0),K(!0),X({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})},api:y,isSaving:R,changeAPI:w,saveAPIKey:ie}),q&&wp.element.createElement(se,{marker:Y,isAdvanced:$,isPlaceAPIAvailable:A,close:function(){return U(!1)},addMarker:function(e,a,l,o,r,c){var p=new google.maps.LatLng(r,c),m=Object(i.a)(),b=new google.maps.Marker({position:p,map:s.current,title:a,draggable:!0,icon:l});google.maps.event.addListener(b,"dragend",(function(e){var t=e.latLng.lat(),n=e.latLng.lng();le(m,"latitude",t),le(m,"longitude",n)})),d.current.push(b);var g=Te(t.markers),f={id:m,location:e,title:a,icon:l,description:o,latitude:r,longitude:c};g.push(f),n({markers:g}),google.maps.event.addListener(b,"click",(function(){u.current&&u.current.close()})),ne(b,f.id,a,o),U(!1),G(!1)}}),wp.element.createElement(Se,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){c(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),c(!0)},className:r()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":o})},wp.element.createElement(ye,{attributes:t,className:a,initMap:function(){if(s.current=new 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:we[t.style]}),t.location&&void 0===t.latitude&&void 0===t.longitude){var e={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(s.current).findPlaceFromQuery(e,(function(e,t){t===google.maps.places.PlacesServiceStatus.OK&&0<e.length&&s.current.setCenter(e[0].geometry.location)}))}google.maps.event.addListenerOnce(s.current,"idle",(function(){B(!0)})),s.current.addListener("zoom_changed",(function(){var e=s.current.getZoom();n({zoom:e})})),s.current.addListener("maptypeid_changed",(function(){var e=s.current.getMapTypeId();n({type:e})})),s.current.addListener("bounds_changed",(function(){var e=s.current.getCenter(),t=e.lat(),a=e.lng();n({latitude:t.toString(),longitude:a.toString()})})),0<t.markers.length&&ae(t.markers);var a={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(s.current).findPlaceFromQuery(a,(function(e,t){"REQUEST_DENIED"===t&&z(!1)}))},displayMap:P,isMapLoaded:M,selectMarker:function(){G(!F),F?google.maps.event.clearListeners(s.current,"click"):s.current.addListener("click",(function(e){google.maps.event.clearListeners(s.current,"click");var t=Object(i.a)(),n=Ce("Custom Marker"),a=e.latLng.lat(),l=e.latLng.lng();U(!0),K(!1),X({id:t,location:"",title:n,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})}))},isSelectingMarker:F}))):wp.element.createElement(g,{className:a,api:y,isAPILoaded:k,isAPISaved:x,changeAPI:w,saveAPIKey:ie})},ze=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/google-map",{title:ze("Google Map"),description:ze("Display a Google Map on your website with Google Map block."),icon:a.j,category:"themeisle-blocks",keywords:["map","google","orbitfox"],attributes:l,supports:{align:["wide","full"],html:!1},edit:Ae,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(88),n(89);var a={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:!0},delay:{type:"number",default:2},hideArrows:{type:"boolean",default:!1},hideBullets:{type:"boolean",default:!1},height:{type:"number",default:400}},l=n(0),o=n.n(l),r=wp.components,i=r.Path,c=r.SVG,d=wp.element.Fragment,p=function(e){var t=e.attributes;return wp.element.createElement(d,null,!t.hideArrows&&wp.element.createElement("div",{className:"glide__arrows","data-glide-el":"controls"},wp.element.createElement("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"}))),wp.element.createElement("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"})))),!t.hideBullets&&wp.element.createElement("div",{className:"glide__bullets","data-glide-el":"controls[nav]"},t.images.map((function(e,t){return wp.element.createElement("button",{className:"glide__bullet","data-glide-dir":"=".concat(t)})}))))},m=wp.blockEditor.RichText,s=[{attributes:{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}},supports:{align:["wide","full"]},save:function(e){var t=e.attributes,n=e.className;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":t.autoplay},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.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}),!m.isEmpty(e.caption)&&wp.element.createElement(m.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(p,{attributes:t})))}}],u=lodash,b=u.filter,g=u.every,f=wp.blocks.createBlock,h={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=g(e,["align",t])?t:void 0;var n=b(e,(function(e){return e.url}));return f("themeisle-blocks/slider",{images:n.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:t})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return f("themeisle-blocks/slider",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return 0<t.length?t.map((function(e){var t=e.id,a=e.url,l=e.alt,o=e.caption;return f("core/image",{id:t,url:a,alt:l,caption:o,align:n})})):f("core/image",{align:n})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return f("core/gallery",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}]},y=lodash.debounce,w=wp.blockEditor.MediaPlaceholder,v=function(e){var t=e.labels,n=e.icon,a=e.isAppender,l=void 0!==a&&a,o=e.value,r=void 0===o?{}:o,i=e.onSelectImages,c=y(i,250);return wp.element.createElement(w,{labels:t,icon:n,accept:"image/*",allowedTypes:["image"],isAppender:l,className:"wp-block-themeisle-blocks-slider-uploader",value:r,onSelect:c,multiple:!0})},k=wp.i18n.__,T=lodash.max,E=wp.blockEditor.InspectorControls,x=wp.components,C=x.PanelBody,S=x.RangeControl,M=x.ToggleControl,B=wp.element.Fragment,O=function(e){var t=e.attributes,n=e.setAttributes,a=e.slider,l=e.changePerView;return wp.element.createElement(E,null,wp.element.createElement(C,{title:k("Settings")},t.images.length&&wp.element.createElement(B,null,wp.element.createElement(S,{label:k("Slides Per Page"),help:k("A number of visible slides."),value:t.perView,onChange:l,min:1,max:T([Math.round(t.images.length/2),1])}),1<t.perView&&wp.element.createElement(B,null,wp.element.createElement(S,{label:k("Gap"),help:k("A size of the space between slides."),value:t.gap,onChange:function(e){n({gap:Number(e)}),a.update({gap:Number(e)})},min:0,max:100}),wp.element.createElement(S,{label:k("Peek"),help:k("The value of the future slides which have to be visible in the current slide."),value:t.peek,onChange:function(e){n({peek:Number(e)}),a.update({peek:Number(e)})},min:0,max:100})),wp.element.createElement(S,{label:k("Height"),help:k("Slider height in pixels."),value:t.height,onChange:function(e){n({height:Number(e)})},min:100,max:1400}),wp.element.createElement(M,{label:k("Autoplay"),help:k("Autoplay slider in the front."),checked:t.autoplay,onChange:function(e){n({autoplay:e})}}),t.autoplay&&wp.element.createElement(S,{label:k("Delay"),help:k("Delay in slide change (in seconds)."),value:t.delay,onChange:function(e){n({delay:e})},min:1,max:10}),wp.element.createElement(M,{label:k("Hide Arrows"),help:k("Hide navigation arrows."),checked:t.hideArrows,onChange:function(e){n({hideArrows:e})}}),wp.element.createElement(M,{label:k("Hide Bullets"),help:k("Hide navigation bullets."),checked:t.hideBullets,onChange:function(e){n({hideBullets:e})}}))))};function R(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var N=wp.i18n.__,A=lodash.filter,z=wp.blockEditor.RichText,I=wp.components.IconButton,P=wp.element.Fragment,H=function(e){var t=e.images,n=e.image,a=e.index,l=e.isFirstItem,r=e.isLastItem,i=e.isSelected,c=e.setAttributes,d=e.setSelectedImage,p=function(e,n){var a=R(t);a.splice(n,1,t[e]),a.splice(e,1,t[n]),d(n),c({images:a})};return wp.element.createElement("div",{className:o()("wp-block-themeisle-blocks-slider-item-wrapper glide__slide",{"is-selected":i}),tabIndex:"0",onClick:function(){return d(n.id)},onFocus:function(){return d(n.id)}},wp.element.createElement("figure",null,wp.element.createElement("img",{key:n.id,className:"wp-block-themeisle-blocks-slider-item",src:n.url,alt:n.alt,title:n.alt,"data-id":n.id}),i&&wp.element.createElement(P,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-move-menu"},wp.element.createElement(I,{icon:"arrow-left-alt2",onClick:l?void 0:function(){0!==a&&p(a,a-1)},className:"wp-block-themeisle-blocks-slider-item-move-backward",label:N("Move image backward"),"aria-disabled":l,disabled:!i}),wp.element.createElement(I,{icon:"arrow-right-alt2",onClick:r?void 0:function(){a!==t.length-1&&p(a,a+1)},className:"wp-block-themeisle-blocks-slider-item-move-forward",label:N("Move image forward"),"aria-disabled":r,disabled:!i})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-delete-menu"},wp.element.createElement(I,{icon:"no-alt",onClick:function(){var e=A(t,(function(e,t){return a!==t}));d(null),c({images:e})},className:"wp-block-themeisle-blocks-slider-item-delete",label:N("Remove image")}))),(i||!z.isEmpty(n.caption))&&wp.element.createElement(z,{tagName:"figcaption",placeholder:i?N("Write caption…"):null,value:n.caption,onChange:function(e){var n=R(t);n[a].caption=e,c({images:n})},multiline:!1})))};function _(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var G=wp.i18n.__,W=lodash.max,q=wp.components.ResizableBox,U=wp.element,Z=U.Fragment,$=U.useEffect,Q=U.useRef,K=U.useState,J=[],Y=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,r=e.isSelected,i=e.toggleSelection;$((function(){return b(),function(){t.images.length&&c.current.destroy()}}),[]),$((function(){t.images.length&&(u(null),null!==c.current&&(c.current.destroy(),g()))}),[r,t.align]),$((function(){t.images.length&&t.perView>t.images.length&&h(W([Math.round(t.images.length/2),1]))}),[t.images]);var c=Q(null),d=Q(null),m=j(K(null),2),s=m[0],u=m[1],b=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[],void 0!==t.id){e.next=10;break}return o="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=5,n({id:o});case 5:J.push(o),d.current=o,a.push(o),e.next=21;break;case 10:if(!J.includes(t.id)){e.next=18;break}return r="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=14,n({id:r});case 14:J.push(r),d.current=r,e.next=21;break;case 18:J.push(t.id),d.current=t.id,a.push(t.id);case 21:window.themeisleGutenberg.blockIDs=_(a),t.images.length&&g();case 23:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){D(o,a,l,r,i,"next",e)}function i(e){D(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),g=function(){c.current=new Glide("#".concat(t.id||d.current),{type:"carousel",keyboard:!1,perView:t.perView,gap:t.gap,peek:t.peek,autoplay:!1,breakpoints:{800:{perView:1,peek:0,gap:0}}}).mount()},f=function(e){n({images:e.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}))}),null!==c.current&&c.current.destroy(),g()},h=function(e){n({perView:Number(e)}),c.current.update({perView:Number(e)}),1===e&&(n({gap:0,peek:0}),c.current.update({gap:0,peek:0}))};return Array.isArray(t.images)&&!t.images.length?wp.element.createElement(v,{labels:{title:G("Slider"),instructions:G("Drag images, upload new ones or select files from your library.")},icon:"images-alt2",onSelectImages:f}):wp.element.createElement(Z,null,wp.element.createElement(O,{attributes:t,setAttributes:n,slider:c.current,changePerView:h}),wp.element.createElement(q,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){i(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),i(!0)},className:o()("wp-block-themeisle-blocks-slider-resizer",{"is-focused":r})},wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",a)},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e,a){return wp.element.createElement(H,{images:t.images,image:e,index:a,isFirstItem:0===a,isLastItem:a+1===t.images.length,isSelected:r&&e.id===s,setAttributes:n,setSelectedImage:u})}))),wp.element.createElement(p,{attributes:t})))),r&&wp.element.createElement(v,{labels:{title:"",instructions:""},icon:null,onSelectImages:f,isAppender:!0,value:t.images}))},X=wp.blockEditor.RichText,ee=function(e){var t=e.attributes,n=e.className,a=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":a,"data-height":"".concat(t.height,"px")},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides"},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.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}),!X.isEmpty(e.caption)&&wp.element.createElement(X.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(p,{attributes:t})))},te=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/slider",{title:te("Slider"),description:te("Minimal image slider to showcase beautiful images."),icon:"images-alt2",category:"themeisle-blocks",keywords:["slider","gallery","carousel"],attributes:a,deprecated:s,transforms:h,supports:{align:["wide","full"]},edit:Y,save:ee})},function(e,t,n){"use strict";n.r(t);n(57),n(58);var a=n(2),l={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"},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string"},lineHeight:{type:"number"},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:""}]}},o=n(0),r=n.n(o);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=lodash.times,m=wp.editor.RichText,s=wp.element.Fragment,u=[{attributes:{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}]}},save:function(e){var t=e.attributes,n=t.id,a=t.buttons,l=t.align,o=t.collapse,i=t.fontSize,d=t.fontFamily,u=t.fontStyle,b=t.fontVariant,g=t.textTransform,f=t.lineHeight,h=t.data,y={fontSize:"".concat(i,"px"),fontFamily:d,fontWeight:b,fontStyle:u,textTransform:g,lineHeight:f&&"".concat(f,"px")},w="collapse-none"!==o?o:"";return wp.element.createElement("div",{id:n,className:r()(e.className,w),style:{justifyContent:l,alignItems:l||"flex-start"}},p(a,(function(e){return function(e){var t=c({},y,{borderWidth:"".concat(h[e].borderSize,"px"),borderRadius:"".concat(h[e].borderRadius,"px"),padding:"".concat(h[e].paddingTopBottom,"px ").concat(h[e].paddingLeftRight,"px")});return wp.element.createElement(s,null,wp.element.createElement("a",{href:h[e].link,target:h[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:t},("left"===h[e].iconType||"only"===h[e].iconType)&&wp.element.createElement("i",{className:r()(h[e].prefix,"fa-fw","fa-".concat(h[e].icon),{"margin-right":"left"===h[e].iconType})}),"only"!==h[e].iconType&&wp.element.createElement(m.Content,{tagName:"span",value:h[e].text}),"right"===h[e].iconType&&wp.element.createElement("i",{className:"".concat(h[e].prefix," fa-fw fa-").concat(h[e].icon," margin-left")})))}(e)})))}},{attributes:{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}]}},save:function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse?t.collapse:"",l={fontSize:"".concat(t.fontSize,"px"),fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px")};return wp.element.createElement("div",{id:t.id,className:r()(n,a),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},p(t.buttons,(function(e){return function(e){var n=c({},l,{borderWidth:"".concat(t.data[e].borderSize,"px"),borderRadius:"".concat(t.data[e].borderRadius,"px"),padding:"".concat(t.data[e].paddingTopBottom,"px ").concat(t.data[e].paddingLeftRight,"px")});return wp.element.createElement(s,null,wp.element.createElement("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:n,rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&wp.element.createElement("i",{className:r()(t.data[e].prefix,"fa-fw","fa-".concat(t.data[e].icon),{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&wp.element.createElement(m.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&wp.element.createElement("i",{className:"".concat(t.data[e].prefix," fa-fw fa-").concat(t.data[e].icon," margin-left")})))}(e)})))}}],b=n(19),g=n.n(b),f=n(6),h=n(10),y=wp.i18n.__,w=wp.components,v=w.Dropdown,k=w.IconButton,T=w.RangeControl,E=w.Toolbar,x=wp.blockEditor,C=x.AlignmentToolbar,S=x.BlockControls,M=wp.element.Fragment,B=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontSize,l=e.changeFontFamily,o=e.changeFontVariant,r=e.changeFontStyle,i=e.changeTextTransform,c=e.changeLineHeight;return wp.element.createElement(S,null,wp.element.createElement(C,{value:t.align,onChange:function(e){n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:y("Align left"),align:"flex-start"},{icon:"editor-aligncenter",title:y("Align center"),align:"center"},{icon:"editor-alignright",title:y("Align right"),align:"flex-end"}]}),wp.element.createElement(E,{className:"wp-themesiel-blocks-button-group-components-toolbar"},wp.element.createElement(v,{contentClassName:"wp-themesiel-blocks-button-group-popover-content",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(k,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:n,"aria-haspopup":"true","aria-expanded":t,label:y("Typography Settings"),tooltip:y("Typography Settings")},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(M,null,wp.element.createElement(T,{label:y("Font Size"),value:t.fontSize,onChange:a,min:0,max:50}),wp.element.createElement(h.a,{label:y("Font Family"),value:t.fontFamily,onChangeFontFamily:l,isSelect:!0,valueVariant:t.fontVariant,onChangeFontVariant:o,valueStyle:t.fontStyle,onChangeFontStyle:r,valueTransform:t.textTransform,onChangeTextTransform:i}),wp.element.createElement(T,{label:y("Line Height"),value:t.lineHeight,onChange:c,min:0,max:200}))}})))},O=n(8),R=n(3),L=n(9),N=n(21),A=n(5);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var H=wp.i18n.__,_=lodash.times,D=wp.components,j=D.BaseControl,V=D.Button,F=D.ButtonGroup,G=D.Dashicon,W=D.Dropdown,q=D.MenuGroup,U=D.MenuItem,Z=D.Icon,$=D.PanelBody,Q=D.Placeholder,K=D.RangeControl,J=D.SelectControl,Y=D.Spinner,X=D.ToggleControl,ee=wp.blockEditor,te=ee.ColorPalette,ne=ee.InspectorControls,ae=wp.element,le=ae.Fragment,oe=ae.useState,re=React.lazy((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,108))})),ie=function(e){var t=e.attributes,n=e.setAttributes,l=e.selectedButton,o=e.wait,i=e.changeButtons,c=e.changeButton,d=e.updateButton,p=e.changeFontSize,m=e.changeFontFamily,s=e.changeFontVariant,u=e.changeFontStyle,b=e.changeTextTransform,g=e.changeLineHeight,f=I(oe("buttons"),2),y=f[0],w=f[1],v=I(oe(!1),2),k=v[0],T=v[1];return wp.element.createElement(ne,null,wp.element.createElement($,{className:"wp-block-themeisle-blocks-button-group-header-panel"},wp.element.createElement(V,{className:r()("header-tab",{"is-selected":"buttons"===y}),onClick:function(){return w("buttons")}},wp.element.createElement("span",null,wp.element.createElement(Z,{icon:a.d}),H("Buttons"))),wp.element.createElement(V,{className:r()("header-tab",{"is-selected":"group"===y}),onClick:function(){return w("group")}},wp.element.createElement("span",null,wp.element.createElement(G,{icon:"admin-generic"}),H("Group Settings")))),"buttons"===y&&wp.element.createElement(le,null,wp.element.createElement($,{opened:!0},wp.element.createElement(K,{label:H("Number of Buttons"),value:t.buttons,onChange:i,min:1,max:5}),wp.element.createElement(j,{label:H("Edit Button"),className:"wp-block-themeisle-blocks-select-button-container"},wp.element.createElement(W,{contentClassName:"wp-block-themeisle-blocks-select-button-popover",position:"bottom center",renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(V,{isLarge:!0,className:"wp-block-themeisle-blocks-select-button-button",onClick:a,"aria-expanded":n},H("Button")+" "+(l+1)+": "+Object(O.b)(t.data[l].text))},renderContent:function(e){var n=e.onToggle;return wp.element.createElement(q,null,_(t.buttons,(function(e){return wp.element.createElement(U,{onClick:function(){c(e),n()}},H("Button")+" "+(e+1)+": "+Object(O.b)(t.data[e].text))})))}}))),o?wp.element.createElement(Q,{className:"wp-themeisle-block-spinner"},wp.element.createElement(Y,null)):wp.element.createElement(le,null,wp.element.createElement($,{title:H("Link")},wp.element.createElement(N.a,{label:"Link",placeholder:H("https://…"),value:t.data[l].link,onChange:function(e){return d({link:e},l)}},wp.element.createElement(X,{label:"Open in New Tab?",checked:t.data[l].newTab,onChange:function(){return d({newTab:!t.data[l].newTab},l)}}))),wp.element.createElement($,{title:H("Color & Border"),initialOpen:!1},wp.element.createElement(F,{className:"wp-block-themeisle-blocks-button-group-hover-control"},wp.element.createElement(V,{isDefault:!0,isLarge:!0,isPrimary:!k,onClick:function(){return T(!1)}},H("Normal")),wp.element.createElement(V,{isDefault:!0,isLarge:!0,isPrimary:k,onClick:function(){return T(!0)}},H("Hover"))),k?wp.element.createElement(le,null,wp.element.createElement(R.a,{label:"Hover Color",colorValue:t.data[l].hoverColor},wp.element.createElement(te,{label:"Hover Color",value:t.data[l].hoverColor,onChange:function(e){return d({hoverColor:e},l)}})),wp.element.createElement(R.a,{label:"Hover Background",colorValue:t.data[l].hoverBackground},wp.element.createElement(te,{label:"Hover Background",value:t.data[l].hoverBackground,onChange:function(e){return d({hoverBackground:e},l)}})),wp.element.createElement(R.a,{label:"Hover Border",colorValue:t.data[l].hoverBorder},wp.element.createElement(te,{label:"Hover Border",value:t.data[l].hoverBorder,onChange:function(e){return d({hoverBorder:e},l)}}))):wp.element.createElement(le,null,wp.element.createElement(R.a,{label:"Color",colorValue:t.data[l].color},wp.element.createElement(te,{label:"Color",value:t.data[l].color,onChange:function(e){return d({color:e},l)}})),wp.element.createElement(R.a,{label:"Background",colorValue:t.data[l].background},wp.element.createElement(te,{label:"Background",value:t.data[l].background,onChange:function(e){return d({background:e},l)}})),wp.element.createElement(R.a,{label:"Border",colorValue:t.data[l].border},wp.element.createElement(te,{label:"Border",value:t.data[l].border,onChange:function(e){return d({border:e},l)}}))),wp.element.createElement(K,{label:H("Border Width"),className:"border-width",value:t.data[l].borderSize,onChange:function(e){return d({borderSize:e},l)},min:0,max:10}),wp.element.createElement(K,{label:H("Border Radius"),value:t.data[l].borderRadius,onChange:function(e){return d({borderRadius:e},l)},min:0,max:100})),wp.element.createElement($,{title:H("Box Shadow"),initialOpen:!1},wp.element.createElement(X,{label:"Box Shadow",checked:t.data[l].boxShadow,onChange:function(){return d({boxShadow:!t.data[l].boxShadow},l)}}),t.data[l].boxShadow&&wp.element.createElement(le,null,wp.element.createElement(F,{className:"wp-block-themeisle-blocks-button-group-hover-control"},wp.element.createElement(V,{isDefault:!0,isLarge:!0,isPrimary:!k,onClick:function(){return T(!1)}},H("Normal")),wp.element.createElement(V,{isDefault:!0,isLarge:!0,isPrimary:k,onClick:function(){return T(!0)}},H("Hover"))),!k&&wp.element.createElement(le,null,wp.element.createElement(R.a,{label:"Shadow Color",colorValue:t.data[l].boxShadowColor},wp.element.createElement(te,{label:"Shadow Color",value:t.data[l].boxShadowColor,onChange:function(e){return d({boxShadowColor:e},l)}})),wp.element.createElement(L.a,{label:"Shadow Properties"},wp.element.createElement(K,{label:H("Opacity"),value:t.data[l].boxShadowColorOpacity,onChange:function(e){return d({boxShadowColorOpacity:e},l)},min:0,max:100}),wp.element.createElement(K,{label:H("Blur"),value:t.data[l].boxShadowBlur,onChange:function(e){return d({boxShadowBlur:e},l)},min:0,max:100}),wp.element.createElement(K,{label:H("Spread"),value:t.data[l].boxShadowSpread,onChange:function(e){return d({boxShadowSpread:e},l)},min:-100,max:100}),wp.element.createElement(K,{label:H("Horizontal"),value:t.data[l].boxShadowHorizontal,onChange:function(e){return d({boxShadowHorizontal:e},l)},min:-100,max:100}),wp.element.createElement(K,{label:H("Vertical"),value:t.data[l].boxShadowVertical,onChange:function(e){return d({boxShadowVertical:e},l)},min:-100,max:100})))||k&&wp.element.createElement(le,null,wp.element.createElement(R.a,{label:"Hover Shadow Color",colorValue:t.data[l].hoverBoxShadowColor},wp.element.createElement(te,{label:"Hover Shadow Color",value:t.data[l].hoverBoxShadowColor,onChange:function(e){return d({hoverBoxShadowColor:e},l)}})),wp.element.createElement(L.a,{label:"Hover Shadow Properties"},wp.element.createElement(K,{label:H("Opacity"),value:t.data[l].hoverBoxShadowColorOpacity,onChange:function(e){return d({hoverBoxShadowColorOpacity:e},l)},min:0,max:100}),wp.element.createElement(K,{label:H("Blur"),value:t.data[l].hoverBoxShadowBlur,onChange:function(e){return d({hoverBoxShadowBlur:e},l)},min:0,max:100}),wp.element.createElement(K,{label:H("Spread"),value:t.data[l].hoverBoxShadowSpread,onChange:function(e){return d({hoverBoxShadowSpread:e},l)},min:-100,max:100}),wp.element.createElement(K,{label:H("Horizontal"),value:t.data[l].hoverBoxShadowHorizontal,onChange:function(e){return d({hoverBoxShadowHorizontal:e},l)},min:-100,max:100}),wp.element.createElement(K,{label:H("Vertical"),value:t.data[l].hoverBoxShadowVertical,onChange:function(e){return d({hoverBoxShadowVertical:e},l)},min:-100,max:100}))))),wp.element.createElement($,{title:H("Icon Settings"),initialOpen:!1},wp.element.createElement(J,{label:H("Icon Position"),value:t.data[l].iconType,options:[{label:"No Icon",value:"none"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Icon Only",value:"only"}],onChange:function(e){return d({iconType:e},l)}}),"none"!==t.data[l].iconType&&wp.element.createElement(le,null,wp.element.createElement(React.Suspense,{fallback:wp.element.createElement(Q,{className:"wp-themeisle-block-spinner"},wp.element.createElement(Y,null))},wp.element.createElement(re,{label:H("Icon Picker"),prefix:t.data[l].prefix,icon:t.data[l].icon,onChange:function(e){"object"===z(e)?d({icon:e.name,prefix:e.prefix},l):d({icon:e},l)}})))),wp.element.createElement($,{title:H("Spacing"),initialOpen:!1},wp.element.createElement(A.a,{label:H("Padding"),min:0,max:100,onChange:function(e,t){return function(e,t,n){"top"!==e&&"bottom"!==e||d({paddingTopBottom:t},n),"left"!==e&&"right"!==e||d({paddingLeftRight:t},n)}(e,t,l)},options:[{label:H("Top"),type:"top",value:t.data[l].paddingTopBottom},{label:H("Right"),type:"right",value:t.data[l].paddingLeftRight},{label:H("Bottom"),type:"bottom",value:t.data[l].paddingTopBottom},{label:H("Left"),type:"left",value:t.data[l].paddingLeftRight}]}))))||"group"===y&&wp.element.createElement(le,null,wp.element.createElement($,{title:H("Spacing")},wp.element.createElement(K,{label:H("Spacing"),value:t.spacing,onChange:function(e){n({spacing:e})},min:0,max:50}),wp.element.createElement(J,{label:H("Collapse On"),value:t.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){n({collapse:e})}})),wp.element.createElement($,{title:H("Typography Settings"),initialOpen:!1},wp.element.createElement(K,{label:H("Font Size"),value:t.fontSize,onChange:p,min:0,max:50}),wp.element.createElement(h.a,{label:H("Font Family"),value:t.fontFamily,onChangeFontFamily:m,valueVariant:t.fontVariant,onChangeFontVariant:s,valueStyle:t.fontStyle,onChangeFontStyle:u,valueTransform:t.textTransform,onChangeTextTransform:b}),wp.element.createElement(K,{label:H("Line Height"),value:t.lineHeight,onChange:g,min:0,max:200}))))},ce=n(7),de=n.n(ce);function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var be=wp.i18n.__,ge=wp.blockEditor.RichText,fe=wp.element,he=fe.Fragment,ye=fe.useState,we=function(e){var t=e.index,n=e.attributes,a=e.changeButton,l=e.updateButton,o=se(ye((function(){return 0===t})),2),i=o[0],c=o[1],d={};n.data[t].boxShadow&&(d={boxShadow:"".concat(n.data[t].boxShadowHorizontal,"px ").concat(n.data[t].boxShadowVertical,"px ").concat(n.data[t].boxShadowBlur,"px ").concat(n.data[t].boxShadowSpread,"px ").concat(de()(n.data[t].boxShadowColor?n.data[t].boxShadowColor:"#000000",n.data[t].boxShadowColorOpacity))});var p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach((function(t){me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily,fontWeight:n.fontVariant,fontStyle:n.fontStyle,textTransform:n.textTransform,lineHeight:n.lineHeight&&"".concat(n.lineHeight,"px"),color:n.data[t].color,background:n.data[t].background,border:"".concat(n.data[t].borderSize,"px solid ").concat(n.data[t].border),borderRadius:"".concat(n.data[t].borderRadius,"px"),paddingTop:"".concat(n.data[t].paddingTopBottom,"px"),paddingBottom:"".concat(n.data[t].paddingTopBottom,"px"),paddingLeft:"".concat(n.data[t].paddingLeftRight,"px"),paddingRight:"".concat(n.data[t].paddingLeftRight,"px"),marginLeft:0===t?"0px":"".concat(n.spacing/2,"px"),marginRight:n.buttons===t+1?"0px":"".concat(n.spacing/2,"px")},d);return wp.element.createElement(he,null,wp.element.createElement("style",null,"#".concat(n.id," .wp-block-themeisle-blocks-button-").concat(t,":hover {\n\t\t\t\t\tcolor: ").concat(n.data[t].hoverColor?n.data[t].hoverColor:n.data[t].color," !important;\n\t\t\t\t\tbackground: ").concat(n.data[t].hoverBackground?n.data[t].hoverBackground:n.data[t].background," !important;\n\t\t\t\t\tborder: ").concat(n.data[t].borderSize,"px solid ").concat(n.data[t].hoverBorder?n.data[t].hoverBorder:n.data[t].border," !important;\n\t\t\t\t\t").concat(n.data[t].boxShadow?"box-shadow: ".concat(n.data[t].hoverBoxShadowHorizontal,"px ").concat(n.data[t].hoverBoxShadowVertical,"px ").concat(n.data[t].hoverBoxShadowBlur,"px ").concat(n.data[t].hoverBoxShadowSpread,"px ").concat(de()(n.data[t].hoverBoxShadowColor?n.data[t].hoverBoxShadowColor:"#000000",n.data[t].hoverBoxShadowColorOpacity)," !important;"):"","\n\t\t\t\t}")),wp.element.createElement("div",{style:p,className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(t),"wp-block-button__link"),onClick:function(){c(!0),a(t)},onBlur:function(){return c(!1)}},("left"===n.data[t].iconType||"only"===n.data[t].iconType)&&wp.element.createElement("i",{className:r()(n.data[t].prefix,"fa-fw","fa-".concat(n.data[t].icon),{"margin-right":"left"===n.data[t].iconType})}),"only"!==n.data[t].iconType&&wp.element.createElement(ge,{placeholder:be("Add text…"),value:n.data[t].text,onChange:function(e){return l({text:e},t)},tagName:"div",keepPlaceholderOnFocus:i,withoutInteractiveFormatting:!0}),"right"===n.data[t].iconType&&wp.element.createElement("i",{className:"".concat(n.data[t].prefix," fa-fw fa-").concat(n.data[t].icon," margin-left")})))};function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||Te(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e){return function(e){if(Array.isArray(e))return Ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Te(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){if(e){if("string"==typeof e)return Ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ee(e,t):void 0}}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Me=wp.i18n.__,Be=lodash,Oe=Be.isEqual,Re=Be.omit,Le=Be.pick,Ne=Be.times,Ae=wp.components.IconButton,ze=wp.element,Ie=ze.Fragment,Pe=ze.useEffect,He=ze.useState,_e=[],De=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.name,i=e.isSelected,c=e.clientId;Pe((function(){d()}),[]);var d=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));if(void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&!Oe(f.a[o],window.themeisleGutenberg.globalDefaults[o])){a=Re(Ce({},window.themeisleGutenberg.globalDefaults[o]),"data"),Object.keys(a).map((function(e){if(t[e]!==a[e]&&(void 0!==l[e].default||void 0!==l[e].default&&t[e]!==l[e].default))return delete a[e]}));var i=Le(Ce({},window.themeisleGutenberg.globalDefaults[o]),"data"),d=[];t.data.forEach((function(e,t){var n=Ce({},i.data);Object.keys(n).map((function(a){if(e[a]!==n[a]&&(void 0===l.data.default[t][a]||void 0!==l.data.default[t][a]&&e[a]!==l.data.default[t][a]))return delete n[a]})),d.push(Ce({},e,{},n))})),Oe(d,t.data)||(a.data=d)}n(Ce({},a,{id:r})),_e.push(r),e.push(r)}else if(_e.includes(t.id)){var p="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));n({id:p}),_e.push(p)}else _e.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=ke(e)},p=ve(He(0),2),m=p[0],s=p[1],u=ve(He(!1),2),b=u[0],h=u[1],y=function(e){s(e),h(!0),setTimeout((function(){h(!1)}),500)},w=function(e){if(1<=e&&5>=e){if(t.data.length<e){var a=ke(t.data);Ne(e-t.data.length,(function(){a.push({text:t.data[0].text,link:t.data[0].link,newTab:t.data[0].newTab,color:t.data[0].color,border:t.data[0].border,background:t.data[0].background,hoverColor:t.data[0].hoverColor,hoverBackground:t.data[0].hoverBackground,hoverBorder:t.data[0].hoverBorder,borderSize:t.data[0].borderSize,borderRadius:t.data[0].borderRadius,boxShadow:t.data[0].boxShadow,boxShadowColor:t.data[0].boxShadowColor,boxShadowColorOpacity:t.data[0].boxShadowColorOpacity,boxShadowBlur:t.data[0].boxShadowBlur,boxShadowSpread:t.data[0].boxShadowSpread,boxShadowHorizontal:t.data[0].boxShadowHorizontal,boxShadowVertical:t.data[0].boxShadowVertical,hoverBoxShadowColor:t.data[0].hoverBoxShadowColor,hoverBoxShadowColorOpacity:t.data[0].hoverBoxShadowColorOpacity,hoverBoxShadowBlur:t.data[0].hoverBoxShadowBlur,hoverBoxShadowSpread:t.data[0].hoverBoxShadowSpread,hoverBoxShadowHorizontal:t.data[0].hoverBoxShadowHorizontal,hoverBoxShadowVertical:t.data[0].hoverBoxShadowVertical,iconType:t.data[0].iconType,prefix:t.data[0].prefix,icon:t.data[0].icon,paddingTopBottom:t.data[0].paddingTopBottom,paddingLeftRight:t.data[0].paddingLeftRight})})),n({data:a})}n({buttons:e}),s(0)}},v=function(e){n({fontSize:e})},k=function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},T=function(e){n({fontVariant:e})},E=function(e){n({fontStyle:e})},x=function(e){n({textTransform:e})},C=function(e){n({lineHeight:e})},S=function(e,a){var l=t.data.map((function(t,n){return a===n&&(t=Ce({},t,{},e)),t}));n({data:l})},M="collapse-none"!==t.collapse?t.collapse:"";return wp.element.createElement(Ie,null,t.fontFamily&&wp.element.createElement(g.a,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&["".concat(t.fontVariant+("italic"===t.fontStyle?":i":""))]}]}),wp.element.createElement(B,{attributes:t,setAttributes:n,changeFontSize:v,changeFontFamily:k,changeFontVariant:T,changeFontStyle:E,changeTextTransform:x,changeLineHeight:C}),wp.element.createElement(ie,{attributes:t,setAttributes:n,selectedButton:m,wait:b,changeButtons:w,changeButton:y,updateButton:S,changeFontSize:v,changeFontFamily:k,changeFontVariant:T,changeFontStyle:E,changeTextTransform:x,changeLineHeight:C}),wp.element.createElement("div",{id:t.id,className:r()(a,M,"wp-block-button"),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},Ne(t.buttons,(function(e){return wp.element.createElement(we,{index:e,attributes:t,isSelected:i,changeButton:y,updateButton:S})})),i&&4>=t.buttons&&wp.element.createElement(Ae,{className:"wp-block-themeisle-blocks-button-inserter",icon:"plus-alt",onClick:function(){return w(t.buttons+1)},label:Me("Add Button")})))},je=wp.blockEditor.RichText,Ve=wp.element.Fragment,Fe=function(e){var t=e.index,n=e.attributes;return wp.element.createElement(Ve,null,wp.element.createElement("a",{href:n.data[t].link,target:n.data[t].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(t),"wp-block-button__link"),rel:"noopener noreferrer"},("left"===n.data[t].iconType||"only"===n.data[t].iconType)&&wp.element.createElement("i",{className:r()(n.data[t].prefix,"fa-fw","fa-".concat(n.data[t].icon),{"margin-right":"left"===n.data[t].iconType})}),"only"!==n.data[t].iconType&&wp.element.createElement(je.Content,{tagName:"span",value:n.data[t].text}),"right"===n.data[t].iconType&&wp.element.createElement("i",{className:"".concat(n.data[t].prefix," fa-fw fa-").concat(n.data[t].icon," margin-left")})))},Ge=lodash.times,We=function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse&&t.collapse;return wp.element.createElement("div",{id:t.id,className:r()(n,a,"wp-block-button")},Ge(t.buttons,(function(e){return wp.element.createElement(Fe,{index:e,attributes:t})})))},qe=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/button-group",{title:qe("Button Group"),description:qe("Prompt visitors to take action with a button group."),icon:a.d,category:"themeisle-blocks",keywords:[qe("buttons"),qe("button group"),qe("advanced buttons")],attributes:l,deprecated:u,edit:De,save:We})},function(e,t,n){"use strict";n.r(t);n(40);var a=n(2);n(41);function l(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var r=e.apply(t,n);function i(e){l(r,a,o,i,c,"next",e)}function c(e){l(r,a,o,i,c,"throw",e)}i(void 0)}))}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=wp.i18n.__,d=wp.blocks.getBlockType,p=wp.components,m=p.Button,s=p.Icon,u=p.Modal,b=wp.element,g=b.Fragment,f=b.useState,h=function(e){var t=e.blockName,n=e.saveConfig,a=e.resetConfig,l=e.children,i=d(t),p=r(f(!1),2),b=p[0],h=p[1],y=r(f(!1),2),w=y[0],v=y[1];return i?wp.element.createElement(g,null,wp.element.createElement(m,{className:"wp-block-themeisle-blocks-options-global-defaults-list-item block-editor-block-types-list__item",onClick:function(){return h(!0)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-icon"},wp.element.createElement(s,{icon:i.icon.src})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-title"},i.title)),b&&wp.element.createElement(u,{title:i.title,onRequestClose:function(){return h(!1)},shouldCloseOnClickOutside:!1,overlayClassName:"wp-block-themeisle-blocks-options-global-defaults-modal"},l,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions"},wp.element.createElement(m,{isLink:!0,isDestructive:!0,onClick:function(){return a(t)}},c("Reset")),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions-primary"},wp.element.createElement(m,{isDefault:!0,isLarge:!0,onClick:function(){return h(!1)}},c("Close")),wp.element.createElement(m,{isPrimary:!0,isLarge:!0,isBusy:w,onClick:o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(!0),e.next=3,n();case 3:v(!1);case 4:case"end":return e.stop()}}),e)})))},c("Save")))))):null},y=n(3),w=n(10),v=n(4),k=n(5);function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=wp.i18n.__,x=wp.blockEditor.ColorPalette,C=wp.components,S=C.PanelBody,M=C.RangeControl,B=C.SelectControl,O=wp.compose.compose,R=wp.data.withSelect,L=wp.element.Fragment,N=O(R((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=e.view,o=function(){var e;return"Desktop"===l&&(e=n.fontSize),"Tablet"===l&&(e=n.fontSizeTablet),"Mobile"===l&&(e=n.fontSizeMobile),e};o=o();var r=function(){var e;return"Desktop"===l&&(e=n.paddingType),"Tablet"===l&&(e=n.paddingTypeTablet),"Mobile"===l&&(e=n.paddingTypeMobile),e};r=r();var i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},c={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},d={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},p=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},m=function(){var e;return"Desktop"===l&&(e=n.marginType),"Tablet"===l&&(e=n.marginTypeTablet),"Mobile"===l&&(e=n.marginTypeMobile),e};m=m();var s={top:"marginTop",bottom:"marginBottom"},u={top:"marginTopTablet",bottom:"marginBottomTablet"},b={top:"marginTopMobile",bottom:"marginBottomMobile"},g=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t};return wp.element.createElement(L,null,wp.element.createElement(S,{title:E("General Settings")},wp.element.createElement(B,{label:E("HTML Tag"),value:n.tag,options:[{label:E("Heading 1"),value:"h1"},{label:E("Heading 2"),value:"h2"},{label:E("Heading 3"),value:"h3"},{label:E("Heading 4"),value:"h4"},{label:E("Heading 5"),value:"h5"},{label:E("Heading 6"),value:"h6"},{label:E("Division"),value:"div"},{label:E("Paragraph"),value:"p"},{label:E("Span"),value:"span"}],onChange:function(e){return a(t,{tag:e})}}),wp.element.createElement(y.a,{label:"Heading Color",colorValue:n.headingColor},wp.element.createElement(x,{value:n.headingColor,onChange:function(e){return a(t,{headingColor:e})}})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Font Size"},wp.element.createElement(M,{value:o||"",onChange:function(e){"Desktop"===l&&a(t,{fontSize:e}),"Tablet"===l&&a(t,{fontSizeTablet:e}),"Mobile"===l&&a(t,{fontSizeMobile:e})},min:1,max:500}))),wp.element.createElement(S,{title:E("Typography Settings"),initialOpen:!1},wp.element.createElement(w.a,{label:E("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(M,{label:E("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200}),wp.element.createElement("hr",null),wp.element.createElement(M,{label:E("Letter Spacing"),value:n.letterSpacing||"",onChange:function(e){return a(t,{letterSpacing:e})},min:-50,max:100})),wp.element.createElement(S,{title:E("Spacing"),initialOpen:!1},wp.element.createElement(v.a,{label:"Padding"},wp.element.createElement(k.a,{type:r,min:0,max:500,changeType:function(e){"Desktop"===l&&a(t,{paddingType:e}),"Tablet"===l&&a(t,{paddingTypeTablet:e}),"Mobile"===l&&a(t,{paddingTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.paddingType?a(t,{padding:o}):a(t,T({},i[e],o))),"Tablet"===l&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:o}):a(t,T({},c[e],o))),"Mobile"===l&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:o}):a(t,T({},d[e],o)))},options:[{label:E("Top"),type:"top",value:p("top")},{label:E("Right"),type:"right",value:p("right")},{label:E("Bottom"),type:"bottom",value:p("bottom")},{label:E("Left"),type:"left",value:p("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Margin"},wp.element.createElement(k.a,{type:m,min:-500,max:500,changeType:function(e){"Desktop"===l&&a(t,{marginType:e}),"Tablet"===l&&a(t,{marginTypeTablet:e}),"Mobile"===l&&a(t,{marginTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.marginType?a(t,{margin:o}):a(t,T({},s[e],o))),"Tablet"===l&&("linked"===n.marginTypeTablet?a(t,{marginTablet:o}):a(t,T({},u[e],o))),"Mobile"===l&&("linked"===n.marginTypeMobile?a(t,{marginMobile:o}):a(t,T({},b[e],o)))},options:[{label:E("Top"),type:"top",value:g("top")},{label:E("Right"),disabled:!0},{label:E("Bottom"),type:"bottom",value:g("bottom")},{label:E("Left"),disabled:!0}]}))))}));function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var I=wp.i18n.__,P=lodash.cloneDeep,H=wp.components,_=H.Button,D=H.ButtonGroup,j=H.PanelBody,V=H.RangeControl,F=H.SelectControl,G=wp.blockEditor.ColorPalette,W=wp.element,q=W.Fragment,U=W.useState,Z=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=A(U(!1),2),o=l[0],r=l[1],i=function(e,l){var o=P(n.data);o[e]=l,a(t,{data:o})};return wp.element.createElement(q,null,wp.element.createElement(j,{title:I("Color & Border")},wp.element.createElement(D,{className:"wp-block-themeisle-blocks-button-group-hover-control"},wp.element.createElement(_,{isDefault:!0,isLarge:!0,isPrimary:!o,onClick:function(){return r(!1)}},I("Normal")),wp.element.createElement(_,{isDefault:!0,isLarge:!0,isPrimary:o,onClick:function(){return r(!0)}},I("Hover"))),o?wp.element.createElement(q,null,wp.element.createElement(y.a,{label:"Hover Color",colorValue:n.data.hoverColor},wp.element.createElement(G,{label:"Hover Color",value:n.data.hoverColor,onChange:function(e){return i("hoverColor",e)}})),wp.element.createElement("hr",null),wp.element.createElement(y.a,{label:"Hover Background",colorValue:n.data.hoverBackground},wp.element.createElement(G,{label:"Hover Background",value:n.data.hoverBackground,onChange:function(e){return i("hoverBackground",e)}})),wp.element.createElement("hr",null),wp.element.createElement(y.a,{label:"Hover Border",colorValue:n.data.hoverBorder},wp.element.createElement(G,{label:"Hover Border",value:n.data.hoverBorder,onChange:function(e){return i("hoverBorder",e)}}))):wp.element.createElement(q,null,wp.element.createElement(y.a,{label:"Color",colorValue:n.data.color},wp.element.createElement(G,{label:"Color",value:n.data.color,onChange:function(e){return i("color",e)}})),wp.element.createElement("hr",null),wp.element.createElement(y.a,{label:"Background",colorValue:n.data.background},wp.element.createElement(G,{label:"Background",value:n.data.background,onChange:function(e){return i("background",e)}})),wp.element.createElement("hr",null),wp.element.createElement(y.a,{label:"Border",colorValue:n.data.border},wp.element.createElement(G,{label:"Border",value:n.data.border,onChange:function(e){return i("border",e)}}))),wp.element.createElement("hr",null),wp.element.createElement(V,{label:I("Border Size"),value:n.data.borderSize||"",onChange:function(e){return i("borderSize",e)},min:0,max:10}),wp.element.createElement("hr",null),wp.element.createElement(V,{label:I("Border Radius"),value:n.data.borderRadius||"",onChange:function(e){return i("borderRadius",e)},min:0,max:100})),wp.element.createElement(j,{title:I("Spacing"),initialOpen:!1},wp.element.createElement(k.a,{label:I("Button Padding"),min:0,max:100,onChange:i,options:[{label:I("Top"),type:"paddingTopBottom",value:n.data.paddingTopBottom},{label:I("Right"),type:"paddingLeftRight",value:n.data.paddingLeftRight},{label:I("Bottom"),type:"paddingTopBottom",value:n.data.paddingTopBottom},{label:I("Left"),type:"paddingLeftRight",value:n.data.paddingLeftRight}]}),wp.element.createElement("hr",null),wp.element.createElement(V,{label:I("Group Spacing"),value:n.spacing,onChange:function(e){return a(t,{spacing:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(F,{label:I("Collapse On"),value:n.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){return a(t,{collapse:e})}})),wp.element.createElement(j,{title:I("Typography Settings"),initialOpen:!1},wp.element.createElement(V,{label:I("Font Size"),value:n.fontSize||"",onChange:function(e){return a(t,{fontSize:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(w.a,{label:I("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(V,{label:I("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200})))};function $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var K=wp.i18n.__,J=wp.components,Y=J.Button,X=J.ButtonGroup,ee=J.PanelBody,te=J.RangeControl,ne=wp.blockEditor,ae=ne.ColorPalette,le=ne.ContrastChecker,oe=wp.element,re=oe.Fragment,ie=oe.useState,ce=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=$(ie(!1),2),o=l[0],r=l[1];return wp.element.createElement(re,null,wp.element.createElement(ee,{title:K("Sizing")},wp.element.createElement(te,{label:K("Icon Size"),value:n.fontSize||"",initialPosition:16,onChange:function(e){return a(t,{fontSize:e})},min:12,max:140}),wp.element.createElement("hr",null),wp.element.createElement(te,{label:K("Padding"),value:n.padding||"",initialPosition:5,onChange:function(e){return a(t,{padding:e})},min:0,max:100}),wp.element.createElement("hr",null),wp.element.createElement(te,{label:K("Margin"),value:n.margin||"",initialPosition:5,onChange:function(e){return a(t,{margin:e})},min:0,max:100})),wp.element.createElement(ee,{title:K("Color"),initialOpen:!1},wp.element.createElement(X,{className:"wp-block-themeisle-blocks-font-awesome-icons-hover-control"},wp.element.createElement(Y,{isDefault:!0,isLarge:!0,isPrimary:!o,onClick:function(){return r(!1)}},K("Normal")),wp.element.createElement(Y,{isDefault:!0,isLarge:!0,isPrimary:o,onClick:function(){return r(!0)}},K("Hover"))),o?wp.element.createElement(re,null,wp.element.createElement(y.a,{label:"Hover Background",colorValue:n.backgroundColorHover},wp.element.createElement(ae,{label:"Hover Background",value:n.backgroundColorHover,onChange:function(e){return a(t,{backgroundColorHover:e})}})),wp.element.createElement(y.a,{label:"Hover Icon",colorValue:n.textColorHover},wp.element.createElement(ae,{label:"Hover Icon",value:n.textColorHover,onChange:function(e){return a(t,{textColorHover:e})}})),wp.element.createElement(le,{textColor:n.textColorHover,backgroundColor:n.backgroundColorHover})):wp.element.createElement(re,null,wp.element.createElement(y.a,{label:"Background",colorValue:n.backgroundColor},wp.element.createElement(ae,{label:"Background",value:n.backgroundColor,onChange:function(e){return a(t,{backgroundColor:e})}})),wp.element.createElement(y.a,{label:"Icon",colorValue:n.textColor},wp.element.createElement(ae,{label:"Icon",value:n.textColor,onChange:function(e){return a(t,{textColor:e})}})),wp.element.createElement(le,{textColor:n.textColor,backgroundColor:n.backgroundColor}))))};function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pe=wp.i18n.__,me=wp.components,se=me.BaseControl,ue=me.Button,be=me.ButtonGroup,ge=me.Icon,fe=me.IconButton,he=me.PanelBody,ye=me.RangeControl,we=me.SelectControl,ve=me.ToggleControl,ke=me.Tooltip,Te=wp.compose.compose,Ee=wp.data.withSelect,xe=wp.element.Fragment,Ce=Te(Ee((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.blockName,n=e.defaults,l=e.changeConfig,o=e.view,r=function(){var e;return"Desktop"===o&&(e=n.paddingType),"Tablet"===o&&(e=n.paddingTypeTablet),"Mobile"===o&&(e=n.paddingTypeMobile),e};r=r();var i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},c={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},d={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},p=function(e){var t;return"top"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},m=function(){var e;return"Desktop"===o&&(e=n.marginType),"Tablet"===o&&(e=n.marginTypeTablet),"Mobile"===o&&(e=n.marginTypeMobile),e};m=m();var s={top:"marginTop",bottom:"marginBottom"},u={top:"marginTopTablet",bottom:"marginBottomTablet"},b={top:"marginTopMobile",bottom:"marginBottomMobile"},g=function(e){var t;return"top"==e&&("Desktop"===o&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===o&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===o&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("Desktop"===o&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===o&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===o&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t},f=function(e){if(n.horizontalAlign===e)return l(t,{horizontalAlign:"unset"});l(t,{horizontalAlign:e})},h=function(){var e;return"Desktop"===o&&(e=n.columnsHeightCustom),"Tablet"===o&&(e=n.columnsHeightCustomTablet),"Mobile"===o&&(e=n.columnsHeightCustomMobile),e};h=h();var y=function(e){if(n.verticalAlign===e)return l(t,{verticalAlign:"unset"});l(t,{verticalAlign:e})};return wp.element.createElement(xe,null,wp.element.createElement(he,{title:pe("Sizing")},wp.element.createElement(we,{label:pe("Columns Gap"),value:n.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){return l(t,{columnsGap:e})}}),wp.element.createElement(v.a,{label:"Padding"},wp.element.createElement(k.a,{type:r,min:0,max:500,changeType:function(e){"Desktop"===o&&l(t,{paddingType:e}),"Tablet"===o&&l(t,{paddingTypeTablet:e}),"Mobile"===o&&l(t,{paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===o&&("linked"===n.paddingType?l(t,{padding:a}):l(t,de({},i[e],a))),"Tablet"===o&&("linked"===n.paddingTypeTablet?l(t,{paddingTablet:a}):l(t,de({},c[e],a))),"Mobile"===o&&("linked"===n.paddingTypeMobile?l(t,{paddingMobile:a}):l(t,de({},d[e],a)))},options:[{label:pe("Top"),type:"top",value:p("top")},{label:pe("Right"),type:"right",value:p("right")},{label:pe("Bottom"),type:"bottom",value:p("bottom")},{label:pe("Left"),type:"left",value:p("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Margin"},wp.element.createElement(k.a,{type:m,min:-500,max:500,changeType:function(e){"Desktop"===o&&l(t,{marginType:e}),"Tablet"===o&&l(t,{marginTypeTablet:e}),"Mobile"===o&&l(t,{marginTypeMobile:e})},onChange:function(e,a){"Desktop"===o&&("linked"===n.marginType?l(t,{margin:a}):l(t,de({},s[e],a))),"Tablet"===o&&("linked"===n.marginTypeTablet?l(t,{marginTablet:a}):l(t,de({},u[e],a))),"Mobile"===o&&("linked"===n.marginTypeMobile?l(t,{marginMobile:a}):l(t,de({},b[e],a)))},options:[{label:pe("Top"),type:"top",value:g("top")},{label:pe("Right"),disabled:!0},{label:pe("Bottom"),type:"bottom",value:g("bottom")},{label:pe("Left"),disabled:!0}]}))),wp.element.createElement(he,{title:pe("Section Structure"),initialOpen:!1},wp.element.createElement(we,{label:pe("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return l(t,{columnsHTMLTag:e})}}),wp.element.createElement("hr",null),wp.element.createElement(ye,{label:pe("Maximum Content Width"),value:n.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&l(t,{columnsWidth:e})},min:0,max:1200}),wp.element.createElement("hr",null),n.columnsWidth&&wp.element.createElement(xe,null,wp.element.createElement(se,{label:"Horizontal Align"},wp.element.createElement(be,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(ke,{text:pe("Left")},wp.element.createElement(fe,{icon:"editor-alignleft",className:"is-button is-large",isPrimary:"flex-start"===n.horizontalAlign,onClick:function(){return f("flex-start")}})),wp.element.createElement(ke,{text:pe("Center")},wp.element.createElement(fe,{icon:"editor-aligncenter",className:"is-button is-large",isPrimary:"center"===n.horizontalAlign,onClick:function(){return f("center")}})),wp.element.createElement(ke,{text:pe("Right")},wp.element.createElement(fe,{icon:"editor-alignright",className:"is-button is-large",isPrimary:"flex-end"===n.horizontalAlign,onClick:function(){return f("flex-end")}})))),wp.element.createElement("hr",null)),wp.element.createElement(we,{label:pe("Minimum Height"),value:n.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){return l(t,{columnsHeight:e})}}),wp.element.createElement("hr",null),"custom"===n.columnsHeight&&wp.element.createElement(xe,null,wp.element.createElement(v.a,{label:"Custom Height"},wp.element.createElement(ye,{value:h||"",onChange:function(e){"Desktop"===o&&l(t,{columnsHeightCustom:e}),"Tablet"===o&&l(t,{columnsHeightCustomTablet:e}),"Mobile"===o&&l(t,{columnsHeightCustomMobile:e})},min:0,max:1e3})),wp.element.createElement("hr",null)),wp.element.createElement(se,{label:"Vertical Align"},wp.element.createElement(be,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(ke,{text:pe("Top")},wp.element.createElement(ue,{className:"components-icon-button is-button is-large",isPrimary:"flex-start"===n.verticalAlign,onClick:function(){return y("flex-start")}},wp.element.createElement(ge,{icon:a.t,size:20}))),wp.element.createElement(ke,{text:pe("Middle")},wp.element.createElement(ue,{className:"components-icon-button is-button is-large",isPrimary:"center"===n.verticalAlign,onClick:function(){return y("center")}},wp.element.createElement(ge,{icon:a.k,size:20}))),wp.element.createElement(ke,{text:pe("Bottom")},wp.element.createElement(ue,{className:"components-icon-button is-button is-large",isPrimary:"flex-end"===n.verticalAlign,onClick:function(){return y("flex-end")}},wp.element.createElement(ge,{icon:a.c,size:20})))))),wp.element.createElement(he,{title:pe("Responsive"),initialOpen:!1},wp.element.createElement(ve,{label:"Hide this section in Desktop devices?",checked:n.hide,onChange:function(e){return l(t,{hide:e})}}),wp.element.createElement(ve,{label:"Hide this section in Tablet devices?",checked:n.hideTablet,onChange:function(e){return l(t,{hideTablet:e})}}),wp.element.createElement(ve,{label:"Hide this section in Mobile devices?",checked:n.hideMobile,onChange:function(e){return l(t,{hideMobile:e})}})))}));function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Me=wp.i18n.__,Be=wp.components,Oe=Be.PanelBody,Re=Be.SelectControl,Le=wp.compose.compose,Ne=wp.data.withSelect,Ae=wp.element.Fragment,ze=Le(Ne((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=e.view,o=function(){var e;return"Desktop"===l&&(e=n.paddingType),"Tablet"===l&&(e=n.paddingTypeTablet),"Mobile"===l&&(e=n.paddingTypeMobile),e};o=o();var r={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},i={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},c={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},d=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},p=function(){var e;return"Desktop"===l&&(e=n.marginType),"Tablet"===l&&(e=n.marginTypeTablet),"Mobile"===l&&(e=n.marginTypeMobile),e};p=p();var m={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},s={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},u={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},b=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginRight),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginRightTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginLeft),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginLeftTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginLeftMobile)),t};return wp.element.createElement(Ae,null,wp.element.createElement(Oe,{title:Me("Sizing")},wp.element.createElement(v.a,{label:"Padding"},wp.element.createElement(k.a,{type:o,min:0,max:500,changeType:function(e){"Desktop"===l&&a(t,{paddingType:e}),"Tablet"===l&&a(t,{paddingTypeTablet:e}),"Mobile"===l&&a(t,{paddingTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.paddingType?a(t,{padding:o}):a(t,Se({},r[e],o))),"Tablet"===l&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:o}):a(t,Se({},i[e],o))),"Mobile"===l&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:o}):a(t,Se({},c[e],o)))},options:[{label:Me("Top"),type:"top",value:d("top")},{label:Me("Right"),type:"right",value:d("right")},{label:Me("Bottom"),type:"bottom",value:d("bottom")},{label:Me("Left"),type:"left",value:d("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Margin"},wp.element.createElement(k.a,{type:p,min:-500,max:500,changeType:function(e){"Desktop"===l&&a(t,{marginType:e}),"Tablet"===l&&a(t,{marginTypeTablet:e}),"Mobile"===l&&a(t,{marginTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.marginType?a(t,{margin:o}):a(t,Se({},m[e],o))),"Tablet"===l&&("linked"===n.marginTypeTablet?a(t,{marginTablet:o}):a(t,Se({},s[e],o))),"Mobile"===l&&("linked"===n.marginTypeMobile?a(t,{marginMobile:o}):a(t,Se({},u[e],o)))},options:[{label:Me("Top"),type:"top",value:b("top")},{label:Me("Right"),type:"right",value:b("right")},{label:Me("Bottom"),type:"bottom",value:b("bottom")},{label:Me("Left"),type:"left",value:b("left")}]}))),wp.element.createElement(Oe,{title:Me("Section Settings"),initialOpen:!1},wp.element.createElement(Re,{label:Me("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return a(t,{columnsHTMLTag:e})}})))})),Ie=wp.i18n.__,Pe=wp.components.PanelBody,He=function(e){var t=e.blockDefaults,n=e.changeConfig,a=e.resetConfig,l=e.saveConfig,o=[{name:"themeisle-blocks/advanced-heading",control:N},{name:"themeisle-blocks/button-group",control:Z},{name:"themeisle-blocks/font-awesome-icons",control:ce},{name:"themeisle-blocks/advanced-columns",control:Ce},{name:"themeisle-blocks/advanced-column",control:ze}];return wp.element.createElement(Pe,{title:"Global Defaults",className:"wp-block-themeisle-blocks-options-global-defaults"},Ie("With Global Defaults, you can set site-wide block defaults for Otter."),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list"},o.map((function(e){var o=e.control;return wp.element.createElement(h,{blockName:e.name,saveConfig:l,resetConfig:a},wp.element.createElement(o,{blockName:e.name,defaults:t[e.name],changeConfig:n}))}))))},_e=n(6);function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Ge(e){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function qe(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){We(o,a,l,r,i,"next",e)}function i(e){We(o,a,l,r,i,"throw",e)}r(void 0)}))}}var Ue=wp.i18n.__,Ze=lodash,$e=Ze.cloneDeep,Qe=Ze.isEqual,Ke=Ze.merge,Je=wp.apiFetch,Ye=wp.components,Xe=Ye.PanelBody,et=Ye.Snackbar,tt=Ye.ToggleControl,nt=wp.data.withDispatch,at=wp.element,lt=at.Fragment,ot=at.useEffect,rt=at.useRef,it=at.useState,ct=wp.editPost,dt=ct.PluginSidebar,pt=ct.PluginSidebarMoreMenuItem,mt=nt((function(e){return{createNotice:e("core/notices").createNotice}}))((function(e){var t=e.createNotice;ot(qe(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Je({path:"wp/v2/users/me?context=edit"});case 2:if(!e.sent.capabilities.manage_options){e.next=8;break}return l(!0),e.next=7,wp.api.loadPromise.then((function(){b.current=new wp.api.models.Settings}));case 7:!1===r&&b.current.fetch().then((function(e){if(u(Boolean(e.themeisle_blocks_settings_default_block)),""!==e.themeisle_blocks_settings_global_defaults){var t=$e(_e.a);"object"===Ge(window.themeisleGutenberg.themeDefaults)&&(t=Ke(t,window.themeisleGutenberg.themeDefaults)),t=Ke(t,JSON.parse(e.themeisle_blocks_settings_global_defaults)),window.themeisleGutenberg.globalDefaults=JSON.parse(e.themeisle_blocks_settings_global_defaults),p(t)}else{var n=$e(_e.a);"object"===Ge(window.themeisleGutenberg.themeDefaults)&&(n=Ke(n,window.themeisleGutenberg.themeDefaults)),window.themeisleGutenberg.globalDefaults={},p(n)}i(!1)}));case 8:case"end":return e.stop()}}),e)}))),[]);var n=Ve(it(!1),2),a=n[0],l=n[1],o=Ve(it(!1),2),r=o[0],i=o[1],c=Ve(it({}),2),d=c[0],p=c[1],m=Ve(it(!1),2),s=m[0],u=m[1],b=rt(null),g=function(e){et&&t("info",e,{isDismissible:!0,type:"snackbar"})},f=function(){var e=qe(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=$e(d),Object.keys(t).forEach((function(e){Object.keys(t[e]).forEach((function(n){(void 0!==_e.a[e][n]&&t[e][n]===_e.a[e][n]||"object"===Ge(t[e][n])&&Qe(t[e][n],_e.a[e][n]))&&delete t[e][n]}))})),n=new wp.api.models.Settings({themeisle_blocks_settings_global_defaults:JSON.stringify(t)}),e.next=5,n.save().then((function(){window.themeisleGutenberg.globalDefaults=t,g(Ue("Option updated."))}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return wp.element.createElement(lt,null,a&&wp.element.createElement(pt,{target:"wp-block-themeisle-blocks-options"},Ue("Otter Options")),wp.element.createElement(dt,{title:Ue("Otter Options"),name:"wp-block-themeisle-blocks-options"},wp.element.createElement(Xe,{className:"wp-block-themeisle-blocks-options-general"},wp.element.createElement(tt,{label:Ue("Make Section block your default block for Pages?"),checked:s,onChange:function(){new wp.api.models.Settings({themeisle_blocks_settings_default_block:!Boolean(s)}).save().then((function(e){u(Boolean(e.themeisle_blocks_settings_default_block)),g(Ue("Option updated."))}))}})),wp.element.createElement(He,{blockDefaults:d,changeConfig:function(e,t){var n=$e(d);for(var a in t)n[e][a]=t[a];p(n)},resetConfig:function(e){var t=$e(d),n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},_e.a[e]);t[e]=n,p(t)},saveConfig:f})))})),st=(n(46),n(47),wp.components.Icon),ut=wp.element.Fragment;(0,wp.plugins.registerPlugin)("themeisle-blocks",{icon:wp.element.createElement(st,{icon:a.m}),render:function(){return wp.element.createElement(ut,null,wp.element.createElement(mt,null))}})},function(e,t,n){"use strict";n.r(t);n(50),n(51),n(52);var a=n(2),l={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"},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"}},o=n(0),r=n.n(o),i=n(7),c=n.n(i);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=wp.blockEditor.RichText,s=[{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:function(e){var t,n=e.attributes,a=e.className;n.textShadow&&(t={textShadow:"".concat(n.textShadowHorizontal,"px ").concat(n.textShadowVertical,"px ").concat(n.textShadowBlur,"px ").concat(c()(n.textShadowColor?n.textShadowColor:"#000000",n.textShadowColorOpacity))});var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({color:n.headingColor,fontFamily:n.fontFamily,fontWeight:"regular"===n.fontVariant?"normal":n.fontVariant,fontStyle:n.fontStyle,textTransform:n.textTransform,lineHeight:n.lineHeight&&"".concat(n.lineHeight,"px"),letterSpacing:n.letterSpacing&&"".concat(n.letterSpacing,"px")},t);return wp.element.createElement(m.Content,{tagName:n.tag,value:n.content,id:n.id,className:r()(n.id,a),style:l})}}],u=wp.blocks.createBlock,b={from:[{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return u("themeisle-blocks/advanced-heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return u("themeisle-blocks/advanced-heading",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return u("core/paragraph",{content:t})}}]},g=n(19),f=n.n(g),h=n(6),y=n(10),w=wp.i18n.__,v=wp.components,k=v.Dropdown,T=v.DropdownMenu,E=v.IconButton,x=v.RangeControl,C=v.SVG,S=v.Toolbar,M=wp.blockEditor.BlockControls,B=wp.element.Fragment,O=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,r=e.changeTextTransform,i=e.changeLineHeight,c=e.changeLetterSpacing,d=function(e){return"h1"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1")):"h2"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2")):"h3"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3")):"h4"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4")):"h5"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5")):"h6"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6")):"div"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV")):"p"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{x:"0",y:"15"},"P")):"span"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN")):void 0},p=function(e){n({tag:e})};return wp.element.createElement(M,null,wp.element.createElement(T,{icon:d(t.tag),label:w("Select tag"),className:"components-toolbar",controls:[{title:w("Heading 1"),icon:d("h1"),onClick:function(){return p("h1")}},{title:w("Heading 2"),icon:d("h2"),onClick:function(){return p("h2")}},{title:w("Heading 3"),icon:d("h3"),onClick:function(){return p("h3")}},{title:w("Heading 4"),icon:d("h4"),onClick:function(){return p("h4")}},{title:w("Heading 5"),icon:d("h5"),onClick:function(){return p("h5")}},{title:w("Heading 6"),icon:d("h6"),onClick:function(){return p("h6")}},{title:w("Division"),icon:d("div"),onClick:function(){return p("div")}},{title:w("Paragraph"),icon:d("p"),onClick:function(){return p("p")}},{title:w("Span Tag"),icon:d("span"),onClick:function(){return p("span")}}]}),wp.element.createElement(S,{className:"wp-themesiel-blocks-advanced-heading-components-toolbar"},wp.element.createElement(k,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(E,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:n,"aria-haspopup":"true","aria-expanded":t,label:w("Typography Settings"),tooltip:w("Typography Settings")},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(B,null,wp.element.createElement(y.a,{label:w("Font Family"),value:t.fontFamily,onChangeFontFamily:a,isSelect:!0,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:r}),wp.element.createElement(x,{label:w("Line Height"),value:t.lineHeight,onChange:i,min:0,max:200}),wp.element.createElement(x,{label:w("Letter Spacing"),value:t.letterSpacing,onChange:c,min:-50,max:100}))}})))},R=n(3),L=n(9),N=n(4),A=n(5),z=n(20);function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var _=wp.i18n.__,D=wp.blockEditor,j=D.AlignmentToolbar,V=D.ColorPalette,F=D.InspectorControls,G=wp.components,W=G.Button,q=G.Dashicon,U=G.PanelBody,Z=G.RangeControl,$=G.ToggleControl,Q=wp.compose.compose,K=wp.data.withSelect,J=wp.element,Y=J.Fragment,X=J.useState,ee=Q(K((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,i=e.changeTextTransform,c=e.changeLineHeight,d=e.changeLetterSpacing,p=e.view,m=P(X("style"),2),s=m[0],u=m[1],b=function(){var e;return"Desktop"===p&&(e=t.fontSize),"Tablet"===p&&(e=t.fontSizeTablet),"Mobile"===p&&(e=t.fontSizeMobile),e};b=b();var g=function(){var e;return"Desktop"===p&&(e=t.align),"Tablet"===p&&(e=t.alignTablet),"Mobile"===p&&(e=t.alignMobile),e};g=g();var f=function(){var e;return"Desktop"===p&&(e=t.paddingType),"Tablet"===p&&(e=t.paddingTypeTablet),"Mobile"===p&&(e=t.paddingTypeMobile),e};f=f();var h={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},w={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},v={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},k=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},T=function(){var e;return"Desktop"===p&&(e=t.marginType),"Tablet"===p&&(e=t.marginTypeTablet),"Mobile"===p&&(e=t.marginTypeMobile),e};T=T();var E={top:"marginTop",bottom:"marginBottom"},x={top:"marginTopTablet",bottom:"marginBottomTablet"},C={top:"marginTopMobile",bottom:"marginBottomMobile"},S=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n};return wp.element.createElement(Y,null,wp.element.createElement(F,null,wp.element.createElement(U,{className:"wp-block-themeisle-blocks-advanced-heading-header-panel"},wp.element.createElement(W,{className:r()("header-tab",{"is-selected":"style"===s}),onClick:function(){return u("style")}},wp.element.createElement("span",null,wp.element.createElement(q,{icon:"admin-customizer"}),_("Style"))),wp.element.createElement(W,{className:r()("header-tab",{"is-selected":"advanced"===s}),onClick:function(){return u("advanced")}},wp.element.createElement("span",null,wp.element.createElement(q,{icon:"admin-generic"}),_("Advanced")))),"style"===s&&wp.element.createElement(Y,null,wp.element.createElement(U,{title:_("General Settings")},wp.element.createElement(R.a,{label:_("Heading Color"),colorValue:t.headingColor},wp.element.createElement(V,{label:"Heading Color",value:t.headingColor,onChange:function(e){n({headingColor:e})}})),wp.element.createElement(N.a,{label:"Font Size"},wp.element.createElement(Z,{value:b||"",onChange:function(e){"Desktop"===p&&n({fontSize:e}),"Tablet"===p&&n({fontSizeTablet:e}),"Mobile"===p&&n({fontSizeMobile:e})},min:1,max:500})),wp.element.createElement(N.a,{label:"Alignment"},wp.element.createElement(j,{value:g,onChange:function(e){"Desktop"===p&&n({align:e}),"Tablet"===p&&n({alignTablet:e}),"Mobile"===p&&n({alignMobile:e})},isCollapsed:!1}))),wp.element.createElement(U,{title:_("Typography Settings"),initialOpen:!1},wp.element.createElement(y.a,{label:_("Font Family"),value:t.fontFamily,onChangeFontFamily:a,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:i}),wp.element.createElement(Z,{label:_("Line Height"),value:t.lineHeight,onChange:c,min:0,max:200}),wp.element.createElement(Z,{label:_("Letter Spacing"),value:t.letterSpacing,onChange:d,min:-50,max:100}),wp.element.createElement($,{label:"Shadow Properties",checked:t.textShadow,onChange:function(e){n({textShadow:e})}}),t.textShadow&&wp.element.createElement(Y,null,wp.element.createElement(R.a,{label:_("Color"),colorValue:t.textShadowColor},wp.element.createElement(V,{label:_("Color"),value:t.textShadowColor,onChange:function(e){n({textShadowColor:e})}})),wp.element.createElement(L.a,{label:"Shadow Properties"},wp.element.createElement(Z,{label:_("Opacity"),value:t.textShadowColorOpacity,onChange:function(e){n({textShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(Z,{label:_("Blur"),value:t.textShadowBlur,onChange:function(e){n({textShadowBlur:e})},min:0,max:100}),wp.element.createElement(Z,{label:_("Horizontal"),value:t.textShadowHorizontal,onChange:function(e){n({textShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(Z,{label:_("Vertical"),value:t.textShadowVertical,onChange:function(e){n({textShadowVertical:e})},min:-100,max:100})))))||"advanced"===s&&wp.element.createElement(Y,null,wp.element.createElement(U,{title:_("Highlight Color")},wp.element.createElement(R.a,{label:_("Highlight Color"),colorValue:t.highlightColor},wp.element.createElement(V,{label:"Highlight Color",value:t.highlightColor,onChange:function(e){n({highlightColor:e})}})),wp.element.createElement(R.a,{label:_("Highlight Background"),colorValue:t.highlightBackground},wp.element.createElement(V,{label:"Highlight Background",value:t.highlightBackground,onChange:function(e){n({highlightBackground:e})}}))),wp.element.createElement(U,{title:_("Spacing"),initialOpen:!1},wp.element.createElement(N.a,{label:"Padding"},wp.element.createElement(A.a,{type:f,min:0,max:500,changeType:function(e){"Desktop"===p&&n({paddingType:e}),"Tablet"===p&&n({paddingTypeTablet:e}),"Mobile"===p&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.paddingType?n({padding:a}):n(I({},h[e],a))),"Tablet"===p&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(I({},w[e],a))),"Mobile"===p&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(I({},v[e],a)))},options:[{label:_("Top"),type:"top",value:k("top")},{label:_("Right"),type:"right",value:k("right")},{label:_("Bottom"),type:"bottom",value:k("bottom")},{label:_("Left"),type:"left",value:k("left")}]})),wp.element.createElement(N.a,{label:"Margin"},wp.element.createElement(A.a,{type:T,min:-500,max:500,changeType:function(e){"Desktop"===p&&n({marginType:e}),"Tablet"===p&&n({marginTypeTablet:e}),"Mobile"===p&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.marginType?n({margin:a}):n(I({},E[e],a))),"Tablet"===p&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(I({},x[e],a))),"Mobile"===p&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(I({},C[e],a)))},options:[{label:_("Top"),type:"top",value:S("top")},{label:_("Right"),disabled:!0},{label:_("Bottom"),type:"bottom",value:S("bottom")},{label:_("Left"),disabled:!0}]}))))),wp.element.createElement(z.a,{value:t.id,onChange:function(e){n({id:e})}}))}));function te(e){return function(e){if(Array.isArray(e))return ne(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ne(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var re=wp.i18n.__,ie=lodash.isEqual,ce=wp.blocks.createBlock,de=wp.blockEditor.RichText,pe=wp.compose.compose,me=wp.data.withSelect,se=wp.element,ue=se.Fragment,be=se.useEffect,ge=wp.viewport.withViewportMatch,fe=[],he=pe(ge({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}),me((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}})))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.clientId,i=e.mergeBlocks,d=e.name,p=e.insertBlocksAfter,m=e.onReplace,s=e.isLarger,u=e.isLarge,b=e.isSmall,g=e.isSmaller,y=e.isViewportAvailable,w=e.isPreviewDesktop,v=e.isPreviewTablet,k=e.isPreviewMobile;be((function(){T()}),[]);var T=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-advanced-heading-".concat(o.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(ie(h.a[d],window.themeisleGutenberg.globalDefaults[d])||(a=le({},window.themeisleGutenberg.globalDefaults[d]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(le({},a,{id:r})),fe.push(r),e.push(r)}else if(fe.includes(t.id)){var i="wp-block-themeisle-blocks-advanced-heading-".concat(o.substr(0,8));n({id:i}),fe.push(i)}else fe.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=te(e)},E=s&&!u&&b&&!g,x=!s&&!u&&b&&!g,C=!(s||u||b||g);y&&!C&&(E=w,x=v,C=k);var S,M,B,R=function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},L=function(e){n({fontVariant:e})},N=function(e){n({fontStyle:e})},A=function(e){n({textTransform:e})},z=function(e){n({lineHeight:e})},I=function(e){n({letterSpacing:e})};E&&(S={fontSize:"".concat(t.fontSize,"px")},M={textAlign:t.align,paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px")}),x&&(S={fontSize:"".concat(t.fontSizeTablet,"px")},M={textAlign:t.alignTablet,paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px")}),C&&(S={fontSize:"".concat(t.fontSizeMobile,"px")},M={textAlign:t.alignMobile,paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px")}),t.textShadow&&(B={textShadow:"".concat(t.textShadowHorizontal,"px ").concat(t.textShadowVertical,"px ").concat(t.textShadowBlur,"px ").concat(c()(t.textShadowColor?t.textShadowColor:"#000000",t.textShadowColorOpacity))});var P=le({color:t.headingColor},S,{fontFamily:t.fontFamily?t.fontFamily:"inherit",fontWeight:"regular"===t.fontVariant?"normal":t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px"),letterSpacing:t.letterSpacing&&"".concat(t.letterSpacing,"px")},M,{},B);return wp.element.createElement(ue,null,wp.element.createElement("style",null,".".concat(t.id," mark {\n\t\t\t\t\t\tcolor: ").concat(t.highlightColor,";\n\t\t\t\t\t\tbackground: ").concat(t.highlightBackground,";\n\t\t\t\t\t}")),t.fontFamily&&wp.element.createElement(f.a,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&["".concat(t.fontVariant+("italic"===t.fontStyle?":i":""))]}]}),wp.element.createElement(O,{attributes:t,setAttributes:n,changeFontFamily:R,changeFontVariant:L,changeFontStyle:N,changeTextTransform:A,changeLineHeight:z,changeLetterSpacing:I}),wp.element.createElement(ee,{attributes:t,setAttributes:n,changeFontFamily:R,changeFontVariant:L,changeFontStyle:N,changeTextTransform:A,changeLineHeight:z,changeLetterSpacing:I}),wp.element.createElement(de,{identifier:"content",className:r()(t.id,a),value:t.content,placeholder:re("Write heading…"),tagName:t.tag,formattingControls:["bold","italic","link","strikethrough","mark"],allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/mark"],onMerge:i,unstableOnSplit:p?function(e,t){n({content:e});for(var a=arguments.length,l=new Array(a>2?a-2:0),o=2;o<a;o++)l[o-2]=arguments[o];p([].concat(l,[ce("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return m([])},style:P,onChange:function(e){n({content:e})}}))})),ye=wp.blockEditor.RichText,we=function(e){var t=e.attributes,n=e.className;return wp.element.createElement(ye.Content,{tagName:t.tag,value:t.content,id:t.id,className:r()(t.id,n)})},ve=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-heading",{title:ve("Advanced Heading"),description:ve("Advanced Heading gives a spin to editor's Heading block with much needed customization options."),icon:a.i,category:"themeisle-blocks",keywords:[ve("heading"),ve("title"),ve("advanced heading")],attributes:l,deprecated:s,transforms:b,edit:he,save:we})},function(e,t,n){"use strict";n.r(t);n(60),n(61);var a=n(2),l={id:{type:"string"},align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=[{attributes:{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}},supports:{align:["left","center","right"]},migrate:function(e){var t="center";return e.className.includes("alignleft")&&(t="left"),e.className.includes("aligncenter")&&(t="center"),e.className.includes("alignright")&&(t="right"),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{align:t,className:""})},save:function(e){var t={borderRadius:e.attributes.borderRadius+"%",fontSize:e.attributes.fontSize+"px",padding:e.attributes.padding+"px"},n={color:e.attributes.textColor,backgroundColor:e.attributes.backgroundColor,borderColor:e.attributes.borderColor,borderRadius:e.attributes.borderRadius+"%",borderStyle:"solid",borderWidth:e.attributes.borderSize+"px",display:"inline-block",margin:e.attributes.margin+"px"};return wp.element.createElement("p",{className:e.className,style:{textAlign:e.attributes.align}},wp.element.createElement("span",{className:"".concat(e.className,"-container"),style:n},wp.element.createElement("i",{className:"".concat(e.attributes.prefix," fa-").concat(e.attributes.icon),style:t})))}},{attributes:{align:{type:"string"},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}},save:function(e){var t={borderRadius:e.attributes.borderRadius+"%",fontSize:e.attributes.fontSize+"px",padding:e.attributes.padding+"px"},n={color:e.attributes.textColor,backgroundColor:e.attributes.backgroundColor,borderColor:e.attributes.borderColor,borderRadius:e.attributes.borderRadius+"%",borderStyle:"solid",borderWidth:e.attributes.borderSize+"px",display:"inline-block",margin:e.attributes.margin+"px"};return wp.element.createElement("p",{className:e.className,style:{textAlign:e.attributes.align}},wp.element.createElement("span",{className:"undefined-container",style:n},wp.element.createElement("i",{className:"".concat(e.attributes.prefix," fa-").concat(e.attributes.icon),style:t})))}},{attributes:{id:{type:"string"},align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},save:function(e){var t=e.attributes,n=e.className,a={borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"},l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},o=function(){return wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:l})};return wp.element.createElement("p",{className:n,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:a},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",style:{color:t.textColor},rel:"noopener noreferrer"},wp.element.createElement(o,null)):wp.element.createElement(o,null)))}}],c=n(6),d=wp.i18n.__,p=wp.blockEditor,m=p.AlignmentToolbar,s=p.BlockControls,u=function(e){var t=e.attributes,n=e.setAttributes;return wp.element.createElement(s,null,wp.element.createElement(m,{value:t.align,onChange:function(e){n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:d("Align left"),align:"left"},{icon:"editor-aligncenter",title:d("Align center"),align:"center"},{icon:"editor-alignright",title:d("Align right"),align:"right"}]}))},b=n(3),g=n(21);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var w=wp.i18n.__,v=wp.components,k=v.Button,T=v.ButtonGroup,E=v.PanelBody,x=v.Placeholder,C=v.RangeControl,S=v.Spinner,M=v.ToggleControl,B=wp.blockEditor,O=B.ColorPalette,R=B.ContrastChecker,L=B.InspectorControls,N=wp.element,A=N.Fragment,z=N.useState,I=React.lazy((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,108))})),P=function(e){var t=e.attributes,n=e.setAttributes,a=h(z(!1),2),l=a[0],o=a[1];return wp.element.createElement(L,null,wp.element.createElement(E,{title:w("Icon Settings")},wp.element.createElement(React.Suspense,{fallback:wp.element.createElement(x,{className:"wp-themeisle-block-spinner"},wp.element.createElement(S,null))},wp.element.createElement(I,{label:w("Icon Picker"),prefix:t.prefix,icon:t.icon,onChange:function(e){"object"===f(e)?n({icon:e.name,prefix:e.prefix}):n({icon:e})}})),wp.element.createElement(g.a,{label:w("Link"),placeholder:"https://…",value:t.link,onChange:function(e){n({link:e})}},wp.element.createElement(M,{label:"Open in New Tab?",checked:t.newTab,onChange:function(){n({newTab:!t.newTab})}}))),wp.element.createElement(E,{title:w("Icon Sizes"),initialOpen:!1},wp.element.createElement(C,{label:w("Icon Size"),value:t.fontSize||"",initialPosition:16,onChange:function(e){n({fontSize:e})},min:12,max:140}),wp.element.createElement(C,{label:w("Padding"),value:t.padding||"",initialPosition:5,onChange:function(e){n({padding:e})},min:0,max:100}),wp.element.createElement(C,{label:w("Margin"),value:t.margin||"",initialPosition:5,onChange:function(e){n({margin:e})},min:0,max:100})),wp.element.createElement(E,{title:w("Color"),initialOpen:!1},wp.element.createElement(T,{className:"wp-block-themeisle-blocks-font-awesome-icons-hover-control"},wp.element.createElement(k,{isDefault:!0,isLarge:!0,isPrimary:!l,onClick:function(){return o(!1)}},w("Normal")),wp.element.createElement(k,{isDefault:!0,isLarge:!0,isPrimary:l,onClick:function(){return o(!0)}},w("Hover"))),l?wp.element.createElement(A,null,wp.element.createElement(b.a,{label:"Hover Background",colorValue:t.backgroundColorHover},wp.element.createElement(O,{label:"Hover Background",value:t.backgroundColorHover,onChange:function(e){n({backgroundColorHover:e})}})),wp.element.createElement(b.a,{label:"Hover Icon",colorValue:t.textColorHover},wp.element.createElement(O,{label:"Hover Icon",value:t.textColorHover,onChange:function(e){n({textColorHover:e})}})),wp.element.createElement(b.a,{label:"Hover Border",colorValue:t.borderColorHover},wp.element.createElement(O,{label:"Hover Border",value:t.borderColorHover,onChange:function(e){n({borderColorHover:e})}})),wp.element.createElement(R,{textColor:t.textColorHover,backgroundColor:t.backgroundColorHover})):wp.element.createElement(A,null,wp.element.createElement(b.a,{label:"Background",colorValue:t.backgroundColor},wp.element.createElement(O,{label:"Background",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}})),wp.element.createElement(b.a,{label:"Icon",colorValue:t.textColor},wp.element.createElement(O,{label:"Icon",value:t.textColor,onChange:function(e){n({textColor:e})}})),wp.element.createElement(b.a,{label:"Border",colorValue:t.borderColor},wp.element.createElement(O,{label:"Border",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(R,{textColor:t.textColor,backgroundColor:t.backgroundColor}))),wp.element.createElement(E,{title:w("Border Settings"),initialOpen:!1},wp.element.createElement(C,{label:w("Border Size"),value:t.borderSize,onChange:function(e){n({borderSize:e})},min:0,max:120}),wp.element.createElement(C,{label:w("Border Radius"),value:t.borderRadius,onChange:function(e){n({borderRadius:e})},min:0,max:100})))};function H(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=lodash.isEqual,G=wp.element,W=G.Fragment,q=G.useEffect,U=[],Z=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.clientId,r=e.name;q((function(){i()}),[]);var i=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,i="wp-block-themeisle-blocks-font-awesome-icons-".concat(o.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(F(c.a[r],window.themeisleGutenberg.globalDefaults[r])||(a=j({},window.themeisleGutenberg.globalDefaults[r]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(j({},a,{id:i})),U.push(i),e.push(i)}else if(U.includes(t.id)){var d="wp-block-themeisle-blocks-font-awesome-icons-".concat(o.substr(0,8));n({id:d}),U.push(d)}else U.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=H(e)},d={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},p={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 wp.element.createElement(W,null,wp.element.createElement(u,{attributes:t,setAttributes:n}),wp.element.createElement(P,{attributes:t,setAttributes:n}),wp.element.createElement("style",null,"#".concat(t.id," .").concat(a,"-container:hover {\n\t\t\t\t\t\tcolor: ").concat(t.textColorHover?t.textColorHover:t.textColor," !important;\n\t\t\t\t\t\tbackground: ").concat(t.backgroundColorHover?t.backgroundColorHover:t.backgroundColor," !important;\n\t\t\t\t\t\tborder-color: ").concat(t.borderColorHover?t.borderColorHover:t.borderColor," !important;\n\t\t\t\t\t}")),wp.element.createElement("p",{className:a,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:p},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:d}))))},$=function(e){var t=e.attributes,n=e.className;return wp.element.createElement("p",{className:n,id:t.id},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})):wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})))},Q=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/font-awesome-icons",{title:Q("Font Awesome Icons"),description:Q("Share buttons for your website visitors to share content on any social sharing service."),icon:a.h,category:"themeisle-blocks",keywords:["font awesome","dashicons","icons"],attributes:l,deprecated:i,edit:Z,save:$})},function(e,t,n){"use strict";n.r(t);n(85),n(86),n(87);var a=n(2),l={facebook:{type:"boolean",default:!0},twitter:{type:"boolean",default:!0},linkedin:{type:"boolean",default:!0},pinterest:{type:"boolean",default:!1},tumblr:{type:"boolean",default:!1},reddit:{type:"boolean",default:!1}},o=n(0),r=n.n(o),i=wp.i18n.__,c={facebook:{label:i("Facebook"),icon:"facebook-f"},twitter:{label:i("Twitter"),icon:"twitter"},linkedin:{label:i("Linkedin"),icon:"linkedin-in"},pinterest:{label:i("Pinterest"),icon:"pinterest-p"},tumblr:{label:i("Tumblr"),icon:"tumblr"},reddit:{label:i("Reddit"),icon:"reddit-alien"}},d=wp.components,p=d.Path,m=d.SVG,s=function(e){var t=e.icon;return"facebook"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 264 512"},wp.element.createElement(p,{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?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(p,{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?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},wp.element.createElement(p,{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?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},wp.element.createElement(p,{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?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},wp.element.createElement(p,{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?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(p,{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"})):wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(p,{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"}))};var u=wp.i18n.__,b=wp.blockEditor.BlockControls,g=wp.components,f=g.Toolbar,h=g.Button,y=g.Tooltip,w=function(e){var t=e.attributes,n=e.setAttributes,a=function(e){var a,l,o;n((a={},l=e,o=!t[e],l in a?Object.defineProperty(a,l,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[l]=o,a))};return wp.element.createElement(b,null,wp.element.createElement(f,null,Object.keys(c).map((function(e){var n=t[e];return wp.element.createElement(y,{text:u("Display ".concat(c[e].label))},wp.element.createElement(h,{className:r()("components-button","wp-block-themeisle-toolbar",{"is-active":n}),onClick:function(){return a(e)}},wp.element.createElement(s,{icon:e})))}))))},v=wp.element.Fragment,k=function(e){var t=e.attributes,n=e.setAttributes,a=e.className;return wp.element.createElement(v,null,wp.element.createElement(w,{attributes:t,setAttributes:n}),wp.element.createElement("div",{className:r()(a,{"has-label":!t.className||!t.className.includes("is-style-icons")})},Object.keys(c).map((function(e,n){if(!0===t[e])return wp.element.createElement("a",{className:"social-icon is-".concat(e)},wp.element.createElement("i",{className:"fab fa-".concat(c[e].icon)}),(!t.className||!t.className.includes("is-style-icons"))&&c[e].label)}))))},T=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/sharing-icons",{title:T("Sharing Icons"),description:T("Share buttons for your website visitors to share content on any social sharing service."),icon:a.r,category:"themeisle-blocks",keywords:["social media","sharing","icons"],attributes:l,supports:{html:!0,align:["left","center","right"]},styles:[{name:"default",label:T("Regular"),isDefault:!0},{name:"icons",label:T("Icons Only")}],edit:k,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(67),n(68);var a=n(2),l={style:{type:"string",default:"grid"},columns:{type:"number",default:3},template:{type:"array",default:["category","title","meta","description"]},categories:{type:"string"},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:!0},displayFeaturedImage:{type:"boolean",default:!0},displayCategory:{type:"boolean",default:!0},displayTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:"h5"},displayMeta:{type:"boolean",default:!0},displayDescription:{type:"boolean",default:!0},excerptLength:{type:"number",default:100},displayDate:{type:"boolean",default:!0},displayAuthor:{type:"boolean",default:!0}},o=n(12),r=n(35),i=n.n(r),c=n(0),d=n.n(c),p=n(24);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var u=lodash,b=u.startCase,g=u.toLower,f=wp.i18n.__,h=wp.components,y=h.IconButton,w=h.TextControl,v=h.SelectControl,k=h.ToggleControl,T=wp.element,E=T.Fragment,x=T.useState,C=Object(p.c)((function(){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-builder-handle"},wp.element.createElement("span",null))})),S=function(e){var t,n=e.value,a=e.disabled,l=e.getFields,o=e.toggleFields,r=e.imageSize,i=e.titleTag,c=e.excerptLimit,p=m(x(!1),2),s=p[0],u=p[1],h=b(g(n)),T="hidden",S=f("Display ".concat(h));switch(l(n)&&(T="visibility",S=f("Hide ".concat(h))),n){case"image":case"title":case"meta":case"description":t=!0;break;default:t=!1}return wp.element.createElement("div",{className:d()("wp-block-themeisle-blocks-posts-grid-builder-item-area","wp-block-themeisle-blocks-posts-grid-builder-item-area-".concat(n))},wp.element.createElement("div",{className:d()("wp-block-themeisle-blocks-posts-grid-builder-item",{disabled:a,hidden:!l(n),editable:t})},!a&&wp.element.createElement(C,null),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-builder-label"},h),t&&wp.element.createElement(y,{icon:s?"arrow-up-alt2":"arrow-down-alt2",label:f(s?"Close Settings":"Open Settings"),className:"wp-block-themeisle-blocks-posts-grid-builder-button",onClick:function(){return u(!s)}}),wp.element.createElement(y,{icon:T,label:S,className:"wp-block-themeisle-blocks-posts-grid-builder-button",onClick:function(){o(n),u(!1)}})),t&&wp.element.createElement("div",{className:d()("wp-block-themeisle-blocks-posts-grid-builder-control-area",{opened:s&&l(n)})},"image"===n&&wp.element.createElement(E,null,wp.element.createElement(v,{label:f("Image Size"),value:r.value,options:[{label:f("Thumbnail"),value:"thumbnail"},{label:f("Medium"),value:"medium"},{label:f("Medium Large"),value:"medium_large"},{label:f("Large"),value:"large"},{label:f("Full"),value:"full"}],onChange:r.onChange}),wp.element.createElement(k,{label:"Display Box Shadow?",checked:l("imageBoxShadow"),onChange:function(){return o("imageBoxShadow")}})),"title"===n&&wp.element.createElement(v,{label:f("Title Tag"),value:i.value||"h5",options:[{label:f("H1"),value:"h1"},{label:f("H2"),value:"h2"},{label:f("H3"),value:"h3"},{label:f("H4"),value:"h4"},{label:f("H5"),value:"h5"},{label:f("H6"),value:"h6"}],onChange:i.onChange}),"description"===n&&wp.element.createElement(w,{label:f("Excerpt Limit"),type:"number",value:c.value,onChange:c.onChange}),"meta"===n&&wp.element.createElement(E,null,wp.element.createElement(k,{label:"Display Date?",checked:l("date"),onChange:function(){return o("date")}}),wp.element.createElement(k,{label:"Display Author?",checked:l("author"),onChange:function(){return o("author")}}))))},M=Object(p.b)((function(e){var t=e.value,n=e.disabled,a=e.getFields,l=e.toggleFields,o=e.titleTag,r=e.excerptLimit;return wp.element.createElement(S,{value:t,disabled:n,getFields:a,toggleFields:l,titleTag:o,excerptLimit:r})})),B=Object(p.a)((function(e){var t=e.template,n=e.getFields,a=e.toggleFields,l=e.titleTag,o=e.excerptLimit;return wp.element.createElement("div",null,t.map((function(e,t){return wp.element.createElement(M,{key:"item-".concat(t),index:t,value:e,getFields:n,toggleFields:a,titleTag:l,excerptLimit:o})})))})),O=wp.i18n.__,R=wp.element.Fragment,L=function(e){var t=e.attributes,n=e.setAttributes,a=e.getFields,l=e.toggleFields,o=e.imageSize,r=e.titleTag,c=e.excerptLimit;return wp.element.createElement(R,null,wp.element.createElement("div",{className:d()("wp-block-themeisle-blocks-posts-grid-builder",t.style)},wp.element.createElement(S,{value:O("image"),disabled:!0,getFields:a,toggleFields:l,imageSize:o}),wp.element.createElement(B,{template:t.template,onSortEnd:function(e){var a=e.oldIndex,l=e.newIndex,o=i()(t.template,a,l);n({template:o})},getFields:a,toggleFields:l,titleTag:r,excerptLimit:c,useDragHandle:!0})))},N=wp.i18n.__,A=wp.components,z=A.PanelBody,I=A.QueryControls,P=A.RangeControl,H=A.TextControl,_=wp.blockEditor.InspectorControls,D=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeStyle,l=e.categoriesList;return wp.element.createElement(_,null,wp.element.createElement(z,{title:N("Styles"),initialOpen:!1},wp.element.createElement(o.b,{value:t.style,options:[{label:N("Grid"),value:"grid",image:themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:N("List"),value:"list",image:themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:a})),wp.element.createElement(z,{title:N("Settings")},"grid"===t.style&&wp.element.createElement(P,{label:N("Columns"),value:t.columns,onChange:function(e){n({columns:e})},min:1,max:5}),wp.element.createElement(I,{order:t.order,orderBy:t.orderBy,numberOfItems:t.postsToShow,categoriesList:l,selectedCategoryId:t.categories,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},onCategoryChange:function(e){return n({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return n({postsToShow:e})}}),wp.element.createElement(H,{label:N("Offset"),help:N("Number of post to displace or pass over."),type:"number",value:t.offset,min:0,onChange:function(e){return n({offset:e})}})),wp.element.createElement(z,{title:N("Design & Layout"),initialOpen:!1},wp.element.createElement(L,{attributes:t,getFields:function(e){return"image"===e?t.displayFeaturedImage:"imageBoxShadow"===e?t.imageBoxShadow:"category"===e?t.displayCategory:"title"===e?t.displayTitle:"meta"===e?t.displayMeta:"description"===e?t.displayDescription:"date"===e?t.displayDate:"author"===e?t.displayAuthor:void 0},toggleFields:function(e){"image"===e&&n({displayFeaturedImage:!t.displayFeaturedImage}),"imageBoxShadow"===e&&n({imageBoxShadow:!t.imageBoxShadow}),"category"===e&&n({displayCategory:!t.displayCategory}),"title"===e&&n({displayTitle:!t.displayTitle}),"meta"===e&&n({displayMeta:!t.displayMeta}),"description"===e&&n({displayDescription:!t.displayDescription}),"date"===e&&n({displayDate:!t.displayDate}),"author"===e&&n({displayAuthor:!t.displayAuthor})},setAttributes:n,imageSize:{value:t.imageSize,onChange:function(e){n({imageSize:e})}},titleTag:{value:t.titleTag,onChange:function(e){n({titleTag:e})}},excerptLimit:{value:t.excerptLength,onChange:function(e){n({excerptLength:e})}}})))},j=n(27),V=lodash,F=V.isUndefined,G=V.pickBy,W=wp.i18n.__,q=wp.components,U=q.Disabled,Z=q.Placeholder,$=q.Spinner,Q=wp.data.withSelect,K=wp.element.Fragment,J=Q((function(e,t){var n=t.attributes,a=n.categories,l=n.order,o=n.orderBy,r=n.postsToShow,i=n.offset,c=G({categories:a,order:l,orderby:o,per_page:r,offset:i},(function(e){return!F(e)}));return{posts:e("core").getEntityRecords("postType","post",c),categoriesList:e("core").getEntityRecords("taxonomy","category",{per_page:100}),authors:e("core").getAuthors()}}))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.posts,r=e.categoriesList,i=e.authors,c=function(e){n({style:e})};return l&&r&&i?0===l.length?wp.element.createElement(K,null,wp.element.createElement(Z,null,W("No Posts")),r&&t.offset?wp.element.createElement(D,{attributes:t,setAttributes:n,changeStyle:c,categoriesList:r}):null):wp.element.createElement(K,null,wp.element.createElement(o.a,{label:W("Block Styles"),value:t.style,options:[{label:W("Grid"),value:"grid",image:themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:W("List"),value:"list",image:themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:c}),wp.element.createElement(D,{attributes:t,setAttributes:n,changeStyle:c,categoriesList:r}),wp.element.createElement(U,null,wp.element.createElement(j.default,{className:a,attributes:t,posts:l,categoriesList:r,authors:i}))):wp.element.createElement(K,null,wp.element.createElement(Z,{className:"wp-themeisle-block-spinner"},wp.element.createElement($,null),W("Loading Posts")),r&&t.offset?wp.element.createElement(D,{attributes:t,setAttributes:n,changeStyle:c,categoriesList:r}):null)})),Y=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/posts-grid",{title:Y("Posts"),description:Y("Display a list of your most recent posts in a beautiful layout."),icon:a.o,category:"themeisle-blocks",keywords:["posts","grid","news"],attributes:l,supports:{align:["wide","full"],html:!1},edit:J,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(65),n(66);var a=n(2),l={slug:{type:"string"}},o=n(22);function r(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var d=wp.i18n.__,p=wp.apiFetch,m=wp.components,s=m.Button,u=m.Placeholder,b=m.Dashicon,g=m.TextControl,f=m.Spinner,h=wp.element,y=h.useEffect,w=h.useRef,v=h.useState,k=wp.keycodes,T=k.DOWN,E=k.ENTER,x=k.TAB,C=k.UP,S=function(e){var t=e.attributes,n=e.setAttributes,a=e.isFetching,l=e.hasError,c=e.setError,m=e.fetchPlugin,h=e.saveData,k=e.className,S=w(null),M=!1,B=[],O=i(v(!1),2),R=O[0],L=O[1],N=i(v(""),2),A=N[0],z=N[1],I=i(v({}),2),P=I[0],H=I[1],D=i(v(null),2),j=D[0],V=D[1];y((function(){null===j||M||(M=!0,Object(o.a)(B[j],S.current,{onlyScrollIfNeeded:!0}),B[j].focus(),setTimeout((function(){M=!1}),100))}),[j]);var F=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n({slug:""}),L(!0),c(!1),e.next=5,p({path:"themeisle-gutenberg-blocks/v1/get_plugins?search=".concat(encodeURIComponent(t))});case 5:if(!(a=e.sent).data.errors){e.next=12;break}return c(!0),L(!1),V(null),H({}),e.abrupt("return");case 12:L(!1),V(null),H(a.data.plugins);case 15:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function i(e){r(o,a,l,i,c,"next",e)}function c(e){r(o,a,l,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),G=function(e){if(Object.keys(P).length){e.stopPropagation(),e.preventDefault();var t=j?j-1:Object.keys(P).length-1;V(t)}},W=function(e){if(Object.keys(P).length){e.stopPropagation(),e.preventDefault();var t=null===j||j===Object.keys(P).length-1?0:j+1;V(t)}},q=function(e){n({slug:e.slug}),h(e),H({})};return a?wp.element.createElement(u,{className:"wp-themeisle-block-spinner"},wp.element.createElement(f,null)):t.slug&&l?wp.element.createElement(u,{className:k},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-error"},d("There seems to be an error. Make sure your internet is working properly."),wp.element.createElement(s,{isDefault:!0,isLarge:!0,onClick:m},d("Try again")))):wp.element.createElement(u,{icon:"admin-plugins",label:d("Plugin Card"),instructions:d("Search for the plugin you want to display."),className:k},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-search-field"},wp.element.createElement(b,{icon:"search"}),R&&wp.element.createElement(f,null),wp.element.createElement(g,{type:"text",placeholder:d("Search for plugin…"),value:A,onChange:z,onKeyDown:function(e){switch(e.keyCode){case C:G(e);break;case T:W(e);break;case x:Object.keys(P).length&&!e.shiftKey&&V(0);break;case E:F(e.target.value)}},onFocus:function(){return V(null)}}),P&&wp.element.createElement("div",{tabIndex:"-1",className:"wp-block-themeisle-blocks-plugin-cards-search-results",ref:S},Object.keys(P).map((function(e){var t,n,a=P[e];return a.icons.svg&&(t=a.icons.svg),a.icons["2x"]&&(t=a.icons["2x"]),a.icons["1x"]&&(t=a.icons["1x"]),a.icons.default&&(t=a.icons.default),wp.element.createElement("button",{className:"wp-block-themeisle-blocks-plugin-cards-list-item",key:e,ref:(n=e,function(e){B[n]=e}),onClick:function(e){e.preventDefault(),q(a)},onKeyDown:function(e){return function(e,t){switch(e.keyCode){case C:G(e);break;case T:W(e);break;case x:if(e.shiftKey){0!==j&&G(e);break}if(j===Object.keys(P).length-1)break;W(e);break;case E:q(t)}}(e,a)}},wp.element.createElement("img",{src:t}),wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:_.unescape(a.name)}}))})))),l&&wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-error"},d("There seems to be an error. Make sure your internet is working properly."),wp.element.createElement(s,{isDefault:!0,isLarge:!0,onClick:function(){return F(A)}},d("Try again"))))},M=wp.i18n.__,B=wp.components,O=B.Dashicon,R=B.Button,L=B.Toolbar,N=B.Tooltip,A=wp.blockEditor.BlockControls,z=function(e){var t=e.setLoaded;return wp.element.createElement(A,null,wp.element.createElement(L,null,wp.element.createElement(N,{text:M("Edit")},wp.element.createElement(R,{className:"components-icon-button components-toolbar__control wp-block-themeisle-blocks-plugin-cards-edit-plugin-card",onClick:function(){return t(!1)}},wp.element.createElement(O,{icon:"edit"})))))},I=n(8);function P(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var j=wp.i18n.__,V=wp.apiFetch,F=wp.element,G=F.Fragment,W=F.useEffect,q=F.useState,U=function(e){var t=e.attributes,n=e.setAttributes,a=e.className;W((function(){t.slug&&k()}),[]);var l,o,r,i,c,d=H(q(!1),2),p=d[0],m=d[1],s=H(q(!1),2),u=s[0],b=s[1],g=H(q(!1),2),f=g[0],h=g[1],y=H(q({}),2),w=y[0],v=y[1],k=function(){var e,n=(e=regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),h(!1),b(!0),e.next=5,V({path:"themeisle-gutenberg-blocks/v1/get_plugin?slug=".concat(encodeURIComponent(t.slug))});case 5:if(!(n=e.sent).data.errors){e.next=11;break}return h(!0),m(!1),b(!1),e.abrupt("return");case 11:T(n.data),b(!1);case 13:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){P(o,a,l,r,i,"next",e)}function i(e){P(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return n.apply(this,arguments)}}(),T=function(e){var t;e.icons.svg&&(t=e.icons.svg),e.icons["2x"]&&(t=e.icons["2x"]),e.icons["1x"]&&(t=e.icons["1x"]),e.icons.default&&(t=e.icons.default),v({slug:e.slug,pluginIcon:t,pluginName:e.name,pluginAuthor:e.author,pluginRating:e.rating,pluginDescription:e.short_description,pluginInstalls:e.active_installs,pluginVersion:e.version,pluginTested:e.tested,pluginLink:e.download_link}),m(!0)};return!p||u?wp.element.createElement(S,{attributes:t,setAttributes:n,isFetching:u,hasError:f,setError:h,fetchPlugin:k,saveData:T,className:a}):wp.element.createElement(G,null,wp.element.createElement(z,{setLoaded:m}),wp.element.createElement("div",{className:a},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-wrapper"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-header"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-main"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-logo"},wp.element.createElement("img",{src:w.pluginIcon,alt:Object(I.b)(w.pluginName),title:Object(I.b)(w.pluginName)})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-info"},wp.element.createElement("h4",null,Object(I.b)(w.pluginName)),wp.element.createElement("h5",{dangerouslySetInnerHTML:{__html:_.unescape(w.pluginAuthor)}})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-ratings",dangerouslySetInnerHTML:{__html:_.unescape((l=w.pluginRating,o=Math.floor(l/10)/2,r=Math.floor(o),i=Math.ceil(o-r),c=5-r-i,'<span className="star-full"></span>'.repeat(r)+'<span className="star-half"></span>'.repeat(i)+'<span className="star-empty"></span>'.repeat(c)))}}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-details"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-description"},Object(I.b)(w.pluginDescription)),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-stats"},wp.element.createElement("h5",null,j("Plugin Stats")),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-stats-list"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-stat"},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-plugin-cards-text-large"},w.pluginInstalls.toLocaleString(),"+"),j("active installs")),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-stat"},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-plugin-cards-text-large"},w.pluginVersion),j("version")),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-stat"},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-plugin-cards-text-large"},w.pluginTested),j("tested up to"))))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-download"},wp.element.createElement("a",{href:w.pluginLink},j("Download"))))))},Z=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/plugin-cards",{title:Z("Plugin Card"),description:Z("Plugin Card block lets you display plugins data in your blog posts."),icon:a.n,category:"themeisle-blocks",keywords:["plugin","card","orbitfox"],attributes:l,supports:{html:!1},edit:U,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(48),n(49);var a=n(2),l={id:{type:"number"}};function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var i=wp.i18n.__,c=wp.components.Spinner,d=wp.data.withSelect,p=wp.element,m=p.useEffect,s=p.useState,u=d((function(e){return{postAuthor:e("core/editor").getEditedPostAttribute("author"),authors:e("core").getAuthors()}}))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.postAuthor,r=e.authors;m((function(){!p&&l&&r&&r.find((function(e){if(e.id===l)return l!==t.id&&n({id:e.id}),u(!0),f(e),e.id===l}))}),[l,r]);var d=o(s(!1),2),p=d[0],u=d[1],b=o(s({}),2),g=b[0],f=b[1];return p?wp.element.createElement("section",{className:a},wp.element.createElement("div",{className:"wp-block-themeisle-author-image"},wp.element.createElement("img",{className:"author-image",src:g.avatar_urls[96],alt:g.name})),wp.element.createElement("div",{className:"wp-block-themeisle-author-data"},wp.element.createElement("h4",null,g.name),wp.element.createElement("p",null,g.description))):wp.element.createElement("div",{className:"wp-block-themeisle-author-loading"},wp.element.createElement(c,null),wp.element.createElement("p",{className:"wp-block-themeisle-author-loading-text"},i("Loading…")))})),b=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/about-author",{title:b("About Author"),description:b("About Author block is the easiest way to add a author bio below your posts."),icon:a.a,category:"themeisle-blocks",keywords:["about","author","profile"],attributes:l,supports:{html:!1},edit:u,save:function(){return null}})}]);
|
1 |
+
!function(e){function t(t){for(var a,r,i=t[0],c=t[1],d=t[2],m=0,u=[];m<i.length;m++)r=i[m],Object.prototype.hasOwnProperty.call(l,r)&&l[r]&&u.push(l[r][0]),l[r]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(p&&p(t);u.length;)u.shift()();return o.push.apply(o,d||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,i=1;i<n.length;i++){var c=n[i];0!==l[c]&&(a=!1)}a&&(o.splice(t--,1),e=r(r.s=n[0]))}return e}var a={},l={2:0},o=[];function r(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var t=[],n=l[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,a){n=l[e]=[t,a]}));t.push(n[2]=a);var o,i=document.createElement("script");i.charset="utf-8",i.timeout=120,r.nc&&i.setAttribute("nonce",r.nc),i.src=function(e){return r.p+"chunk-"+({}[e]||e)+".js"}(e);var c=new Error;o=function(t){i.onerror=i.onload=null,clearTimeout(d);var n=l[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",c.name="ChunkLoadError",c.type=a,c.request=o,n[1](c)}l[e]=void 0}};var d=setTimeout((function(){o({type:"timeout",target:i})}),12e4);i.onerror=i.onload=o,document.head.appendChild(i)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=window.tiOtterWebpackJsonp=window.tiOtterWebpackJsonp||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var d=0;d<i.length;d++)t(i[d]);var p=c;o.push([37,0]),n()}([,,function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"i",(function(){return m})),n.d(t,"h",(function(){return u})),n.d(t,"r",(function(){return s})),n.d(t,"j",(function(){return b})),n.d(t,"o",(function(){return g})),n.d(t,"n",(function(){return f})),n.d(t,"q",(function(){return y})),n.d(t,"p",(function(){return h})),n.d(t,"s",(function(){return w})),n.d(t,"b",(function(){return v})),n.d(t,"t",(function(){return k})),n.d(t,"k",(function(){return T})),n.d(t,"c",(function(){return E})),n.d(t,"l",(function(){return x})),n.d(t,"e",(function(){return C}));var a=wp.components,l=a.Path,o=a.SVG,r=function(){return wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 32",width:"20",height:"20",className:"otter-icon"},wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}),wp.element.createElement(l,{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"}))},i=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},c=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},d=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},p=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},m=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},u=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},s=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},b=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},g=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M4.285 5.775c0.004 0 0.009 0.001 0.013 0.001h8.279c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-8.279c-0.307 0-0.556 0.249-0.556 0.556 0 0.302 0.242 0.548 0.542 0.555zM3.743 8.005c0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-13.679c-0.307 0-0.556 0.249-0.556 0.556zM17.977 10.236h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 13.022h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 15.807h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 18.593h-13.679c-0.307 0-0.556 0.249-0.556 0.555s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.555-0.556-0.555zM17.977 21.379h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 24.165h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM21.93 4.466l-4.277-3.87c-0.094-0.085-0.212-0.132-0.334-0.139h-15.831c-0.812 0-1.473 0.664-1.473 1.481v28.153c0 0.817 0.661 1.481 1.473 1.481h19.174c0.812 0 1.473-0.664 1.473-1.481v-25.222c-0.008-0.163-0.086-0.308-0.205-0.403zM17.833 2.238l2.331 2.109h-2.331v-2.109zM21.043 30.091c0 0.215-0.171 0.39-0.381 0.39h-19.174c-0.21 0-0.382-0.175-0.382-0.39v-28.153c0-0.215 0.171-0.39 0.382-0.39h15.251v3.348c0 0.303 0.245 0.549 0.547 0.549h3.758v24.647zM31.975 3.213c-0.125-1.57-1.442-2.809-3.044-2.809-0 0-0 0-0 0-0.816 0-1.583 0.318-2.16 0.895-0.519 0.519-0.827 1.191-0.884 1.915h-0.010v0.242c0 0.001-0 0.002-0 0.003s0 0.001 0 0.001l-0 24.342h0.003c0.010 0.096 0.045 0.191 0.108 0.273l2.509 3.305c0.103 0.136 0.264 0.216 0.435 0.216s0.331-0.080 0.435-0.216l2.508-3.305c0.063-0.083 0.098-0.177 0.108-0.274h0.003v-24.589h-0.011zM27.543 2.070c0.371-0.371 0.864-0.575 1.388-0.575h0c0.893 0 1.649 0.6 1.886 1.417h-3.772c0.091-0.315 0.26-0.604 0.498-0.842zM28.362 26.711l-1.394 0 0-22.406h3.926v22.406h-1.442l0-18.071-1.090 0 0 18.071zM28.931 30.148l-1.781-2.346 3.562-0-1.781 2.346z"}))},f=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},y=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},h=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},w=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},v=function(){return wp.element.createElement(o,{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{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"}))},k=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"4.744",width:"11.022",height:"2.512"}))},T=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{y:"8.744",width:"11.022",x:"4.489",height:"2.512"}))},E=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"12.802",width:"11.022",height:"2.512"}))},x=wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},wp.element.createElement(l,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"})),C=wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement(l,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(42),wp.components.ColorIndicator);t.a=function(e){var t=e.label,n=e.colorValue,a=e.className,r=e.children;return wp.element.createElement("div",{className:l()("components-base-control","wp-block-themeisle-blocks-color-base-control",a)},wp.element.createElement("div",{className:"components-base-control__field"},t&&wp.element.createElement("span",{className:"components-base-control__label"},t,n&&wp.element.createElement(o,{colorValue:n})),r))}},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(44),n(2)),r=wp.i18n.__,i=wp.components,c=i.Button,d=i.Dropdown,p=i.Icon,m=i.IconButton,u=wp.compose,s=u.compose,b=u.withInstanceId,g=wp.data,f=g.withSelect,y=g.withDispatch,h=wp.viewport.withViewportMatch;t.a=s(b,h({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}),f((function(e,t){var n=e("themeisle-gutenberg/data").getView,a=e("core/edit-post").__experimentalGetPreviewDeviceType,l=!(t.isLarger||t.isLarge||t.isSmall||t.isSmaller);return{view:a&&!l?a():n()}})),y((function(e,t){var n=e("themeisle-gutenberg/data").updateView,a=e("core/edit-post").__experimentalSetPreviewDeviceType,l=!(t.isLarger||t.isLarge||t.isSmall||t.isSmaller);return{updateView:a&&!l?a:n}})))((function(e){var t=e.instanceId,n=e.label,a=e.className,i=e.children,u=e.view,s=e.updateView,b="inspector-responsive-control-".concat(t);return wp.element.createElement("div",{id:b,className:l()("wp-block-themeisle-blocks-responsive-control",a)},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(d,{position:"top left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(m,{icon:"Mobile"===u?"smartphone":u.toLowerCase(),label:r("Responsiveness Settings"),className:"is-button",onClick:n,"aria-expanded":t})},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings-title"},r("View")),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Desktop"===u}),onClick:function(){return s("Desktop")}},"Desktop"===u&&wp.element.createElement(p,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Desktop"))),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Tablet"===u}),onClick:function(){return s("Tablet")}},"Tablet"===u&&wp.element.createElement(p,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Tablet"))),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Mobile"===u}),onClick:function(){return s("Mobile")}},"Mobile"===u&&wp.element.createElement(p,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Mobile"))))}}))),i))}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(45),wp.element),r=o.Fragment,i=o.useRef,c=function(e){var t=e.id,n=e.index,a=e.option,l=e.min,o=e.max,c=e.onChange,d=i(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-sizing-control-item"},n.disabled?wp.element.createElement("input",{type:"number",disabled:n.disabled,className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a)}):wp.element.createElement(r,null,wp.element.createElement("input",{type:"number",className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t),value:void 0!==n.value?n.value:"",min:l,max:o,ref:d,onChange:function(e){return c(n.type,parseInt(e.target.value))}})),n.label&&wp.element.createElement("label",{className:"wp-block-themeisle-blocks-sizing-control-item-label",htmlFor:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t)},n.label))},d=wp.i18n.__,p=wp.components.IconButton,m=wp.compose.withInstanceId;t.a=m((function(e){var t=e.instanceId,n=e.label,a=e.type,o=e.min,r=e.max,i=e.changeType,m=e.options,u=e.onChange,s="inspector-sizing-control-".concat(t);return m&&1>m.length?d("Please specify more options."):wp.element.createElement("div",{id:s,className:"wp-block-themeisle-blocks-sizing-control"},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("label",{className:"components-base-control__label",htmlFor:s},n),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-wrapper",{linking:a})},m.map((function(e,n){return wp.element.createElement(c,{id:t,index:e,option:n,min:o,max:r,onChange:u})})),a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-item","toggle-linking",{"is-linked":"linked"===a})},wp.element.createElement(p,{icon:"linked"===a?"admin-links":"editor-unlink",tooltip:d("linked"===a?"Unlink Values":"Link Values"),className:"wp-block-themeisle-blocks-sizing-control-item-input",onClick:function(){return i("linked"===a?"unlinked":"linked")}})))))}))},function(e,t,n){"use strict";t.a={"themeisle-blocks/advanced-heading":{tag:"h2",headingColor:"#000000",fontStyle:"normal",textTransform:"none",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:0,marginTop:0,marginBottom:25},"themeisle-blocks/button-group":{spacing:20,collapse:"collapse-none",fontSize:18,fontStyle:"normal",data:{color:"#ffffff",background:"#32373c",paddingTopBottom:12,paddingLeftRight:24}},"themeisle-blocks/font-awesome-icons":{fontSize:16,padding:5,margin:5},"themeisle-blocks/advanced-columns":{columnsGap:"default",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginBottom:20,columnsHTMLTag:"div",horizontalAlign:"unset",columnsHeight:"auto",verticalAlign:"unset",hide:!1,hideTablet:!1,hideMobile:!1},"themeisle-blocks/advanced-column":{paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginRight:0,marginBottom:20,marginLeft:0,columnsHTMLTag:"div"}}},,function(e,t,n){"use strict";n(55);var a=wp.components,l=a.Dropdown,o=a.IconButton,r=wp.compose.withInstanceId;t.a=r((function(e){var t=e.label,n=e.instanceId,a=e.children,r="inspector-control-panel-control-".concat(n);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-control-panel-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label",for:r},t),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(l,{position:"top left",headerTitle:t,expandOnMobile:!0,renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(o,{id:r,icon:"admin-settings",label:t,className:"is-button",onClick:a,"aria-expanded":n})},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-popover-settings"},a)}})))))}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(43);function o(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var d=lodash,p=d.startCase,m=d.toLower,u=wp.i18n.__,s=wp.compose.withInstanceId,b=wp.components,g=b.Button,f=b.BaseControl,y=b.Dropdown,h=b.MenuGroup,w=b.MenuItem,v=b.SelectControl,k=b.TextControl,T=wp.element,E=T.useEffect,x=T.useState;t.a=s((function(e){var t=e.instanceId,n=e.label,a=e.value,i=e.valueVariant,c=e.valueStyle,d=e.valueTransform,s=e.isSelect,b=void 0!==s&&s,T=e.onChangeFontFamily,C=e.onChangeFontVariant,S=e.onChangeFontStyle,M=e.onChangeTextTransform;E((function(){fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyClGdkPJ1BvgLOol5JAkQY4Mv2lkLYu00k").then((function(e){return e.json()})).then((function(e){R(e.items),a&&e.items.find((function(e){if(a===e.family){var t=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:p(m(e)),value:e}}));return A(t)}}))}))}),[]);var B=r(x(null),2),O=B[0],R=B[1],L=r(x(null),2),N=L[0],A=L[1],P=r(x(""),2),z=P[0],I=P[1],H="inspector-google-fonts-control-".concat(t);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-fonts-control"},wp.element.createElement(f,{label:n,id:H},null!==O?b?wp.element.createElement(v,{value:a||"",id:H,options:[{label:u("Default"),value:""}].concat(o(O.map((function(e){return{label:e.family,value:e.family}})))),onChange:function(e){var t=[];if(""===e)return t=[{label:u("Regular"),value:"regular"},{label:u("Italic"),value:"italic"}],T(void 0),void A(t);T(e),t=O.find((function(t){return e===t.family})).variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:p(m(e)),value:e}})),A(t)}}):wp.element.createElement(y,{contentClassName:"wp-block-themeisle-blocks-google-fonts-popover",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(g,{isLarge:!0,className:"wp-block-themeisle-blocks-google-fonts-button",id:H,onClick:n,"aria-expanded":t},a||u("Select Font Family"))},renderContent:function(e){var t=e.onToggle;return wp.element.createElement(h,{label:u("Google Fonts")},wp.element.createElement(k,{value:z,onChange:function(e){return I(e)}}),wp.element.createElement("div",{className:"components-popover__items"},wp.element.createElement(w,{onClick:function(){t(),T(void 0),A([]),I("")}},u("Default")),O.map((function(e){if(!z||e.family.toLowerCase().includes(z.toLowerCase()))return wp.element.createElement(w,{className:l()({"is-selected":e.family===a}),onClick:function(){t(),T(e.family);var n=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:p(m(e)),value:e}}));A(n),I("")}},e.family)}))))}}):u("Loading…")),N&&wp.element.createElement(v,{label:u("Font Width"),value:i||"regular",options:N,onChange:C}),wp.element.createElement(v,{label:u("Font Style"),value:c,options:[{label:u("Regular"),value:"normal"},{label:u("Italic"),value:"italic"}],onChange:S}),wp.element.createElement(v,{label:u("Font Transform"),value:d,options:[{label:u("Default"),value:"none"},{label:u("Uppercase"),value:"uppercase"},{label:u("Lowercase"),value:"lowercase"},{label:u("Capitalize"),value:"capitalize"}],onChange:M}))}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return o}));var a=wp.i18n.__,l=function(e){var t=document.createElement("div");return t.innerHTML=e,void 0!==t.innerText?t.innerText:t.textContent},o=function(e){var t=[a("January"),a("February"),a("March"),a("April"),a("May"),a("June"),a("July"),a("August"),a("September"),a("October"),a("November"),a("December")],n=(e=new Date(e)).getDate(),l=e.getMonth(),o=e.getFullYear();return n+" "+t[l]+", "+o}},function(e,t){e.exports=React},function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return g}));var a=n(0),l=n.n(a),o=(n(64),wp.components),r=o.BaseControl,i=o.Button,c=o.Dropdown,d=o.IconButton,p=o.Toolbar,m=wp.compose.withInstanceId,u=wp.blockEditor.BlockControls,s=wp.element.Fragment,b=m((function(e){var t=e.instanceId,n=e.label,a=e.value,o=e.options,c=e.onChange,d="inspector-style-switcher-control-".concat(t);return wp.element.createElement(r,{id:d,label:n},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},o.map((function(e){return wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===a}),tabIndex:"0",onClick:function(){return function(e){return c(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))})),g=function(e){var t=e.label,n=e.value,a=e.options,o=e.onChange;return wp.element.createElement(u,null,wp.element.createElement(p,{className:"wp-themesiel-blocks-block-styles-components-toolbar"},wp.element.createElement(c,{contentClassName:"wp-themesiel-blocks-block-styles-popover-content",position:"bottom center",renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(d,{className:"components-dropdown-menu__toggle",icon:"admin-appearance",onClick:a,"aria-haspopup":"true","aria-expanded":n,label:t,tooltip:t},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(s,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},a.map((function(e){return wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===n}),tabIndex:"0",onClick:function(){return function(e){return o(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))}})))}},,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a);n(72),n(73);t.default=function(e){var t=e.type,n=e.front,a=e.style,o=e.fill,r=e.invert,i=e.width,c=e.height;return"none"!==a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&i?{transform:"".concat(i?"scaleX( ".concat(i/100," )"):"")}:{}},"bigTriangle"===a&&!1===r&&wp.element.createElement("svg",{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement("path",{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===r&&wp.element.createElement("svg",{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===r&&wp.element.createElement("svg",{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===r&&wp.element.createElement("svg",{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement("svg",{id:"curve",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===r&&wp.element.createElement("svg",{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement("path",{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===r&&wp.element.createElement("svg",{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement("path",{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement("svg",{id:"cloud",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.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"})))}},function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(69),n(2)),r=wp.i18n.__,i=wp.components,c=i.Button,d=i.ButtonGroup,p=i.Icon,m=i.IconButton,u=i.Tooltip,s=wp.compose.withInstanceId;t.default=s((function(e){var t=e.label,n=e.instanceId,a=e.backgroundType,i=e.changeBackgroundType,s="inspector-background-control-".concat(n);return wp.element.createElement("div",{id:s,className:"components-base-control wp-block-themeisle-blocks-advanced-columns-background-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},t),wp.element.createElement(d,{className:"linking-controls"},wp.element.createElement(m,{icon:"admin-customizer",label:r("Color"),className:l()("is-button",{"is-primary":"color"===a}),onClick:function(){i("color")}}),wp.element.createElement(m,{icon:"format-image",label:r("Image"),className:l()("is-button",{"is-primary":"image"===a}),onClick:function(){i("image")}}),wp.element.createElement(u,{text:r("Gradient")},wp.element.createElement(c,{label:r("Gradient"),className:l()("is-button",{"is-primary":"gradient"===a}),onClick:function(){i("gradient")}},wp.element.createElement(p,{icon:o.b})))))))}))},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";t.a={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"]},4:{equal:["25","25","25","25"]},5:{equal:["20","20","20","20","20"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"]}}},function(e,t,n){"use strict";n(70);var a=n(3),l=n(0),o=n.n(l),r=wp.components,i=r.Dashicon,c=r.Tooltip,d=function(e){var t=e.title,n=e.firstColor,a=e.secondColor,l=e.isSelected,r=e.onChange,d=wp.element.createElement("button",{type:"button","aria-pressed":l,className:o()("wp-block-themeisle-blocks-gradient-picker-control-option",{"is-active":l}),style:{background:"linear-gradient(90deg, ".concat(n," 0%, ").concat(a," 100%)")},onClick:function(){return r(n,0,a,100,"linear",90,"center center")}});return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-option-wrapper"},t?wp.element.createElement(c,{text:t},d):d,l&&wp.element.createElement(i,{icon:"saved"}))},p=wp.i18n.__,m=[{title:p("Reef"),firstColor:"#36d1dc",secondColor:"#5b86e5"},{title:p("Mild"),firstColor:"#67B26F",secondColor:"#4ca2cd"},{title:p("Mojito"),firstColor:"#1D976C",secondColor:"#93F9B9"},{title:p("Nelson"),firstColor:"#f2709c",secondColor:"#ff9472"},{title:p("Orange Fun"),firstColor:"#fc4a1a",secondColor:"#f7b733"},{title:p("Evening Night"),firstColor:"#005AA7",secondColor:"#FFFDE4"},{title:p("Calm Darya"),firstColor:"#5f2c82",secondColor:"#49a09d"},{title:p("Opa"),firstColor:"#3D7EAA",secondColor:"#FFE47A"},{title:p("Bora Bora"),firstColor:"#2BC0E4",secondColor:"#EAECC6"},{title:p("Electric Violet"),firstColor:"#4776E6",secondColor:"#8E54E9"},{title:p("Pinky"),firstColor:"#DD5E89",secondColor:"#F7BB97"},{title:p("Purple Paradise"),firstColor:"#1D2B64",secondColor:"#F8CDDA"}],u=wp.i18n.__,s=wp.components,b=s.Button,g=s.ColorIndicator,f=s.Dropdown,y=s.RangeControl,h=s.SelectControl,w=wp.compose.withInstanceId,v=wp.blockEditor.ColorPalette,k=wp.element.Fragment;t.a=w((function(e){var t,n=e.label,l=e.instanceId,o=e.value,r=e.customGradient,i=void 0===r||r,c=e.onChange,p=e.onChangeValue,s="inspector-gradient-picker-control-".concat(l);t="linear"===o.type?"".concat(o.angle,"deg"):"at ".concat(o.position);var w="".concat(o.type,"-gradient( ").concat(t,", ").concat(o.firstColor||"rgba( 0, 0, 0, 0 )"," ").concat(o.firstLocation,"%, ").concat(o.secondColor||"rgba( 0, 0, 0, 0 )"," ").concat(o.secondLocation,"% )"),T=m.some((function(e){return e.firstColor===o.firstColor&&e.secondColor===o.secondColor}));return wp.element.createElement("div",{id:s,className:"wp-block-themeisle-blocks-gradient-picker-control"},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n,!T&&wp.element.createElement(g,{colorValue:w}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-presets"},m.map((function(e){return wp.element.createElement(d,{title:e.title,firstColor:e.firstColor,secondColor:e.secondColor,isSelected:e.firstColor===o.firstColor&&e.secondColor===o.secondColor,onChange:c})})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-custom-wrapper"},i&&wp.element.createElement(f,{className:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-link-action",contentClassName:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-content",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(b,{"aria-expanded":t,onClick:n,isLink:!0},u("Custom Gradient"))},renderContent:function(){return wp.element.createElement(k,null,wp.element.createElement(a.a,{label:u("First Color"),colorValue:o.firstColor},wp.element.createElement(v,{label:u("Color"),clearable:!1,value:o.firstColor,onChange:function(e){return p({firstColor:e})}})),wp.element.createElement(y,{label:u("Location"),value:o.firstLocation,min:0,max:100,onChange:function(e){return p({firstLocation:e})}}),wp.element.createElement(a.a,{label:u("Second Color"),colorValue:o.secondColor},wp.element.createElement(v,{label:u("Color"),clearable:!1,value:o.secondColor,onChange:function(e){return p({secondColor:e})}})),wp.element.createElement(y,{label:u("Location"),value:o.secondLocation,min:0,max:100,onChange:function(e){return p({secondLocation:e})}}),wp.element.createElement(h,{label:u("Type"),value:o.type,options:[{label:"Linear",value:"linear"},{label:"Radial",value:"radial"}],onChange:function(e){return p({type:e})}}),"linear"===o.type?wp.element.createElement(y,{label:u("Angle"),value:o.angle,min:0,max:360,onChange:function(e){return p({angle:e})}}):wp.element.createElement(h,{label:u("Position"),value:o.position,options:[{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){return p({position:e})}}))}}),wp.element.createElement(b,{className:"wp-block-themeisle-blocks-gradient-picker-control-clear",type:"button",isSmall:!0,isDefault:!0,onClick:function(){return c("#ffffff",0,"#ffffff",100,"linear",90,"center center")}},u("Clear"))))))}))},,function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(56);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var i=wp.i18n.__,c=wp.blockEditor.InspectorAdvancedControls,d=wp.compose.withInstanceId,p=wp.components,m=p.BaseControl,u=p.IconButton,s=p.Notice,b=wp.element.useState;t.a=d((function(e){var t=e.instanceId,n=e.value,a=e.onChange,r=o(b(!1),2),d=r[0],p=r[1],g=o(b(n),2),f=g[0],y=g[1],h=void 0!==window.themeisleGutenberg.blockIDs&&n!==f&&window.themeisleGutenberg.blockIDs.includes(f);return wp.element.createElement(c,null,wp.element.createElement(m,{label:i("HTML Anchor"),help:i("Anchors lets you link directly to a section on a page."),id:"wp-block-themeisle-blocks-html-anchor-control-".concat(t)},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-html-anchor-control"},wp.element.createElement("input",{type:"text",className:"wp-block-themeisle-blocks-html-anchor-control-input",readonly:!d&&"readonly",value:d?f:n,onChange:function(e){return y(e.target.value)},onClick:function(e){return e.target.select()}}),wp.element.createElement(u,{icon:d?"yes":"edit",tooltip:i(d?"Save":"Edit"),disabled:!!h,className:l()("wp-block-themeisle-blocks-html-anchor-control-button",{"is-saved":!d}),onClick:function(){if(d&&n!==f){var e=window.themeisleGutenberg.blockIDs.findIndex((function(e){return e===n}));window.themeisleGutenberg.blockIDs[e]=f,a(f)}p(!d)}}))),h&&wp.element.createElement(s,{status:"warning",isDismissible:!1,className:"wp-block-themeisle-blocks-anchor-control-notice"},i("This ID has already been used in this page. Please consider using a different ID to avoid conflict.")))}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=n(22);n(59);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=wp.i18n.__,d=wp.apiFetch,p=wp.components,m=p.BaseControl,u=p.IconButton,s=p.Popover,b=wp.compose,g=b.compose,f=b.withInstanceId,y=wp.data.withSelect,h=wp.element,w=h.useEffect,v=h.useRef,k=h.useState,T=wp.keycodes,E=T.DOWN,x=T.ENTER,C=T.TAB,S=T.UP,M=wp.url.addQueryArgs;t.a=g(f,y((function(e){if(e("core/block-editor"))return{fetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))((function(e){var t=e.instanceId,n=e.label,a=e.help,i=e.placeholder,p=e.value,b=e.className,g=e.onChange,f=e.children,y=e.fetchLinkSuggestions;w((function(){P&&null!==H&&void 0!==B[H]&&!T&&null!==h.current&&(T=!0,Object(o.a)(B[H],h.current,{onlyScrollIfNeeded:!0}),setTimeout((function(){T=!1}),100))}));var h=v(null),T=!1,B=[],O=[],R=r(k(!1),2),L=R[0],N=R[1],A=r(k(!1),2),P=A[0],z=A[1],I=r(k(null),2),H=I[0],_=I[1],j=r(k([]),2),D=j[0],G=j[1],V=function(e){return function(t){B[e]=t}},F=function(e){g(e),z(!1)},W="inspector-link-control-".concat(t);return wp.element.createElement(m,{label:n,id:W,help:a,className:b},wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-link-control-wrapper",{"is-open":L})},wp.element.createElement("input",{type:"url",placeholder:i,value:p,onChange:function(e){g(e.target.value),function(e){var t;1>=e.length||/^https?:/.test(e)?z(!1):(z(!0),(t=y?y(e):d({path:M("/wp/v2/search",{search:e,per_page:20,type:"post"})})).then((function(e){O===t&&(G(e),_(null))})),O=t)}(e.target.value)},onKeyDown:function(e){if(P&&1<=D.length){var t=D[H];switch(e.keyCode){case S:e.stopPropagation(),e.preventDefault();var n=H?H-1:D.length-1;_(n);break;case E:e.stopPropagation(),e.preventDefault();var a=null===H||H===D.length-1?0:H+1;_(a);break;case C:case x:null!==H&&(e.stopPropagation(),F(t.url))}}},className:l()("components-text-control__input",{"is-full":void 0===f})}),P&&0<D.length&&wp.element.createElement(s,{position:"bottom",noArrow:!0,focusOnMount:!1,className:"wp-block-themeisle-blocks-link-control-popover"},wp.element.createElement("div",{ref:h,className:"wp-block-themeisle-blocks-link-control-popover-container"},D.map((function(e,t){return wp.element.createElement("button",{key:e.id,role:"option",tabIndex:"-1",ref:V(t),className:l()("block-editor-url-input__suggestion","editor-url-input__suggestion",{"is-selected":t===H}),onClick:function(){return F(e.url)}},e.title||c("Untitled Post"))})))),void 0!==f&&wp.element.createElement(u,{icon:"admin-generic",tooltip:c("Link Options"),onClick:function(){return N(!L)}})),L&&f)}))},,,,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(71),n(4)),r=wp.i18n.__,i=wp.components,c=i.Button,d=i.Path,p=i.Rect,m=i.SVG,u=i.Tooltip,s=wp.compose.compose,b=wp.data.withSelect,g=wp.element.Fragment;t.default=s(b((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t,n=e.label,a=e.onClick,i=e.layout,s=e.layoutTablet,b=e.layoutMobile,f=e.columns,y=e.view;return"Desktop"===y?t=i:"Tablet"===y?t=s:"Mobile"===y&&(t=b),wp.element.createElement(o.a,{label:n,className:"wp-block-themeisle-blocks-advanced-columns-layout-control"},1===f&&wp.element.createElement(u,{text:r("Single Row")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}))))||2===f&&wp.element.createElement(g,null,wp.element.createElement(u,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(u,{text:r("1:2")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===t}),onClick:function(){return a("oneTwo")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(u,{text:r("2:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===t}),onClick:function(){return a("twoOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"28.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==y||"Tablet"==y)&&wp.element.createElement(u,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||3===f&&wp.element.createElement(g,null,wp.element.createElement(u,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(u,{text:r("1:1:2")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===t}),onClick:function(){return a("oneOneTwo")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(u,{text:r("2:1:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===t}),onClick:function(){return a("twoOneOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(u,{text:r("1:2:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===t}),onClick:function(){return a("oneTwoOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"31.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(u,{text:r("1:3:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===t}),onClick:function(){return a("oneThreeOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"11.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"33.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==y||"Tablet"==y)&&wp.element.createElement(u,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||4===f&&wp.element.createElement(g,null,wp.element.createElement(u,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==y||"Tablet"==y)&&wp.element.createElement(g,null,wp.element.createElement(u,{text:r("Two Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return a("twoColumnGrid")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(u,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"}))))))||5===f&&wp.element.createElement(g,null,wp.element.createElement(u,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"10.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"34.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"26.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"18.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==y||"Tablet"==y)&&wp.element.createElement(u,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||6===f&&wp.element.createElement(g,null,wp.element.createElement(u,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"10.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"35.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"29.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"16.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==y||"Tablet"==y)&&wp.element.createElement(g,null,wp.element.createElement(u,{text:r("Two Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return a("twoColumnGrid")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"4",y:"18.9",width:"40",height:"2.2"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"4",y:"26.9",width:"40",height:"2.2"})))),wp.element.createElement(u,{text:r("Three Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===t}),onClick:function(){return a("threeColumnGrid")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(p,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(u,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{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"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))))}))},function(e,t,n){"use strict";n.r(t);n(74);var a=n(2),l=n(0),o=n.n(l),r=n(106);n(75);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var d=lodash,p=d.startCase,m=d.toLower,u=wp.i18n.__,s=wp.components,b=s.Button,g=s.Dashicon,f=s.Icon,y=s.TextControl,h=s.Tooltip,w=s.SelectControl,v=function(e){var t,n=e.preview,l=e.tab,r=e.blocksCategories,c=e.templateCategories,d=e.selectedCategory,s=e.selectedTemplate,v=e.search,k=e.setPreview,T=e.changeTab,E=e.close,x=e.importTemplate,C=e.selectCategory,S=e.changeSearch,M=(t=("block"===l?r:c).map((function(e){return{label:p(m(e)),value:e}})),[{label:u("All Categories"),value:"all"}].concat(i(t)));return wp.element.createElement("div",{className:"library-modal-control-panel"},wp.element.createElement("div",{className:"library-modal-header"},wp.element.createElement("div",{className:"library-modal-header-logo"},n?wp.element.createElement(b,{className:"library-modal-header-tabs-button back-to-library","aria-label":u("Back to Library"),onClick:function(){return k(!n)}},wp.element.createElement(g,{icon:"arrow-left-alt"})," ",u("Back to Library")):wp.element.createElement("div",{className:"library-modal-header-tabs-button"},wp.element.createElement(f,{icon:a.m}))),!n&&wp.element.createElement("div",{className:"library-modal-header-tabs"},wp.element.createElement(b,{className:o()("library-modal-header-tabs-button",{"is-selected":"block"===l}),onClick:function(){return T("block")}},wp.element.createElement(g,{icon:"screenoptions"}),u("Blocks")),wp.element.createElement(b,{className:o()("library-modal-header-tabs-button",{"is-selected":"template"===l}),onClick:function(){return T("template")}},wp.element.createElement(g,{icon:"editor-table"}),u("Templates"))),wp.element.createElement("div",{className:"library-modal-header-actions"},n&&wp.element.createElement(b,{className:"library-modal-header-tabs-button insert-button",onClick:function(){return x(s.template_url)},tabindex:"0"},wp.element.createElement(g,{icon:"arrow-down-alt",size:16}),u("Insert")),wp.element.createElement(h,{text:u("Close")},wp.element.createElement(b,{className:"library-modal-header-tabs-button","aria-label":u("Close settings"),onClick:E},wp.element.createElement(g,{icon:"no-alt"}))))),!n&&wp.element.createElement("div",{className:"library-modal-actions"},wp.element.createElement(w,{className:"library-modal-category-control",value:"all"===d?"all":d,onChange:C,options:M}),wp.element.createElement(y,{type:"text",value:v||"",placeholder:u("Search"),className:"library-modal-search-control",onChange:S})))},k=wp.i18n.__,T=wp.components.Notice,E=wp.element.Fragment,x=function(e){var t=e.isError,n=e.removeError,a=e.isMissing,l=e.removeMissing,o=e.missingBlocks;return wp.element.createElement(E,null,!Boolean(themeisleGutenberg.isCompatible)&&wp.element.createElement("div",{className:"library-modal-error"},wp.element.createElement(T,{status:"warning",isDismissible:!1,className:"version-warning",actions:[{label:k("Update Now"),url:themeisleGutenberg.updatePath}]},k("You are using an older version of Otter. Use the latest version of Otter to have maximum compatibility with Template Library."))),t&&wp.element.createElement("div",{className:"library-modal-error"},wp.element.createElement(T,{status:"error",onRemove:n},k("There seems to be an error. Please try again."))),a&&wp.element.createElement("div",{className:"library-modal-error"},wp.element.createElement(T,{status:"warning",className:"library-modal-missing",onRemove:l},k("You seem to be missing some blocks that are required by your selected template."),wp.element.createElement("details",null,wp.element.createElement("summary",null,k("View Missing Blocks")),wp.element.createElement("ul",null,o.map((function(e){return wp.element.createElement("li",null,e)})))))))},C=n(23),S=n.n(C),M=wp.i18n.__,B=wp.blockEditor.BlockPreview,O=wp.components.Button,R=function(e){var t=e.template,n=e.importPreview,a=e.importTemplate;return wp.element.createElement("div",{"aria-label":t.title||M("Untitled Gutenberg Template"),className:"library-modal-content__item",tabindex:"0"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(S.a,null,wp.element.createElement("img",{src:t.screenshot_url||"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/default.jpg"}))),wp.element.createElement("div",{className:"library-modal-content__footer"},wp.element.createElement("div",{className:"library-modal-content__footer_meta"},wp.element.createElement("h4",{className:"library-modal-content__footer_meta_area"},t.title&&t.title+(t.author&&M(" by ")+t.author),!t.title&&t.author&&M("Author: ")+t.author)),wp.element.createElement("div",{className:"library-modal-content__footer_actions"},B&&wp.element.createElement(O,{isDefault:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return n(t)},tabindex:"0"},M("Preview")),wp.element.createElement(O,{isPrimary:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return a(t.template_url)},tabindex:"0"},M("Insert")))))},L=wp.i18n.__,N=wp.blockEditor.BlockPreview,A=wp.components.Spinner,P=(0,wp.viewport.withViewportMatch)({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"})((function(e){var t=e.preview,n=e.isLoaded,a=e.data,l=e.tab,o=e.selectedTemplateContent,r=e.selectedCategory,i=e.search,c=e.importPreview,d=e.importTemplate,p=e.isLarger,m=e.isLarge,u=e.isSmall,s=e.isSmaller,b=1400;return!p&&!m&&u&&!s?b=960:!(p||m||u||s)&&(b=600),t?wp.element.createElement("div",{className:"library-modal-preview"},wp.element.createElement(N,{blocks:o,viewportWidth:b})):n?wp.element.createElement("div",{className:"library-modal-content"},a.map((function(e){if(e.template_url&&("all"===r||e.categories&&e.categories.includes(r))&&(!i||e.keywords&&e.keywords.some((function(e){return e.toLowerCase().includes(i.toLowerCase())})))&&l===e.type)return wp.element.createElement(R,{template:e,importPreview:c,importTemplate:d})})),wp.element.createElement("div",{"aria-label":L("Coming Soon"),className:"library-modal-content__item"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(S.a,null,wp.element.createElement("img",{src:"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/coming-soon.jpg"}))))):wp.element.createElement("div",{className:"library-modal-loader"},wp.element.createElement(A,null))}));function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function _(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function j(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){_(o,a,l,r,i,"next",e)}function i(e){_(o,a,l,r,i,"throw",e)}r(void 0)}))}}var D=wp.apiFetch,G=wp.components.Modal,V=wp.compose.compose,F=wp.data,W=F.withSelect,q=F.withDispatch,U=wp.element,Z=U.useEffect,$=U.useState,Q=V(W((function(e,t){var n=t.clientId,a=e("core/block-editor").getBlock,l=e("core/blocks").getBlockTypes;return{block:a(n),availableBlocks:l()}})),q((function(e,t){var n=t.block,a=e("core/block-editor").replaceBlocks;return{importBlocks:function(e){return a(n.clientId,e)}}})))((function(e){var t=e.close,n=e.availableBlocks,a=e.importBlocks;Z((function(){(function(){var e=j(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D({path:"themeisle-gutenberg-blocks/v1/fetch_templates"});case 2:t=e.sent,n=[],a=[],t.map((function(e){e.categories&&e.template_url&&("block"===e.type&&e.categories.map((function(e){n.push(e)})),"template"===e.type&&e.categories.map((function(e){a.push(e)})))})),n=n.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),a=a.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),B(n),L(a),H(t),m(!0);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[]);var l=I($("block"),2),i=l[0],c=l[1],d=I($(!1),2),p=d[0],m=d[1],u=I($(!1),2),s=u[0],b=u[1],g=I($(!1),2),f=g[0],y=g[1],h=I($("all"),2),w=h[0],k=h[1],T=I($(""),2),E=T[0],C=T[1],S=I($([]),2),M=S[0],B=S[1],O=I($([]),2),R=O[0],L=O[1],N=I($([]),2),A=N[0],H=N[1],_=I($(!1),2),V=_[0],F=_[1],W=I($(null),2),q=W[0],U=W[1],Q=I($(null),2),K=Q[0],J=Q[1],Y=I($([]),2),X=Y[0],ee=Y[1],te=function(){var e=j(regeneratorRuntime.mark((function e(){var t,n,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:null,m(!1),e.next=4,D({path:"themeisle-gutenberg-blocks/v1/import_template?url=".concat(t.template_url)});case 4:n=e.sent,U(t),J(n),m(!0),F(!V);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):"object"===z(t)&&Object.keys(t).map((function(n){"clientId"===n&&(t[n]=Object(r.a)()),"innerBlocks"===n&&t[n].map((function(t){e(t)}))})),t},ae=function e(t){var a=!1,l=[];return Array.isArray(t)?t.map((function(t){return e(t)})):"object"===z(t)&&Object.keys(t).some((function(o){"name"===o&&(void 0===n.find((function(e){return e.name===t.name}))&&(l.push(t.name),a=!0));"innerBlocks"===o&&t[o].map((function(t){return e(t)}))})),l=l.concat(l).filter((function(e,t,n){return n.indexOf(e)===t})),ee(l),a},le=function(){var e=j(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return F(!1),m(!1),ee([]),e.next=5,D({path:"themeisle-gutenberg-blocks/v1/import_template?url=".concat(t)});case 5:n=e.sent,null!==(n=ne(n))?(m(!0),ae(n)?y(!0):a(n)):(m(!0),b(!0));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return wp.element.createElement(G,{className:o()("wp-block-themeisle-library-modal",{"is-preview":V}),onRequestClose:t,isDismissable:!1,shouldCloseOnClickOutside:!1},wp.element.createElement(v,{preview:V,tab:i,changeTab:function(e){c(e),k("all"),C("")},blocksCategories:M,templateCategories:R,selectedTemplate:q,selectedCategory:w,search:E,setPreview:F,close:t,importTemplate:le,selectCategory:function(e){return k(e)},changeSearch:function(e){return C(e)}}),wp.element.createElement(x,{isError:s,isMissing:f,missingBlocks:X,removeError:function(){return b(!1)},removeMissing:function(){return y(!1)}}),wp.element.createElement(P,{preview:V,isLoaded:p,data:A,tab:i,selectedTemplateContent:K,selectedCategory:w,search:E,importPreview:te,importTemplate:le}))}));function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Y=wp.i18n.__,X=wp.components,ee=X.Button,te=X.Dashicon,ne=X.Icon,ae=X.Path,le=X.Placeholder,oe=X.Rect,re=X.SVG,ie=X.Tooltip,ce=wp.element.useState;t.default=function(e){var t=e.clientId,n=e.setupColumns,l=K(ce(!1),2),o=l[0],r=l[1];return wp.element.createElement(le,{label:Y("Select Layout"),instructions:Y("Select a layout to start with, or make one yourself."),icon:wp.element.createElement(ne,{icon:a.g}),isColumnLayout:!0,className:"wp-block-themeisle-onboarding-component"},wp.element.createElement("div",{className:"wp-block-themeisle-layout-picker"},wp.element.createElement(ie,{text:Y("Equal")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"equal")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{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"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("1:2")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"oneTwo")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{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"}),wp.element.createElement(oe,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("2:1")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"twoOne")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{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"}),wp.element.createElement(oe,{x:"28.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("Equal")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"equal")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{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"}),wp.element.createElement(oe,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("1:1:2")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"oneOneTwo")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{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"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("2:1:1")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"twoOneOne")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{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"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("Equal")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(4,"equal")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{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"}),wp.element.createElement(oe,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"}))))),wp.element.createElement(ie,{text:Y("Open Template Library")},wp.element.createElement(ee,{isPrimary:!0,isLarge:!0,className:"wp-block-themeisle-template-library",onClick:function(){return r(!0)}},wp.element.createElement(te,{icon:"category"}),Y("Template Library")),o&&wp.element.createElement(Q,{clientId:t,close:function(){return r(!1)}})),wp.element.createElement("div",{className:"wp-block-themeisle-layout-skipper"},wp.element.createElement(ee,{isLink:!0,onClick:function(){return n(1,"equal")}},Y("Skip"))))}},function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=n(10),r=wp.components,i=r.Placeholder,c=r.Spinner,d=(0,wp.data.withSelect)((function(e,t){var n=t.id,a=t.alt,l=t.size,o=n?e("core").getMedia(n):void 0,r=o?0<Object.keys(o.media_details.sizes).length&&o.media_details.sizes[l]?o.media_details.sizes[l].source_url:o.source_url:null;return o?{thumbnail:r,alt:o.alt_text||a}:{alt:a}}))((function(e){var t=e.alt,n=e.id,a=e.thumbnail,l=e.link,o=wp.element.createElement(i,{className:"wp-themeisle-block-spinner"},wp.element.createElement(c,null));return a&&(o=wp.element.createElement("img",{src:a,alt:t,"data-id":n})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-image"},wp.element.createElement("a",{href:l},o))})),p=wp.i18n,m=p.__,u=p.sprintf,s=function(e){var t=e.className,n=e.attributes,a=e.posts,r=e.categoriesList,i=e.authors,c=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-grid","wp-block-themeisle-blocks-posts-grid-columns-".concat(n.columns),{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return r&&(t=r.find((function(t){return t.id===e.categories[0]}))),i&&(a=i.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(d,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-body"},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&r?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(c,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},Object(o.b)(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&u(m("on %s"),Object(o.a)(e.date)),n.displayAuthor&&void 0!==a&&i&&u(m(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},Object(o.b)(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))},b=wp.i18n,g=b.__,f=b.sprintf,y=function(e){var t=e.className,n=e.attributes,a=e.posts,r=e.categoriesList,i=e.authors,c=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-list",{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return r&&(t=r.find((function(t){return t.id===e.categories[0]}))),i&&(a=i.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(d,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-posts-grid-post-body",{"is-full":!n.displayFeaturedImage})},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&r?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(c,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},Object(o.b)(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&f(g("on %s"),Object(o.a)(e.date)),n.displayAuthor&&void 0!==a&&i&&f(g(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},Object(o.b)(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))};t.default=function(e){var t=e.className,n=e.attributes,a=e.posts,l=e.categoriesList,o=e.authors;return"grid"===n.style?wp.element.createElement(s,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):"list"===n.style?wp.element.createElement(y,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):void 0}},,,function(e,t,n){"use strict";n.r(t);var a,l=n(2);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r,i=(o(a={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"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},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:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},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"},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},reverseColumnsTablet:{type:"boolean",default:!1}},"reverseColumnsTablet",{type:"boolean",default:!1}),o(a,"columnsHTMLTag",{type:"string",default:"div"}),a),c=n(0),d=n.n(c),p=n(7),m=n.n(p);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=wp.blockEditor.InnerBlocks,f=wp.components,y=f.SVG,h=f.Path,w=function(e){var t=e.type,n=e.front,a=e.style,l=e.fill,o=e.invert,r=e.width,i=e.height;return"none"!==a&&wp.element.createElement("div",{className:d()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&r?{transform:"".concat(r?"scaleX( ".concat(r/100," )"):"")}:{}},"bigTriangle"===a&&!1===o&&wp.element.createElement(y,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===o&&wp.element.createElement(y,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===o&&wp.element.createElement(y,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===o&&wp.element.createElement(y,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(y,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===o&&wp.element.createElement(y,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===o&&wp.element.createElement(y,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(y,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{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=[{attributes:{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"}},supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,r,i=e.attributes,c=i.id,p=i.columns,u=i.layout,b=i.layoutTablet,f=i.layoutMobile,y=i.columnsGap,h=i.columnsWidth,v=i.horizontalAlign,k=i.verticalAlign,T=i.backgroundType,E=i.backgroundColor,x=i.backgroundImageURL,C=i.backgroundAttachment,S=i.backgroundPosition,M=i.backgroundRepeat,B=i.backgroundSize,O=i.backgroundGradientFirstColor,R=i.backgroundGradientFirstLocation,L=i.backgroundGradientSecondColor,N=i.backgroundGradientSecondLocation,A=i.backgroundGradientType,P=i.backgroundGradientAngle,z=i.backgroundGradientPosition,I=i.backgroundOverlayOpacity,H=i.backgroundOverlayType,_=i.backgroundOverlayColor,j=i.backgroundOverlayImageURL,D=i.backgroundOverlayAttachment,G=i.backgroundOverlayPosition,V=i.backgroundOverlayRepeat,F=i.backgroundOverlaySize,W=i.backgroundOverlayGradientFirstColor,q=i.backgroundOverlayGradientFirstLocation,U=i.backgroundOverlayGradientSecondColor,Z=i.backgroundOverlayGradientSecondLocation,$=i.backgroundOverlayGradientType,Q=i.backgroundOverlayGradientAngle,K=i.backgroundOverlayGradientPosition,J=i.backgroundOverlayFilterBlur,Y=i.backgroundOverlayFilterBrightness,X=i.backgroundOverlayFilterContrast,ee=i.backgroundOverlayFilterGrayscale,te=i.backgroundOverlayFilterHue,ne=i.backgroundOverlayFilterSaturate,ae=i.backgroundOverlayBlend,le=i.borderType,oe=i.border,re=i.borderTop,ie=i.borderRight,ce=i.borderBottom,de=i.borderLeft,pe=i.borderColor,me=i.borderRadiusType,ue=i.borderRadius,se=i.borderRadiusTop,be=i.borderRadiusRight,ge=i.borderRadiusBottom,fe=i.borderRadiusLeft,ye=i.boxShadow,he=i.boxShadowColor,we=i.boxShadowColorOpacity,ve=i.boxShadowBlur,ke=i.boxShadowSpread,Te=i.boxShadowHorizontal,Ee=i.boxShadowVertical,xe=i.dividerTopType,Ce=i.dividerTopColor,Se=i.dividerTopInvert,Me=i.dividerBottomType,Be=i.dividerBottomColor,Oe=i.dividerBottomInvert,Re=i.hide,Le=i.hideTablet,Ne=i.hideMobile,Ae=i.columnsHTMLTag;("color"===T&&(t={background:E}),"image"===T&&(t={backgroundImage:"url( '".concat(x,"' )"),backgroundAttachment:C,backgroundPosition:S,backgroundRepeat:M,backgroundSize:B}),"gradient"===T)&&(r="linear"===A?"".concat(P,"deg"):"at ".concat(z),t={background:"".concat(A,"-gradient( ").concat(r,", ").concat(O||"rgba( 0, 0, 0, 0 )"," ").concat(R,"%, ").concat(L||"rgba( 0, 0, 0, 0 )"," ").concat(N,"% )")});"linked"===le&&(a={borderWidth:"".concat(oe,"px"),borderStyle:"solid",borderColor:pe}),"unlinked"===le&&(a={borderTopWidth:"".concat(re,"px"),borderRightWidth:"".concat(ie,"px"),borderBottomWidth:"".concat(ce,"px"),borderLeftWidth:"".concat(de,"px"),borderStyle:"solid",borderColor:pe}),"linked"===me&&(l={borderRadius:"".concat(ue,"px")}),"unlinked"===me&&(l={borderTopLeftRadius:"".concat(se,"px"),borderTopRightRadius:"".concat(be,"px"),borderBottomRightRadius:"".concat(ge,"px"),borderBottomLeftRadius:"".concat(fe,"px")}),!0===ye&&(o={boxShadow:"".concat(Te,"px ").concat(Ee,"px ").concat(ve,"px ").concat(ke,"px ").concat(m()(he||"#000000",we))});var Pe,ze=s(s(s(s(s({},t),a),l),o),{},{justifyContent:v});("color"===H&&(n={background:_,opacity:I/100}),"image"===H&&(n={backgroundImage:"url( '".concat(j,"' )"),backgroundAttachment:D,backgroundPosition:G,backgroundRepeat:V,backgroundSize:F,opacity:I/100}),"gradient"===H)&&(Pe="linear"===$?"".concat(Q,"deg"):"at ".concat(K),n={background:"".concat($,"-gradient( ").concat(Pe,", ").concat(W||"rgba( 0, 0, 0, 0 )"," ").concat(q,"%, ").concat(U||"rgba( 0, 0, 0, 0 )"," ").concat(Z,"% )"),opacity:I/100});var Ie=s(s({},n),{},{mixBlendMode:ae,filter:"blur( ".concat(J/10,"px ) brightness( ").concat(Y/10," ) contrast( ").concat(X/10," ) grayscale( ").concat(ee/100," ) hue-rotate( ").concat(te,"deg ) saturate( ").concat(ne/10," )")}),He={};h&&(He={maxWidth:h+"px"});var _e=Re?"":"has-desktop-".concat(u,"-layout"),je=Le?"":"has-tablet-".concat(b,"-layout"),De=Ne?"":"has-mobile-".concat(f,"-layout"),Ge=d()(e.className,"has-".concat(p,"-columns"),_e,je,De,{"hide-in-desktop":Re},{"hide-in-tablet":Le},{"hide-in-mobile":Ne},"has-".concat(y,"-gap"),"has-vertical-".concat(k));return wp.element.createElement(Ae,{className:Ge,id:c,style:ze},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:Ie}),wp.element.createElement(w,{type:"top",front:!0,style:xe,fill:Ce,invert:Se}),wp.element.createElement("div",{className:"innerblocks-wrap",style:He},wp.element.createElement(g.Content,null)),wp.element.createElement(w,{type:"bottom",front:!0,style:Me,fill:Be,invert:Oe}))}},{attributes:{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"},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"},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"}},supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,r,i=e.attributes,c=e.className,p=i.columnsHTMLTag;("color"===i.backgroundType&&(t={background:i.backgroundColor}),"image"===i.backgroundType&&(t={backgroundImage:"url( '".concat(i.backgroundImageURL,"' )"),backgroundAttachment:i.backgroundAttachment,backgroundPosition:i.backgroundPosition,backgroundRepeat:i.backgroundRepeat,backgroundSize:i.backgroundSize}),"gradient"===i.backgroundType)&&(r="linear"===i.backgroundGradientType?"".concat(i.backgroundGradientAngle,"deg"):"at ".concat(i.backgroundGradientPosition),t={background:"".concat(i.backgroundGradientType,"-gradient( ").concat(r,", ").concat(i.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientFirstLocation,"%, ").concat(i.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientSecondLocation,"% )")});"linked"===i.borderType&&(a={borderWidth:"".concat(i.border,"px"),borderStyle:"solid",borderColor:i.borderColor}),"unlinked"===i.borderType&&(a={borderTopWidth:"".concat(i.borderTop,"px"),borderRightWidth:"".concat(i.borderRight,"px"),borderBottomWidth:"".concat(i.borderBottom,"px"),borderLeftWidth:"".concat(i.borderLeft,"px"),borderStyle:"solid",borderColor:i.borderColor}),"linked"===i.borderRadiusType&&(l={borderRadius:"".concat(i.borderRadius,"px")}),"unlinked"===i.borderRadiusType&&(l={borderTopLeftRadius:"".concat(i.borderRadiusTop,"px"),borderTopRightRadius:"".concat(i.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(i.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(i.borderRadiusLeft,"px")}),!0===i.boxShadow&&(o={boxShadow:"".concat(i.boxShadowHorizontal,"px ").concat(i.boxShadowVertical,"px ").concat(i.boxShadowBlur,"px ").concat(i.boxShadowSpread,"px ").concat(m()(i.boxShadowColor?i.boxShadowColor:"#000000",i.boxShadowColorOpacity))});var u,b=s(s(s(s(s({},t),a),l),o),{},{justifyContent:i.horizontalAlign});("color"===i.backgroundOverlayType&&(n={background:i.backgroundOverlayColor,opacity:i.backgroundOverlayOpacity/100}),"image"===i.backgroundOverlayType&&(n={backgroundImage:"url( '".concat(i.backgroundOverlayImageURL,"' )"),backgroundAttachment:i.backgroundOverlayAttachment,backgroundPosition:i.backgroundOverlayPosition,backgroundRepeat:i.backgroundOverlayRepeat,backgroundSize:i.backgroundOverlaySize,opacity:i.backgroundOverlayOpacity/100}),"gradient"===i.backgroundOverlayType)&&(u="linear"===i.backgroundOverlayGradientType?"".concat(i.backgroundOverlayGradientAngle,"deg"):"at ".concat(i.backgroundOverlayGradientPosition),n={background:"".concat(i.backgroundOverlayGradientType,"-gradient( ").concat(u,", ").concat(i.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundOverlayGradientFirstLocation,"%, ").concat(i.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundOverlayGradientSecondLocation,"% )"),opacity:i.backgroundOverlayOpacity/100});var f=s(s({},n),{},{mixBlendMode:i.backgroundOverlayBlend}),y={};i.columnsWidth&&(y={maxWidth:i.columnsWidth+"px"});var h=i.hide?"":"has-desktop-".concat(i.layout,"-layout"),v=i.hideTablet?"":"has-tablet-".concat(i.layoutTablet,"-layout"),k=i.hideMobile?"":"has-mobile-".concat(i.layoutMobile,"-layout"),T=d()(c,"has-".concat(i.columns,"-columns"),h,v,k,{"hide-in-desktop":i.hide},{"hide-in-tablet":i.hideTablet},{"hide-in-mobile":i.hideMobile},"has-".concat(i.columnsGap,"-gap"),"has-vertical-".concat(i.verticalAlign));return wp.element.createElement(p,{className:T,id:i.id,style:b},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:f}),wp.element.createElement(w,{type:"top",front:!0,style:i.dividerTopType,fill:i.dividerTopColor,invert:i.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap",style:y},wp.element.createElement(g.Content,null)),wp.element.createElement(w,{type:"bottom",front:!0,style:i.dividerBottomType,fill:i.dividerBottomColor,invert:i.dividerBottomInvert}))}},{attributes:(r={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"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},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:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},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"},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},reverseColumnsTablet:{type:"boolean",default:!1}},b(r,"reverseColumnsTablet",{type:"boolean",default:!1}),b(r,"columnsHTMLTag",{type:"string",default:"div"}),r),supports:{align:["wide","full"],html:!1},save:function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag,l=t.hide?"":"has-desktop-".concat(t.layout,"-layout"),o=t.hideTablet?"":"has-tablet-".concat(t.layoutTablet,"-layout"),r=t.hideMobile?"":"has-mobile-".concat(t.layoutMobile,"-layout"),i=d()(n,"has-".concat(t.columns,"-columns"),l,o,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-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign)),c=function(e){var t=e.type,n=e.front,a=e.style,l=e.fill,o=e.invert,r=e.width,i=e.height;return"none"!==a&&wp.element.createElement("div",{className:d()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&r?{transform:"".concat(r?"scaleX( ".concat(r/100," )"):"")}:{}},"bigTriangle"===a&&!1===o&&wp.element.createElement(y,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"bottom"===t})},wp.element.createElement(h,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===o&&wp.element.createElement(y,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"top"===t})},wp.element.createElement(h,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===o&&wp.element.createElement(y,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"top"===t})},wp.element.createElement(h,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===o&&wp.element.createElement(y,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"top"===t})},wp.element.createElement(h,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(y,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"top"===t})},wp.element.createElement(h,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===o&&wp.element.createElement(y,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"bottom"===t})},wp.element.createElement(h,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===o&&wp.element.createElement(y,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"bottom"===t})},wp.element.createElement(h,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(y,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"top"===t})},wp.element.createElement(h,{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"})))};return wp.element.createElement(a,{className:i,id:t.id},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),wp.element.createElement(c,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap"},wp.element.createElement(g.Content,null)),wp.element.createElement(c,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}}],k=n(6),T=n(17),E=wp.blockEditor,x=E.BlockControls,C=E.BlockVerticalAlignmentToolbar,S=function(e){var t=e.attributes,n=e.setAttributes,a=function(){return"flex-start"===t.verticalAlign?"top":"flex-end"===t.verticalAlign?"bottom":t.verticalAlign};return a=a(),wp.element.createElement(x,null,C&&wp.element.createElement(C,{onChange:function(e){if(t.verticalAlign===e)return n({verticalAlign:"unset"});"top"===e?e="flex-start":"bottom"===e&&(e="flex-end"),n({verticalAlign:e})},value:a}))},M=n(3),B=n(25),O=n(5),R=n(4),L=n(15),N=n(18),A=n(8),P=n(20);function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var _=wp.i18n.__,j=wp.blockEditor,D=j.BlockVerticalAlignmentToolbar,G=j.ColorPalette,V=j.InspectorControls,F=j.MediaPlaceholder,W=wp.components,q=W.BaseControl,U=W.Button,Z=W.ButtonGroup,$=W.Dashicon,Q=W.Icon,K=W.IconButton,J=W.PanelBody,Y=W.Tooltip,X=W.ToggleControl,ee=W.RangeControl,te=W.SelectControl,ne=wp.compose.compose,ae=wp.data.withSelect,le=wp.element,oe=le.Fragment,re=le.useState,ie=ne(ae((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.attributes,n=e.setAttributes,a=e.updateColumnsWidth,o=e.dividerViewType,r=e.setDividerViewType,i=e.view,c=I(re("layout"),2),p=c[0],m=c[1],u=function(){var e;return"Desktop"===i&&(e=t.paddingType),"Tablet"===i&&(e=t.paddingTypeTablet),"Mobile"===i&&(e=t.paddingTypeMobile),e};u=u();var s={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},b={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},g={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},f=function(e){var n;return"top"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},y=function(){var e;return"Desktop"===i&&(e=t.marginType),"Tablet"===i&&(e=t.marginTypeTablet),"Mobile"===i&&(e=t.marginTypeMobile),e};y=y();var h={top:"marginTop",bottom:"marginBottom"},w={top:"marginTopTablet",bottom:"marginBottomTablet"},v={top:"marginTopMobile",bottom:"marginBottomMobile"},k=function(e){var n;return"top"==e&&("Desktop"===i&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===i&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===i&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("Desktop"===i&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===i&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===i&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n},T=function(e){if(t.horizontalAlign===e)return n({horizontalAlign:"unset"});n({horizontalAlign:e})},E=function(){var e;return"Desktop"===i&&(e=t.columnsHeightCustom),"Tablet"===i&&(e=t.columnsHeightCustomTablet),"Mobile"===i&&(e=t.columnsHeightCustomMobile),e};E=E();var x=function(e){if(t.verticalAlign===e)return n({verticalAlign:"unset"});n({verticalAlign:e})},C=function(){n({backgroundImageID:"",backgroundImageURL:""})},S=function(){n({backgroundOverlayImageID:"",backgroundOverlayImageURL:""})},H={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},j=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},W={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},ne=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n},ae=function(){var e;return"top"==o&&(e=t.dividerTopType),"bottom"==o&&(e=t.dividerBottomType),e};ae=ae();var le=function(){var e;return"top"==o&&(e=t.dividerTopColor),"bottom"==o&&(e=t.dividerBottomColor),e};le=le();var ie=function(){var e;return"top"==o&&("Desktop"==i&&(e=t.dividerTopWidth),"Tablet"==i&&(e=t.dividerTopWidthTablet),"Mobile"==i&&(e=t.dividerTopWidthMobile)),"bottom"==o&&("Desktop"==i&&(e=t.dividerBottomWidth),"Tablet"==i&&(e=t.dividerBottomWidthTablet),"Mobile"==i&&(e=t.dividerBottomWidthMobile)),e};ie=ie();var ce=function(){var e;return"top"==o&&("Desktop"==i&&(e=t.dividerTopHeight),"Tablet"==i&&(e=t.dividerTopHeightTablet),"Mobile"==i&&(e=t.dividerTopHeightMobile)),"bottom"==o&&("Desktop"==i&&(e=t.dividerBottomHeight),"Tablet"==i&&(e=t.dividerBottomHeightTablet),"Mobile"==i&&(e=t.dividerBottomHeightMobile)),e};ce=ce();var de=function(){var e;return"top"==o&&(e=t.dividerTopInvert),"bottom"==o&&(e=t.dividerBottomInvert),e};de=de();var pe=function(e,t){"Desktop"===t&&n({hide:e}),"Tablet"===t&&n({hideTablet:e}),"Mobile"===t&&n({hideMobile:e})},me=function(e,t){"Tablet"===t&&n({reverseColumnsTablet:e}),"Mobile"===t&&n({reverseColumnsMobile:e})};return wp.element.createElement(oe,null,wp.element.createElement(V,null,wp.element.createElement(J,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(U,{className:d()("header-tab",{"is-selected":"layout"===p}),onClick:function(){return m("layout")}},wp.element.createElement("span",null,wp.element.createElement($,{icon:"editor-table"}),_("Layout"))),wp.element.createElement(U,{className:d()("header-tab",{"is-selected":"style"===p}),onClick:function(){return m("style")}},wp.element.createElement("span",null,wp.element.createElement($,{icon:"admin-customizer"}),_("Style"))),wp.element.createElement(U,{className:d()("header-tab",{"is-selected":"advanced"===p}),onClick:function(){return m("advanced")}},wp.element.createElement("span",null,wp.element.createElement($,{icon:"admin-generic"}),_("Advanced")))),"layout"===p&&wp.element.createElement(oe,null,wp.element.createElement(J,{title:_("Columns & Layout")},wp.element.createElement(ee,{label:_("Columns"),value:t.columns,onChange:function(e){6>=e&&(n({columns:e,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(e,"equal")),6<e&&(n({columns:6,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(6,"equal")),1>=e&&(n({columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),a(1,"equal"))},min:1,max:6}),wp.element.createElement(B.default,{label:_("Layout"),columns:t.columns,layout:t.layout,layoutTablet:t.layoutTablet,layoutMobile:t.layoutMobile,onClick:function(e){"Desktop"===i&&(n({layout:e}),a(t.columns,e)),"Tablet"===i&&n({layoutTablet:e}),"Mobile"===i&&n({layoutMobile:e})}}),wp.element.createElement(te,{label:_("Columns Gap"),value:t.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){n({columnsGap:e})}})),wp.element.createElement(J,{title:_("Spacing"),initialOpen:!1},wp.element.createElement(R.a,{label:"Padding"},wp.element.createElement(O.a,{type:u,min:0,max:500,changeType:function(e){"Desktop"===i&&n({paddingType:e}),"Tablet"===i&&n({paddingTypeTablet:e}),"Mobile"===i&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===i&&("linked"===t.paddingType?n({padding:a}):n(z({},s[e],a))),"Tablet"===i&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(z({},b[e],a))),"Mobile"===i&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(z({},g[e],a)))},options:[{label:_("Top"),type:"top",value:f("top")},{label:_("Right"),type:"right",value:f("right")},{label:_("Bottom"),type:"bottom",value:f("bottom")},{label:_("Left"),type:"left",value:f("left")}]})),wp.element.createElement(R.a,{label:"Margin"},wp.element.createElement(O.a,{type:y,min:-500,max:500,changeType:function(e){"Desktop"===i&&n({marginType:e}),"Tablet"===i&&n({marginTypeTablet:e}),"Mobile"===i&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===i&&("linked"===t.marginType?n({margin:a}):n(z({},h[e],a))),"Tablet"===i&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(z({},w[e],a))),"Mobile"===i&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(z({},v[e],a)))},options:[{label:_("Top"),type:"top",value:k("top")},{label:_("Right"),disabled:!0},{label:_("Bottom"),type:"bottom",value:k("bottom")},{label:_("Left"),disabled:!0}]}))),wp.element.createElement(J,{title:_("Section Structure"),initialOpen:!1},wp.element.createElement(ee,{label:_("Maximum Content Width"),value:t.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&n({columnsWidth:e})},min:0,max:1200}),t.columnsWidth&&wp.element.createElement(q,{label:"Horizontal Align"},wp.element.createElement(Z,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(Y,{text:_("Left")},wp.element.createElement(K,{icon:"editor-alignleft",className:"is-button is-large",isPrimary:"flex-start"===t.horizontalAlign,onClick:function(){return T("flex-start")}})),wp.element.createElement(Y,{text:_("Center")},wp.element.createElement(K,{icon:"editor-aligncenter",className:"is-button is-large",isPrimary:"center"===t.horizontalAlign,onClick:function(){return T("center")}})),wp.element.createElement(Y,{text:_("Right")},wp.element.createElement(K,{icon:"editor-alignright",className:"is-button is-large",isPrimary:"flex-end"===t.horizontalAlign,onClick:function(){return T("flex-end")}})))),wp.element.createElement(te,{label:_("Minimum Height"),value:t.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){n({columnsHeight:e})}}),"custom"===t.columnsHeight&&wp.element.createElement(R.a,{label:"Custom Height"},wp.element.createElement(ee,{value:E||"",onChange:function(e){"Desktop"===i&&n({columnsHeightCustom:e}),"Tablet"===i&&n({columnsHeightCustomTablet:e}),"Mobile"===i&&n({columnsHeightCustomMobile:e})},min:0,max:1e3})),!D&&wp.element.createElement(q,{label:"Vertical Align"},wp.element.createElement(Z,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(Y,{text:_("Top")},wp.element.createElement(U,{className:"components-icon-button is-button is-large",isPrimary:"flex-start"===t.verticalAlign,onClick:function(){return x("flex-start")}},wp.element.createElement(Q,{icon:l.t,size:20}))),wp.element.createElement(Y,{text:_("Middle")},wp.element.createElement(U,{className:"components-icon-button is-button is-large",isPrimary:"center"===t.verticalAlign,onClick:function(){return x("center")}},wp.element.createElement(Q,{icon:l.k,size:20}))),wp.element.createElement(Y,{text:_("Bottom")},wp.element.createElement(U,{className:"components-icon-button is-button is-large",isPrimary:"flex-end"===t.verticalAlign,onClick:function(){return x("flex-end")}},wp.element.createElement(Q,{icon:l.c,size:20})))))))||"style"===p&&wp.element.createElement(oe,null,wp.element.createElement(J,{title:_("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(L.default,{label:_("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(M.a,{label:_("Background Color"),colorValue:t.backgroundColor},wp.element.createElement(G,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(oe,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:C},wp.element.createElement($,{icon:"trash"}),wp.element.createElement("span",null,_("Remove Image"))))),wp.element.createElement(U,{isDefault:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:C},_("Change or Remove Image")),wp.element.createElement(A.a,{label:"Background Settings"},wp.element.createElement(te,{label:_("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement(te,{label:_("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement(te,{label:_("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement(te,{label:_("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(F,{icon:"format-image",labels:{title:_("Background Image"),name:_("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(N.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})},onChangeValue:function(e){var t={firstColor:"backgroundGradientFirstColor",firstLocation:"backgroundGradientFirstLocation",secondColor:"backgroundGradientSecondColor",secondLocation:"backgroundGradientSecondLocation",type:"backgroundGradientType",angle:"backgroundGradientAngle",position:"backgroundGradientPosition"};for(var a in e)n(z({},t[a],e[a]))}})),wp.element.createElement(J,{title:_("Background Overlay"),className:"wp-block-themeisle-image-container",initialOpen:!1},wp.element.createElement(L.default,{label:_("Overlay Type"),backgroundType:t.backgroundOverlayType,changeBackgroundType:function(e){n({backgroundOverlayType:e})}}),wp.element.createElement(ee,{label:_("Overlay Opacity"),value:t.backgroundOverlayOpacity,onChange:function(e){n({backgroundOverlayOpacity:e})},min:0,max:100}),"color"===t.backgroundOverlayType&&wp.element.createElement(M.a,{label:_("Overlay Color"),colorValue:t.backgroundOverlayColor},wp.element.createElement(G,{label:"Overlay Color",value:t.backgroundOverlayColor,onChange:function(e){n({backgroundOverlayColor:e})}}))||"image"===t.backgroundOverlayType&&(t.backgroundOverlayImageURL?wp.element.createElement(oe,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundOverlayImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:S},wp.element.createElement($,{icon:"trash"}),wp.element.createElement("span",null,_("Remove Image"))))),wp.element.createElement(U,{isDefault:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:S},_("Change or Remove Image")),wp.element.createElement(A.a,{label:"Background Settings"},wp.element.createElement(te,{label:_("Background Attachment"),value:t.backgroundOverlayAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundOverlayAttachment:e})}}),wp.element.createElement(te,{label:_("Background Position"),value:t.backgroundOverlayPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundOverlayPosition:e})}}),wp.element.createElement(te,{label:_("Background Repeat"),value:t.backgroundOverlayRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundOverlayRepeat:e})}}),wp.element.createElement(te,{label:_("Background Size"),value:t.backgroundOverlaySize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundOverlaySize:e})}}))):wp.element.createElement(F,{icon:"format-image",labels:{title:_("Background Image"),name:_("an image")},value:t.backgroundOverlayImageID,onSelect:function(e){n({backgroundOverlayImageID:e.id,backgroundOverlayImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundOverlayType&&wp.element.createElement(N.a,{label:"Background Gradient",value:{firstColor:t.backgroundOverlayGradientFirstColor,firstLocation:t.backgroundOverlayGradientFirstLocation,secondColor:t.backgroundOverlayGradientSecondColor,secondLocation:t.backgroundOverlayGradientSecondLocation,type:t.backgroundOverlayGradientType,angle:t.backgroundOverlayGradientAngle,position:t.backgroundOverlayGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundOverlayGradientFirstColor:e,backgroundOverlayGradientFirstLocation:t,backgroundOverlayGradientSecondColor:a,backgroundOverlayGradientSecondLocation:l,backgroundOverlayGradientType:o,backgroundOverlayGradientAngle:r,backgroundOverlayGradientPosition:i})},onChangeValue:function(e){var t={firstColor:"backgroundOverlayGradientFirstColor",firstLocation:"backgroundOverlayGradientFirstLocation",secondColor:"backgroundOverlayGradientSecondColor",secondLocation:"backgroundOverlayGradientSecondLocation",type:"backgroundOverlayGradientType",angle:"backgroundOverlayGradientAngle",position:"backgroundOverlayGradientPosition"};for(var a in e)n(z({},t[a],e[a]))}}),wp.element.createElement(A.a,{label:"CSS Filters"},wp.element.createElement(ee,{label:_("Blur"),value:t.backgroundOverlayFilterBlur,onChange:function(e){n({backgroundOverlayFilterBlur:e})},min:0,max:100}),wp.element.createElement(ee,{label:_("Brightness"),value:t.backgroundOverlayFilterBrightness,onChange:function(e){n({backgroundOverlayFilterBrightness:e})},min:0,max:100}),wp.element.createElement(ee,{label:_("Contrast"),value:t.backgroundOverlayFilterContrast,onChange:function(e){n({backgroundOverlayFilterContrast:e})},min:0,max:100}),wp.element.createElement(ee,{label:_("Grayscale"),value:t.backgroundOverlayFilterGrayscale,onChange:function(e){n({backgroundOverlayFilterGrayscale:e})},min:0,max:100}),wp.element.createElement(ee,{label:_("Hue"),value:t.backgroundOverlayFilterHue,onChange:function(e){n({backgroundOverlayFilterHue:e})},min:0,max:360}),wp.element.createElement(ee,{label:_("Saturation"),value:t.backgroundOverlayFilterSaturate,onChange:function(e){n({backgroundOverlayFilterSaturate:e})},min:0,max:100})),wp.element.createElement(te,{label:_("Blend Mode"),value:t.backgroundOverlayBlend,options:[{label:"Normal",value:"normal"},{label:"Multiply",value:"multiply"},{label:"Screen",value:"screen"},{label:"Overlay",value:"overlay"},{label:"Darken",value:"darken"},{label:"Lighten",value:"lighten"},{label:"Color Dodge",value:"color-dodge"},{label:"Color Burn",value:"color-burn"},{label:"Hard Light",value:"hard-light"},{label:"Soft Light",value:"soft-light"},{label:"Difference",value:"difference"},{label:"Exclusion",value:"exclusion"},{label:"Hue",value:"hue"},{label:"Saturation",value:"saturation"},{label:"Color",value:"color"},{label:"Luminosity",value:"luminosity"}],onChange:function(e){n({backgroundOverlayBlend:e})}})),wp.element.createElement(J,{title:_("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(O.a,{label:_("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(z({},H[e],a))},options:[{label:_("Top"),type:"top",value:j("top")},{label:_("Right"),type:"right",value:j("right")},{label:_("Bottom"),type:"bottom",value:j("bottom")},{label:_("Left"),type:"left",value:j("left")}]}),wp.element.createElement(M.a,{label:_("Border Color"),colorValue:t.borderColor},wp.element.createElement(G,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(O.a,{label:_("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(z({},W[e],a))},options:[{label:_("Top"),type:"top",value:ne("top")},{label:_("Right"),type:"right",value:ne("right")},{label:_("Bottom"),type:"bottom",value:ne("bottom")},{label:_("Left"),type:"left",value:ne("left")}]}),wp.element.createElement(X,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(oe,null,wp.element.createElement(M.a,{label:_("Shadow Color"),colorValue:t.boxShadowColor},wp.element.createElement(G,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(A.a,{label:"Border Shadow"},wp.element.createElement(ee,{label:_("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(ee,{label:_("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(ee,{label:_("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(ee,{label:_("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(ee,{label:_("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))),wp.element.createElement(J,{title:_("Shape Divider"),initialOpen:!1,className:"wp-block-themeisle-shape-divider"},wp.element.createElement(Z,null,wp.element.createElement(U,{className:"is-button",isPrimary:"top"===o,onClick:function(){return r("top")}},_("Top")),wp.element.createElement(U,{className:"is-button",isPrimary:"bottom"===o,onClick:function(){return r("bottom")}},_("Bottom"))),wp.element.createElement(te,{label:_("Type"),value:ae,options:[{label:"None",value:"none"},{label:"Triangle",value:"bigTriangle"},{label:"Right Curve",value:"rightCurve"},{label:"Curve",value:"curve"},{label:"Slant",value:"slant"},{label:"Cloud",value:"cloud"}],onChange:function(e){"top"==o&&n({dividerTopType:e}),"bottom"==o&&n({dividerBottomType:e})}}),"none"!==ae&&wp.element.createElement(oe,null,wp.element.createElement(M.a,{label:_("Color"),colorValue:le},wp.element.createElement(G,{label:_("Color"),value:le,onChange:function(e){"top"==o&&n({dividerTopColor:e}),"bottom"==o&&n({dividerBottomColor:e})}})),wp.element.createElement(R.a,{label:"Width"},wp.element.createElement(ee,{value:ie,onChange:function(e){"top"==o&&("Desktop"==i&&n({dividerTopWidth:e}),"Tablet"==i&&n({dividerTopWidthTablet:e}),"Mobile"==i&&n({dividerTopWidthMobile:e})),"bottom"==o&&("Desktop"==i&&n({dividerBottomWidth:e}),"Tablet"==i&&n({dividerBottomWidthTablet:e}),"Mobile"==i&&n({dividerBottomWidthMobile:e}))},min:0,max:500})),wp.element.createElement(R.a,{label:"Height"},wp.element.createElement(ee,{value:ce,onChange:function(e){"top"==o&&("Desktop"==i&&n({dividerTopHeight:e}),"Tablet"==i&&n({dividerTopHeightTablet:e}),"Mobile"==i&&n({dividerTopHeightMobile:e})),"bottom"==o&&("Desktop"==i&&n({dividerBottomHeight:e}),"Tablet"==i&&n({dividerBottomHeightTablet:e}),"Mobile"==i&&n({dividerBottomHeightMobile:e}))},min:0,max:500})),"curve"!==ae&&"cloud"!==ae&&wp.element.createElement(X,{label:"Invert Shape Divider",checked:de,onChange:function(){"top"==o&&n({dividerTopInvert:!t.dividerTopInvert}),"bottom"==o&&n({dividerBottomInvert:!t.dividerBottomInvert})}}))))||"advanced"===p&&wp.element.createElement(oe,null,wp.element.createElement(J,{title:_("Responsive")},wp.element.createElement(X,{label:"Hide this section in Desktop devices?",checked:t.hide,onChange:function(e){return pe(e,"Desktop")}}),wp.element.createElement(X,{label:"Hide this section in Tablet devices?",checked:t.hideTablet,onChange:function(e){return pe(e,"Tablet")}}),wp.element.createElement(X,{label:"Hide this section in Mobile devices?",checked:t.hideMobile,onChange:function(e){return pe(e,"Mobile")}}),wp.element.createElement("hr",null),!t.hideTablet&&"collapsedRows"===t.layoutTablet&&wp.element.createElement(X,{label:"Reverse Columns in Tablet devices?",checked:t.reverseColumnsTablet,onChange:function(e){return me(e,"Tablet")}}),!t.hideMobile&&"collapsedRows"===t.layoutMobile&&wp.element.createElement(X,{label:"Reverse Columns in Mobile devices?",checked:t.reverseColumnsMobile,onChange:function(e){return me(e,"Mobile")}})),wp.element.createElement(J,{title:_("Section Settings"),initialOpen:!1},wp.element.createElement(te,{label:_("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))),wp.element.createElement(P.a,{value:t.id,onChange:function(e){n({id:e})}}))}));function ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return de(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return de(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var pe=wp.i18n.__,me=wp.blockEditor,ue=me.__experimentalBlockNavigationList,se=me.BlockControls,be=wp.components,ge=be.IconButton,fe=be.Modal,ye=be.Toolbar,he=wp.compose.compose,we=wp.data,ve=we.withSelect,ke=we.withDispatch,Te=wp.element,Ee=Te.Fragment,xe=Te.useState,Ce=he(ve((function(e,t){var n=t.clientId,a=e("core/block-editor"),l=a.getSelectedBlockClientId;return{block:(0,a.getBlock)(n),selectedBlockClientId:l()}})),ke((function(e){return{selectBlock:e("core/block-editor").selectBlock}})))((function(e){var t=e.block,n=e.selectedBlockClientId,a=e.selectBlock,o=ce(xe(!1),2),r=o[0],i=o[1];return wp.element.createElement(Ee,null,wp.element.createElement(se,null,wp.element.createElement(ye,{className:"wp-themesiel-blocks-block-navigator-components-toolbar"},wp.element.createElement(ge,{className:"components-toolbar__control",label:pe("Open block navigator"),onClick:function(){return i(!0)},icon:l.l}))),r&&wp.element.createElement(fe,{title:pe("Block Navigator"),closeLabel:pe("Close"),onRequestClose:function(){return i(!1)}},wp.element.createElement(ue,{blocks:[t],selectedBlockClientId:n,selectBlock:a,showNestedBlocks:!0})))})),Se=n(14),Me=n(26);function Be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||Re(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e){return function(e){if(Array.isArray(e))return Le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Re(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e,t){if(e){if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Le(e,t):void 0}}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){Pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze=lodash,Ie=ze.isEqual,He=ze.times,_e=wp.compose.compose,je=wp.data,De=je.withDispatch,Ge=je.withSelect,Ve=wp.blockEditor,Fe=Ve.__experimentalBlockNavigationList,We=Ve.InnerBlocks,qe=wp.element,Ue=qe.Fragment,Ze=qe.useEffect,$e=qe.useState,Qe=wp.viewport.withViewportMatch,Ke=[],Je=_e(De((function(e){return{updateBlockAttributes:e("core/block-editor").updateBlockAttributes}})),Ge((function(e,t){var n=t.clientId,a=e("core/block-editor").getBlock,l=e("core/edit-post").__experimentalGetPreviewDeviceType;return{sectionBlock:a(n),isViewportAvailable:!!l,isPreviewDesktop:!!l&&"Desktop"===l(),isPreviewTablet:!!l&&"Tablet"===l(),isPreviewMobile:!!l&&"Mobile"===l()}})),Qe({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.name,r=e.updateBlockAttributes,c=e.sectionBlock,p=e.isLarger,u=e.isLarge,s=e.isSmall,b=e.isSmaller,g=e.isViewportAvailable,f=e.isPreviewDesktop,y=e.isPreviewTablet,h=e.isPreviewMobile;Ze((function(){w()}),[]);var w=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-advanced-columns-".concat(l.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(Ie(k.a[o],window.themeisleGutenberg.globalDefaults[o])||(a=Ae({},window.themeisleGutenberg.globalDefaults[o]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==i[e].default&&t[e]!==i[e].default)return delete a[e]})))),n(Ae(Ae({},a),{},{id:r})),Ke.push(r),e.push(r)}else if(Ke.includes(t.id)){var c="wp-block-themeisle-blocks-advanced-columns-".concat(l.substr(0,8));n({id:c}),Ke.push(c)}else Ke.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=Oe(e)},v=Be($e("top"),2),E=v[0],x=v[1],C=p&&!u&&s&&!b,M=!p&&!u&&s&&!b,B=!(p||u||s||b);g&&!B&&(C=f,M=y,B=h);var O,R,L,N,A,P,z,I=t.columnsHTMLTag;(C&&(O={paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustom,"px"):t.columnsHeight}),M&&(O={paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomTablet,"px"):t.columnsHeight}),B&&(O={paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomMobile,"px"):t.columnsHeight}),"color"===t.backgroundType&&(R={background:t.backgroundColor}),"image"===t.backgroundType&&(R={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(z="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(R={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(z,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(N={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(N={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(A={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(A={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(P={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(m()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var H,_=Ae(Ae(Ae(Ae(Ae({},O),R),N),A),P);("color"===t.backgroundOverlayType&&(L={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(L={backgroundImage:"url( '".concat(t.backgroundOverlayImageURL,"' )"),backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType)&&(H="linear"===t.backgroundOverlayGradientType?"".concat(t.backgroundOverlayGradientAngle,"deg"):"at ".concat(t.backgroundOverlayGradientPosition),L={background:"".concat(t.backgroundOverlayGradientType,"-gradient( ").concat(H,", ").concat(t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientFirstLocation,"%, ").concat(t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientSecondLocation,"% )"),opacity:t.backgroundOverlayOpacity/100});var j=Ae(Ae({},L),{},{mixBlendMode:t.backgroundOverlayBlend,filter:"blur( ".concat(t.backgroundOverlayFilterBlur/10,"px ) brightness( ").concat(t.backgroundOverlayFilterBrightness/10," ) contrast( ").concat(t.backgroundOverlayFilterContrast/10," ) grayscale( ").concat(t.backgroundOverlayFilterGrayscale/100," ) hue-rotate( ").concat(t.backgroundOverlayFilterHue,"deg ) saturate( ").concat(t.backgroundOverlayFilterSaturate/10," )")}),D={};t.columnsWidth&&(D={maxWidth:t.columnsWidth+"px"});var G=d()(a,"has-".concat(t.columns,"-columns"),"has-desktop-".concat(t.layout,"-layout"),"has-tablet-".concat(t.layoutTablet,"-layout"),"has-mobile-".concat(t.layoutMobile,"-layout"),"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign),"has-horizontal-".concat(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":C},{"has-viewport-tablet":M},{"has-viewport-mobile":B}),V=function(){var e;return C&&(e=t.dividerTopWidth),M&&(e=t.dividerTopWidthTablet),B&&(e=t.dividerTopWidthMobile),e};V=V();var F=function(){var e;return C&&(e=t.dividerBottomWidth),M&&(e=t.dividerBottomWidthTablet),B&&(e=t.dividerBottomWidthMobile),e};F=F();var W=function(){var e;return C&&(e=t.dividerTopHeight),M&&(e=t.dividerTopHeightTablet),B&&(e=t.dividerTopHeightMobile),e};W=W();var q=function(){var e;return C&&(e=t.dividerBottomHeight),M&&(e=t.dividerBottomHeightTablet),B&&(e=t.dividerBottomHeightMobile),e};q=q();var U;return t.columns?wp.element.createElement(Ue,null,Fe&&wp.element.createElement(Ce,{clientId:l}),wp.element.createElement(S,{attributes:t,setAttributes:n}),wp.element.createElement(ie,{attributes:t,setAttributes:n,updateColumnsWidth:function(e,t){c.innerBlocks.map((function(n,a){r(n.clientId,{columnWidth:T.a[e][t][a]})}))},dividerViewType:E,setDividerViewType:x}),wp.element.createElement(I,{className:G,id:t.id,style:_},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:j}),wp.element.createElement(Se.default,{type:"top",style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert,width:V,height:W}),wp.element.createElement("div",{className:"innerblocks-wrap",style:D},wp.element.createElement(We,{allowedBlocks:["themeisle-blocks/advanced-column"],template:(U=t.columns,He(U,(function(e){return["themeisle-blocks/advanced-column",{columnWidth:T.a[U][t.layout][e]}]}))),templateLock:"all"})),wp.element.createElement(Se.default,{type:"bottom",style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert,width:F,height:q}))):wp.element.createElement(Me.default,{clientId:l,setupColumns:function(e,t){n(1>=e?{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"equal"}:{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"collapsedRows"})}})})),Ye=wp.blockEditor.InnerBlocks,Xe=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag,l=t.hide?"":"has-desktop-".concat(t.layout,"-layout"),o=t.hideTablet?"":"has-tablet-".concat(t.layoutTablet,"-layout"),r=t.hideMobile?"":"has-mobile-".concat(t.layoutMobile,"-layout"),i=d()(n,"has-".concat(t.columns,"-columns"),l,o,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-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign));return wp.element.createElement(a,{className:i,id:t.id},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),wp.element.createElement(Se.default,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap"},wp.element.createElement(Ye.Content,null)),wp.element.createElement(Se.default,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))},et=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-columns",{title:et("Section"),description:et("Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like."),icon:l.g,category:"themeisle-blocks",keywords:["advanced columns","layout","grid"],attributes:i,supports:{align:["wide","full"],html:!1},deprecated:v,edit:Je,save:Xe})},function(e,t,n){"use strict";n.r(t);var a=n(2),l={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"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},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:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRight:{type:"number",default:0},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"},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"}},o=n(7),r=n.n(o);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=wp.blockEditor.InnerBlocks,m=[{attributes:{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"}},supports:{inserter:!1,reusable:!1,html:!1},save:function(e){var t,n,a,l,o,i=e.attributes,d=e.className,m=i.columnsHTMLTag;("color"===i.backgroundType&&(t={background:i.backgroundColor}),"image"===i.backgroundType&&(t={backgroundImage:"url( '".concat(i.backgroundImageURL,"' )"),backgroundAttachment:i.backgroundAttachment,backgroundPosition:i.backgroundPosition,backgroundRepeat:i.backgroundRepeat,backgroundSize:i.backgroundSize}),"gradient"===i.backgroundType)&&(o="linear"===i.backgroundGradientType?"".concat(i.backgroundGradientAngle,"deg"):"at ".concat(i.backgroundGradientPosition),t={background:"".concat(i.backgroundGradientType,"-gradient( ").concat(o,", ").concat(i.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientFirstLocation,"%, ").concat(i.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientSecondLocation,"% )")});"linked"===i.borderType&&(n={borderWidth:"".concat(i.border,"px"),borderStyle:"solid",borderColor:i.borderColor}),"unlinked"===i.borderType&&(n={borderTopWidth:"".concat(i.borderTop,"px"),borderRightWidth:"".concat(i.borderRight,"px"),borderBottomWidth:"".concat(i.borderBottom,"px"),borderLeftWidth:"".concat(i.borderLeft,"px"),borderStyle:"solid",borderColor:i.borderColor}),"linked"===i.borderRadiusType&&(a={borderRadius:"".concat(i.borderRadius,"px")}),"unlinked"===i.borderRadiusType&&(a={borderTopLeftRadius:"".concat(i.borderRadiusTop,"px"),borderTopRightRadius:"".concat(i.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(i.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(i.borderRadiusLeft,"px")}),!0===i.boxShadow&&(l={boxShadow:"".concat(i.boxShadowHorizontal,"px ").concat(i.boxShadowVertical,"px ").concat(i.boxShadowBlur,"px ").concat(i.boxShadowSpread,"px ").concat(r()(i.boxShadowColor?i.boxShadowColor:"#000000",i.boxShadowColorOpacity))});var u=c(c(c(c({},t),n),a),l);return wp.element.createElement(m,{className:d,id:i.id,style:u},wp.element.createElement(p.Content,null))}}],u=n(6),s=n(17),b=n(0),g=n.n(b),f=n(3),y=n(5),h=n(4),w=n(15),v=n(18),k=n(8);function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var C=wp.i18n.__,S=wp.blockEditor,M=S.ColorPalette,B=S.InspectorControls,O=S.MediaPlaceholder,R=wp.components,L=R.Button,N=R.Dashicon,A=R.PanelBody,P=R.ToggleControl,z=R.RangeControl,I=R.SelectControl,H=wp.compose.compose,_=wp.data.withSelect,j=wp.element,D=j.Fragment,G=j.useEffect,V=j.useRef,F=j.useState,W=H(_((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.attributes,n=e.setAttributes,a=e.isSelected,l=e.clientId,o=e.adjacentBlock,r=e.parentBlock,i=e.updateBlockAttributes,c=e.adjacentBlockClientId,d=e.view;G((function(){if(1<r.innerBlocks.length&&!c){var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),t=r.innerBlocks[e-1];b.current=t.clientId,x.current=t.attributes.columnWidth}}),[]),G((function(){if(1<r.innerBlocks.length)if(c)x.current=o.attributes.columnWidth,b.current=c,s.current=t.columnWidth;else{var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),n=r.innerBlocks[e-1];x.current=n.attributes.columnWidth,b.current=n.clientId,s.current=t.columnWidth}}),[a,t.columnWidth,r.innerBlocks.length]);var p=E(F("layout"),2),m=p[0],u=p[1],s=V(t.columnWidth),b=V(c&&c),x=V(o&&o.attributes.columnWidth),S=function(){var e;return"Desktop"===d&&(e=t.paddingType),"Tablet"===d&&(e=t.paddingTypeTablet),"Mobile"===d&&(e=t.paddingTypeMobile),e};S=S();var R={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},H={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},_={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},j=function(e){var n;return"top"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},W=function(){var e;return"Desktop"===d&&(e=t.marginType),"Tablet"===d&&(e=t.marginTypeTablet),"Mobile"===d&&(e=t.marginTypeMobile),e};W=W();var q={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},U={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},Z={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},$=function(e){var n;return"top"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"right"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginRight),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginRightTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginRightMobile)),"bottom"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),"left"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginLeft),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginLeftTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginLeftMobile)),n},Q=function(){n({backgroundImageID:"",backgroundImageURL:""})},K={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},J=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},Y={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},X=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n};return wp.element.createElement(B,null,wp.element.createElement(A,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(L,{className:g()("header-tab",{"is-selected":"layout"===m}),onClick:function(){return u("layout")}},wp.element.createElement("span",null,wp.element.createElement(N,{icon:"editor-table"}),C("Layout"))),wp.element.createElement(L,{className:g()("header-tab",{"is-selected":"style"===m}),onClick:function(){return u("style")}},wp.element.createElement("span",null,wp.element.createElement(N,{icon:"admin-customizer"}),C("Style"))),wp.element.createElement(L,{className:g()("header-tab",{"is-selected":"advanced"===m}),onClick:function(){return u("advanced")}},wp.element.createElement("span",null,wp.element.createElement(N,{icon:"admin-generic"}),C("Advanced")))),"layout"===m&&wp.element.createElement(D,null,wp.element.createElement(A,{title:C("Spacing")},1<r.innerBlocks.length&&wp.element.createElement(z,{label:C("Column Width"),value:Number(t.columnWidth),onChange:function(e){var t=e||10,a=Number(s.current)-t+Number(x.current);s.current=t,x.current=a,n({columnWidth:t.toFixed(2)}),i(b.current,{columnWidth:a.toFixed(2)})},min:10,max:Number(t.columnWidth)+Number(x.current)-10}),wp.element.createElement(h.a,{label:"Padding"},wp.element.createElement(y.a,{type:S,min:0,max:500,changeType:function(e){"Desktop"===d&&n({paddingType:e}),"Tablet"===d&&n({paddingTypeTablet:e}),"Mobile"===d&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===d&&("linked"===t.paddingType?n({padding:a}):n(T({},R[e],a))),"Tablet"===d&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(T({},H[e],a))),"Mobile"===d&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(T({},_[e],a)))},options:[{label:C("Top"),type:"top",value:j("top")},{label:C("Right"),type:"right",value:j("right")},{label:C("Bottom"),type:"bottom",value:j("bottom")},{label:C("Left"),type:"left",value:j("left")}]})),wp.element.createElement(h.a,{label:"Margin"},wp.element.createElement(y.a,{type:W,min:-500,max:500,changeType:function(e){"Desktop"===d&&n({marginType:e}),"Tablet"===d&&n({marginTypeTablet:e}),"Mobile"===d&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===d&&("linked"===t.marginType?n({margin:a}):n(T({},q[e],a))),"Tablet"===d&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(T({},U[e],a))),"Mobile"===d&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(T({},Z[e],a)))},options:[{label:C("Top"),type:"top",value:$("top")},{label:C("Right"),type:"right",value:$("right")},{label:C("Bottom"),type:"bottom",value:$("bottom")},{label:C("Left"),type:"left",value:$("left")}]}))))||"style"===m&&wp.element.createElement(D,null,wp.element.createElement(A,{title:C("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(w.default,{label:C("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(f.a,{label:C("Background Color"),colorValue:t.headingColor},wp.element.createElement(M,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(D,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:Q},wp.element.createElement(N,{icon:"trash"}),wp.element.createElement("span",null,C("Remove Image"))))),wp.element.createElement(L,{isDefault:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:Q},C("Change or Remove Image")),wp.element.createElement(k.a,{label:"Background Settings"},wp.element.createElement(I,{label:C("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement(I,{label:C("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement(I,{label:C("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement(I,{label:C("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(O,{icon:"format-image",labels:{title:C("Background Image"),name:C("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(v.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})},onChangeValue:function(e){var t={firstColor:"backgroundGradientFirstColor",firstLocation:"backgroundGradientFirstLocation",secondColor:"backgroundGradientSecondColor",secondLocation:"backgroundGradientSecondLocation",type:"backgroundGradientType",angle:"backgroundGradientAngle",position:"backgroundGradientPosition"};for(var a in e)n(T({},t[a],e[a]))}})),wp.element.createElement(A,{title:C("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(y.a,{label:C("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(T({},K[e],a))},options:[{label:C("Top"),type:"top",value:J("top")},{label:C("Right"),type:"right",value:J("right")},{label:C("Bottom"),type:"bottom",value:J("bottom")},{label:C("Left"),type:"left",value:J("left")}]}),wp.element.createElement(f.a,{label:C("Border Color"),colorValue:t.borderColor},wp.element.createElement(M,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(y.a,{label:C("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(T({},Y[e],a))},options:[{label:C("Top"),type:"top",value:X("top")},{label:C("Right"),type:"right",value:X("right")},{label:C("Bottom"),type:"bottom",value:X("bottom")},{label:C("Left"),type:"left",value:X("left")}]}),wp.element.createElement(P,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(D,null,wp.element.createElement(f.a,{label:C("Shadow Color"),colorValue:t.boxShadowColor},wp.element.createElement(M,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(k.a,{label:"Shadow Properties"},wp.element.createElement(z,{label:C("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(z,{label:C("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(z,{label:C("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(z,{label:C("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(z,{label:C("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))))||"advanced"===m&&wp.element.createElement(A,{title:C("Section Settings")},wp.element.createElement(I,{label:C("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))}));function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||Z(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e){return function(e){if(Array.isArray(e))return $(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Z(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){if(e){if("string"==typeof e)return $(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Y=lodash.isEqual,X=wp.components.ResizableBox,ee=wp.compose.compose,te=wp.data,ne=te.withDispatch,ae=te.withSelect,le=wp.blockEditor.InnerBlocks,oe=wp.element,re=oe.Fragment,ie=oe.useEffect,ce=oe.useState,de=wp.viewport.withViewportMatch,pe=[],me=ee(ne((function(e){return{updateBlockAttributes:e("core/block-editor").updateBlockAttributes}})),ae((function(e,t){var n=t.clientId,a=e("core/block-editor"),l=a.getAdjacentBlockClientId,o=a.getBlock,r=a.getBlockRootClientId,i=e("core/edit-post").__experimentalGetPreviewDeviceType,c=o(n),d=l(n),p=o(d),m=r(n);return{adjacentBlockClientId:d,adjacentBlock:p,parentClientId:m,parentBlock:o(m),hasInnerBlocks:!(!c||!c.innerBlocks.length),isViewportAvailable:!!i,isPreviewDesktop:!!i&&"Desktop"===i(),isPreviewTablet:!!i&&"Tablet"===i(),isPreviewMobile:!!i&&"Mobile"===i()}})),de({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.isSelected,i=e.clientId,c=e.name,d=e.toggleSelection,p=e.updateBlockAttributes,m=e.adjacentBlockClientId,b=e.adjacentBlock,g=e.parentClientId,f=e.parentBlock,y=e.hasInnerBlocks,h=e.isLarger,w=e.isLarge,v=e.isSmall,k=e.isSmaller,T=e.isViewportAvailable,E=e.isPreviewDesktop,x=e.isPreviewTablet,C=e.isPreviewMobile;ie((function(){S()}),[]);var S=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,o="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(Y(u.a[c],window.themeisleGutenberg.globalDefaults[c])||(a=K({},window.themeisleGutenberg.globalDefaults[c]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(K(K({},a),{},{id:o})),pe.push(o),e.push(o)}else if(pe.includes(t.id)){var r="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));n({id:r}),pe.push(r)}else pe.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=U(e)},M=q(ce(0),2),B=M[0],O=M[1],R=q(ce(0),2),L=R[0],N=R[1],A=h&&!w&&v&&!k,P=!h&&!w&&v&&!k,z=!(h||w||v||k);T&&!z&&(A=E,P=x,z=C),void 0===t.columnWidth&&f.innerBlocks.map((function(e,t){if(i===e.clientId){var n=f.attributes.columns,a=f.attributes.layout;p(i,{columnWidth:s.a[n][a][t]})}}));var I=document.getElementById("block-".concat(i));null!==I&&(I.style.flexBasis=A?"".concat(t.columnWidth,"%"):"");var H,_,j,D,G,V,F=t.columnsHTMLTag;(A&&(H={paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginRight:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginRight,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),marginLeft:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginLeft,"px")}),P&&(H={paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginRight:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginRightTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),marginLeft:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginLeftTablet,"px")}),z&&(H={paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginRight:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginRightMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),marginLeft:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginLeftMobile,"px")}),"color"===t.backgroundType&&(_={background:t.backgroundColor}),"image"===t.backgroundType&&(_={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(V="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(_={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(V,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(j={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(j={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(D={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(D={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(G={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(r()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var Z=K(K(K(K(K({},H),_),j),D),G);return wp.element.createElement(re,null,wp.element.createElement(W,{attributes:t,setAttributes:n,isSelected:o,clientId:i,adjacentBlock:b,parentBlock:f,updateBlockAttributes:p,adjacentBlockClientId:m}),wp.element.createElement(X,{className:"block-library-spacer__resize-container wp-themeisle-block-advanced-column-resize-container",enable:{right:!!m},handleWrapperClass:"wp-themeisle-block-advanced-column-resize-container-handle",onResizeStart:function(){var e=document.querySelector("#block-".concat(i," .wp-themeisle-block-advanced-column-resize-container-handle .components-resizable-box__handle")),n=document.createElement("div"),a=document.createElement("div");n.setAttribute("class","resizable-tooltip resizable-tooltip-left"),n.innerHTML="".concat(parseFloat(t.columnWidth).toFixed(0),"%"),e.appendChild(n),a.setAttribute("class","resizable-tooltip resizable-tooltip-right"),a.innerHTML="".concat(parseFloat(b.attributes.columnWidth).toFixed(0),"%"),e.appendChild(a),O(t.columnWidth),N(b.attributes.columnWidth),d(!1)},onResize:function(e,t,a,l){var o=document.getElementById("block-".concat(g)).getBoundingClientRect().width,r=l.width/o*100,i=parseFloat(B)+r,c=L-r,d=document.querySelector(".resizable-tooltip-left"),u=document.querySelector(".resizable-tooltip-right");10<=i&&10<=c&&(d.innerHTML="".concat(i.toFixed(0),"%"),u.innerHTML="".concat(c.toFixed(0),"%"),n({columnWidth:i.toFixed(2)}),p(m,{columnWidth:c.toFixed(2)}))},onResizeStop:function(){var e=document.querySelector(".resizable-tooltip-left"),t=document.querySelector(".resizable-tooltip-right");e.parentNode.removeChild(e),t.parentNode.removeChild(t),d(!0)}},wp.element.createElement(F,{className:a,id:t.id,style:Z},wp.element.createElement(le,{templateLock:!1,renderAppender:!y&&le.ButtonBlockAppender}))))})),ue=wp.blockEditor.InnerBlocks,se=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag;return wp.element.createElement(a,{className:n,id:t.id},wp.element.createElement(ue.Content,null))},be=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-column",{title:be("Section Column"),description:be("A single column within a Section block."),parent:["themeisle-blocks/advanced-columns"],icon:a.f,category:"themeisle-blocks",attributes:l,deprecated:m,supports:{inserter:!1,reusable:!1,html:!1},edit:me,save:se})},function(e,t,n){"use strict";n.r(t);var a=n(2),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h3",fontSize:24}],["themeisle-blocks/advanced-heading",{content:l("$9.99"),align:"center",tag:"h4",fontSize:36,fontFamily:"Roboto Slab",fontVariant:"normal"}],["themeisle-blocks/advanced-heading",{content:l("Per Month"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:l("First Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:l("Second Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:l("Last Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Buy Now"),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}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/pricing",{title:p("Pricing"),description:p("Pricing tables are a critical part in showcasing your services, prices and overall offerings."),icon:a.p,category:"themeisle-blocks",keywords:["pricing","table","money"],edit:i,save:d})},function(e,t,n){"use strict";n.r(t);var a=n(2),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/font-awesome-icons",{fontSize:62,prefix:"fab",icon:"angellist"}],["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h4",marginBottom:20}],["themeisle-blocks/advanced-heading",{content:l("Lorem ipsum dolor sit amet elit do, consectetur adipiscing, sed eiusmod tempor incididunt ut labore et dolore magna aliqua."),align:"center",color:"#999999",tag:"p",fontSize:14,marginBottom:20}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Know More"),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}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/service",{title:p("Service"),description:p("Use this Service block to showcase services your website offers."),icon:a.q,category:"themeisle-blocks",keywords:["services","icon","features"],edit:i,save:d})},function(e,t,n){"use strict";n.r(t);var a=n(2),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["core/image",{align:"center"}],["themeisle-blocks/advanced-heading",{content:l("John Doe"),align:"center",fontSize:24,tag:"h3",marginTop:25,marginBottom:10,marginTopTablet:25,marginTopMobile:25}],["themeisle-blocks/advanced-heading",{content:l("Jedi Master"),align:"center",fontSize:14,tag:"h4",marginTop:10,marginBottom:10}],["themeisle-blocks/advanced-heading",{content:l('"What is the point of being alive if you don’t at least try to do something remarkable?"'),align:"center",color:"#999999",tag:"p",fontSize:14,marginTop:10,marginBottom:20}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/testimonials",{title:p("Testimonials"),description:p("Display kudos from customers and clients and display them on your website."),icon:a.s,category:"themeisle-blocks",keywords:["testimonials","quotes","business"],edit:i,save:d})},,,function(e,t,n){n(38),n(96),n(103),n(98),n(97),n(99),n(94),n(102),n(27),n(100),n(31),n(30),n(15),n(25),n(26),n(14),n(82),n(101),n(95),n(90),n(32),n(33),e.exports=n(34)},function(e,t,n){"use strict";n.r(t);n(39);n.p=window.themeisleGutenberg.packagePath},,,,,,,,function(e,t){function n(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function a(e){return function(){var t=this,a=arguments;return new Promise((function(l,o){var r=e.apply(t,a);function i(e){n(r,l,o,i,c,"next",e)}function c(e){n(r,l,o,i,c,"throw",e)}i(void 0)}))}}var l=lodash.debounce,o=wp.apiFetch,r=wp.data,i=r.select,c=r.subscribe,d=l(a(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i("core/editor"),n=t.getCurrentPostId,a=n(),e.next=4,o({path:"themeisle-gutenberg-blocks/v1/save_post_meta/".concat(a),method:"POST"});case 4:case"end":return e.stop()}}),e)}))),1e3),p={};c((function(){var e=i("core/editor"),t=e.isCurrentPostPublished,n=e.isSavingPost,a=e.isPublishingPost,l=e.isAutosavingPost,r=e.__experimentalGetReusableBlocks,c=e.__experimentalIsSavingReusableBlock,m=l(),u=a(),s=n(),b=r(),g=t();b.map((function(e){if(e){var t=(n=e.id,c(n));t&&!e.isTemporary&&(p[e.id]={id:e.id,isSaving:!0}),t||e.isTemporary||!p[e.id]||e.id===p[e.id].id&&!t&&p[e.id].isSaving&&(p[e.id].isSaving=!1,o({path:"themeisle-gutenberg-blocks/v1/save_block_meta/".concat(e.id),method:"POST"}))}var n})),!(u||g&&s)||m||status||d()}))},function(e,t){var n=wp.data.registerStore,a={viewType:"Desktop"};n("themeisle-gutenberg/data",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_VIEW"===t.type?{viewType:t.viewType}:e},selectors:{getView:function(e){return e.viewType}},actions:{updateView:function(e){return{type:"UPDATE_VIEW",viewType:e}}}})},,function(e,t,n){},,function(e,t,n){},function(e,t){var n=wp.i18n.__,a=wp.richText,l=a.registerFormatType,o=a.toggleFormat,r=wp.blockEditor,i=r.RichTextShortcut,c=r.RichTextToolbarButton,d=wp.element.Fragment,p="themeisle-blocks/mark";l(p,{name:p,title:n("Highlight"),tagName:"mark",className:null,edit:function(e){var t=e.isActive,a=e.value,l=e.onChange,r=function(){return l(o(a,{type:p}))};return wp.element.createElement(d,null,wp.element.createElement(i,{type:"primary",character:"m",onUse:r}),wp.element.createElement(c,{icon:"admin-customizer",title:n("Highlight"),onClick:r,isActive:t,shortcutType:"access",shortcutCharacter:"m"}))}})},,,,,,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,,,function(e,t,n){},function(e,t,n){},,,,,function(e,t,n){},,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(83),n(84),n(30),n(31)},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},function(e,t,n){},,function(e,t,n){"use strict";n.r(t);n(32),n(33),n(34)},,,,function(e,t,n){"use strict";n.r(t);n(62),n(63);var a=n(2),l={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:!0},mapTypeControl:{type:"boolean",default:!0},zoomControl:{type:"boolean",default:!0},fullscreenControl:{type:"boolean",default:!0},streetViewControl:{type:"boolean",default:!0},markers:{type:"array",default:[]}},o=n(0),r=n.n(o),i=n(106),c=wp.i18n.__,d=wp.components,p=d.Button,m=d.ExternalLink,u=d.Placeholder,s=d.Spinner,b=d.TextControl,g=function(e){var t=e.className,n=e.api,a=e.isAPILoaded,l=e.isAPISaved,o=e.isSaving,r=e.changeAPI,i=e.saveAPIKey;return a?l?void 0:wp.element.createElement(u,{icon:"admin-site",label:c("Google Maps"),instructions:c("A Google Maps API key is required, please enter one below."),className:t},wp.element.createElement("div",{className:"components-placeholder__actions"},wp.element.createElement(b,{type:"text",placeholder:c("Google Maps API Key"),value:n,className:"components-placeholder__input",onChange:r}),wp.element.createElement(p,{isLarge:!0,isDefault:!0,type:"submit",onClick:i,isBusy:o,disabled:""===n},c("Save"))),wp.element.createElement("div",{className:"components-placeholder__learn-more"},c("You need to activate Maps and Places API.")," ",wp.element.createElement(m,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},c("Need an API key? Get one here.")))):wp.element.createElement(u,{className:"wp-themeisle-block-spinner"},wp.element.createElement(s,null),c("Loading…"))},f=n(12);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=wp.i18n.__,k=wp.components.BaseControl,T=wp.compose.withInstanceId,E=wp.element,x=E.useEffect,C=E.useRef,S=T((function(e){var t=e.instanceId,n=e.value,a=e.onChange;x((function(){wp.oldEditor.initialize(o.current.id,{tinymce:h({},{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"})});var e=window.tinymce.get(o.current.id);return e.on("change",(function(){return a(e.getContent())})),function(){return wp.oldEditor.remove(o.current.id)}}),[]);var l="inspector-textarea-control-".concat(t),o=C(null);return wp.element.createElement(k,{id:l,label:v("Description")},wp.element.createElement("textarea",{id:l,className:"components-textarea-control__input",rows:4,value:n,onChange:function(e){return a(e.target.value)},ref:o}))})),M=wp.i18n.__,B=wp.components,O=B.BaseControl,R=B.Button,L=B.ExternalLink,N=B.IconButton,A=B.SelectControl,P=B.TextControl,z=wp.element.useRef,I=function(e){var t=e.marker,n=e.isOpen,a=e.isPlaceAPIAvailable,l=e.openMarker,o=e.removeMarker,i=e.changeMarkerProp,c=z(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-title-area"},wp.element.createElement(R,{className:"wp-block-themeisle-blocks-google-map-marker-title",onClick:function(){return l(t.id)}},t.title||M("Custom Marker")),wp.element.createElement(N,{icon:"no-alt",label:M("Remove Marker"),className:"wp-block-themeisle-blocks-google-map-marker-remove",onClick:function(){return o(t.id)}})),wp.element.createElement("div",{className:r()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===n})},wp.element.createElement(O,{label:M("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(t.id),placeholder:M("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:c,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var n=new google.maps.places.SearchBox(c.current);n.addListener("places_changed",(function(){var e=n.getPlaces();e&&0<e.length&&e.forEach((function(e){var n=e.formatted_address||e.name,a=e.geometry.location.lat(),l=e.geometry.location.lng();i(t.id,"location",n),i(t.id,"latitude",a),i(t.id,"longitude",l)}))}))},onChange:function(e){return i(t.id,"location",e.target.value)},disabled:!a}),!a&&wp.element.createElement("p",null,M("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(L,{href:"https://developers.google.com/places/web-service/intro"},M("More info.")))),wp.element.createElement(P,{label:M("Latitude"),type:"text",value:t.latitude,onChange:function(e){return i(t.id,"latitude",e)}}),wp.element.createElement(P,{label:M("Longitude"),type:"text",value:t.longitude,onChange:function(e){return i(t.id,"longitude",e)}}),wp.element.createElement(A,{label:M("Map Icon"),value:t.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:M("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:M("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:M("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:M("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:M("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:function(e){return i(t.id,"icon",e)}}),wp.element.createElement(P,{label:M("Title"),type:"text",value:t.title,onChange:function(e){return i(t.id,"title",e)}}),wp.element.createElement(S,{label:M("Description"),type:"text",value:t.description,onChange:function(e){return i(t.id,"description",e)}})))};function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var j=wp.i18n.__,D=wp.components.Button,G=wp.element,V=G.Fragment,F=G.useEffect,W=G.useState,q=function(e){var t=e.initialOpen,n=e.markers,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.removeMarker,r=e.changeMarkerProp;F((function(){!1!==t&&d(t)}),[t]);var i=H(W(null),2),c=i[0],d=i[1],p=function(e){c===e&&(e=null),d(e)};return wp.element.createElement(V,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},n.map((function(e){return wp.element.createElement(I,{marker:e,isOpen:c,isPlaceAPIAvailable:a,openMarker:p,removeMarker:o,changeMarkerProp:r})}))),wp.element.createElement(D,{isDefault:!0,isLarge:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:l},j("Add Marker")))},U=wp.i18n.__,Z=wp.components,$=Z.BaseControl,Q=Z.Button,K=Z.ExternalLink,J=Z.PanelBody,Y=Z.RangeControl,X=Z.SelectControl,ee=Z.TextControl,te=Z.ToggleControl,ne=wp.blockEditor.InspectorControls,ae=wp.element.useRef,le=function(e){var t=e.attributes,n=e.setAttributes,a=e.map,l=e.changeStyle,o=e.isPlaceAPIAvailable,r=e.isMarkerOpen,i=e.setMarkerOpen,c=e.removeMarker,d=e.changeMarkerProp,p=e.addMarkerManual,m=e.api,u=e.isSaving,s=e.changeAPI,b=e.saveAPIKey,g=ae(null);return wp.element.createElement(ne,null,wp.element.createElement(J,{title:U("Styles"),initialOpen:!1},wp.element.createElement(f.b,{value:t.style,options:[{label:U("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:U("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:U("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:U("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:U("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:U("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:l})),wp.element.createElement(J,{title:U("Location")},wp.element.createElement($,{label:U("Location"),id:"wp-block-themeisle-blocks-google-map-search"},wp.element.createElement("input",{type:"text",id:"wp-block-themeisle-blocks-google-map-search",placeholder:U("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:g,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(g.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.geometry.location.lat(),l=e.geometry.location.lng(),o=new google.maps.LatLng(t,l);a.setCenter(o),n({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:function(e){n({location:e.target.value})},disabled:!o}),!o&&wp.element.createElement("p",null,U("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(K,{href:"https://developers.google.com/places/web-service/intro"},U("More info.")))),wp.element.createElement(ee,{label:U("Latitude"),type:"text",placeholder:U("Enter latitude…"),value:t.latitude,onChange:function(e){n({latitude:e.toString()});var l=Number(e),o=t.longitude,r=new google.maps.LatLng(l,o);a.setCenter(r)}}),wp.element.createElement(ee,{label:U("Longitude"),type:"text",placeholder:U("Enter longitude"),value:t.longitude,onChange:function(e){n({longitude:e.toString()});var l=t.latitude,o=Number(e),r=new google.maps.LatLng(l,o);a.setCenter(r)}})),wp.element.createElement(J,{title:U("Positioning & Zooming"),initialOpen:!1},wp.element.createElement(X,{label:U("Map Type"),value:t.type,options:[{label:U("Road Map"),value:"roadmap"},{label:U("Satellite View"),value:"satellite"},{label:U("Hybrid"),value:"hybrid"},{label:U("Terrain"),value:"terrain"}],onChange:function(e){n({type:e}),a.setMapTypeId(google.maps.MapTypeId[e.toUpperCase()])}}),wp.element.createElement(Y,{label:U("Map Zoom Level"),value:t.zoom,onChange:function(e){n({zoom:e}),a.setZoom(e)},min:0,max:20}),wp.element.createElement(Y,{label:U("Map Height"),value:t.height,onChange:function(e){n({height:e})},min:100,max:1400})),wp.element.createElement(J,{title:U("Controls"),initialOpen:!1},wp.element.createElement($,null,U("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.")),wp.element.createElement(te,{label:"Draggable Map",checked:t.draggable,onChange:function(){n({draggable:!t.draggable})}}),wp.element.createElement(te,{label:"Map Type Control",checked:t.mapTypeControl,onChange:function(){n({mapTypeControl:!t.mapTypeControl})}}),wp.element.createElement(te,{label:"Zoom Control",checked:t.zoomControl,onChange:function(){n({zoomControl:!t.zoomControl})}}),wp.element.createElement(te,{label:"Full Screen Control",checked:t.fullscreenControl,onChange:function(){n({fullscreenControl:!t.fullscreenControl})}}),wp.element.createElement(te,{label:"Streen View Control",checked:t.streetViewControl,onChange:function(){n({streetViewControl:!t.streetViewControl})}})),wp.element.createElement(J,{title:U("Markers"),initialOpen:!1,opened:!1!==r||void 0,onToggle:function(){!1!==r&&i(!0)}},wp.element.createElement(q,{markers:t.markers,removeMarker:c,changeMarkerProp:d,addMarker:p,isPlaceAPIAvailable:o,initialOpen:r})),wp.element.createElement(J,{title:U("Global Settings"),initialOpen:!1},wp.element.createElement(ee,{label:U("Google Maps API Key"),type:"text",placeholder:U("Google Maps API Key"),value:m,className:"components-placeholder__input",onChange:s,help:U("Changing the API key effects all Google Map Embed blocks. You will have to refresh the page after changing your API keys.")}),wp.element.createElement(Q,{isLarge:!0,isDefault:!0,type:"submit",onClick:b,isBusy:u},U("Save API Key"))))};function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return re(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var ie=wp.i18n.__,ce=wp.components,de=ce.BaseControl,pe=ce.Button,me=ce.ButtonGroup,ue=ce.Modal,se=ce.SelectControl,be=ce.TextControl,ge=wp.element,fe=ge.useEffect,ye=ge.useRef,he=ge.useState,we=ge.Fragment,ve=function(e){var t=e.marker,n=e.isAdvanced,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.close;fe((function(){d(t.id),u(t.location),g(t.title),h(t.icon),k(t.description),x(t.latitude),B(t.longitude)}),[t]);var r=ye(null),i=oe(he(t.id),2),c=i[0],d=i[1],p=oe(he(t.location),2),m=p[0],u=p[1],s=oe(he(t.title),2),b=s[0],g=s[1],f=oe(he(t.icon),2),y=f[0],h=f[1],w=oe(he(t.description),2),v=w[0],k=w[1],T=oe(he(t.latitude),2),E=T[0],x=T[1],C=oe(he(t.longitude),2),M=C[0],B=C[1];return wp.element.createElement(ue,{title:ie("Add Marker"),onRequestClose:o,shouldCloseOnClickOutside:!1},n&&wp.element.createElement(we,null,wp.element.createElement(de,{label:ie("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(c),placeholder:ie("Enter a location…"),value:m,className:"wp-block-themeisle-blocks-google-map-search",ref:r,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(r.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.formatted_address||e.name,n=e.geometry.location.lat(),a=e.geometry.location.lng();u(t),x(n),B(a)}))}))},onChange:function(e){return u(e.target.value)},disabled:!a})),wp.element.createElement(be,{label:ie("Latitude"),type:"text",value:E,onChange:x}),wp.element.createElement(be,{label:ie("Longitude"),type:"text",value:M,onChange:B})),wp.element.createElement(be,{label:ie("Title"),type:"text",value:b,onChange:g}),wp.element.createElement(S,{label:ie("Description"),type:"text",value:v,onChange:k}),wp.element.createElement(se,{label:ie("Map Icon"),value:y||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:ie("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:ie("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:ie("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:ie("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:ie("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:h}),wp.element.createElement(me,null,wp.element.createElement(pe,{isLarge:!0,isPrimary:!0,onClick:function(){return l(m,b,y,v,E,M)}},ie("Add")),wp.element.createElement(pe,{isLarge:!0,isDefault:!0,onClick:o},ie("Cancel"))))},ke=wp.i18n.__,Te=wp.components.Button,Ee=wp.element,xe=Ee.Fragment,Ce=Ee.useEffect,Se=function(e){var t=e.attributes,n=e.className,a=e.initMap,l=e.displayMap,o=e.isMapLoaded,i=e.selectMarker,c=e.isSelectingMarker;return Ce((function(){l&&a()}),[l]),wp.element.createElement(xe,null,wp.element.createElement("div",{id:t.id,className:r()(n,{"is-selecting-marker":c}),style:{height:t.height+"px"}}),o&&wp.element.createElement(Te,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:ke("Add Button"),onClick:i},wp.element.createElement("span",{className:"dashicons dashicons-sticky"})))},Me={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"}]}]};function Be(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function Oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||Le(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e){return function(e){if(Array.isArray(e))return Ne(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Le(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){if(e){if("string"==typeof e)return Ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Ae=wp.i18n.__,Pe=wp.components.ResizableBox,ze=wp.element,Ie=ze.Fragment,He=ze.useEffect,_e=ze.useRef,je=ze.useState,De=[],Ge=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.isSelected,c=e.toggleSelection;He((function(){X(),window.isMapLoaded=window.isMapLoaded||!1,window["removeMarker_".concat(l.substr(0,8))]=oe,m.current=document.createElement("script"),m.current.type="text/javascript",m.current.async=!0,m.current.defer=!0,m.current.id="themeisle-google-map-api-loading"}),[]),He((function(){!1!==x&&void 0!==window.google&&u.current.setOptions({mapTypeControl:!!o||t.mapTypeControl,zoomControl:!!o||t.zoomControl,fullscreenControl:!!o||t.fullscreenControl,streetViewControl:!!o||t.streetViewControl})}),[o]),He((function(){b.current=Re(t.markers)}),[t.markers]);var d=_e([]),p=_e(null),m=_e(null),u=_e(null),s=_e(null),b=_e(Re(t.markers)),y=Oe(je(""),2),h=y[0],w=y[1],v=Oe(je(!1),2),k=v[0],T=v[1],E=Oe(je(!1),2),x=E[0],C=E[1],S=Oe(je(!1),2),M=S[0],B=S[1],O=Oe(je(!1),2),R=O[0],L=O[1],N=Oe(je(!0),2),A=N[0],P=N[1],z=Oe(je(!1),2),I=z[0],H=z[1],_=Oe(je(!1),2),j=_[0],D=_[1],G=Oe(je(!1),2),V=G[0],F=G[1],W=Oe(je(!1),2),q=W[0],U=W[1],Z=Oe(je(!1),2),$=Z[0],Q=Z[1],K=Oe(je({}),2),J=K[0],Y=K[1],X=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t.id){e.next=7;break}return a="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=4,n({id:a});case 4:De.push(a),e.next=15;break;case 7:if(!De.includes(t.id)){e.next=14;break}return o="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=11,n({id:o});case 11:De.push(o),e.next=15;break;case 14:De.push(t.id);case 15:return e.next=17,wp.api.loadPromise.then((function(){p.current=new wp.api.models.Settings}));case 17:!1===Boolean(themeisleGutenberg.mapsAPI)?k||p.current.fetch().then((function(e){w(e.themeisle_google_map_block_api_key),T(!0),""!==e.themeisle_google_map_block_api_key&&(C(!0),ee(e.themeisle_google_map_block_api_key))})):k||(w(themeisleGutenberg.mapsAPI),T(!0),C(!0),ee(themeisleGutenberg.mapsAPI));case 18:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){Be(o,a,l,r,i,"next",e)}function i(e){Be(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),ee=function(e){window.isMapLoaded||(window.isMapLoaded=!0,m.current.onload=function(){document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",H(!0)},m.current.src="https://maps.googleapis.com/maps/api/js?key=".concat(e,"&libraries=places&cache=").concat(Math.random()),document.head.appendChild(m.current)),document.getElementById("themeisle-google-map-api")&&H(!0)},te=function(e,t,n,a){var o='<div class="wp-block-themeisle-blocks-map-overview"><h6 class="wp-block-themeisle-blocks-map-overview-title">'.concat(n,'</h6><div class="wp-block-themeisle-blocks-map-overview-content">').concat(a?"<p>".concat(a,"</p>"):"",'<a class="wp-block-themeisle-blocks-map-overview-delete" onclick="removeMarker_').concat(l.substr(0,8),"( '").concat(t,"' )\">").concat(Ae("Delete Marker"),"</a></div></div>"),r=new google.maps.InfoWindow({content:o});e.addListener("click",(function(){s.current=r,r.open(u.current,e)})),google.maps.event.addListener(r,"domready",(function(){D(t)})),google.maps.event.addListener(r,"closeclick",(function(){D(!1)}))},ne=function(e){e.forEach((function(e){var t=e.latitude,n=e.longitude,a=new google.maps.LatLng(t,n),l=new google.maps.Marker({position:a,map:u.current,title:e.title,draggable:!0,icon:e.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png"});google.maps.event.addListener(l,"dragend",(function(t){var n=t.latLng.lat(),a=t.latLng.lng();ae(e.id,"latitude",n),ae(e.id,"longitude",a)})),d.current.push(l),google.maps.event.addListener(l,"click",(function(){s.current&&s.current.close()})),te(l,e.id,e.title,e.description)}))},ae=function(e,t,a){var l=Re(b.current);l.map((function(n){if(n.id===e)return n[t]=a.toString()})),re(),ne(l),n({markers:l})},oe=function(e){var t=Re(b.current);t=t.filter((function(t){return t.id!==e})),n({markers:t}),re(),D(!1),0<t.length&&ne(t)},re=function(){for(var e=0;e<d.current.length;e++)d.current[e].setMap(null);d.current=[]},ie=function(){!1===Boolean(themeisleGutenberg.mapsAPI)&&(L(!0),new wp.api.models.Settings({themeisle_google_map_block_api_key:h}).save().then((function(e){var t=!1;""!==e.themeisle_google_map_block_api_key&&(t=!0),L(!1),C(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,ee(e.themeisle_google_map_block_api_key))})))},ce=function(e){n({style:e}),u.current.setOptions({styles:Me[e]})};return k&&x?wp.element.createElement(Ie,null,wp.element.createElement(f.a,{label:Ae("Block Styles"),value:t.style,options:[{label:Ae("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:Ae("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:Ae("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:Ae("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:Ae("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:Ae("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:ce}),wp.element.createElement(le,{attributes:t,setAttributes:n,map:u.current,changeStyle:ce,isPlaceAPIAvailable:A,isMarkerOpen:j,setMarkerOpen:D,removeMarker:oe,changeMarkerProp:ae,addMarkerManual:function(){var e=Object(i.a)(),t=Ae("Custom Marker"),n=u.current.getCenter(),a=n.lat(),l=n.lng();U(!0),Q(!0),Y({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})},api:h,isSaving:R,changeAPI:w,saveAPIKey:ie}),q&&wp.element.createElement(ve,{marker:J,isAdvanced:$,isPlaceAPIAvailable:A,close:function(){return U(!1)},addMarker:function(e,a,l,o,r,c){var p=new google.maps.LatLng(r,c),m=Object(i.a)(),b=new google.maps.Marker({position:p,map:u.current,title:a,draggable:!0,icon:l});google.maps.event.addListener(b,"dragend",(function(e){var t=e.latLng.lat(),n=e.latLng.lng();ae(m,"latitude",t),ae(m,"longitude",n)})),d.current.push(b);var g=Re(t.markers),f={id:m,location:e,title:a,icon:l,description:o,latitude:r,longitude:c};g.push(f),n({markers:g}),google.maps.event.addListener(b,"click",(function(){s.current&&s.current.close()})),te(b,f.id,a,o),U(!1),F(!1)}}),wp.element.createElement(Pe,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){c(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),c(!0)},className:r()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":o})},wp.element.createElement(Se,{attributes:t,className:a,initMap:function(){if(u.current=new 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:Me[t.style]}),t.location&&void 0===t.latitude&&void 0===t.longitude){var e={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(u.current).findPlaceFromQuery(e,(function(e,t){t===google.maps.places.PlacesServiceStatus.OK&&0<e.length&&u.current.setCenter(e[0].geometry.location)}))}google.maps.event.addListenerOnce(u.current,"idle",(function(){B(!0)})),u.current.addListener("zoom_changed",(function(){var e=u.current.getZoom();n({zoom:e})})),u.current.addListener("maptypeid_changed",(function(){var e=u.current.getMapTypeId();n({type:e})})),u.current.addListener("bounds_changed",(function(){var e=u.current.getCenter(),t=e.lat(),a=e.lng();n({latitude:t.toString(),longitude:a.toString()})})),0<t.markers.length&&ne(t.markers);var a={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(u.current).findPlaceFromQuery(a,(function(e,t){"REQUEST_DENIED"===t&&P(!1)}))},displayMap:I,isMapLoaded:M,selectMarker:function(){F(!V),V?google.maps.event.clearListeners(u.current,"click"):u.current.addListener("click",(function(e){google.maps.event.clearListeners(u.current,"click");var t=Object(i.a)(),n=Ae("Custom Marker"),a=e.latLng.lat(),l=e.latLng.lng();U(!0),Q(!1),Y({id:t,location:"",title:n,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})}))},isSelectingMarker:V}))):wp.element.createElement(g,{className:a,api:h,isAPILoaded:k,isAPISaved:x,changeAPI:w,saveAPIKey:ie})},Ve=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/google-map",{title:Ve("Google Map"),description:Ve("Display a Google Map on your website with Google Map block."),icon:a.j,category:"themeisle-blocks",keywords:["map","google","orbitfox"],attributes:l,supports:{align:["wide","full"],html:!1},edit:Ge,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(88),n(89);var a={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:!0},delay:{type:"number",default:2},hideArrows:{type:"boolean",default:!1},hideBullets:{type:"boolean",default:!1},height:{type:"number",default:400}},l=n(0),o=n.n(l),r=wp.components,i=r.Path,c=r.SVG,d=wp.element.Fragment,p=function(e){var t=e.attributes;return wp.element.createElement(d,null,!t.hideArrows&&wp.element.createElement("div",{className:"glide__arrows","data-glide-el":"controls"},wp.element.createElement("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"}))),wp.element.createElement("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"})))))},m=function(e){var t=e.attributes;return wp.element.createElement(d,null,!t.hideBullets&&wp.element.createElement("div",{className:"glide__bullets","data-glide-el":"controls[nav]"},t.images.map((function(e,t){return wp.element.createElement("button",{className:"glide__bullet","data-glide-dir":"=".concat(t)})}))))},u=function(e){var t=e.attributes;return wp.element.createElement(d,null,wp.element.createElement(p,{attributes:t}),wp.element.createElement(m,{attributes:t}))},s=wp.blockEditor.RichText,b=[{attributes:{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}},supports:{align:["wide","full"]},save:function(e){var t=e.attributes,n=e.className;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":t.autoplay},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.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}),!s.isEmpty(e.caption)&&wp.element.createElement(s.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(u,{attributes:t})))}},{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:!0},delay:{type:"number",default:2},hideArrows:{type:"boolean",default:!1},hideBullets:{type:"boolean",default:!1},height:{type:"number",default:400}},supports:{align:["wide","full"]},save:function(e){var t=e.attributes,n=e.className,a=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":a,"data-height":"".concat(t.height,"px")},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides"},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.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}),!s.isEmpty(e.caption)&&wp.element.createElement(s.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(u,{attributes:t})))}}],g=lodash,f=g.filter,y=g.every,h=wp.blocks.createBlock,w={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=y(e,["align",t])?t:void 0;var n=f(e,(function(e){return e.url}));return h("themeisle-blocks/slider",{images:n.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:t})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return h("themeisle-blocks/slider",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return 0<t.length?t.map((function(e){var t=e.id,a=e.url,l=e.alt,o=e.caption;return h("core/image",{id:t,url:a,alt:l,caption:o,align:n})})):h("core/image",{align:n})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return h("core/gallery",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}]},v=lodash.debounce,k=wp.blockEditor.MediaPlaceholder,T=function(e){var t=e.labels,n=e.icon,a=e.isAppender,l=void 0!==a&&a,o=e.value,r=void 0===o?{}:o,i=e.onSelectImages,c=v(i,250);return wp.element.createElement(k,{labels:t,icon:n,accept:"image/*",allowedTypes:["image"],isAppender:l,className:"wp-block-themeisle-blocks-slider-uploader",value:r,onSelect:c,multiple:!0})},E=wp.i18n.__,x=lodash.max,C=wp.blockEditor.InspectorControls,S=wp.components,M=S.PanelBody,B=S.RangeControl,O=S.ToggleControl,R=wp.element.Fragment,L=function(e){var t=e.attributes,n=e.setAttributes,a=e.slider,l=e.changePerView;return wp.element.createElement(C,null,wp.element.createElement(M,{title:E("Settings")},t.images.length&&wp.element.createElement(R,null,wp.element.createElement(B,{label:E("Slides Per Page"),help:E("A number of visible slides."),value:t.perView,onChange:l,min:1,max:x([Math.round(t.images.length/2),1])}),1<t.perView&&wp.element.createElement(R,null,wp.element.createElement(B,{label:E("Gap"),help:E("A size of the space between slides."),value:t.gap,onChange:function(e){n({gap:Number(e)}),a.update({gap:Number(e)})},min:0,max:100}),wp.element.createElement(B,{label:E("Peek"),help:E("The value of the future slides which have to be visible in the current slide."),value:t.peek,onChange:function(e){n({peek:Number(e)}),a.update({peek:Number(e)})},min:0,max:100})),wp.element.createElement(B,{label:E("Height"),help:E("Slider height in pixels."),value:t.height,onChange:function(e){n({height:Number(e)})},min:100,max:1400}),wp.element.createElement(O,{label:E("Autoplay"),help:E("Autoplay slider in the front."),checked:t.autoplay,onChange:function(e){n({autoplay:e})}}),t.autoplay&&wp.element.createElement(B,{label:E("Delay"),help:E("Delay in slide change (in seconds)."),value:t.delay,onChange:function(e){n({delay:e})},min:1,max:10}),wp.element.createElement(O,{label:E("Hide Arrows"),help:E("Hide navigation arrows."),checked:t.hideArrows,onChange:function(e){n({hideArrows:e})}}),wp.element.createElement(O,{label:E("Hide Bullets"),help:E("Hide navigation bullets."),checked:t.hideBullets,onChange:function(e){n({hideBullets:e})}}))))};function N(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var P=wp.i18n.__,z=lodash.filter,I=wp.blockEditor.RichText,H=wp.components.IconButton,_=wp.element.Fragment,j=function(e){var t=e.images,n=e.image,a=e.index,l=e.isFirstItem,r=e.isLastItem,i=e.isSelected,c=e.setAttributes,d=e.setSelectedImage,p=function(e,n){var a=N(t);a.splice(n,1,t[e]),a.splice(e,1,t[n]),d(n),c({images:a})};return wp.element.createElement("div",{className:o()("wp-block-themeisle-blocks-slider-item-wrapper glide__slide",{"is-selected":i}),tabIndex:"0",onClick:function(){return d(n.id)},onFocus:function(){return d(n.id)}},wp.element.createElement("figure",null,wp.element.createElement("img",{key:n.id,className:"wp-block-themeisle-blocks-slider-item",src:n.url,alt:n.alt,title:n.alt,"data-id":n.id}),i&&wp.element.createElement(_,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-move-menu"},wp.element.createElement(H,{icon:"arrow-left-alt2",onClick:l?void 0:function(){0!==a&&p(a,a-1)},className:"wp-block-themeisle-blocks-slider-item-move-backward",label:P("Move image backward"),"aria-disabled":l,disabled:!i}),wp.element.createElement(H,{icon:"arrow-right-alt2",onClick:r?void 0:function(){a!==t.length-1&&p(a,a+1)},className:"wp-block-themeisle-blocks-slider-item-move-forward",label:P("Move image forward"),"aria-disabled":r,disabled:!i})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-delete-menu"},wp.element.createElement(H,{icon:"no-alt",onClick:function(){var e=z(t,(function(e,t){return a!==t}));d(null),c({images:e})},className:"wp-block-themeisle-blocks-slider-item-delete",label:P("Remove image")}))),(i||!I.isEmpty(n.caption))&&wp.element.createElement(I,{tagName:"figcaption",placeholder:i?P("Write caption…"):null,value:n.caption,onChange:function(e){var n=N(t);n[a].caption=e,c({images:n})},multiline:!1})))};function D(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||F(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||F(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){if(e){if("string"==typeof e)return W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var q=wp.i18n.__,U=lodash.max,Z=wp.components.ResizableBox,$=wp.element,Q=$.Fragment,K=$.useEffect,J=$.useRef,Y=$.useState,X=[],ee=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,r=e.isSelected,i=e.toggleSelection;K((function(){return b(),function(){t.images.length&&c.current.destroy()}}),[]),K((function(){t.images.length&&(s(null),null!==c.current&&(c.current.destroy(),g()))}),[r,t.align]),K((function(){t.images.length&&t.perView>t.images.length&&y(U([Math.round(t.images.length/2),1]))}),[t.images]);var c=J(null),d=J(null),p=V(Y(null),2),m=p[0],s=p[1],b=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[],void 0!==t.id){e.next=10;break}return o="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=5,n({id:o});case 5:X.push(o),d.current=o,a.push(o),e.next=21;break;case 10:if(!X.includes(t.id)){e.next=18;break}return r="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=14,n({id:r});case 14:X.push(r),d.current=r,e.next=21;break;case 18:X.push(t.id),d.current=t.id,a.push(t.id);case 21:window.themeisleGutenberg.blockIDs=D(a),t.images.length&&g();case 23:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){G(o,a,l,r,i,"next",e)}function i(e){G(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),g=function(){c.current=new Glide("#".concat(t.id||d.current),{type:"carousel",keyboard:!1,perView:t.perView,gap:t.gap,peek:t.peek,autoplay:!1,breakpoints:{800:{perView:1,peek:0,gap:0}}}).mount()},f=function(e){n({images:e.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}))}),null!==c.current&&c.current.destroy(),g()},y=function(e){n({perView:Number(e)}),c.current.update({perView:Number(e)}),1===e&&(n({gap:0,peek:0}),c.current.update({gap:0,peek:0}))};return Array.isArray(t.images)&&!t.images.length?wp.element.createElement(T,{labels:{title:q("Slider"),instructions:q("Drag images, upload new ones or select files from your library.")},icon:"images-alt2",onSelectImages:f}):wp.element.createElement(Q,null,wp.element.createElement(L,{attributes:t,setAttributes:n,slider:c.current,changePerView:y}),wp.element.createElement(Z,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){i(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),i(!0)},className:o()("wp-block-themeisle-blocks-slider-resizer",{"is-focused":r})},wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",a)},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e,a){return wp.element.createElement(j,{images:t.images,image:e,index:a,isFirstItem:0===a,isLastItem:a+1===t.images.length,isSelected:r&&e.id===m,setAttributes:n,setSelectedImage:s})}))),wp.element.createElement(u,{attributes:t})))),r&&wp.element.createElement(T,{labels:{title:"",instructions:""},icon:null,onSelectImages:f,isAppender:!0,value:t.images}))},te=wp.blockEditor.RichText,ne=function(e){var t=e.attributes,n=e.className,a=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":a,"data-height":"".concat(t.height,"px"),"data-hide-arrows":t.hideArrows},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides"},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.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}),!te.isEmpty(e.caption)&&wp.element.createElement(te.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(m,{attributes:t})))},ae=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/slider",{title:ae("Slider"),description:ae("Minimal image slider to showcase beautiful images."),icon:"images-alt2",category:"themeisle-blocks",keywords:["slider","gallery","carousel"],attributes:a,deprecated:b,transforms:w,supports:{align:["wide","full"]},edit:ee,save:ne})},function(e,t,n){"use strict";n.r(t);n(40);var a=n(2);n(41);function l(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var r=e.apply(t,n);function i(e){l(r,a,o,i,c,"next",e)}function c(e){l(r,a,o,i,c,"throw",e)}i(void 0)}))}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=wp.i18n.__,d=wp.blocks.getBlockType,p=wp.components,m=p.Button,u=p.Icon,s=p.Modal,b=wp.element,g=b.Fragment,f=b.useState,y=function(e){var t=e.blockName,n=e.saveConfig,a=e.resetConfig,l=e.children,i=d(t),p=r(f(!1),2),b=p[0],y=p[1],h=r(f(!1),2),w=h[0],v=h[1];return i?wp.element.createElement(g,null,wp.element.createElement(m,{className:"wp-block-themeisle-blocks-options-global-defaults-list-item block-editor-block-types-list__item",onClick:function(){return y(!0)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-icon"},wp.element.createElement(u,{icon:i.icon.src})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-title"},i.title)),b&&wp.element.createElement(s,{title:i.title,onRequestClose:function(){return y(!1)},shouldCloseOnClickOutside:!1,overlayClassName:"wp-block-themeisle-blocks-options-global-defaults-modal"},l,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions"},wp.element.createElement(m,{isLink:!0,isDestructive:!0,onClick:function(){return a(t)}},c("Reset")),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions-primary"},wp.element.createElement(m,{isDefault:!0,isLarge:!0,onClick:function(){return y(!1)}},c("Close")),wp.element.createElement(m,{isPrimary:!0,isLarge:!0,isBusy:w,onClick:o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(!0),e.next=3,n();case 3:v(!1);case 4:case"end":return e.stop()}}),e)})))},c("Save")))))):null},h=n(3),w=n(9),v=n(4),k=n(5);function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=wp.i18n.__,x=wp.blockEditor.ColorPalette,C=wp.components,S=C.PanelBody,M=C.RangeControl,B=C.SelectControl,O=wp.compose.compose,R=wp.data.withSelect,L=wp.element.Fragment,N=O(R((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=e.view,o=function(){var e;return"Desktop"===l&&(e=n.fontSize),"Tablet"===l&&(e=n.fontSizeTablet),"Mobile"===l&&(e=n.fontSizeMobile),e};o=o();var r=function(){var e;return"Desktop"===l&&(e=n.paddingType),"Tablet"===l&&(e=n.paddingTypeTablet),"Mobile"===l&&(e=n.paddingTypeMobile),e};r=r();var i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},c={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},d={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},p=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},m=function(){var e;return"Desktop"===l&&(e=n.marginType),"Tablet"===l&&(e=n.marginTypeTablet),"Mobile"===l&&(e=n.marginTypeMobile),e};m=m();var u={top:"marginTop",bottom:"marginBottom"},s={top:"marginTopTablet",bottom:"marginBottomTablet"},b={top:"marginTopMobile",bottom:"marginBottomMobile"},g=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t};return wp.element.createElement(L,null,wp.element.createElement(S,{title:E("General Settings")},wp.element.createElement(B,{label:E("HTML Tag"),value:n.tag,options:[{label:E("Heading 1"),value:"h1"},{label:E("Heading 2"),value:"h2"},{label:E("Heading 3"),value:"h3"},{label:E("Heading 4"),value:"h4"},{label:E("Heading 5"),value:"h5"},{label:E("Heading 6"),value:"h6"},{label:E("Division"),value:"div"},{label:E("Paragraph"),value:"p"},{label:E("Span"),value:"span"}],onChange:function(e){return a(t,{tag:e})}}),wp.element.createElement(h.a,{label:"Heading Color",colorValue:n.headingColor},wp.element.createElement(x,{value:n.headingColor,onChange:function(e){return a(t,{headingColor:e})}})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Font Size"},wp.element.createElement(M,{value:o||"",onChange:function(e){"Desktop"===l&&a(t,{fontSize:e}),"Tablet"===l&&a(t,{fontSizeTablet:e}),"Mobile"===l&&a(t,{fontSizeMobile:e})},min:1,max:500}))),wp.element.createElement(S,{title:E("Typography Settings"),initialOpen:!1},wp.element.createElement(w.a,{label:E("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(M,{label:E("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200}),wp.element.createElement("hr",null),wp.element.createElement(M,{label:E("Letter Spacing"),value:n.letterSpacing||"",onChange:function(e){return a(t,{letterSpacing:e})},min:-50,max:100})),wp.element.createElement(S,{title:E("Spacing"),initialOpen:!1},wp.element.createElement(v.a,{label:"Padding"},wp.element.createElement(k.a,{type:r,min:0,max:500,changeType:function(e){"Desktop"===l&&a(t,{paddingType:e}),"Tablet"===l&&a(t,{paddingTypeTablet:e}),"Mobile"===l&&a(t,{paddingTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.paddingType?a(t,{padding:o}):a(t,T({},i[e],o))),"Tablet"===l&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:o}):a(t,T({},c[e],o))),"Mobile"===l&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:o}):a(t,T({},d[e],o)))},options:[{label:E("Top"),type:"top",value:p("top")},{label:E("Right"),type:"right",value:p("right")},{label:E("Bottom"),type:"bottom",value:p("bottom")},{label:E("Left"),type:"left",value:p("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Margin"},wp.element.createElement(k.a,{type:m,min:-500,max:500,changeType:function(e){"Desktop"===l&&a(t,{marginType:e}),"Tablet"===l&&a(t,{marginTypeTablet:e}),"Mobile"===l&&a(t,{marginTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.marginType?a(t,{margin:o}):a(t,T({},u[e],o))),"Tablet"===l&&("linked"===n.marginTypeTablet?a(t,{marginTablet:o}):a(t,T({},s[e],o))),"Mobile"===l&&("linked"===n.marginTypeMobile?a(t,{marginMobile:o}):a(t,T({},b[e],o)))},options:[{label:E("Top"),type:"top",value:g("top")},{label:E("Right"),disabled:!0},{label:E("Bottom"),type:"bottom",value:g("bottom")},{label:E("Left"),disabled:!0}]}))))}));function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var z=wp.i18n.__,I=lodash.cloneDeep,H=wp.components,_=H.Button,j=H.ButtonGroup,D=H.PanelBody,G=H.RangeControl,V=H.SelectControl,F=wp.blockEditor.ColorPalette,W=wp.element,q=W.Fragment,U=W.useState,Z=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=A(U(!1),2),o=l[0],r=l[1],i=function(e,l){var o=I(n.data);o[e]=l,a(t,{data:o})};return wp.element.createElement(q,null,wp.element.createElement(D,{title:z("Color & Border")},wp.element.createElement(j,{className:"wp-block-themeisle-blocks-button-group-hover-control"},wp.element.createElement(_,{isDefault:!0,isLarge:!0,isPrimary:!o,onClick:function(){return r(!1)}},z("Normal")),wp.element.createElement(_,{isDefault:!0,isLarge:!0,isPrimary:o,onClick:function(){return r(!0)}},z("Hover"))),o?wp.element.createElement(q,null,wp.element.createElement(h.a,{label:"Hover Color",colorValue:n.data.hoverColor},wp.element.createElement(F,{label:"Hover Color",value:n.data.hoverColor,onChange:function(e){return i("hoverColor",e)}})),wp.element.createElement("hr",null),wp.element.createElement(h.a,{label:"Hover Background",colorValue:n.data.hoverBackground},wp.element.createElement(F,{label:"Hover Background",value:n.data.hoverBackground,onChange:function(e){return i("hoverBackground",e)}})),wp.element.createElement("hr",null),wp.element.createElement(h.a,{label:"Hover Border",colorValue:n.data.hoverBorder},wp.element.createElement(F,{label:"Hover Border",value:n.data.hoverBorder,onChange:function(e){return i("hoverBorder",e)}}))):wp.element.createElement(q,null,wp.element.createElement(h.a,{label:"Color",colorValue:n.data.color},wp.element.createElement(F,{label:"Color",value:n.data.color,onChange:function(e){return i("color",e)}})),wp.element.createElement("hr",null),wp.element.createElement(h.a,{label:"Background",colorValue:n.data.background},wp.element.createElement(F,{label:"Background",value:n.data.background,onChange:function(e){return i("background",e)}})),wp.element.createElement("hr",null),wp.element.createElement(h.a,{label:"Border",colorValue:n.data.border},wp.element.createElement(F,{label:"Border",value:n.data.border,onChange:function(e){return i("border",e)}}))),wp.element.createElement("hr",null),wp.element.createElement(G,{label:z("Border Size"),value:n.data.borderSize||"",onChange:function(e){return i("borderSize",e)},min:0,max:10}),wp.element.createElement("hr",null),wp.element.createElement(G,{label:z("Border Radius"),value:n.data.borderRadius||"",onChange:function(e){return i("borderRadius",e)},min:0,max:100})),wp.element.createElement(D,{title:z("Spacing"),initialOpen:!1},wp.element.createElement(k.a,{label:z("Button Padding"),min:0,max:100,onChange:i,options:[{label:z("Top"),type:"paddingTopBottom",value:n.data.paddingTopBottom},{label:z("Right"),type:"paddingLeftRight",value:n.data.paddingLeftRight},{label:z("Bottom"),type:"paddingTopBottom",value:n.data.paddingTopBottom},{label:z("Left"),type:"paddingLeftRight",value:n.data.paddingLeftRight}]}),wp.element.createElement("hr",null),wp.element.createElement(G,{label:z("Group Spacing"),value:n.spacing,onChange:function(e){return a(t,{spacing:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(V,{label:z("Collapse On"),value:n.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){return a(t,{collapse:e})}})),wp.element.createElement(D,{title:z("Typography Settings"),initialOpen:!1},wp.element.createElement(G,{label:z("Font Size"),value:n.fontSize||"",onChange:function(e){return a(t,{fontSize:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(w.a,{label:z("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(G,{label:z("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200})))};function $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var K=wp.i18n.__,J=wp.components,Y=J.Button,X=J.ButtonGroup,ee=J.PanelBody,te=J.RangeControl,ne=wp.blockEditor,ae=ne.ColorPalette,le=ne.ContrastChecker,oe=wp.element,re=oe.Fragment,ie=oe.useState,ce=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=$(ie(!1),2),o=l[0],r=l[1];return wp.element.createElement(re,null,wp.element.createElement(ee,{title:K("Sizing")},wp.element.createElement(te,{label:K("Icon Size"),value:n.fontSize||"",initialPosition:16,onChange:function(e){return a(t,{fontSize:e})},min:12,max:140}),wp.element.createElement("hr",null),wp.element.createElement(te,{label:K("Padding"),value:n.padding||"",initialPosition:5,onChange:function(e){return a(t,{padding:e})},min:0,max:100}),wp.element.createElement("hr",null),wp.element.createElement(te,{label:K("Margin"),value:n.margin||"",initialPosition:5,onChange:function(e){return a(t,{margin:e})},min:0,max:100})),wp.element.createElement(ee,{title:K("Color"),initialOpen:!1},wp.element.createElement(X,{className:"wp-block-themeisle-blocks-font-awesome-icons-hover-control"},wp.element.createElement(Y,{isDefault:!0,isLarge:!0,isPrimary:!o,onClick:function(){return r(!1)}},K("Normal")),wp.element.createElement(Y,{isDefault:!0,isLarge:!0,isPrimary:o,onClick:function(){return r(!0)}},K("Hover"))),o?wp.element.createElement(re,null,wp.element.createElement(h.a,{label:"Hover Background",colorValue:n.backgroundColorHover},wp.element.createElement(ae,{label:"Hover Background",value:n.backgroundColorHover,onChange:function(e){return a(t,{backgroundColorHover:e})}})),wp.element.createElement(h.a,{label:"Hover Icon",colorValue:n.textColorHover},wp.element.createElement(ae,{label:"Hover Icon",value:n.textColorHover,onChange:function(e){return a(t,{textColorHover:e})}})),wp.element.createElement(le,{textColor:n.textColorHover,backgroundColor:n.backgroundColorHover})):wp.element.createElement(re,null,wp.element.createElement(h.a,{label:"Background",colorValue:n.backgroundColor},wp.element.createElement(ae,{label:"Background",value:n.backgroundColor,onChange:function(e){return a(t,{backgroundColor:e})}})),wp.element.createElement(h.a,{label:"Icon",colorValue:n.textColor},wp.element.createElement(ae,{label:"Icon",value:n.textColor,onChange:function(e){return a(t,{textColor:e})}})),wp.element.createElement(le,{textColor:n.textColor,backgroundColor:n.backgroundColor}))))};function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pe=wp.i18n.__,me=wp.components,ue=me.BaseControl,se=me.Button,be=me.ButtonGroup,ge=me.Icon,fe=me.IconButton,ye=me.PanelBody,he=me.RangeControl,we=me.SelectControl,ve=me.ToggleControl,ke=me.Tooltip,Te=wp.compose.compose,Ee=wp.data.withSelect,xe=wp.element.Fragment,Ce=Te(Ee((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.blockName,n=e.defaults,l=e.changeConfig,o=e.view,r=function(){var e;return"Desktop"===o&&(e=n.paddingType),"Tablet"===o&&(e=n.paddingTypeTablet),"Mobile"===o&&(e=n.paddingTypeMobile),e};r=r();var i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},c={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},d={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},p=function(e){var t;return"top"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},m=function(){var e;return"Desktop"===o&&(e=n.marginType),"Tablet"===o&&(e=n.marginTypeTablet),"Mobile"===o&&(e=n.marginTypeMobile),e};m=m();var u={top:"marginTop",bottom:"marginBottom"},s={top:"marginTopTablet",bottom:"marginBottomTablet"},b={top:"marginTopMobile",bottom:"marginBottomMobile"},g=function(e){var t;return"top"==e&&("Desktop"===o&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===o&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===o&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("Desktop"===o&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===o&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===o&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t},f=function(e){if(n.horizontalAlign===e)return l(t,{horizontalAlign:"unset"});l(t,{horizontalAlign:e})},y=function(){var e;return"Desktop"===o&&(e=n.columnsHeightCustom),"Tablet"===o&&(e=n.columnsHeightCustomTablet),"Mobile"===o&&(e=n.columnsHeightCustomMobile),e};y=y();var h=function(e){if(n.verticalAlign===e)return l(t,{verticalAlign:"unset"});l(t,{verticalAlign:e})};return wp.element.createElement(xe,null,wp.element.createElement(ye,{title:pe("Sizing")},wp.element.createElement(we,{label:pe("Columns Gap"),value:n.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){return l(t,{columnsGap:e})}}),wp.element.createElement(v.a,{label:"Padding"},wp.element.createElement(k.a,{type:r,min:0,max:500,changeType:function(e){"Desktop"===o&&l(t,{paddingType:e}),"Tablet"===o&&l(t,{paddingTypeTablet:e}),"Mobile"===o&&l(t,{paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===o&&("linked"===n.paddingType?l(t,{padding:a}):l(t,de({},i[e],a))),"Tablet"===o&&("linked"===n.paddingTypeTablet?l(t,{paddingTablet:a}):l(t,de({},c[e],a))),"Mobile"===o&&("linked"===n.paddingTypeMobile?l(t,{paddingMobile:a}):l(t,de({},d[e],a)))},options:[{label:pe("Top"),type:"top",value:p("top")},{label:pe("Right"),type:"right",value:p("right")},{label:pe("Bottom"),type:"bottom",value:p("bottom")},{label:pe("Left"),type:"left",value:p("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Margin"},wp.element.createElement(k.a,{type:m,min:-500,max:500,changeType:function(e){"Desktop"===o&&l(t,{marginType:e}),"Tablet"===o&&l(t,{marginTypeTablet:e}),"Mobile"===o&&l(t,{marginTypeMobile:e})},onChange:function(e,a){"Desktop"===o&&("linked"===n.marginType?l(t,{margin:a}):l(t,de({},u[e],a))),"Tablet"===o&&("linked"===n.marginTypeTablet?l(t,{marginTablet:a}):l(t,de({},s[e],a))),"Mobile"===o&&("linked"===n.marginTypeMobile?l(t,{marginMobile:a}):l(t,de({},b[e],a)))},options:[{label:pe("Top"),type:"top",value:g("top")},{label:pe("Right"),disabled:!0},{label:pe("Bottom"),type:"bottom",value:g("bottom")},{label:pe("Left"),disabled:!0}]}))),wp.element.createElement(ye,{title:pe("Section Structure"),initialOpen:!1},wp.element.createElement(we,{label:pe("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return l(t,{columnsHTMLTag:e})}}),wp.element.createElement("hr",null),wp.element.createElement(he,{label:pe("Maximum Content Width"),value:n.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&l(t,{columnsWidth:e})},min:0,max:1200}),wp.element.createElement("hr",null),n.columnsWidth&&wp.element.createElement(xe,null,wp.element.createElement(ue,{label:"Horizontal Align"},wp.element.createElement(be,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(ke,{text:pe("Left")},wp.element.createElement(fe,{icon:"editor-alignleft",className:"is-button is-large",isPrimary:"flex-start"===n.horizontalAlign,onClick:function(){return f("flex-start")}})),wp.element.createElement(ke,{text:pe("Center")},wp.element.createElement(fe,{icon:"editor-aligncenter",className:"is-button is-large",isPrimary:"center"===n.horizontalAlign,onClick:function(){return f("center")}})),wp.element.createElement(ke,{text:pe("Right")},wp.element.createElement(fe,{icon:"editor-alignright",className:"is-button is-large",isPrimary:"flex-end"===n.horizontalAlign,onClick:function(){return f("flex-end")}})))),wp.element.createElement("hr",null)),wp.element.createElement(we,{label:pe("Minimum Height"),value:n.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){return l(t,{columnsHeight:e})}}),wp.element.createElement("hr",null),"custom"===n.columnsHeight&&wp.element.createElement(xe,null,wp.element.createElement(v.a,{label:"Custom Height"},wp.element.createElement(he,{value:y||"",onChange:function(e){"Desktop"===o&&l(t,{columnsHeightCustom:e}),"Tablet"===o&&l(t,{columnsHeightCustomTablet:e}),"Mobile"===o&&l(t,{columnsHeightCustomMobile:e})},min:0,max:1e3})),wp.element.createElement("hr",null)),wp.element.createElement(ue,{label:"Vertical Align"},wp.element.createElement(be,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(ke,{text:pe("Top")},wp.element.createElement(se,{className:"components-icon-button is-button is-large",isPrimary:"flex-start"===n.verticalAlign,onClick:function(){return h("flex-start")}},wp.element.createElement(ge,{icon:a.t,size:20}))),wp.element.createElement(ke,{text:pe("Middle")},wp.element.createElement(se,{className:"components-icon-button is-button is-large",isPrimary:"center"===n.verticalAlign,onClick:function(){return h("center")}},wp.element.createElement(ge,{icon:a.k,size:20}))),wp.element.createElement(ke,{text:pe("Bottom")},wp.element.createElement(se,{className:"components-icon-button is-button is-large",isPrimary:"flex-end"===n.verticalAlign,onClick:function(){return h("flex-end")}},wp.element.createElement(ge,{icon:a.c,size:20})))))),wp.element.createElement(ye,{title:pe("Responsive"),initialOpen:!1},wp.element.createElement(ve,{label:"Hide this section in Desktop devices?",checked:n.hide,onChange:function(e){return l(t,{hide:e})}}),wp.element.createElement(ve,{label:"Hide this section in Tablet devices?",checked:n.hideTablet,onChange:function(e){return l(t,{hideTablet:e})}}),wp.element.createElement(ve,{label:"Hide this section in Mobile devices?",checked:n.hideMobile,onChange:function(e){return l(t,{hideMobile:e})}})))}));function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Me=wp.i18n.__,Be=wp.components,Oe=Be.PanelBody,Re=Be.SelectControl,Le=wp.compose.compose,Ne=wp.data.withSelect,Ae=wp.element.Fragment,Pe=Le(Ne((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=e.view,o=function(){var e;return"Desktop"===l&&(e=n.paddingType),"Tablet"===l&&(e=n.paddingTypeTablet),"Mobile"===l&&(e=n.paddingTypeMobile),e};o=o();var r={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},i={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},c={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},d=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},p=function(){var e;return"Desktop"===l&&(e=n.marginType),"Tablet"===l&&(e=n.marginTypeTablet),"Mobile"===l&&(e=n.marginTypeMobile),e};p=p();var m={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},u={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},s={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},b=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginRight),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginRightTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginLeft),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginLeftTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginLeftMobile)),t};return wp.element.createElement(Ae,null,wp.element.createElement(Oe,{title:Me("Sizing")},wp.element.createElement(v.a,{label:"Padding"},wp.element.createElement(k.a,{type:o,min:0,max:500,changeType:function(e){"Desktop"===l&&a(t,{paddingType:e}),"Tablet"===l&&a(t,{paddingTypeTablet:e}),"Mobile"===l&&a(t,{paddingTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.paddingType?a(t,{padding:o}):a(t,Se({},r[e],o))),"Tablet"===l&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:o}):a(t,Se({},i[e],o))),"Mobile"===l&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:o}):a(t,Se({},c[e],o)))},options:[{label:Me("Top"),type:"top",value:d("top")},{label:Me("Right"),type:"right",value:d("right")},{label:Me("Bottom"),type:"bottom",value:d("bottom")},{label:Me("Left"),type:"left",value:d("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Margin"},wp.element.createElement(k.a,{type:p,min:-500,max:500,changeType:function(e){"Desktop"===l&&a(t,{marginType:e}),"Tablet"===l&&a(t,{marginTypeTablet:e}),"Mobile"===l&&a(t,{marginTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.marginType?a(t,{margin:o}):a(t,Se({},m[e],o))),"Tablet"===l&&("linked"===n.marginTypeTablet?a(t,{marginTablet:o}):a(t,Se({},u[e],o))),"Mobile"===l&&("linked"===n.marginTypeMobile?a(t,{marginMobile:o}):a(t,Se({},s[e],o)))},options:[{label:Me("Top"),type:"top",value:b("top")},{label:Me("Right"),type:"right",value:b("right")},{label:Me("Bottom"),type:"bottom",value:b("bottom")},{label:Me("Left"),type:"left",value:b("left")}]}))),wp.element.createElement(Oe,{title:Me("Section Settings"),initialOpen:!1},wp.element.createElement(Re,{label:Me("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return a(t,{columnsHTMLTag:e})}})))})),ze=wp.i18n.__,Ie=wp.components.PanelBody,He=function(e){var t=e.blockDefaults,n=e.changeConfig,a=e.resetConfig,l=e.saveConfig,o=[{name:"themeisle-blocks/advanced-heading",control:N},{name:"themeisle-blocks/button-group",control:Z},{name:"themeisle-blocks/font-awesome-icons",control:ce},{name:"themeisle-blocks/advanced-columns",control:Ce},{name:"themeisle-blocks/advanced-column",control:Pe}];return wp.element.createElement(Ie,{title:"Global Defaults",className:"wp-block-themeisle-blocks-options-global-defaults"},ze("With Global Defaults, you can set site-wide block defaults for Otter."),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list"},o.map((function(e){var o=e.control;return wp.element.createElement(y,{blockName:e.name,saveConfig:l,resetConfig:a},wp.element.createElement(o,{blockName:e.name,defaults:t[e.name],changeConfig:n}))}))))},_e=n(6);function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ve(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Fe(e){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function qe(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){We(o,a,l,r,i,"next",e)}function i(e){We(o,a,l,r,i,"throw",e)}r(void 0)}))}}var Ue=wp.i18n.__,Ze=lodash,$e=Ze.cloneDeep,Qe=Ze.isEqual,Ke=Ze.merge,Je=wp.apiFetch,Ye=wp.components,Xe=Ye.PanelBody,et=Ye.Snackbar,tt=Ye.ToggleControl,nt=wp.data.withDispatch,at=wp.element,lt=at.Fragment,ot=at.useEffect,rt=at.useRef,it=at.useState,ct=wp.editPost,dt=ct.PluginSidebar,pt=ct.PluginSidebarMoreMenuItem,mt=nt((function(e){return{createNotice:e("core/notices").createNotice}}))((function(e){var t=e.createNotice;ot(qe(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Je({path:"wp/v2/users/me?context=edit"});case 2:if(!e.sent.capabilities.manage_options){e.next=8;break}return l(!0),e.next=7,wp.api.loadPromise.then((function(){b.current=new wp.api.models.Settings}));case 7:!1===r&&b.current.fetch().then((function(e){if(s(Boolean(e.themeisle_blocks_settings_default_block)),""!==e.themeisle_blocks_settings_global_defaults){var t=$e(_e.a);"object"===Fe(window.themeisleGutenberg.themeDefaults)&&(t=Ke(t,window.themeisleGutenberg.themeDefaults)),t=Ke(t,JSON.parse(e.themeisle_blocks_settings_global_defaults)),window.themeisleGutenberg.globalDefaults=JSON.parse(e.themeisle_blocks_settings_global_defaults),p(t)}else{var n=$e(_e.a);"object"===Fe(window.themeisleGutenberg.themeDefaults)&&(n=Ke(n,window.themeisleGutenberg.themeDefaults)),window.themeisleGutenberg.globalDefaults={},p(n)}i(!1)}));case 8:case"end":return e.stop()}}),e)}))),[]);var n=Ge(it(!1),2),a=n[0],l=n[1],o=Ge(it(!1),2),r=o[0],i=o[1],c=Ge(it({}),2),d=c[0],p=c[1],m=Ge(it(!1),2),u=m[0],s=m[1],b=rt(null),g=function(e){et&&t("info",e,{isDismissible:!0,type:"snackbar"})},f=function(){var e=qe(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=$e(d),Object.keys(t).forEach((function(e){Object.keys(t[e]).forEach((function(n){(void 0!==_e.a[e][n]&&t[e][n]===_e.a[e][n]||"object"===Fe(t[e][n])&&Qe(t[e][n],_e.a[e][n]))&&delete t[e][n]}))})),n=new wp.api.models.Settings({themeisle_blocks_settings_global_defaults:JSON.stringify(t)}),e.next=5,n.save().then((function(){window.themeisleGutenberg.globalDefaults=t,g(Ue("Option updated."))}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return wp.element.createElement(lt,null,a&&wp.element.createElement(pt,{target:"wp-block-themeisle-blocks-options"},Ue("Otter Options")),wp.element.createElement(dt,{title:Ue("Otter Options"),name:"wp-block-themeisle-blocks-options"},wp.element.createElement(Xe,{className:"wp-block-themeisle-blocks-options-general"},wp.element.createElement(tt,{label:Ue("Make Section block your default block for Pages?"),checked:u,onChange:function(){new wp.api.models.Settings({themeisle_blocks_settings_default_block:!Boolean(u)}).save().then((function(e){s(Boolean(e.themeisle_blocks_settings_default_block)),g(Ue("Option updated."))}))}})),wp.element.createElement(He,{blockDefaults:d,changeConfig:function(e,t){var n=$e(d);for(var a in t)n[e][a]=t[a];p(n)},resetConfig:function(e){var t=$e(d),n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){De(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},_e.a[e]);t[e]=n,p(t)},saveConfig:f})))})),ut=(n(46),n(47),wp.components.Icon),st=wp.element.Fragment;(0,wp.plugins.registerPlugin)("themeisle-blocks",{icon:wp.element.createElement(ut,{icon:a.m}),render:function(){return wp.element.createElement(st,null,wp.element.createElement(mt,null))}})},function(e,t,n){"use strict";n.r(t);n(57),n(58);var a=n(2),l={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"},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string"},lineHeight:{type:"number"},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:""}]}},o=n(0),r=n.n(o);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=lodash.times,m=wp.editor.RichText,u=wp.element.Fragment,s=[{attributes:{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}]}},save:function(e){var t=e.attributes,n=t.id,a=t.buttons,l=t.align,o=t.collapse,i=t.fontSize,d=t.fontFamily,s=t.fontStyle,b=t.fontVariant,g=t.textTransform,f=t.lineHeight,y=t.data,h={fontSize:"".concat(i,"px"),fontFamily:d,fontWeight:b,fontStyle:s,textTransform:g,lineHeight:f&&"".concat(f,"px")},w="collapse-none"!==o?o:"";return wp.element.createElement("div",{id:n,className:r()(e.className,w),style:{justifyContent:l,alignItems:l||"flex-start"}},p(a,(function(e){return function(e){var t=c(c({},h),{},{borderWidth:"".concat(y[e].borderSize,"px"),borderRadius:"".concat(y[e].borderRadius,"px"),padding:"".concat(y[e].paddingTopBottom,"px ").concat(y[e].paddingLeftRight,"px")});return wp.element.createElement(u,null,wp.element.createElement("a",{href:y[e].link,target:y[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:t},("left"===y[e].iconType||"only"===y[e].iconType)&&wp.element.createElement("i",{className:r()(y[e].prefix,"fa-fw","fa-".concat(y[e].icon),{"margin-right":"left"===y[e].iconType})}),"only"!==y[e].iconType&&wp.element.createElement(m.Content,{tagName:"span",value:y[e].text}),"right"===y[e].iconType&&wp.element.createElement("i",{className:"".concat(y[e].prefix," fa-fw fa-").concat(y[e].icon," margin-left")})))}(e)})))}},{attributes:{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}]}},save:function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse?t.collapse:"",l={fontSize:"".concat(t.fontSize,"px"),fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px")};return wp.element.createElement("div",{id:t.id,className:r()(n,a),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},p(t.buttons,(function(e){return function(e){var n=c(c({},l),{},{borderWidth:"".concat(t.data[e].borderSize,"px"),borderRadius:"".concat(t.data[e].borderRadius,"px"),padding:"".concat(t.data[e].paddingTopBottom,"px ").concat(t.data[e].paddingLeftRight,"px")});return wp.element.createElement(u,null,wp.element.createElement("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:n,rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&wp.element.createElement("i",{className:r()(t.data[e].prefix,"fa-fw","fa-".concat(t.data[e].icon),{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&wp.element.createElement(m.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&wp.element.createElement("i",{className:"".concat(t.data[e].prefix," fa-fw fa-").concat(t.data[e].icon," margin-left")})))}(e)})))}}],b=n(19),g=n.n(b),f=n(6),y=n(9),h=wp.i18n.__,w=wp.components,v=w.Dropdown,k=w.IconButton,T=w.RangeControl,E=w.Toolbar,x=wp.blockEditor,C=x.AlignmentToolbar,S=x.BlockControls,M=wp.element.Fragment,B=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontSize,l=e.changeFontFamily,o=e.changeFontVariant,r=e.changeFontStyle,i=e.changeTextTransform,c=e.changeLineHeight;return wp.element.createElement(S,null,wp.element.createElement(C,{value:t.align,onChange:function(e){n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:h("Align left"),align:"flex-start"},{icon:"editor-aligncenter",title:h("Align center"),align:"center"},{icon:"editor-alignright",title:h("Align right"),align:"flex-end"}]}),wp.element.createElement(E,{className:"wp-themesiel-blocks-button-group-components-toolbar"},wp.element.createElement(v,{contentClassName:"wp-themesiel-blocks-button-group-popover-content",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(k,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:n,"aria-haspopup":"true","aria-expanded":t,label:h("Typography Settings"),tooltip:h("Typography Settings")},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(M,null,wp.element.createElement(T,{label:h("Font Size"),value:t.fontSize,onChange:a,min:0,max:50}),wp.element.createElement(y.a,{label:h("Font Family"),value:t.fontFamily,onChangeFontFamily:l,isSelect:!0,valueVariant:t.fontVariant,onChangeFontVariant:o,valueStyle:t.fontStyle,onChangeFontStyle:r,valueTransform:t.textTransform,onChangeTextTransform:i}),wp.element.createElement(T,{label:h("Line Height"),value:t.lineHeight,onChange:c,min:0,max:200}))}})))},O=n(10),R=n(3),L=n(8),N=n(21),A=n(5);function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var H=wp.i18n.__,_=lodash.times,j=wp.components,D=j.BaseControl,G=j.Button,V=j.ButtonGroup,F=j.Dashicon,W=j.Dropdown,q=j.MenuGroup,U=j.MenuItem,Z=j.Icon,$=j.PanelBody,Q=j.Placeholder,K=j.RangeControl,J=j.SelectControl,Y=j.Spinner,X=j.ToggleControl,ee=wp.blockEditor,te=ee.ColorPalette,ne=ee.InspectorControls,ae=wp.element,le=ae.Fragment,oe=ae.useState,re=React.lazy((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,108))})),ie=function(e){var t=e.attributes,n=e.setAttributes,l=e.selectedButton,o=e.wait,i=e.changeButtons,c=e.changeButton,d=e.updateButton,p=e.changeFontSize,m=e.changeFontFamily,u=e.changeFontVariant,s=e.changeFontStyle,b=e.changeTextTransform,g=e.changeLineHeight,f=z(oe("buttons"),2),h=f[0],w=f[1],v=z(oe(!1),2),k=v[0],T=v[1];return wp.element.createElement(ne,null,wp.element.createElement($,{className:"wp-block-themeisle-blocks-button-group-header-panel"},wp.element.createElement(G,{className:r()("header-tab",{"is-selected":"buttons"===h}),onClick:function(){return w("buttons")}},wp.element.createElement("span",null,wp.element.createElement(Z,{icon:a.d}),H("Buttons"))),wp.element.createElement(G,{className:r()("header-tab",{"is-selected":"group"===h}),onClick:function(){return w("group")}},wp.element.createElement("span",null,wp.element.createElement(F,{icon:"admin-generic"}),H("Group Settings")))),"buttons"===h&&wp.element.createElement(le,null,wp.element.createElement($,{opened:!0},wp.element.createElement(K,{label:H("Number of Buttons"),value:t.buttons,onChange:i,min:1,max:5}),wp.element.createElement(D,{label:H("Edit Button"),className:"wp-block-themeisle-blocks-select-button-container"},wp.element.createElement(W,{contentClassName:"wp-block-themeisle-blocks-select-button-popover",position:"bottom center",renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(G,{isLarge:!0,className:"wp-block-themeisle-blocks-select-button-button",onClick:a,"aria-expanded":n},H("Button")+" "+(l+1)+": "+Object(O.b)(t.data[l].text))},renderContent:function(e){var n=e.onToggle;return wp.element.createElement(q,null,_(t.buttons,(function(e){return wp.element.createElement(U,{onClick:function(){c(e),n()}},H("Button")+" "+(e+1)+": "+Object(O.b)(t.data[e].text))})))}}))),o?wp.element.createElement(Q,{className:"wp-themeisle-block-spinner"},wp.element.createElement(Y,null)):wp.element.createElement(le,null,wp.element.createElement($,{title:H("Link")},wp.element.createElement(N.a,{label:"Link",placeholder:H("https://…"),value:t.data[l].link,onChange:function(e){return d({link:e},l)}},wp.element.createElement(X,{label:"Open in New Tab?",checked:t.data[l].newTab,onChange:function(){return d({newTab:!t.data[l].newTab},l)}}))),wp.element.createElement($,{title:H("Color & Border"),initialOpen:!1},wp.element.createElement(V,{className:"wp-block-themeisle-blocks-button-group-hover-control"},wp.element.createElement(G,{isDefault:!0,isLarge:!0,isPrimary:!k,onClick:function(){return T(!1)}},H("Normal")),wp.element.createElement(G,{isDefault:!0,isLarge:!0,isPrimary:k,onClick:function(){return T(!0)}},H("Hover"))),k?wp.element.createElement(le,null,wp.element.createElement(R.a,{label:"Hover Color",colorValue:t.data[l].hoverColor},wp.element.createElement(te,{label:"Hover Color",value:t.data[l].hoverColor,onChange:function(e){return d({hoverColor:e},l)}})),wp.element.createElement(R.a,{label:"Hover Background",colorValue:t.data[l].hoverBackground},wp.element.createElement(te,{label:"Hover Background",value:t.data[l].hoverBackground,onChange:function(e){return d({hoverBackground:e},l)}})),wp.element.createElement(R.a,{label:"Hover Border",colorValue:t.data[l].hoverBorder},wp.element.createElement(te,{label:"Hover Border",value:t.data[l].hoverBorder,onChange:function(e){return d({hoverBorder:e},l)}}))):wp.element.createElement(le,null,wp.element.createElement(R.a,{label:"Color",colorValue:t.data[l].color},wp.element.createElement(te,{label:"Color",value:t.data[l].color,onChange:function(e){return d({color:e},l)}})),wp.element.createElement(R.a,{label:"Background",colorValue:t.data[l].background},wp.element.createElement(te,{label:"Background",value:t.data[l].background,onChange:function(e){return d({background:e},l)}})),wp.element.createElement(R.a,{label:"Border",colorValue:t.data[l].border},wp.element.createElement(te,{label:"Border",value:t.data[l].border,onChange:function(e){return d({border:e},l)}}))),wp.element.createElement(K,{label:H("Border Width"),className:"border-width",value:t.data[l].borderSize,onChange:function(e){return d({borderSize:e},l)},min:0,max:10}),wp.element.createElement(K,{label:H("Border Radius"),value:t.data[l].borderRadius,onChange:function(e){return d({borderRadius:e},l)},min:0,max:100})),wp.element.createElement($,{title:H("Box Shadow"),initialOpen:!1},wp.element.createElement(X,{label:"Box Shadow",checked:t.data[l].boxShadow,onChange:function(){return d({boxShadow:!t.data[l].boxShadow},l)}}),t.data[l].boxShadow&&wp.element.createElement(le,null,wp.element.createElement(V,{className:"wp-block-themeisle-blocks-button-group-hover-control"},wp.element.createElement(G,{isDefault:!0,isLarge:!0,isPrimary:!k,onClick:function(){return T(!1)}},H("Normal")),wp.element.createElement(G,{isDefault:!0,isLarge:!0,isPrimary:k,onClick:function(){return T(!0)}},H("Hover"))),!k&&wp.element.createElement(le,null,wp.element.createElement(R.a,{label:"Shadow Color",colorValue:t.data[l].boxShadowColor},wp.element.createElement(te,{label:"Shadow Color",value:t.data[l].boxShadowColor,onChange:function(e){return d({boxShadowColor:e},l)}})),wp.element.createElement(L.a,{label:"Shadow Properties"},wp.element.createElement(K,{label:H("Opacity"),value:t.data[l].boxShadowColorOpacity,onChange:function(e){return d({boxShadowColorOpacity:e},l)},min:0,max:100}),wp.element.createElement(K,{label:H("Blur"),value:t.data[l].boxShadowBlur,onChange:function(e){return d({boxShadowBlur:e},l)},min:0,max:100}),wp.element.createElement(K,{label:H("Spread"),value:t.data[l].boxShadowSpread,onChange:function(e){return d({boxShadowSpread:e},l)},min:-100,max:100}),wp.element.createElement(K,{label:H("Horizontal"),value:t.data[l].boxShadowHorizontal,onChange:function(e){return d({boxShadowHorizontal:e},l)},min:-100,max:100}),wp.element.createElement(K,{label:H("Vertical"),value:t.data[l].boxShadowVertical,onChange:function(e){return d({boxShadowVertical:e},l)},min:-100,max:100})))||k&&wp.element.createElement(le,null,wp.element.createElement(R.a,{label:"Hover Shadow Color",colorValue:t.data[l].hoverBoxShadowColor},wp.element.createElement(te,{label:"Hover Shadow Color",value:t.data[l].hoverBoxShadowColor,onChange:function(e){return d({hoverBoxShadowColor:e},l)}})),wp.element.createElement(L.a,{label:"Hover Shadow Properties"},wp.element.createElement(K,{label:H("Opacity"),value:t.data[l].hoverBoxShadowColorOpacity,onChange:function(e){return d({hoverBoxShadowColorOpacity:e},l)},min:0,max:100}),wp.element.createElement(K,{label:H("Blur"),value:t.data[l].hoverBoxShadowBlur,onChange:function(e){return d({hoverBoxShadowBlur:e},l)},min:0,max:100}),wp.element.createElement(K,{label:H("Spread"),value:t.data[l].hoverBoxShadowSpread,onChange:function(e){return d({hoverBoxShadowSpread:e},l)},min:-100,max:100}),wp.element.createElement(K,{label:H("Horizontal"),value:t.data[l].hoverBoxShadowHorizontal,onChange:function(e){return d({hoverBoxShadowHorizontal:e},l)},min:-100,max:100}),wp.element.createElement(K,{label:H("Vertical"),value:t.data[l].hoverBoxShadowVertical,onChange:function(e){return d({hoverBoxShadowVertical:e},l)},min:-100,max:100}))))),wp.element.createElement($,{title:H("Icon Settings"),initialOpen:!1},wp.element.createElement(J,{label:H("Icon Position"),value:t.data[l].iconType,options:[{label:"No Icon",value:"none"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Icon Only",value:"only"}],onChange:function(e){return d({iconType:e},l)}}),"none"!==t.data[l].iconType&&wp.element.createElement(le,null,wp.element.createElement(React.Suspense,{fallback:wp.element.createElement(Q,{className:"wp-themeisle-block-spinner"},wp.element.createElement(Y,null))},wp.element.createElement(re,{label:H("Icon Picker"),prefix:t.data[l].prefix,icon:t.data[l].icon,onChange:function(e){"object"===P(e)?d({icon:e.name,prefix:e.prefix},l):d({icon:e},l)}})))),wp.element.createElement($,{title:H("Spacing"),initialOpen:!1},wp.element.createElement(A.a,{label:H("Padding"),min:0,max:100,onChange:function(e,t){return function(e,t,n){"top"!==e&&"bottom"!==e||d({paddingTopBottom:t},n),"left"!==e&&"right"!==e||d({paddingLeftRight:t},n)}(e,t,l)},options:[{label:H("Top"),type:"top",value:t.data[l].paddingTopBottom},{label:H("Right"),type:"right",value:t.data[l].paddingLeftRight},{label:H("Bottom"),type:"bottom",value:t.data[l].paddingTopBottom},{label:H("Left"),type:"left",value:t.data[l].paddingLeftRight}]}))))||"group"===h&&wp.element.createElement(le,null,wp.element.createElement($,{title:H("Spacing")},wp.element.createElement(K,{label:H("Spacing"),value:t.spacing,onChange:function(e){n({spacing:e})},min:0,max:50}),wp.element.createElement(J,{label:H("Collapse On"),value:t.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){n({collapse:e})}})),wp.element.createElement($,{title:H("Typography Settings"),initialOpen:!1},wp.element.createElement(K,{label:H("Font Size"),value:t.fontSize,onChange:p,min:0,max:50}),wp.element.createElement(y.a,{label:H("Font Family"),value:t.fontFamily,onChangeFontFamily:m,valueVariant:t.fontVariant,onChangeFontVariant:u,valueStyle:t.fontStyle,onChangeFontStyle:s,valueTransform:t.textTransform,onChangeTextTransform:b}),wp.element.createElement(K,{label:H("Line Height"),value:t.lineHeight,onChange:g,min:0,max:200}))))},ce=n(7),de=n.n(ce);function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return se(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var be=wp.i18n.__,ge=wp.blockEditor.RichText,fe=wp.element,ye=fe.Fragment,he=fe.useState,we=function(e){var t=e.index,n=e.attributes,a=e.changeButton,l=e.updateButton,o=ue(he((function(){return 0===t})),2),i=o[0],c=o[1],d={};n.data[t].boxShadow&&(d={boxShadow:"".concat(n.data[t].boxShadowHorizontal,"px ").concat(n.data[t].boxShadowVertical,"px ").concat(n.data[t].boxShadowBlur,"px ").concat(n.data[t].boxShadowSpread,"px ").concat(de()(n.data[t].boxShadowColor?n.data[t].boxShadowColor:"#000000",n.data[t].boxShadowColorOpacity))});var p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach((function(t){me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily,fontWeight:n.fontVariant,fontStyle:n.fontStyle,textTransform:n.textTransform,lineHeight:n.lineHeight&&"".concat(n.lineHeight,"px"),color:n.data[t].color,background:n.data[t].background,border:"".concat(n.data[t].borderSize,"px solid ").concat(n.data[t].border),borderRadius:"".concat(n.data[t].borderRadius,"px"),paddingTop:"".concat(n.data[t].paddingTopBottom,"px"),paddingBottom:"".concat(n.data[t].paddingTopBottom,"px"),paddingLeft:"".concat(n.data[t].paddingLeftRight,"px"),paddingRight:"".concat(n.data[t].paddingLeftRight,"px"),marginLeft:0===t?"0px":"".concat(n.spacing/2,"px"),marginRight:n.buttons===t+1?"0px":"".concat(n.spacing/2,"px")},d);return wp.element.createElement(ye,null,wp.element.createElement("style",null,"#".concat(n.id," .wp-block-themeisle-blocks-button-").concat(t,":hover {\n\t\t\t\t\tcolor: ").concat(n.data[t].hoverColor?n.data[t].hoverColor:n.data[t].color," !important;\n\t\t\t\t\tbackground: ").concat(n.data[t].hoverBackground?n.data[t].hoverBackground:n.data[t].background," !important;\n\t\t\t\t\tborder: ").concat(n.data[t].borderSize,"px solid ").concat(n.data[t].hoverBorder?n.data[t].hoverBorder:n.data[t].border," !important;\n\t\t\t\t\t").concat(n.data[t].boxShadow?"box-shadow: ".concat(n.data[t].hoverBoxShadowHorizontal,"px ").concat(n.data[t].hoverBoxShadowVertical,"px ").concat(n.data[t].hoverBoxShadowBlur,"px ").concat(n.data[t].hoverBoxShadowSpread,"px ").concat(de()(n.data[t].hoverBoxShadowColor?n.data[t].hoverBoxShadowColor:"#000000",n.data[t].hoverBoxShadowColorOpacity)," !important;"):"","\n\t\t\t\t}")),wp.element.createElement("div",{style:p,className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(t),"wp-block-button__link"),onClick:function(){c(!0),a(t)},onBlur:function(){return c(!1)}},("left"===n.data[t].iconType||"only"===n.data[t].iconType)&&wp.element.createElement("i",{className:r()(n.data[t].prefix,"fa-fw","fa-".concat(n.data[t].icon),{"margin-right":"left"===n.data[t].iconType})}),"only"!==n.data[t].iconType&&wp.element.createElement(ge,{placeholder:be("Add text…"),value:n.data[t].text,onChange:function(e){return l({text:e},t)},tagName:"div",keepPlaceholderOnFocus:i,withoutInteractiveFormatting:!0}),"right"===n.data[t].iconType&&wp.element.createElement("i",{className:"".concat(n.data[t].prefix," fa-fw fa-").concat(n.data[t].icon," margin-left")})))};function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||Te(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e){return function(e){if(Array.isArray(e))return Ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Te(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){if(e){if("string"==typeof e)return Ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ee(e,t):void 0}}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Me=wp.i18n.__,Be=lodash,Oe=Be.isEqual,Re=Be.omit,Le=Be.pick,Ne=Be.times,Ae=wp.components.IconButton,Pe=wp.element,ze=Pe.Fragment,Ie=Pe.useEffect,He=Pe.useRef,_e=Pe.useState,je=[],De=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.name,i=e.isSelected,c=e.clientId;Ie((function(){d()}),[]);var d=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));if(void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&!Oe(f.a[o],window.themeisleGutenberg.globalDefaults[o])){a=Re(Ce({},window.themeisleGutenberg.globalDefaults[o]),"data"),Object.keys(a).map((function(e){if(t[e]!==a[e]&&(void 0!==l[e].default||void 0!==l[e].default&&t[e]!==l[e].default))return delete a[e]}));var i=Le(Ce({},window.themeisleGutenberg.globalDefaults[o]),"data"),d=[];t.data.forEach((function(e,t){var n=Ce({},i.data);Object.keys(n).map((function(a){if(e[a]!==n[a]&&(void 0===l.data.default[t][a]||void 0!==l.data.default[t][a]&&e[a]!==l.data.default[t][a]))return delete n[a]})),d.push(Ce(Ce({},e),n))})),Oe(d,t.data)||(a.data=d)}n(Ce(Ce({},a),{},{id:r})),je.push(r),e.push(r)}else if(je.includes(t.id)){var p="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));n({id:p}),je.push(p)}else je.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=ke(e)},p=He(t.data),m=ve(_e(0),2),u=m[0],s=m[1],b=ve(_e(!1),2),y=b[0],h=b[1],w=function(e){s(e),h(!0),setTimeout((function(){h(!1)}),500)},v=function(e){1<=e&&5>=e&&(t.data.length<e&&(Ne(e-t.data.length,(function(){p.current.push({text:t.data[0].text,link:t.data[0].link,newTab:t.data[0].newTab,color:t.data[0].color,border:t.data[0].border,background:t.data[0].background,hoverColor:t.data[0].hoverColor,hoverBackground:t.data[0].hoverBackground,hoverBorder:t.data[0].hoverBorder,borderSize:t.data[0].borderSize,borderRadius:t.data[0].borderRadius,boxShadow:t.data[0].boxShadow,boxShadowColor:t.data[0].boxShadowColor,boxShadowColorOpacity:t.data[0].boxShadowColorOpacity,boxShadowBlur:t.data[0].boxShadowBlur,boxShadowSpread:t.data[0].boxShadowSpread,boxShadowHorizontal:t.data[0].boxShadowHorizontal,boxShadowVertical:t.data[0].boxShadowVertical,hoverBoxShadowColor:t.data[0].hoverBoxShadowColor,hoverBoxShadowColorOpacity:t.data[0].hoverBoxShadowColorOpacity,hoverBoxShadowBlur:t.data[0].hoverBoxShadowBlur,hoverBoxShadowSpread:t.data[0].hoverBoxShadowSpread,hoverBoxShadowHorizontal:t.data[0].hoverBoxShadowHorizontal,hoverBoxShadowVertical:t.data[0].hoverBoxShadowVertical,iconType:t.data[0].iconType,prefix:t.data[0].prefix,icon:t.data[0].icon,paddingTopBottom:t.data[0].paddingTopBottom,paddingLeftRight:t.data[0].paddingLeftRight})})),n({data:p.current})),n({buttons:e}),s(0))},k=function(e){n({fontSize:e})},T=function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},E=function(e){n({fontVariant:e})},x=function(e){n({fontStyle:e})},C=function(e){n({textTransform:e})},S=function(e){n({lineHeight:e})},M=function(e,t){p.current=p.current.map((function(n,a){return t===a&&(n=Ce(Ce({},n),e)),n})),n({data:p.current})},O="collapse-none"!==t.collapse?t.collapse:"";return wp.element.createElement(ze,null,t.fontFamily&&wp.element.createElement(g.a,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&["".concat(t.fontVariant+("italic"===t.fontStyle?":i":""))]}]}),wp.element.createElement(B,{attributes:t,setAttributes:n,changeFontSize:k,changeFontFamily:T,changeFontVariant:E,changeFontStyle:x,changeTextTransform:C,changeLineHeight:S}),wp.element.createElement(ie,{attributes:t,setAttributes:n,selectedButton:u,wait:y,changeButtons:v,changeButton:w,updateButton:M,changeFontSize:k,changeFontFamily:T,changeFontVariant:E,changeFontStyle:x,changeTextTransform:C,changeLineHeight:S}),wp.element.createElement("div",{id:t.id,className:r()(a,O,"wp-block-button"),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},Ne(t.buttons,(function(e){return wp.element.createElement(we,{index:e,attributes:t,isSelected:i,changeButton:w,updateButton:M})})),i&&4>=t.buttons&&wp.element.createElement(Ae,{className:"wp-block-themeisle-blocks-button-inserter",icon:"plus-alt",onClick:function(){return v(t.buttons+1)},label:Me("Add Button")})))},Ge=wp.blockEditor.RichText,Ve=wp.element.Fragment,Fe=function(e){var t=e.index,n=e.attributes;return wp.element.createElement(Ve,null,wp.element.createElement("a",{href:n.data[t].link,target:n.data[t].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(t),"wp-block-button__link"),rel:"noopener noreferrer"},("left"===n.data[t].iconType||"only"===n.data[t].iconType)&&wp.element.createElement("i",{className:r()(n.data[t].prefix,"fa-fw","fa-".concat(n.data[t].icon),{"margin-right":"left"===n.data[t].iconType})}),"only"!==n.data[t].iconType&&wp.element.createElement(Ge.Content,{tagName:"span",value:n.data[t].text}),"right"===n.data[t].iconType&&wp.element.createElement("i",{className:"".concat(n.data[t].prefix," fa-fw fa-").concat(n.data[t].icon," margin-left")})))},We=lodash.times,qe=function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse&&t.collapse;return wp.element.createElement("div",{id:t.id,className:r()(n,a,"wp-block-button")},We(t.buttons,(function(e){return wp.element.createElement(Fe,{index:e,attributes:t})})))},Ue=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/button-group",{title:Ue("Button Group"),description:Ue("Prompt visitors to take action with a button group."),icon:a.d,category:"themeisle-blocks",keywords:[Ue("buttons"),Ue("button group"),Ue("advanced buttons")],attributes:l,deprecated:s,edit:De,save:qe})},function(e,t,n){"use strict";n.r(t);n(50),n(51),n(52);var a=n(2),l={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"},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"}},o=n(0),r=n.n(o),i=n(7),c=n.n(i);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=wp.blockEditor.RichText,u=[{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:function(e){var t,n=e.attributes,a=e.className;n.textShadow&&(t={textShadow:"".concat(n.textShadowHorizontal,"px ").concat(n.textShadowVertical,"px ").concat(n.textShadowBlur,"px ").concat(c()(n.textShadowColor?n.textShadowColor:"#000000",n.textShadowColorOpacity))});var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({color:n.headingColor,fontFamily:n.fontFamily,fontWeight:"regular"===n.fontVariant?"normal":n.fontVariant,fontStyle:n.fontStyle,textTransform:n.textTransform,lineHeight:n.lineHeight&&"".concat(n.lineHeight,"px"),letterSpacing:n.letterSpacing&&"".concat(n.letterSpacing,"px")},t);return wp.element.createElement(m.Content,{tagName:n.tag,value:n.content,id:n.id,className:r()(n.id,a),style:l})}}],s=wp.blocks.createBlock,b={from:[{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return s("themeisle-blocks/advanced-heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return s("themeisle-blocks/advanced-heading",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return s("core/paragraph",{content:t})}}]},g=n(19),f=n.n(g),y=n(6),h=n(9),w=wp.i18n.__,v=wp.components,k=v.Dropdown,T=v.DropdownMenu,E=v.IconButton,x=v.RangeControl,C=v.SVG,S=v.Toolbar,M=wp.blockEditor.BlockControls,B=wp.element.Fragment,O=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,r=e.changeTextTransform,i=e.changeLineHeight,c=e.changeLetterSpacing,d=function(e){return"h1"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1")):"h2"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2")):"h3"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3")):"h4"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4")):"h5"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5")):"h6"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6")):"div"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV")):"p"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{x:"0",y:"15"},"P")):"span"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN")):void 0},p=function(e){n({tag:e})};return wp.element.createElement(M,null,wp.element.createElement(T,{icon:d(t.tag),label:w("Select tag"),className:"components-toolbar",controls:[{title:w("Heading 1"),icon:d("h1"),onClick:function(){return p("h1")}},{title:w("Heading 2"),icon:d("h2"),onClick:function(){return p("h2")}},{title:w("Heading 3"),icon:d("h3"),onClick:function(){return p("h3")}},{title:w("Heading 4"),icon:d("h4"),onClick:function(){return p("h4")}},{title:w("Heading 5"),icon:d("h5"),onClick:function(){return p("h5")}},{title:w("Heading 6"),icon:d("h6"),onClick:function(){return p("h6")}},{title:w("Division"),icon:d("div"),onClick:function(){return p("div")}},{title:w("Paragraph"),icon:d("p"),onClick:function(){return p("p")}},{title:w("Span Tag"),icon:d("span"),onClick:function(){return p("span")}}]}),wp.element.createElement(S,{className:"wp-themesiel-blocks-advanced-heading-components-toolbar"},wp.element.createElement(k,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(E,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:n,"aria-haspopup":"true","aria-expanded":t,label:w("Typography Settings"),tooltip:w("Typography Settings")},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(B,null,wp.element.createElement(h.a,{label:w("Font Family"),value:t.fontFamily,onChangeFontFamily:a,isSelect:!0,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:r}),wp.element.createElement(x,{label:w("Line Height"),value:t.lineHeight,onChange:i,min:0,max:200}),wp.element.createElement(x,{label:w("Letter Spacing"),value:t.letterSpacing,onChange:c,min:-50,max:100}))}})))},R=n(3),L=n(8),N=n(4),A=n(5),P=n(20);function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var _=wp.i18n.__,j=wp.blockEditor,D=j.AlignmentToolbar,G=j.ColorPalette,V=j.InspectorControls,F=wp.components,W=F.Button,q=F.Dashicon,U=F.PanelBody,Z=F.RangeControl,$=F.ToggleControl,Q=wp.compose.compose,K=wp.data.withSelect,J=wp.element,Y=J.Fragment,X=J.useState,ee=Q(K((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,i=e.changeTextTransform,c=e.changeLineHeight,d=e.changeLetterSpacing,p=e.view,m=I(X("style"),2),u=m[0],s=m[1],b=function(){var e;return"Desktop"===p&&(e=t.fontSize),"Tablet"===p&&(e=t.fontSizeTablet),"Mobile"===p&&(e=t.fontSizeMobile),e};b=b();var g=function(){var e;return"Desktop"===p&&(e=t.align),"Tablet"===p&&(e=t.alignTablet),"Mobile"===p&&(e=t.alignMobile),e};g=g();var f=function(){var e;return"Desktop"===p&&(e=t.paddingType),"Tablet"===p&&(e=t.paddingTypeTablet),"Mobile"===p&&(e=t.paddingTypeMobile),e};f=f();var y={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},w={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},v={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},k=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},T=function(){var e;return"Desktop"===p&&(e=t.marginType),"Tablet"===p&&(e=t.marginTypeTablet),"Mobile"===p&&(e=t.marginTypeMobile),e};T=T();var E={top:"marginTop",bottom:"marginBottom"},x={top:"marginTopTablet",bottom:"marginBottomTablet"},C={top:"marginTopMobile",bottom:"marginBottomMobile"},S=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n};return wp.element.createElement(Y,null,wp.element.createElement(V,null,wp.element.createElement(U,{className:"wp-block-themeisle-blocks-advanced-heading-header-panel"},wp.element.createElement(W,{className:r()("header-tab",{"is-selected":"style"===u}),onClick:function(){return s("style")}},wp.element.createElement("span",null,wp.element.createElement(q,{icon:"admin-customizer"}),_("Style"))),wp.element.createElement(W,{className:r()("header-tab",{"is-selected":"advanced"===u}),onClick:function(){return s("advanced")}},wp.element.createElement("span",null,wp.element.createElement(q,{icon:"admin-generic"}),_("Advanced")))),"style"===u&&wp.element.createElement(Y,null,wp.element.createElement(U,{title:_("General Settings")},wp.element.createElement(R.a,{label:_("Heading Color"),colorValue:t.headingColor},wp.element.createElement(G,{label:"Heading Color",value:t.headingColor,onChange:function(e){n({headingColor:e})}})),wp.element.createElement(N.a,{label:"Font Size"},wp.element.createElement(Z,{value:b||"",onChange:function(e){"Desktop"===p&&n({fontSize:e}),"Tablet"===p&&n({fontSizeTablet:e}),"Mobile"===p&&n({fontSizeMobile:e})},min:1,max:500})),wp.element.createElement(N.a,{label:"Alignment"},wp.element.createElement(D,{value:g,onChange:function(e){"Desktop"===p&&n({align:e}),"Tablet"===p&&n({alignTablet:e}),"Mobile"===p&&n({alignMobile:e})},isCollapsed:!1}))),wp.element.createElement(U,{title:_("Typography Settings"),initialOpen:!1},wp.element.createElement(h.a,{label:_("Font Family"),value:t.fontFamily,onChangeFontFamily:a,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:i}),wp.element.createElement(Z,{label:_("Line Height"),value:t.lineHeight,onChange:c,min:0,max:200}),wp.element.createElement(Z,{label:_("Letter Spacing"),value:t.letterSpacing,onChange:d,min:-50,max:100}),wp.element.createElement($,{label:"Shadow Properties",checked:t.textShadow,onChange:function(e){n({textShadow:e})}}),t.textShadow&&wp.element.createElement(Y,null,wp.element.createElement(R.a,{label:_("Color"),colorValue:t.textShadowColor},wp.element.createElement(G,{label:_("Color"),value:t.textShadowColor,onChange:function(e){n({textShadowColor:e})}})),wp.element.createElement(L.a,{label:"Shadow Properties"},wp.element.createElement(Z,{label:_("Opacity"),value:t.textShadowColorOpacity,onChange:function(e){n({textShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(Z,{label:_("Blur"),value:t.textShadowBlur,onChange:function(e){n({textShadowBlur:e})},min:0,max:100}),wp.element.createElement(Z,{label:_("Horizontal"),value:t.textShadowHorizontal,onChange:function(e){n({textShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(Z,{label:_("Vertical"),value:t.textShadowVertical,onChange:function(e){n({textShadowVertical:e})},min:-100,max:100})))))||"advanced"===u&&wp.element.createElement(Y,null,wp.element.createElement(U,{title:_("Highlight Color")},wp.element.createElement(R.a,{label:_("Highlight Color"),colorValue:t.highlightColor},wp.element.createElement(G,{label:"Highlight Color",value:t.highlightColor,onChange:function(e){n({highlightColor:e})}})),wp.element.createElement(R.a,{label:_("Highlight Background"),colorValue:t.highlightBackground},wp.element.createElement(G,{label:"Highlight Background",value:t.highlightBackground,onChange:function(e){n({highlightBackground:e})}}))),wp.element.createElement(U,{title:_("Spacing"),initialOpen:!1},wp.element.createElement(N.a,{label:"Padding"},wp.element.createElement(A.a,{type:f,min:0,max:500,changeType:function(e){"Desktop"===p&&n({paddingType:e}),"Tablet"===p&&n({paddingTypeTablet:e}),"Mobile"===p&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.paddingType?n({padding:a}):n(z({},y[e],a))),"Tablet"===p&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(z({},w[e],a))),"Mobile"===p&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(z({},v[e],a)))},options:[{label:_("Top"),type:"top",value:k("top")},{label:_("Right"),type:"right",value:k("right")},{label:_("Bottom"),type:"bottom",value:k("bottom")},{label:_("Left"),type:"left",value:k("left")}]})),wp.element.createElement(N.a,{label:"Margin"},wp.element.createElement(A.a,{type:T,min:-500,max:500,changeType:function(e){"Desktop"===p&&n({marginType:e}),"Tablet"===p&&n({marginTypeTablet:e}),"Mobile"===p&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.marginType?n({margin:a}):n(z({},E[e],a))),"Tablet"===p&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(z({},x[e],a))),"Mobile"===p&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(z({},C[e],a)))},options:[{label:_("Top"),type:"top",value:S("top")},{label:_("Right"),disabled:!0},{label:_("Bottom"),type:"bottom",value:S("bottom")},{label:_("Left"),disabled:!0}]}))))),wp.element.createElement(P.a,{value:t.id,onChange:function(e){n({id:e})}}))}));function te(e){return function(e){if(Array.isArray(e))return ne(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ne(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var re=wp.i18n.__,ie=lodash.isEqual,ce=wp.blocks.createBlock,de=wp.blockEditor.RichText,pe=wp.compose.compose,me=wp.data.withSelect,ue=wp.element,se=ue.Fragment,be=ue.useEffect,ge=wp.viewport.withViewportMatch,fe=[],ye=pe(ge({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}),me((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}})))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.clientId,i=e.mergeBlocks,d=e.name,p=e.insertBlocksAfter,m=e.onReplace,u=e.isLarger,s=e.isLarge,b=e.isSmall,g=e.isSmaller,h=e.isViewportAvailable,w=e.isPreviewDesktop,v=e.isPreviewTablet,k=e.isPreviewMobile;be((function(){T()}),[]);var T=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-advanced-heading-".concat(o.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(ie(y.a[d],window.themeisleGutenberg.globalDefaults[d])||(a=le({},window.themeisleGutenberg.globalDefaults[d]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(le(le({},a),{},{id:r})),fe.push(r),e.push(r)}else if(fe.includes(t.id)){var i="wp-block-themeisle-blocks-advanced-heading-".concat(o.substr(0,8));n({id:i}),fe.push(i)}else fe.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=te(e)},E=u&&!s&&b&&!g,x=!u&&!s&&b&&!g,C=!(u||s||b||g);h&&!C&&(E=w,x=v,C=k);var S,M,B,R=function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},L=function(e){n({fontVariant:e})},N=function(e){n({fontStyle:e})},A=function(e){n({textTransform:e})},P=function(e){n({lineHeight:e})},z=function(e){n({letterSpacing:e})};E&&(S={fontSize:"".concat(t.fontSize,"px")},M={textAlign:t.align,paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px")}),x&&(S={fontSize:"".concat(t.fontSizeTablet,"px")},M={textAlign:t.alignTablet,paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px")}),C&&(S={fontSize:"".concat(t.fontSizeMobile,"px")},M={textAlign:t.alignMobile,paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px")}),t.textShadow&&(B={textShadow:"".concat(t.textShadowHorizontal,"px ").concat(t.textShadowVertical,"px ").concat(t.textShadowBlur,"px ").concat(c()(t.textShadowColor?t.textShadowColor:"#000000",t.textShadowColorOpacity))});var I=le(le(le({color:t.headingColor},S),{},{fontFamily:t.fontFamily?t.fontFamily:"inherit",fontWeight:"regular"===t.fontVariant?"normal":t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px"),letterSpacing:t.letterSpacing&&"".concat(t.letterSpacing,"px")},M),B);return wp.element.createElement(se,null,wp.element.createElement("style",null,".".concat(t.id," mark {\n\t\t\t\t\t\tcolor: ").concat(t.highlightColor,";\n\t\t\t\t\t\tbackground: ").concat(t.highlightBackground,";\n\t\t\t\t\t}")),t.fontFamily&&wp.element.createElement(f.a,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&["".concat(t.fontVariant+("italic"===t.fontStyle?":i":""))]}]}),wp.element.createElement(O,{attributes:t,setAttributes:n,changeFontFamily:R,changeFontVariant:L,changeFontStyle:N,changeTextTransform:A,changeLineHeight:P,changeLetterSpacing:z}),wp.element.createElement(ee,{attributes:t,setAttributes:n,changeFontFamily:R,changeFontVariant:L,changeFontStyle:N,changeTextTransform:A,changeLineHeight:P,changeLetterSpacing:z}),wp.element.createElement(de,{identifier:"content",className:r()(t.id,a),value:t.content,placeholder:re("Write heading…"),tagName:t.tag,formattingControls:["bold","italic","link","strikethrough","mark"],allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/mark"],onMerge:i,unstableOnSplit:p?function(e,t){n({content:e});for(var a=arguments.length,l=new Array(a>2?a-2:0),o=2;o<a;o++)l[o-2]=arguments[o];p([].concat(l,[ce("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return m([])},style:I,onChange:function(e){n({content:e})}}))})),he=wp.blockEditor.RichText,we=function(e){var t=e.attributes,n=e.className;return wp.element.createElement(he.Content,{tagName:t.tag,value:t.content,id:t.id,className:r()(t.id,n)})},ve=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-heading",{title:ve("Advanced Heading"),description:ve("Advanced Heading gives a spin to editor's Heading block with much needed customization options."),icon:a.i,category:"themeisle-blocks",keywords:[ve("heading"),ve("title"),ve("advanced heading")],attributes:l,deprecated:u,transforms:b,edit:ye,save:we})},function(e,t,n){"use strict";n.r(t);n(60),n(61);var a=n(2),l={id:{type:"string"},align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=[{attributes:{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}},supports:{align:["left","center","right"]},migrate:function(e){var t="center";return e.className.includes("alignleft")&&(t="left"),e.className.includes("aligncenter")&&(t="center"),e.className.includes("alignright")&&(t="right"),r(r({},e),{},{align:t,className:""})},save:function(e){var t={borderRadius:e.attributes.borderRadius+"%",fontSize:e.attributes.fontSize+"px",padding:e.attributes.padding+"px"},n={color:e.attributes.textColor,backgroundColor:e.attributes.backgroundColor,borderColor:e.attributes.borderColor,borderRadius:e.attributes.borderRadius+"%",borderStyle:"solid",borderWidth:e.attributes.borderSize+"px",display:"inline-block",margin:e.attributes.margin+"px"};return wp.element.createElement("p",{className:e.className,style:{textAlign:e.attributes.align}},wp.element.createElement("span",{className:"".concat(e.className,"-container"),style:n},wp.element.createElement("i",{className:"".concat(e.attributes.prefix," fa-").concat(e.attributes.icon),style:t})))}},{attributes:{align:{type:"string"},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}},save:function(e){var t={borderRadius:e.attributes.borderRadius+"%",fontSize:e.attributes.fontSize+"px",padding:e.attributes.padding+"px"},n={color:e.attributes.textColor,backgroundColor:e.attributes.backgroundColor,borderColor:e.attributes.borderColor,borderRadius:e.attributes.borderRadius+"%",borderStyle:"solid",borderWidth:e.attributes.borderSize+"px",display:"inline-block",margin:e.attributes.margin+"px"};return wp.element.createElement("p",{className:e.className,style:{textAlign:e.attributes.align}},wp.element.createElement("span",{className:"undefined-container",style:n},wp.element.createElement("i",{className:"".concat(e.attributes.prefix," fa-").concat(e.attributes.icon),style:t})))}},{attributes:{id:{type:"string"},align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},save:function(e){var t=e.attributes,n=e.className,a={borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"},l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},o=function(){return wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:l})};return wp.element.createElement("p",{className:n,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:a},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",style:{color:t.textColor},rel:"noopener noreferrer"},wp.element.createElement(o,null)):wp.element.createElement(o,null)))}}],d=n(6),p=wp.i18n.__,m=wp.blockEditor,u=m.AlignmentToolbar,s=m.BlockControls,b=function(e){var t=e.attributes,n=e.setAttributes;return wp.element.createElement(s,null,wp.element.createElement(u,{value:t.align,onChange:function(e){n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:p("Align left"),align:"left"},{icon:"editor-aligncenter",title:p("Align center"),align:"center"},{icon:"editor-alignright",title:p("Align right"),align:"right"}]}))},g=n(3),f=n(21);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var v=wp.i18n.__,k=wp.components,T=k.Button,E=k.ButtonGroup,x=k.PanelBody,C=k.Placeholder,S=k.RangeControl,M=k.Spinner,B=k.ToggleControl,O=wp.blockEditor,R=O.ColorPalette,L=O.ContrastChecker,N=O.InspectorControls,A=wp.element,P=A.Fragment,z=A.useState,I=React.lazy((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,108))})),H=function(e){var t=e.attributes,n=e.setAttributes,a=h(z(!1),2),l=a[0],o=a[1];return wp.element.createElement(N,null,wp.element.createElement(x,{title:v("Icon Settings")},wp.element.createElement(React.Suspense,{fallback:wp.element.createElement(C,{className:"wp-themeisle-block-spinner"},wp.element.createElement(M,null))},wp.element.createElement(I,{label:v("Icon Picker"),prefix:t.prefix,icon:t.icon,onChange:function(e){"object"===y(e)?n({icon:e.name,prefix:e.prefix}):n({icon:e})}})),wp.element.createElement(f.a,{label:v("Link"),placeholder:"https://…",value:t.link,onChange:function(e){n({link:e})}},wp.element.createElement(B,{label:"Open in New Tab?",checked:t.newTab,onChange:function(){n({newTab:!t.newTab})}}))),wp.element.createElement(x,{title:v("Icon Sizes"),initialOpen:!1},wp.element.createElement(S,{label:v("Icon Size"),value:t.fontSize||"",initialPosition:16,onChange:function(e){n({fontSize:e})},min:12,max:140}),wp.element.createElement(S,{label:v("Padding"),value:t.padding||"",initialPosition:5,onChange:function(e){n({padding:e})},min:0,max:100}),wp.element.createElement(S,{label:v("Margin"),value:t.margin||"",initialPosition:5,onChange:function(e){n({margin:e})},min:0,max:100})),wp.element.createElement(x,{title:v("Color"),initialOpen:!1},wp.element.createElement(E,{className:"wp-block-themeisle-blocks-font-awesome-icons-hover-control"},wp.element.createElement(T,{isDefault:!0,isLarge:!0,isPrimary:!l,onClick:function(){return o(!1)}},v("Normal")),wp.element.createElement(T,{isDefault:!0,isLarge:!0,isPrimary:l,onClick:function(){return o(!0)}},v("Hover"))),l?wp.element.createElement(P,null,wp.element.createElement(g.a,{label:"Hover Background",colorValue:t.backgroundColorHover},wp.element.createElement(R,{label:"Hover Background",value:t.backgroundColorHover,onChange:function(e){n({backgroundColorHover:e})}})),wp.element.createElement(g.a,{label:"Hover Icon",colorValue:t.textColorHover},wp.element.createElement(R,{label:"Hover Icon",value:t.textColorHover,onChange:function(e){n({textColorHover:e})}})),wp.element.createElement(g.a,{label:"Hover Border",colorValue:t.borderColorHover},wp.element.createElement(R,{label:"Hover Border",value:t.borderColorHover,onChange:function(e){n({borderColorHover:e})}})),wp.element.createElement(L,{textColor:t.textColorHover,backgroundColor:t.backgroundColorHover})):wp.element.createElement(P,null,wp.element.createElement(g.a,{label:"Background",colorValue:t.backgroundColor},wp.element.createElement(R,{label:"Background",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}})),wp.element.createElement(g.a,{label:"Icon",colorValue:t.textColor},wp.element.createElement(R,{label:"Icon",value:t.textColor,onChange:function(e){n({textColor:e})}})),wp.element.createElement(g.a,{label:"Border",colorValue:t.borderColor},wp.element.createElement(R,{label:"Border",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(L,{textColor:t.textColor,backgroundColor:t.backgroundColor}))),wp.element.createElement(x,{title:v("Border Settings"),initialOpen:!1},wp.element.createElement(S,{label:v("Border Size"),value:t.borderSize,onChange:function(e){n({borderSize:e})},min:0,max:120}),wp.element.createElement(S,{label:v("Border Radius"),value:t.borderRadius,onChange:function(e){n({borderRadius:e})},min:0,max:100})))};function _(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=lodash.isEqual,W=wp.element,q=W.Fragment,U=W.useEffect,Z=[],$=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.clientId,r=e.name;U((function(){i()}),[]);var i=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,i="wp-block-themeisle-blocks-font-awesome-icons-".concat(o.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(F(d.a[r],window.themeisleGutenberg.globalDefaults[r])||(a=G({},window.themeisleGutenberg.globalDefaults[r]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(G(G({},a),{},{id:i})),Z.push(i),e.push(i)}else if(Z.includes(t.id)){var c="wp-block-themeisle-blocks-font-awesome-icons-".concat(o.substr(0,8));n({id:c}),Z.push(c)}else Z.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=_(e)},c={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},p={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 wp.element.createElement(q,null,wp.element.createElement(b,{attributes:t,setAttributes:n}),wp.element.createElement(H,{attributes:t,setAttributes:n}),wp.element.createElement("style",null,"#".concat(t.id," .").concat(a,"-container:hover {\n\t\t\t\t\t\tcolor: ").concat(t.textColorHover?t.textColorHover:t.textColor," !important;\n\t\t\t\t\t\tbackground: ").concat(t.backgroundColorHover?t.backgroundColorHover:t.backgroundColor," !important;\n\t\t\t\t\t\tborder-color: ").concat(t.borderColorHover?t.borderColorHover:t.borderColor," !important;\n\t\t\t\t\t}")),wp.element.createElement("p",{className:a,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:p},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:c}))))},Q=function(e){var t=e.attributes,n=e.className;return wp.element.createElement("p",{className:n,id:t.id},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})):wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})))},K=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/font-awesome-icons",{title:K("Font Awesome Icons"),description:K("Share buttons for your website visitors to share content on any social sharing service."),icon:a.h,category:"themeisle-blocks",keywords:["font awesome","dashicons","icons"],attributes:l,deprecated:c,edit:$,save:Q})},function(e,t,n){"use strict";n.r(t);n(67),n(68);var a=n(2),l={style:{type:"string",default:"grid"},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:!0},displayFeaturedImage:{type:"boolean",default:!0},displayCategory:{type:"boolean",default:!0},displayTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:"h5"},displayMeta:{type:"boolean",default:!0},displayDescription:{type:"boolean",default:!0},excerptLength:{type:"number",default:100},displayDate:{type:"boolean",default:!0},displayAuthor:{type:"boolean",default:!0}},o=n(12),r=n(35),i=n.n(r),c=n(0),d=n.n(c),p=n(24);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var s=lodash,b=s.startCase,g=s.toLower,f=wp.i18n.__,y=wp.components,h=y.IconButton,w=y.TextControl,v=y.SelectControl,k=y.ToggleControl,T=wp.element,E=T.Fragment,x=T.useState,C=Object(p.c)((function(){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-builder-handle"},wp.element.createElement("span",null))})),S=function(e){var t,n=e.value,a=e.disabled,l=e.getFields,o=e.toggleFields,r=e.imageSize,i=e.titleTag,c=e.excerptLimit,p=m(x(!1),2),u=p[0],s=p[1],y=b(g(n)),T="hidden",S=f("Display ".concat(y));switch(l(n)&&(T="visibility",S=f("Hide ".concat(y))),n){case"image":case"title":case"meta":case"description":t=!0;break;default:t=!1}return wp.element.createElement("div",{className:d()("wp-block-themeisle-blocks-posts-grid-builder-item-area","wp-block-themeisle-blocks-posts-grid-builder-item-area-".concat(n))},wp.element.createElement("div",{className:d()("wp-block-themeisle-blocks-posts-grid-builder-item",{disabled:a,hidden:!l(n),editable:t})},!a&&wp.element.createElement(C,null),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-builder-label"},y),t&&wp.element.createElement(h,{icon:u?"arrow-up-alt2":"arrow-down-alt2",label:f(u?"Close Settings":"Open Settings"),className:"wp-block-themeisle-blocks-posts-grid-builder-button",onClick:function(){return s(!u)}}),wp.element.createElement(h,{icon:T,label:S,className:"wp-block-themeisle-blocks-posts-grid-builder-button",onClick:function(){o(n),s(!1)}})),t&&wp.element.createElement("div",{className:d()("wp-block-themeisle-blocks-posts-grid-builder-control-area",{opened:u&&l(n)})},"image"===n&&wp.element.createElement(E,null,wp.element.createElement(v,{label:f("Image Size"),value:r.value,options:[{label:f("Thumbnail"),value:"thumbnail"},{label:f("Medium"),value:"medium"},{label:f("Medium Large"),value:"medium_large"},{label:f("Large"),value:"large"},{label:f("Full"),value:"full"}],onChange:r.onChange}),wp.element.createElement(k,{label:"Display Box Shadow?",checked:l("imageBoxShadow"),onChange:function(){return o("imageBoxShadow")}})),"title"===n&&wp.element.createElement(v,{label:f("Title Tag"),value:i.value||"h5",options:[{label:f("H1"),value:"h1"},{label:f("H2"),value:"h2"},{label:f("H3"),value:"h3"},{label:f("H4"),value:"h4"},{label:f("H5"),value:"h5"},{label:f("H6"),value:"h6"}],onChange:i.onChange}),"description"===n&&wp.element.createElement(w,{label:f("Excerpt Limit"),type:"number",value:c.value,onChange:c.onChange}),"meta"===n&&wp.element.createElement(E,null,wp.element.createElement(k,{label:"Display Date?",checked:l("date"),onChange:function(){return o("date")}}),wp.element.createElement(k,{label:"Display Author?",checked:l("author"),onChange:function(){return o("author")}}))))},M=Object(p.b)((function(e){var t=e.value,n=e.disabled,a=e.getFields,l=e.toggleFields,o=e.titleTag,r=e.excerptLimit;return wp.element.createElement(S,{value:t,disabled:n,getFields:a,toggleFields:l,titleTag:o,excerptLimit:r})})),B=Object(p.a)((function(e){var t=e.template,n=e.getFields,a=e.toggleFields,l=e.titleTag,o=e.excerptLimit;return wp.element.createElement("div",null,t.map((function(e,t){return wp.element.createElement(M,{key:"item-".concat(t),index:t,value:e,getFields:n,toggleFields:a,titleTag:l,excerptLimit:o})})))})),O=wp.i18n.__,R=wp.element.Fragment,L=function(e){var t=e.attributes,n=e.setAttributes,a=e
|