"use strict";(window.webpackChunkdivi_areas_pro=window.webpackChunkdivi_areas_pro||[]).push([[352],{299:function(){window.DiviAreaState=function(t){var e=jQuery,i=window.DiviArea;this.reset=function(){this.trigger="",this.triggerConditions={},this.triggerEvent=null,this.closeMethod="",this.customCloseButton=null},this.serialize=function(){return{trigger:this.trigger,triggerConditions:this.triggerConditions,triggerEvent:this.triggerEvent,closeMethod:this.closeMethod,customCloseButton:this.customCloseButton}},this.setTriggerDetails=function(t,e,n){this.trigger?i.Debug.debug("Ignore Trigger Details (already set)",t):(this.trigger=t,e&&(this.triggerEvent=e),n&&(this.triggerConditions=n),i.Debug.debug("Set Trigger Details",t))},this.setCloseDetails=function(t,n){this.closeMethod?i.Debug.debug("Ignore Close Details (already set)",t):(this.closeMethod=t,"custom"===t&&n&&n.delegateTarget?this.customCloseButton=e(n.delegateTarget).first():this.customCloseButton=null,i.Debug.debug("Set Close Details",t,this.customCloseButton))},this.reset()}},955:function(t,e,i){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:"",e=window.et_link_options_data;if(e&&e.length)for(var i=e.length-1;i>=0;i--){var n=e[i];this._area.hasId(n.url)&&(n.dap_class||(n.dap_class=n.class,delete n.class,e[i]=n),n.dap_class&&this.addSelector("."+n.dap_class+t))}}},{key:"setArgDefault",value:function(t,e){this._argsSanitized?console.error("Cannot set default argument after the trigger was initialized."):this._defaults[t]=e}},{key:"getArgDefault",value:function(t){var e;return null!==(e=this._defaults[t])&&void 0!==e?e:null}},{key:"setConditions",value:function(t){this._conditions=t}},{key:"getContext",value:function(t){return(!(t=a(t))||!t.length||!t instanceof jQuery)&&(t=a(document)),t}},{key:"active",get:function(){return this._isActive}},{key:"type",get:function(){return this._type}},{key:"id",get:function(){return this._id},set:function(t){this._isActive?console.error("Cannot change trigger ID while the trigger is active."):this._id=t}},{key:"runOnce",get:function(){return!!this.getArgs("once")}},{key:"area",get:function(){return this._area}},{key:"delay",get:function(){var t;return null!==(t=parseInt(this.getArgs("delay")))&&void 0!==t?t:0}},{key:"getArgs",value:function(t){var e=this.saneArgs;return t&&"string"==typeof t?"selector"===t?e[t].join(","):e[t]:e}},{key:"addSelector",value:function(t){var e=this.saneArgs;-1===e.selector.indexOf(t)&&e.selector.push(t)}},{key:"bindEvent",value:function(t,e){var i="data-trigger-".concat(e);return t.not(".et_pb_section.popup,.area-outer-wrap,.divi-area-wrap").not("[".concat(i,"]")).attr(i,this._area.id).off(e).on(e,this.run)}},{key:"unbindEvent",value:function(t,e){var i="data-trigger-".concat(e);return t.filter("[".concat(i,"]")).removeAttr(i).off(e,this.run)}},{key:"start",value:function(t){"function"==typeof this._onStart&&this._onStart.call(this,this.getContext(t)),this._isActive=!0}},{key:"stop",value:function(t){"function"==typeof this._onStop&&this._onStop.call(this,this.getContext(t)),this._isActive=!1}},{key:"run",value:function(t){var e=this._area;if(t&&t.type){if("click"===t.type){var i=a(t.target);if("A"===i.prop("tagName")&&i.attr("href").length&&!i.attr("data-trigger-click"))return!0}t.preventDefault(),t.stopImmediatePropagation()}return this.runOnce?(e.getData("opencount")||e.trigger.call(e,t,this._conditions,this),this.stop()):e.trigger.call(e,t,this._conditions,this),!1}},{key:"isActive",value:function(){return this.active}}],i&&r(e.prototype,i),s&&r(e,s),Object.defineProperty(e,"prototype",{writable:!1}),t}();window.DiviAreaTrigger=u,e.default=u},91:function(){!function(t){var e=window.DiviArea||{},i=e.Core=e.Core||{},n=null,r=!1;function o(t){e.Debug.info("⚡️ Click on background overlay"),t.preventDefault(),e.doAction("click_overlay",n);var i=e.Data.getVisibleArea(null,"popup");return i?i.getData("ismodal")?(e.Debug.debug("Ignore click:",'Top-most popup is marked as "modal"'),!1):e.applyFilters("ignore_overlay_click",!1)?(e.Debug.debug("Ignore click:","Manually cancelled via filter"),!1):(e.doAction("close_area",null,"overlay"),e.Data.countVisibleAreas("popup")||e.hideOverlay(),!1):(e.Debug.debug("Ignore click:","No visible Popups found"),!1)}e.showOverlay=function(t){var n=e.getOverlay();return t&&!isNaN(t)||(t=e.Utils.getOption("zIndex"),t+=Math.max(0,e.Data.countVisibleAreas())),n.css({zIndex:t}),r||(r=!0,e.Debug.info("⤴️ Show background overlay"),i.disableBodyScroll(),n.detach().appendTo(i.getContext()),n.fadeIn(e.Utils.getOption("animateSpeed")),e.doAction("show_overlay",n),i.closeMainMenu()),t},e.hideOverlay=function(){r&&(r=!1,e.Debug.info("⤵️ Hide background overlay"),n.hide().detach(),i.enableBodyScroll(),e.doAction("hide_overlay",n))},e.getOverlay=function(){return null===n&&((n=t("
")).addClass(e.Utils.getOption("overlayClass")),n.on("click.popup",o),e.doAction("init_overlay",n)),n}}(jQuery)}}]);