Popups for Divi - Version 2.2.1

Version Description

  • Fix: The close button does not trigger any scrollbars when hovered
  • Fix: Popups are now always hidden when the page loads - in some cases, Popups inside Headers/Footers were visible right when the page loaded
  • Fix: Click inside an open Popup does not try to re-open that Popup - i.e., fixed the "flickering issue."
  • Fix: Accordions and other interactive elements inside Areas are working again
  • Fix: Plugin is compatible with Gravity Forms 2.4.18+
  • Fix: Bullet lists now display bullets inside Popups
  • Improve: Plugin now plays nice with SG Optimizer and WP Rocket
  • Improve: The close button is now outside the Popup container and can be positioned anywhere, via CSS
  • Improve: Minor performance optimizations in the JS code

Plugin tested with WordPress 5.4.2 and Divi 4.4.8

Download this release

Release Info

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

Code changes from version 2.2.0 to 2.2.1

changelog.txt CHANGED
@@ -1,3 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
1
  = 2.2.0 =
2
  * Change: Fully refactored JS API that is documented on https://divimode.com/knowledge-base/
3
  * Change: Some CSS class names have changed, e.g. "evr_fb_popup_modal" is now "da-overlay"
1
+ = 2.2.1 =
2
+ * Fix: The close button does not trigger any scrollbars when hovered
3
+ * Fix: Popups are now always hidden when the page loads - in some cases, Popups inside Headers/Footers were visible right when the page loaded
4
+ * Fix: Click inside an open Popup does not try to re-open that Popup - i.e., fixed the "flickering issue."
5
+ * Fix: Accordions and other interactive elements inside Areas are working again
6
+ * Fix: Plugin is compatible with Gravity Forms 2.4.18+
7
+ * Fix: Bullet lists now display bullets inside Popups
8
+ * Improve: Plugin now plays nice with SG Optimizer and WP Rocket
9
+ * Improve: The close button is now outside the Popup container and can be positioned anywhere, via CSS
10
+ * Improve: Minor performance optimizations in the JS code
11
+
12
  = 2.2.0 =
13
  * Change: Fully refactored JS API that is documented on https://divimode.com/knowledge-base/
14
  * Change: Some CSS class names have changed, e.g. "evr_fb_popup_modal" is now "da-overlay"
css/front.css CHANGED
@@ -1 +1 @@
1
- #et-boc .area-outer-wrap{position:fixed;z-index:100;pointer-events:none;max-width:100vw;max-height:100vh}#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:calc(100% - 20px)}}#et-boc .area-outer-wrap[data-da-type=inline]{position:relative;top:unset;bottom:unset;left:unset;right:unset;width:unset;height:unset;-webkit-transform:unset;transform:unset;max-width:unset;max-height:unset}#et-boc .area-outer-wrap[data-da-positionv=top]{top:0}#et-boc .area-outer-wrap[data-da-positionv=top][data-da-type=hover][data-da-positionh=center]{-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}#et-boc .area-outer-wrap[data-da-positionv=center]{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}#et-boc .area-outer-wrap[data-da-positionv=center][data-da-type=hover][data-da-positionh=left]{-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}#et-boc .area-outer-wrap[data-da-positionv=bottom]{bottom:0}#et-boc .area-outer-wrap[data-da-positionh=left]{left:0;width:auto}#et-boc .area-outer-wrap[data-da-positionh=center]{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}#et-boc .area-outer-wrap[data-da-positionh=right]{right:0;width:auto}#et-boc .area-outer-wrap[data-da-position=center-center]{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#et-boc .area-outer-wrap[data-da-type=popup].full-width{width:auto;left:0;right:0;-webkit-transform:none;transform:none}#et-boc .area-outer-wrap[data-da-type=popup].full-width[data-da-positionv=center]{-webkit-transform:translateY(-50%);transform:translateY(-50%)}#et-boc .area-outer-wrap[data-da-type=popup].full-width [data-da-type]{max-width:100%}#et-boc .area-outer-wrap[data-da-type=popup].full-height{height:auto;top:0;bottom:0;-webkit-transform:none;transform:none}#et-boc .area-outer-wrap[data-da-type=popup].full-height[data-da-positionh=center]{-webkit-transform:translateX(-50%);transform:translateX(-50%)}#et-boc .area-outer-wrap[data-da-type=popup].full-height [data-da-type]{max-height:100%}#et-boc .area-outer-wrap[data-da-type=popup].full-width.full-height{-webkit-transform:none;transform:none}.area-outer-wrap [data-da-registered]{display:block;pointer-events:auto}.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}#et-boc .area-outer-wrap>[data-da-type]{position:relative;background-repeat:no-repeat;background-position:50%;margin:auto;pointer-events:all;overflow:auto;-ms-scroll-chaining:none;overscroll-behavior:contain}#et-boc .area-outer-wrap>[data-da-type] .clearfix:after,#et-boc .area-outer-wrap>[data-da-type] .et_pb_row:after,#et-boc .area-outer-wrap>[data-da-type] .et_pb_row_inner:after,#et-boc .area-outer-wrap>[data-da-type] .et_pb_slides:after{content:""}#et-boc .area-outer-wrap>[data-da-type] .et_pb_contact_select{-moz-appearance:textfield}#et-boc .area-outer-wrap>[data-da-type] .da-close-wrap{display:block;position:absolute;right:0;top:0;z-index:100;text-align:right;transition:opacity .6s .3s}#et-boc .area-outer-wrap>[data-da-type] .da-close{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}#et-boc .area-outer-wrap>[data-da-type] .da-close:active,#et-boc .area-outer-wrap>[data-da-type] .da-close:focus,#et-boc .area-outer-wrap>[data-da-type] .da-close:hover{opacity:1;-webkit-transform:scale(1.1);transform:scale(1.1)}#et-boc .area-outer-wrap>[data-da-type][data-da-loader=yes]{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-type][data-da-shadow=yes]{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-type][data-da-shadow=no]{box-shadow:none}#et-boc .area-outer-wrap>[data-da-type][data-da-close-btn=no] .da-close-wrap{display:none}#et-boc .area-outer-wrap>[data-da-type][data-da-close-btn=yes] .da-close-wrap{display:inline}#et-boc .area-outer-wrap>[data-da-type][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-type][data-da-color=light] .da-close:active,#et-boc .area-outer-wrap>[data-da-type][data-da-color=light] .da-close:focus,#et-boc .area-outer-wrap>[data-da-type][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-type][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-type][data-da-color=dark] .da-close:active,#et-boc .area-outer-wrap>[data-da-type][data-da-color=dark] .da-close:focus,#et-boc .area-outer-wrap>[data-da-type][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-type][data-da-close-bg=none] .da-close,#et-boc .area-outer-wrap>[data-da-type][data-da-close-bg=none] .da-close:active,#et-boc .area-outer-wrap>[data-da-type][data-da-close-bg=none] .da-close:focus,#et-boc .area-outer-wrap>[data-da-type][data-da-close-bg=none] .da-close:hover{box-shadow:none;background:transparent}
1
+ #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:calc(100% - 20px)}}#et-boc .area-outer-wrap[data-da-type=inline]{position:relative;top:unset;bottom:unset;left:unset;right:unset;width:unset;height:unset;-webkit-transform: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}#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-positionv=top]{top:0}#et-boc .area-outer-wrap[data-da-positionv=top][data-da-type=hover][data-da-positionh=center]{-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}#et-boc .area-outer-wrap[data-da-positionv=center]{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}#et-boc .area-outer-wrap[data-da-positionv=center][data-da-type=hover][data-da-positionh=left]{-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}#et-boc .area-outer-wrap[data-da-positionv=bottom]{bottom:0}#et-boc .area-outer-wrap[data-da-positionh=left]{left:0;width:auto}#et-boc .area-outer-wrap[data-da-positionh=center]{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}#et-boc .area-outer-wrap[data-da-positionh=right]{right:0;width:auto}#et-boc .area-outer-wrap[data-da-position=center-center]{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#et-boc .area-outer-wrap[data-da-type=popup].full-width{width:auto;left:0;right:0;-webkit-transform:none;transform:none}#et-boc .area-outer-wrap[data-da-type=popup].full-width[data-da-positionv=center]{-webkit-transform:translateY(-50%);transform:translateY(-50%)}#et-boc .area-outer-wrap[data-da-type=popup].full-width [data-da-area]{max-width:100%}#et-boc .area-outer-wrap[data-da-type=popup].full-height{height:auto;top:0;bottom:0;-webkit-transform:none;transform:none}#et-boc .area-outer-wrap[data-da-type=popup].full-height[data-da-positionh=center]{-webkit-transform:translateX(-50%);transform:translateX(-50%)}#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-width.full-height{-webkit-transform:none;transform:none}#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;-webkit-transform:translate(-50%,-50%);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;-webkit-transform:scale(1.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}
include/class-popups-for-divi-compatibility.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Makes sure, that our plugin integrates nicely with other plugins.
4
+ *
5
+ * @package Popups_For_Divi
6
+ */
7
+
8
+ /**
9
+ * Compatibility module.
10
+ *
11
+ * @since 1.4.5
12
+ */
13
+ class Popups_For_Divi_Compatibility extends Popups_For_Divi_Component {
14
+ /**
15
+ * Called during the "plugins_loaded" action. Hook up all actions/filters.
16
+ *
17
+ * @since 1.4.5
18
+ * @return void
19
+ */
20
+ public function setup() {
21
+ // SG Optimizer.
22
+ add_action(
23
+ 'sgo_javascript_combine_excluded_inline_content',
24
+ [ $this, 'sg_optimizer_exclude_inline_content' ]
25
+ );
26
+ }
27
+
28
+ /**
29
+ * Instructs SG Optimizer to NOT combine our loader script. Combined scripts are
30
+ * moved to end of the document, which counteracts the entire purpose of the
31
+ * loader...
32
+ *
33
+ * @since 1.4.5
34
+ * @param array $exclude_list Default exclude list.
35
+ * @return array Extended exclude list.
36
+ */
37
+ public function sg_optimizer_exclude_inline_content( $exclude_list ) {
38
+ $exclude_list[] = 'window.DiviPopupData=window.DiviAreaConfig=';
39
+
40
+ return $exclude_list;
41
+ }
42
+ }
include/class-popups-for-divi.php CHANGED
@@ -47,6 +47,11 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
47
  add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_js_library' ] );
48
  add_filter( 'divi_areas_debug_infos', [ $this, 'generate_debug_infos' ] );
49
 
 
 
 
 
 
50
  $this->add_module( 'onboarding', 'Popups_For_Divi_Onboarding' )
51
  ->setup_on( 'divi_popups_loaded' );
52
  $this->add_module( 'editor', 'Popups_For_Divi_Editor' )
@@ -136,7 +141,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
136
  $is_divi_v3 = false;
137
  }
138
 
139
- $config = [];
140
 
141
  /**
142
  * The base z-index. This z-index is used for the overlay, every
@@ -144,14 +149,14 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
144
  *
145
  * @since JS 1.0.0
146
  */
147
- $config['zIndex'] = 1000000;
148
 
149
  /**
150
  * Speed of the fade-in/out animations. Set this to 0 to disable fade-in/out.
151
  *
152
  * @since JS 1.0.0
153
  */
154
- $config['animateSpeed'] = 400;
155
 
156
  /**
157
  * A class-name prefix that can be used in *any* element to trigger
@@ -165,7 +170,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
165
  *
166
  * @since JS 1.0.0
167
  */
168
- $config['triggerClassPrefix'] = 'show-popup-';
169
 
170
  /**
171
  * Alternate popup trigger via data-popup attribute.
@@ -175,7 +180,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
175
  *
176
  * @since JS 1.0.0
177
  */
178
- $config['idAttrib'] = 'data-popup';
179
 
180
  /**
181
  * Class that indicates a modal popup. A modal popup can only
@@ -183,7 +188,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
183
  *
184
  * @since JS 1.0.0
185
  */
186
- $config['modalIndicatorClass'] = 'is-modal';
187
 
188
  /**
189
  * This changes the default close-button state when a popup does
@@ -191,7 +196,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
191
  *
192
  * @since 1.1.0
193
  */
194
- $config['defaultShowCloseButton'] = true;
195
 
196
  /**
197
  * Add this class to the popup section to show the close button
@@ -199,7 +204,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
199
  *
200
  * @since JS 1.0.0
201
  */
202
- $config['withCloseClass'] = 'with-close';
203
 
204
  /**
205
  * Add this class to the popup section to hide the close button
@@ -207,7 +212,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
207
  *
208
  * @since JS 1.0.0
209
  */
210
- $config['noCloseClass'] = 'no-close';
211
 
212
  /**
213
  * Name of the class that closes the currently open popup. By default
@@ -215,7 +220,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
215
  *
216
  * @since JS 1.0.0
217
  */
218
- $config['triggerCloseClass'] = 'close';
219
 
220
  /**
221
  * Name of the class that marks a popup as "singleton". A "singleton" popup
@@ -224,7 +229,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
224
  *
225
  * @since JS 1.0.0
226
  */
227
- $config['singletonClass'] = 'single';
228
 
229
  /**
230
  * Name of the class that activates the dark mode (dark close button) of the
@@ -232,21 +237,21 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
232
  *
233
  * @since JS 1.0.0
234
  */
235
- $config['darkModeClass'] = 'dark';
236
 
237
  /**
238
  * Name of the class that removes the box-shadow from the popup.
239
  *
240
  * @since JS 1.0.0
241
  */
242
- $config['noShadowClass'] = 'no-shadow';
243
 
244
  /**
245
  * Name of the class that changes the popups close button layout.
246
  *
247
  * @since JS 1.0.0
248
  */
249
- $config['altCloseClass'] = 'close-alt';
250
 
251
  /**
252
  * CSS selector used to identify popups.
@@ -255,7 +260,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
255
  *
256
  * @since JS 1.0.0
257
  */
258
- $config['popupSelector'] = '.et_pb_section.popup';
259
 
