Current File : /home/getxxhzo/xpertbee.com/wp-content/plugins/gutenkit-blocks-addon/build/gutenkit/helpers.js
(()=>{var e={5371:(e,t,i)=>{var o;!function(){function n(e,t,i){return e.call.apply(e.bind,arguments)}function r(e,t,i){if(!e)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var i=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(i,o),e.apply(t,i)}}return function(){return e.apply(t,arguments)}}function a(e,t,i){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?n:r).apply(null,arguments)}var s=Date.now||function(){return+new Date};function c(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var l=!!window.FontFace;function u(e,t,i,o){if(t=e.c.createElement(t),i)for(var n in i)i.hasOwnProperty(n)&&("style"==n?t.style.cssText=i[n]:t.setAttribute(n,i[n]));return o&&t.appendChild(e.c.createTextNode(o)),t}function g(e,t,i){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(i,e.lastChild)}function d(e){e.parentNode&&e.parentNode.removeChild(e)}function h(e,t,i){t=t||[],i=i||[];for(var o=e.className.split(/\s+/),n=0;n<t.length;n+=1){for(var r=!1,a=0;a<o.length;a+=1)if(t[n]===o[a]){r=!0;break}r||o.push(t[n])}for(t=[],n=0;n<o.length;n+=1){for(r=!1,a=0;a<i.length;a+=1)if(o[n]===i[a]){r=!0;break}r||t.push(o[n])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(e,t){for(var i=e.className.split(/\s+/),o=0,n=i.length;o<n;o++)if(i[o]==t)return!0;return!1}function p(e,t,i){function o(){s&&n&&r&&(s(a),s=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var n=!1,r=!0,a=null,s=i||null;l?(t.onload=function(){n=!0,o()},t.onerror=function(){n=!0,a=Error("Stylesheet failed to load"),o()}):setTimeout((function(){n=!0,o()}),0),g(e,"head",t)}function m(e,t,i,o){var n=e.c.getElementsByTagName("head")[0];if(n){var r=u(e,"script",{src:t}),a=!1;return r.onload=r.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,i&&i(null),r.onload=r.onreadystatechange=null,"HEAD"==r.parentNode.tagName&&n.removeChild(r))},n.appendChild(r),setTimeout((function(){a||(a=!0,i&&i(Error("Script load timeout")))}),o||5e3),r}return null}function v(){this.a=0,this.c=null}function b(e){return e.a++,function(){e.a--,k(e)}}function w(e,t){e.c=t,k(e)}function k(e){0==e.a&&e.c&&(e.c(),e.c=null)}function y(e){this.a=e||"-"}function S(e,t){this.c=e,this.f=4,this.a="n";var i=(t||"n4").match(/^([nio])([1-9])$/i);i&&(this.a=i[1],this.f=parseInt(i[2],10))}function T(e){var t=[];e=e.split(/,\s*/);for(var i=0;i<e.length;i++){var o=e[i].replace(/['"]/g,"");-1!=o.indexOf(" ")||/^\d/.test(o)?t.push("'"+o+"'"):t.push(o)}return t.join(",")}function x(e){return e.a+e.f}function z(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function $(e){var t=4,i="n",o=null;return e&&((o=e.match(/(normal|oblique|italic)/i))&&o[1]&&(i=o[1].substr(0,1).toLowerCase()),(o=e.match(/([1-9]00|normal|bold)/i))&&o[1]&&(/bold/i.test(o[1])?t=7:/[1-9]00/.test(o[1])&&(t=parseInt(o[1].substr(0,1),10)))),i+t}function E(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new y("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function P(e){if(e.g){var t=f(e.f,e.a.c("wf","active")),i=[],o=[e.a.c("wf","loading")];t||i.push(e.a.c("wf","inactive")),h(e.f,i,o)}A(e,"inactive")}function A(e,t,i){e.j&&e.h[t]&&(i?e.h[t](i.c,x(i)):e.h[t]())}function C(){this.c={}}function j(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function B(e){g(e.c,"body",e.a)}function H(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+T(e.c)+";font-style:"+z(e)+";font-weight:"+e.f+"00;"}function I(e,t,i,o,n,r){this.g=e,this.j=t,this.a=o,this.c=i,this.f=n||3e3,this.h=r||void 0}function _(e,t,i,o,n,r,a){this.v=e,this.B=t,this.c=i,this.a=o,this.s=a||"BESbswy",this.f={},this.w=n||3e3,this.u=r||null,this.m=this.j=this.h=this.g=null,this.g=new j(this.c,this.s),this.h=new j(this.c,this.s),this.j=new j(this.c,this.s),this.m=new j(this.c,this.s),e=H(e=new S(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=H(e=new S(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=H(e=new S("serif",x(this.a))),this.j.a.style.cssText=e,e=H(e=new S("sans-serif",x(this.a))),this.m.a.style.cssText=e,B(this.g),B(this.h),B(this.j),B(this.m)}y.prototype.c=function(e){for(var t=[],i=0;i<arguments.length;i++)t.push(arguments[i].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},I.prototype.start=function(){var e=this.c.o.document,t=this,i=s(),o=new Promise((function(o,n){!function r(){s()-i>=t.f?n():e.fonts.load(function(e){return z(e)+" "+e.f+"00 300px "+T(e.c)}(t.a),t.h).then((function(e){1<=e.length?o():setTimeout(r,25)}),(function(){n()}))}()})),n=null,r=new Promise((function(e,i){n=setTimeout(i,t.f)}));Promise.race([r,o]).then((function(){n&&(clearTimeout(n),n=null),t.g(t.a)}),(function(){t.j(t.a)}))};var D={D:"serif",C:"sans-serif"},O=null;function R(){if(null===O){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);O=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return O}function N(e,t,i){for(var o in D)if(D.hasOwnProperty(o)&&t===e.f[D[o]]&&i===e.f[D[o]])return!0;return!1}function V(e){var t,i=e.g.a.offsetWidth,o=e.h.a.offsetWidth;(t=i===e.f.serif&&o===e.f["sans-serif"])||(t=R()&&N(e,i,o)),t?s()-e.A>=e.w?R()&&N(e,i,o)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?L(e,e.v):L(e,e.B):function(e){setTimeout(a((function(){V(this)}),e),50)}(e):L(e,e.v)}function L(e,t){setTimeout(a((function(){d(this.g.a),d(this.h.a),d(this.j.a),d(this.m.a),t(this.a)}),e),0)}function M(e,t,i){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=i}_.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),V(this)};var F=null;function W(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&h(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),A(e,"active")):P(e.a))}function Y(e){this.j=e,this.a=new C,this.h=0,this.f=this.g=!0}function X(e,t,i,o,n){var r=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=n||null,s=o||{};if(0===i.length&&r)P(t.a);else{t.f+=i.length,r&&(t.j=r);var c,l=[];for(c=0;c<i.length;c++){var u=i[c],g=s[u.c],d=t.a,f=u;if(d.g&&h(d.f,[d.a.c("wf",f.c,x(f).toString(),"loading")]),A(d,"fontloading",f),d=null,null===F)if(window.FontFace){f=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var p=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);F=f?42<parseInt(f[1],10):!p}else F=!1;d=F?new I(a(t.g,t),a(t.h,t),t.c,u,t.s,g):new _(a(t.g,t),a(t.h,t),t.c,u,t.s,e,g),l.push(d)}for(c=0;c<l.length;c++)l[c].start()}}),0)}function Z(e,t){this.c=e,this.a=t}function U(e,t){this.c=e,this.a=t}function G(e,t){this.c=e||J,this.a=[],this.f=[],this.g=t||""}M.prototype.g=function(e){var t=this.a;t.g&&h(t.f,[t.a.c("wf",e.c,x(e).toString(),"active")],[t.a.c("wf",e.c,x(e).toString(),"loading"),t.a.c("wf",e.c,x(e).toString(),"inactive")]),A(t,"fontactive",e),this.m=!0,W(this)},M.prototype.h=function(e){var t=this.a;if(t.g){var i=f(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),o=[],n=[t.a.c("wf",e.c,x(e).toString(),"loading")];i||o.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),h(t.f,o,n)}A(t,"fontinactive",e),W(this)},Y.prototype.load=function(e){this.c=new c(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,i){var o=[],n=i.timeout;!function(e){e.g&&h(e.f,[e.a.c("wf","loading")]),A(e,"loading")}(t),o=function(e,t,i){var o,n=[];for(o in t)if(t.hasOwnProperty(o)){var r=e.c[o];r&&n.push(r(t[o],i))}return n}(e.a,i,e.c);var r=new M(e.c,t,n);for(e.h=o.length,t=0,i=o.length;t<i;t++)o[t].load((function(t,i,o){X(e,r,t,i,o)}))}(this,new E(this.c,e),e)},Z.prototype.load=function(e){function t(){if(r["__mti_fntLst"+o]){var i,n=r["__mti_fntLst"+o](),a=[];if(n)for(var s=0;s<n.length;s++){var c=n[s].fontfamily;null!=n[s].fontStyle&&null!=n[s].fontWeight?(i=n[s].fontStyle+n[s].fontWeight,a.push(new S(c,i))):a.push(new S(c))}e(a)}else setTimeout((function(){t()}),50)}var i=this,o=i.a.projectId,n=i.a.version;if(o){var r=i.c.o;m(this.c,(i.a.api||"https://fast.fonts.net/jsapi")+"/"+o+".js"+(n?"?v="+n:""),(function(n){n?e([]):(r["__MonotypeConfiguration__"+o]=function(){return i.a},t())})).id="__MonotypeAPIScript__"+o}else e([])},U.prototype.load=function(e){var t,i,o=this.a.urls||[],n=this.a.families||[],r=this.a.testStrings||{},a=new v;for(t=0,i=o.length;t<i;t++)p(this.c,o[t],b(a));var s=[];for(t=0,i=n.length;t<i;t++)if((o=n[t].split(":"))[1])for(var c=o[1].split(","),l=0;l<c.length;l+=1)s.push(new S(o[0],c[l]));else s.push(new S(o[0]));w(a,(function(){e(s,r)}))};var J="https://fonts.googleapis.com/css";function q(e){this.f=e,this.a=[],this.c={}}var K={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Q={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function ie(e,t){this.c=e,this.a=t}var oe={Arimo:!0,Cousine:!0,Tinos:!0};function ne(e,t){this.c=e,this.a=t}function re(e,t){this.c=e,this.f=t,this.a=[]}ie.prototype.load=function(e){var t=new v,i=this.c,o=new G(this.a.api,this.a.text),n=this.a.families;!function(e,t){for(var i=t.length,o=0;o<i;o++){var n=t[o].split(":");3==n.length&&e.f.push(n.pop());var r="";2==n.length&&""!=n[1]&&(r=":"),e.a.push(n.join(r))}}(o,n);var r=new q(n);!function(e){for(var t=e.f.length,i=0;i<t;i++){var o=e.f[i].split(":"),n=o[0].replace(/\+/g," "),r=["n4"];if(2<=o.length){var a;if(a=[],s=o[1])for(var s,c=(s=s.split(",")).length,l=0;l<c;l++){var u;if((u=s[l]).match(/^[\w-]+$/))if(null==(g=te.exec(u.toLowerCase())))u="";else{if(u=null==(u=g[2])||""==u?"n":ee[u],null==(g=g[1])||""==g)g="4";else var g=Q[g]||(isNaN(g)?"4":g.substr(0,1));u=[u,g].join("")}else u="";u&&a.push(u)}0<a.length&&(r=a),3==o.length&&(a=[],0<(o=(o=o[2])?o.split(","):a).length&&(o=K[o[0]])&&(e.c[n]=o))}for(e.c[n]||(o=K[n])&&(e.c[n]=o),o=0;o<r.length;o+=1)e.a.push(new S(n,r[o]))}}(r),p(i,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,i=[],o=0;o<t;o++)i.push(e.a[o].replace(/ /g,"+"));return t=e.c+"?family="+i.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(o),b(t)),w(t,(function(){e(r.a,r.c,oe)}))},ne.prototype.load=function(e){var t=this.a.id,i=this.c.o;t?m(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(i.Typekit&&i.Typekit.config&&i.Typekit.config.fn){t=i.Typekit.config.fn;for(var o=[],n=0;n<t.length;n+=2)for(var r=t[n],a=t[n+1],s=0;s<a.length;s++)o.push(new S(r,a[s]));try{i.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(o)}}),2e3):e([])},re.prototype.load=function(e){var t=this.f.id,i=this.c.o,o=this;t?(i.__webfontfontdeckmodule__||(i.__webfontfontdeckmodule__={}),i.__webfontfontdeckmodule__[t]=function(t,i){for(var n=0,r=i.fonts.length;n<r;++n){var a=i.fonts[n];o.a.push(new S(a.name,$("font-weight:"+a.weight+";font-style:"+a.style)))}e(o.a)},m(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ae=new Y(window);ae.a.c.custom=function(e,t){return new U(t,e)},ae.a.c.fontdeck=function(e,t){return new re(t,e)},ae.a.c.monotype=function(e,t){return new Z(t,e)},ae.a.c.typekit=function(e,t){return new ne(t,e)},ae.a.c.google=function(e,t){return new ie(t,e)};var se={load:a(ae.load,ae)};void 0===(o=function(){return se}.call(t,i,t,e))||(e.exports=o)}()}},t={};function i(o){var n=t[o];if(void 0!==n)return n.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,i),r.exports}i.m=e,i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.u=e=>e+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var n=o.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=o[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e+"../"})(),i.b=document.baseURI||self.location.href,(()=>{"use strict";const e=(e,t,i)=>{const o=wp.data.select("core/block-editor").getSettings(),n=o&&o.__experimentalFeatures?o.__experimentalFeatures.color:{},r=n&&n[t]?n[t]:{};return Object.keys(r).map((t=>r[t].find((t=>t&&t[i]===e)))).filter((e=>void 0!==e))[0]},t=e=>null==e||"object"==typeof e&&0===Object.keys(e).length||"string"==typeof e&&0===e.trim().length||!1===e,o=t=>{if(!t||t.startsWith("#"))return t;const i=t.split(","),o=e(i[0],"palette","slug");return o?`var(--wp--preset--color--${o.slug}, ${o.color})`:i[1]},n=t=>{if(!t||t.startsWith("linear-gradient(")||t?.startsWith("radial-gradient("))return t;const i=t.split(/,(.+)/).filter(Boolean),o=e(i[0],"gradients","slug");return o?`var(--wp--preset--gradient--${o.slug}, ${o.gradient})`:i[1]},r=e=>{let i="";return i=t(e?.size)||t(e?.unit)?!t(e?.size)&&t(e?.unit)?`${e?.size}`:void 0:`${e?.size}${e?.unit}`,i},a=e=>{let i="";return!t(e?.blur)&&(i+=`blur(${e?.blur?.size}px) `),!t(e?.brightness)&&(i+=`brightness(${e?.brightness?.size}%) `),!t(e?.contrast)&&(i+=`contrast(${e?.contrast?.size}%) `),!t(e?.saturation)&&(i+=`saturate(${e?.saturation?.size}%) `),!t(e?.hue)&&(i+=`hue-rotate(${e?.hue?.size}deg) `),!t(e?.grayscale)&&(i+=`grayscale(${e?.grayscale?.size}%) `),!t(e?.invert)&&(i+=`invert(${e?.invert?.size}%) `),!t(e?.sepia)&&(i+=`sepia(${e?.sepia?.size}%) `),t(i)?void 0:i},s=window.wp.hooks,c=window.wp.url,l={label:"Desktop",slug:"Desktop",value:"base",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false"><path d="M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"></path></svg>'},u=[l,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}],g=window.wp.data,d=JSON.parse('[{"label":"Mobile","slug":"Mobile","value":"767","icon":"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"24\\" height=\\"24\\" viewBox=\\"0 0 24 24\\" aria-hidden=\\"true\\" focusable=\\"false\\"><path fill=\\"#111722\\" d=\\"M15 4H9a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12Zm-4.5-.5h2V16h-2v1.5Z\\"/></svg>","isActive":true,"isRequired":true,"direction":"max"},{"label":"Mobile Landscape","slug":"MobileLandscape","value":"880","icon":"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"24\\" height=\\"24\\" viewBox=\\"0 0 24 24\\" aria-hidden=\\"true\\" focusable=\\"false\\"><path fill=\\"#111722\\" d=\\"M4 9v6c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2Zm14-.5c.3 0 .5.2.5.5v6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V9c0-.3.2-.5.5-.5h12Zm-.5 4.5v-2H16v2h1.5Z\\"/></svg>","isActive":false,"direction":"max"},{"label":"Tablet","slug":"Tablet","value":"1024","icon":"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"24\\" height=\\"24\\" viewBox=\\"0 0 24 24\\" aria-hidden=\\"true\\" focusable=\\"false\\"><path fill=\\"#111722\\" d=\\"M16.4 5H7.6C6.6 5 6 5.8 6 6.8v10.4c0 1 .8 1.8 1.7 1.8h8.8c1 0 1.7-.8 1.7-1.8V6.8c0-1-.8-1.8-1.7-1.8Zm.4 12.3c0 .2-.2.4-.4.4H7.6c-.2 0-.4-.2-.4-.4V6.7c0-.2.2-.4.4-.4h8.8c.2 0 .4.2.4.5v10.4Zm-6.6-.5h3.6v-1.3h-3.6v1.3Z\\"/></svg>","isActive":true,"isRequired":true,"direction":"max"},{"label":"Tablet Landscape","slug":"TabletLandscape","value":"1200","icon":"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"24\\" height=\\"24\\" viewBox=\\"0 0 24 24\\" aria-hidden=\\"true\\" focusable=\\"false\\"><path fill=\\"#111722\\" d=\\"M5 7.6v8.8c0 1 .8 1.7 1.8 1.7h10.4c1 0 1.8-.8 1.8-1.7V7.6c0-1-.8-1.7-1.8-1.7H6.8c-1 0-1.8.8-1.8 1.7Zm12.3-.4c.2 0 .4.2.4.4v8.8c0 .2-.2.4-.4.4H6.7c-.2 0-.4-.2-.4-.4V7.6c0-.2.2-.4.5-.4h10.4Zm-.5 6.5v-3.4h-1.3v3.4h1.3Z\\"/></svg>","isActive":false,"direction":"max"},{"label":"Laptop","slug":"Laptop","value":"1366","icon":"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"24\\" height=\\"24\\" viewBox=\\"0 0 24 24\\" aria-hidden=\\"true\\" focusable=\\"false\\"><path fill=\\"#111722\\" d=\\"m19.4 16.6-1-3.2V6.8a2 2 0 0 0-2-2H7.6a2 2 0 0 0-2 2v6.6l-1 3.2v1c0 .3.2.6.4.9.2.3.4.4.6.5l.9.2h11c.2 0 .5 0 .8-.2.3 0 .5-.3.7-.5l.3-.9c.2-.3.2-.7.1-1ZM7 6.8c0-.2 0-.3.2-.4l.4-.2h8.8l.4.2.2.4v6H7v-6Zm10.9 10.8-.2.2H6.3a.2.2 0 0 1-.2-.2V17l.7-2.9h10.4l.8 3v.2l-.1.3Zm-5.2-1.7h-1.4c-.4 0-.7.3-.7.7 0 .5.2.8.7.8h1.4c.4 0 .8-.3.8-.8 0-.4-.4-.7-.8-.7Z\\"/></svg>","isActive":false,"direction":"max"},{"label":"Wide Screen","slug":"WideScreen","value":"2400","icon":"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"24\\" height=\\"24\\" viewBox=\\"0 0 24 24\\" aria-hidden=\\"true\\" focusable=\\"false\\"><path fill=\\"#111722\\" fillRule=\\"evenodd\\" d=\\"M8.3 19.4h7.6l.4-.2v-.6l-.1-.4a.7.7 0 0 0-.5-.2h-1v-1.3h3.6c.5 0 1-.2 1.2-.5.3-.2.5-.7.5-1.1V6.3c0-.5-.2-.9-.5-1.2-.3-.3-.8-.5-1.2-.5H5.7c-.5.1-1 .2-1.2.6-.3.3-.5.7-.5 1.2v8.8c0 .5.2.8.5 1.1.3.3.8.5 1.2.5h3.5v1.3H8c-.2 0-.3 0-.4.3v.4l.1.5h.5Zm5.8-4H5.7c-.2 0-.3 0-.3-.2v-9l.3-.1h12.6l.2.1.1.2v9H14Zm-.6 2.6h-3v-1.3h3V18Z\\" clipRule=\\"evenodd\\"/></svg>","isActive":false,"direction":"min"}]'),h={setDeviceType:e=>({type:"SET_DEVICE_TYPE",deviceType:e}),setBreakpoints:e=>async({dispatch:t,registry:i})=>{const{editEntityRecord:o}=i.dispatch("core");await o("root","site",void 0,{gutenkitBreakpoints:JSON.stringify(e)}),await t({type:"SET_BREAKPOINTS",breakpoints:e})}},f="gutenkit/global-store",p={deviceType:"Desktop",breakpoints:[]},m=((0,g.createReduxStore)(f,{reducer(e=p,t){switch(t.type){case"SET_DEVICE_TYPE":return{...e,deviceType:t.deviceType};case"SET_BREAKPOINTS":return{...e,breakpoints:t.breakpoints}}return e},actions:h,selectors:{getDeviceType:(0,g.createRegistrySelector)((e=>t=>{const{getActiveBreakpoints:i}=e(f),o=i();return o?.length>0&&o.find((e=>t.deviceType===e.slug))?t.deviceType:"Desktop"})),getBreakpoints:(0,g.createRegistrySelector)((e=>t=>{const{getEntityRecord:i}=e("core"),o=i("root","site");return o?JSON.parse(o.gutenkitBreakpoints):t.breakpoints})),getEditedBreakpoints:(0,g.createRegistrySelector)((e=>t=>{const{getEntityRecord:i,getEditedEntityRecord:o}=e("core"),n=i("root","site")?o("root","site"):i("root","site");return n?JSON.parse(n.gutenkitBreakpoints):t.breakpoints})),getActiveBreakpoints:(0,g.createRegistrySelector)((e=>t=>{const{getBreakpoints:i}=e(f),o=i();return o?o.filter((e=>e.isActive)):t.breakpoints})),getDefaultBreakpoints:e=>d}}),()=>{const e=wp?.editor?.store,{modules:t}=window?.gutenkit||{},i=t?.breakpoints,{deviceType:o}=(0,g.useSelect)((t=>{const o=t(f)?.getDeviceType,n=e?t(e)?.getDeviceType:void 0;return e?{deviceType:i?o?.():n?.()}:{deviceType:"Desktop"}}),[]);return o||"Desktop"}),v=window.wp.element;var b=i(5371),w=i.n(b);const k=i.p+"images/placeholder.e4997309.jpg",y=i.p+"images/libraryPlaceholder.9201fa54.png",S=i.p+"images/dynamic-placeholder.ab3d870e.png",T=window.wp.apiFetch;var x=i.n(T);const z=function(e,t,i){const o=new Date;o.setTime(o.getTime()+60*i*60*1e3);const n=`expires=${o.toUTCString()}`;document.cookie=`${e}=${t}; ${n}; path=/`},$=function(e){const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length?t.pop().split(";").shift():null},E=e=>!!e&&!!(e?.desktop||e?.tablet||e?.mobile||e?.tabletlandscape||e?.mobilelandscape||e?.laptop||e?.widescreen||e?.customStyles),P=new URL(k),A=new URL(y),C=new URL(S);window.gutenkit.screen&&(window.gutenkit.helpers={colorsGroup:[{color:"#72aee6",name:"Blue 20"},{color:"#3582c4",name:"Blue 40"},{color:"#e65054",name:"Red 40"},{color:"#8a2424",name:"Red 70"}],boxControlUnit:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"%",label:"%"}],overflowOptions:[{label:"Default",value:""},{label:"Hidden",value:"hidden"},{label:"Auto",value:"auto"}],htmlTags:[{label:"Div",value:"div"},{label:"Header",value:"header"},{label:"Main",value:"main"},{label:"Article",value:"article"},{label:"Section",value:"section"},{label:"Aside",value:"aside"},{label:"Figure",value:"figure"},{label:"Figcaption",value:"figcaption"},{label:"Nav",value:"nav"}],backgroundGenerator:(e,i="Desktop")=>{let a={background:"",size:""};return"image"!==e?.backgroundType||t(e?.backgroundImage?.url)&&t(e?.backgroundImage?.dynamicContentType)||(a.background+=(0,s.applyFilters)("gutenkit.backgroundImage.url",`url(${e?.backgroundImage?.imageUrl?.[i]?e?.backgroundImage?.imageUrl?.[i]:e?.backgroundImage?.url})`,e?.backgroundImage),!t(e?.backgroundRepeat)&&(a.background+=`${e?.backgroundRepeat} `),!t(e?.backgroundAttachment)&&(a.background+=`${e?.backgroundAttachment} `),!t(e?.backgroundPosition[i])&&"custom"!==e?.backgroundPosition[i]&&(a.background+=`${e?.backgroundPosition[i]}`),!t(e?.backgroundPosition[i])&&"custom"===e?.backgroundPosition[i]&&!t(e?.customPositionX[i])&&!t(e?.customPositionY[i])&&(a.background+=`${r(e?.customPositionX[i])} ${r(e?.customPositionY[i])}`),!t(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(a.size+=`${e?.backgroundSize}`),!t(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(a.size+=`${r(e?.customSize[i])} auto`)),"classic"!==e?.backgroundType||t(e?.backgroundColor)||(a.background+=`${o(e?.backgroundColor)} `),"gradient"!==e?.backgroundType||t(e?.gradient)||(a.background+=`${n(e?.gradient)} `),t(a?.background)?a.background=void 0:a.background=a.background,t(a?.size)?a.size=void 0:a.size=a.size,a},fillBackgroundGenerator:(e,i="Desktop")=>{let a={"background-image":""};return"classic"===e?.backgroundType&&(a["background-color"]=`${o(e?.backgroundColor)}`),"gradient"===e?.backgroundType&&(a["background-image"]=`${n(e?.gradient)}`),"image"===e?.backgroundType&&((!t(e?.backgroundImage?.url)||!t(e?.backgroundImage?.dynamicContentType))&&(a["background-image"]=(0,s.applyFilters)("gutenkit.backgroundImage.url",`url(${e?.backgroundImage?.imageUrl[i]?e?.backgroundImage?.imageUrl[i]:e?.backgroundImage?.url})`,e?.backgroundImage)),!t(e?.backgroundAttachment)&&(a["background-attachment"]=e?.backgroundAttachment),!t(e?.backgroundPosition[i])&&"custom"!==e?.backgroundPosition[i]&&(a["background-position"]=e?.backgroundPosition[i]),!t(e?.backgroundPosition[i])&&"custom"===e?.backgroundPosition[i]&&!t(e?.customPositionX)&&!t(e?.customPositionY)&&(a["background-position"]=`${r(e?.customPositionX[i])} ${r(e?.customPositionY[i])}`),!t(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(a["background-size"]=e?.backgroundSize),!t(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(a["background-size"]=`${r(e?.customSize[i])} auto`),!t(e?.backgroundRepeat)&&(a["background-repeat"]=e?.backgroundRepeat)),a},getBoxShadowValue:e=>{let t="";if((e?.horizontal?.size||0===e?.horizontal?.size)&&(t+=`${e?.horizontal?.size}px`),(e?.vertical?.size||0===e?.vertical?.size)&&(t+=` ${e?.vertical?.size}px`),(e?.blur?.size||0===e?.blur?.size)&&(t+=` ${e?.blur?.size}px`),(e?.spread?.size||0===e?.spread?.size)&&(t+=` ${e?.spread?.size}px`),e?.color&&(t+=` ${o(e?.color)}`),e?.position&&(t+=` ${e?.position}`),(e?.horizontal?.size||0===e?.horizontal?.size)&&e?.vertical?.size||0===e?.vertical?.size)return t},getBorderValue:e=>{if(t(e))return{border:void 0};if(3===Object.keys(e).length&&e?.width&&e?.color)return{border:`${e?.width} ${e?.style||"solid"} ${o(e?.color)}`};if(e?.right||e?.bottom||e?.left||e?.top){const t={};return Object.keys(e).forEach((i=>{e[i]?.width&&e[i]?.color&&(t[`border-${i}`]=`${e[i]?.width} ${e[i]?.style||"solid"} ${o(e[i]?.color)}`)})),t}},getBoxValue:(e={},t="")=>{const{top:i,right:o,bottom:n,left:r}=e,a={top:i,right:o,bottom:n,left:r},s=Object.values(a).filter((e=>void 0!==e)).length;if(0===s)return{[t]:void 0};if(4===s){let e="";return e=i===n&&i===o&&i===r?i:i===n&&r===o?`${i} ${o}`:`${i} ${o} ${n} ${r}`,{[t]:e}}let c={};return"border-radius"!==t?(Object.keys(a).forEach((i=>{c[`${t}-${i}`]=e[i]||void 0})),c):"border-radius"===t?(c["border-top-left-radius"]=i||void 0,c["border-top-right-radius"]=o||void 0,c["border-bottom-right-radius"]=n||void 0,c["border-bottom-left-radius"]=r||void 0,c):void 0},getTypographyValue:(e,t)=>"Desktop"===t?{"font-family":e?.fontFamily?.value,"font-size":e?.fontSize?.[t]?.size+e?.fontSize?.[t]?.unit,"font-style":e?.fontStyle,"font-weight":e?.fontWeight?.value,"text-decoration":e?.textDecoration,"text-transform":e?.textTransform,"line-height":e?.lineHeight?.[t]?.size+e?.lineHeight?.[t]?.unit,"letter-spacing":e?.letterSpacing?.[t]?.size+e?.letterSpacing?.[t]?.unit,"word-spacing":e?.wordSpacing?.[t]?.size+e?.wordSpacing?.[t]?.unit}:{"font-size":e?.fontSize?.[t]?.size+e?.fontSize?.[t]?.unit,"line-height":e?.lineHeight?.[t]?.size+e?.lineHeight?.[t]?.unit,"letter-spacing":e?.letterSpacing?.[t]?.size+e?.letterSpacing?.[t]?.unit,"word-spacing":e?.wordSpacing?.[t]?.size+e?.wordSpacing?.[t]?.unit},getSliderValue:r,getMultipleTransition:(...e)=>{let t=[];return Object.keys(e).length>0&&e.forEach(((e,i)=>{if(e?.duration?.size||e?.isDeclared&&e?.duration){let i=e?.isDeclared?"":"s";t.push(`${e?.name} ${e?.duration?.size||e?.duration}${i} ${e?.animation}`)}})),t.length>0?t.join(", "):void 0},getCSSFilters:a,getAttrDependencies:(e,t=!1)=>{if(e){let i="";i=t?Object.keys(e).map((e=>"blocksCSS"!==e?"attributes?."+e+",\n":"")).join(""):Object.keys(e).filter((e=>"blocksCSS"!==e)).join(", \n"),navigator.clipboard.writeText(i).then((()=>{console.info("Copied to clipboard")})).catch((()=>{console.warn("Something went wrong")}))}},gkitResponsiveValue:(e,t,i)=>{if(i&&e&&t){if(Array.isArray(t)){let o=e[t[0]];if(o&&o[t[1]])return o[t[1]][i]}return e[t+i]}},isNull:t,linkGenerator:e=>{let t=e?.url;!t||t.startsWith("http:")&&t.startsWith("https:")&&!t.startsWith("#")||(t=(0,c.prependHTTP)(t));let i={href:t,onClick:e=>e.preventDefault()};return e?.newTab&&(i.target="_blank",i.rel="noopener"),e?.noFollow&&(i.rel="_blank"==i.target?"nofollow noopener":"nofollow"),e?.customAttributes&&e?.customAttributes.length>0&&e?.customAttributes.forEach((e=>{const[t,o]=e.split("|");i[t]=o})),e?.isDynamicContent?(i["data-dynamic-content-url"]=JSON.stringify({...e,url:t}),i):i?.href?i:null},overlayGenerator:(e,i="Desktop")=>{let s={"background-image":""};return"gradient"===e?.backgroundType&&(s["background-image"]=n(e?.gradient)),"classic"===e?.backgroundType&&(!t(e?.backgroundColor)&&(s["background-color"]=o(e?.backgroundColor)),!t(e?.backgroundImage?.imageUrl)&&(s["background-image"]=`url(${e?.backgroundImage?.imageUrl})`),!t(e?.backgroundAttachment)&&(s["background-attachment"]=e?.backgroundAttachment),!t(e?.backgroundPosition[i])&&"custom"!==e?.backgroundPosition[i]&&(s["background-position"]=e?.backgroundPosition[i]),!t(e?.backgroundPosition[i])&&"custom"===e?.backgroundPosition[i]&&!t(e?.customPositionX)&&!t(e?.customPositionY)&&(s["background-position"]=`${r(e?.customPositionX[i])} ${r(e?.customPositionY[i])}`),!t(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(s["background-size"]=e?.backgroundSize),!t(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(s["background-size"]=`${r(e?.customSize[i])} auto`),!t(e?.backgroundRepeat)&&(s["background-repeat"]=e?.backgroundRepeat)),!t(e?.opacity)&&(s.opacity=`${e?.opacity?.size}`),!t(e?.blendMode)&&(s["mix-blend-mode"]=e?.blendMode),!t(e?.cssFilters)&&(s.filter=a(e?.cssFilters)),t(s)?void 0:s},parseCSS:(e,t=u)=>{let i={};if(Array.isArray(e)){let[o,n,r=[]]=e;t.forEach((e=>{i[e?.slug]="base"===e?.value?[...o,...n(e?.slug)]:n(e?.slug)})),i.customStyles=r}else i=e;return{rawCSS:i,breakpoints:t}},responsiveHelper:(e,t,i,o)=>{o({[e+i]:t})},responsiveTypographyHelper:(e,t,i,o)=>{const n={...e};return{...n,[t]:{...n[t],[o]:i}}},setDeviceType:e=>{(0,g.dispatch)("core/editor").setDeviceType(e)},useDeviceType:m,useFontFamilyinBlock:(e=[])=>{const{use_only_global_styles_fonts:i}=window.gutenkit,{isBlockBasedTheme:o}=(0,g.useSelect)((e=>{const{getSettings:{__unstableIsBlockBasedTheme:t}}=e("core/block-editor");return{isBlockBasedTheme:t||!1}}));i&&o||((0,v.useEffect)((()=>{e.length=0}),[]),(0,v.useEffect)((()=>{let i=[];e?.length>0&&e.forEach((e=>{let o={};!t(e?.fontFamily)&&(o.Font=e?.fontFamily?.value),!t(e?.fontWeight)&&(o.Condensed=e?.fontWeight?.value);let n="";!t(o?.Font)&&(n=o?.Font),!t(o?.Font)&&!t(o?.Condensed)&&(n+=":400,"+o?.Condensed),!t(n)&&i.push(n)})),i.length>0&&w().load({google:{families:[...i]},context:frames["editor-canvas"]})}),[JSON.stringify(e)]))},truncateWords:function(e,t){if(!e)return"";const i=e.split(" ");if(t>=i.length)return e;const o=i.slice(0,t);return o.push("..."),o.join(" ")},GkitLocalStoreGetData:e=>e&&localStorage.getItem(e),GkitLocalStoreSetData:(e,t,i=[])=>{const o=i;o.length>0?o.includes(t)&&localStorage.setItem(e,t):localStorage.setItem(e,t)},onScrollAnimateIframe:(e,t)=>{const i=window.frames["editor-canvas"]||window;if(i){const{IntersectionObserver:o,document:n}=i,r=new o((e=>{e.forEach((e=>{if(e.isIntersecting)try{t(e)}catch(e){console.warn(e)}}))})),a=n.querySelectorAll(e);a&&a.forEach((e=>{const t=e.getAttribute("id"),i=n.getElementById(t);r.observe(i)}))}},onScrollAnimate:(e,t)=>{const i=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting)try{t(e)}catch(e){console.warn(e)}}))})),o=document.querySelectorAll(e);o&&o.forEach((e=>{const t=e.getAttribute("id"),o=document.getElementById(t);i.observe(o)}))},placeholderImage:P.href,libraryPlaceholderImage:A.href,dynamicPlaceholderImage:C.href,orderSortedValue:(e=[],t,i)=>{if(!t)return[];const o=i.startsWith(".")?i:`.${i}`,n=e?.map(((e,t)=>({selector:`${o} .${e.class}`,order:t})));return n},gkitDomNextSibling:function(e,t){let i=e.nextElementSibling;if(t){const e=t.startsWith("."),o=t.startsWith("#");for(;null!==i;){if(e&&i.classList.contains(t.slice(1))||o&&i.id===t.slice(1)||!e&&!o&&i.tagName.toLowerCase()===t.toLowerCase())return i;i=i.nextElementSibling}return null}return i},gkitDomPrevSibling:function(e,t){let i=e.previousElementSibling;if(t){const e=t.startsWith("."),o=t.startsWith("#");for(;null!==i;){if(e&&i.classList.contains(t.slice(1))||o&&i.id===t.slice(1)||!e&&!o&&i.tagName.toLowerCase()===t.toLowerCase())return i;i=i.previousElementSibling}return null}return i},gkitDomFindParent:function(e,t){const i=t.startsWith("."),o=t.startsWith("#");let n=e.parentElement;for(;null!==n;){if(i&&n.classList.contains(t.slice(1))||o&&n.id===t.slice(1)||!i&&!o&&n.tagName.toLowerCase()===t.toLowerCase())return n;n=n.parentElement}return null},gkitDomFindChild:function(e,t){const i=Array.from(e.children);if(t){const e=t.startsWith("."),o=t.startsWith("#");return i.filter((i=>!!(e&&i.classList.contains(t.slice(1))||o&&i.id===t.slice(1)||!e&&!o&&i.tagName.toLowerCase()===t.toLowerCase())))}return i},moveObjectToTop:function(e,t){const i=e.findIndex((e=>e.slug===t));if(-1!==i){const[t]=e.splice(i,1);e.unshift(t)}return e},getAttributes:e=>{const{getBlockAttributes:t}=(0,g.select)("core/block-editor");return t(e)},setAttributes:(e,t)=>{const{updateBlockAttributes:i}=(0,g.dispatch)("core/block-editor");i(e,t)},gkitSwiper:function(e,t,i=!1,o="Desktop",n=[],r={}){const a=e.querySelector(".swiper-pagination"),s=e.querySelector(".swiper-button-next"),c=e.querySelector(".swiper-button-prev"),{direction:l,speed:u,delay:g,loop:d,autoplay:h,pauseOnMouseEnter:f,allowTouchMove:p,effect:m}=t,v={};if(n){const e=n.find((e=>"Desktop"===e.slug)),i=n.find((e=>"WideScreen"===e.slug)),o=n.map((t=>"Desktop"===t.slug?e:"WideScreen"===t.slug?i:t));o.forEach(((e,o,n)=>{let r=n[o+1]?.value||"0";r&&(r="base"===r&&i?i?.value:r,v[r]={slidesPerView:t?.[`slidesPerView${e?.slug}`]?.size||1,slidesPerGroup:t?.[`slidesPerGroup${e?.slug}`]?.size||1,spaceBetween:t?.[`spaceBetween${e?.slug}`]?.size||10,slidesPerGroupSkip:Number(0)})}))}let b={direction:l||"horizontal",loop:d||!1,speed:u||1e3,autoplay:h&&{pauseOnMouseEnter:f||!1,delay:g||3e3},allowTouchMove:p||!0,draggable:!0,effect:m||"slide",focusableElements:'a, button, input, textarea, select, details, [tabindex="0"]',pagination:{el:a,clickable:!0},navigation:{nextEl:s,prevEl:c},slidesPerGroupSkip:Number(0),...r};if(i){const{gkitResponsiveValue:e}=window.gutenkit.helpers;b={...b,slidesPerView:e(t,"slidesPerView",o)?.size||1,slidesPerGroup:e(t,"slidesPerGroup",o)?.size||1,spaceBetween:e(t,"spaceBetween",o)?.size||10},b.allowTouchMove=!1}else b.breakpoints=v;return new Swiper(e,b)},getMultipleTransform:(e,t)=>{if(t&&0!==Object.entries(t).length)return Object.entries(t).flatMap((([i,o])=>{const{rotate:n,rotateHover:a,scale:s,scaleHover:c}=t,l=n?.common3DRotate,u=a?.common3DRotateHover,g=s?.commonKeepProportions,d=c?.commonKeepProportionsHover,h=(t,i,n)=>{const a=[t+e].toString(),s=o&&void 0!==o[a],c=o&&void 0!==r(o[a]);return s&&i&&c?`${n}(${r(o[a])})`:!o||"horizontal"!=o[t]&&"vertical"!=o[t]?void 0:`${n}(calc(-1))`};return[h("commonRotate",!l,"rotateZ"),h("commonRotateX",l,"rotateX"),h("commonRotateY",l,"rotateY"),h("perspective",l,"perspective"),h("commonOffsetX",!0,"translateX"),h("commonOffsetY",!0,"translateY"),h("commonScale",g,"scale"),h("commonScaleX",!g,"scaleX"),h("commonScaleY",!g,"scaleY"),h("commonSkewX",!0,"skewX"),h("commonSkewY",!0,"skewY"),h("commonFlipHorizontal",!0,"scaleX"),h("commonFlipVertical",!0,"scaleY"),h("commonRotateHover",!u,"rotateZ"),h("commonRotateXHover",u,"rotateX"),h("commonRotateYHover",u,"rotateY"),h("perspectiveHover",u,"perspective"),h("commonOffsetXHover",!0,"translateX"),h("commonOffsetYHover",!0,"translateY"),h("commonScaleHover",d,"scale"),h("commonScaleXHover",!d,"scaleX"),h("commonScaleYHover",!d,"scaleY"),h("commonSkewXHover",!0,"skewX"),h("commonSkewYHover",!0,"skewY"),h("commonFlipHorizontalHover",!0,"scaleX"),h("commonFlipVerticalHover",!0,"scaleY")]})).filter((e=>void 0!==e)).join(" ")},getMultipleTransformOrigin:(...e)=>{let t=[];return e&&e.forEach((e=>{e?.value&&t.push(`${e.value}`)})),t.length>0?t.join(" "):void 0},useHasProActive:function(){const[e,t]=(0,v.useState)((()=>"true"===$("isValidLicense"))),{has_pro:i}=window.gutenkit;return(0,v.useEffect)((()=>{i&&(async()=>{const e=$("isValidLicense");e?t("true"===e):setTimeout((async()=>{try{const e=await x()({path:"/gutenkit/v1/license/status"});"valid"===e?.status?(t(!0),z("isValidLicense","true",12)):(t(!1),z("isValidLicense","false",12))}catch(e){console.error("Error fetching license status:",e)}}),5e3)})()}),[i]),(0,v.useMemo)((()=>(0,s.applyFilters)("gutenkit.is-pro-active",e)),[e])},truncateCharacter:function(e,t){return t>=e?.length?e:e?.slice(0,t)+"..."},getTextStrokeValue:(e,t)=>{const{width:i,color:n}=e||{};if(i&&"object"==typeof i){const{size:e,unit:r}=i[t]?i[t]:{};if(null!=e&&!isNaN(e))return`${e}${r||"px"} ${o(n)||""}`.trim()}},getColor:o,getGradient:n,hasCSS:E,useDeviceList:()=>{const{modules:e,helpers:t}=window.gutenkit,{baseBreakpoint:i}=t,o=(0,g.useSelect)((t=>{if(e?.breakpoints&&t(f)){const{getActiveBreakpoints:e}=t(f),o=e()?.sort(((e,t)=>parseInt(t.value)-parseInt(e.value)));return[i,...o]}return[i,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}]}),[e?.breakpoints]);return(0,v.useMemo)((()=>o),[o])},baseBreakpoint:l,useBlockStyles:(e,t,o,n)=>{const r=(0,v.useRef)(e);(0,v.useEffect)((()=>{const{rawCSS:a,breakpoints:s}=n;if(JSON.stringify(e)!==JSON.stringify(r.current)){const n=new Worker(new URL(i.p+i.u(5813),i.b));return n.postMessage({rawCSS:a,breakpoints:s}),n.onmessage=function(i){const n=i.data;n&&(t({[o]:n}),r.current=e)},n.onerror=function(e){console.error("Worker error:",e)},()=>{n.terminate()}}}),[e])},hasCSS:E,useModuleStyles:(e,t,o)=>{const{getAttributes:n,setAttributes:r}=window.gutenkit.helpers,a=n(e),s=(0,v.useRef)(a),c=(0,v.useCallback)((i=>{r(e,{[t]:i})}),[e]);(0,v.useEffect)((()=>{const{rawCSS:e,breakpoints:n}=o;if(JSON.stringify(a)!==JSON.stringify(s.current)){const o=new Worker(new URL(i.p+i.u(8194),i.b));return o.postMessage({rawCSS:e,breakpoints:n}),o.onmessage=function(e){const i=e.data;i&&(c({[t]:i}),s.current=a)},o.onerror=function(e){console.error("Worker error:",e)},()=>{o.terminate()}}}),[a])},generatePlaceholder:(e,t,i)=>{const o=document.createElement("canvas"),n=o.getContext("2d");return o.width=t,o.height=i,n.fillStyle="#d3d3d3",n.fillRect(0,0,t,i),n.fillStyle="#000000",n.font="20px Arial",n.textAlign="center",n.textBaseline="middle",n.fillText(e,t/2,i/2),o.toDataURL()},getCookie:$,setCookie:z})})()})();