Popups for Divi - Version 1.6.0

Version Description

  • Change Popup behavior: The size now matches the width of your Divi section!
  • Change the default layout of Popups to not have a box-shadow. If you want a shadow, either add the class with-shadow to your section or simply apply a box-shadow to the section using Divi. Style it your way!
  • Add popup support via Blurb "Content Link".
  • Add Google reCaptcha integration! Tested with CF7, but works with any plugin.
  • Add new WP filter options to customize dark-mode and box-shadow style.
  • Fix select list behavior in Firefox.
  • Fix Popup width on iPhone 6 and earlier.
  • Tweak the CSS that makes the page body un-scrollable while a popup is open.
  • Tweak the JS library for easier maintenance and better performance.
Download this release

Release Info

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

Code changes from version 1.6.2 to 1.6.0

Files changed (5) hide show
  1. css/front.css +2 -3
  2. css/front.css.map +1 -1
  3. js/front.js +1 -1
  4. plugin.php +2 -2
  5. readme.txt +11 -18
css/front.css CHANGED
@@ -10,9 +10,6 @@
10
  background: rgba(0, 0, 0, 0.55);
11
  z-index: 99; }
12
 
13
- .popup:not(.no-shadow) {
14
- box-shadow: 0 3px 10px -1px rgba(0, 0, 0, 0.3), 0 2px 50px 2px rgba(0, 0, 0, 0.2); }
15
-
16
  .popup_outer_wrap {
17
  position: fixed;
18
  left: 50%;
@@ -50,6 +47,8 @@
50
  transition: all 0.3s;
51
  max-height: 100%;
52
  pointer-events: all; }
 
 
53
  .popup_outer_wrap .popup.with-loader {
54
  background-image: url(../img/spin.gif), radial-gradient(circle at center, #FFF 65%, #fff0 66%);
55
  background-size: 32px 32px, 48px 48px; }
10
  background: rgba(0, 0, 0, 0.55);
11
  z-index: 99; }
12
 
 
 
 
13
  .popup_outer_wrap {
14
  position: fixed;
15
  left: 50%;
47
  transition: all 0.3s;
48
  max-height: 100%;
49
  pointer-events: all; }
