Popups for Divi - Version 2.2.4

Version Description

  • Improve: Area sizes are more accurate when using Divis responsive sizes.
  • Improve: Images inside Popups are instantly loaded in Chrome (fixed a lazy-load bug).
  • Improve: Area size is re-calculated when the Area contents change, e.g. when an accordion is opened or closed.
  • Improve: When a Popup is opened, scrolling is disabled in all browsers, without shifting the content!
  • Change: New JS action that fires when an Area was resized resize_area.
  • Change: New JS action to customize screen-position of an Area position_area (not available for Inline Areas).
  • Fix: Full-Height Popups can be scrolled again in Safari/iPhones.

Plugin tested with WordPress 5.5.1 and Divi 4.6.5

Download this release

Release Info

Developer stracker.phil
Plugin Icon 128x128 Popups for Divi
Version 2.2.4
Comparing to
See all releases

Code changes from version 2.2.3 to 2.2.4

Files changed (5) hide show
  1. changelog.txt +9 -0
  2. css/front.css +1 -1
  3. js/front.js +1 -1
  4. plugin.php +2 -2
  5. readme.txt +15 -6
changelog.txt CHANGED
@@ -1,3 +1,12 @@
 
 
 
 
 
 
 
 
 
1
  = 2.2.3 =
2
  * Fix: Position of close button is correct in full-height Popups.
3
 
1
+ = Version 2.2.4 =
2
+ * Improve: Area sizes are more accurate when using Divis responsive sizes.
3
+ * Improve: Images inside Popups are instantly loaded in Chrome (fixed a lazy-load bug).
4
+ * Improve: Area size is re-calculated when the Area contents change, e.g. when an accordion is opened or closed.
5
+ * Improve: When a Popup is opened, scrolling is disabled in all browsers, without shifting the content!
6
+ * Change: New JS action that fires when an Area was resized `resize_area`.
7
+ * Change: New JS action to customize screen-position of an Area `position_area` (not available for Inline Areas).
8
+ * Fix: Full-Height Popups can be scrolled again in Safari/iPhones.
9
+
10
  = 2.2.3 =
11
  * Fix: Position of close button is correct in full-height Popups.
12
 
