!function(e,o){"use strict";ElementsKit_Helper.registerWidget("elementskit-popup-modal.default",(function(e){var o=e.data("id"),t=e.data("settings"),i=t&&"enable_cookie_consent"in t,p=i&&document.cookie.match("popup_cookie_"+o),n=e.find(".ekit-popup-modal"),l=e.find(".ekit-popup__content"),a=n.data("toggletype"),c=n.data("toggleafter");"time"===a&&c>0&&setTimeout((()=>{ElementsKit_Pro.ShowModal(n,l,p)}),1e3*c);var d=e.find(".ekit-popup-modal__toggler-wrapper button, .ekit-popup-modal__toggler-wrapper img"),s=e.find(".ekit-popup__close, .ekit-popup-modal__close, .ekit-popup-footer__close");d.on("click",(function(e){e.preventDefault(),ElementsKit_Pro.ShowModal(n,l)})),s.on("click",(function(e){e.preventDefault(),n.addClass("closing"),setTimeout((()=>{n.removeClass("show"),n.removeClass("closing")}),450),i&&(document.cookie="popup_cookie_"+o+"=1; path=/")}))}))}(jQuery,window.elementorFrontend);