Popups for Divi - Version 2.3.0

Version Description

Download this release

Release Info

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

Code changes from version 2.2.5 to 2.3.0

changelog.txt CHANGED
@@ -1,4 +1,22 @@
1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  = Version 2.2.5 =
3
  * Improve: We have made the Visual Builder integration (the "Popup-Tab") faster and more stable.
4
  * Improve: Do not include the JS API for certain 404 results, such as missing images.
1
 
2
+ = Version 2.3.0 =
3
+ * Improve: Popups do not cover the Admin Toolbar anymore for logged in users.
4
+ * Change: New JS action to customize Area positioning - `position_boundary`
5
+ * Change: When a Popup is visible, a new CSS class is added to the body tag.
6
+ * Change: Rename some files and folders to comply with the naming conventions of Divi.
7
+ * Fix: Sections in Visual Builder are not randomly renamed to "Popup - #undefined" anymore.
8
+ * Fix: Exit-Intent Popups do not need a Popup ID (but it's still recommended to add one).
9
+ * Fix: More robust plugin initialization. Popups will work, even when Divi does not initialize correctly.
10
+ * Fix: Divis Theme Builder could sometimes miss Area layout settings, that's a thing of the past.
11
+ * Fix: Open the Divi Lightbox in front of Popups.
12
+ * Fix: The `background-repeat` CSS rule is now correctly applied to the background image of a Popup section.
13
+ * Fix: Fix issue with calculation of size and position, caused by certain Row settings.
14
+ * Fix: Fix a rare issue on iOS that would reload the website when a Popup was triggered.
15
+ * Fix: Rare ReCaptcha bug that happened when no site_key was present for some reason.
16
+ * Fix: Forminator ReCaptcha is supported inside Popups.
17
+ * Fix: CF7 ReCaptcha is supported inside Popups.
18
+ * Fix: Layout compatibility with wpDataTables.
19
+
20
  = Version 2.2.5 =
21
  * Improve: We have made the Visual Builder integration (the "Popup-Tab") faster and more stable.
22
  * Improve: Do not include the JS API for certain 404 results, such as missing images.
css/builder.css DELETED
@@ -1 +0,0 @@
1
- .popup{display:none;box-shadow:0 3px 10px -1px rgba(0,0,0,.3),0 0 20px 2px rgba(0,0,0,.2);min-width:360px;max-width:95%}#et-fb-app .et_pb_section.popup{display:block;background-color:#fff;margin:30px auto;overflow:visible;z-index:auto}#et-fb-app .et_pb_section.popup+.et_pb_section.popup{margin-top:60px}#et-fb-app .et_pb_section.popup:after{content:"";position:absolute;background:#ccc;background:#fff repeating-linear-gradient(315deg,rgba(0,0,0,.03),rgba(0,0,0,.03) 10px,rgba(0,0,0,.06) 0,rgba(0,0,0,.06) 20px);left:50%;width:100vw;top:-30px;bottom:-30px;z-index:-1;margin:0 0 0 -50vw;background-attachment:fixed}#et-fb-app .et_pb_section.popup:before{content:"#" attr(id);position:absolute;top:0;left:50%;transform:translate(-50%,-100%);background:#666;padding:0 8px;color:#fff;font-size:12px;line-height:26px;font-weight:700;opacity:.5;transition:all .3s;bottom:auto;right:auto;z-index:20;border-radius:3px 3px 0 0}#et-fb-app .et_pb_section.popup:hover:before{background:#2b87da;opacity:1}.et_fb_hidden_header #et-fb-app .et_pb_section.popup:after{width:100vw}html.et-bfb-html.et-fb-preview--desktop>body.single-divi-area.et-bfb:not(.wp-admin) #et_pb_root>.et-fb-post-content,html.et-bfb-html.et-fb-preview--phone>body.single-divi-area.et-bfb:not(.wp-admin) #et_pb_root>.et-fb-post-content,html.et-bfb-html.et-fb-preview--tablet>body.single-divi-area.et-bfb:not(.wp-admin) #et_pb_root>.et-fb-post-content,html.et-bfb-html.et-fb-preview--zoom>body.single-divi-area.et-bfb:not(.wp-admin) #et_pb_root>.et-fb-post-content{background:hsla(0,0%,100%,.6);box-shadow:0 5px 12px rgba(43,135,218,.2);margin-left:10px;margin-right:10px;margin-top:10px}.et-bfb-html .single-divi-area{background:none!important}.et-fb-post-content{position:relative}.et-fb-post-content>.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;z-index:100}.et-fb-post-content>.da-close:active,.et-fb-post-content>.da-close:focus,.et-fb-post-content>.da-close:hover{opacity:1;transform:scale(1.1)}.et-fb-post-content[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-fb-post-content[data-da-color=light]>.da-close:active,.et-fb-post-content[data-da-color=light]>.da-close:focus,.et-fb-post-content[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-fb-post-content[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-fb-post-content[data-da-color=dark]>.da-close:active,.et-fb-post-content[data-da-color=dark]>.da-close:focus,.et-fb-post-content[data-da-color=dark]>.da-close:hover{color:#fff;background:#2b2b2b;box-shadow:0 0 1px 1px hsla(0,0%,100%,.2)}.et-fb-post-content[data-da-close-bg=none]>.da-close,.et-fb-post-content[data-da-close-bg=none]>.da-close:active,.et-fb-post-content[data-da-close-bg=none]>.da-close:focus,.et-fb-post-content[data-da-close-bg=none]>.da-close:hover{box-shadow:none;background:transparent}.et-fb-preview--wireframe .et-fb-post-content>.da-close{display:none!important}
 
css/front.css DELETED
@@ -1 +0,0 @@
1
- [class*=et_pb_section_dap_]{width:100%}#et-boc .area-outer-wrap{position:fixed;z-index:100;pointer-events:none;max-width:100vw;max-height:100vh}#et-boc .area-outer-wrap.entry-content{padding:0}#et-boc .area-outer-wrap[data-da-type=popup]{min-width:320px;padding:10px}@media screen and (min-width:981px){#et-boc .area-outer-wrap[data-da-type=popup]{width:90%}}@media screen and (max-width:980px){#et-boc .area-outer-wrap[data-da-type=popup]{width:100%}}@media (min-width:981px){#et-boc .area-outer-wrap .et_pb_row.et_pb_equal_columns,#et-boc .area-outer-wrap .et_pb_row_inner.et_pb_equal_columns,#et-boc .area-outer-wrap .et_pb_section.et_pb_equal_columns>.et_pb_row{flex:1 0 auto}}#et-boc .area-outer-wrap[data-da-type=inline]{position:relative;top:unset;bottom:unset;left:unset;right:unset;width:unset;height:unset;transform:unset;max-width:unset;max-height:unset}#et-boc .area-outer-wrap>[data-da-area]{position:relative;background-repeat:no-repeat;background-position:50%;margin:auto;pointer-events:all;-ms-scroll-chaining:none;overscroll-behavior:contain;height:100%;display:flex!important;flex-direction:column}#et-boc .area-outer-wrap>[data-da-area]>.et_pb_section{flex:1 0 auto}#et-boc .area-outer-wrap>[data-da-area] .clearfix:after,#et-boc .area-outer-wrap>[data-da-area] .et_pb_row:after,#et-boc .area-outer-wrap>[data-da-area] .et_pb_row_inner:after,#et-boc .area-outer-wrap>[data-da-area] .et_pb_slides:after{content:""}#et-boc .area-outer-wrap>[data-da-area] .et_pb_contact_select{-moz-appearance:textfield}#et-boc .area-outer-wrap.full-height[data-da-overflow=full-height]>[data-da-area],#et-boc .area-outer-wrap[data-da-overflow=clip]>[data-da-area]{overflow:auto}#et-boc .area-outer-wrap[data-da-overflow=show]>[data-da-area]{overflow:visible}#et-boc .area-outer-wrap[data-da-type=flyin].full-height,#et-boc .area-outer-wrap[data-da-type=popup].full-height{height:auto!important;top:0!important;bottom:0!important;margin-top:0!important;padding:10px}#et-boc .area-outer-wrap[data-da-type=flyin].full-height [data-da-area],#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=flyin].full-height .da-close-wrap,#et-boc .area-outer-wrap[data-da-type=popup].full-height .da-close-wrap{height:calc(100% - 20px)!important}#et-boc .area-outer-wrap .da-close-wrap{display:block;position:absolute;left:50%;top:50%;z-index:100;text-align:right;transition:opacity .6s .3s;overflow:visible;pointer-events:none;transform:translate(-50%,-50%)}#et-boc .area-outer-wrap .da-close{position:absolute;right:0;top:0;display:block;box-sizing:content-box;width:30px;height:30px;line-height:30px;text-decoration:none;text-align:center;font-family:Courier New,monospace;font-size:20px;font-weight:700;cursor:pointer;opacity:.7;transition:all .3s;pointer-events:all}#et-boc .area-outer-wrap .da-close:active,#et-boc .area-outer-wrap .da-close:focus,#et-boc .area-outer-wrap .da-close:hover{opacity:1;transform:scale(1.1)}#et-boc .area-outer-wrap[data-da-close-btn=no] .da-close-wrap{display:none!important}#et-boc .area-outer-wrap[data-da-close-btn=yes] .da-close-wrap{display:block}#et-boc .area-outer-wrap[data-da-color=light] .da-close{color:#333;background:hsla(0,0%,100%,.13);box-shadow:0 0 3px 1px rgba(0,0,0,.03)}#et-boc .area-outer-wrap[data-da-color=light] .da-close:active,#et-boc .area-outer-wrap[data-da-color=light] .da-close:focus,#et-boc .area-outer-wrap[data-da-color=light] .da-close:hover{color:#000;background:#fff;box-shadow:0 0 4px 0 rgba(0,0,0,.13),0 0 3px 1px rgba(0,0,0,.07)}#et-boc .area-outer-wrap[data-da-color=dark] .da-close{color:#eee;background:rgba(0,0,0,.13);box-shadow:0 0 0 1px hsla(0,0%,100%,.03);text-shadow:0 0 1px #000,0 0 3px rgba(0,0,0,.67)}#et-boc .area-outer-wrap[data-da-color=dark] .da-close:active,#et-boc .area-outer-wrap[data-da-color=dark] .da-close:focus,#et-boc .area-outer-wrap[data-da-color=dark] .da-close:hover{color:#fff;background:#2b2b2b;box-shadow:0 0 1px 1px hsla(0,0%,100%,.2)}#et-boc .area-outer-wrap[data-da-close-bg=none] .da-close,#et-boc .area-outer-wrap[data-da-close-bg=none] .da-close:active,#et-boc .area-outer-wrap[data-da-close-bg=none] .da-close:focus,#et-boc .area-outer-wrap[data-da-close-bg=none] .da-close:hover{box-shadow:none;background:transparent}#et-boc .area-outer-wrap[data-da-loader=yes] [data-da-area]{background-image:url(../img/spin.gif),radial-gradient(circle at center,#fff 65%,hsla(0,0%,100%,0) 66%)!important;background-size:32px 32px,48px 48px}#et-boc .area-outer-wrap[data-da-shadow=yes] [data-da-area]{box-shadow:0 3px 10px -1px rgba(0,0,0,.3),0 2px 50px 2px rgba(0,0,0,.2)}#et-boc .area-outer-wrap[data-da-shadow=no] [data-da-area]{box-shadow:none}.area-outer-wrap [data-da-area]{display:block;pointer-events:all}.da-overlay{position:fixed;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.55);z-index:99;transition:-webkit-backdrop-filter 1s 1s;transition:backdrop-filter 1s 1s;transition:backdrop-filter 1s 1s,-webkit-backdrop-filter 1s 1s;-webkit-backdrop-filter:none;backdrop-filter:none}.da-overlay-visible{overflow:hidden}.da-overlay-visible .da-overlay{-webkit-backdrop-filter:saturate(180%) blur(5px);backdrop-filter:saturate(180%) blur(5px)}[data-area-hook]{display:none!important;visibility:hidden!important}
 
{img → images}/spin.gif RENAMED
File without changes
include/helper/exceptions.php DELETED
@@ -1,35 +0,0 @@
1
- <?php //phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
2
- /**
3
- * Defines custom exceptions that are thrown by Popups for Divi.
4
- *
5
- * @package Popups_For_Divi
6
- * @phpcs:disable Generic.Files.OneObjectStructurePerFile.MultipleFound
7
- */
8
-
9
- defined( 'ABSPATH' ) || die();
10
-
11
- /**
12
- * Exception that is thrown, when a requested application module does not exist. It
13
- * indicates, that either an invalid module is used, or that the app tries to access a
14
- * module before it was registered.
15
- *
16
- * @since 2.0.0
17
- */
18
- class PFD_Exception_Module_Not_Found extends Exception {}
19
-
20
- /**
21
- * Exception that is thrown, when the application tries to register a new module, but
22
- * the specified module class does not exist. Either the module class contains a typo
23
- * (i.e. invalid class name) or the class definition was not loaded yet.
24
- *
25
- * @since 2.0.0
26
- */
27
- class PFD_Exception_Invalid_Module_Class extends Exception {}
28
-
29
- /**
30
- * Exception that is throws when the application tries to register two modules with
31
- * the same name. That's a clear indicator of unstructured or too complex code.
32
- *
33
- * @since 2.0.0
34
- */
35
- class PFD_Exception_Module_Already_Registered extends Exception {}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
include/helper/plugin-compatibility.php DELETED
@@ -1,55 +0,0 @@
1
- <?php
2
- /**
3
- * Makes sure, that our plugin integrates nicely with other plugins.
4
- *
5
- * @package Popups_For_Divi
6
- */
7
-
8
- defined( 'ABSPATH' ) || die();
9
-
10
- // SG Optimizer.
11
- add_filter(
12
- 'sgo_javascript_combine_excluded_inline_content',
13
- 'divi_popup_exclude_inline_content'
14
- );
15
-
16
- // WP Rocket.
17
- add_filter(
18
- 'rocket_excluded_inline_js_content',
19
- 'divi_popup_exclude_inline_content'
20
- );
21
-
22
- /**
23
- * Instructs Caching plugins to NOT combine our loader script. Combined scripts are
24
- * moved to end of the document, which counteracts the entire purpose of the
25
- * loader...
26
- *
27
- * Used by SG Optimizer, WP Rocket
28
- *
29
- * @since 1.4.5
30
- * @param array $exclude_list Default exclude list.
31
- * @return array Extended exclude list.
32
- */
33
- function divi_popup_exclude_inline_content( $exclude_list ) {
34
- $exclude_list[] = 'window.DiviPopupData=window.DiviAreaConfig=';
35
-
36
- return $exclude_list;
37
- }
38
-
39
- /**
40
- * Provides plugin compatibility with IE 11.
41
- *
42
- * @global $is_IE Boolean. True for all IE browsers.
43
- *
44
- * @since 2.0.1
45
- * @return void
46
- */
47
- function divi_popup_ie_compat() {
48
- add_filter(
49
- 'wp_enqueue_scripts',
50
- [ PFD_App::module( 'asset' ), 'enqueue_ie_scripts' ],
51
- 1
52
- );
53
- }
54
-
55
- add_action( 'divi_popups_loaded', 'divi_popup_ie_compat' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{include → includes}/core/class-pfd-app.php RENAMED
@@ -85,7 +85,7 @@ class PFD_App extends PFD_Component {
85
  load_plugin_textdomain(
86
  'popups-for-divi',
87
  false,
88
- dirname( DIVI_POPUP_PLUGIN ) . '/lang/'
89
  );
90
  }
91
 
@@ -93,7 +93,9 @@ class PFD_App extends PFD_Component {
93
  * Display a custom link in the plugins list
94
  *
95
  * @since 1.0.2
96
- * @param array $links List of plugin links.
 
 
97
  * @return array New list of plugin links.
98
  */
99
  public function plugin_add_settings_link( $links ) {
@@ -102,13 +104,13 @@ class PFD_App extends PFD_Component {
102
  'https://divimode.com/divi-popup/?utm_source=wpadmin&utm_medium=link&utm_campaign=popups-for-divi',
103
  __( 'How it works', 'divi-popup' )
104
  );
 
105
  return $links;
106
  }
107
 
108
  /**
109
  * Display additional details in the right column of the "Plugins" page.
110
  *
111
- * @since 1.6.0
112
  * @param string[] $plugin_meta An array of the plugin's metadata,
113
  * including the version, author,
114
  * author URI, and plugin URI.
@@ -117,6 +119,10 @@ class PFD_App extends PFD_Component {
117
  * @param string $status Status of the plugin. Defaults are 'All', 'Active',
118
  * 'Inactive', 'Recently Activated', 'Upgrade', 'Must-Use',
119
  * 'Drop-ins', 'Search'.
 
 
 
 
120
  */
121
  public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
122
  if ( DIVI_POPUP_PLUGIN !== $plugin_file ) {
85
  load_plugin_textdomain(
86
  'popups-for-divi',
87
  false,
88
+ dirname( DIVI_POPUP_PLUGIN ) . '/languages/'
89
  );
90
  }
91
 
93
  * Display a custom link in the plugins list
94
  *
95
  * @since 1.0.2
96
+ *
97
+ * @param array $links List of plugin links.
98
+ *
99
  * @return array New list of plugin links.
100
  */
101
  public function plugin_add_settings_link( $links ) {
104
  'https://divimode.com/divi-popup/?utm_source=wpadmin&utm_medium=link&utm_campaign=popups-for-divi',
105
  __( 'How it works', 'divi-popup' )
106
  );
107
+
108
  return $links;
109
  }
110
 
111
  /**
112
  * Display additional details in the right column of the "Plugins" page.
113
  *
 
114
  * @param string[] $plugin_meta An array of the plugin's metadata,
115
  * including the version, author,
116
  * author URI, and plugin URI.
119
  * @param string $status Status of the plugin. Defaults are 'All', 'Active',
120
  * 'Inactive', 'Recently Activated', 'Upgrade', 'Must-Use',
121
  * 'Drop-ins', 'Search'.
122
+ *
123
+ * @return string[]
124
+ * @since 1.6.0
125
+ *
126
  */
127
  public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
128
  if ( DIVI_POPUP_PLUGIN !== $plugin_file ) {
{include → includes}/core/class-pfd-asset.php RENAMED
@@ -2,7 +2,8 @@
2
  /**
3
  * Handles all assets (JS, CSS, JSON configuration, etc).
4
  *
5
- * @package Popups_For_Divi
 
6
  */
7
 
8
  defined( 'ABSPATH' ) || die();
@@ -22,6 +23,7 @@ class PFD_Asset extends PFD_Component {
22
  public function setup() {
23
  add_filter( 'divi_areas_debug_infos', [ $this, 'generate_debug_infos' ] );
24
  add_action( 'init', [ $this, 'setup_hooks' ], 11 );
 
25
  }
26
 
27
  /**
@@ -62,7 +64,7 @@ class PFD_Asset extends PFD_Component {
62
 
63
  if ( is_admin() || apply_filters( 'divi_areas_is_build_mode', false ) ) {
64
  $base_name = 'builder';
65
- } elseif ( ! $this->is_missing_file() ) {
66
  $base_name = 'front';
67
  } else {
68
  // Not in builder mode, but also no front-end document: Do not load API.
@@ -322,8 +324,8 @@ class PFD_Asset extends PFD_Component {
322
  * The parent container which holds all popups. For most Divi sites
323
  * this could be "#page-container", but some child themes do not
324
  * adhere to this convention.
325
- * When a valid Divi theme is detected by the JS library, it will switch from
326
- * 'body' to '#page-container'. To avoid this, simply use
327
  *
328
  * @since JS 1.0.0
329
  */
@@ -364,6 +366,14 @@ class PFD_Asset extends PFD_Component {
364
  */
365
  $js_data['debug'] = defined( 'WP_DEBUG' ) ? WP_DEBUG : false;
366
 
 
 
 
 
 
 
 
 
367
  /* -- End of default configuration -- */
368
 
369
  // Compatibility with older Popups for Divi version.
@@ -391,7 +401,7 @@ class PFD_Asset extends PFD_Component {
391
 
392
  wp_register_script(
393
  'js-divi-area',
394
- DIVI_POPUP_URL . 'js/' . $base_name . '.js',
395
  [ 'jquery' ],
396
  $cache_version,
397
  true
@@ -399,7 +409,7 @@ class PFD_Asset extends PFD_Component {
399
 
400
  wp_register_style(
401
  'css-divi-area',
402
- DIVI_POPUP_URL . 'css/' . $base_name . '.css',
403
  [],
404
  $cache_version,
405
  'all'
@@ -416,6 +426,19 @@ class PFD_Asset extends PFD_Component {
416
 
417
  wp_add_inline_style( 'css-divi-area', $inline_css );
418
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
419
  }
420
 
421
  /**
@@ -428,7 +451,7 @@ class PFD_Asset extends PFD_Component {
428
  if ( ! is_admin() && ! apply_filters( 'divi_areas_is_build_mode', false ) ) {
429
  wp_enqueue_script(
430
  'dap-ie',
431
- DIVI_POPUP_URL . 'js/ie-compat.js',
432
  [],
433
  DIVI_POPUP_VERSION,
434
  false
@@ -447,6 +470,7 @@ class PFD_Asset extends PFD_Component {
447
  * breaking the purpose of enqueueing it this early.
448
  *
449
  * @since 1.4.3
 
450
  * @param array $js_config The DiviAreaConfig object details.
451
  */
452
  private function inject_loader( array $js_config ) {
@@ -476,7 +500,7 @@ class PFD_Asset extends PFD_Component {
476
  );
477
 
478
  // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
479
- $loader[] = file_get_contents( DIVI_POPUP_PATH . 'js/loader.js' );
480
 
481
  printf(
482
  '<script id="diviarea-loader">%s</script>',
@@ -487,10 +511,11 @@ class PFD_Asset extends PFD_Component {
487
  /**
488
  * Collect anonymous details about the current system for output in error logs.
489
  *
490
- * @filter divi_POPUP_debug_infos
 
491
  *
492
- * @since 1.2.3
493
  * @param array $infos Debug details.
 
494
  * @return array Array containing debug details.
495
  */
496
  public function generate_debug_infos( array $infos ) {
@@ -547,9 +572,11 @@ class PFD_Asset extends PFD_Component {
547
  $infos['theme_ver'] = $curr_theme->version;
548
 
549
  if (
550
- is_plugin_active( $builder_plugin )
551
- || is_plugin_active_for_network( $builder_plugin )
552
- && file_exists( WP_PLUGIN_DIR . '/' . $builder_plugin )
 
 
553
  ) {
554
  $builder_plugin_path = wp_normalize_path( WP_PLUGIN_DIR . '/' . $builder_plugin );
555
  $divi_plugin = get_plugin_data( $builder_plugin_path );
@@ -576,20 +603,13 @@ class PFD_Asset extends PFD_Component {
576
  }
577
 
578
  /**
579
- * Determines whether the current request tries to load a missing page resource,
580
- * such as a .js or .map file.
581
  *
582
- * When such a request is detected, the JS API is not initialized, so we do not
583
- * return JS code for the resource. So far we know that this fixes issues where
584
- * .svg files are used that do not exist: WP will return the 404 page result which
585
- * is parsed by the parent document. During that process the JS API can spill into
586
- * the parent document and interfere with the Visual Builder.
587
- *
588
- * @since DAP 2.2.0
589
- * @return bool True, when we suspect that the 404 request is accessing a missing
590
- * page resource.
591
  */
592
- public function is_missing_file() {
 
593
  static $is_missing_file = null;
594
 
595
  if ( null === $is_missing_file ) {
@@ -634,6 +654,7 @@ class PFD_Asset extends PFD_Component {
634
  }
635
  }
636
 
637
- return $is_missing_file;
638
  }
 
639
  }
2
  /**
3
  * Handles all assets (JS, CSS, JSON configuration, etc).
4
  *
5
+ * @free include file
6
+ * @package PopupsForDivi
7
  */
8
 
9
  defined( 'ABSPATH' ) || die();
23
  public function setup() {
24
  add_filter( 'divi_areas_debug_infos', [ $this, 'generate_debug_infos' ] );
25
  add_action( 'init', [ $this, 'setup_hooks' ], 11 );
26
+
27
  }
28
 
29
  /**
64
 
65
  if ( is_admin() || apply_filters( 'divi_areas_is_build_mode', false ) ) {
66
  $base_name = 'builder';
67
+ } elseif ( $this->need_js_api() ) {
68
  $base_name = 'front';
69
  } else {
70
  // Not in builder mode, but also no front-end document: Do not load API.
324
  * The parent container which holds all popups. For most Divi sites
325
  * this could be "#page-container", but some child themes do not
326
  * adhere to this convention.
327
+ * When a valid Divi theme is detected by the JS library, it will switch
328
+ * from 'body' to '#page-container'.
329
  *
330
  * @since JS 1.0.0
331
  */
366
  */
367
  $js_data['debug'] = defined( 'WP_DEBUG' ) ? WP_DEBUG : false;
368
 
369
+ /**
370
+ * PRO ONLY: URL to the Ajax handler. This URL is used by schedule-conditions
371
+ * to verify if an Area is currently active.
372
+ *
373
+ * @since JS 2.2.0
374
+ */
375
+ $js_data['ajaxUrl'] = admin_url( 'admin-ajax.php' );
376
+
377
  /* -- End of default configuration -- */
378
 
379
  // Compatibility with older Popups for Divi version.
401
 
402
  wp_register_script(
403
  'js-divi-area',
404
+ DIVI_POPUP_URL . 'scripts/' . $base_name . '.min.js',
405
  [ 'jquery' ],
406
  $cache_version,
407
  true
409
 
410
  wp_register_style(
411
  'css-divi-area',
412
+ DIVI_POPUP_URL . 'styles/' . $base_name . '.min.css',
413
  [],
414
  $cache_version,
415
  'all'
426
 
427
  wp_add_inline_style( 'css-divi-area', $inline_css );
428
  }
429
+
430
+ /**
431
+ * Fires after the Divi Area JS API was enqueued.
432
+ *
433
+ * @since 2.3.2
434
+ *
435
+ * @param string $library Which library was enqueued - either 'front'
436
+ * when the public JS API was loaded, or
437
+ * 'builder' when the Popup-tab in the Visual
438
+ * Builder was enqueued.
439
+ * @param string $version The version-string for cache management.
440
+ */
441
+ do_action( 'divi_area_enqueue_library', $base_name, $cache_version );
442
  }
443
 
444
  /**
451
  if ( ! is_admin() && ! apply_filters( 'divi_areas_is_build_mode', false ) ) {
452
  wp_enqueue_script(
453
  'dap-ie',
454
+ DIVI_POPUP_URL . 'scripts/ie-compat.min.js',
455
  [],
456
  DIVI_POPUP_VERSION,
457
  false
470
  * breaking the purpose of enqueueing it this early.
471
  *
472
  * @since 1.4.3
473
+ *
474
  * @param array $js_config The DiviAreaConfig object details.
475
  */
476
  private function inject_loader( array $js_config ) {
500
  );
501
 
502
  // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
503
+ $loader[] = file_get_contents( DIVI_POPUP_PATH . 'scripts/loader.min.js' );
504
 
505
  printf(
506
  '<script id="diviarea-loader">%s</script>',
511
  /**
512
  * Collect anonymous details about the current system for output in error logs.
513
  *
514
+ * @filter divi_areas_debug_infos
515
+ * @since 1.2.3
516
  *
 
517
  * @param array $infos Debug details.
518
+ *
519
  * @return array Array containing debug details.
520
  */
521
  public function generate_debug_infos( array $infos ) {
572
  $infos['theme_ver'] = $curr_theme->version;
573
 
574
  if (
575
+ file_exists( WP_PLUGIN_DIR . '/' . $builder_plugin )
576
+ && (
577
+ is_plugin_active( $builder_plugin )
578
+ || is_plugin_active_for_network( $builder_plugin )
579
+ )
580
  ) {
581
  $builder_plugin_path = wp_normalize_path( WP_PLUGIN_DIR . '/' . $builder_plugin );
582
  $divi_plugin = get_plugin_data( $builder_plugin_path );
603
  }
604
 
605
  /**
606
+ * Determines, whether the current request needs the JS API library.
 
607
  *
608
+ * @since 2.3.1
609
+ * @return bool True, when the JS API should be loaded.
 
 
 
 
 
 
 
610
  */
611
+ protected function need_js_api() {
612
+
613
  static $is_missing_file = null;
614
 
615
  if ( null === $is_missing_file ) {
654
  }
655
  }
656
 
657
+ return ! $is_missing_file;
658
  }
659
+
660
  }
{include → includes}/core/class-pfd-component.php RENAMED
@@ -1,10 +1,12 @@
1
  <?php
2
  /**
3
- * Base component for other PFD-classes.
4
  *
5
- * @package Popups_For_Divi
 
6
  */
7
 
 
8
  /**
9
  * Base class.
10
  *
@@ -78,7 +80,9 @@ class PFD_Component {
78
  * Registers a setup hook name and returns $this for chaining.
79
  *
80
  * @since 1.2.3
 
81
  * @param string $hook_name Defines the WP action which triggers setup().
 
82
  * @return PFD_Component
83
  */
84
  final public function setup_on( $hook_name ) {
@@ -100,23 +104,34 @@ class PFD_Component {
100
  return $GLOBALS['divi_popup'];
101
  }
102
 
 
103
  /**
104
  * Registers a new child module of the current component.
105
  *
106
- * @throws PFD_Exception_Invalid_Module_Class When the specified class name is invalid.
107
- * @throws PFD_Exception_Module_Already_Registered When the given module identifier is already registered.
108
- *
109
  * @since 1.2.3
 
110
  * @param string $id Identifier of the module, used to address it later.
111
  * @param string $class_name Class name of the new module.
 
112
  * @return object The newly created module instance.
113
  */
114
  final protected static function add_module( $id, $class_name ) {
115
  if ( ! class_exists( $class_name ) ) {
116
- throw new PFD_Exception_Invalid_Module_Class( 'Class not found: ' . $class_name );
 
 
 
 
117
  }
 
118
  if ( isset( self::$internal_modules[ $id ] ) ) {
119
- throw new PFD_Exception_Module_Already_Registered( 'Module already registered: ' . $id );
 
 
 
 
 
 
120
  }
121
 
122
  // Create the new module instance.
@@ -139,14 +154,13 @@ class PFD_Component {
139
  * $strict param determines whether to check all parent components or whether
140
  * an error should be thrown.
141
  *
142
- * @throws PFD_Exception_Module_Not_Found When no module with the requested
143
- * identifier exists.
144
- *
145
  * @since 1.2.3
 
146
  * @param string $id The module identifier.
147
  * @param bool $strict When false, then the parents module() is returned in
148
  * case the current component does not have the requested
149
  * module.
 
150
  * @return object Returns the module instance.
151
  */
152
  final public static function module( $id, $strict = false ) {
@@ -155,10 +169,14 @@ class PFD_Component {
155
  }
156
 
157
  if ( $strict ) {
158
- throw new PFD_Exception_Module_Not_Found( 'No module found with id: ' . $id );
159
- } else {
160
- return null;
 
 
161
  }
 
 
162
  }
163
 
164
  /**
@@ -166,7 +184,9 @@ class PFD_Component {
166
  * module with the given identifier was registered.
167
  *
168
  * @since 1.2.3
 
169
  * @param string $id The module identifier.
 
170
  * @return string Returns the class name of the module, or an empty string when
171
  * the module was not registered.
172
  */
1
  <?php
2
  /**
3
+ * Base component for other Popups for Divi classes.
4
  *
5
+ * @free include file
6
+ * @package PopupsForDivi
7
  */
8
 
9
+
10
  /**
11
  * Base class.
12
  *
80
  * Registers a setup hook name and returns $this for chaining.
81
  *
82
  * @since 1.2.3
83
+ *
84
  * @param string $hook_name Defines the WP action which triggers setup().
85
+ *
86
  * @return PFD_Component
87
  */
88
  final public function setup_on( $hook_name ) {
104
  return $GLOBALS['divi_popup'];
105
  }
106
 
107
+
108
  /**
109
  * Registers a new child module of the current component.
110
  *
 
 
 
111
  * @since 1.2.3
112
+ *
113
  * @param string $id Identifier of the module, used to address it later.
114
  * @param string $class_name Class name of the new module.
115
+ *
116
  * @return object The newly created module instance.
117
  */
118
  final protected static function add_module( $id, $class_name ) {
119
  if ( ! class_exists( $class_name ) ) {
120
+ // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
121
+ trigger_error(
122
+ 'Class not found: ' . esc_attr( $class_name ),
123
+ E_USER_ERROR
124
+ );
125
  }
126
+
127
  if ( isset( self::$internal_modules[ $id ] ) ) {
128
+ // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
129
+ trigger_error(
130
+ 'Module already registered: ' . esc_attr( $id ),
131
+ E_USER_WARNING
132
+ );
133
+
134
+ return self::$internal_modules[ $id ];
135
  }
136
 
137
  // Create the new module instance.
154
  * $strict param determines whether to check all parent components or whether
155
  * an error should be thrown.
156
  *
 
 
 
157
  * @since 1.2.3
158
+ *
159
  * @param string $id The module identifier.
160
  * @param bool $strict When false, then the parents module() is returned in
161
  * case the current component does not have the requested
162
  * module.
163
+ *
164
  * @return object Returns the module instance.
165
  */
166
  final public static function module( $id, $strict = false ) {
169
  }
170
 
171
  if ( $strict ) {
172
+ // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
173
+ trigger_error(
174
+ 'No module found with id: ' . esc_attr( $id ),
175
+ E_USER_ERROR
176
+ );
177
  }
178
+
179
+ return null;
180
  }
181
 
182
  /**
184
  * module with the given identifier was registered.
185
  *
186
  * @since 1.2.3
187
+ *
188
  * @param string $id The module identifier.
189
+ *
190
  * @return string Returns the class name of the module, or an empty string when
191
  * the module was not registered.
192
  */
{include → includes}/core/class-pfd-editor.php RENAMED
@@ -2,7 +2,8 @@
2
  /**
3
  * Extends Divi´s Visual Builder.
4
  *
5
- * @package Popups_For_Divi
 
6
  */
7
 
8
  /**
@@ -47,6 +48,7 @@ class PFD_Editor extends PFD_Component {
47
  * @return void
48
  */
49
  public function add_hooks() {
 
50
  add_filter(
51
  'et_pb_all_fields_unprocessed_et_pb_section',
52
  [ $this, 'add_section_config' ]
@@ -64,8 +66,10 @@ class PFD_Editor extends PFD_Component {
64
  *
65
  * @filter et_pb_all_fields_unprocessed_et_pb_section
66
  *
67
- * @since 1.2.0
 
68
  * @param array $fields_unprocessed Field definitions of the module.
 
69
  * @return array The modified configuration fields.
70
  */
71
  public function add_section_config( $fields_unprocessed ) {
@@ -260,13 +264,16 @@ class PFD_Editor extends PFD_Component {
260
  *
261
  * @filter et_builder_main_tabs
262
  *
263
- * @since 1.2.0
 
264
  * @param array $tabs List of tabs to display in the Visual Builder.
 
265
  * @return array Modified list of tabs.
266
  */
267
  public function add_tab( $tabs ) {
268
  $tabs['da'] = esc_html__( 'Popup', 'divi-popup' );
269
 
 
270
  return $tabs;
271
  }
272
 
@@ -275,12 +282,15 @@ class PFD_Editor extends PFD_Component {
275
  *
276
  * @filter et_builder_get_parent_modules
277
  *
278
- * @since 1.2.0
 
279
  * @param array $parent_modules List of all parent elements.
280
  * @param string $post_type The post type in editor.
 
281
  * @return array Modified parent element definition.
282
  */
283
  public function add_toggles_to_tab( $parent_modules, $post_type ) {
 
284
  if ( isset( $parent_modules['et_pb_section'] ) ) {
285
  $section = $parent_modules['et_pb_section'];
286
 
@@ -336,7 +346,7 @@ class PFD_Editor extends PFD_Component {
336
  *
337
  * @action wp_ajax_et_fb_ajax_save
338
  *
339
- * @since 1.2.0
340
  */
341
  public function et_fb_ajax_save() {
342
  /**
@@ -410,6 +420,7 @@ class PFD_Editor extends PFD_Component {
410
  $conf = $da_default;
411
  $classes = [];
412
 
 
413
  if ( ! empty( $attrs['module_class'] ) ) {
414
  $classes = explode( ' ', $attrs['module_class'] );
415
 
@@ -514,6 +525,24 @@ class PFD_Editor extends PFD_Component {
514
  unset( $attrs['module_class'] );
515
  }
516
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
517
  $shortcode_data[ $id ]['attrs'] = $attrs;
518
  }
519
 
2
  /**
3
  * Extends Divi´s Visual Builder.
4
  *
5
+ * @free include file
6
+ * @package PopupsForDivi
7
  */
8
 
9
  /**
48
  * @return void
49
  */
50
  public function add_hooks() {
51
+
52
  add_filter(
53
  'et_pb_all_fields_unprocessed_et_pb_section',
54
  [ $this, 'add_section_config' ]
66
  *
67
  * @filter et_pb_all_fields_unprocessed_et_pb_section
68
  *
69
+ * @since 1.2.0
70
+ *
71
  * @param array $fields_unprocessed Field definitions of the module.
72
+ *
73
  * @return array The modified configuration fields.
74
  */
75
  public function add_section_config( $fields_unprocessed ) {
264
  *
265
  * @filter et_builder_main_tabs
266
  *
267
+ * @since 1.2.0
268
+ *
269
  * @param array $tabs List of tabs to display in the Visual Builder.
270
+ *
271
  * @return array Modified list of tabs.
272
  */
273
  public function add_tab( $tabs ) {
274
  $tabs['da'] = esc_html__( 'Popup', 'divi-popup' );
275
 
276
+
277
  return $tabs;
278
  }
279
 
282
  *
283
  * @filter et_builder_get_parent_modules
284
  *
285
+ * @since 1.2.0
286
+ *
287
  * @param array $parent_modules List of all parent elements.
288
  * @param string $post_type The post type in editor.
289
+ *
290
  * @return array Modified parent element definition.
291
  */
292
  public function add_toggles_to_tab( $parent_modules, $post_type ) {
293
+
294
  if ( isset( $parent_modules['et_pb_section'] ) ) {
295
  $section = $parent_modules['et_pb_section'];
296
 
346
  *
347
  * @action wp_ajax_et_fb_ajax_save
348
  *
349
+ * @since 1.2.0
350
  */
351
  public function et_fb_ajax_save() {
352
  /**
420
  $conf = $da_default;
421
  $classes = [];
422
 
423
+
424
  if ( ! empty( $attrs['module_class'] ) ) {
425
  $classes = explode( ' ', $attrs['module_class'] );
426
 
525
  unset( $attrs['module_class'] );
526
  }
527
 
528
+ if ( 'on' === $attrs['da_is_popup'] ) {
529
+ if (
530
+ $attrs['admin_label']
531
+ && 0 === strpos( $attrs['admin_label'], 'Popup - ' )
532
+ ) {
533
+ if ( $attrs['module_id'] ) {
534
+ $attrs['admin_label'] = 'Popup - #' . $attrs['module_id'];
535
+ } else {
536
+ $attrs['admin_label'] = 'Popup - (unnamed)';
537
+ }
538
+ }
539
+ } elseif (
540
+ $attrs['admin_label']
541
+ && 0 === strpos( $attrs['admin_label'], 'Popup - ' )
542
+ ) {
543
+ $attrs['admin_label'] = '';
544
+ }
545
+
546
  $shortcode_data[ $id ]['attrs'] = $attrs;
547
  }
548
 
{include → includes}/core/class-pfd-onboarding.php RENAMED
File without changes
includes/helper/plugin-compatibility.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Makes sure, that our plugin integrates nicely with other plugins.
4
+ * This compatibility module does NOT add or extend any features of the plugin
5
+ * but only makes existing features compatible with other plugins.
6
+ *
7
+ * @free include file
8
+ * @package PopupsForDivi
9
+ */
10
+
11
+ defined( 'ABSPATH' ) || die();
12
+
13
+ // SG Optimizer.
14
+ add_filter(
15
+ 'sgo_javascript_combine_excluded_inline_content',
16
+ 'divi_popups_helper_exclude_inline_content'
17
+ );
18
+
19
+ // WP Rocket.
20
+ add_filter(
21
+ 'rocket_excluded_inline_js_content',
22
+ 'divi_popups_helper_exclude_inline_content'
23
+ );
24
+
25
+ /**
26
+ * Instructs Caching plugins to NOT combine our loader script. Combined scripts are
27
+ * moved to end of the document, which counteracts the entire purpose of the
28
+ * loader...
29
+ * Used by SG Optimizer, WP Rocket
30
+ *
31
+ * @since 1.4.5
32
+ *
33
+ * @param array $exclude_list Default exclude list.
34
+ *
35
+ * @return array Extended exclude list.
36
+ */
37
+ function divi_popups_helper_exclude_inline_content( $exclude_list ) {
38
+ $exclude_list[] = 'window.DiviPopupData=window.DiviAreaConfig=';
39
+
40
+ return $exclude_list;
41
+ }
42
+
43
+ /**
44
+ * Provides plugin compatibility with IE 11.
45
+ *
46
+ * @since 2.0.1
47
+ * @return void
48
+ */
49
+ function divi_popups_helper_ie_compat() {
50
+ add_filter(
51
+ 'wp_enqueue_scripts',
52
+ [ PFD_App::module( 'asset' ), 'enqueue_ie_scripts' ],
53
+ 1
54
+ );
55
+ }
56
+
57
+ add_action( 'divi_areas_loaded', 'divi_popups_helper_ie_compat' );
58
+
59
+ /**
60
+ * Output inline CSS that is used for wpDataTables compatibility.
61
+ *
62
+ * @since 2.3.0
63
+ * @return void
64
+ */
65
+ function divi_popups_helper_wpdatatables_styles() {
66
+ if (
67
+ ! defined( 'WDT_ROOT_PATH' )
68
+ || ! wp_script_is( 'wdt-common', 'done' )
69
+ ) {
70
+ return;
71
+ }
72
+
73
+ ?>
74
+ <style>
75
+ body .dt-button-collection {
76
+ z-index: 990000003;
77
+ }
78
+
79
+ body .wpdt-c .modal {
80
+ z-index: 990000002;
81
+ }
82
+
83
+ body .modal-backdrop {
84
+ z-index: 990000001;
85
+ }
86
+ </style>
87
+ <?php
88
+ }
89
+
90
+ add_action( 'wp_footer', 'divi_popups_helper_wpdatatables_styles', 999 );
91
+
92
+ /**
93
+ * Disable the default Divi ReCaptcha module, when a Forminator form with
94
+ * ReCaptcha is found on the current page.
95
+ *
96
+ * @since 2.3.0
97
+ */
98
+ function divi_popups_helper_forminator_recaptcha_fix() {
99
+ if ( wp_script_is( 'forminator-google-recaptcha', 'enqueued' ) ) {
100
+ wp_dequeue_script( 'forminator-google-recaptcha' );
101
+
102
+ printf(
103
+ '<script>!function(d,t,s,e,a){e=d.createElement(t);a=d.getElementsByTagName(t)[0];e.async=!0;e.src=s;a.parentNode.insertBefore(e,a)}(document,"script","%s")</script>',
104
+ esc_attr( $GLOBALS['wp_scripts']->registered['forminator-google-recaptcha']->src )
105
+ );
106
+ }
107
+ }
108
+
109
+ add_action( 'wp_footer', 'divi_popups_helper_forminator_recaptcha_fix', 10 );
js/builder.js DELETED
@@ -1 +0,0 @@
1
- !function(){"use strict";var t,e=Object.freeze({__proto__:null});!function(t){window.DiviAreaFB=window.DiviAreaFB||{};var e=DiviAreaFB,a=!1,o=!1,s=!1,n=!1,i={},d={admin_label:"",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"},r=0;function l(){a&&function(){if(!a)return;var o=e.getAppFrame(),s=t(o.document);window.clearInterval(a),s.off(".da",'input[name="module_id"], input[name="module_class"], input[name="da_popup_slug"]'),a=!1}();var o=e.getAppFrame();if(o){var s=t(o.document);a=window.setInterval(_,500),s.on("blur.da",'input[name="module_id"], input[name="module_class"]',(function(){!function(){var t=e.isEditing("et_pb_section");if(!t)return;for(var a=0;a<t.state.sections.length;a++){var o=t.state.sections[a],s=!1;p(o)&&(s=c(s=m(o))),s&&f(s)}}()})),s.on("blur.da",'input[name="da_popup_slug"]',(function(){t(this).val(e.sanitizeSlug(t(this).val()))}))}else window.setTimeout(l,250)}function _(){var t=e.isEditing("et_pb_section");if(t){var a=t.state.activeModule,o=!1;(function(t){var e=t.address,a=i[e],o=!1;a||(o=!0,a={});for(var s in d)0===s.indexOf("da_")&&t.attrs[s]!==a[s]&&(o=!0,a[s]=t.attrs[s]);o&&(i[e]=a);return o})(a.props)&&(o=c(a.props)),o&&f(o)}}function u(t,e){if(!e.length)return t;var a=e.shift();return!(!t||void 0===t[a])&&u(t[a],e)}function f(t){var a=e.getAppFrame(),o=t.address;function s(t,e){for(var a in d)e.attrs[a]!==t.attrs[a]&&(void 0===t.attrs[a]?e.attrs[a]="":e.attrs[a]=t.attrs[a])}var i=e.isEditing(t.type);i?s(t,i.state.activeModule.props):i=e.getApp();for(var r=0;r<i.state.sections.length;r++)o===i.state.sections[r].address&&s(t,i.state.sections[r]);n&&window.clearTimeout(n),n=window.setTimeout((function(){n=!1;var t=document.createEvent("MouseEvents"),e=document.createEvent("MouseEvents"),o=a.jQuery(".et-fb-modal__resize")[0],s=a;o&&s&&(t.initMouseEvent("mousedown",!0,!0),e.initMouseEvent("mouseup",!0,!0),o.dispatchEvent(t),s.dispatchEvent(e))}),50)}function p(t){var e=i[t.address],a=!1;return e||(a=!0,e={}),void 0===e.module_id&&(e.module_id=""),void 0===e.module_class&&(e.module_class=""),t.attrs.module_id!==e.module_id&&(t.attrs.module_id||e.module_id)&&(a=!0,e.module_id=t.attrs.module_id),t.attrs.module_class!==e.module_class&&(t.attrs.module_class||e.module_class)&&(a=!0,e.module_class=t.attrs.module_class),a&&(i[t.address]=e),a}function c(t){var a=t.address,o=v(t),s=(t.attrs.module_class||"").split(" "),n=t.attrs.da_is_popup||"off",d=t.attrs.da_popup_slug||"",r=t.attrs.da_exit_intent||"off",l=t.attrs.da_has_close||"on",_=t.attrs.da_alt_close||"off",u=t.attrs.da_dark_close||"off",f=t.attrs.da_not_modal||"on",p=t.attrs.da_is_singular||"off",c=t.attrs.da_with_loader||"off",m=t.attrs.da_has_shadow||"on",w=(t.attrs.da_disable_devices||"off|off|off").split("|"),h=["popup","on-exit","no-close","close-alt","dark","is-modal","single","with-loader","no-shadow","not-mobile","not-tablet","not-desktop"];return s=s.filter((function(t){return-1===h.indexOf(t)})),"on"===n&&(s.push("popup"),"on"===r&&s.push("on-exit"),"on"!==l?s.push("no-close"):("on"===_&&s.push("close-alt"),"on"===u&&s.push("dark")),"on"!==f&&s.push("is-modal"),"on"===p&&s.push("single"),"on"===c&&s.push("with-loader"),"on"!==m&&s.push("no-shadow"),"on"===w[0]&&s.push("not-mobile"),"on"===w[1]&&s.push("not-tablet"),"on"===w[2]&&s.push("not-desktop"),d&&(o.attrs.module_id=e.sanitizeSlug(d))),o.attrs.admin_label&&o.attrs.admin_label.length&&o.attrs.admin_label!=="Popup - #"+i[a].module_id||(o.attrs.admin_label="Popup - #"+o.attrs.module_id),o.attrs.module_class=s.filter((function(t){return t})).join(" "),i[a].module_class=o.attrs.module_class,i[a].module_id=o.attrs.module_id,i[a].admin_label=o.attrs.admin_label,o}function m(t){var a=t.address,o=v(t),s=e.sanitizeSlug(t.attrs.module_id),n=(t.attrs.module_class||"").split(" "),d=["off","off","off"];return o.attrs.da_is_popup=-1!==n.indexOf("popup")?"on":"off",o.attrs.da_has_close=-1===n.indexOf("no-close")?"on":"off",o.attrs.da_exit_intent=-1!==n.indexOf("on-exit")?"on":"off",o.attrs.da_alt_close=-1!==n.indexOf("close-alt")?"on":"off",o.attrs.da_dark_close=-1!==n.indexOf("dark")?"on":"off",o.attrs.da_not_modal=-1===n.indexOf("is-modal")?"on":"off",o.attrs.da_is_singular=-1!==n.indexOf("single")?"on":"off",o.attrs.da_with_loader=-1!==n.indexOf("with-loader")?"on":"off",o.attrs.da_has_shadow=-1===n.indexOf("no-shadow")?"on":"off",d[0]=-1!==n.indexOf("not-mobile")?"on":"off",d[1]=-1!==n.indexOf("not-tablet")?"on":"off",d[2]=-1!==n.indexOf("not-desktop")?"on":"off",o.attrs.da_disable_devices=d.join("|"),s&&(o.attrs.da_popup_slug=s),i[a].da_is_popup=o.attrs.da_is_popup,i[a].da_popup_slug=e.sanitizeSlug(o.attrs.da_popup_slug),i[a].da_has_close=o.attrs.da_has_close,i[a].da_exit_intent=o.attrs.da_exit_intent,i[a].da_alt_close=o.attrs.da_alt_close,i[a].da_dark_close=o.attrs.da_dark_close,i[a].da_not_modal=o.attrs.da_not_modal,i[a].da_is_singular=o.attrs.da_is_singular,i[a].da_has_shadow=o.attrs.da_has_shadow,i[a].da_disable_devices=o.attrs.da_disable_devices,i[a].da_with_loader=o.attrs.da_with_loader,o}function v(t){return JSON.parse(JSON.stringify(t))}e.init=function(){if(window.ET_Builder){var t=(window._daConfig||{}).divi_areas_cpt||"divi-area";((((ET_Builder.Frames||{}).app||{}).ETBuilderBackendDynamic||{}).postType||"page")!==t&&l()}else{if(!(++r<10))throw new Error("Could not initialize the Library (ET_Builder is undefined)");window.setTimeout(e.init,250)}},e.getAppFrame=function(){return!!(window.top.ET_Builder&&window.top.ET_Builder.Frames&&window.top.ET_Builder.Frames.top)&&window.top.ET_Builder.Frames.top},e.getApp=function(){var a=e.getAppFrame();if(!a)return!1;var n=t(a.document).find("#et-fb-app .place-top");if(!n||!n.length)return!1;if(!s||!n[0][s])for(var i in n[0])if(0===i.indexOf("__reactInternalInstance$")){o=i.substr(24),s="__reactInternalInstance$"+o;break}var d=n[0][s],r=u(d,["alternate","return","alternate","return","alternate","memoizedProps","_owner","alternate","memoizedState"]),l=u(d,["return","stateNode","setState"]);return!(!r||!l)&&{state:r,setState:l.bind(d.return.stateNode)}},e.isEditing=function(t){var a=e.getApp();return a&&a.state&&a.state.activeModule&&a.state.activeModule.props&&a.state.activeModule.props.type?t&&("string"==typeof t&&(t=[t]),-1===t.indexOf(a.state.activeModule.props.type))?null:a:null},e.sanitizeSlug=function(t){return"string"!=typeof t&&(t=""),t=(t=(t=(t=t.replace(/#/g,"")).replace(/[^a-zA-Z0-9\-_]/g,"-")).replace(/\-+/g,"-")).replace(/^\-+|\-+$/g,"")}}(jQuery),(t=e)&&t.default,jQuery(window).on("et_fb_init",(function(){window.setTimeout(DiviAreaFB.init,20)}))}();
 
js/front.js DELETED
@@ -1 +0,0 @@
1
- !function(){"use strict";var e=Object.freeze({__proto__:null});!function(e){window.DiviArea=window.DiviArea||{},DiviArea.Utils=DiviArea.Utils||{};var i=!1,t=null,a=null,r={};function o(i,t,a){var r,o;for(Array.isArray(i)&&(i=e(i).map(e.fn.toArray)),i=e(i),t=t.split(/\s+/),r=0;r<i.length;r++)for(o=0;o<t.length;o++)a(i[r],t[o])}DiviArea.Utils.getOption=function(e){var i=DiviAreaConfig[e],t=DiviArea.Utils.sanitizeHookName(e);return DiviArea.Hooks.silent().applyFilters("get_option_"+t,i)},DiviArea.Utils.toBool=function(e,i){return void 0===i&&(i=!0),null==e?!!i:!0===e||!1===e?e:("string"==typeof e&&(e=e.toLowerCase()),0!==e&&"0"!==e&&"n"!==e[0]&&"f"!==e[0]&&"off"!==e&&(1===e||"1"===e||"y"===e[0]||"t"===e[0]||"on"===e||!!i))},DiviArea.Utils.toMilliseconds=function(e){var i,t=parseFloat(e,10),a=e.match(/m?s/);switch(a&&(a=a[0]),a){case"s":i=1e3*t;break;case"ms":i=t;break;default:i=0}return i},DiviArea.Utils.sanitizeHookName=function(e){return e.toLowerCase().replace(/-/g,"_").replace(/[^a-z0-9_]+/,"")},DiviArea.Utils.showOnViewport=function(i){var t=e(window).innerWidth();return!i||!!(t<768?Array.isArray(i)?i[2]:i.getData("onmobile"):t<981?Array.isArray(i)?i[1]:i.getData("ontablet"):Array.isArray(i)?i[0]:i.getData("ondesktop"))},DiviArea.Utils.isPosition=function(e,i){var t=e.offsetParent();return"HTML"!==t.prop("tagName")&&(i===t.css("position")||DiviArea.Utils.isPosition(t,i))},DiviArea.Utils.setLocalData=function(e,i,t){(!t||isNaN(t)||t<1)&&(t=525600);var a=DiviArea.Utils.sanitizeHookName(e);if(i=DiviArea.applyFilters("set_data",i,e),i=DiviArea.applyFilters("set_data_"+a,i,e),t=DiviArea.applyFilters("set_data_expire",t,e,i),t=DiviArea.applyFilters("set_data_expire_"+a,t,e,i),!(!1===i||t<=0))if(window.localStorage){var r=new Date;r=r.setMinutes(r.getMinutes()+t),localStorage.setItem("_da_"+e,r+":"+i)}else DiviArea.Utils.setCookie("_da_"+e,i,t)},DiviArea.Utils.getLocalData=function(e){var i=!1;if(window.localStorage){var t=localStorage.getItem("_da_"+e);if(t){var a=t.split(":"),r=parseInt(a.shift()),o=a.join(":");r>new Date?i=o:localStorage.removeItem("_da_"+e)}}else i=DiviArea.Utils.getCookie("_da_"+e);var n=DiviArea.Utils.sanitizeHookName(e);return i=DiviArea.applyFilters("get_data",i,e),i=DiviArea.applyFilters("get_data_"+n,i,e)},DiviArea.Utils.setCookie=function(e,i,t){var a=escape(i);if(t){var r=new Date;r.setMinutes(r.getMinutes()+t),a+="; expires="+r.toUTCString()}document.cookie=e+"="+a+"; path=/"},DiviArea.Utils.getCookie=function(e){var i,t,a,r=document.cookie.split(";");for(i=0;i<r.length;i++)if(t=r[i].substr(0,r[i].indexOf("=")),a=r[i].substr(r[i].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))===e)return unescape(a);return!1},DiviArea.Utils.getUrlParam=function(e){if(null===a){a={};var i=window.location.search.slice(1);if(i)for(var t=(i=i.split("#")[0]).split("&"),r=0;r<t.length;r++){var o=t[r].split("="),n=o[0],s=void 0===o[1]||o[1];if(n=n.toLowerCase(),"string"==typeof s&&(s=s.toLowerCase()),n.match(/\[(\d+)?\]$/)){var l=n.replace(/\[(\d+)?\]/,"");if(a[l]||(a[l]=[]),n.match(/\[\d+\]$/)){var d=/\[(\d+)\]/.exec(n)[1];a[l][d]=s}else a[l].push(s)}else a[n]?a[n]&&"string"==typeof a[n]?(a[n]=[a[n]],a[n].push(s)):a[n].push(s):a[n]=s}}return e?a[e]:Object.assign({},a)},DiviArea.Utils.getWindow=function(i){return e.isWindow(i)?i:9===i.nodeType&&(i.defaultView||i.parentWindow)},DiviArea.Utils.getClientRect=function(i){var t={top:0,left:0,width:0,height:0,bottom:0,right:0};if(0===i.length)return t;var a,r=(i=i[0]).ownerDocument,o=r.documentElement;if(!e.contains(o,i))return t;if(e.support.getBoundingClientRect){try{a=i.getBoundingClientRect()}catch(e){}if(!a)return t;if(a.right===a.left&&a.top===a.bottom)return t;var n=DiviArea.Utils.getWindow(r);t.top=a.top+(n.pageYOffset||o.scrollTop)-(o.clientTop||0),t.left=a.left+(n.pageXOffset||o.scrollLeft)-(o.clientLeft||0),t.width=a.right-a.left,t.height=a.bottom-a.top}else{if("none"===i.css("display"))return t;(t=i.offset()).width=i.outerWidth(),t.height=i.outerHeight()}return t.bottom=t.top+t.height,t.right=t.left+t.width,t},DiviArea.Utils.bindPassiveEvent=function(e,t,a){var r;r=!!i&&{passive:!1,capture:!1},o(e,t,(function(e,i){e.addEventListener(i,a,r)}))},DiviArea.Utils.unbindPassiveEvent=function(e,t,a){var r;r=!!i&&{passive:!1,capture:!1},o(e,t,(function(e,i){e.removeEventListener(i,a,r)}))},DiviArea.Utils.init=function(){var t={popupSelector:".et_pb_section.popup",fullHeightClass:"full-height",openPopupClass:"da-overlay-visible",overlayClass:"da-overlay",modalIndicatorClass:"is-modal",blockingIndicatorClass:"is-blocking",exitIndicatorClass:"on-exit",hoverTriggerClass:"on-hover",clickTriggerClass:"on-click",activePopupClass:"is-open",noCloseClass:"no-close",altCloseClass:"close-alt",notMobileClass:"not-mobile",notTabletClass:"not-tablet",notDesktopClass:"not-desktop",withCloseClass:"with-close",withLoaderClass:"with-loader",singletonClass:"single",darkModeClass:"dark",noShadowClass:"with-shadow",closeButtonClass:"da-close",popupWrapperClass:"area-outer-wrap",defaultShowCloseButton:!0,idAttrib:"data-popup",triggerClassPrefix:"show-popup-",baseContext:"body",triggerCloseClass:"close",zIndex:1e6,onExitDelay:2e3,animateSpeed:300,debug:!1,debugVerbose:!1,initializeOnEvent:"et_pb_after_init_modules"},a="";if(function(){try{var e={get passive(){return i=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){i=!1}}(),e.support.getBoundingClientRect="getBoundingClientRect"in document.documentElement,window.DiviAreaConfig||(window.DiviAreaConfig=t),window.DiviPopupData)for(a in DiviPopupData)DiviPopupData.hasOwnProperty(a)&&(DiviAreaConfig[a]=DiviPopupData[a]);for(a in t)void 0===DiviAreaConfig[a]&&(DiviAreaConfig[a]=t[a]);for(a in DiviAreaConfig)DiviAreaConfig[a].replace&&(DiviAreaConfig[a]=DiviAreaConfig[a].replace(/^[\s\xA0]+|[\s\xA0]+$/g,""));DiviAreaConfig.zIndex=parseInt(DiviAreaConfig.zIndex),DiviAreaConfig.onExitDelay=parseInt(DiviAreaConfig.onExitDelay),DiviAreaConfig.animateSpeed=parseInt(DiviAreaConfig.animateSpeed),DiviAreaConfig.debug=!!DiviAreaConfig.debug,DiviAreaConfig.defaultShowCloseButton=!!DiviAreaConfig.defaultShowCloseButton,(!DiviAreaConfig.triggerClassPrefix||DiviAreaConfig.triggerClassPrefix.length<3)&&(DiviAreaConfig.triggerClassPrefix=!1),"body"===DiviAreaConfig.baseContext&&(1===e("#et_builder_outer_content").length?(DiviAreaConfig.baseContext="#et_builder_outer_content",DiviArea.Debug.info("🎚 Divi plugin detected.","Inject Areas into #et_builder_outer_content")):1===e("body.et_divi_theme #page-container").length?(DiviAreaConfig.baseContext="#page-container",DiviArea.Debug.info("🎚 Divi theme detected.","Inject Areas into #page-container")):1===e(".et-db #et-boc").length&&(DiviAreaConfig.baseContext=".et-db #et-boc",DiviArea.Debug.info("🎚 Divi theme detected.","Inject Areas into #et-boc"))),"body"===DiviAreaConfig.baseContext||e(DiviAreaConfig.baseContext).length||(DiviAreaConfig.baseContext="body",DiviArea.Debug.info("🎚 Invalid baseContext given.","Inject Areas into body instead.")),window.DiviPopupData=window.DiviAreaConfig,window.DiviAreaConfig=DiviArea.applyFilters("init_options",DiviAreaConfig)},DiviArea.Utils.initErrorLogging=function(e){var i=function(e,i,t){if(!e[i]||!e[i].__dm_orig__){var a=e[i],r=void 0;for(var o in e[i]=function(){var e=!1;try{e=t.apply(this,arguments)}finally{!e&&a&&(r=a.apply(this,arguments))}return r},a)a.hasOwnProperty(o)&&(e[i][o]=a[o]);e[i].__dm_orig__=a}},t=function(){var e=arguments,i=!1;if(arguments[0]&&"[DiviAreas]"===arguments[0])return!1;for(var t=0;t<arguments.length;t++)if("object"==typeof e[t]&&e[t]&&e[t].message&&e[t].stack){i=e[t];break}if(i){var a=[],r=i.stack.toString().split("\n");if(a.push("divimode.com Anonymized Error Report"),a.push("-".repeat(30)),a.push(i.name),i.message?a.push(i.message):a.push("-"),a.push(""),r&&r.length>1)for(var o=0;o<r.length;o++){var n=r[o];if(n.match(/(\/wp-includes\/|\/jquery\.js)/))break;n.match(/\.js/)&&(n=(n=(n=n.replace(/^\s+|\s+$/g,"")).replace(/https?:.*?\/wp-content/g,"")).replace(/\.js\?[\w=&_\-\.]*/g,".js"),a.push(n))}if(DiviArea.info&&(a.push(""),a.push("js api:"+DiviArea.info)),window.DiviAreaConfig&&DiviAreaConfig.sys&&DiviAreaConfig.sys.plugin)for(var s in a.push(""),DiviAreaConfig.sys)try{a.push(s+": "+DiviAreaConfig.sys[s])}catch(e){}a.push("-".repeat(30));var l=console.error.__dm_orig__||console.error;return console.log(""),l("✋ "+a.join("\n| ")),console.log(""),!0}return!1};i(e,"onerror",t),i(e.console,"error",t)},DiviArea.Utils.toPixel=function(e,i,a){if(t||((t={}).PPI=void 0,t.getPPI=function(){return t.PPI=t.PPI||t.getSizeBrutal("in",document.body),t.PPI},t.parseUnit=function(e){var i=[0,""];e=String(e);var t=parseFloat(e,10);return i[0]=t,i[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",i},t.getPropertyInPx=function(e,i){var a=t.parseUnit(getComputedStyle(e).getPropertyValue(i));return a[0]*t.conversionFactor(a[1],e)},t.getSizeBrutal=function(e,i){var a=document.createElement("div");a.style.height="128"+e,i.appendChild(a);var r=t.getPropertyInPx(a,"height")/128;return i.removeChild(a),r},t.conversionFactor=function(e,i){switch(e=(e+""||"px").trim().toLowerCase()){case"%":return i.clientHeight/100;case"ch":case"ex":return t.getSizeBrutal(e,i);case"em":return t.getPropertyInPx(i,"font-size");case"rem":return t.getPropertyInPx(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return t.getPPI();case"cm":return t.getPPI()/2.54;case"mm":return t.getPPI()/25.4;case"pt":return t.getPPI()/72;case"pc":return t.getPPI()/6;case"px":return 1}return 0}),!e)return 0;if((a=a||document.body)!==window&&a!==document||(a=document.body),!isNaN(e)){if(i){var r=t.conversionFactor(i,a);return"number"==typeof r?e*r:0}return e}return 0},DiviArea.Utils.getStyleDef=function(e,i,t){var a="",o=window.innerWidth;if("string"==typeof e){var n=e.split(" "),s=DiviArea.getArea(n.shift());if(!s)return a;e=s.get(n.join(" "))[0]}if(r[o]||(r[o]=[],Array.from(document.styleSheets).map((function(e){try{for(var i=0;i<e.rules.length;i++){var t=e.rules[i];if(t.media){if(window.matchMedia(t.conditionText).matches)for(var a=0;a<t.cssRules.length;a++)r[o].push(t.cssRules[a])}else r[o].push(t)}}catch(e){}})),r[o].reverse()),e.style&&""!==e.style[i])a=e.style[i];else{var l=!1;r[o].some((function(r){var o=!1;try{o=e.matches(r.selectorText)}catch(e){}return!!o&&((!t||!t.length||-1===t.indexOf(r.selectorText))&&void(Array.from(r.style).some((function(e){return e===i}))&&(r.specificity||(r.specificity=DiviArea.Utils.getCssSpecificity(r.selectorText,r.style[i])),DiviArea.Utils.compareCssSpecificity(r.specificity,l)>0&&(l=r.specificity,a=r.style[i]))))}))}return a},DiviArea.Utils.getCssSpecificity=function(e,i){var t=e.split(",");if(t.length>1){for(var a,r=[],o=0;o<t.length;o++)a=DiviArea.Utils.getCssSpecificity(t[o]),DiviArea.Utils.compareCssSpecificity(a,r)>0&&(r=a);return r}var n,s,l,d=e,c={a:0,b:0,c:0};return s="string"==typeof i&&i.indexOf("!important")>0,n=function(e,i){var t,a,r,o,n;if(e.test(d))for(a=0,r=(t=d.match(e)).length;a<r;a+=1)c[i]+=1,o=t[a],d.indexOf(o),n=o.length,d=d.replace(o,Array(n+1).join(" "))},(l=function(e){var i,t,a,r;if(e.test(d))for(t=0,a=(i=d.match(e)).length;t<a;t+=1)r=i[t],d=d.replace(r,Array(r.length+1).join("A"))})(/\\[0-9A-Fa-f]{6}\s?/g),l(/\\[0-9A-Fa-f]{1,5}\s/g),l(/\\./g),function(){var e,i,t,a,r=/{[^]*/gm;if(r.test(d))for(i=0,t=(e=d.match(r)).length;i<t;i+=1)a=e[i],d=d.replace(a,Array(a.length+1).join(" "))}(),n(/(\[[^\]]+\])/g,"b"),n(/(#[^\#\s\+>~\.\[:\)]+)/g,"a"),n(/(\.[^\s\+>~\.\[:\)]+)/g,"b"),n(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),n(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,"b"),n(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,"b"),d=(d=(d=(d=(d=(d=d.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).replace(/:not/g," ")).replace(/:local/g," ")).replace(/:global/g," ")).replace(/[\(\)]/g," "),n(/([^\s\+>~\.\[:]+)/g,"c"),[s?1:0,c.a,c.b,c.c]},DiviArea.Utils.compareCssSpecificity=function(e,i){for(var t=0;t<4;t+=1){var a=parseInt(isNaN(e[t])?0:e[t]),r=parseInt(isNaN(i[t])?0:i[t]);if(a<r)return-1;if(a>r)return 1}return 0}}(window.jQuery),window.DiviAreaItem=function(e,i){var t,a,r,o,n,s,l,d=jQuery,c=window.ResizeObserver||window.WebKitResizeObserver,v=d(e),u={},p={hideclose:!1,showclose:!0,notmobile:!1,onmobile:!0,nottablet:!1,ontablet:!0,notdesktop:!1,ondesktop:!0,closealt:!1,notmodal:!0,ismodal:!1,notblocking:!1,isblocking:!1,triggerexit:!1,shadow:!0,noshadow:!1,darkmode:!1,singleton:!1,static:!1,withloader:!1},g={hideclose:"showclose",notdesktop:"ondesktop",notmobile:"onmobile",notmodal:"ismodal",notblocking:"isblocking",nottablet:"ontablet",shadow:"noshadow",dynamic:"static"},h=null,f=null,D=0,A=null,b=null,m=null,w={};function y(){for(var e in t=v.attr("id"),a=DiviArea.Utils.sanitizeHookName(t),r=U(i),o=v.closest(document.documentElement).length,n=o&&v[0].getClientRects().length,s={},l=!1,DiviArea.Debug.debug("Area Type",this.theType()),DiviArea.Debug.debug("Area ID",this.theId()),DiviArea.Debug.debug("Area Hook",this.theKey()),j(v),this.setData("zindex",0),this.setData("container",d("body")),this.setData("hasShowAnim",!0),this.setData("position","center-center"),this.setData("positionv","center"),this.setData("positionh","center"),this.setData("overflow","clip"),p)void 0!==v.data("da-"+e)?(this.setData(DiviArea.Utils.toBool(v.data("da-"+e))),v.removeAttr("data-da-"+e)):void 0!==v.data(e)?(this.setData(DiviArea.Utils.toBool(v.data(e))),v.removeAttr("data-"+e)):this.setData(e,p[e]);var u={};for(var g in u[DiviArea.Utils.getOption("notMobileClass")]=["onmobile",!1],u[DiviArea.Utils.getOption("notTabletClass")]=["ontablet",!1],u[DiviArea.Utils.getOption("notDesktopClass")]=["ondesktop",!1],u[DiviArea.Utils.getOption("noCloseClass")]=["showclose",!1],u[DiviArea.Utils.getOption("withCloseClass")]=["showclose",!0],u[DiviArea.Utils.getOption("altCloseClass")]=["closealt",!0],u[DiviArea.Utils.getOption("modalIndicatorClass")]=["ismodal",!0],u[DiviArea.Utils.getOption("blockingIndicatorClass")]=["isblocking",!0],u[DiviArea.Utils.getOption("exitIndicatorClass")]=["triggerexit",!0],u[DiviArea.Utils.getOption("noShadowClass")]=["noshadow",!0],u[DiviArea.Utils.getOption("darkModeClass")]=["darkmode",!0],u[DiviArea.Utils.getOption("singletonClass")]=["singleton",!0],u[DiviArea.Utils.getOption("withLoaderClass")]=["withloader",!0],u)if(v.hasClass(g)){var h=u[g];this.setData(h[0],h[1]),v.removeClass(g)}DiviArea.UI.initializeAreaAnimation(this),I(),x(),C(),c&&(A=new c((function(e){var i=v[0].scrollHeight-v[0].clientHeight;i>0&&i-v[0].scrollTop<1&&(v[0].scrollTop-=1),s.width=0,s.height=0,s.contentWidth=0,s.contentHeight=0,F("resize",z)}),{box:"border-box"}),b=new c((function(e){s.wrapperWidth=0,s.wrapperHeight=0,F("resize",z)}),{box:"border-box"}))}function C(){v.attr("data-da-area",t),h.attr("data-da-area",t),h.attr("data-da-registered",1),h.attr("data-da-type",this.theType()),h.attr("data-da-close-btn",this.getData("showclose")?"yes":"no"),h.attr("data-da-close-bg",this.getData("closeAlt")?"none":"solid"),h.attr("data-da-loader",this.getData("withLoader")?"yes":"no"),h.attr("data-da-shadow",this.getData("shadow")?"yes":"no"),h.attr("data-da-color",this.getData("darkMode")?"dark":"light"),h.attr("data-da-overflow",this.getData("overflow"));var e=this.getData("wrapClasses");e&&h.addClass(e),F("position",this.setPosition),this.doAction("refresh_area")}function _(){var e=this;if(this.isVisible()){v.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};h.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da").on("click.da",(function(e){return i(e,"custom")})),f.find("a").off(".da").on("click.da",(function(e){return i(e,"default")})),d(window).on("resize",P),this.addAction("close_area",H)}else h.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da"),f.find("a").off(".da"),d(window).off("resize",P),this.removeAction("close_area")}function k(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")&&f.show(),e()}))}}else this.getData("hasShowAnim")&&(f.hide(),DiviArea.Debug.info("✨ Animate the area (hide)",this.theId()),DiviArea.UI.animateArea(this,"hide",e))}function x(){if(!f){var e=DiviArea.Utils.getOption("closeButtonClass"),i=e+"-wrap";f=d("<span>").addClass(i).appendTo(h),d("<a>").attr("href","#close").addClass(e).html("&times;").appendTo(f),f.hide(),this.doAction("area_close_button",f,this)}}function I(){if(!h){var e=DiviArea.Utils.getOption("popupWrapperClass");(h=v.parent()).hasClass(e)||(v.wrap("<div>"),(h=v.parent()).addClass(e)),h.detach().appendTo("body"),j(h),this.doAction("area_wrap",h,this)}}function O(){var e=this;D&&clearTimeout(D),D=setTimeout((function(){D=0,e.inDom()&&C()}),20)}function U(e){return e.toLowerCase().trim().replace(/-/,"")}function H(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 P(){s.windowWidth=0,s.windowHeight=0,s.wrapperWidth=0,s.wrapperHeight=0,F("resize",z)}function z(){if(this.isVisible()){var e=this.getSize(),i=[e.width,e.height,e.contentWidth,e.contentHeight,e.windowWidth,e.windowHeight].join("-");if(u._resizeState!==i){if(u._resizeState=i,f.css({width:e.width,height:e.height}),(this.isType("popup")||this.isType("flyin"))&&"show"!==this.getData("overflow"))if(h.attr("data-da-size-full-height"))e.windowHeight-e.contentHeight>=20&&(h.removeAttr("data-da-size-full-height"),h.removeClass(DiviArea.Utils.getOption("fullHeightClass")));else e.windowHeight-e.contentHeight<20&&(h.attr("data-da-size-full-height",1),h.addClass(DiviArea.Utils.getOption("fullHeightClass")));F("position",this.setPosition)}}}function T(e,i){var t,a="";if(i||""===(a=DiviArea.Utils.getStyleDef(h[0],e))&&(a=DiviArea.Utils.getStyleDef(v[0],e)),""===a){var r=v.find(".et_pb_section");for(t=0;t<r.length&&!a;t++)a=DiviArea.Utils.getStyleDef(r[t],e,['[class*="et_pb_section_dap_"]'])}return a}function S(){var e=T("width"),i=T("max-width",!0);e&&"auto"!==e||(this.isType("popup")||h.css("width","100%"),v.css("width","100%")),i&&v.css("max-width",i)}function F(e,i){var t=this;w[e]||(w[e]=window.setTimeout((function(){w[e]=!1,i.apply(t)}),4))}function j(e){var i=this;e.data("is-area",!0),e.data("area",this),e.data("area-config",u),e.getArea=function(){return i}}function W(){}this.theId=function(){return"#"+t},this.theKey=function(){return a},this.hasId=function(e){e=e.replace(/^#/,"",e);var i=DiviArea.Data.getRealId(e);return i||(i=DiviArea.Data.getRealId("divi-area-"+e)),!(!i||i!==this.theId())},this.theType=function(){return r},this.isType=function(e){if(!e)return!0;if("string"!=typeof e)throw new Error("DiviAreaItem.isType() expects a string parameter. Given value is a "+typeof e);if((e=U(e))===r)return!0;if("any"===e||"all"===e)return!0;for(var i=0===e.indexOf("not:"),t=e.replace(/^not:\s*/,"").split(/\s*,\s*/),a=0;a<t.length;a++)if(t[a]===r)return!i;return i},this.get=function(e){return e?d(e,v):v},this.getWrap=function(){return h},this.attach=function(){if(O(),this.isPrepared()||(o=!1,n=!1,l=!0),this.inDom())return this;o=!0;var e=this.findHook();if(v.hide(),e){var i=e.data("area-place"),t=e;"after"===i?t=e.next():"replace"===i&&(m=e.next().detach()),t.after(h.detach())}else h.detach().appendTo(this.getData("container"));return h.closest("#et-boc").length||h.wrap('<div id="et-boc">'),F("position",this.setPosition),this.setVisible(!0,(function(){if(A){var e=DiviArea.Utils.getOption("closeButtonClass")+"-wrap";v.children().each((function(i,t){-1===t.className.indexOf(e)&&A.observe(t)})),A.observe(v[0]),b.observe(h[0])}})),this},this.detach=function(){if(this.isPrepared()&&!this.inDom())return this;l=!0,o=!1;var e=this.findHook();return A&&A.disconnect(),b&&b.disconnect(),this.setVisible(!1,(function(){var i=h.parent();v.hide(),h.detach(),"et-boc"!==i.attr("id")||i.hasClass("dm-base-context")||i.children().length||i.remove(),m&&(e.after(m),m=null)})),this},this.findHook=function(){var e='[data-area-hook="'+this.getData("hookid")+'"]',i=d(e);return!!i.length&&i},this.setVisible=function(e,i){if(e=!!e,!this.isPrepared()||this.isVisible()!==e)return"function"!=typeof i&&(i=W),n=e,_(),this.isPrepared()?k(i):i(),this.isVisible()?(S(),this.doAction("show_area")):this.doAction("hide_area"),this},this.setPosition=function(){var e={},i={};if(!this.isVisible()||!this.inDom())return this;if(this.getData("maxheight")&&(e.overflow="auto",e.maxHeight="100%",i.maxHeight=this.getData("maxheight")),this.getData("maxwidth")&&(e.maxWidth="100%",i.maxWidth=this.getData("maxwidth")),i.zIndex=this.getData("zindex"),this.doAction("resize_area"),this.isType("inline")||this.isType("hover"))h.removeAttr("data-da-position"),h.removeAttr("data-da-position-h"),h.removeAttr("data-da-position-v");else{var t=this.getData("positionh"),a=this.getData("positionv"),r=null;switch(h.attr("data-da-position",this.getData("position")),h.attr("data-da-position-h",t),h.attr("data-da-position-v",a),t){case"left":i.left="0";break;case"right":i.right="0";break;case"center":r||(r=this.getSize()),i.left=Math.max(0,parseInt((r.windowWidth-r.wrapperWidth)/2))+"px"}if(!h.attr("data-da-size-full-height"))switch(a){case"top":i.top="0";break;case"bottom":i.bottom="0";break;case"center":r||(r=this.getSize()),i.top=Math.max(0,parseInt((r.windowHeight-r.wrapperHeight)/2))+"px"}this.doAction("position_area",i,e,this)}return v.css(e),h.css(i),this},this.setTriggerEvent=function(i){var t=!1;return i&&(this.setData("event",i),i.currentTarget?t=i.currentTarget:i instanceof jQuery?t=i.first():window.HTMLElement&&e instanceof window.HTMLElement&&(t=d(i))),this.setData("attachto",t),DiviArea.Debug.debug("Attached to element:",t||"(none)"),this},this.isVisible=function(){return n},this.inDom=function(){return o},this.isPrepared=function(){return l},this.getSize=function(){var e=this.isVisible();if(s&&void 0!==s.width||(s={}),s.width||(s.width=e?v[0].clientWidth:0),s.height||(s.height=e?v[0].clientHeight:0),s.contentWidth||(s.contentWidth=e?v[0].scrollWidth:0),!s.contentHeight&&(s.contentHeight=0,e))if(v.hasClass("et_pb_section")){var i=window.getComputedStyle(v[0]);s.contentHeight+=parseInt(i["border-top-width"]),s.contentHeight+=parseInt(i["padding-top"]),s.contentHeight+=parseInt(i["padding-bottom"]),s.contentHeight+=parseInt(i["border-bottom-width"]),v.children().each((function(){s.contentHeight+=this.offsetHeight}))}else s.contentHeight=v[0].scrollHeight;return s.wrapperWidth||(s.wrapperWidth=e?h[0].offsetWidth:0),s.wrapperHeight||(s.wrapperHeight=e?h[0].offsetHeight:0),s.windowWidth||(s.windowWidth=window.innerWidth),s.windowHeight||(s.windowHeight=window.innerHeight),s},this.getData=function(e){var i;return e?(e=e.toLowerCase().replace(/[^a-z0-9]/,""),g.hasOwnProperty(e)?(e=g[e],i=!u[e]):i=u[e]):i=Object.keys(u).filter((function(e){return"string"==typeof e&&"_"!==e[0]})).reduce((function(e,i){return e[i]=u[i],e}),{}),i},this.setData=function(e,i){if(void 0===i)return this;if(e=e.toLowerCase().replace(/[^a-z0-9]/,""),p.hasOwnProperty(e))i=DiviArea.Utils.toBool(i,p[e]),g.hasOwnProperty(e)&&(e=g[e],i=!i);else switch(e){case"fixzindex":case"zindex":i=parseInt(i);break;case"closedelay":i=parseFloat(i);break;case"position":-1!==i.indexOf("top")?u.positionv="top":-1!==i.indexOf("bottom")?u.positionv="bottom":u.positionv="center",-1!==i.indexOf("left")?u.positionh="left":-1!==i.indexOf("right")?u.positionh="right":u.positionh="center",i=u.positionv+"-"+u.positionh;break;case"positionh":if("left"!==i&&"right"!==i&&"center"!==i)return this;break;case"positionv":if("top"!==i&&"bottom"!==i&&"center"!==i)return this;break;case"container":(i=d(i).first()).length||(i=d("body"));break;case"attachto":i=d(i).first()}switch(u[e]=i,e){case"positionh":case"positionv":u.position=u.positionv+"-"+u.positionh}return O(),this},this.doAction=function(e){for(var i=[],t=arguments.length-1;t-- >0;)i[t]=arguments[t+1];i.length||(i=[this]),DiviArea.doAction.apply(DiviArea,[[e,e+"_"+this.theKey()]].concat(i))},this.applyFilters=function(e,i){for(var t=[],a=arguments.length-2;a-- >0;)t[a]=arguments[a+2];return t.length||(t=[this]),DiviArea.applyFilters.apply(DiviArea,[[e,e+"_"+this.theKey()],i].concat(t))},this.addFilter=function(e,i,t,a){DiviArea.addFilter(e+"_"+this.theKey(),i,t,a)},this.addAction=function(e,i,t,a){DiviArea.addAction(e+"_"+this.theKey(),i,t,a)},this.removeFilter=function(e,i){DiviArea.removeFilter(e+"_"+this.theKey(),i)},this.removeAction=function(e,i){DiviArea.removeAction(e+"_"+this.theKey(),i)},this.addActionOnce=function(e,i,t,a){DiviArea.addActionOnce(e+"_"+this.theKey(),i,t,a)},this.hasClass=v.hasClass.bind(v),this.addClass=v.addClass.bind(v),this.removeClass=v.removeClass.bind(v),this.attr=v.attr.bind(v),this.removeAttr=v.removeAttr.bind(v),this.find=v.find.bind(v),this.css=v.css.bind(v),y=y.bind(this),C=C.bind(this),_=_.bind(this),k=k.bind(this),O=O.bind(this),I=I.bind(this),x=x.bind(this),H=H.bind(this),P=P.bind(this),z=z.bind(this),T=T.bind(this),S=S.bind(this),F=F.bind(this),j=j.bind(this),y()};var i,t,a,r,o;i=jQuery,t=0,DiviArea.init=function(e){var t=[window.location.protocol,"//",window.location.host,"/wp-admin/edit.php?post_type=divi-area&page=settings#frontend"];this.app=e?"Divi Areas Pro":"Popups for Divi",this.lib=e?"DiviArea":"DiviPopup",this.version="2.2.0",this.info=this.lib+"-"+this.version,this.loaded=!0,DiviArea.Debug.info("🚀 Initialize "+this.app,"- JS API:",this.info),e?DiviArea.Debug.info("ℹ️ You can disable the debug output on the Settings page:",t.join("")):DiviArea.Debug.info("ℹ️ You can disable the debug output by disabling WP_DEBUG"),DiviArea.Debug.debug("Details about the Debug Mode","https://divimode.com/knowledge-base/debug-options/"),DiviArea.Utils.init(),DiviArea.Utils.getOption("initializeOnEvent")?i(window,document).one(DiviArea.Utils.getOption("initializeOnEvent"),(function(){window.setTimeout(DiviArea.Core.init,1)})):window.setTimeout(DiviArea.Core.init,1)},DiviArea.markClosed=function(e,i){var t=DiviArea.getArea(e);t&&(e=t.theId()),e=e.replace(/^#/,""),DiviArea.Utils.getOption("debug")&&DiviArea.Debug.info("📌 Mark Area as closed for "+i+" minutes:",e),DiviArea.Utils.setLocalData(e,"1",i)},DiviArea.isClosed=function(e){var i=DiviArea.getArea(e);i&&(e=i.theId()),e=e.replace(/^#/,"");var t=DiviArea.Utils.getLocalData(e);if(DiviArea.Utils.getOption("debug")){var a=DiviArea.Data.sanitizeId(e);"1"===t?DiviArea.Debug.info("📌 Area is still closed:",a):DiviArea.Debug.info("📌 Area is not closed:",a)}return"1"===t},DiviArea.register=function(e,a,r,o){var n;if(void 0===a&&(a={}),void 0===r&&(r=!1),"string"!=typeof e||i(e).length||(e=DiviArea.Data.sanitizeId(e)),e&&(n=i(e)),!n||1!==n.length)return DiviArea.Debug.error("Cannot find the Area element:",e),!1;var s=DiviArea.getArea(e);if(s)return s;if("string"!=typeof e&&((e=n.attr("id"))&&!DiviArea.getArea(e)||(e=n.data("id")),e&&!DiviArea.getArea(e)||(e="dynamic-area-"+ ++t),n.attr("id",e)),n.length&&a.selector&&(n=n.filter(a.selector),delete a.selector),!n.length)return DiviArea.Debug.error("Cannot find the Area element:",e),!1;if(n.length>1)return DiviArea.Debug.error("Multiple matching elements found, but require exactly one:",e,n),!1;if("function"!=typeof r||o||(o=r,r=!1),!r){if(n.data("da-type"))r=n.data("da-type"),n.removeAttr("data-da-type");else if(n.data("type"))r=n.data("type"),n.removeAttr("data-type");else for(var l=n[0].className.split(/\s+/),d=0;d<l.length;d++)if(0===l[d].indexOf("divi-area-type-")){r=l[d].replace("divi-area-type-",""),n.removeClass(l[d]);break}if(!r)return DiviArea.Debug.error("Cannot determine the type for this Area",e,n),!1}if(DiviArea.Debug.group("Register Area | "+r+" | "+e),a.areaHook&&a.hookId&&"inline"===r){var c=i(a.areaHook).first();if(c.length){var v=i("<span>");v.attr("data-area-hook",a.hookId),v.attr("data-area-place",a.areaPlace),c.before(v)}else DiviArea.Debug.error("Inline hook not found:",a.areaHook)}var u=DiviArea.Data.createArea(n,r,e);return a.alternateid?DiviArea.Data.addAltId(u.theId(),a.alternateid):a.alternateId?DiviArea.Data.addAltId(u.theId(),a.alternateId):a.ids&&DiviArea.Data.addAltId(u.theId(),a.ids),delete a.alternateid,delete a.alternateId,delete a.ids,Object.keys(a).forEach((function(e){u.setData(e,a[e])})),u.setData("wrap-classes","et-l entry-content"),u.setData("container",DiviArea.Core.getContext()),u.applyFilters("pre_init_area",!1)||(u.isType("inline")&&u.getData("static")?(DiviArea.Core.initContainer(u),DiviArea.show(e,"static")):u.detach()),DiviArea.Debug.info("➕ Registered new area:",e,"("+r+")"),DiviArea.Debug.group(),"function"==typeof o&&o(u),u.doAction("init_area"),u},DiviArea.show=function(e,i){if(!e)return!1;var t=DiviArea.getArea(e);return t?DiviArea.Utils.showOnViewport(t)?(DiviArea.Debug.group("Show area",t.theId()),t.setData("hasShowAnim",!t.isVisible()),t.setTriggerEvent(i),t.isType("hover")&&DiviArea.Core.setupHoverArea(t),DiviArea.Core.attachArea(t),DiviArea.Core.reOrderAreas(),DiviArea.Debug.group(),!0):(DiviArea.Debug.debug("Do not trigger area on this device:",t.theId()),!1):(DiviArea.Debug.error("Could not find an area with the ID:",e),!1)},DiviArea.hide=function(e){var i=DiviArea.Data.getVisibleArea(e);i&&(i.setData("hasShowAnim",!0),i.setData("event",void 0),DiviArea.Debug.debug("Close area and unlink event handlers:",i.theId()),DiviArea.Core.detachArea(i)),DiviArea.Core.reOrderAreas()},function(e){DiviArea.Core=DiviArea.Core||{};var i=window.ResizeObserver||window.WebKitResizeObserver,t=null,a=!1,r=!1;function o(e,i){DiviArea.Core.isArea(e)||(e=DiviArea.Data.getVisibleArea())&&(DiviArea.Debug.debug("Close the top-most area"),e.doAction("close_area",e,"default"))}function n(e){if(27===e.keyCode)return function(){DiviArea.Debug.info("⚡️ ESC-key pressed");var e=!1,i=DiviArea.Data.getVisibleArea(null,"popup");return i?(e=i.getData("isblocking"),(e=DiviArea.applyFilters("ignore_esc_key",e))?(DiviArea.Debug.debug("Ignored, manually cancelled in filter"),!0):(DiviArea.Debug.debug("Close top-most popup"),DiviArea.doAction("close_area",null,"esc"),!1)):(DiviArea.Debug.debug("Ignored, no popup is visible"),!0)}()}function s(){var e=["popup","flyin"],i=!1;function t(e,t){i||e.getData("triggerexit")&&(DiviArea.isClosed(t)?e.setData("triggerexit",!1):DiviArea.show(t,"exit")&&(e.setData("triggerexit",!1),i=!0))}for(var a in e)i=!1,DiviArea.Data.loopAllAreas(t,e[a])}function l(e,i){var t=[];if(i.isType("popup")&&"show"===e&&i.getData("singleton")&&DiviArea.Data.loopVisibleAreas("popup",(function(e){t.push(e.theId())})),"hide"===e?i.doAction("before_hide_area",i,t):i.doAction("before_show_area",i,t),t.length)for(var a in DiviArea.Debug.debug("Hide following areas:",t),t){var r=DiviArea.getArea(t[a]);r&&r.inDom()&&DiviArea.Core.detachArea(r)}}function d(i,t){var a;if(a=DiviArea.Data.sanitizeId(t))if(i.attr("data-area-id"))DiviArea.Debug.debug("Trigger already prepared",i[0]);else if(DiviArea.getArea(a)){var r=DiviArea.Utils.getOption("hoverTriggerClass"),o=DiviArea.Utils.getOption("clickTriggerClass");i.attr("data-area-id",a),i.addClass("popup-trigger"),i.off("click"),i.hasClass(r)&&(i.on("mouseenter._da",n),DiviArea.Debug.debug("Prepared Hover trigger to open this area:",a,i[0])),i.hasClass(r)&&!i.hasClass(o)||(i.on("click._da",n),DiviArea.Debug.debug("Prepared Click trigger to open this area:",a,i[0]))}else DiviArea.Debug.debug("Ignore trigger. No area found with this ID:",i[0]);else DiviArea.Debug.debug("Ignore trigger. Invalid target ID:",t,i[0]);function n(i){var t=e(i.target);return!("A"!==t.prop("tagName")||!t.attr("href").length||t.attr("data-area-id"))||(i.preventDefault(),DiviArea.Debug.debug("Trigger area:",a),DiviArea.show(a,i),!1)}}function c(i){var t=e(i.target).closest("[data-da-type][data-da-registered]"),a=DiviArea.Utils.getOption("fullHeightClass");return!(!t.length||!t.hasClass(a)&&"show"!==t.attr("data-da-overflow"))||(i.preventDefault(),i.stopPropagation(),!1)}DiviArea.Core.init=function(){a?DiviArea.Debug.error("Core.init() was already executed. It should not run twice, please review the code!"):(a=!0,DiviArea.Debug.debug("Initialize the app"),DiviArea.doAction("load"),(t=e(DiviArea.Utils.getOption("baseContext")).filter(":visible").first()).length?(t.closest("#et-boc").length||(t.append('<div id="et-boc" class="dm-base-context"></div>'),t=t.find(".dm-base-context#et-boc").first()),DiviArea.Debug.debug('Base context "'+DiviArea.Utils.getOption("baseContext")+'" found',t)):DiviArea.Debug.error('Could not find the popup container "'+DiviArea.Utils.getOption("baseContext")+'"'),function(){var i=e(".et_pb_fullscreen_nav_container #mobile_menu_slide");if(!i.length)return;i.parent().css({minHeight:i.outerHeight()})}(),window.setTimeout((function(){e(window).on("mouseleave.da",(function(e){var i;"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&"select"!==e.target.tagName.toLowerCase()&&(i=Math.max(document.documentElement.clientWidth,window.innerWidth||0),e.clientX>=i-50||e.clientY>=50||e.toElement||e.relatedTarget||(DiviArea.Debug.info("⚡️ Exit-intent detected (mouse leave)"),DiviArea.doAction("exit_intent","mouse-leave")))})),DiviArea.addAction("exit_intent",s)}),DiviArea.Utils.getOption("onExitDelay")),DiviArea.addAction("ready",(function(){DiviArea.addAction("close_area",o),function(e){var i=window.MutationObserver||window.WebKitMutationObserver,t=window.addEventListener,a=DiviArea.Core.getContext(),r=!1;function o(){r||(r=setTimeout((function(){r=!1,DiviArea.Debug.debug("DOM changed"),e()}),50))}if(i){new i((function(e,i){if(e[0].addedNodes.length||e[0].removedNodes.length)return o()})).observe(a[0],{childList:!0,subtree:!0})}else t&&(a.addEventListener("DOMNodeInserted",o,!1),a.addEventListener("DOMNodeRemoved",o,!1))}(DiviArea.Core.activateContainer),e(document).on("keyup",n)}),1),DiviArea.addAction("ready",(function(){DiviArea.Core.activateContainer()}),9),DiviArea.doAction("ready"))},DiviArea.Core.isArea=function(e){return e&&e instanceof DiviAreaItem},DiviArea.Core.getContext=function(){return t},DiviArea.Core.reOrderAreas=function(){if(DiviArea.Data.countVisibleAreas("popup")||DiviArea.hideOverlay(),DiviArea.Data.countVisibleAreas()){var e=DiviArea.Utils.getOption("zIndex"),i=DiviArea.Data.countVisibleAreas("not: inline"),t=DiviArea.Data.countVisibleAreas("popup"),a=[],r=0,o=0,n={};if(DiviArea.Debug.debug("Refresh the z-index of visible areas"),DiviArea.Data.loopVisibleAreas("any",DiviArea.Core.blurArea),DiviArea.Core.focusArea(DiviArea.Data.getVisibleArea()),DiviArea.Data.loopVisibleAreas("not: inline",(function(a){var s=0,l=a.getData("fixZIndex");a.isType("popup")?(o++,s=e+i-t+o,a.hasClass(DiviArea.Utils.getOption("activePopupClass"))&&(n.overlay=s,s+=1)):(r++,s=e+r),isNaN(l)||(s=l),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=i.applyFilters("apply_z_index",n[e],i);t&&!isNaN(t)&&i.setData("zindex",t),i.isType("popup")&&i.attach(),a.push({id:i.theId(),type:i.theType(),"z-index":i.getData("zindex")||null})}}}},DiviArea.Core.activateContainer=function(i){var t,a,r=void 0===i;if(void 0===i?i=e("body"):DiviArea.Core.isArea(i)&&(i=i.get()),function(i){i.find(DiviArea.Utils.getOption("popupSelector")).not("[data-da-area]").filter("[id]").each((function(){var i=e(this);DiviArea.Debug.debug("Found an inline Popup Area:",i.attr("id")),DiviArea.register(i,{},"popup")}))}(i),(a=function(i,t){var a,r,o,n=[];if(!i.ids||!i.ids.length)return[];function s(i,t){var a;for(a=0;a<t.length;a++){var r=e(t[a]);r.attr("data-area-id")||(r.attr("data-da-area")||r.hasClass("divi-area-wrap")||r.hasClass("et_pb_section")&&r.hasClass("popup")||n.push({id:i,item:r}))}}for(a=0;a<i.ids.length;a++){var l="#"+(o=i.ids[a].replace(/^#/,"")),d=i.linkPrefix?"#"+i.linkPrefix+o:"",c="."+o,v=i.classPrefix?"."+i.classPrefix+o:"",u=i.dataAttrib?i.dataAttrib+'="'+o+'"':"";if(s(o,e('[href="'+l+'"]',t)),d&&s(o,e('[href="'+d+'"]',t)),s(o,e(c,t)),v&&s(o,e(v,t)),u&&s(o,e("["+u+"]",t)),window.et_link_options_data)for(r=et_link_options_data.length-1;r>=0;r--)if(l===et_link_options_data[r].url||d===et_link_options_data[r].url){var p=e("."+et_link_options_data[r].class,t);s(o,p),p.off("click"),et_link_options_data.splice(r,1)}}return n}({ids:DiviArea.listAreas(),linkPrefix:"popup:",dataAttrib:DiviArea.Utils.getOption("idAttrib"),classPrefix:DiviArea.Utils.getOption("triggerClassPrefix")},i)).length){for(r?DiviArea.Debug.group("Activate all triggers in document"):DiviArea.Debug.group("Activate triggers in area",i.attr("id")),t=0;t<a.length;t++){var o=a[t];d(o.item,o.id)}DiviArea.Debug.group()}else r?DiviArea.Debug.debug("No new triggers found in document"):DiviArea.Debug.debug("No new triggers found in area",i.attr("id"));DiviArea.Core.initContainer(i)},DiviArea.Core.initContainer=function(i){var t=!1,a=!1;return DiviArea.Core.isArea(i)?(t=i,i=i.get()):i.data("is-area")&&(t=i.getArea()),t&&(a=t.getData("post_id")),t&&!0===i.data("area-init-done")||(t&&i.data("area-init-done",!0),e("body").trigger("post-load"),i.find("img[loading=lazy]").attr("loading","eager"),void 0!==window.et_fix_pricing_currency_position&&window.et_fix_pricing_currency_position(i.find(".et_pb_pricing_table")),a&&i.find(".et_pb_newsletter_form").length&&i.find(".et_pb_newsletter_form [name=et_pb_signup_post_id]").val(a),function(e){if(!window.grecaptcha)return;if(!e.find('input[name="g-recaptcha-response"]').length)return;if(e.find("[data-sitekey].g-recaptcha").length>0){if(!grecaptcha.render)return;e.find("form").each((function(){var e=jQuery(this),i=e.find("[data-sitekey].g-recaptcha");if(i.length&&!e.find('iframe[src*="/recaptcha/"]').length){var t={sitekey:i.attr("data-sitekey"),type:i.attr("data-type"),size:i.attr("data-size"),theme:i.attr("data-theme"),badge:i.attr("data-badge"),tabindex:i.attr("data-tabindex")},a=i.attr("data-callback"),r=i.attr("data-expired-callback");a&&"function"==typeof window[a]&&(t.callback=window[a]),r&&"function"==typeof window[r]&&(t["expired-callback"]=window[r]);var o=grecaptcha.render(i[0],t);window.recaptchaWidgets&&recaptchaWidgets.push(o)}}))}else{if(!grecaptcha.execute)return;var i=jQuery('script[src*="google.com/recaptcha/api.js"]').attr("src").replace(/^.*render=(.*)$/,"$1").split("&")[0];grecaptcha.execute(i,{action:"homepage"}).then((function(i){e.find('form [name="g-recaptcha-response]').val(i)}))}}(i)),void 0!==window.et_reinit_waypoint_modules&&window.et_reinit_waypoint_modules(),i},DiviArea.Core.deactivateContainer=function(i){DiviArea.Core.isArea(i)&&(DiviArea.Debug.debug("Deactivate all triggers in area",i.theId()),i.find("[data-area-id]").each((function(){!function(e){DiviArea.Debug.debug("Remove trigger:",e[0]),e.removeAttr("data-area-id"),e.removeClass("popup-trigger"),e.off("._da")}(e(this))})))},DiviArea.Core.attachArea=function(e){r||(r=!0,l("show",e),r=!1),DiviArea.Data.addVisibleArea(e),e.attach()},DiviArea.Core.detachArea=function(e){if(r||(r=!0,l("hide",e),r=!1),e.inDom()){if(!DiviArea.Core.isArea(e)||!e.inDom())return;e.removeClass("__is_animating"),DiviArea.Data.removeVisibleArea(e),DiviArea.Core.blurArea(e),e.detach()}},DiviArea.Core.focusArea=function(e){var i=DiviArea.Utils.getOption("activePopupClass");e&&(e.get(),DiviArea.Core.activateContainer(e),e.hasClass(i)||(e.addClass(i),e.doAction("focus_area")))},DiviArea.Core.blurArea=function(e){var i=DiviArea.Utils.getOption("activePopupClass");e&&(e.get(),DiviArea.Core.deactivateContainer(e),e.hasClass(i)&&(e.removeClass(i),e.doAction("blur_area")))},DiviArea.Core.setupHoverArea=function(t){var a=t.getData("attachto"),r=t.get(),o=t.getWrap();if(a.length){var n=DiviArea.Utils.isPosition(a,"fixed"),s=t.theId(),l=t.getData("closeTrigger"),d=1e3*t.getData("closedelay"),c=!1,v=!1,u=!1;i&&(u=new i((function(e){for(var i=0;i<e.length;i++){var t=e[i].contentRect,a=t.width+"-"+t.height;a!==v&&(v=a,p())}}),{box:"border-box"})),u&&u.observe(a[0]),t.addAction("resize_area",p),"click"===l?e(document).on("click."+t.theKey(),(function(i){e(i.target).closest(s).length||g()})):"hover"===l&&(r.on("mouseleave._dah",g),a.on("mouseleave._dah",g)),a.on("mouseenter._dah",h),r.on("mouseenter._dah",h),DiviArea.Debug.debug("Prepared positioning of hover area")}else DiviArea.Debug.error("Hover Area without alignment element found");function p(){var e=n?a[0].getBoundingClientRect():DiviArea.Utils.getClientRect(a),i=t.getData("positionv"),r=t.getData("positionh"),s=t.getSize(),l={},d={left:"",top:"",right:"",bottom:"",width:"",height:"",position:n?"fixed":"absolute"};"top"===i||"bottom"===i?(d.top="top"===i?e.top-s.height:e.bottom,d.left=e.left+e.width/2-s.width/2):"left"===r||"right"===r?(d.left="left"===r?e.left-s.width:e.right,d.top=e.top+e.height/2-s.height/2):"center"===r&&"center"===i?(d.left=e.left+e.width/2-s.width/2,d.top=e.top+e.height/2-s.height/2):DiviArea.Debug.error("Invalid position",t.getData("position")),d.top<0&&(d.top=0),d.left<0&&(d.left=0),d.left+s.width>window.innerWidth&&(d.left=window.innerWidth-s.width),t.doAction("position_area",d,l,t),DiviArea.Debug.debug("Area position:",d),o.css(d),t.css(l)}function g(){h(),c=window.setTimeout((function(){var i=t.getData("attachto");i&&i.length&&a!==i||(u&&u.disconnect(),t.removeAction("resize_area",p),e(document).off("."+t.theKey()),r.off("._dah"),a.off("._dah"),DiviArea.hide(t))}),d)}function h(){c&&window.clearTimeout(c),c=!1}},DiviArea.Core.disableBodyScroll=function(){var i=e("body");if(!0!==i.data("da-disable-scroll")){i.data("da-disable-scroll",!0),DiviArea.Utils.bindPassiveEvent([i,DiviArea.getOverlay()],"mousewheel touchmove",c);var t=window.innerWidth-document.body.clientWidth;i.addClass(DiviArea.Utils.getOption("openPopupClass")),t&&(i.css("padding-right",t),i.hasClass("et_boxed_layout")||e(".et_fixed_nav #main-header").css("padding-right",t)),DiviArea.doAction("disabled_scrolling")}},DiviArea.Core.enableBodyScroll=function(){var i=e("body");!0===i.data("da-disable-scroll")&&(i.data("da-disable-scroll",!1),DiviArea.Utils.unbindPassiveEvent([i,DiviArea.getOverlay()],"mousewheel touchmove",c),i.removeClass(DiviArea.Utils.getOption("openPopupClass")),i.css("padding-right",""),e(".et_fixed_nav #main-header").css("padding-right",""),DiviArea.doAction("enabled_scrolling"))},DiviArea.Core.closeMainMenu=function(){e(".et_pb_fullscreen_menu_active").length?e(".et_toggle_fullscreen_menu").first().trigger("click"):e(".et_pb_slide_menu_active").length&&e(".et_toggle_slide_menu").first().trigger("click")}}(jQuery),function(e){DiviArea.Data=DiviArea.Data||{};var i={},t=[],a={};DiviArea.Data.sanitizeId=function(e,i){if(!e)return"";if(e instanceof DiviAreaItem)return e.theId();if(e instanceof jQuery)return"#"+e.attr("id");if(e){if(i){var t=new RegExp("^#"+i+":");e=e.replace(t,"#",e)}"#"!==e[0]&&(e="#"+e)}return e.length>1?e:""},DiviArea.Data.getRealId=function(e){var t=[];if(!e||"string"!=typeof e)return"";for(e=e.toString().trim(),t.push(DiviArea.Data.sanitizeId(e)),-1===e.indexOf("divi-area-")&&t.push(DiviArea.Data.sanitizeId("divi-area-"+e));t.length;){var r=t.shift();if(r){if(void 0!==i[r])return r;if(a[r]&&(r=DiviArea.Data.sanitizeId(a[r])),r&&void 0!==i[r])return r}}return""},DiviArea.Data.addAltId=function(e,i){function t(i){i=DiviArea.Data.sanitizeId(i),e!==i&&(null===e?delete a[i]:a[i]=e)}e=DiviArea.Data.sanitizeId(e),Array.isArray(i)?i.forEach((function(e){return t(e)})):t(i)},DiviArea.Data.getArea=function(e){if(void 0===e)return DiviArea.Data.getVisibleArea();if(e instanceof DiviAreaItem)return e;e instanceof jQuery&&(e=e.attr("id"));var t=DiviArea.Data.getRealId(e);return!!t&&i[t]},DiviArea.Data.createArea=function(e,t,a){return a=DiviArea.Data.sanitizeId(a),i[a]=new DiviAreaItem(e,t),i[a]},DiviArea.Data.getAllIds=function(e){var t=[];if(e||(e="all"),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){if("function"==typeof t){var a=e;e=t,t=a}for(var r in t||(t="all"),i){var o=i[r];o.isType(t)&&e(o,r)}},DiviArea.Data.countVisibleAreas=function(e){if(!e||"any"===e)return t.length;var i=0;return DiviArea.Data.loopVisibleAreas(e,(function(){return i++})),i},DiviArea.Data.addVisibleArea=function(e){if(!(e=DiviArea.getArea(e)))return!1;if(e.isType("popup")||!DiviArea.Data.countVisibleAreas("popup"))t.push(e);else for(var i=0;i<t.length;i++)if(t[i].isType("popup")){t.splice(i,0,e);break}},DiviArea.Data.removeVisibleArea=function(e){if(!(e=DiviArea.getArea(e)))return!1;for(var i=e.theId(),a=t.length-1;a>=0;a--){t[a].theId()===i&&t.splice(a,1)}},DiviArea.Data.getVisibleArea=function(e,i){var a=t.length-1;if(!e&&!i)return t[a];if(e){var r=DiviArea.getArea(e);return!!r&&(!!r.isType(i)&&(!!r.isVisible()&&r))}for(var o=a;o>=0;o--){var n=t[o];if(n.isType(i))return n}return!1},DiviArea.Data.loopVisibleAreas=function(e,i,a){for(var r=t.length,o=a?r-1:0,n=0;n<r;n++){var s=t[o];o+=a?-1:1,s.isType(e)&&i(s,n)}}}(),function(e){var i=null,t=!1;function a(e){DiviArea.Debug.info("⚡️ Click on background overlay"),e.preventDefault(),DiviArea.doAction("click_overlay",i);var t=DiviArea.Data.getVisibleArea(null,"popup");return t?t.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(e){var i=DiviArea.getOverlay();return e&&!isNaN(e)||(e=DiviArea.Utils.getOption("zIndex"),e+=Math.max(0,DiviArea.Data.countVisibleAreas())),i.css({zIndex:e}),t||(t=!0,DiviArea.Debug.info("⤴️ Show background overlay"),DiviArea.Core.disableBodyScroll(),i.detach().appendTo(DiviArea.Core.getContext()),i.fadeIn(DiviArea.Utils.getOption("animateSpeed")),DiviArea.doAction("show_overlay",i),DiviArea.Core.closeMainMenu()),e},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 null===i&&((i=e("<div />")).addClass(DiviArea.Utils.getOption("overlayClass")),i.on("click.popup",a),DiviArea.doAction("init_overlay",i)),i}}(jQuery),function(){DiviArea.UI=DiviArea.UI||{};var e={};function i(e,i,t){t=t||e.data("et_waypoint_max_instances")||1;var a=e.data("et_waypoint")||[];if(a.length<t){var r=e.waypoint(i);r&&r.length>0&&(a.push(r[0]),e.data("et_waypoint",a))}else for(var o=0;o<a.length;o++)a[o].context.refresh()}DiviArea.UI.animateArea=function(t,a,r){var o=!1,n=!1;window.TweenLite&&t.isType("flyin")&&(n=!0),"function"!=typeof r&&(r=function(){}),"hide"!==a||t.isType("flyin")?(t.hasClass("et_pb_section")&&jQuery.fn.waypoint&&"yes"!==et_pb_custom.ignore_waypoints&&function(t){var a,r=t.attr("data-animation");if(!r)return!1;if(!(a=e[r]))return!1;jQuery("body").css("overflow-x","hidden"),jQuery("#page-container").css("overflow-y","hidden"),t.attr({"data-animation-style":a.style,"data-animation-repeat":"once"===a.repeat?"":"infinite","data-animation-duration":a.duration,"data-animation-delay":a.delay,"data-animation-intensity":a.intensity,"data-animation-starting-opacity":a.starting_opacity,"data-animation-speed-curve":a.speed_curve}),i(t,{offset:"100%",handler:function(){!function(e){var i=e.attr("data-animation-style"),t=e.attr("data-animation-repeat"),a=e.attr("data-animation-duration"),r=e.attr("data-animation-delay"),o=e.attr("data-animation-intensity"),n=e.attr("data-animation-starting-opacity"),s=e.attr("data-animation-speed-curve");!function(e){for(var i=[],t=e.get(0).attributes,a=0;a<t.length;a++)"data-animation-"===t[a].name.substring(0,15)&&i.push(t[a].name);jQuery.each(i,(function(i,t){e.removeAttr(t)}))}(e);var l=isNaN(parseInt(n))?0:.01*parseInt(n);-1===jQuery.inArray(s,["linear","ease","ease-in","ease-out","ease-in-out"])&&(s="ease-in-out"),e.css({"animation-duration":a,"animation-delay":r,opacity:l,"animation-timing-function":s});for(var d={},c=isNaN(parseInt(o))?50:parseInt(o),v=["slide","zoom","flip","fold","roll"],u=!1,p=!1,g=0;g<v.length;g++){var h=v[g];if(i&&i.substr(0,h.length)===h){u=h,""!==(p=i.substr(h.length,i.length))&&(p=p.toLowerCase());break}}!1!==u&&!1!==p&&(d=function(e,i,t){var a={};switch(e){case"slide":switch(i){case"top":a={transform:"translate3d(0, "+(r=-2*t)+"%, 0)"};break;case"right":a={transform:"translate3d("+(r=2*t)+"%, 0, 0)"};break;case"bottom":a={transform:"translate3d(0, "+(r=2*t)+"%, 0)"};break;case"left":var r=-2*t;a={transform:"translate3d("+r+"%, 0, 0)"};break;default:a={transform:"scale3d("+(o=.01*(100-t))+", "+o+", "+o+")"}}break;case"zoom":var o=.01*(100-t);switch(i){case"top":case"right":case"bottom":case"left":default:a={transform:"scale3d("+o+", "+o+", "+o+")"}}break;case"flip":switch(i){case"right":a={transform:"perspective(2000px) rotateY("+(n=Math.ceil(.9*t))+"deg)"};break;case"left":a={transform:"perspective(2000px) rotateY("+(n=-1*Math.ceil(.9*t))+"deg)"};break;case"top":default:a={transform:"perspective(2000px) rotateX("+(n=Math.ceil(.9*t))+"deg)"};break;case"bottom":a={transform:"perspective(2000px) rotateX("+(n=-1*Math.ceil(.9*t))+"deg)"}}break;case"fold":switch(i){case"top":a={transform:"perspective(2000px) rotateX("+(n=-1*Math.ceil(.9*t))+"deg)"};break;case"bottom":a={transform:"perspective(2000px) rotateX("+(n=Math.ceil(.9*t))+"deg)"};break;case"left":a={transform:"perspective(2000px) rotateY("+(n=Math.ceil(.9*t))+"deg)"};break;case"right":default:a={transform:"perspective(2000px) rotateY("+(n=-1*Math.ceil(.9*t))+"deg)"}}break;case"roll":switch(i){case"right":case"bottom":a={transform:"rotateZ("+(n=-1*Math.ceil(3.6*t))+"deg)"};break;case"top":case"left":a={transform:"rotateZ("+(n=Math.ceil(3.6*t))+"deg)"};break;default:var n=Math.ceil(3.6*t);a={transform:"rotateZ("+n+"deg)"}}}return a}(u,p,c)),jQuery.isEmptyObject(d)||e.css(d),e.addClass("et_animated"),e.addClass(i),e.addClass(t)}(jQuery(this.element))}})}(t.get())&&(o=!0),n?function(e,i,t){DiviArea.Debug.debug("Animate Area using GSAP");var a=DiviArea.Utils.getOption("animateSpeed"),r={},o={},n=e.get();n.css({opacity:"show"===i?0:1,transition:"all 0s"}),n.show(),window.setTimeout((function(){"left"===e.getData("positionh")?(r.left=-1*n.outerWidth(),o.left=0):"right"===e.getData("positionh")?(r.right=-1*n.outerWidth(),o.right=0):"top"===e.getData("positionv")?(r.top=-1*n.outerHeight(),o.top=0):"bottom"===e.getData("positionv")&&(r.bottom=-1*n.outerHeight(),o.bottom=0),r.opacity=1,o.opacity=1,"hide"===i?(n.css(o),TweenLite.to(n,a/1e3,{css:r})):(n.css(r),TweenLite.to(n,a/1e3,{css:o})),window.setTimeout(t,a)}),5)}(t,a,r):o?function(e,t,a){DiviArea.Debug.debug("Animate Area using a Divi Animation");var r=e.get();r.show(),r.css({opacity:0}),window.setTimeout((function(){r.css({opacity:""}),i(r,{offset:"100%",handler:function(){r.addClass("et-animated"),a()}},2)}),10)}(t,0,r):function(e,i,t){var a=e.get(),r=DiviArea.Utils.getOption("animateSpeed");"show"===i?(DiviArea.Debug.debug("Animate Area using jQuery fadeIn",r),a.fadeIn(r,t)):"hide"===i&&(DiviArea.Debug.debug("Animate Area using jQuery fadeOut",r),a.fadeOut(r,t))}(t,a,r)):r()},DiviArea.UI.initializeAreaAnimation=function(i){if(!window.et_animation_data||!window.et_animation_data.length>0)return!1;i.removeClass("et-waypoint"),i.removeClass("et-animated");for(var t=0;t<et_animation_data.length;t++){var a=!1,r=et_animation_data[t];if(r&&(r.class&&i.hasClass(r.class)&&r.style&&r.repeat&&r.duration&&r.delay&&r.intensity&&r.starting_opacity&&r.speed_curve))return a=r.class,i.addClass("pfd-waypoint"),i.attr("data-animation",a),e[a]=r,et_animation_data[t].class=void 0,!0}return!1}}(),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")}}(),a=!0,(r={}).silent=DiviArea.Hooks.silent,r.removeFilter=DiviArea.Hooks.removeFilter,r.removeAction=DiviArea.Hooks.removeAction,r.applyFilters=DiviArea.Hooks.applyFilters,r.doAction=DiviArea.Hooks.doAction,r.addFilter=DiviArea.Hooks.addFilter,r.addAction=DiviArea.Hooks.addAction,r.addActionOnce=DiviArea.Hooks.addActionOnce,DiviArea.Hooks.silent=function(){return a=!1,r.silent.apply(this,arguments)},DiviArea.removeFilter=DiviArea.Hooks.removeFilter=function(e){return a&&DiviArea.Debug.debug("Remove Filter:",e),a=!0,r.removeFilter.apply(this,arguments)},DiviArea.removeAction=DiviArea.Hooks.removeAction=function(e){return a&&DiviArea.Debug.debug("Remove Action:",e),a=!0,r.removeAction.apply(this,arguments)},DiviArea.applyFilters=DiviArea.Hooks.applyFilters=function(e){if(a){Array.isArray(e)||(e=[e]),DiviArea.Debug.info("📢️ Apply Filters:",e.join(" → "));for(var i=0;i<e.length;i++)DiviArea.Debug.debug(' ⚙ DiviArea.addFilter("'+e[i]+'", callback)')}return a=!0,r.applyFilters.apply(this,arguments)},DiviArea.doAction=DiviArea.Hooks.doAction=function(e){if(a){Array.isArray(e)||(e=[e]),DiviArea.Debug.info("📢️ Do Action:",e.join(" → "));for(var i=0;i<e.length;i++)DiviArea.Debug.debug(' ⚙ DiviArea.addAction("'+e[i]+'", callback)')}return a=!0,r.doAction.apply(this,arguments)},DiviArea.addFilter=DiviArea.Hooks.addFilter=function(e){return a&&DiviArea.Debug.debug("Add Filter:",e),a=!0,r.addFilter.apply(this,arguments)},DiviArea.addAction=DiviArea.Hooks.addAction=function(e){return a&&DiviArea.Debug.debug("Add Action:",e),a=!0,r.addAction.apply(this,arguments)},DiviArea.addActionOnce=DiviArea.Hooks.addActionOnce=function(e){return a&&DiviArea.Debug.debug("Add Action Once:",e),a=!0,r.addActionOnce.apply(this,arguments)},DiviArea.openPopup=function(e){DiviArea.Debug.error("DiviArea.openPopup() is deprecated. Please use DiviArea.show() instead"),DiviArea.show(e)},DiviArea.openArea=function(e){DiviArea.Debug.error("DiviArea.openArea() is deprecated. Please use DiviArea.show() instead"),DiviArea.show(e)},DiviArea.closePopup=function(e){DiviArea.Debug.error("DiviArea.closeArea() is deprecated. Please use DiviArea.hide() instead"),DiviArea.hide(e)},DiviArea.closeArea=function(e){DiviArea.Debug.error("DiviArea.closeArea() is deprecated. Please use DiviArea.hide() instead"),DiviArea.hide(e)},DiviArea.Data.configArea=function(e,i,t){DiviArea.Debug.error("DiviArea.configArea() is deprecated. Please use area.setData() instead");var a=DiviArea.getArea(e);if(a)if("object"!=typeof i)a.setData(i,t);else for(var r in i)i.hasOwnProperty(r)&&a.setData(r,i[r])},DiviArea.Hooks.silent().addAction("init_area",(function(e){DiviArea.Hooks.silent().doAction("init_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("show_area",(function(e){DiviArea.Hooks.silent().doAction("show_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("hide_area",(function(e){DiviArea.Hooks.silent().doAction("hide_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("close_area",(function(e,i){e&&DiviArea.Hooks.silent().doAction("close_area-"+e.theKey(),e,i)}),1),DiviArea.Hooks.silent().addAction("blur_area",(function(e){DiviArea.Hooks.silent().doAction("blur_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("focus_area",(function(e){DiviArea.Hooks.silent().doAction("focus_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("before_show_area",(function(e,i){DiviArea.Hooks.silent().doAction("before_show_area-"+e.theKey(),e,i)}),1),DiviArea.Hooks.silent().addAction("before_hide_area",(function(e,i){DiviArea.Hooks.silent().doAction("before_hide_area-"+e.theKey(),e,i)}),1),DiviArea.Hooks.silent().addFilter("ignore_close_area",(function(e,i,t){return e=DiviArea.Hooks.silent().applyFilters("before_close_area",e,i,t),e=DiviArea.Hooks.silent().applyFilters("before_close_area-"+i.theKey(),e,i,t)}),1),DiviArea.Hooks.silent().addFilter("ignore_esc_key",(function(e){return e=DiviArea.Hooks.silent().applyFilters("esc_key_pressed",e)}),1),DiviArea.Hooks.silent().addAction("area_close_button",(function(e){e.addClass("evr-close_wrap"),e.find(">a").addClass("evr-close")}),1),DiviArea.Hooks.silent().addAction("area_wrap",(function(e){e.addClass("popup_outer_wrap")}),1),DiviArea.Hooks.silent().addAction("init_overlay",(function(e){e.addClass("evr_fb_popup_modal")}),1),DiviArea.Hooks.silent().addAction("refresh_area",(function(e){var i={notmobile:DiviArea.Utils.getOption("notMobileClass"),nottablet:DiviArea.Utils.getOption("notTabletClass"),notdesktop:DiviArea.Utils.getOption("notDesktopClass"),showclose:DiviArea.Utils.getOption("withCloseClass"),hideclose:DiviArea.Utils.getOption("noCloseClass"),closealt:DiviArea.Utils.getOption("altCloseClass"),ismodal:DiviArea.Utils.getOption("modalIndicatorClass"),noshadow:DiviArea.Utils.getOption("noShadowClass"),darkmode:DiviArea.Utils.getOption("darkModeClass"),singleton:DiviArea.Utils.getOption("singletonClass")};for(var t in i)e.getData(t)?e.addClass(i[t]):e.removeClass(i[t])}),1),DiviArea.listAreas=DiviArea.Data.getAllIds,DiviArea.configArea=DiviArea.Data.configArea,DiviArea.getArea=DiviArea.Data.getArea,(o=e)&&o.default,DiviArea.init(!1)}();
 
js/ie-compat.js DELETED
@@ -1 +0,0 @@
1
- !function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t=[],n="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(e||(e={}));var r,o,i,s,a,c=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Object.freeze(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),u=function(e){return e instanceof SVGElement&&"getBBox"in e},h=function(e){if(u(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},f=function(e){var t,n,r=null===(n=null===(t=e)||void 0===t?void 0:t.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(r&&e instanceof r.Element)},d="undefined"!=typeof window?window:{},l=new WeakMap,v=/auto|scroll/,p=/^tb|vertical/,g=/msie|trident/i.test(d.navigator&&d.navigator.userAgent),b=function(e){return parseFloat(e||"0")},m=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),Object.freeze({inlineSize:(n?t:e)||0,blockSize:(n?e:t)||0})},w=Object.freeze({devicePixelContentBoxSize:m(),borderBoxSize:m(),contentBoxSize:m(),contentRect:new c(0,0,0,0)}),y=function(e,t){if(void 0===t&&(t=!1),l.has(e)&&!t)return l.get(e);if(h(e))return l.set(e,w),w;var n=getComputedStyle(e),r=u(e)&&e.ownerSVGElement&&e.getBBox(),o=!g&&"border-box"===n.boxSizing,i=p.test(n.writingMode||""),s=!r&&v.test(n.overflowY||""),a=!r&&v.test(n.overflowX||""),f=r?0:b(n.paddingTop),d=r?0:b(n.paddingRight),y=r?0:b(n.paddingBottom),E=r?0:b(n.paddingLeft),x=r?0:b(n.borderTopWidth),T=r?0:b(n.borderRightWidth),z=r?0:b(n.borderBottomWidth),S=E+d,B=f+y,O=(r?0:b(n.borderLeftWidth))+T,R=x+z,M=a?e.offsetHeight-R-e.clientHeight:0,k=s?e.offsetWidth-O-e.clientWidth:0,C=o?S+O:0,N=o?B+R:0,A=r?r.width:b(n.width)-C-k,D=r?r.height:b(n.height)-N-M,F=A+S+k+O,P=D+B+M+R,_=Object.freeze({devicePixelContentBoxSize:m(Math.round(A*devicePixelRatio),Math.round(D*devicePixelRatio),i),borderBoxSize:m(F,P,i),contentBoxSize:m(A,D,i),contentRect:new c(E,f,A,D)});return l.set(e,_),_},E=function(t,n,r){var o=y(t,r),i=o.borderBoxSize,s=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(n){case e.DEVICE_PIXEL_CONTENT_BOX:return a;case e.BORDER_BOX:return i;default:return s}},x=function(e){var t=y(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=[t.borderBoxSize],this.contentBoxSize=[t.contentBoxSize],this.devicePixelContentBoxSize=[t.devicePixelContentBoxSize]},T=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},z=function(){var e=1/0,n=[];t.forEach((function(t){if(0!==t.activeTargets.length){var r=[];t.activeTargets.forEach((function(t){var n=new x(t.target),o=T(t.target);r.push(n),t.lastReportedSize=E(t.target,t.observedBox),o<e&&(e=o)})),n.push((function(){t.callback.call(t.observer,r,t.observer)})),t.activeTargets.splice(0,t.activeTargets.length)}}));for(var r=0,o=n;r<o.length;r++){(0,o[r])()}return e},S=function(e){t.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(T(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},B=function(){var e,r=0;for(S(r);t.some((function(e){return e.activeTargets.length>0}));)r=z(),S(r);return t.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:n}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=n),window.dispatchEvent(e)),r>0},O=[],R=function(e){if(!r){var t=0,n=document.createTextNode("");new MutationObserver((function(){return O.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),r=function(){n.textContent=""+(t?t--:t++)}}O.push(e),r()},M=0,k={attributes:!0,characterData:!0,childList:!0,subtree:!0},C=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],N=function(e){return void 0===e&&(e=0),Date.now()+e},A=!1,D=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!A){A=!0;var n,r=N(e);n=function(){var n=!1;try{n=B()}finally{if(A=!1,e=r-N(),!M)return;n?t.run(1e3):e>0?t.run(e):t.start()}},R((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,k)};document.body?t():d.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),C.forEach((function(t){return d.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),C.forEach((function(t){return d.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),F=function(e){!M&&e>0&&D.start(),!(M+=e)&&D.stop()},P=function(){function t(t,n){this.target=t,this.observedBox=n||e.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e,t=E(this.target,this.observedBox,!0);return e=this.target,u(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},t}(),_=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},j=new WeakMap,I=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},L=function(){function e(){}return e.connect=function(e,t){var n=new _(e,t);j.set(e,n)},e.observe=function(e,n,r){var o=j.get(e),i=0===o.observationTargets.length;I(o.observationTargets,n)<0&&(i&&t.push(o),o.observationTargets.push(new P(n,r&&r.box)),F(1),D.schedule())},e.unobserve=function(e,n){var r=j.get(e),o=I(r.observationTargets,n),i=1===r.observationTargets.length;o>=0&&(i&&t.splice(t.indexOf(r),1),r.observationTargets.splice(o,1),F(-1))},e.disconnect=function(e){var t=this,n=j.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),W=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");L.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!f(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");L.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!f(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");L.unobserve(this,e)},e.prototype.disconnect=function(){L.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),Array.from||(Array.from=(o=Object.prototype.toString,i=function(e){return"function"==typeof e||"[object Function]"===o.call(e)},s=Math.pow(2,53)-1,a=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),s)},function(e){var t=this,n=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,o=arguments.length>1?arguments[1]:void 0;if(void 0!==o){if(!i(o))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var s,c=a(n.length),u=i(t)?Object(new t(c)):new Array(c),h=0;h<c;)s=n[h],u[h]=o?void 0===r?o(s,h):o.call(r,s,h):s,h+=1;return u.length=c,u})),window.ResizeObserver=W}));
 
js/loader.js DELETED
@@ -1 +0,0 @@
1
- !function(){"use strict";!function(){window.DiviArea=window.DiviPopup={loaded:!1};var n=window.DiviArea,i=n.Hooks={},t={};function o(n,i,o){var e,r,c;if("string"==typeof n)if(t[n]){if(i)if((e=t[n])&&o)for(c=e.length;c--;)(r=e[c]).callback===i&&r.context===o&&(e[c]=!1);else for(c=e.length;c--;)e[c].callback===i&&(e[c]=!1)}else t[n]=[]}function e(n,i,o,e){if("string"==typeof n){var r={callback:i,priority:o,context:e},c=t[n];c?(c.push(r),c=function(n){var i,t,o,e,r=n.length;for(e=1;e<r;e++)for(i=n[e],t=e;t>0;t--)(o=n[t-1]).priority>i.priority&&(n[t]=o,n[t-1]=i);return n}(c)):c=[r],t[n]=c}}function r(n,i,o){var e,r;for("string"==typeof i&&(i=[i]),e=0;e<i.length;e++){var c=t[i[e]],f=!1,a=void 0;if(c){var l=c.length;for(r=0;r<l;r++)if(c[r])if("filter"===n)void 0!==(a=c[r].callback.apply(c[r].context,o))&&(o[0]=a);else{if(!c[r]||"function"!=typeof c[r].callback)return!1;c[r].callback.apply(c[r].context,o)}else f=!0;if(f)for(r=l;r--;)c[r]||c.splice(r,1)}}if("filter"===n)return o[0]}i.silent=function(){return i},n.removeFilter=i.removeFilter=function(n,i){o(n,i)},n.removeAction=i.removeAction=function(n,i){o(n,i)},n.applyFilters=i.applyFilters=function(n){for(var i=[],t=arguments.length-1;t-- >0;)i[t]=arguments[t+1];return r("filter",n,i)},n.doAction=i.doAction=function(n){for(var i=[],t=arguments.length-1;t-- >0;)i[t]=arguments[t+1];r("action",n,i)},n.addFilter=i.addFilter=function(n,i,t,o){e(n,i,parseInt(t||10,10),o||window)},n.addAction=i.addAction=function(n,i,t,o){e(n,i,parseInt(t||10,10),o||window)},n.addActionOnce=i.addActionOnce=function(n,i,t,r){e(n,i,parseInt(t||10,10),r||window),e(n,(function(){o(n,i)}),1+parseInt(t||10,10),r||window)}}()}();
 
{lang → languages}/divi-popup-de_DE.mo RENAMED
File without changes
{lang → languages}/divi-popup-de_DE.po RENAMED
File without changes
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.5
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.5' );
44
 
45
  /**
46
  * Absolute path and file name of the main plugin file.
@@ -103,15 +103,14 @@ function divi_popup() {
103
  */
104
  function divi_popup_load_core() {
105
  // Load helpers.
106
- require_once DIVI_POPUP_PATH . 'include/helper/exceptions.php';
107
- require_once DIVI_POPUP_PATH . 'include/helper/plugin-compatibility.php';
108
 
109
  // Load application modules.
110
- require_once DIVI_POPUP_PATH . 'include/core/class-pfd-component.php';
111
- require_once DIVI_POPUP_PATH . 'include/core/class-pfd-app.php';
112
- require_once DIVI_POPUP_PATH . 'include/core/class-pfd-asset.php';
113
- require_once DIVI_POPUP_PATH . 'include/core/class-pfd-editor.php';
114
- require_once DIVI_POPUP_PATH . 'include/core/class-pfd-onboarding.php';
115
  }
116
 
117
  // Load all dependencies.
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.3.0
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.3.0' );
44
 
45
  /**
46
  * Absolute path and file name of the main plugin file.
103
  */
104
  function divi_popup_load_core() {
105
  // Load helpers.
106
+ require_once DIVI_POPUP_PATH . 'includes/helper/plugin-compatibility.php';
 
107
 
108
  // Load application modules.
109
+ require_once DIVI_POPUP_PATH . 'includes/core/class-pfd-component.php';
110
+ require_once DIVI_POPUP_PATH . 'includes/core/class-pfd-app.php';
111
+ require_once DIVI_POPUP_PATH . 'includes/core/class-pfd-asset.php';
112
+ require_once DIVI_POPUP_PATH . 'includes/core/class-pfd-editor.php';
113
+ require_once DIVI_POPUP_PATH . 'includes/core/class-pfd-onboarding.php';
114
  }
115
 
116
  // Load all dependencies.
readme.txt CHANGED
@@ -173,6 +173,26 @@ When you need additional features, then please have a look at our the Premium pl
173
 
174
  == Changelog ==
175
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  = Version 2.2.5 =
177
  * Improve: We have made the Visual Builder integration (the "Popup-Tab") faster and more stable.
178
  * Improve: Do not include the JS API for certain 404 results, such as missing images.
@@ -184,8 +204,6 @@ When you need additional features, then please have a look at our the Premium pl
184
  * Fix: The z-index is correctly applied again.
185
  * Fix: Improve the full-height calculation of Popups
186
 
187
- Plugin tested with WordPress 5.5.3 and Divi 4.6.6
188
-
189
  = 2.2.4 =
190
  * Improve: Area sizes are more accurate when using Divis responsive sizes.
191
  * Improve: Images inside Popups are instantly loaded in Chrome (fixed a lazy-load bug).
173
 
174
  == Changelog ==
175
 
176
+ = Version 2.3.0 =
177
+ * Improve: Popups do not cover the Admin Toolbar anymore for logged in users.
178
+ * Change: New JS action to customize Area positioning - `position_boundary`
179
+ * Change: When a Popup is visible, a new CSS class is added to the body tag.
180
+ * Change: Rename some files and folders to comply with the naming conventions of Divi.
181
+ * Fix: Sections in Visual Builder are not randomly renamed to "Popup - #undefined" anymore.
182
+ * Fix: Exit-Intent Popups do not need a Popup ID (but it's still recommended to add one).
183
+ * Fix: More robust plugin initialization. Popups will work, even when Divi does not initialize correctly.
184
+ * Fix: Divis Theme Builder could sometimes miss Area layout settings, that's a thing of the past.
185
+ * Fix: Open the Divi Lightbox in front of Popups.
186
+ * Fix: The `background-repeat` CSS rule is now correctly applied to the background image of a Popup section.
187
+ * Fix: Fix issue with calculation of size and position, caused by certain Row settings.
188
+ * Fix: Fix a rare issue on iOS that would reload the website when a Popup was triggered.
189
+ * Fix: Rare ReCaptcha bug that happened when no site_key was present for some reason.
190
+ * Fix: Forminator ReCaptcha is supported inside Popups.
191
+ * Fix: CF7 ReCaptcha is supported inside Popups.
192
+ * Fix: Layout compatibility with wpDataTables.
193
+
194
+ Plugin tested with WordPress 5.6 and Divi 4.8.0
195
+
196
  = Version 2.2.5 =
197
  * Improve: We have made the Visual Builder integration (the "Popup-Tab") faster and more stable.
198
  * Improve: Do not include the JS API for certain 404 results, such as missing images.
204
  * Fix: The z-index is correctly applied again.
205
  * Fix: Improve the full-height calculation of Popups
206
 
 
 
207
  = 2.2.4 =
208
  * Improve: Area sizes are more accurate when using Divis responsive sizes.
209
  * Improve: Images inside Popups are instantly loaded in Chrome (fixed a lazy-load bug).
scripts/builder.min.js ADDED
@@ -0,0 +1 @@
 
1
+ var builder=function(){"use strict";!function(t){window.DiviAreaFB=window.DiviAreaFB||{};var a=DiviAreaFB,e=!1,o=!1,s=!1,n=!1,i={},d="",r={admin_label:"",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"},l=0;function _(){e&&function(){if(!e)return;var o=a.getAppFrame(),s=t(o.document);clearInterval(e),e=0,s.off(".da",'input[name^="da_"]'),s.off(".da",".et-fb-button"),s.off(".da",'input[name="module_id"], input[name="module_class"]')}();var o=a.getAppFrame();if(o){try{d=ETBuilderBackend.i18n.library.Section}catch(t){d="Section"}e=setInterval(u,500);var s=t(o.document);s.on("blur.da",'input[name^="da_"]',u),s.on("click.da",".et-fb-button",u),s.on("blur.da",'input[name="module_id"], input[name="module_class"]',(function(){!function(){var t=a.isEditing("et_pb_section");if(!t)return;for(var e=0;e<t.state.sections.length;e++){var o=t.state.sections[e],s=!1;c(o)&&(s=m(s=v(o))),s&&p(s)}}()})),s.on("blur.da",'input[name="da_popup_slug"]',(function(){t(this).val(a.sanitizeSlug(t(this).val()))}))}else setTimeout(_,250)}function u(){var e=a.isEditing("et_pb_section");if(e){var o=e.state.activeModule,s=t(e.document).find(".et-fb-modal__module-settings").find(".et-fb-tabs__item--active").text(),n=!1;"Popup"!==s&&"Divi Areas"!==s||!function(t){var a=t.address,e=i[a],o=!1;e||(o=!0,e={});for(var s in r)0===s.indexOf("da_")&&t.attrs[s]!==e[s]&&(o=!0,e[s]=t.attrs[s]);o&&(i[a]=e);return o}(o.props)||(n=m(o.props)),n&&p(n)}}function f(t,a){if(!a.length)return t;var e=a.shift();return!(!t||void 0===t[e])&&f(t[e],a)}function p(t){var e=a.getAppFrame(),o=t.address;function s(t,a){for(var e in r)a.attrs[e]!==t.attrs[e]&&(void 0===t.attrs[e]?a.attrs[e]="":a.attrs[e]=t.attrs[e])}var i=a.isEditing(t.type);i?s(t,i.state.activeModule.props):i=a.getApp();for(var d=0;d<i.state.sections.length;d++)o===i.state.sections[d].address&&s(t,i.state.sections[d]);n&&clearTimeout(n),n=setTimeout((function(){n=!1;var t=document.createEvent("MouseEvents"),a=document.createEvent("MouseEvents"),o=e.jQuery(".et-fb-modal__resize")[0],s=e;o&&s&&(t.initMouseEvent("mousedown",!0,!0),a.initMouseEvent("mouseup",!0,!0),o.dispatchEvent(t),s.dispatchEvent(a))}),50)}function c(t){var a=i[t.address],e=!1;return a||(e=!0,a={}),void 0===a.module_id&&(a.module_id=""),void 0===a.module_class&&(a.module_class=""),t.attrs.module_id!==a.module_id&&(t.attrs.module_id||a.module_id)&&(e=!0,a.module_id=t.attrs.module_id),t.attrs.module_class!==a.module_class&&(t.attrs.module_class||a.module_class)&&(e=!0,a.module_class=t.attrs.module_class),e&&(i[t.address]=a),e}function m(t){var e=t.address,o=h(t),s=(t.attrs.module_class||"").split(" "),n=t.attrs.da_is_popup||"off",r=t.attrs.da_popup_slug||"",l=t.attrs.da_exit_intent||"off",_=t.attrs.da_has_close||"on",u=t.attrs.da_alt_close||"off",f=t.attrs.da_dark_close||"off",p=t.attrs.da_not_modal||"on",c=t.attrs.da_is_singular||"off",m=t.attrs.da_with_loader||"off",v=t.attrs.da_has_shadow||"on",g=(t.attrs.da_disable_devices||"off|off|off").split("|"),b=["popup","on-exit","no-close","close-alt","dark","is-modal","single","with-loader","no-shadow","not-mobile","not-tablet","not-desktop"];return s=s.filter((function(t){return-1===b.indexOf(t)})),"on"===n&&(s.push("popup"),"on"===l&&s.push("on-exit"),"on"!==_?s.push("no-close"):("on"===u&&s.push("close-alt"),"on"===f&&s.push("dark")),"on"!==p&&s.push("is-modal"),"on"===c&&s.push("single"),"on"===m&&s.push("with-loader"),"on"!==v&&s.push("no-shadow"),"on"===g[0]&&s.push("not-mobile"),"on"===g[1]&&s.push("not-tablet"),"on"===g[2]&&s.push("not-desktop"),o.attrs.module_id=r?a.sanitizeSlug(r):""),"on"===n?o.attrs.admin_label&&d!==o.attrs.admin_label&&0!==o.attrs.admin_label.indexOf("Popup - ")||(o.attrs.module_id?o.attrs.admin_label="Popup - #"+o.attrs.module_id:o.attrs.admin_label="Popup - (unnamed)"):o.attrs.admin_label&&0!==o.attrs.admin_label.indexOf("Popup - ")||(o.attrs.admin_label=d),o.attrs.module_class=s.filter((function(t){return t})).join(" "),i[e].module_class=o.attrs.module_class,i[e].module_id=o.attrs.module_id,i[e].admin_label=o.attrs.admin_label,o}function v(t){var e=t.address,o=h(t),s=a.sanitizeSlug(t.attrs.module_id),n=(t.attrs.module_class||"").split(" "),d=["off","off","off"];return o.attrs.da_is_popup=-1!==n.indexOf("popup")?"on":"off",o.attrs.da_has_close=-1===n.indexOf("no-close")?"on":"off",o.attrs.da_exit_intent=-1!==n.indexOf("on-exit")?"on":"off",o.attrs.da_alt_close=-1!==n.indexOf("close-alt")?"on":"off",o.attrs.da_dark_close=-1!==n.indexOf("dark")?"on":"off",o.attrs.da_not_modal=-1===n.indexOf("is-modal")?"on":"off",o.attrs.da_is_singular=-1!==n.indexOf("single")?"on":"off",o.attrs.da_with_loader=-1!==n.indexOf("with-loader")?"on":"off",o.attrs.da_has_shadow=-1===n.indexOf("no-shadow")?"on":"off",d[0]=-1!==n.indexOf("not-mobile")?"on":"off",d[1]=-1!==n.indexOf("not-tablet")?"on":"off",d[2]=-1!==n.indexOf("not-desktop")?"on":"off",o.attrs.da_disable_devices=d.join("|"),s&&(o.attrs.da_popup_slug=s),i[e].da_is_popup=o.attrs.da_is_popup,i[e].da_popup_slug=a.sanitizeSlug(o.attrs.da_popup_slug),i[e].da_has_close=o.attrs.da_has_close,i[e].da_exit_intent=o.attrs.da_exit_intent,i[e].da_alt_close=o.attrs.da_alt_close,i[e].da_dark_close=o.attrs.da_dark_close,i[e].da_not_modal=o.attrs.da_not_modal,i[e].da_is_singular=o.attrs.da_is_singular,i[e].da_has_shadow=o.attrs.da_has_shadow,i[e].da_disable_devices=o.attrs.da_disable_devices,i[e].da_with_loader=o.attrs.da_with_loader,o}function h(t){return JSON.parse(JSON.stringify(t))}a.init=function(){if(window.ET_Builder){var t=(window._daConfig||{}).divi_areas_cpt||"divi-area";((((ET_Builder.Frames||{}).app||{}).ETBuilderBackendDynamic||{}).postType||"page")!==t&&_()}else{if(!(++l<10))throw new Error("Could not initialize the Library (ET_Builder is undefined)");setTimeout(a.init,250)}},a.getAppFrame=function(){return!!(window.top.ET_Builder&&window.top.ET_Builder.Frames&&window.top.ET_Builder.Frames.top)&&window.top.ET_Builder.Frames.top},a.getApp=function(){var e=a.getAppFrame();if(!e)return!1;var n=t(e.document).find("#et-fb-app .place-top");if(!n||!n.length)return!1;if(!s||!n[0][s])for(var i in n[0])if(n[0].hasOwnProperty(i)&&0===i.indexOf("__reactInternalInstance$")){o=i.substr(24),s="__reactInternalInstance$"+o;break}var d=n[0][s],r=f(d,["alternate","return","alternate","return","alternate","memoizedProps","_owner","alternate","memoizedState"]),l=f(d,["return","stateNode","setState"]);return!(!r||!l)&&{document:e.document,state:r,setState:l.bind(d.return.stateNode)}},a.isEditing=function(t){var e=a.getApp();return e&&e.state&&e.state.activeModule&&e.state.activeModule.props&&e.state.activeModule.props.type?t&&("string"==typeof t&&(t=[t]),-1===t.indexOf(e.state.activeModule.props.type))?null:e:null},a.sanitizeSlug=function(t){return"string"!=typeof t&&(t=""),t=(t=(t=(t=t.replace(/#/g,"")).replace(/[^a-zA-Z0-9\-_]/g,"-")).replace(/\-+/g,"-")).replace(/^\-+|\-+$/g,"")}}(jQuery),jQuery(window).on("et_fb_init",(function(){window.setTimeout(DiviAreaFB.init,20)}));return{}}();
scripts/front.min.js ADDED
@@ -0,0 +1 @@
 
1
+ var front=function(){"use strict";!function(e,t,i){t.DiviArea=t.DiviArea||{},DiviArea.Utils=DiviArea.Utils||{};var a=DiviArea.Utils,r=!1,n=null,o=null;function s(t,i,a){var r,n;for(Array.isArray(t)&&(t=e(t).map(e.fn.toArray)),t=e(t),i=i.split(/\s+/),r=0;r<t.length;r++)for(n=0;n<i.length;n++)a(t[r],i[n])}function l(e){var t=a.getOption("storageMethod").toString().toLowerCase();return"none"!==(t=(t=DiviArea.applyFilters("storage_method",t,e)).toString().toLowerCase().trim())&&"cookie"!==t&&"local"!==t&&(t="auto"),"auto"===t&&(t=window.localStorage?"local":"cookie"),t}a.getOption=function(e){var t=DiviAreaConfig[e],i=a.sanitizeHookName(e);return DiviArea.Hooks.silent().applyFilters("get_option_"+i,t)},a.toBool=function(e,t){return void 0===t&&(t=!0),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))},a.toMilliseconds=function(e){var t,i=parseFloat(e,10),a=e.match(/m?s/);switch(a&&(a=a[0]),a){case"s":t=1e3*i;break;case"ms":t=i;break;default:t=0}return t},a.sanitizeHookName=function(e){return e.toLowerCase().replace(/-/g,"_").replace(/[^a-z0-9_]+/,"")},a.showOnViewport=function(i){var a=e(t).innerWidth();return!i||!!(a<768?Array.isArray(i)?i[2]:i.getData("onmobile"):a<981?Array.isArray(i)?i[1]:i.getData("ontablet"):Array.isArray(i)?i[0]:i.getData("ondesktop"))},a.isPosition=function(e,t){var i=e.offsetParent();return"HTML"!==i.prop("tagName")&&(t===i.css("position")||a.isPosition(i,t))},a.setLocalData=function(e,t,i){e=e.replace(/^_da_/,""),(!i||isNaN(i)||i<1)&&(i=525600);var r=a.sanitizeHookName(e),n=l(e);if(t=DiviArea.applyFilters("set_data",t,e),t=DiviArea.applyFilters("set_data_"+r,t,e),i=DiviArea.applyFilters("set_data_expire",i,e,t),i=DiviArea.applyFilters("set_data_expire_"+r,i,e,t),!(!1===t||i<=0))if("local"===n){var o=new Date;o=o.setMinutes(o.getMinutes()+i),localStorage.setItem("_da_"+e,o+":"+t)}else"cookie"===n&&a.setCookie("_da_"+e,t,i)},a.getLocalData=function(e){var t="",i=l(e=e.replace(/^_da_/,""));if("local"===i){var r=localStorage.getItem("_da_"+e);if(r){var n=r.split(":"),o=parseInt(n.shift()),s=n.join(":");o>new Date?t=s:localStorage.removeItem("_da_"+e)}}else"cookie"===i&&(t=a.getCookie("_da_"+e));var d=a.sanitizeHookName(e);return t=DiviArea.applyFilters("get_data",t,e),t=DiviArea.applyFilters("get_data_"+d,t,e)},a.setCookie=function(e,t,a){var r=escape(t);if(a){var n=new Date;n.setMinutes(n.getMinutes()+a),r+="; expires="+n.toUTCString()}i.cookie=e+"="+r+"; path=/"},a.getCookie=function(e){var t,a,r,n=i.cookie.split(";");for(t=0;t<n.length;t++)if(a=n[t].substr(0,n[t].indexOf("=")),r=n[t].substr(n[t].indexOf("=")+1),(a=a.replace(/^\s+|\s+$/g,""))===e)return unescape(r);return!1},a.getUrlParam=function(e){if(null===o){o={};var i=t.location.search.slice(1);if(i)for(var a=(i=i.split("#")[0]).split("&"),r=0;r<a.length;r++){var n=a[r].split("="),s=n[0],l=void 0===n[1]||n[1];if(s=s.toLowerCase(),"string"==typeof l&&(l=l.toLowerCase()),s.match(/\[(\d+)?\]$/)){var d=s.replace(/\[(\d+)?\]/,"");if(o[d]||(o[d]=[]),s.match(/\[\d+\]$/)){var c=/\[(\d+)\]/.exec(s)[1];o[d][c]=l}else o[d].push(l)}else o[s]?o[s]&&"string"==typeof o[s]?(o[s]=[o[s]],o[s].push(l)):o[s].push(l):o[s]=l}}return e?o[e]:Object.assign({},o)},a.getWindow=function(t){return e.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)},a.getClientRect=function(t){var i={top:0,left:0,width:0,height:0,bottom:0,right:0};if(0===t.length)return i;var r,n=(t=t[0]).ownerDocument,o=n.documentElement;if(!e.contains(o,t))return i;if(e.support.getBoundingClientRect){try{r=t.getBoundingClientRect()}catch(e){}if(!r)return i;if(r.right===r.left&&r.top===r.bottom)return i;var s=a.getWindow(n);i.top=r.top+(s.pageYOffset||o.scrollTop)-(o.clientTop||0),i.left=r.left+(s.pageXOffset||o.scrollLeft)-(o.clientLeft||0),i.width=r.right-r.left,i.height=r.bottom-r.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},a.bindPassiveEvent=function(e,t,i){var a;a=!!r&&{passive:!1,capture:!1},s(e,t,(function(e,t){e.addEventListener(t,i,a)}))},a.unbindPassiveEvent=function(e,t,i){var a;a=!!r&&{passive:!1,capture:!1},s(e,t,(function(e,t){e.removeEventListener(t,i,a)}))},a.init=function(){var a,n={popupSelector:".et_pb_section.popup",fullHeightClass:"full-height",openPopupClass:"da-overlay-visible",overlayClass:"da-overlay",modalIndicatorClass:"is-modal",blockingIndicatorClass:"is-blocking",exitIndicatorClass:"on-exit",hoverTriggerClass:"on-hover",clickTriggerClass:"on-click",activePopupClass:"is-open",noCloseClass:"no-close",altCloseClass:"close-alt",notMobileClass:"not-mobile",notTabletClass:"not-tablet",notDesktopClass:"not-desktop",withCloseClass:"with-close",withLoaderClass:"with-loader",singletonClass:"single",darkModeClass:"dark",noShadowClass:"with-shadow",closeButtonClass:"da-close",popupWrapperClass:"area-outer-wrap",defaultShowCloseButton:!0,idAttrib:"data-popup",triggerClassPrefix:"show-popup-",baseContext:"body",triggerCloseClass:"close",zIndex:1e6,onExitDelay:2e3,animateSpeed:300,debug:!1,debugVerbose:!1,storageMethod:"auto",initializeOnEvent:"et_pb_after_init_modules"},o="";if(function(){try{var e={get passive(){return r=!0,!1}};t.addEventListener("test",null,e),t.removeEventListener("test",null,e)}catch(e){r=!1}}(),e.support.getBoundingClientRect="getBoundingClientRect"in i.documentElement,(a=t.DiviAreaConfig)&&"object"==typeof a||(a=n),t.DiviPopupData)for(o in DiviPopupData)DiviPopupData.hasOwnProperty(o)&&(a[o]=DiviPopupData[o]);for(o in n)void 0===a[o]&&(a[o]=n[o]);for(o in a)a.hasOwnProperty(o)&&a[o].replace&&(a[o]=a[o].replace(/^[\s\xA0]+|[\s\xA0]+$/g,""));a.zIndex=parseInt(a.zIndex.toString())||n.zIndex,a.onExitDelay=parseInt(a.onExitDelay.toString())||n.onExitDelay,a.animateSpeed=parseInt(a.animateSpeed.toString())||n.animateSpeed,a.debug=!!a.debug,a.defaultShowCloseButton=!!a.defaultShowCloseButton,(!a.triggerClassPrefix||a.triggerClassPrefix.length<3)&&(a.triggerClassPrefix=!1),"body"===a.baseContext&&(1===e("#et_builder_outer_content").length?(a.baseContext="#et_builder_outer_content",DiviArea.Debug.info("🎚 Divi plugin detected.","Inject Areas into #et_builder_outer_content")):1===e("body.et_divi_theme #page-container").length?(a.baseContext="#page-container",DiviArea.Debug.info("🎚 Divi theme detected.","Inject Areas into #page-container")):1===e(".et-db #et-boc").length&&(a.baseContext=".et-db #et-boc",DiviArea.Debug.info("🎚 Divi theme detected.","Inject Areas into #et-boc"))),"body"===a.baseContext||e(a.baseContext).length||(a.baseContext="body",DiviArea.Debug.info("🎚 Invalid baseContext given.","Inject Areas into body instead.")),t.DiviAreaConfig=t.DiviPopupData=DiviArea.applyFilters("init_options",a)},a.initErrorLogging=function(e){var i=function(e,t,i){if(!e[t]||!e[t].__dm_orig__){var a=e[t],r=void 0;for(var n in e[t]=function(){var e=!1;try{e=i.apply(this,arguments)}finally{!e&&a&&(r=a.apply(this,arguments))}return r},a)a.hasOwnProperty(n)&&(e[t][n]=a[n]);e[t].__dm_orig__=a}},a=function(){var e=arguments,i=!1;if(arguments[0]&&"[DiviAreas]"===arguments[0])return!1;for(var a=0;a<arguments.length;a++)if("object"==typeof e[a]&&e[a]&&e[a].message&&e[a].stack){i=e[a];break}if(i){var r=[],n=i.stack.toString().split("\n");if(r.push("divimode.com Anonymized Error Report"),r.push("-".repeat(30)),r.push(i.name),i.message?r.push(i.message):r.push("-"),r.push(""),n&&n.length>1)for(var o=0;o<n.length;o++){var s=n[o];if(s.match(/(\/wp-includes\/|\/jquery\.js)/))break;s.match(/\.js/)&&(s=(s=(s=s.replace(/^\s+|\s+$/g,"")).replace(/https?:.*?\/wp-content/g,"")).replace(/\.js\?[\w=&_\-\.]*/g,".js"),r.push(s))}if(DiviArea.info&&(r.push(""),r.push("js api:"+DiviArea.info)),t.DiviAreaConfig&&DiviAreaConfig.sys&&DiviAreaConfig.sys.plugin)for(var l in r.push(""),DiviAreaConfig.sys)try{r.push(l+": "+DiviAreaConfig.sys[l])}catch(e){}r.push("-".repeat(30));var d=console.error.__dm_orig__||console.error;return console.log(""),d("✋ "+r.join("\n| ")),console.log(""),!0}return!1};i(e,"onerror",a),i(e.console,"error",a)},a.toPixel=function(e,a,r){if(n||((n={}).PPI=void 0,n.getPPI=function(){return n.PPI=n.PPI||n.getSizeBrutal("in",i.body),n.PPI},n.parseUnit=function(e){var t=[0,""];return e=String(e),t[0]=parseFloat(e,10),t[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t},n.getPropertyInPx=function(e,t){var i=n.parseUnit(getComputedStyle(e).getPropertyValue(t));return i[0]*n.conversionFactor(i[1],e)},n.getSizeBrutal=function(e,t){var a=i.createElement("div");a.style.height="128"+e,t.appendChild(a);var r=n.getPropertyInPx(a,"height")/128;return t.removeChild(a),r},n.conversionFactor=function(e,a){switch(e=(e+""||"px").trim().toLowerCase()){case"%":return a.clientHeight/100;case"ch":case"ex":return n.getSizeBrutal(e,a);case"em":return n.getPropertyInPx(a,"font-size");case"rem":return n.getPropertyInPx(i.body,"font-size");case"vw":return t.innerWidth/100;case"vh":return t.innerHeight/100;case"vmin":return Math.min(t.innerWidth,t.innerHeight)/100;case"vmax":return Math.max(t.innerWidth,t.innerHeight)/100;case"in":return n.getPPI();case"cm":return n.getPPI()/2.54;case"mm":return n.getPPI()/25.4;case"pt":return n.getPPI()/72;case"pc":return n.getPPI()/6;case"px":return 1}return 0}),!e)return 0;if((r=r||i.body)!==t&&r!==i||(r=i.body),!isNaN(e)){if(a){var o=n.conversionFactor(a,r);return"number"==typeof o?e*o:0}return e}return 0},a.getStyleDef=function(e,i,r){var n="",o="desktop",s=window.getMatchedCSSRules;if(t.innerWidth<=980&&(o=t.innerWidth>767?"tablet":"phone"),"string"==typeof e){var l=e.split(" "),d=DiviArea.getArea(l.shift());if(!d)return n;e=d.get(l.join(" "))[0]}if(t.HTMLElement&&!e instanceof t.HTMLElement)return n;if(e.style&&""!==e.style[i])n=e.style[i];else{var c,u,p=!1;function f(e){if(null==e)return[];try{return"function"==typeof Array.from?Array.from(e):[].slice.call(e)}catch(e){return[]}}if("function"!=typeof s){function v(e){try{var t=e.media&&e.media.mediaText;return e.disabled||t&&!window.matchMedia(t).matches?[]:f(e.cssRules)}catch(e){return[]}}s=function(e){var t,i,a,r,n=[];for(t=f(window.document.styleSheets);i=t.shift();)for(a=v(i);r=a.shift();)r.styleSheet?a=v(r.styleSheet).concat(a):r.media?a=v(r).concat(a):e.matches(r.selectorText)&&n.push(r);return n}}if(e._DAStyles||(e._DAStyles={}),!e._DAStyles[o])for(e._DAStyles[o]=[],u=(c=f(s(e))).length-1;u>=0;u--)e._DAStyles[o].push({selectorText:c[u].selectorText,style:c[u].style});e._DAStyles[o].some((function(e){if(r&&r.length&&-1!==r.indexOf(e.selectorText))return!1;if(""===e.style[i])return!1;var t=a.getCssSpecificity(e.selectorText,e.style[i]);a.compareCssSpecificity(t,p)>0&&(p=t,n=e.style[i])}))}return n},a.getCssSpecificity=function(e,t){var i=e.split(",");if(i.length>1){for(var r,n=[],o=0;o<i.length;o++)r=a.getCssSpecificity(i[o]),a.compareCssSpecificity(r,n)>0&&(n=r);return n}var s,l,d,c=e,u={a:0,b:0,c:0};return l="string"==typeof t&&t.indexOf("!important")>0,s=function(e,t){var i,a,r,n,o;if(e.test(c))for(a=0,r=(i=c.match(e)).length;a<r;a+=1)u[t]+=1,n=i[a],c.indexOf(n),o=n.length,c=c.replace(n,Array(o+1).join(" "))},(d=function(e){var t,i,a,r;if(e.test(c))for(i=0,a=(t=c.match(e)).length;i<a;i+=1)r=t[i],c=c.replace(r,Array(r.length+1).join("A"))})(/\\[0-9A-Fa-f]{6}\s?/g),d(/\\[0-9A-Fa-f]{1,5}\s/g),d(/\\./g),function(){var e,t,i,a,r=/{[^]*/gm;if(r.test(c))for(t=0,i=(e=c.match(r)).length;t<i;t+=1)a=e[t],c=c.replace(a,Array(a.length+1).join(" "))}(),s(/(\[[^\]]+\])/g,"b"),s(/(#[^\#\s\+>~\.\[:\)]+)/g,"a"),s(/(\.[^\s\+>~\.\[:\)]+)/g,"b"),s(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),s(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,"b"),s(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,"b"),c=(c=(c=(c=(c=(c=c.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).replace(/:not/g," ")).replace(/:local/g," ")).replace(/:global/g," ")).replace(/[\(\)]/g," "),s(/([^\s\+>~\.\[:]+)/g,"c"),[l?1:0,u.a,u.b,u.c]},a.compareCssSpecificity=function(e,t){for(var i=0;i<4;i+=1){var a=parseInt(isNaN(e[i])?0:e[i]),r=parseInt(isNaN(t[i])?0:t[i]);if(a<r)return-1;if(a>r)return 1}return 0}}(jQuery,window,document),window.DiviAreaItem=function(e,t){var i,a,r,n,o,s,l,d=jQuery,c=this,u=window.ResizeObserver||window.WebKitResizeObserver,p=d(e),f={},v={hideclose:!1,showclose:!0,notmobile:!1,onmobile:!0,nottablet:!1,ontablet:!0,notdesktop:!1,ondesktop:!0,closealt:!1,notmodal:!0,ismodal:!1,notblocking:!1,isblocking:!1,triggerexit:!1,shadow:!0,noshadow:!1,darkmode:!1,singleton:!1,static:!1,withloader:!1,pushcontent:!1},g={hideclose:"showclose",notdesktop:"ondesktop",notmobile:"onmobile",notmodal:"ismodal",notblocking:"isblocking",nottablet:"ontablet",shadow:"noshadow",dynamic:"static"},h=null,A=null,D=0,b=null,m=null,y=null,w={};function _(){for(var e in i=p.attr("id"),a=DiviArea.Utils.sanitizeHookName(i),r=H(t),n=p.closest(document.documentElement).length,o=n&&p[0].getClientRects().length,s={},l=!1,DiviArea.Debug.debug("Area Type",c.theType()),DiviArea.Debug.debug("Area ID",c.theId()),DiviArea.Debug.debug("Area Hook",c.theKey()),M(p),c.setData("zIndex",0),c.setData("container",d("body")),c.setData("hasShowAnim",!0),c.setData("position","center-center"),c.setData("positionV","center"),c.setData("positionH","center"),c.setData("overflow","clip"),c.setData("size","auto"),c.setData("animationSpeedIn",DiviArea.Utils.getOption("animateSpeed")),c.setData("animationSpeedOut",DiviArea.Utils.getOption("animateSpeed")),v)void 0!==p.data("da-"+e)?(c.setData(DiviArea.Utils.toBool(p.data("da-"+e))),p.removeAttr("data-da-"+e)):void 0!==p.data(e)?(c.setData(DiviArea.Utils.toBool(p.data(e))),p.removeAttr("data-"+e)):c.setData(e,v[e]);var f={};for(var g in f[DiviArea.Utils.getOption("notMobileClass")]=["onmobile",!1],f[DiviArea.Utils.getOption("notTabletClass")]=["ontablet",!1],f[DiviArea.Utils.getOption("notDesktopClass")]=["ondesktop",!1],f[DiviArea.Utils.getOption("noCloseClass")]=["showclose",!1],f[DiviArea.Utils.getOption("withCloseClass")]=["showclose",!0],f[DiviArea.Utils.getOption("altCloseClass")]=["closealt",!0],f[DiviArea.Utils.getOption("modalIndicatorClass")]=["ismodal",!0],f[DiviArea.Utils.getOption("blockingIndicatorClass")]=["isblocking",!0],f[DiviArea.Utils.getOption("exitIndicatorClass")]=["triggerexit",!0],f[DiviArea.Utils.getOption("noShadowClass")]=["noshadow",!0],f[DiviArea.Utils.getOption("darkModeClass")]=["darkmode",!0],f[DiviArea.Utils.getOption("singletonClass")]=["singleton",!0],f[DiviArea.Utils.getOption("withLoaderClass")]=["withloader",!0],f)if(p.hasClass(g)){var A=f[g];c.setData(A[0],A[1]),p.removeClass(g)}DiviArea.UI.initializeAreaAnimation(c),O(),I(),C(),u&&(b=new u((function(){var e=p[0].scrollHeight-p[0].clientHeight;e>0&&e-p[0].scrollTop<1&&(p[0].scrollTop-=1),s.width=0,s.height=0,s.contentWidth=0,s.contentHeight=0,N("resize",S)}),{box:"border-box"}),m=new u((function(){s.wrapperWidth=0,s.wrapperHeight=0,N("resize",S)}),{box:"border-box"})),p.on("resize",(function(){return N("resize",S)})),h.on("resize",(function(){return N("resize",S)}))}function C(){p.attr("data-da-area",i),h.attr("data-da-area",i),h.attr("data-da-registered",1),h.attr("data-da-type",c.theType()),h.attr("data-da-close-btn",c.getData("showclose")?"yes":"no"),h.attr("data-da-close-bg",c.getData("closeAlt")?"none":"solid"),h.attr("data-da-loader",c.getData("withLoader")?"yes":"no"),h.attr("data-da-shadow",c.getData("shadow")?"yes":"no"),h.attr("data-da-color",c.getData("darkMode")?"dark":"light"),h.attr("data-da-overflow",c.getData("overflow")),h.attr("data-da-size",c.getData("size"));var e=c.getData("wrapClasses");e&&h.addClass(e),N("position",c.setPosition),c.doAction("refresh_area")}function x(){if(c.isVisible()){p.find("."+DiviArea.Utils.getOption("closeButtonClass")).off(".da");var e=function(e,t){return DiviArea.Debug.debug("Click on",t,"close-button"),c.doAction("close_area",c,t),e.preventDefault(),!1};h.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da").on("click.da",(function(t){return e(t,"custom")})),A.find("a").off(".da").on("click.da",(function(t){return e(t,"default")})),d(window).on("resize",T),c.addAction("close_area",z)}else h.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da"),A.find("a").off(".da"),d(window).off("resize",T),c.removeAction("close_area")}function k(e){c.isVisible()?c.getData("hasShowAnim")&&(DiviArea.Debug.info("✨ Animate the area (show)",c.theId()),DiviArea.UI.animateArea(c,"show",(function(){return function(e){c.getData("showclose")&&A.show(),e()}(e)}))):c.getData("hasShowAnim")&&(A.hide(),DiviArea.Debug.info("✨ Animate the area (hide)",c.theId()),DiviArea.UI.animateArea(c,"hide",e))}function I(){if(!A){var e=DiviArea.Utils.getOption("closeButtonClass"),t=e+"-wrap";A=d("<span>").addClass(t).appendTo(h),d("<a>").attr("href","#close").addClass(e).html("&times;").appendTo(A),A.hide(),c.doAction("area_close_button",A,c)}}function O(){if(!h){var e=DiviArea.Utils.getOption("popupWrapperClass");(h=p.parent()).hasClass(e)||(p.wrap("<div>"),(h=p.parent()).addClass(e)),h.detach().appendTo("body"),M(h),c.doAction("area_wrap",h,c)}}function P(){var e=this;D&&clearTimeout(D),D=setTimeout((function(){D=0,e.inDom()&&C()}),20)}function H(e){return e.toLowerCase().trim().replace(/-/,"")}function z(e,t){var i=this,a=!1;if(a=i.applyFilters("ignore_close_area",a,i,t))return DiviArea.Debug.debug("Ignored, manually cancelled in filter"),!0;DiviArea.hide(i)}function T(){s.windowWidth=0,s.windowHeight=0,s.wrapperWidth=0,s.wrapperHeight=0,N("resize",S)}function S(){if(c.isVisible()){var e=c.getSize(),t=[e.width,e.height,e.contentWidth,e.contentHeight,e.windowWidth,e.windowHeight].join("-");if(f._resizeState!==t){if(f._resizeState=t,A.css({width:e.width,height:e.height}),(c.isType("popup")||c.isType("flyin"))&&"show"!==c.getData("overflow")&&"full-height"!==c.getData("size")&&"full-screen"!==c.getData("size")){var i="auto"===c.getData("size")?20:0;if(h.attr("data-da-size-full-height"))e.windowHeight-e.contentHeight>=i&&(h.removeAttr("data-da-size-full-height"),h.removeClass(DiviArea.Utils.getOption("fullHeightClass")));else e.windowHeight-e.contentHeight<i&&(h.attr("data-da-size-full-height",1),h.addClass(DiviArea.Utils.getOption("fullHeightClass")))}N("position",c.setPosition)}}}function U(e,t){var i,a="";if(t||""===(a=DiviArea.Utils.getStyleDef(h[0],e))&&(a=DiviArea.Utils.getStyleDef(p[0],e)),""===a){var r=h.find(".et_pb_section");for(i=0;i<r.length&&!a;i++)a=DiviArea.Utils.getStyleDef(r[i],e,['[class*="et_pb_section_dap_"]'])}return a}function F(){var e=U("width",!1),t=U("max-width",!0);e&&"auto"!==e||(c.isType("popup")||h.css("width","100%"),p.css("width","100%")),t&&p.css("max-width",t)}function N(e,t){var i=this;w[e]||(w[e]=window.setTimeout((function(){w[e]=!1,t.apply(i)}),4))}function M(e){e.data("is-area",!0),e.data("area",c),e.data("area-config",f),e.getArea=function(){return c},e[0].DiviArea=c,e[0].DiviAreaConfig=f}function W(){}this.theId=function(){return"#"+i},this.theKey=function(){return a},this.hasId=function(e){e=e.replace(/^#/,"",e);var t=DiviArea.Data.getRealId(e);return t||(t=DiviArea.Data.getRealId("divi-area-"+e)),!(!t||t!==this.theId())},this.theType=function(){return r},this.isType=function(e){if(!e)return!0;if("string"!=typeof e)throw new Error("DiviAreaItem.isType() expects a string parameter. Given value is a "+typeof e);if((e=H(e))===r)return!0;if("any"===e||"all"===e)return!0;for(var t=0===e.indexOf("not:"),i=e.replace(/^not:\s*/,"").split(/\s*,\s*/),a=0;a<i.length;a++)if(i[a]===r)return!t;return t},this.get=function(e){return e?d(e,p):p},this.getWrap=function(){return h},this.attach=function(){if(P(),c.isPrepared(!0)||(o=!1),c.inDom()&&c.isVisible())return c;n=!0;var e=c.findHook();if(p.hide(),e){var t=e.data("area-place"),i=e;"before"!==t&&(i=e.nextAll(":not([data-area-hook])").first()),i.after(h.detach()),"replace"===t&&(y=i.detach())}else h.detach().appendTo(c.getData("container"));return h.closest("#et-boc").length||(h.wrap('<div id="et-boc" class="dynamic">'),h.wrap('<div class="et-l dynamic">')),N("position",c.setPosition),c.setVisible(!0,(function(){if(b){var e=DiviArea.Utils.getOption("closeButtonClass")+"-wrap";p.children().each((function(t,i){-1===i.className.indexOf(e)&&b.observe(i)})),b.observe(p[0]),m.observe(h[0])}N("position",c.setPosition)})),c},this.detach=function(){if(c.isPrepared()&&!c.inDom())return c;c.isPrepared(!0)||(o=!0);var e=c.findHook();return b&&b.disconnect(),m&&m.disconnect(),c.setVisible(!1,(function(){var t=h.parent();p.hide(),h.detach(),t.hasClass("dynamic")&&!t.children().length&&t.parent().remove(),y&&(e.after(y),y=null)})),c},this.findHook=function(){var e='[data-area-hook="'+c.getData("hookid")+'"]',t=d(e);return!!t.length&&t},this.setVisible=function(e,t){return e=!!e,c.isPrepared()&&c.isVisible()===e||("function"!=typeof t&&(t=W),o=e,x(),c.isPrepared()?k(t):t(),c.isVisible()?(F(),c.doAction("show_area")):c.doAction("hide_area")),c},this.setPosition=function(){var e={},t={};if(!c.isVisible()||!c.inDom())return c;if(c.getData("maxheight")&&(e.overflow="auto",e.maxHeight="100%",t.maxHeight=c.getData("maxheight")),c.getData("maxwidth")&&(e.maxWidth="100%",t.maxWidth=c.getData("maxwidth")),t.zIndex=c.getData("zindex"),c.doAction("resize_area"),c.isType("inline")||c.isType("hover"))h.removeAttr("data-da-position"),h.removeAttr("data-da-position-h"),h.removeAttr("data-da-position-v");else{var i=c.getData("positionh"),a=c.getData("positionv"),r=c.getData("size"),n=c.getSize(),o={minX:0,minY:0,maxX:n.windowWidth,maxY:n.windowHeight};if(h.attr("data-da-position",c.getData("position")),h.attr("data-da-position-h",i),h.attr("data-da-position-v",a),c.isType("flyin")&&(o.minY=parseInt(d("html").css("margin-top"))),c.doAction("position_boundary",o,c),o.minX>o.maxX){var s=o.maxX;o.maxX=o.minX,o.minX=s}if(o.minY>o.maxY){var l=o.maxY;o.maxY=o.minY,o.minY=l}if("full-width"===r||"full-screen"===r)t.left=o.minX+"px";else switch(i){case"left":t.left=o.minX+"px";break;case"right":t.right=parseInt(n.windowWidth-o.maxX)+"px";break;case"center":t.left=o.minX+parseInt((o.maxX-o.minX)/2-n.wrapperWidth/2)+"px"}if("full-height"===r||"full-screen"===r)t.top=o.minY+"px";else if(!h.attr("data-da-size-full-height"))switch(a){case"top":t.top=o.minY+"px";break;case"bottom":t.bottom=parseInt(n.windowHeight-o.maxY)+"px";break;case"center":t.top=o.minY+parseInt((o.maxY-o.minY)/2-n.wrapperHeight/2)+"px"}c.doAction("position_area",t,e,c)}return p.css(e),h.css(t),c},this.setTriggerEvent=function(t){var i=!1;return t&&(c.setData("event",t),t.currentTarget?i=t.currentTarget:t instanceof jQuery?i=t.first():window.HTMLElement&&e instanceof window.HTMLElement&&(i=d(t))),c.setData("attachto",i),DiviArea.Debug.debug("Attached to element:",i||"(none)"),c},this.isVisible=function(){return o},this.inDom=function(){return n},this.isPrepared=function(e){void 0===e&&(e=!1);var t=l;return!l&&e&&(n=!0,l=!0),t},this.getSize=function(){var e=c.isVisible();if(s&&void 0!==s.width||(s={}),s.width||(s.width=e?p[0].clientWidth:0),s.height||(s.height=e?p[0].clientHeight:0),s.contentWidth||(s.contentWidth=e?p[0].scrollWidth:0),!s.contentHeight&&(s.contentHeight=0,e))if(p.hasClass("et_pb_section")){var t=window.getComputedStyle(p[0]);s.contentHeight+=parseInt(t["border-top-width"]),s.contentHeight+=parseInt(t["padding-top"]),s.contentHeight+=parseInt(t["padding-bottom"]),s.contentHeight+=parseInt(t["border-bottom-width"]),p.children().each((function(){s.contentHeight+=this.offsetHeight}))}else s.contentHeight=p[0].scrollHeight;return s.wrapperWidth||(s.wrapperWidth=e?h[0].offsetWidth:0),s.wrapperHeight||(s.wrapperHeight=e?h[0].offsetHeight:0),s.windowWidth||(s.windowWidth=window.innerWidth),s.windowHeight||(s.windowHeight=window.innerHeight),s},this.getData=function(e){var t;return e?(e=e.toLowerCase().replace(/[^a-z0-9]/,""),g.hasOwnProperty(e)?(e=g[e],t=!f[e]):t=f[e]):t=Object.keys(f).filter((function(e){return"string"==typeof e&&"_"!==e[0]})).reduce((function(e,t){return e[t]=f[t],e}),{}),t},this.setData=function(e,t){if(void 0===t)return this;if(e=e.toLowerCase().replace(/[^a-z0-9]/,""),v.hasOwnProperty(e))t=DiviArea.Utils.toBool(t,v[e]),g.hasOwnProperty(e)&&(e=g[e],t=!t);else switch(e){case"fixzindex":case"zindex":t=parseInt(t);break;case"closedelay":t=parseFloat(t);break;case"position":-1!==t.indexOf("top")?f.positionv="top":-1!==t.indexOf("bottom")?f.positionv="bottom":f.positionv="center",-1!==t.indexOf("left")?f.positionh="left":-1!==t.indexOf("right")?f.positionh="right":f.positionh="center",t=f.positionv+"-"+f.positionh;break;case"positionh":if("left"!==t&&"right"!==t&&"center"!==t)return c;break;case"positionv":if("top"!==t&&"bottom"!==t&&"center"!==t)return c;break;case"container":(t=d(t).first()).length||(t=d("body"));break;case"attachto":t=d(t).first()}switch(f[e]=t,e){case"positionh":case"positionv":f.position=f.positionv+"-"+f.positionh}return P(),c},this.doAction=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];t.length||(t=[c]),DiviArea.doAction.apply(DiviArea,[[e,e+"_"+c.theKey()]].concat(t))},this.applyFilters=function(e,t){for(var i=[],a=arguments.length-2;a-- >0;)i[a]=arguments[a+2];return i.length||(i=[c]),DiviArea.applyFilters.apply(DiviArea,[[e,e+"_"+c.theKey()],t].concat(i))},this.addFilter=function(e,t,i,a){DiviArea.addFilter(e+"_"+c.theKey(),t,i,a)},this.addAction=function(e,t,i,a){DiviArea.addAction(e+"_"+c.theKey(),t,i,a)},this.removeFilter=function(e,t){DiviArea.removeFilter(e+"_"+c.theKey(),t)},this.removeAction=function(e,t){DiviArea.removeAction(e+"_"+c.theKey(),t)},this.addActionOnce=function(e,t,i,a){DiviArea.addActionOnce(e+"_"+c.theKey(),t,i,a)},this.hasClass=p.hasClass.bind(p),this.addClass=p.addClass.bind(p),this.removeClass=p.removeClass.bind(p),this.attr=p.attr.bind(p),this.removeAttr=p.removeAttr.bind(p),this.find=p.find.bind(p),this.css=p.css.bind(p),function(e){for(var t in _=_.bind(e),C=C.bind(e),x=x.bind(e),k=k.bind(e),P=P.bind(e),O=O.bind(e),I=I.bind(e),z=z.bind(e),T=T.bind(e),S=S.bind(e),U=U.bind(e),F=F.bind(e),N=N.bind(e),M=M.bind(e),e)e.hasOwnProperty(t)&&"function"==typeof e[t]&&(e[t]=e[t].bind(e))}(c),_()};var e,t,i,a,r;e=jQuery,t=0,DiviArea.init=function(e){var t=[window.location.protocol,"//",window.location.host,"/wp-admin/edit.php?post_type=divi-area&page=settings#frontend"];this.app=e?"Divi Areas Pro":"Popups for Divi",this.lib=e?"DiviArea":"DiviPopup",this.version="2.2.0",this.info=this.lib+"-"+this.version,this.loaded=!0,DiviArea.Debug.info("🚀 Initialize "+this.app,"- JS API:",this.info),e?DiviArea.Debug.info("ℹ️ You can disable the debug output on the Settings page:",t.join("")):DiviArea.Debug.info("ℹ️ You can disable the debug output by disabling WP_DEBUG"),DiviArea.Debug.debug("Details about the Debug Mode","https://divimode.com/knowledge-base/debug-options/"),DiviArea.Utils.init(),DiviArea.UI.init(),DiviArea.Core.smartInit()},DiviArea.markClosed=function(e,t){var i=DiviArea.getArea(e);i&&(e=i.theId()),e=e.replace(/^#/,""),DiviArea.Utils.getOption("debug")&&DiviArea.Debug.info("📌 Mark Area as closed for "+t+" minutes:",e),DiviArea.Utils.setLocalData(e,"1",t)},DiviArea.isClosed=function(e){var t=DiviArea.getArea(e);t&&(e=t.theId()),e=e.replace(/^#/,"");var i=DiviArea.Utils.getLocalData(e);if(DiviArea.Utils.getOption("debug")){var a=DiviArea.Data.sanitizeId(e);"1"===i?DiviArea.Debug.info("📌 Area is still closed:",a):DiviArea.Debug.info("📌 Area is not closed:",a)}return"1"===i},DiviArea.register=function(i,a,r,n){var o;if(void 0===a&&(a={}),void 0===r&&(r=!1),"string"!=typeof i||e(i).length||(i=DiviArea.Data.sanitizeId(i)),i&&(o=e(i)),!o||1!==o.length)return DiviArea.Debug.error("Cannot find the Area element:",i),!1;var s=DiviArea.getArea(i);if(s)return s;if("string"!=typeof i&&((i=o.attr("id"))&&!DiviArea.getArea(i)||(i=o.data("id")),i&&!DiviArea.getArea(i)||(i="dynamic-area-"+ ++t),o.attr("id",i)),o.length&&a.selector&&(o=o.filter(a.selector),delete a.selector),!o.length)return DiviArea.Debug.error("Cannot find the Area element:",i),!1;if(o.length>1)return DiviArea.Debug.error("Multiple matching elements found, but require exactly one:",i,o),!1;if("function"!=typeof r||n||(n=r,r=!1),!r){if(o.data("da-type"))r=o.data("da-type"),o.removeAttr("data-da-type");else if(o.data("type"))r=o.data("type"),o.removeAttr("data-type");else for(var l=o[0].className.split(/\s+/),d=0;d<l.length;d++)if(0===l[d].indexOf("divi-area-type-")){r=l[d].replace("divi-area-type-",""),o.removeClass(l[d]);break}if(!r)return DiviArea.Debug.error("Cannot determine the type for this Area",i,o),!1}if(DiviArea.Debug.group("Register Area | "+r+" | "+i),a.areaHook&&a.hookId&&"inline"===r){var c=e(a.areaHook).first();if(c.length){var u=e("<span>");u.attr("data-area-hook",a.hookId),u.attr("data-area-place",a.areaPlace),c.before(u)}else DiviArea.Debug.error("Inline hook not found:",a.areaHook)}var p=DiviArea.Data.createArea(o,r,i);return a.alternateid?DiviArea.Data.addAltId(p.theId(),a.alternateid):a.alternateId?DiviArea.Data.addAltId(p.theId(),a.alternateId):a.ids&&DiviArea.Data.addAltId(p.theId(),a.ids),delete a.alternateid,delete a.alternateId,delete a.ids,Object.keys(a).forEach((function(e){p.setData(e,a[e])})),p.setData("wrapClasses","et-l entry-content"),p.setData("container",DiviArea.Core.getContext()),p.applyFilters("pre_init_area",!1)||(p.isType("inline")&&p.getData("static")?(DiviArea.Core.initContainer(p),DiviArea.show(i,"static")):p.detach()),DiviArea.Debug.info("➕ Registered new area:",i,"("+r+")"),DiviArea.Debug.group(),"function"==typeof n&&n(p),p.doAction("init_area"),p},DiviArea.show=function(e,t){if(!e)return!1;var i=DiviArea.getArea(e);return i?DiviArea.Utils.showOnViewport(i)?(DiviArea.Debug.group("Show area",i.theId()),i.setData("hasShowAnim",!i.isVisible()),i.setTriggerEvent(t),i.isType("hover")&&DiviArea.Core.setupHoverArea(i),DiviArea.Core.attachArea(i),DiviArea.Core.reOrderAreas(),DiviArea.Debug.group(),!0):(DiviArea.Debug.debug("Do not trigger area on this device:",i.theId()),!1):(DiviArea.Debug.error("Could not find an area with the ID:",e),!1)},DiviArea.hide=function(e){var t=DiviArea.Data.getVisibleArea(e);t&&(t.setData("hasShowAnim",!0),t.setData("event",void 0),DiviArea.Debug.debug("Close area and unlink event handlers:",t.theId()),DiviArea.Core.detachArea(t)),DiviArea.Core.reOrderAreas()},function(e,t,i){var a=DiviArea.Core=DiviArea.Core||{},r=DiviArea.Utils=DiviArea.Utils||{},n=DiviArea.Debug=DiviArea.Debug||{},o=t.ResizeObserver||t.WebKitResizeObserver,s=null,l=!1,d=!1,c=e("body");function u(e,t){a.isArea(e)||(e=DiviArea.Data.getVisibleArea())&&(n.debug("Close the top-most area"),e.doAction("close_area",e,"default"))}function p(e){if(27===e.keyCode)return function(){n.info("⚡️ ESC-key pressed");var e=!1,t=DiviArea.Data.getVisibleArea(null,"popup");return t?(e=t.getData("isblocking"),(e=DiviArea.applyFilters("ignore_esc_key",e))?(n.debug("Ignored, manually cancelled in filter"),!0):(n.debug("Close top-most popup"),DiviArea.doAction("close_area",null,"esc"),!1)):(n.debug("Ignored, no popup is visible"),!0)}()}function f(){var e=["popup","flyin","inline"],t=!1;function i(e,i){t||e.getData("triggerexit")&&(DiviArea.isClosed(i)?e.setData("triggerexit",!1):DiviArea.show(i,"exit")&&(e.setData("triggerexit",!1),t=!0))}for(var a in e)t=!1,DiviArea.Data.loopAllAreas(i,e[a])}function v(e,t){var i=[];if(t.isType("popup")&&"show"===e&&t.getData("singleton")&&DiviArea.Data.loopVisibleAreas("popup",(function(e){i.push(e.theId())})),"hide"===e?t.doAction("before_hide_area",t,i):t.doAction("before_show_area",t,i),i.length)for(var r in n.debug("Hide following areas:",i),i){var o=DiviArea.getArea(i[r]);o&&o.inDom()&&a.detachArea(o)}}function g(t,i){var a;if(a=DiviArea.Data.sanitizeId(i))if(t.attr("data-area-id"))n.debug("Trigger already prepared",t[0]);else if(DiviArea.getArea(a)){var o=r.getOption("hoverTriggerClass"),s=r.getOption("clickTriggerClass");t.attr("data-area-id",a),t.addClass("popup-trigger"),t.off("click"),t.hasClass(o)&&(t.on("mouseenter._da",l),n.debug("Prepared Hover trigger to open this area:",a,t[0])),t.hasClass(o)&&!t.hasClass(s)||(t.on("click._da",l),n.debug("Prepared Click trigger to open this area:",a,t[0]))}else n.debug("Ignore trigger. No area found with this ID:",t[0]);else n.debug("Ignore trigger. Invalid target ID:",i,t[0]);function l(t){var i=e(t.target);return!("A"!==i.prop("tagName")||!i.attr("href").length||i.attr("data-area-id"))||(t.preventDefault(),n.debug("Trigger area:",a),DiviArea.show(a,t),!1)}}function h(i,a){void 0===a&&(a=0),t.recaptcha_test=i;var r=t.grecaptcha,o=t.__recaptcha_api;if(r&&i&&i.length)if(o&&r.render&&r.execute){var s=((e('script[src*="google.com/recaptcha/api.js"]').attr("src")||"").split("?")[1]||"").split("&");try{var l=u("onload"),d=u("render"),c=t.etCore&&etCore.api&&etCore.api.spam&&etCore.api.spam.recaptcha&&etCore.api.spam.recaptcha.isEnabled&&etCore.api.spam.recaptcha.isEnabled()?etCore.api.spam.recaptcha:null;c&&i.find(".et_pb_recaptcha_enabled").length&&c.init(),l&&"function"==typeof t[l]&&t[l](),i.find("form [data-sitekey]").length>0&&i.find("form").each((function(){var i=e(this),a=i.find("[data-sitekey]");if(a.length&&!i.find('iframe[src*="/recaptcha/"]').length){var n={sitekey:a.attr("data-sitekey"),type:a.attr("data-type"),size:a.attr("data-size"),theme:a.attr("data-theme"),badge:a.attr("data-badge"),tabindex:a.attr("data-tabindex")},o=a.attr("data-callback"),s=a.attr("data-expired-callback");o&&"function"==typeof t[o]&&(n.callback=t[o]),s&&"function"==typeof t[s]&&(n["expired-callback"]=t[s]);var l=r.render(a[0],n);t.recaptchaWidgets&&recaptchaWidgets.push(l)}})),d.length>10&&r.execute(d,{action:"homepage"}).then((function(e){i.find('form [name="g-recaptcha-response"]').val(e)}))}catch(e){n.debug("ReCaptcha init failed:",e)}}else a<5&&(isNaN(a)&&(a=0),setTimeout((function(){return h(i,a+1)}),250));function u(e){var t=s.filter((function(t){return 0===t.indexOf(e+"=")}))[0];return t=t?t.replace(/^.*?=/,""):""}}function A(t){var i=e(t.target).closest("[data-da-type][data-da-registered]"),a=r.getOption("fullHeightClass");return!(!i.length||!i.hasClass(a)&&"show"!==i.attr("data-da-overflow"))||(t.preventDefault(),t.stopPropagation(),!1)}a.smartInit=function(){var n=r.getOption("initializeOnEvent");function o(){l||setTimeout(a.init,1)}n?(e(t).add(i).one(n,(function(){setTimeout(DiviArea.Core.init,1)})),t.addEventListener("error",o),DiviArea.addAction("load",(function(){t.removeEventListener("error",o)})),setTimeout(a.init,350)):setTimeout(DiviArea.Core.init,1)},a.init=function(){l||(l=!0,n.debug("Initialize the app"),DiviArea.doAction("load"),(s=e(r.getOption("baseContext")).filter(":visible").first()).length?(s.closest("#et-boc").length||(s.append('<div id="et-boc" class="dm-base-context"><div class="et-l"></div></div></div>'),s=s.find(".dm-base-context#et-boc .et-l").first()),n.debug('Base context "'+r.getOption("baseContext")+'" found',s)):n.error('Could not find the popup container "'+r.getOption("baseContext")+'"'),function(){var t=e(".et_pb_fullscreen_nav_container #mobile_menu_slide");if(!t.length)return;t.parent().css({minHeight:t.outerHeight()})}(),setTimeout((function(){e(t).on("mouseleave.da",(function(e){var a;"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&"select"!==e.target.tagName.toLowerCase()&&(a=Math.max(i.documentElement.clientWidth,t.innerWidth||0),e.clientX>=a-50||e.clientY>=50||e.toElement||e.relatedTarget||(n.info("⚡️ Exit-intent detected (mouse leave)"),DiviArea.doAction("exit_intent","mouse-leave")))})),DiviArea.addAction("exit_intent",f)}),r.getOption("onExitDelay")),DiviArea.addAction("ready",(function(){DiviArea.addAction("close_area",u),function(e){var i=t.MutationObserver||t.WebKitMutationObserver,r=t.addEventListener,o=a.getContext(),s=!1;function l(){s||(s=setTimeout((function(){s=!1,n.debug("DOM changed"),e()}),50))}if(i){new i((function(e){if(e[0].addedNodes.length||e[0].removedNodes.length)return l()})).observe(o[0],{childList:!0,subtree:!0})}else r&&(o.addEventListener("DOMNodeInserted",l,!1),o.addEventListener("DOMNodeRemoved",l,!1))}(a.activateContainer),e(i).on("keyup",p)}),1),DiviArea.addAction("ready",(function(){a.activateContainer()}),9),DiviArea.doAction("ready"))},a.isArea=function(e){return e&&e instanceof DiviAreaItem},a.getContext=function(){return s},a.reOrderAreas=function(){var e=DiviArea.Data.countVisibleAreas("popup"),t=DiviArea.Data.countVisibleAreas("flyin"),i=DiviArea.Data.countVisibleAreas("hover");if(e?c.addClass("da-popup-visible"):(DiviArea.hideOverlay(),c.removeClass("da-popup-visible")),t?c.addClass("da-flyin-visible"):c.removeClass("da-flyin-visible"),i?c.addClass("da-hover-visible"):c.removeClass("da-hover-visible"),DiviArea.Data.countVisibleAreas()){var o=r.getOption("zIndex"),s=DiviArea.Data.countVisibleAreas("not: inline"),l=DiviArea.Data.countVisibleAreas("popup"),d=[],u=0,p=0,f={};if(n.debug("Refresh the z-index of visible areas"),DiviArea.Data.loopVisibleAreas("any",a.blurArea),a.focusArea(DiviArea.Data.getVisibleArea()),DiviArea.Data.loopVisibleAreas("not: inline",(function(e){var t,i=e.getData("fixZIndex");e.isType("popup")?(p++,t=o+s-l+p,e.hasClass(r.getOption("activePopupClass"))&&(f.overlay=t,t+=1)):(u++,t=o+u),isNaN(i)||(t=i),f[e.theId()]=t})),(f=DiviArea.applyFilters("reorder_areas",f)).overlay&&!isNaN(f.overlay)){var v=DiviArea.showOverlay(f.overlay);d.push({id:"-",type:"overlay","z-index":v})}for(var g in f)f.hasOwnProperty(g)&&h(g);n.info("👓 List of visible Areas:"),n.table(d)}function h(e){if("overlay"!==e){var t=DiviArea.getArea(e);if(t){var i=t.applyFilters("apply_z_index",f[e],t);i&&!isNaN(i)&&t.setData("zindex",i),t.isType("popup")&&t.attach(),d.push({id:t.theId(),type:t.theType(),"z-index":t.getData("zindex")||null})}}}},a.activateContainer=function(i){var o,s,l=!i;if(void 0===i?i=c:a.isArea(i)&&(i=i.get()),function(t){t.find(r.getOption("popupSelector")).not("[data-da-area]").filter("[id],."+r.getOption("exitIndicatorClass")).each((function(){var t=e(this);n.debug("Found an inline Popup Area:",t.attr("id")),DiviArea.register(t,{},"popup")}))}(i),(s=function(i,a){var r,n,o,s=[];if(!i.ids||!i.ids.length)return[];function l(t,i){var a;for(a=0;a<i.length;a++){var r=e(i[a]);r.attr("data-area-id")||(r.attr("data-da-area")||r.hasClass("divi-area-wrap")||r.hasClass("et_pb_section")&&r.hasClass("popup")||s.push({id:t,item:r}))}}for(r=0;r<i.ids.length;r++){var d="#"+(o=i.ids[r].replace(/^#/,"")),c=i.linkPrefix?"#"+i.linkPrefix+o:"",u="."+o,p=i.classPrefix?"."+i.classPrefix+o:"",f=i.dataAttrib?i.dataAttrib+'="'+o+'"':"";if(l(o,e('[href="'+d+'"]',a)),c&&l(o,e('[href="'+c+'"]',a)),l(o,e(u,a)),p&&l(o,e(p,a)),f&&l(o,e("["+f+"]",a)),t.et_link_options_data)for(n=et_link_options_data.length-1;n>=0;n--)if(d===et_link_options_data[n].url||c===et_link_options_data[n].url){var v=e("."+et_link_options_data[n].class,a);l(o,v),v.off("click"),et_link_options_data.splice(n,1)}}return s}({ids:DiviArea.listAreas(),linkPrefix:"popup:",dataAttrib:r.getOption("idAttrib"),classPrefix:r.getOption("triggerClassPrefix")},i)).length){for(l?n.group("Activate all triggers in document"):n.group("Activate triggers in area",i.attr("id")),o=0;o<s.length;o++){var d=s[o];g(d.item,d.id)}n.group()}else l?n.debug("No new triggers found in document"):n.debug("No new triggers found in area",i.attr("id"));a.initContainer(i)},a.initContainer=function(i){var n=!1,o=!1;if(a.isArea(i)?(n=i,i=i.get()):i.data("is-area")&&(n=i.getArea()),n&&(o=n.getData("post_id")),n&&i.data("is-area"))return!0!==i.data("area-init-done")&&(i.data("area-init-done",!0),c.trigger("post-load"),i.find("img[loading=lazy]").attr("loading","eager"),"function"==typeof t.et_fix_pricing_currency_position&&et_fix_pricing_currency_position(i.find(".et_pb_pricing_table")),o&&i.find(".et_pb_newsletter_form").length&&i.find(".et_pb_newsletter_form [name=et_pb_signup_post_id]").val(o),h(i),function(t){var i=t.getArea();t.find("img").on("load",(function(){return t.trigger("resize")})),"show"!==i.getData("overflow")&&t.find(".et_pb_row").each((function(){var t=e(this),i=r.getStyleDef(t[0],"height"),a=r.getStyleDef(t[0],"max-height");i&&(t.css("height","auto"),r.getStyleDef(t[0],"min-height")||t.css("min-height",i)),a&&t.css("max-height","none")}));t.trigger("resize")}(i)),void 0!==t.et_reinit_waypoint_modules&&t.et_reinit_waypoint_modules(),i},a.deactivateContainer=function(t){a.isArea(t)&&(n.debug("Deactivate all triggers in area",t.theId()),t.find("[data-area-id]").each((function(){!function(e){n.debug("Remove trigger:",e[0]),e.removeAttr("data-area-id"),e.removeClass("popup-trigger"),e.off("._da")}(e(this))})))},a.attachArea=function(e){d||(d=!0,v("show",e),d=!1),DiviArea.Data.addVisibleArea(e),e.attach()},a.detachArea=function(e){if(d||(d=!0,v("hide",e),d=!1),e.inDom()){if(!a.isArea(e)||!e.inDom())return;e.removeClass("__is_animating"),DiviArea.Data.removeVisibleArea(e),a.blurArea(e),e.detach()}},a.focusArea=function(e){var t=r.getOption("activePopupClass");e&&(e.get(),a.activateContainer(e),e.hasClass(t)||(e.addClass(t),e.doAction("focus_area")))},a.blurArea=function(e){var t=r.getOption("activePopupClass");e&&(e.get(),a.deactivateContainer(e),e.hasClass(t)&&(e.removeClass(t),e.doAction("blur_area")))},a.setupHoverArea=function(a){var s=a.getData("attachto"),l=a.get(),d=a.getWrap();if(s.length){var c=r.isPosition(s,"fixed"),u=a.theId(),p=a.getData("closeTrigger"),f=1e3*a.getData("closedelay"),v=!1,g=!1,h=!1;o&&(h=new o((function(e){for(var t=0;t<e.length;t++){var i=e[t].contentRect,a=i.width+"-"+i.height;a!==g&&(g=a,A())}}),{box:"border-box"})),h&&h.observe(s[0]),a.addAction("resize_area",A),"click"===p?e(i).on("click."+a.theKey(),(function(t){e(t.target).closest(u).length||D()})):"hover"===p&&(l.on("mouseleave._dah",D),s.on("mouseleave._dah",D)),s.on("mouseenter._dah",b),l.on("mouseenter._dah",b),n.debug("Prepared positioning of hover area")}else n.error("Hover Area without alignment element found");function A(){var e=c?s[0].getBoundingClientRect():r.getClientRect(s),i=a.getData("positionv"),o=a.getData("positionh"),l=a.getSize(),u={},p={left:"",top:"",right:"",bottom:"",width:"",height:"",position:c?"fixed":"absolute"};"top"===i||"bottom"===i?(p.top="top"===i?e.top-l.height:e.bottom,p.left=e.left+e.width/2-l.width/2):"left"===o||"right"===o?(p.left="left"===o?e.left-l.width:e.right,p.top=e.top+e.height/2-l.height/2):"center"===o&&"center"===i?(p.left=e.left+e.width/2-l.width/2,p.top=e.top+e.height/2-l.height/2):n.error("Invalid position",a.getData("position")),p.top<0&&(p.top=0),p.left<0&&(p.left=0),p.left+l.width>t.innerWidth&&(p.left=t.innerWidth-l.width),a.doAction("position_area",p,u,a),n.debug("Area position:",p),d.css(p),a.css(u)}function D(){b(),v=setTimeout((function(){var t=a.getData("attachto");t&&t.length&&s!==t||(h&&h.disconnect(),a.removeAction("resize_area",A),e(i).off("."+a.theKey()),l.off("._dah"),s.off("._dah"),DiviArea.hide(a))}),f)}function b(){v&&clearTimeout(v),v=!1}},a.disableBodyScroll=function(){if(!0!==c.data("da-disable-scroll")){c.data("da-disable-scroll",!0),r.bindPassiveEvent([c,DiviArea.getOverlay()],"mousewheel touchmove",A);var a=t.innerWidth-i.body.clientWidth;c.addClass(r.getOption("openPopupClass")),a&&(c.css("padding-right",a),c.hasClass("et_boxed_layout")||e(".et_fixed_nav #main-header").css("padding-right",a)),DiviArea.doAction("disabled_scrolling")}},a.enableBodyScroll=function(){!0===c.data("da-disable-scroll")&&(c.data("da-disable-scroll",!1),r.unbindPassiveEvent([c,DiviArea.getOverlay()],"mousewheel touchmove",A),c.removeClass(r.getOption("openPopupClass")),c.css("padding-right",""),e(".et_fixed_nav #main-header").css("padding-right",""),DiviArea.doAction("enabled_scrolling"))},a.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,window,document),function(e){DiviArea.Data=DiviArea.Data||{};var t={},i=[],a={};DiviArea.Data.sanitizeId=function(e,t){if(!e)return"";if(e instanceof DiviAreaItem)return e.theId();if(e instanceof jQuery)return"#"+e.attr("id");if(e){if(t){var i=new RegExp("^#"+t+":");e=e.replace(i,"#",e)}"#"!==e[0]&&(e="#"+e)}return e.length>1?e:""},DiviArea.Data.getRealId=function(e){var i=[];if(!e||"string"!=typeof e)return"";for(e=e.toString().trim(),i.push(DiviArea.Data.sanitizeId(e)),-1===e.indexOf("divi-area-")&&i.push(DiviArea.Data.sanitizeId("divi-area-"+e));i.length;){var r=i.shift();if(r){if(void 0!==t[r])return r;if(a[r]&&(r=DiviArea.Data.sanitizeId(a[r])),r&&void 0!==t[r])return r}}return""},DiviArea.Data.addAltId=function(e,t){function i(t){t=DiviArea.Data.sanitizeId(t),e!==t&&(null===e?delete a[t]:a[t]=e)}e=DiviArea.Data.sanitizeId(e),Array.isArray(t)?t.forEach((function(e){return i(e)})):i(t)},DiviArea.Data.getArea=function(e){if(void 0===e)return DiviArea.Data.getVisibleArea();if(e instanceof DiviAreaItem)return e;e instanceof jQuery&&(e=e.attr("id"));var i=DiviArea.Data.getRealId(e);return!!i&&t[i]},DiviArea.Data.createArea=function(e,i,a){return a=DiviArea.Data.sanitizeId(a),t[a]=new DiviAreaItem(e,i),t[a]},DiviArea.Data.getAllIds=function(e){var i=[];if(e||(e="all"),DiviArea.Core.isArea(e)){var r=e.theId();for(var n in i.push(r),a)r===a[n]&&i.push(n)}else{for(var o in t){t[o].isType(e)&&i.push(o)}for(var s in a){var l=a[s];t[l].isType(e)&&i.push(s)}}return i},DiviArea.Data.loopAllAreas=function(e,i){if("function"==typeof i){var a=e;e=i,i=a}for(var r in i||(i="all"),t){var n=t[r];n.isType(i)&&e(n,r)}},DiviArea.Data.countVisibleAreas=function(e){if(!e||"any"===e)return i.length;var t=0;return DiviArea.Data.loopVisibleAreas(e,(function(){return t++})),t},DiviArea.Data.addVisibleArea=function(e){if(!(e=DiviArea.getArea(e)))return!1;if(e.isType("popup")||!DiviArea.Data.countVisibleAreas("popup"))i.push(e);else for(var t=0;t<i.length;t++)if(i[t].isType("popup")){i.splice(t,0,e);break}},DiviArea.Data.removeVisibleArea=function(e){if(!(e=DiviArea.getArea(e)))return!1;for(var t=e.theId(),a=i.length-1;a>=0;a--){i[a].theId()===t&&i.splice(a,1)}},DiviArea.Data.getVisibleArea=function(e,t){var a=i.length-1;if(!e&&!t)return i[a];if(e){var r=DiviArea.getArea(e);return!!r&&(!!r.isType(t)&&(!!r.isVisible()&&r))}for(var n=a;n>=0;n--){var o=i[n];if(o.isType(t))return o}return!1},DiviArea.Data.loopVisibleAreas=function(e,t,a){for(var r=i.length,n=a?r-1:0,o=0;o<r;o++){var s=i[n];n+=a?-1:1,s.isType(e)&&t(s,o)}}}(),function(e){var t=null,i=!1;function a(e){DiviArea.Debug.info("⚡️ Click on background overlay"),e.preventDefault(),DiviArea.doAction("click_overlay",t);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(e){var t=DiviArea.getOverlay();return e&&!isNaN(e)||(e=DiviArea.Utils.getOption("zIndex"),e+=Math.max(0,DiviArea.Data.countVisibleAreas())),t.css({zIndex:e}),i||(i=!0,DiviArea.Debug.info("⤴️ Show background overlay"),DiviArea.Core.disableBodyScroll(),t.detach().appendTo(DiviArea.Core.getContext()),t.fadeIn(DiviArea.Utils.getOption("animateSpeed")),DiviArea.doAction("show_overlay",t),DiviArea.Core.closeMainMenu()),e},DiviArea.hideOverlay=function(){i&&(i=!1,DiviArea.Debug.info("⤵️ Hide background overlay"),t.hide().detach(),DiviArea.Core.enableBodyScroll(),DiviArea.doAction("hide_overlay",t))},DiviArea.getOverlay=function(){return null===t&&((t=e("<div />")).addClass(DiviArea.Utils.getOption("overlayClass")),t.on("click.popup",a),DiviArea.doAction("init_overlay",t)),t}}(jQuery),function(e){DiviArea.UI=DiviArea.UI||{};var t={};function i(e,t){var i;return i="show"===t?parseInt(e.getData("animationSpeedIn")):parseInt(e.getData("animationSpeedOut")),(isNaN(i)||i<0)&&(i=0),i}function a(e){return e.push(".et_fixed_nav #main-header"),e}function r(t,i,a,r){var o,s="da-push-"+t,l="margin-"+t,d="top"===t||"bottom"===t?"v":"h";if(DiviArea.Debug.debug("Add Container Space (push content)",t,i+"px"),"top"===t?o=e("body"):(o=e("#page-container")).length||(o=e("body")),void 0===o.data(s)){var c=parseInt(o.css(l));isNaN(c)&&(c=0),o.data(s,c)}isNaN(i)&&(i=0);var u=parseInt(o.data(s))+i;isNaN(u)&&(u=i),u<0&&(u=0);var p=!u;if(o.data(s,u),n(o,l,u,a,p),"h"===d){var f=parseInt(o.css("width"));i>0&&o.css("width",f),n(o,"width",f-i,a,p)}e(r).each((function(){var r=e(this),o=parseInt(r.css(t)),s=(isNaN(o)?0:o)+i;if(i>0&&r.css(t,o),"h"===d){var l=parseInt(r.css("width"));i>0&&r.css("width",l),n(r,"width",l-i,a,p)}n(r,t,s,a,p)}))}function n(e,t,i,a,r,n){void 0===r&&(r=!1),void 0===n&&(n="ease-in-out"),DiviArea.Debug.debug(" Push Content",e.prop("tagName")+"#"+e.attr("id"),t+": "+e.css(t)+" → "+i+"px");var o=e.css("transition");e.css("transition",o+", "+t+" "+a+"ms "+n),e.css(t,i+"px"),setTimeout((function(){e.css("transition",""),r&&e.css(t,"")}),a+20)}function o(e,t,i){i=i||e.data("et_waypoint_max_instances")||1;var a=e.data("et_waypoint")||[];if(a.length<i){var r=e.waypoint(t);r&&r.length>0&&(a.push(r[0]),e.data("et_waypoint",a))}else for(var n=0;n<a.length;n++)a[n].context.refresh()}DiviArea.UI.init=function(){DiviArea.addAction("push_fixed_elements_top",a),DiviArea.addAction("push_fixed_elements_left",a),DiviArea.addAction("push_fixed_elements_right",a)},DiviArea.UI.animateArea=function(e,a,n){var s=!1,l=!1,d=!1;if("function"!=typeof n&&(n=function(){}),e.isType("flyin"))window.TweenLite&&(l=!0),d=!!e.getData("pushContent");else if("hide"===a)return void n();e.hasClass("et_pb_section")&&jQuery.fn.waypoint&&"yes"!==et_pb_custom.ignore_waypoints&&function(e){var i=e.attr("data-animation"),a=!1;if(!i)return!1;if(!(a=t[i]))return!1;jQuery("body").css("overflow-x","hidden"),jQuery("#page-container").css("overflow-y","hidden"),e.attr({"data-animation-style":a.style,"data-animation-repeat":"once"===a.repeat?"":"infinite","data-animation-duration":a.duration,"data-animation-delay":a.delay,"data-animation-intensity":a.intensity,"data-animation-starting-opacity":a.starting_opacity,"data-animation-speed-curve":a.speed_curve}),o(e,{offset:"100%",handler:function(){!function(e){var t=e.attr("data-animation-style"),i=e.attr("data-animation-repeat"),a=e.attr("data-animation-duration"),r=e.attr("data-animation-delay"),n=e.attr("data-animation-intensity"),o=e.attr("data-animation-starting-opacity"),s=e.attr("data-animation-speed-curve");!function(e){for(var t=[],i=e.get(0).attributes,a=0;a<i.length;a++)"data-animation-"===i[a].name.substring(0,15)&&t.push(i[a].name);jQuery.each(t,(function(t,i){e.removeAttr(i)}))}(e);var l=isNaN(parseInt(o))?0:.01*parseInt(o);-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(n))?50:parseInt(n),u=["slide","zoom","flip","fold","roll"],p=!1,f=!1,v=0;v<u.length;v++){var g=u[v];if(t&&t.substr(0,g.length)===g){p=g,""!==(f=t.substr(g.length,t.length))&&(f=f.toLowerCase());break}}!1!==p&&!1!==f&&(d=function(e,t,i){var a={};switch(e){case"slide":switch(t){case"top":a={transform:"translate3d(0, "+(r=-2*i)+"%, 0)"};break;case"right":a={transform:"translate3d("+(r=2*i)+"%, 0, 0)"};break;case"bottom":a={transform:"translate3d(0, "+(r=2*i)+"%, 0)"};break;case"left":var r=-2*i;a={transform:"translate3d("+r+"%, 0, 0)"};break;default:a={transform:"scale3d("+(n=.01*(100-i))+", "+n+", "+n+")"}}break;case"zoom":var n=.01*(100-i);switch(t){case"top":case"right":case"bottom":case"left":default:a={transform:"scale3d("+n+", "+n+", "+n+")"}}break;case"flip":switch(t){case"right":a={transform:"perspective(2000px) rotateY("+(o=Math.ceil(.9*i))+"deg)"};break;case"left":a={transform:"perspective(2000px) rotateY("+(o=-1*Math.ceil(.9*i))+"deg)"};break;case"top":default:a={transform:"perspective(2000px) rotateX("+(o=Math.ceil(.9*i))+"deg)"};break;case"bottom":a={transform:"perspective(2000px) rotateX("+(o=-1*Math.ceil(.9*i))+"deg)"}}break;case"fold":switch(t){case"top":a={transform:"perspective(2000px) rotateX("+(o=-1*Math.ceil(.9*i))+"deg)"};break;case"bottom":a={transform:"perspective(2000px) rotateX("+(o=Math.ceil(.9*i))+"deg)"};break;case"left":a={transform:"perspective(2000px) rotateY("+(o=Math.ceil(.9*i))+"deg)"};break;case"right":default:a={transform:"perspective(2000px) rotateY("+(o=-1*Math.ceil(.9*i))+"deg)"}}break;case"roll":switch(t){case"right":case"bottom":a={transform:"rotateZ("+(o=-1*Math.ceil(3.6*i))+"deg)"};break;case"top":case"left":a={transform:"rotateZ("+(o=Math.ceil(3.6*i))+"deg)"};break;default:var o=Math.ceil(3.6*i);a={transform:"rotateZ("+o+"deg)"}}}return a}(p,f,c)),jQuery.isEmptyObject(d)||e.css(d),e.addClass("et_animated"),e.addClass(t),e.addClass(i)}(jQuery(this.element))}})}(e.get())&&(s=!0),l?function(e,t,a){DiviArea.Debug.debug("Animate Area using GSAP");var r={},n={},o=e.get();o.css({opacity:"show"===t?0:1,transition:"all 0s"}),o.show(),window.setTimeout((function(){var s=e.getData("positionH"),l=e.getData("positionV"),d=i(e,t);"left"===s?(r.left=-1*o.outerWidth(),n.left=0):"right"===s?(r.right=-1*o.outerWidth(),n.right=0):"top"===l?(r.top=-1*o.outerHeight(),n.top=0):"bottom"===l&&(r.bottom=-1*o.outerHeight(),n.bottom=0),r.opacity=1,n.opacity=1,"show"===t?(o.css(r),TweenLite.to(o,d/1e3,{css:n})):(o.css(n),TweenLite.to(o,d/1e3,{css:r})),window.setTimeout(a,d)}),5)}(e,a,n):s?function(e,t,i){DiviArea.Debug.debug("Animate Area using a Divi Animation");var a=e.get();a.show(),a.css({opacity:0}),window.setTimeout((function(){a.css({opacity:""}),o(a,{offset:"100%",handler:function(){a.addClass("et-animated"),i()}},2)}),10)}(e,0,n):function(e,t,a){var r=e.get(),n=i(e,t);"show"===t?(DiviArea.Debug.debug("Animate Area using jQuery fadeIn",n),r.fadeIn(n,a)):"hide"===t&&(DiviArea.Debug.debug("Animate Area using jQuery fadeOut",n),r.fadeOut(n,a))}(e,a,n),d&&setTimeout((function(){return function(e,t){DiviArea.Debug.debug("Push content:",t);var a=e.getData("positionH"),n=e.getData("positionV"),o=i(e,t),s=e.getSize(),l="",d=0;"right"===a||"left"===a?(d=s.width,l=a):"top"!==n&&"bottom"!==n||(d=s.height,l=n);if(l){var c=e.applyFilters("push_fixed_elements_"+l,[],l);r(l,"show"===t?d:-1*d,o,c)}else DiviArea.Debug.debug("Could not determine edge to push",n,a)}(e,a)}))},DiviArea.UI.initializeAreaAnimation=function(e){if(!window.et_animation_data||!window.et_animation_data.length>0)return!1;e.removeClass("et-waypoint"),e.removeClass("et-animated");for(var i=0;i<et_animation_data.length;i++){var a=!1,r=et_animation_data[i];if(r&&(r.class&&e.hasClass(r.class)&&r.style&&r.repeat&&r.duration&&r.delay&&r.intensity&&r.starting_opacity&&r.speed_curve))return a=r.class,e.addClass("pfd-waypoint"),e.attr("data-animation",a),t[a]=r,et_animation_data[i].class=void 0,!0}return!1}}(jQuery),i=DiviArea.Debug=DiviArea.Debug||{},DiviArea.Hooks=DiviArea.Hooks||{},a=!1,r=window.DiviAreaConfig,i.group=function(e){if(r.debug&&console.group){var t=!a||e&&e!==a;if(a&&(console.groupEnd(),a=!1),e&&t){var i=Array.prototype.slice.call(arguments);i.unshift("[DiviAreas]"),console.group.apply(this,i),a=e}}},i.table=function(){if(r.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)}},i.verbose=function(){if(r.debug&&r.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)}},i.debug=function(){if(r.debug){var e=Array.prototype.slice.call(arguments);e.unshift("color:#90a4ae"),e.unshift("[DiviAreas] %c%s"),console.debug.apply(this,e)}},i.info=function(){if(r.debug){var e=Array.prototype.slice.call(arguments);e.unshift("color:#0288d1;background:#fafcfe"),e.unshift("[DiviAreas] %c%s"),console.log.apply(this,e)}},i.error=function(){var e=Array.prototype.slice.call(arguments);e.unshift("[DiviAreas]"),console.error.apply(this,e)},i.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 t in DiviAreaConfig.sys)try{e.push(" • "+t+": "+" ".repeat(Math.max(0,11-t.length))+DiviAreaConfig.sys[t])}catch(e){}return e.push(" • browser: "+navigator.userAgent),e.push("\n----------\n"),e.join("\n")},function(){var e=DiviArea.Debug=DiviArea.Debug||{},t=DiviArea.Hooks=DiviArea.Hooks||{},i=!0,a={};a.silent=t.silent,a.removeFilter=t.removeFilter,a.removeAction=t.removeAction,a.applyFilters=t.applyFilters,a.doAction=t.doAction,a.addFilter=t.addFilter,a.addAction=t.addAction,a.addActionOnce=t.addActionOnce,t.silent=function(){return i=!1,a.silent.apply(this,arguments)},DiviArea.removeFilter=t.removeFilter=function(t){return i&&e.debug("Remove Filter:",t),i=!0,a.removeFilter.apply(this,arguments)},DiviArea.removeAction=t.removeAction=function(t){return i&&e.debug("Remove Action:",t),i=!0,a.removeAction.apply(this,arguments)},DiviArea.applyFilters=t.applyFilters=function(t){if(i){Array.isArray(t)||(t=[t]),e.info("📢️ Apply Filters:",t.join(" → "));for(var r=0;r<t.length;r++)e.debug(' ⚙ DiviArea.addFilter("'+t[r]+'", callback)')}return i=!0,a.applyFilters.apply(this,arguments)},DiviArea.doAction=t.doAction=function(t){if(i){Array.isArray(t)||(t=[t]),e.info("📢️ Do Action:",t.join(" → "));for(var r=0;r<t.length;r++)e.debug(' ⚙ DiviArea.addAction("'+t[r]+'", callback)')}return i=!0,a.doAction.apply(this,arguments)},DiviArea.addFilter=t.addFilter=function(t){return i&&e.debug("Add Filter:",t),i=!0,a.addFilter.apply(this,arguments)},DiviArea.addAction=t.addAction=function(t){return i&&e.debug("Add Action:",t),i=!0,a.addAction.apply(this,arguments)},DiviArea.addActionOnce=t.addActionOnce=function(t){return i&&e.debug("Add Action Once:",t),i=!0,a.addActionOnce.apply(this,arguments)}}(),DiviArea.openPopup=function(e){DiviArea.Debug.error("DiviArea.openPopup() is deprecated. Please use DiviArea.show() instead"),DiviArea.show(e)},DiviArea.openArea=function(e){DiviArea.Debug.error("DiviArea.openArea() is deprecated. Please use DiviArea.show() instead"),DiviArea.show(e)},DiviArea.closePopup=function(e){DiviArea.Debug.error("DiviArea.closeArea() is deprecated. Please use DiviArea.hide() instead"),DiviArea.hide(e)},DiviArea.closeArea=function(e){DiviArea.Debug.error("DiviArea.closeArea() is deprecated. Please use DiviArea.hide() instead"),DiviArea.hide(e)},DiviArea.Data.configArea=function(e,t,i){DiviArea.Debug.error("DiviArea.configArea() is deprecated. Please use area.setData() instead");var a=DiviArea.getArea(e);if(a)if("object"!=typeof t)a.setData(t,i);else for(var r in t)t.hasOwnProperty(r)&&a.setData(r,t[r])},DiviArea.Hooks.silent().addAction("init_area",(function(e){DiviArea.Hooks.silent().doAction("init_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("show_area",(function(e){DiviArea.Hooks.silent().doAction("show_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("hide_area",(function(e){DiviArea.Hooks.silent().doAction("hide_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("close_area",(function(e,t){e&&DiviArea.Hooks.silent().doAction("close_area-"+e.theKey(),e,t)}),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,t){DiviArea.Hooks.silent().doAction("before_show_area-"+e.theKey(),e,t)}),1),DiviArea.Hooks.silent().addAction("before_hide_area",(function(e,t){DiviArea.Hooks.silent().doAction("before_hide_area-"+e.theKey(),e,t)}),1),DiviArea.Hooks.silent().addFilter("ignore_close_area",(function(e,t,i){return e=DiviArea.Hooks.silent().applyFilters("before_close_area",e,t,i),e=DiviArea.Hooks.silent().applyFilters("before_close_area-"+t.theKey(),e,t,i)}),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 t={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 i in t)e.getData(i)?e.addClass(t[i]):e.removeClass(t[i])}),1),DiviArea.listAreas=DiviArea.Data.getAllIds,DiviArea.configArea=DiviArea.Data.configArea,DiviArea.getArea=DiviArea.Data.getArea,DiviArea.init(!1);return{}}();
scripts/ie-compat.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t=[],r="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(e||(e={}));var n,o,i,s,a,c=function(){function e(e,t,r,n){return this.x=e,this.y=t,this.width=r,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Object.freeze(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),u=function(e){return e instanceof SVGElement&&"getBBox"in e},h=function(e){if(u(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},f=function(e){var t,r,n=null===(r=null===(t=e)||void 0===t?void 0:t.ownerDocument)||void 0===r?void 0:r.defaultView;return!!(n&&e instanceof n.Element)},l="undefined"!=typeof window?window:{},d=new WeakMap,v=/auto|scroll/,p=/^tb|vertical/,g=/msie|trident/i.test(l.navigator&&l.navigator.userAgent),b=function(e){return parseFloat(e||"0")},m=function(e,t,r){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=!1),Object.freeze({inlineSize:(r?t:e)||0,blockSize:(r?e:t)||0})},y=Object.freeze({devicePixelContentBoxSize:m(),borderBoxSize:m(),contentBoxSize:m(),contentRect:new c(0,0,0,0)}),w=function(e,t){if(void 0===t&&(t=!1),d.has(e)&&!t)return d.get(e);if(h(e))return d.set(e,y),y;var r=getComputedStyle(e),n=u(e)&&e.ownerSVGElement&&e.getBBox(),o=!g&&"border-box"===r.boxSizing,i=p.test(r.writingMode||""),s=!n&&v.test(r.overflowY||""),a=!n&&v.test(r.overflowX||""),f=n?0:b(r.paddingTop),l=n?0:b(r.paddingRight),w=n?0:b(r.paddingBottom),E=n?0:b(r.paddingLeft),x=n?0:b(r.borderTopWidth),T=n?0:b(r.borderRightWidth),z=n?0:b(r.borderBottomWidth),S=E+l,O=f+w,B=(n?0:b(r.borderLeftWidth))+T,R=x+z,M=a?e.offsetHeight-R-e.clientHeight:0,A=s?e.offsetWidth-B-e.clientWidth:0,k=o?S+B:0,C=o?O+R:0,N=n?n.width:b(r.width)-k-A,D=n?n.height:b(r.height)-C-M,j=N+S+A+B,F=D+O+M+R,P=Object.freeze({devicePixelContentBoxSize:m(Math.round(N*devicePixelRatio),Math.round(D*devicePixelRatio),i),borderBoxSize:m(j,F,i),contentBoxSize:m(N,D,i),contentRect:new c(E,f,N,D)});return d.set(e,P),P},E=function(t,r,n){var o=w(t,n),i=o.borderBoxSize,s=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(r){case e.DEVICE_PIXEL_CONTENT_BOX:return a;case e.BORDER_BOX:return i;default:return s}},x=function(e){var t=w(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=[t.borderBoxSize],this.contentBoxSize=[t.contentBoxSize],this.devicePixelContentBoxSize=[t.devicePixelContentBoxSize]},T=function(e){if(h(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},z=function(){var e=1/0,r=[];t.forEach((function(t){if(0!==t.activeTargets.length){var n=[];t.activeTargets.forEach((function(t){var r=new x(t.target),o=T(t.target);n.push(r),t.lastReportedSize=E(t.target,t.observedBox),o<e&&(e=o)})),r.push((function(){t.callback.call(t.observer,n,t.observer)})),t.activeTargets.splice(0,t.activeTargets.length)}}));for(var n=0,o=r;n<o.length;n++){(0,o[n])()}return e},S=function(e){t.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(r){r.isActive()&&(T(r.target)>e?t.activeTargets.push(r):t.skippedTargets.push(r))}))}))},O=function(){var e,n=0;for(S(n);t.some((function(e){return e.activeTargets.length>0}));)n=z(),S(n);return t.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:r}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=r),window.dispatchEvent(e)),n>0},B=[],R=function(e){if(!n){var t=0,r=document.createTextNode("");new MutationObserver((function(){return B.splice(0).forEach((function(e){return e()}))})).observe(r,{characterData:!0}),n=function(){r.textContent=""+(t?t--:t++)}}B.push(e),n()},M=0,A={attributes:!0,characterData:!0,childList:!0,subtree:!0},k=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],C=function(e){return void 0===e&&(e=0),Date.now()+e},N=!1,D=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!N){N=!0;var r,n=C(e);r=function(){var r=!1;try{r=O()}finally{if(N=!1,e=n-C(),!M)return;r?t.run(1e3):e>0?t.run(e):t.start()}},R((function(){requestAnimationFrame(r)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,A)};document.body?t():l.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),k.forEach((function(t){return l.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),k.forEach((function(t){return l.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),j=function(e){!M&&e>0&&D.start(),!(M+=e)&&D.stop()},F=function(){function t(t,r){this.target=t,this.observedBox=r||e.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e,t=E(this.target,this.observedBox,!0);return e=this.target,u(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},t}(),P=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},_=new WeakMap,I=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},L=function(){function e(){}return e.connect=function(e,t){var r=new P(e,t);_.set(e,r)},e.observe=function(e,r,n){var o=_.get(e),i=0===o.observationTargets.length;I(o.observationTargets,r)<0&&(i&&t.push(o),o.observationTargets.push(new F(r,n&&n.box)),j(1),D.schedule())},e.unobserve=function(e,r){var n=_.get(e),o=I(n.observationTargets,r),i=1===n.observationTargets.length;o>=0&&(i&&t.splice(t.indexOf(n),1),n.observationTargets.splice(o,1),j(-1))},e.disconnect=function(e){var t=this,r=_.get(e);r.observationTargets.slice().forEach((function(r){return t.unobserve(e,r.target)})),r.activeTargets.splice(0,r.activeTargets.length)},e}(),W=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");L.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!f(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");L.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!f(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");L.unobserve(this,e)},e.prototype.disconnect=function(){L.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),r=t.length;--r>=0&&t.item(r)!==this;);return r>-1}),Array.from||(Array.from=(o=Object.prototype.toString,i=function(e){return"function"==typeof e||"[object Function]"===o.call(e)},s=Math.pow(2,53)-1,a=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),s)},function(e){var t=this,r=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,o=arguments.length>1?arguments[1]:void 0;if(void 0!==o){if(!i(o))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}for(var s,c=a(r.length),u=i(t)?Object(new t(c)):new Array(c),h=0;h<c;)s=r[h],u[h]=o?void 0===n?o(s,h):o.call(n,s,h):s,h+=1;return u.length=c,u})),function(){var e=Array.prototype.slice;try{e.call(document.documentElement)}catch(t){Array.prototype.slice=function(t,r){if(r=void 0!==r?r:this.length,"[object Array]"===Object.prototype.toString.call(this))return e.call(this,t,r);var n,o,i=[],s=this.length,a=t||0;a=a>=0?a:Math.max(0,s+a);var c="number"==typeof r?Math.min(r,s):s;if(r<0&&(c=s+r),(o=c-a)>0)if(i=new Array(o),this.charAt)for(n=0;n<o;n++)i[n]=this.charAt(a+n);else for(n=0;n<o;n++)i[n]=this[a+n];return i}}}(),window.ResizeObserver=W}));
scripts/loader.min.js ADDED
@@ -0,0 +1 @@
 
1
+ var loader=function(){"use strict";!function(){window.DiviArea=window.DiviPopup={loaded:!1};var n=window.DiviArea,i=n.Hooks={},t={};function o(n,i,o){var r,e,c;if("string"==typeof n)if(t[n]){if(i)if((r=t[n])&&o)for(c=r.length;c--;)(e=r[c]).callback===i&&e.context===o&&(r[c]=!1);else for(c=r.length;c--;)r[c].callback===i&&(r[c]=!1)}else t[n]=[]}function r(n,i,o,r){if("string"==typeof n){var e={callback:i,priority:o,context:r},c=t[n];c?(c.push(e),c=function(n){var i,t,o,r,e=n.length;for(r=1;r<e;r++)for(i=n[r],t=r;t>0;t--)(o=n[t-1]).priority>i.priority&&(n[t]=o,n[t-1]=i);return n}(c)):c=[e],t[n]=c}}function e(n,i,o){var r,e;for("string"==typeof i&&(i=[i]),r=0;r<i.length;r++){var c=t[i[r]],f=!1,a=void 0;if(c){var l=c.length;for(e=0;e<l;e++)if(c[e])if("filter"===n)void 0!==(a=c[e].callback.apply(c[e].context,o))&&(o[0]=a);else{if(!c[e]||"function"!=typeof c[e].callback)return!1;c[e].callback.apply(c[e].context,o)}else f=!0;if(f)for(e=l;e--;)c[e]||c.splice(e,1)}}if("filter"===n)return o[0]}i.silent=function(){return i},n.removeFilter=i.removeFilter=function(n,i){o(n,i)},n.removeAction=i.removeAction=function(n,i){o(n,i)},n.applyFilters=i.applyFilters=function(n){for(var i=[],t=arguments.length-1;t-- >0;)i[t]=arguments[t+1];return e("filter",n,i)},n.doAction=i.doAction=function(n){for(var i=[],t=arguments.length-1;t-- >0;)i[t]=arguments[t+1];e("action",n,i)},n.addFilter=i.addFilter=function(n,i,t,o){r(n,i,parseInt(t||10,10),o||window)},n.addAction=i.addAction=function(n,i,t,o){r(n,i,parseInt(t||10,10),o||window)},n.addActionOnce=i.addActionOnce=function(n,i,t,e){r(n,i,parseInt(t||10,10),e||window),r(n,(function(){o(n,i)}),1+parseInt(t||10,10),e||window)}}();return{}}();
styles/builder.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .popup{display:none;-webkit-box-shadow:0 3px 10px -1px rgba(0,0,0,.3),0 0 20px 2px rgba(0,0,0,.2);box-shadow:0 3px 10px -1px rgba(0,0,0,.3),0 0 20px 2px rgba(0,0,0,.2);min-width:360px;max-width:95%}#et-fb-app .et_pb_section.popup{display:block;background-color:#fff;margin:30px auto;overflow:visible;z-index:auto}#et-fb-app .et_pb_section.popup+.et_pb_section.popup{margin-top:60px}#et-fb-app .et_pb_section.popup:after{content:"";position:absolute;background:#ccc;background:#fff -o-repeating-linear-gradient(135deg,rgba(0,0,0,.027450980392156862),rgba(0,0,0,.027450980392156862) 10px,rgba(0,0,0,.06274509803921569) 10px,rgba(0,0,0,.06274509803921569) 20px);background:#fff repeating-linear-gradient(315deg,rgba(0,0,0,.027450980392156862),rgba(0,0,0,.027450980392156862) 10px,rgba(0,0,0,.06274509803921569) 0,rgba(0,0,0,.06274509803921569) 20px);left:50%;width:100vw;top:-30px;bottom:-30px;z-index:-1;margin:0 0 0 -50vw;background-attachment:fixed}#et-fb-app .et_pb_section.popup:before{content:"#" attr(id);position:absolute;top:0;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%);background:#666;padding:0 8px;color:#fff;font-size:12px;line-height:26px;font-weight:700;opacity:.5;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s;bottom:auto;right:auto;z-index:20;border-radius:3px 3px 0 0}#et-fb-app .et_pb_section.popup:hover:before{background:#2b87da;opacity:1}.et_fb_hidden_header #et-fb-app .et_pb_section.popup:after{width:100vw}html.et-bfb-html.et-fb-preview--desktop>body.single-divi-area.et-bfb:not(.wp-admin) #et_pb_root>.et-fb-post-content,html.et-bfb-html.et-fb-preview--phone>body.single-divi-area.et-bfb:not(.wp-admin) #et_pb_root>.et-fb-post-content,html.et-bfb-html.et-fb-preview--tablet>body.single-divi-area.et-bfb:not(.wp-admin) #et_pb_root>.et-fb-post-content,html.et-bfb-html.et-fb-preview--zoom>body.single-divi-area.et-bfb:not(.wp-admin) #et_pb_root>.et-fb-post-content{background:hsla(0,0%,100%,.6);-webkit-box-shadow:0 5px 12px rgba(43,135,218,.2);box-shadow:0 5px 12px rgba(43,135,218,.2);margin-left:10px;margin-right:10px;margin-top:10px}.et-bfb-html .single-divi-area{background:none!important}.et-fb-post-content{position:relative}.et-fb-post-content>.da-close{position:absolute;right:0;top:0;display:block;-webkit-box-sizing:content-box;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;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s;pointer-events:all;z-index:100}.et-fb-post-content>.da-close:active,.et-fb-post-content>.da-close:focus,.et-fb-post-content>.da-close:hover{opacity:1;-webkit-transform:scale(1.1);transform:scale(1.1)}.et-fb-post-content[data-da-color=light]>.da-close{color:#333;background:hsla(0,0%,100%,.13333333333333333);-webkit-box-shadow:0 0 3px 1px rgba(0,0,0,.03137254901960784);box-shadow:0 0 3px 1px rgba(0,0,0,.03137254901960784)}.et-fb-post-content[data-da-color=light]>.da-close:active,.et-fb-post-content[data-da-color=light]>.da-close:focus,.et-fb-post-content[data-da-color=light]>.da-close:hover{color:#000;background:#fff;-webkit-box-shadow:0 0 4px 0 rgba(0,0,0,.13333333333333333),0 0 3px 1px rgba(0,0,0,.06666666666666667);box-shadow:0 0 4px 0 rgba(0,0,0,.13333333333333333),0 0 3px 1px rgba(0,0,0,.06666666666666667)}.et-fb-post-content[data-da-color=dark]>.da-close{color:#eee;background:rgba(0,0,0,.13333333333333333);-webkit-box-shadow:0 0 0 1px hsla(0,0%,100%,.03137254901960784);box-shadow:0 0 0 1px hsla(0,0%,100%,.03137254901960784);text-shadow:0 0 1px #000,0 0 3px rgba(0,0,0,.6666666666666666)}.et-fb-post-content[data-da-color=dark]>.da-close:active,.et-fb-post-content[data-da-color=dark]>.da-close:focus,.et-fb-post-content[data-da-color=dark]>.da-close:hover{color:#fff;background:#2b2b2b;-webkit-box-shadow:0 0 1px 1px hsla(0,0%,100%,.2);box-shadow:0 0 1px 1px hsla(0,0%,100%,.2)}.et-fb-post-content[data-da-close-bg=none]>.da-close,.et-fb-post-content[data-da-close-bg=none]>.da-close:active,.et-fb-post-content[data-da-close-bg=none]>.da-close:focus,.et-fb-post-content[data-da-close-bg=none]>.da-close:hover{-webkit-box-shadow:none;box-shadow:none;background:transparent}.et-fb-preview--wireframe .et-fb-post-content>.da-close{display:none!important}
styles/front.min.css ADDED
@@ -0,0 +1 @@
 
1
+ [class*=et_pb_section_dap_]{width:100%}#et-boc .area-outer-wrap{position:fixed;z-index:100;pointer-events:none;max-width:100vw;max-height:100vh}#et-boc .area-outer-wrap.entry-content{padding:0}#et-boc .area-outer-wrap[data-da-type=popup]{min-width:320px;padding:10px}@media screen and (min-width:981px){#et-boc .area-outer-wrap[data-da-type=popup]{width:90%}}@media screen and (max-width:980px){#et-boc .area-outer-wrap[data-da-type=popup]{width:100%}}@media (min-width:981px){#et-boc .area-outer-wrap .et_pb_row.et_pb_equal_columns,#et-boc .area-outer-wrap .et_pb_row_inner.et_pb_equal_columns,#et-boc .area-outer-wrap .et_pb_section.et_pb_equal_columns>.et_pb_row{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto}}#et-boc .area-outer-wrap[data-da-type=inline]{position:relative;top:unset;bottom:unset;left:unset;right:unset;width:unset;height:unset;-webkit-transform:unset;transform:unset;max-width:unset;max-height:unset}#et-boc .area-outer-wrap>[data-da-area]{position:relative;margin:auto;pointer-events:all;-ms-scroll-chaining:none;overscroll-behavior:contain;height:100%;display:block!important;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}#et-boc .area-outer-wrap>[data-da-area]>.et_pb_section{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto}#et-boc .area-outer-wrap>[data-da-area] .clearfix:after,#et-boc .area-outer-wrap>[data-da-area] .et_pb_row:after,#et-boc .area-outer-wrap>[data-da-area] .et_pb_row_inner:after,#et-boc .area-outer-wrap>[data-da-area] .et_pb_slides:after{content:""}#et-boc .area-outer-wrap>[data-da-area] .et_pb_contact_select{-moz-appearance:textfield}#et-boc .area-outer-wrap.full-height[data-da-overflow=full-height]>[data-da-area],#et-boc .area-outer-wrap[data-da-overflow=clip]>[data-da-area]{overflow:auto}#et-boc .area-outer-wrap[data-da-overflow=show]>[data-da-area]{overflow:visible}#et-boc .area-outer-wrap[data-da-type=flyin].full-height,#et-boc .area-outer-wrap[data-da-type=popup].full-height{height:auto!important;top:0!important;bottom:0!important;margin-top:0!important}#et-boc .area-outer-wrap[data-da-type=flyin].full-height [data-da-area],#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=flyin].full-height[data-da-size=auto] .da-close-wrap,#et-boc .area-outer-wrap[data-da-type=popup].full-height[data-da-size=auto] .da-close-wrap{height:calc(100% - 20px)!important}#et-boc .area-outer-wrap[data-da-type=flyin].full-height:not([data-da-size=auto]) .da-close-wrap,#et-boc .area-outer-wrap[data-da-type=popup].full-height:not([data-da-size=auto]) .da-close-wrap{height:100%!important}#et-boc .area-outer-wrap[data-da-size=full-screen],#et-boc .area-outer-wrap[data-da-size=full-width]{width:100vw;min-width:100vw;max-width:100vw;padding-left:0;padding-right:0}#et-boc .area-outer-wrap[data-da-size=full-screen][data-da-position-v=bottom],#et-boc .area-outer-wrap[data-da-size=full-screen][data-da-position-v=top],#et-boc .area-outer-wrap[data-da-size=full-width][data-da-position-v=bottom],#et-boc .area-outer-wrap[data-da-size=full-width][data-da-position-v=top]{padding-top:0;padding-bottom:0}#et-boc .area-outer-wrap[data-da-size=full-screen] .et_pb_section,#et-boc .area-outer-wrap[data-da-size=full-width] .et_pb_section{width:100%;min-width:100%;max-width:none}#et-boc .area-outer-wrap[data-da-size=full-height],#et-boc .area-outer-wrap[data-da-size=full-screen]{height:100vh;min-height:100vh;max-height:100vh;padding-top:0;padding-bottom:0}#et-boc .area-outer-wrap[data-da-size=full-height][data-da-position-h=left],#et-boc .area-outer-wrap[data-da-size=full-height][data-da-position-h=right],#et-boc .area-outer-wrap[data-da-size=full-screen][data-da-position-h=left],#et-boc .area-outer-wrap[data-da-size=full-screen][data-da-position-h=right]{padding-left:0;padding-right:0}#et-boc .area-outer-wrap .da-close-wrap{display:block;position:absolute;left:50%;top:50%;z-index:100;text-align:right;-webkit-transition:opacity .6s .3s;-o-transition:opacity .6s .3s;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;-webkit-box-sizing:content-box;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;-webkit-transition:all .3s;-o-transition:all .3s;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%,.13333333333333333);-webkit-box-shadow:0 0 3px 1px rgba(0,0,0,.03137254901960784);box-shadow:0 0 3px 1px rgba(0,0,0,.03137254901960784)}#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;-webkit-box-shadow:0 0 4px 0 rgba(0,0,0,.13333333333333333),0 0 3px 1px rgba(0,0,0,.06666666666666667);box-shadow:0 0 4px 0 rgba(0,0,0,.13333333333333333),0 0 3px 1px rgba(0,0,0,.06666666666666667)}#et-boc .area-outer-wrap[data-da-color=dark] .da-close{color:#eee;background:rgba(0,0,0,.13333333333333333);-webkit-box-shadow:0 0 0 1px hsla(0,0%,100%,.03137254901960784);box-shadow:0 0 0 1px hsla(0,0%,100%,.03137254901960784);text-shadow:0 0 1px #000,0 0 3px rgba(0,0,0,.6666666666666666)}#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;-webkit-box-shadow:0 0 1px 1px hsla(0,0%,100%,.2);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{-webkit-box-shadow:none;box-shadow:none;background:transparent}#et-boc .area-outer-wrap[data-da-loader=yes] [data-da-area]{background-image:url(../images/spin.gif),-o-radial-gradient(center,circle,#fff 65%,hsla(0,0%,100%,0) 66%)!important;background-image:url(../images/spin.gif),radial-gradient(circle at center,#fff 65%,hsla(0,0%,100%,0) 66%)!important;background-size:32px 32px,48px 48px;background-repeat:no-repeat;background-position:50%}#et-boc .area-outer-wrap[data-da-shadow=yes] [data-da-area]{-webkit-box-shadow:0 3px 10px -1px rgba(0,0,0,.3),0 2px 50px 2px rgba(0,0,0,.2);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]{-webkit-box-shadow:none;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;-webkit-transition:-webkit-backdrop-filter 1s 1s;transition:-webkit-backdrop-filter 1s 1s;-o-transition:backdrop-filter 1s 1s;transition:backdrop-filter 1s 1s;transition:backdrop-filter 1s 1s,-webkit-backdrop-filter 1s 1s;-webkit-backdrop-filter:none;backdrop-filter:none}.da-overlay-visible{overflow:hidden}.da-overlay-visible .da-overlay{-webkit-backdrop-filter:saturate(180%) blur(5px);backdrop-filter:saturate(180%) blur(5px)}[data-area-hook]{display:none!important;visibility:hidden!important}.da-flyin-visible .mfp-bg,.da-popup-visible .mfp-bg{z-index:20000000}.da-flyin-visible .mfp-wrap,.da-popup-visible .mfp-wrap{z-index:20000001}