"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;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function o(t,e,i){return(e=s(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t){var e=function(t,e){if("object"!==n(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===n(e)?e:String(e)}i.r(e);var a=jQuery,l=window.DiviArea,u=function(){function t(e,i,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"_id",void 0),o(this,"_type",void 0),o(this,"_isActive",void 0),o(this,"_defaults",void 0),o(this,"_args",void 0),o(this,"_conditions",void 0),o(this,"_argsSanitized",void 0),o(this,"_area",void 0),o(this,"_onStart",void 0),o(this,"_onStop",void 0),this._defaults={once:!1,single:!0,selector:[]},this._id=e+"_"+l.Utils.getUniqueId(),this._type=e,this._isActive=!1,this._args=n,this._argsSanitized=!1,this._area=i,this.run=this.run.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.setConditions(r)}var e,i,s;return e=t,i=[{key:"onStart",set:function(t){this._onStart=t}},{key:"onStop",set:function(t){this._onStop=t}},{key:"saneArgs",get:function(){return this._argsSanitized||(this._argsSanitized=!0,this._args=this._sanitizeArgs(this._args)),this._args}},{key:"_sanitizeArgs",value:function(t){if(t&&"object"===n(t)||(t={}),t.once=l.Utils.isTrue(t.once,this.getArgDefault("once")),t.single=l.Utils.isTrue(t.single,this.getArgDefault("single")),t.selector&&("string"==typeof t.selector||Array.isArray(t.selector))||(t.selector=this.getArgDefault("selector")),"string"==typeof t.selector&&(t.selector=t.selector.split(",")),"string"==typeof t.hashes?t.hashes=t.hashes.split(","):Array.isArray(t.hashes)||(t.hashes=[]),t.hashes.map((function(t){return t.toString().trim()})),t.delay=Math.max(50,(1e3*parseFloat(t.delay)||0)+20),void 0===t.distance?t.distance=-1:"string"==typeof t.distance&&-1!==t.distance.indexOf("%")&&(t.percent=t.distance,t.distance=-1),void 0===t.percent&&(t.percent=-1),-1!==t.percent&&(t.percent=Math.max(0,Math.min(100,parseFloat(t.percent)||0))),-1!==t.distance)if("string"==typeof t.distance){var e=t.distance.match(/(-?[\d.]+)([a-z]*)/);t.distance=[Math.max(0,Math.min(100,parseFloat(e[1]))),e[2]]}else t.distance=[parseFloat(t.distance),"px"];return t}},{key:"parseDiviLinks",value:function(){var t=arguments.length>0&&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("<div />")).addClass(e.Utils.getOption("overlayClass")),n.on("click.popup",o),e.doAction("init_overlay",n)),n}}(jQuery)}}]);