260
  /**
261
  * Whether to wait for an JS event-trigger before initializing
@@ -267,7 +272,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
267
  *
268
  * @since JS 1.0.0
269
  */
270
- $config['initializeOnEvent'] = (
271
  $is_divi_v3
272
  ? 'et_pb_after_init_modules' // Divi 3.0+ detected.
273
  : false // Older Divi or other themes.
@@ -279,7 +284,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
279
  *
280
  * @since JS 1.0.0
281
  */
282
- $config['popupWrapperClass'] = 'area-outer-wrap';
283
 
284
  /**
285
  * CSS class that is added to the popup when it enters
@@ -287,7 +292,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
287
  *
288
  * @since JS 1.0.0
289
  */
290
- $config['fullWidthClass'] = 'full-width';
291
 
292
  /**
293
  * CSS class that is added to the popup when it enters
@@ -295,7 +300,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
295
  *
296
  * @since JS 1.0.0
297
  */
298
- $config['fullHeightClass'] = 'full-height';
299
 
300
  /**
301
  * CSS class that is added to the website body when the background overlay
@@ -303,7 +308,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
303
  *
304
  * @since JS 1.0.0
305
  */
306
- $config['openPopupClass'] = 'da-overlay-visible';
307
 
308
  /**
309
  * CSS class that is added to the modal overlay that is
@@ -311,7 +316,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
311
  *
312
  * @since JS 1.0.0
313
  */
314
- $config['overlayClass'] = 'da-overlay';
315
 
316
  /**
317
  * Class that adds an exit-intent trigger to the popup.
@@ -321,7 +326,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
321
  *
322
  * @since JS 1.0.0
323
  */
324
- $config['exitIndicatorClass'] = 'on-exit';
325
 
326
  /**
327
  * Class that can be added to any trigger element (e.g., to a link) to
@@ -330,7 +335,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
330
  *
331
  * @since JS 1.2.3
332
  */
333
- $config['hoverTriggerClass'] = 'on-hover';
334
 
335
  /**
336
  * Class that can be added to an trigger (e.g., to a link or button) to
@@ -340,7 +345,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
340
  *
341
  * @since JS 1.2.3
342
  */
343
- $config['clickTriggerClass'] = 'on-click';
344
 
345
  /**
346
  * Defines the delay for reacting to exit-intents.
@@ -349,7 +354,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
349
  *
350
  * @since JS 1.0.0
351
  */
352
- $config['onExitDelay'] = 2000;
353
 
354
  /**
355
  * Class to hide a popup on mobile devices.
@@ -357,7 +362,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
357
  *
358
  * @since JS 1.0.0
359
  */
360
- $config['notMobileClass'] = 'not-mobile';
361
 
362
  /**
363
  * Class to hide a popup on tablet devices.
@@ -365,7 +370,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
365
  *
366
  * @since JS 1.0.0
367
  */
368
- $config['notTabletClass'] = 'not-tablet';
369
 
370
  /**
371
  * Class to hide a popup on desktop devices.
@@ -373,7 +378,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
373
  *
374
  * @since JS 1.0.0
375
  */
376
- $config['notDesktopClass'] = 'not-desktop';
377
 
378
  /**
379
  * The parent container which holds all popups. For most Divi sites
@@ -384,7 +389,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
384
  *
385
  * @since JS 1.0.0
386
  */
387
- $config['baseContext'] = 'body';
388
 
389
  /**
390
  * This class is added to the foremost popup; this is useful to
@@ -392,7 +397,7 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
392
  *
393
  * @since JS 1.0.0
394
  */
395
- $config['activePopupClass'] = 'is-open';
396
 
397
  /**
398
  * This is the class-name of the close button that is
@@ -405,30 +410,30 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
405
  *
406
  * @since JS 1.0.0
407
  */
408
- $config['closeButtonClass'] = 'da-close';
409
 
410
  /**
411
  * Apply this class to a popup to add a loading animation in the background.
412
  *
413
  * @since JS 1.0.0
414
  */
415
- $config['withLoaderClass'] = 'with-loader';
416
 
417
  /**
418
  * Display debug output in the JS console.
419
  *
420
  * @since JS 1.0.0
421
  */
422
- $config['debug'] = defined( 'WP_DEBUG' ) ? WP_DEBUG : false;
423
 
424
  /* -- End of default configuration -- */
425
 
426
  // Compatibility with older Popups for Divi version.
427
  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
428
- $config = apply_filters( 'evr_divi_popup-js_data', $config );
429
 
430
  // Divi Areas Pro filter.
431
- $js_data = apply_filters( 'divi_areas_js_data', $config );
432
 
433
  /**
434
  * Additional debugging details to generate JS error reports.
@@ -507,7 +512,13 @@ class Popups_For_Divi extends Popups_For_Divi_Component {
507
 
508
  $loader = [];
509
 
510
- // Output the JS configuration before the loader.js contents.
 
 
 
 
 
 
511
  $loader[] = sprintf(
512
  'window.DiviPopupData=window.DiviAreaConfig=%s',
513
  wp_json_encode( $js_config )
47
  add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_js_library' ] );
48
  add_filter( 'divi_areas_debug_infos', [ $this, 'generate_debug_infos' ] );
49
 
50
+ // Load compatibility module.
51
+ $this->add_module( 'compat', 'Popups_For_Divi_Compatibility' )
52
+ ->setup_on( 'divi_popups_loaded' );
53
+
54
+ // Add dependencies.
55
  $this->add_module( 'onboarding', 'Popups_For_Divi_Onboarding' )
56
  ->setup_on( 'divi_popups_loaded' );
57
  $this->add_module( 'editor', 'Popups_For_Divi_Editor' )
141
  $is_divi_v3 = false;
142
  }
143
 
144
+ $js_data = [];
145
 
146
  /**
147
  * The base z-index. This z-index is used for the overlay, every
149
  *
150
  * @since JS 1.0.0
151
  */
152
+ $js_data['zIndex'] = 1000000;
153
 
154
  /**
155
  * Speed of the fade-in/out animations. Set this to 0 to disable fade-in/out.
156
  *
157
  * @since JS 1.0.0
158
  */
159
+ $js_data['animateSpeed'] = 400;
160
 
161
  /**
162
  * A class-name prefix that can be used in *any* element to trigger
170
  *
171
  * @since JS 1.0.0
172
  */
173
+ $js_data['triggerClassPrefix'] = 'show-popup-';
174
 
175
  /**
176
  * Alternate popup trigger via data-popup attribute.
180
  *
181
  * @since JS 1.0.0
182
  */
183
+ $js_data['idAttrib'] = 'data-popup';
184
 
185
  /**
186
  * Class that indicates a modal popup. A modal popup can only
188
  *
189
  * @since JS 1.0.0
190
  */
191
+ $js_data['modalIndicatorClass'] = 'is-modal';
192
 
193
  /**
194
  * This changes the default close-button state when a popup does
196
  *
197
  * @since 1.1.0
198
  */
199
+ $js_data['defaultShowCloseButton'] = true;
200
 
201
  /**
202
  * Add this class to the popup section to show the close button
204
  *
205
  * @since JS 1.0.0
206
  */
207
+ $js_data['withCloseClass'] = 'with-close';
208
 
209
  /**
210
  * Add this class to the popup section to hide the close button
212
  *
213
  * @since JS 1.0.0
214
  */
215
+ $js_data['noCloseClass'] = 'no-close';
216
 
217
  /**
218
  * Name of the class that closes the currently open popup. By default
220
  *
221
  * @since JS 1.0.0
222
  */
223
+ $js_data['triggerCloseClass'] = 'close';
224
 
225
  /**
226
  * Name of the class that marks a popup as "singleton". A "singleton" popup
229
  *
230
  * @since JS 1.0.0
231
  */
232
+ $js_data['singletonClass'] = 'single';
233
 
234
  /**
235
  * Name of the class that activates the dark mode (dark close button) of the
237
  *
238
  * @since JS 1.0.0
239
  */
240
+ $js_data['darkModeClass'] = 'dark';
241
 
242
  /**
243
  * Name of the class that removes the box-shadow from the popup.
244
  *
245
  * @since JS 1.0.0
246
  */
247
+ $js_data['noShadowClass'] = 'no-shadow';
248
 
249
  /**
250
  * Name of the class that changes the popups close button layout.
251
  *
252
  * @since JS 1.0.0
253
  */
254
+ $js_data['altCloseClass'] = 'close-alt';
255
 
256
  /**
257
  * CSS selector used to identify popups.
260
  *
261
  * @since JS 1.0.0
262
  */
263
+ $js_data['popupSelector'] = '.et_pb_section.popup';
264
 
265
  /**
266
  * Whether to wait for an JS event-trigger before initializing
272
  *
273
  * @since JS 1.0.0
274
  */
275
+ $js_data['initializeOnEvent'] = (
276
  $is_divi_v3
277
  ? 'et_pb_after_init_modules' // Divi 3.0+ detected.
278
  : false // Older Divi or other themes.
284
  *
285
  * @since JS 1.0.0
286
  */
287
+ $js_data['popupWrapperClass'] = 'area-outer-wrap';
288
 
289
  /**
290
  * CSS class that is added to the popup when it enters
292
  *
293
  * @since JS 1.0.0
294
  */
295
+ $js_data['fullWidthClass'] = 'full-width';
296
 
297
  /**
298
  * CSS class that is added to the popup when it enters
300
  *
301
  * @since JS 1.0.0
302
  */
303
+ $js_data['fullHeightClass'] = 'full-height';
304
 
305
  /**
306
  * CSS class that is added to the website body when the background overlay
308
  *
309
  * @since JS 1.0.0
310
  */
311
+ $js_data['openPopupClass'] = 'da-overlay-visible';
312
 
313
  /**
314
  * CSS class that is added to the modal overlay that is
316
  *
317
  * @since JS 1.0.0
318
  */
319
+ $js_data['overlayClass'] = 'da-overlay';
320
 
321
  /**
322
  * Class that adds an exit-intent trigger to the popup.
326
  *
327
  * @since JS 1.0.0
328
  */
329
+ $js_data['exitIndicatorClass'] = 'on-exit';
330
 
331
  /**
332
  * Class that can be added to any trigger element (e.g., to a link) to
335
  *
336
  * @since JS 1.2.3
337
  */
338
+ $js_data['hoverTriggerClass'] = 'on-hover';
339
 
340
  /**
341
  * Class that can be added to an trigger (e.g., to a link or button) to
345
  *
346
  * @since JS 1.2.3
347
  */
348
+ $js_data['clickTriggerClass'] = 'on-click';
349
 
350
  /**
351
  * Defines the delay for reacting to exit-intents.
354
  *
355
  * @since JS 1.0.0
356
  */
357
+ $js_data['onExitDelay'] = 2000;
358
 
359
  /**
360
  * Class to hide a popup on mobile devices.
362
  *
363
  * @since JS 1.0.0
364
  */
365
+ $js_data['notMobileClass'] = 'not-mobile';
366
 
367
  /**
368
  * Class to hide a popup on tablet devices.
370
  *
371
  * @since JS 1.0.0
372
  */
373
+ $js_data['notTabletClass'] = 'not-tablet';
374
 
375
  /**
376
  * Class to hide a popup on desktop devices.
378
  *
379
  * @since JS 1.0.0
380
  */
381
+ $js_data['notDesktopClass'] = 'not-desktop';
382
 
383
  /**
384
  * The parent container which holds all popups. For most Divi sites
389
  *
390
  * @since JS 1.0.0
391
  */
392
+ $js_data['baseContext'] = 'body';
393
 
394
  /**
395
  * This class is added to the foremost popup; this is useful to
397
  *
398
  * @since JS 1.0.0
399
  */
400
+ $js_data['activePopupClass'] = 'is-open';
401
 
402
  /**
403
  * This is the class-name of the close button that is
410
  *
411
  * @since JS 1.0.0
412
  */
413
+ $js_data['closeButtonClass'] = 'da-close';
414
 
415
  /**
416
  * Apply this class to a popup to add a loading animation in the background.
417
  *
418
  * @since JS 1.0.0
419
  */
420
+ $js_data['withLoaderClass'] = 'with-loader';
421
 
422
  /**
423
  * Display debug output in the JS console.
424
  *
425
  * @since JS 1.0.0
426
  */
427
+ $js_data['debug'] = defined( 'WP_DEBUG' ) ? WP_DEBUG : false;
428
 
429
  /* -- End of default configuration -- */
430
 
431
  // Compatibility with older Popups for Divi version.
432
  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
433
+ $js_data = apply_filters( 'evr_divi_popup-js_data', $js_data );
434
 
435
  // Divi Areas Pro filter.
436
+ $js_data = apply_filters( 'divi_areas_js_data', $js_data );
437
 
438
  /**
439
  * Additional debugging details to generate JS error reports.
512
 
513
  $loader = [];
514
 
515
+ /**
516
+ * Output the JS configuration before the loader.js contents.
517
+ *
518
+ * This line is used by the compatibility module!
519
+ *
520
+ * @see Popups_For_Divi_Compatibility::sg_optimizer_exclude_inline_content()
521
+ */
522
  $loader[] = sprintf(
523
  'window.DiviPopupData=window.DiviAreaConfig=%s',
524
  wp_json_encode( $js_config )
js/builder.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function i(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=e,i.c=t,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(o,a,function(t){return e[t]}.bind(null,a));return o},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=15)}({0:function(e,t,i){"use strict";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};!function(e){DiviArea.Utils=DiviArea.Utils||{};var t=!1;function i(t,i,o){var a,n;for(Array.isArray(t)&&(t=e(t).map(e.fn.toArray)),t=e(t),i=i.split(/\s+/),a=0;a<t.length;a++)for(n=0;n<i.length;n++)o(t[a],i[n])}DiviArea.Utils.getOption=function(e){var t=DiviAreaConfig[e],i=DiviArea.Utils.sanitizeHookName(e);return DiviArea.Hooks.silent().applyFilters("get_option_"+i,t)},DiviArea.Utils.toBool=function(e,t){return void 0===t&&(t=!0),void 0===e||null===e?!!t:!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||!!t))},DiviArea.Utils.toMilliseconds=function(e){var t,i=parseFloat(e,10),o=e.match(/m?s/);switch(o&&(o=o[0]),o){case"s":t=1e3*i;break;case"ms":t=i;break;default:t=0}return t},DiviArea.Utils.sanitizeHookName=function(e){return e.toLowerCase().replace(/-/g,"_").replace(/[^a-z0-9_]+/,"")},DiviArea.Utils.showOnViewport=function(t){var i=e(window).innerWidth();return i<768?t.getData("onmobile"):i<981?t.getData("ontablet"):t.getData("ondesktop")},DiviArea.Utils.isPosition=function(e,t){var i=e.offsetParent();return"HTML"!==i.prop("tagName")&&(t===i.css("position")||DiviArea.Utils.isPosition(i,t))},DiviArea.Utils.setLocalData=function(e,t,i){(!i||isNaN(i)||i<1)&&(i=525600);var o=DiviArea.Utils.sanitizeHookName(e);if(t=DiviArea.applyFilters("set_data",t,e),t=DiviArea.applyFilters("set_data_"+o,t,e),i=DiviArea.applyFilters("set_data_expire",i,e,t),i=DiviArea.applyFilters("set_data_expire_"+o,i,e,t),!(!1===t||i<=0))if(window.localStorage){var a=new Date;a=a.setMinutes(a.getMinutes()+i),localStorage.setItem("_da_"+e,a+":"+t)}else DiviArea.Utils.setCookie("_da_"+e,t,i)},DiviArea.Utils.getLocalData=function(e){var t=!1;if(window.localStorage){var i=localStorage.getItem("_da_"+e);if(i){var o=i.split(":"),a=parseInt(o.shift()),n=o.join(":");a>new Date?t=n:localStorage.removeItem("_da_"+e)}}else t=DiviArea.Utils.getCookie("_da_"+e);var r=DiviArea.Utils.sanitizeHookName(e);return t=DiviArea.applyFilters("get_data",t,e),t=DiviArea.applyFilters("get_data_"+r,t,e)},DiviArea.Utils.setCookie=function(e,t,i){var o=escape(t);if(i){var a=new Date;a.setMinutes(a.getMinutes()+i),o+="; expires="+a.toUTCString()}document.cookie=e+"="+o+"; path=/"},DiviArea.Utils.getCookie=function(e){var t,i,o,a=document.cookie.split(";");for(t=0;t<a.length;t++)if(i=a[t].substr(0,a[t].indexOf("=")),o=a[t].substr(a[t].indexOf("=")+1),(i=i.replace(/^\s+|\s+$/g,""))===e)return unescape(o);return!1},DiviArea.Utils.getWindow=function(t){return e.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)},DiviArea.Utils.getClientRect=function(t){var i={top:0,left:0,width:0,height:0,bottom:0,right:0};if(0===t.length)return i;var o,a=(t=t[0]).ownerDocument,n=a.documentElement;if(!e.contains(n,t))return i;if(e.support.getBoundingClientRect){try{o=t.getBoundingClientRect()}catch(e){}if(!o)return i;if(o.right===o.left&&o.top===o.bottom)return i;var r=DiviArea.Utils.getWindow(a);i.top=o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),i.left=o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0),i.width=o.right-o.left,i.height=o.bottom-o.top}else{if("none"===t.css("display"))return i;(i=t.offset()).width=t.outerWidth(),i.height=t.outerHeight()}return i.bottom=i.top+i.height,i.right=i.left+i.width,i},DiviArea.Utils.bindPassiveEvent=function(e,o,a){var n;n=!!t&&{passive:!1,capture:!1},i(e,o,function(e,t){e.addEventListener(t,a,n)})},DiviArea.Utils.unbindPassiveEvent=function(e,o,a){var n;n=!!t&&{passive:!1,capture:!1},i(e,o,function(e,t){e.removeEventListener(t,a,n)})},DiviArea.Utils.init=function(){var i={popupSelector:".et_pb_section.popup",fullWidthClass:"full-width",fullHeightClass:"full-height",openPopupClass:"da-overlay-visible",overlayClass:"da-overlay",modalIndicatorClass:"is-modal",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"};if(function(){try{var e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){t=!1}}(),e.support.getBoundingClientRect="getBoundingClientRect"in document.documentElement,window.DiviAreaConfig||(window.DiviAreaConfig=i),window.DiviPopupData)for(var o in DiviPopupData)DiviPopupData.hasOwnProperty(o)&&(DiviAreaConfig[o]=DiviPopupData[o]);for(var o in i)void 0===DiviAreaConfig[o]&&(DiviAreaConfig[o]=i[o]);for(var o in DiviAreaConfig)DiviAreaConfig[o].replace&&(DiviAreaConfig[o]=DiviAreaConfig[o].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,DiviAreaConfig=DiviArea.applyFilters("init_options",DiviAreaConfig)},DiviArea.Utils.initErrorLogging=function(e){var t=function(e,t,i){if(!e[t]||!e[t].__dm_orig__){var o=e[t];for(var a in e[t]=function(){var e=!1;try{e=i.apply(this,arguments)}finally{try{if(!e&&o)return o.apply(this,arguments)}catch(e){throw e}}},o)o.hasOwnProperty(a)&&(e[t][a]=o[a]);e[t].__dm_orig__=o}},i=function(){var e=!1;if(arguments[0]&&"[DiviAreas]"===arguments[0])return!1;for(var t=0;t<arguments.length;t++)if("object"===o(arguments[t])&&arguments[t]&&arguments[t].message&&arguments[t].stack){e=arguments[t];break}if(e){var i=[],a=e.stack.toString().split("\n");if(i.push("divimode.com Anonymized Error Report"),i.push("-".repeat(30)),i.push(e.name),e.message?i.push(e.message):i.push("-"),i.push(""),a&&a.length>1)for(var n=0;n<a.length;n++){var r=a[n];if(r.match(/(\/wp-includes\/|\/jquery\.js)/))break;r.match(/\.js/)&&(r=(r=(r=r.replace(/^\s+|\s+$/g,"")).replace(/https?:.*?\/wp-content/g,"")).replace(/\.js\?[\w=&_\-\.]*/g,".js"),i.push(r))}if(DiviArea.info&&(i.push(""),i.push("js api:"+DiviArea.info)),window.DiviAreaConfig&&DiviAreaConfig.sys&&DiviAreaConfig.sys.plugin)for(var s in i.push(""),DiviAreaConfig.sys)try{i.push(s+": "+DiviAreaConfig.sys[s])}catch(e){}i.push("-".repeat(30));var l=console.error.__dm_orig__||console.error;return console.log(""),l("✋ "+i.join("\n| ")),console.log(""),!0}return!1};t(e,"onerror",i),t(e.console,"error",i)}}(window.jQuery)},15:function(e,t,i){i(16),e.exports=i(18)},16:function(e,t,i){"use strict";var o=function(e){return e&&e.__esModule?e:{default:e}}(i(17));!function(){jQuery(window).on("et_fb_init",function(){window.DiviAreaVB=window.DiviAreaVB||new o.default}),function e(){window.DiviArea?(i(0),DiviArea.Utils.initErrorLogging(window)):window.setTimeout(e,100)}()}()},17:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,i,o){return i&&e(t.prototype,i),o&&e(t,o),t}}();var a=!1,n=!1,r=!1,s=!1,l={},d={module_id:"",module_class:"",da_is_popup:"off",da_popup_slug:"",da_exit_intent:"off",da_has_close:"on",da_alt_close:"off",da_dark_close:"off",da_not_modal:"on",da_is_singular:"off",da_with_loader:"off",da_has_shadow:"on",da_disable_devices:"off|off|off"},u=0,f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init=this.init.bind(this),window.setTimeout(this.init,20)}return o(e,[{key:"init",value:function(){if(window.ET_Builder){var e=(window._daConfig||{}).divi_areas_cpt||"divi-area";((((ET_Builder.Frames||{}).app||{}).ETBuilderBackendDynamic||{}).postType||"page")!==e&&this.startObserver()}else{if(!(++u<10))throw new Error("Could not initilize the Library (ET_Builder is undefined)");window.setTimeout(this.init,250)}}},{key:"startObserver",value:function(){var e=this;a&&this.stopObserver();var t=this.getAppFrame();if(t){var i=jQuery(t.document),o=this.sanitizeSlug;a=window.setInterval(function(){return e.observeAttribs()},200),i.on("blur.da",'input[name="module_id"], input[name="module_class"]',function(){e.observeClasses()}),i.on("blur.da",'input[name="da_popup_slug"]',function(){jQuery(this).val(o(jQuery(this).val()))})}else window.setTimeout(function(){return e.startObserver()},100)}},{key:"stopObserver",value:function(){if(a){var e=this.getAppFrame(),t=jQuery(e.document);window.clearInterval(a),t.off(".da",'input[name="module_id"], input[name="module_class"], input[name="da_popup_slug"]'),a=!1}}},{key:"observeAttribs",value:function(){var e=this.getApp();if(e&&e.state.activeModule&&e.state.activeModule.props&&"et_pb_section"===e.state.activeModule.props.type)for(var t=0;t<e.state.sections.length;t++){var i=e.state.sections[t],o=!1;this.compareSectionAttrs(i)&&(o=this.setSectionClasses(i)),o&&this.setSectionState(i,o)}}},{key:"observeClasses",value:function(){var e=this.getApp();if(e&&e.state)for(var t=0;t<e.state.sections.length;t++){var i=e.state.sections[t],o=!1;this.compareSectionClasses(i)&&(o=this.setSectionAttrs(i),o=this.setSectionClasses(o)),o&&this.setSectionState(i,o)}}},{key:"getAppFrame",value:function(){return!!(window.top.ET_Builder&&window.top.ET_Builder.Frames&&window.top.ET_Builder.Frames.top)&&window.top.ET_Builder.Frames.top}},{key:"getApp",value:function(){var e=this.getAppFrame();if(!e)return!1;var t=jQuery(e.document).find("#et-fb-app .place-top");if(!t||!t.length)return!1;if(!r||!t[0][r])for(var i in t[0])if(0===i.indexOf("__reactInternalInstance$")){n=i.substr(24),r="__reactInternalInstance$"+n;break}var o=t[0][r],a=this.getProp(o,["alternate","return","alternate","return","alternate","memoizedProps","_owner","alternate","memoizedState"]),s=this.getProp(o,["return","stateNode","setState"]);return!(!a||!s)&&{state:a,setState:s.bind(o.return.stateNode)}}},{key:"getProp",value:function(e,t){if(!t.length)return e;var i=t.shift();return!(!e||void 0===e[i])&&this.getProp(e[i],t)}},{key:"setSectionState",value:function(e,t){var i=this.getAppFrame();for(var o in d)e.attrs[o]!==t.attrs[o]&&(void 0===t.attrs[o]?delete e.attrs[o]:e.attrs[o]=t.attrs[o]);s&&window.clearTimeout(s),s=window.setTimeout(function(){s=!1;var e=document.createEvent("MouseEvents"),t=document.createEvent("MouseEvents"),o=i.jQuery(".et-fb-modal__resize")[0],a=i;o&&a&&(e.initMouseEvent("mousedown",!0,!0),t.initMouseEvent("mouseup",!0,!0),o.dispatchEvent(e),a.dispatchEvent(t))},50)}},{key:"compareSectionAttrs",value:function(e){var t=l[e.address],i=!1;for(var o in t||(i=!0,t={}),d)0===o.indexOf("da_")&&e.attrs[o]!==t[o]&&(i=!0,t[o]=e.attrs[o]);return i&&(l[e.address]=t),i}},{key:"compareSectionClasses",value:function(e){var t=l[e.address],i=!1;return t||(i=!0,t={}),void 0===t.module_id&&(t.module_id=""),void 0===t.module_class&&(t.module_class=""),e.attrs.module_id!==t.module_id&&(e.attrs.module_id||t.module_id)&&(i=!0,t.module_id=e.attrs.module_id),e.attrs.module_class!==t.module_class&&(e.attrs.module_class||t.module_class)&&(i=!0,t.module_class=e.attrs.module_class),i&&(l[e.address]=t),i}},{key:"sanitizeSlug",value:function(e){return"string"!=typeof e&&(e=""),e=(e=(e=(e=e.replace(/#/g,"")).replace(/[^a-zA-Z0-9\-_]/g,"-")).replace(/\-+/g,"-")).replace(/^\-+|\-+$/g,"")}},{key:"setSectionClasses",value:function(e){var t=JSON.parse(JSON.stringify(e)),i=(e.attrs.module_class||"").split(" "),o=e.attrs.da_is_popup||"off",a=e.attrs.da_popup_slug||"",n=e.attrs.da_exit_intent||"off",r=e.attrs.da_has_close||"on",s=e.attrs.da_alt_close||"off",d=e.attrs.da_dark_close||"off",u=e.attrs.da_not_modal||"on",f=e.attrs.da_is_singular||"off",p=e.attrs.da_with_loader||"off",c=e.attrs.da_has_shadow||"on",v=(e.attrs.da_disable_devices||"off|off|off").split("|"),_=["popup","on-exit","no-close","close-alt","dark","is-modal","single","with-loader","no-shadow","not-mobile","not-tablet","not-desktop"];return i=i.filter(function(e){return-1===_.indexOf(e)}),"on"===o&&(i.push("popup"),"on"===n&&i.push("on-exit"),"on"!==r?i.push("no-close"):("on"===s&&i.push("close-alt"),"on"===d&&i.push("dark")),"on"!==u&&i.push("is-modal"),"on"===f&&i.push("single"),"on"===p&&i.push("with-loader"),"on"!==c&&i.push("no-shadow"),"on"===v[0]&&i.push("not-mobile"),"on"===v[1]&&i.push("not-tablet"),"on"===v[2]&&i.push("not-desktop"),a&&(t.attrs.module_id=this.sanitizeSlug(a))),t.attrs.module_class=i.filter(function(e){return e}).join(" "),l[t.address].module_class=t.attrs.module_class,l[t.address].module_id=t.attrs.module_id,t}},{key:"setSectionAttrs",value:function(e){var t=JSON.parse(JSON.stringify(e)),i=this.sanitizeSlug(e.attrs.module_id),o=(e.attrs.module_class||"").split(" "),a=["off","off","off"];return t.attrs.da_is_popup=-1!==o.indexOf("popup")?"on":"off",t.attrs.da_has_close=-1===o.indexOf("no-close")?"on":"off",t.attrs.da_exit_intent=-1!==o.indexOf("on-exit")?"on":"off",t.attrs.da_alt_close=-1!==o.indexOf("close-alt")?"on":"off",t.attrs.da_dark_close=-1!==o.indexOf("dark")?"on":"off",t.attrs.da_not_modal=-1===o.indexOf("is-modal")?"on":"off",t.attrs.da_is_singular=-1!==o.indexOf("single")?"on":"off",t.attrs.da_with_loader=-1!==o.indexOf("with-loader")?"on":"off",t.attrs.da_has_shadow=-1===o.indexOf("no-shadow")?"on":"off",a[0]=-1!==o.indexOf("not-mobile")?"on":"off",a[1]=-1!==o.indexOf("not-tablet")?"on":"off",a[2]=-1!==o.indexOf("not-desktop")?"on":"off",t.attrs.da_disable_devices=a.join("|"),i&&(t.attrs.da_popup_slug=i),l[t.address].da_is_popup=t.attrs.da_is_popup,l[t.address].da_popup_slug=this.sanitizeSlug(t.attrs.da_popup_slug),l[t.address].da_has_close=t.attrs.da_has_close,l[t.address].da_exit_intent=t.attrs.da_exit_intent,l[t.address].da_alt_close=t.attrs.da_alt_close,l[t.address].da_dark_close=t.attrs.da_dark_close,l[t.address].da_not_modal=t.attrs.da_not_modal,l[t.address].da_is_singular=t.attrs.da_is_singular,l[t.address].da_has_shadow=t.attrs.da_has_shadow,l[t.address].da_disable_devices=t.attrs.da_disable_devices,l[t.address].da_with_loader=t.attrs.da_with_loader,t}}]),e}();t.default=f},18:function(e,t,i){}});
1
+ !function(e){var t={};function i(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=e,i.c=t,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(o,a,function(t){return e[t]}.bind(null,a));return o},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=15)}({0:function(e,t,i){"use strict";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};!function(e){DiviArea.Utils=DiviArea.Utils||{};var t=!1;function i(t,i,o){var a,n;for(Array.isArray(t)&&(t=e(t).map(e.fn.toArray)),t=e(t),i=i.split(/\s+/),a=0;a<t.length;a++)for(n=0;n<i.length;n++)o(t[a],i[n])}DiviArea.Utils.getOption=function(e){var t=DiviAreaConfig[e],i=DiviArea.Utils.sanitizeHookName(e);return DiviArea.Hooks.silent().applyFilters("get_option_"+i,t)},DiviArea.Utils.toBool=function(e,t){return void 0===t&&(t=!0),void 0===e||null===e?!!t:!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||!!t))},DiviArea.Utils.toMilliseconds=function(e){var t,i=parseFloat(e,10),o=e.match(/m?s/);switch(o&&(o=o[0]),o){case"s":t=1e3*i;break;case"ms":t=i;break;default:t=0}return t},DiviArea.Utils.sanitizeHookName=function(e){return e.toLowerCase().replace(/-/g,"_").replace(/[^a-z0-9_]+/,"")},DiviArea.Utils.showOnViewport=function(t){var i=e(window).innerWidth();return i<768?t.getData("onmobile"):i<981?t.getData("ontablet"):t.getData("ondesktop")},DiviArea.Utils.isPosition=function(e,t){var i=e.offsetParent();return"HTML"!==i.prop("tagName")&&(t===i.css("position")||DiviArea.Utils.isPosition(i,t))},DiviArea.Utils.setLocalData=function(e,t,i){(!i||isNaN(i)||i<1)&&(i=525600);var o=DiviArea.Utils.sanitizeHookName(e);if(t=DiviArea.applyFilters("set_data",t,e),t=DiviArea.applyFilters("set_data_"+o,t,e),i=DiviArea.applyFilters("set_data_expire",i,e,t),i=DiviArea.applyFilters("set_data_expire_"+o,i,e,t),!(!1===t||i<=0))if(window.localStorage){var a=new Date;a=a.setMinutes(a.getMinutes()+i),localStorage.setItem("_da_"+e,a+":"+t)}else DiviArea.Utils.setCookie("_da_"+e,t,i)},DiviArea.Utils.getLocalData=function(e){var t=!1;if(window.localStorage){var i=localStorage.getItem("_da_"+e);if(i){var o=i.split(":"),a=parseInt(o.shift()),n=o.join(":");a>new Date?t=n:localStorage.removeItem("_da_"+e)}}else t=DiviArea.Utils.getCookie("_da_"+e);var r=DiviArea.Utils.sanitizeHookName(e);return t=DiviArea.applyFilters("get_data",t,e),t=DiviArea.applyFilters("get_data_"+r,t,e)},DiviArea.Utils.setCookie=function(e,t,i){var o=escape(t);if(i){var a=new Date;a.setMinutes(a.getMinutes()+i),o+="; expires="+a.toUTCString()}document.cookie=e+"="+o+"; path=/"},DiviArea.Utils.getCookie=function(e){var t,i,o,a=document.cookie.split(";");for(t=0;t<a.length;t++)if(i=a[t].substr(0,a[t].indexOf("=")),o=a[t].substr(a[t].indexOf("=")+1),(i=i.replace(/^\s+|\s+$/g,""))===e)return unescape(o);return!1},DiviArea.Utils.getWindow=function(t){return e.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)},DiviArea.Utils.getClientRect=function(t){var i={top:0,left:0,width:0,height:0,bottom:0,right:0};if(0===t.length)return i;var o,a=(t=t[0]).ownerDocument,n=a.documentElement;if(!e.contains(n,t))return i;if(e.support.getBoundingClientRect){try{o=t.getBoundingClientRect()}catch(e){}if(!o)return i;if(o.right===o.left&&o.top===o.bottom)return i;var r=DiviArea.Utils.getWindow(a);i.top=o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),i.left=o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0),i.width=o.right-o.left,i.height=o.bottom-o.top}else{if("none"===t.css("display"))return i;(i=t.offset()).width=t.outerWidth(),i.height=t.outerHeight()}return i.bottom=i.top+i.height,i.right=i.left+i.width,i},DiviArea.Utils.bindPassiveEvent=function(e,o,a){var n;n=!!t&&{passive:!1,capture:!1},i(e,o,function(e,t){e.addEventListener(t,a,n)})},DiviArea.Utils.unbindPassiveEvent=function(e,o,a){var n;n=!!t&&{passive:!1,capture:!1},i(e,o,function(e,t){e.removeEventListener(t,a,n)})},DiviArea.Utils.init=function(){var i={popupSelector:".et_pb_section.popup",fullWidthClass:"full-width",fullHeightClass:"full-height",openPopupClass:"da-overlay-visible",overlayClass:"da-overlay",modalIndicatorClass:"is-modal",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"},o="";if(function(){try{var e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){t=!1}}(),e.support.getBoundingClientRect="getBoundingClientRect"in document.documentElement,window.DiviAreaConfig||(window.DiviAreaConfig=i),window.DiviPopupData)for(o in DiviPopupData)DiviPopupData.hasOwnProperty(o)&&(DiviAreaConfig[o]=DiviPopupData[o]);for(o in i)void 0===DiviAreaConfig[o]&&(DiviAreaConfig[o]=i[o]);for(o in DiviAreaConfig)DiviAreaConfig[o].replace&&(DiviAreaConfig[o]=DiviAreaConfig[o].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 t=function(e,t,i){if(!e[t]||!e[t].__dm_orig__){var o=e[t],a=void 0;for(var n in e[t]=function(){var e=!1;try{e=i.apply(this,arguments)}finally{!e&&o&&(a=o.apply(this,arguments))}return a},o)o.hasOwnProperty(n)&&(e[t][n]=o[n]);e[t].__dm_orig__=o}},i=function(){var e=!1;if(arguments[0]&&"[DiviAreas]"===arguments[0])return!1;for(var t=0;t<arguments.length;t++)if("object"===o(arguments[t])&&arguments[t]&&arguments[t].message&&arguments[t].stack){e=arguments[t];break}if(e){var i=[],a=e.stack.toString().split("\n");if(i.push("divimode.com Anonymized Error Report"),i.push("-".repeat(30)),i.push(e.name),e.message?i.push(e.message):i.push("-"),i.push(""),a&&a.length>1)for(var n=0;n<a.length;n++){var r=a[n];if(r.match(/(\/wp-includes\/|\/jquery\.js)/))break;r.match(/\.js/)&&(r=(r=(r=r.replace(/^\s+|\s+$/g,"")).replace(/https?:.*?\/wp-content/g,"")).replace(/\.js\?[\w=&_\-\.]*/g,".js"),i.push(r))}if(DiviArea.info&&(i.push(""),i.push("js api:"+DiviArea.info)),window.DiviAreaConfig&&DiviAreaConfig.sys&&DiviAreaConfig.sys.plugin)for(var s in i.push(""),DiviAreaConfig.sys)try{i.push(s+": "+DiviAreaConfig.sys[s])}catch(e){}i.push("-".repeat(30));var l=console.error.__dm_orig__||console.error;return console.log(""),l("✋ "+i.join("\n| ")),console.log(""),!0}return!1};t(e,"onerror",i),t(e.console,"error",i)}}(window.jQuery)},15:function(e,t,i){i(16),e.exports=i(18)},16:function(e,t,i){"use strict";var o=function(e){return e&&e.__esModule?e:{default:e}}(i(17));!function(){jQuery(window).on("et_fb_init",function(){window.DiviAreaVB=window.DiviAreaVB||new o.default}),function e(){window.DiviArea?(i(0),DiviArea.Utils.initErrorLogging(window)):window.setTimeout(e,100)}()}()},17:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,i,o){return i&&e(t.prototype,i),o&&e(t,o),t}}();var a=!1,n=!1,r=!1,s=!1,l={},d={module_id:"",module_class:"",da_is_popup:"off",da_popup_slug:"",da_exit_intent:"off",da_has_close:"on",da_alt_close:"off",da_dark_close:"off",da_not_modal:"on",da_is_singular:"off",da_with_loader:"off",da_has_shadow:"on",da_disable_devices:"off|off|off"},u=0,f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init=this.init.bind(this),window.setTimeout(this.init,20)}return o(e,[{key:"init",value:function(){if(window.ET_Builder){var e=(window._daConfig||{}).divi_areas_cpt||"divi-area";((((ET_Builder.Frames||{}).app||{}).ETBuilderBackendDynamic||{}).postType||"page")!==e&&this.startObserver()}else{if(!(++u<10))throw new Error("Could not initilize the Library (ET_Builder is undefined)");window.setTimeout(this.init,250)}}},{key:"startObserver",value:function(){var e=this;a&&this.stopObserver();var t=this.getAppFrame();if(t){var i=jQuery(t.document),o=this.sanitizeSlug;a=window.setInterval(function(){return e.observeAttribs()},200),i.on("blur.da",'input[name="module_id"], input[name="module_class"]',function(){e.observeClasses()}),i.on("blur.da",'input[name="da_popup_slug"]',function(){jQuery(this).val(o(jQuery(this).val()))})}else window.setTimeout(function(){return e.startObserver()},100)}},{key:"stopObserver",value:function(){if(a){var e=this.getAppFrame(),t=jQuery(e.document);window.clearInterval(a),t.off(".da",'input[name="module_id"], input[name="module_class"], input[name="da_popup_slug"]'),a=!1}}},{key:"observeAttribs",value:function(){var e=this.getApp();if(e&&e.state.activeModule&&e.state.activeModule.props&&"et_pb_section"===e.state.activeModule.props.type)for(var t=0;t<e.state.sections.length;t++){var i=e.state.sections[t],o=!1;this.compareSectionAttrs(i)&&(o=this.setSectionClasses(i)),o&&this.setSectionState(i,o)}}},{key:"observeClasses",value:function(){var e=this.getApp();if(e&&e.state)for(var t=0;t<e.state.sections.length;t++){var i=e.state.sections[t],o=!1;this.compareSectionClasses(i)&&(o=this.setSectionAttrs(i),o=this.setSectionClasses(o)),o&&this.setSectionState(i,o)}}},{key:"getAppFrame",value:function(){return!!(window.top.ET_Builder&&window.top.ET_Builder.Frames&&window.top.ET_Builder.Frames.top)&&window.top.ET_Builder.Frames.top}},{key:"getApp",value:function(){var e=this.getAppFrame();if(!e)return!1;var t=jQuery(e.document).find("#et-fb-app .place-top");if(!t||!t.length)return!1;if(!r||!t[0][r])for(var i in t[0])if(0===i.indexOf("__reactInternalInstance$")){n=i.substr(24),r="__reactInternalInstance$"+n;break}var o=t[0][r],a=this.getProp(o,["alternate","return","alternate","return","alternate","memoizedProps","_owner","alternate","memoizedState"]),s=this.getProp(o,["return","stateNode","setState"]);return!(!a||!s)&&{state:a,setState:s.bind(o.return.stateNode)}}},{key:"getProp",value:function(e,t){if(!t.length)return e;var i=t.shift();return!(!e||void 0===e[i])&&this.getProp(e[i],t)}},{key:"setSectionState",value:function(e,t){var i=this.getAppFrame();for(var o in d)e.attrs[o]!==t.attrs[o]&&(void 0===t.attrs[o]?delete e.attrs[o]:e.attrs[o]=t.attrs[o]);s&&window.clearTimeout(s),s=window.setTimeout(function(){s=!1;var e=document.createEvent("MouseEvents"),t=document.createEvent("MouseEvents"),o=i.jQuery(".et-fb-modal__resize")[0],a=i;o&&a&&(e.initMouseEvent("mousedown",!0,!0),t.initMouseEvent("mouseup",!0,!0),o.dispatchEvent(e),a.dispatchEvent(t))},50)}},{key:"compareSectionAttrs",value:function(e){var t=l[e.address],i=!1;for(var o in t||(i=!0,t={}),d)0===o.indexOf("da_")&&e.attrs[o]!==t[o]&&(i=!0,t[o]=e.attrs[o]);return i&&(l[e.address]=t),i}},{key:"compareSectionClasses",value:function(e){var t=l[e.address],i=!1;return t||(i=!0,t={}),void 0===t.module_id&&(t.module_id=""),void 0===t.module_class&&(t.module_class=""),e.attrs.module_id!==t.module_id&&(e.attrs.module_id||t.module_id)&&(i=!0,t.module_id=e.attrs.module_id),e.attrs.module_class!==t.module_class&&(e.attrs.module_class||t.module_class)&&(i=!0,t.module_class=e.attrs.module_class),i&&(l[e.address]=t),i}},{key:"sanitizeSlug",value:function(e){return"string"!=typeof e&&(e=""),e=(e=(e=(e=e.replace(/#/g,"")).replace(/[^a-zA-Z0-9\-_]/g,"-")).replace(/\-+/g,"-")).replace(/^\-+|\-+$/g,"")}},{key:"setSectionClasses",value:function(e){var t=JSON.parse(JSON.stringify(e)),i=(e.attrs.module_class||"").split(" "),o=e.attrs.da_is_popup||"off",a=e.attrs.da_popup_slug||"",n=e.attrs.da_exit_intent||"off",r=e.attrs.da_has_close||"on",s=e.attrs.da_alt_close||"off",d=e.attrs.da_dark_close||"off",u=e.attrs.da_not_modal||"on",f=e.attrs.da_is_singular||"off",p=e.attrs.da_with_loader||"off",c=e.attrs.da_has_shadow||"on",v=(e.attrs.da_disable_devices||"off|off|off").split("|"),_=["popup","on-exit","no-close","close-alt","dark","is-modal","single","with-loader","no-shadow","not-mobile","not-tablet","not-desktop"];return i=i.filter(function(e){return-1===_.indexOf(e)}),"on"===o&&(i.push("popup"),"on"===n&&i.push("on-exit"),"on"!==r?i.push("no-close"):("on"===s&&i.push("close-alt"),"on"===d&&i.push("dark")),"on"!==u&&i.push("is-modal"),"on"===f&&i.push("single"),"on"===p&&i.push("with-loader"),"on"!==c&&i.push("no-shadow"),"on"===v[0]&&i.push("not-mobile"),"on"===v[1]&&i.push("not-tablet"),"on"===v[2]&&i.push("not-desktop"),a&&(t.attrs.module_id=this.sanitizeSlug(a))),t.attrs.module_class=i.filter(function(e){return e}).join(" "),l[t.address].module_class=t.attrs.module_class,l[t.address].module_id=t.attrs.module_id,t}},{key:"setSectionAttrs",value:function(e){var t=JSON.parse(JSON.stringify(e)),i=this.sanitizeSlug(e.attrs.module_id),o=(e.attrs.module_class||"").split(" "),a=["off","off","off"];return t.attrs.da_is_popup=-1!==o.indexOf("popup")?"on":"off",t.attrs.da_has_close=-1===o.indexOf("no-close")?"on":"off",t.attrs.da_exit_intent=-1!==o.indexOf("on-exit")?"on":"off",t.attrs.da_alt_close=-1!==o.indexOf("close-alt")?"on":"off",t.attrs.da_dark_close=-1!==o.indexOf("dark")?"on":"off",t.attrs.da_not_modal=-1===o.indexOf("is-modal")?"on":"off",t.attrs.da_is_singular=-1!==o.indexOf("single")?"on":"off",t.attrs.da_with_loader=-1!==o.indexOf("with-loader")?"on":"off",t.attrs.da_has_shadow=-1===o.indexOf("no-shadow")?"on":"off",a[0]=-1!==o.indexOf("not-mobile")?"on":"off",a[1]=-1!==o.indexOf("not-tablet")?"on":"off",a[2]=-1!==o.indexOf("not-desktop")?"on":"off",t.attrs.da_disable_devices=a.join("|"),i&&(t.attrs.da_popup_slug=i),l[t.address].da_is_popup=t.attrs.da_is_popup,l[t.address].da_popup_slug=this.sanitizeSlug(t.attrs.da_popup_slug),l[t.address].da_has_close=t.attrs.da_has_close,l[t.address].da_exit_intent=t.attrs.da_exit_intent,l[t.address].da_alt_close=t.attrs.da_alt_close,l[t.address].da_dark_close=t.attrs.da_dark_close,l[t.address].da_not_modal=t.attrs.da_not_modal,l[t.address].da_is_singular=t.attrs.da_is_singular,l[t.address].da_has_shadow=t.attrs.da_has_shadow,l[t.address].da_disable_devices=t.attrs.da_disable_devices,l[t.address].da_with_loader=t.attrs.da_with_loader,t}}]),e}();t.default=f},18:function(e,t,i){}});
js/front.js CHANGED
@@ -1 +1 @@
1
- !function(e){var i={};function t(a){if(i[a])return i[a].exports;var r=i[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=i,t.d=function(e,i,a){t.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,i){if(1&i&&(e=t(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var r in e)t.d(a,r,function(i){return e[i]}.bind(null,r));return a},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},t.p="",t(t.s=4)}([function(e,i,t){"use strict";var a="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};!function(e){DiviArea.Utils=DiviArea.Utils||{};var i=!1;function t(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),void 0===e||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 t<768?i.getData("onmobile"):t<981?i.getData("ontablet"):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.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,a,r){var o;o=!!i&&{passive:!1,capture:!1},t(e,a,function(e,i){e.addEventListener(i,r,o)})},DiviArea.Utils.unbindPassiveEvent=function(e,a,r){var o;o=!!i&&{passive:!1,capture:!1},t(e,a,function(e,i){e.removeEventListener(i,r,o)})},DiviArea.Utils.init=function(){var t={popupSelector:".et_pb_section.popup",fullWidthClass:"full-width",fullHeightClass:"full-height",openPopupClass:"da-overlay-visible",overlayClass:"da-overlay",modalIndicatorClass:"is-modal",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"};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(var a in DiviPopupData)DiviPopupData.hasOwnProperty(a)&&(DiviAreaConfig[a]=DiviPopupData[a]);for(var a in t)void 0===DiviAreaConfig[a]&&(DiviAreaConfig[a]=t[a]);for(var 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,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];for(var r in e[i]=function(){var e=!1;try{e=t.apply(this,arguments)}finally{try{if(!e&&a)return a.apply(this,arguments)}catch(e){throw e}}},a)a.hasOwnProperty(r)&&(e[i][r]=a[r]);e[i].__dm_orig__=a}},t=function(){var e=!1;if(arguments[0]&&"[DiviAreas]"===arguments[0])return!1;for(var i=0;i<arguments.length;i++)if("object"===a(arguments[i])&&arguments[i]&&arguments[i].message&&arguments[i].stack){e=arguments[i];break}if(e){var t=[],r=e.stack.toString().split("\n");if(t.push("divimode.com Anonymized Error Report"),t.push("-".repeat(30)),t.push(e.name),e.message?t.push(e.message):t.push("-"),t.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"),t.push(n))}if(DiviArea.info&&(t.push(""),t.push("js api:"+DiviArea.info)),window.DiviAreaConfig&&DiviAreaConfig.sys&&DiviAreaConfig.sys.plugin)for(var s in t.push(""),DiviAreaConfig.sys)try{t.push(s+": "+DiviAreaConfig.sys[s])}catch(e){}t.push("-".repeat(30));var l=console.error.__dm_orig__||console.error;return console.log(""),l("✋ "+t.join("\n| ")),console.log(""),!0}return!1};i(e,"onerror",t),i(e.console,"error",t)}}(window.jQuery)},,,,function(e,i,t){t(5),e.exports=t(14)},function(e,i,t){"use strict";t(0),t(6),t(7),t(8),t(9),t(10),t(11),t(12),t(13),DiviArea.init(!1)},function(e,i,t){"use strict";var a="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};function r(e){if(Array.isArray(e)){for(var i=0,t=Array(e.length);i<e.length;i++)t[i]=e[i];return t}return Array.from(e)}window.DiviAreaItem=function(e,i){var t=jQuery,o=window.ResizeObserver||window.WebKitResizeObserver,n=t(e),s={},l={hideclose:!1,showclose:!0,notmobile:!1,onmobile:!0,nottablet:!1,ontablet:!0,notdesktop:!1,ondesktop:!0,closealt:!1,notmodal:!0,ismodal:!1,triggerexit:!1,shadow:!0,noshadow:!1,darkmode:!1,singleton:!1,static:!1},d={hideclose:"showclose",notdesktop:"ondesktop",notmobile:"onmobile",notmodal:"ismodal",nottablet:"ontablet",shadow:"noshadow",dynamic:"static"},c=null,v=null,u=0,p=null,f=null;function D(){for(var e in s._id=n.attr("id"),s._key=DiviArea.Utils.sanitizeHookName(s._id),s._type=w(i),s._inDom=this.isType("inline"),s._isVisible=!1,DiviArea.Debug.debug("Area Type",this.theType()),DiviArea.Debug.debug("Area ID",this.theId()),DiviArea.Debug.debug("Area Hook",this.theKey()),k(n),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"),l)void 0!==n.data("da-"+e)?(this.setData(DiviArea.Utils.toBool(n.data("da-"+e))),n.removeAttr("data-da-"+e)):void 0!==n.data(e)?(this.setData(DiviArea.Utils.toBool(n.data(e))),n.removeAttr("data-"+e)):this.setData(e,l[e]);var a={};for(var r in a[DiviArea.Utils.getOption("notMobileClass")]=["onmobile",!1],a[DiviArea.Utils.getOption("notTabletClass")]=["ontablet",!1],a[DiviArea.Utils.getOption("notDesktopClass")]=["ondesktop",!1],a[DiviArea.Utils.getOption("noCloseClass")]=["showclose",!1],a[DiviArea.Utils.getOption("withCloseClass")]=["showclose",!0],a[DiviArea.Utils.getOption("altCloseClass")]=["closealt",!0],a[DiviArea.Utils.getOption("modalIndicatorClass")]=["ismodal",!0],a[DiviArea.Utils.getOption("exitIndicatorClass")]=["triggerexit",!0],a[DiviArea.Utils.getOption("noShadowClass")]=["noshadow",!0],a[DiviArea.Utils.getOption("darkModeClass")]=["darkmode",!0],a[DiviArea.Utils.getOption("singletonClass")]=["singleton",!0],a[DiviArea.Utils.getOption("withLoaderClass")]=["withloader",!0],a)if(n.hasClass(r)){var d=a[r];this.setData(d[0],d[1]),n.removeClass(r)}DiviArea.UI.initializeAreaAnimation(n),b(),y(),o&&(p=new o(function(e){var i=n[0].scrollHeight-n[0].clientHeight;i>0&&i-n[0].scrollTop<1&&(n[0].scrollTop-=1)},{box:"border-box"}))}function A(){var e={},i={};n.attr("data-da-type",this.theType()),n.attr("data-da-registered",1),n.attr("data-da-close-btn",this.getData("showclose")?"yes":"no"),n.attr("data-da-loader",this.getData("withLoader")?"yes":"no"),n.attr("data-da-shadow",this.getData("shadow")?"yes":"no"),n.attr("data-da-color",this.getData("darkMode")?"dark":"light"),n.attr("data-da-close-bg",this.getData("closeAlt")?"none":"solid");var t=this.getData("wrapClasses");t&&c.addClass(t),c.attr("data-da-type",this.theType()),this.isType("inline")||this.isType("hover")?(c.removeAttr("data-da-position"),c.removeAttr("data-da-positionh"),c.removeAttr("data-da-positionv")):(c.attr("data-da-position",this.getData("position")),c.attr("data-da-positionh",this.getData("positionh")),c.attr("data-da-positionv",this.getData("positionv"))),this.getData("maxheight")&&(e.overflow="auto",e.maxHeight=this.getData("maxheight")),this.getData("maxwidth")&&(e.maxWidth=this.getData("maxwidth")),this.inDom()&&(i.zIndex=this.getData("zindex")),n.css(e),c.css(i),this.doAction("refresh_area")}function g(){var e=this;if(this.isVisible()){n.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};n.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da").on("click.da",function(e){return i(e,"custom")}),v.off(".da").on("click.da",function(e){return i(e,"default")}),this.addAction("close_area",C)}else n.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da"),v.off(".da"),this.removeAction("close_area")}function h(e){this.isVisible()?this.getData("hasShowAnim")&&(DiviArea.Debug.info("✨ Animate the area (show)",this.theId()),DiviArea.UI.animateArea(this,"show",e)):this.getData("hasShowAnim")&&(DiviArea.Debug.info("✨ Animate the area (hide)",this.theId()),DiviArea.UI.animateArea(this,"hide",e))}function b(){if(!v){var e=DiviArea.Utils.getOption("closeButtonClass"),i=e+"-wrap";v=t("<span>").addClass(i).appendTo(n),t("<a>").attr("href","#close").addClass(e).html("&times;").appendTo(v),this.doAction("area_close_button",v,this)}}function y(){if(!c){var e=DiviArea.Utils.getOption("popupWrapperClass");(c=n.parent()).hasClass(e)||(n.wrap("<div>"),(c=n.parent()).addClass(e)),k(c),this.doAction("area_wrap",c,this)}}function m(){u&&clearTimeout(u),u=setTimeout(function(){A(),u=0},20)}function w(e){return e.toLowerCase().trim().replace(/-/,"")}function C(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 _(e){var i=this,t=n.attr("style"),a=function(){n.attr("style",t).hide(),window.setTimeout(e,1)};this.isType("inline")||this.getData("maxwidth")?a():(n.attr("style","opacity:0!important;transition:none!important;display:block!important"),window.setTimeout(function(){var e=!1,t=!1;(e=n.hasClass("et_pb_section")?n:n.find(".et_pb_section").length?n.find(".et_pb_section"):n.children())&&e.length&&(t=e.first().outerWidth()),t&&!isNaN(t)?(i.setData("maxwidth",t.toString()+"px"),DiviArea.Debug.debug("Auto max-width calculated:",i.getData("maxwidth"),i.theId())):(i.setData("maxwidth","1080px"),DiviArea.Debug.debug("Could not calculate max-width for",i.theId())),a()},40))}function k(e){var i=this;e.data("is-area",!0),e.data("area",this),e.data("area-config",s),e.getArea=function(){return i}}function x(){}this.theId=function(){return"#"+s._id},this.theKey=function(){return s._key},this.theType=function(){return s._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 "+(void 0===e?"undefined":a(e)));if((e=w(e))===s._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*/),r=0;r<t.length;r++)if(t[r]===s._type)return!i;return i},this.get=function(e){return e?t(e,n):n},this.getWrap=function(){return c},this.attach=function(){var e=this;if(!this.inDom()){s._inDom=!0;var i=this.findHook();if(n.hide(),i){var t=i.data("area-place"),a=i;"after"===t?a=i.next():"replace"===t&&(f=i.next().detach()),a.after(c.detach())}else c.detach().appendTo(this.getData("container"));_(function(){e.setVisible(!0,function(){if(p){var e=DiviArea.Utils.getOption("closeButtonClass")+"-wrap";n.children().each(function(i,t){-1===t.className.indexOf(e)&&p.observe(t)})}})})}},this.detach=function(){if(this.inDom()){s._inDom=!1;var e=this.findHook();p&&p.disconnect(),this.setVisible(!1,function(){n.hide(),c.detach(),f&&(e.after(f),f=null)})}},this.findHook=function(){var e='[data-area-hook="'+this.getData("postId")+'"]',i=t(e);return!!i.length&&i},this.setVisible=function(e,i){e=!!e,s._isVisible!==e&&("function"!=typeof i&&(i=x),s._isVisible=e,g(),h(i),this.isVisible()?this.doAction("show_area"):this.doAction("hide_area"))},this.setTriggerEvent=function(e){var i=!1;e&&(e.delegateTarget?i=e.delegateTarget:e.target&&(i=e.target)),this.setData("attachto",i),DiviArea.Debug.debug("Attached to element:",i||"(none)")},this.isVisible=function(){return s._isVisible},this.inDom=function(){return s._inDom},this.getSize=function(){var e={width:0,height:0};return this.isVisible()&&(e.width=n[0].clientWidth,e.height=n[0].clientHeight),e},this.getData=function(e){var i;return e=e.toLowerCase().replace(/[^a-z0-9]/,""),d.hasOwnProperty(e)?(e=d[e],i=!s[e]):i=s[e],i},this.setData=function(e,i){if(void 0!==i){if(e=e.toLowerCase().replace(/[^a-z0-9]/,""),l.hasOwnProperty(e))i=DiviArea.Utils.toBool(i,l[e]),d.hasOwnProperty(e)&&(e=d[e],i=!i);else switch(e){case"zindex":i=parseInt(i);break;case"closedelay":i=parseFloat(i);break;case"position":-1!==i.indexOf("top")?s.positionv="top":-1!==i.indexOf("bottom")?s.positionv="bottom":s.positionv="center",-1!==i.indexOf("left")?s.positionh="left":-1!==i.indexOf("right")?s.positionh="right":s.positionh="center",i=s.positionv+"-"+s.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(s[e]=i,e){case"positionh":case"positionv":s.position=s.positionv+"-"+s.positionh}m()}},this.doAction=function(e){for(var i,t=arguments.length,a=Array(t>1?t-1:0),o=1;o<t;o++)a[o-1]=arguments[o];a.length||(a=[this]),(i=DiviArea).doAction.apply(i,[[e,e+"_"+this.theKey()]].concat(r(a)))},this.applyFilters=function(e,i){for(var t=arguments.length,a=Array(t>2?t-2:0),o=2;o<t;o++)a[o-2]=arguments[o];var n;return a.length||(a=[this]),(n=DiviArea).applyFilters.apply(n,[[e,e+"_"+this.theKey()],i].concat(r(a)))},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=n.hasClass.bind(n),this.addClass=n.addClass.bind(n),this.removeClass=n.removeClass.bind(n),this.attr=n.attr.bind(n),this.removeAttr=n.removeAttr.bind(n),this.find=n.find.bind(n),D=D.bind(this),A=A.bind(this),g=g.bind(this),h=h.bind(this),m=m.bind(this),y=y.bind(this),b=b.bind(this),C=C.bind(this),_=_.bind(this),k=k.bind(this),D()}},function(e,i,t){"use strict";!function(e){DiviArea.init=function(i){var t=[window.location.protocol,"//",window.location.host,"/wp-admin/edit.php?post_type=divi-area&page=settings#frontend"];this.app=i?"Divi Areas Pro":"Popups for Divi",this.lib=i?"DiviArea":"DiviPopup",this.version="1.2.3",this.info=this.lib+"-"+this.version,this.loaded=!0,DiviArea.Debug.info("🚀 Initialize "+this.app,"- JS API:",this.info),i?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")?e(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(i){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments[2];if(!(i=DiviArea.Data.sanitizeId(i)))return!1;var r=DiviArea.getArea(i);if(r)return r;var o=e(i);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}DiviArea.Debug.group("Register Area | "+a+" | "+i);var l=DiviArea.Data.createArea(o,a,i);return t.alternateid?DiviArea.Data.addAltId(l.theId(),t.alternateid):t.alternateId?DiviArea.Data.addAltId(l.theId(),t.alternateId):t.ids&&DiviArea.Data.addAltId(l.theId(),t.ids),delete t.alternateid,delete t.alternateId,delete t.ids,Object.keys(t).forEach(function(e){l.setData(e,t[e])}),l.setData("wrap-classes","et-l"),l.isType("inline")&&l.getData("static")?(DiviArea.Core.initContainer(l),DiviArea.show(i)):(l.detach(),l.setData("container",DiviArea.Core.getContext())),DiviArea.Debug.info("➕ Registered new area:",i,"("+a+")"),DiviArea.Debug.group(),l.doAction("init_area"),l},DiviArea.show=function(e,i){var t=DiviArea.getArea(e);return t?DiviArea.Utils.showOnViewport(t)?(DiviArea.Debug.group("Show area",t.theId()),t.setData("hasShowAnim",!t.isVisible()),DiviArea.Core.attachArea(t),t.isType("hover")&&(t.setTriggerEvent(i),DiviArea.Core.setupHoverArea(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),DiviArea.Debug.debug("Close area and unlink event handlers:",i.theId()),DiviArea.Core.detachArea(i)),DiviArea.Core.reOrderAreas()}}(jQuery)},function(e,i,t){"use strict";!function(e){DiviArea.Core=DiviArea.Core||{};var i=window.ResizeObserver||window.WebKitResizeObserver,t=null,a=null,r=!1,o=!1;function n(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 s(e){if(27===e.keyCode)return function(){DiviArea.Debug.info("⚡️ ESC-key pressed");var e=!1;return DiviArea.Data.countVisibleAreas("popup")?(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 l(){var e=["popup","flyin"];for(var i in e){var t=!1;DiviArea.Data.loopAllAreas(e[i],function(e,i){t||e.getData("triggerexit")&&(DiviArea.isClosed(i)?e.setData("triggerexit",!1):DiviArea.show(i)&&(e.setData("triggerexit",!1),t=!0))})}}function d(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 c(){var i=parseInt(e("html").css("marginTop")),t=e(window).innerWidth(),a=e(window).innerHeight();DiviArea.Data.loopVisibleAreas("any",function(e){var r,o,n=e.getWrap(),s=e.get();e.isType("inline")||(o=isNaN(s[0].scrollHeight)?s.outerHeight():s[0].scrollHeight,r=isNaN(s[0].scrollWidth)?s.outerWidth():s[0].scrollWidth,t<=r+20?n.addClass(DiviArea.Utils.getOption("fullWidthClass")):n.removeClass(DiviArea.Utils.getOption("fullWidthClass")),(e.isType("popup")?a-o:a-i-o)<=20?n.addClass(DiviArea.Utils.getOption("fullHeightClass")):n.removeClass(DiviArea.Utils.getOption("fullHeightClass")))})}function v(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("mouseover._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 u(i){var t=e(i.target).closest("[data-da-type][id]");return!(!t.length||!t.parent().hasClass("full-height"))||(i.preventDefault(),i.stopPropagation(),!1)}DiviArea.Core.init=function(){r?DiviArea.Debug.error("Core.init() was already executed. It should not run twice, please review the code!"):(r=!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"></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",l)},DiviArea.Utils.getOption("onExitDelay")),DiviArea.addAction("ready",function(){DiviArea.addAction("close_area",n),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){var n=new i(function(e,i){return e[0].addedNodes.length?o():e[0].removedNodes.length?o():void 0});n.observe(a[0],{childList:!0,subtree:!0})}else t&&(a.addEventListener("DOMNodeInserted",o,!1),a.addEventListener("DOMNodeRemoved",o,!1))}(DiviArea.Core.activateContainer),e(window).resize(c),e(document).on("keyup",s)},1),DiviArea.addAction("ready",function(){DiviArea.Core.activateContainer()},10),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")?(s=e+i-t+ ++o,a.hasClass(DiviArea.Utils.getOption("activePopupClass"))&&(n.overlay=s,s+=1)):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),window.setTimeout(c,50)}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=void 0===i,r=void 0;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-registered]").filter("[id]").each(function(){var i=e(this);DiviArea.Debug.debug("Found an inline Popup Area:",i.attr("id")),DiviArea.register(i,{},"popup")})}(i),(t=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-registered")||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(a?DiviArea.Debug.group("Activate all triggers in document"):DiviArea.Debug.group("Activate triggers in area",i.attr("id")),r=0;r<t.length;r++){var o=t[r];v(o.item,o.id)}DiviArea.Debug.group()}else a?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"),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)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{var i=jQuery('script[src*="google.com/recaptcha/api.js"]').attr("src"),t=i.replace(/^.*render=(.*)$/,"$1").split("&")[0];grecaptcha.execute(t,{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){o||(o=!0,d("show",e),o=!1),DiviArea.Data.addVisibleArea(e),e.attach()},DiviArea.Core.detachArea=function(e){if(o||(o=!0,d("hide",e),o=!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&&(!function(e){a&&!e.data("observe-resize")&&(a.observe(e[0]),e.data("observe-resize",!0))}(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&&(!function(e){a&&e.data("observe-resize")&&(a.unobserve(e[0]),e.data("observe-resize",!1))}(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){var i=!0,t=!1,a=void 0;try{for(var r,o=e[Symbol.iterator]();!(i=(r=o.next()).done);i=!0){var n=r.value.contentRect,s=n.width+"-"+n.height;s!==v&&(v=s,f())}}catch(e){t=!0,a=e}finally{try{!i&&o.return&&o.return()}finally{if(t)throw a}}},{box:"border-box"})),u&&u.observe(a[0]),"click"===l?e(document).on("click."+t.theKey(),function(i){e(i.target).closest(s).length||D()}):"hover"===l&&(r.on("mouseleave._dah",D),a.on("mouseleave._dah",D)),a.on("mouseenter._dah",A),r.on("mouseenter._dah",A),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),f()}function f(){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 D(){A(),c=window.setTimeout(function(){u&&u.disconnect(),e(document).off("."+t.theKey()),r.off("._dah"),a.off("._dah"),DiviArea.hide(t)},d)}function A(){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",u),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",u),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,i,t){"use strict";!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)}}}(window.jQuery)},function(e,i,t){"use strict";!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(e,i,t){"use strict";!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=t.attr("data-animation"),r=!1;if(!a)return!1;if(!(r=e[a]))return!1;jQuery("body").css("overflow-x","hidden"),jQuery("#page-container").css("overflow-y","hidden"),t.attr({"data-animation-style":r.style,"data-animation-repeat":"once"===r.repeat?"":"infinite","data-animation-duration":r.duration,"data-animation-delay":r.delay,"data-animation-intensity":r.intensity,"data-animation-starting-opacity":r.starting_opacity,"data-animation-speed-curve":r.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,f=0;f<v.length;f++){var D=v[f];if(i&&i.substr(0,D.length)===D){u=D,""!==(p=i.substr(D.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(e,i,t){"use strict";!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.appVersion||!1),e.push("\n----------\n"),e.join("\n")}}(),function(){var e=!0,i={};i.silent=DiviArea.Hooks.silent,i.removeFilter=DiviArea.Hooks.removeFilter,i.removeAction=DiviArea.Hooks.removeAction,i.applyFilters=DiviArea.Hooks.applyFilters,i.doAction=DiviArea.Hooks.doAction,i.addFilter=DiviArea.Hooks.addFilter,i.addAction=DiviArea.Hooks.addAction,i.addActionOnce=DiviArea.Hooks.addActionOnce,DiviArea.Hooks.silent=function(){return e=!1,i.silent.apply(this,arguments)},DiviArea.removeFilter=DiviArea.Hooks.removeFilter=function(t){return e&&DiviArea.Debug.debug("Remove Filter:",t),e=!0,i.removeFilter.apply(this,arguments)},DiviArea.removeAction=DiviArea.Hooks.removeAction=function(t){return e&&DiviArea.Debug.debug("Remove Action:",t),e=!0,i.removeAction.apply(this,arguments)},DiviArea.applyFilters=DiviArea.Hooks.applyFilters=function(t){if(e){Array.isArray(t)||(t=[t]),DiviArea.Debug.info("📢️ Apply Filters:",t.join(" → "));for(var a=0;a<t.length;a++)DiviArea.Debug.debug(' ⚙ DiviArea.addFilter("'+t[a]+'", callback)')}return e=!0,i.applyFilters.apply(this,arguments)},DiviArea.doAction=DiviArea.Hooks.doAction=function(t){if(e){Array.isArray(t)||(t=[t]),DiviArea.Debug.info("📢️ Do Action:",t.join(" → "));for(var a=0;a<t.length;a++)DiviArea.Debug.debug(' ⚙ DiviArea.addAction("'+t[a]+'", callback)')}return e=!0,i.doAction.apply(this,arguments)},DiviArea.addFilter=DiviArea.Hooks.addFilter=function(t){return e&&DiviArea.Debug.debug("Add Filter:",t),e=!0,i.addFilter.apply(this,arguments)},DiviArea.addAction=DiviArea.Hooks.addAction=function(t){return e&&DiviArea.Debug.debug("Add Action:",t),e=!0,i.addAction.apply(this,arguments)},DiviArea.addActionOnce=DiviArea.Hooks.addActionOnce=function(t){return e&&DiviArea.Debug.debug("Add Action Once:",t),e=!0,i.addActionOnce.apply(this,arguments)}}()},function(e,i,t){"use strict";var a="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};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 r=DiviArea.getArea(e);if(r)if("object"!==(void 0===i?"undefined":a(i)))r.setData(i,t);else for(var o in i)i.hasOwnProperty(o)&&r.setData(o,i[o])},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},function(e,i,t){}]);
1
+ !function(e){var i={};function t(a){if(i[a])return i[a].exports;var r=i[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=i,t.d=function(e,i,a){t.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,i){if(1&i&&(e=t(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var r in e)t.d(a,r,function(i){return e[i]}.bind(null,r));return a},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},t.p="",t(t.s=4)}([function(e,i,t){"use strict";var a="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};!function(e){DiviArea.Utils=DiviArea.Utils||{};var i=!1;function t(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),void 0===e||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 t<768?i.getData("onmobile"):t<981?i.getData("ontablet"):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.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,a,r){var o;o=!!i&&{passive:!1,capture:!1},t(e,a,function(e,i){e.addEventListener(i,r,o)})},DiviArea.Utils.unbindPassiveEvent=function(e,a,r){var o;o=!!i&&{passive:!1,capture:!1},t(e,a,function(e,i){e.removeEventListener(i,r,o)})},DiviArea.Utils.init=function(){var t={popupSelector:".et_pb_section.popup",fullWidthClass:"full-width",fullHeightClass:"full-height",openPopupClass:"da-overlay-visible",overlayClass:"da-overlay",modalIndicatorClass:"is-modal",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=!1;if(arguments[0]&&"[DiviAreas]"===arguments[0])return!1;for(var i=0;i<arguments.length;i++)if("object"===a(arguments[i])&&arguments[i]&&arguments[i].message&&arguments[i].stack){e=arguments[i];break}if(e){var t=[],r=e.stack.toString().split("\n");if(t.push("divimode.com Anonymized Error Report"),t.push("-".repeat(30)),t.push(e.name),e.message?t.push(e.message):t.push("-"),t.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"),t.push(n))}if(DiviArea.info&&(t.push(""),t.push("js api:"+DiviArea.info)),window.DiviAreaConfig&&DiviAreaConfig.sys&&DiviAreaConfig.sys.plugin)for(var s in t.push(""),DiviAreaConfig.sys)try{t.push(s+": "+DiviAreaConfig.sys[s])}catch(e){}t.push("-".repeat(30));var l=console.error.__dm_orig__||console.error;return console.log(""),l("✋ "+t.join("\n| ")),console.log(""),!0}return!1};i(e,"onerror",t),i(e.console,"error",t)}}(window.jQuery)},,,,function(e,i,t){t(5),e.exports=t(14)},function(e,i,t){"use strict";t(0),t(6),t(7),t(8),t(9),t(10),t(11),t(12),t(13),DiviArea.init(!1)},function(e,i,t){"use strict";var a="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};function r(e){if(Array.isArray(e)){for(var i=0,t=Array(e.length);i<e.length;i++)t[i]=e[i];return t}return Array.from(e)}window.DiviAreaItem=function(e,i){var t=jQuery,o=window.ResizeObserver||window.WebKitResizeObserver,n=t(e),s={},l={hideclose:!1,showclose:!0,notmobile:!1,onmobile:!0,nottablet:!1,ontablet:!0,notdesktop:!1,ondesktop:!0,closealt:!1,notmodal:!0,ismodal:!1,triggerexit:!1,shadow:!0,noshadow:!1,darkmode:!1,singleton:!1,static:!1},d={hideclose:"showclose",notdesktop:"ondesktop",notmobile:"onmobile",notmodal:"ismodal",nottablet:"ontablet",shadow:"noshadow",dynamic:"static"},c=null,u=null,v=0,p=null,f=null;function D(){for(var e in s._id=n.attr("id"),s._key=DiviArea.Utils.sanitizeHookName(s._id),s._type=w(i),s._inDom=n.closest(document.documentElement).length,s._isVisible=s._inDom&&n[0].getClientRects().length,DiviArea.Debug.debug("Area Type",this.theType()),DiviArea.Debug.debug("Area ID",this.theId()),DiviArea.Debug.debug("Area Hook",this.theKey()),x(n),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"),l)void 0!==n.data("da-"+e)?(this.setData(DiviArea.Utils.toBool(n.data("da-"+e))),n.removeAttr("data-da-"+e)):void 0!==n.data(e)?(this.setData(DiviArea.Utils.toBool(n.data(e))),n.removeAttr("data-"+e)):this.setData(e,l[e]);var a={};for(var r in a[DiviArea.Utils.getOption("notMobileClass")]=["onmobile",!1],a[DiviArea.Utils.getOption("notTabletClass")]=["ontablet",!1],a[DiviArea.Utils.getOption("notDesktopClass")]=["ondesktop",!1],a[DiviArea.Utils.getOption("noCloseClass")]=["showclose",!1],a[DiviArea.Utils.getOption("withCloseClass")]=["showclose",!0],a[DiviArea.Utils.getOption("altCloseClass")]=["closealt",!0],a[DiviArea.Utils.getOption("modalIndicatorClass")]=["ismodal",!0],a[DiviArea.Utils.getOption("exitIndicatorClass")]=["triggerexit",!0],a[DiviArea.Utils.getOption("noShadowClass")]=["noshadow",!0],a[DiviArea.Utils.getOption("darkModeClass")]=["darkmode",!0],a[DiviArea.Utils.getOption("singletonClass")]=["singleton",!0],a[DiviArea.Utils.getOption("withLoaderClass")]=["withloader",!0],a)if(n.hasClass(r)){var d=a[r];this.setData(d[0],d[1]),n.removeClass(r)}DiviArea.UI.initializeAreaAnimation(n),y(),b(),o&&(p=new o(function(e){var i=n[0].scrollHeight-n[0].clientHeight;i>0&&i-n[0].scrollTop<1&&(n[0].scrollTop-=1),k()},{box:"border-box"}))}function g(){var e={},i={};n.attr("data-da-area",this.theId()),c.attr("data-da-registered",1),c.attr("data-da-type",this.theType()),c.attr("data-da-close-btn",this.getData("showclose")?"yes":"no"),c.attr("data-da-close-bg",this.getData("closeAlt")?"none":"solid"),c.attr("data-da-loader",this.getData("withLoader")?"yes":"no"),c.attr("data-da-shadow",this.getData("shadow")?"yes":"no"),c.attr("data-da-color",this.getData("darkMode")?"dark":"light");var t=this.getData("wrapClasses");t&&c.addClass(t),this.isType("inline")||this.isType("hover")?(c.removeAttr("data-da-position"),c.removeAttr("data-da-positionh"),c.removeAttr("data-da-positionv")):(c.attr("data-da-position",this.getData("position")),c.attr("data-da-positionh",this.getData("positionh")),c.attr("data-da-positionv",this.getData("positionv"))),this.getData("maxheight")&&(e.overflow="auto",e.maxHeight=this.getData("maxheight")),this.getData("maxwidth")&&(e.maxWidth=this.getData("maxwidth")),this.inDom()&&(i.zIndex=this.getData("zindex")),n.css(e),c.css(i),this.doAction("refresh_area")}function A(){var e=this;if(this.isVisible()){n.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};c.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da").on("click.da",function(e){return i(e,"custom")}),u.find("a").off(".da").on("click.da",function(e){return i(e,"default")}),t(window).on("resize",k),this.addAction("close_area",C)}else c.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da"),u.find("a").off(".da"),t(window).off("resize",k),this.removeAction("close_area")}function h(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")&&u.show(),e()})}}else this.getData("hasShowAnim")&&(u.hide(),DiviArea.Debug.info("✨ Animate the area (hide)",this.theId()),DiviArea.UI.animateArea(this,"hide",e))}function b(){if(!u){var e=DiviArea.Utils.getOption("closeButtonClass"),i=e+"-wrap";u=t("<span>").addClass(i).appendTo(c),t("<a>").attr("href","#close").addClass(e).html("&times;").appendTo(u),u.hide(),this.doAction("area_close_button",u,this)}}function y(){if(!c){var e=DiviArea.Utils.getOption("popupWrapperClass");(c=n.parent()).hasClass(e)||(n.wrap("<div>"),(c=n.parent()).addClass(e)),x(c),this.doAction("area_wrap",c,this)}}function m(){v&&clearTimeout(v),v=setTimeout(function(){g(),v=0},20)}function w(e){return e.toLowerCase().trim().replace(/-/,"")}function C(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 _(e){var i=this,t=n.attr("style"),a=function(){n.attr("style",t).hide(),window.setTimeout(e,1)};this.isType("inline")||this.getData("maxwidth")?a():(n.attr("style","opacity:0!important;transition:none!important;display:block!important"),window.setTimeout(function(){var e=!1,t=!1;(e=n.hasClass("et_pb_section")?n:n.find(".et_pb_section").length?n.find(".et_pb_section"):n.children())&&e.length&&(t=e.first().outerWidth()),t&&!isNaN(t)?(i.setData("maxwidth",t.toString()+"px"),DiviArea.Debug.debug("Auto max-width calculated:",i.getData("maxwidth"),i.theId())):(i.setData("maxwidth","1080px"),DiviArea.Debug.debug("Could not calculate max-width for",i.theId())),a()},40))}function k(){if(this.isVisible()){var e=this.getSize();u.css({width:e.width,height:e.height});var i,a,r=parseInt(t("html").css("marginTop")),o=window.innerWidth,n=window.innerHeight;i=o-e.contentWidth,a=this.isType("popup")?n-e.contentHeight:n-r-e.contentHeight,i<=20?c.attr("data-da-size-full-width")||(c.attr("data-da-size-full-width",1),c.addClass(DiviArea.Utils.getOption("fullWidthClass"))):c.attr("data-da-size-full-width")&&(c.removeAttr("data-da-size-full-width"),c.removeClass(DiviArea.Utils.getOption("fullWidthClass"))),a<=20?c.attr("data-da-size-full-height")||(c.attr("data-da-size-full-height",1),c.addClass(DiviArea.Utils.getOption("fullHeightClass"))):c.attr("data-da-size-full-height")&&(c.removeAttr("data-da-size-full-height"),c.removeClass(DiviArea.Utils.getOption("fullHeightClass")))}}function x(e){var i=this;e.data("is-area",!0),e.data("area",this),e.data("area-config",s),e.getArea=function(){return i}}function O(){}this.theId=function(){return"#"+s._id},this.theKey=function(){return s._key},this.theType=function(){return s._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 "+(void 0===e?"undefined":a(e)));if((e=w(e))===s._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*/),r=0;r<t.length;r++)if(t[r]===s._type)return!i;return i},this.get=function(e){return e?t(e,n):n},this.getWrap=function(){return c},this.attach=function(){var e=this;if(!this.inDom()){s._inDom=!0;var i=this.findHook();if(n.hide(),i){var t=i.data("area-place"),a=i;"after"===t?a=i.next():"replace"===t&&(f=i.next().detach()),a.after(c.detach())}else c.detach().appendTo(this.getData("container"));c.closest("#et-boc").length||c.wrap('<div id="et-boc">'),_(function(){e.setVisible(!0,function(){if(p){var e=DiviArea.Utils.getOption("closeButtonClass")+"-wrap";n.children().each(function(i,t){-1===t.className.indexOf(e)&&p.observe(t)}),p.observe(n[0])}})})}},this.detach=function(){if(this.inDom()){s._inDom=!1;var e=this.findHook();p&&p.disconnect(),this.setVisible(!1,function(){var i=c.parent();n.hide(),c.detach(),"et-boc"!==i.attr("id")||i.children().length||i.remove(),f&&(e.after(f),f=null)})}},this.findHook=function(){var e='[data-area-hook="'+this.getData("postId")+'"]',i=t(e);return!!i.length&&i},this.setVisible=function(e,i){e=!!e,s._isVisible!==e&&("function"!=typeof i&&(i=O),s._isVisible=e,A(),h(i),this.isVisible()?this.doAction("show_area"):this.doAction("hide_area"))},this.setTriggerEvent=function(e){var i=!1;e&&(e.delegateTarget?i=e.delegateTarget:e.target&&(i=e.target)),this.setData("attachto",i),DiviArea.Debug.debug("Attached to element:",i||"(none)")},this.isVisible=function(){return s._isVisible},this.inDom=function(){return s._inDom},this.getSize=function(){var e={width:0,height:0,contentWidth:0,contentHeight:0};return this.isVisible()&&(e.width=n[0].clientWidth,e.height=n[0].clientHeight,e.contentWidth=n[0].scrollWidth||e.width,e.contentHeight=n[0].scrollHeight||e.height),e},this.getData=function(e){var i;return e=e.toLowerCase().replace(/[^a-z0-9]/,""),d.hasOwnProperty(e)?(e=d[e],i=!s[e]):i=s[e],i},this.setData=function(e,i){if(void 0!==i){if(e=e.toLowerCase().replace(/[^a-z0-9]/,""),l.hasOwnProperty(e))i=DiviArea.Utils.toBool(i,l[e]),d.hasOwnProperty(e)&&(e=d[e],i=!i);else switch(e){case"zindex":i=parseInt(i);break;case"closedelay":i=parseFloat(i);break;case"position":-1!==i.indexOf("top")?s.positionv="top":-1!==i.indexOf("bottom")?s.positionv="bottom":s.positionv="center",-1!==i.indexOf("left")?s.positionh="left":-1!==i.indexOf("right")?s.positionh="right":s.positionh="center",i=s.positionv+"-"+s.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(s[e]=i,e){case"positionh":case"positionv":s.position=s.positionv+"-"+s.positionh}m()}},this.doAction=function(e){for(var i,t=arguments.length,a=Array(t>1?t-1:0),o=1;o<t;o++)a[o-1]=arguments[o];a.length||(a=[this]),(i=DiviArea).doAction.apply(i,[[e,e+"_"+this.theKey()]].concat(r(a)))},this.applyFilters=function(e,i){for(var t=arguments.length,a=Array(t>2?t-2:0),o=2;o<t;o++)a[o-2]=arguments[o];var n;return a.length||(a=[this]),(n=DiviArea).applyFilters.apply(n,[[e,e+"_"+this.theKey()],i].concat(r(a)))},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=n.hasClass.bind(n),this.addClass=n.addClass.bind(n),this.removeClass=n.removeClass.bind(n),this.attr=n.attr.bind(n),this.removeAttr=n.removeAttr.bind(n),this.find=n.find.bind(n),D=D.bind(this),g=g.bind(this),A=A.bind(this),h=h.bind(this),m=m.bind(this),y=y.bind(this),b=b.bind(this),C=C.bind(this),_=_.bind(this),k=k.bind(this),x=x.bind(this),D()}},function(e,i,t){"use strict";!function(e){DiviArea.init=function(i){var t=[window.location.protocol,"//",window.location.host,"/wp-admin/edit.php?post_type=divi-area&page=settings#frontend"];this.app=i?"Divi Areas Pro":"Popups for Divi",this.lib=i?"DiviArea":"DiviPopup",this.version="1.2.4",this.info=this.lib+"-"+this.version,this.loaded=!0,DiviArea.Debug.info("🚀 Initialize "+this.app,"- JS API:",this.info),i?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")?e(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(i){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(i=DiviArea.Data.sanitizeId(i)))return!1;var r=DiviArea.getArea(i);if(r)return r;var o=e(i);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}DiviArea.Debug.group("Register Area | "+a+" | "+i);var l=DiviArea.Data.createArea(o,a,i);return t.alternateid?DiviArea.Data.addAltId(l.theId(),t.alternateid):t.alternateId?DiviArea.Data.addAltId(l.theId(),t.alternateId):t.ids&&DiviArea.Data.addAltId(l.theId(),t.ids),delete t.alternateid,delete t.alternateId,delete t.ids,Object.keys(t).forEach(function(e){l.setData(e,t[e])}),l.setData("wrap-classes","et-l entry-content"),l.isType("inline")&&l.getData("static")?(DiviArea.Core.initContainer(l),DiviArea.show(i)):(l.detach(),l.setData("container",DiviArea.Core.getContext())),DiviArea.Debug.info("➕ Registered new area:",i,"("+a+")"),DiviArea.Debug.group(),l.doAction("init_area"),l},DiviArea.show=function(e,i){var t=DiviArea.getArea(e);return t?DiviArea.Utils.showOnViewport(t)?(DiviArea.Debug.group("Show area",t.theId()),t.setData("hasShowAnim",!t.isVisible()),DiviArea.Core.attachArea(t),t.isType("hover")&&(t.setTriggerEvent(i),DiviArea.Core.setupHoverArea(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),DiviArea.Debug.debug("Close area and unlink event handlers:",i.theId()),DiviArea.Core.detachArea(i)),DiviArea.Core.reOrderAreas()}}(jQuery)},function(e,i,t){"use strict";!function(e){DiviArea.Core=DiviArea.Core||{};var i=window.ResizeObserver||window.WebKitResizeObserver,t=null,a=null,r=!1,o=!1;function n(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 s(e){if(27===e.keyCode)return function(){DiviArea.Debug.info("⚡️ ESC-key pressed");var e=!1;return DiviArea.Data.countVisibleAreas("popup")?(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 l(){var e=["popup","flyin"],i=!1;function t(e,t){i||e.getData("triggerexit")&&(DiviArea.isClosed(t)?e.setData("triggerexit",!1):DiviArea.show(t)&&(e.setData("triggerexit",!1),i=!0))}for(var a in e)i=!1,DiviArea.Data.loopAllAreas(e[a],t)}function d(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 c(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("mouseover._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 u(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(){r?DiviArea.Debug.error("Core.init() was already executed. It should not run twice, please review the code!"):(r=!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"></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",l)},DiviArea.Utils.getOption("onExitDelay")),DiviArea.addAction("ready",function(){DiviArea.addAction("close_area",n),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){var n=new i(function(e,i){if(e[0].addedNodes.length||e[0].removedNodes.length)return o()});n.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",s)},1),DiviArea.addAction("ready",function(){DiviArea.Core.activateContainer()},10),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")?(s=e+i-t+ ++o,a.hasClass(DiviArea.Utils.getOption("activePopupClass"))&&(n.overlay=s,s+=1)):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=void 0===i,r=void 0;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),(t=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,u=i.classPrefix?"."+i.classPrefix+o:"",v=i.dataAttrib?i.dataAttrib+'="'+o+'"':"";if(s(o,e('[href="'+l+'"]',t)),d&&s(o,e('[href="'+d+'"]',t)),s(o,e(c,t)),u&&s(o,e(u,t)),v&&s(o,e("["+v+"]",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(a?DiviArea.Debug.group("Activate all triggers in document"):DiviArea.Debug.group("Activate triggers in area",i.attr("id")),r=0;r<t.length;r++){var o=t[r];c(o.item,o.id)}DiviArea.Debug.group()}else a?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"),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"),t=i.replace(/^.*render=(.*)$/,"$1").split("&")[0];grecaptcha.execute(t,{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){o||(o=!0,d("show",e),o=!1),DiviArea.Data.addVisibleArea(e),e.attach()},DiviArea.Core.detachArea=function(e){if(o||(o=!0,d("hide",e),o=!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&&(!function(e){a&&!e.data("observe-resize")&&(a.observe(e[0]),e.data("observe-resize",!0))}(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&&(!function(e){a&&e.data("observe-resize")&&(a.unobserve(e[0]),e.data("observe-resize",!1))}(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,u=!1,v=!1;i&&(v=new i(function(e){var i=!0,t=!1,a=void 0;try{for(var r,o=e[Symbol.iterator]();!(i=(r=o.next()).done);i=!0){var n=r.value.contentRect,s=n.width+"-"+n.height;s!==u&&(u=s,f())}}catch(e){t=!0,a=e}finally{try{!i&&o.return&&o.return()}finally{if(t)throw a}}},{box:"border-box"})),v&&v.observe(a[0]),"click"===l?e(document).on("click."+t.theKey(),function(i){e(i.target).closest(s).length||D()}):"hover"===l&&(r.on("mouseleave._dah",D),a.on("mouseleave._dah",D)),a.on("mouseenter._dah",g),r.on("mouseenter._dah",g),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),f()}function f(){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 D(){g(),c=window.setTimeout(function(){v&&v.disconnect(),e(document).off("."+t.theKey()),r.off("._dah"),a.off("._dah"),DiviArea.hide(t)},d)}function g(){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",u),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",u),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,i,t){"use strict";!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)}}}(window.jQuery)},function(e,i,t){"use strict";!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(e,i,t){"use strict";!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=t.attr("data-animation"),r=!1;if(!a)return!1;if(!(r=e[a]))return!1;jQuery("body").css("overflow-x","hidden"),jQuery("#page-container").css("overflow-y","hidden"),t.attr({"data-animation-style":r.style,"data-animation-repeat":"once"===r.repeat?"":"infinite","data-animation-duration":r.duration,"data-animation-delay":r.delay,"data-animation-intensity":r.intensity,"data-animation-starting-opacity":r.starting_opacity,"data-animation-speed-curve":r.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),u=["slide","zoom","flip","fold","roll"],v=!1,p=!1,f=0;f<u.length;f++){var D=u[f];if(i&&i.substr(0,D.length)===D){v=D,""!==(p=i.substr(D.length,i.length))&&(p=p.toLowerCase());break}}!1!==v&&!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}(v,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(e,i,t){"use strict";!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")}}(),function(){var e=!0,i={};i.silent=DiviArea.Hooks.silent,i.removeFilter=DiviArea.Hooks.removeFilter,i.removeAction=DiviArea.Hooks.removeAction,i.applyFilters=DiviArea.Hooks.applyFilters,i.doAction=DiviArea.Hooks.doAction,i.addFilter=DiviArea.Hooks.addFilter,i.addAction=DiviArea.Hooks.addAction,i.addActionOnce=DiviArea.Hooks.addActionOnce,DiviArea.Hooks.silent=function(){return e=!1,i.silent.apply(this,arguments)},DiviArea.removeFilter=DiviArea.Hooks.removeFilter=function(t){return e&&DiviArea.Debug.debug("Remove Filter:",t),e=!0,i.removeFilter.apply(this,arguments)},DiviArea.removeAction=DiviArea.Hooks.removeAction=function(t){return e&&DiviArea.Debug.debug("Remove Action:",t),e=!0,i.removeAction.apply(this,arguments)},DiviArea.applyFilters=DiviArea.Hooks.applyFilters=function(t){if(e){Array.isArray(t)||(t=[t]),DiviArea.Debug.info("📢️ Apply Filters:",t.join(" → "));for(var a=0;a<t.length;a++)DiviArea.Debug.debug(' ⚙ DiviArea.addFilter("'+t[a]+'", callback)')}return e=!0,i.applyFilters.apply(this,arguments)},DiviArea.doAction=DiviArea.Hooks.doAction=function(t){if(e){Array.isArray(t)||(t=[t]),DiviArea.Debug.info("📢️ Do Action:",t.join(" → "));for(var a=0;a<t.length;a++)DiviArea.Debug.debug(' ⚙ DiviArea.addAction("'+t[a]+'", callback)')}return e=!0,i.doAction.apply(this,arguments)},DiviArea.addFilter=DiviArea.Hooks.addFilter=function(t){return e&&DiviArea.Debug.debug("Add Filter:",t),e=!0,i.addFilter.apply(this,arguments)},DiviArea.addAction=DiviArea.Hooks.addAction=function(t){return e&&DiviArea.Debug.debug("Add Action:",t),e=!0,i.addAction.apply(this,arguments)},DiviArea.addActionOnce=DiviArea.Hooks.addActionOnce=function(t){return e&&DiviArea.Debug.debug("Add Action Once:",t),e=!0,i.addActionOnce.apply(this,arguments)}}()},function(e,i,t){"use strict";var a="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};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 r=DiviArea.getArea(e);if(r)if("object"!==(void 0===i?"undefined":a(i)))r.setData(i,t);else for(var o in i)i.hasOwnProperty(o)&&r.setData(o,i[o])},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},function(e,i,t){}]);
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.0
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.0' );
44
 
45
  define( 'DIVI_POPUP_PLUGIN_FILE', __FILE__ );
46
  define( 'DIVI_POPUP_PLUGIN', plugin_basename( DIVI_POPUP_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.1
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.1' );
44
 
45
  define( 'DIVI_POPUP_PLUGIN_FILE', __FILE__ );
46
  define( 'DIVI_POPUP_PLUGIN', plugin_basename( DIVI_POPUP_PLUGIN_FILE ) );
readme.txt CHANGED
@@ -178,6 +178,19 @@ Attention: The JS API changes! Developers, please first read https://divimode.co
178
 
179
  == Changelog ==
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  = 2.2.0 =
182
  * Change: Fully refactored JS API that is documented on https://divimode.com/knowledge-base/
183
  * Change: Some CSS class names have changed, e.g. "evr_fb_popup_modal" is now "da-overlay"
@@ -200,8 +213,6 @@ Attention: The JS API changes! Developers, please first read https://divimode.co
200
 
201
  Here is a full list of all API changes in this update: https://divimode.com/api-1-2-0-changes/
202
 
203
- Plugin tested with WordPress 5.4.2 and Divi 4.4.8
204
-
205
  = 2.1.1 =
206
  * Change JS API does not include deprecated function `observe()`! Use `addAction()` or `addFilter()` instead
207
  * Improve the JS API further and expose additional functions
178
 
179
  == Changelog ==
180
 
181
+ = 2.2.1 =
182
+ * Fix: The close button does not trigger any scrollbars when hovered
183
+ * Fix: Popups are now always hidden when the page loads - in some cases, Popups inside Headers/Footers were visible right when the page loaded
184
+ * Fix: Click inside an open Popup does not try to re-open that Popup - i.e., fixed the "flickering issue."
185
+ * Fix: Accordions and other interactive elements inside Areas are working again
186
+ * Fix: Plugin is compatible with Gravity Forms 2.4.18+
187
+ * Fix: Bullet lists now display bullets inside Popups
188
+ * Improve: Plugin now plays nice with SG Optimizer and WP Rocket
189
+ * Improve: The close button is now outside the Popup container and can be positioned anywhere, via CSS
190
+ * Improve: Minor performance optimizations in the JS code
191
+
192
+ Plugin tested with WordPress 5.4.2 and Divi 4.4.8
193
+
194
  = 2.2.0 =
195
  * Change: Fully refactored JS API that is documented on https://divimode.com/knowledge-base/
196
  * Change: Some CSS class names have changed, e.g. "evr_fb_popup_modal" is now "da-overlay"
213
 
214
  Here is a full list of all API changes in this update: https://divimode.com/api-1-2-0-changes/
215
 
 
 
216
  = 2.1.1 =
217
  * Change JS API does not include deprecated function `observe()`! Use `addAction()` or `addFilter()` instead
218
  * Improve the JS API further and expose additional functions