|
1
|
|
-(()=>{var e={371:(e,t,n)=>{var o;!function(){function r(e,t,n){return e.call.apply(e.bind,arguments)}function i(e,t,n){if(!e)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,o),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function a(e,t,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?r:i).apply(null,arguments)}var s=Date.now||function(){return+new Date};function l(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var c=!!window.FontFace;function u(e,t,n,o){if(t=e.c.createElement(t),n)for(var r in n)n.hasOwnProperty(r)&&("style"==r?t.style.cssText=n[r]:t.setAttribute(r,n[r]));return o&&t.appendChild(e.c.createTextNode(o)),t}function d(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function h(e){e.parentNode&&e.parentNode.removeChild(e)}function g(e,t,n){t=t||[],n=n||[];for(var o=e.className.split(/\s+/),r=0;r<t.length;r+=1){for(var i=!1,a=0;a<o.length;a+=1)if(t[r]===o[a]){i=!0;break}i||o.push(t[r])}for(t=[],r=0;r<o.length;r+=1){for(i=!1,a=0;a<n.length;a+=1)if(o[r]===n[a]){i=!0;break}i||t.push(o[r])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(e,t){for(var n=e.className.split(/\s+/),o=0,r=n.length;o<r;o++)if(n[o]==t)return!0;return!1}function p(e,t,n){function o(){s&&r&&i&&(s(a),s=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var r=!1,i=!0,a=null,s=n||null;c?(t.onload=function(){r=!0,o()},t.onerror=function(){r=!0,a=Error("Stylesheet failed to load"),o()}):setTimeout((function(){r=!0,o()}),0),d(e,"head",t)}function m(e,t,n,o){var r=e.c.getElementsByTagName("head")[0];if(r){var i=u(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&r.removeChild(i))},r.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),o||5e3),i}return null}function b(){this.a=0,this.c=null}function y(e){return e.a++,function(){e.a--,w(e)}}function v(e,t){e.c=t,w(e)}function w(e){0==e.a&&e.c&&(e.c(),e.c=null)}function k(e){this.a=e||"-"}function S(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function C(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var o=e[n].replace(/['"]/g,"");-1!=o.indexOf(" ")||/^\d/.test(o)?t.push("'"+o+"'"):t.push(o)}return t.join(",")}function $(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 x(e){var t=4,n="n",o=null;return e&&((o=e.match(/(normal|oblique|italic)/i))&&o[1]&&(n=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)))),n+t}function P(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new k("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function T(e){if(e.g){var t=f(e.f,e.a.c("wf","active")),n=[],o=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),g(e.f,n,o)}A(e,"inactive")}function A(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,$(n)):e.h[t]())}function j(){this.c={}}function E(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function B(e){d(e.c,"body",e.a)}function F(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:"+C(e.c)+";font-style:"+z(e)+";font-weight:"+e.f+"00;"}function I(e,t,n,o,r,i){this.g=e,this.j=t,this.a=o,this.c=n,this.f=r||3e3,this.h=i||void 0}function R(e,t,n,o,r,i,a){this.v=e,this.B=t,this.c=n,this.a=o,this.s=a||"BESbswy",this.f={},this.w=r||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new E(this.c,this.s),this.h=new E(this.c,this.s),this.j=new E(this.c,this.s),this.m=new E(this.c,this.s),e=F(e=new S(this.a.c+",serif",$(this.a))),this.g.a.style.cssText=e,e=F(e=new S(this.a.c+",sans-serif",$(this.a))),this.h.a.style.cssText=e,e=F(e=new S("serif",$(this.a))),this.j.a.style.cssText=e,e=F(e=new S("sans-serif",$(this.a))),this.m.a.style.cssText=e,B(this.g),B(this.h),B(this.j),B(this.m)}k.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},I.prototype.start=function(){var e=this.c.o.document,t=this,n=s(),o=new Promise((function(o,r){!function i(){s()-n>=t.f?r():e.fonts.load(function(e){return z(e)+" "+e.f+"00 300px "+C(e.c)}(t.a),t.h).then((function(e){1<=e.length?o():setTimeout(i,25)}),(function(){r()}))}()})),r=null,i=new Promise((function(e,n){r=setTimeout(n,t.f)}));Promise.race([i,o]).then((function(){r&&(clearTimeout(r),r=null),t.g(t.a)}),(function(){t.j(t.a)}))};var H={D:"serif",C:"sans-serif"},N=null;function O(){if(null===N){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);N=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return N}function L(e,t,n){for(var o in H)if(H.hasOwnProperty(o)&&t===e.f[H[o]]&&n===e.f[H[o]])return!0;return!1}function M(e){var t,n=e.g.a.offsetWidth,o=e.h.a.offsetWidth;(t=n===e.f.serif&&o===e.f["sans-serif"])||(t=O()&&L(e,n,o)),t?s()-e.A>=e.w?O()&&L(e,n,o)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?_(e,e.v):_(e,e.B):function(e){setTimeout(a((function(){M(this)}),e),50)}(e):_(e,e.v)}function _(e,t){setTimeout(a((function(){h(this.g.a),h(this.h.a),h(this.j.a),h(this.m.a),t(this.a)}),e),0)}function q(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}R.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),M(this)};var D=null;function U(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&g(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),A(e,"active")):T(e.a))}function W(e){this.j=e,this.a=new j,this.h=0,this.f=this.g=!0}function X(e,t,n,o,r){var i=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=r||null,s=o||{};if(0===n.length&&i)T(t.a);else{t.f+=n.length,i&&(t.j=i);var l,c=[];for(l=0;l<n.length;l++){var u=n[l],d=s[u.c],h=t.a,f=u;if(h.g&&g(h.f,[h.a.c("wf",f.c,$(f).toString(),"loading")]),A(h,"fontloading",f),h=null,null===D)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);D=f?42<parseInt(f[1],10):!p}else D=!1;h=D?new I(a(t.g,t),a(t.h,t),t.c,u,t.s,d):new R(a(t.g,t),a(t.h,t),t.c,u,t.s,e,d),c.push(h)}for(l=0;l<c.length;l++)c[l].start()}}),0)}function Y(e,t){this.c=e,this.a=t}function V(e,t){this.c=e,this.a=t}function G(e,t){this.c=e||J,this.a=[],this.f=[],this.g=t||""}q.prototype.g=function(e){var t=this.a;t.g&&g(t.f,[t.a.c("wf",e.c,$(e).toString(),"active")],[t.a.c("wf",e.c,$(e).toString(),"loading"),t.a.c("wf",e.c,$(e).toString(),"inactive")]),A(t,"fontactive",e),this.m=!0,U(this)},q.prototype.h=function(e){var t=this.a;if(t.g){var n=f(t.f,t.a.c("wf",e.c,$(e).toString(),"active")),o=[],r=[t.a.c("wf",e.c,$(e).toString(),"loading")];n||o.push(t.a.c("wf",e.c,$(e).toString(),"inactive")),g(t.f,o,r)}A(t,"fontinactive",e),U(this)},W.prototype.load=function(e){this.c=new l(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var o=[],r=n.timeout;!function(e){e.g&&g(e.f,[e.a.c("wf","loading")]),A(e,"loading")}(t),o=function(e,t,n){var o,r=[];for(o in t)if(t.hasOwnProperty(o)){var i=e.c[o];i&&r.push(i(t[o],n))}return r}(e.a,n,e.c);var i=new q(e.c,t,r);for(e.h=o.length,t=0,n=o.length;t<n;t++)o[t].load((function(t,n,o){X(e,i,t,n,o)}))}(this,new P(this.c,e),e)},Y.prototype.load=function(e){function t(){if(i["__mti_fntLst"+o]){var n,r=i["__mti_fntLst"+o](),a=[];if(r)for(var s=0;s<r.length;s++){var l=r[s].fontfamily;null!=r[s].fontStyle&&null!=r[s].fontWeight?(n=r[s].fontStyle+r[s].fontWeight,a.push(new S(l,n))):a.push(new S(l))}e(a)}else setTimeout((function(){t()}),50)}var n=this,o=n.a.projectId,r=n.a.version;if(o){var i=n.c.o;m(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+o+".js"+(r?"?v="+r:""),(function(r){r?e([]):(i["__MonotypeConfiguration__"+o]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+o}else e([])},V.prototype.load=function(e){var t,n,o=this.a.urls||[],r=this.a.families||[],i=this.a.testStrings||{},a=new b;for(t=0,n=o.length;t<n;t++)p(this.c,o[t],y(a));var s=[];for(t=0,n=r.length;t<n;t++)if((o=r[t].split(":"))[1])for(var l=o[1].split(","),c=0;c<l.length;c+=1)s.push(new S(o[0],l[c]));else s.push(new S(o[0]));v(a,(function(){e(s,i)}))};var J="https://fonts.googleapis.com/css";function K(e){this.f=e,this.a=[],this.c={}}var Q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Z={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 ne(e,t){this.c=e,this.a=t}var oe={Arimo:!0,Cousine:!0,Tinos:!0};function re(e,t){this.c=e,this.a=t}function ie(e,t){this.c=e,this.f=t,this.a=[]}ne.prototype.load=function(e){var t=new b,n=this.c,o=new G(this.a.api,this.a.text),r=this.a.families;!function(e,t){for(var n=t.length,o=0;o<n;o++){var r=t[o].split(":");3==r.length&&e.f.push(r.pop());var i="";2==r.length&&""!=r[1]&&(i=":"),e.a.push(r.join(i))}}(o,r);var i=new K(r);!function(e){for(var t=e.f.length,n=0;n<t;n++){var o=e.f[n].split(":"),r=o[0].replace(/\+/g," "),i=["n4"];if(2<=o.length){var a;if(a=[],s=o[1])for(var s,l=(s=s.split(",")).length,c=0;c<l;c++){var u;if((u=s[c]).match(/^[\w-]+$/))if(null==(d=te.exec(u.toLowerCase())))u="";else{if(u=null==(u=d[2])||""==u?"n":ee[u],null==(d=d[1])||""==d)d="4";else var d=Z[d]||(isNaN(d)?"4":d.substr(0,1));u=[u,d].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==o.length&&(a=[],0<(o=(o=o[2])?o.split(","):a).length&&(o=Q[o[0]])&&(e.c[r]=o))}for(e.c[r]||(o=Q[r])&&(e.c[r]=o),o=0;o<i.length;o+=1)e.a.push(new S(r,i[o]))}}(i),p(n,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,n=[],o=0;o<t;o++)n.push(e.a[o].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(o),y(t)),v(t,(function(){e(i.a,i.c,oe)}))},re.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?m(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var o=[],r=0;r<t.length;r+=2)for(var i=t[r],a=t[r+1],s=0;s<a.length;s++)o.push(new S(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(o)}}),2e3):e([])},ie.prototype.load=function(e){var t=this.f.id,n=this.c.o,o=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var r=0,i=n.fonts.length;r<i;++r){var a=n.fonts[r];o.a.push(new S(a.name,x("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 W(window);ae.a.c.custom=function(e,t){return new V(t,e)},ae.a.c.fontdeck=function(e,t){return new ie(t,e)},ae.a.c.monotype=function(e,t){return new Y(t,e)},ae.a.c.typekit=function(e,t){return new re(t,e)},ae.a.c.google=function(e,t){return new ne(t,e)};var se={load:a(ae.load,ae)};void 0===(o=function(){return se}.call(t,n,t,e))||(e.exports=o)}()}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.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 r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"})(),(()=>{"use strict";const e=(e,t,n)=>{const o=wp.data.select("core/block-editor").getSettings(),r=o&&o.__experimentalFeatures?o.__experimentalFeatures.color:{},i=r&&r[t]?r[t]:{};return Object.keys(i).map((t=>i[t].find((t=>t&&t[n]===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 n=t.split(","),o=e(n[0],"palette","slug");return o?`var(--wp--preset--color--${o.slug}, ${o.color})`:n[1]},r=t=>{if(!t||t.startsWith("linear-gradient(")||t?.startsWith("radial-gradient("))return t;const n=t.split(/,(.+)/).filter(Boolean),o=e(n[0],"gradients","slug");return o?`var(--wp--preset--gradient--${o.slug}, ${o.gradient})`:n[1]},i=e=>{let n="";return n=t(e?.size)||t(e?.unit)?!t(e?.size)&&t(e?.unit)?`${e?.size}`:void 0:`${e?.size}${e?.unit}`,n},a=e=>{let n="";return!t(e?.blur)&&(n+=`blur(${e?.blur?.size}px) `),!t(e?.brightness)&&(n+=`brightness(${e?.brightness?.size}%) `),!t(e?.contrast)&&(n+=`contrast(${e?.contrast?.size}%) `),!t(e?.saturation)&&(n+=`saturate(${e?.saturation?.size}%) `),!t(e?.hue)&&(n+=`hue-rotate(${e?.hue?.size}deg) `),!t(e?.grayscale)&&(n+=`grayscale(${e?.grayscale?.size}%) `),!t(e?.invert)&&(n+=`invert(${e?.invert?.size}%) `),!t(e?.sepia)&&(n+=`sepia(${e?.sepia?.size}%) `),t(n)?void 0:n},s=window.wp.hooks,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>'},c=[l,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}],u=window.wp.data,d=window.wp.editor,h=window.wp.element,g=new Set(["px","em","rem","%","vh","vw"]),f=e=>{const t=[];for(const n in e){const o=e[n];!o||g.has(o)||Number.isNaN(o)||"string"==typeof o&&o.includes("undefined")||t.push(`${n}: ${o};`)}return t.join(" ")},p=window.wp.url;var m=n(371),b=n.n(m);const y=n.p+"images/placeholder.e4997309.jpg",v=n.p+"images/libraryPlaceholder.9201fa54.png",w=n.p+"images/dynamic-placeholder.ab3d870e.png",k=window.wp.apiFetch;var S=n.n(k);const C=function(e,t,n){const o=new Date;o.setTime(o.getTime()+60*n*60*1e3);const r=`expires=${o.toUTCString()}`;document.cookie=`${e}=${t}; ${r}; path=/`},$=function(e){const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length?t.pop().split(";").shift():null},z={title:"asc-icon",src:"<svg fill='#323131' viewBox='0 0 14 14' role='img' focusable='false' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' stroke='#323131'><g id='SVGRepo_bgCarrier' stroke-width='0'></g><g id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'></g><g id='SVGRepo_iconCarrier'><path d='m 11.363635,5.363637 c 0,0.1477267 -0.05398,0.2755673 -0.16193,0.383522 -0.107953,0.1079547 -0.235793,0.161932 -0.38352,0.161932 l -7.63637,0 c -0.1477267,0 -0.2755667,-0.053977 -0.38352,-0.161932 -0.1079533,-0.1079547 -0.16193,-0.2357953 -0.16193,-0.383522 0,-0.147728 0.053977,-0.2755693 0.16193,-0.383524 L 6.616475,1.161932 C 6.724435,1.0539773 6.8522783,1 7.000005,1 c 0.1477267,0 0.2755667,0.053977 0.38352,0.161932 l 3.81818,3.818181 c 0.107953,0.1079547 0.16193,0.235796 0.16193,0.383524 z'></path></g></svg>"},x={title:"desc-icon",src:"<svg fill='#323131' viewBox='0 0 14 14' role='img' focusable='false' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' stroke='#323131'><g id='SVGRepo_bgCarrier' stroke-width='0'></g><g id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'></g><g id='SVGRepo_iconCarrier'><path d='m 11.363635,8.636363 c 0,0.147728 -0.05398,0.275569 -0.16193,0.383523 l -3.81818,3.818182 C 7.2755717,12.946023 7.1477317,13 7.000005,13 6.8522783,13 6.724435,12.946023 6.616475,12.838068 L 2.798295,9.019886 C 2.6903417,8.911932 2.636365,8.784091 2.636365,8.636363 c 0,-0.1477267 0.053977,-0.2755673 0.16193,-0.383522 0.1079533,-0.1079547 0.2357933,-0.161932 0.38352,-0.161932 l 7.63637,0 c 0.147727,0 0.275567,0.053977 0.38352,0.161932 0.107953,0.1079547 0.16193,0.2357953 0.16193,0.383522 z'></path></g></svg>"},P={title:"default-sort-icon",src:"<svg xmlns='http://www.w3.org/2000/svg' fill='#323131' stroke='#323131' aria-hidden='true' viewBox='0 0 14 14'><path d='M11.364 8.636q0 .222-.162.384l-3.818 3.818Q7.222 13 7 13t-.384-.162L2.798 9.02q-.162-.162-.162-.384 0-.221.162-.383t.384-.162h7.636q.222 0 .384.162t.162.383zm0-3.272q0 .221-.162.383t-.384.162H3.182q-.222 0-.384-.162t-.162-.383q0-.222.162-.384l3.818-3.818Q6.778 1 7 1t.384.162l3.818 3.818q.162.162.162.384z'/></svg>"},T=(e,t,n,o,r,i,a)=>{const s=e.classList.contains("sorted-asc");A(n,a),e.classList.add(s?"sorted-desc":"sorted-asc");const l=e.querySelector(".sorting");l&&(l.innerHTML="",l.appendChild(B(s?i.src:r.src))),j(o,t,!s)},A=(e,t)=>{e.forEach((e=>{e.classList.remove("sorted-asc","sorted-desc");const n=e.querySelector(".sorting");n&&(n.innerHTML="",n.appendChild(B(t.src)))}))},j=(e,t,n)=>{const o=e.querySelector("tbody");if(!o)return;const r=Array.from(o.querySelectorAll("tr"));0!==r.length&&(r.sort(((e,o)=>E(e,o,t,n))),o.innerHTML="",r.forEach((e=>o.appendChild(e))))},E=(e,t,n,o)=>{const r=e.cells[n]?.textContent.trim(),i=t.cells[n]?.textContent.trim();return void 0===r||void 0===i?0:isNaN(r)||isNaN(i)?o?r.localeCompare(i):i.localeCompare(r):o?r-i:i-r},B=e=>{if(!e)return null;const t=document.createElement("div");t.innerHTML=e.trim();const n=t.firstChild;return n&&"svg"===n.tagName&&(n.setAttribute("width","16"),n.setAttribute("height","16")),n},F=e=>/^\d{4}-\d{2}-\d{2}$/.test(e);function I(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")}function R(e,t){const n=Math.floor(t/5)-2;return e.length>n?e.substring(0,n-3)+"...":e}function H(e,t){return(t-5*e.length)/2}const N=e=>{if(!e||"string"!=typeof e)return null;const t=e.trim();return t.includes(",")?t.split(",")[1]?.trim():t},O={equal:(e,t)=>e===t,notEqual:(e,t)=>e!==t,contains:(e,t)=>e.includes(t),notContains:(e,t)=>!e.includes(t),greaterThan:(e,t)=>isNaN(e)||isNaN(t)?e>t:parseFloat(e)>parseFloat(t),lessThan:(e,t)=>isNaN(e)||isNaN(t)?e<t:parseFloat(e)<parseFloat(t),greaterThanOrEqual:(e,t)=>isNaN(e)||isNaN(t)?e>=t:parseFloat(e)>=parseFloat(t),lessThanOrEqual:(e,t)=>isNaN(e)||isNaN(t)?e<=t:parseFloat(e)<=parseFloat(t)},L=e=>{if(!e?.element||!e?.data)return;const t=document.querySelector('iframe[name="editor-canvas"]')||document.querySelector("iframe"),n=(t?.contentDocument||t?.contentWindow?.document||document).querySelector(`.${e.element}`);if(!n)return;const o=Array.from(n.querySelectorAll("table")),r=[...new Set([...o])];r.length&&r.forEach((t=>{(e=>{e.querySelectorAll("[data-conditional-formatting='true']").forEach((e=>{["color","backgroundColor","background","backgroundSize"].forEach((t=>{e.style[t]=""}));const t=e.getAttribute("data-previous-class");t&&(e.classList.remove(t),e.removeAttribute("data-previous-class")),e.removeAttribute("data-conditional-formatting")}))})(t);const n=(e=>{const t=new Map,n=e.querySelector("tr:first-child");return n&&n.querySelectorAll("th, td").forEach(((e,n)=>{const o=e.textContent.trim().toLowerCase().replace(/\s+/g,"");t.set(o,n)})),t})(t);e.data.forEach((e=>{((e,t,n)=>{const{columnKey:o,comparisonType:r="equal",comparisonValue:i="",formatAction:a,formatTextColor:s,formatBackground:l,formatCssClass:c}=t;if(!o||!a)return;const u=n.get(o);if(void 0===u)return;const d=Array.from(e.querySelectorAll("tr")).slice(1),h=i.toString().trim().toLowerCase(),g=a.startsWith("column"),f=a.startsWith("row");d.forEach((e=>{const t=e.querySelectorAll("td, th"),n=t[u];if(!n)return;const o=n.textContent.trim().toLowerCase(),i=O[r]?.(o,h);let d=[];g?d=[n]:i&&(d=f?Array.from(t):[n]),d.forEach((e=>{((e,t)=>{const{formatAction:n,formatTextColor:o,formatBackground:r,formatCssClass:i}=t;if(n.includes("TextColor")&&o){const t=N(o);t&&(e.style.color=t)}if(n.includes("BackgroundColor")&&r){const t=(e=>{if(!e)return{background:"",size:""};let t="";return"classic"===e.backgroundType&&e.backgroundColor?t=N(e.backgroundColor)||"":"gradient"===e.backgroundType&&e.gradient&&(t=(e=>{if(!e)return"";if("linear"===e.type){const t=e.angle||0,n=e.stops?.map((e=>`${e.color} ${e.position}%`)).join(", ");return`linear-gradient(${t}deg, ${n})`}if("radial"===e.type){const t=e.stops?.map((e=>`${e.color} ${e.position}%`)).join(", ");return`radial-gradient(circle, ${t})`}return""})(e.gradient)),{background:t,size:""}})(r);t.background&&(e.style.background=t.background),t.size&&(e.style.backgroundSize=t.size)}if(n.includes("CssClass")&&i){const t="string"!=typeof(a=i)?"":a.toLowerCase().trim().replace(/[^\w-]+/g,"-").replace(/^-+|-+$/g,"").replace(/-+/g,"-").replace(/script/g,"");if(t){const n=e.getAttribute("data-previous-class");n&&e.classList.remove(n),e.classList.add(t),e.setAttribute("data-previous-class",t)}}var a;e.setAttribute("data-conditional-formatting","true")})(e,{formatAction:a,formatTextColor:s,formatBackground:l,formatCssClass:c})}))}))})(t,e,n)}))}))},M=e=>{if(!e||"string"!=typeof e)return null;const t=e.trim();if(t.includes(",")){const e=t.split(",");return e.length>1?e[1].trim():null}return t};class _{constructor(e,t={}){if(this.table="string"==typeof e?document.querySelector(e):e,!this.table)throw new Error("Table element not found");this.config={fixedHeader:!1,fixedColumns:!1,leftFreeze:{from:null,to:null},rightFreeze:{from:null,to:null},minColumnWidth:120,...t},this.cellPositions=new Map,this.isInitialized=!1,this.observer=null,this.resizeObserver=null,this.init()}init(){this.isInitialized&&this.cleanup(),this.ensureTableWidth(),this.trackCellPositions(),this.applyStyles(),this.observeDOMChanges(),this.observeTableResize(),this.isInitialized=!0}observeDOMChanges(){const e=this.table.querySelector("tbody");e&&(this.observer&&this.observer.disconnect(),this.observer=new MutationObserver((e=>{let t=!1;for(const n of e)if("childList"===n.type&&(n.addedNodes.length||n.removedNodes.length)){t=!0;break}t&&(clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.refreshPositions()),0))})),this.observer.observe(e,{childList:!0,subtree:!1}))}observeTableResize(){this.resizeObserver&&this.resizeObserver.disconnect();const e=this.table.closest(".table-freezer-container")||this.setupTableContainer();this.resizeObserver=new ResizeObserver((()=>{this.refreshPositions()})),this.resizeObserver.observe(e)}ensureTableWidth(){const e=this.table.querySelectorAll("tr");if(0===e.length)return;const t=e[0].querySelectorAll("th, td");t.forEach((e=>{const t=this.config.minColumnWidth;e.offsetWidth<t&&(e.style.minWidth=`${t}px`,e.style.width=`${t}px`)})),this.table.style.minWidth=t.length*this.config.minColumnWidth+"px"}trackCellPositions(){const e=this.table.querySelectorAll("tr");this.cellPositions.clear(),e.forEach(((e,t)=>{const n=e.querySelectorAll("th, td");let o=0;n.forEach(((e,n)=>{const r=`${t}-${n}`,i=e.getBoundingClientRect().width;this.cellPositions.set(r,{left:o,width:i,rowIndex:t,cellIndex:n}),e.setAttribute("data-row-index",t),e.setAttribute("data-cell-index",n),e.setAttribute("data-left-position",o),e.setAttribute("data-cell-width",i),o+=i}))}))}applyStyles(){this.setupTableContainer(),this.config.fixedColumns&&(null!==this.config.leftFreeze.from&&null!==this.config.leftFreeze.to&&this.applyLeftFreeze(),null!==this.config.rightFreeze.from&&null!==this.config.rightFreeze.to&&this.applyRightFreeze()),this.config.fixedHeader&&this.applyFixedHeader()}setupTableContainer(){let e=this.table.closest(".table-freezer-container");if(!e){const t=document.createElement("div");t.className="table-freezer-container",t.style.cssText="\n overflow: auto;\n position: relative;\n max-width: 100%;\n max-height: 500px;\n border: 1px solid #dee2e6;\n ",this.table.parentNode.insertBefore(t,this.table),t.appendChild(this.table),e=t}return this.table.style.cssText+="\n border-collapse: separate;\n border-spacing: 0;\n position: relative;\n ",e}applyFixedHeader(){const e=this.table.querySelector("thead");e&&(this.config.headerBgColor&&(e.style.backgroundColor=M(this.config.headerBgColor)),this.config.headerColor&&(e.style.color=M(this.config.headerColor)),e.style.cssText+="\n position: sticky;\n top: 0;\n z-index: 20;\n ",e.setAttribute("data-frozen","header"))}clearFrozenColumns(e="left"){this.table.querySelectorAll(`[data-frozen="${e}"]`).forEach((e=>{e.removeAttribute("data-frozen"),e.removeAttribute("data-freeze-position"),e.style.position="",e.style.left="",e.style.right="",e.style.zIndex="",e.hasAttribute("data-conditional-formatting")||(e.style.backgroundColor="",e.style.color="")}))}applyLeftFreeze(){let{from:e,to:t}=this.config.leftFreeze;if(null===e||null===t)return;t<e&&(t=e),this.clearFrozenColumns("left");let n=0;for(let o=e-1;o<t;o++){const e=this.table.querySelectorAll(`[data-cell-index="${o}"]`);if(!e.length)continue;e.forEach((e=>{const t=0===parseInt(e.getAttribute("data-row-index"))&&this.config.fixedHeader?20:15;e.style.position="sticky",e.style.left=`${Math.round(n)}px`,e.style.zIndex=t,e.hasAttribute("data-conditional-formatting")||(this.config.leftColumnBgColor&&(e.style.backgroundColor=M(this.config.leftColumnBgColor)),this.config.leftColumnColor&&(e.style.color=M(this.config.leftColumnColor))),e.setAttribute("data-frozen","left"),e.setAttribute("data-freeze-position",Math.round(n))}));const t=this.table.querySelector(`[data-cell-index="${o}"]`);t&&(n+=t.getBoundingClientRect().width)}}applyRightFreeze(){let{from:e,to:t}=this.config.rightFreeze;if(null===e||null===t)return;t<e&&(t=e),this.clearFrozenColumns("right");let n=0;for(let o=t-1;o>=e-1;o--){const e=this.table.querySelectorAll(`[data-cell-index="${o}"]`);if(!e.length)continue;e.forEach((e=>{const t=0===parseInt(e.getAttribute("data-row-index"))&&this.config.fixedHeader?20:15;e.style.position="sticky",e.style.right=`${Math.round(n)}px`,e.style.zIndex=t,e.hasAttribute("data-conditional-formatting")||(this.config.rightColumnBgColor&&(e.style.backgroundColor=M(this.config.rightColumnBgColor)),this.config.rightColumnColor&&(e.style.color=M(this.config.rightColumnColor))),e.setAttribute("data-frozen","right"),e.setAttribute("data-freeze-position",Math.round(n))}));const t=this.table.querySelector(`[data-cell-index="${o}"]`);t&&(n+=t.getBoundingClientRect().width)}}updateConfig(e){this.config={...this.config,...e},this.refreshPositions()}cleanup(){["left","right"].forEach((e=>this.clearFrozenColumns(e))),this.table.querySelectorAll("thead, tr, th, td").forEach((e=>{["data-frozen","data-freeze-position","data-row-index","data-cell-index","data-left-position","data-cell-width"].forEach((t=>e.removeAttribute(t))),"THEAD"===e.tagName||"TH"===e.tagName?(e.style.backgroundColor="",e.style.color=""):e.hasAttribute("data-conditional-formatting")||(e.style.position="",e.style.left="",e.style.right="",e.style.top="",e.style.zIndex="")})),this.table.style.position="",this.cellPositions.clear()}destroy(){this.cleanup(),this.observer&&this.observer.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect();const e=this.table.closest(".table-freezer-container");e&&e.parentNode&&(e.parentNode.insertBefore(this.table,e),e.remove()),this.isInitialized=!1}getCellPosition(e,t){return this.cellPositions.get(`${e}-${t}`)}refreshPositions(){this.trackCellPositions(),this.applyStyles()}}const q=new URL(y),D=new URL(v),U=new URL(w);window?.tableBuilder?.screen&&(window.tableBuilder.helpers={backgroundGenerator:(e,n="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?.[n]?e?.backgroundImage?.imageUrl?.[n]:e?.backgroundImage?.url})`,e?.backgroundImage),!t(e?.backgroundRepeat)&&(a.background+=`${e?.backgroundRepeat} `),!t(e?.backgroundAttachment)&&(a.background+=`${e?.backgroundAttachment} `),!t(e?.backgroundPosition[n])&&"custom"!==e?.backgroundPosition[n]&&(a.background+=`${e?.backgroundPosition[n]}`),!t(e?.backgroundPosition[n])&&"custom"===e?.backgroundPosition[n]&&!t(e?.customPositionX[n])&&!t(e?.customPositionY[n])&&(a.background+=`${i(e?.customPositionX[n])} ${i(e?.customPositionY[n])}`),!t(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(a.size+=`${e?.backgroundSize}`),!t(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(a.size+=`${i(e?.customSize[n])} auto`)),"classic"!==e?.backgroundType||t(e?.backgroundColor)||(a.background+=`${o(e?.backgroundColor)} `),"gradient"!==e?.backgroundType||t(e?.gradient)||(a.background+=`${r(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,n="Desktop")=>{let a={"background-image":""};return"classic"===e?.backgroundType&&(a["background-color"]=`${o(e?.backgroundColor)}`),"gradient"===e?.backgroundType&&(a["background-image"]=`${r(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?.[n]?e?.backgroundImage?.imageUrl?.[n]:e?.backgroundImage?.url})`,e?.backgroundImage)),!t(e?.backgroundAttachment)&&(a["background-attachment"]=e?.backgroundAttachment),!t(e?.backgroundPosition[n])&&"custom"!==e?.backgroundPosition[n]&&(a["background-position"]=e?.backgroundPosition[n]),!t(e?.backgroundPosition[n])&&"custom"===e?.backgroundPosition[n]&&!t(e?.customPositionX)&&!t(e?.customPositionY)&&(a["background-position"]=`${i(e?.customPositionX[n])} ${i(e?.customPositionY[n])}`),!t(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(a["background-size"]=e?.backgroundSize),!t(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(a["background-size"]=`${i(e?.customSize[n])} 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((n=>{e[n]?.width&&e[n]?.color&&(t[`border-${n}`]=`${e[n]?.width} ${e[n]?.style||"solid"} ${o(e[n]?.color)}`)})),t}},getBoxValue:(e={},t="")=>{const{top:n,right:o,bottom:r,left:i}=e,a={top:n,right:o,bottom:r,left:i},s=Object.values(a).filter((e=>void 0!==e)).length;if(0===s)return{[t]:void 0};if(4===s){let e="";return e=n===r&&n===o&&n===i?n:n===r&&i===o?`${n} ${o}`:`${n} ${o} ${r} ${i}`,{[t]:e}}let l={};return"border-radius"!==t?(Object.keys(a).forEach((n=>{l[`${t}-${n}`]=e[n]||void 0})),l):"border-radius"===t?(l["border-top-left-radius"]=n||void 0,l["border-top-right-radius"]=o||void 0,l["border-bottom-right-radius"]=r||void 0,l["border-bottom-left-radius"]=i||void 0,l):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:i,getMultipleTransition:(...e)=>{let t=[];return Object.keys(e).length>0&&e.forEach(((e,n)=>{if(e?.duration?.size||e?.isDeclared&&e?.duration){let n=e?.isDeclared?"":"s";t.push(`${e?.name} ${e?.duration?.size||e?.duration}${n} ${e?.animation}`)}})),t.length>0?t.join(", "):void 0},getCSSFilters:a,gkitResponsiveValue:(e,t,n)=>{if(n&&e&&t){if(Array.isArray(t)){let o=e[t[0]];if(o&&o[t[1]])return o[t[1]][n]}return e[t+n]}},parseCSS:(e,t=c)=>{let n={};if(Array.isArray(e)){let[o,r,i=[]]=e;t.forEach((e=>{n[e?.slug]="base"===e?.value?[...o,...r(e?.slug)]:r(e?.slug)})),n.customStyles=i}else n=e;return{rawCSS:n,breakpoints:t}},responsiveHelper:(e,t,n,o)=>{o({[e+n]:t})},useDeviceType:()=>{const{modules:e}=window?.gutenkit||{},t=e?.breakpoints,{deviceType:n}=(0,u.useSelect)((e=>{const n=e("gutenkit/global-store")?.getDeviceType,o=d.store?e(d.store)?.getDeviceType:void 0;return d.store?{deviceType:t?n?.():o?.()}:{deviceType:"Desktop"}}),[]);return n||"Desktop"},orderSortedValue:(e=[],t,n)=>{if(!t)return[];const o=n.startsWith(".")?n:`.${n}`,r=e?.map(((e,t)=>({selector:`${o} .${e.class}`,order:t})));return r},getMultipleTransform:(e,t)=>{if(t&&0!==Object.entries(t).length)return Object.entries(t).flatMap((([n,o])=>{const{rotate:r,rotateHover:a,scale:s,scaleHover:l}=t,c=r?.common3DRotate,u=a?.common3DRotateHover,d=s?.commonKeepProportions,h=l?.commonKeepProportionsHover,g=(t,n,r)=>{const a=[t+e].toString(),s=o&&void 0!==o[a],l=o&&void 0!==i(o[a]);return s&&n&&l?`${r}(${i(o[a])})`:!o||"horizontal"!=o[t]&&"vertical"!=o[t]?void 0:`${r}(calc(-1))`};return[g("commonRotate",!c,"rotateZ"),g("commonRotateX",c,"rotateX"),g("commonRotateY",c,"rotateY"),g("perspective",c,"perspective"),g("commonOffsetX",!0,"translateX"),g("commonOffsetY",!0,"translateY"),g("commonScale",d,"scale"),g("commonScaleX",!d,"scaleX"),g("commonScaleY",!d,"scaleY"),g("commonSkewX",!0,"skewX"),g("commonSkewY",!0,"skewY"),g("commonFlipHorizontal",!0,"scaleX"),g("commonFlipVertical",!0,"scaleY"),g("commonRotateHover",!u,"rotateZ"),g("commonRotateXHover",u,"rotateX"),g("commonRotateYHover",u,"rotateY"),g("perspectiveHover",u,"perspective"),g("commonOffsetXHover",!0,"translateX"),g("commonOffsetYHover",!0,"translateY"),g("commonScaleHover",h,"scale"),g("commonScaleXHover",!h,"scaleX"),g("commonScaleYHover",!h,"scaleY"),g("commonSkewXHover",!0,"skewX"),g("commonSkewYHover",!0,"skewY"),g("commonFlipHorizontalHover",!0,"scaleX"),g("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},useDeviceList:()=>{const{modules:e}=window?.gutenkit||{},t=(0,h.useRef)(null);let n=[l,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}];return e&&(n=(0,h.useMemo)((()=>{const t=e?.breakpoints?(0,u.select)("gutenkit/global-store"):null;let n=[l,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}];if(t){const{getActiveBreakpoints:e}=t,o=e()?.sort(((e,t)=>parseInt(t.value)-parseInt(e.value)));o?.length>0&&(n=[l,...o])}return n}),[])),(0,h.useMemo)((()=>{const e=t.current;return JSON.stringify(e)!==JSON.stringify(n)?(t.current=n,n):e}),[n])},useBlockStyles:(e,t,n,o)=>{const{rawCSS:r,breakpoints:i}=(0,h.useMemo)((()=>o),[o]),{__unstableMarkNextChangeAsNotPersistent:a}=(0,u.useDispatch)("core/block-editor"),s=(0,h.useRef)(null),l=(0,h.useMemo)((()=>((e,t)=>{const n={};for(let o=0;o<t.length;o++){const r=t[o],i=e[r.slug]||e[r.slug.toLowerCase()];if(i){const e=[];for(let t=0;t<i.length;t++){const{selector:n,...o}=i[t],r=f(o);r&&e.push(`${n} { ${r} }`)}e.length>0&&(n[r.slug.toLowerCase()]=e.join(" "))}}if(e.customStyles){const t=[];for(let n=0;n<e.customStyles.length;n++){const{mediaQuery:o,selector:r,...i}=e.customStyles[n];if(o&&!o.includes("undefined")){const e=f(i);e&&t.push(`@media (${o}) { ${r} { ${e} } }`)}}t.length>0&&(n.customStyles=t.join(" "))}return n})(r,i)),[r,i]),c=(0,h.useRef)(e);return(0,h.useEffect)((()=>(l&&JSON.stringify(e)!==JSON.stringify(c.current||{})&&(s.current&&clearTimeout(s.current),s.current=setTimeout((()=>{a(),t({[n]:l}),c.current=e}),200)),()=>clearTimeout(s.current))),[l]),l},getTextStrokeValue:(e,t)=>{const{width:n,color:r}=e||{};if(n&&"object"==typeof n){const{size:e,unit:i}=n[t]?n[t]:{};if(null!=e&&!isNaN(e))return`${e}${i||"px"} ${o(r)||""}`.trim()}},getColor:o,getGradient:r,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"},{label:"Footer",value:"footer"}],getAttrDependencies:(e,t=!1)=>{if(e){let n="";n=t?Object.keys(e).map((e=>"blocksCSS"!==e?"attributes?."+e+",\n":"")).join(""):Object.keys(e).filter((e=>"blocksCSS"!==e)).join(", \n"),navigator.clipboard.writeText(n).then((()=>{console.info("Copied to clipboard")})).catch((()=>{console.warn("Something went wrong")}))}},isNull:t,linkGenerator:e=>{let t=e?.url;!t||t.startsWith("http:")&&t.startsWith("https:")&&!t.startsWith("#")||(t=(0,p.prependHTTP)(t));let n={href:t,onClick:e=>e.preventDefault()};return e?.newTab&&(n.target="_blank",n.rel="noopener"),e?.noFollow&&(n.rel="_blank"==n.target?"nofollow noopener":"nofollow"),e?.customAttributes&&e?.customAttributes.length>0&&e?.customAttributes.forEach((e=>{const[t,o]=e.split("|");n[t]=o})),e?.isDynamicContent?(n["data-dynamic-content-url"]=JSON.stringify({...e,url:t}),n):n?.href?n:null},overlayGenerator:(e,n="Desktop")=>{let s={"background-image":""};return"gradient"===e?.backgroundType&&(s["background-image"]=r(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[n])&&"custom"!==e?.backgroundPosition[n]&&(s["background-position"]=e?.backgroundPosition[n]),!t(e?.backgroundPosition[n])&&"custom"===e?.backgroundPosition[n]&&!t(e?.customPositionX)&&!t(e?.customPositionY)&&(s["background-position"]=`${i(e?.customPositionX[n])} ${i(e?.customPositionY[n])}`),!t(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(s["background-size"]=e?.backgroundSize),!t(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(s["background-size"]=`${i(e?.customSize[n])} 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},responsiveTypographyHelper:(e,t,n,o)=>{const r={...e};return{...r,[t]:{...r[t],[o]:n}}},useFontFamilyinBlock:(e=[])=>{const{use_only_global_styles_fonts:n}=window?.gutenkit||{},{isBlockBasedTheme:o}=(0,u.useSelect)((e=>{const{__unstableIsBlockBasedTheme:t}=e("core/block-editor").getSettings();return{isBlockBasedTheme:t||!1}}),[]);n&&o||((0,h.useEffect)((()=>{e.length=0}),[]),(0,h.useEffect)((()=>{let n=[];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 r="";!t(o?.Font)&&(r=o?.Font),!t(o?.Font)&&!t(o?.Condensed)&&(r+=":400,"+o?.Condensed),!t(r)&&n.push(r)})),n.length>0&&b().load({google:{families:[...n]},context:frames["editor-canvas"]})}),[JSON.stringify(e)]))},truncateWords:function(e,t){if(!e)return"";const n=e.split(" ");if(t>=n.length)return e;const o=n.slice(0,t);return o.push("..."),o.join(" ")},GkitLocalStoreGetData:e=>e&&localStorage.getItem(e),GkitLocalStoreSetData:(e,t,n=[])=>{const o=n;o.length>0?o.includes(t)&&localStorage.setItem(e,t):localStorage.setItem(e,t)},onScrollAnimateIframe:(e,t)=>{const n=window.frames["editor-canvas"]||window;if(n){const{IntersectionObserver:o,document:r}=n,i=new o((e=>{e.forEach((e=>{if(e.isIntersecting)try{t(e)}catch(e){console.warn(e)}}))})),a=r.querySelectorAll(e);a&&a.forEach((e=>{const t=e.getAttribute("id"),n=r.getElementById(t);i.observe(n)}))}},onScrollAnimate:(e,t)=>{const n=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);n.observe(o)}))},placeholderImage:q.href,libraryPlaceholderImage:D.href,dynamicPlaceholderImage:U.href,moveObjectToTop:function(e,t){const n=e.findIndex((e=>e.slug===t));if(-1!==n){const[t]=e.splice(n,1);e.unshift(t)}return e},useHasProActive:function({windowVariable:e="gutenkit",hookName:t="gutenkit.is-pro-active",cookieName:n="isValidLicense",apiPath:o="gutenkit"}={}){const[r,i]=(0,h.useState)((()=>"true"===$(n))),{has_pro:a}=window?.[e]||{};return(0,h.useEffect)((()=>{a&&(async()=>{const e=$(n);e?i("true"===e):setTimeout((async()=>{try{const e=await S()({path:`/${o}/v1/license/status`});"valid"===e?.status?(i(!0),C(n,"true",12)):(i(!1),C(n,"false",12))}catch(e){console.error("Error fetching license status:",e)}}),2e3)})()}),[a]),(0,h.useMemo)((()=>(0,s.applyFilters)(t,r)),[r])},sortingHandler:(e,{ascIcon:t=z,descIcon:n=x,defaultSortIcon:o=P,enableSorting:r=!0})=>{if(!e)return;const i=e.querySelectorAll("th");0!==i.length&&i.forEach(((a,s)=>{if(!r){console.log("Sorting disabled for header:",a),a.classList.remove("sortable");const e=a.querySelector(".sorting");e&&e.remove();const t=a.cloneNode(!0);return a.parentNode.replaceChild(t,a),void(t.dataset.sortableApplied="false")}if("true"===a.dataset.sortableApplied)return;a.classList.add("sortable");let l=a.querySelector(".sorting");l&&l.remove(),l=document.createElement("span"),l.classList.add("sorting");const c=B(o?.src);c&&l.appendChild(c),a.appendChild(l),a.addEventListener("click",(()=>T(a,s,i,e,t,n,o))),a.dataset.sortableApplied="true"}))},exportCSV:e=>{if(!e?.tableHeader||!e?.tableBody)return;const t=e.tableHeader.join(",")+"\n",n=e.tableBody.map((e=>Object.values(e).map((e=>F(e)?`"\t${e}"`:`"${e}"`)).join(","))).join("\n"),o=new Blob([t+n],{type:"text/csv;charset=utf-8;"}),r=URL.createObjectURL(o),i=document.createElement("a");i.href=r,i.download="table_data.csv",document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r)},exportTableAsPDF:function(e,t="table-export.pdf"){if(!e||!Array.isArray(e.tableBody)||!Array.isArray(e.tableHeader))return void console.error("Invalid table data format!");const n=e.tableHeader.length,o=762/n,r=e.tableBody.map((t=>e.tableHeader.map((e=>void 0!==t[e]?String(t[e]):"")))),i=Math.floor(24.25);let a=[];for(let e=0;e<r.length;e+=i)a.push(r.slice(e,e+i));const s=function(e){let t=[],n=[],o=0;function r(e){n.push(o),o+=e.length,t.push(e)}o+=15,r("1 0 obj\n<< /Type /Catalog\n /Pages 2 0 R\n>>\nendobj\n"),r(`2 0 obj\n<< /Type /Pages\n /Kids [PLACEHOLDER]\n /Count ${e.length}\n>>\nendobj\n`),r("3 0 obj\n<< /Type /Font\n /Subtype /Type1\n /BaseFont /Helvetica\n>>\nendobj\n"),r("4 0 obj\n<< /Type /Font\n /Subtype /Type1\n /BaseFont /Helvetica-Bold\n>>\nendobj\n");let i=[],a=5+e.length;e.forEach(((e,t)=>{r(`${5+t} 0 obj\n<< /Length ${e.length} >>\nstream\n${e}endstream\nendobj\n`)})),e.forEach(((e,t)=>{const n=5+t,o=a+t;i.push(`${o} 0 R`),r(`${o} 0 obj\n<< /Type /Page\n /Parent 2 0 R\n /MediaBox [0 0 842 595]\n /Contents ${n} 0 R\n /Resources << /Font << /F1 3 0 R /F2 4 0 R >> >>\n>>\nendobj\n`)}));const s=i.join(" ");t[1]=`2 0 obj\n<< /Type /Pages\n /Kids [${s}]\n /Count ${e.length}\n>>\nendobj\n`;const l=o;let c="xref\n0 "+(t.length+1)+"\n";c+="0000000000 65535 f \n",n.forEach((e=>{c+=String(e).padStart(10,"0")+" 00000 n \n"}));const u=`trailer\n<< /Size ${t.length+1}\n /Root 1 0 R\n>>\nstartxref\n${l}\n%%EOF\n`;return"%PDF-1.4\n%âãÏÓ\n"+t.join("")+c+u}(a.map((t=>function(e,t,n,o,r,i,a,s){let l="BT\n";l+="0.239 0.212 0.361 rg\n",l+=`40 523 m ${n+r*s} 523 l ${n+r*s} 557 l 40 557 l f\n`,l+="/F2 10 Tf\n",l+="1 1 1 rg\n";t.forEach(((e,t)=>{const o=R(e,r-4),i=H(o,r);l+=`1 0 0 1 ${n+r*t+i} 537 Tm (${I(o)}) Tj\n`})),l+="/F1 10 Tf\n",l+="0 0 0 rg\n",e.forEach(((e,t)=>{if(t%2==0){const e=525-i*t-2,o=525-i*(t+1)-2;l+="0.95 0.95 0.95 rg\n",l+=`40 ${o} m ${n+r*s} ${o} l ${n+r*s} ${e} l 40 ${e} l f\n`,l+="0 0 0 rg\n"}const o=525-i*t-10-3;e.forEach(((e,t)=>{const i=R(e,r-4),a=H(i,r);l+=`1 0 0 1 ${n+r*t+a} ${o} Tm (${I(i)}) Tj\n`}))})),l+="ET\n",l+=`0 0 0 RG\n1 w\n40 525 m ${n+r*s} 525 l S\n`,l+="0 w\n";for(let t=0;t<=e.length;t++){const e=525-i*t-2;l+=`0 0 0 RG\n40 ${e} m ${n+r*s} ${e} l S\n`}for(let t=0;t<=s;t++){const o=n+r*t,a=557,s=525-i*e.length-2;l+=`0 0 0 RG\n${o} ${a} m ${o} ${s} l S\n`}return l}(t,e.tableHeader,40,0,o,20,0,n)))),l=new Blob([s],{type:"application/pdf"}),c=URL.createObjectURL(l),u=document.createElement("a");u.href=c,u.download=t,u.click(),setTimeout((()=>{URL.revokeObjectURL(c)}),1e3)},exportExcel:e=>{if(!e?.tableHeader||!e?.tableBody)return;let t="<table><tr>";e.tableHeader.forEach((e=>{t+=`<th>${e}</th>`})),t+="</tr>",e.tableBody.forEach((e=>{t+="<tr>",Object.values(e).forEach((e=>{t+=`<td>${e}</td>`})),t+="</tr>"})),t+="</table>";const n=new Blob([t],{type:"application/vnd.ms-excel"}),o=URL.createObjectURL(n),r=document.createElement("a");r.href=o,r.download="table_data.xls",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(o)},exportAsPrint:(e,t="table-export")=>{if(!e||!Array.isArray(e.tableBody)||!Array.isArray(e.tableHeader))return void console.error("Invalid table data format!");const n=`\n <!DOCTYPE html>\n <html>\n <head>\n <title>${t}</title>\n <meta charset="utf-8">\n <style>\n body {\n font-family: Arial, sans-serif;\n padding: 20px;\n }\n table {\n width: 100%;\n border-collapse: collapse;\n }\n th, td {\n border: 1px solid #ccc;\n padding: 5px;\n text-align: left;\n font-size: 12px;\n }\n th {\n background-color: #333;\n color: #fff;\n }\n tr:nth-child(even) {\n background-color: #f2f2f2;\n }\n .footer {\n margin-top: 15px;\n font-size: 10px;\n text-align: right;\n }\n </style>\n </head>\n <body>\n \n <table>\n <thead><tr>${e.tableHeader.map((e=>`<th>${e}</th>`)).join("")}</tr></thead>\n <tbody>${e.tableBody.map((e=>`<tr>${Object.values(e).map((e=>`<td>${e}</td>`)).join("")}</tr>`)).join("")}</tbody>\n </table>\n \n <div class="footer">Generated on ${(new Date).toLocaleDateString()}</div>\n <script>\n window.onload = function () {\n setTimeout(() => {\n window.focus();\n window.print();\n }, 100);\n };\n <\/script>\n </body>\n </html>\n `,o=document.createElement("iframe");o.style.display="none",document.body.appendChild(o);const r=o.contentWindow.document;r.open(),r.write(n),r.close(),o.contentWindow.onafterprint=()=>{document.body.removeChild(o)}},searchMechanism:(e,t,n,o={})=>{if(!t||"function"!=typeof n)return()=>{};let r=null,i=null,a="all";const s=()=>{t.value="",l()},l=()=>{const o=t.value.trim().toLowerCase();if(i&&(i.style.display=o?"flex":"none"),!o)return void n(e);const r=e.tableBody.filter((e=>"all"===a?Object.values(e).some((e=>String(e).toLowerCase().includes(o))):!!e.hasOwnProperty(a)&&String(e[a]).toLowerCase().includes(o))),s={tableHeader:e.tableHeader,tableBody:r},l="all"===a?"all columns":a,c=0===r.length?`No matching results found in ${l}.`:null;n(s,c)},c=(u=l,(...e)=>{clearTimeout(r),r=setTimeout((()=>u.apply(void 0,e)),200)});var u;return(()=>{const e=t.parentNode;i=e.querySelector(".gkit-search-clear-icon"),i||(i=document.createElement("span"),i.className="gkit-search-clear-icon",i.innerHTML='\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" class="gkit-icon">\n <path fill="#000" fill-rule="evenodd" clip-rule="evenodd" \n d="M19.207 6.207a1 1 0 0 0-1.414-1.414L12 10.586 6.207 4.793a1 1 0 0 0-1.414 1.414L10.586 12l-5.793 5.793a1 1 0 1 0 1.414 1.414L12 13.414l5.793 5.793a1 1 0 0 0 1.414-1.414L13.414 12l5.793-5.793z"/>\n </svg>\n ',e.insertBefore(i,t.nextSibling),i.addEventListener("click",s))})(),t.removeEventListener("input",c),t.addEventListener("input",c),l(),{cleanup:()=>{t.removeEventListener("input",c),i&&(i.removeEventListener("click",s),i.remove()),clearTimeout(r)},setSearchColumn:e=>{a=e,l()}}},useFetcher:async(e,t,n="",o={})=>{const{liveUpdate:r=!1,cacheDuration:i=12}=o,a=new URLSearchParams({type:t,url:e,nestedPath:n,liveUpdate:r});"number"==typeof i&&a.append("cacheDuration",i);const s=`/wp-json/table-builder/v1/data-table?${a.toString()}`;try{const e=await fetch(s);if(!e.ok){const t=await e.json();throw new Error(t?.message||"Unknown error occurred")}const t=await e.json();return t&&Array.isArray(t.values)?{values:t.values,paths:Array.isArray(t.paths)?t.paths:[],error:null}:{values:Array.isArray(t)?t:[],paths:[],error:null}}catch(e){return{values:[],paths:[],error:e?.message}}},useRefreshFetcher:async(e,t,n="")=>{const o={type:t,url:e,nestedPath:n};try{const e=await fetch("/wp-json/table-builder/v1/data-table/refresh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}),t=await e.json();return t&&Array.isArray(t.values)?{values:t.values,paths:Array.isArray(t.paths)?t.paths:[]}:{values:Array.isArray(t)?t:[],paths:[]}}catch(e){return{values:[],paths:[]}}},extractTableData:e=>{if(Array.isArray(e)&&"object"==typeof e[0]){const t=Object.keys(e[0]),n=e.map((e=>t.reduce(((t,n)=>(t[n]=void 0!==e[n]?e[n]:null,t)),{})));return{tableHeader:t,tableBody:n}}if("string"==typeof e){const t=e.split("\n").map((e=>e.trim())).filter((e=>e));if(!t.length)return;const n=t[0].split(",").map((e=>e.trim())),o=t.slice(1).map((e=>{const t=e.split(",");return n.reduce(((e,n,o)=>(e[n]=t[o]?t[o].trim():null,e)),{})}));return{tableHeader:n,tableBody:o}}},Pagination:class{constructor(e={}){this.validateOptions(e),this.initializeState(e),this.setupProxy(),this.render(),this.notifyUpdate()}validateOptions(e){const t=["data","container","onUpdate"].filter((t=>!e[t]));if(t.length)throw new Error(`Missing required options: ${t.join(", ")}`)}initializeState(e){const{data:t={},container:n,onUpdate:o,itemRowPerPage:r=10,hasFooter:i=!0,showResult:a=!0,showRowPerPage:s=!0,showPaginationControl:l=!0,itemPerPageContent:c="Items per page",prevFirstIcon:u=null,prevIcon:d=null,nextIcon:h=null,nextEndIcon:g=null,pageSizeOptions:f=[5,10,20,50,100,"All"],labels:p={},customClasses:m={}}=e;this.container=n,this.onUpdate=o,Array.isArray(t)?(this.tableHeader=null,this.originalTableBody=t):(this.tableHeader=t.tableHeader||null,this.originalTableBody=t.tableBody||[]),this.attributes={itemRowPerPage:r,hasFooter:i,showResult:a,showRowPerPage:s,showPaginationControl:l,itemPerPageContent:c,prevFirstIcon:u,prevIcon:d,nextIcon:h,nextEndIcon:g,pageSizeOptions:f,labels:{showingAll:"Showing all {total} items",showingRange:"Showing {start} to {end} of {total}",pageOf:"Page {current} of {total}",allOption:"All",...p},classes:{info:"pagination-info",pageSize:"pagination-page-size",select:"pagination-select",label:"pagination-label",controls:"pagination-controls",button:"pagination-btn",text:"pagination-text",icon:"pagination-icon",...m}},this.state={currentPage:1,itemsPerPage:this.attributes.itemRowPerPage,get totalPages(){return Math.max(1,Math.ceil(this.tableBody?.length/this.itemsPerPage))},tableBody:[...this.originalTableBody]}}setupProxy(){const e=this;this.paginationState=new Proxy(this.state,{set:(t,n,o)=>(t[n]=o,"currentPage"!==n&&"itemsPerPage"!==n||e.updatePaginationState(),!0)})}updatePaginationState(){this.notifyUpdate(),this.render()}notifyUpdate(){this.onUpdate(this.getDisplayedItems())}getDisplayedItems(){const{currentPage:e,itemsPerPage:t,tableBody:n}=this.paginationState;if(-1===t||-1===Number(t))return{tableHeader:this.tableHeader,tableBody:n};const o=(e-1)*t,r=e*t;return{tableHeader:this.tableHeader,tableBody:n?.slice(o,r)}}updatePagination(e){Array.isArray(e)?this.paginationState.tableBody=[...e]:(this.paginationState.tableBody=e.tableBody||[],e.tableHeader&&(this.tableHeader=e.tableHeader)),this.paginationState.currentPage=Math.min(this.paginationState?.currentPage,this.paginationState?.totalPages)}handlePageChange(e){this.paginationState.currentPage=Math.max(1,Math.min(e,this.paginationState?.totalPages))}handlePageSizeChange(e){this.paginationState.itemsPerPage=e,this.paginationState.currentPage=1}getCurrentPage(){return this.paginationState.currentPage}getTotalPages(){return this.paginationState.totalPages}getPageSize(){return this.paginationState.itemsPerPage}render(){this.container&&(this.container.innerHTML="",this.attributes?.hasFooter&&[this.renderPageSizeControl(),this.renderPageInfo(),this.renderControls()].filter((e=>e&&" "!==e)).forEach((e=>this.container.appendChild(e))))}renderPageInfo(){const{currentPage:e,itemsPerPage:t,tableBody:n}=this.paginationState,{showResult:o,labels:r,classes:i}=this.attributes;if(!o)return null;let a;if(-1===t||-1===Number(t))a=r.showingAll.replace("{total}",n?.length);else{const o=(e-1)*t,i=Math.min(e*t,n?.length);a=r.showingRange.replace("{start}",o+1).replace("{end}",i).replace("{total}",n?.length)}return this.createElement("div",{className:i.info,textContent:a})}renderPageSizeControl(){const{showRowPerPage:e,itemPerPageContent:t,pageSizeOptions:n,classes:o}=this.attributes,{itemsPerPage:r}=this.paginationState;if(!e)return null;const i=n.map((e=>{const t="All"===e?-1:e;return this.createElement("option",{value:t,textContent:e,selected:t===Number(r)})})),a=this.createElement("select",{},i);return a.addEventListener("change",(e=>this.handlePageSizeChange(Number(e?.target?.value)))),this.createElement("div",{className:o.pageSize},[this.createElement("label",{textContent:`${t}:`}),a])}renderControls(){const{currentPage:e,totalPages:t}=this.paginationState,{showPaginationControl:n,prevFirstIcon:o,prevIcon:r,nextIcon:i,nextEndIcon:a,labels:s,classes:l}=this.attributes;if(!n)return null;const c=[this.createButton(o,(()=>this.handlePageChange(1)),1===e),this.createButton(r,(()=>this.handlePageChange(e-1)),1===e),this.createElement("span",{className:l.text,textContent:s.pageOf.replace("{current}",e).replace("{total}",t)}),this.createButton(i,(()=>this.handlePageChange(e+1)),e>=t),this.createButton(a,(()=>this.handlePageChange(t)),e>=t)];return this.createElement("div",{className:l.controls},c)}createButton(e,t,n){const{classes:o}=this.attributes,r=this.createElement("button",{disabled:n,className:o.button,onclick:t});if(e?.src){const t=e.src.replace(/<svg([^>]*)class="([^"]*)"([^>]*)>|<svg([^>]*)>/,((e,t,n,r,i)=>void 0!==n?`<svg${t}class="${n} ${o.icon}"${r}>`:`<svg${i} class="${o.icon}">`)).replace(/<svg([^>]*)>/,((e,t)=>t.includes("width")&&t.includes("height")?`<svg${t}>`:`<svg${t} width="16" height="16">`)),n=document.createElement("span");n.innerHTML=t,r.append(n.firstChild)}else r.textContent="Button";return r}createElement(e,t={},n=[]){const o=document.createElement(e);return Object.assign(o,t),[].concat(n).forEach((e=>{e instanceof Node?o.appendChild(e):"string"==typeof e&&o.appendChild(document.createTextNode(e))})),o}destroy(){this.container&&(this.container.innerHTML=""),this.container=null,this.onUpdate=null,this.originalTableBody=null,this.paginationState=null}},applyStyle:(e,t,n)=>{if(!t?.length||!n?.length)return[];const{backgroundGenerator:o,getColor:r}=window?.tableBuilder?.helpers||{},i=[],a=n.map(((e,t)=>({index:t,name:("string"==typeof e?e:e?.title)?.toLowerCase()?.replace(/\s+/g,"_")})));for(const n of t){const t=a.find((e=>e.name===n?.selectedColumn));if(!t)continue;const s=t.index+1,l=o?.(n?.columnBackground)?.background,c=r?.(n?.columnColor);if(!l&&!c)continue;const u=[`.${e} table thead tr > th:nth-of-type(${s})`,`.${e} table tbody tr > td:nth-of-type(${s})`,`.${e} table tfoot tr > td:nth-of-type(${s})`].join(", ");i.push({selector:u,background:l,color:c})}return i},useTableFreeInitialization:(e,t)=>{const n=(0,h.useRef)(null);(0,h.useEffect)((()=>{if(!e?.blockClass||!t)return;const{freezeSettings:o,tableConditionalFormat:r,blockClass:i,enableFreeze:a}=e,s=(window.frames["editor-canvas"]||window).document.querySelector(`.${i} table`);try{a?o&&s&&(n.current?.destroy(),n.current=new _(s,o)):(n.current?.destroy(),n.current=null),r&&L({data:r,element:i})}catch(e){console.error("Table init error:",e)}return()=>{n.current?.destroy(),n.current=null}}),[e?.freezeSettings,e?.enableFreeze,e?.tableConditionalFormat,e?.blockClass,e?.rowCount,e?.columnCount,t])},useTableProInitialization:e=>{const t=(0,h.useRef)(null);(0,h.useEffect)((()=>{if(e?.blockClass&&e?.tableDataset)return(()=>{const{freezeSettings:n,tableConditionalFormat:o,blockClass:r,enableFreeze:i}=e,a=(window.frames["editor-canvas"]||window).document.querySelector(`.${r} table`);a&&setTimeout((()=>{try{i?n&&(t.current?.destroy(),t.current=new _(a,n)):(t.current?.destroy(),t.current=null),o&&L({data:o,element:r})}catch(e){console.error("Table init error:",e)}}),200)})(),()=>{t.current?.destroy(),t.current=null}}),[e?.blockClass,e?.freezeSettings,e?.enableFreeze,e?.tableConditionalFormat,e?.tableDataset])}})})()})(); |
|
1
|
+(()=>{var e={371(e,t,o){var n;!function(){function i(e,t,o){return e.call.apply(e.bind,arguments)}function r(e,t,o){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var o=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(o,n),e.apply(t,o)}}return function(){return e.apply(t,arguments)}}function s(e,t,o){return(s=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?i:r).apply(null,arguments)}var a=Date.now||function(){return+new Date};function l(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var c=!!window.FontFace;function u(e,t,o,n){if(t=e.c.createElement(t),o)for(var i in o)o.hasOwnProperty(i)&&("style"==i?t.style.cssText=o[i]:t.setAttribute(i,o[i]));return n&&t.appendChild(e.c.createTextNode(n)),t}function d(e,t,o){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(o,e.lastChild)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function g(e,t,o){t=t||[],o=o||[];for(var n=e.className.split(/\s+/),i=0;i<t.length;i+=1){for(var r=!1,s=0;s<n.length;s+=1)if(t[i]===n[s]){r=!0;break}r||n.push(t[i])}for(t=[],i=0;i<n.length;i+=1){for(r=!1,s=0;s<o.length;s+=1)if(n[i]===o[s]){r=!0;break}r||t.push(n[i])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function h(e,t){for(var o=e.className.split(/\s+/),n=0,i=o.length;n<i;n++)if(o[n]==t)return!0;return!1}function p(e,t,o){function n(){a&&i&&r&&(a(s),a=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var i=!1,r=!0,s=null,a=o||null;c?(t.onload=function(){i=!0,n()},t.onerror=function(){i=!0,s=Error("Stylesheet failed to load"),n()}):setTimeout(function(){i=!0,n()},0),d(e,"head",t)}function m(e,t,o,n){var i=e.c.getElementsByTagName("head")[0];if(i){var r=u(e,"script",{src:t}),s=!1;return r.onload=r.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,o&&o(null),r.onload=r.onreadystatechange=null,"HEAD"==r.parentNode.tagName&&i.removeChild(r))},i.appendChild(r),setTimeout(function(){s||(s=!0,o&&o(Error("Script load timeout")))},n||5e3),r}return null}function b(){this.a=0,this.c=null}function v(e){return e.a++,function(){e.a--,w(e)}}function k(e,t){e.c=t,w(e)}function w(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 o=(t||"n4").match(/^([nio])([1-9])$/i);o&&(this.a=o[1],this.f=parseInt(o[2],10))}function $(e){var t=[];e=e.split(/,\s*/);for(var o=0;o<e.length;o++){var n=e[o].replace(/['"]/g,"");-1!=n.indexOf(" ")||/^\d/.test(n)?t.push("'"+n+"'"):t.push(n)}return t.join(",")}function x(e){return e.a+e.f}function T(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function z(e){var t=4,o="n",n=null;return e&&((n=e.match(/(normal|oblique|italic)/i))&&n[1]&&(o=n[1].substr(0,1).toLowerCase()),(n=e.match(/([1-9]00|normal|bold)/i))&&n[1]&&(/bold/i.test(n[1])?t=7:/[1-9]00/.test(n[1])&&(t=parseInt(n[1].substr(0,1),10)))),o+t}function P(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 C(e){if(e.g){var t=h(e.f,e.a.c("wf","active")),o=[],n=[e.a.c("wf","loading")];t||o.push(e.a.c("wf","inactive")),g(e.f,o,n)}j(e,"inactive")}function j(e,t,o){e.j&&e.h[t]&&(o?e.h[t](o.c,x(o)):e.h[t]())}function _(){this.c={}}function D(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function A(e){d(e.c,"body",e.a)}function N(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:"+$(e.c)+";font-style:"+T(e)+";font-weight:"+e.f+"00;"}function E(e,t,o,n,i,r){this.g=e,this.j=t,this.a=n,this.c=o,this.f=i||3e3,this.h=r||void 0}function O(e,t,o,n,i,r,s){this.v=e,this.B=t,this.c=o,this.a=n,this.s=s||"BESbswy",this.f={},this.w=i||3e3,this.u=r||null,this.m=this.j=this.h=this.g=null,this.g=new D(this.c,this.s),this.h=new D(this.c,this.s),this.j=new D(this.c,this.s),this.m=new D(this.c,this.s),e=N(e=new S(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=N(e=new S(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=N(e=new S("serif",x(this.a))),this.j.a.style.cssText=e,e=N(e=new S("sans-serif",x(this.a))),this.m.a.style.cssText=e,A(this.g),A(this.h),A(this.j),A(this.m)}y.prototype.c=function(e){for(var t=[],o=0;o<arguments.length;o++)t.push(arguments[o].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},E.prototype.start=function(){var e=this.c.o.document,t=this,o=a(),n=new Promise(function(n,i){!function r(){a()-o>=t.f?i():e.fonts.load(function(e){return T(e)+" "+e.f+"00 300px "+$(e.c)}(t.a),t.h).then(function(e){1<=e.length?n():setTimeout(r,25)},function(){i()})}()}),i=null,r=new Promise(function(e,o){i=setTimeout(o,t.f)});Promise.race([r,n]).then(function(){i&&(clearTimeout(i),i=null),t.g(t.a)},function(){t.j(t.a)})};var I={D:"serif",C:"sans-serif"},M=null;function F(){if(null===M){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);M=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return M}function W(e,t,o){for(var n in I)if(I.hasOwnProperty(n)&&t===e.f[I[n]]&&o===e.f[I[n]])return!0;return!1}function H(e){var t,o=e.g.a.offsetWidth,n=e.h.a.offsetWidth;(t=o===e.f.serif&&n===e.f["sans-serif"])||(t=F()&&W(e,o,n)),t?a()-e.A>=e.w?F()&&W(e,o,n)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?L(e,e.v):L(e,e.B):function(e){setTimeout(s(function(){H(this)},e),50)}(e):L(e,e.v)}function L(e,t){setTimeout(s(function(){f(this.g.a),f(this.h.a),f(this.j.a),f(this.m.a),t(this.a)},e),0)}function B(e,t,o){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=o}O.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=a(),H(this)};var V=null;function G(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&g(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),j(e,"active")):C(e.a))}function R(e){this.j=e,this.a=new _,this.h=0,this.f=this.g=!0}function X(e,t,o,n,i){var r=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=i||null,a=n||{};if(0===o.length&&r)C(t.a);else{t.f+=o.length,r&&(t.j=r);var l,c=[];for(l=0;l<o.length;l++){var u=o[l],d=a[u.c],f=t.a,h=u;if(f.g&&g(f.f,[f.a.c("wf",h.c,x(h).toString(),"loading")]),j(f,"fontloading",h),f=null,null===V)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var p=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);V=h?42<parseInt(h[1],10):!p}else V=!1;f=V?new E(s(t.g,t),s(t.h,t),t.c,u,t.s,d):new O(s(t.g,t),s(t.h,t),t.c,u,t.s,e,d),c.push(f)}for(l=0;l<c.length;l++)c[l].start()}},0)}function Y(e,t){this.c=e,this.a=t}function U(e,t){this.c=e,this.a=t}function q(e,t){this.c=e||J,this.a=[],this.f=[],this.g=t||""}B.prototype.g=function(e){var t=this.a;t.g&&g(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")]),j(t,"fontactive",e),this.m=!0,G(this)},B.prototype.h=function(e){var t=this.a;if(t.g){var o=h(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),n=[],i=[t.a.c("wf",e.c,x(e).toString(),"loading")];o||n.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),g(t.f,n,i)}j(t,"fontinactive",e),G(this)},R.prototype.load=function(e){this.c=new l(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,o){var n=[],i=o.timeout;!function(e){e.g&&g(e.f,[e.a.c("wf","loading")]),j(e,"loading")}(t),n=function(e,t,o){var n,i=[];for(n in t)if(t.hasOwnProperty(n)){var r=e.c[n];r&&i.push(r(t[n],o))}return i}(e.a,o,e.c);var r=new B(e.c,t,i);for(e.h=n.length,t=0,o=n.length;t<o;t++)n[t].load(function(t,o,n){X(e,r,t,o,n)})}(this,new P(this.c,e),e)},Y.prototype.load=function(e){function t(){if(r["__mti_fntLst"+n]){var o,i=r["__mti_fntLst"+n](),s=[];if(i)for(var a=0;a<i.length;a++){var l=i[a].fontfamily;null!=i[a].fontStyle&&null!=i[a].fontWeight?(o=i[a].fontStyle+i[a].fontWeight,s.push(new S(l,o))):s.push(new S(l))}e(s)}else setTimeout(function(){t()},50)}var o=this,n=o.a.projectId,i=o.a.version;if(n){var r=o.c.o;m(this.c,(o.a.api||"https://fast.fonts.net/jsapi")+"/"+n+".js"+(i?"?v="+i:""),function(i){i?e([]):(r["__MonotypeConfiguration__"+n]=function(){return o.a},t())}).id="__MonotypeAPIScript__"+n}else e([])},U.prototype.load=function(e){var t,o,n=this.a.urls||[],i=this.a.families||[],r=this.a.testStrings||{},s=new b;for(t=0,o=n.length;t<o;t++)p(this.c,n[t],v(s));var a=[];for(t=0,o=i.length;t<o;t++)if((n=i[t].split(":"))[1])for(var l=n[1].split(","),c=0;c<l.length;c+=1)a.push(new S(n[0],l[c]));else a.push(new S(n[0]));k(s,function(){e(a,r)})};var J="https://fonts.googleapis.com/css";function K(e){this.f=e,this.a=[],this.c={}}var Q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Z={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 oe(e,t){this.c=e,this.a=t}var ne={Arimo:!0,Cousine:!0,Tinos:!0};function ie(e,t){this.c=e,this.a=t}function re(e,t){this.c=e,this.f=t,this.a=[]}oe.prototype.load=function(e){var t=new b,o=this.c,n=new q(this.a.api,this.a.text),i=this.a.families;!function(e,t){for(var o=t.length,n=0;n<o;n++){var i=t[n].split(":");3==i.length&&e.f.push(i.pop());var r="";2==i.length&&""!=i[1]&&(r=":"),e.a.push(i.join(r))}}(n,i);var r=new K(i);!function(e){for(var t=e.f.length,o=0;o<t;o++){var n=e.f[o].split(":"),i=n[0].replace(/\+/g," "),r=["n4"];if(2<=n.length){var s;if(s=[],a=n[1])for(var a,l=(a=a.split(",")).length,c=0;c<l;c++){var u;if((u=a[c]).match(/^[\w-]+$/))if(null==(d=te.exec(u.toLowerCase())))u="";else{if(u=null==(u=d[2])||""==u?"n":ee[u],null==(d=d[1])||""==d)d="4";else var d=Z[d]||(isNaN(d)?"4":d.substr(0,1));u=[u,d].join("")}else u="";u&&s.push(u)}0<s.length&&(r=s),3==n.length&&(s=[],0<(n=(n=n[2])?n.split(","):s).length&&(n=Q[n[0]])&&(e.c[i]=n))}for(e.c[i]||(n=Q[i])&&(e.c[i]=n),n=0;n<r.length;n+=1)e.a.push(new S(i,r[n]))}}(r),p(o,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,o=[],n=0;n<t;n++)o.push(e.a[n].replace(/ /g,"+"));return t=e.c+"?family="+o.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(n),v(t)),k(t,function(){e(r.a,r.c,ne)})},ie.prototype.load=function(e){var t=this.a.id,o=this.c.o;t?m(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)e([]);else if(o.Typekit&&o.Typekit.config&&o.Typekit.config.fn){t=o.Typekit.config.fn;for(var n=[],i=0;i<t.length;i+=2)for(var r=t[i],s=t[i+1],a=0;a<s.length;a++)n.push(new S(r,s[a]));try{o.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(n)}},2e3):e([])},re.prototype.load=function(e){var t=this.f.id,o=this.c.o,n=this;t?(o.__webfontfontdeckmodule__||(o.__webfontfontdeckmodule__={}),o.__webfontfontdeckmodule__[t]=function(t,o){for(var i=0,r=o.fonts.length;i<r;++i){var s=o.fonts[i];n.a.push(new S(s.name,z("font-weight:"+s.weight+";font-style:"+s.style)))}e(n.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 se=new R(window);se.a.c.custom=function(e,t){return new U(t,e)},se.a.c.fontdeck=function(e,t){return new re(t,e)},se.a.c.monotype=function(e,t){return new Y(t,e)},se.a.c.typekit=function(e,t){return new ie(t,e)},se.a.c.google=function(e,t){return new oe(t,e)};var ae={load:s(se.load,se)};void 0===(n=function(){return ae}.call(t,o,t,e))||(e.exports=n)}()}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};o.r(e),o.d(e,{GkitLocalStoreGetData:()=>N,GkitLocalStoreSetData:()=>A,backgroundGenerator:()=>v,baseBreakpoint:()=>O,boxControlUnit:()=>y,colorsGroup:()=>w,fillBackgroundGenerator:()=>k,filterStyles:()=>fe,generatePageSettingsCssText:()=>he,generatePlaceholder:()=>Se,generateStyles:()=>ge,getAttrDependencies:()=>x,getAttributes:()=>ie,getBorderValue:()=>a,getBoxShadowValue:()=>s,getBoxValue:()=>l,getBreakpointLabel:()=>ve,getCSSFilters:()=>f,getColor:()=>i,getCookie:()=>ce,getEditorCanvasDocument:()=>Y,getEditorDocuments:()=>U,getGradient:()=>r,getMultipleTransform:()=>h,getMultipleTransformOrigin:()=>p,getMultipleTransition:()=>d,getSliderValue:()=>c,getTextStrokeValue:()=>m,getTypographyValue:()=>u,gkitDomFindChild:()=>oe,gkitDomFindParent:()=>te,gkitDomNextSibling:()=>Z,gkitDomPrevSibling:()=>ee,gkitResponsiveValue:()=>T,gkitSwiper:()=>Q,hasCSS:()=>me,htmlTags:()=>$,isNull:()=>n,isValidCssValue:()=>j,linkGenerator:()=>D,moveObjectToTop:()=>ne,onScrollAnimate:()=>J,onScrollAnimateIframe:()=>K,orderSortedValue:()=>g,overflowOptions:()=>S,overlayGenerator:()=>E,parseCSS:()=>M,responsiveHelper:()=>F,responsiveTypographyHelper:()=>W,setAttributes:()=>re,setCookie:()=>le,truncateCharacter:()=>de,truncateWords:()=>H,useBlockStyles:()=>pe,useDeviceList:()=>ke,useDeviceType:()=>V,useFontFamilyinBlock:()=>q,useHasProActive:()=>ue,useModuleStyles:()=>ye});const t=(e,t,o)=>{const n=wp.data.select("core/block-editor").getSettings(),i=n&&n.__experimentalFeatures?n.__experimentalFeatures.color:{},r=i&&i[t]?i[t]:{};return Object.keys(r).map(t=>r[t].find(t=>t&&t[o]===e)).filter(e=>void 0!==e)[0]},n=e=>null==e||"object"==typeof e&&0===Object.keys(e).length||"string"==typeof e&&0===e.trim().length||!1===e,i=e=>{if(!e)return;if(e.startsWith("#")||e.startsWith("rgba")||e.startsWith("var("))return e;const[o,n]=e.split(","),i=t(o,"palette","slug");return i?.slug?`var(--wp--preset--color--${i.slug}, ${i.color})`:n||void 0},r=e=>{if(!e)return;if(e.startsWith("linear-gradient(")||e?.startsWith("radial-gradient("))return e;const o=e.split(/,(.+)/).filter(Boolean),n=t(o[0],"gradients","slug");return n?`var(--wp--preset--gradient--${n.slug}, ${n.gradient})`:o[1]||void 0},s=e=>{if(!e||"object"!=typeof e||0===Object.keys(e).length)return;if(e?.selectedType||(e={...e,selectedType:"text"}),e?.slug&&e?.shadow)return`var(--wp--preset--shadow--${e.slug}, ${e.shadow})`;if(![e?.horizontal,e?.vertical,e?.blur,e?.spread,e?.color].some(e=>null!=e&&""!==e&&("object"!=typeof e||null!=e?.size)))return;const t=e=>"object"==typeof e&&void 0!==e?.size?`${e.size}px`:"number"==typeof e?`${e}px`:e?`${e}`:"0px",o=t(e?.horizontal),n=t(e?.vertical),r=t(e?.blur),s=t(e?.spread),a=e?.color?i(e.color):"";let l=`${o} ${n} ${r} ${s}`;a&&(l+=` ${a}`),"inset"===e?.position&&(l=`inset ${l}`),l=l.trim();let c,u=`${o} ${n} ${r}`;return a&&(u+=` ${a}`),u=u.trim(),c="box"===e.selectedType?l:"text"===e.selectedType?u:void 0,c||void 0},a=e=>{if(n(e))return{};const t=(e,t,o)=>{if(n(e))return null;const r=n(t)?"solid":t,s=n(o)?void 0:i(o);return`${e} ${r} ${n(s)?"currentColor":s}`};if(!n(e?.width)){const o=t(e.width,e.style,e.color);if(o)return{border:o}}const o={};let r=!1;return["top","right","bottom","left"].forEach(i=>{const s=e?.[i];if(s&&"object"==typeof s&&!n(s?.width)){const e=t(s.width,s.style,s.color);e&&(o[`border-${i}`]=e,r=!0)}}),r?o:{}},l=(e={},t="")=>{if(!e||"object"!=typeof e)return{};const{top:o,right:n,bottom:i,left:r}=e,s=e=>void 0!==e&&""!==e&&null!==e,a=[o,n,i,r].filter(s).length;if(0===a)return{};if(4===a){let e="";return e=o===i&&o===n&&o===r?o:o===i&&r===n?`${o} ${n}`:`${o} ${n} ${i} ${r}`,{[t]:e}}const l={},c={top:o,right:n,bottom:i,left:r};if("border-radius"!==t)Object.entries(c).forEach(([e,o])=>{s(o)&&(l[`${t}-${e}`]=o)});else{const e={"border-top-left-radius":o,"border-top-right-radius":n,"border-bottom-right-radius":i,"border-bottom-left-radius":r};Object.entries(e).forEach(([e,t])=>{s(t)&&(l[e]=t)})}return l},c=e=>{let t="";return t=n(e?.size)||n(e?.unit)?!n(e?.size)&&n(e?.unit)?`${e?.size}`:void 0:`${e?.size}${e?.unit}`,t},u=(e,t)=>{const o=o=>c(e?.[o]?.[t]),n={"font-size":o("fontSize"),"line-height":o("lineHeight"),"letter-spacing":o("letterSpacing"),"word-spacing":o("wordSpacing")};return"Desktop"===t?{"font-family":e?.fontFamily?.value||void 0,"font-style":e?.fontStyle||void 0,"font-weight":e?.fontWeight?.value||void 0,"text-decoration":e?.textDecoration||void 0,"text-transform":e?.textTransform||void 0,...n}:n},d=(...e)=>{let t=[];return Object.keys(e).length>0&&e.forEach((e,o)=>{if(e?.duration?.size||e?.isDeclared&&e?.duration){let o=e?.isDeclared?"":"s";t.push(`${e?.name} ${e?.duration?.size||e?.duration}${o} ${e?.animation}`)}}),t.length>0?t.join(", "):void 0},f=e=>{let t="";return!n(e?.blur?.size)&&(t+=`blur(${e?.blur?.size}px) `),!n(e?.brightness?.size)&&(t+=`brightness(${e?.brightness?.size}%) `),!n(e?.contrast?.size)&&(t+=`contrast(${e?.contrast?.size}%) `),!n(e?.saturation?.size)&&(t+=`saturate(${e?.saturation?.size}%) `),!n(e?.hue?.size)&&(t+=`hue-rotate(${e?.hue?.size}deg) `),!n(e?.grayscale?.size)&&(t+=`grayscale(${e?.grayscale?.size}%) `),!n(e?.invert?.size)&&(t+=`invert(${e?.invert?.size}%) `),!n(e?.sepia?.size)&&(t+=`sepia(${e?.sepia?.size}%) `),n(t)?void 0:t},g=(e=[],t,o)=>{if(!t)return[];const n=o.startsWith(".")?o:`.${o}`,i=e?.map((e,t)=>({selector:`${n} .${e.class}`,order:t}));return i},h=(e,t)=>{if(t&&0!==Object.entries(t).length)return Object.entries(t).flatMap(([o,n])=>{const{rotate:i,rotateHover:r,scale:s,scaleHover:a}=t,l=i?.common3DRotate,u=r?.common3DRotateHover,d=s?.commonKeepProportions,f=a?.commonKeepProportionsHover,g=(t,o,i)=>{const r=[t+e].toString(),s=n&&void 0!==n[r],a=n&&void 0!==c(n[r]);return s&&o&&a?`${i}(${c(n[r])})`:!n||"horizontal"!=n[t]&&"vertical"!=n[t]?void 0:`${i}(calc(-1))`};return[g("commonRotate",!l,"rotateZ"),g("commonRotateX",l,"rotateX"),g("commonRotateY",l,"rotateY"),g("perspective",l,"perspective"),g("commonOffsetX",!0,"translateX"),g("commonOffsetY",!0,"translateY"),g("commonScale",d,"scale"),g("commonScaleX",!d,"scaleX"),g("commonScaleY",!d,"scaleY"),g("commonSkewX",!0,"skewX"),g("commonSkewY",!0,"skewY"),g("commonFlipHorizontal",!0,"scaleX"),g("commonFlipVertical",!0,"scaleY"),g("commonRotateHover",!u,"rotateZ"),g("commonRotateXHover",u,"rotateX"),g("commonRotateYHover",u,"rotateY"),g("perspectiveHover",u,"perspective"),g("commonOffsetXHover",!0,"translateX"),g("commonOffsetYHover",!0,"translateY"),g("commonScaleHover",f,"scale"),g("commonScaleXHover",!f,"scaleX"),g("commonScaleYHover",!f,"scaleY"),g("commonSkewXHover",!0,"skewX"),g("commonSkewYHover",!0,"skewY"),g("commonFlipHorizontalHover",!0,"scaleX"),g("commonFlipVerticalHover",!0,"scaleY")]}).filter(e=>void 0!==e).join(" ")||void 0},p=(...e)=>{let t=[];return e&&e.forEach(e=>{e?.value&&t.push(`${e.value}`)}),t.length>0?t.join(" "):void 0},m=(e,t)=>{const{width:o,color:n}=e||{};if(o&&"object"==typeof o){const{size:e,unit:r}=o[t]?o[t]:{};if(null!=e&&!isNaN(e))return`${e}${r||"px"} ${i(n)||""}`.trim()}},b=window.wp.hooks,v=(e,t="Desktop")=>{let o={background:"",size:""};return"image"!==e?.backgroundType||n(e?.backgroundImage?.url)&&n(e?.backgroundImage?.dynamicContentType)||(o.background+=(0,b.applyFilters)("gutenkit.backgroundImage.url",`url(${e?.backgroundImage?.imageUrl?.[t]?e?.backgroundImage?.imageUrl?.[t]:e?.backgroundImage?.url})`,e?.backgroundImage),!n(e?.backgroundRepeat)&&(o.background+=`${e?.backgroundRepeat} `),!n(e?.backgroundAttachment)&&(o.background+=`${e?.backgroundAttachment} `),!n(e?.backgroundPosition?.[t])&&"custom"!==e?.backgroundPosition?.[t]&&(o.background+=`${e?.backgroundPosition?.[t]}`),!n(e?.backgroundPosition?.[t])&&"custom"===e?.backgroundPosition?.[t]&&!n(e?.customPositionX?.[t])&&!n(e?.customPositionY?.[t])&&(o.background+=`${c(e?.customPositionX?.[t])} ${c(e?.customPositionY?.[t])}`),!n(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(o.size+=`${e?.backgroundSize}`),!n(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(o.size+=`${c(e?.customSize?.[t])} auto`)),"classic"!==e?.backgroundType||n(e?.backgroundColor)||(o.background+=`${i(e?.backgroundColor)} `),"gradient"!==e?.backgroundType||n(e?.gradient)||(o.background+=`${r(e?.gradient)} `),n(o?.background)?o.background=void 0:o.background=o.background,n(o?.size)?o.size=void 0:o.size=o.size,o},k=(e,t="Desktop")=>{let o={};return"classic"===e?.backgroundType&&(o["background-color"]=i(e?.backgroundColor)),"gradient"===e?.backgroundType&&(o["background-image"]=r(e?.gradient)),"image"===e?.backgroundType&&(n(e?.backgroundImage?.url)&&n(e?.backgroundImage?.dynamicContentType)||(o["background-image"]=(0,b.applyFilters)("gutenkit.backgroundImage.url",`url(${e?.backgroundImage?.imageUrl?.[t]?e?.backgroundImage?.imageUrl?.[t]:e?.backgroundImage?.url})`,e?.backgroundImage)),!n(e?.backgroundAttachment)&&(o["background-attachment"]=e?.backgroundAttachment),!n(e?.backgroundPosition?.[t])&&"custom"!==e?.backgroundPosition?.[t]&&(o["background-position"]=e?.backgroundPosition?.[t]),!n(e?.backgroundPosition?.[t])&&"custom"===e?.backgroundPosition?.[t]&&!n(e?.customPositionX)&&!n(e?.customPositionY)&&(o["background-position"]=`${c(e?.customPositionX?.[t])} ${c(e?.customPositionY?.[t])}`),!n(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(o["background-size"]=e?.backgroundSize),!n(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(o["background-size"]=`${c(e?.customSize?.[t])} auto`),!n(e?.backgroundRepeat)&&(o["background-repeat"]=e?.backgroundRepeat)),o},w=[{color:"#72aee6",name:"Blue 20"},{color:"#3582c4",name:"Blue 40"},{color:"#e65054",name:"Red 40"},{color:"#8a2424",name:"Red 70"}],y=[{value:"px",label:"px"},{value:"em",label:"em"},{value:"%",label:"%"}],S=[{label:"Default",value:""},{label:"Hidden",value:"hidden"},{label:"Auto",value:"auto"}],$=[{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"},{label:"Footer",value:"footer"}],x=(e,t=!1)=>{if(e){let o="";o=t?Object.keys(e).map(e=>"blocksCSS"!==e?"attributes?."+e+",\n":"").join(""):Object.keys(e).filter(e=>"blocksCSS"!==e).join(", \n"),navigator.clipboard.writeText(o).then(()=>{console.info("Copied to clipboard")}).catch(()=>{console.warn("Something went wrong")})}},T=(e,t,o)=>{if(o&&e&&t){if(Array.isArray(t)){let n=e[t[0]];if(n&&n[t[1]])return n[t[1]][o]}return e[t+o]}},z=new Set(["px","em","rem","%","vh","vw"]),P=/(?:^|[\s,])[a-zA-Z-]+\(\s*\)/,C=new Set(["false","true","undefined","null","NaN"]),j=e=>{if(null==e||""===e)return!1;if("boolean"==typeof e)return!1;if("object"==typeof e)return!1;if("number"==typeof e)return!Number.isNaN(e);const t=String(e).trim();return!(""===t||C.has(t)||t.includes("undefined")||t.includes("NaN")||z.has(t)||P.test(t))},_=window.wp.url,D=e=>{let t=e?.url;!t||t.startsWith("http:")&&t.startsWith("https:")&&!t.startsWith("#")||(t=(0,_.prependHTTP)(t));let o={href:t,onClick:e=>e.preventDefault()};return e?.newTab&&(o.target="_blank",o.rel="noopener"),e?.noFollow&&(o.rel="_blank"==o.target?"nofollow noopener":"nofollow"),e?.customAttributes&&e?.customAttributes.length>0&&e?.customAttributes.forEach(e=>{const[t,n]=e.split("|");o[t]=n}),e?.isDynamicContent?(o["data-dynamic-content-url"]=JSON.stringify({...e,url:t}),o):o?.href?o:null},A=(e,t,o=[])=>{const n=o;n.length>0?n.includes(t)&&localStorage.setItem(e,t):localStorage.setItem(e,t)},N=e=>e&&localStorage.getItem(e),E=(e,t="Desktop")=>{let o={};if("gradient"===e?.backgroundType){const t=r(e?.gradient);n(t)||(o["background-image"]=t)}if("classic"===e?.backgroundType){if(n(e?.backgroundColor)||(o["background-color"]=i(e?.backgroundColor)),!n(e?.backgroundImage?.imageUrl)||!n(e?.backgroundImage?.dynamicContentType)){const i=e?.backgroundImage?.imageUrl?.[t]?e.backgroundImage.imageUrl[t]:e.backgroundImage?.url,r=(0,b.applyFilters)("gutenkit.backgroundImage.url",`url(${i})`,e?.backgroundImage);!i&&n(e?.backgroundImage?.dynamicContentType)||r&&!r.includes("undefined")&&(o["background-image"]=r)}n(e?.backgroundAttachment)||(o["background-attachment"]=e?.backgroundAttachment),n(e?.backgroundPosition?.[t])||"custom"===e?.backgroundPosition[t]||(o["background-position"]=e?.backgroundPosition[t]),n(e?.backgroundPosition?.[t])||"custom"!==e?.backgroundPosition[t]||n(e?.customPositionX)||n(e?.customPositionY)||(o["background-position"]=`${c(e?.customPositionX[t])} ${c(e?.customPositionY[t])}`),n(e?.backgroundSize)||"custom"===e?.backgroundSize||(o["background-size"]=e?.backgroundSize),n(e?.backgroundSize)||"custom"!==e?.backgroundSize||(o["background-size"]=`${c(e?.customSize[t])} auto`),n(e?.backgroundRepeat)||(o["background-repeat"]=e?.backgroundRepeat)}return n(e?.opacity)||(o.opacity=`${e?.opacity?.size}`),n(e?.blendMode)||(o["mix-blend-mode"]=e?.blendMode),n(e?.cssFilters)||(o.filter=f(e?.cssFilters)),Object.keys(o).length?o:void 0},O={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>'},I=[O,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}],M=(e,t=I)=>{let o={};if(Array.isArray(e)){let[n,i,r=[]]=e;t.forEach(e=>{o[e?.slug]="base"===e?.value?[...n,...i(e?.slug)]:i(e?.slug)}),o.customStyles=r}else o=e;return{rawCSS:o,breakpoints:t}},F=(e,t,o,n)=>{n({[e+o]:t})},W=(e,t,o,n)=>{const i={...e};return{...i,[t]:{...i[t],[n]:o}}},H=function(e,t){if(!e)return"";const o=e.split(" ");if(t>=o.length)return e;const n=o.slice(0,t);return n.push("..."),n.join(" ")},L=window.wp.data,B=window.wp.editor,V=()=>{const{modules:e}=window?.gutenkit||{},t=e?.breakpoints,{deviceType:o}=(0,L.useSelect)(e=>{const o=e("gutenkit/global-store")?.getDeviceType,n=B.store?e(B.store)?.getDeviceType:void 0;return B.store?{deviceType:t?o?.():n?.()}:{deviceType:"Desktop"}},[]);return o||"Desktop"},G=window.wp.element;var R=o(371),X=o.n(R);const Y=()=>{const e=document.getElementsByTagName("iframe");for(const t of e){let e;try{e=t.contentDocument}catch(e){continue}if(e&&e!==document&&e.querySelector(".editor-styles-wrapper"))return e}return null},U=()=>{const e=Y();return e?[document,e]:[document]},q=(e=[])=>{(0,G.useEffect)(()=>{e.length=0},[]),(0,G.useEffect)(()=>{let t=[];if(e?.length>0&&e.forEach(e=>{let o={};!n(e?.fontFamily)&&(o.Font=e?.fontFamily?.value),!n(e?.fontWeight)&&(o.Condensed=e?.fontWeight?.value);let i="";!n(o?.Font)&&(i=o?.Font),!n(o?.Font)&&!n(o?.Condensed)&&(i+=":400,"+o?.Condensed),!n(i)&&t.push(i)}),0===t.length)return;const o={google:{families:[...t]}};X().load(o);const i=Y();i?.defaultView&&X().load({...o,context:i.defaultView})},[JSON.stringify(e)])},J=(e,t,o=document)=>{const n=o||document,i=(n.ownerDocument||n).defaultView;if(!i?.IntersectionObserver||"function"!=typeof n.querySelectorAll)return()=>{};const r=new i.IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting)try{t(e)}catch(e){console.warn(e)}})});return n.querySelectorAll(e).forEach(e=>r.observe(e)),()=>r.disconnect()},K=(e,t)=>J(e,t,Y()||document),Q=function(e,t,o=!1,n="Desktop",i=[],r={}){const s=e.querySelector(".swiper-pagination"),a=e.querySelector(".swiper-button-next"),l=e.querySelector(".swiper-button-prev"),{direction:c,speed:u,delay:d,loop:f,autoplay:g,pauseOnMouseEnter:h,allowTouchMove:p,effect:m}=t,b=(e,o,n,i)=>{for(let i=o;i>=0;i--){const o=t?.[`${e}${n[i]?.slug}`]?.size;if(void 0!==o)return o}return i},v={};let k=[];if(i&&i.length){const e=i.find(e=>"WideScreen"===e.slug);var w,y,S,$,x,T;k=i.filter(e=>"WideScreen"!==e.slug),k.forEach((e,t,o)=>{var n;const i=null!==(n=o[t+1]?.value)&&void 0!==n?n:"0";v[i]={slidesPerView:b("slidesPerView",t,k,1),slidesPerGroup:b("slidesPerGroup",t,k,1),spaceBetween:b("spaceBetween",t,k,10),slidesPerGroupSkip:Number(0)}}),e&&(v[e.value]={slidesPerView:null!==(w=null!==(y=t?.slidesPerViewWideScreen?.size)&&void 0!==y?y:t?.slidesPerViewDesktop?.size)&&void 0!==w?w:1,slidesPerGroup:null!==(S=null!==($=t?.slidesPerGroupWideScreen?.size)&&void 0!==$?$:t?.slidesPerGroupDesktop?.size)&&void 0!==S?S:1,spaceBetween:null!==(x=null!==(T=t?.spaceBetweenWideScreen?.size)&&void 0!==T?T:t?.spaceBetweenDesktop?.size)&&void 0!==x?x:10,slidesPerGroupSkip:Number(0)})}let z={direction:c||"horizontal",loop:f||!1,speed:u||1e3,autoplay:g&&{pauseOnMouseEnter:h||!1,delay:d||3e3},allowTouchMove:p||!0,draggable:!0,effect:m||"slide",focusableElements:'a, button, input, textarea, select, details, [tabindex="0"]',pagination:{el:s,clickable:!0},navigation:{nextEl:a,prevEl:l},slidesPerGroupSkip:Number(0),...r};if(o){const{gkitResponsiveValue:e}=window.GkitHelpers;z={...z,slidesPerView:e(t,"slidesPerView",n)?.size||1,slidesPerGroup:e(t,"slidesPerGroup",n)?.size||1,spaceBetween:e(t,"spaceBetween",n)?.size||10},z.allowTouchMove=!1}else{const e=k.length-1;e>=0&&(z.slidesPerView=b("slidesPerView",e,k,1),z.slidesPerGroup=b("slidesPerGroup",e,k,1),z.spaceBetween=b("spaceBetween",e,k,10)),z.breakpoints=v}return new Swiper(e,z)},Z=function(e,t){let o=e.nextElementSibling;if(t){const e=t.startsWith("."),n=t.startsWith("#");for(;null!==o;){if(e&&o.classList.contains(t.slice(1))||n&&o.id===t.slice(1)||!e&&!n&&o.tagName.toLowerCase()===t.toLowerCase())return o;o=o.nextElementSibling}return null}return o},ee=function(e,t){let o=e.previousElementSibling;if(t){const e=t.startsWith("."),n=t.startsWith("#");for(;null!==o;){if(e&&o.classList.contains(t.slice(1))||n&&o.id===t.slice(1)||!e&&!n&&o.tagName.toLowerCase()===t.toLowerCase())return o;o=o.previousElementSibling}return null}return o},te=function(e,t){const o=t.startsWith("."),n=t.startsWith("#");let i=e.parentElement;for(;null!==i;){if(o&&i.classList.contains(t.slice(1))||n&&i.id===t.slice(1)||!o&&!n&&i.tagName.toLowerCase()===t.toLowerCase())return i;i=i.parentElement}return null},oe=function(e,t){const o=Array.from(e.children);if(t){const e=t.startsWith("."),n=t.startsWith("#");return o.filter(o=>!!(e&&o.classList.contains(t.slice(1))||n&&o.id===t.slice(1)||!e&&!n&&o.tagName.toLowerCase()===t.toLowerCase()))}return o},ne=function(e,t){const o=e.findIndex(e=>e.slug===t);if(-1!==o){const[t]=e.splice(o,1);e.unshift(t)}return e},ie=e=>{const{getBlockAttributes:t}=(0,L.select)("core/block-editor");return t(e)},re=(e,t)=>{const{updateBlockAttributes:o}=(0,L.dispatch)("core/block-editor");o(e,t)},se=window.wp.apiFetch;var ae=o.n(se);const le=function(e,t,o){let n=`${e}=${t}; path=/`;if(o){const e=new Date;e.setTime(e.getTime()+60*o*60*1e3),n+=`; expires=${e.toUTCString()}`}document.cookie=n},ce=function(e){const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length?t.pop().split(";").shift():null};function ue({windowVariable:e="gutenkit",hookName:t="gutenkit.is-pro-active",cookieName:o="isValidLicense",apiPath:n="gutenkit"}={}){const[i,r]=(0,G.useState)(()=>"true"===ce(o)),{has_pro:s}=window?.[e]||{};return(0,G.useEffect)(()=>{s&&(async()=>{const e=ce(o);e?r("true"===e):setTimeout(async()=>{try{const e=await ae()({path:`/${n}/v1/license/status`});"valid"===e?.status?(r(!0),le(o,"true",12)):(r(!1),le(o,"false",12))}catch(e){console.error("Error fetching license status:",e)}},2e3)})()},[s]),(0,G.useMemo)(()=>(0,b.applyFilters)(t,i),[i])}const de=function(e,t){return t>=e?.length?e:e?.slice(0,t)+"..."},fe=e=>{const t=[];for(const o in e){const n=e[o];j(n)&&t.push(`${o}: ${n};`)}return t.join(" ")},ge=(e,t)=>{const o={};for(let n=0;n<t.length;n++){const i=t[n],r=e[i.slug]||e[i.slug.toLowerCase()];if(r){const e=[];for(let t=0;t<r.length;t++){const{selector:o,...n}=r[t],i=fe(n);i&&e.push(`${o} { ${i} }`)}e.length>0&&(o[i.slug.toLowerCase()]=e.join(" "))}}if(e.customStyles){const t=[];for(let o=0;o<e.customStyles.length;o++){const{mediaQuery:n,selector:i,hasDynamicStyles:r=!1,...s}=e.customStyles[o];if(n&&!n.includes("undefined")){const e=fe(s);e&&t.push(`@media (${n}) { ${i} { ${e} } }`)}}t.length>0&&(o.customStyles=t.join(" "))}return o},he=(e,t)=>{const o=ge(e.rawCSS,t);let n=[];return t.forEach(e=>{let t=e?.value,i=e?.slug||"Desktop",r=e?.direction||"max",s=i?.toLowerCase();if("base"==t&&o?.[s])n.push(o?.[s]);else if(o?.[s]&&t&&r){let e=`\n @media (${r}-width: ${t}px) {\n ${o?.[s]}\n }\n `;n.push(e)}}),n.length>0?n.join(""):""},pe=(e,t,o,n)=>{const{rawCSS:i,breakpoints:r}=(0,G.useMemo)(()=>n,[n]),{__unstableMarkNextChangeAsNotPersistent:s}=(0,L.useDispatch)("core/block-editor"),a=(0,G.useRef)(null),l=(0,G.useMemo)(()=>ge(i,r),[i,r]),c=(0,G.useRef)(e);return(0,G.useEffect)(()=>(l&&JSON.stringify(e)!==JSON.stringify(c.current||{})&&(a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{s(),t({[o]:l}),c.current=e},200)),()=>clearTimeout(a.current)),[l]),l},me=e=>!!e&&!!(e?.desktop||e?.tablet||e?.mobile||e?.tabletlandscape||e?.mobilelandscape||e?.laptop||e?.widescreen||e?.customStyles),be=window.wp.i18n,ve=e=>{var t,o;return null!==(t=null!==(o={Desktop:(0,be.__)("Desktop","table-builder-block"),WideScreen:(0,be.__)("Wide Screen","table-builder-block"),Laptop:(0,be.__)("Laptop","table-builder-block"),TabletLandscape:(0,be.__)("Tablet Landscape","table-builder-block"),Tablet:(0,be.__)("Tablet","table-builder-block"),MobileLandscape:(0,be.__)("Mobile Landscape","table-builder-block"),Mobile:(0,be.__)("Mobile","table-builder-block")}[e?.slug])&&void 0!==o?o:e?.label)&&void 0!==t?t:""},ke=()=>{const{modules:e}=window?.gutenkit||{},t=(0,G.useRef)(null);let o=[O,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}];return e&&(o=(0,G.useMemo)(()=>{const t=e?.breakpoints?(0,L.select)("gutenkit/global-store"):null;let o=[O,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}];if(t){const{getActiveBreakpoints:e}=t,n=e()?.sort((e,t)=>parseInt(t.value)-parseInt(e.value));n?.length>0&&(o=[O,...n])}return o},[])),(0,G.useMemo)(()=>{const e=t.current,n=o.map(e=>({...e,label:ve(e)}));return JSON.stringify(e)!==JSON.stringify(n)?(t.current=n,n):e},[o])},we=e=>{let t="";for(const o in e){const n=e[o];j(n)&&(t+=`${o}: ${n}; `)}return t.trim()},ye=(e,t,o)=>{const{__unstableMarkNextChangeAsNotPersistent:n}=(0,L.useDispatch)("core/block-editor"),i=ie(e);if(!i)return;const{rawCSS:r,breakpoints:s}=o,a=(0,G.useCallback)(t=>{re(e,t)},[e]),l=(0,G.useMemo)(()=>((e,t)=>{const o={};let n="";const i=[];for(let o=0;o<t.length;o++){const n=t[o];i.push({deviceKey:n.slug.toLowerCase(),styles:e[n.slug]||e[n.slug.toLowerCase()]})}if(e.customStyles)for(let t=0;t<e.customStyles.length;t++){const o=e.customStyles[t];i.push({custom:!0,mediaQuery:o.mediaQuery,selector:o.selector,properties:o})}for(let e=0;e<i.length;e++){const{deviceKey:t,styles:r,custom:s,mediaQuery:a,selector:l,properties:c}=i[e];if(r){n="";for(let e=0;e<r.length;e++){const{selector:t,...o}=r[e],i=we(o);i&&(n+=`${t} { ${i} } `)}n&&(o[t]=n.trim())}else if(s&&a&&!a.includes("undefined")){const e=we(c);e&&(n=`@media (${a}) { ${l} { ${e} } }`,o.customStyles=(o.customStyles||"")+n)}}return o})(r,s),[r,s]),c=(0,G.useRef)(i);return(0,G.useEffect)(()=>{l&&JSON.stringify(i)!==JSON.stringify(c.current||{})&&(n(),a({[t]:l}),c.current=i)},[l]),i[t]},Se=(e,t,o)=>{const n=document.createElement("canvas"),i=n.getContext("2d");return n.width=t,n.height=o,i.fillStyle="#d3d3d3",i.fillRect(0,0,t,o),i.fillStyle="#000000",i.font="20px Arial",i.textAlign="center",i.textBaseline="middle",i.fillText(e,t/2,o/2),n.toDataURL()};void 0===window.GkitHelpers&&(window.GkitHelpers={}),window.GkitHelpers={...e}})()})(); |