!function(){"use strict";var e,t,n={621(e){e.exports=window.ctEvents},400(e){e.exports=window.ctFrontend},561(e){e.exports=window.jQuery}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return n[e](i,i.exports,r),i.exports}r.m=n,r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce(function(t,n){return r.f[n](e,t),t},[]))},r.u=function(e){return e+"."+{65:"a520abe4522ea19b6f08",208:"14c6e11623baa460d6ce",541:"652283af176c10550d8f",608:"5cbba1b69e587a978cb4"}[e]+".js"},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e={},t="blocksy-companion:",r.l=function(n,o,i,a){if(e[n])e[n].push(o);else{var c,u;if(void 0!==i)for(var p=document.getElementsByTagName("script"),l=0;l<p.length;l++){var s=p[l];if(s.getAttribute("src")==n||s.getAttribute("data-webpack")==t+i){c=s;break}}c||(u=!0,(c=document.createElement("script")).charset="utf-8",r.nc&&c.setAttribute("nonce",r.nc),c.setAttribute("data-webpack",t+i),c.src=n),e[n]=[o];var d=function(t,o){c.onerror=c.onload=null,clearTimeout(f);var r=e[n];if(delete e[n],c.parentNode&&c.parentNode.removeChild(c),r&&r.forEach(function(e){return e(o)}),t)return t(o)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=d.bind(null,c.onerror),c.onload=d.bind(null,c.onload),u&&document.head.appendChild(c)}},function(){var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e}(),function(){var e={792:0};r.f.j=function(t,n){var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var i=new Promise(function(n,r){o=e[t]=[n,r]});n.push(o[2]=i);var a=r.p+r.u(t),c=new Error;r.l(a,function(n){if(r.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",c.name="ChunkLoadError",c.type=i,c.request=a,o[1](c)}},"chunk-"+t,t)}};var t=function(t,n){var o,i,[a,c,u]=n,p=0;if(a.some(function(t){return 0!==e[t]})){for(o in c)r.o(c,o)&&(r.m[o]=c[o]);if(u)u(r)}for(t&&t(n);p<a.length;p++)i=a[p],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=globalThis.webpackChunkblocksy_companion=globalThis.webpackChunkblocksy_companion||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var i=r(400),a=r(621),c=r.n(a);let u=!1;const p=['[data-popup-mode*="page_load"]','[data-popup-mode*="after_x_time"]','[data-popup-mode*="after_x_pages"]','[data-popup-mode*="exit_intent"]','[data-popup-mode*="element_reveal"]','[data-popup-mode*="element_click"]','[data-popup-mode*="after_inactivity"]'],l=function(){p.map(function(e){document.querySelector(e)&&(u||(u=!0,r.e(608).then(r.bind(r,608)).then(function({handleTriggers:e}){e()})))}),document.querySelector('[data-popup-mode^="scroll"]')&&Promise.all([r.e(65),r.e(541)]).then(r.bind(r,541)).then(function({handleScrollModePopups:e}){e()})},s=function(...e){Promise.all([r.e(65),r.e(208)]).then(r.bind(r,65)).then(function({openMicroPopup:t}){return t(...e)})};window.blocksyOpenMicroPopup=s;const d=function(e){let t=null;try{t=document.querySelector(e.getAttribute("href"))}catch(e){return null}return t},f=function(){[...document.querySelectorAll('[href*="ct-popup-"]')].map(function(e){e.hasClickListener||d(e)&&(e.hasClickListener=!0,e.addEventListener("click",function(t){t.preventDefault();let n=d(e);if(!n)return;const o={};e.dataset.postId&&(o.postId=e.dataset.postId),s(n,o)}))})};let m=!1;(0,i.registerDynamicChunk)("blocksy_pro_micro_popups",{mount:function(){m||(m=!0,l()),f()},openMicroPopup:s}),c().on("blocksy:frontend:init",function(){f()})}();