50
+ .popup_outer_wrap .popup.with-shadow {
51
+ box-shadow: 0 3px 10px -1px rgba(0, 0, 0, 0.3), 0 2px 50px 2px rgba(0, 0, 0, 0.2); }
52
  .popup_outer_wrap .popup.with-loader {
53
  background-image: url(../img/spin.gif), radial-gradient(circle at center, #FFF 65%, #fff0 66%);
54
  background-size: 32px 32px, 48px 48px; }
css/front.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./gulp/sass/front.scss"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;;AAEd;AACA,oFAAoF;;AAEpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,uBAAuB;AACvB;AACA;AACA,4BAA4B;AAC5B;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,4CAA4C;AAC5C;AACA;AACA;AACA;AACA,kBAAkB;;AAElB;AACA,wBAAwB;AACxB;AACA;AACA,cAAc;;AAEd;AACA;AACA,qBAAqB;;AAErB;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA,kBAAkB;;AAElB;AACA,qBAAqB;;AAErB;AACA;AACA;AACA,4BAA4B;;AAE5B;AACA;AACA,2BAA2B;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA,qCAAqC;;AAErC;AACA;AACA,6BAA6B","file":"css/front.css","sourcesContent":["/**\n * Divi Areas Pro - styles for front-end\n */\n.evr_fb_popup_modal {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.55);\n z-index: 99; }\n\n.popup:not(.no-shadow) {\n box-shadow: 0 3px 10px -1px rgba(0, 0, 0, 0.3), 0 2px 50px 2px rgba(0, 0, 0, 0.2); }\n\n.popup_outer_wrap {\n position: fixed;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n top: 50%;\n width: 90%;\n z-index: 100;\n min-width: 320px;\n pointer-events: none; }\n .popup_outer_wrap.popup_full_width {\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n width: 100%;\n left: 0; }\n .popup_outer_wrap.popup_full_width > .popup {\n overflow-x: auto; }\n .popup_outer_wrap.popup_full_height {\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n height: 100%;\n top: 0; }\n .popup_outer_wrap.popup_full_height > .popup {\n overflow-y: auto; }\n .popup_outer_wrap.popup_full_width.popup_full_height {\n -webkit-transform: none;\n transform: none; }\n .popup_outer_wrap.popup_full_width.popup_full_height > .popup {\n overflow: auto; }\n .popup_outer_wrap .popup {\n position: relative;\n background-repeat: no-repeat;\n background-position: center center;\n margin: auto;\n transition: all 0.3s;\n max-height: 100%;\n pointer-events: all; }\n .popup_outer_wrap .popup.with-loader {\n background-image: url(../img/spin.gif), radial-gradient(circle at center, #FFF 65%, #fff0 66%);\n background-size: 32px 32px, 48px 48px; }\n .popup_outer_wrap .popup .et_pb_row:after,\n .popup_outer_wrap .popup .et_pb_row_inner:after,\n .popup_outer_wrap .popup .et_pb_slides:after,\n .popup_outer_wrap .popup .clearfix:after {\n content: ''; }\n\n.admin-bar .popup_outer_wrap {\n top: calc(50% + 16px); }\n .admin-bar .popup_outer_wrap.popup_full_height {\n height: calc(100% - 52px);\n top: 42px; }\n\n/* Used in front-end when a popup is displayed to a visitor */\n#page-container #main-content {\n transition: all 0s; }\n\nbody.evr_popup_open {\n overflow: hidden; }\n body.evr_popup_open #page-container #main-content {\n transition: all 0.5s 1s;\n -webkit-filter: blur(2px);\n filter: blur(2px);\n opacity: 0.75; }\n\n.divi-area-wrap {\n position: relative; }\n\n/* Styles that are shared between Popups for Divi and Divi Areas Pro */\n.divi-area-wrap.with-close .evr-close_wrap,\n.popup_outer_wrap .popup.with-close .evr-close_wrap {\n display: block !important; }\n\n.divi-area-wrap.no-close .evr-close_wrap,\n.popup_outer_wrap .popup.no-close .evr-close_wrap {\n display: none !important; }\n\n.divi-area-wrap .evr-close_wrap,\n.popup_outer_wrap .popup .evr-close_wrap {\n position: absolute;\n right: 0;\n top: 0;\n opacity: 0.2;\n z-index: 100;\n text-align: right;\n transition: opacity 0.6s 0.3s; }\n\n.divi-area-wrap .evr-close,\n.popup_outer_wrap .popup .evr-close {\n display: block;\n box-sizing: content-box;\n width: 30px;\n height: 30px;\n line-height: 30px;\n text-align: center;\n font-family: \"Courier New\", monospace;\n font-size: 20px;\n font-weight: bold;\n cursor: pointer;\n color: #333;\n background: #fff2;\n opacity: 0.7;\n box-shadow: 0 0 3px 1px #00000008;\n transition: all 0.3s; }\n .divi-area-wrap .evr-close:hover, .divi-area-wrap .evr-close:focus, .divi-area-wrap .evr-close:active,\n .popup_outer_wrap .popup .evr-close:hover,\n .popup_outer_wrap .popup .evr-close:focus,\n .popup_outer_wrap .popup .evr-close:active {\n color: #000;\n background: #FFF;\n opacity: 1;\n box-shadow: 0 0 4px 0 #0002, 0 0 3px 1px #0001;\n -webkit-transform: scale(1.1);\n transform: scale(1.1); }\n\n.divi-area-wrap.dark .evr-close,\n.popup_outer_wrap .popup.dark .evr-close {\n color: #EEE;\n background: #0002;\n box-shadow: 0 0 0 1px #FFFFFF08;\n text-shadow: 0px 0px 1px #000,0px 0px 3px #000A; }\n .divi-area-wrap.dark .evr-close:hover, .divi-area-wrap.dark .evr-close:focus, .divi-area-wrap.dark .evr-close:active,\n .popup_outer_wrap .popup.dark .evr-close:hover,\n .popup_outer_wrap .popup.dark .evr-close:focus,\n .popup_outer_wrap .popup.dark .evr-close:active {\n color: #FFF;\n background: #2b2b2b;\n box-shadow: 0 0 1px 1px #FFF3; }\n\n.divi-area-wrap.is-open .evr-close_wrap,\n.popup_outer_wrap .popup.is-open .evr-close_wrap {\n opacity: 1;\n transition: opacity 0.6s 0.3s; }\n\n.divi-area-wrap.close-alt .evr-close,\n.popup_outer_wrap .popup.close-alt .evr-close {\n box-shadow: none !important;\n background: transparent !important; }\n\n.divi-area-wrap .et_pb_contact_select,\n.popup_outer_wrap .popup .et_pb_contact_select {\n -moz-appearance: textfield; }\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./gulp/sass/front.scss"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;;AAEd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,uBAAuB;AACvB;AACA;AACA,4BAA4B;AAC5B;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA,wFAAwF;AACxF;AACA;AACA,4CAA4C;AAC5C;AACA;AACA;AACA;AACA,kBAAkB;;AAElB;AACA,wBAAwB;AACxB;AACA;AACA,cAAc;;AAEd;AACA;AACA,qBAAqB;;AAErB;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA,kBAAkB;;AAElB;AACA,qBAAqB;;AAErB;AACA;AACA;AACA,4BAA4B;;AAE5B;AACA;AACA,2BAA2B;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA,qCAAqC;;AAErC;AACA;AACA,6BAA6B","file":"css/front.css","sourcesContent":["/**\n * Divi Areas Pro - styles for front-end\n */\n.evr_fb_popup_modal {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.55);\n z-index: 99; }\n\n.popup_outer_wrap {\n position: fixed;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n top: 50%;\n width: 90%;\n z-index: 100;\n min-width: 320px;\n pointer-events: none; }\n .popup_outer_wrap.popup_full_width {\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n width: 100%;\n left: 0; }\n .popup_outer_wrap.popup_full_width > .popup {\n overflow-x: auto; }\n .popup_outer_wrap.popup_full_height {\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n height: 100%;\n top: 0; }\n .popup_outer_wrap.popup_full_height > .popup {\n overflow-y: auto; }\n .popup_outer_wrap.popup_full_width.popup_full_height {\n -webkit-transform: none;\n transform: none; }\n .popup_outer_wrap.popup_full_width.popup_full_height > .popup {\n overflow: auto; }\n .popup_outer_wrap .popup {\n position: relative;\n background-repeat: no-repeat;\n background-position: center center;\n margin: auto;\n transition: all 0.3s;\n max-height: 100%;\n pointer-events: all; }\n .popup_outer_wrap .popup.with-shadow {\n box-shadow: 0 3px 10px -1px rgba(0, 0, 0, 0.3), 0 2px 50px 2px rgba(0, 0, 0, 0.2); }\n .popup_outer_wrap .popup.with-loader {\n background-image: url(../img/spin.gif), radial-gradient(circle at center, #FFF 65%, #fff0 66%);\n background-size: 32px 32px, 48px 48px; }\n .popup_outer_wrap .popup .et_pb_row:after,\n .popup_outer_wrap .popup .et_pb_row_inner:after,\n .popup_outer_wrap .popup .et_pb_slides:after,\n .popup_outer_wrap .popup .clearfix:after {\n content: ''; }\n\n.admin-bar .popup_outer_wrap {\n top: calc(50% + 16px); }\n .admin-bar .popup_outer_wrap.popup_full_height {\n height: calc(100% - 52px);\n top: 42px; }\n\n/* Used in front-end when a popup is displayed to a visitor */\n#page-container #main-content {\n transition: all 0s; }\n\nbody.evr_popup_open {\n overflow: hidden; }\n body.evr_popup_open #page-container #main-content {\n transition: all 0.5s 1s;\n -webkit-filter: blur(2px);\n filter: blur(2px);\n opacity: 0.75; }\n\n.divi-area-wrap {\n position: relative; }\n\n/* Styles that are shared between Popups for Divi and Divi Areas Pro */\n.divi-area-wrap.with-close .evr-close_wrap,\n.popup_outer_wrap .popup.with-close .evr-close_wrap {\n display: block !important; }\n\n.divi-area-wrap.no-close .evr-close_wrap,\n.popup_outer_wrap .popup.no-close .evr-close_wrap {\n display: none !important; }\n\n.divi-area-wrap .evr-close_wrap,\n.popup_outer_wrap .popup .evr-close_wrap {\n position: absolute;\n right: 0;\n top: 0;\n opacity: 0.2;\n z-index: 100;\n text-align: right;\n transition: opacity 0.6s 0.3s; }\n\n.divi-area-wrap .evr-close,\n.popup_outer_wrap .popup .evr-close {\n display: block;\n box-sizing: content-box;\n width: 30px;\n height: 30px;\n line-height: 30px;\n text-align: center;\n font-family: \"Courier New\", monospace;\n font-size: 20px;\n font-weight: bold;\n cursor: pointer;\n color: #333;\n background: #fff2;\n opacity: 0.7;\n box-shadow: 0 0 3px 1px #00000008;\n transition: all 0.3s; }\n .divi-area-wrap .evr-close:hover, .divi-area-wrap .evr-close:focus, .divi-area-wrap .evr-close:active,\n .popup_outer_wrap .popup .evr-close:hover,\n .popup_outer_wrap .popup .evr-close:focus,\n .popup_outer_wrap .popup .evr-close:active {\n color: #000;\n background: #FFF;\n opacity: 1;\n box-shadow: 0 0 4px 0 #0002, 0 0 3px 1px #0001;\n -webkit-transform: scale(1.1);\n transform: scale(1.1); }\n\n.divi-area-wrap.dark .evr-close,\n.popup_outer_wrap .popup.dark .evr-close {\n color: #EEE;\n background: #0002;\n box-shadow: 0 0 0 1px #FFFFFF08;\n text-shadow: 0px 0px 1px #000,0px 0px 3px #000A; }\n .divi-area-wrap.dark .evr-close:hover, .divi-area-wrap.dark .evr-close:focus, .divi-area-wrap.dark .evr-close:active,\n .popup_outer_wrap .popup.dark .evr-close:hover,\n .popup_outer_wrap .popup.dark .evr-close:focus,\n .popup_outer_wrap .popup.dark .evr-close:active {\n color: #FFF;\n background: #2b2b2b;\n box-shadow: 0 0 1px 1px #FFF3; }\n\n.divi-area-wrap.is-open .evr-close_wrap,\n.popup_outer_wrap .popup.is-open .evr-close_wrap {\n opacity: 1;\n transition: opacity 0.6s 0.3s; }\n\n.divi-area-wrap.close-alt .evr-close,\n.popup_outer_wrap .popup.close-alt .evr-close {\n box-shadow: none !important;\n background: transparent !important; }\n\n.divi-area-wrap .et_pb_contact_select,\n.popup_outer_wrap .popup .et_pb_contact_select {\n -moz-appearance: textfield; }\n"],"sourceRoot":""}
js/front.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function a(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(o,i,function(t){return e[t]}.bind(null,i));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=3)}([function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContext=n,t.getOption=r,t.findTriggers=function(e,t){var a,o,i,n=[];if(!e.ids)return[];function r(e,t){var a;for(a=0;a<t.length;a++)n.push({id:e,item:jQuery(t[a])})}for(a=0;a<e.ids.length;a++)if(r(i=e.ids[a].replace(/^#/,""),jQuery('[href="#'+i+'"]',t)),e.linkPrefix&&r(i,jQuery('[href="#'+e.linkPrefix+i+'"]',t)),e.classPrefix&&r(i,jQuery("."+e.classPrefix+i,t)),e.dataAttrib&&r(i,jQuery("["+e.dataAttrib+'="'+i+'"]',t)),window.et_link_options_data)for(o=et_link_options_data.length-1;o>=0;o--)if("#"+i===et_link_options_data[o].url){var s=jQuery(".et_pb_module."+et_link_options_data[o].class,t);r(i,s),s.off("click"),et_link_options_data.splice(o,1)}return n},t.debug=s,t.error=p,t.toBool=function(e,t){void 0===t&&(t=!0);if(void 0===e||null===e)return!!t;if(!0===e||!1===e)return e;"string"==typeof e&&(e=e.toLowerCase());if(0===e||"0"===e||"n"===e[0]||"f"===e[0]||"off"===e)return!1;if(1===e||"1"===e||"y"===e[0]||"t"===e[0]||"on"===e)return!0;return!!t},t.setLocalData=function(e,t,a){(!a||isNaN(a)||a<1)&&(a=525600);if(window.localStorage){var o=new Date;o=o.setMinutes(o.getMinutes()+a),localStorage.setItem("_da_"+e,o+":"+t)}else l("_da_"+e,t,a)},t.getLocalData=function(e){if(window.localStorage){var t=localStorage.getItem("_da_"+e);if(!t)return!1;var a=t.split(":"),o=parseInt(a.shift()),i=a.join(":");return o>new Date?i:(localStorage.removeItem("_da_"+e),!1)}return d("_da_"+e)},t.setCookie=l,t.getCookie=d,t.addObservers=function(e,t,a,o){var r=window.MutationObserver||window.WebKitMutationObserver,s=window.ResizeObserver||window.WebKitResizeObserver,p=window.addEventListener,l=n();if(r){var d=new r(function(e,a){(e[0].addedNodes.length||e[0].removedNodes.length)&&t()});d.observe(l[0],{childList:!0,subtree:!0})}else p&&(l.addEventListener("DOMNodeInserted",t,!1),l.addEventListener("DOMNodeRemoved",t,!1));s?i[e]=new s(a):window.setInterval(a,750);jQuery(window).resize(a),jQuery(document).on("keyup",o)},t.addAdditionalResizeObserver=function(e,t){i[e]&&!t.data("observe-resize")&&(i[e].observe(t[0]),t.data("observe-resize",!0))},t.removeAdditionalResizeObserver=function(e,t){i[e]&&t.data("observe-resize")&&(i[e].unobserve(t[0]),t.data("observe-resize",!1))};var o=null,i={};function n(){return o}function r(e){return DiviPopupData[e]}function s(){r("debug")&&console.log.apply(this,arguments)}function p(){console.error.apply(this,arguments)}function l(e,t,a){var o=escape(t);if(a){var i=new Date;i.setMinutes(i.getMinutes()+a),o+="; expires="+i.toUTCString()}document.cookie=e+"="+o+"; path=/"}function d(e){var t,a,o,i=document.cookie.split(";");for(t=0;t<i.length;t++)if(a=i[t].substr(0,i[t].indexOf("=")),o=i[t].substr(i[t].indexOf("=")+1),(a=a.replace(/^\s+|\s+$/g,""))===e)return unescape(o);return!1}!function(){var e={popupSelector:".et_pb_section.popup",fullWidthClass:"popup_full_width",fullHeightClass:"popup_full_height",openPopupClass:"evr_popup_open",overlayClass:"evr_fb_popup_modal",modalIndicatorClass:"is-modal",exitIndicatorClass:"on-exit",activePopupClass:"is-open",noCloseClass:"no-close",altCloseClass:"close-alt",notMobileClass:"not-mobile",notTabletClass:"not-tablet",notDesktopClass:"not-desktop",withCloseClass:"with-close",singletonClass:"single",darkModeClass:"dark",noShadowClass:"with-shadow",closeButtonClass:"evr-close",defaultShowCloseButton:!0,idAttrib:"data-popup",triggerClassPrefix:"show-popup-",baseContext:"body",triggerCloseClass:"close",zIndex:1e5,onExitDelay:2e3,animateSpeed:300,debug:!1,initializeOnEvent:"et_pb_after_init_modules"};if(window.DiviPopupData)for(var t in e)void 0===DiviPopupData[t]&&(DiviPopupData[t]=e[t]),DiviPopupData[t].replace&&(DiviPopupData[t]=DiviPopupData[t].replace(/^[\s\xA0]+|[\s\xA0]+$/g,""));else window.DiviPopupData=e;DiviPopupData.zIndex=parseInt(DiviPopupData.zIndex),DiviPopupData.onExitDelay=parseInt(DiviPopupData.onExitDelay),DiviPopupData.animateSpeed=parseInt(DiviPopupData.animateSpeed),DiviPopupData.debug=!!DiviPopupData.debug,DiviPopupData.defaultShowCloseButton=!!DiviPopupData.defaultShowCloseButton,(!DiviPopupData.triggerClassPrefix||DiviPopupData.triggerClassPrefix.length<3)&&(DiviPopupData.triggerClassPrefix=!1),"body"===DiviPopupData.baseContext&&1===jQuery("body.et_divi_theme #page-container").length&&(s("Divi theme detected. Use #page-container instead of body"),DiviPopupData.baseContext="#page-container"),"body"===DiviPopupData.baseContext||jQuery(DiviPopupData.baseContext).length||(DiviPopupData.baseContext="body"),jQuery(document).trigger("DiviPopup:OptionsReady")}(),(o=jQuery(r("baseContext"))).length||p('Could not find the popup container "'+r("baseContext")+'"')},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getId=p,t.getRealId=l,t.addAltId=function(e,t){if(e===t)return;t=p(t),null===e?delete s[t]:s[t]=e},t.getArea=d,t.registerArea=function(e,t,a){void 0===r[e]&&(r[e]=[]);if(!(t=p(t)))return!1;var s=d(t);if(s)return s;var l=jQuery(t);if(!l.length)return!1;a&&(l=l.filter(a));if(!l||1!==l.length)return!1;"inline"===e?l.attr("data-visible","yes"):(l.detach(),l.attr("data-visible","no"));l.addClass(e),l.data("_id",t),l.data("_type",e),(0,o.attachCloseButton)(l),jQuery(document).trigger("DiviArea:Init",l),l.trigger("DiviArea:Init"),"popup"===e&&(jQuery(document).trigger("DiviPopup:Init",l),l.trigger("DiviPopup:Init"));n[t]=l,l.hasClass((0,i.getOption)("notMobileClass"))?l.data("on-mobile",!1):l.data("on-mobile",(0,i.toBool)(l.data("on-mobile")));l.hasClass((0,i.getOption)("notTabletClass"))?l.data("on-tablet",!1):l.data("on-tablet",(0,i.toBool)(l.data("on-tablet")));l.hasClass((0,i.getOption)("notDesktopClass"))?l.data("on-desktop",!1):l.data("on-desktop",(0,i.toBool)(l.data("on-desktop")));l.hasClass((0,i.getOption)("withCloseClass"))?l.data("show-close",!0):l.hasClass((0,i.getOption)("noCloseClass"))?l.data("show-close",!1):l.data("show-close",(0,i.toBool)(l.data("show-close")));l.hasClass((0,i.getOption)("altCloseClass"))?l.data("close-alt",!0):l.data("close-alt",(0,i.toBool)(l.data("close-alt"),!1));l.hasClass((0,i.getOption)("modalIndicatorClass"))?l.data("is-modal",!0):l.data("is-modal",(0,i.toBool)(l.data("is-modal"),!1));l.hasClass((0,i.getOption)("exitIndicatorClass"))?l.data("trigger-exit",!0):l.data("trigger-exit",(0,i.toBool)(l.data("trigger-exit"),!1));l.hasClass((0,i.getOption)("noShadowClass"))?l.data("no-shadow",!0):l.data("no-shadow",(0,i.toBool)(l.data("no-shadow"),!1));l.hasClass((0,i.getOption)("darkModeClass"))?l.data("dark-mode",!0):l.data("dark-mode",(0,i.toBool)(l.data("dark-mode"),!1));l.hasClass((0,i.getOption)("singletonClass"))?l.data("singleton",!0):l.data("singleton",(0,i.toBool)(l.data("singleton"),!1));return(0,o.configArea)(l),(0,i.debug)("[+] Registered new area:",t),l},t.getAllIds=function(e){var t=[];for(var a in n){var o=n[a];e===o.data("_type")&&t.push(a)}for(var i in s){var r=s[i],p=n[r];e===p.data("_type")&&t.push(i)}return t},t.loopAllAreas=function(e,t){for(var a in n){var o=n[a];e===o.data("_type")&&t(o,a)}},t.countVisibleAreas=function(e){if(void 0===r[e])return 0;return r[e].length},t.addVisibleArea=function(e,t){void 0===r[e]&&(r[e]=[]);r[e].push(t)},t.removeVisibleArea=function(e,t){if(void 0===r[e])return!1;for(var a=r[e].length-1;a>=0;a--){var o=r[e][a];t===o.data("_id")&&r[e].splice(a,1)}},t.getVisibleArea=function(e,t){if(void 0===r[e])return!1;if(void 0===t||-1===t)return r[e][r[e].length-1];if(t)for(var a=0;a<r[e].length;a++)if(t===r[e][a].data("_id"))return r[e][a];return!1},t.loopVisibleAreas=function(e,t){if(void 0===r[e])return!1;for(var a=0;a<r[e].length;a++){var o=r[e][a];t(o,a)}};var o=a(2),i=a(0),n={},r={},s={};function p(e,t){if(e instanceof jQuery){if(e.data("_id"))return e.data("_id");e=e.attr("id")}if(!e)return"";if("#"!==e[0]&&(e="#"+e),t){var a=new RegExp("^#"+t+":");e=e.replace(a,"#",e)}return e?e.toString():""}function l(e){var t=p(e),a=p(s[t]);return void 0!==n[t]?t:void 0!==n[a]?a:""}function d(e){if(e instanceof jQuery)return!!e.data("_id")&&e;var t=l(e);return!!t&&n[t]}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.attachCloseButton=function(e){var t=(0,n.getOption)("closeButtonClass"),a=t+"_wrap",o=(0,n.getOption)("noCloseClass"),i=(0,n.getOption)("withCloseClass");if(e.find("."+a).length)return;var r=jQuery("<span />").addClass(a),s=jQuery('<a href="#close" />').addClass(t);s.html("&times;"),s.appendTo(r),r.appendTo(e),e.hasClass(o)||e.hasClass(i)||((0,n.getOption)("defaultShowCloseButton")?e.addClass(i):e.addClass(o));s.on("click",function(){jQuery(document).trigger("DiviArea:Close",e),e.trigger("DiviArea:Close")}),(0,n.debug)("-> Added a close button to area",e.attr("data-id"))},t.checkViewport=function(e){var t=!0,a=jQuery(window).innerWidth();t=a<768?!!e.data("on-mobile"):a<981?!!e.data("on-tablet"):!!e.data("on-desktop");return t},t.triggerLazyLoad=function(e){jQuery("body").trigger("post-load")},t.triggerAnimations=function(e){void 0!==window.et_reinit_waypoint_modules&&window.et_reinit_waypoint_modules()},t.initRecaptcha=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)e.find("form").each(function(){var e=jQuery(this),t=e.find("[data-sitekey].g-recaptcha");if(t.length&&!e.find('iframe[src*="/recaptcha/"]').length){var a={sitekey:t.attr("data-sitekey"),type:t.attr("data-type"),size:t.attr("data-size"),theme:t.attr("data-theme"),badge:t.attr("data-badge"),tabindex:t.attr("data-tabindex")},o=t.attr("data-callback"),i=t.attr("data-expired-callback");o&&"function"==typeof window[o]&&(a.callback=window[o]),i&&"function"==typeof window[i]&&(a["expired-callback"]=window[i]);var n=grecaptcha.render(t[0],a);window.recaptchaWidgets&&recaptchaWidgets.push(n)}});else{var t=jQuery('script[src*="google.com/recaptcha/api.js"]').attr("src"),a=t.replace(/^.*render=(.*)$/,"$1").split("&")[0];grecaptcha.execute(a,{action:"homepage"}).then(function(t){e.find('form [name="g-recaptcha-response]').val(t)})}},t.configArea=function(e,t,a){var r,s,p=(0,i.getArea)(e);if(!p||1!==p.length)return;if(r=p.data("_id"),"object"===(void 0===t?"undefined":o(t))){for(var l in t)t.hasOwnProperty(l)&&DiviPopup.config(p,l,t[l]);return}if(void 0!==t){if("string"!=typeof t)return;switch(t=t.trim().toLowerCase().replace("-","")){case"notmobile":s=(0,n.toBool)(p.data("on-mobile")),p.data("on-mobile",!(0,n.toBool)(a,!s));break;case"onmobile":s=(0,n.toBool)(p.data("on-mobile")),p.data("on-mobile",(0,n.toBool)(a,s));break;case"nottablet":s=(0,n.toBool)(p.data("on-tablet")),p.data("on-tablet",!(0,n.toBool)(a,!s));break;case"ontablet":s=(0,n.toBool)(p.data("on-tablet")),p.data("on-tablet",(0,n.toBool)(a,s));break;case"notdesktop":s=(0,n.toBool)(p.data("on-desktop")),p.data("on-desktop",!(0,n.toBool)(a,!s));break;case"ondesktop":s=(0,n.toBool)(p.data("on-desktop")),p.data("on-desktop",(0,n.toBool)(a,s));break;case"triggerexit":p.data("trigger-exit",(0,n.toBool)(a));break;case"hideclose":p.data("show-close",!(0,n.toBool)(a));break;case"showclose":p.data("show-close",(0,n.toBool)(a));break;case"closealt":p.data("close-alt",(0,n.toBool)(a));break;case"ismodal":p.data("is-modal",(0,n.toBool)(a));break;case"notmodal":p.data("is-modal",!(0,n.toBool)(a));break;case"shadow":p.data("no-shadow",(0,n.toBool)(a));break;case"noshadow":p.data("no-shadow",!(0,n.toBool)(a));break;case"dark":p.data("dark-mode",(0,n.toBool)(a));break;case"width":p.data("width",a);break;case"singleton":p.data("singleton",(0,n.toBool)(a));break;case"ids":case"alternateid":Array.isArray(a)?a.forEach(function(e){return(0,i.addAltId)(r,e)}):(0,i.addAltId)(r,a)}}p.data("on-mobile")?p.removeClass((0,n.getOption)("notMobileClass")):p.addClass((0,n.getOption)("notMobileClass"));p.data("on-tablet")?p.removeClass((0,n.getOption)("notTabletClass")):p.addClass((0,n.getOption)("notTabletClass"));p.data("on-desktop")?p.removeClass((0,n.getOption)("notDesktopClass")):p.addClass((0,n.getOption)("notDesktopClass"));p.data("trigger-exit")?p.addClass((0,n.getOption)("exitIndicatorClass")):p.removeClass((0,n.getOption)("exitIndicatorClass"));p.data("show-close")?(p.addClass((0,n.getOption)("withCloseClass")),p.removeClass((0,n.getOption)("noCloseClass"))):(p.addClass((0,n.getOption)("noCloseClass")),p.removeClass((0,n.getOption)("withCloseClass")));p.data("close-alt")?p.addClass((0,n.getOption)("altCloseClass")):p.removeClass((0,n.getOption)("altCloseClass"));p.data("is-modal")?p.addClass((0,n.getOption)("modalIndicatorClass")):p.removeClass((0,n.getOption)("modalIndicatorClass"));p.data("no-shadow")?p.addClass((0,n.getOption)("noShadowClass")):p.removeClass((0,n.getOption)("noShadowClass"));p.data("dark-mode")?p.addClass((0,n.getOption)("darkModeClass")):p.removeClass((0,n.getOption)("darkModeClass"));p.data("singleton")?p.addClass((0,n.getOption)("singletonClass")):p.removeClass((0,n.getOption)("singletonClass"))};var i=a(1),n=a(0)},function(e,t,a){a(4),e.exports=a(8)},function(e,t,a){"use strict";var o=function(e){return e&&e.__esModule?e:{default:e}}(a(5));window.DiviPopup=new o.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var o=t[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,a,o){return a&&e(t.prototype,a),o&&e(t,o),t}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=a(6),r=a(1),s=a(2),p=a(7),l=a(0);function d(){(0,l.debug)("Initialize popups-for-divi..."),jQuery(document).trigger("DiviPopup:Load");var e=y,t=g,a=f;(0,l.addObservers)("popup",e,t,a),window.setTimeout(function(){jQuery(window).on("mouseleave",c)},(0,l.getOption)("onExitDelay")),e(),jQuery(document).trigger("DiviPopup:Ready")}function u(){if((0,r.countVisibleAreas)("popup")){(0,r.loopAllAreas)("popup",function(e){e.hasClass((0,l.getOption)("activePopupClass"))&&(e.removeClass((0,l.getOption)("activePopupClass")),jQuery(document).trigger("DiviPopup:Blur",e),e.trigger("DiviPopup:Blur"))}),(0,r.loopVisibleAreas)("popup",function(e,t){var a=e.parent();a.hasClass((0,l.getOption)("popupWrapperClass"))||((a=jQuery("<div/>")).appendTo((0,l.getContext)()),a.addClass((0,l.getOption)("popupWrapperClass")),e.detach().appendTo(a)),a.css({zIndex:(0,l.getOption)("zIndex")+t})});var e=(0,r.getVisibleArea)("popup");"yes"!==e.attr("data-visible")&&(e.attr("data-visible","yes"),(0,n.animatePopup)(e,function(e){e.fadeIn((0,l.getOption)("animateSpeed"))}),jQuery(document).trigger("DiviPopup:Show",e),e.trigger("DiviPopup:Show")),e.addClass((0,l.getOption)("activePopupClass")),jQuery(document).trigger("DiviPopup:Focus",e),e.trigger("DiviPopup:Focus"),(0,l.addAdditionalResizeObserver)("popup",e),window.setTimeout(g,50),DiviPopup.showOverlay()}}function c(e){var t;"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&"select"!==e.target.tagName.toLowerCase()&&(t=Math.max(document.documentElement.clientWidth,window.innerWidth||0),e.clientX>=t-50||e.clientY>=50||e.toElement||e.relatedTarget||((0,l.debug)("Popup exit-intent trigger"),(0,r.loopAllAreas)("popup",function(e,t){(0,l.debug)("Popup",(0,l.getOption)("exitIndicatorClass"),e),e.hasClass((0,l.getOption)("exitIndicatorClass"))&&DiviPopup.openPopup(t)})))}function g(){var e=parseInt(jQuery("html").css("marginTop")),t=jQuery(window).innerWidth(),a=jQuery(window).innerHeight()-e;(0,r.loopVisibleAreas)("popup",function(e){var o,i,n=e.parent();e.data("width")||(e.hasClass("et_pb_section")?e.data("width",e.outerWidth()):e.data("width",e.children(".et_pb_section").first().outerWidth()),e.attr("width",e.data("width"))),e.css({maxWidth:e.data("width")}),i=isNaN(e[0].scrollHeight)?e.innerHeight:e[0].scrollHeight,o=isNaN(e[0].scrollWidth)?e.innerWidth:e[0].scrollWidth,t<o+20?n.addClass((0,l.getOption)("fullWidthClass")):n.removeClass((0,l.getOption)("fullWidthClass")),a<i+20?n.addClass((0,l.getOption)("fullHeightClass")):n.removeClass((0,l.getOption)("fullHeightClass"))})}function f(e){if(27===e.keyCode)return!(0,r.countVisibleAreas)("popup")||((0,l.debug)("Handle [ESC] key: Close active popup"),DiviPopup.closePopup(),!1)}function v(){if(!(0,r.countVisibleAreas)("popup"))return!1;jQuery(document).trigger("DiviPopup:OverlayClick");var e=(0,r.getVisibleArea)("popup");if(e.length&&e.hasClass((0,l.getOption)("modalIndicatorClass")))return!1;DiviPopup.closePopup()}function h(e){return e.preventDefault(),e.stopPropagation(),(0,l.debug)("Click on popup close"),DiviPopup.closePopup(),!1}function b(e){var t=jQuery(this);return(0,l.debug)("Open popup: "+t.attr("data-popup-id")),e.preventDefault(),e.stopPropagation(),DiviPopup.openPopup(t.attr("data-popup-id")),!1}function m(e,t){var a=[],o=(e=jQuery(e)).data("_id"),n=o.replace(/^#/,""),s=[];function p(e){"object"===(void 0===e?"undefined":i(e))&&(e=e.data("_id")),e&&e.length&&("#"!==e[0]&&(e="#"+e),a.push(e))}(0,r.loopVisibleAreas)("popup",function(e){e.hasClass((0,l.getOption)("singletonClass"))?a.push(e.data("_id")):s.push(e.data("_id"))}),t?(a.push(o),o=!1):e.hasClass((0,l.getOption)("singletonClass"))&&(a=s,o=!1),t?(jQuery(document).triggerHandler("DiviPopup:BeforeHide",[e,s,p]),jQuery(document).triggerHandler("DiviPopup:BeforeHide:"+n,[e,s,p])):(jQuery(document).triggerHandler("DiviPopup:BeforeShow",[e,s,p]),jQuery(document).triggerHandler("DiviPopup:BeforeShow:"+e.attr("key"),[e,s,p])),a.length&&(0,l.debug)("Hide popups",a),(0,r.loopVisibleAreas)("popup",function(e){var t=e.data("_id");-1!==a.indexOf(t)&&function(e){e=jQuery(e),jQuery(document).trigger("DiviPopup:Hide",e),e.trigger("DiviPopup:Hide"),e.find("."+(0,l.getOption)("closeButtonClass")).off(".popup"),e.find("div ."+(0,l.getOption)("triggerCloseClass")).off(".popup"),e.find("div .popup-trigger").off(".popup"),(0,l.removeAdditionalResizeObserver)("popup",e);var t=e.parent();e.detach().hide().attr("data-visible","no"),t.hasClass((0,l.getOption)("popupWrapperClass"))&&t.remove();(0,r.removeVisibleArea)("popup",e.data("_id"))}(e)}),o&&(0,r.removeVisibleArea)("popup",o)}function C(e,t){var a,o,i;if(a=(0,r.getId)(t)){if(e.attr("data-popup-id"))return e.off(".popup"),e.on("click.popup",b),void(0,l.debug)("-> Trigger already linked with popup: "+i,e);o=DiviPopup.register(a,{selector:(0,l.getOption)("popupSelector")}),i=a.toLowerCase(),o?(e.attr("data-popup-id",i),e.addClass("popup-trigger"),e.on("click.popup",b),(0,l.debug)("-> Trigger linked to popup: "+i,e)):(0,l.debug)("-> Trigger has no popup",e)}else(0,l.debug)("-> Not a popup trigger",e)}function y(e){var t,a,o;for((0,l.debug)(" -- Activate triggers --"),void 0===e&&(e=(0,l.getContext)()),jQuery((0,l.getOption)("popupSelector"),e).each(function(){(0,l.debug)("Found a popup-selector, try to register it",this),DiviPopup.register(jQuery(this).attr("id"),{selector:(0,l.getOption)("popupSelector")})}),o=(0,l.findTriggers)({ids:(0,r.getAllIds)("popup"),linkPrefix:"popup:",dataAttrib:(0,l.getOption)("idAttrib"),classPrefix:(0,l.getOption)("triggerClassPrefix")},e),t=0;t<o.length;t++)C((a=o[t]).item,a.id)}var w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,l.debug)("Load popups-for-divi..."),(0,l.getOption)("initializeOnEvent")?jQuery(window,document).on((0,l.getOption)("initializeOnEvent"),function(){window.setTimeout(d,1)}):window.setTimeout(d,1)}return o(e,[{key:"register",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(0,r.getArea)(e);if(a)return a;var o=(0,r.registerArea)("popup",e,t.selector);return!(!o||!o.length)&&((0,n.initializePopupAnimation)(o),Object.keys(t).forEach(function(e){(0,s.configArea)(o,e,t[e])}),o)}},{key:"config",value:function(e,t,a){(0,s.configArea)(e,t,a)}},{key:"openPopup",value:function(e){var t=(0,r.getArea)(e);return t&&t.length?(0,s.checkViewport)(t)?(m(t),t.removeClass((0,l.getOption)("exitIndicatorClass")),(0,l.debug)("Show popup and set event handlers:",e),function(e){e=jQuery(e),(0,r.addVisibleArea)("popup",e),y(e),e.find("div ."+(0,l.getOption)("triggerCloseClass")).off(".popup"),e.find("div ."+(0,l.getOption)("triggerCloseClass")).on("click.popup",h),e.find("div .popup-trigger").off(".popup"),e.find("div .popup-trigger").on("click.popup",b),e.hasClass((0,l.getOption)("withCloseClass"))&&(e.find("."+(0,l.getOption)("closeButtonClass")).off(".popup"),e.find("."+(0,l.getOption)("closeButtonClass")).on("click.popup",h))}(t),u(),window.setTimeout(function(){(0,s.triggerLazyLoad)(t),(0,s.triggerAnimations)(t),(0,s.initRecaptcha)(t)},50),!0):((0,l.debug)("Do not trigger popup on this device:",e),!1):((0,l.error)("Could not find a popup with the ID:",e),!1)}},{key:"closePopup",value:function(e){var t;(0,r.countVisibleAreas)("popup")&&(t=e?(0,r.getVisibleArea)("popup",(0,r.getRealId)(e)):(0,r.getVisibleArea)("popup"))&&((0,l.debug)("Close popup and unlink event handlers:",t.data("_id")),m(t,!0)),(0,r.countVisibleAreas)("popup")?u():DiviPopup.hideOverlay()}},{key:"showOverlay",value:function(){(0,p.showOverlay)(v)}},{key:"hideOverlay",value:function(){(0,p.hideOverlay)()}}]),e}();t.default=w},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={};function i(e,t,a){a=a||e.data("et_waypoint_max_instances")||1;var o=e.data("et_waypoint")||[];if(o.length<a){var i=e.waypoint(t);i&&i.length>0&&(o.push(i[0]),e.data("et_waypoint",o))}else for(var n=0;n<o.length;n++)o[n].context.refresh()}t.animatePopup=function(e,t){return!e.is(":visible")&&(jQuery.fn.waypoint?"yes"===et_pb_custom.ignore_waypoints?t(e):function(e){var t=e.attr("data-animation"),a=!1;return!!t&&(!!(a=o[t])&&(jQuery("body").css("overflow-x","hidden"),jQuery("#page-container").css("overflow-y","hidden"),e.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}),void i(e,{offset:"100%",handler:function(){!function(e){var t=e.attr("data-animation-style"),a=e.attr("data-animation-repeat"),o=e.attr("data-animation-duration"),i=e.attr("data-animation-delay"),n=e.attr("data-animation-intensity"),r=e.attr("data-animation-starting-opacity"),s=e.attr("data-animation-speed-curve");!function(e){for(var t=[],a=e.get(0).attributes,o=0;o<a.length;o++)"data-animation-"===a[o].name.substring(0,15)&&t.push(a[o].name);jQuery.each(t,function(t,a){e.removeAttr(a)})}(e);var p=isNaN(parseInt(r))?0:.01*parseInt(r);-1===jQuery.inArray(s,["linear","ease","ease-in","ease-out","ease-in-out"])&&(s="ease-in-out"),e.css({"animation-duration":o,"animation-delay":i,opacity:p,"animation-timing-function":s});for(var l={},d=isNaN(parseInt(n))?50:parseInt(n),u=["slide","zoom","flip","fold","roll"],c=!1,g=!1,f=0;f<u.length;f++){var v=u[f];if(t&&t.substr(0,v.length)===v){c=v,""!==(g=t.substr(v.length,t.length))&&(g=g.toLowerCase());break}}!1!==c&&!1!==g&&(l=function(e,t,a){var o={};switch(e){case"slide":switch(t){case"top":o={transform:"translate3d(0, "+(i=-2*a)+"%, 0)"};break;case"right":o={transform:"translate3d("+(i=2*a)+"%, 0, 0)"};break;case"bottom":o={transform:"translate3d(0, "+(i=2*a)+"%, 0)"};break;case"left":var i=-2*a;o={transform:"translate3d("+i+"%, 0, 0)"};break;default:o={transform:"scale3d("+(n=.01*(100-a))+", "+n+", "+n+")"}}break;case"zoom":var n=.01*(100-a);switch(t){case"top":case"right":case"bottom":case"left":default:o={transform:"scale3d("+n+", "+n+", "+n+")"}}break;case"flip":switch(t){case"right":o={transform:"perspective(2000px) rotateY("+(r=Math.ceil(.9*a))+"deg)"};break;case"left":o={transform:"perspective(2000px) rotateY("+(r=-1*Math.ceil(.9*a))+"deg)"};break;case"top":default:o={transform:"perspective(2000px) rotateX("+(r=Math.ceil(.9*a))+"deg)"};break;case"bottom":o={transform:"perspective(2000px) rotateX("+(r=-1*Math.ceil(.9*a))+"deg)"}}break;case"fold":switch(t){case"top":o={transform:"perspective(2000px) rotateX("+(r=-1*Math.ceil(.9*a))+"deg)"};break;case"bottom":o={transform:"perspective(2000px) rotateX("+(r=Math.ceil(.9*a))+"deg)"};break;case"left":o={transform:"perspective(2000px) rotateY("+(r=Math.ceil(.9*a))+"deg)"};break;case"right":default:o={transform:"perspective(2000px) rotateY("+(r=-1*Math.ceil(.9*a))+"deg)"}}break;case"roll":switch(t){case"right":case"bottom":o={transform:"rotateZ("+(r=-1*Math.ceil(3.6*a))+"deg)"};break;case"top":case"left":o={transform:"rotateZ("+(r=Math.ceil(3.6*a))+"deg)"};break;default:var r=Math.ceil(3.6*a);o={transform:"rotateZ("+r+"deg)"}}}return o}(c,g,d)),jQuery.isEmptyObject(l)||e.css(l),e.addClass("et_animated"),e.addClass(t),e.addClass(a)}(jQuery(this.element))}})))}(e)?(e.show(),e.css({opacity:0}),void window.setTimeout(function(){e.css({opacity:""}),i(e,{offset:"100%",handler:function(){e.addClass("et-animated")}},2)},10)):t(e):t(e))},t.initializePopupAnimation=function(e){if(!window.et_animation_data||!window.et_animation_data.length>0)return!1;e.removeClass("et-waypoint"),e.removeClass("et-animated");for(var t=0;t<et_animation_data.length;t++){var a=!1,i=et_animation_data[t];i&&i.class&&e.hasClass(i.class)&&i.style&&i.repeat&&i.duration&&i.delay&&i.intensity&&i.starting_opacity&&i.speed_curve&&(a=i.class,e.addClass("pfd-waypoint"),e.attr("data-animation",a),o[a]=i,et_animation_data[t].class=void 0)}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showOverlay=function(e){var t=(0,i.getOption)("zIndex");r=e,null===n&&((n=jQuery("<div />")).addClass((0,i.getOption)("overlayClass")),n.prependTo((0,i.getContext)()),n.on("click.popup",s));t+=Math.max(0,(0,o.countVisibleAreas)("popup")-1),(0,i.debug)("Show background overlay"),n.css({zIndex:t}),n.fadeIn((0,i.getOption)("animateSpeed"),function(){jQuery("body").addClass((0,i.getOption)("openPopupClass"))}),jQuery(document).trigger("DiviPopup:OverlayShow")},t.hideOverlay=function(){(0,i.debug)("Hide background overlay"),n.hide(),jQuery("body").removeClass((0,i.getOption)("openPopupClass")),jQuery(document).trigger("DiviPopup:OverlayHide")};var o=a(1),i=a(0),n=null,r=null;function s(e){return(0,i.debug)("Click on background overlay"),e.preventDefault(),e.stopPropagation(),r(),!1}},function(e,t,a){}]);
1
+ !function(e){var t={};function a(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(o,i,function(t){return e[t]}.bind(null,i));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=3)}([function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContext=n,t.getOption=r,t.findTriggers=function(e,t){var a,o,i,n=[];if(!e.ids)return[];function r(e,t){var a;for(a=0;a<t.length;a++)n.push({id:e,item:jQuery(t[a])})}for(a=0;a<e.ids.length;a++)if(r(i=e.ids[a].replace(/^#/,""),jQuery('[href="#'+i+'"]',t)),e.linkPrefix&&r(i,jQuery('[href="#'+e.linkPrefix+i+'"]',t)),e.classPrefix&&r(i,jQuery("."+e.classPrefix+i,t)),e.dataAttrib&&r(i,jQuery("["+e.dataAttrib+'="'+i+'"]',t)),window.et_link_options_data)for(o=et_link_options_data.length-1;o>=0;o--)if("#"+i===et_link_options_data[o].url){var s=jQuery(".et_pb_module."+et_link_options_data[o].class,t);r(i,s),s.off("click"),et_link_options_data.splice(o,1)}return n},t.debug=s,t.error=p,t.toBool=function(e,t){void 0===t&&(t=!0);if(void 0===e||null===e)return!!t;if(!0===e||!1===e)return e;"string"==typeof e&&(e=e.toLowerCase());if(0===e||"0"===e||"n"===e[0]||"f"===e[0]||"off"===e)return!1;if(1===e||"1"===e||"y"===e[0]||"t"===e[0]||"on"===e)return!0;return!!t},t.setLocalData=function(e,t,a){(!a||isNaN(a)||a<1)&&(a=525600);if(window.localStorage){var o=new Date;o=o.setMinutes(o.getMinutes()+a),localStorage.setItem("_da_"+e,o+":"+t)}else l("_da_"+e,t,a)},t.getLocalData=function(e){if(window.localStorage){var t=localStorage.getItem("_da_"+e);if(!t)return!1;var a=t.split(":"),o=parseInt(a.shift()),i=a.join(":");return o>new Date?i:(localStorage.removeItem("_da_"+e),!1)}return d("_da_"+e)},t.setCookie=l,t.getCookie=d,t.addObservers=function(e,t,a,o){var r=window.MutationObserver||window.WebKitMutationObserver,s=window.ResizeObserver||window.WebKitResizeObserver,p=window.addEventListener,l=n();if(r){var d=new r(function(e,a){(e[0].addedNodes.length||e[0].removedNodes.length)&&t()});d.observe(l[0],{childList:!0,subtree:!0})}else p&&(l.addEventListener("DOMNodeInserted",t,!1),l.addEventListener("DOMNodeRemoved",t,!1));s?i[e]=new s(a):jQuery(window).setInterval(a,750);jQuery(window).resize(a),jQuery(document).on("keyup",o)},t.addAdditionalResizeObserver=function(e,t){i[e]&&!t.data("observe-resize")&&(i[e].observe(t[0]),t.data("observe-resize",!0))},t.removeAdditionalResizeObserver=function(e,t){i[e]&&t.data("observe-resize")&&(i[e].unobserve(t[0]),t.data("observe-resize",!1))};var o=null,i={};function n(){return o}function r(e){return DiviPopupData[e]}function s(){r("debug")&&console.log.apply(this,arguments)}function p(){console.error.apply(this,arguments)}function l(e,t,a){var o=escape(t);if(a){var i=new Date;i.setMinutes(i.getMinutes()+a),o+="; expires="+i.toUTCString()}document.cookie=e+"="+o+"; path=/"}function d(e){var t,a,o,i=document.cookie.split(";");for(t=0;t<i.length;t++)if(a=i[t].substr(0,i[t].indexOf("=")),o=i[t].substr(i[t].indexOf("=")+1),(a=a.replace(/^\s+|\s+$/g,""))===e)return unescape(o);return!1}!function(){var e={popupSelector:".et_pb_section.popup",fullWidthClass:"popup_full_width",fullHeightClass:"popup_full_height",openPopupClass:"evr_popup_open",overlayClass:"evr_fb_popup_modal",modalIndicatorClass:"is-modal",exitIndicatorClass:"on-exit",activePopupClass:"is-open",noCloseClass:"no-close",altCloseClass:"close-alt",notMobileClass:"not-mobile",notTabletClass:"not-tablet",notDesktopClass:"not-desktop",withCloseClass:"with-close",singletonClass:"single",darkModeClass:"dark",noShadowClass:"with-shadow",closeButtonClass:"evr-close",defaultShowCloseButton:!0,idAttrib:"data-popup",triggerClassPrefix:"show-popup-",baseContext:"body",triggerCloseClass:"close",zIndex:1e5,onExitDelay:2e3,animateSpeed:300,debug:!1,initializeOnEvent:"et_pb_after_init_modules"};if(window.DiviPopupData)for(var t in e)void 0===DiviPopupData[t]&&(DiviPopupData[t]=e[t]),DiviPopupData[t].replace&&(DiviPopupData[t]=DiviPopupData[t].replace(/^[\s\xA0]+|[\s\xA0]+$/g,""));else window.DiviPopupData=e;DiviPopupData.zIndex=parseInt(DiviPopupData.zIndex),DiviPopupData.onExitDelay=parseInt(DiviPopupData.onExitDelay),DiviPopupData.animateSpeed=parseInt(DiviPopupData.animateSpeed),DiviPopupData.debug=!!DiviPopupData.debug,DiviPopupData.defaultShowCloseButton=!!DiviPopupData.defaultShowCloseButton,(!DiviPopupData.triggerClassPrefix||DiviPopupData.triggerClassPrefix.length<3)&&(DiviPopupData.triggerClassPrefix=!1),"body"===DiviPopupData.baseContext&&1===jQuery("body.et_divi_theme #page-container").length&&(s("Divi theme detected. Use #page-container instead of body"),DiviPopupData.baseContext="#page-container"),"body"===DiviPopupData.baseContext||jQuery(DiviPopupData.baseContext).length||(DiviPopupData.baseContext="body"),jQuery(document).trigger("DiviPopup:OptionsReady")}(),(o=jQuery(r("baseContext"))).length||p('Could not find the popup container "'+r("baseContext")+'"')},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getId=p,t.getRealId=l,t.addAltId=function(e,t){if(e===t)return;t=p(t),null===e?delete s[t]:s[t]=e},t.getArea=d,t.registerArea=function(e,t,a){void 0===r[e]&&(r[e]=[]);if(!(t=p(t)))return!1;var s=d(t);if(s)return s;var l=jQuery(t);if(!l.length)return!1;a&&(l=l.filter(a));if(!l||1!==l.length)return!1;"inline"===e?l.attr("data-visible","yes"):(l.detach(),l.attr("data-visible","no"));l.addClass(e),l.data("_id",t),l.data("_type",e),(0,o.attachCloseButton)(l),jQuery(document).trigger("DiviArea:Init",l),l.trigger("DiviArea:Init"),"popup"===e&&(jQuery(document).trigger("DiviPopup:Init",l),l.trigger("DiviPopup:Init"));n[t]=l,l.hasClass((0,i.getOption)("notMobileClass"))?l.data("on-mobile",!1):l.data("on-mobile",(0,i.toBool)(l.data("on-mobile")));l.hasClass((0,i.getOption)("notTabletClass"))?l.data("on-tablet",!1):l.data("on-tablet",(0,i.toBool)(l.data("on-tablet")));l.hasClass((0,i.getOption)("notDesktopClass"))?l.data("on-desktop",!1):l.data("on-desktop",(0,i.toBool)(l.data("on-desktop")));l.hasClass((0,i.getOption)("withCloseClass"))?l.data("show-close",!0):l.hasClass((0,i.getOption)("noCloseClass"))?l.data("show-close",!1):l.data("show-close",(0,i.toBool)(l.data("show-close")));l.hasClass((0,i.getOption)("altCloseClass"))?l.data("close-alt",!0):l.data("close-alt",(0,i.toBool)(l.data("close-alt"),!1));l.hasClass((0,i.getOption)("modalIndicatorClass"))?l.data("is-modal",!0):l.data("is-modal",(0,i.toBool)(l.data("is-modal"),!1));l.hasClass((0,i.getOption)("exitIndicatorClass"))?l.data("trigger-exit",!0):l.data("trigger-exit",(0,i.toBool)(l.data("trigger-exit"),!1));l.hasClass((0,i.getOption)("noShadowClass"))?l.data("no-shadow",!0):l.data("no-shadow",(0,i.toBool)(l.data("no-shadow"),!1));l.hasClass((0,i.getOption)("darkModeClass"))?l.data("dark-mode",!0):l.data("dark-mode",(0,i.toBool)(l.data("dark-mode"),!1));l.hasClass((0,i.getOption)("singletonClass"))?l.data("singleton",!0):l.data("singleton",(0,i.toBool)(l.data("singleton"),!1));return(0,o.configArea)(l),(0,i.debug)("[+] Registered new area:",t),l},t.getAllIds=function(e){var t=[];for(var a in n){var o=n[a];e===o.data("_type")&&t.push(a)}for(var i in s){var r=s[i],p=n[r];e===p.data("_type")&&t.push(i)}return t},t.loopAllAreas=function(e,t){for(var a in n){var o=n[a];e===o.data("_type")&&t(o,a)}},t.countVisibleAreas=function(e){if(void 0===r[e])return 0;return r[e].length},t.addVisibleArea=function(e,t){void 0===r[e]&&(r[e]=[]);r[e].push(t)},t.removeVisibleArea=function(e,t){if(void 0===r[e])return!1;for(var a=r[e].length-1;a>=0;a--){var o=r[e][a];t===o.data("_id")&&r[e].splice(a,1)}},t.getVisibleArea=function(e,t){if(void 0===r[e])return!1;if(void 0===t||-1===t)return r[e][r[e].length-1];if(t)for(var a=0;a<r[e].length;a++)if(t===r[e][a].data("_id"))return r[e][a];return!1},t.loopVisibleAreas=function(e,t){if(void 0===r[e])return!1;for(var a=0;a<r[e].length;a++){var o=r[e][a];t(o,a)}};var o=a(2),i=a(0),n={},r={},s={};function p(e,t){if(e instanceof jQuery){if(e.data("_id"))return e.data("_id");e=e.attr("id")}if(!e)return"";if("#"!==e[0]&&(e="#"+e),t){var a=new RegExp("^#"+t+":");e=e.replace(a,"#",e)}return e?e.toString():""}function l(e){var t=p(e),a=p(s[t]);return void 0!==n[t]?t:void 0!==n[a]?a:""}function d(e){if(e instanceof jQuery)return!!e.data("_id")&&e;var t=l(e);return!!t&&n[t]}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.attachCloseButton=function(e){var t=(0,n.getOption)("closeButtonClass"),a=t+"_wrap",o=(0,n.getOption)("noCloseClass"),i=(0,n.getOption)("withCloseClass");if(e.find("."+a).length)return;var r=jQuery("<span />").addClass(a),s=jQuery('<a href="#close" />').addClass(t);s.html("&times;"),s.appendTo(r),r.appendTo(e),e.hasClass(o)||e.hasClass(i)||((0,n.getOption)("defaultShowCloseButton")?e.addClass(i):e.addClass(o));s.on("click",function(){jQuery(document).trigger("DiviArea:Close",e),e.trigger("DiviArea:Close")}),(0,n.debug)("-> Added a close button to area",e.attr("data-id"))},t.checkViewport=function(e){var t=!0,a=jQuery(window).innerWidth();t=a<768?!!e.data("on-mobile"):a<981?!!e.data("on-tablet"):!!e.data("on-desktop");return t},t.triggerLazyLoad=function(e){jQuery("body").trigger("post-load")},t.triggerAnimations=function(e){void 0!==window.et_reinit_waypoint_modules&&window.et_reinit_waypoint_modules()},t.initRecaptcha=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)e.find("form").each(function(){var e=jQuery(this),t=e.find("[data-sitekey].g-recaptcha");if(t.length&&!e.find('iframe[src*="/recaptcha/"]').length){var a={sitekey:t.attr("data-sitekey"),type:t.attr("data-type"),size:t.attr("data-size"),theme:t.attr("data-theme"),badge:t.attr("data-badge"),tabindex:t.attr("data-tabindex")},o=t.attr("data-callback"),i=t.attr("data-expired-callback");o&&"function"==typeof window[o]&&(a.callback=window[o]),i&&"function"==typeof window[i]&&(a["expired-callback"]=window[i]);var n=grecaptcha.render(t[0],a);window.recaptchaWidgets&&recaptchaWidgets.push(n)}});else{var t=jQuery('script[src*="google.com/recaptcha/api.js"]').attr("src"),a=t.replace(/^.*render=(.*)$/,"$1").split("&")[0];grecaptcha.execute(a,{action:"homepage"}).then(function(t){e.find('form [name="g-recaptcha-response]').val(t)})}},t.configArea=function(e,t,a){var r,s,p=(0,i.getArea)(e);if(!p||1!==p.length)return;if(r=p.data("_id"),"object"===(void 0===t?"undefined":o(t))){for(var l in t)t.hasOwnProperty(l)&&DiviPopup.config(p,l,t[l]);return}if(void 0!==t){if("string"!=typeof t)return;switch(t=t.trim().toLowerCase().replace("-","")){case"notmobile":s=(0,n.toBool)(p.data("on-mobile")),p.data("on-mobile",!(0,n.toBool)(a,!s));break;case"onmobile":s=(0,n.toBool)(p.data("on-mobile")),p.data("on-mobile",(0,n.toBool)(a,s));break;case"nottablet":s=(0,n.toBool)(p.data("on-tablet")),p.data("on-tablet",!(0,n.toBool)(a,!s));break;case"ontablet":s=(0,n.toBool)(p.data("on-tablet")),p.data("on-tablet",(0,n.toBool)(a,s));break;case"notdesktop":s=(0,n.toBool)(p.data("on-desktop")),p.data("on-desktop",!(0,n.toBool)(a,!s));break;case"ondesktop":s=(0,n.toBool)(p.data("on-desktop")),p.data("on-desktop",(0,n.toBool)(a,s));break;case"triggerexit":p.data("trigger-exit",(0,n.toBool)(a));break;case"hideclose":p.data("show-close",!(0,n.toBool)(a));break;case"showclose":p.data("show-close",(0,n.toBool)(a));break;case"closealt":p.data("close-alt",(0,n.toBool)(a));break;case"ismodal":p.data("is-modal",(0,n.toBool)(a));break;case"notmodal":p.data("is-modal",!(0,n.toBool)(a));break;case"shadow":p.data("no-shadow",(0,n.toBool)(a));break;case"noshadow":p.data("no-shadow",!(0,n.toBool)(a));break;case"dark":p.data("dark-mode",(0,n.toBool)(a));break;case"width":p.data("width",a);break;case"singleton":p.data("singleton",(0,n.toBool)(a));break;case"ids":case"alternateid":Array.isArray(a)?a.forEach(function(e){return(0,i.addAltId)(r,e)}):(0,i.addAltId)(r,a)}}p.data("on-mobile")?p.removeClass((0,n.getOption)("notMobileClass")):p.addClass((0,n.getOption)("notMobileClass"));p.data("on-tablet")?p.removeClass((0,n.getOption)("notTabletClass")):p.addClass((0,n.getOption)("notTabletClass"));p.data("on-desktop")?p.removeClass((0,n.getOption)("notDesktopClass")):p.addClass((0,n.getOption)("notDesktopClass"));p.data("trigger-exit")?p.addClass((0,n.getOption)("exitIndicatorClass")):p.removeClass((0,n.getOption)("exitIndicatorClass"));p.data("show-close")?(p.addClass((0,n.getOption)("withCloseClass")),p.removeClass((0,n.getOption)("noCloseClass"))):(p.addClass((0,n.getOption)("noCloseClass")),p.removeClass((0,n.getOption)("withCloseClass")));p.data("close-alt")?p.addClass((0,n.getOption)("altCloseClass")):p.removeClass((0,n.getOption)("altCloseClass"));p.data("is-modal")?p.addClass((0,n.getOption)("modalIndicatorClass")):p.removeClass((0,n.getOption)("modalIndicatorClass"));p.data("no-shadow")?p.addClass((0,n.getOption)("noShadowClass")):p.removeClass((0,n.getOption)("noShadowClass"));p.data("dark-mode")?p.addClass((0,n.getOption)("darkModeClass")):p.removeClass((0,n.getOption)("darkModeClass"));p.data("singleton")?p.addClass((0,n.getOption)("singletonClass")):p.removeClass((0,n.getOption)("singletonClass"))};var i=a(1),n=a(0)},function(e,t,a){a(4),e.exports=a(8)},function(e,t,a){"use strict";var o=function(e){return e&&e.__esModule?e:{default:e}}(a(5));window.DiviPopup=new o.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var o=t[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,a,o){return a&&e(t.prototype,a),o&&e(t,o),t}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=a(6),r=a(1),s=a(2),p=a(7),l=a(0);function d(){(0,l.debug)("Initialize popups-for-divi..."),jQuery(document).trigger("DiviPopup:Load");var e=y,t=g,a=f;(0,l.addObservers)("popup",e,t,a),window.setTimeout(function(){jQuery(window).on("mouseleave",c)},(0,l.getOption)("onExitDelay")),e(),jQuery(document).trigger("DiviPopup:Ready")}function u(){if((0,r.countVisibleAreas)("popup")){(0,r.loopAllAreas)("popup",function(e){e.hasClass((0,l.getOption)("activePopupClass"))&&(e.removeClass((0,l.getOption)("activePopupClass")),jQuery(document).trigger("DiviPopup:Blur",e),e.trigger("DiviPopup:Blur"))}),(0,r.loopVisibleAreas)("popup",function(e,t){var a=e.parent();a.hasClass((0,l.getOption)("popupWrapperClass"))||((a=jQuery("<div/>")).appendTo((0,l.getContext)()),a.addClass((0,l.getOption)("popupWrapperClass")),e.detach().appendTo(a)),a.css({zIndex:(0,l.getOption)("zIndex")+t})});var e=(0,r.getVisibleArea)("popup");"yes"!==e.attr("data-visible")&&(e.attr("data-visible","yes"),(0,n.animatePopup)(e,function(e){e.fadeIn((0,l.getOption)("animateSpeed"))}),jQuery(document).trigger("DiviPopup:Show",e),e.trigger("DiviPopup:Show")),e.addClass((0,l.getOption)("activePopupClass")),jQuery(document).trigger("DiviPopup:Focus",e),e.trigger("DiviPopup:Focus"),(0,l.addAdditionalResizeObserver)("popup",e),window.setTimeout(g,50),DiviPopup.showOverlay()}}function c(e){var t;"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&"select"!==e.target.tagName.toLowerCase()&&(t=Math.max(document.documentElement.clientWidth,window.innerWidth||0),e.clientX>=t-50||e.clientY>=50||e.toElement||e.relatedTarget||((0,l.debug)("Popup exit-intent trigger"),(0,r.loopAllAreas)("popup",function(e,t){(0,l.debug)("Popup",(0,l.getOption)("exitIndicatorClass"),e),e.hasClass((0,l.getOption)("exitIndicatorClass"))&&DiviPopup.openPopup(t)})))}function g(){var e=parseInt(jQuery("html").css("marginTop")),t=jQuery(window).innerWidth(),a=jQuery(window).innerHeight()-e;(0,r.loopVisibleAreas)("popup",function(e){var o,i,n=e.parent();e.data("width")||(e.hasClass("et_pb_section")?e.data("width",e.outerWidth()):e.data("width",e.children(".et_pb_section").first().outerWidth()),e.attr("width",e.data("width"))),e.css({maxWidth:e.data("width")}),i=isNaN(e[0].scrollHeight)?e.innerHeight:e[0].scrollHeight,o=isNaN(e[0].scrollWidth)?e.innerWidth:e[0].scrollWidth,t<o+20?n.addClass((0,l.getOption)("fullWidthClass")):n.removeClass((0,l.getOption)("fullWidthClass")),a<i+20?n.addClass((0,l.getOption)("fullHeightClass")):n.removeClass((0,l.getOption)("fullHeightClass"))})}function f(e){if(27===e.keyCode)return!(0,r.countVisibleAreas)("popup")||((0,l.debug)("Handle [ESC] key: Close active popup"),DiviPopup.closePopup(),!1)}function v(){if(!(0,r.countVisibleAreas)("popup"))return!1;jQuery(document).trigger("DiviPopup:OverlayClick");var e=(0,r.getVisibleArea)("popup");if(e.length&&e.hasClass((0,l.getOption)("modalIndicatorClass")))return!1;DiviPopup.closePopup()}function h(e){return e.preventDefault(),e.stopPropagation(),(0,l.debug)("Click on popup close"),DiviPopup.closePopup(),!1}function b(e){var t=jQuery(this);return(0,l.debug)("Open popup: "+t.attr("data-popup-id")),e.preventDefault(),e.stopPropagation(),DiviPopup.openPopup(t.attr("data-popup-id")),!1}function m(e,t){var a=[],o=(e=jQuery(e)).data("_id"),n=o.replace(/^#/,""),s=[];function p(e){"object"===(void 0===e?"undefined":i(e))&&(e=e.data("_id")),e&&e.length&&("#"!==e[0]&&(e="#"+e),a.push(e))}(0,r.loopVisibleAreas)("popup",function(e){e.hasClass((0,l.getOption)("singletonClass"))?a.push(e.data("_id")):s.push(e.data("_id"))}),t?(a.push(o),o=!1):e.hasClass((0,l.getOption)("singletonClass"))&&(a=s,o=!1),t?(jQuery(document).triggerHandler("DiviPopup:BeforeHide",[e,s,p]),jQuery(document).triggerHandler("DiviPopup:BeforeHide:"+n,[e,s,p])):(jQuery(document).triggerHandler("DiviPopup:BeforeShow",[e,s,p]),jQuery(document).triggerHandler("DiviPopup:BeforeShow:"+e.attr("key"),[e,s,p])),a.length&&(0,l.debug)("Hide popups",a),(0,r.loopVisibleAreas)("popup",function(e){var t=e.data("_id");-1!==a.indexOf(t)&&function(e){e=jQuery(e),jQuery(document).trigger("DiviPopup:Hide",e),e.trigger("DiviPopup:Hide"),e.find("."+(0,l.getOption)("closeButtonClass")).off(".popup"),e.find("div ."+(0,l.getOption)("triggerCloseClass")).off(".popup"),e.find("div .popup-trigger").off(".popup"),(0,l.removeAdditionalResizeObserver)("popup",e);var t=e.parent();e.detach().hide().attr("data-visible","no"),t.hasClass((0,l.getOption)("popupWrapperClass"))&&t.remove();(0,r.removeVisibleArea)("popup",e.data("_id"))}(e)}),o&&(0,r.removeVisibleArea)("popup",o)}function C(e,t){var a,o,i;if(a=(0,r.getId)(t)){if(e.attr("data-popup-id"))return e.off(".popup"),e.on("click.popup",b),void(0,l.debug)("-> Trigger already linked with popup: "+i,e);o=DiviPopup.register(a,{selector:(0,l.getOption)("popupSelector")}),i=a.toLowerCase(),o?(e.attr("data-popup-id",i),e.addClass("popup-trigger"),e.on("click.popup",b),(0,l.debug)("-> Trigger linked to popup: "+i,e)):(0,l.debug)("-> Trigger has no popup",e)}else(0,l.debug)("-> Not a popup trigger",e)}function y(e){var t,a,o;for((0,l.debug)(" -- Activate triggers --"),void 0===e&&(e=(0,l.getContext)()),jQuery((0,l.getOption)("popupSelector"),e).each(function(){(0,l.debug)("Found a popup-selector, try to register it",this),DiviPopup.register(jQuery(this).attr("id"),{selector:(0,l.getOption)("popupSelector")})}),o=(0,l.findTriggers)({ids:(0,r.getAllIds)("popup"),linkPrefix:"popup:",dataAttrib:(0,l.getOption)("idAttrib"),classPrefix:(0,l.getOption)("triggerClassPrefix")},e),t=0;t<o.length;t++)C((a=o[t]).item,a.id)}var w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,l.debug)("Load popups-for-divi..."),(0,l.getOption)("initializeOnEvent")?jQuery(window,document).on((0,l.getOption)("initializeOnEvent"),function(){window.setTimeout(d,1)}):window.setTimeout(d,1)}return o(e,[{key:"register",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(0,r.getArea)(e);if(a)return a;var o=(0,r.registerArea)("popup",e,t.selector);return!(!o||!o.length)&&((0,n.initializePopupAnimation)(o),Object.keys(t).forEach(function(e){(0,s.configArea)(o,e,t[e])}),o)}},{key:"config",value:function(e,t,a){(0,s.configArea)(e,t,a)}},{key:"openPopup",value:function(e){var t=(0,r.getArea)(e);return t&&t.length?(0,s.checkViewport)(t)?(m(t),t.removeClass((0,l.getOption)("exitIndicatorClass")),(0,l.debug)("Show popup and set event handlers:",e),function(e){e=jQuery(e),(0,r.addVisibleArea)("popup",e),y(e),e.find("div ."+(0,l.getOption)("triggerCloseClass")).off(".popup"),e.find("div ."+(0,l.getOption)("triggerCloseClass")).on("click.popup",h),e.find("div .popup-trigger").off(".popup"),e.find("div .popup-trigger").on("click.popup",b),e.hasClass((0,l.getOption)("withCloseClass"))&&(e.find("."+(0,l.getOption)("closeButtonClass")).off(".popup"),e.find("."+(0,l.getOption)("closeButtonClass")).on("click.popup",h))}(t),u(),window.setTimeout(function(){(0,s.triggerLazyLoad)(t),(0,s.triggerAnimations)(t),(0,s.initRecaptcha)(t)},50),!0):((0,l.debug)("Do not trigger popup on this device:",e),!1):((0,l.error)("Could not find a popup with the ID:",e),!1)}},{key:"closePopup",value:function(e){var t;(0,r.countVisibleAreas)("popup")&&(t=e?(0,r.getVisibleArea)("popup",(0,r.getRealId)(e)):(0,r.getVisibleArea)("popup"))&&((0,l.debug)("Close popup and unlink event handlers:",t.data("_id")),m(t,!0)),(0,r.countVisibleAreas)("popup")?u():DiviPopup.hideOverlay()}},{key:"showOverlay",value:function(){(0,p.showOverlay)(v)}},{key:"hideOverlay",value:function(){(0,p.hideOverlay)()}}]),e}();t.default=w},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={};function i(e,t,a){a=a||e.data("et_waypoint_max_instances")||1;var o=e.data("et_waypoint")||[];if(o.length<a){var i=e.waypoint(t);i&&i.length>0&&(o.push(i[0]),e.data("et_waypoint",o))}else for(var n=0;n<o.length;n++)o[n].context.refresh()}t.animatePopup=function(e,t){return!e.is(":visible")&&(jQuery.fn.waypoint?"yes"===et_pb_custom.ignore_waypoints?t(e):function(e){var t=e.attr("data-animation"),a=!1;return!!t&&(!!(a=o[t])&&(jQuery("body").css("overflow-x","hidden"),jQuery("#page-container").css("overflow-y","hidden"),e.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}),void i(e,{offset:"100%",handler:function(){!function(e){var t=e.attr("data-animation-style"),a=e.attr("data-animation-repeat"),o=e.attr("data-animation-duration"),i=e.attr("data-animation-delay"),n=e.attr("data-animation-intensity"),r=e.attr("data-animation-starting-opacity"),s=e.attr("data-animation-speed-curve");!function(e){for(var t=[],a=e.get(0).attributes,o=0;o<a.length;o++)"data-animation-"===a[o].name.substring(0,15)&&t.push(a[o].name);jQuery.each(t,function(t,a){e.removeAttr(a)})}(e);var p=isNaN(parseInt(r))?0:.01*parseInt(r);-1===jQuery.inArray(s,["linear","ease","ease-in","ease-out","ease-in-out"])&&(s="ease-in-out"),e.css({"animation-duration":o,"animation-delay":i,opacity:p,"animation-timing-function":s});for(var l={},d=isNaN(parseInt(n))?50:parseInt(n),u=["slide","zoom","flip","fold","roll"],c=!1,g=!1,f=0;f<u.length;f++){var v=u[f];if(t&&t.substr(0,v.length)===v){c=v,""!==(g=t.substr(v.length,t.length))&&(g=g.toLowerCase());break}}!1!==c&&!1!==g&&(l=function(e,t,a){var o={};switch(e){case"slide":switch(t){case"top":o={transform:"translate3d(0, "+(i=-2*a)+"%, 0)"};break;case"right":o={transform:"translate3d("+(i=2*a)+"%, 0, 0)"};break;case"bottom":o={transform:"translate3d(0, "+(i=2*a)+"%, 0)"};break;case"left":var i=-2*a;o={transform:"translate3d("+i+"%, 0, 0)"};break;default:o={transform:"scale3d("+(n=.01*(100-a))+", "+n+", "+n+")"}}break;case"zoom":var n=.01*(100-a);switch(t){case"top":case"right":case"bottom":case"left":default:o={transform:"scale3d("+n+", "+n+", "+n+")"}}break;case"flip":switch(t){case"right":o={transform:"perspective(2000px) rotateY("+(r=Math.ceil(.9*a))+"deg)"};break;case"left":o={transform:"perspective(2000px) rotateY("+(r=-1*Math.ceil(.9*a))+"deg)"};break;case"top":default:o={transform:"perspective(2000px) rotateX("+(r=Math.ceil(.9*a))+"deg)"};break;case"bottom":o={transform:"perspective(2000px) rotateX("+(r=-1*Math.ceil(.9*a))+"deg)"}}break;case"fold":switch(t){case"top":o={transform:"perspective(2000px) rotateX("+(r=-1*Math.ceil(.9*a))+"deg)"};break;case"bottom":o={transform:"perspective(2000px) rotateX("+(r=Math.ceil(.9*a))+"deg)"};break;case"left":o={transform:"perspective(2000px) rotateY("+(r=Math.ceil(.9*a))+"deg)"};break;case"right":default:o={transform:"perspective(2000px) rotateY("+(r=-1*Math.ceil(.9*a))+"deg)"}}break;case"roll":switch(t){case"right":case"bottom":o={transform:"rotateZ("+(r=-1*Math.ceil(3.6*a))+"deg)"};break;case"top":case"left":o={transform:"rotateZ("+(r=Math.ceil(3.6*a))+"deg)"};break;default:var r=Math.ceil(3.6*a);o={transform:"rotateZ("+r+"deg)"}}}return o}(c,g,d)),jQuery.isEmptyObject(l)||e.css(l),e.addClass("et_animated"),e.addClass(t),e.addClass(a)}(jQuery(this.element))}})))}(e)?(e.show(),e.css({opacity:0}),void window.setTimeout(function(){e.css({opacity:""}),i(e,{offset:"100%",handler:function(){e.addClass("et-animated")}},2)},10)):t(e):t(e))},t.initializePopupAnimation=function(e){if(!window.et_animation_data||!window.et_animation_data.length>0)return!1;e.removeClass("et-waypoint"),e.removeClass("et-animated");for(var t=0;t<et_animation_data.length;t++){var a=!1,i=et_animation_data[t];i&&i.class&&e.hasClass(i.class)&&i.style&&i.repeat&&i.duration&&i.delay&&i.intensity&&i.starting_opacity&&i.speed_curve&&(a=i.class,e.addClass("pfd-waypoint"),e.attr("data-animation",a),o[a]=i,et_animation_data[t].class=void 0)}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showOverlay=function(e){var t=(0,i.getOption)("zIndex");r=e,null===n&&((n=jQuery("<div />")).addClass((0,i.getOption)("overlayClass")),n.prependTo((0,i.getContext)()),n.on("click.popup",s));t+=Math.max(0,(0,o.countVisibleAreas)("popup")-1),(0,i.debug)("Show background overlay"),n.css({zIndex:t}),n.fadeIn((0,i.getOption)("animateSpeed"),function(){jQuery("body").addClass((0,i.getOption)("openPopupClass"))}),jQuery(document).trigger("DiviPopup:OverlayShow")},t.hideOverlay=function(){(0,i.debug)("Hide background overlay"),n.hide(),jQuery("body").removeClass((0,i.getOption)("openPopupClass")),jQuery(document).trigger("DiviPopup:OverlayHide")};var o=a(1),i=a(0),n=null,r=null;function s(e){return(0,i.debug)("Click on background overlay"),e.preventDefault(),e.stopPropagation(),r(),!1}},function(e,t,a){}]);
plugin.php CHANGED
@@ -12,7 +12,7 @@
12
  * Author: Philipp Stracker
13
  * Author URI: https://philippstracker.com/
14
  * Created: 30.12.2017
15
- * Version: 1.6.2
16
  * License: GPLv2 or later
17
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
18
  * Text Domain: divi-popup
@@ -39,7 +39,7 @@ define( 'DIVI_POPUP_PLUGIN', plugin_basename( __FILE__ ) );
39
  /**
40
  * A new version value will force refresh of CSS and JS files for all users.
41
  */
42
- define( 'DIVI_POPUP_VERSION', '1.6.2' );
43
 
44
  add_action(
45
  'plugins_loaded',
12
  * Author: Philipp Stracker
13
  * Author URI: https://philippstracker.com/
14
  * Created: 30.12.2017
15
+ * Version: 1.6.0
16
  * License: GPLv2 or later
17
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
18
  * Text Domain: divi-popup
39
  /**
40
  * A new version value will force refresh of CSS and JS files for all users.
41
  */
42
+ define( 'DIVI_POPUP_VERSION', '1.6.0' );
43
 
44
  add_action(
45
  'plugins_loaded',
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.2.3
6
  Stable tag: trunk
7
  Requires PHP: 5.2.4
8
  License: GPLv2 or later
@@ -41,7 +41,9 @@ To celebrate the anniversary, we have created a six-day course that teaches you
41
 
42
  > "The instruction emails really helped me to understand how to use the plugin correctly!"
43
 
44
- The course is available in your **wp-admin Dashboard** right after you install and activate the plugin. Check out the screenshots to see the form. Also, have a look in the FAQ section, if you want to disable this feature.
 
 
45
 
46
  # 🥳 Want more?
47
 
@@ -109,27 +111,25 @@ Yes, actually it will! But out of the box it is optimized to work with Divi 3.x.
109
 
110
  For more details visit https://philippstracker.com/divi-popup/
111
 
112
- = Does this plugin display any ads? =
113
 
114
  No. This plugin is free and does not display any ads. In fact, the plugin does not have a UI at all.
115
 
116
  Popups for Divi is just that - a plain popup plugin, not our marketing strategy!
117
 
118
- Since version 1.6.0 we now offer a six-day email course that shows you how the plugin works. You will see a notification in your wp-admin dashboard right after activating the plugin. This is not an advertisement - you do not land in a newsletter list, but only receive those six onboarding mails.
119
-
120
- = Do you collect any details from my website? =
121
 
122
  No, we do not collect or transmit any data from your website.
123
 
124
  Since version 1.6.0 there is one exception: We now offer an email course that shows you how the plugin works. You will see a notification in your wp-admin dashboard right after activating the plugin. When you opt-in to receive the onboarding emails we will transmit the details you entered (your name and email address) to the plugin website.
125
 
126
- Those details are only used to send you the onboarding emails (6 emails) and for nothing else.
127
 
128
  = Is there a way to hide the onboarding notice? =
129
 
130
  Yes, there is!
131
 
132
- Since 1.6.0 the plugin offers an onboarding course that consists of 6 emails. We offer this course right after plugin activation in your wp-admin "Dashboard" page (nowhere else).
133
 
134
  This onboarding notice is displayed to administrator users only. Once the user clicks on the "Dismiss" button, the message is never displayed again for them.
135
 
@@ -153,24 +153,15 @@ We cannot provide customization and development via the forum. If you need that,
153
  4. That's all. Save the page and open it up without the editor. All popups are initially hidden.
154
  5. Click on the "Contact" button displays the popup. You can style the Divi section (change the width, background-color, etc) or customize the CSS of the popup...
155
  6. ...check out the extensive API documentation and popup samples on philippstracker.com
156
- 7. Our free email course walks you through every aspect of the plugin - from the basics to advances use-cases and techniques.
157
 
158
  == Changelog ==
159
 
160
- = 1.6.2 =
161
- * Fix JS error in front.js
162
-
163
- Plugin tested with WordPress 5.2.3 and Divi 3.27.4
164
-
165
  = 1.6.0 =
166
  * Change Popup behavior: The size now matches the width of your Divi section! 🤩
167
- * Add an dashboard notification to sign up for the six-day onboarding course.
168
  * Add popup support via Blurb "Content Link".
169
  * Add Google reCaptcha integration! Tested with CF7, but works with any plugin.
170
  * Add new WP filter options to customize dark-mode and box-shadow style.
171
- * Add new Popup Class: `no-shadow` removes the default box-shadow.
172
- * Add new Popup Class: `close-alt` removes the background color of the Close Button.
173
- * Fix Popup shadow: The box-shadow fo the Divi Section overrides the default box-shadow. *Style it your way!*
174
  * Fix select list behavior in Firefox.
175
  * Fix Popup width on iPhone 6 and earlier.
176
  * Tweak the CSS that makes the page body un-scrollable while a popup is open.
@@ -186,6 +177,8 @@ Plugin tested with WordPress 5.2.3 and Divi 3.27.4
186
  * New JS API to turn literally *any* element on the page into a popup: `DiviPopup.register('#the-id')`
187
  * New JS API to configure popups after they were registered: `DiviPopup.config('#the-id', 'on-mobile', false)`
188
 
 
 
189
  = 1.4.0 =
190
  * In Divis Visual Builder you now see each popup ID right above the popup. This makes it easier for you to correctly link popups
191
  * When the class "single" is added to a popup, it will close any other popup that was currently visible
2
  Contributors: strackerphil-1
3
  Tags: popup, marketing, divi
4
  Requires at least: 3.0.1
5
+ Tested up to: 5.2.2
6
  Stable tag: trunk
7
  Requires PHP: 5.2.4
8
  License: GPLv2 or later
41
 
42
  > "The instruction emails really helped me to understand how to use the plugin correctly!"
43
 
44
+ The course is available in your **wp-admin Dashboard** right after you install and activate the plugin:
45
+
46
+ ![Start the course in your wp-admin Dashboard](https://philippstracker.com/wp-content/uploads/2019/09/free-email-course.png)
47
 
48
  # 🥳 Want more?
49
 
111
 
112
  For more details visit https://philippstracker.com/divi-popup/
113
 
114
+ = Does this plugin display any ads or collects my personal details? =
115
 
116
  No. This plugin is free and does not display any ads. In fact, the plugin does not have a UI at all.
117
 
118
  Popups for Divi is just that - a plain popup plugin, not our marketing strategy!
119
 
120
+ = What about privacy - do you collect any details from my website? =
 
 
121
 
122
  No, we do not collect or transmit any data from your website.
123
 
124
  Since version 1.6.0 there is one exception: We now offer an email course that shows you how the plugin works. You will see a notification in your wp-admin dashboard right after activating the plugin. When you opt-in to receive the onboarding emails we will transmit the details you entered (your name and email address) to the plugin website.
125
 
126
+ Those details are only used to send you the onboarding emails (5 emails) and for nothing else.
127
 
128
  = Is there a way to hide the onboarding notice? =
129
 
130
  Yes, there is!
131
 
132
+ Since 1.6.0 the plugin offers an onboarding course that consists of 5 emails. We offer this course right after plugin activation in your wp-admin "Dashboard" page (nowhere else).
133
 
134
  This onboarding notice is displayed to administrator users only. Once the user clicks on the "Dismiss" button, the message is never displayed again for them.
135
 
153
  4. That's all. Save the page and open it up without the editor. All popups are initially hidden.
154
  5. Click on the "Contact" button displays the popup. You can style the Divi section (change the width, background-color, etc) or customize the CSS of the popup...
155
  6. ...check out the extensive API documentation and popup samples on philippstracker.com
 
156
 
157
  == Changelog ==
158
 
 
 
 
 
 
159
  = 1.6.0 =
160
  * Change Popup behavior: The size now matches the width of your Divi section! 🤩
161
+ * Change the default layout of Popups to not have a box-shadow. If you want a shadow, either add the class `with-shadow` to your section or simply apply a box-shadow to the section using Divi. *Style it your way!*
162
  * Add popup support via Blurb "Content Link".
163
  * Add Google reCaptcha integration! Tested with CF7, but works with any plugin.
164
  * Add new WP filter options to customize dark-mode and box-shadow style.
 
 
 
165
  * Fix select list behavior in Firefox.
166
  * Fix Popup width on iPhone 6 and earlier.
167
  * Tweak the CSS that makes the page body un-scrollable while a popup is open.
177
  * New JS API to turn literally *any* element on the page into a popup: `DiviPopup.register('#the-id')`
178
  * New JS API to configure popups after they were registered: `DiviPopup.config('#the-id', 'on-mobile', false)`
179
 
180
+ Plugin tested with WordPress 5.2.2 and Divi 3.27.1
181
+
182
  = 1.4.0 =
183
  * In Divis Visual Builder you now see each popup ID right above the popup. This makes it easier for you to correctly link popups
184
  * When the class "single" is added to a popup, it will close any other popup that was currently visible