!function(){"use strict";var t={n:function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(e,{a:e}),e},d:function(o,e){for(var n in e)t.o(e,n)&&!t.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:e[n]})},o:function(t,o){return Object.prototype.hasOwnProperty.call(t,o)}},o=window.ctFrontend,e=window.ctEvents,n=t.n(e);const c=async function(t){const e=document.createElement("div");e.innerHTML=t;const c=e.firstElementChild;if(!ct_localizations.dynamic_styles.added_to_cart_popup)return;n().trigger("ct:sync:added-to-cart-popup",{popup:c});const r=[(0,o.loadStyle)(ct_localizations.dynamic_styles.added_to_cart_popup)];ct_localizations.dynamic_styles.suggested_products&&r.push((0,o.loadStyle)(ct_localizations.dynamic_styles.suggested_products)),Promise.all(r).then(function(){document.querySelector(".ct-drawer-canvas").appendChild(c);const t=document.querySelector("#ct-added-to-cart-popup");t.unmount=function(){var o;o=function(){t.remove()},setTimeout(function(){o()},300)},(0,o.loadDynamicChunk)("blocksy_pro_micro_popups").then(function({chunk:{openMicroPopup:o}}){o(t)}).catch(function(t){console.error("Blocksy: failed to load blocksy_pro_micro_popups chunk.",t)})})},{settings:r}=ct_localizations.dynamic_js_chunks.find(function({id:t}){return"blocksy_ext_woo_extra_added_to_cart_popup"===t});(0,o.registerDynamicChunk)("blocksy_ext_woo_extra_added_to_cart_popup",{mount:function(t,{event:e,eventData:n,eventArguments:[a,i]}){if(null==i||!i[0])return;const s=(0,o.getCurrentScreen)({withTablet:!0});r.visibility[s]&&((i[0].closest(".ct-product-add-to-cart")||i[0].closest(".ct-floating-bar-actions"))&&r.template.single&&c(n["__SKIP__blocksy-added-to-cart-popup"]),(i[0].closest(".ct-woo-card-actions")||i[0].closest(".ct-woo-card-extra"))&&r.template.archive&&c(n["__SKIP__blocksy-added-to-cart-popup"]))}})}();