css/front.css CHANGED
@@ -1 +1 @@
1
- [class*=et_pb_section_dap_]{width:100%}#et-boc .area-outer-wrap{position:fixed;z-index:100;pointer-events:none;max-width:100vw;max-height:100vh}#et-boc .area-outer-wrap.entry-content{padding:0}#et-boc .area-outer-wrap[data-da-type=popup]{min-width:320px;padding:10px}@media screen and (min-width:981px){#et-boc .area-outer-wrap[data-da-type=popup]{width:90%}}@media screen and (max-width:980px){#et-boc .area-outer-wrap[data-da-type=popup]{width:100%}}#et-boc .area-outer-wrap[data-da-type=inline]{position:relative;top:unset;bottom:unset;left:unset;right:unset;width:unset;height:unset;transform:unset;max-width:unset;max-height:unset}#et-boc .area-outer-wrap>[data-da-area]{position:relative;background-repeat:no-repeat;background-position:50%;margin:auto;pointer-events:all;overflow:auto;-ms-scroll-chaining:none;overscroll-behavior:contain;height:100%;display:flex!important;flex-direction:column}#et-boc .area-outer-wrap>[data-da-area]>.et_pb_section{flex:1 0 auto}#et-boc .area-outer-wrap>[data-da-area] .clearfix:after,#et-boc .area-outer-wrap>[data-da-area] .et_pb_row:after,#et-boc .area-outer-wrap>[data-da-area] .et_pb_row_inner:after,#et-boc .area-outer-wrap>[data-da-area] .et_pb_slides:after{content:""}#et-boc .area-outer-wrap>[data-da-area] .et_pb_contact_select{-moz-appearance:textfield}#et-boc .area-outer-wrap[data-da-type=popup].full-height{height:auto!important;top:0!important;bottom:0!important;margin-top:0!important}#et-boc .area-outer-wrap[data-da-type=popup].full-height [data-da-area]{max-height:100%}#et-boc .area-outer-wrap[data-da-type=popup].full-height .da-close-wrap{height:calc(100% - 20px)!important}#et-boc .area-outer-wrap .da-close-wrap{display:block;position:absolute;left:50%;top:50%;z-index:100;text-align:right;transition:opacity .6s .3s;overflow:visible;pointer-events:none;transform:translate(-50%,-50%)}#et-boc .area-outer-wrap .da-close{position:absolute;right:0;top:0;display:block;box-sizing:content-box;width:30px;height:30px;line-height:30px;text-decoration:none;text-align:center;font-family:Courier New,monospace;font-size:20px;font-weight:700;cursor:pointer;opacity:.7;transition:all .3s;pointer-events:all}#et-boc .area-outer-wrap .da-close:active,#et-boc .area-outer-wrap .da-close:focus,#et-boc .area-outer-wrap .da-close:hover{opacity:1;transform:scale(1.1)}#et-boc .area-outer-wrap[data-da-close-btn=no] .da-close-wrap{display:none!important}#et-boc .area-outer-wrap[data-da-close-btn=yes] .da-close-wrap{display:block}#et-boc .area-outer-wrap[data-da-color=light] .da-close{color:#333;background:hsla(0,0%,100%,.13);box-shadow:0 0 3px 1px rgba(0,0,0,.03)}#et-boc .area-outer-wrap[data-da-color=light] .da-close:active,#et-boc .area-outer-wrap[data-da-color=light] .da-close:focus,#et-boc .area-outer-wrap[data-da-color=light] .da-close:hover{color:#000;background:#fff;box-shadow:0 0 4px 0 rgba(0,0,0,.13),0 0 3px 1px rgba(0,0,0,.07)}#et-boc .area-outer-wrap[data-da-color=dark] .da-close{color:#eee;background:rgba(0,0,0,.13);box-shadow:0 0 0 1px hsla(0,0%,100%,.03);text-shadow:0 0 1px #000,0 0 3px rgba(0,0,0,.67)}#et-boc .area-outer-wrap[data-da-color=dark] .da-close:active,#et-boc .area-outer-wrap[data-da-color=dark] .da-close:focus,#et-boc .area-outer-wrap[data-da-color=dark] .da-close:hover{color:#fff;background:#2b2b2b;box-shadow:0 0 1px 1px hsla(0,0%,100%,.2)}#et-boc .area-outer-wrap[data-da-close-bg=none] .da-close,#et-boc .area-outer-wrap[data-da-close-bg=none] .da-close:active,#et-boc .area-outer-wrap[data-da-close-bg=none] .da-close:focus,#et-boc .area-outer-wrap[data-da-close-bg=none] .da-close:hover{box-shadow:none;background:transparent}#et-boc .area-outer-wrap[data-da-loader=yes] [data-da-area]{background-image:url(../img/spin.gif),radial-gradient(circle at center,#fff 65%,hsla(0,0%,100%,0) 66%)!important;background-size:32px 32px,48px 48px}#et-boc .area-outer-wrap[data-da-shadow=yes] [data-da-area]{box-shadow:0 3px 10px -1px rgba(0,0,0,.3),0 2px 50px 2px rgba(0,0,0,.2)}#et-boc .area-outer-wrap[data-da-shadow=no] [data-da-area]{box-shadow:none}.area-outer-wrap [data-da-area]{display:block;pointer-events:all}.da-overlay{position:fixed;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.55);z-index:99;transition:-webkit-backdrop-filter 1s 1s;transition:backdrop-filter 1s 1s;transition:backdrop-filter 1s 1s,-webkit-backdrop-filter 1s 1s;-webkit-backdrop-filter:none;backdrop-filter:none}.da-overlay-visible .da-overlay{-webkit-backdrop-filter:saturate(180%) blur(5px);backdrop-filter:saturate(180%) blur(5px)}[data-area-hook]{display:none!important;visibility:hidden!important}
1
+ [class*=et_pb_section_dap_]{width:100%}#et-boc .area-outer-wrap{position:fixed;z-index:100;pointer-events:none;max-width:100vw;max-height:100vh}#et-boc .area-outer-wrap.entry-content{padding:0}#et-boc .area-outer-wrap[data-da-type=popup]{min-width:320px;padding:10px}@media screen and (min-width:981px){#et-boc .area-outer-wrap[data-da-type=popup]{width:90%}}@media screen and (max-width:980px){#et-boc .area-outer-wrap[data-da-type=popup]{width:100%}}@media (min-width:981px){#et-boc .area-outer-wrap .et_pb_row.et_pb_equal_columns,#et-boc .area-outer-wrap .et_pb_row_inner.et_pb_equal_columns,#et-boc .area-outer-wrap .et_pb_section.et_pb_equal_columns>.et_pb_row{flex:1 0 auto}}#et-boc .area-outer-wrap[data-da-type=inline]{position:relative;top:unset;bottom:unset;left:unset;right:unset;width:unset;height:unset;transform:unset;max-width:unset;max-height:unset}#et-boc .area-outer-wrap>[data-da-area]{position:relative;background-repeat:no-repeat;background-position:50%;margin:auto;pointer-events:all;overflow:auto;-ms-scroll-chaining:none;overscroll-behavior:contain;height:100%;display:flex!important;flex-direction:column}#et-boc .area-outer-wrap>[data-da-area]>.et_pb_section{flex:1 0 auto}#et-boc .area-outer-wrap>[data-da-area] .clearfix:after,#et-boc .area-outer-wrap>[data-da-area] .et_pb_row:after,#et-boc .area-outer-wrap>[data-da-area] .et_pb_row_inner:after,#et-boc .area-outer-wrap>[data-da-area] .et_pb_slides:after{content:""}#et-boc .area-outer-wrap>[data-da-area] .et_pb_contact_select{-moz-appearance:textfield}#et-boc .area-outer-wrap[data-da-type=popup].full-height{height:auto!important;top:0!important;bottom:0!important;margin-top:0!important}#et-boc .area-outer-wrap[data-da-type=popup].full-height [data-da-area]{max-height:100%}#et-boc .area-outer-wrap[data-da-type=popup].full-height .da-close-wrap{height:calc(100% - 20px)!important}#et-boc .area-outer-wrap .da-close-wrap{display:block;position:absolute;left:50%;top:50%;z-index:100;text-align:right;transition:opacity .6s .3s;overflow:visible;pointer-events:none;transform:translate(-50%,-50%)}#et-boc .area-outer-wrap .da-close{position:absolute;right:0;top:0;display:block;box-sizing:content-box;width:30px;height:30px;line-height:30px;text-decoration:none;text-align:center;font-family:Courier New,monospace;font-size:20px;font-weight:700;cursor:pointer;opacity:.7;transition:all .3s;pointer-events:all}#et-boc .area-outer-wrap .da-close:active,#et-boc .area-outer-wrap .da-close:focus,#et-boc .area-outer-wrap .da-close:hover{opacity:1;transform:scale(1.1)}#et-boc .area-outer-wrap[data-da-close-btn=no] .da-close-wrap{display:none!important}#et-boc .area-outer-wrap[data-da-close-btn=yes] .da-close-wrap{display:block}#et-boc .area-outer-wrap[data-da-color=light] .da-close{color:#333;background:hsla(0,0%,100%,.13);box-shadow:0 0 3px 1px rgba(0,0,0,.03)}#et-boc .area-outer-wrap[data-da-color=light] .da-close:active,#et-boc .area-outer-wrap[data-da-color=light] .da-close:focus,#et-boc .area-outer-wrap[data-da-color=light] .da-close:hover{color:#000;background:#fff;box-shadow:0 0 4px 0 rgba(0,0,0,.13),0 0 3px 1px rgba(0,0,0,.07)}#et-boc .area-outer-wrap[data-da-color=dark] .da-close{color:#eee;background:rgba(0,0,0,.13);box-shadow:0 0 0 1px hsla(0,0%,100%,.03);text-shadow:0 0 1px #000,0 0 3px rgba(0,0,0,.67)}#et-boc .area-outer-wrap[data-da-color=dark] .da-close:active,#et-boc .area-outer-wrap[data-da-color=dark] .da-close:focus,#et-boc .area-outer-wrap[data-da-color=dark] .da-close:hover{color:#fff;background:#2b2b2b;box-shadow:0 0 1px 1px hsla(0,0%,100%,.2)}#et-boc .area-outer-wrap[data-da-close-bg=none] .da-close,#et-boc .area-outer-wrap[data-da-close-bg=none] .da-close:active,#et-boc .area-outer-wrap[data-da-close-bg=none] .da-close:focus,#et-boc .area-outer-wrap[data-da-close-bg=none] .da-close:hover{box-shadow:none;background:transparent}#et-boc .area-outer-wrap[data-da-loader=yes] [data-da-area]{background-image:url(../img/spin.gif),radial-gradient(circle at center,#fff 65%,hsla(0,0%,100%,0) 66%)!important;background-size:32px 32px,48px 48px}#et-boc .area-outer-wrap[data-da-shadow=yes] [data-da-area]{box-shadow:0 3px 10px -1px rgba(0,0,0,.3),0 2px 50px 2px rgba(0,0,0,.2)}#et-boc .area-outer-wrap[data-da-shadow=no] [data-da-area]{box-shadow:none}.area-outer-wrap [data-da-area]{display:block;pointer-events:all}.da-overlay{position:fixed;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.55);z-index:99;transition:-webkit-backdrop-filter 1s 1s;transition:backdrop-filter 1s 1s;transition:backdrop-filter 1s 1s,-webkit-backdrop-filter 1s 1s;-webkit-backdrop-filter:none;backdrop-filter:none}.da-overlay-visible{overflow:hidden}.da-overlay-visible .da-overlay{-webkit-backdrop-filter:saturate(180%) blur(5px);backdrop-filter:saturate(180%) blur(5px)}[data-area-hook]{display:none!important;visibility:hidden!important}
js/front.js CHANGED
@@ -1 +1 @@
1
- !function(){"use strict";var e=Object.freeze({__proto__:null});!function(e){window.DiviArea=window.DiviArea||{},DiviArea.Utils=DiviArea.Utils||{};var i=!1,t=null,a=null,r=null;function o(i,t,a){var r,o;for(Array.isArray(i)&&(i=e(i).map(e.fn.toArray)),i=e(i),t=t.split(/\s+/),r=0;r<i.length;r++)for(o=0;o<t.length;o++)a(i[r],t[o])}DiviArea.Utils.getOption=function(e){var i=DiviAreaConfig[e],t=DiviArea.Utils.sanitizeHookName(e);return DiviArea.Hooks.silent().applyFilters("get_option_"+t,i)},DiviArea.Utils.toBool=function(e,i){return void 0===i&&(i=!0),null==e?!!i:!0===e||!1===e?e:("string"==typeof e&&(e=e.toLowerCase()),0!==e&&"0"!==e&&"n"!==e[0]&&"f"!==e[0]&&"off"!==e&&(1===e||"1"===e||"y"===e[0]||"t"===e[0]||"on"===e||!!i))},DiviArea.Utils.toMilliseconds=function(e){var i,t=parseFloat(e,10),a=e.match(/m?s/);switch(a&&(a=a[0]),a){case"s":i=1e3*t;break;case"ms":i=t;break;default:i=0}return i},DiviArea.Utils.sanitizeHookName=function(e){return e.toLowerCase().replace(/-/g,"_").replace(/[^a-z0-9_]+/,"")},DiviArea.Utils.showOnViewport=function(i){var t=e(window).innerWidth();return!i||!!(t<768?Array.isArray(i)?i[2]:i.getData("onmobile"):t<981?Array.isArray(i)?i[1]:i.getData("ontablet"):Array.isArray(i)?i[0]:i.getData("ondesktop"))},DiviArea.Utils.isPosition=function(e,i){var t=e.offsetParent();return"HTML"!==t.prop("tagName")&&(i===t.css("position")||DiviArea.Utils.isPosition(t,i))},DiviArea.Utils.setLocalData=function(e,i,t){(!t||isNaN(t)||t<1)&&(t=525600);var a=DiviArea.Utils.sanitizeHookName(e);if(i=DiviArea.applyFilters("set_data",i,e),i=DiviArea.applyFilters("set_data_"+a,i,e),t=DiviArea.applyFilters("set_data_expire",t,e,i),t=DiviArea.applyFilters("set_data_expire_"+a,t,e,i),!(!1===i||t<=0))if(window.localStorage){var r=new Date;r=r.setMinutes(r.getMinutes()+t),localStorage.setItem("_da_"+e,r+":"+i)}else DiviArea.Utils.setCookie("_da_"+e,i,t)},DiviArea.Utils.getLocalData=function(e){var i=!1;if(window.localStorage){var t=localStorage.getItem("_da_"+e);if(t){var a=t.split(":"),r=parseInt(a.shift()),o=a.join(":");r>new Date?i=o:localStorage.removeItem("_da_"+e)}}else i=DiviArea.Utils.getCookie("_da_"+e);var n=DiviArea.Utils.sanitizeHookName(e);return i=DiviArea.applyFilters("get_data",i,e),i=DiviArea.applyFilters("get_data_"+n,i,e)},DiviArea.Utils.setCookie=function(e,i,t){var a=escape(i);if(t){var r=new Date;r.setMinutes(r.getMinutes()+t),a+="; expires="+r.toUTCString()}document.cookie=e+"="+a+"; path=/"},DiviArea.Utils.getCookie=function(e){var i,t,a,r=document.cookie.split(";");for(i=0;i<r.length;i++)if(t=r[i].substr(0,r[i].indexOf("=")),a=r[i].substr(r[i].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))===e)return unescape(a);return!1},DiviArea.Utils.getUrlParam=function(e){if(null===a){a={};var i=window.location.search.slice(1);if(i)for(var t=(i=i.split("#")[0]).split("&"),r=0;r<t.length;r++){var o=t[r].split("="),n=o[0],s=void 0===o[1]||o[1];if(n=n.toLowerCase(),"string"==typeof s&&(s=s.toLowerCase()),n.match(/\[(\d+)?\]$/)){var l=n.replace(/\[(\d+)?\]/,"");if(a[l]||(a[l]=[]),n.match(/\[\d+\]$/)){var d=/\[(\d+)\]/.exec(n)[1];a[l][d]=s}else a[l].push(s)}else a[n]?a[n]&&"string"==typeof a[n]?(a[n]=[a[n]],a[n].push(s)):a[n].push(s):a[n]=s}}return e?a[e]:Object.assign({},a)},DiviArea.Utils.getWindow=function(i){return e.isWindow(i)?i:9===i.nodeType&&(i.defaultView||i.parentWindow)},DiviArea.Utils.getClientRect=function(i){var t={top:0,left:0,width:0,height:0,bottom:0,right:0};if(0===i.length)return t;var a,r=(i=i[0]).ownerDocument,o=r.documentElement;if(!e.contains(o,i))return t;if(e.support.getBoundingClientRect){try{a=i.getBoundingClientRect()}catch(e){}if(!a)return t;if(a.right===a.left&&a.top===a.bottom)return t;var n=DiviArea.Utils.getWindow(r);t.top=a.top+(n.pageYOffset||o.scrollTop)-(o.clientTop||0),t.left=a.left+(n.pageXOffset||o.scrollLeft)-(o.clientLeft||0),t.width=a.right-a.left,t.height=a.bottom-a.top}else{if("none"===i.css("display"))return t;(t=i.offset()).width=i.outerWidth(),t.height=i.outerHeight()}return t.bottom=t.top+t.height,t.right=t.left+t.width,t},DiviArea.Utils.bindPassiveEvent=function(e,t,a){var r;r=!!i&&{passive:!1,capture:!1},o(e,t,(function(e,i){e.addEventListener(i,a,r)}))},DiviArea.Utils.unbindPassiveEvent=function(e,t,a){var r;r=!!i&&{passive:!1,capture:!1},o(e,t,(function(e,i){e.removeEventListener(i,a,r)}))},DiviArea.Utils.init=function(){var t={popupSelector:".et_pb_section.popup",fullHeightClass:"full-height",openPopupClass:"da-overlay-visible",overlayClass:"da-overlay",modalIndicatorClass:"is-modal",blockingIndicatorClass:"is-blocking",exitIndicatorClass:"on-exit",hoverTriggerClass:"on-hover",clickTriggerClass:"on-click",activePopupClass:"is-open",noCloseClass:"no-close",altCloseClass:"close-alt",notMobileClass:"not-mobile",notTabletClass:"not-tablet",notDesktopClass:"not-desktop",withCloseClass:"with-close",withLoaderClass:"with-loader",singletonClass:"single",darkModeClass:"dark",noShadowClass:"with-shadow",closeButtonClass:"da-close",popupWrapperClass:"area-outer-wrap",defaultShowCloseButton:!0,idAttrib:"data-popup",triggerClassPrefix:"show-popup-",baseContext:"body",triggerCloseClass:"close",zIndex:1e6,onExitDelay:2e3,animateSpeed:300,debug:!1,debugVerbose:!1,initializeOnEvent:"et_pb_after_init_modules"},a="";if(function(){try{var e={get passive(){return i=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){i=!1}}(),e.support.getBoundingClientRect="getBoundingClientRect"in document.documentElement,window.DiviAreaConfig||(window.DiviAreaConfig=t),window.DiviPopupData)for(a in DiviPopupData)DiviPopupData.hasOwnProperty(a)&&(DiviAreaConfig[a]=DiviPopupData[a]);for(a in t)void 0===DiviAreaConfig[a]&&(DiviAreaConfig[a]=t[a]);for(a in DiviAreaConfig)DiviAreaConfig[a].replace&&(DiviAreaConfig[a]=DiviAreaConfig[a].replace(/^[\s\xA0]+|[\s\xA0]+$/g,""));DiviAreaConfig.zIndex=parseInt(DiviAreaConfig.zIndex),DiviAreaConfig.onExitDelay=parseInt(DiviAreaConfig.onExitDelay),DiviAreaConfig.animateSpeed=parseInt(DiviAreaConfig.animateSpeed),DiviAreaConfig.debug=!!DiviAreaConfig.debug,DiviAreaConfig.defaultShowCloseButton=!!DiviAreaConfig.defaultShowCloseButton,(!DiviAreaConfig.triggerClassPrefix||DiviAreaConfig.triggerClassPrefix.length<3)&&(DiviAreaConfig.triggerClassPrefix=!1),"body"===DiviAreaConfig.baseContext&&(1===e("#et_builder_outer_content").length?(DiviAreaConfig.baseContext="#et_builder_outer_content",DiviArea.Debug.info("🎚 Divi plugin detected.","Inject Areas into #et_builder_outer_content")):1===e(".et-db #et-boc").length?(DiviAreaConfig.baseContext=".et-db #et-boc",DiviArea.Debug.info("🎚 Divi theme detected.","Inject Areas into #et-boc")):1===e("body.et_divi_theme #page-container").length&&(DiviAreaConfig.baseContext="#page-container",DiviArea.Debug.info("🎚 Divi theme detected.","Inject Areas into #page-container"))),"body"===DiviAreaConfig.baseContext||e(DiviAreaConfig.baseContext).length||(DiviAreaConfig.baseContext="body",DiviArea.Debug.info("🎚 Invalid baseContext given.","Inject Areas into body instead.")),window.DiviPopupData=window.DiviAreaConfig,window.DiviAreaConfig=DiviArea.applyFilters("init_options",DiviAreaConfig)},DiviArea.Utils.initErrorLogging=function(e){var i=function(e,i,t){if(!e[i]||!e[i].__dm_orig__){var a=e[i],r=void 0;for(var o in e[i]=function(){var e=!1;try{e=t.apply(this,arguments)}finally{!e&&a&&(r=a.apply(this,arguments))}return r},a)a.hasOwnProperty(o)&&(e[i][o]=a[o]);e[i].__dm_orig__=a}},t=function(){var e=arguments,i=!1;if(arguments[0]&&"[DiviAreas]"===arguments[0])return!1;for(var t=0;t<arguments.length;t++)if("object"==typeof e[t]&&e[t]&&e[t].message&&e[t].stack){i=e[t];break}if(i){var a=[],r=i.stack.toString().split("\n");if(a.push("divimode.com Anonymized Error Report"),a.push("-".repeat(30)),a.push(i.name),i.message?a.push(i.message):a.push("-"),a.push(""),r&&r.length>1)for(var o=0;o<r.length;o++){var n=r[o];if(n.match(/(\/wp-includes\/|\/jquery\.js)/))break;n.match(/\.js/)&&(n=(n=(n=n.replace(/^\s+|\s+$/g,"")).replace(/https?:.*?\/wp-content/g,"")).replace(/\.js\?[\w=&_\-\.]*/g,".js"),a.push(n))}if(DiviArea.info&&(a.push(""),a.push("js api:"+DiviArea.info)),window.DiviAreaConfig&&DiviAreaConfig.sys&&DiviAreaConfig.sys.plugin)for(var s in a.push(""),DiviAreaConfig.sys)try{a.push(s+": "+DiviAreaConfig.sys[s])}catch(e){}a.push("-".repeat(30));var l=console.error.__dm_orig__||console.error;return console.log(""),l("✋ "+a.join("\n| ")),console.log(""),!0}return!1};i(e,"onerror",t),i(e.console,"error",t)},DiviArea.Utils.toPixel=function(e,i,a){if(t||((t={}).PPI=void 0,t.getPPI=function(){return t.PPI=t.PPI||t.getSizeBrutal("in",document.body),t.PPI},t.parseUnit=function(e){var i=[0,""];e=String(e);var t=parseFloat(e,10);return i[0]=t,i[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",i},t.getPropertyInPx=function(e,i){var a=t.parseUnit(getComputedStyle(e).getPropertyValue(i));return a[0]*t.conversionFactor(a[1],e)},t.getSizeBrutal=function(e,i){var a=document.createElement("div");a.style.height="128"+e,i.appendChild(a);var r=t.getPropertyInPx(a,"height")/128;return i.removeChild(a),r},t.conversionFactor=function(e,i){switch(e=(e+""||"px").trim().toLowerCase()){case"%":return i.clientHeight/100;case"ch":case"ex":return t.getSizeBrutal(e,i);case"em":return t.getPropertyInPx(i,"font-size");case"rem":return t.getPropertyInPx(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return t.getPPI();case"cm":return t.getPPI()/2.54;case"mm":return t.getPPI()/25.4;case"pt":return t.getPPI()/72;case"pc":return t.getPPI()/6;case"px":return 1}return 0}),!e)return 0;if((a=a||document.body)!==window&&a!==document||(a=document.body),!isNaN(e)){if(i){var r=t.conversionFactor(i,a);return"number"==typeof r?e*r:0}return e}return 0},DiviArea.Utils.getStyleDef=function(e,i,t){var a="";return null===r&&(r=[],Array.from(document.styleSheets).map((function(e){try{r.push.apply(r,Array.from(e.rules))}catch(e){}}))),e.style&&""!==e.style[i]?a=e.style[i]:r.reverse().some((function(r){var o=!1;try{o=e.matches(r.selectorText)}catch(e){}return!(o&&t&&t.length&&-1!==t.indexOf(r.selectorText))&&(o&&Array.from(r.style).some((function(e){return e===i}))?(a=r.style[i],!0):void 0)})),a}}(window.jQuery),window.DiviAreaItem=function(e,i){var t=jQuery,a=window.ResizeObserver||window.WebKitResizeObserver,r=t(e),o={},n={hideclose:!1,showclose:!0,notmobile:!1,onmobile:!0,nottablet:!1,ontablet:!0,notdesktop:!1,ondesktop:!0,closealt:!1,notmodal:!0,ismodal:!1,notblocking:!1,isblocking:!1,triggerexit:!1,shadow:!0,noshadow:!1,darkmode:!1,singleton:!1,static:!1,withloader:!1},s={hideclose:"showclose",notdesktop:"ondesktop",notmobile:"onmobile",notmodal:"ismodal",notblocking:"isblocking",nottablet:"ontablet",shadow:"noshadow",dynamic:"static"},l=null,d=null,c=0,v=null,u=null,p=null,g={};function h(){for(var e in o._id=r.attr("id"),o._key=DiviArea.Utils.sanitizeHookName(o._id),o._type=y(i),o._inDom=r.closest(document.documentElement).length,o._isVisible=o._inDom&&r[0].getClientRects().length,o._size={},DiviArea.Debug.debug("Area Type",this.theType()),DiviArea.Debug.debug("Area ID",this.theId()),DiviArea.Debug.debug("Area Hook",this.theKey()),U(r),this.setData("zindex",0),this.setData("container",t("body")),this.setData("hasShowAnim",!0),this.setData("position","center-center"),this.setData("positionv","center"),this.setData("positionh","center"),n)void 0!==r.data("da-"+e)?(this.setData(DiviArea.Utils.toBool(r.data("da-"+e))),r.removeAttr("data-da-"+e)):void 0!==r.data(e)?(this.setData(DiviArea.Utils.toBool(r.data(e))),r.removeAttr("data-"+e)):this.setData(e,n[e]);var s={};for(var l in s[DiviArea.Utils.getOption("notMobileClass")]=["onmobile",!1],s[DiviArea.Utils.getOption("notTabletClass")]=["ontablet",!1],s[DiviArea.Utils.getOption("notDesktopClass")]=["ondesktop",!1],s[DiviArea.Utils.getOption("noCloseClass")]=["showclose",!1],s[DiviArea.Utils.getOption("withCloseClass")]=["showclose",!0],s[DiviArea.Utils.getOption("altCloseClass")]=["closealt",!0],s[DiviArea.Utils.getOption("modalIndicatorClass")]=["ismodal",!0],s[DiviArea.Utils.getOption("blockingIndicatorClass")]=["isblocking",!0],s[DiviArea.Utils.getOption("exitIndicatorClass")]=["triggerexit",!0],s[DiviArea.Utils.getOption("noShadowClass")]=["noshadow",!0],s[DiviArea.Utils.getOption("darkModeClass")]=["darkmode",!0],s[DiviArea.Utils.getOption("singletonClass")]=["singleton",!0],s[DiviArea.Utils.getOption("withLoaderClass")]=["withloader",!0],s)if(r.hasClass(l)){var d=s[l];this.setData(d[0],d[1]),r.removeClass(l)}DiviArea.UI.initializeAreaAnimation(r),m(),b(),D(),a&&(v=new a((function(e){var i=r[0].scrollHeight-r[0].clientHeight;i>0&&i-r[0].scrollTop<1&&(r[0].scrollTop-=1),o._size.width=0,o._size.height=0,o._size.contentWidth=0,o._size.contentHeight=0,O("resize",k)}),{box:"border-box"}),u=new a((function(e){o._size.wrapperWidth=0,o._size.wrapperHeight=0,O("resize",k)}),{box:"border-box"}))}function D(){r.attr("data-da-area",o._id),l.attr("data-da-area",o._id),l.attr("data-da-registered",1),l.attr("data-da-type",this.theType()),l.attr("data-da-close-btn",this.getData("showclose")?"yes":"no"),l.attr("data-da-close-bg",this.getData("closeAlt")?"none":"solid"),l.attr("data-da-loader",this.getData("withLoader")?"yes":"no"),l.attr("data-da-shadow",this.getData("shadow")?"yes":"no"),l.attr("data-da-color",this.getData("darkMode")?"dark":"light");var e=this.getData("wrapClasses");e&&l.addClass(e),O("position",this.setPosition),this.doAction("refresh_area")}function f(){var e=this;if(this.isVisible()){r.find("."+DiviArea.Utils.getOption("closeButtonClass")).off(".da");var i=function(i,t){return DiviArea.Debug.debug("Click on",t,"close-button"),e.doAction("close_area",e,t),i.preventDefault(),!1};l.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da").on("click.da",(function(e){return i(e,"custom")})),d.find("a").off(".da").on("click.da",(function(e){return i(e,"default")})),t(window).on("resize",C),this.addAction("close_area",_)}else l.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da"),d.find("a").off(".da"),t(window).off("resize",C),this.removeAction("close_area")}function A(e){var i=this;if(this.isVisible()){if(this.getData("hasShowAnim")){DiviArea.Debug.info("✨ Animate the area (show)",this.theId()),DiviArea.UI.animateArea(this,"show",(function(){i.getData("showclose")&&d.show(),e()}))}}else this.getData("hasShowAnim")&&(d.hide(),DiviArea.Debug.info("✨ Animate the area (hide)",this.theId()),DiviArea.UI.animateArea(this,"hide",e))}function b(){if(!d){var e=DiviArea.Utils.getOption("closeButtonClass"),i=e+"-wrap";d=t("<span>").addClass(i).appendTo(l),t("<a>").attr("href","#close").addClass(e).html("&times;").appendTo(d),d.hide(),this.doAction("area_close_button",d,this)}}function m(){if(!l){var e=DiviArea.Utils.getOption("popupWrapperClass");(l=r.parent()).hasClass(e)||(r.wrap("<div>"),(l=r.parent()).addClass(e)),U(l),this.doAction("area_wrap",l,this)}}function w(){var e=this;c&&clearTimeout(c),c=setTimeout((function(){c=0,e.inDom()&&D()}),20)}function y(e){return e.toLowerCase().trim().replace(/-/,"")}function _(e,i){var t=!1;if(t=this.applyFilters("ignore_close_area",t,this,i))return DiviArea.Debug.debug("Ignored, manually cancelled in filter"),!0;DiviArea.hide(this)}function C(){o._size.windowWidth=0,o._size.windowHeight=0,o._size.wrapperWidth=0,o._size.wrapperHeight=0,O("resize",k)}function k(){if(this.isVisible()){var e=this.getSize(),i=[e.width,e.height,e.contentWidth,e.contentHeight,e.windowWidth,e.windowHeight].join("-");if(o._resizeState!==i){if(o._resizeState=i,d.css({width:e.width,height:e.height}),this.isType("popup"))if(l.attr("data-da-size-full-height"))e.wrapperHeight-e.contentHeight>=20&&(l.removeAttr("data-da-size-full-height"),l.removeClass(DiviArea.Utils.getOption("fullHeightClass")));else e.windowHeight-e.contentHeight<=20&&(l.attr("data-da-size-full-height",1),l.addClass(DiviArea.Utils.getOption("fullHeightClass")));O("position",this.setPosition)}}}function x(e,i){var t,a="";if(i||""===(a=DiviArea.Utils.getStyleDef(l[0],e))&&(a=DiviArea.Utils.getStyleDef(r[0],e)),""===a){var o=r.find(".et_pb_section");for(t=0;t<o.length&&!a;t++)a=DiviArea.Utils.getStyleDef(o[t],e,['[class*="et_pb_section_dap_"]'])}return a}function I(){var e=x("width"),i=x("max-width",!0);e&&"auto"!==e||(this.isType("popup")||l.css("width","100%"),r.css("width","100%")),i&&r.css("max-width",i)}function O(e,i){var t=this;g[e]||(g[e]=window.setTimeout((function(){g[e]=!1,i.apply(t)}),4))}function U(e){var i=this;e.data("is-area",!0),e.data("area",this),e.data("area-config",o),e.getArea=function(){return i}}function z(){}this.theId=function(){return"#"+o._id},this.theKey=function(){return o._key},this.hasId=function(e){e=e.replace(/^#/,"",e);var i=DiviArea.Data.getRealId(e);return i||(i=DiviArea.Data.getRealId("divi-area-"+e)),i&&i===this.theId()},this.theType=function(){return o._type},this.isType=function(e){if(!e)return!0;if("string"!=typeof e)throw new Error("DiviAreaItem.isType() expects a string parameter. Given value is a "+typeof e);if((e=y(e))===o._type)return!0;if("any"===e||"all"===e)return!0;for(var i=0===e.indexOf("not:"),t=e.replace(/^not:\s*/,"").split(/\s*,\s*/),a=0;a<t.length;a++)if(t[a]===o._type)return!i;return i},this.get=function(e){return e?t(e,r):r},this.getWrap=function(){return l},this.attach=function(){if(w(),!this.inDom()){o._inDom=!0;var e=this.findHook();if(r.hide(),e){var i=e.data("area-place"),t=e;"after"===i?t=e.next():"replace"===i&&(p=e.next().detach()),t.after(l.detach())}else l.detach().appendTo(this.getData("container"));l.closest("#et-boc").length||l.wrap('<div id="et-boc">'),O("position",this.setPosition),this.setVisible(!0,(function(){if(v){var e=DiviArea.Utils.getOption("closeButtonClass")+"-wrap";r.children().each((function(i,t){-1===t.className.indexOf(e)&&v.observe(t)})),v.observe(r[0]),u.observe(l[0])}}))}},this.detach=function(){if(this.inDom()){o._inDom=!1;var e=this.findHook();v&&v.disconnect(),u&&u.disconnect(),this.setVisible(!1,(function(){var i=l.parent();r.hide(),l.detach(),"et-boc"!==i.attr("id")||i.hasClass("dm-base-context")||i.children().length||i.remove(),p&&(e.after(p),p=null)}))}},this.findHook=function(){var e='[data-area-hook="'+this.getData("hookid")+'"]',i=t(e);return!!i.length&&i},this.setVisible=function(e,i){e=!!e,o._isVisible!==e&&("function"!=typeof i&&(i=z),o._isVisible=e,f(),A(i),this.isVisible()?(I(),this.doAction("show_area")):this.doAction("hide_area"))},this.setPosition=function(){var e={},i={};if(this.isVisible()&&this.inDom()){if(this.getData("maxheight")&&(e.overflow="auto",e.maxHeight="100%",i.maxHeight=this.getData("maxheight")),this.getData("maxwidth")&&(e.maxWidth="100%",i.maxWidth=this.getData("maxwidth")),i.zIndex=this.getData("zindex"),this.isType("inline")||this.isType("hover"))l.removeAttr("data-da-position"),l.removeAttr("data-da-position-h"),l.removeAttr("data-da-position-v");else{var t=this.getData("positionh"),a=this.getData("positionv"),o=null;switch(l.attr("data-da-position",this.getData("position")),l.attr("data-da-position-h",t),l.attr("data-da-position-v",a),t){case"left":i.left="0";break;case"right":i.right="0";break;case"center":o||(o=this.getSize()),i.left=Math.max(0,parseInt((o.windowWidth-o.wrapperWidth)/2))+"px"}if(!l.attr("data-da-size-full-height"))switch(a){case"top":i.top="0";break;case"bottom":i.bottom="0";break;case"center":o||(o=this.getSize()),i.top=Math.max(0,parseInt((o.windowHeight-o.wrapperHeight)/2))+"px"}}r.css(e),l.css(i)}},this.setTriggerEvent=function(i){var a=!1;i&&(this.setData("event",i),i.currentTarget?a=i.currentTarget:i instanceof jQuery?a=i.first():window.HTMLElement&&e instanceof window.HTMLElement&&(a=t(i))),this.setData("attachto",a),DiviArea.Debug.debug("Attached to element:",a||"(none)")},this.isVisible=function(){return o._isVisible},this.inDom=function(){return o._inDom},this.getSize=function(){var e=this.isVisible();if(o._size&&void 0!==o._size.width||(o._size={}),o._size.width||(o._size.width=e?r[0].clientWidth:0),o._size.height||(o._size.height=e?r[0].clientHeight:0),o._size.contentWidth||(o._size.contentWidth=e?r[0].scrollWidth:0),!o._size.contentHeight&&(o._size.contentHeight=0,e))if(r.hasClass("et_pb_section")){var i=window.getComputedStyle(r[0]);o._size.contentHeight+=parseInt(i["border-top-width"]),o._size.contentHeight+=parseInt(i["padding-top"]),o._size.contentHeight+=parseInt(i["padding-bottom"]),o._size.contentHeight+=parseInt(i["border-bottom-width"]),r.children().each((function(){o._size.contentHeight+=this.offsetHeight}))}else o._size.contentHeight=r[0].scrollHeight;return o._size.wrapperWidth||(o._size.wrapperWidth=e?l[0].offsetWidth:0),o._size.wrapperHeight||(o._size.wrapperHeight=e?l[0].offsetHeight:0),o._size.windowWidth||(o._size.windowWidth=window.innerWidth),o._size.windowHeight||(o._size.windowHeight=window.innerHeight),o._size},this.getData=function(e){var i;return e=e.toLowerCase().replace(/[^a-z0-9]/,""),s.hasOwnProperty(e)?(e=s[e],i=!o[e]):i=o[e],i},this.setData=function(e,i){if(void 0!==i){if(e=e.toLowerCase().replace(/[^a-z0-9]/,""),n.hasOwnProperty(e))i=DiviArea.Utils.toBool(i,n[e]),s.hasOwnProperty(e)&&(e=s[e],i=!i);else switch(e){case"zindex":i=parseInt(i);break;case"closedelay":i=parseFloat(i);break;case"position":-1!==i.indexOf("top")?o.positionv="top":-1!==i.indexOf("bottom")?o.positionv="bottom":o.positionv="center",-1!==i.indexOf("left")?o.positionh="left":-1!==i.indexOf("right")?o.positionh="right":o.positionh="center",i=o.positionv+"-"+o.positionh;break;case"positionh":if("left"!==i&&"right"!==i&&"center"!==i)return;break;case"positionv":if("top"!==i&&"bottom"!==i&&"center"!==i)return;break;case"container":(i=t(i).first()).length||(i=t("body"));break;case"attachto":i=t(i).first()}switch(o[e]=i,e){case"positionh":case"positionv":o.position=o.positionv+"-"+o.positionh}w()}},this.doAction=function(e){for(var i=[],t=arguments.length-1;t-- >0;)i[t]=arguments[t+1];i.length||(i=[this]),DiviArea.doAction.apply(DiviArea,[[e,e+"_"+this.theKey()]].concat(i))},this.applyFilters=function(e,i){for(var t=[],a=arguments.length-2;a-- >0;)t[a]=arguments[a+2];return t.length||(t=[this]),DiviArea.applyFilters.apply(DiviArea,[[e,e+"_"+this.theKey()],i].concat(t))},this.addFilter=function(e,i,t,a){DiviArea.addFilter(e+"_"+this.theKey(),i,t,a)},this.addAction=function(e,i,t,a){DiviArea.addAction(e+"_"+this.theKey(),i,t,a)},this.removeFilter=function(e,i){DiviArea.removeFilter(e+"_"+this.theKey(),i)},this.removeAction=function(e,i){DiviArea.removeAction(e+"_"+this.theKey(),i)},this.addActionOnce=function(e,i,t,a){DiviArea.addActionOnce(e+"_"+this.theKey(),i,t,a)},this.hasClass=r.hasClass.bind(r),this.addClass=r.addClass.bind(r),this.removeClass=r.removeClass.bind(r),this.attr=r.attr.bind(r),this.removeAttr=r.removeAttr.bind(r),this.find=r.find.bind(r),h=h.bind(this),D=D.bind(this),f=f.bind(this),A=A.bind(this),w=w.bind(this),m=m.bind(this),b=b.bind(this),_=_.bind(this),C=C.bind(this),k=k.bind(this),x=x.bind(this),I=I.bind(this),O=O.bind(this),U=U.bind(this),h()};var i,t,a,r;i=jQuery,DiviArea.init=function(e){var t=[window.location.protocol,"//",window.location.host,"/wp-admin/edit.php?post_type=divi-area&page=settings#frontend"];this.app=e?"Divi Areas Pro":"Popups for Divi",this.lib=e?"DiviArea":"DiviPopup",this.version="2.0.0",this.info=this.lib+"-"+this.version,this.loaded=!0,DiviArea.Debug.info("🚀 Initialize "+this.app,"- JS API:",this.info),e?DiviArea.Debug.info("ℹ️ You can disable the debug output on the Settings page:",t.join("")):DiviArea.Debug.info("ℹ️ You can disable the debug output by disabling WP_DEBUG"),DiviArea.Debug.debug("Details about the Debug Mode","https://divimode.com/knowledge-base/debug-options/"),DiviArea.Utils.init(),DiviArea.Utils.getOption("initializeOnEvent")?i(window,document).one(DiviArea.Utils.getOption("initializeOnEvent"),(function(){window.setTimeout(DiviArea.Core.init,1)})):window.setTimeout(DiviArea.Core.init,1)},DiviArea.markClosed=function(e,i){if(DiviArea.Utils.getOption("debug")){var t=DiviArea.Data.sanitizeId(e);DiviArea.Debug.info("📌 Mark Area as closed for "+i+" minutes:",t)}DiviArea.Utils.setLocalData(e,"1",i)},DiviArea.isClosed=function(e){e=e.toLowerCase().replace(/^#/,"");var i=DiviArea.Utils.getLocalData(e);if(DiviArea.Utils.getOption("debug")){var t=DiviArea.Data.sanitizeId(e);"1"===i?DiviArea.Debug.info("📌 Area is still closed:",t):DiviArea.Debug.info("📌 Area is not closed:",t)}return"1"===i},DiviArea.register=function(e,t,a){if(void 0===t&&(t={}),void 0===a&&(a=!1),!(e=DiviArea.Data.sanitizeId(e)))return!1;var r=DiviArea.getArea(e);if(r)return r;var o=i(e);if(o.length&&t.selector&&(o=o.filter(t.selector),delete t.selector),1!==o.length)return!1;if(!a){if(o.data("da-type"))a=o.data("da-type"),o.removeAttr("data-da-type");else if(o.data("type"))a=o.data("type"),o.removeAttr("data-type");else for(var n=o[0].className.split(/\s+/),s=0;s<n.length;s++)if(0===n[s].indexOf("divi-area-type-")){a=n[s].replace("divi-area-type-",""),o.removeClass(n[s]);break}if(!a)return!1}if(DiviArea.Debug.group("Register Area | "+a+" | "+e),t.areaHook&&t.hookId&&"inline"===a){var l=i(t.areaHook).first();if(l.length){var d=i("<span>");d.attr("data-area-hook",t.hookId),d.attr("data-area-place",t.areaPlace),l.before(d)}else DiviArea.Debug.error("Inline hook not found:",t.areaHook)}var c=DiviArea.Data.createArea(o,a,e);return t.alternateid?DiviArea.Data.addAltId(c.theId(),t.alternateid):t.alternateId?DiviArea.Data.addAltId(c.theId(),t.alternateId):t.ids&&DiviArea.Data.addAltId(c.theId(),t.ids),delete t.alternateid,delete t.alternateId,delete t.ids,Object.keys(t).forEach((function(e){c.setData(e,t[e])})),c.setData("wrap-classes","et-l entry-content"),c.isType("inline")&&c.getData("static")?(DiviArea.Core.initContainer(c),DiviArea.show(e,"static")):(c.detach(),c.setData("container",DiviArea.Core.getContext())),DiviArea.Debug.info("➕ Registered new area:",e,"("+a+")"),DiviArea.Debug.group(),c.doAction("init_area"),c},DiviArea.show=function(e,i){if(!e)return!1;var t=DiviArea.getArea(e);return t?DiviArea.Utils.showOnViewport(t)?(DiviArea.Debug.group("Show area",t.theId()),t.setData("hasShowAnim",!t.isVisible()),t.setTriggerEvent(i),t.isType("hover")&&DiviArea.Core.setupHoverArea(t),DiviArea.Core.attachArea(t),DiviArea.Core.reOrderAreas(),DiviArea.Debug.group(),!0):(DiviArea.Debug.debug("Do not trigger area on this device:",t.theId()),!1):(DiviArea.Debug.error("Could not find an area with the ID:",e),!1)},DiviArea.hide=function(e){var i=DiviArea.Data.getVisibleArea(e);i&&(i.setData("hasShowAnim",!0),i.setData("event",void 0),DiviArea.Debug.debug("Close area and unlink event handlers:",i.theId()),DiviArea.Core.detachArea(i)),DiviArea.Core.reOrderAreas()},function(e){DiviArea.Core=DiviArea.Core||{};var i=window.ResizeObserver||window.WebKitResizeObserver,t=null,a=!1,r=!1;function o(e,i){DiviArea.Core.isArea(e)||(e=DiviArea.Data.getVisibleArea())&&(DiviArea.Debug.debug("Close the top-most area"),e.doAction("close_area",e,"default"))}function n(e){if(27===e.keyCode)return function(){DiviArea.Debug.info("⚡️ ESC-key pressed");var e=!1,i=DiviArea.Data.getVisibleArea(null,"popup");return i?(e=i.getData("isblocking"),(e=DiviArea.applyFilters("ignore_esc_key",e))?(DiviArea.Debug.debug("Ignored, manually cancelled in filter"),!0):(DiviArea.Debug.debug("Close top-most popup"),DiviArea.doAction("close_area",null,"esc"),!1)):(DiviArea.Debug.debug("Ignored, no popup is visible"),!0)}()}function s(){var e=["popup","flyin"],i=!1;function t(e,t){i||e.getData("triggerexit")&&(DiviArea.isClosed(t)?e.setData("triggerexit",!1):DiviArea.show(t,"exit")&&(e.setData("triggerexit",!1),i=!0))}for(var a in e)i=!1,DiviArea.Data.loopAllAreas(e[a],t)}function l(e,i){var t=[];if(i.isType("popup")&&"show"===e&&i.getData("singleton")&&DiviArea.Data.loopVisibleAreas("popup",(function(e){t.push(e.theId())})),"hide"===e?i.doAction("before_hide_area",i,t):i.doAction("before_show_area",i,t),t.length)for(var a in DiviArea.Debug.debug("Hide following areas:",t),t){var r=DiviArea.getArea(t[a]);r&&r.inDom()&&DiviArea.Core.detachArea(r)}}function d(i,t){var a;if(a=DiviArea.Data.sanitizeId(t))if(i.attr("data-area-id"))DiviArea.Debug.debug("Trigger already prepared",i[0]);else if(DiviArea.getArea(a)){var r=DiviArea.Utils.getOption("hoverTriggerClass"),o=DiviArea.Utils.getOption("clickTriggerClass");i.attr("data-area-id",a),i.addClass("popup-trigger"),i.off("click"),i.hasClass(r)&&(i.on("mouseenter._da",n),DiviArea.Debug.debug("Prepared Hover trigger to open this area:",a,i[0])),i.hasClass(r)&&!i.hasClass(o)||(i.on("click._da",n),DiviArea.Debug.debug("Prepared Click trigger to open this area:",a,i[0]))}else DiviArea.Debug.debug("Ignore trigger. No area found with this ID:",i[0]);else DiviArea.Debug.debug("Ignore trigger. Invalid target ID:",t,i[0]);function n(i){var t=e(i.target);return!("A"!==t.prop("tagName")||!t.attr("href").length||t.attr("data-area-id"))||(i.preventDefault(),DiviArea.Debug.debug("Trigger area:",a),DiviArea.show(a,i),!1)}}function c(i){var t=e(i.target).closest("[data-da-type][data-da-registered]"),a=DiviArea.Utils.getOption("fullHeightClass");return!(!t.length||!t.hasClass(a))||(i.preventDefault(),i.stopPropagation(),!1)}DiviArea.Core.init=function(){a?DiviArea.Debug.error("Core.init() was already executed. It should not run twice, please review the code!"):(a=!0,DiviArea.Debug.debug("Initialize the app"),DiviArea.doAction("load"),(t=e(DiviArea.Utils.getOption("baseContext")).filter(":visible").first()).length?(t.closest("#et-boc").length||(t.append('<div id="et-boc" class="dm-base-context"></div>'),t=t.find("#et-boc").first()),DiviArea.Debug.debug('Base context "'+DiviArea.Utils.getOption("baseContext")+'" found',t)):DiviArea.Debug.error('Could not find the popup container "'+DiviArea.Utils.getOption("baseContext")+'"'),function(){var i=e(".et_pb_fullscreen_nav_container #mobile_menu_slide");if(!i.length)return;i.parent().css({minHeight:i.outerHeight()})}(),window.setTimeout((function(){e(window).on("mouseleave.da",(function(e){var i;"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&"select"!==e.target.tagName.toLowerCase()&&(i=Math.max(document.documentElement.clientWidth,window.innerWidth||0),e.clientX>=i-50||e.clientY>=50||e.toElement||e.relatedTarget||(DiviArea.Debug.info("⚡️ Exit-intent detected (mouse leave)"),DiviArea.doAction("exit_intent","mouse-leave")))})),DiviArea.addAction("exit_intent",s)}),DiviArea.Utils.getOption("onExitDelay")),DiviArea.addAction("ready",(function(){DiviArea.addAction("close_area",o),function(e){var i=window.MutationObserver||window.WebKitMutationObserver,t=window.addEventListener,a=DiviArea.Core.getContext(),r=!1;function o(){r||(r=setTimeout((function(){r=!1,DiviArea.Debug.debug("DOM changed"),e()}),50))}if(i){new i((function(e,i){if(e[0].addedNodes.length||e[0].removedNodes.length)return o()})).observe(a[0],{childList:!0,subtree:!0})}else t&&(a.addEventListener("DOMNodeInserted",o,!1),a.addEventListener("DOMNodeRemoved",o,!1))}(DiviArea.Core.activateContainer),e(document).on("keyup",n)}),1),DiviArea.addAction("ready",(function(){DiviArea.Core.activateContainer()}),9),DiviArea.doAction("ready"))},DiviArea.Core.isArea=function(e){return e&&e instanceof DiviAreaItem},DiviArea.Core.getContext=function(){return t},DiviArea.Core.reOrderAreas=function(){if(DiviArea.Data.countVisibleAreas("popup")||DiviArea.hideOverlay(),DiviArea.Data.countVisibleAreas()){var e=DiviArea.Utils.getOption("zIndex"),i=DiviArea.Data.countVisibleAreas("not: inline"),t=DiviArea.Data.countVisibleAreas("popup"),a=[],r=0,o=0,n={};if(DiviArea.Debug.debug("Refresh the z-index of visible areas"),DiviArea.Data.loopVisibleAreas("any",DiviArea.Core.blurArea),DiviArea.Core.focusArea(DiviArea.Data.getVisibleArea()),DiviArea.Data.loopVisibleAreas("not: inline",(function(a){var s=0;a.isType("popup")?(o++,s=e+i-t+o,a.hasClass(DiviArea.Utils.getOption("activePopupClass"))&&(n.overlay=s,s+=1)):(r++,s=e+r),n[a.theId()]=s})),(n=DiviArea.applyFilters("reorder_areas",n)).overlay&&!isNaN(n.overlay)){var s=DiviArea.showOverlay(n.overlay);a.push({id:"-",type:"overlay","z-index":s})}for(var l in n)d(l);DiviArea.Debug.info("👓 List of visible Areas:"),DiviArea.Debug.table(a)}function d(e){if("overlay"!==e){var i=DiviArea.getArea(e);if(i){var t=n[e];t&&!isNaN(t)&&i.setData("zindex",t),i.isType("popup")&&i.attach(),a.push({id:i.theId(),type:i.theType(),"z-index":i.getData("zindex")||null})}}}},DiviArea.Core.activateContainer=function(i){var t,a,r=void 0===i;if(void 0===i?i=e("body"):DiviArea.Core.isArea(i)&&(i=i.get()),function(i){i.find(DiviArea.Utils.getOption("popupSelector")).not("[data-da-area]").filter("[id]").each((function(){var i=e(this);DiviArea.Debug.debug("Found an inline Popup Area:",i.attr("id")),DiviArea.register(i,{},"popup")}))}(i),(a=function(i,t){var a,r,o,n=[];if(!i.ids||!i.ids.length)return[];function s(i,t){var a;for(a=0;a<t.length;a++){var r=e(t[a]);r.attr("data-area-id")||(r.attr("data-da-area")||r.hasClass("divi-area-wrap")||r.hasClass("et_pb_section")&&r.hasClass("popup")||n.push({id:i,item:r}))}}for(a=0;a<i.ids.length;a++){var l="#"+(o=i.ids[a].replace(/^#/,"")),d=i.linkPrefix?"#"+i.linkPrefix+o:"",c="."+o,v=i.classPrefix?"."+i.classPrefix+o:"",u=i.dataAttrib?i.dataAttrib+'="'+o+'"':"";if(s(o,e('[href="'+l+'"]',t)),d&&s(o,e('[href="'+d+'"]',t)),s(o,e(c,t)),v&&s(o,e(v,t)),u&&s(o,e("["+u+"]",t)),window.et_link_options_data)for(r=et_link_options_data.length-1;r>=0;r--)if(l===et_link_options_data[r].url||d===et_link_options_data[r].url){var p=e("."+et_link_options_data[r].class,t);s(o,p),p.off("click"),et_link_options_data.splice(r,1)}}return n}({ids:DiviArea.listAreas(),linkPrefix:"popup:",dataAttrib:DiviArea.Utils.getOption("idAttrib"),classPrefix:DiviArea.Utils.getOption("triggerClassPrefix")},i)).length){for(r?DiviArea.Debug.group("Activate all triggers in document"):DiviArea.Debug.group("Activate triggers in area",i.attr("id")),t=0;t<a.length;t++){var o=a[t];d(o.item,o.id)}DiviArea.Debug.group()}else r?DiviArea.Debug.debug("No new triggers found in document"):DiviArea.Debug.debug("No new triggers found in area",i.attr("id"));DiviArea.Core.initContainer(i)},DiviArea.Core.initContainer=function(i){var t=!1,a=!1;return DiviArea.Core.isArea(i)?(t=i,i=i.get()):i.data("is-area")&&(t=i.getArea()),t&&(a=t.getData("post_id")),t&&!0===i.data("area-init-done")||(t&&i.data("area-init-done",!0),e("body").trigger("post-load"),i.find("img[loading=lazy]").attr("loading","eager"),void 0!==window.et_fix_pricing_currency_position&&window.et_fix_pricing_currency_position(i.find(".et_pb_pricing_table")),a&&i.find(".et_pb_newsletter_form").length&&i.find(".et_pb_newsletter_form [name=et_pb_signup_post_id]").val(a),function(e){if(!window.grecaptcha)return;if(!e.find('input[name="g-recaptcha-response"]').length)return;if(e.find("[data-sitekey].g-recaptcha").length>0){if(!grecaptcha.render)return;e.find("form").each((function(){var e=jQuery(this),i=e.find("[data-sitekey].g-recaptcha");if(i.length&&!e.find('iframe[src*="/recaptcha/"]').length){var t={sitekey:i.attr("data-sitekey"),type:i.attr("data-type"),size:i.attr("data-size"),theme:i.attr("data-theme"),badge:i.attr("data-badge"),tabindex:i.attr("data-tabindex")},a=i.attr("data-callback"),r=i.attr("data-expired-callback");a&&"function"==typeof window[a]&&(t.callback=window[a]),r&&"function"==typeof window[r]&&(t["expired-callback"]=window[r]);var o=grecaptcha.render(i[0],t);window.recaptchaWidgets&&recaptchaWidgets.push(o)}}))}else{if(!grecaptcha.execute)return;var i=jQuery('script[src*="google.com/recaptcha/api.js"]').attr("src").replace(/^.*render=(.*)$/,"$1").split("&")[0];grecaptcha.execute(i,{action:"homepage"}).then((function(i){e.find('form [name="g-recaptcha-response]').val(i)}))}}(i)),void 0!==window.et_reinit_waypoint_modules&&window.et_reinit_waypoint_modules(),i},DiviArea.Core.deactivateContainer=function(i){DiviArea.Core.isArea(i)&&(DiviArea.Debug.debug("Deactivate all triggers in area",i.theId()),i.find("[data-area-id]").each((function(){!function(e){DiviArea.Debug.debug("Remove trigger:",e[0]),e.removeAttr("data-area-id"),e.removeClass("popup-trigger"),e.off("._da")}(e(this))})))},DiviArea.Core.attachArea=function(e){r||(r=!0,l("show",e),r=!1),DiviArea.Data.addVisibleArea(e),e.attach()},DiviArea.Core.detachArea=function(e){if(r||(r=!0,l("hide",e),r=!1),e.inDom()){if(!DiviArea.Core.isArea(e)||!e.inDom())return;e.removeClass("__is_animating"),DiviArea.Data.removeVisibleArea(e),DiviArea.Core.blurArea(e),e.detach()}},DiviArea.Core.focusArea=function(e){var i=DiviArea.Utils.getOption("activePopupClass");e&&(e.get(),DiviArea.Core.activateContainer(e),e.hasClass(i)||(e.addClass(i),e.doAction("focus_area")))},DiviArea.Core.blurArea=function(e){var i=DiviArea.Utils.getOption("activePopupClass");e&&(e.get(),DiviArea.Core.deactivateContainer(e),e.hasClass(i)&&(e.removeClass(i),e.doAction("blur_area")))},DiviArea.Core.setupHoverArea=function(t){var a=t.getData("attachto"),r=t.get(),o=t.getWrap();if(a.length){var n=DiviArea.Utils.isPosition(a,"fixed"),s=t.theId(),l=t.getData("closeTrigger"),d=1e3*t.getData("closedelay"),c=!1,v=!1,u=!1;i&&(u=new i((function(e){for(var i=0;i<e.length;i++){var t=e[i].contentRect,a=t.width+"-"+t.height;a!==v&&(v=a,g())}}),{box:"border-box"})),u&&u.observe(a[0]),"click"===l?e(document).on("click."+t.theKey(),(function(i){e(i.target).closest(s).length||h()})):"hover"===l&&(r.on("mouseleave._dah",h),a.on("mouseleave._dah",h)),a.on("mouseenter._dah",D),r.on("mouseenter._dah",D),t.isVisible()?p():t.addActionOnce("show_area",p),DiviArea.Debug.debug("Prepared positioning of hover area")}else DiviArea.Debug.error("Hover Area without alignment element found");function p(){DiviArea.Debug.info("📐 Position area relative to element:",a),g()}function g(){var e=n?a[0].getBoundingClientRect():DiviArea.Utils.getClientRect(a),i=t.getData("positionv"),r=t.getData("positionh"),s=t.getSize(),l={left:"",top:"",right:"",bottom:"",width:"",height:"",position:n?"fixed":"absolute"};"top"===i||"bottom"===i?(l.top="top"===i?e.top-s.height:e.bottom,l.left=e.left+e.width/2-s.width/2):"left"===r||"right"===r?(l.left="left"===r?e.left-s.width:e.right,l.top=e.top+e.height/2-s.height/2):DiviArea.Debug.error("Invalid position",t.getData("position")),l.top<0&&(l.top=0),l.left<0&&(l.left=0),l.left+s.width>window.innerWidth&&(l.left=window.innerWidth-s.width),DiviArea.Debug.debug("Area position:",l),o.css(l)}function h(){D(),c=window.setTimeout((function(){var i=t.getData("attachto");i&&i.length&&a!==i||(u&&u.disconnect(),e(document).off("."+t.theKey()),r.off("._dah"),a.off("._dah"),DiviArea.hide(t))}),d)}function D(){c&&window.clearTimeout(c),c=!1}},DiviArea.Core.disableBodyScroll=function(){var i=e("body");!0!==i.data("da-disable-scroll")&&(i.data("da-disable-scroll",!0),i.addClass(DiviArea.Utils.getOption("openPopupClass")),DiviArea.Utils.bindPassiveEvent([i,DiviArea.getOverlay()],"mousewheel touchmove",c),DiviArea.doAction("disabled_scrolling"))},DiviArea.Core.enableBodyScroll=function(){var i=e("body");!0===i.data("da-disable-scroll")&&(i.data("da-disable-scroll",!1),i.removeClass(DiviArea.Utils.getOption("openPopupClass")),DiviArea.Utils.unbindPassiveEvent([i,DiviArea.getOverlay()],"mousewheel touchmove",c),DiviArea.doAction("enabled_scrolling"))},DiviArea.Core.closeMainMenu=function(){e(".et_pb_fullscreen_menu_active").length?e(".et_toggle_fullscreen_menu").first().trigger("click"):e(".et_pb_slide_menu_active").length&&e(".et_toggle_slide_menu").first().trigger("click")}}(jQuery),function(e){DiviArea.Data=DiviArea.Data||{};var i={},t=[],a={};DiviArea.Data.sanitizeId=function(e,i){if(!e)return"";if(e instanceof DiviAreaItem)return e.theId();if(e instanceof jQuery)return"#"+e.attr("id");if(e){if(i){var t=new RegExp("^#"+i+":");e=e.replace(t,"#",e)}"#"!==e[0]&&(e="#"+e)}return e.length>1?e:""},DiviArea.Data.getRealId=function(e){var t=DiviArea.Data.sanitizeId(e),r=DiviArea.Data.sanitizeId(a[t]);return t&&void 0!==i[t]?t:r&&void 0!==i[r]?r:""},DiviArea.Data.addAltId=function(e,i){function t(i){i=DiviArea.Data.sanitizeId(i),e!==i&&(null===e?delete a[i]:a[i]=e)}e=DiviArea.Data.sanitizeId(e),Array.isArray(i)?i.forEach((function(e){return t(e)})):t(i)},DiviArea.Data.getArea=function(e){if(e instanceof DiviAreaItem)return e;e instanceof jQuery&&(e=e.attr("id"));var t=DiviArea.Data.getRealId(e);return!!t&&i[t]},DiviArea.Data.createArea=function(e,t,a){return a=DiviArea.Data.sanitizeId(a),i[a]=new DiviAreaItem(e,t),i[a]},DiviArea.Data.getAllIds=function(e){var t=[];if(DiviArea.Core.isArea(e)){var r=e.theId();for(var o in t.push(r),a)r===a[o]&&t.push(o)}else{for(var n in i){i[n].isType(e)&&t.push(n)}for(var s in a){var l=a[s];i[l].isType(e)&&t.push(s)}}return t},DiviArea.Data.loopAllAreas=function(e,t){for(var a in i){var r=i[a];r.isType(e)&&t(r,a)}},DiviArea.Data.countVisibleAreas=function(e){if(!e||"any"===e)return t.length;var i=0;return DiviArea.Data.loopVisibleAreas(e,(function(){return i++})),i},DiviArea.Data.addVisibleArea=function(e){if(!(e=DiviArea.getArea(e)))return!1;if(e.isType("popup")||!DiviArea.Data.countVisibleAreas("popup"))t.push(e);else for(var i=0;i<t.length;i++)if(t[i].isType("popup")){t.splice(i,0,e);break}},DiviArea.Data.removeVisibleArea=function(e){if(!(e=DiviArea.getArea(e)))return!1;for(var i=e.theId(),a=t.length-1;a>=0;a--){t[a].theId()===i&&t.splice(a,1)}},DiviArea.Data.getVisibleArea=function(e,i){var a=t.length-1;if(!e&&!i)return t[a];if(e){var r=DiviArea.getArea(e);return!!r&&(!!r.isType(i)&&(!!r.isVisible()&&r))}for(var o=a;o>=0;o--){var n=t[o];if(n.isType(i))return n}return!1},DiviArea.Data.loopVisibleAreas=function(e,i,a){for(var r=t.length,o=a?r-1:0,n=0;n<r;n++){var s=t[o];o+=a?-1:1,s.isType(e)&&i(s,n)}}}(),function(e){var i=null,t=!1;function a(e){DiviArea.Debug.info("⚡️ Click on background overlay"),e.preventDefault(),DiviArea.doAction("click_overlay");var i=DiviArea.Data.getVisibleArea(null,"popup");return i?i.getData("ismodal")?(DiviArea.Debug.debug("Ignore click:",'Top-most popup is marked as "modal"'),!1):DiviArea.applyFilters("ignore_overlay_click",!1)?(DiviArea.Debug.debug("Ignore click:","Manually cancelled via filter"),!1):(DiviArea.doAction("close_area",null,"overlay"),DiviArea.Data.countVisibleAreas("popup")||DiviArea.hideOverlay(),!1):(DiviArea.Debug.debug("Ignore click:","No visible Popups found"),!1)}DiviArea.showOverlay=function(r){return null===i&&((i=e("<div />")).addClass(DiviArea.Utils.getOption("overlayClass")),i.on("click.popup",a),DiviArea.doAction("init_overlay",i)),r&&!isNaN(r)||(r=DiviArea.Utils.getOption("zIndex"),r+=Math.max(0,DiviArea.Data.countVisibleAreas())),i.css({zIndex:r}),t||(t=!0,DiviArea.Debug.info("⤴️ Show background overlay"),i.detach().appendTo(DiviArea.Core.getContext()),i.fadeIn(DiviArea.Utils.getOption("animateSpeed"),(function(){t&&DiviArea.Core.disableBodyScroll()})),DiviArea.doAction("show_overlay",i),DiviArea.Core.closeMainMenu()),r},DiviArea.hideOverlay=function(){t&&(t=!1,DiviArea.Debug.info("⤵️ Hide background overlay"),i.hide().detach(),DiviArea.Core.enableBodyScroll(),DiviArea.doAction("hide_overlay",i))},DiviArea.getOverlay=function(){return i}}(jQuery),function(){DiviArea.UI=DiviArea.UI||{};var e={};function i(e,i,t){t=t||e.data("et_waypoint_max_instances")||1;var a=e.data("et_waypoint")||[];if(a.length<t){var r=e.waypoint(i);r&&r.length>0&&(a.push(r[0]),e.data("et_waypoint",a))}else for(var o=0;o<a.length;o++)a[o].context.refresh()}DiviArea.UI.animateArea=function(t,a,r){var o=!1,n=!1;window.TweenLite&&t.isType("flyin")&&(n=!0),"function"!=typeof r&&(r=function(){}),"hide"!==a||t.isType("flyin")?(t.hasClass("et_pb_section")&&jQuery.fn.waypoint&&"yes"!==et_pb_custom.ignore_waypoints&&function(t){var a,r=t.attr("data-animation");if(!r)return!1;if(!(a=e[r]))return!1;jQuery("body").css("overflow-x","hidden"),jQuery("#page-container").css("overflow-y","hidden"),t.attr({"data-animation-style":a.style,"data-animation-repeat":"once"===a.repeat?"":"infinite","data-animation-duration":a.duration,"data-animation-delay":a.delay,"data-animation-intensity":a.intensity,"data-animation-starting-opacity":a.starting_opacity,"data-animation-speed-curve":a.speed_curve}),i(t,{offset:"100%",handler:function(){!function(e){var i=e.attr("data-animation-style"),t=e.attr("data-animation-repeat"),a=e.attr("data-animation-duration"),r=e.attr("data-animation-delay"),o=e.attr("data-animation-intensity"),n=e.attr("data-animation-starting-opacity"),s=e.attr("data-animation-speed-curve");!function(e){for(var i=[],t=e.get(0).attributes,a=0;a<t.length;a++)"data-animation-"===t[a].name.substring(0,15)&&i.push(t[a].name);jQuery.each(i,(function(i,t){e.removeAttr(t)}))}(e);var l=isNaN(parseInt(n))?0:.01*parseInt(n);-1===jQuery.inArray(s,["linear","ease","ease-in","ease-out","ease-in-out"])&&(s="ease-in-out"),e.css({"animation-duration":a,"animation-delay":r,opacity:l,"animation-timing-function":s});for(var d={},c=isNaN(parseInt(o))?50:parseInt(o),v=["slide","zoom","flip","fold","roll"],u=!1,p=!1,g=0;g<v.length;g++){var h=v[g];if(i&&i.substr(0,h.length)===h){u=h,""!==(p=i.substr(h.length,i.length))&&(p=p.toLowerCase());break}}!1!==u&&!1!==p&&(d=function(e,i,t){var a={};switch(e){case"slide":switch(i){case"top":a={transform:"translate3d(0, "+(r=-2*t)+"%, 0)"};break;case"right":a={transform:"translate3d("+(r=2*t)+"%, 0, 0)"};break;case"bottom":a={transform:"translate3d(0, "+(r=2*t)+"%, 0)"};break;case"left":var r=-2*t;a={transform:"translate3d("+r+"%, 0, 0)"};break;default:a={transform:"scale3d("+(o=.01*(100-t))+", "+o+", "+o+")"}}break;case"zoom":var o=.01*(100-t);switch(i){case"top":case"right":case"bottom":case"left":default:a={transform:"scale3d("+o+", "+o+", "+o+")"}}break;case"flip":switch(i){case"right":a={transform:"perspective(2000px) rotateY("+(n=Math.ceil(.9*t))+"deg)"};break;case"left":a={transform:"perspective(2000px) rotateY("+(n=-1*Math.ceil(.9*t))+"deg)"};break;case"top":default:a={transform:"perspective(2000px) rotateX("+(n=Math.ceil(.9*t))+"deg)"};break;case"bottom":a={transform:"perspective(2000px) rotateX("+(n=-1*Math.ceil(.9*t))+"deg)"}}break;case"fold":switch(i){case"top":a={transform:"perspective(2000px) rotateX("+(n=-1*Math.ceil(.9*t))+"deg)"};break;case"bottom":a={transform:"perspective(2000px) rotateX("+(n=Math.ceil(.9*t))+"deg)"};break;case"left":a={transform:"perspective(2000px) rotateY("+(n=Math.ceil(.9*t))+"deg)"};break;case"right":default:a={transform:"perspective(2000px) rotateY("+(n=-1*Math.ceil(.9*t))+"deg)"}}break;case"roll":switch(i){case"right":case"bottom":a={transform:"rotateZ("+(n=-1*Math.ceil(3.6*t))+"deg)"};break;case"top":case"left":a={transform:"rotateZ("+(n=Math.ceil(3.6*t))+"deg)"};break;default:var n=Math.ceil(3.6*t);a={transform:"rotateZ("+n+"deg)"}}}return a}(u,p,c)),jQuery.isEmptyObject(d)||e.css(d),e.addClass("et_animated"),e.addClass(i),e.addClass(t)}(jQuery(this.element))}})}(t.get())&&(o=!0),n?function(e,i,t){DiviArea.Debug.debug("Animate Area using GSAP");var a=DiviArea.Utils.getOption("animateSpeed"),r={},o={},n=e.get();n.css({opacity:"show"===i?0:1,transition:"all 0s"}),n.show(),window.setTimeout((function(){"left"===e.getData("positionh")?(r.left=-1*n.outerWidth(),o.left=0):"right"===e.getData("positionh")?(r.right=-1*n.outerWidth(),o.right=0):"top"===e.getData("positionv")?(r.top=-1*n.outerHeight(),o.top=0):"bottom"===e.getData("positionv")&&(r.bottom=-1*n.outerHeight(),o.bottom=0),r.opacity=1,o.opacity=1,"hide"===i?(n.css(o),TweenLite.to(n,a/1e3,{css:r})):(n.css(r),TweenLite.to(n,a/1e3,{css:o})),window.setTimeout(t,a)}),5)}(t,a,r):o?function(e,t,a){DiviArea.Debug.debug("Animate Area using a Divi Animation");var r=e.get();r.show(),r.css({opacity:0}),window.setTimeout((function(){r.css({opacity:""}),i(r,{offset:"100%",handler:function(){r.addClass("et-animated"),a()}},2)}),10)}(t,0,r):function(e,i,t){var a=e.get(),r=DiviArea.Utils.getOption("animateSpeed");"show"===i?(DiviArea.Debug.debug("Animate Area using jQuery fadeIn",r),a.fadeIn(r,t)):"hide"===i&&(DiviArea.Debug.debug("Animate Area using jQuery fadeOut",r),a.fadeOut(r,t))}(t,a,r)):r()},DiviArea.UI.initializeAreaAnimation=function(i){if(!window.et_animation_data||!window.et_animation_data.length>0)return!1;i.removeClass("et-waypoint"),i.removeClass("et-animated");for(var t=0;t<et_animation_data.length;t++){var a=!1,r=et_animation_data[t];r&&(r.class&&i.hasClass(r.class)&&r.style&&r.repeat&&r.duration&&r.delay&&r.intensity&&r.starting_opacity&&r.speed_curve&&(a=r.class,i.addClass("pfd-waypoint"),i.attr("data-animation",a),e[a]=r,et_animation_data[t].class=void 0))}}}(),function(){DiviArea.Debug=DiviArea.Debug||{};var e=!1,i=window.DiviAreaConfig;DiviArea.Debug.group=function(t){if(i.debug&&console.group){var a=!e||t&&t!==e;if(e&&(console.groupEnd(),e=!1),t&&a){var r=Array.prototype.slice.call(arguments);r.unshift("[DiviAreas]"),console.group.apply(this,r),e=t}}},DiviArea.Debug.table=function(){if(i.debug){var e=Array.prototype.slice.call(arguments);Array.isArray(e[0])||(e=[e]),console.table?console.table.apply(this,e):console.log.apply(this,e)}},DiviArea.Debug.verbose=function(){if(i.debug&&i.debugVerbose){var e=Array.prototype.slice.call(arguments);e.unshift("color:#cfd8dc;font-style:italic"),e.unshift("[DiviAreas] %c%s"),console.debug.apply(this,e)}},DiviArea.Debug.debug=function(){if(i.debug){var e=Array.prototype.slice.call(arguments);e.unshift("color:#90a4ae"),e.unshift("[DiviAreas] %c%s"),console.debug.apply(this,e)}},DiviArea.Debug.info=function(){if(i.debug){var e=Array.prototype.slice.call(arguments);e.unshift("color:#0288d1;background:#fafcfe"),e.unshift("[DiviAreas] %c%s"),console.log.apply(this,e)}},DiviArea.Debug.error=function(){var e=Array.prototype.slice.call(arguments);e.unshift("[DiviAreas]"),console.error.apply(this,e)},DiviArea.Debug.sysInfo=function(){var e=["\n----------"];if(e.push("Please copy-paste this information into your support ticket:"),e.push("----------\n"),DiviArea.lib&&DiviArea.version&&e.push(" • js_api: "+DiviArea.lib+" "+DiviArea.version),window.DiviAreaConfig&&DiviAreaConfig.sys&&DiviAreaConfig.sys.plugin)for(var i in DiviAreaConfig.sys)try{e.push(" • "+i+": "+" ".repeat(Math.max(0,11-i.length))+DiviAreaConfig.sys[i])}catch(e){}return e.push(" • browser: "+navigator.userAgent),e.push("\n----------\n"),e.join("\n")}}(),t=!0,(a={}).silent=DiviArea.Hooks.silent,a.removeFilter=DiviArea.Hooks.removeFilter,a.removeAction=DiviArea.Hooks.removeAction,a.applyFilters=DiviArea.Hooks.applyFilters,a.doAction=DiviArea.Hooks.doAction,a.addFilter=DiviArea.Hooks.addFilter,a.addAction=DiviArea.Hooks.addAction,a.addActionOnce=DiviArea.Hooks.addActionOnce,DiviArea.Hooks.silent=function(){return t=!1,a.silent.apply(this,arguments)},DiviArea.removeFilter=DiviArea.Hooks.removeFilter=function(e){return t&&DiviArea.Debug.debug("Remove Filter:",e),t=!0,a.removeFilter.apply(this,arguments)},DiviArea.removeAction=DiviArea.Hooks.removeAction=function(e){return t&&DiviArea.Debug.debug("Remove Action:",e),t=!0,a.removeAction.apply(this,arguments)},DiviArea.applyFilters=DiviArea.Hooks.applyFilters=function(e){if(t){Array.isArray(e)||(e=[e]),DiviArea.Debug.info("📢️ Apply Filters:",e.join(" → "));for(var i=0;i<e.length;i++)DiviArea.Debug.debug(' ⚙ DiviArea.addFilter("'+e[i]+'", callback)')}return t=!0,a.applyFilters.apply(this,arguments)},DiviArea.doAction=DiviArea.Hooks.doAction=function(e){if(t){Array.isArray(e)||(e=[e]),DiviArea.Debug.info("📢️ Do Action:",e.join(" → "));for(var i=0;i<e.length;i++)DiviArea.Debug.debug(' ⚙ DiviArea.addAction("'+e[i]+'", callback)')}return t=!0,a.doAction.apply(this,arguments)},DiviArea.addFilter=DiviArea.Hooks.addFilter=function(e){return t&&DiviArea.Debug.debug("Add Filter:",e),t=!0,a.addFilter.apply(this,arguments)},DiviArea.addAction=DiviArea.Hooks.addAction=function(e){return t&&DiviArea.Debug.debug("Add Action:",e),t=!0,a.addAction.apply(this,arguments)},DiviArea.addActionOnce=DiviArea.Hooks.addActionOnce=function(e){return t&&DiviArea.Debug.debug("Add Action Once:",e),t=!0,a.addActionOnce.apply(this,arguments)},DiviArea.openPopup=function(e){DiviArea.Debug.error("DiviArea.openPopup() is deprecated. Please use DiviArea.show() instead"),DiviArea.show(e)},DiviArea.openArea=function(e){DiviArea.Debug.error("DiviArea.openArea() is deprecated. Please use DiviArea.show() instead"),DiviArea.show(e)},DiviArea.closePopup=function(e){DiviArea.Debug.error("DiviArea.closeArea() is deprecated. Please use DiviArea.hide() instead"),DiviArea.hide(e)},DiviArea.closeArea=function(e){DiviArea.Debug.error("DiviArea.closeArea() is deprecated. Please use DiviArea.hide() instead"),DiviArea.hide(e)},DiviArea.Data.configArea=function(e,i,t){DiviArea.Debug.error("DiviArea.configArea() is deprecated. Please use area.setData() instead");var a=DiviArea.getArea(e);if(a)if("object"!=typeof i)a.setData(i,t);else for(var r in i)i.hasOwnProperty(r)&&a.setData(r,i[r])},DiviArea.Hooks.silent().addAction("init_area",(function(e){DiviArea.Hooks.silent().doAction("init_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("show_area",(function(e){DiviArea.Hooks.silent().doAction("show_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("hide_area",(function(e){DiviArea.Hooks.silent().doAction("hide_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("close_area",(function(e,i){e&&DiviArea.Hooks.silent().doAction("close_area-"+e.theKey(),e,i)}),1),DiviArea.Hooks.silent().addAction("blur_area",(function(e){DiviArea.Hooks.silent().doAction("blur_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("focus_area",(function(e){DiviArea.Hooks.silent().doAction("focus_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("before_show_area",(function(e,i){DiviArea.Hooks.silent().doAction("before_show_area-"+e.theKey(),e,i)}),1),DiviArea.Hooks.silent().addAction("before_hide_area",(function(e,i){DiviArea.Hooks.silent().doAction("before_hide_area-"+e.theKey(),e,i)}),1),DiviArea.Hooks.silent().addFilter("ignore_close_area",(function(e,i,t){return e=DiviArea.Hooks.silent().applyFilters("before_close_area",e,i,t),e=DiviArea.Hooks.silent().applyFilters("before_close_area-"+i.theKey(),e,i,t)}),1),DiviArea.Hooks.silent().addFilter("ignore_esc_key",(function(e){return e=DiviArea.Hooks.silent().applyFilters("esc_key_pressed",e)}),1),DiviArea.Hooks.silent().addAction("area_close_button",(function(e){e.addClass("evr-close_wrap"),e.find(">a").addClass("evr-close")}),1),DiviArea.Hooks.silent().addAction("area_wrap",(function(e){e.addClass("popup_outer_wrap")}),1),DiviArea.Hooks.silent().addAction("init_overlay",(function(e){e.addClass("evr_fb_popup_modal")}),1),DiviArea.Hooks.silent().addAction("refresh_area",(function(e){var i={notmobile:DiviArea.Utils.getOption("notMobileClass"),nottablet:DiviArea.Utils.getOption("notTabletClass"),notdesktop:DiviArea.Utils.getOption("notDesktopClass"),showclose:DiviArea.Utils.getOption("withCloseClass"),hideclose:DiviArea.Utils.getOption("noCloseClass"),closealt:DiviArea.Utils.getOption("altCloseClass"),ismodal:DiviArea.Utils.getOption("modalIndicatorClass"),noshadow:DiviArea.Utils.getOption("noShadowClass"),darkmode:DiviArea.Utils.getOption("darkModeClass"),singleton:DiviArea.Utils.getOption("singletonClass")};for(var t in i)e.getData(t)?e.addClass(i[t]):e.removeClass(i[t])}),1),DiviArea.listAreas=DiviArea.Data.getAllIds,DiviArea.configArea=DiviArea.Data.configArea,DiviArea.getArea=DiviArea.Data.getArea,(r=e)&&r.default,DiviArea.init(!1)}();
1
+ !function(){"use strict";var e=Object.freeze({__proto__:null});!function(e){window.DiviArea=window.DiviArea||{},DiviArea.Utils=DiviArea.Utils||{};var i=!1,t=null,a=null,r={};function o(i,t,a){var r,o;for(Array.isArray(i)&&(i=e(i).map(e.fn.toArray)),i=e(i),t=t.split(/\s+/),r=0;r<i.length;r++)for(o=0;o<t.length;o++)a(i[r],t[o])}DiviArea.Utils.getOption=function(e){var i=DiviAreaConfig[e],t=DiviArea.Utils.sanitizeHookName(e);return DiviArea.Hooks.silent().applyFilters("get_option_"+t,i)},DiviArea.Utils.toBool=function(e,i){return void 0===i&&(i=!0),null==e?!!i:!0===e||!1===e?e:("string"==typeof e&&(e=e.toLowerCase()),0!==e&&"0"!==e&&"n"!==e[0]&&"f"!==e[0]&&"off"!==e&&(1===e||"1"===e||"y"===e[0]||"t"===e[0]||"on"===e||!!i))},DiviArea.Utils.toMilliseconds=function(e){var i,t=parseFloat(e,10),a=e.match(/m?s/);switch(a&&(a=a[0]),a){case"s":i=1e3*t;break;case"ms":i=t;break;default:i=0}return i},DiviArea.Utils.sanitizeHookName=function(e){return e.toLowerCase().replace(/-/g,"_").replace(/[^a-z0-9_]+/,"")},DiviArea.Utils.showOnViewport=function(i){var t=e(window).innerWidth();return!i||!!(t<768?Array.isArray(i)?i[2]:i.getData("onmobile"):t<981?Array.isArray(i)?i[1]:i.getData("ontablet"):Array.isArray(i)?i[0]:i.getData("ondesktop"))},DiviArea.Utils.isPosition=function(e,i){var t=e.offsetParent();return"HTML"!==t.prop("tagName")&&(i===t.css("position")||DiviArea.Utils.isPosition(t,i))},DiviArea.Utils.setLocalData=function(e,i,t){(!t||isNaN(t)||t<1)&&(t=525600);var a=DiviArea.Utils.sanitizeHookName(e);if(i=DiviArea.applyFilters("set_data",i,e),i=DiviArea.applyFilters("set_data_"+a,i,e),t=DiviArea.applyFilters("set_data_expire",t,e,i),t=DiviArea.applyFilters("set_data_expire_"+a,t,e,i),!(!1===i||t<=0))if(window.localStorage){var r=new Date;r=r.setMinutes(r.getMinutes()+t),localStorage.setItem("_da_"+e,r+":"+i)}else DiviArea.Utils.setCookie("_da_"+e,i,t)},DiviArea.Utils.getLocalData=function(e){var i=!1;if(window.localStorage){var t=localStorage.getItem("_da_"+e);if(t){var a=t.split(":"),r=parseInt(a.shift()),o=a.join(":");r>new Date?i=o:localStorage.removeItem("_da_"+e)}}else i=DiviArea.Utils.getCookie("_da_"+e);var n=DiviArea.Utils.sanitizeHookName(e);return i=DiviArea.applyFilters("get_data",i,e),i=DiviArea.applyFilters("get_data_"+n,i,e)},DiviArea.Utils.setCookie=function(e,i,t){var a=escape(i);if(t){var r=new Date;r.setMinutes(r.getMinutes()+t),a+="; expires="+r.toUTCString()}document.cookie=e+"="+a+"; path=/"},DiviArea.Utils.getCookie=function(e){var i,t,a,r=document.cookie.split(";");for(i=0;i<r.length;i++)if(t=r[i].substr(0,r[i].indexOf("=")),a=r[i].substr(r[i].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))===e)return unescape(a);return!1},DiviArea.Utils.getUrlParam=function(e){if(null===a){a={};var i=window.location.search.slice(1);if(i)for(var t=(i=i.split("#")[0]).split("&"),r=0;r<t.length;r++){var o=t[r].split("="),n=o[0],s=void 0===o[1]||o[1];if(n=n.toLowerCase(),"string"==typeof s&&(s=s.toLowerCase()),n.match(/\[(\d+)?\]$/)){var l=n.replace(/\[(\d+)?\]/,"");if(a[l]||(a[l]=[]),n.match(/\[\d+\]$/)){var d=/\[(\d+)\]/.exec(n)[1];a[l][d]=s}else a[l].push(s)}else a[n]?a[n]&&"string"==typeof a[n]?(a[n]=[a[n]],a[n].push(s)):a[n].push(s):a[n]=s}}return e?a[e]:Object.assign({},a)},DiviArea.Utils.getWindow=function(i){return e.isWindow(i)?i:9===i.nodeType&&(i.defaultView||i.parentWindow)},DiviArea.Utils.getClientRect=function(i){var t={top:0,left:0,width:0,height:0,bottom:0,right:0};if(0===i.length)return t;var a,r=(i=i[0]).ownerDocument,o=r.documentElement;if(!e.contains(o,i))return t;if(e.support.getBoundingClientRect){try{a=i.getBoundingClientRect()}catch(e){}if(!a)return t;if(a.right===a.left&&a.top===a.bottom)return t;var n=DiviArea.Utils.getWindow(r);t.top=a.top+(n.pageYOffset||o.scrollTop)-(o.clientTop||0),t.left=a.left+(n.pageXOffset||o.scrollLeft)-(o.clientLeft||0),t.width=a.right-a.left,t.height=a.bottom-a.top}else{if("none"===i.css("display"))return t;(t=i.offset()).width=i.outerWidth(),t.height=i.outerHeight()}return t.bottom=t.top+t.height,t.right=t.left+t.width,t},DiviArea.Utils.bindPassiveEvent=function(e,t,a){var r;r=!!i&&{passive:!1,capture:!1},o(e,t,(function(e,i){e.addEventListener(i,a,r)}))},DiviArea.Utils.unbindPassiveEvent=function(e,t,a){var r;r=!!i&&{passive:!1,capture:!1},o(e,t,(function(e,i){e.removeEventListener(i,a,r)}))},DiviArea.Utils.init=function(){var t={popupSelector:".et_pb_section.popup",fullHeightClass:"full-height",openPopupClass:"da-overlay-visible",overlayClass:"da-overlay",modalIndicatorClass:"is-modal",blockingIndicatorClass:"is-blocking",exitIndicatorClass:"on-exit",hoverTriggerClass:"on-hover",clickTriggerClass:"on-click",activePopupClass:"is-open",noCloseClass:"no-close",altCloseClass:"close-alt",notMobileClass:"not-mobile",notTabletClass:"not-tablet",notDesktopClass:"not-desktop",withCloseClass:"with-close",withLoaderClass:"with-loader",singletonClass:"single",darkModeClass:"dark",noShadowClass:"with-shadow",closeButtonClass:"da-close",popupWrapperClass:"area-outer-wrap",defaultShowCloseButton:!0,idAttrib:"data-popup",triggerClassPrefix:"show-popup-",baseContext:"body",triggerCloseClass:"close",zIndex:1e6,onExitDelay:2e3,animateSpeed:300,debug:!1,debugVerbose:!1,initializeOnEvent:"et_pb_after_init_modules"},a="";if(function(){try{var e={get passive(){return i=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){i=!1}}(),e.support.getBoundingClientRect="getBoundingClientRect"in document.documentElement,window.DiviAreaConfig||(window.DiviAreaConfig=t),window.DiviPopupData)for(a in DiviPopupData)DiviPopupData.hasOwnProperty(a)&&(DiviAreaConfig[a]=DiviPopupData[a]);for(a in t)void 0===DiviAreaConfig[a]&&(DiviAreaConfig[a]=t[a]);for(a in DiviAreaConfig)DiviAreaConfig[a].replace&&(DiviAreaConfig[a]=DiviAreaConfig[a].replace(/^[\s\xA0]+|[\s\xA0]+$/g,""));DiviAreaConfig.zIndex=parseInt(DiviAreaConfig.zIndex),DiviAreaConfig.onExitDelay=parseInt(DiviAreaConfig.onExitDelay),DiviAreaConfig.animateSpeed=parseInt(DiviAreaConfig.animateSpeed),DiviAreaConfig.debug=!!DiviAreaConfig.debug,DiviAreaConfig.defaultShowCloseButton=!!DiviAreaConfig.defaultShowCloseButton,(!DiviAreaConfig.triggerClassPrefix||DiviAreaConfig.triggerClassPrefix.length<3)&&(DiviAreaConfig.triggerClassPrefix=!1),"body"===DiviAreaConfig.baseContext&&(1===e("#et_builder_outer_content").length?(DiviAreaConfig.baseContext="#et_builder_outer_content",DiviArea.Debug.info("🎚 Divi plugin detected.","Inject Areas into #et_builder_outer_content")):1===e("body.et_divi_theme #page-container").length?(DiviAreaConfig.baseContext="#page-container",DiviArea.Debug.info("🎚 Divi theme detected.","Inject Areas into #page-container")):1===e(".et-db #et-boc").length&&(DiviAreaConfig.baseContext=".et-db #et-boc",DiviArea.Debug.info("🎚 Divi theme detected.","Inject Areas into #et-boc"))),"body"===DiviAreaConfig.baseContext||e(DiviAreaConfig.baseContext).length||(DiviAreaConfig.baseContext="body",DiviArea.Debug.info("🎚 Invalid baseContext given.","Inject Areas into body instead.")),window.DiviPopupData=window.DiviAreaConfig,window.DiviAreaConfig=DiviArea.applyFilters("init_options",DiviAreaConfig)},DiviArea.Utils.initErrorLogging=function(e){var i=function(e,i,t){if(!e[i]||!e[i].__dm_orig__){var a=e[i],r=void 0;for(var o in e[i]=function(){var e=!1;try{e=t.apply(this,arguments)}finally{!e&&a&&(r=a.apply(this,arguments))}return r},a)a.hasOwnProperty(o)&&(e[i][o]=a[o]);e[i].__dm_orig__=a}},t=function(){var e=arguments,i=!1;if(arguments[0]&&"[DiviAreas]"===arguments[0])return!1;for(var t=0;t<arguments.length;t++)if("object"==typeof e[t]&&e[t]&&e[t].message&&e[t].stack){i=e[t];break}if(i){var a=[],r=i.stack.toString().split("\n");if(a.push("divimode.com Anonymized Error Report"),a.push("-".repeat(30)),a.push(i.name),i.message?a.push(i.message):a.push("-"),a.push(""),r&&r.length>1)for(var o=0;o<r.length;o++){var n=r[o];if(n.match(/(\/wp-includes\/|\/jquery\.js)/))break;n.match(/\.js/)&&(n=(n=(n=n.replace(/^\s+|\s+$/g,"")).replace(/https?:.*?\/wp-content/g,"")).replace(/\.js\?[\w=&_\-\.]*/g,".js"),a.push(n))}if(DiviArea.info&&(a.push(""),a.push("js api:"+DiviArea.info)),window.DiviAreaConfig&&DiviAreaConfig.sys&&DiviAreaConfig.sys.plugin)for(var s in a.push(""),DiviAreaConfig.sys)try{a.push(s+": "+DiviAreaConfig.sys[s])}catch(e){}a.push("-".repeat(30));var l=console.error.__dm_orig__||console.error;return console.log(""),l("✋ "+a.join("\n| ")),console.log(""),!0}return!1};i(e,"onerror",t),i(e.console,"error",t)},DiviArea.Utils.toPixel=function(e,i,a){if(t||((t={}).PPI=void 0,t.getPPI=function(){return t.PPI=t.PPI||t.getSizeBrutal("in",document.body),t.PPI},t.parseUnit=function(e){var i=[0,""];e=String(e);var t=parseFloat(e,10);return i[0]=t,i[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",i},t.getPropertyInPx=function(e,i){var a=t.parseUnit(getComputedStyle(e).getPropertyValue(i));return a[0]*t.conversionFactor(a[1],e)},t.getSizeBrutal=function(e,i){var a=document.createElement("div");a.style.height="128"+e,i.appendChild(a);var r=t.getPropertyInPx(a,"height")/128;return i.removeChild(a),r},t.conversionFactor=function(e,i){switch(e=(e+""||"px").trim().toLowerCase()){case"%":return i.clientHeight/100;case"ch":case"ex":return t.getSizeBrutal(e,i);case"em":return t.getPropertyInPx(i,"font-size");case"rem":return t.getPropertyInPx(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return t.getPPI();case"cm":return t.getPPI()/2.54;case"mm":return t.getPPI()/25.4;case"pt":return t.getPPI()/72;case"pc":return t.getPPI()/6;case"px":return 1}return 0}),!e)return 0;if((a=a||document.body)!==window&&a!==document||(a=document.body),!isNaN(e)){if(i){var r=t.conversionFactor(i,a);return"number"==typeof r?e*r:0}return e}return 0},DiviArea.Utils.getStyleDef=function(e,i,t){var a="",o=window.innerWidth;if("string"==typeof e){var n=e.split(" "),s=DiviArea.getArea(n.shift());if(!s)return a;e=s.get(n.join(" "))[0]}if(r[o]||(r[o]=[],Array.from(document.styleSheets).map((function(e){try{for(var i=0;i<e.rules.length;i++){var t=e.rules[i];if(t.media){if(window.matchMedia(t.conditionText).matches)for(var a=0;a<t.cssRules.length;a++)r[o].push(t.cssRules[a])}else r[o].push(t)}}catch(e){}})),r[o].reverse()),e.style&&""!==e.style[i])a=e.style[i];else{var l=!1;r[o].some((function(r){var o=!1;try{o=e.matches(r.selectorText)}catch(e){}if(o&&t&&t.length&&-1!==t.indexOf(r.selectorText))return!1;o&&Array.from(r.style).some((function(e){return e===i}))&&(r.specificity||(r.specificity=DiviArea.Utils.getCssSpecificity(r.selectorText,r.style[i])),DiviArea.Utils.compareCssSpecificity(r.specificity,l)>0&&(l=r.specificity,a=r.style[i]))}))}return a},DiviArea.Utils.getCssSpecificity=function(e,i){var t=e.split(",");if(t.length>1){for(var a,r=[],o=0;o<t.length;o++)a=DiviArea.Utils.getCssSpecificity(t[o]),DiviArea.Utils.compareCssSpecificity(a,r)>0&&(r=a);return r}var n,s,l,d=e,c={a:0,b:0,c:0};return s="string"==typeof i&&i.indexOf("!important")>0,n=function(e,i){var t,a,r,o,n;if(e.test(d))for(a=0,r=(t=d.match(e)).length;a<r;a+=1)c[i]+=1,o=t[a],d.indexOf(o),n=o.length,d=d.replace(o,Array(n+1).join(" "))},(l=function(e){var i,t,a,r;if(e.test(d))for(t=0,a=(i=d.match(e)).length;t<a;t+=1)r=i[t],d=d.replace(r,Array(r.length+1).join("A"))})(/\\[0-9A-Fa-f]{6}\s?/g),l(/\\[0-9A-Fa-f]{1,5}\s/g),l(/\\./g),function(){var e,i,t,a,r=/{[^]*/gm;if(r.test(d))for(i=0,t=(e=d.match(r)).length;i<t;i+=1)a=e[i],d=d.replace(a,Array(a.length+1).join(" "))}(),n(/(\[[^\]]+\])/g,"b"),n(/(#[^\#\s\+>~\.\[:\)]+)/g,"a"),n(/(\.[^\s\+>~\.\[:\)]+)/g,"b"),n(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),n(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,"b"),n(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,"b"),d=(d=(d=(d=(d=(d=d.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).replace(/:not/g," ")).replace(/:local/g," ")).replace(/:global/g," ")).replace(/[\(\)]/g," "),n(/([^\s\+>~\.\[:]+)/g,"c"),[s?1:0,c.a,c.b,c.c]},DiviArea.Utils.compareCssSpecificity=function(e,i){for(var t=0;t<4;t+=1){var a=parseInt(isNaN(e[t])?0:e[t]),r=parseInt(isNaN(i[t])?0:i[t]);if(a<r)return-1;if(a>r)return 1}return 0}}(window.jQuery),window.DiviAreaItem=function(e,i){var t=jQuery,a=window.ResizeObserver||window.WebKitResizeObserver,r=t(e),o={},n={hideclose:!1,showclose:!0,notmobile:!1,onmobile:!0,nottablet:!1,ontablet:!0,notdesktop:!1,ondesktop:!0,closealt:!1,notmodal:!0,ismodal:!1,notblocking:!1,isblocking:!1,triggerexit:!1,shadow:!0,noshadow:!1,darkmode:!1,singleton:!1,static:!1,withloader:!1},s={hideclose:"showclose",notdesktop:"ondesktop",notmobile:"onmobile",notmodal:"ismodal",notblocking:"isblocking",nottablet:"ontablet",shadow:"noshadow",dynamic:"static"},l=null,d=null,c=0,v=null,u=null,p=null,g={};function h(){for(var e in o._id=r.attr("id"),o._key=DiviArea.Utils.sanitizeHookName(o._id),o._type=y(i),o._inDom=r.closest(document.documentElement).length,o._isVisible=o._inDom&&r[0].getClientRects().length,o._size={},DiviArea.Debug.debug("Area Type",this.theType()),DiviArea.Debug.debug("Area ID",this.theId()),DiviArea.Debug.debug("Area Hook",this.theKey()),U(r),this.setData("zindex",0),this.setData("container",t("body")),this.setData("hasShowAnim",!0),this.setData("position","center-center"),this.setData("positionv","center"),this.setData("positionh","center"),n)void 0!==r.data("da-"+e)?(this.setData(DiviArea.Utils.toBool(r.data("da-"+e))),r.removeAttr("data-da-"+e)):void 0!==r.data(e)?(this.setData(DiviArea.Utils.toBool(r.data(e))),r.removeAttr("data-"+e)):this.setData(e,n[e]);var s={};for(var l in s[DiviArea.Utils.getOption("notMobileClass")]=["onmobile",!1],s[DiviArea.Utils.getOption("notTabletClass")]=["ontablet",!1],s[DiviArea.Utils.getOption("notDesktopClass")]=["ondesktop",!1],s[DiviArea.Utils.getOption("noCloseClass")]=["showclose",!1],s[DiviArea.Utils.getOption("withCloseClass")]=["showclose",!0],s[DiviArea.Utils.getOption("altCloseClass")]=["closealt",!0],s[DiviArea.Utils.getOption("modalIndicatorClass")]=["ismodal",!0],s[DiviArea.Utils.getOption("blockingIndicatorClass")]=["isblocking",!0],s[DiviArea.Utils.getOption("exitIndicatorClass")]=["triggerexit",!0],s[DiviArea.Utils.getOption("noShadowClass")]=["noshadow",!0],s[DiviArea.Utils.getOption("darkModeClass")]=["darkmode",!0],s[DiviArea.Utils.getOption("singletonClass")]=["singleton",!0],s[DiviArea.Utils.getOption("withLoaderClass")]=["withloader",!0],s)if(r.hasClass(l)){var d=s[l];this.setData(d[0],d[1]),r.removeClass(l)}DiviArea.UI.initializeAreaAnimation(r),m(),b(),f(),a&&(v=new a((function(e){var i=r[0].scrollHeight-r[0].clientHeight;i>0&&i-r[0].scrollTop<1&&(r[0].scrollTop-=1),o._size.width=0,o._size.height=0,o._size.contentWidth=0,o._size.contentHeight=0,O("resize",k)}),{box:"border-box"}),u=new a((function(e){o._size.wrapperWidth=0,o._size.wrapperHeight=0,O("resize",k)}),{box:"border-box"}))}function f(){r.attr("data-da-area",o._id),l.attr("data-da-area",o._id),l.attr("data-da-registered",1),l.attr("data-da-type",this.theType()),l.attr("data-da-close-btn",this.getData("showclose")?"yes":"no"),l.attr("data-da-close-bg",this.getData("closeAlt")?"none":"solid"),l.attr("data-da-loader",this.getData("withLoader")?"yes":"no"),l.attr("data-da-shadow",this.getData("shadow")?"yes":"no"),l.attr("data-da-color",this.getData("darkMode")?"dark":"light");var e=this.getData("wrapClasses");e&&l.addClass(e),O("position",this.setPosition),this.doAction("refresh_area")}function D(){var e=this;if(this.isVisible()){r.find("."+DiviArea.Utils.getOption("closeButtonClass")).off(".da");var i=function(i,t){return DiviArea.Debug.debug("Click on",t,"close-button"),e.doAction("close_area",e,t),i.preventDefault(),!1};l.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da").on("click.da",(function(e){return i(e,"custom")})),d.find("a").off(".da").on("click.da",(function(e){return i(e,"default")})),t(window).on("resize",C),this.addAction("close_area",_)}else l.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da"),d.find("a").off(".da"),t(window).off("resize",C),this.removeAction("close_area")}function A(e){var i=this;if(this.isVisible()){if(this.getData("hasShowAnim")){DiviArea.Debug.info("✨ Animate the area (show)",this.theId()),DiviArea.UI.animateArea(this,"show",(function(){i.getData("showclose")&&d.show(),e()}))}}else this.getData("hasShowAnim")&&(d.hide(),DiviArea.Debug.info("✨ Animate the area (hide)",this.theId()),DiviArea.UI.animateArea(this,"hide",e))}function b(){if(!d){var e=DiviArea.Utils.getOption("closeButtonClass"),i=e+"-wrap";d=t("<span>").addClass(i).appendTo(l),t("<a>").attr("href","#close").addClass(e).html("&times;").appendTo(d),d.hide(),this.doAction("area_close_button",d,this)}}function m(){if(!l){var e=DiviArea.Utils.getOption("popupWrapperClass");(l=r.parent()).hasClass(e)||(r.wrap("<div>"),(l=r.parent()).addClass(e)),U(l),this.doAction("area_wrap",l,this)}}function w(){var e=this;c&&clearTimeout(c),c=setTimeout((function(){c=0,e.inDom()&&f()}),20)}function y(e){return e.toLowerCase().trim().replace(/-/,"")}function _(e,i){var t=!1;if(t=this.applyFilters("ignore_close_area",t,this,i))return DiviArea.Debug.debug("Ignored, manually cancelled in filter"),!0;DiviArea.hide(this)}function C(){o._size.windowWidth=0,o._size.windowHeight=0,o._size.wrapperWidth=0,o._size.wrapperHeight=0,O("resize",k)}function k(){if(this.isVisible()){var e=this.getSize(),i=[e.width,e.height,e.contentWidth,e.contentHeight,e.windowWidth,e.windowHeight].join("-");if(o._resizeState!==i){if(o._resizeState=i,d.css({width:e.width,height:e.height}),this.isType("popup"))if(l.attr("data-da-size-full-height"))e.wrapperHeight-e.contentHeight>=20&&(l.removeAttr("data-da-size-full-height"),l.removeClass(DiviArea.Utils.getOption("fullHeightClass")));else e.windowHeight-e.contentHeight<=20&&(l.attr("data-da-size-full-height",1),l.addClass(DiviArea.Utils.getOption("fullHeightClass")));O("position",this.setPosition)}}}function x(e,i){var t,a="";if(i||""===(a=DiviArea.Utils.getStyleDef(l[0],e))&&(a=DiviArea.Utils.getStyleDef(r[0],e)),""===a){var o=r.find(".et_pb_section");for(t=0;t<o.length&&!a;t++)a=DiviArea.Utils.getStyleDef(o[t],e,['[class*="et_pb_section_dap_"]'])}return a}function I(){var e=x("width"),i=x("max-width",!0);e&&"auto"!==e||(this.isType("popup")||l.css("width","100%"),r.css("width","100%")),i&&r.css("max-width",i)}function O(e,i){var t=this;g[e]||(g[e]=window.setTimeout((function(){g[e]=!1,i.apply(t)}),4))}function U(e){var i=this;e.data("is-area",!0),e.data("area",this),e.data("area-config",o),e.getArea=function(){return i}}function z(){}this.theId=function(){return"#"+o._id},this.theKey=function(){return o._key},this.hasId=function(e){e=e.replace(/^#/,"",e);var i=DiviArea.Data.getRealId(e);return i||(i=DiviArea.Data.getRealId("divi-area-"+e)),i&&i===this.theId()},this.theType=function(){return o._type},this.isType=function(e){if(!e)return!0;if("string"!=typeof e)throw new Error("DiviAreaItem.isType() expects a string parameter. Given value is a "+typeof e);if((e=y(e))===o._type)return!0;if("any"===e||"all"===e)return!0;for(var i=0===e.indexOf("not:"),t=e.replace(/^not:\s*/,"").split(/\s*,\s*/),a=0;a<t.length;a++)if(t[a]===o._type)return!i;return i},this.get=function(e){return e?t(e,r):r},this.getWrap=function(){return l},this.attach=function(){if(w(),this.inDom())return this;o._inDom=!0;var e=this.findHook();if(r.hide(),e){var i=e.data("area-place"),t=e;"after"===i?t=e.next():"replace"===i&&(p=e.next().detach()),t.after(l.detach())}else l.detach().appendTo(this.getData("container"));return l.closest("#et-boc").length||l.wrap('<div id="et-boc">'),O("position",this.setPosition),this.setVisible(!0,(function(){if(v){var e=DiviArea.Utils.getOption("closeButtonClass")+"-wrap";r.children().each((function(i,t){-1===t.className.indexOf(e)&&v.observe(t)})),v.observe(r[0]),u.observe(l[0])}})),this},this.detach=function(){if(!this.inDom())return this;o._inDom=!1;var e=this.findHook();return v&&v.disconnect(),u&&u.disconnect(),this.setVisible(!1,(function(){var i=l.parent();r.hide(),l.detach(),"et-boc"!==i.attr("id")||i.hasClass("dm-base-context")||i.children().length||i.remove(),p&&(e.after(p),p=null)})),this},this.findHook=function(){var e='[data-area-hook="'+this.getData("hookid")+'"]',i=t(e);return!!i.length&&i},this.setVisible=function(e,i){if(e=!!e,o._isVisible!==e)return"function"!=typeof i&&(i=z),o._isVisible=e,D(),A(i),this.isVisible()?(I(),this.doAction("show_area")):this.doAction("hide_area"),this},this.setPosition=function(){var e={},i={};if(!this.isVisible()||!this.inDom())return this;if(this.getData("maxheight")&&(e.overflow="auto",e.maxHeight="100%",i.maxHeight=this.getData("maxheight")),this.getData("maxwidth")&&(e.maxWidth="100%",i.maxWidth=this.getData("maxwidth")),i.zIndex=this.getData("zindex"),this.doAction("resize_area"),this.isType("inline")||this.isType("hover"))l.removeAttr("data-da-position"),l.removeAttr("data-da-position-h"),l.removeAttr("data-da-position-v");else{var t=this.getData("positionh"),a=this.getData("positionv"),o=null;switch(l.attr("data-da-position",this.getData("position")),l.attr("data-da-position-h",t),l.attr("data-da-position-v",a),t){case"left":i.left="0";break;case"right":i.right="0";break;case"center":o||(o=this.getSize()),i.left=Math.max(0,parseInt((o.windowWidth-o.wrapperWidth)/2))+"px"}if(!l.attr("data-da-size-full-height"))switch(a){case"top":i.top="0";break;case"bottom":i.bottom="0";break;case"center":o||(o=this.getSize()),i.top=Math.max(0,parseInt((o.windowHeight-o.wrapperHeight)/2))+"px"}this.doAction("position_area",i,e)}return r.css(e),l.css(i),this},this.setTriggerEvent=function(i){var a=!1;return i&&(this.setData("event",i),i.currentTarget?a=i.currentTarget:i instanceof jQuery?a=i.first():window.HTMLElement&&e instanceof window.HTMLElement&&(a=t(i))),this.setData("attachto",a),DiviArea.Debug.debug("Attached to element:",a||"(none)"),this},this.isVisible=function(){return o._isVisible},this.inDom=function(){return o._inDom},this.getSize=function(){var e=this.isVisible();if(o._size&&void 0!==o._size.width||(o._size={}),o._size.width||(o._size.width=e?r[0].clientWidth:0),o._size.height||(o._size.height=e?r[0].clientHeight:0),o._size.contentWidth||(o._size.contentWidth=e?r[0].scrollWidth:0),!o._size.contentHeight&&(o._size.contentHeight=0,e))if(r.hasClass("et_pb_section")){var i=window.getComputedStyle(r[0]);o._size.contentHeight+=parseInt(i["border-top-width"]),o._size.contentHeight+=parseInt(i["padding-top"]),o._size.contentHeight+=parseInt(i["padding-bottom"]),o._size.contentHeight+=parseInt(i["border-bottom-width"]),r.children().each((function(){o._size.contentHeight+=this.offsetHeight}))}else o._size.contentHeight=r[0].scrollHeight;return o._size.wrapperWidth||(o._size.wrapperWidth=e?l[0].offsetWidth:0),o._size.wrapperHeight||(o._size.wrapperHeight=e?l[0].offsetHeight:0),o._size.windowWidth||(o._size.windowWidth=window.innerWidth),o._size.windowHeight||(o._size.windowHeight=window.innerHeight),o._size},this.getData=function(e){var i;return e=e.toLowerCase().replace(/[^a-z0-9]/,""),s.hasOwnProperty(e)?(e=s[e],i=!o[e]):i=o[e],i},this.setData=function(e,i){if(void 0===i)return this;if(e=e.toLowerCase().replace(/[^a-z0-9]/,""),n.hasOwnProperty(e))i=DiviArea.Utils.toBool(i,n[e]),s.hasOwnProperty(e)&&(e=s[e],i=!i);else switch(e){case"zindex":i=parseInt(i);break;case"closedelay":i=parseFloat(i);break;case"position":-1!==i.indexOf("top")?o.positionv="top":-1!==i.indexOf("bottom")?o.positionv="bottom":o.positionv="center",-1!==i.indexOf("left")?o.positionh="left":-1!==i.indexOf("right")?o.positionh="right":o.positionh="center",i=o.positionv+"-"+o.positionh;break;case"positionh":if("left"!==i&&"right"!==i&&"center"!==i)return this;break;case"positionv":if("top"!==i&&"bottom"!==i&&"center"!==i)return this;break;case"container":(i=t(i).first()).length||(i=t("body"));break;case"attachto":i=t(i).first()}switch(o[e]=i,e){case"positionh":case"positionv":o.position=o.positionv+"-"+o.positionh}return w(),this},this.doAction=function(e){for(var i=[],t=arguments.length-1;t-- >0;)i[t]=arguments[t+1];i.length||(i=[this]),DiviArea.doAction.apply(DiviArea,[[e,e+"_"+this.theKey()]].concat(i))},this.applyFilters=function(e,i){for(var t=[],a=arguments.length-2;a-- >0;)t[a]=arguments[a+2];return t.length||(t=[this]),DiviArea.applyFilters.apply(DiviArea,[[e,e+"_"+this.theKey()],i].concat(t))},this.addFilter=function(e,i,t,a){DiviArea.addFilter(e+"_"+this.theKey(),i,t,a)},this.addAction=function(e,i,t,a){DiviArea.addAction(e+"_"+this.theKey(),i,t,a)},this.removeFilter=function(e,i){DiviArea.removeFilter(e+"_"+this.theKey(),i)},this.removeAction=function(e,i){DiviArea.removeAction(e+"_"+this.theKey(),i)},this.addActionOnce=function(e,i,t,a){DiviArea.addActionOnce(e+"_"+this.theKey(),i,t,a)},this.hasClass=r.hasClass.bind(r),this.addClass=r.addClass.bind(r),this.removeClass=r.removeClass.bind(r),this.attr=r.attr.bind(r),this.removeAttr=r.removeAttr.bind(r),this.find=r.find.bind(r),this.css=r.css.bind(r),h=h.bind(this),f=f.bind(this),D=D.bind(this),A=A.bind(this),w=w.bind(this),m=m.bind(this),b=b.bind(this),_=_.bind(this),C=C.bind(this),k=k.bind(this),x=x.bind(this),I=I.bind(this),O=O.bind(this),U=U.bind(this),h()};var i,t,a,r;i=jQuery,DiviArea.init=function(e){var t=[window.location.protocol,"//",window.location.host,"/wp-admin/edit.php?post_type=divi-area&page=settings#frontend"];this.app=e?"Divi Areas Pro":"Popups for Divi",this.lib=e?"DiviArea":"DiviPopup",this.version="2.0.0",this.info=this.lib+"-"+this.version,this.loaded=!0,DiviArea.Debug.info("🚀 Initialize "+this.app,"- JS API:",this.info),e?DiviArea.Debug.info("ℹ️ You can disable the debug output on the Settings page:",t.join("")):DiviArea.Debug.info("ℹ️ You can disable the debug output by disabling WP_DEBUG"),DiviArea.Debug.debug("Details about the Debug Mode","https://divimode.com/knowledge-base/debug-options/"),DiviArea.Utils.init(),DiviArea.Utils.getOption("initializeOnEvent")?i(window,document).one(DiviArea.Utils.getOption("initializeOnEvent"),(function(){window.setTimeout(DiviArea.Core.init,1)})):window.setTimeout(DiviArea.Core.init,1)},DiviArea.markClosed=function(e,i){if(DiviArea.Utils.getOption("debug")){var t=DiviArea.Data.sanitizeId(e);DiviArea.Debug.info("📌 Mark Area as closed for "+i+" minutes:",t)}DiviArea.Utils.setLocalData(e,"1",i)},DiviArea.isClosed=function(e){e=e.toLowerCase().replace(/^#/,"");var i=DiviArea.Utils.getLocalData(e);if(DiviArea.Utils.getOption("debug")){var t=DiviArea.Data.sanitizeId(e);"1"===i?DiviArea.Debug.info("📌 Area is still closed:",t):DiviArea.Debug.info("📌 Area is not closed:",t)}return"1"===i},DiviArea.register=function(e,t,a){if(void 0===t&&(t={}),void 0===a&&(a=!1),!(e=DiviArea.Data.sanitizeId(e)))return!1;var r=DiviArea.getArea(e);if(r)return r;var o=i(e);if(o.length&&t.selector&&(o=o.filter(t.selector),delete t.selector),1!==o.length)return!1;if(!a){if(o.data("da-type"))a=o.data("da-type"),o.removeAttr("data-da-type");else if(o.data("type"))a=o.data("type"),o.removeAttr("data-type");else for(var n=o[0].className.split(/\s+/),s=0;s<n.length;s++)if(0===n[s].indexOf("divi-area-type-")){a=n[s].replace("divi-area-type-",""),o.removeClass(n[s]);break}if(!a)return!1}if(DiviArea.Debug.group("Register Area | "+a+" | "+e),t.areaHook&&t.hookId&&"inline"===a){var l=i(t.areaHook).first();if(l.length){var d=i("<span>");d.attr("data-area-hook",t.hookId),d.attr("data-area-place",t.areaPlace),l.before(d)}else DiviArea.Debug.error("Inline hook not found:",t.areaHook)}var c=DiviArea.Data.createArea(o,a,e);return t.alternateid?DiviArea.Data.addAltId(c.theId(),t.alternateid):t.alternateId?DiviArea.Data.addAltId(c.theId(),t.alternateId):t.ids&&DiviArea.Data.addAltId(c.theId(),t.ids),delete t.alternateid,delete t.alternateId,delete t.ids,Object.keys(t).forEach((function(e){c.setData(e,t[e])})),c.setData("wrap-classes","et-l entry-content"),c.isType("inline")&&c.getData("static")?(DiviArea.Core.initContainer(c),DiviArea.show(e,"static")):(c.detach(),c.setData("container",DiviArea.Core.getContext())),DiviArea.Debug.info("➕ Registered new area:",e,"("+a+")"),DiviArea.Debug.group(),c.doAction("init_area"),c},DiviArea.show=function(e,i){if(!e)return!1;var t=DiviArea.getArea(e);return t?DiviArea.Utils.showOnViewport(t)?(DiviArea.Debug.group("Show area",t.theId()),t.setData("hasShowAnim",!t.isVisible()),t.setTriggerEvent(i),t.isType("hover")&&DiviArea.Core.setupHoverArea(t),DiviArea.Core.attachArea(t),DiviArea.Core.reOrderAreas(),DiviArea.Debug.group(),!0):(DiviArea.Debug.debug("Do not trigger area on this device:",t.theId()),!1):(DiviArea.Debug.error("Could not find an area with the ID:",e),!1)},DiviArea.hide=function(e){var i=DiviArea.Data.getVisibleArea(e);i&&(i.setData("hasShowAnim",!0),i.setData("event",void 0),DiviArea.Debug.debug("Close area and unlink event handlers:",i.theId()),DiviArea.Core.detachArea(i)),DiviArea.Core.reOrderAreas()},function(e){DiviArea.Core=DiviArea.Core||{};var i=window.ResizeObserver||window.WebKitResizeObserver,t=null,a=!1,r=!1;function o(e,i){DiviArea.Core.isArea(e)||(e=DiviArea.Data.getVisibleArea())&&(DiviArea.Debug.debug("Close the top-most area"),e.doAction("close_area",e,"default"))}function n(e){if(27===e.keyCode)return function(){DiviArea.Debug.info("⚡️ ESC-key pressed");var e=!1,i=DiviArea.Data.getVisibleArea(null,"popup");return i?(e=i.getData("isblocking"),(e=DiviArea.applyFilters("ignore_esc_key",e))?(DiviArea.Debug.debug("Ignored, manually cancelled in filter"),!0):(DiviArea.Debug.debug("Close top-most popup"),DiviArea.doAction("close_area",null,"esc"),!1)):(DiviArea.Debug.debug("Ignored, no popup is visible"),!0)}()}function s(){var e=["popup","flyin"],i=!1;function t(e,t){i||e.getData("triggerexit")&&(DiviArea.isClosed(t)?e.setData("triggerexit",!1):DiviArea.show(t,"exit")&&(e.setData("triggerexit",!1),i=!0))}for(var a in e)i=!1,DiviArea.Data.loopAllAreas(e[a],t)}function l(e,i){var t=[];if(i.isType("popup")&&"show"===e&&i.getData("singleton")&&DiviArea.Data.loopVisibleAreas("popup",(function(e){t.push(e.theId())})),"hide"===e?i.doAction("before_hide_area",i,t):i.doAction("before_show_area",i,t),t.length)for(var a in DiviArea.Debug.debug("Hide following areas:",t),t){var r=DiviArea.getArea(t[a]);r&&r.inDom()&&DiviArea.Core.detachArea(r)}}function d(i,t){var a;if(a=DiviArea.Data.sanitizeId(t))if(i.attr("data-area-id"))DiviArea.Debug.debug("Trigger already prepared",i[0]);else if(DiviArea.getArea(a)){var r=DiviArea.Utils.getOption("hoverTriggerClass"),o=DiviArea.Utils.getOption("clickTriggerClass");i.attr("data-area-id",a),i.addClass("popup-trigger"),i.off("click"),i.hasClass(r)&&(i.on("mouseenter._da",n),DiviArea.Debug.debug("Prepared Hover trigger to open this area:",a,i[0])),i.hasClass(r)&&!i.hasClass(o)||(i.on("click._da",n),DiviArea.Debug.debug("Prepared Click trigger to open this area:",a,i[0]))}else DiviArea.Debug.debug("Ignore trigger. No area found with this ID:",i[0]);else DiviArea.Debug.debug("Ignore trigger. Invalid target ID:",t,i[0]);function n(i){var t=e(i.target);return!("A"!==t.prop("tagName")||!t.attr("href").length||t.attr("data-area-id"))||(i.preventDefault(),DiviArea.Debug.debug("Trigger area:",a),DiviArea.show(a,i),!1)}}function c(i){var t=e(i.target).closest("[data-da-type][data-da-registered]"),a=DiviArea.Utils.getOption("fullHeightClass");return!(!t.length||!t.hasClass(a))||(i.preventDefault(),i.stopPropagation(),!1)}DiviArea.Core.init=function(){a?DiviArea.Debug.error("Core.init() was already executed. It should not run twice, please review the code!"):(a=!0,DiviArea.Debug.debug("Initialize the app"),DiviArea.doAction("load"),(t=e(DiviArea.Utils.getOption("baseContext")).filter(":visible").first()).length?(t.closest("#et-boc").length||(t.append('<div id="et-boc" class="dm-base-context"></div>'),t=t.find(".dm-base-context#et-boc").first()),DiviArea.Debug.debug('Base context "'+DiviArea.Utils.getOption("baseContext")+'" found',t)):DiviArea.Debug.error('Could not find the popup container "'+DiviArea.Utils.getOption("baseContext")+'"'),function(){var i=e(".et_pb_fullscreen_nav_container #mobile_menu_slide");if(!i.length)return;i.parent().css({minHeight:i.outerHeight()})}(),window.setTimeout((function(){e(window).on("mouseleave.da",(function(e){var i;"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&"select"!==e.target.tagName.toLowerCase()&&(i=Math.max(document.documentElement.clientWidth,window.innerWidth||0),e.clientX>=i-50||e.clientY>=50||e.toElement||e.relatedTarget||(DiviArea.Debug.info("⚡️ Exit-intent detected (mouse leave)"),DiviArea.doAction("exit_intent","mouse-leave")))})),DiviArea.addAction("exit_intent",s)}),DiviArea.Utils.getOption("onExitDelay")),DiviArea.addAction("ready",(function(){DiviArea.addAction("close_area",o),function(e){var i=window.MutationObserver||window.WebKitMutationObserver,t=window.addEventListener,a=DiviArea.Core.getContext(),r=!1;function o(){r||(r=setTimeout((function(){r=!1,DiviArea.Debug.debug("DOM changed"),e()}),50))}if(i){new i((function(e,i){if(e[0].addedNodes.length||e[0].removedNodes.length)return o()})).observe(a[0],{childList:!0,subtree:!0})}else t&&(a.addEventListener("DOMNodeInserted",o,!1),a.addEventListener("DOMNodeRemoved",o,!1))}(DiviArea.Core.activateContainer),e(document).on("keyup",n)}),1),DiviArea.addAction("ready",(function(){DiviArea.Core.activateContainer()}),9),DiviArea.doAction("ready"))},DiviArea.Core.isArea=function(e){return e&&e instanceof DiviAreaItem},DiviArea.Core.getContext=function(){return t},DiviArea.Core.reOrderAreas=function(){if(DiviArea.Data.countVisibleAreas("popup")||DiviArea.hideOverlay(),DiviArea.Data.countVisibleAreas()){var e=DiviArea.Utils.getOption("zIndex"),i=DiviArea.Data.countVisibleAreas("not: inline"),t=DiviArea.Data.countVisibleAreas("popup"),a=[],r=0,o=0,n={};if(DiviArea.Debug.debug("Refresh the z-index of visible areas"),DiviArea.Data.loopVisibleAreas("any",DiviArea.Core.blurArea),DiviArea.Core.focusArea(DiviArea.Data.getVisibleArea()),DiviArea.Data.loopVisibleAreas("not: inline",(function(a){var s=0;a.isType("popup")?(o++,s=e+i-t+o,a.hasClass(DiviArea.Utils.getOption("activePopupClass"))&&(n.overlay=s,s+=1)):(r++,s=e+r),n[a.theId()]=s})),(n=DiviArea.applyFilters("reorder_areas",n)).overlay&&!isNaN(n.overlay)){var s=DiviArea.showOverlay(n.overlay);a.push({id:"-",type:"overlay","z-index":s})}for(var l in n)d(l);DiviArea.Debug.info("👓 List of visible Areas:"),DiviArea.Debug.table(a)}function d(e){if("overlay"!==e){var i=DiviArea.getArea(e);if(i){var t=n[e];t&&!isNaN(t)&&i.setData("zindex",t),i.isType("popup")&&i.attach(),a.push({id:i.theId(),type:i.theType(),"z-index":i.getData("zindex")||null})}}}},DiviArea.Core.activateContainer=function(i){var t,a,r=void 0===i;if(void 0===i?i=e("body"):DiviArea.Core.isArea(i)&&(i=i.get()),function(i){i.find(DiviArea.Utils.getOption("popupSelector")).not("[data-da-area]").filter("[id]").each((function(){var i=e(this);DiviArea.Debug.debug("Found an inline Popup Area:",i.attr("id")),DiviArea.register(i,{},"popup")}))}(i),(a=function(i,t){var a,r,o,n=[];if(!i.ids||!i.ids.length)return[];function s(i,t){var a;for(a=0;a<t.length;a++){var r=e(t[a]);r.attr("data-area-id")||(r.attr("data-da-area")||r.hasClass("divi-area-wrap")||r.hasClass("et_pb_section")&&r.hasClass("popup")||n.push({id:i,item:r}))}}for(a=0;a<i.ids.length;a++){var l="#"+(o=i.ids[a].replace(/^#/,"")),d=i.linkPrefix?"#"+i.linkPrefix+o:"",c="."+o,v=i.classPrefix?"."+i.classPrefix+o:"",u=i.dataAttrib?i.dataAttrib+'="'+o+'"':"";if(s(o,e('[href="'+l+'"]',t)),d&&s(o,e('[href="'+d+'"]',t)),s(o,e(c,t)),v&&s(o,e(v,t)),u&&s(o,e("["+u+"]",t)),window.et_link_options_data)for(r=et_link_options_data.length-1;r>=0;r--)if(l===et_link_options_data[r].url||d===et_link_options_data[r].url){var p=e("."+et_link_options_data[r].class,t);s(o,p),p.off("click"),et_link_options_data.splice(r,1)}}return n}({ids:DiviArea.listAreas(),linkPrefix:"popup:",dataAttrib:DiviArea.Utils.getOption("idAttrib"),classPrefix:DiviArea.Utils.getOption("triggerClassPrefix")},i)).length){for(r?DiviArea.Debug.group("Activate all triggers in document"):DiviArea.Debug.group("Activate triggers in area",i.attr("id")),t=0;t<a.length;t++){var o=a[t];d(o.item,o.id)}DiviArea.Debug.group()}else r?DiviArea.Debug.debug("No new triggers found in document"):DiviArea.Debug.debug("No new triggers found in area",i.attr("id"));DiviArea.Core.initContainer(i)},DiviArea.Core.initContainer=function(i){var t=!1,a=!1;return DiviArea.Core.isArea(i)?(t=i,i=i.get()):i.data("is-area")&&(t=i.getArea()),t&&(a=t.getData("post_id")),t&&!0===i.data("area-init-done")||(t&&i.data("area-init-done",!0),e("body").trigger("post-load"),i.find("img[loading=lazy]").attr("loading","eager"),void 0!==window.et_fix_pricing_currency_position&&window.et_fix_pricing_currency_position(i.find(".et_pb_pricing_table")),a&&i.find(".et_pb_newsletter_form").length&&i.find(".et_pb_newsletter_form [name=et_pb_signup_post_id]").val(a),function(e){if(!window.grecaptcha)return;if(!e.find('input[name="g-recaptcha-response"]').length)return;if(e.find("[data-sitekey].g-recaptcha").length>0){if(!grecaptcha.render)return;e.find("form").each((function(){var e=jQuery(this),i=e.find("[data-sitekey].g-recaptcha");if(i.length&&!e.find('iframe[src*="/recaptcha/"]').length){var t={sitekey:i.attr("data-sitekey"),type:i.attr("data-type"),size:i.attr("data-size"),theme:i.attr("data-theme"),badge:i.attr("data-badge"),tabindex:i.attr("data-tabindex")},a=i.attr("data-callback"),r=i.attr("data-expired-callback");a&&"function"==typeof window[a]&&(t.callback=window[a]),r&&"function"==typeof window[r]&&(t["expired-callback"]=window[r]);var o=grecaptcha.render(i[0],t);window.recaptchaWidgets&&recaptchaWidgets.push(o)}}))}else{if(!grecaptcha.execute)return;var i=jQuery('script[src*="google.com/recaptcha/api.js"]').attr("src").replace(/^.*render=(.*)$/,"$1").split("&")[0];grecaptcha.execute(i,{action:"homepage"}).then((function(i){e.find('form [name="g-recaptcha-response]').val(i)}))}}(i)),void 0!==window.et_reinit_waypoint_modules&&window.et_reinit_waypoint_modules(),i},DiviArea.Core.deactivateContainer=function(i){DiviArea.Core.isArea(i)&&(DiviArea.Debug.debug("Deactivate all triggers in area",i.theId()),i.find("[data-area-id]").each((function(){!function(e){DiviArea.Debug.debug("Remove trigger:",e[0]),e.removeAttr("data-area-id"),e.removeClass("popup-trigger"),e.off("._da")}(e(this))})))},DiviArea.Core.attachArea=function(e){r||(r=!0,l("show",e),r=!1),DiviArea.Data.addVisibleArea(e),e.attach()},DiviArea.Core.detachArea=function(e){if(r||(r=!0,l("hide",e),r=!1),e.inDom()){if(!DiviArea.Core.isArea(e)||!e.inDom())return;e.removeClass("__is_animating"),DiviArea.Data.removeVisibleArea(e),DiviArea.Core.blurArea(e),e.detach()}},DiviArea.Core.focusArea=function(e){var i=DiviArea.Utils.getOption("activePopupClass");e&&(e.get(),DiviArea.Core.activateContainer(e),e.hasClass(i)||(e.addClass(i),e.doAction("focus_area")))},DiviArea.Core.blurArea=function(e){var i=DiviArea.Utils.getOption("activePopupClass");e&&(e.get(),DiviArea.Core.deactivateContainer(e),e.hasClass(i)&&(e.removeClass(i),e.doAction("blur_area")))},DiviArea.Core.setupHoverArea=function(t){var a=t.getData("attachto"),r=t.get(),o=t.getWrap();if(a.length){var n=DiviArea.Utils.isPosition(a,"fixed"),s=t.theId(),l=t.getData("closeTrigger"),d=1e3*t.getData("closedelay"),c=!1,v=!1,u=!1;i&&(u=new i((function(e){for(var i=0;i<e.length;i++){var t=e[i].contentRect,a=t.width+"-"+t.height;a!==v&&(v=a,p())}}),{box:"border-box"})),u&&u.observe(a[0]),t.addAction("resize_area",p),"click"===l?e(document).on("click."+t.theKey(),(function(i){e(i.target).closest(s).length||g()})):"hover"===l&&(r.on("mouseleave._dah",g),a.on("mouseleave._dah",g)),a.on("mouseenter._dah",h),r.on("mouseenter._dah",h),DiviArea.Debug.debug("Prepared positioning of hover area")}else DiviArea.Debug.error("Hover Area without alignment element found");function p(){var e=n?a[0].getBoundingClientRect():DiviArea.Utils.getClientRect(a),i=t.getData("positionv"),r=t.getData("positionh"),s=t.getSize(),l={},d={left:"",top:"",right:"",bottom:"",width:"",height:"",position:n?"fixed":"absolute"};"top"===i||"bottom"===i?(d.top="top"===i?e.top-s.height:e.bottom,d.left=e.left+e.width/2-s.width/2):"left"===r||"right"===r?(d.left="left"===r?e.left-s.width:e.right,d.top=e.top+e.height/2-s.height/2):"center"===r&&"center"===i?(d.left=e.left+e.width/2-s.width/2,d.top=e.top+e.height/2-s.height/2):DiviArea.Debug.error("Invalid position",t.getData("position")),d.top<0&&(d.top=0),d.left<0&&(d.left=0),d.left+s.width>window.innerWidth&&(d.left=window.innerWidth-s.width),t.doAction("position_area",d,l),DiviArea.Debug.debug("Area position:",d),o.css(d),t.css(l)}function g(){h(),c=window.setTimeout((function(){var i=t.getData("attachto");i&&i.length&&a!==i||(u&&u.disconnect(),t.removeAction("resize_area",p),e(document).off("."+t.theKey()),r.off("._dah"),a.off("._dah"),DiviArea.hide(t))}),d)}function h(){c&&window.clearTimeout(c),c=!1}},DiviArea.Core.disableBodyScroll=function(){var i=e("body");if(!0!==i.data("da-disable-scroll")){i.data("da-disable-scroll",!0),DiviArea.Utils.bindPassiveEvent([i,DiviArea.getOverlay()],"mousewheel touchmove",c);var t=window.innerWidth-document.body.clientWidth;i.addClass(DiviArea.Utils.getOption("openPopupClass")),t&&(i.css("padding-right",t),i.hasClass("et_boxed_layout")||e(".et_fixed_nav #main-header").css("padding-right",t)),DiviArea.doAction("disabled_scrolling")}},DiviArea.Core.enableBodyScroll=function(){var i=e("body");!0===i.data("da-disable-scroll")&&(i.data("da-disable-scroll",!1),DiviArea.Utils.unbindPassiveEvent([i,DiviArea.getOverlay()],"mousewheel touchmove",c),i.removeClass(DiviArea.Utils.getOption("openPopupClass")),i.css("padding-right",""),e(".et_fixed_nav #main-header").css("padding-right",""),DiviArea.doAction("enabled_scrolling"))},DiviArea.Core.closeMainMenu=function(){e(".et_pb_fullscreen_menu_active").length?e(".et_toggle_fullscreen_menu").first().trigger("click"):e(".et_pb_slide_menu_active").length&&e(".et_toggle_slide_menu").first().trigger("click")}}(jQuery),function(e){DiviArea.Data=DiviArea.Data||{};var i={},t=[],a={};DiviArea.Data.sanitizeId=function(e,i){if(!e)return"";if(e instanceof DiviAreaItem)return e.theId();if(e instanceof jQuery)return"#"+e.attr("id");if(e){if(i){var t=new RegExp("^#"+i+":");e=e.replace(t,"#",e)}"#"!==e[0]&&(e="#"+e)}return e.length>1?e:""},DiviArea.Data.getRealId=function(e){var t=[];if(!e)return"";for(e=e.toString().trim(),t.push(DiviArea.Data.sanitizeId(e)),-1===e.indexOf("divi-area-")&&t.push(DiviArea.Data.sanitizeId("divi-area-"+e));t.length;){var r=t.shift();if(r){if(void 0!==i[r])return r;if(a[r]&&(r=DiviArea.Data.sanitizeId(a[r])),r&&void 0!==i[r])return r}}return""},DiviArea.Data.addAltId=function(e,i){function t(i){i=DiviArea.Data.sanitizeId(i),e!==i&&(null===e?delete a[i]:a[i]=e)}e=DiviArea.Data.sanitizeId(e),Array.isArray(i)?i.forEach((function(e){return t(e)})):t(i)},DiviArea.Data.getArea=function(e){if(void 0===e)return DiviArea.Data.getVisibleArea();if(e instanceof DiviAreaItem)return e;e instanceof jQuery&&(e=e.attr("id"));var t=DiviArea.Data.getRealId(e);return!!t&&i[t]},DiviArea.Data.createArea=function(e,t,a){return a=DiviArea.Data.sanitizeId(a),i[a]=new DiviAreaItem(e,t),i[a]},DiviArea.Data.getAllIds=function(e){var t=[];if(DiviArea.Core.isArea(e)){var r=e.theId();for(var o in t.push(r),a)r===a[o]&&t.push(o)}else{for(var n in i){i[n].isType(e)&&t.push(n)}for(var s in a){var l=a[s];i[l].isType(e)&&t.push(s)}}return t},DiviArea.Data.loopAllAreas=function(e,t){for(var a in i){var r=i[a];r.isType(e)&&t(r,a)}},DiviArea.Data.countVisibleAreas=function(e){if(!e||"any"===e)return t.length;var i=0;return DiviArea.Data.loopVisibleAreas(e,(function(){return i++})),i},DiviArea.Data.addVisibleArea=function(e){if(!(e=DiviArea.getArea(e)))return!1;if(e.isType("popup")||!DiviArea.Data.countVisibleAreas("popup"))t.push(e);else for(var i=0;i<t.length;i++)if(t[i].isType("popup")){t.splice(i,0,e);break}},DiviArea.Data.removeVisibleArea=function(e){if(!(e=DiviArea.getArea(e)))return!1;for(var i=e.theId(),a=t.length-1;a>=0;a--){t[a].theId()===i&&t.splice(a,1)}},DiviArea.Data.getVisibleArea=function(e,i){var a=t.length-1;if(!e&&!i)return t[a];if(e){var r=DiviArea.getArea(e);return!!r&&(!!r.isType(i)&&(!!r.isVisible()&&r))}for(var o=a;o>=0;o--){var n=t[o];if(n.isType(i))return n}return!1},DiviArea.Data.loopVisibleAreas=function(e,i,a){for(var r=t.length,o=a?r-1:0,n=0;n<r;n++){var s=t[o];o+=a?-1:1,s.isType(e)&&i(s,n)}}}(),function(e){var i=null,t=!1;function a(e){DiviArea.Debug.info("⚡️ Click on background overlay"),e.preventDefault(),DiviArea.doAction("click_overlay");var i=DiviArea.Data.getVisibleArea(null,"popup");return i?i.getData("ismodal")?(DiviArea.Debug.debug("Ignore click:",'Top-most popup is marked as "modal"'),!1):DiviArea.applyFilters("ignore_overlay_click",!1)?(DiviArea.Debug.debug("Ignore click:","Manually cancelled via filter"),!1):(DiviArea.doAction("close_area",null,"overlay"),DiviArea.Data.countVisibleAreas("popup")||DiviArea.hideOverlay(),!1):(DiviArea.Debug.debug("Ignore click:","No visible Popups found"),!1)}DiviArea.showOverlay=function(r){return null===i&&((i=e("<div />")).addClass(DiviArea.Utils.getOption("overlayClass")),i.on("click.popup",a),DiviArea.doAction("init_overlay",i)),r&&!isNaN(r)||(r=DiviArea.Utils.getOption("zIndex"),r+=Math.max(0,DiviArea.Data.countVisibleAreas())),i.css({zIndex:r}),t||(t=!0,DiviArea.Debug.info("⤴️ Show background overlay"),DiviArea.Core.disableBodyScroll(),i.detach().appendTo(DiviArea.Core.getContext()),i.fadeIn(DiviArea.Utils.getOption("animateSpeed")),DiviArea.doAction("show_overlay",i),DiviArea.Core.closeMainMenu()),r},DiviArea.hideOverlay=function(){t&&(t=!1,DiviArea.Debug.info("⤵️ Hide background overlay"),i.hide().detach(),DiviArea.Core.enableBodyScroll(),DiviArea.doAction("hide_overlay",i))},DiviArea.getOverlay=function(){return i}}(jQuery),function(){DiviArea.UI=DiviArea.UI||{};var e={};function i(e,i,t){t=t||e.data("et_waypoint_max_instances")||1;var a=e.data("et_waypoint")||[];if(a.length<t){var r=e.waypoint(i);r&&r.length>0&&(a.push(r[0]),e.data("et_waypoint",a))}else for(var o=0;o<a.length;o++)a[o].context.refresh()}DiviArea.UI.animateArea=function(t,a,r){var o=!1,n=!1;window.TweenLite&&t.isType("flyin")&&(n=!0),"function"!=typeof r&&(r=function(){}),"hide"!==a||t.isType("flyin")?(t.hasClass("et_pb_section")&&jQuery.fn.waypoint&&"yes"!==et_pb_custom.ignore_waypoints&&function(t){var a,r=t.attr("data-animation");if(!r)return!1;if(!(a=e[r]))return!1;jQuery("body").css("overflow-x","hidden"),jQuery("#page-container").css("overflow-y","hidden"),t.attr({"data-animation-style":a.style,"data-animation-repeat":"once"===a.repeat?"":"infinite","data-animation-duration":a.duration,"data-animation-delay":a.delay,"data-animation-intensity":a.intensity,"data-animation-starting-opacity":a.starting_opacity,"data-animation-speed-curve":a.speed_curve}),i(t,{offset:"100%",handler:function(){!function(e){var i=e.attr("data-animation-style"),t=e.attr("data-animation-repeat"),a=e.attr("data-animation-duration"),r=e.attr("data-animation-delay"),o=e.attr("data-animation-intensity"),n=e.attr("data-animation-starting-opacity"),s=e.attr("data-animation-speed-curve");!function(e){for(var i=[],t=e.get(0).attributes,a=0;a<t.length;a++)"data-animation-"===t[a].name.substring(0,15)&&i.push(t[a].name);jQuery.each(i,(function(i,t){e.removeAttr(t)}))}(e);var l=isNaN(parseInt(n))?0:.01*parseInt(n);-1===jQuery.inArray(s,["linear","ease","ease-in","ease-out","ease-in-out"])&&(s="ease-in-out"),e.css({"animation-duration":a,"animation-delay":r,opacity:l,"animation-timing-function":s});for(var d={},c=isNaN(parseInt(o))?50:parseInt(o),v=["slide","zoom","flip","fold","roll"],u=!1,p=!1,g=0;g<v.length;g++){var h=v[g];if(i&&i.substr(0,h.length)===h){u=h,""!==(p=i.substr(h.length,i.length))&&(p=p.toLowerCase());break}}!1!==u&&!1!==p&&(d=function(e,i,t){var a={};switch(e){case"slide":switch(i){case"top":a={transform:"translate3d(0, "+(r=-2*t)+"%, 0)"};break;case"right":a={transform:"translate3d("+(r=2*t)+"%, 0, 0)"};break;case"bottom":a={transform:"translate3d(0, "+(r=2*t)+"%, 0)"};break;case"left":var r=-2*t;a={transform:"translate3d("+r+"%, 0, 0)"};break;default:a={transform:"scale3d("+(o=.01*(100-t))+", "+o+", "+o+")"}}break;case"zoom":var o=.01*(100-t);switch(i){case"top":case"right":case"bottom":case"left":default:a={transform:"scale3d("+o+", "+o+", "+o+")"}}break;case"flip":switch(i){case"right":a={transform:"perspective(2000px) rotateY("+(n=Math.ceil(.9*t))+"deg)"};break;case"left":a={transform:"perspective(2000px) rotateY("+(n=-1*Math.ceil(.9*t))+"deg)"};break;case"top":default:a={transform:"perspective(2000px) rotateX("+(n=Math.ceil(.9*t))+"deg)"};break;case"bottom":a={transform:"perspective(2000px) rotateX("+(n=-1*Math.ceil(.9*t))+"deg)"}}break;case"fold":switch(i){case"top":a={transform:"perspective(2000px) rotateX("+(n=-1*Math.ceil(.9*t))+"deg)"};break;case"bottom":a={transform:"perspective(2000px) rotateX("+(n=Math.ceil(.9*t))+"deg)"};break;case"left":a={transform:"perspective(2000px) rotateY("+(n=Math.ceil(.9*t))+"deg)"};break;case"right":default:a={transform:"perspective(2000px) rotateY("+(n=-1*Math.ceil(.9*t))+"deg)"}}break;case"roll":switch(i){case"right":case"bottom":a={transform:"rotateZ("+(n=-1*Math.ceil(3.6*t))+"deg)"};break;case"top":case"left":a={transform:"rotateZ("+(n=Math.ceil(3.6*t))+"deg)"};break;default:var n=Math.ceil(3.6*t);a={transform:"rotateZ("+n+"deg)"}}}return a}(u,p,c)),jQuery.isEmptyObject(d)||e.css(d),e.addClass("et_animated"),e.addClass(i),e.addClass(t)}(jQuery(this.element))}})}(t.get())&&(o=!0),n?function(e,i,t){DiviArea.Debug.debug("Animate Area using GSAP");var a=DiviArea.Utils.getOption("animateSpeed"),r={},o={},n=e.get();n.css({opacity:"show"===i?0:1,transition:"all 0s"}),n.show(),window.setTimeout((function(){"left"===e.getData("positionh")?(r.left=-1*n.outerWidth(),o.left=0):"right"===e.getData("positionh")?(r.right=-1*n.outerWidth(),o.right=0):"top"===e.getData("positionv")?(r.top=-1*n.outerHeight(),o.top=0):"bottom"===e.getData("positionv")&&(r.bottom=-1*n.outerHeight(),o.bottom=0),r.opacity=1,o.opacity=1,"hide"===i?(n.css(o),TweenLite.to(n,a/1e3,{css:r})):(n.css(r),TweenLite.to(n,a/1e3,{css:o})),window.setTimeout(t,a)}),5)}(t,a,r):o?function(e,t,a){DiviArea.Debug.debug("Animate Area using a Divi Animation");var r=e.get();r.show(),r.css({opacity:0}),window.setTimeout((function(){r.css({opacity:""}),i(r,{offset:"100%",handler:function(){r.addClass("et-animated"),a()}},2)}),10)}(t,0,r):function(e,i,t){var a=e.get(),r=DiviArea.Utils.getOption("animateSpeed");"show"===i?(DiviArea.Debug.debug("Animate Area using jQuery fadeIn",r),a.fadeIn(r,t)):"hide"===i&&(DiviArea.Debug.debug("Animate Area using jQuery fadeOut",r),a.fadeOut(r,t))}(t,a,r)):r()},DiviArea.UI.initializeAreaAnimation=function(i){if(!window.et_animation_data||!window.et_animation_data.length>0)return!1;i.removeClass("et-waypoint"),i.removeClass("et-animated");for(var t=0;t<et_animation_data.length;t++){var a=!1,r=et_animation_data[t];r&&(r.class&&i.hasClass(r.class)&&r.style&&r.repeat&&r.duration&&r.delay&&r.intensity&&r.starting_opacity&&r.speed_curve&&(a=r.class,i.addClass("pfd-waypoint"),i.attr("data-animation",a),e[a]=r,et_animation_data[t].class=void 0))}}}(),function(){DiviArea.Debug=DiviArea.Debug||{};var e=!1,i=window.DiviAreaConfig;DiviArea.Debug.group=function(t){if(i.debug&&console.group){var a=!e||t&&t!==e;if(e&&(console.groupEnd(),e=!1),t&&a){var r=Array.prototype.slice.call(arguments);r.unshift("[DiviAreas]"),console.group.apply(this,r),e=t}}},DiviArea.Debug.table=function(){if(i.debug){var e=Array.prototype.slice.call(arguments);Array.isArray(e[0])||(e=[e]),console.table?console.table.apply(this,e):console.log.apply(this,e)}},DiviArea.Debug.verbose=function(){if(i.debug&&i.debugVerbose){var e=Array.prototype.slice.call(arguments);e.unshift("color:#cfd8dc;font-style:italic"),e.unshift("[DiviAreas] %c%s"),console.debug.apply(this,e)}},DiviArea.Debug.debug=function(){if(i.debug){var e=Array.prototype.slice.call(arguments);e.unshift("color:#90a4ae"),e.unshift("[DiviAreas] %c%s"),console.debug.apply(this,e)}},DiviArea.Debug.info=function(){if(i.debug){var e=Array.prototype.slice.call(arguments);e.unshift("color:#0288d1;background:#fafcfe"),e.unshift("[DiviAreas] %c%s"),console.log.apply(this,e)}},DiviArea.Debug.error=function(){var e=Array.prototype.slice.call(arguments);e.unshift("[DiviAreas]"),console.error.apply(this,e)},DiviArea.Debug.sysInfo=function(){var e=["\n----------"];if(e.push("Please copy-paste this information into your support ticket:"),e.push("----------\n"),DiviArea.lib&&DiviArea.version&&e.push(" • js_api: "+DiviArea.lib+" "+DiviArea.version),window.DiviAreaConfig&&DiviAreaConfig.sys&&DiviAreaConfig.sys.plugin)for(var i in DiviAreaConfig.sys)try{e.push(" • "+i+": "+" ".repeat(Math.max(0,11-i.length))+DiviAreaConfig.sys[i])}catch(e){}return e.push(" • browser: "+navigator.userAgent),e.push("\n----------\n"),e.join("\n")}}(),t=!0,(a={}).silent=DiviArea.Hooks.silent,a.removeFilter=DiviArea.Hooks.removeFilter,a.removeAction=DiviArea.Hooks.removeAction,a.applyFilters=DiviArea.Hooks.applyFilters,a.doAction=DiviArea.Hooks.doAction,a.addFilter=DiviArea.Hooks.addFilter,a.addAction=DiviArea.Hooks.addAction,a.addActionOnce=DiviArea.Hooks.addActionOnce,DiviArea.Hooks.silent=function(){return t=!1,a.silent.apply(this,arguments)},DiviArea.removeFilter=DiviArea.Hooks.removeFilter=function(e){return t&&DiviArea.Debug.debug("Remove Filter:",e),t=!0,a.removeFilter.apply(this,arguments)},DiviArea.removeAction=DiviArea.Hooks.removeAction=function(e){return t&&DiviArea.Debug.debug("Remove Action:",e),t=!0,a.removeAction.apply(this,arguments)},DiviArea.applyFilters=DiviArea.Hooks.applyFilters=function(e){if(t){Array.isArray(e)||(e=[e]),DiviArea.Debug.info("📢️ Apply Filters:",e.join(" → "));for(var i=0;i<e.length;i++)DiviArea.Debug.debug(' ⚙ DiviArea.addFilter("'+e[i]+'", callback)')}return t=!0,a.applyFilters.apply(this,arguments)},DiviArea.doAction=DiviArea.Hooks.doAction=function(e){if(t){Array.isArray(e)||(e=[e]),DiviArea.Debug.info("📢️ Do Action:",e.join(" → "));for(var i=0;i<e.length;i++)DiviArea.Debug.debug(' ⚙ DiviArea.addAction("'+e[i]+'", callback)')}return t=!0,a.doAction.apply(this,arguments)},DiviArea.addFilter=DiviArea.Hooks.addFilter=function(e){return t&&DiviArea.Debug.debug("Add Filter:",e),t=!0,a.addFilter.apply(this,arguments)},DiviArea.addAction=DiviArea.Hooks.addAction=function(e){return t&&DiviArea.Debug.debug("Add Action:",e),t=!0,a.addAction.apply(this,arguments)},DiviArea.addActionOnce=DiviArea.Hooks.addActionOnce=function(e){return t&&DiviArea.Debug.debug("Add Action Once:",e),t=!0,a.addActionOnce.apply(this,arguments)},DiviArea.openPopup=function(e){DiviArea.Debug.error("DiviArea.openPopup() is deprecated. Please use DiviArea.show() instead"),DiviArea.show(e)},DiviArea.openArea=function(e){DiviArea.Debug.error("DiviArea.openArea() is deprecated. Please use DiviArea.show() instead"),DiviArea.show(e)},DiviArea.closePopup=function(e){DiviArea.Debug.error("DiviArea.closeArea() is deprecated. Please use DiviArea.hide() instead"),DiviArea.hide(e)},DiviArea.closeArea=function(e){DiviArea.Debug.error("DiviArea.closeArea() is deprecated. Please use DiviArea.hide() instead"),DiviArea.hide(e)},DiviArea.Data.configArea=function(e,i,t){DiviArea.Debug.error("DiviArea.configArea() is deprecated. Please use area.setData() instead");var a=DiviArea.getArea(e);if(a)if("object"!=typeof i)a.setData(i,t);else for(var r in i)i.hasOwnProperty(r)&&a.setData(r,i[r])},DiviArea.Hooks.silent().addAction("init_area",(function(e){DiviArea.Hooks.silent().doAction("init_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("show_area",(function(e){DiviArea.Hooks.silent().doAction("show_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("hide_area",(function(e){DiviArea.Hooks.silent().doAction("hide_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("close_area",(function(e,i){e&&DiviArea.Hooks.silent().doAction("close_area-"+e.theKey(),e,i)}),1),DiviArea.Hooks.silent().addAction("blur_area",(function(e){DiviArea.Hooks.silent().doAction("blur_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("focus_area",(function(e){DiviArea.Hooks.silent().doAction("focus_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("before_show_area",(function(e,i){DiviArea.Hooks.silent().doAction("before_show_area-"+e.theKey(),e,i)}),1),DiviArea.Hooks.silent().addAction("before_hide_area",(function(e,i){DiviArea.Hooks.silent().doAction("before_hide_area-"+e.theKey(),e,i)}),1),DiviArea.Hooks.silent().addFilter("ignore_close_area",(function(e,i,t){return e=DiviArea.Hooks.silent().applyFilters("before_close_area",e,i,t),e=DiviArea.Hooks.silent().applyFilters("before_close_area-"+i.theKey(),e,i,t)}),1),DiviArea.Hooks.silent().addFilter("ignore_esc_key",(function(e){return e=DiviArea.Hooks.silent().applyFilters("esc_key_pressed",e)}),1),DiviArea.Hooks.silent().addAction("area_close_button",(function(e){e.addClass("evr-close_wrap"),e.find(">a").addClass("evr-close")}),1),DiviArea.Hooks.silent().addAction("area_wrap",(function(e){e.addClass("popup_outer_wrap")}),1),DiviArea.Hooks.silent().addAction("init_overlay",(function(e){e.addClass("evr_fb_popup_modal")}),1),DiviArea.Hooks.silent().addAction("refresh_area",(function(e){var i={notmobile:DiviArea.Utils.getOption("notMobileClass"),nottablet:DiviArea.Utils.getOption("notTabletClass"),notdesktop:DiviArea.Utils.getOption("notDesktopClass"),showclose:DiviArea.Utils.getOption("withCloseClass"),hideclose:DiviArea.Utils.getOption("noCloseClass"),closealt:DiviArea.Utils.getOption("altCloseClass"),ismodal:DiviArea.Utils.getOption("modalIndicatorClass"),noshadow:DiviArea.Utils.getOption("noShadowClass"),darkmode:DiviArea.Utils.getOption("darkModeClass"),singleton:DiviArea.Utils.getOption("singletonClass")};for(var t in i)e.getData(t)?e.addClass(i[t]):e.removeClass(i[t])}),1),DiviArea.listAreas=DiviArea.Data.getAllIds,DiviArea.configArea=DiviArea.Data.configArea,DiviArea.getArea=DiviArea.Data.getArea,(r=e)&&r.default,DiviArea.init(!1)}();
plugin.php CHANGED
@@ -13,7 +13,7 @@
13
  * Author: divimode.com
14
  * Author URI: https://divimode.com/?utm_source=wpadmin&utm_medium=link&utm_campaign=popups-for-divi
15
  * Created: 30.12.2017
16
- * Version: 2.2.3
17
  * Text Domain: divi-popup
18
  * Domain Path: /lang
19
  * License: GPL v2 or later
@@ -40,7 +40,7 @@ defined( 'ABSPATH' ) || die();
40
  /**
41
  * A new version value will force refresh of CSS and JS files for all users.
42
  */
43
- define( 'DIVI_POPUP_VERSION', '2.2.3' );
44
 
45
  /**
46
  * Absolute path and file name of the main plugin file.
13
  * Author: divimode.com
14
  * Author URI: https://divimode.com/?utm_source=wpadmin&utm_medium=link&utm_campaign=popups-for-divi
15
  * Created: 30.12.2017
16
+ * Version: 2.2.4
17
  * Text Domain: divi-popup
18
  * Domain Path: /lang
19
  * License: GPL v2 or later
40
  /**
41
  * A new version value will force refresh of CSS and JS files for all users.
42
  */
43
+ define( 'DIVI_POPUP_VERSION', '2.2.4' );
44
 
45
  /**
46
  * Absolute path and file name of the main plugin file.
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: strackerphil-1
3
  Tags: popup, marketing, divi
4
  Requires at least: 3.0.1
5
- Tested up to: 5.5.6
6
  Stable tag: trunk
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
@@ -148,7 +148,7 @@ Here's how you can revert to an older version of the plugin:
148
  2. Pick your version and click "Download" (you can choose any version since 1.5.1)
149
  3. Now go to your wp-admin Panel and open the Plugins list
150
  4. Deactivate and Delete the Popups for Divi plugin! *Note: You will not lose any data, but while the plugin is deactivated/missing your Popups might be visible like normal page content.*
151
- 5. On the Plugins page click "Add New" button in the top and then click on "Upload Plugin"
152
  6. Select the .zip file which you downloaded in Step 2 and upload it. Activate and you're done!
153
 
154
  Alternatively you can replace the `popups-for-divi` folder via FTP: Extract the .zip file which you downloaded in Step 2 and upload it to your `/wp-content/plugins` folder.
@@ -167,7 +167,7 @@ When you need additional features, then please have a look at our the Premium pl
167
 
168
  1. Step 1: Prepare your Popup inside a normal Divi Section, right on your page.
169
  2. Step 2: Open the Section Settings, enable the "This is a Popup" flag and define a unique Popup ID.
170
- 3. Step 3: That's how the final Popup is dispayed to a visitor.
171
  4. Check out the extensive API documentation and popup samples on divimode.com
172
  5. Our free email course walks you through every aspect of the plugin - from the basics to advanced use-cases and techniques.
173
 
@@ -178,10 +178,19 @@ Attention: The JS API changes! Developers, please first read https://divimode.co
178
 
179
  == Changelog ==
180
 
181
- = 2.2.3 =
182
- * Fix: Position of close button is correct in full-height Popups.
 
 
 
 
 
 
 
 
183
 
184
- Plugin tested with WordPress 5.5.6 and Divi 4.6.5
 
185
 
186
  = 2.2.2 =
187
  * Improve: Images inside Areas are instantly loaded in Chrome (fixed a lazy-load bug).
2
  Contributors: strackerphil-1
3
  Tags: popup, marketing, divi
4
  Requires at least: 3.0.1
5
+ Tested up to: 5.5.1
6
  Stable tag: trunk
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
148
  2. Pick your version and click "Download" (you can choose any version since 1.5.1)
149
  3. Now go to your wp-admin Panel and open the Plugins list
150
  4. Deactivate and Delete the Popups for Divi plugin! *Note: You will not lose any data, but while the plugin is deactivated/missing your Popups might be visible like normal page content.*
151
+ 5. On the Plugins page click the "Add New" button in the top and then click on "Upload Plugin"
152
  6. Select the .zip file which you downloaded in Step 2 and upload it. Activate and you're done!
153
 
154
  Alternatively you can replace the `popups-for-divi` folder via FTP: Extract the .zip file which you downloaded in Step 2 and upload it to your `/wp-content/plugins` folder.
167
 
168
  1. Step 1: Prepare your Popup inside a normal Divi Section, right on your page.
169
  2. Step 2: Open the Section Settings, enable the "This is a Popup" flag and define a unique Popup ID.
170
+ 3. Step 3: That's how the final Popup is displayed to a visitor.
171
  4. Check out the extensive API documentation and popup samples on divimode.com
172
  5. Our free email course walks you through every aspect of the plugin - from the basics to advanced use-cases and techniques.
173
 
178
 
179
  == Changelog ==
180
 
181
+ = 2.2.4 =
182
+ * Improve: Area sizes are more accurate when using Divis responsive sizes.
183
+ * Improve: Images inside Popups are instantly loaded in Chrome (fixed a lazy-load bug).
184
+ * Improve: Area size is re-calculated when the Area contents change, e.g. when an accordion is opened or closed.
185
+ * Improve: When a Popup is opened, scrolling is disabled in all browsers, without shifting the content!
186
+ * Change: New JS action that fires when an Area was resized `resize_area`.
187
+ * Change: New JS action to customize screen-position of an Area `position_area` (not available for Inline Areas).
188
+ * Fix: Full-Height Popups can be scrolled again in Safari/iPhones.
189
+
190
+ Plugin tested with WordPress 5.5.1 and Divi 4.6.5
191
 
192
+ = 2.2.3 =
193
+ * Fix: Position of the close button is correct in full-height Popups.
194
 
195
  = 2.2.2 =
196
  * Improve: Images inside Areas are instantly loaded in Chrome (fixed a lazy-load bug).