Version Description
Download this release
Release Info
Developer | stracker.phil |
Plugin | Popups for Divi |
Version | 2.2.5 |
Comparing to | |
See all releases |
Code changes from version 2.2.4 to 2.2.5
- changelog.txt +12 -0
- css/front.css +1 -1
- include/core/class-pfd-app.php +23 -6
- include/core/class-pfd-asset.php +82 -16
- include/core/class-pfd-component.php +1 -1
- include/core/class-pfd-editor.php +31 -25
- js/builder.js +1 -1
- js/front.js +1 -1
- plugin.php +2 -2
- readme.txt +16 -10
changelog.txt
CHANGED
@@ -1,3 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
= Version 2.2.4 =
|
2 |
* Improve: Area sizes are more accurate when using Divis responsive sizes.
|
3 |
* Improve: Images inside Popups are instantly loaded in Chrome (fixed a lazy-load bug).
|
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.
|
5 |
+
* Change: New JS API function `DiviAreaItem.isPrepared()` to check if an Area is fully initialized.
|
6 |
+
* Change: New JS filter to add custom initialization code - `pre_init_area`
|
7 |
+
* Change: New JS filter to dynamically change an Areas z-index - `apply_z_index`
|
8 |
+
* Change: New JS filter to adjust Area initialization - `area_preparation_time`
|
9 |
+
* Change: The JS API function `DiviAreaItem.getData()` does not require a parameter anymore.
|
10 |
+
* Fix: The z-index is correctly applied again.
|
11 |
+
* Fix: Improve the full-height calculation of Popups
|
12 |
+
|
13 |
= Version 2.2.4 =
|
14 |
* Improve: Area sizes are more accurate when using Divis responsive sizes.
|
15 |
* Improve: Images inside Popups are instantly loaded in Chrome (fixed a lazy-load bug).
|
css/front.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
[class*=et_pb_section_dap_]{width:100%}#et-boc .area-outer-wrap{position:fixed;z-index:100;pointer-events:none;max-width:100vw;max-height:100vh}#et-boc .area-outer-wrap.entry-content{padding:0}#et-boc .area-outer-wrap[data-da-type=popup]{min-width:320px;padding:10px}@media screen and (min-width:981px){#et-boc .area-outer-wrap[data-da-type=popup]{width:90%}}@media screen and (max-width:980px){#et-boc .area-outer-wrap[data-da-type=popup]{width:100%}}@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
|
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}
|
include/core/class-pfd-app.php
CHANGED
@@ -21,12 +21,6 @@ class PFD_App extends PFD_Component {
|
|
21 |
* @since 2.0.4 function renamed from __construct() to setup().
|
22 |
*/
|
23 |
public function setup() {
|
24 |
-
load_plugin_textdomain(
|
25 |
-
'popups-for-divi',
|
26 |
-
false,
|
27 |
-
dirname( DIVI_POPUP_PLUGIN ) . '/lang/'
|
28 |
-
);
|
29 |
-
|
30 |
// Do not load the JS library, when the Pro version is active.
|
31 |
if ( defined( 'DIVI_AREAS_PLUGIN' ) ) {
|
32 |
return;
|
@@ -54,6 +48,11 @@ class PFD_App extends PFD_Component {
|
|
54 |
* @return void
|
55 |
*/
|
56 |
public function setup_hooks() {
|
|
|
|
|
|
|
|
|
|
|
57 |
add_filter(
|
58 |
'plugin_action_links_' . DIVI_POPUP_PLUGIN,
|
59 |
[ $this, 'plugin_add_settings_link' ]
|
@@ -72,6 +71,24 @@ class PFD_App extends PFD_Component {
|
|
72 |
);
|
73 |
}
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
/**
|
76 |
* Display a custom link in the plugins list
|
77 |
*
|
21 |
* @since 2.0.4 function renamed from __construct() to setup().
|
22 |
*/
|
23 |
public function setup() {
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
// Do not load the JS library, when the Pro version is active.
|
25 |
if ( defined( 'DIVI_AREAS_PLUGIN' ) ) {
|
26 |
return;
|
48 |
* @return void
|
49 |
*/
|
50 |
public function setup_hooks() {
|
51 |
+
add_filter(
|
52 |
+
'init',
|
53 |
+
[ $this, 'translate_plugin' ]
|
54 |
+
);
|
55 |
+
|
56 |
add_filter(
|
57 |
'plugin_action_links_' . DIVI_POPUP_PLUGIN,
|
58 |
[ $this, 'plugin_add_settings_link' ]
|
71 |
);
|
72 |
}
|
73 |
|
74 |
+
/**
|
75 |
+
* Load plugin translations.
|
76 |
+
*
|
77 |
+
* Note: Loading the plugin translations should not be done during plugins_loaded
|
78 |
+
* action since that is too early and prevent other language related plugins from
|
79 |
+
* correctly hooking up with load_textdomain() function. Calling
|
80 |
+
* load_plugin_textdomain() should be delayed until init action.
|
81 |
+
*
|
82 |
+
* @since 2.2.5
|
83 |
+
*/
|
84 |
+
public function translate_plugin() {
|
85 |
+
load_plugin_textdomain(
|
86 |
+
'popups-for-divi',
|
87 |
+
false,
|
88 |
+
dirname( DIVI_POPUP_PLUGIN ) . '/lang/'
|
89 |
+
);
|
90 |
+
}
|
91 |
+
|
92 |
/**
|
93 |
* Display a custom link in the plugins list
|
94 |
*
|
include/core/class-pfd-asset.php
CHANGED
@@ -44,10 +44,10 @@ class PFD_Asset extends PFD_Component {
|
|
44 |
public function enqueue_js_library() {
|
45 |
global $wp_query;
|
46 |
|
47 |
-
if (
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
return;
|
52 |
}
|
53 |
|
@@ -60,6 +60,15 @@ class PFD_Asset extends PFD_Component {
|
|
60 |
return;
|
61 |
}
|
62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
$cache_version = DIVI_POPUP_VERSION;
|
64 |
|
65 |
if ( function_exists( 'et_fb_is_enabled' ) ) {
|
@@ -372,17 +381,7 @@ class PFD_Asset extends PFD_Component {
|
|
372 |
*/
|
373 |
$js_data['sys'] = apply_filters( 'divi_areas_debug_infos', [] );
|
374 |
|
375 |
-
|
376 |
-
$base_name = 'builder';
|
377 |
-
$inline_css = '';
|
378 |
-
} else {
|
379 |
-
$base_name = 'front';
|
380 |
-
$inline_css = sprintf(
|
381 |
-
'%s{display:none}',
|
382 |
-
$js_data['popupSelector']
|
383 |
-
);
|
384 |
-
}
|
385 |
-
|
386 |
if ( $js_data['debug'] || ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ) {
|
387 |
$cache_version .= '-' . time();
|
388 |
}
|
@@ -409,7 +408,12 @@ class PFD_Asset extends PFD_Component {
|
|
409 |
wp_enqueue_script( 'js-divi-area' );
|
410 |
wp_enqueue_style( 'css-divi-area' );
|
411 |
|
412 |
-
if ( $
|
|
|
|
|
|
|
|
|
|
|
413 |
wp_add_inline_style( 'css-divi-area', $inline_css );
|
414 |
}
|
415 |
}
|
@@ -570,4 +574,66 @@ class PFD_Asset extends PFD_Component {
|
|
570 |
|
571 |
return $infos;
|
572 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
573 |
}
|
44 |
public function enqueue_js_library() {
|
45 |
global $wp_query;
|
46 |
|
47 |
+
if (
|
48 |
+
( defined( 'DOING_CRON' ) && DOING_CRON )
|
49 |
+
|| ( defined( 'DOING_AJAX' ) && DOING_AJAX )
|
50 |
+
) {
|
51 |
return;
|
52 |
}
|
53 |
|
60 |
return;
|
61 |
}
|
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.
|
69 |
+
return;
|
70 |
+
}
|
71 |
+
|
72 |
$cache_version = DIVI_POPUP_VERSION;
|
73 |
|
74 |
if ( function_exists( 'et_fb_is_enabled' ) ) {
|
381 |
*/
|
382 |
$js_data['sys'] = apply_filters( 'divi_areas_debug_infos', [] );
|
383 |
|
384 |
+
// Force reload of the JS API assets during debugging.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
385 |
if ( $js_data['debug'] || ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ) {
|
386 |
$cache_version .= '-' . time();
|
387 |
}
|
408 |
wp_enqueue_script( 'js-divi-area' );
|
409 |
wp_enqueue_style( 'css-divi-area' );
|
410 |
|
411 |
+
if ( 'front' === $base_name ) {
|
412 |
+
$inline_css = sprintf(
|
413 |
+
'%s{display:none}',
|
414 |
+
$js_data['popupSelector']
|
415 |
+
);
|
416 |
+
|
417 |
wp_add_inline_style( 'css-divi-area', $inline_css );
|
418 |
}
|
419 |
}
|
574 |
|
575 |
return $infos;
|
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 ) {
|
596 |
+
$is_missing_file = false;
|
597 |
+
|
598 |
+
if ( is_404() ) {
|
599 |
+
if ( isset( $_SERVER['HTTP_SEC_FETCH_DEST'] ) ) {
|
600 |
+
/*
|
601 |
+
* When a Sec-Fetch-Dest header is present, we use that
|
602 |
+
* information to determine how this resource should be used. Only
|
603 |
+
* documents and embeds should load JS sources.
|
604 |
+
*/
|
605 |
+
$is_missing_file = ! in_array(
|
606 |
+
$_SERVER['HTTP_SEC_FETCH_DEST'],
|
607 |
+
[ 'document', 'embed', 'nested-document' ],
|
608 |
+
true
|
609 |
+
);
|
610 |
+
} elseif ( ! empty( $_SERVER['REQUEST_URI'] ) && ! wp_get_raw_referer() ) {
|
611 |
+
/*
|
612 |
+
* If no Sec-Fetch-Dest header is present, we evaluate the
|
613 |
+
* requested URI to determine, if it looks like a page resource.
|
614 |
+
* Of course, we only do this when no referer is present, as a
|
615 |
+
* referer always indicates a top-level document.
|
616 |
+
*/
|
617 |
+
$requested_url = esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) );
|
618 |
+
$questionmark = strpos( $requested_url, '?' );
|
619 |
+
|
620 |
+
if ( $questionmark > 1 ) {
|
621 |
+
$requested_url = substr( $requested_url, 0, $questionmark );
|
622 |
+
}
|
623 |
+
|
624 |
+
/**
|
625 |
+
* If the requested URL starts with "/wp-content/", or if it ends
|
626 |
+
* with a dot followed by 2-4 letters (like .js, .map, .json,
|
627 |
+
* .svg) then we're pretty sure that the request tries to find a
|
628 |
+
* missing page resource.
|
629 |
+
*/
|
630 |
+
if ( preg_match( '!(^/wp-content/|\.[a-z]{2,4}$)!i', $requested_url ) ) {
|
631 |
+
$is_missing_file = true;
|
632 |
+
}
|
633 |
+
}
|
634 |
+
}
|
635 |
+
}
|
636 |
+
|
637 |
+
return $is_missing_file;
|
638 |
+
}
|
639 |
}
|
include/core/class-pfd-component.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
* When this file needs to be updated, change the version number and propagate all
|
14 |
* changes to the other plugins!
|
15 |
*
|
16 |
-
* @version 2.0
|
17 |
*/
|
18 |
class PFD_Component {
|
19 |
/**
|
13 |
* When this file needs to be updated, change the version number and propagate all
|
14 |
* changes to the other plugins!
|
15 |
*
|
16 |
+
* @version 2.1.0
|
17 |
*/
|
18 |
class PFD_Component {
|
19 |
/**
|
include/core/class-pfd-editor.php
CHANGED
@@ -52,7 +52,6 @@ class PFD_Editor extends PFD_Component {
|
|
52 |
[ $this, 'add_section_config' ]
|
53 |
);
|
54 |
|
55 |
-
// Todo: This filter is deprecated. Find a better way!
|
56 |
add_filter(
|
57 |
'et_builder_main_tabs',
|
58 |
[ $this, 'add_tab' ],
|
@@ -82,7 +81,7 @@ class PFD_Editor extends PFD_Component {
|
|
82 |
'on' => esc_html__( 'Yes', 'divi-popup' ),
|
83 |
],
|
84 |
'default' => 'off',
|
85 |
-
'description' => esc_html__( 'Turn this section into a
|
86 |
'tab_slug' => 'da',
|
87 |
'toggle_slug' => 'da_general',
|
88 |
];
|
@@ -90,7 +89,7 @@ class PFD_Editor extends PFD_Component {
|
|
90 |
'label' => esc_html__( 'Popup ID', 'divi-popup' ),
|
91 |
'type' => 'text',
|
92 |
'option_category' => 'configuration',
|
93 |
-
'description' => esc_html__( 'Assign a unique ID to the Popup. You can display this Popup by using this name in an anchor link, like "#slug".', 'divi-popup' ),
|
94 |
'tab_slug' => 'da',
|
95 |
'toggle_slug' => 'da_general',
|
96 |
'show_if' => [
|
@@ -341,22 +340,29 @@ class PFD_Editor extends PFD_Component {
|
|
341 |
*/
|
342 |
public function et_fb_ajax_save() {
|
343 |
/**
|
344 |
-
* We disable phpcs for the following block, so we can use the identical
|
345 |
-
*
|
346 |
*
|
347 |
* @see et_fb_ajax_save() in themes/Divi/includes/builder/functions.php
|
348 |
*/
|
349 |
-
// phpcs:disable
|
350 |
if (
|
351 |
! isset( $_POST['et_fb_save_nonce'] ) ||
|
352 |
-
! wp_verify_nonce( $_POST['et_fb_save_nonce'], 'et_fb_save_nonce' )
|
353 |
) {
|
354 |
return;
|
355 |
}
|
356 |
|
357 |
-
$post_id = absint( $_POST['post_id'] );
|
358 |
|
359 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
360 |
return;
|
361 |
}
|
362 |
|
@@ -379,6 +385,22 @@ class PFD_Editor extends PFD_Component {
|
|
379 |
'da_disable_devices' => [ 'off', 'off', 'off' ],
|
380 |
];
|
381 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
382 |
foreach ( $shortcode_data as $id => $item ) {
|
383 |
$type = sanitize_text_field( $item['type'] );
|
384 |
if ( 'et_pb_section' !== $type ) {
|
@@ -443,22 +465,6 @@ class PFD_Editor extends PFD_Component {
|
|
443 |
}
|
444 |
}
|
445 |
|
446 |
-
// Remove all functional classes from the section.
|
447 |
-
$special_classes = [
|
448 |
-
'popup',
|
449 |
-
'on-exit',
|
450 |
-
'no-close',
|
451 |
-
'close-alt',
|
452 |
-
'dark',
|
453 |
-
'is-modal',
|
454 |
-
'single',
|
455 |
-
'with-loader',
|
456 |
-
'no-shadow',
|
457 |
-
'not-mobile',
|
458 |
-
'not-tablet',
|
459 |
-
'not-desktop',
|
460 |
-
];
|
461 |
-
|
462 |
$classes = array_diff( $classes, $special_classes );
|
463 |
|
464 |
// Finally set the class to match all attributes.
|
52 |
[ $this, 'add_section_config' ]
|
53 |
);
|
54 |
|
|
|
55 |
add_filter(
|
56 |
'et_builder_main_tabs',
|
57 |
[ $this, 'add_tab' ],
|
81 |
'on' => esc_html__( 'Yes', 'divi-popup' ),
|
82 |
],
|
83 |
'default' => 'off',
|
84 |
+
'description' => esc_html__( 'Turn this section into an On-Page Popup. Note, that this Popup is available on this page only. To create a global Popup, place an On-Page Popup into the theme Footer (or Header) using Divis Theme Builder.', 'divi-popup' ),
|
85 |
'tab_slug' => 'da',
|
86 |
'toggle_slug' => 'da_general',
|
87 |
];
|
89 |
'label' => esc_html__( 'Popup ID', 'divi-popup' ),
|
90 |
'type' => 'text',
|
91 |
'option_category' => 'configuration',
|
92 |
+
'description' => esc_html__( 'Assign a unique ID to the Popup. You can display this Popup by using this name in an anchor link, like "#slug". The Popup ID is case-sensitive and we recommend to always use a lower-case ID', 'divi-popup' ),
|
93 |
'tab_slug' => 'da',
|
94 |
'toggle_slug' => 'da_general',
|
95 |
'show_if' => [
|
340 |
*/
|
341 |
public function et_fb_ajax_save() {
|
342 |
/**
|
343 |
+
* We disable phpcs for the following block, so we can use the identical code
|
344 |
+
* that is used inside the Divi theme.
|
345 |
*
|
346 |
* @see et_fb_ajax_save() in themes/Divi/includes/builder/functions.php
|
347 |
*/
|
|
|
348 |
if (
|
349 |
! isset( $_POST['et_fb_save_nonce'] ) ||
|
350 |
+
! wp_verify_nonce( sanitize_key( $_POST['et_fb_save_nonce'] ), 'et_fb_save_nonce' )
|
351 |
) {
|
352 |
return;
|
353 |
}
|
354 |
|
355 |
+
$post_id = isset( $_POST['post_id'] ) ? absint( $_POST['post_id'] ) : 0;
|
356 |
|
357 |
+
// phpcs:disable WordPress.Security.ValidatedSanitizedInput.MissingUnslash
|
358 |
+
// phpcs:disable WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
|
359 |
+
// phpcs:disable ET.Sniffs.ValidatedSanitizedInput.InputNotSanitized
|
360 |
+
if (
|
361 |
+
! isset( $_POST['options'] )
|
362 |
+
|| ! isset( $_POST['options']['status'] )
|
363 |
+
|| ! isset( $_POST['modules'] )
|
364 |
+
|| ! et_fb_current_user_can_save( $post_id, $_POST['options']['status'] )
|
365 |
+
) {
|
366 |
return;
|
367 |
}
|
368 |
|
385 |
'da_disable_devices' => [ 'off', 'off', 'off' ],
|
386 |
];
|
387 |
|
388 |
+
// Remove all functional classes from the section.
|
389 |
+
$special_classes = [
|
390 |
+
'popup',
|
391 |
+
'on-exit',
|
392 |
+
'no-close',
|
393 |
+
'close-alt',
|
394 |
+
'dark',
|
395 |
+
'is-modal',
|
396 |
+
'single',
|
397 |
+
'with-loader',
|
398 |
+
'no-shadow',
|
399 |
+
'not-mobile',
|
400 |
+
'not-tablet',
|
401 |
+
'not-desktop',
|
402 |
+
];
|
403 |
+
|
404 |
foreach ( $shortcode_data as $id => $item ) {
|
405 |
$type = sanitize_text_field( $item['type'] );
|
406 |
if ( 'et_pb_section' !== $type ) {
|
465 |
}
|
466 |
}
|
467 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
468 |
$classes = array_diff( $classes, $special_classes );
|
469 |
|
470 |
// Finally set the class to match all attributes.
|
js/builder.js
CHANGED
@@ -1 +1 @@
|
|
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,
|
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
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){"use strict";var e=Object.freeze({__proto__:null});!function(e){window.DiviArea=window.DiviArea||{},DiviArea.Utils=DiviArea.Utils||{};var i=!1,t=null,a=null,r={};function o(i,t,a){var r,o;for(Array.isArray(i)&&(i=e(i).map(e.fn.toArray)),i=e(i),t=t.split(/\s+/),r=0;r<i.length;r++)for(o=0;o<t.length;o++)a(i[r],t[o])}DiviArea.Utils.getOption=function(e){var i=DiviAreaConfig[e],t=DiviArea.Utils.sanitizeHookName(e);return DiviArea.Hooks.silent().applyFilters("get_option_"+t,i)},DiviArea.Utils.toBool=function(e,i){return void 0===i&&(i=!0),null==e?!!i:!0===e||!1===e?e:("string"==typeof e&&(e=e.toLowerCase()),0!==e&&"0"!==e&&"n"!==e[0]&&"f"!==e[0]&&"off"!==e&&(1===e||"1"===e||"y"===e[0]||"t"===e[0]||"on"===e||!!i))},DiviArea.Utils.toMilliseconds=function(e){var i,t=parseFloat(e,10),a=e.match(/m?s/);switch(a&&(a=a[0]),a){case"s":i=1e3*t;break;case"ms":i=t;break;default:i=0}return i},DiviArea.Utils.sanitizeHookName=function(e){return e.toLowerCase().replace(/-/g,"_").replace(/[^a-z0-9_]+/,"")},DiviArea.Utils.showOnViewport=function(i){var t=e(window).innerWidth();return!i||!!(t<768?Array.isArray(i)?i[2]:i.getData("onmobile"):t<981?Array.isArray(i)?i[1]:i.getData("ontablet"):Array.isArray(i)?i[0]:i.getData("ondesktop"))},DiviArea.Utils.isPosition=function(e,i){var t=e.offsetParent();return"HTML"!==t.prop("tagName")&&(i===t.css("position")||DiviArea.Utils.isPosition(t,i))},DiviArea.Utils.setLocalData=function(e,i,t){(!t||isNaN(t)||t<1)&&(t=525600);var a=DiviArea.Utils.sanitizeHookName(e);if(i=DiviArea.applyFilters("set_data",i,e),i=DiviArea.applyFilters("set_data_"+a,i,e),t=DiviArea.applyFilters("set_data_expire",t,e,i),t=DiviArea.applyFilters("set_data_expire_"+a,t,e,i),!(!1===i||t<=0))if(window.localStorage){var r=new Date;r=r.setMinutes(r.getMinutes()+t),localStorage.setItem("_da_"+e,r+":"+i)}else DiviArea.Utils.setCookie("_da_"+e,i,t)},DiviArea.Utils.getLocalData=function(e){var i=!1;if(window.localStorage){var t=localStorage.getItem("_da_"+e);if(t){var a=t.split(":"),r=parseInt(a.shift()),o=a.join(":");r>new Date?i=o:localStorage.removeItem("_da_"+e)}}else i=DiviArea.Utils.getCookie("_da_"+e);var n=DiviArea.Utils.sanitizeHookName(e);return i=DiviArea.applyFilters("get_data",i,e),i=DiviArea.applyFilters("get_data_"+n,i,e)},DiviArea.Utils.setCookie=function(e,i,t){var a=escape(i);if(t){var r=new Date;r.setMinutes(r.getMinutes()+t),a+="; expires="+r.toUTCString()}document.cookie=e+"="+a+"; path=/"},DiviArea.Utils.getCookie=function(e){var i,t,a,r=document.cookie.split(";");for(i=0;i<r.length;i++)if(t=r[i].substr(0,r[i].indexOf("=")),a=r[i].substr(r[i].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))===e)return unescape(a);return!1},DiviArea.Utils.getUrlParam=function(e){if(null===a){a={};var i=window.location.search.slice(1);if(i)for(var t=(i=i.split("#")[0]).split("&"),r=0;r<t.length;r++){var o=t[r].split("="),n=o[0],s=void 0===o[1]||o[1];if(n=n.toLowerCase(),"string"==typeof s&&(s=s.toLowerCase()),n.match(/\[(\d+)?\]$/)){var l=n.replace(/\[(\d+)?\]/,"");if(a[l]||(a[l]=[]),n.match(/\[\d+\]$/)){var d=/\[(\d+)\]/.exec(n)[1];a[l][d]=s}else a[l].push(s)}else a[n]?a[n]&&"string"==typeof a[n]?(a[n]=[a[n]],a[n].push(s)):a[n].push(s):a[n]=s}}return e?a[e]:Object.assign({},a)},DiviArea.Utils.getWindow=function(i){return e.isWindow(i)?i:9===i.nodeType&&(i.defaultView||i.parentWindow)},DiviArea.Utils.getClientRect=function(i){var t={top:0,left:0,width:0,height:0,bottom:0,right:0};if(0===i.length)return t;var a,r=(i=i[0]).ownerDocument,o=r.documentElement;if(!e.contains(o,i))return t;if(e.support.getBoundingClientRect){try{a=i.getBoundingClientRect()}catch(e){}if(!a)return t;if(a.right===a.left&&a.top===a.bottom)return t;var n=DiviArea.Utils.getWindow(r);t.top=a.top+(n.pageYOffset||o.scrollTop)-(o.clientTop||0),t.left=a.left+(n.pageXOffset||o.scrollLeft)-(o.clientLeft||0),t.width=a.right-a.left,t.height=a.bottom-a.top}else{if("none"===i.css("display"))return t;(t=i.offset()).width=i.outerWidth(),t.height=i.outerHeight()}return t.bottom=t.top+t.height,t.right=t.left+t.width,t},DiviArea.Utils.bindPassiveEvent=function(e,t,a){var r;r=!!i&&{passive:!1,capture:!1},o(e,t,(function(e,i){e.addEventListener(i,a,r)}))},DiviArea.Utils.unbindPassiveEvent=function(e,t,a){var r;r=!!i&&{passive:!1,capture:!1},o(e,t,(function(e,i){e.removeEventListener(i,a,r)}))},DiviArea.Utils.init=function(){var t={popupSelector:".et_pb_section.popup",fullHeightClass:"full-height",openPopupClass:"da-overlay-visible",overlayClass:"da-overlay",modalIndicatorClass:"is-modal",blockingIndicatorClass:"is-blocking",exitIndicatorClass:"on-exit",hoverTriggerClass:"on-hover",clickTriggerClass:"on-click",activePopupClass:"is-open",noCloseClass:"no-close",altCloseClass:"close-alt",notMobileClass:"not-mobile",notTabletClass:"not-tablet",notDesktopClass:"not-desktop",withCloseClass:"with-close",withLoaderClass:"with-loader",singletonClass:"single",darkModeClass:"dark",noShadowClass:"with-shadow",closeButtonClass:"da-close",popupWrapperClass:"area-outer-wrap",defaultShowCloseButton:!0,idAttrib:"data-popup",triggerClassPrefix:"show-popup-",baseContext:"body",triggerCloseClass:"close",zIndex:1e6,onExitDelay:2e3,animateSpeed:300,debug:!1,debugVerbose:!1,initializeOnEvent:"et_pb_after_init_modules"},a="";if(function(){try{var e={get passive(){return i=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){i=!1}}(),e.support.getBoundingClientRect="getBoundingClientRect"in document.documentElement,window.DiviAreaConfig||(window.DiviAreaConfig=t),window.DiviPopupData)for(a in DiviPopupData)DiviPopupData.hasOwnProperty(a)&&(DiviAreaConfig[a]=DiviPopupData[a]);for(a in t)void 0===DiviAreaConfig[a]&&(DiviAreaConfig[a]=t[a]);for(a in DiviAreaConfig)DiviAreaConfig[a].replace&&(DiviAreaConfig[a]=DiviAreaConfig[a].replace(/^[\s\xA0]+|[\s\xA0]+$/g,""));DiviAreaConfig.zIndex=parseInt(DiviAreaConfig.zIndex),DiviAreaConfig.onExitDelay=parseInt(DiviAreaConfig.onExitDelay),DiviAreaConfig.animateSpeed=parseInt(DiviAreaConfig.animateSpeed),DiviAreaConfig.debug=!!DiviAreaConfig.debug,DiviAreaConfig.defaultShowCloseButton=!!DiviAreaConfig.defaultShowCloseButton,(!DiviAreaConfig.triggerClassPrefix||DiviAreaConfig.triggerClassPrefix.length<3)&&(DiviAreaConfig.triggerClassPrefix=!1),"body"===DiviAreaConfig.baseContext&&(1===e("#et_builder_outer_content").length?(DiviAreaConfig.baseContext="#et_builder_outer_content",DiviArea.Debug.info("🎚 Divi plugin detected.","Inject Areas into #et_builder_outer_content")):1===e("body.et_divi_theme #page-container").length?(DiviAreaConfig.baseContext="#page-container",DiviArea.Debug.info("🎚 Divi theme detected.","Inject Areas into #page-container")):1===e(".et-db #et-boc").length&&(DiviAreaConfig.baseContext=".et-db #et-boc",DiviArea.Debug.info("🎚 Divi theme detected.","Inject Areas into #et-boc"))),"body"===DiviAreaConfig.baseContext||e(DiviAreaConfig.baseContext).length||(DiviAreaConfig.baseContext="body",DiviArea.Debug.info("🎚 Invalid baseContext given.","Inject Areas into body instead.")),window.DiviPopupData=window.DiviAreaConfig,window.DiviAreaConfig=DiviArea.applyFilters("init_options",DiviAreaConfig)},DiviArea.Utils.initErrorLogging=function(e){var i=function(e,i,t){if(!e[i]||!e[i].__dm_orig__){var a=e[i],r=void 0;for(var o in e[i]=function(){var e=!1;try{e=t.apply(this,arguments)}finally{!e&&a&&(r=a.apply(this,arguments))}return r},a)a.hasOwnProperty(o)&&(e[i][o]=a[o]);e[i].__dm_orig__=a}},t=function(){var e=arguments,i=!1;if(arguments[0]&&"[DiviAreas]"===arguments[0])return!1;for(var t=0;t<arguments.length;t++)if("object"==typeof e[t]&&e[t]&&e[t].message&&e[t].stack){i=e[t];break}if(i){var a=[],r=i.stack.toString().split("\n");if(a.push("divimode.com Anonymized Error Report"),a.push("-".repeat(30)),a.push(i.name),i.message?a.push(i.message):a.push("-"),a.push(""),r&&r.length>1)for(var o=0;o<r.length;o++){var n=r[o];if(n.match(/(\/wp-includes\/|\/jquery\.js)/))break;n.match(/\.js/)&&(n=(n=(n=n.replace(/^\s+|\s+$/g,"")).replace(/https?:.*?\/wp-content/g,"")).replace(/\.js\?[\w=&_\-\.]*/g,".js"),a.push(n))}if(DiviArea.info&&(a.push(""),a.push("js api:"+DiviArea.info)),window.DiviAreaConfig&&DiviAreaConfig.sys&&DiviAreaConfig.sys.plugin)for(var s in a.push(""),DiviAreaConfig.sys)try{a.push(s+": "+DiviAreaConfig.sys[s])}catch(e){}a.push("-".repeat(30));var l=console.error.__dm_orig__||console.error;return console.log(""),l("✋ "+a.join("\n| ")),console.log(""),!0}return!1};i(e,"onerror",t),i(e.console,"error",t)},DiviArea.Utils.toPixel=function(e,i,a){if(t||((t={}).PPI=void 0,t.getPPI=function(){return t.PPI=t.PPI||t.getSizeBrutal("in",document.body),t.PPI},t.parseUnit=function(e){var i=[0,""];e=String(e);var t=parseFloat(e,10);return i[0]=t,i[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",i},t.getPropertyInPx=function(e,i){var a=t.parseUnit(getComputedStyle(e).getPropertyValue(i));return a[0]*t.conversionFactor(a[1],e)},t.getSizeBrutal=function(e,i){var a=document.createElement("div");a.style.height="128"+e,i.appendChild(a);var r=t.getPropertyInPx(a,"height")/128;return i.removeChild(a),r},t.conversionFactor=function(e,i){switch(e=(e+""||"px").trim().toLowerCase()){case"%":return i.clientHeight/100;case"ch":case"ex":return t.getSizeBrutal(e,i);case"em":return t.getPropertyInPx(i,"font-size");case"rem":return t.getPropertyInPx(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return t.getPPI();case"cm":return t.getPPI()/2.54;case"mm":return t.getPPI()/25.4;case"pt":return t.getPPI()/72;case"pc":return t.getPPI()/6;case"px":return 1}return 0}),!e)return 0;if((a=a||document.body)!==window&&a!==document||(a=document.body),!isNaN(e)){if(i){var r=t.conversionFactor(i,a);return"number"==typeof r?e*r:0}return e}return 0},DiviArea.Utils.getStyleDef=function(e,i,t){var a="",o=window.innerWidth;if("string"==typeof e){var n=e.split(" "),s=DiviArea.getArea(n.shift());if(!s)return a;e=s.get(n.join(" "))[0]}if(r[o]||(r[o]=[],Array.from(document.styleSheets).map((function(e){try{for(var i=0;i<e.rules.length;i++){var t=e.rules[i];if(t.media){if(window.matchMedia(t.conditionText).matches)for(var a=0;a<t.cssRules.length;a++)r[o].push(t.cssRules[a])}else r[o].push(t)}}catch(e){}})),r[o].reverse()),e.style&&""!==e.style[i])a=e.style[i];else{var l=!1;r[o].some((function(r){var o=!1;try{o=e.matches(r.selectorText)}catch(e){}if(o&&t&&t.length&&-1!==t.indexOf(r.selectorText))return!1;o&&Array.from(r.style).some((function(e){return e===i}))&&(r.specificity||(r.specificity=DiviArea.Utils.getCssSpecificity(r.selectorText,r.style[i])),DiviArea.Utils.compareCssSpecificity(r.specificity,l)>0&&(l=r.specificity,a=r.style[i]))}))}return a},DiviArea.Utils.getCssSpecificity=function(e,i){var t=e.split(",");if(t.length>1){for(var a,r=[],o=0;o<t.length;o++)a=DiviArea.Utils.getCssSpecificity(t[o]),DiviArea.Utils.compareCssSpecificity(a,r)>0&&(r=a);return r}var n,s,l,d=e,c={a:0,b:0,c:0};return s="string"==typeof i&&i.indexOf("!important")>0,n=function(e,i){var t,a,r,o,n;if(e.test(d))for(a=0,r=(t=d.match(e)).length;a<r;a+=1)c[i]+=1,o=t[a],d.indexOf(o),n=o.length,d=d.replace(o,Array(n+1).join(" "))},(l=function(e){var i,t,a,r;if(e.test(d))for(t=0,a=(i=d.match(e)).length;t<a;t+=1)r=i[t],d=d.replace(r,Array(r.length+1).join("A"))})(/\\[0-9A-Fa-f]{6}\s?/g),l(/\\[0-9A-Fa-f]{1,5}\s/g),l(/\\./g),function(){var e,i,t,a,r=/{[^]*/gm;if(r.test(d))for(i=0,t=(e=d.match(r)).length;i<t;i+=1)a=e[i],d=d.replace(a,Array(a.length+1).join(" "))}(),n(/(\[[^\]]+\])/g,"b"),n(/(#[^\#\s\+>~\.\[:\)]+)/g,"a"),n(/(\.[^\s\+>~\.\[:\)]+)/g,"b"),n(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),n(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,"b"),n(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,"b"),d=(d=(d=(d=(d=(d=d.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).replace(/:not/g," ")).replace(/:local/g," ")).replace(/:global/g," ")).replace(/[\(\)]/g," "),n(/([^\s\+>~\.\[:]+)/g,"c"),[s?1:0,c.a,c.b,c.c]},DiviArea.Utils.compareCssSpecificity=function(e,i){for(var t=0;t<4;t+=1){var a=parseInt(isNaN(e[t])?0:e[t]),r=parseInt(isNaN(i[t])?0:i[t]);if(a<r)return-1;if(a>r)return 1}return 0}}(window.jQuery),window.DiviAreaItem=function(e,i){var t=jQuery,a=window.ResizeObserver||window.WebKitResizeObserver,r=t(e),o={},n={hideclose:!1,showclose:!0,notmobile:!1,onmobile:!0,nottablet:!1,ontablet:!0,notdesktop:!1,ondesktop:!0,closealt:!1,notmodal:!0,ismodal:!1,notblocking:!1,isblocking:!1,triggerexit:!1,shadow:!0,noshadow:!1,darkmode:!1,singleton:!1,static:!1,withloader:!1},s={hideclose:"showclose",notdesktop:"ondesktop",notmobile:"onmobile",notmodal:"ismodal",notblocking:"isblocking",nottablet:"ontablet",shadow:"noshadow",dynamic:"static"},l=null,d=null,c=0,v=null,u=null,p=null,g={};function h(){for(var e in o._id=r.attr("id"),o._key=DiviArea.Utils.sanitizeHookName(o._id),o._type=y(i),o._inDom=r.closest(document.documentElement).length,o._isVisible=o._inDom&&r[0].getClientRects().length,o._size={},DiviArea.Debug.debug("Area Type",this.theType()),DiviArea.Debug.debug("Area ID",this.theId()),DiviArea.Debug.debug("Area Hook",this.theKey()),U(r),this.setData("zindex",0),this.setData("container",t("body")),this.setData("hasShowAnim",!0),this.setData("position","center-center"),this.setData("positionv","center"),this.setData("positionh","center"),n)void 0!==r.data("da-"+e)?(this.setData(DiviArea.Utils.toBool(r.data("da-"+e))),r.removeAttr("data-da-"+e)):void 0!==r.data(e)?(this.setData(DiviArea.Utils.toBool(r.data(e))),r.removeAttr("data-"+e)):this.setData(e,n[e]);var s={};for(var l in s[DiviArea.Utils.getOption("notMobileClass")]=["onmobile",!1],s[DiviArea.Utils.getOption("notTabletClass")]=["ontablet",!1],s[DiviArea.Utils.getOption("notDesktopClass")]=["ondesktop",!1],s[DiviArea.Utils.getOption("noCloseClass")]=["showclose",!1],s[DiviArea.Utils.getOption("withCloseClass")]=["showclose",!0],s[DiviArea.Utils.getOption("altCloseClass")]=["closealt",!0],s[DiviArea.Utils.getOption("modalIndicatorClass")]=["ismodal",!0],s[DiviArea.Utils.getOption("blockingIndicatorClass")]=["isblocking",!0],s[DiviArea.Utils.getOption("exitIndicatorClass")]=["triggerexit",!0],s[DiviArea.Utils.getOption("noShadowClass")]=["noshadow",!0],s[DiviArea.Utils.getOption("darkModeClass")]=["darkmode",!0],s[DiviArea.Utils.getOption("singletonClass")]=["singleton",!0],s[DiviArea.Utils.getOption("withLoaderClass")]=["withloader",!0],s)if(r.hasClass(l)){var d=s[l];this.setData(d[0],d[1]),r.removeClass(l)}DiviArea.UI.initializeAreaAnimation(r),m(),b(),f(),a&&(v=new a((function(e){var i=r[0].scrollHeight-r[0].clientHeight;i>0&&i-r[0].scrollTop<1&&(r[0].scrollTop-=1),o._size.width=0,o._size.height=0,o._size.contentWidth=0,o._size.contentHeight=0,O("resize",k)}),{box:"border-box"}),u=new a((function(e){o._size.wrapperWidth=0,o._size.wrapperHeight=0,O("resize",k)}),{box:"border-box"}))}function f(){r.attr("data-da-area",o._id),l.attr("data-da-area",o._id),l.attr("data-da-registered",1),l.attr("data-da-type",this.theType()),l.attr("data-da-close-btn",this.getData("showclose")?"yes":"no"),l.attr("data-da-close-bg",this.getData("closeAlt")?"none":"solid"),l.attr("data-da-loader",this.getData("withLoader")?"yes":"no"),l.attr("data-da-shadow",this.getData("shadow")?"yes":"no"),l.attr("data-da-color",this.getData("darkMode")?"dark":"light");var e=this.getData("wrapClasses");e&&l.addClass(e),O("position",this.setPosition),this.doAction("refresh_area")}function D(){var e=this;if(this.isVisible()){r.find("."+DiviArea.Utils.getOption("closeButtonClass")).off(".da");var i=function(i,t){return DiviArea.Debug.debug("Click on",t,"close-button"),e.doAction("close_area",e,t),i.preventDefault(),!1};l.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da").on("click.da",(function(e){return i(e,"custom")})),d.find("a").off(".da").on("click.da",(function(e){return i(e,"default")})),t(window).on("resize",C),this.addAction("close_area",_)}else l.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da"),d.find("a").off(".da"),t(window).off("resize",C),this.removeAction("close_area")}function A(e){var i=this;if(this.isVisible()){if(this.getData("hasShowAnim")){DiviArea.Debug.info("✨ Animate the area (show)",this.theId()),DiviArea.UI.animateArea(this,"show",(function(){i.getData("showclose")&&d.show(),e()}))}}else this.getData("hasShowAnim")&&(d.hide(),DiviArea.Debug.info("✨ Animate the area (hide)",this.theId()),DiviArea.UI.animateArea(this,"hide",e))}function b(){if(!d){var e=DiviArea.Utils.getOption("closeButtonClass"),i=e+"-wrap";d=t("<span>").addClass(i).appendTo(l),t("<a>").attr("href","#close").addClass(e).html("×").appendTo(d),d.hide(),this.doAction("area_close_button",d,this)}}function m(){if(!l){var e=DiviArea.Utils.getOption("popupWrapperClass");(l=r.parent()).hasClass(e)||(r.wrap("<div>"),(l=r.parent()).addClass(e)),U(l),this.doAction("area_wrap",l,this)}}function w(){var e=this;c&&clearTimeout(c),c=setTimeout((function(){c=0,e.inDom()&&f()}),20)}function y(e){return e.toLowerCase().trim().replace(/-/,"")}function _(e,i){var t=!1;if(t=this.applyFilters("ignore_close_area",t,this,i))return DiviArea.Debug.debug("Ignored, manually cancelled in filter"),!0;DiviArea.hide(this)}function C(){o._size.windowWidth=0,o._size.windowHeight=0,o._size.wrapperWidth=0,o._size.wrapperHeight=0,O("resize",k)}function k(){if(this.isVisible()){var e=this.getSize(),i=[e.width,e.height,e.contentWidth,e.contentHeight,e.windowWidth,e.windowHeight].join("-");if(o._resizeState!==i){if(o._resizeState=i,d.css({width:e.width,height:e.height}),this.isType("popup"))if(l.attr("data-da-size-full-height"))e.wrapperHeight-e.contentHeight>=20&&(l.removeAttr("data-da-size-full-height"),l.removeClass(DiviArea.Utils.getOption("fullHeightClass")));else e.windowHeight-e.contentHeight<=20&&(l.attr("data-da-size-full-height",1),l.addClass(DiviArea.Utils.getOption("fullHeightClass")));O("position",this.setPosition)}}}function x(e,i){var t,a="";if(i||""===(a=DiviArea.Utils.getStyleDef(l[0],e))&&(a=DiviArea.Utils.getStyleDef(r[0],e)),""===a){var o=r.find(".et_pb_section");for(t=0;t<o.length&&!a;t++)a=DiviArea.Utils.getStyleDef(o[t],e,['[class*="et_pb_section_dap_"]'])}return a}function I(){var e=x("width"),i=x("max-width",!0);e&&"auto"!==e||(this.isType("popup")||l.css("width","100%"),r.css("width","100%")),i&&r.css("max-width",i)}function O(e,i){var t=this;g[e]||(g[e]=window.setTimeout((function(){g[e]=!1,i.apply(t)}),4))}function U(e){var i=this;e.data("is-area",!0),e.data("area",this),e.data("area-config",o),e.getArea=function(){return i}}function z(){}this.theId=function(){return"#"+o._id},this.theKey=function(){return o._key},this.hasId=function(e){e=e.replace(/^#/,"",e);var i=DiviArea.Data.getRealId(e);return i||(i=DiviArea.Data.getRealId("divi-area-"+e)),i&&i===this.theId()},this.theType=function(){return o._type},this.isType=function(e){if(!e)return!0;if("string"!=typeof e)throw new Error("DiviAreaItem.isType() expects a string parameter. Given value is a "+typeof e);if((e=y(e))===o._type)return!0;if("any"===e||"all"===e)return!0;for(var i=0===e.indexOf("not:"),t=e.replace(/^not:\s*/,"").split(/\s*,\s*/),a=0;a<t.length;a++)if(t[a]===o._type)return!i;return i},this.get=function(e){return e?t(e,r):r},this.getWrap=function(){return l},this.attach=function(){if(w(),this.inDom())return this;o._inDom=!0;var e=this.findHook();if(r.hide(),e){var i=e.data("area-place"),t=e;"after"===i?t=e.next():"replace"===i&&(p=e.next().detach()),t.after(l.detach())}else l.detach().appendTo(this.getData("container"));return l.closest("#et-boc").length||l.wrap('<div id="et-boc">'),O("position",this.setPosition),this.setVisible(!0,(function(){if(v){var e=DiviArea.Utils.getOption("closeButtonClass")+"-wrap";r.children().each((function(i,t){-1===t.className.indexOf(e)&&v.observe(t)})),v.observe(r[0]),u.observe(l[0])}})),this},this.detach=function(){if(!this.inDom())return this;o._inDom=!1;var e=this.findHook();return v&&v.disconnect(),u&&u.disconnect(),this.setVisible(!1,(function(){var i=l.parent();r.hide(),l.detach(),"et-boc"!==i.attr("id")||i.hasClass("dm-base-context")||i.children().length||i.remove(),p&&(e.after(p),p=null)})),this},this.findHook=function(){var e='[data-area-hook="'+this.getData("hookid")+'"]',i=t(e);return!!i.length&&i},this.setVisible=function(e,i){if(e=!!e,o._isVisible!==e)return"function"!=typeof i&&(i=z),o._isVisible=e,D(),A(i),this.isVisible()?(I(),this.doAction("show_area")):this.doAction("hide_area"),this},this.setPosition=function(){var e={},i={};if(!this.isVisible()||!this.inDom())return this;if(this.getData("maxheight")&&(e.overflow="auto",e.maxHeight="100%",i.maxHeight=this.getData("maxheight")),this.getData("maxwidth")&&(e.maxWidth="100%",i.maxWidth=this.getData("maxwidth")),i.zIndex=this.getData("zindex"),this.doAction("resize_area"),this.isType("inline")||this.isType("hover"))l.removeAttr("data-da-position"),l.removeAttr("data-da-position-h"),l.removeAttr("data-da-position-v");else{var t=this.getData("positionh"),a=this.getData("positionv"),o=null;switch(l.attr("data-da-position",this.getData("position")),l.attr("data-da-position-h",t),l.attr("data-da-position-v",a),t){case"left":i.left="0";break;case"right":i.right="0";break;case"center":o||(o=this.getSize()),i.left=Math.max(0,parseInt((o.windowWidth-o.wrapperWidth)/2))+"px"}if(!l.attr("data-da-size-full-height"))switch(a){case"top":i.top="0";break;case"bottom":i.bottom="0";break;case"center":o||(o=this.getSize()),i.top=Math.max(0,parseInt((o.windowHeight-o.wrapperHeight)/2))+"px"}this.doAction("position_area",i,e)}return r.css(e),l.css(i),this},this.setTriggerEvent=function(i){var a=!1;return i&&(this.setData("event",i),i.currentTarget?a=i.currentTarget:i instanceof jQuery?a=i.first():window.HTMLElement&&e instanceof window.HTMLElement&&(a=t(i))),this.setData("attachto",a),DiviArea.Debug.debug("Attached to element:",a||"(none)"),this},this.isVisible=function(){return o._isVisible},this.inDom=function(){return o._inDom},this.getSize=function(){var e=this.isVisible();if(o._size&&void 0!==o._size.width||(o._size={}),o._size.width||(o._size.width=e?r[0].clientWidth:0),o._size.height||(o._size.height=e?r[0].clientHeight:0),o._size.contentWidth||(o._size.contentWidth=e?r[0].scrollWidth:0),!o._size.contentHeight&&(o._size.contentHeight=0,e))if(r.hasClass("et_pb_section")){var i=window.getComputedStyle(r[0]);o._size.contentHeight+=parseInt(i["border-top-width"]),o._size.contentHeight+=parseInt(i["padding-top"]),o._size.contentHeight+=parseInt(i["padding-bottom"]),o._size.contentHeight+=parseInt(i["border-bottom-width"]),r.children().each((function(){o._size.contentHeight+=this.offsetHeight}))}else o._size.contentHeight=r[0].scrollHeight;return o._size.wrapperWidth||(o._size.wrapperWidth=e?l[0].offsetWidth:0),o._size.wrapperHeight||(o._size.wrapperHeight=e?l[0].offsetHeight:0),o._size.windowWidth||(o._size.windowWidth=window.innerWidth),o._size.windowHeight||(o._size.windowHeight=window.innerHeight),o._size},this.getData=function(e){var i;return e=e.toLowerCase().replace(/[^a-z0-9]/,""),s.hasOwnProperty(e)?(e=s[e],i=!o[e]):i=o[e],i},this.setData=function(e,i){if(void 0===i)return this;if(e=e.toLowerCase().replace(/[^a-z0-9]/,""),n.hasOwnProperty(e))i=DiviArea.Utils.toBool(i,n[e]),s.hasOwnProperty(e)&&(e=s[e],i=!i);else switch(e){case"zindex":i=parseInt(i);break;case"closedelay":i=parseFloat(i);break;case"position":-1!==i.indexOf("top")?o.positionv="top":-1!==i.indexOf("bottom")?o.positionv="bottom":o.positionv="center",-1!==i.indexOf("left")?o.positionh="left":-1!==i.indexOf("right")?o.positionh="right":o.positionh="center",i=o.positionv+"-"+o.positionh;break;case"positionh":if("left"!==i&&"right"!==i&&"center"!==i)return this;break;case"positionv":if("top"!==i&&"bottom"!==i&&"center"!==i)return this;break;case"container":(i=t(i).first()).length||(i=t("body"));break;case"attachto":i=t(i).first()}switch(o[e]=i,e){case"positionh":case"positionv":o.position=o.positionv+"-"+o.positionh}return w(),this},this.doAction=function(e){for(var i=[],t=arguments.length-1;t-- >0;)i[t]=arguments[t+1];i.length||(i=[this]),DiviArea.doAction.apply(DiviArea,[[e,e+"_"+this.theKey()]].concat(i))},this.applyFilters=function(e,i){for(var t=[],a=arguments.length-2;a-- >0;)t[a]=arguments[a+2];return t.length||(t=[this]),DiviArea.applyFilters.apply(DiviArea,[[e,e+"_"+this.theKey()],i].concat(t))},this.addFilter=function(e,i,t,a){DiviArea.addFilter(e+"_"+this.theKey(),i,t,a)},this.addAction=function(e,i,t,a){DiviArea.addAction(e+"_"+this.theKey(),i,t,a)},this.removeFilter=function(e,i){DiviArea.removeFilter(e+"_"+this.theKey(),i)},this.removeAction=function(e,i){DiviArea.removeAction(e+"_"+this.theKey(),i)},this.addActionOnce=function(e,i,t,a){DiviArea.addActionOnce(e+"_"+this.theKey(),i,t,a)},this.hasClass=r.hasClass.bind(r),this.addClass=r.addClass.bind(r),this.removeClass=r.removeClass.bind(r),this.attr=r.attr.bind(r),this.removeAttr=r.removeAttr.bind(r),this.find=r.find.bind(r),this.css=r.css.bind(r),h=h.bind(this),f=f.bind(this),D=D.bind(this),A=A.bind(this),w=w.bind(this),m=m.bind(this),b=b.bind(this),_=_.bind(this),C=C.bind(this),k=k.bind(this),x=x.bind(this),I=I.bind(this),O=O.bind(this),U=U.bind(this),h()};var i,t,a,r;i=jQuery,DiviArea.init=function(e){var t=[window.location.protocol,"//",window.location.host,"/wp-admin/edit.php?post_type=divi-area&page=settings#frontend"];this.app=e?"Divi Areas Pro":"Popups for Divi",this.lib=e?"DiviArea":"DiviPopup",this.version="2.0.0",this.info=this.lib+"-"+this.version,this.loaded=!0,DiviArea.Debug.info("🚀 Initialize "+this.app,"- JS API:",this.info),e?DiviArea.Debug.info("ℹ️ You can disable the debug output on the Settings page:",t.join("")):DiviArea.Debug.info("ℹ️ You can disable the debug output by disabling WP_DEBUG"),DiviArea.Debug.debug("Details about the Debug Mode","https://divimode.com/knowledge-base/debug-options/"),DiviArea.Utils.init(),DiviArea.Utils.getOption("initializeOnEvent")?i(window,document).one(DiviArea.Utils.getOption("initializeOnEvent"),(function(){window.setTimeout(DiviArea.Core.init,1)})):window.setTimeout(DiviArea.Core.init,1)},DiviArea.markClosed=function(e,i){if(DiviArea.Utils.getOption("debug")){var t=DiviArea.Data.sanitizeId(e);DiviArea.Debug.info("📌 Mark Area as closed for "+i+" minutes:",t)}DiviArea.Utils.setLocalData(e,"1",i)},DiviArea.isClosed=function(e){e=e.toLowerCase().replace(/^#/,"");var i=DiviArea.Utils.getLocalData(e);if(DiviArea.Utils.getOption("debug")){var t=DiviArea.Data.sanitizeId(e);"1"===i?DiviArea.Debug.info("📌 Area is still closed:",t):DiviArea.Debug.info("📌 Area is not closed:",t)}return"1"===i},DiviArea.register=function(e,t,a){if(void 0===t&&(t={}),void 0===a&&(a=!1),!(e=DiviArea.Data.sanitizeId(e)))return!1;var r=DiviArea.getArea(e);if(r)return r;var o=i(e);if(o.length&&t.selector&&(o=o.filter(t.selector),delete t.selector),1!==o.length)return!1;if(!a){if(o.data("da-type"))a=o.data("da-type"),o.removeAttr("data-da-type");else if(o.data("type"))a=o.data("type"),o.removeAttr("data-type");else for(var n=o[0].className.split(/\s+/),s=0;s<n.length;s++)if(0===n[s].indexOf("divi-area-type-")){a=n[s].replace("divi-area-type-",""),o.removeClass(n[s]);break}if(!a)return!1}if(DiviArea.Debug.group("Register Area | "+a+" | "+e),t.areaHook&&t.hookId&&"inline"===a){var l=i(t.areaHook).first();if(l.length){var d=i("<span>");d.attr("data-area-hook",t.hookId),d.attr("data-area-place",t.areaPlace),l.before(d)}else DiviArea.Debug.error("Inline hook not found:",t.areaHook)}var c=DiviArea.Data.createArea(o,a,e);return t.alternateid?DiviArea.Data.addAltId(c.theId(),t.alternateid):t.alternateId?DiviArea.Data.addAltId(c.theId(),t.alternateId):t.ids&&DiviArea.Data.addAltId(c.theId(),t.ids),delete t.alternateid,delete t.alternateId,delete t.ids,Object.keys(t).forEach((function(e){c.setData(e,t[e])})),c.setData("wrap-classes","et-l entry-content"),c.isType("inline")&&c.getData("static")?(DiviArea.Core.initContainer(c),DiviArea.show(e,"static")):(c.detach(),c.setData("container",DiviArea.Core.getContext())),DiviArea.Debug.info("➕ Registered new area:",e,"("+a+")"),DiviArea.Debug.group(),c.doAction("init_area"),c},DiviArea.show=function(e,i){if(!e)return!1;var t=DiviArea.getArea(e);return t?DiviArea.Utils.showOnViewport(t)?(DiviArea.Debug.group("Show area",t.theId()),t.setData("hasShowAnim",!t.isVisible()),t.setTriggerEvent(i),t.isType("hover")&&DiviArea.Core.setupHoverArea(t),DiviArea.Core.attachArea(t),DiviArea.Core.reOrderAreas(),DiviArea.Debug.group(),!0):(DiviArea.Debug.debug("Do not trigger area on this device:",t.theId()),!1):(DiviArea.Debug.error("Could not find an area with the ID:",e),!1)},DiviArea.hide=function(e){var i=DiviArea.Data.getVisibleArea(e);i&&(i.setData("hasShowAnim",!0),i.setData("event",void 0),DiviArea.Debug.debug("Close area and unlink event handlers:",i.theId()),DiviArea.Core.detachArea(i)),DiviArea.Core.reOrderAreas()},function(e){DiviArea.Core=DiviArea.Core||{};var i=window.ResizeObserver||window.WebKitResizeObserver,t=null,a=!1,r=!1;function o(e,i){DiviArea.Core.isArea(e)||(e=DiviArea.Data.getVisibleArea())&&(DiviArea.Debug.debug("Close the top-most area"),e.doAction("close_area",e,"default"))}function n(e){if(27===e.keyCode)return function(){DiviArea.Debug.info("⚡️ ESC-key pressed");var e=!1,i=DiviArea.Data.getVisibleArea(null,"popup");return i?(e=i.getData("isblocking"),(e=DiviArea.applyFilters("ignore_esc_key",e))?(DiviArea.Debug.debug("Ignored, manually cancelled in filter"),!0):(DiviArea.Debug.debug("Close top-most popup"),DiviArea.doAction("close_area",null,"esc"),!1)):(DiviArea.Debug.debug("Ignored, no popup is visible"),!0)}()}function s(){var e=["popup","flyin"],i=!1;function t(e,t){i||e.getData("triggerexit")&&(DiviArea.isClosed(t)?e.setData("triggerexit",!1):DiviArea.show(t,"exit")&&(e.setData("triggerexit",!1),i=!0))}for(var a in e)i=!1,DiviArea.Data.loopAllAreas(e[a],t)}function l(e,i){var t=[];if(i.isType("popup")&&"show"===e&&i.getData("singleton")&&DiviArea.Data.loopVisibleAreas("popup",(function(e){t.push(e.theId())})),"hide"===e?i.doAction("before_hide_area",i,t):i.doAction("before_show_area",i,t),t.length)for(var a in DiviArea.Debug.debug("Hide following areas:",t),t){var r=DiviArea.getArea(t[a]);r&&r.inDom()&&DiviArea.Core.detachArea(r)}}function d(i,t){var a;if(a=DiviArea.Data.sanitizeId(t))if(i.attr("data-area-id"))DiviArea.Debug.debug("Trigger already prepared",i[0]);else if(DiviArea.getArea(a)){var r=DiviArea.Utils.getOption("hoverTriggerClass"),o=DiviArea.Utils.getOption("clickTriggerClass");i.attr("data-area-id",a),i.addClass("popup-trigger"),i.off("click"),i.hasClass(r)&&(i.on("mouseenter._da",n),DiviArea.Debug.debug("Prepared Hover trigger to open this area:",a,i[0])),i.hasClass(r)&&!i.hasClass(o)||(i.on("click._da",n),DiviArea.Debug.debug("Prepared Click trigger to open this area:",a,i[0]))}else DiviArea.Debug.debug("Ignore trigger. No area found with this ID:",i[0]);else DiviArea.Debug.debug("Ignore trigger. Invalid target ID:",t,i[0]);function n(i){var t=e(i.target);return!("A"!==t.prop("tagName")||!t.attr("href").length||t.attr("data-area-id"))||(i.preventDefault(),DiviArea.Debug.debug("Trigger area:",a),DiviArea.show(a,i),!1)}}function c(i){var t=e(i.target).closest("[data-da-type][data-da-registered]"),a=DiviArea.Utils.getOption("fullHeightClass");return!(!t.length||!t.hasClass(a))||(i.preventDefault(),i.stopPropagation(),!1)}DiviArea.Core.init=function(){a?DiviArea.Debug.error("Core.init() was already executed. It should not run twice, please review the code!"):(a=!0,DiviArea.Debug.debug("Initialize the app"),DiviArea.doAction("load"),(t=e(DiviArea.Utils.getOption("baseContext")).filter(":visible").first()).length?(t.closest("#et-boc").length||(t.append('<div id="et-boc" class="dm-base-context"></div>'),t=t.find(".dm-base-context#et-boc").first()),DiviArea.Debug.debug('Base context "'+DiviArea.Utils.getOption("baseContext")+'" found',t)):DiviArea.Debug.error('Could not find the popup container "'+DiviArea.Utils.getOption("baseContext")+'"'),function(){var i=e(".et_pb_fullscreen_nav_container #mobile_menu_slide");if(!i.length)return;i.parent().css({minHeight:i.outerHeight()})}(),window.setTimeout((function(){e(window).on("mouseleave.da",(function(e){var i;"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&"select"!==e.target.tagName.toLowerCase()&&(i=Math.max(document.documentElement.clientWidth,window.innerWidth||0),e.clientX>=i-50||e.clientY>=50||e.toElement||e.relatedTarget||(DiviArea.Debug.info("⚡️ Exit-intent detected (mouse leave)"),DiviArea.doAction("exit_intent","mouse-leave")))})),DiviArea.addAction("exit_intent",s)}),DiviArea.Utils.getOption("onExitDelay")),DiviArea.addAction("ready",(function(){DiviArea.addAction("close_area",o),function(e){var i=window.MutationObserver||window.WebKitMutationObserver,t=window.addEventListener,a=DiviArea.Core.getContext(),r=!1;function o(){r||(r=setTimeout((function(){r=!1,DiviArea.Debug.debug("DOM changed"),e()}),50))}if(i){new i((function(e,i){if(e[0].addedNodes.length||e[0].removedNodes.length)return o()})).observe(a[0],{childList:!0,subtree:!0})}else t&&(a.addEventListener("DOMNodeInserted",o,!1),a.addEventListener("DOMNodeRemoved",o,!1))}(DiviArea.Core.activateContainer),e(document).on("keyup",n)}),1),DiviArea.addAction("ready",(function(){DiviArea.Core.activateContainer()}),9),DiviArea.doAction("ready"))},DiviArea.Core.isArea=function(e){return e&&e instanceof DiviAreaItem},DiviArea.Core.getContext=function(){return t},DiviArea.Core.reOrderAreas=function(){if(DiviArea.Data.countVisibleAreas("popup")||DiviArea.hideOverlay(),DiviArea.Data.countVisibleAreas()){var e=DiviArea.Utils.getOption("zIndex"),i=DiviArea.Data.countVisibleAreas("not: inline"),t=DiviArea.Data.countVisibleAreas("popup"),a=[],r=0,o=0,n={};if(DiviArea.Debug.debug("Refresh the z-index of visible areas"),DiviArea.Data.loopVisibleAreas("any",DiviArea.Core.blurArea),DiviArea.Core.focusArea(DiviArea.Data.getVisibleArea()),DiviArea.Data.loopVisibleAreas("not: inline",(function(a){var s=0;a.isType("popup")?(o++,s=e+i-t+o,a.hasClass(DiviArea.Utils.getOption("activePopupClass"))&&(n.overlay=s,s+=1)):(r++,s=e+r),n[a.theId()]=s})),(n=DiviArea.applyFilters("reorder_areas",n)).overlay&&!isNaN(n.overlay)){var s=DiviArea.showOverlay(n.overlay);a.push({id:"-",type:"overlay","z-index":s})}for(var l in n)d(l);DiviArea.Debug.info("👓 List of visible Areas:"),DiviArea.Debug.table(a)}function d(e){if("overlay"!==e){var i=DiviArea.getArea(e);if(i){var t=n[e];t&&!isNaN(t)&&i.setData("zindex",t),i.isType("popup")&&i.attach(),a.push({id:i.theId(),type:i.theType(),"z-index":i.getData("zindex")||null})}}}},DiviArea.Core.activateContainer=function(i){var t,a,r=void 0===i;if(void 0===i?i=e("body"):DiviArea.Core.isArea(i)&&(i=i.get()),function(i){i.find(DiviArea.Utils.getOption("popupSelector")).not("[data-da-area]").filter("[id]").each((function(){var i=e(this);DiviArea.Debug.debug("Found an inline Popup Area:",i.attr("id")),DiviArea.register(i,{},"popup")}))}(i),(a=function(i,t){var a,r,o,n=[];if(!i.ids||!i.ids.length)return[];function s(i,t){var a;for(a=0;a<t.length;a++){var r=e(t[a]);r.attr("data-area-id")||(r.attr("data-da-area")||r.hasClass("divi-area-wrap")||r.hasClass("et_pb_section")&&r.hasClass("popup")||n.push({id:i,item:r}))}}for(a=0;a<i.ids.length;a++){var l="#"+(o=i.ids[a].replace(/^#/,"")),d=i.linkPrefix?"#"+i.linkPrefix+o:"",c="."+o,v=i.classPrefix?"."+i.classPrefix+o:"",u=i.dataAttrib?i.dataAttrib+'="'+o+'"':"";if(s(o,e('[href="'+l+'"]',t)),d&&s(o,e('[href="'+d+'"]',t)),s(o,e(c,t)),v&&s(o,e(v,t)),u&&s(o,e("["+u+"]",t)),window.et_link_options_data)for(r=et_link_options_data.length-1;r>=0;r--)if(l===et_link_options_data[r].url||d===et_link_options_data[r].url){var p=e("."+et_link_options_data[r].class,t);s(o,p),p.off("click"),et_link_options_data.splice(r,1)}}return n}({ids:DiviArea.listAreas(),linkPrefix:"popup:",dataAttrib:DiviArea.Utils.getOption("idAttrib"),classPrefix:DiviArea.Utils.getOption("triggerClassPrefix")},i)).length){for(r?DiviArea.Debug.group("Activate all triggers in document"):DiviArea.Debug.group("Activate triggers in area",i.attr("id")),t=0;t<a.length;t++){var o=a[t];d(o.item,o.id)}DiviArea.Debug.group()}else r?DiviArea.Debug.debug("No new triggers found in document"):DiviArea.Debug.debug("No new triggers found in area",i.attr("id"));DiviArea.Core.initContainer(i)},DiviArea.Core.initContainer=function(i){var t=!1,a=!1;return DiviArea.Core.isArea(i)?(t=i,i=i.get()):i.data("is-area")&&(t=i.getArea()),t&&(a=t.getData("post_id")),t&&!0===i.data("area-init-done")||(t&&i.data("area-init-done",!0),e("body").trigger("post-load"),i.find("img[loading=lazy]").attr("loading","eager"),void 0!==window.et_fix_pricing_currency_position&&window.et_fix_pricing_currency_position(i.find(".et_pb_pricing_table")),a&&i.find(".et_pb_newsletter_form").length&&i.find(".et_pb_newsletter_form [name=et_pb_signup_post_id]").val(a),function(e){if(!window.grecaptcha)return;if(!e.find('input[name="g-recaptcha-response"]').length)return;if(e.find("[data-sitekey].g-recaptcha").length>0){if(!grecaptcha.render)return;e.find("form").each((function(){var e=jQuery(this),i=e.find("[data-sitekey].g-recaptcha");if(i.length&&!e.find('iframe[src*="/recaptcha/"]').length){var t={sitekey:i.attr("data-sitekey"),type:i.attr("data-type"),size:i.attr("data-size"),theme:i.attr("data-theme"),badge:i.attr("data-badge"),tabindex:i.attr("data-tabindex")},a=i.attr("data-callback"),r=i.attr("data-expired-callback");a&&"function"==typeof window[a]&&(t.callback=window[a]),r&&"function"==typeof window[r]&&(t["expired-callback"]=window[r]);var o=grecaptcha.render(i[0],t);window.recaptchaWidgets&&recaptchaWidgets.push(o)}}))}else{if(!grecaptcha.execute)return;var i=jQuery('script[src*="google.com/recaptcha/api.js"]').attr("src").replace(/^.*render=(.*)$/,"$1").split("&")[0];grecaptcha.execute(i,{action:"homepage"}).then((function(i){e.find('form [name="g-recaptcha-response]').val(i)}))}}(i)),void 0!==window.et_reinit_waypoint_modules&&window.et_reinit_waypoint_modules(),i},DiviArea.Core.deactivateContainer=function(i){DiviArea.Core.isArea(i)&&(DiviArea.Debug.debug("Deactivate all triggers in area",i.theId()),i.find("[data-area-id]").each((function(){!function(e){DiviArea.Debug.debug("Remove trigger:",e[0]),e.removeAttr("data-area-id"),e.removeClass("popup-trigger"),e.off("._da")}(e(this))})))},DiviArea.Core.attachArea=function(e){r||(r=!0,l("show",e),r=!1),DiviArea.Data.addVisibleArea(e),e.attach()},DiviArea.Core.detachArea=function(e){if(r||(r=!0,l("hide",e),r=!1),e.inDom()){if(!DiviArea.Core.isArea(e)||!e.inDom())return;e.removeClass("__is_animating"),DiviArea.Data.removeVisibleArea(e),DiviArea.Core.blurArea(e),e.detach()}},DiviArea.Core.focusArea=function(e){var i=DiviArea.Utils.getOption("activePopupClass");e&&(e.get(),DiviArea.Core.activateContainer(e),e.hasClass(i)||(e.addClass(i),e.doAction("focus_area")))},DiviArea.Core.blurArea=function(e){var i=DiviArea.Utils.getOption("activePopupClass");e&&(e.get(),DiviArea.Core.deactivateContainer(e),e.hasClass(i)&&(e.removeClass(i),e.doAction("blur_area")))},DiviArea.Core.setupHoverArea=function(t){var a=t.getData("attachto"),r=t.get(),o=t.getWrap();if(a.length){var n=DiviArea.Utils.isPosition(a,"fixed"),s=t.theId(),l=t.getData("closeTrigger"),d=1e3*t.getData("closedelay"),c=!1,v=!1,u=!1;i&&(u=new i((function(e){for(var i=0;i<e.length;i++){var t=e[i].contentRect,a=t.width+"-"+t.height;a!==v&&(v=a,p())}}),{box:"border-box"})),u&&u.observe(a[0]),t.addAction("resize_area",p),"click"===l?e(document).on("click."+t.theKey(),(function(i){e(i.target).closest(s).length||g()})):"hover"===l&&(r.on("mouseleave._dah",g),a.on("mouseleave._dah",g)),a.on("mouseenter._dah",h),r.on("mouseenter._dah",h),DiviArea.Debug.debug("Prepared positioning of hover area")}else DiviArea.Debug.error("Hover Area without alignment element found");function p(){var e=n?a[0].getBoundingClientRect():DiviArea.Utils.getClientRect(a),i=t.getData("positionv"),r=t.getData("positionh"),s=t.getSize(),l={},d={left:"",top:"",right:"",bottom:"",width:"",height:"",position:n?"fixed":"absolute"};"top"===i||"bottom"===i?(d.top="top"===i?e.top-s.height:e.bottom,d.left=e.left+e.width/2-s.width/2):"left"===r||"right"===r?(d.left="left"===r?e.left-s.width:e.right,d.top=e.top+e.height/2-s.height/2):"center"===r&&"center"===i?(d.left=e.left+e.width/2-s.width/2,d.top=e.top+e.height/2-s.height/2):DiviArea.Debug.error("Invalid position",t.getData("position")),d.top<0&&(d.top=0),d.left<0&&(d.left=0),d.left+s.width>window.innerWidth&&(d.left=window.innerWidth-s.width),t.doAction("position_area",d,l),DiviArea.Debug.debug("Area position:",d),o.css(d),t.css(l)}function g(){h(),c=window.setTimeout((function(){var i=t.getData("attachto");i&&i.length&&a!==i||(u&&u.disconnect(),t.removeAction("resize_area",p),e(document).off("."+t.theKey()),r.off("._dah"),a.off("._dah"),DiviArea.hide(t))}),d)}function h(){c&&window.clearTimeout(c),c=!1}},DiviArea.Core.disableBodyScroll=function(){var i=e("body");if(!0!==i.data("da-disable-scroll")){i.data("da-disable-scroll",!0),DiviArea.Utils.bindPassiveEvent([i,DiviArea.getOverlay()],"mousewheel touchmove",c);var t=window.innerWidth-document.body.clientWidth;i.addClass(DiviArea.Utils.getOption("openPopupClass")),t&&(i.css("padding-right",t),i.hasClass("et_boxed_layout")||e(".et_fixed_nav #main-header").css("padding-right",t)),DiviArea.doAction("disabled_scrolling")}},DiviArea.Core.enableBodyScroll=function(){var i=e("body");!0===i.data("da-disable-scroll")&&(i.data("da-disable-scroll",!1),DiviArea.Utils.unbindPassiveEvent([i,DiviArea.getOverlay()],"mousewheel touchmove",c),i.removeClass(DiviArea.Utils.getOption("openPopupClass")),i.css("padding-right",""),e(".et_fixed_nav #main-header").css("padding-right",""),DiviArea.doAction("enabled_scrolling"))},DiviArea.Core.closeMainMenu=function(){e(".et_pb_fullscreen_menu_active").length?e(".et_toggle_fullscreen_menu").first().trigger("click"):e(".et_pb_slide_menu_active").length&&e(".et_toggle_slide_menu").first().trigger("click")}}(jQuery),function(e){DiviArea.Data=DiviArea.Data||{};var i={},t=[],a={};DiviArea.Data.sanitizeId=function(e,i){if(!e)return"";if(e instanceof DiviAreaItem)return e.theId();if(e instanceof jQuery)return"#"+e.attr("id");if(e){if(i){var t=new RegExp("^#"+i+":");e=e.replace(t,"#",e)}"#"!==e[0]&&(e="#"+e)}return e.length>1?e:""},DiviArea.Data.getRealId=function(e){var t=[];if(!e)return"";for(e=e.toString().trim(),t.push(DiviArea.Data.sanitizeId(e)),-1===e.indexOf("divi-area-")&&t.push(DiviArea.Data.sanitizeId("divi-area-"+e));t.length;){var r=t.shift();if(r){if(void 0!==i[r])return r;if(a[r]&&(r=DiviArea.Data.sanitizeId(a[r])),r&&void 0!==i[r])return r}}return""},DiviArea.Data.addAltId=function(e,i){function t(i){i=DiviArea.Data.sanitizeId(i),e!==i&&(null===e?delete a[i]:a[i]=e)}e=DiviArea.Data.sanitizeId(e),Array.isArray(i)?i.forEach((function(e){return t(e)})):t(i)},DiviArea.Data.getArea=function(e){if(void 0===e)return DiviArea.Data.getVisibleArea();if(e instanceof DiviAreaItem)return e;e instanceof jQuery&&(e=e.attr("id"));var t=DiviArea.Data.getRealId(e);return!!t&&i[t]},DiviArea.Data.createArea=function(e,t,a){return a=DiviArea.Data.sanitizeId(a),i[a]=new DiviAreaItem(e,t),i[a]},DiviArea.Data.getAllIds=function(e){var t=[];if(DiviArea.Core.isArea(e)){var r=e.theId();for(var o in t.push(r),a)r===a[o]&&t.push(o)}else{for(var n in i){i[n].isType(e)&&t.push(n)}for(var s in a){var l=a[s];i[l].isType(e)&&t.push(s)}}return t},DiviArea.Data.loopAllAreas=function(e,t){for(var a in i){var r=i[a];r.isType(e)&&t(r,a)}},DiviArea.Data.countVisibleAreas=function(e){if(!e||"any"===e)return t.length;var i=0;return DiviArea.Data.loopVisibleAreas(e,(function(){return i++})),i},DiviArea.Data.addVisibleArea=function(e){if(!(e=DiviArea.getArea(e)))return!1;if(e.isType("popup")||!DiviArea.Data.countVisibleAreas("popup"))t.push(e);else for(var i=0;i<t.length;i++)if(t[i].isType("popup")){t.splice(i,0,e);break}},DiviArea.Data.removeVisibleArea=function(e){if(!(e=DiviArea.getArea(e)))return!1;for(var i=e.theId(),a=t.length-1;a>=0;a--){t[a].theId()===i&&t.splice(a,1)}},DiviArea.Data.getVisibleArea=function(e,i){var a=t.length-1;if(!e&&!i)return t[a];if(e){var r=DiviArea.getArea(e);return!!r&&(!!r.isType(i)&&(!!r.isVisible()&&r))}for(var o=a;o>=0;o--){var n=t[o];if(n.isType(i))return n}return!1},DiviArea.Data.loopVisibleAreas=function(e,i,a){for(var r=t.length,o=a?r-1:0,n=0;n<r;n++){var s=t[o];o+=a?-1:1,s.isType(e)&&i(s,n)}}}(),function(e){var i=null,t=!1;function a(e){DiviArea.Debug.info("⚡️ Click on background overlay"),e.preventDefault(),DiviArea.doAction("click_overlay");var i=DiviArea.Data.getVisibleArea(null,"popup");return i?i.getData("ismodal")?(DiviArea.Debug.debug("Ignore click:",'Top-most popup is marked as "modal"'),!1):DiviArea.applyFilters("ignore_overlay_click",!1)?(DiviArea.Debug.debug("Ignore click:","Manually cancelled via filter"),!1):(DiviArea.doAction("close_area",null,"overlay"),DiviArea.Data.countVisibleAreas("popup")||DiviArea.hideOverlay(),!1):(DiviArea.Debug.debug("Ignore click:","No visible Popups found"),!1)}DiviArea.showOverlay=function(r){return null===i&&((i=e("<div />")).addClass(DiviArea.Utils.getOption("overlayClass")),i.on("click.popup",a),DiviArea.doAction("init_overlay",i)),r&&!isNaN(r)||(r=DiviArea.Utils.getOption("zIndex"),r+=Math.max(0,DiviArea.Data.countVisibleAreas())),i.css({zIndex:r}),t||(t=!0,DiviArea.Debug.info("⤴️ Show background overlay"),DiviArea.Core.disableBodyScroll(),i.detach().appendTo(DiviArea.Core.getContext()),i.fadeIn(DiviArea.Utils.getOption("animateSpeed")),DiviArea.doAction("show_overlay",i),DiviArea.Core.closeMainMenu()),r},DiviArea.hideOverlay=function(){t&&(t=!1,DiviArea.Debug.info("⤵️ Hide background overlay"),i.hide().detach(),DiviArea.Core.enableBodyScroll(),DiviArea.doAction("hide_overlay",i))},DiviArea.getOverlay=function(){return i}}(jQuery),function(){DiviArea.UI=DiviArea.UI||{};var e={};function i(e,i,t){t=t||e.data("et_waypoint_max_instances")||1;var a=e.data("et_waypoint")||[];if(a.length<t){var r=e.waypoint(i);r&&r.length>0&&(a.push(r[0]),e.data("et_waypoint",a))}else for(var o=0;o<a.length;o++)a[o].context.refresh()}DiviArea.UI.animateArea=function(t,a,r){var o=!1,n=!1;window.TweenLite&&t.isType("flyin")&&(n=!0),"function"!=typeof r&&(r=function(){}),"hide"!==a||t.isType("flyin")?(t.hasClass("et_pb_section")&&jQuery.fn.waypoint&&"yes"!==et_pb_custom.ignore_waypoints&&function(t){var a,r=t.attr("data-animation");if(!r)return!1;if(!(a=e[r]))return!1;jQuery("body").css("overflow-x","hidden"),jQuery("#page-container").css("overflow-y","hidden"),t.attr({"data-animation-style":a.style,"data-animation-repeat":"once"===a.repeat?"":"infinite","data-animation-duration":a.duration,"data-animation-delay":a.delay,"data-animation-intensity":a.intensity,"data-animation-starting-opacity":a.starting_opacity,"data-animation-speed-curve":a.speed_curve}),i(t,{offset:"100%",handler:function(){!function(e){var i=e.attr("data-animation-style"),t=e.attr("data-animation-repeat"),a=e.attr("data-animation-duration"),r=e.attr("data-animation-delay"),o=e.attr("data-animation-intensity"),n=e.attr("data-animation-starting-opacity"),s=e.attr("data-animation-speed-curve");!function(e){for(var i=[],t=e.get(0).attributes,a=0;a<t.length;a++)"data-animation-"===t[a].name.substring(0,15)&&i.push(t[a].name);jQuery.each(i,(function(i,t){e.removeAttr(t)}))}(e);var l=isNaN(parseInt(n))?0:.01*parseInt(n);-1===jQuery.inArray(s,["linear","ease","ease-in","ease-out","ease-in-out"])&&(s="ease-in-out"),e.css({"animation-duration":a,"animation-delay":r,opacity:l,"animation-timing-function":s});for(var d={},c=isNaN(parseInt(o))?50:parseInt(o),v=["slide","zoom","flip","fold","roll"],u=!1,p=!1,g=0;g<v.length;g++){var h=v[g];if(i&&i.substr(0,h.length)===h){u=h,""!==(p=i.substr(h.length,i.length))&&(p=p.toLowerCase());break}}!1!==u&&!1!==p&&(d=function(e,i,t){var a={};switch(e){case"slide":switch(i){case"top":a={transform:"translate3d(0, "+(r=-2*t)+"%, 0)"};break;case"right":a={transform:"translate3d("+(r=2*t)+"%, 0, 0)"};break;case"bottom":a={transform:"translate3d(0, "+(r=2*t)+"%, 0)"};break;case"left":var r=-2*t;a={transform:"translate3d("+r+"%, 0, 0)"};break;default:a={transform:"scale3d("+(o=.01*(100-t))+", "+o+", "+o+")"}}break;case"zoom":var o=.01*(100-t);switch(i){case"top":case"right":case"bottom":case"left":default:a={transform:"scale3d("+o+", "+o+", "+o+")"}}break;case"flip":switch(i){case"right":a={transform:"perspective(2000px) rotateY("+(n=Math.ceil(.9*t))+"deg)"};break;case"left":a={transform:"perspective(2000px) rotateY("+(n=-1*Math.ceil(.9*t))+"deg)"};break;case"top":default:a={transform:"perspective(2000px) rotateX("+(n=Math.ceil(.9*t))+"deg)"};break;case"bottom":a={transform:"perspective(2000px) rotateX("+(n=-1*Math.ceil(.9*t))+"deg)"}}break;case"fold":switch(i){case"top":a={transform:"perspective(2000px) rotateX("+(n=-1*Math.ceil(.9*t))+"deg)"};break;case"bottom":a={transform:"perspective(2000px) rotateX("+(n=Math.ceil(.9*t))+"deg)"};break;case"left":a={transform:"perspective(2000px) rotateY("+(n=Math.ceil(.9*t))+"deg)"};break;case"right":default:a={transform:"perspective(2000px) rotateY("+(n=-1*Math.ceil(.9*t))+"deg)"}}break;case"roll":switch(i){case"right":case"bottom":a={transform:"rotateZ("+(n=-1*Math.ceil(3.6*t))+"deg)"};break;case"top":case"left":a={transform:"rotateZ("+(n=Math.ceil(3.6*t))+"deg)"};break;default:var n=Math.ceil(3.6*t);a={transform:"rotateZ("+n+"deg)"}}}return a}(u,p,c)),jQuery.isEmptyObject(d)||e.css(d),e.addClass("et_animated"),e.addClass(i),e.addClass(t)}(jQuery(this.element))}})}(t.get())&&(o=!0),n?function(e,i,t){DiviArea.Debug.debug("Animate Area using GSAP");var a=DiviArea.Utils.getOption("animateSpeed"),r={},o={},n=e.get();n.css({opacity:"show"===i?0:1,transition:"all 0s"}),n.show(),window.setTimeout((function(){"left"===e.getData("positionh")?(r.left=-1*n.outerWidth(),o.left=0):"right"===e.getData("positionh")?(r.right=-1*n.outerWidth(),o.right=0):"top"===e.getData("positionv")?(r.top=-1*n.outerHeight(),o.top=0):"bottom"===e.getData("positionv")&&(r.bottom=-1*n.outerHeight(),o.bottom=0),r.opacity=1,o.opacity=1,"hide"===i?(n.css(o),TweenLite.to(n,a/1e3,{css:r})):(n.css(r),TweenLite.to(n,a/1e3,{css:o})),window.setTimeout(t,a)}),5)}(t,a,r):o?function(e,t,a){DiviArea.Debug.debug("Animate Area using a Divi Animation");var r=e.get();r.show(),r.css({opacity:0}),window.setTimeout((function(){r.css({opacity:""}),i(r,{offset:"100%",handler:function(){r.addClass("et-animated"),a()}},2)}),10)}(t,0,r):function(e,i,t){var a=e.get(),r=DiviArea.Utils.getOption("animateSpeed");"show"===i?(DiviArea.Debug.debug("Animate Area using jQuery fadeIn",r),a.fadeIn(r,t)):"hide"===i&&(DiviArea.Debug.debug("Animate Area using jQuery fadeOut",r),a.fadeOut(r,t))}(t,a,r)):r()},DiviArea.UI.initializeAreaAnimation=function(i){if(!window.et_animation_data||!window.et_animation_data.length>0)return!1;i.removeClass("et-waypoint"),i.removeClass("et-animated");for(var t=0;t<et_animation_data.length;t++){var a=!1,r=et_animation_data[t];r&&(r.class&&i.hasClass(r.class)&&r.style&&r.repeat&&r.duration&&r.delay&&r.intensity&&r.starting_opacity&&r.speed_curve&&(a=r.class,i.addClass("pfd-waypoint"),i.attr("data-animation",a),e[a]=r,et_animation_data[t].class=void 0))}}}(),function(){DiviArea.Debug=DiviArea.Debug||{};var e=!1,i=window.DiviAreaConfig;DiviArea.Debug.group=function(t){if(i.debug&&console.group){var a=!e||t&&t!==e;if(e&&(console.groupEnd(),e=!1),t&&a){var r=Array.prototype.slice.call(arguments);r.unshift("[DiviAreas]"),console.group.apply(this,r),e=t}}},DiviArea.Debug.table=function(){if(i.debug){var e=Array.prototype.slice.call(arguments);Array.isArray(e[0])||(e=[e]),console.table?console.table.apply(this,e):console.log.apply(this,e)}},DiviArea.Debug.verbose=function(){if(i.debug&&i.debugVerbose){var e=Array.prototype.slice.call(arguments);e.unshift("color:#cfd8dc;font-style:italic"),e.unshift("[DiviAreas] %c%s"),console.debug.apply(this,e)}},DiviArea.Debug.debug=function(){if(i.debug){var e=Array.prototype.slice.call(arguments);e.unshift("color:#90a4ae"),e.unshift("[DiviAreas] %c%s"),console.debug.apply(this,e)}},DiviArea.Debug.info=function(){if(i.debug){var e=Array.prototype.slice.call(arguments);e.unshift("color:#0288d1;background:#fafcfe"),e.unshift("[DiviAreas] %c%s"),console.log.apply(this,e)}},DiviArea.Debug.error=function(){var e=Array.prototype.slice.call(arguments);e.unshift("[DiviAreas]"),console.error.apply(this,e)},DiviArea.Debug.sysInfo=function(){var e=["\n----------"];if(e.push("Please copy-paste this information into your support ticket:"),e.push("----------\n"),DiviArea.lib&&DiviArea.version&&e.push(" • js_api: "+DiviArea.lib+" "+DiviArea.version),window.DiviAreaConfig&&DiviAreaConfig.sys&&DiviAreaConfig.sys.plugin)for(var i in DiviAreaConfig.sys)try{e.push(" • "+i+": "+" ".repeat(Math.max(0,11-i.length))+DiviAreaConfig.sys[i])}catch(e){}return e.push(" • browser: "+navigator.userAgent),e.push("\n----------\n"),e.join("\n")}}(),t=!0,(a={}).silent=DiviArea.Hooks.silent,a.removeFilter=DiviArea.Hooks.removeFilter,a.removeAction=DiviArea.Hooks.removeAction,a.applyFilters=DiviArea.Hooks.applyFilters,a.doAction=DiviArea.Hooks.doAction,a.addFilter=DiviArea.Hooks.addFilter,a.addAction=DiviArea.Hooks.addAction,a.addActionOnce=DiviArea.Hooks.addActionOnce,DiviArea.Hooks.silent=function(){return t=!1,a.silent.apply(this,arguments)},DiviArea.removeFilter=DiviArea.Hooks.removeFilter=function(e){return t&&DiviArea.Debug.debug("Remove Filter:",e),t=!0,a.removeFilter.apply(this,arguments)},DiviArea.removeAction=DiviArea.Hooks.removeAction=function(e){return t&&DiviArea.Debug.debug("Remove Action:",e),t=!0,a.removeAction.apply(this,arguments)},DiviArea.applyFilters=DiviArea.Hooks.applyFilters=function(e){if(t){Array.isArray(e)||(e=[e]),DiviArea.Debug.info("📢️ Apply Filters:",e.join(" → "));for(var i=0;i<e.length;i++)DiviArea.Debug.debug(' ⚙ DiviArea.addFilter("'+e[i]+'", callback)')}return t=!0,a.applyFilters.apply(this,arguments)},DiviArea.doAction=DiviArea.Hooks.doAction=function(e){if(t){Array.isArray(e)||(e=[e]),DiviArea.Debug.info("📢️ Do Action:",e.join(" → "));for(var i=0;i<e.length;i++)DiviArea.Debug.debug(' ⚙ DiviArea.addAction("'+e[i]+'", callback)')}return t=!0,a.doAction.apply(this,arguments)},DiviArea.addFilter=DiviArea.Hooks.addFilter=function(e){return t&&DiviArea.Debug.debug("Add Filter:",e),t=!0,a.addFilter.apply(this,arguments)},DiviArea.addAction=DiviArea.Hooks.addAction=function(e){return t&&DiviArea.Debug.debug("Add Action:",e),t=!0,a.addAction.apply(this,arguments)},DiviArea.addActionOnce=DiviArea.Hooks.addActionOnce=function(e){return t&&DiviArea.Debug.debug("Add Action Once:",e),t=!0,a.addActionOnce.apply(this,arguments)},DiviArea.openPopup=function(e){DiviArea.Debug.error("DiviArea.openPopup() is deprecated. Please use DiviArea.show() instead"),DiviArea.show(e)},DiviArea.openArea=function(e){DiviArea.Debug.error("DiviArea.openArea() is deprecated. Please use DiviArea.show() instead"),DiviArea.show(e)},DiviArea.closePopup=function(e){DiviArea.Debug.error("DiviArea.closeArea() is deprecated. Please use DiviArea.hide() instead"),DiviArea.hide(e)},DiviArea.closeArea=function(e){DiviArea.Debug.error("DiviArea.closeArea() is deprecated. Please use DiviArea.hide() instead"),DiviArea.hide(e)},DiviArea.Data.configArea=function(e,i,t){DiviArea.Debug.error("DiviArea.configArea() is deprecated. Please use area.setData() instead");var a=DiviArea.getArea(e);if(a)if("object"!=typeof i)a.setData(i,t);else for(var r in i)i.hasOwnProperty(r)&&a.setData(r,i[r])},DiviArea.Hooks.silent().addAction("init_area",(function(e){DiviArea.Hooks.silent().doAction("init_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("show_area",(function(e){DiviArea.Hooks.silent().doAction("show_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("hide_area",(function(e){DiviArea.Hooks.silent().doAction("hide_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("close_area",(function(e,i){e&&DiviArea.Hooks.silent().doAction("close_area-"+e.theKey(),e,i)}),1),DiviArea.Hooks.silent().addAction("blur_area",(function(e){DiviArea.Hooks.silent().doAction("blur_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("focus_area",(function(e){DiviArea.Hooks.silent().doAction("focus_area-"+e.theKey(),e)}),1),DiviArea.Hooks.silent().addAction("before_show_area",(function(e,i){DiviArea.Hooks.silent().doAction("before_show_area-"+e.theKey(),e,i)}),1),DiviArea.Hooks.silent().addAction("before_hide_area",(function(e,i){DiviArea.Hooks.silent().doAction("before_hide_area-"+e.theKey(),e,i)}),1),DiviArea.Hooks.silent().addFilter("ignore_close_area",(function(e,i,t){return e=DiviArea.Hooks.silent().applyFilters("before_close_area",e,i,t),e=DiviArea.Hooks.silent().applyFilters("before_close_area-"+i.theKey(),e,i,t)}),1),DiviArea.Hooks.silent().addFilter("ignore_esc_key",(function(e){return e=DiviArea.Hooks.silent().applyFilters("esc_key_pressed",e)}),1),DiviArea.Hooks.silent().addAction("area_close_button",(function(e){e.addClass("evr-close_wrap"),e.find(">a").addClass("evr-close")}),1),DiviArea.Hooks.silent().addAction("area_wrap",(function(e){e.addClass("popup_outer_wrap")}),1),DiviArea.Hooks.silent().addAction("init_overlay",(function(e){e.addClass("evr_fb_popup_modal")}),1),DiviArea.Hooks.silent().addAction("refresh_area",(function(e){var i={notmobile:DiviArea.Utils.getOption("notMobileClass"),nottablet:DiviArea.Utils.getOption("notTabletClass"),notdesktop:DiviArea.Utils.getOption("notDesktopClass"),showclose:DiviArea.Utils.getOption("withCloseClass"),hideclose:DiviArea.Utils.getOption("noCloseClass"),closealt:DiviArea.Utils.getOption("altCloseClass"),ismodal:DiviArea.Utils.getOption("modalIndicatorClass"),noshadow:DiviArea.Utils.getOption("noShadowClass"),darkmode:DiviArea.Utils.getOption("darkModeClass"),singleton:DiviArea.Utils.getOption("singletonClass")};for(var t in i)e.getData(t)?e.addClass(i[t]):e.removeClass(i[t])}),1),DiviArea.listAreas=DiviArea.Data.getAllIds,DiviArea.configArea=DiviArea.Data.configArea,DiviArea.getArea=DiviArea.Data.getArea,(r=e)&&r.default,DiviArea.init(!1)}();
|
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("×").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)}();
|
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.
|
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.
|
44 |
|
45 |
/**
|
46 |
* Absolute path and file name of the main plugin file.
|
13 |
* Author: divimode.com
|
14 |
* Author URI: https://divimode.com/?utm_source=wpadmin&utm_medium=link&utm_campaign=popups-for-divi
|
15 |
* Created: 30.12.2017
|
16 |
+
* Version: 2.2.5
|
17 |
* Text Domain: divi-popup
|
18 |
* Domain Path: /lang
|
19 |
* License: GPL v2 or later
|
40 |
/**
|
41 |
* A new version value will force refresh of CSS and JS files for all users.
|
42 |
*/
|
43 |
+
define( 'DIVI_POPUP_VERSION', '2.2.5' );
|
44 |
|
45 |
/**
|
46 |
* Absolute path and file name of the main plugin file.
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== Popups for Divi ===
|
2 |
Contributors: strackerphil-1
|
3 |
Tags: popup, marketing, divi
|
4 |
-
Requires at least:
|
5 |
-
Tested up to: 5.5.
|
6 |
Stable tag: trunk
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
@@ -151,13 +151,13 @@ Here's how you can revert to an older version of the plugin:
|
|
151 |
5. On the Plugins page click the "Add New" button in the top and then click on "Upload Plugin"
|
152 |
6. Select the .zip file which you downloaded in Step 2 and upload it. Activate and you're done!
|
153 |
|
154 |
-
Alternatively you can replace the `popups-for-divi` folder via FTP: Extract the .zip file which you downloaded in Step 2 and upload it to your `/wp-content/plugins` folder.
|
155 |
|
156 |
= I have more questions or need help =
|
157 |
|
158 |
Please first visit the [**plugin website**](https://divimode.com/divi-popup/?utm_source=wporg&utm_medium=link&utm_campaign=popups-for-divi), as it includes examples and documentation that could answer your questions.
|
159 |
|
160 |
-
If that does not help, then head over to the [**support forum**](https://wordpress.org/support/plugin/popups-for-divi
|
161 |
|
162 |
You can also send us a private support request via the [**support form on divimode.com**](https://divimode.com/get-support//?utm_source=wporg&utm_medium=link&utm_campaign=popups-for-divi). Please note, that might need a while to answer your private support requests.
|
163 |
|
@@ -171,12 +171,20 @@ When you need additional features, then please have a look at our the Premium pl
|
|
171 |
4. Check out the extensive API documentation and popup samples on divimode.com
|
172 |
5. Our free email course walks you through every aspect of the plugin - from the basics to advanced use-cases and techniques.
|
173 |
|
174 |
-
==
|
175 |
|
176 |
-
= 2.2.
|
177 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
|
179 |
-
|
180 |
|
181 |
= 2.2.4 =
|
182 |
* Improve: Area sizes are more accurate when using Divis responsive sizes.
|
@@ -187,8 +195,6 @@ Attention: The JS API changes! Developers, please first read https://divimode.co
|
|
187 |
* Change: New JS action to customize screen-position of an Area `position_area` (not available for Inline Areas).
|
188 |
* Fix: Full-Height Popups can be scrolled again in Safari/iPhones.
|
189 |
|
190 |
-
Plugin tested with WordPress 5.5.1 and Divi 4.6.5
|
191 |
-
|
192 |
= 2.2.3 =
|
193 |
* Fix: Position of the close button is correct in full-height Popups.
|
194 |
|
1 |
=== Popups for Divi ===
|
2 |
Contributors: strackerphil-1
|
3 |
Tags: popup, marketing, divi
|
4 |
+
Requires at least: 4.0.0
|
5 |
+
Tested up to: 5.5.3
|
6 |
Stable tag: trunk
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
151 |
5. On the Plugins page click the "Add New" button in the top and then click on "Upload Plugin"
|
152 |
6. Select the .zip file which you downloaded in Step 2 and upload it. Activate and you're done!
|
153 |
|
154 |
+
Alternatively, you can replace the `popups-for-divi` folder via FTP: Extract the .zip file which you downloaded in Step 2 and upload it to your `/wp-content/plugins` folder.
|
155 |
|
156 |
= I have more questions or need help =
|
157 |
|
158 |
Please first visit the [**plugin website**](https://divimode.com/divi-popup/?utm_source=wporg&utm_medium=link&utm_campaign=popups-for-divi), as it includes examples and documentation that could answer your questions.
|
159 |
|
160 |
+
If that does not help, then head over to the [**support forum**](https://wordpress.org/support/plugin/popups-for-divi/) to see if someone else had the same problem and found a solution to it. Also, feel free to ask for help there.
|
161 |
|
162 |
You can also send us a private support request via the [**support form on divimode.com**](https://divimode.com/get-support//?utm_source=wporg&utm_medium=link&utm_campaign=popups-for-divi). Please note, that might need a while to answer your private support requests.
|
163 |
|
171 |
4. Check out the extensive API documentation and popup samples on divimode.com
|
172 |
5. Our free email course walks you through every aspect of the plugin - from the basics to advanced use-cases and techniques.
|
173 |
|
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.
|
179 |
+
* Change: New JS API function `DiviAreaItem.isPrepared()` to check if an Area is fully initialized.
|
180 |
+
* Change: New JS filter to add custom initialization code - `pre_init_area`
|
181 |
+
* Change: New JS filter to dynamically change an Areas z-index - `apply_z_index`
|
182 |
+
* Change: New JS filter to adjust Area initialization - `area_preparation_time`
|
183 |
+
* Change: The JS API function `DiviAreaItem.getData()` does not require a parameter anymore.
|
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.
|
195 |
* Change: New JS action to customize screen-position of an Area `position_area` (not available for Inline Areas).
|
196 |
* Fix: Full-Height Popups can be scrolled again in Safari/iPhones.
|
197 |
|
|
|
|
|
198 |
= 2.2.3 =
|
199 |
* Fix: Position of the close button is correct in full-height Popups.
|
200 |
|